docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"<",
"code",
">",
"optional",
"bool",
"has",
"character",
"=",
"18",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bool",
"has",
"character",
"=",
"18",
";",
"<",
"/",
"code",
">"
] | [
"return",
"has",
"character",
";"
] |
[
"<",
"code",
">",
"optional",
"sint",
"3",
"2",
"x",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"sint",
"3",
"2",
"y",
"=",
"3",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"4",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"4",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"sint",
"3",
"2",
"z",
"=",
"4",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"8",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"8",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"int",
"3",
"2",
"deprecated",
"data",
"3",
"=",
"5",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"int",
"3",
"2",
"deprecated",
"data",
"3",
"=",
"5",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"3",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"4",
"=",
"6",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"4",
"=",
"6",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"4",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"1",
"=",
"7",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"4",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"4",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"1",
"=",
"7",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"1",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"2",
"=",
"8",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"8",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"8",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"2",
"=",
"8",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"2",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"5",
"=",
"9",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"deprecated",
"data",
"5",
"=",
"9",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"5",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"1",
"6",
"block",
"data",
"=",
"10",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"2",
"0",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"2",
"0",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"1",
"6",
"block",
"data",
"=",
"10",
";",
"<",
"/",
"code",
">"
] | [
"return",
"block",
"data",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"1",
"6",
"block",
"data",
"=",
"10",
";",
"<",
"/",
"code",
">"
] | [
"return",
"block",
"data",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"8",
"liquid",
"data",
"=",
"11",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"4",
"0",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"4",
"0",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"8",
"liquid",
"data",
"=",
"11",
";",
"<",
"/",
"code",
">"
] | [
"return",
"liquid",
"data",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"8",
"liquid",
"data",
"=",
"11",
";",
"<",
"/",
"code",
">"
] | [
"return",
"liquid",
"data",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"1",
"6",
"biome",
"data",
"=",
"12",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"8",
"0",
"0",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"8",
"0",
"0",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"1",
"6",
"biome",
"data",
"=",
"12",
";",
"<",
"/",
"code",
">"
] | [
"return",
"biome",
"data",
";"
] |
[
"<",
"code",
">",
"optional",
"run",
"length",
"encoding",
"1",
"6",
"biome",
"data",
"=",
"12",
";",
"<",
"/",
"code",
">"
] | [
"return",
"biome",
"data",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"3",
"2",
"run",
"lengths",
"=",
"1",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"run",
"lengths",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"3",
"2",
"run",
"lengths",
"=",
"1",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"run",
"lengths",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"3",
"2",
"run",
"lengths",
"=",
"1",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"run",
"lengths",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"values",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"bytes",
"values",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"values",
";"
] |
[
"<",
"code",
">",
"repeated",
"prefab",
"prefab",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
";"
] |
[
"<",
"code",
">",
"repeated",
"prefab",
"prefab",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
";"
] |
[
"<",
"code",
">",
"repeated",
"prefab",
"prefab",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"prefab",
"prefab",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"prefab",
"prefab",
"=",
"2",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"int",
"6",
"4",
"next",
"entity",
"id",
"=",
"16",
";",
"<",
"/",
"code",
">"
] | [
"return",
"(",
"(",
"bit",
"field",
"0",
"&",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
"=",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
";"
] |
[
"<",
"code",
">",
"optional",
"int",
"6",
"4",
"next",
"entity",
"id",
"=",
"16",
";",
"<",
"/",
"code",
">"
] | [
"return",
"next",
"entity",
"id",
";"
] |
[
"<",
"code",
">",
"repeated",
"int",
"6",
"4",
"deprecated",
"data",
"17",
"=",
"17",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"1",
"7",
";"
] |
[
"<",
"code",
">",
"repeated",
"int",
"6",
"4",
"deprecated",
"data",
"17",
"=",
"17",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"1",
"7",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"int",
"6",
"4",
"deprecated",
"data",
"17",
"=",
"17",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"deprecated",
"data",
"1",
"7",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"string",
"prefab",
"name",
"=",
"18",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"name",
";"
] |
[
"<",
"code",
">",
"repeated",
"string",
"prefab",
"name",
"=",
"18",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"name",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"string",
"prefab",
"name",
"=",
"18",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"name",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"string",
"prefab",
"name",
"=",
"18",
";",
"<",
"/",
"code",
">"
] | [
"return",
"prefab",
"name",
"get",
"byte",
"string",
"(",
"index",
")",
";"
] |
[
"check",
"if",
"the",
"given",
"class",
"is",
"one",
"that",
"the",
"specification",
"allows",
"to",
"have",
"a",
"resource",
"annotation"
] | [
"if",
"(",
"javax",
"servlet",
"servlet",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"filter",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"servlet",
"context",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"servlet",
"context",
"attribute",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"servlet",
"request",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"servlet",
"request",
"attribute",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"http",
"http",
"session",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"http",
"http",
"session",
"attribute",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"http",
"http",
"session",
"id",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"async",
"listener",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
"|",
"|",
"javax",
"servlet",
"http",
"http",
"upgrade",
"handler",
"class",
"is",
"assignable",
"from",
"(",
"c",
")",
")",
"return",
"true",
";",
"return",
"false",
";"
] |
[
"check",
"if",
"the",
"class",
"is",
"one",
"of",
"the",
"basic",
"java",
"types",
"permitted",
"as",
"env",
"-",
"entries"
] | [
"return",
"env",
"entry",
"types",
"contains",
"(",
"clazz",
")",
";"
] |
[
"{"
] | [
"cursor",
"close",
"(",
")",
";"
] |
[
"write",
"value",
"to",
"the",
"stream",
"extension",
"point",
"to",
"perform",
"conversions",
"on",
"the",
"object",
"before",
"writing",
"it"
] | [
"protected",
"abstract",
"void",
"write",
"(",
"binary",
"raw",
"writer",
"ex",
"writer",
",",
"t",
"val",
")",
";"
] |
[
"gets",
"the",
"cursor"
] | [
"return",
"cursor",
";"
] |
[
"{"
] | [
"cursor",
"write",
"(",
"writer",
",",
"val",
")",
";",
"cnt",
"+",
"+",
";"
] |
[
"relates",
"to",
"drm",
"implementation",
"sets",
"the",
"value",
"of",
"the",
"keyformat",
"attribute",
"must",
"be",
"identity",
"or",
"a",
"reverse",
"dns",
"string",
"may",
"be",
"omitted",
"to",
"indicate",
"an",
"implicit",
"value",
"of",
"identity"
] | [
"set",
"key",
"format",
"(",
"key",
"format",
")",
";",
"return",
"this",
";"
] |
[
"relates",
"to",
"drm",
"implementation",
"either",
"a",
"single",
"positive",
"integer",
"version",
"value",
"or",
"a",
"slash",
"delimited",
"list",
"of",
"version",
"values",
"(",
"1",
"/",
"2",
"/",
"3",
")"
] | [
"set",
"key",
"format",
"versions",
"(",
"key",
"format",
"versions",
")",
";",
"return",
"this",
";"
] |
[
"relates",
"to",
"drm",
"implementation",
"use",
"a",
"32",
"-",
"character",
"hexidecimal",
"string",
"to",
"specify",
"key",
"value",
"(",
"static",
"key",
"value",
")"
] | [
"set",
"static",
"key",
"value",
"(",
"static",
"key",
"value",
")",
";",
"return",
"this",
";"
] |
[
"relates",
"to",
"drm",
"implementation",
"the",
"location",
"of",
"the",
"license",
"server",
"used",
"for",
"protecting",
"content"
] | [
"set",
"url",
"(",
"url",
")",
";",
"return",
"this",
";"
] |
[
"creates",
"a",
"builder",
"instance"
] | [
"return",
"builder",
"(",
")",
"apply",
"settings",
"(",
"socket",
"settings",
")",
";"
] |
[
"sets",
"the",
"socket",
"connect",
"timeout"
] | [
"this",
"connect",
"timeout",
"m",
"s",
"=",
"milliseconds",
"convert",
"(",
"connect",
"timeout",
",",
"time",
"unit",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"socket",
"read",
"timeout"
] | [
"this",
"read",
"timeout",
"m",
"s",
"=",
"milliseconds",
"convert",
"(",
"read",
"timeout",
",",
"time",
"unit",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"keep",
"-",
"alive"
] | [
"this",
"keep",
"alive",
"=",
"keep",
"alive",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"receive",
"buffer",
"size"
] | [
"this",
"receive",
"buffer",
"size",
"=",
"receive",
"buffer",
"size",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"send",
"buffer",
"size"
] | [
"this",
"send",
"buffer",
"size",
"=",
"send",
"buffer",
"size",
";",
"return",
"this",
";"
] |
[
"takes",
"the",
"settings",
"from",
"the",
"given",
"{",
"@",
"code",
"connection",
"string",
"}",
"and",
"applies",
"them",
"to",
"the",
"builder"
] | [
"integer",
"connect",
"timeout",
"=",
"connection",
"string",
"get",
"connect",
"timeout",
"(",
")",
";",
"if",
"(",
"connect",
"timeout",
"!",
"=",
"null",
")",
"{",
"this",
"connect",
"timeout",
"(",
"connect",
"timeout",
",",
"milliseconds",
")",
";",
"}",
"integer",
"socket",
"timeout",
"=",
"connection",
"string",
"get",
"socket",
"timeout",
"(",
")",
";",
"if",
"(",
"socket",
"timeout",
"!",
"=",
"null",
")",
"{",
"this",
"read",
"timeout",
"(",
"socket",
"timeout",
",",
"milliseconds",
")",
";",
"}",
"return",
"this",
";"
] |
[
"build",
"an",
"instance",
"of",
"{"
] | [
"return",
"new",
"socket",
"settings",
"(",
"this",
")",
";"
] |
[
"gets",
"the",
"timeout",
"for",
"socket",
"connect",
"defaults",
"to",
"10",
"seconds"
] | [
"return",
"(",
"int",
")",
"time",
"unit",
"convert",
"(",
"connect",
"timeout",
"m",
"s",
",",
"milliseconds",
")",
";"
] |
[
"gets",
"the",
"timeout",
"for",
"socket",
"reads",
"defaults",
"to",
"0",
"which",
"indicates",
"no",
"timeout"
] | [
"return",
"(",
"int",
")",
"time",
"unit",
"convert",
"(",
"read",
"timeout",
"m",
"s",
",",
"milliseconds",
")",
";"
] |
[
"gets",
"whether",
"keep",
"-",
"alive",
"is",
"enabled",
"defaults",
"to",
"true"
] | [
"return",
"keep",
"alive",
";"
] |
[
"is",
"use",
"epoll",
"boolean"
] | [
"return",
"use",
"epoll",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"setter",
"/",
"gettter",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] | [
"this",
"payload",
"=",
"payload",
";"
] |
[
"gets",
"channel",
"listeners"
] | [
"return",
"channel",
"listeners",
";"
] |
[
"creates",
"a",
"new",
"{",
"@",
"link",
"service",
"locator",
"}",
"instance",
"from",
"static",
"{",
"@",
"link",
"service",
"locator",
"factory",
"}",
"and",
"adds",
"the",
"provided",
"parent",
"locator",
"if",
"the",
"instance",
"is",
"not",
"null"
] | [
"service",
"locator",
"result",
"=",
"factory",
"create",
"(",
"null",
",",
"parent",
"locator",
",",
"null",
",",
"service",
"locator",
"factory",
"create",
"policy",
"destroy",
")",
";",
"result",
"set",
"neutral",
"context",
"class",
"loader",
"(",
"false",
")",
";",
"service",
"locator",
"utilities",
"enable",
"per",
"thread",
"scope",
"(",
"result",
")",
";",
"return",
"result",
";"
] |
[
"checks",
"if",
"the",
"parent",
"is",
"null",
"then",
"must",
"be",
"an",
"instance",
"of",
"{",
"@",
"link",
"service",
"locator",
"}",
"or",
"{",
"@",
"link",
"injection",
"manager",
"}"
] | [
"if",
"(",
"parent",
"!",
"=",
"null",
"&",
"&",
"!",
"(",
"parent",
"instanceof",
"service",
"locator",
"|",
"|",
"parent",
"instanceof",
"abstract",
"hk",
"2",
"injection",
"manager",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"localization",
"messages",
"hk",
"2",
"unknown",
"parent",
"injection",
"manager",
"(",
"parent",
"get",
"class",
"(",
")",
"get",
"simple",
"name",
"(",
")",
")",
")",
";",
"}"
] |
[
"{"
] | [
"write",
"start",
"(",
")",
";",
"try",
"{",
"os",
"write",
"(",
"b",
")",
";",
"}",
"finally",
"{",
"write",
"end",
"(",
")",
";",
"}",
"total",
"+",
"+",
";"
] |
[
"{"
] | [
"write",
"start",
"(",
")",
";",
"try",
"{",
"os",
"write",
"(",
"b",
")",
";",
"}",
"finally",
"{",
"write",
"end",
"(",
")",
";",
"}",
"total",
"+",
"=",
"b",
"length",
";"
] |
[
"{"
] | [
"write",
"start",
"(",
")",
";",
"try",
"{",
"os",
"write",
"(",
"b",
",",
"off",
",",
"len",
")",
";",
"}",
"finally",
"{",
"write",
"end",
"(",
")",
";",
"}",
"total",
"+",
"=",
"len",
";"
] |
[
"{"
] | [
"write",
"start",
"(",
")",
";",
"try",
"{",
"os",
"flush",
"(",
")",
";",
"}",
"finally",
"{",
"write",
"end",
"(",
")",
";",
"}"
] |
[
"{"
] | [
"if",
"(",
"!",
"closed",
")",
"{",
"closed",
"=",
"true",
";",
"write",
"start",
"(",
")",
";",
"try",
"{",
"os",
"close",
"(",
")",
";",
"}",
"finally",
"{",
"write",
"end",
"(",
")",
";",
"}",
"if",
"(",
"client",
"log",
"is",
"log",
"enabled",
"(",
")",
")",
"client",
"log",
"log",
"close",
"out",
"(",
"log",
"stream",
"id",
",",
"user",
"time",
",",
"write",
"time",
",",
"total",
")",
";",
"}"
] |
[
"read",
"start"
] | [
"long",
"now",
"=",
"system",
"nano",
"time",
"(",
")",
";",
"user",
"time",
"+",
"=",
"now",
"-",
"last",
"ts",
";",
"last",
"ts",
"=",
"now",
";"
] |
[
"read",
"end"
] | [
"long",
"now",
"=",
"system",
"nano",
"time",
"(",
")",
";",
"write",
"time",
"+",
"=",
"now",
"-",
"last",
"ts",
";",
"last",
"ts",
"=",
"now",
";"
] |
[
"merges",
"a",
"reflections",
"instance",
"metadata",
"into",
"this",
"instance"
] | [
"if",
"(",
"reflections",
"store",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"string",
"index",
"name",
":",
"reflections",
"store",
"key",
"set",
"(",
")",
")",
"{",
"multimap",
"<",
"string",
",",
"string",
">",
"index",
"=",
"reflections",
"store",
"get",
"(",
"index",
"name",
")",
";",
"for",
"(",
"string",
"key",
":",
"index",
"key",
"set",
"(",
")",
")",
"{",
"for",
"(",
"string",
"string",
":",
"index",
"get",
"(",
"key",
")",
")",
"{",
"store",
"get",
"or",
"create",
"(",
"index",
"name",
")",
"put",
"(",
"key",
",",
"string",
")",
";",
"}",
"}",
"}",
"}",
"return",
"this",
";"
] |
[
"expand",
"super",
"types",
"after",
"scanning",
"for",
"super",
"types",
"that",
"were",
"not",
"scanned",
"this",
"is",
"helpful",
"in",
"finding",
"the",
"transitive",
"closure",
"without",
"scanning",
"all",
"3rd",
"party",
"dependencies",
"it",
"uses",
"{"
] | [
"if",
"(",
"store",
"key",
"set",
"(",
")",
"contains",
"(",
"index",
"(",
"sub",
"types",
"scanner",
"class",
")",
")",
")",
"{",
"multimap",
"<",
"string",
",",
"string",
">",
"mmap",
"=",
"store",
"get",
"(",
"index",
"(",
"sub",
"types",
"scanner",
"class",
")",
")",
";",
"sets",
"set",
"view",
"<",
"string",
">",
"keys",
"=",
"sets",
"difference",
"(",
"mmap",
"key",
"set",
"(",
")",
",",
"sets",
"new",
"hash",
"set",
"(",
"mmap",
"values",
"(",
")",
")",
")",
";",
"multimap",
"<",
"string",
",",
"string",
">",
"expand",
"=",
"hash",
"multimap",
"create",
"(",
")",
";",
"for",
"(",
"string",
"key",
":",
"keys",
")",
"{",
"final",
"class",
"<",
"?",
">",
"type",
"=",
"for",
"name",
"(",
"key",
",",
"loaders",
"(",
")",
")",
";",
"if",
"(",
"type",
"!",
"=",
"null",
")",
"{",
"expand",
"supertypes",
"(",
"expand",
",",
"key",
",",
"type",
")",
";",
"}",
"}",
"mmap",
"put",
"all",
"(",
"expand",
")",
";",
"}"
] |
[
"gets",
"all",
"sub",
"types",
"in",
"hierarchy",
"of",
"a",
"given",
"type",
"<",
"p",
"/",
">",
"depends",
"on",
"sub",
"types",
"scanner",
"configured"
] | [
"return",
"sets",
"new",
"hash",
"set",
"(",
"reflection",
"utils",
"<",
"t",
">",
"for",
"names",
"(",
"store",
"get",
"all",
"(",
"index",
"(",
"sub",
"types",
"scanner",
"class",
")",
",",
"arrays",
"as",
"list",
"(",
"type",
"get",
"name",
"(",
")",
")",
")",
",",
"loaders",
"(",
")",
")",
")",
";"
] |
[
"get",
"types",
"annotated",
"with",
"a",
"given",
"annotation",
"both",
"classes",
"and",
"annotations",
"<",
"p",
">",
"{"
] | [
"return",
"get",
"types",
"annotated",
"with",
"(",
"annotation",
",",
"false",
")",
";"
] |
[
"get",
"types",
"annotated",
"with",
"a",
"given",
"annotation",
"both",
"classes",
"and",
"annotations",
"<",
"p",
">",
"{"
] | [
"iterable",
"<",
"string",
">",
"annotated",
"=",
"store",
"get",
"(",
"index",
"(",
"type",
"annotations",
"scanner",
"class",
")",
",",
"annotation",
"get",
"name",
"(",
")",
")",
";",
"iterable",
"<",
"string",
">",
"classes",
"=",
"get",
"all",
"annotated",
"(",
"annotated",
",",
"annotation",
"is",
"annotation",
"present",
"(",
"inherited",
"class",
")",
",",
"honor",
"inherited",
")",
";",
"return",
"sets",
"new",
"hash",
"set",
"(",
"concat",
"(",
"for",
"names",
"(",
"annotated",
",",
"loaders",
"(",
")",
")",
",",
"for",
"names",
"(",
"classes",
",",
"loaders",
"(",
")",
")",
")",
")",
";"
] |
[
"get",
"types",
"annotated",
"with",
"a",
"given",
"annotation",
"both",
"classes",
"and",
"annotations",
"including",
"annotation",
"member",
"values",
"matching",
"<",
"p",
">",
"{"
] | [
"return",
"get",
"types",
"annotated",
"with",
"(",
"annotation",
",",
"false",
")",
";"
] |
[
"get",
"types",
"annotated",
"with",
"a",
"given",
"annotation",
"both",
"classes",
"and",
"annotations",
"including",
"annotation",
"member",
"values",
"matching",
"<",
"p",
">",
"{"
] | [
"iterable",
"<",
"string",
">",
"annotated",
"=",
"store",
"get",
"(",
"index",
"(",
"type",
"annotations",
"scanner",
"class",
")",
",",
"annotation",
"annotation",
"type",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"iterable",
"<",
"class",
"<",
"?",
">",
">",
"filter",
"=",
"filter",
"(",
"for",
"names",
"(",
"annotated",
",",
"loaders",
"(",
")",
")",
",",
"with",
"annotation",
"(",
"annotation",
")",
")",
";",
"iterable",
"<",
"string",
">",
"classes",
"=",
"get",
"all",
"annotated",
"(",
"names",
"(",
"filter",
")",
",",
"annotation",
"annotation",
"type",
"(",
")",
"is",
"annotation",
"present",
"(",
"inherited",
"class",
")",
",",
"honor",
"inherited",
")",
";",
"return",
"sets",
"new",
"hash",
"set",
"(",
"concat",
"(",
"filter",
",",
"for",
"names",
"(",
"filter",
"(",
"classes",
",",
"not",
"(",
"in",
"(",
"sets",
"new",
"hash",
"set",
"(",
"annotated",
")",
")",
")",
")",
",",
"loaders",
"(",
")",
")",
")",
")",
";"
] |
[
"get",
"all",
"methods",
"annotated",
"with",
"a",
"given",
"annotation",
"<",
"p",
"/",
">",
"depends",
"on",
"method",
"annotations",
"scanner",
"configured"
] | [
"iterable",
"<",
"string",
">",
"methods",
"=",
"store",
"get",
"(",
"index",
"(",
"method",
"annotations",
"scanner",
"class",
")",
",",
"annotation",
"get",
"name",
"(",
")",
")",
";",
"return",
"get",
"methods",
"from",
"descriptors",
"(",
"methods",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"all",
"methods",
"annotated",
"with",
"a",
"given",
"annotation",
"including",
"annotation",
"member",
"values",
"matching",
"<",
"p",
"/",
">",
"depends",
"on",
"method",
"annotations",
"scanner",
"configured"
] | [
"return",
"filter",
"(",
"get",
"methods",
"annotated",
"with",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
",",
"with",
"annotation",
"(",
"annotation",
")",
")",
";"
] |
[
"get",
"methods",
"with",
"parameter",
"types",
"matching",
"given",
"{"
] | [
"return",
"get",
"methods",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"method",
"parameter",
"scanner",
"class",
")",
",",
"names",
"(",
"types",
")",
"to",
"string",
"(",
")",
")",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"methods",
"with",
"return",
"type",
"match",
"given",
"type"
] | [
"return",
"get",
"methods",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"method",
"parameter",
"scanner",
"class",
")",
",",
"names",
"(",
"return",
"type",
")",
")",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"methods",
"with",
"any",
"parameter",
"annotated",
"with",
"given",
"annotation"
] | [
"return",
"get",
"methods",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"method",
"parameter",
"scanner",
"class",
")",
",",
"annotation",
"get",
"name",
"(",
")",
")",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"methods",
"with",
"any",
"parameter",
"annotated",
"with",
"given",
"annotation",
"including",
"annotation",
"member",
"values",
"matching"
] | [
"return",
"filter",
"(",
"get",
"methods",
"with",
"any",
"param",
"annotated",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
",",
"with",
"any",
"parameter",
"annotation",
"(",
"annotation",
")",
")",
";"
] |
[
"get",
"all",
"constructors",
"annotated",
"with",
"a",
"given",
"annotation",
"<",
"p",
"/",
">",
"depends",
"on",
"method",
"annotations",
"scanner",
"configured"
] | [
"iterable",
"<",
"string",
">",
"methods",
"=",
"store",
"get",
"(",
"index",
"(",
"method",
"annotations",
"scanner",
"class",
")",
",",
"annotation",
"get",
"name",
"(",
")",
")",
";",
"return",
"get",
"constructors",
"from",
"descriptors",
"(",
"methods",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"all",
"constructors",
"annotated",
"with",
"a",
"given",
"annotation",
"including",
"annotation",
"member",
"values",
"matching",
"<",
"p",
"/",
">",
"depends",
"on",
"method",
"annotations",
"scanner",
"configured"
] | [
"return",
"filter",
"(",
"get",
"constructors",
"annotated",
"with",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
",",
"with",
"annotation",
"(",
"annotation",
")",
")",
";"
] |
[
"get",
"constructors",
"with",
"parameter",
"types",
"matching",
"given",
"{"
] | [
"return",
"get",
"constructors",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"method",
"parameter",
"scanner",
"class",
")",
",",
"names",
"(",
"types",
")",
"to",
"string",
"(",
")",
")",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"constructors",
"with",
"any",
"parameter",
"annotated",
"with",
"given",
"annotation"
] | [
"return",
"get",
"constructors",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"method",
"parameter",
"scanner",
"class",
")",
",",
"annotation",
"get",
"name",
"(",
")",
")",
",",
"loaders",
"(",
")",
")",
";"
] |
[
"get",
"constructors",
"with",
"any",
"parameter",
"annotated",
"with",
"given",
"annotation",
"including",
"annotation",
"member",
"values",
"matching"
] | [
"return",
"filter",
"(",
"get",
"constructors",
"with",
"any",
"param",
"annotated",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
",",
"with",
"any",
"parameter",
"annotation",
"(",
"annotation",
")",
")",
";"
] |
[
"get",
"all",
"fields",
"annotated",
"with",
"a",
"given",
"annotation",
"<",
"p",
"/",
">",
"depends",
"on",
"field",
"annotations",
"scanner",
"configured"
] | [
"final",
"set",
"<",
"field",
">",
"result",
"=",
"sets",
"new",
"hash",
"set",
"(",
")",
";",
"for",
"(",
"string",
"annotated",
":",
"store",
"get",
"(",
"index",
"(",
"field",
"annotations",
"scanner",
"class",
")",
",",
"annotation",
"get",
"name",
"(",
")",
")",
")",
"{",
"result",
"add",
"(",
"get",
"field",
"from",
"string",
"(",
"annotated",
",",
"loaders",
"(",
")",
")",
")",
";",
"}",
"return",
"result",
";"
] |
[
"get",
"all",
"methods",
"annotated",
"with",
"a",
"given",
"annotation",
"including",
"annotation",
"member",
"values",
"matching",
"<",
"p",
"/",
">",
"depends",
"on",
"field",
"annotations",
"scanner",
"configured"
] | [
"return",
"filter",
"(",
"get",
"fields",
"annotated",
"with",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
",",
"with",
"annotation",
"(",
"annotation",
")",
")",
";"
] |
[
"get",
"resources",
"relative",
"paths",
"where",
"simple",
"name",
"(",
"key",
")",
"matches",
"given",
"name",
"predicate",
"<",
"p",
">",
"depends",
"on",
"resources",
"scanner",
"configured"
] | [
"iterable",
"<",
"string",
">",
"resources",
"=",
"iterables",
"filter",
"(",
"store",
"get",
"(",
"index",
"(",
"resources",
"scanner",
"class",
")",
")",
"key",
"set",
"(",
")",
",",
"name",
"predicate",
")",
";",
"return",
"sets",
"new",
"hash",
"set",
"(",
"store",
"get",
"(",
"index",
"(",
"resources",
"scanner",
"class",
")",
",",
"resources",
")",
")",
";"
] |
[
"get",
"resources",
"relative",
"paths",
"where",
"simple",
"name",
"(",
"key",
")",
"matches",
"given",
"regular",
"expression",
"<",
"p",
">",
"depends",
"on",
"resources",
"scanner",
"configured",
"<",
"pre",
">",
"set",
"<",
"string",
">",
"xmls",
"=",
"reflections",
"get",
"resources",
"(",
"*",
"\\",
"\\",
"xml",
")",
";",
"<",
"/",
"pre",
">"
] | [
"return",
"get",
"resources",
"(",
"new",
"predicate",
"<",
"string",
">",
"(",
")",
"{",
"public",
"boolean",
"apply",
"(",
"string",
"input",
")",
"{",
"return",
"pattern",
"matcher",
"(",
"input",
")",
"matches",
"(",
")",
";",
"}",
"}",
")",
";"
] |
[
"get",
"all",
"given",
"{"
] | [
"return",
"get",
"members",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"member",
"usage",
"scanner",
"class",
")",
",",
"name",
"(",
"field",
")",
")",
")",
";"
] |
[
"get",
"all",
"given",
"{"
] | [
"return",
"get",
"members",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"member",
"usage",
"scanner",
"class",
")",
",",
"name",
"(",
"method",
")",
")",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.