docstring_tokens list | code_tokens list |
|---|---|
[
"{"
] | [
"return",
"max",
"supported",
"version",
";"
] |
[
"gets",
"the",
"endpoint",
"object",
"using",
"its",
"endpoint",
"id",
"as",
"key",
"returns",
"null",
"if",
"the",
"endpoint",
"is",
"not",
"found"
] | [
"return",
"this",
"endpoints",
"get",
"(",
"endpoint",
"id",
")",
";"
] |
[
"gets",
"the",
"collection",
"of",
"endpoints",
"attached",
"to",
"this",
"node"
] | [
"return",
"this",
"endpoints",
"values",
"(",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"results",
"or",
"rows",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"this",
"configuration",
"=",
"c",
";",
"for",
"(",
"result",
"<",
"?",
">",
"result",
":",
"this",
")",
"if",
"(",
"result",
"!",
"=",
"null",
")",
"result",
"attach",
"(",
"c",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"configuration",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"list",
"(",
")",
"size",
"(",
")",
";"
] |
[
"sets",
"the",
"text",
"of",
"the",
"comment"
] | [
"this",
"content",
"=",
"content",
";",
"return",
"this",
";"
] |
[
"appends",
"a",
"new",
"entry",
"to",
"<",
"code",
">",
"local",
"variable",
"table",
"<",
"/",
"code",
">"
] | [
"int",
"size",
"=",
"info",
"length",
";",
"byte",
"[",
"]",
"new",
"info",
"=",
"new",
"byte",
"[",
"size",
"+",
"10",
"]",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"table",
"length",
"(",
")",
"+",
"1",
",",
"new",
"info",
",",
"0",
... |
[
"for",
"each",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"index",
"<",
"/",
"code",
">",
"this",
"method",
"increases",
"<",
"code",
">",
"index",
"<",
"/",
"code",
">",
"by",
"<",
"code",
">",
"delta",
"<",
"/",
"code",
">"
... | [
"int",
"size",
"=",
"info",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"2",
";",
"i",
"<",
"size",
";",
"i",
"+",
"=",
"10",
")",
"{",
"int",
"org",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"i",
"+",
"8",
")",
";... |
[
"returns",
"<",
"code",
">",
"line",
"number",
"table",
"length",
"<",
"/",
"code",
">",
"this",
"represents",
"the",
"number",
"of",
"entries",
"in",
"the",
"table"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"0",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"start",
"pc",
"<",
"/",
"code",
">",
"this",
"represents",
"the",
"index",
"into",
"the",
"code",
"array",
"from",
"which",
"the",
"local",
"variable",
"is",
"effective"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"i",
"*",
"10",
"+",
"2",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"length",
"<",
"/",
"code",
">",
"this",
"represents",
"the",
"length",
"of",
"the",
"code",
"region",
"in",
"which",
"the",
"local",
"variable",
"is",
"effective"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"i",
"*",
"10",
"+",
"4",
")",
";"
] |
[
"returns",
"the",
"value",
"of",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"name",
"index",
"<",
"/",
"code",
">",
"this",
"represents",
"the",
"name",
"of",
"the",
"local",
"variable"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"i",
"*",
"10",
"+",
"6",
")",
";"
] |
[
"returns",
"the",
"name",
"of",
"the",
"local",
"variable",
"specified",
"by",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"name",
"index",
"<",
"/",
"code",
">"
] | [
"return",
"get",
"const",
"pool",
"(",
")",
"get",
"utf",
"8",
"info",
"(",
"name",
"index",
"(",
"i",
")",
")",
";"
] |
[
"returns",
"the",
"value",
"of",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"descriptor",
"index",
"<",
"/",
"code",
">",
"this",
"represents",
"the",
"type",
"descriptor",
"of",
"the",
"local",
"variable",
"<",
"p",
">",
"if",
"thi... | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"i",
"*",
"10",
"+",
"8",
")",
";"
] |
[
"this",
"method",
"is",
"equivalent",
"to",
"<",
"code",
">",
"descriptor",
"index",
"(",
")",
"<",
"/",
"code",
">",
"if",
"this",
"attribute",
"represents",
"a",
"local",
"variable",
"type",
"table",
"attribute",
"this",
"method",
"should",
"be",
"used",... | [
"return",
"descriptor",
"index",
"(",
"i",
")",
";"
] |
[
"returns",
"the",
"type",
"descriptor",
"of",
"the",
"local",
"variable",
"specified",
"by",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"descriptor",
"index",
"<",
"/",
"code",
">",
"<",
"p",
">",
"if",
"this",
"attribute",
"represent... | [
"return",
"get",
"const",
"pool",
"(",
")",
"get",
"utf",
"8",
"info",
"(",
"descriptor",
"index",
"(",
"i",
")",
")",
";"
] |
[
"this",
"method",
"is",
"equivalent",
"to",
"<",
"code",
">",
"descriptor",
"(",
")",
"<",
"/",
"code",
">",
"if",
"this",
"attribute",
"represents",
"a",
"local",
"variable",
"type",
"table",
"attribute",
"this",
"method",
"should",
"be",
"used",
"instead... | [
"return",
"descriptor",
"(",
"i",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"local",
"variable",
"table",
"[",
"i",
"]",
"index",
"<",
"/",
"code",
">",
"this",
"represents",
"the",
"index",
"of",
"the",
"local",
"variable"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"info",
",",
"i",
"*",
"10",
"+",
"10",
")",
";"
] |
[
"makes",
"a",
"copy"
] | [
"byte",
"[",
"]",
"src",
"=",
"get",
"(",
")",
";",
"byte",
"[",
"]",
"dest",
"=",
"new",
"byte",
"[",
"src",
"length",
"]",
";",
"const",
"pool",
"cp",
"=",
"get",
"const",
"pool",
"(",
")",
";",
"local",
"variable",
"attribute",
"attr",
"=",
... |
[
"local",
"variable",
"type",
"attribute",
"overrides",
"this",
"method"
] | [
"return",
"new",
"local",
"variable",
"attribute",
"(",
"cp",
",",
"tag",
",",
"dest",
")",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"return",
"instruction",
"get",
"title",
"(",
"vault",
")",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"easy",
"bind",
"monadic",
"(",
"strategy",
")",
"if",
"present",
"(",
"this",
":",
":",
"upgrade",
")",
";"
] |
[
"/",
"*",
"callback"
] | [
"this",
"listener",
"=",
"optional",
"of",
"nullable",
"(",
"listener",
")",
";"
] |
[
"creates",
"a",
"mock",
"drawable",
"with",
"some",
"methods",
"stubbed"
] | [
"return",
"mock",
"drawable",
"(",
"fake",
"drawable",
"class",
")",
";"
] |
[
"creates",
"a",
"mock",
"bitmap",
"drawable",
"with",
"some",
"methods",
"stubbed"
] | [
"return",
"mock",
"drawable",
"(",
"bitmap",
"drawable",
"class",
")",
";"
] |
[
"creates",
"a",
"mock",
"drawable",
"with",
"some",
"methods",
"stubbed"
] | [
"d",
"drawable",
"=",
"mock",
"(",
"drawable",
"class",
"to",
"mock",
")",
";",
"when",
"(",
"drawable",
"mutate",
"(",
")",
")",
"then",
"return",
"(",
"drawable",
")",
";",
"stub",
"get",
"and",
"set",
"bounds",
"(",
"drawable",
")",
";",
"stub",
... |
[
"stubs",
"set",
"bounds",
"and",
"get",
"bounds",
"methods"
] | [
"final",
"rect",
"rect",
"=",
"new",
"rect",
"(",
")",
";",
"when",
"(",
"drawable",
"get",
"bounds",
"(",
")",
")",
"then",
"return",
"(",
"rect",
")",
";",
"do",
"answer",
"(",
"new",
"answer",
"(",
")",
"{",
"@",
"override",
"public",
"object",
... |
[
"stubs",
"set",
"callback",
"and",
"get",
"callback",
"methods"
] | [
"final",
"atomic",
"reference",
"<",
"drawable",
"callback",
">",
"callback",
"=",
"new",
"atomic",
"reference",
"<",
"drawable",
"callback",
">",
"(",
")",
";",
"when",
"(",
"drawable",
"get",
"callback",
"(",
")",
")",
"then",
"return",
"(",
"callback",
... |
[
"stubs",
"set",
"visibility",
"callback",
"methods"
] | [
"final",
"atomic",
"boolean",
"is",
"visible",
"=",
"new",
"atomic",
"boolean",
"(",
"true",
")",
";",
"final",
"atomic",
"reference",
"<",
"visibility",
"callback",
">",
"callback",
"=",
"new",
"atomic",
"reference",
"<",
"visibility",
"callback",
">",
"(",... |
[
"stubs",
"set",
"alpha",
"method"
] | [
"final",
"atomic",
"integer",
"atomic",
"integer",
"=",
"new",
"atomic",
"integer",
"(",
"255",
")",
";",
"do",
"answer",
"(",
"new",
"answer",
"(",
")",
"{",
"@",
"override",
"public",
"object",
"answer",
"(",
"invocation",
"on",
"mock",
"invocation",
"... |
[
"stubs",
"get",
"paint",
"for",
"bitmap",
"drawables"
] | [
"if",
"(",
"!",
"(",
"drawable",
"instanceof",
"bitmap",
"drawable",
")",
")",
"{",
"return",
";",
"}",
"bitmap",
"drawable",
"bitmap",
"drawable",
"=",
"(",
"bitmap",
"drawable",
")",
"drawable",
";",
"final",
"paint",
"paint",
"=",
"new",
"paint",
"(",... |
[
"stubs",
"get",
"bitmap",
"for",
"bitmap",
"drawables"
] | [
"if",
"(",
"!",
"(",
"drawable",
"instanceof",
"bitmap",
"drawable",
")",
")",
"{",
"return",
";",
"}",
"bitmap",
"drawable",
"bitmap",
"drawable",
"=",
"(",
"bitmap",
"drawable",
")",
"drawable",
";",
"final",
"bitmap",
"bitmap",
"=",
"mock",
"(",
"bitm... |
[
"hashes",
"bytes",
"in",
"an",
"array"
] | [
"return",
"hash",
"(",
"byte",
"buffer",
"wrap",
"(",
"data",
")",
",",
"seed",
")",
";"
] |
[
"hashes",
"bytes",
"in",
"part",
"of",
"an",
"array"
] | [
"return",
"hash",
"(",
"byte",
"buffer",
"wrap",
"(",
"data",
",",
"offset",
",",
"length",
")",
",",
"seed",
")",
";"
] |
[
"we",
"only",
"care",
"about",
"the",
"the",
"commit",
"section",
"the",
"rest",
"is",
"simply",
"passed",
"to",
"its",
"parent"
] | [
"return",
"session",
"select",
"cursor",
"(",
"statement",
")",
";"
] |
[
"jetty",
"connection",
"close"
] | [
"session",
"close",
"(",
")",
";"
] |
[
"returns",
"a",
"{",
"@",
"link",
"char",
"source",
"}",
"view",
"of",
"this",
"byte",
"source",
"that",
"decodes",
"bytes",
"read",
"from",
"this",
"source",
"as",
"characters",
"using",
"the",
"given",
"{",
"@",
"link",
"charset",
"}"
] | [
"return",
"new",
"as",
"char",
"source",
"(",
"charset",
")",
";"
] |
[
"opens",
"a",
"new",
"{",
"@",
"link",
"input",
"stream",
"}",
"for",
"reading",
"from",
"this",
"source",
"this",
"method",
"returns",
"a",
"new",
"independent",
"stream",
"each",
"time",
"it",
"is",
"called"
] | [
"public",
"abstract",
"input",
"stream",
"open",
"stream",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"opens",
"a",
"new",
"buffered",
"{",
"@",
"link",
"input",
"stream",
"}",
"for",
"reading",
"from",
"this",
"source",
"the",
"returned",
"stream",
"is",
"not",
"required",
"to",
"be",
"a",
"{",
"@",
"link",
"buffered",
"input",
"stream",
"}",
"in",
"o... | [
"input",
"stream",
"in",
"=",
"open",
"stream",
"(",
")",
";",
"return",
"(",
"in",
"instanceof",
"buffered",
"input",
"stream",
")",
"?",
"(",
"buffered",
"input",
"stream",
")",
"in",
":",
"new",
"buffered",
"input",
"stream",
"(",
"in",
")",
";"
] |
[
"returns",
"a",
"view",
"of",
"a",
"slice",
"of",
"this",
"byte",
"source",
"that",
"is",
"at",
"most",
"{",
"@",
"code",
"length",
"}",
"bytes",
"long",
"starting",
"at",
"the",
"given",
"{",
"@",
"code",
"offset",
"}",
"if",
"{",
"@",
"code",
"of... | [
"return",
"new",
"sliced",
"byte",
"source",
"(",
"offset",
",",
"length",
")",
";"
] |
[
"returns",
"whether",
"the",
"source",
"has",
"zero",
"bytes",
"the",
"default",
"implementation",
"first",
"checks",
"{",
"@",
"link",
"#",
"size",
"if",
"known",
"}",
"returning",
"true",
"if",
"it",
"s",
"known",
"to",
"be",
"zero",
"and",
"false",
"i... | [
"optional",
"<",
"long",
">",
"size",
"if",
"known",
"=",
"size",
"if",
"known",
"(",
")",
";",
"if",
"(",
"size",
"if",
"known",
"is",
"present",
"(",
")",
")",
"{",
"return",
"size",
"if",
"known",
"get",
"(",
")",
"=",
"=",
"0l",
";",
"}",
... |
[
"returns",
"the",
"size",
"of",
"this",
"source",
"in",
"bytes",
"if",
"the",
"size",
"can",
"be",
"easily",
"determined",
"without",
"actually",
"opening",
"the",
"data",
"stream"
] | [
"return",
"optional",
"absent",
"(",
")",
";"
] |
[
"counts",
"the",
"bytes",
"in",
"the",
"given",
"input",
"stream",
"using",
"skip",
"if",
"possible",
"returns",
"skip",
"failed",
"if",
"the",
"first",
"call",
"to",
"skip",
"threw",
"in",
"which",
"case",
"skip",
"may",
"just",
"not",
"be",
"supported"
] | [
"long",
"count",
"=",
"0",
";",
"long",
"skipped",
";",
"while",
"(",
"(",
"skipped",
"=",
"skip",
"up",
"to",
"(",
"in",
",",
"integer",
"max",
"value",
")",
")",
">",
"0",
")",
"{",
"count",
"+",
"=",
"skipped",
";",
"}",
"return",
"count",
"... |
[
"copies",
"the",
"contents",
"of",
"this",
"byte",
"source",
"to",
"the",
"given",
"{",
"@",
"code",
"output",
"stream",
"}",
"does",
"not",
"close",
"{",
"@",
"code",
"output",
"}"
] | [
"check",
"not",
"null",
"(",
"output",
")",
";",
"closer",
"closer",
"=",
"closer",
"create",
"(",
")",
";",
"try",
"{",
"input",
"stream",
"in",
"=",
"closer",
"register",
"(",
"open",
"stream",
"(",
")",
")",
";",
"return",
"byte",
"streams",
"copy... |
[
"copies",
"the",
"contents",
"of",
"this",
"byte",
"source",
"to",
"the",
"given",
"{",
"@",
"code",
"byte",
"sink",
"}"
] | [
"check",
"not",
"null",
"(",
"sink",
")",
";",
"closer",
"closer",
"=",
"closer",
"create",
"(",
")",
";",
"try",
"{",
"input",
"stream",
"in",
"=",
"closer",
"register",
"(",
"open",
"stream",
"(",
")",
")",
";",
"output",
"stream",
"out",
"=",
"c... |
[
"reads",
"the",
"full",
"contents",
"of",
"this",
"byte",
"source",
"as",
"a",
"byte",
"array"
] | [
"closer",
"closer",
"=",
"closer",
"create",
"(",
")",
";",
"try",
"{",
"input",
"stream",
"in",
"=",
"closer",
"register",
"(",
"open",
"stream",
"(",
")",
")",
";",
"optional",
"<",
"long",
">",
"size",
"=",
"size",
"if",
"known",
"(",
")",
";",
... |
[
"hashes",
"the",
"contents",
"of",
"this",
"byte",
"source",
"using",
"the",
"given",
"hash",
"function"
] | [
"hasher",
"hasher",
"=",
"hash",
"function",
"new",
"hasher",
"(",
")",
";",
"copy",
"to",
"(",
"funnels",
"as",
"output",
"stream",
"(",
"hasher",
")",
")",
";",
"return",
"hasher",
"hash",
"(",
")",
";"
] |
[
"checks",
"that",
"the",
"contents",
"of",
"this",
"byte",
"source",
"are",
"equal",
"to",
"the",
"contents",
"of",
"the",
"given",
"byte",
"source"
] | [
"check",
"not",
"null",
"(",
"other",
")",
";",
"byte",
"[",
"]",
"buf",
"1",
"=",
"create",
"buffer",
"(",
")",
";",
"byte",
"[",
"]",
"buf",
"2",
"=",
"create",
"buffer",
"(",
")",
";",
"closer",
"closer",
"=",
"closer",
"create",
"(",
")",
"... |
[
"concatenates",
"multiple",
"{",
"@",
"link",
"byte",
"source",
"}",
"instances",
"into",
"a",
"single",
"source",
"streams",
"returned",
"from",
"the",
"source",
"will",
"contain",
"the",
"concatenated",
"data",
"from",
"the",
"streams",
"of",
"the",
"underly... | [
"return",
"new",
"concatenated",
"byte",
"source",
"(",
"sources",
")",
";"
] |
[
"concatenates",
"multiple",
"{",
"@",
"link",
"byte",
"source",
"}",
"instances",
"into",
"a",
"single",
"source",
"streams",
"returned",
"from",
"the",
"source",
"will",
"contain",
"the",
"concatenated",
"data",
"from",
"the",
"streams",
"of",
"the",
"underly... | [
"return",
"concat",
"(",
"immutable",
"list",
"copy",
"of",
"(",
"sources",
")",
")",
";"
] |
[
"concatenates",
"multiple",
"{",
"@",
"link",
"byte",
"source",
"}",
"instances",
"into",
"a",
"single",
"source",
"streams",
"returned",
"from",
"the",
"source",
"will",
"contain",
"the",
"concatenated",
"data",
"from",
"the",
"streams",
"of",
"the",
"underly... | [
"return",
"concat",
"(",
"immutable",
"list",
"copy",
"of",
"(",
"sources",
")",
")",
";"
] |
[
"returns",
"a",
"view",
"of",
"the",
"given",
"byte",
"array",
"as",
"a",
"{",
"@",
"link",
"byte",
"source",
"}",
"to",
"view",
"only",
"a",
"specific",
"range",
"in",
"the",
"array",
"use",
"{",
"@",
"code",
"byte",
"source",
"wrap",
"(",
"b",
")... | [
"return",
"new",
"byte",
"array",
"byte",
"source",
"(",
"b",
")",
";"
] |
[
"returns",
"an",
"immutable",
"{",
"@",
"link",
"byte",
"source",
"}",
"that",
"contains",
"no",
"bytes"
] | [
"return",
"empty",
"byte",
"source",
"instance",
";"
] |
[
"the",
"op",
"name",
"of",
"this",
"function"
] | [
"return",
"to",
"string",
"(",
")",
";"
] |
[
"add",
"property",
"change",
"listener",
"for",
"underlying",
"monitored",
"buffered",
"input",
"streams",
"property",
"progress"
] | [
"property",
"change",
"listeners",
"add",
"(",
"listener",
")",
";"
] |
[
"loads",
"the",
"{",
"@",
"link",
"g",
"c",
"resource",
"}",
"s",
"as",
"a",
"rotated",
"series",
"of",
"logfiles",
"takes",
"care",
"of",
"ordering",
"them"
] | [
"gc",
"series",
"loader",
"series",
"loader",
"=",
"new",
"gc",
"series",
"loader",
"(",
"this",
")",
";",
"return",
"series",
"loader",
"load",
"(",
"gc",
"resource",
")",
";"
] |
[
"we",
"assume",
"that",
"the",
"input",
"rows",
"associated",
"with",
"the",
"same",
"key",
"are",
"ordered",
"by",
"the",
"tag",
"because",
"a",
"tag",
"maps",
"to",
"a",
"childindex",
"when",
"we",
"see",
"a",
"new",
"child",
"index",
"we",
"will",
"... | [
"if",
"(",
"last",
"child",
"index",
"!",
"=",
"current",
"child",
"index",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"last",
"child",
"index",
";",
"i",
"<",
"current",
"child",
"index",
";",
"i",
"+",
"+",
")",
"{",
"operator",
"<",
"?",
"extends"... |
[
"sorts",
"the",
"enums",
"according",
"to",
"their",
"natural",
"ordering"
] | [
"collections",
"sort",
"(",
"insertion",
"order",
")",
";",
"return",
"insertion",
"order",
";"
] |
[
"construct",
"{",
"@",
"link",
"phased",
"backoff",
"wait",
"strategy",
"}",
"with",
"fallback",
"to",
"{",
"@",
"link",
"blocking",
"wait",
"strategy",
"}"
] | [
"return",
"new",
"phased",
"backoff",
"wait",
"strategy",
"(",
"spin",
"timeout",
",",
"yield",
"timeout",
",",
"units",
",",
"new",
"blocking",
"wait",
"strategy",
"(",
")",
")",
";"
] |
[
"construct",
"{",
"@",
"link",
"phased",
"backoff",
"wait",
"strategy",
"}",
"with",
"fallback",
"to",
"{",
"@",
"link",
"lite",
"blocking",
"wait",
"strategy",
"}"
] | [
"return",
"new",
"phased",
"backoff",
"wait",
"strategy",
"(",
"spin",
"timeout",
",",
"yield",
"timeout",
",",
"units",
",",
"new",
"lite",
"blocking",
"wait",
"strategy",
"(",
")",
")",
";"
] |
[
"construct",
"{",
"@",
"link",
"phased",
"backoff",
"wait",
"strategy",
"}",
"with",
"fallback",
"to",
"{",
"@",
"link",
"sleeping",
"wait",
"strategy",
"}"
] | [
"return",
"new",
"phased",
"backoff",
"wait",
"strategy",
"(",
"spin",
"timeout",
",",
"yield",
"timeout",
",",
"units",
",",
"new",
"sleeping",
"wait",
"strategy",
"(",
"0",
")",
")",
";"
] |
[
"{"
] | [
"for",
"(",
"user",
"name",
"mapper",
"mapper",
":",
"mappers",
")",
"name",
"=",
"mapper",
"map",
"(",
"name",
")",
";",
"return",
"name",
";"
] |
[
"{"
] | [
"assert",
"mappers",
"!",
"=",
"null",
";",
"for",
"(",
"user",
"name",
"mapper",
"mapper",
":",
"mappers",
")",
"{",
"if",
"(",
"mapper",
"instanceof",
"lifecycle",
"aware",
")",
"(",
"(",
"lifecycle",
"aware",
")",
"mapper",
")",
"stop",
"(",
")",
... |
[
"get",
"child",
"mappers"
] | [
"return",
"mappers",
";"
] |
[
"set",
"child",
"mappers"
] | [
"this",
"mappers",
"=",
"mappers",
";"
] |
[
"<",
"p",
">",
"this",
"value",
"must",
"be",
"<",
"code",
">",
"auto",
"<",
"/",
"code",
">",
"which",
"causes",
"elastic",
"transcoder",
"to",
"automatically",
"detect",
"the",
"resolution",
"of",
"the",
"input",
"file",
"<",
"/",
"p",
">"
] | [
"this",
"resolution",
"=",
"resolution",
";"
] |
[
"constructs",
"a",
"filtered",
"iterable",
"from",
"a",
"critical",
"path"
] | [
"return",
"new",
"iterable",
"<",
"critical",
"path",
"entry",
">",
"(",
")",
"{",
"@",
"override",
"public",
"iterator",
"<",
"critical",
"path",
"entry",
">",
"iterator",
"(",
")",
"{",
"return",
"new",
"iterator",
"<",
"critical",
"path",
"entry",
">"... |
[
"extracts",
"all",
"{"
] | [
"list",
"<",
"long",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"filters",
"size",
"(",
")",
")",
";",
"for",
"(",
"pair",
"<",
"string",
",",
"enum",
"set",
"<",
"profiler",
"task",
">",
">",
"filter",
":",
"filters",
")",
"{",
"... |
[
"returns",
"set",
"of",
"profiler",
"tasks",
"to",
"be",
"filtered",
"from",
"critical",
"path",
"also",
"always",
"filters",
"out",
"action",
"lock",
"and",
"wait",
"tasks",
"to",
"simulate",
"unlimited",
"resource",
"critical",
"path",
"(",
"see",
"comments"... | [
"enum",
"set",
"<",
"profiler",
"task",
">",
"filter",
"=",
"enum",
"set",
"of",
"(",
"profiler",
"task",
"action",
"lock",
",",
"profiler",
"task",
"wait",
")",
";",
"collections",
"add",
"all",
"(",
"filter",
",",
"tasks",
")",
";",
"return",
"pair",... |
[
"gets",
"current",
"config"
] | [
"return",
"this",
"conf",
";"
] |
[
"wrapper",
"method",
"for",
"{"
] | [
"return",
"waiter",
"wait",
"for",
"(",
"this",
"conf",
",",
"timeout",
",",
"predicate",
")",
";"
] |
[
"wrapper",
"method",
"for",
"{"
] | [
"return",
"waiter",
"wait",
"for",
"(",
"this",
"conf",
",",
"timeout",
",",
"interval",
",",
"predicate",
")",
";"
] |
[
"wrapper",
"method",
"for",
"{"
] | [
"return",
"waiter",
"wait",
"for",
"(",
"this",
"conf",
",",
"timeout",
",",
"interval",
",",
"fail",
"if",
"timeout",
",",
"predicate",
")",
";"
] |
[
"type",
"-",
"safe",
"way",
"to",
"get",
"the",
"sixth",
"object",
"of",
"this",
"{",
"@",
"link",
"tuples",
"}"
] | [
"return",
"t",
"6",
";"
] |
[
"map",
"the",
"1st",
"part",
"(",
"t1",
")",
"of",
"this",
"{",
"@",
"link",
"tuple",
"6",
"}",
"into",
"a",
"different",
"value",
"and",
"type",
"keeping",
"the",
"other",
"parts"
] | [
"return",
"new",
"tuple",
"6",
"<",
">",
"(",
"mapper",
"apply",
"(",
"t",
"1",
")",
",",
"t",
"2",
",",
"t",
"3",
",",
"t",
"4",
",",
"t",
"5",
",",
"t",
"6",
")",
";"
] |
[
"map",
"the",
"2nd",
"part",
"(",
"t2",
")",
"of",
"this",
"{",
"@",
"link",
"tuple",
"6",
"}",
"into",
"a",
"different",
"value",
"and",
"type",
"keeping",
"the",
"other",
"parts"
] | [
"return",
"new",
"tuple",
"6",
"<",
">",
"(",
"t",
"1",
",",
"mapper",
"apply",
"(",
"t",
"2",
")",
",",
"t",
"3",
",",
"t",
"4",
",",
"t",
"5",
",",
"t",
"6",
")",
";"
] |
[
"map",
"the",
"3rd",
"part",
"(",
"t3",
")",
"of",
"this",
"{",
"@",
"link",
"tuple",
"6",
"}",
"into",
"a",
"different",
"value",
"and",
"type",
"keeping",
"the",
"other",
"parts"
] | [
"return",
"new",
"tuple",
"6",
"<",
">",
"(",
"t",
"1",
",",
"t",
"2",
",",
"mapper",
"apply",
"(",
"t",
"3",
")",
",",
"t",
"4",
",",
"t",
"5",
",",
"t",
"6",
")",
";"
] |
[
"map",
"the",
"4th",
"part",
"(",
"t4",
")",
"of",
"this",
"{",
"@",
"link",
"tuple",
"6",
"}",
"into",
"a",
"different",
"value",
"and",
"type",
"keeping",
"the",
"other",
"parts"
] | [
"return",
"new",
"tuple",
"6",
"<",
">",
"(",
"t",
"1",
",",
"t",
"2",
",",
"t",
"3",
",",
"mapper",
"apply",
"(",
"t",
"4",
")",
",",
"t",
"5",
",",
"t",
"6",
")",
";"
] |
[
"map",
"the",
"5th",
"part",
"(",
"t5",
")",
"of",
"this",
"{",
"@",
"link",
"tuple",
"6",
"}",
"into",
"a",
"different",
"value",
"and",
"type",
"keeping",
"the",
"other",
"parts"
] | [
"return",
"new",
"tuple",
"6",
"<",
">",
"(",
"t",
"1",
",",
"t",
"2",
",",
"t",
"3",
",",
"t",
"4",
",",
"mapper",
"apply",
"(",
"t",
"5",
")",
",",
"t",
"6",
")",
";"
] |
[
"map",
"the",
"6th",
"part",
"(",
"t6",
")",
"of",
"this",
"{",
"@",
"link",
"tuple",
"6",
"}",
"into",
"a",
"different",
"value",
"and",
"type",
"keeping",
"the",
"other",
"parts"
] | [
"return",
"new",
"tuple",
"6",
"<",
">",
"(",
"t",
"1",
",",
"t",
"2",
",",
"t",
"3",
",",
"t",
"4",
",",
"t",
"5",
",",
"mapper",
"apply",
"(",
"t",
"6",
")",
")",
";"
] |
[
"wraps",
"the",
"{"
] | [
"string",
"with",
"macros",
"converter",
"macros",
"converter",
"=",
"string",
"with",
"macros",
"converter",
"of",
"(",
"target",
",",
"cell",
"roots",
",",
"macro",
"expanders",
")",
";",
"return",
"args",
"get",
"extra",
"json",
"(",
")",
"map",
"(",
... |
[
"the",
"time",
"of",
"the",
"latest",
"record",
"seen"
] | [
"return",
"latest",
"record",
"time",
"stamp",
";"
] |
[
"compare",
"all",
"the",
"fields"
] | [
"if",
"(",
"this",
"=",
"=",
"other",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"other",
"instanceof",
"model",
"snapshot",
"=",
"=",
"false",
")",
"{",
"return",
"false",
";",
"}",
"model",
"snapshot",
"that",
"=",
"(",
"model",
"snapshot",
... |
[
"this",
"is",
"how",
"the",
"i",
"ds",
"were",
"formed",
"in",
"v",
"5",
"4"
] | [
"return",
"v",
"5",
"4",
"document",
"id",
"(",
"snapshot",
"get",
"job",
"id",
"(",
")",
",",
"snapshot",
"get",
"snapshot",
"id",
"(",
")",
")",
";"
] |
[
"what",
"kind",
"of",
"operation",
"to",
"perform"
] | [
"this",
"api",
"name",
"=",
"api",
"name",
";"
] |
[
"tests",
"a",
"splittable",
"{"
] | [
"class",
"good",
"splittable",
"do",
"fn",
"extends",
"do",
"fn",
"<",
"integer",
",",
"string",
">",
"{",
"@",
"process",
"element",
"public",
"process",
"continuation",
"process",
"element",
"(",
"process",
"context",
"context",
",",
"some",
"restriction",
... |
[
"tests",
"a",
"splittable",
"{"
] | [
"class",
"good",
"generic",
"splittable",
"do",
"fn",
"<",
"restriction",
"t",
",",
"tracker",
"t",
",",
"coder",
"t",
">",
"extends",
"do",
"fn",
"<",
"integer",
",",
"string",
">",
"{",
"@",
"process",
"element",
"public",
"process",
"continuation",
"p... |
[
"returns",
"true",
"if",
"the",
"character",
"array",
"starts",
"with",
"the",
"suffix"
] | [
"final",
"int",
"prefix",
"len",
"=",
"prefix",
"length",
"(",
")",
";",
"if",
"(",
"prefix",
"len",
">",
"len",
")",
"return",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"prefix",
"len",
";",
"i",
"+",
"+",
")",
"if",
"("... |
[
"returns",
"true",
"if",
"the",
"character",
"array",
"ends",
"with",
"the",
"suffix"
] | [
"final",
"int",
"suffix",
"len",
"=",
"suffix",
"length",
"(",
")",
";",
"if",
"(",
"suffix",
"len",
">",
"len",
")",
"return",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"suffix",
"len",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",... |
[
"returns",
"true",
"if",
"the",
"character",
"array",
"ends",
"with",
"the",
"suffix"
] | [
"final",
"int",
"suffix",
"len",
"=",
"suffix",
"length",
";",
"if",
"(",
"suffix",
"len",
">",
"len",
")",
"return",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"suffix",
"len",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"if"... |
[
"called",
"when",
"item",
"was",
"modified",
"or",
"added",
"to",
"the",
"list"
] | [] |
[
"called",
"when",
"item",
"was",
"removed",
"from",
"the",
"list"
] | [] |
[
"registers",
"list",
"change",
"callback",
"with",
"executor"
] | [
"register",
"list",
"callback",
"(",
"new",
"list",
"callback",
"(",
")",
"{",
"public",
"void",
"on",
"item",
"changed",
"(",
"@",
"non",
"null",
"program",
"selector",
"identifier",
"id",
")",
"{",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"cal... |
[
"registers",
"list",
"change",
"callback"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"is",
"closed",
")",
"return",
";",
"m",
"list",
"callbacks",
"add",
"(",
"objects",
"require",
"non",
"null",
"(",
"callback",
")",
")",
";",
"}"
] |
[
"unregisters",
"list",
"change",
"callback"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"is",
"closed",
")",
"return",
";",
"m",
"list",
"callbacks",
"remove",
"(",
"objects",
"require",
"non",
"null",
"(",
"callback",
")",
")",
";",
"}"
] |
[
"adds",
"list",
"complete",
"event",
"listener",
"with",
"executor"
] | [
"add",
"on",
"complete",
"listener",
"(",
"(",
")",
"-",
">",
"executor",
"execute",
"(",
"listener",
":",
":",
"on",
"complete",
")",
")",
";"
] |
[
"adds",
"list",
"complete",
"event",
"listener"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"is",
"closed",
")",
"return",
";",
"m",
"on",
"complete",
"listeners",
"add",
"(",
"objects",
"require",
"non",
"null",
"(",
"listener",
")",
")",
";",
"if",
"(",
"m",
"is",
"complete",
"... |
[
"removes",
"list",
"complete",
"event",
"listener"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"is",
"closed",
")",
"return",
";",
"m",
"on",
"complete",
"listeners",
"remove",
"(",
"objects",
"require",
"non",
"null",
"(",
"listener",
")",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.