docstring_tokens list | code_tokens list |
|---|---|
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"\"",
"throttled",
"input",
"stream",
"{",
"\"",
"+",
"\"",
"bytes",
"read",
"=",
"\"",
"+",
"bytes",
"read",
"+",
"\"",
",",
"max",
"bytes",
"per",
"sec",
"=",
"\"",
"+",
"max",
"bytes",... |
[
"get",
"all",
"the",
"journals",
"this",
"edit",
"log",
"is",
"currently",
"operating",
"on"
] | [
"list",
"<",
"journal",
"and",
"stream",
">",
"get",
"journals",
"(",
")",
"{",
"/",
"/",
"the",
"list",
"implementation",
"is",
"copy",
"on",
"write",
"array",
"list",
",",
"/",
"/",
"so",
"we",
"don",
"'",
"t",
"need",
"to",
"synchronize",
"this",
... |
[
"never",
"serialize",
"this",
"parameter",
",",
"no",
"matter",
"its",
"value"
] | [
"public",
"parameter",
"<",
"t",
">",
"never",
"serialize",
"(",
")",
"{",
"this",
"serializer",
"check",
"=",
"(",
"id",
",",
"ic",
",",
"v",
")",
"-",
">",
"false",
";",
"return",
"this",
";",
"}"
] |
[
"perform",
"the",
"actual",
"reading",
"of",
"an",
"invocation",
"result",
"object",
"from",
"the",
"given",
"object",
"input",
"stream",
"the",
"default",
"implementation",
"simply",
"calls",
"{",
"@",
"link",
"java",
"io",
"object",
"input",
"stream",
"#",
... | [
"protected",
"remote",
"invocation",
"do",
"read",
"remote",
"invocation",
"(",
"object",
"input",
"stream",
"ois",
")",
"throws",
"i",
"o",
"exception",
",",
"class",
"not",
"found",
"exception",
"{",
"object",
"obj",
"=",
"ois",
"read",
"object",
"(",
")... |
[
"prints",
"an",
"error",
"message",
"&",
"fails",
"the",
"compilation"
] | [
"public",
"void",
"error",
"(",
"element",
"e",
",",
"string",
"msg",
")",
"{",
"messager",
"print",
"message",
"(",
"diagnostic",
"kind",
"error",
",",
"msg",
",",
"e",
")",
";",
"}"
] |
[
"get",
"the",
"number",
"of",
"joints"
] | [
"public",
"int",
"get",
"joint",
"count",
"(",
")",
"{",
"return",
"world",
"get",
"joint",
"count",
"(",
")",
";",
"}"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] | [
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
"... |
[
"return",
"the",
"j",
"s",
"o",
"n",
"object",
"in",
"cache"
] | [
"public",
"j",
"s",
"o",
"n",
"object",
"get",
"j",
"s",
"o",
"n",
"object",
"(",
"@",
"non",
"null",
"final",
"string",
"key",
",",
"final",
"j",
"s",
"o",
"n",
"object",
"default",
"value",
")",
"{",
"j",
"s",
"o",
"n",
"object",
"obj",
"=",
... |
[
"get",
"the",
"scheme",
"for",
"this",
"specific",
"fetcher"
] | [
"protected",
"string",
"get",
"scheme",
"(",
")",
"{",
"return",
"file",
"system",
"uri",
"schemes",
"abfs",
"scheme",
";",
"}"
] |
[
"return",
"the",
"configured",
"task",
"scheduler"
] | [
"public",
"task",
"scheduler",
"get",
"task",
"scheduler",
"(",
")",
"{",
"return",
"this",
"task",
"scheduler",
";",
"}"
] |
[
"look",
"up",
"the",
"3",
"bits",
"base",
"6",
"4",
"-",
"encoded",
"by",
"the",
"specified",
"character",
",",
"range",
"-",
"checking",
"againt",
"conversion",
"table"
] | [
"private",
"static",
"byte",
"char",
"6",
"4",
"(",
"char",
"x",
")",
"{",
"if",
"(",
"(",
"int",
")",
"x",
"<",
"0",
"|",
"|",
"(",
"int",
")",
"x",
">",
"index",
"64",
"length",
")",
"return",
"-",
"1",
";",
"return",
"index",
"64",
"[",
... |
[
"add",
"a",
"listener",
"for",
"updated",
"cluster",
"states"
] | [
"public",
"void",
"add",
"listener",
"(",
"cluster",
"state",
"listener",
"listener",
")",
"{",
"cluster",
"state",
"listeners",
"add",
"(",
"listener",
")",
";",
"}"
] |
[
"read",
"an",
"unsigned",
"byte",
"note",
":",
"returns",
"an",
"int",
",",
"even",
"though",
"says",
"byte",
"(",
"non",
"-",
"javadoc",
")"
] | [
"public",
"final",
"int",
"read",
"unsigned",
"byte",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"dis",
"read",
"unsigned",
"byte",
"(",
")",
";",
"}"
] |
[
"obtains",
"seek",
"points",
"for",
"the",
"specified",
"seek",
"time",
"in",
"microseconds",
"the",
"returned",
"{",
"@",
"link",
"seek",
"points",
"}",
"will",
"contain",
"one",
"or",
"two",
"distinct",
"seek",
"points",
"two",
"seek",
"points",
"[",
"a"... | [
"seek",
"points",
"get",
"seek",
"points",
"(",
"long",
"time",
"us",
")",
";"
] |
[
"the",
"entries",
"defined",
"for",
"this",
"type",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"entry",
"entry",
"=",
"3",
";",
"<",
"code",
">"
] | [
"private",
"void",
"add",
"entry",
"(",
"com",
"android",
"aapt",
"resources",
"entry",
"value",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"ensure",
"entry",
"is",
"m... |
[
"starts",
"a",
"transaction",
"on",
"the",
"current",
"program"
] | [
"public",
"final",
"void",
"start",
"(",
")",
"{",
"if",
"(",
"current",
"program",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"transaction",
"i",
"d",
"=",
"=",
"-",
"1",
")",
"{",
"transaction",
"i",
"d",
"=",
"current",
"progra... |
[
"persist",
"the",
"memory",
"usage",
"data"
] | [
"public",
"void",
"persist",
"model",
"size",
"stats",
"(",
"model",
"size",
"stats",
"model",
"size",
"stats",
",",
"write",
"request",
"refresh",
"policy",
"refresh",
"policy",
",",
"action",
"listener",
"<",
"index",
"response",
">",
"listener",
")",
"{",... |
[
"execute",
"a",
"{",
"@",
"link",
"callable",
"}",
",",
"retrying",
"execution",
"in",
"case",
"of",
"failure",
"and",
"returning",
"the",
"result",
"in",
"case",
"of",
"success",
"with",
"give",
"{",
"@",
"link",
"backoff",
"}",
"{",
"@",
"link",
"int... | [
"public",
"<",
"t",
">",
"t",
"execute",
"(",
"callable",
"<",
"t",
">",
"call",
",",
"backoff",
"backoff",
")",
"throws",
"exception",
"{",
"while",
"(",
"true",
")",
"{",
"final",
"state",
"circuit",
"state",
";",
"circuit",
"state",
"=",
"circuit",
... |
[
"writes",
"the",
"{",
"@",
"link",
"pixmap",
"}",
"to",
"the",
"given",
"file",
"using",
"a",
"custom",
"compression",
"scheme",
"first",
"three",
"integers",
"define",
"the",
"width",
",",
"height",
"and",
"format",
",",
"remaining",
"bytes",
"are",
"zlib... | [
"static",
"public",
"void",
"write",
"c",
"i",
"m",
"(",
"file",
"handle",
"file",
",",
"pixmap",
"pixmap",
")",
"{",
"cim",
"write",
"(",
"file",
",",
"pixmap",
")",
";",
"}"
] |
[
"retrieves",
"the",
"result",
"of",
"a",
"{",
"@",
"code",
"future",
"}",
"known",
"to",
"be",
"done",
"but",
"uses",
"the",
"{",
"@",
"code",
"get",
"(",
"long",
",",
"time",
"unit",
")",
"}",
"overload",
"in",
"order",
"to",
"test",
"that",
"meth... | [
"static",
"<",
"v",
">",
"v",
"get",
"done",
"from",
"timeout",
"overload",
"(",
"future",
"<",
"v",
">",
"future",
")",
"throws",
"execution",
"exception",
"{",
"check",
"state",
"(",
"future",
"is",
"done",
"(",
")",
",",
"\"",
"future",
"was",
"ex... |
[
"drops",
"the",
"underlying",
"database",
"table"
] | [
"public",
"static",
"void",
"drop",
"table",
"(",
"database",
"db",
",",
"boolean",
"if",
"exists",
")",
"{",
"string",
"sql",
"=",
"\"",
"drop",
"table",
"\"",
"+",
"(",
"if",
"exists",
"?",
"\"",
"if",
"exists",
"\"",
":",
"\"",
"\"",
")",
"+",
... |
[
"add",
"a",
"focus",
"listener",
"to",
"the",
"box",
"(",
"es",
")",
"note",
":",
"the",
"listener",
"will",
"not",
"fire",
"when",
"focus",
"passes",
"among",
"the",
"linked",
"boxes",
"of",
"the",
"dual",
"variant"
] | [
"public",
"void",
"add",
"focus",
"listener",
"(",
"focus",
"listener",
"listener",
")",
"{",
"linker",
"add",
"focus",
"listener",
"(",
"listener",
")",
";",
"assembly",
"add",
"focus",
"listener",
"(",
"listener",
")",
";",
"}"
] |
[
"handle",
"the",
"outcome",
"of",
"an",
"operation",
"not",
"being",
"the",
"strictest",
"exception",
"desired",
",",
"but",
"one",
"that",
",",
"while",
"still",
"within",
"the",
"boundary",
"of",
"the",
"contract",
",",
"is",
"a",
"bit",
"looser",
"if",
... | [
"protected",
"void",
"handle",
"relaxed",
"exception",
"(",
"string",
"action",
",",
"string",
"expected",
"exception",
",",
"exception",
"e",
")",
"throws",
"exception",
"{",
"if",
"(",
"get",
"contract",
"(",
")",
"is",
"supported",
"(",
"supports",
"stric... |
[
"translate",
"an",
"exception",
"raised",
"in",
"an",
"operation",
"into",
"an",
"i",
"o",
"exception",
"the",
"specific",
"type",
"of",
"i",
"o",
"exception",
"depends",
"on",
"the",
"class",
"of",
"{",
"@",
"link",
"amazon",
"client",
"exception",
"}",
... | [
"public",
"static",
"i",
"o",
"exception",
"translate",
"exception",
"(",
"string",
"operation",
",",
"path",
"path",
",",
"amazon",
"client",
"exception",
"exception",
")",
"{",
"return",
"translate",
"exception",
"(",
"operation",
",",
"path",
"to",
"string"... |
[
"remove",
"a",
"cache",
"pool"
] | [
"public",
"void",
"remove",
"cache",
"pool",
"(",
"string",
"pool",
"name",
")",
"throws",
"i",
"o",
"exception",
"{",
"statistics",
"increment",
"write",
"ops",
"(",
"1",
")",
";",
"storage",
"statistics",
"increment",
"op",
"counter",
"(",
"op",
"type",
... |
[
"sets",
"the",
"optional",
"subtitles",
"{",
"@",
"code",
"null",
"}",
"or",
"an",
"empty",
"{",
"@",
"link",
"list",
"}",
"can",
"be",
"used",
"for",
"a",
"reset",
"if",
"{",
"@",
"link",
"#",
"set",
"uri",
"}",
"is",
"passed",
"a",
"non",
"-",
... | [
"public",
"builder",
"set",
"subtitles",
"(",
"@",
"nullable",
"list",
"<",
"subtitle",
">",
"subtitles",
")",
"{",
"this",
"subtitles",
"=",
"subtitles",
"!",
"=",
"null",
"&",
"&",
"!",
"subtitles",
"is",
"empty",
"(",
")",
"?",
"collections",
"unmodif... |
[
"return",
"the",
"list",
"of",
"view",
"view",
"resolvers",
"to",
"delegate",
"to"
] | [
"public",
"list",
"<",
"view",
"resolver",
">",
"get",
"view",
"resolvers",
"(",
")",
"{",
"return",
"collections",
"unmodifiable",
"list",
"(",
"this",
"view",
"resolvers",
")",
";",
"}"
] |
[
"prepare",
"block",
"list",
"commit",
"command",
"and",
"queue",
"the",
"command",
"in",
"thread",
"pool",
"executor"
] | [
"private",
"synchronized",
"upload",
"command",
"add",
"flush",
"command",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"maybe",
"throw",
"first",
"error",
"(",
")",
";",
"if",
"(",
"blob",
"exist",
"&",
"&",
"lease",
"is",
"freed",
"(",
")",
")",
... |
[
"configures",
"expire",
"after",
"write"
] | [
"void",
"expire",
"after",
"write",
"(",
"string",
"key",
",",
"@",
"nullable",
"string",
"value",
")",
"{",
"require",
"argument",
"(",
"expire",
"after",
"write",
"=",
"=",
"null",
",",
"\"",
"expire",
"after",
"write",
"was",
"already",
"set",
"\"",
... |
[
"block",
"the",
"given",
"source",
"to",
"block",
"address",
"for",
"the",
"given",
"multicast",
"address",
"on",
"the",
"given",
"network",
"interface",
"and",
"notifies",
"the",
"{",
"@",
"link",
"channel",
"future",
"}",
"once",
"the",
"operation",
"compl... | [
"channel",
"future",
"block",
"(",
"inet",
"address",
"multicast",
"address",
",",
"network",
"interface",
"network",
"interface",
",",
"inet",
"address",
"source",
"to",
"block",
")",
";"
] |
[
"adds",
"the",
"file",
"with",
"the",
"given",
"name",
"to",
"this",
"fake",
"project",
"the",
"file",
"must",
"exist",
"in",
"the",
"test",
"data",
"area",
"the",
"file",
"will",
"be",
"put",
"in",
"the",
"root",
"folder",
"of",
"the",
"project",
"<",... | [
"public",
"domain",
"file",
"add",
"domain",
"file",
"(",
"string",
"filename",
")",
"throws",
"exception",
"{",
"project",
"project",
"=",
"get",
"ghidra",
"project",
"(",
")",
"get",
"project",
"(",
")",
";",
"domain",
"file",
"df",
"=",
"program",
"ma... |
[
"gets",
"column",
"meta"
] | [
"public",
"column",
"meta",
"get",
"column",
"meta",
"(",
"string",
"col",
"name",
")",
"{",
"return",
"all",
"columns",
"get",
"(",
"col",
"name",
")",
";",
"}"
] |
[
"load",
"bean",
"definitions",
"from",
"the",
"specified",
"resource",
"location",
"the",
"location",
"can",
"also",
"be",
"a",
"location",
"pattern",
",",
"provided",
"that",
"the",
"resource",
"loader",
"of",
"this",
"bean",
"definition",
"reader",
"is",
"a"... | [
"public",
"int",
"load",
"bean",
"definitions",
"(",
"string",
"location",
",",
"@",
"nullable",
"set",
"<",
"resource",
">",
"actual",
"resources",
")",
"throws",
"bean",
"definition",
"store",
"exception",
"{",
"resource",
"loader",
"resource",
"loader",
"="... |
[
"test",
"the",
"property",
"'",
"indirect",
"map",
"'"
] | [
"public",
"void",
"indirect",
"map",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"indirect",
"map",
"}"
] |
[
"test",
"if",
"mock",
"policy",
"works",
"fine",
":",
"fail",
"-",
"mock"
] | [
"public",
"void",
"test",
"mock",
"invoker",
"invoke",
"normal",
"(",
")",
"{",
"url",
"url",
"=",
"url",
"value",
"of",
"(",
"\"",
"remote",
":",
"/",
"/",
"1",
"2",
"3",
"4",
"/",
"\"",
"+",
"i",
"hello",
"service",
"class",
"get",
"name",
"(",... |
[
"dumps",
"the",
"debug",
"stream",
"list",
"this",
"package",
"-",
"protected",
"method",
"is",
"for",
"debugging",
"only"
] | [
"private",
"void",
"dump",
"debug",
"stream",
"list",
"(",
"writer",
"writer",
")",
"throws",
"i",
"o",
"exception",
"{",
"writer",
"write",
"(",
"\"",
"stream",
"list",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
... |
[
"constructs",
"a",
"new",
"{",
"@",
"link",
"resolution",
"result",
"}",
"from",
"this",
"builder"
] | [
"public",
"resolution",
"result",
"build",
"(",
")",
"{",
"return",
"new",
"resolution",
"result",
"(",
"addresses",
",",
"attributes",
",",
"service",
"config",
")",
";",
"}"
] |
[
"moves",
"the",
"cursor",
"upwards",
"by",
"a",
"specified",
"number",
"of",
"lines",
"this",
"will",
"not",
"cause",
"any",
"scrolling",
"if",
"it",
"tries",
"to",
"move",
"above",
"the",
"top",
"of",
"the",
"terminal",
"window"
] | [
"public",
"void",
"cursor",
"up",
"(",
"int",
"num",
"lines",
")",
"throws",
"i",
"o",
"exception",
"{",
"write",
"bytes",
"(",
"esc",
",",
"(",
"\"",
"\"",
"+",
"num",
"lines",
")",
"get",
"bytes",
"(",
")",
",",
"new",
"byte",
"[",
"]",
"{",
... |
[
"sets",
"the",
"stored",
"fields",
"to",
"load",
"from",
"the",
"docvalue",
"and",
"return"
] | [
"public",
"inner",
"hit",
"builder",
"set",
"doc",
"value",
"fields",
"(",
"list",
"<",
"field",
"and",
"format",
">",
"doc",
"value",
"fields",
")",
"{",
"this",
"doc",
"value",
"fields",
"=",
"doc",
"value",
"fields",
";",
"return",
"this",
";",
"}"
... |
[
"gets",
"a",
"value",
"as",
"a",
"{",
"@",
"link",
"slice",
"}"
] | [
"slice",
"get",
"slice",
"(",
"int",
"channel",
",",
"int",
"position",
")",
";"
] |
[
"produces",
"a",
"merge",
"map",
"where",
"`",
"merge",
"map",
"[",
"i",
"]",
"`",
"represents",
"the",
"index",
"that",
"<",
"code",
">",
"values",
"[",
"i",
"]",
"<",
"code",
">",
"would",
"be",
"moved",
"to",
"<",
"b",
">",
"if",
"<",
"b",
"... | [
"public",
"long",
"[",
"]",
"generate",
"merge",
"map",
"(",
")",
"{",
"sort",
"(",
"0",
",",
"indexes",
"length",
")",
";",
"return",
"indexes",
";",
"}"
] |
[
"if",
"dead",
"node",
"detection",
"enabled",
"is",
"true",
",",
"return",
"the",
"dead",
"nodes",
"that",
"detected",
"by",
"all",
"the",
"d",
"f",
"s",
"input",
"streams",
"in",
"the",
"same",
"client",
"otherwise",
"return",
"the",
"dead",
"nodes",
"t... | [
"public",
"concurrent",
"hash",
"map",
"<",
"datanode",
"info",
",",
"datanode",
"info",
">",
"get",
"dead",
"nodes",
"(",
"d",
"f",
"s",
"input",
"stream",
"dfs",
"input",
"stream",
")",
"{",
"if",
"(",
"client",
"context",
"is",
"dead",
"node",
"dete... |
[
"return",
"the",
"order",
"position",
"to",
"be",
"used"
] | [
"protected",
"int",
"get",
"order",
"(",
")",
"{",
"return",
"this",
"order",
";",
"}"
] |
[
"set",
"the",
"validator",
"to",
"apply",
"after",
"each",
"binding",
"step"
] | [
"public",
"final",
"void",
"set",
"validator",
"(",
"@",
"nullable",
"validator",
"validator",
")",
"{",
"this",
"validator",
"=",
"validator",
";",
"}"
] |
[
"return",
"the",
"j",
"s",
"o",
"n",
"object",
"in",
"cache"
] | [
"public",
"static",
"j",
"s",
"o",
"n",
"object",
"get",
"j",
"s",
"o",
"n",
"object",
"(",
"@",
"non",
"null",
"final",
"string",
"key",
")",
"{",
"return",
"get",
"j",
"s",
"o",
"n",
"object",
"(",
"key",
",",
"get",
"default",
"cache",
"disk",... |
[
"returns",
"a",
"module",
"which",
"creates",
"bindings",
"for",
"provider",
"methods",
"from",
"the",
"given",
"object",
"this",
"is",
"useful",
"notably",
"for",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"code",
"google",
"compgoogle",
"-",
"gin",
"\"",
... | [
"public",
"static",
"module",
"for",
"object",
"(",
"object",
"object",
")",
"{",
"/",
"/",
"avoid",
"infinite",
"recursion",
",",
"since",
"installing",
"a",
"module",
"always",
"installs",
"itself",
"if",
"(",
"object",
"instanceof",
"provider",
"methods",
... |
[
"switches",
"the",
"{",
"@",
"link",
"thread",
"#",
"get",
"context",
"class",
"loader",
"(",
")",
"context",
"class",
"loader",
"}",
"for",
"the",
"managed",
"resources",
"{",
"@",
"link",
"class",
"loader",
"}",
"before",
"allowing",
"the",
"invocation",... | [
"public",
"void",
"set",
"attribute",
"(",
"attribute",
"attribute",
")",
"throws",
"attribute",
"not",
"found",
"exception",
",",
"invalid",
"attribute",
"value",
"exception",
",",
"m",
"bean",
"exception",
",",
"reflection",
"exception",
"{",
"class",
"loader"... |
[
"model",
"tests",
"for",
"special",
"model",
"name"
] | [
"public",
"void",
"test",
"special",
"model",
"name",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"special",
"model",
"name",
"}"
] |
[
"add",
"the",
"given",
"filter",
"to",
"the",
"end",
"of",
"the",
"filter",
"chain",
"filter",
"functions",
"are",
"typically",
"used",
"to",
"invoke",
"methods",
"on",
"the",
"statement",
"before",
"it",
"is",
"executed",
"for",
"example",
":",
"<",
"pre"... | [
"generic",
"execute",
"spec",
"filter",
"(",
"statement",
"filter",
"function",
"filter",
")",
";"
] |
[
"return",
"the",
"constructed",
"raw",
"path",
"for",
"the",
"give",
"{",
"@",
"link",
"uri",
"}"
] | [
"protected",
"string",
"upgrade",
"url",
"(",
"uri",
"ws",
"u",
"r",
"l",
")",
"{",
"if",
"(",
"absolute",
"upgrade",
"url",
")",
"{",
"return",
"ws",
"u",
"r",
"l",
"to",
"string",
"(",
")",
";",
"}",
"string",
"path",
"=",
"ws",
"u",
"r",
"l"... |
[
"notifies",
"the",
"master",
"node",
"about",
"the",
"completion",
"of",
"a",
"persistent",
"task",
"when",
"{",
"@",
"code",
"failure",
"}",
"is",
"{",
"@",
"code",
"null",
"}",
",",
"the",
"persistent",
"task",
"is",
"considered",
"as",
"successfully",
... | [
"public",
"void",
"send",
"completion",
"request",
"(",
"final",
"string",
"task",
"id",
",",
"final",
"long",
"task",
"allocation",
"id",
",",
"final",
"@",
"nullable",
"exception",
"task",
"failure",
",",
"final",
"action",
"listener",
"<",
"persistent",
"... |
[
"provide",
"default",
"formatted",
"string",
"representation",
"of",
"this",
"instruction"
] | [
"public",
"string",
"to",
"string",
"(",
")",
"{",
"string",
"value",
"representation",
"=",
"get",
"default",
"value",
"representation",
"(",
")",
";",
"string",
"mnemonic",
"string",
"=",
"get",
"mnemonic",
"string",
"(",
")",
";",
"if",
"(",
"value",
... |
[
"adds",
"the",
"given",
"nodes",
"to",
"this",
"node",
"'",
"s",
"children",
"must",
"be",
"called",
"from",
"the",
"swing",
"thread"
] | [
"protected",
"synchronized",
"void",
"do",
"add",
"nodes",
"(",
"list",
"<",
"g",
"tree",
"node",
">",
"nodes",
")",
"{",
"for",
"(",
"g",
"tree",
"node",
"node",
":",
"nodes",
")",
"{",
"node",
"set",
"parent",
"(",
"(",
"g",
"tree",
"node",
")",
... |
[
"sends",
"a",
"sasl",
"negotiation",
"message",
"indicating",
"an",
"invalid",
"key",
"error"
] | [
"private",
"static",
"void",
"send",
"invalid",
"key",
"sasl",
"error",
"message",
"(",
"data",
"output",
"stream",
"out",
",",
"string",
"message",
")",
"throws",
"i",
"o",
"exception",
"{",
"send",
"sasl",
"message",
"(",
"out",
",",
"data",
"transfer",
... |
[
"get",
"result",
"code"
] | [
"public",
"static",
"result",
"code",
"get",
"(",
"byte",
"ordinal",
")",
"{",
"return",
"get",
"(",
"(",
"int",
")",
"ordinal",
")",
";",
"}"
] |
[
"set",
"the",
"error",
"code",
"to",
"the",
"given",
"error",
"code"
] | [
"public",
"void",
"set",
"error",
"code",
"(",
"int",
"error",
"code",
")",
"{",
"this",
"error",
"code",
"=",
"error",
"code",
";",
"}"
] |
[
"get",
"previous",
"bytecode",
"offset"
] | [
"public",
"int",
"get",
"previous",
"offset",
"(",
")",
";"
] |
[
"private",
"helper",
"method",
"to",
"load",
"delegation",
"keys",
"from",
"fsimage"
] | [
"private",
"synchronized",
"void",
"load",
"all",
"keys",
"(",
"data",
"input",
"in",
")",
"throws",
"i",
"o",
"exception",
"{",
"startup",
"progress",
"prog",
"=",
"name",
"node",
"get",
"startup",
"progress",
"(",
")",
";",
"step",
"step",
"=",
"new",
... |
[
"returns",
"the",
"{",
"@",
"link",
"mapped",
"field",
"type",
"}",
"for",
"this",
"config"
] | [
"mapped",
"field",
"type",
"field",
"type",
"(",
")",
"{",
"return",
"field",
"type",
";",
"}"
] |
[
"get",
"the",
"token",
"passwordsecret"
] | [
"public",
"byte",
"[",
"]",
"get",
"password",
"(",
")",
"{",
"return",
"password",
";",
"}"
] |
[
"return",
"the",
"class",
"for",
"a",
"name",
"default",
"is",
"{",
"@",
"link",
"class",
"#",
"for",
"name",
"(",
"string",
")",
"}"
] | [
"public",
"static",
"synchronized",
"class",
"<",
"?",
">",
"get",
"class",
"(",
"string",
"name",
",",
"configuration",
"conf",
")",
"throws",
"i",
"o",
"exception",
"{",
"class",
"<",
"?",
">",
"writable",
"class",
"=",
"name",
"to",
"class",
"get",
... |
[
"where",
"there",
"any",
"search",
"failures",
"?"
] | [
"public",
"final",
"list",
"<",
"search",
"failure",
">",
"get",
"failures",
"(",
")",
"{",
"return",
"failures",
";",
"}"
] |
[
"return",
"true",
"if",
"this",
"additional",
"properties",
"any",
"type",
"object",
"is",
"equal",
"to",
"o"
] | [
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"this",
"=",
"=",
"o",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
"... |
[
"the",
"supplier",
"which",
"provides",
"processor",
"with",
"k",
"table",
"-",
"k",
"table",
"join",
"merge",
"functionality"
] | [
"public",
"k",
"table",
"k",
"table",
"join",
"merger",
"<",
"k",
",",
"vr",
">",
"join",
"merger",
"(",
")",
"{",
"final",
"k",
"table",
"k",
"table",
"join",
"merger",
"<",
"k",
",",
"change",
"<",
"vr",
">",
">",
"merger",
"=",
"merge",
"proce... |
[
"retrieves",
"a",
"blob",
"via",
"a",
"{",
"@",
"link",
"blob",
"cache",
"service",
"}",
"which",
"cannot",
"create",
"incoming",
"files",
"file",
"transfers",
"should",
"fail"
] | [
"private",
"void",
"test",
"get",
"fails",
"incoming",
"(",
"@",
"nullable",
"final",
"job",
"i",
"d",
"job",
"id",
",",
"blob",
"key",
"blob",
"type",
"blob",
"type",
")",
"throws",
"i",
"o",
"exception",
"{",
"assume",
"true",
"(",
"!",
"operating",
... |
[
"updates",
"the",
"(",
"potentially",
"stale",
")",
"priority",
"value",
"cached",
"in",
"this",
"object",
"this",
"should",
"be",
"called",
"when",
"this",
"object",
"is",
"outside",
"the",
"queue"
] | [
"public",
"boolean",
"update",
"level",
"priority",
"(",
")",
"{",
"priority",
"new",
"priority",
"=",
"task",
"handle",
"get",
"priority",
"(",
")",
";",
"priority",
"old",
"priority",
"=",
"priority",
"get",
"and",
"set",
"(",
"new",
"priority",
")",
"... |
[
"test",
"the",
"property",
"'",
"map",
"map",
"anytype",
"'"
] | [
"public",
"void",
"map",
"map",
"anytype",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"map",
"map",
"anytype",
"}"
] |
[
"starts",
"a",
"mini",
"hadoop",
"cluster"
] | [
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"throws",
"i",
"o",
"exception",
",",
"u",
"r",
"i",
"syntax",
"exception",
"{",
"new",
"mini",
"hadoop",
"cluster",
"manager",
"(",
")",
"run",
"(",
"args",
")",
";",
"}"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] | [
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
"... |
[
"raise",
"a",
"non",
"-",
"critical",
"warning"
] | [
"public",
"void",
"warning",
"(",
"string",
"message",
",",
"@",
"nullable",
"object",
"source",
",",
"@",
"nullable",
"parse",
"state",
"parse",
"state",
")",
"{",
"warning",
"(",
"message",
",",
"source",
",",
"parse",
"state",
",",
"null",
")",
";",
... |
[
"converts",
"a",
"bit",
"set",
"of",
"ssa",
"registers",
"into",
"a",
"register",
"spec",
"list",
"containing",
"the",
"definition",
"specs",
"of",
"all",
"the",
"registers"
] | [
"register",
"spec",
"list",
"ssa",
"set",
"to",
"specs",
"(",
"int",
"set",
"ssa",
"set",
")",
"{",
"register",
"spec",
"list",
"result",
"=",
"new",
"register",
"spec",
"list",
"(",
"ssa",
"set",
"elements",
"(",
")",
")",
";",
"int",
"iterator",
"i... |
[
"provide",
"custom",
"argument",
"resolvers",
"this",
"is",
"delegated",
"to",
"{",
"@",
"link",
"standalone",
"mock",
"mvc",
"builder",
"#",
"set",
"custom",
"argument",
"resolvers",
"(",
"handler",
"method",
"argument",
"resolver",
")",
"}"
] | [
"controller",
"spec",
"custom",
"argument",
"resolvers",
"(",
"handler",
"method",
"argument",
"resolver",
"argument",
"resolvers",
")",
";"
] |
[
"updates",
"a",
"pet",
"in",
"the",
"store",
"with",
"form",
"data"
] | [
"public",
"void",
"update",
"pet",
"with",
"form",
"(",
"long",
"pet",
"id",
",",
"string",
"name",
",",
"string",
"status",
")",
"{",
"/",
"/",
"todo",
":",
"implement",
"}"
] |
[
"get",
"the",
"capacity",
",",
"which",
"is",
"the",
"maximum",
"count",
"that",
"could",
"handled",
"without",
"resizing",
"the",
"backing",
"storage"
] | [
"public",
"int",
"get",
"capacity",
"(",
")",
"{",
"return",
"this",
"get",
"(",
")",
"length",
";",
"}"
] |
[
"evaluate",
"this",
"predicate",
"on",
"the",
"given",
"request"
] | [
"boolean",
"test",
"(",
"server",
"request",
"request",
")",
";"
] |
[
"checks",
"whether",
"the",
"given",
"class",
"version",
"number",
"is",
"supported"
] | [
"public",
"static",
"void",
"check",
"version",
"numbers",
"(",
"int",
"class",
"version",
")",
"throws",
"unsupported",
"operation",
"exception",
"{",
"if",
"(",
"class",
"version",
"<",
"class",
"constants",
"class",
"version",
"1",
"0",
"|",
"|",
"class",... |
[
"creates",
"a",
"new",
"async",
"stub",
"that",
"supports",
"all",
"call",
"types",
"for",
"the",
"service"
] | [
"public",
"static",
"unimplemented",
"service",
"stub",
"new",
"stub",
"(",
"io",
"grpc",
"channel",
"channel",
")",
"{",
"io",
"grpc",
"stub",
"abstract",
"stub",
"stub",
"factory",
"<",
"unimplemented",
"service",
"stub",
">",
"factory",
"=",
"new",
"io",
... |
[
"to",
"array",
"(",
"integer",
"array",
")",
"returns",
"an",
"integer",
"array",
"containing",
"all",
"elements",
"from",
"the",
"set"
] | [
"public",
"void",
"test",
"to",
"array",
"2",
"(",
")",
"{",
"collection",
"empty",
"=",
"set",
"(",
")",
";",
"integer",
"[",
"]",
"a",
";",
"int",
"size",
"=",
"20",
";",
"a",
"=",
"new",
"integer",
"[",
"0",
"]",
";",
"assert",
"same",
"(",
... |
[
"get",
"the",
"rolling",
"window",
"specified",
"by",
"metric",
"and",
"user"
] | [
"private",
"rolling",
"window",
"get",
"rolling",
"window",
"(",
"string",
"metric",
",",
"string",
"user",
")",
"{",
"rolling",
"window",
"map",
"rw",
"map",
"=",
"metric",
"map",
"get",
"(",
"metric",
")",
";",
"if",
"(",
"rw",
"map",
"=",
"=",
"nu... |
[
"get",
"name",
"wrapped",
"array"
] | [
"public",
"list",
"<",
"integer",
">",
"get",
"name",
"wrapped",
"array",
"(",
")",
"{",
"return",
"name",
"wrapped",
"array",
";",
"}"
] |
[
"get",
"parent",
"paths",
"(",
"including",
"itself",
")",
"and",
"quotas",
"of",
"the",
"specified",
"federation",
"path",
"only",
"parents",
"containing",
"quota",
"are",
"returned"
] | [
"tree",
"map",
"<",
"string",
",",
"router",
"quota",
"usage",
">",
"get",
"parents",
"containing",
"quota",
"(",
"string",
"child",
"path",
")",
"{",
"tree",
"map",
"<",
"string",
",",
"router",
"quota",
"usage",
">",
"res",
"=",
"new",
"tree",
"map",... |
[
"ensures",
"the",
"specified",
"plugin",
"has",
"a",
"unique",
"name",
"among",
"all",
"plugin",
"classes",
"found",
"in",
"the",
"current",
"class",
"searcher",
"'",
"s",
"reach"
] | [
"public",
"static",
"void",
"assert",
"unique",
"plugin",
"name",
"(",
"class",
"<",
"?",
"extends",
"plugin",
">",
"plugin",
"class",
")",
"throws",
"plugin",
"exception",
"{",
"string",
"plugin",
"name",
"=",
"get",
"plugin",
"name",
"from",
"class",
"("... |
[
"randomize",
"the",
"split",
"order",
",",
"then",
"take",
"the",
"specified",
"number",
"of",
"keys",
"from",
"each",
"split",
"sampled",
",",
"where",
"each",
"key",
"is",
"selected",
"with",
"the",
"specified",
"probability",
"and",
"possibly",
"replaced",
... | [
"public",
"k",
"[",
"]",
"get",
"sample",
"(",
"input",
"format",
"<",
"k",
",",
"v",
">",
"inf",
",",
"job",
"conf",
"job",
")",
"throws",
"i",
"o",
"exception",
"{",
"input",
"split",
"[",
"]",
"splits",
"=",
"inf",
"get",
"splits",
"(",
"job",... |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"charset",
"encoder",
"}",
"for",
"the",
"{",
"@",
"link",
"charset",
"}",
"with",
"specified",
"error",
"actions"
] | [
"public",
"static",
"charset",
"encoder",
"encoder",
"(",
"charset",
"charset",
",",
"coding",
"error",
"action",
"malformed",
"input",
"action",
",",
"coding",
"error",
"action",
"unmappable",
"character",
"action",
")",
"{",
"check",
"not",
"null",
"(",
"cha... |
[
"always",
"returns",
"{",
"@",
"code",
"null",
"}",
"as",
"there",
"is",
"no",
"support",
"for",
"reading",
"a",
"saml",
"token",
"out",
"of",
"a",
"request"
] | [
"public",
"authentication",
"token",
"token",
"(",
"thread",
"context",
"thread",
"context",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"record",
"the",
"saved",
"meta",
"and",
"block",
"files",
"on",
"the",
"given",
"volume"
] | [
"void",
"record",
"saved",
"block",
"files",
"(",
"file",
"[",
"]",
"files",
")",
"{",
"this",
"saved",
"meta",
"file",
"=",
"files",
"[",
"0",
"]",
";",
"this",
"saved",
"block",
"file",
"=",
"files",
"[",
"1",
"]",
";",
"}"
] |
[
"clears",
"all",
"text",
"from",
"the",
"error",
"buffer"
] | [
"void",
"clear",
"resolve",
"errors",
"(",
")",
"{",
"if",
"(",
"error",
"buf",
"length",
"(",
")",
">",
"0",
")",
"{",
"error",
"buf",
"=",
"new",
"string",
"buffer",
"(",
")",
";",
"}",
"}"
] |
[
"returns",
"internal",
"regular",
"expression",
"syntax",
"flag",
"value",
"see",
"{",
"@",
"link",
"regexp",
"flag",
"#",
"value",
"(",
")",
"}"
] | [
"public",
"int",
"get",
"flags",
"value",
"(",
")",
"{",
"return",
"flags",
"value",
";",
"}"
] |
[
"trigger",
"a",
"browser",
"redirect",
"with",
"specific",
"http",
"3xx",
"status",
"code"
] | [
"public",
"void",
"redirect",
"(",
"string",
"location",
",",
"int",
"http",
"status",
"code",
")",
"{",
"if",
"(",
"log",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"log",
"debug",
"(",
"\"",
"redirecting",
"(",
"{",
"}",
"to",
"{",
"}",
"\"",
... |
[
"return",
"the",
"underlying",
"scheduled",
"thread",
"pool",
"executor",
",",
"if",
"available"
] | [
"public",
"scheduled",
"thread",
"pool",
"executor",
"get",
"scheduled",
"thread",
"pool",
"executor",
"(",
")",
"throws",
"illegal",
"state",
"exception",
"{",
"assert",
"state",
"(",
"this",
"scheduled",
"executor",
"instanceof",
"scheduled",
"thread",
"pool",
... |
[
"the",
"planned",
"capacity",
"for",
"this",
"{",
"@",
"link",
"#",
"get",
"label",
"(",
")",
"}"
] | [
"public",
"int",
"get",
"planned",
"capacity",
"snapshot",
"(",
")",
"{",
"return",
"planned",
"capacity",
"snapshot",
";",
"}"
] |
[
"return",
"true",
"if",
"this",
"additional",
"properties",
"integer",
"object",
"is",
"equal",
"to",
"o"
] | [
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"this",
"=",
"=",
"o",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
"... |
[
"inserts",
"the",
"string",
"representation",
"of",
"the",
"specified",
"{",
"@",
"code",
"char",
"}",
"value",
"at",
"the",
"specified",
"{",
"@",
"code",
"offset",
"}",
"the",
"{",
"@",
"code",
"char",
"}",
"value",
"is",
"converted",
"to",
"a",
"str... | [
"public",
"string",
"builder",
"insert",
"(",
"int",
"offset",
",",
"char",
"c",
")",
"{",
"insert",
"0",
"(",
"offset",
",",
"c",
")",
";",
"return",
"this",
";",
"}"
] |
[
"stop",
"the",
"shared",
"connection"
] | [
"protected",
"void",
"stop",
"shared",
"connection",
"(",
")",
"throws",
"j",
"m",
"s",
"exception",
"{",
"synchronized",
"(",
"this",
"shared",
"connection",
"monitor",
")",
"{",
"this",
"shared",
"connection",
"started",
"=",
"false",
";",
"if",
"(",
"th... |
[
"returns",
"the",
"ratio",
"of",
"cache",
"requests",
"which",
"were",
"hits",
"this",
"is",
"defined",
"as",
"{",
"@",
"code",
"hit",
"count",
"request",
"count",
"}",
",",
"or",
"{",
"@",
"code",
"1",
"0",
"}",
"when",
"{",
"@",
"code",
"request",
... | [
"public",
"double",
"hit",
"rate",
"(",
")",
"{",
"long",
"request",
"count",
"=",
"request",
"count",
"(",
")",
";",
"return",
"(",
"request",
"count",
"=",
"=",
"0",
")",
"?",
"1",
"0",
":",
"(",
"double",
")",
"hit",
"count",
"/",
"request",
"... |
[
"makes",
"sure",
"'",
"<",
"'",
",",
"'",
"&",
"'",
",",
"are",
"escaped"
] | [
"@",
"test",
"public",
"void",
"escape",
"(",
")",
"throws",
"exception",
"{",
"free",
"style",
"project",
"p",
"=",
"r",
"create",
"free",
"style",
"project",
"(",
")",
";",
"p",
"get",
"builders",
"list",
"(",
")",
"add",
"(",
"new",
"test",
"build... |
[
"returns",
"current",
"restore",
"state"
] | [
"public",
"state",
"state",
"(",
")",
"{",
"return",
"state",
";",
"}"
] |
[
"gets",
"the",
"wrapped",
"hadoop",
"input",
"stream"
] | [
"public",
"org",
"apache",
"hadoop",
"fs",
"f",
"s",
"data",
"input",
"stream",
"get",
"hadoop",
"input",
"stream",
"(",
")",
"{",
"return",
"fs",
"data",
"input",
"stream",
";",
"}"
] |
[
"sets",
"the",
"number",
"of",
"label",
"entries",
"for",
"the",
"y",
"-",
"axis",
"max",
"=",
"25",
",",
"min",
"=",
"2",
",",
"default",
":",
"6",
",",
"be",
"aware",
"that",
"this",
"number",
"is",
"not",
"fixed"
] | [
"public",
"void",
"set",
"label",
"count",
"(",
"int",
"count",
")",
"{",
"if",
"(",
"count",
">",
"get",
"axis",
"max",
"labels",
"(",
")",
")",
"count",
"=",
"get",
"axis",
"max",
"labels",
"(",
")",
";",
"if",
"(",
"count",
"<",
"get",
"axis",... |
[
"has",
"the",
"underlying",
"memory",
"required",
"to",
"complete",
"reading",
"been",
"allocated",
"yet",
"?"
] | [
"boolean",
"memory",
"allocated",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.