docstring_tokens list | code_tokens list |
|---|---|
[
"get",
"enum",
"number"
] | [
"public",
"double",
"get",
"enum",
"number",
"(",
")",
"{",
"if",
"(",
"enum",
"number",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"enum",
"number",
"value",
"(",
")",
";",
"}"
] |
[
"the",
"{",
"@",
"code",
"to",
"string",
"(",
")",
"}",
"of",
"{",
"@",
"link",
"component",
"}",
"implementations",
"appear",
"in",
"health",
"check",
"endpoints",
"since",
"these",
"are",
"likely",
"to",
"be",
"exposed",
"in",
"logs",
"and",
"other",
... | [
"@",
"test",
"public",
"void",
"to",
"string",
"contains",
"only",
"summary",
"information",
"(",
")",
"{",
"data",
"source",
"datasource",
"=",
"mock",
"(",
"data",
"source",
"class",
")",
";",
"when",
"(",
"datasource",
"to",
"string",
"(",
")",
")",
... |
[
"finds",
"the",
"child",
"with",
"the",
"specified",
"index",
"and",
"returns",
"it",
"as",
"a",
"float"
] | [
"public",
"float",
"get",
"float",
"(",
"int",
"index",
")",
"{",
"json",
"value",
"child",
"=",
"get",
"(",
"index",
")",
";",
"if",
"(",
"child",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"indexed",
"valu... |
[
"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",
"\"",
"... |
[
"provides",
"an",
"{",
"@",
"link",
"indices",
"client",
"}",
"which",
"can",
"be",
"used",
"to",
"access",
"the",
"indices",
"api",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchreferencecurrentindices",
"html",
... | [
"public",
"final",
"indices",
"client",
"indices",
"(",
")",
"{",
"return",
"indices",
"client",
";",
"}"
] |
[
"check",
"if",
"there",
"was",
"any",
"{",
"@",
"link",
"throwable",
"}",
"received",
"and",
"if",
"so",
"rethrow",
"it"
] | [
"public",
"void",
"check",
"exception",
"(",
")",
"{",
"check",
"exception",
"(",
"void",
"promise",
"(",
")",
")",
";",
"}"
] |
[
"get",
"the",
"selected",
"domain",
"files"
] | [
"domain",
"file",
"[",
"]",
"get",
"selected",
"domain",
"files",
"(",
")",
"{",
"list",
"<",
"domain",
"file",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"checkboxes",
"l... |
[
"verifies",
"that",
"{",
"@",
"link",
"scheduler",
"n",
"g",
"#",
"update",
"task",
"execution",
"state",
"(",
"task",
"execution",
"state",
")",
"}",
"updates",
"the",
"accumulators",
"and",
"metrics",
"for",
"an",
"execution",
"that",
"failed",
"or",
"wa... | [
"public",
"void",
"test",
"accumulators",
"and",
"metrics",
"forwarding",
"(",
")",
"throws",
"exception",
"{",
"final",
"job",
"vertex",
"i",
"d",
"jid",
"1",
"=",
"new",
"job",
"vertex",
"i",
"d",
"(",
")",
";",
"final",
"job",
"vertex",
"i",
"d",
... |
[
"mark",
"a",
"key",
"whose",
"value",
"should",
"be",
"made",
"accessible",
"in",
"agent",
"j",
"v",
"ms"
] | [
"public",
"static",
"void",
"allow",
"on",
"agent",
"(",
"string",
"key",
")",
"{",
"allow",
"on",
"agent",
"add",
"(",
"key",
")",
";",
"}"
] |
[
"closes",
"the",
"given",
"{",
"@",
"link",
"reader",
"}",
",",
"logging",
"any",
"{",
"@",
"code",
"i",
"o",
"exception",
"}",
"that",
"'",
"s",
"thrown",
"rather",
"than",
"propagating",
"it",
"while",
"it",
"'",
"s",
"not",
"safe",
"in",
"the",
... | [
"public",
"static",
"void",
"close",
"quietly",
"(",
"@",
"nullable",
"decl",
"reader",
"reader",
")",
"{",
"try",
"{",
"close",
"(",
"reader",
",",
"true",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"impossible",
")",
"{",
"throw",
"new",
"... |
[
"deletes",
"the",
"action",
"file",
"and",
"its",
"backup"
] | [
"public",
"void",
"delete",
"(",
")",
"{",
"atomic",
"file",
"delete",
"(",
")",
";",
"}"
] |
[
"builds",
"a",
"rest",
"client",
"that",
"will",
"tolerate",
"warnings",
"in",
"the",
"response",
"headers",
"the",
"default",
"is",
"to",
"throw",
"an",
"exception"
] | [
"protected",
"rest",
"client",
"build",
"client",
"(",
"settings",
"settings",
",",
"http",
"host",
"[",
"]",
"hosts",
")",
"throws",
"i",
"o",
"exception",
"{",
"rest",
"client",
"builder",
"builder",
"=",
"rest",
"client",
"builder",
"(",
"hosts",
")",
... |
[
"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",
"\"",
"... |
[
"returns",
"visualized",
"routing",
"rules"
] | [
"public",
"string",
"to",
"string",
"(",
")",
"{",
"/",
"/",
"step",
"1",
"/",
"2",
":",
"dump",
"routers",
"and",
"any",
"method",
"router",
"in",
"order",
"int",
"num",
"routes",
"=",
"size",
"(",
")",
";",
"list",
"<",
"string",
">",
"methods",
... |
[
"returns",
"the",
"enabled",
"and",
"activated",
"administrative",
"monitors",
"accessible",
"to",
"the",
"current",
"user"
] | [
"public",
"list",
"<",
"administrative",
"monitor",
">",
"get",
"active",
"administrative",
"monitors",
"(",
")",
"{",
"if",
"(",
"!",
"jenkins",
"get",
"(",
")",
"has",
"permission",
"(",
"system",
"read",
")",
")",
"{",
"return",
"collections",
"empty",
... |
[
"creates",
"a",
"new",
"long",
"property",
"map",
"with",
"the",
"given",
"name"
] | [
"public",
"long",
"property",
"map",
"create",
"long",
"property",
"map",
"(",
"string",
"property",
"name",
")",
"throws",
"duplicate",
"name",
"exception",
"{",
"lock",
"acquire",
"(",
")",
";",
"try",
"{",
"if",
"(",
"property",
"map",
"cache",
"contain... |
[
"the",
"series",
"of",
"types",
"defined",
"by",
"the",
"package",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"type",
"type",
"=",
"3",
";",
"<",
"code",
">"
] | [
"private",
"void",
"add",
"all",
"type",
"(",
"java",
"lang",
"iterable",
"<",
"?",
"extends",
"com",
"android",
"aapt",
"resources",
"type",
">",
"values",
")",
"{",
"ensure",
"type",
"is",
"mutable",
"(",
")",
";",
"com",
"google",
"protobuf",
"abstrac... |
[
"get",
"the",
"float",
"value",
"contained",
"with",
"this",
"field"
] | [
"public",
"float",
"get",
"float",
"value",
"(",
")",
"{",
"if",
"(",
"float",
"!",
"=",
"data",
"[",
"data",
"type",
"offset",
"]",
")",
"{",
"throw",
"new",
"illegal",
"field",
"access",
"exception",
"(",
")",
";",
"}",
"binary",
"data",
"buffer",
... |
[
"set",
"the",
"coefficient",
"of",
"friction",
"this",
"will",
"not",
"change",
"the",
"friction",
"of",
"existing",
"contacts"
] | [
"public",
"void",
"set",
"friction",
"(",
"float",
"friction",
")",
"{",
"m",
"friction",
"=",
"friction",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"password",
"'"
] | [
"public",
"void",
"password",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"password",
"}"
] |
[
"writes",
"a",
"{",
"@",
"code",
"float",
"}",
"as",
"specified",
"by",
"{",
"@",
"link",
"data",
"output",
"stream",
"#",
"write",
"float",
"(",
"float",
")",
"}",
",",
"except",
"using",
"little",
"-",
"endian",
"byte",
"order"
] | [
"public",
"void",
"write",
"float",
"(",
"float",
"v",
")",
"throws",
"i",
"o",
"exception",
"{",
"write",
"int",
"(",
"float",
"float",
"to",
"int",
"bits",
"(",
"v",
")",
")",
";",
"}"
] |
[
"a",
"variant",
"of",
"{",
"@",
"link",
"#",
"bind",
"to",
"server",
"(",
")",
"}",
"with",
"a",
"pre",
"-",
"configured",
"connector"
] | [
"static",
"builder",
"bind",
"to",
"server",
"(",
"client",
"http",
"connector",
"connector",
")",
"{",
"return",
"new",
"default",
"web",
"test",
"client",
"builder",
"(",
"connector",
")",
";",
"}"
] |
[
"create",
"a",
"new",
"{",
"@",
"link",
"filter",
"}",
"aggregation",
"with",
"the",
"given",
"name"
] | [
"public",
"static",
"filter",
"aggregation",
"builder",
"filter",
"(",
"string",
"name",
",",
"query",
"builder",
"filter",
")",
"{",
"return",
"new",
"filter",
"aggregation",
"builder",
"(",
"name",
",",
"filter",
")",
";",
"}"
] |
[
"put",
"the",
"original",
"tabbing",
"stream",
"back"
] | [
"public",
"tabbing",
"output",
"stream",
"reset",
"output",
"stream",
"(",
"tabbing",
"output",
"stream",
"s",
")",
"{",
"flush",
"(",
")",
";",
"tabbing",
"output",
"stream",
"old",
"=",
"(",
"tabbing",
"output",
"stream",
")",
"this",
"out",
";",
"this... |
[
"just",
"like",
"{",
"@",
"link",
"#",
"stash",
"context",
"(",
")",
"}",
"but",
"no",
"default",
"context",
"is",
"set"
] | [
"public",
"stored",
"context",
"new",
"stored",
"context",
"(",
"boolean",
"preserve",
"response",
"headers",
")",
"{",
"return",
"new",
"stored",
"context",
"(",
"preserve",
"response",
"headers",
",",
"list",
"of",
"(",
")",
")",
";",
"}"
] |
[
"find",
"widget",
"type",
"by",
"tenant",
"id",
",",
"bundle",
"alias",
"and",
"alias"
] | [
"widget",
"type",
"find",
"by",
"tenant",
"id",
"bundle",
"alias",
"and",
"alias",
"(",
"uuid",
"tenant",
"id",
",",
"string",
"bundle",
"alias",
",",
"string",
"alias",
")",
";"
] |
[
"add",
"a",
"state",
"change",
"event",
"to",
"the",
"lifecycle",
"history"
] | [
"private",
"void",
"record",
"lifecycle",
"event",
"(",
")",
"{",
"lifecycle",
"event",
"event",
"=",
"new",
"lifecycle",
"event",
"(",
")",
";",
"event",
"time",
"=",
"system",
"current",
"time",
"millis",
"(",
")",
";",
"event",
"state",
"=",
"get",
... |
[
"entry",
"point",
"for",
"'",
"gradle",
"build",
"ghidra",
"jar",
"'"
] | [
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"throws",
"i",
"o",
"exception",
"{",
"new",
"ghidra",
"jar",
"builder",
"(",
")",
"launch",
"(",
"new",
"ghidra",
"application",
"layout",
"(",
")",
",",
"args",
")",
";",
"}"... |
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"this",
"provider",
"set",
"can",
"have",
"any",
"provider",
",",
"or",
"if",
"it",
"advertises",
"the",
"specific",
"starlark",
"provider",
"requested"
] | [
"public",
"boolean",
"advertises",
"(",
"starlark",
"provider",
"identifier",
"starlark",
"provider",
")",
"{",
"if",
"(",
"can",
"have",
"any",
"provider",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"starlark",
"providers",
"contains",
"(",
... |
[
"with",
"the",
"custom",
"provider",
"configured",
",",
"verify",
"file",
"status",
"attributes",
"a",
"superuser",
"can",
"bypass",
"permission",
"check",
"while",
"resolving",
"paths",
"so",
",",
"verify",
"file",
"status",
"for",
"both",
"superuser",
"and",
... | [
"public",
"void",
"test",
"custom",
"provider",
"(",
")",
"throws",
"exception",
"{",
"final",
"user",
"group",
"information",
"[",
"]",
"users",
"=",
"new",
"user",
"group",
"information",
"[",
"]",
"{",
"user",
"group",
"information",
"create",
"user",
"... |
[
"create",
"user",
"this",
"can",
"only",
"be",
"done",
"by",
"the",
"logged",
"in",
"user"
] | [
"public",
"single",
"<",
"void",
">",
"rx",
"create",
"user",
"(",
"user",
"body",
",",
"api",
"client",
"auth",
"info",
"auth",
"info",
")",
"{",
"return",
"single",
"create",
"(",
"new",
"io",
"vertx",
"rx",
"java",
"single",
"on",
"subscribe",
"adap... |
[
"generate",
"random",
"query",
"results",
"received",
"from",
"the",
"provided",
"number",
"of",
"shards",
",",
"including",
"the",
"provided",
"number",
"of",
"search",
"hits",
"and",
"randomly",
"generated",
"completion",
"suggestions",
"based",
"on",
"the",
"... | [
"private",
"static",
"atomic",
"array",
"<",
"search",
"phase",
"result",
">",
"generate",
"query",
"results",
"(",
"int",
"n",
"shards",
",",
"list",
"<",
"completion",
"suggestion",
">",
"suggestions",
",",
"int",
"search",
"hits",
"size",
",",
"boolean",
... |
[
"create",
"a",
"{",
"@",
"link",
"mock",
"http",
"servlet",
"request",
"builder",
"}",
"for",
"a",
"head",
"request"
] | [
"public",
"static",
"mock",
"http",
"servlet",
"request",
"builder",
"head",
"(",
"uri",
"uri",
")",
"{",
"return",
"new",
"mock",
"http",
"servlet",
"request",
"builder",
"(",
"http",
"method",
"head",
",",
"uri",
")",
";",
"}"
] |
[
"an",
"implementation",
"of",
"{",
"@",
"link",
"executor",
"service",
"#",
"invoke",
"any",
"}",
"for",
"{",
"@",
"link",
"listening",
"executor",
"service",
"}",
"implementations"
] | [
"static",
"<",
"t",
">",
"t",
"invoke",
"any",
"impl",
"(",
"listening",
"executor",
"service",
"executor",
"service",
",",
"collection",
"<",
"?",
"extends",
"callable",
"<",
"t",
">",
">",
"tasks",
",",
"boolean",
"timed",
",",
"long",
"timeout",
",",
... |
[
"reads",
"all",
"input",
"entries",
"from",
"the",
"given",
"class",
"path"
] | [
"private",
"void",
"read",
"input",
"(",
"string",
"message",
"prefix",
",",
"class",
"path",
"class",
"path",
",",
"data",
"entry",
"reader",
"reader",
")",
"throws",
"i",
"o",
"exception",
"{",
"read",
"input",
"(",
"message",
"prefix",
",",
"class",
"... |
[
"test",
"the",
"property",
"'",
"string",
"'"
] | [
"public",
"void",
"string",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"string",
"}"
] |
[
"the",
"collection",
"of",
"index",
"deletions",
"in",
"the",
"cluster"
] | [
"public",
"index",
"graveyard",
"index",
"graveyard",
"(",
")",
"{",
"return",
"custom",
"(",
"index",
"graveyard",
"type",
")",
";",
"}"
] |
[
"create",
"a",
"target",
"pattern",
"{",
"@",
"link",
"sky",
"key",
"}",
"throws",
"{",
"@",
"link",
"target",
"parsing",
"exception",
"}",
"if",
"the",
"provided",
"{",
"@",
"code",
"pattern",
"}",
"cannot",
"be",
"parsed"
] | [
"public",
"static",
"target",
"pattern",
"key",
"key",
"(",
"string",
"pattern",
",",
"filtering",
"policy",
"policy",
",",
"path",
"fragment",
"offset",
")",
"throws",
"target",
"parsing",
"exception",
"{",
"return",
"iterables",
"get",
"only",
"element",
"("... |
[
"this",
"method",
"overrides",
"method",
"invocation",
"to",
"create",
"beans",
"for",
"each",
"method",
"name",
"that",
"takes",
"a",
"class",
"argument"
] | [
"public",
"object",
"invoke",
"method",
"(",
"string",
"name",
",",
"object",
"arg",
")",
"{",
"object",
"[",
"]",
"args",
"=",
"(",
"object",
"[",
"]",
")",
"arg",
";",
"if",
"(",
"\"",
"beans",
"\"",
"equals",
"(",
"name",
")",
"&",
"&",
"args"... |
[
"test",
"the",
"property",
"'",
"byte",
"'"
] | [
"public",
"void",
"byte",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"byte",
"}"
] |
[
"get",
"all",
"the",
"used",
"ports",
"of",
"this",
"supervisor"
] | [
"public",
"set",
"<",
"integer",
">",
"get",
"used",
"ports",
"(",
"supervisor",
"details",
"supervisor",
")",
"{",
"map",
"<",
"string",
",",
"scheduler",
"assignment",
">",
"assignments",
"=",
"this",
"get",
"assignments",
"(",
")",
";",
"set",
"<",
"i... |
[
"check",
"the",
"single",
"value",
"message"
] | [
"private",
"void",
"validate",
"meter",
"data",
"(",
"string",
"name",
",",
"list",
"<",
"label",
">",
"labels",
",",
"double",
"value",
",",
"meter",
"data",
"builder",
"validate",
")",
"{",
"assert",
"assert",
"not",
"null",
"(",
"validate",
")",
";",
... |
[
"sets",
"the",
"{",
"@",
"link",
"texture",
"filter",
"}",
"for",
"this",
"texture",
"for",
"minification",
"and",
"magnification",
"this",
"will",
"bind",
"this",
"texture",
"!"
] | [
"public",
"void",
"set",
"filter",
"(",
"texture",
"filter",
"min",
"filter",
",",
"texture",
"filter",
"mag",
"filter",
")",
"{",
"this",
"min",
"filter",
"=",
"min",
"filter",
";",
"this",
"mag",
"filter",
"=",
"mag",
"filter",
";",
"bind",
"(",
")",... |
[
"a",
"graph",
"that",
"has",
"at",
"least",
"one",
"vertex",
"with",
"no",
"ingoingoutgoing",
"edges"
] | [
"public",
"static",
"data",
"set",
"<",
"edge",
"<",
"long",
",",
"long",
">",
">",
"get",
"long",
"long",
"edge",
"data",
"with",
"zero",
"degree",
"(",
"execution",
"environment",
"env",
")",
"{",
"list",
"<",
"edge",
"<",
"long",
",",
"long",
">",... |
[
"sets",
"a",
"gesture",
"-",
"listener",
"for",
"the",
"chart",
"for",
"custom",
"callbacks",
"when",
"executing",
"gestures",
"on",
"the",
"chart",
"surface"
] | [
"public",
"void",
"set",
"on",
"chart",
"gesture",
"listener",
"(",
"on",
"chart",
"gesture",
"listener",
"l",
")",
"{",
"this",
"m",
"gesture",
"listener",
"=",
"l",
";",
"}"
] |
[
"returns",
"the",
"reference",
"count",
"of",
"an",
"asset"
] | [
"public",
"synchronized",
"int",
"get",
"reference",
"count",
"(",
"string",
"file",
"name",
")",
"{",
"class",
"type",
"=",
"asset",
"types",
"get",
"(",
"file",
"name",
")",
";",
"if",
"(",
"type",
"=",
"=",
"null",
")",
"throw",
"new",
"gdx",
"run... |
[
"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",
"\"",
"... |
[
"model",
"tests",
"for",
"dog"
] | [
"public",
"void",
"test",
"dog",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"dog",
"}"
] |
[
"prepares",
"a",
"child",
"source",
"{",
"@",
"link",
"#",
"on",
"child",
"source",
"info",
"refreshed",
"(",
"object",
",",
"media",
"source",
",",
"timeline",
")",
"}",
"will",
"be",
"called",
"when",
"the",
"child",
"source",
"updates",
"its",
"timeli... | [
"protected",
"final",
"void",
"prepare",
"child",
"source",
"(",
"@",
"unknown",
"null",
"t",
"id",
",",
"media",
"source",
"media",
"source",
")",
"{",
"assertions",
"check",
"argument",
"(",
"!",
"child",
"sources",
"contains",
"key",
"(",
"id",
")",
"... |
[
"configuration",
"entries",
"for",
"a",
"resource"
] | [
"public",
"collection",
"<",
"config",
"entry",
">",
"entries",
"(",
")",
"{",
"return",
"collections",
"unmodifiable",
"collection",
"(",
"entries",
"values",
"(",
")",
")",
";",
"}"
] |
[
"writes",
"an",
"attribute"
] | [
"public",
"void",
"attribute",
"(",
"string",
"name",
",",
"string",
"value",
")",
"{",
"print",
"att",
"(",
"out",
",",
"name",
",",
"value",
")",
";",
"}"
] |
[
"closes",
"the",
"concrete",
"data",
"type",
"if",
"necessary"
] | [
"protected",
"abstract",
"void",
"close",
"(",
"t",
"data",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"create",
"a",
"new",
"{",
"@",
"code",
"k",
"table",
"}",
"by",
"transforming",
"the",
"value",
"of",
"each",
"record",
"in",
"this",
"{",
"@",
"code",
"k",
"table",
"}",
"into",
"a",
"new",
"value",
"(",
"with",
"possibly",
"a",
"new",
"type",
")... | [
"<",
"vr",
">",
"k",
"table",
"<",
"k",
",",
"vr",
">",
"transform",
"values",
"(",
"final",
"value",
"transformer",
"with",
"key",
"supplier",
"<",
"?",
"super",
"k",
",",
"?",
"super",
"v",
",",
"?",
"extends",
"vr",
">",
"transformer",
"supplier",... |
[
"set",
"the",
"<",
"code",
">",
"application",
"a",
"c",
"l",
"<",
"code",
">",
"s",
"for",
"the",
"application"
] | [
"public",
"abstract",
"void",
"set",
"application",
"a",
"c",
"ls",
"(",
"map",
"<",
"application",
"access",
"type",
",",
"string",
">",
"acls",
")",
";"
] |
[
"check",
"if",
"provided",
"context",
"is",
"a",
"default",
"auto",
"-",
"created",
"context"
] | [
"public",
"static",
"boolean",
"is",
"default",
"context",
"(",
"context",
"context",
")",
"{",
"if",
"(",
"context",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"return",
"constants",
"context",
"default",
"name",
"equals",
"(",
"context",
... |
[
"test",
"for",
"b",
"6",
"2",
"0",
"6",
"0",
"7",
"9",
"3",
"verifies",
"constant",
"lambda",
"arguments",
"that",
"were",
"pushed",
"using",
"const",
"0",
"instructions"
] | [
"public",
"void",
"test",
"call",
"lambda",
"with",
"constants",
"(",
")",
"throws",
"exception",
"{",
"assert",
"that",
"(",
"constant",
"arguments",
"in",
"lambda",
"lambda",
"with",
"constant",
"arguments",
"(",
")",
"call",
"(",
"\"",
"test",
"\"",
")"... |
[
"get",
"integer",
"item"
] | [
"public",
"integer",
"get",
"integer",
"item",
"(",
")",
"{",
"return",
"integer",
"item",
";",
"}"
] |
[
"check",
"the",
"source",
"behind",
"this",
"error",
":",
"possibly",
"an",
"{",
"@",
"link",
"exception",
"}",
"(",
"typically",
"{",
"@",
"link",
"org",
"springframework",
"beans",
"property",
"access",
"exception",
"}",
")",
"or",
"a",
"bean",
"validati... | [
"public",
"boolean",
"contains",
"(",
"class",
"<",
"?",
">",
"source",
"type",
")",
"{",
"return",
"(",
"source",
"type",
"is",
"instance",
"(",
"this",
"source",
")",
"|",
"|",
"(",
"this",
"source",
"instanceof",
"throwable",
"&",
"&",
"source",
"ty... |
[
"check",
"the",
"source",
"and",
"target",
"paths",
"to",
"ensure",
"that",
"they",
"are",
"either",
"both",
"in",
"reservedraw",
"or",
"neither",
"in",
"reservedraw",
"if",
"neither",
"src",
"nor",
"target",
"are",
"in",
"reservedraw",
",",
"then",
"return"... | [
"private",
"boolean",
"check",
"paths",
"for",
"reserved",
"raw",
"(",
"path",
"src",
",",
"path",
"target",
")",
"throws",
"path",
"operation",
"exception",
"{",
"final",
"boolean",
"src",
"is",
"r",
"r",
"=",
"path",
"get",
"path",
"without",
"scheme",
... |
[
"disposes",
"the",
"result",
",",
"which",
"releases",
"the",
"reference",
"to",
"any",
"bitmaps"
] | [
"public",
"synchronized",
"void",
"dispose",
"(",
")",
"{",
"closeable",
"reference",
"close",
"safely",
"(",
"m",
"preview",
"bitmap",
")",
";",
"m",
"preview",
"bitmap",
"=",
"null",
";",
"closeable",
"reference",
"close",
"safely",
"(",
"m",
"decoded",
... |
[
"convert",
"tabs",
"in",
"the",
"given",
"string",
"to",
"spaces"
] | [
"public",
"static",
"string",
"convert",
"tabs",
"to",
"spaces",
"(",
"string",
"str",
",",
"int",
"tab",
"size",
")",
"{",
"if",
"(",
"str",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"string",
"buffer",
"buffer",
"=",
"new",
"string",
... |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"public",
"url",
"get",
"u",
"r",
"l",
"(",
"int",
"column",
"index",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"return",
"null",
";",
"}"
] |
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"the",
"metric",
"matches",
"the",
"filter",
";",
"{",
"@",
"code",
"false",
"}",
"otherwise"
] | [
"boolean",
"matches",
"(",
"string",
"name",
",",
"metric",
"metric",
")",
";"
] |
[
"appends",
"the",
"value",
"to",
"the",
"specified",
"{",
"@",
"link",
"string",
"builder",
"}",
",",
"escaping",
"if",
"necessary"
] | [
"char",
"sequence",
"escape",
"(",
"t",
"value",
")",
";"
] |
[
"set",
"git",
"user",
"id"
] | [
"public",
"void",
"set",
"git",
"user",
"id",
"(",
"string",
"git",
"user",
"id",
")",
"{",
"this",
"git",
"user",
"id",
"=",
"git",
"user",
"id",
";",
"}"
] |
[
"adds",
"the",
"costs",
"for",
"network",
"to",
"the",
"current",
"network",
"costs",
"for",
"this",
"costs",
"object"
] | [
"public",
"void",
"add",
"network",
"cost",
"(",
"double",
"bytes",
")",
"{",
"this",
"network",
"cost",
"=",
"(",
"this",
"network",
"cost",
"<",
"0",
"|",
"|",
"bytes",
"<",
"0",
")",
"?",
"unknown",
":",
"this",
"network",
"cost",
"+",
"bytes",
... |
[
"creates",
"a",
"builder",
"operating",
"on",
"a",
"clone",
"of",
"this",
"build",
"options"
] | [
"public",
"builder",
"to",
"builder",
"(",
")",
"{",
"return",
"builder",
"(",
")",
"merge",
"(",
"clone",
"(",
")",
")",
";",
"}"
] |
[
"who",
"is",
"allowed",
"to",
"add",
"to",
"the",
"membership",
"of",
"this",
"group"
] | [
"public",
"group",
"access",
"control",
"get",
"membership",
"addition",
"access",
"control",
"(",
")",
"{",
"if",
"(",
"is",
"v",
"2",
"group",
"(",
")",
")",
"{",
"if",
"(",
"require",
"v",
"2",
"group",
"properties",
"(",
")",
"get",
"decrypted",
... |
[
"tests",
"that",
"remove",
"states",
"physically",
"when",
"put",
"is",
"invoked"
] | [
"public",
"void",
"test",
"physically",
"remove",
"with",
"put",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"test",
"physically",
"remove",
"with",
"function",
"(",
"(",
"map",
",",
"reference",
",",
"i",
")",
"-",
">",
"{",
"map",
"put",
"(",
"... |
[
"gets",
"all",
"logs",
"for",
"a",
"session"
] | [
"public",
"synchronized",
"session",
"logs",
"get",
"all",
"logs",
"for",
"session",
"(",
"session",
"id",
"session",
"id",
")",
"{",
"session",
"logs",
"session",
"logs",
"=",
"new",
"session",
"logs",
"(",
")",
";",
"if",
"(",
"per",
"session",
"driver... |
[
"post",
"fakeouterboolean",
"test",
"serialization",
"of",
"outer",
"boolean",
"types"
] | [
"default",
"response",
"entity",
"<",
"boolean",
">",
"fake",
"outer",
"boolean",
"serialize",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"input",
"boolean",
"as",
"post",
"body",
"\"",
")",
"@",
"valid",
"@",
"request",
"body",
"(",
"required",
... |
[
"returns",
"the",
"path",
"of",
"the",
"ccc",
"source",
"for",
"gcc"
] | [
"public",
"final",
"artifact",
"get",
"source",
"file",
"(",
")",
"{",
"return",
"compile",
"command",
"line",
"get",
"source",
"file",
"(",
")",
";",
"}"
] |
[
"asynchronous",
"version",
"of",
"{",
"@",
"link",
"query",
"#",
"list",
"(",
")",
"}"
] | [
"public",
"async",
"operation",
"query",
"list",
"(",
"query",
"<",
"?",
">",
"query",
")",
"{",
"return",
"query",
"list",
"(",
"query",
",",
"0",
")",
";",
"}"
] |
[
"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",
"\"",
"... |
[
"gets",
"the",
"number",
"of",
"i",
"ds",
"in",
"the",
"checkpoint"
] | [
"public",
"int",
"get",
"num",
"ids",
"(",
")",
"{",
"return",
"num",
"ids",
";",
"}"
] |
[
"returns",
"a",
"value",
"that",
"is",
"unique",
"for",
"a",
"given",
"table",
"column",
"this",
"is",
"different",
"than",
"getting",
"the",
"display",
"name",
",",
"which",
"may",
"be",
"shared",
"by",
"different",
"columns"
] | [
"public",
"string",
"get",
"unique",
"identifier",
"(",
"int",
"column",
")",
";"
] |
[
"get",
"the",
"runtime",
"for",
"the",
"<",
"b",
">",
"shuffle",
"<",
"b",
">",
"phase",
"of",
"the",
"reduce",
"task",
"-",
"attempt"
] | [
"public",
"long",
"get",
"shuffle",
"runtime",
"(",
")",
"{",
"return",
"shuffle",
"time",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"name",
"'"
] | [
"public",
"void",
"name",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"}"
] |
[
"returns",
"the",
"square",
"root",
"of",
"{",
"@",
"code",
"x",
"}",
",",
"rounded",
"with",
"the",
"specified",
"rounding",
"mode"
] | [
"public",
"static",
"int",
"sqrt",
"(",
"int",
"x",
",",
"rounding",
"mode",
"mode",
")",
"{",
"check",
"non",
"negative",
"(",
"\"",
"x",
"\"",
",",
"x",
")",
";",
"int",
"sqrt",
"floor",
"=",
"sqrt",
"floor",
"(",
"x",
")",
";",
"switch",
"(",
... |
[
"get",
"the",
"command",
"-",
"line",
"argument",
"parser"
] | [
"private",
"static",
"argument",
"parser",
"arg",
"parser",
"(",
")",
"{",
"argument",
"parser",
"parser",
"=",
"argument",
"parsers",
"new",
"argument",
"parser",
"(",
"\"",
"transactional",
"-",
"message",
"-",
"copier",
"\"",
")",
"default",
"help",
"(",
... |
[
"returns",
"the",
"set",
"of",
"configuration",
"options",
"that",
"are",
"supported",
"in",
"this",
"module"
] | [
"public",
"immutable",
"list",
"<",
"class",
"<",
"?",
"extends",
"fragment",
"options",
">",
">",
"get",
"configuration",
"options",
"(",
")",
"{",
"return",
"configuration",
"options",
";",
"}"
] |
[
"add",
"cli",
"options",
"which",
"are",
"specific",
"to",
"the",
"failover",
"command",
"and",
"no",
"others"
] | [
"private",
"void",
"add",
"failover",
"cli",
"opts",
"(",
"options",
"failover",
"opts",
")",
"{",
"failover",
"opts",
"add",
"option",
"(",
"forcefence",
",",
"false",
",",
"\"",
"force",
"fencing",
"\"",
")",
";",
"failover",
"opts",
"add",
"option",
"... |
[
"gets",
"signing",
"key",
"setting"
] | [
"protected",
"string",
"get",
"signing",
"key",
"setting",
"(",
")",
"{",
"return",
"\"",
"n",
"/",
"a",
"\"",
";",
"}"
] |
[
"the",
"main",
"driver",
"for",
"sort",
"program",
"invoke",
"this",
"method",
"to",
"submit",
"the",
"mapreduce",
"job"
] | [
"public",
"int",
"run",
"(",
"string",
"[",
"]",
"args",
")",
"throws",
"exception",
"{",
"configuration",
"conf",
"=",
"get",
"conf",
"(",
")",
";",
"job",
"client",
"client",
"=",
"new",
"job",
"client",
"(",
"conf",
")",
";",
"cluster",
"status",
... |
[
"gets",
"a",
"description",
"of",
"the",
"state",
"which",
"is",
"more",
"human",
"-",
"readable",
"than",
"the",
"enum",
"'",
"s",
"name"
] | [
"public",
"string",
"get",
"description",
"(",
")",
"{",
"return",
"description",
";",
"}"
] |
[
"configure",
"a",
"processor",
"function",
"to",
"customize",
"marshaller",
"instances"
] | [
"public",
"void",
"set",
"marshaller",
"processor",
"(",
"function",
"<",
"marshaller",
",",
"marshaller",
">",
"processor",
")",
"{",
"this",
"marshaller",
"processor",
"=",
"this",
"marshaller",
"processor",
"and",
"then",
"(",
"processor",
")",
";",
"}"
] |
[
"apply",
"the",
"given",
"cache",
"seconds",
"and",
"generate",
"respective",
"http",
"headers",
"that",
"is",
",",
"allow",
"caching",
"for",
"the",
"given",
"number",
"of",
"seconds",
"in",
"the",
"case",
"of",
"a",
"positive",
"value",
",",
"prevent",
"... | [
"protected",
"final",
"void",
"apply",
"cache",
"seconds",
"(",
"http",
"servlet",
"response",
"response",
",",
"int",
"cache",
"seconds",
",",
"boolean",
"must",
"revalidate",
")",
"{",
"if",
"(",
"cache",
"seconds",
">",
"0",
")",
"{",
"cache",
"for",
... |
[
"called",
"when",
"the",
"renderer",
"reads",
"a",
"new",
"format"
] | [
"protected",
"void",
"on",
"format",
"changed",
"(",
"format",
"format",
")",
"{",
"}"
] |
[
"register",
"a",
"sub",
"-",
"protocol",
"handler"
] | [
"public",
"void",
"add",
"protocol",
"handler",
"(",
"sub",
"protocol",
"handler",
"handler",
")",
"{",
"list",
"<",
"string",
">",
"protocols",
"=",
"handler",
"get",
"supported",
"protocols",
"(",
")",
";",
"if",
"(",
"collection",
"utils",
"is",
"empty"... |
[
"returns",
"a",
"unique",
"class",
"member",
"name",
",",
"based",
"on",
"the",
"given",
"name",
"and",
"descriptor"
] | [
"private",
"string",
"new",
"unique",
"member",
"name",
"(",
"string",
"name",
",",
"string",
"descriptor",
")",
"{",
"return",
"name",
"equals",
"(",
"class",
"constants",
"method",
"name",
"init",
")",
"?",
"class",
"constants",
"method",
"name",
"init",
... |
[
"get",
"the",
"size",
"of",
"the",
"cache"
] | [
"protected",
"long",
"get",
"cache",
"size",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"this",
"location",
"cache",
"!",
"=",
"null",
")",
"{",
"return",
"this",
"location",
"cache",
"size",
"(",
")",
";",
"}",
"throw",
"new",
"i",
... |
[
"stops",
"the",
"object",
"called",
"after",
"the",
"application",
"is",
"no",
"longer",
"accepting",
"requests"
] | [
"void",
"stop",
"(",
")",
"throws",
"exception",
";"
] |
[
"test",
"if",
"(",
"1",
")",
"the",
"rpc",
"server",
"uses",
"the",
"call",
"idretry",
"provided",
"by",
"the",
"rpc",
"client",
",",
"and",
"(",
"2",
")",
"the",
"rpc",
"client",
"receives",
"the",
"same",
"call",
"idretry",
"from",
"the",
"rpc",
"s... | [
"public",
"void",
"test",
"call",
"id",
"and",
"retry",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"call",
"info",
"info",
"=",
"new",
"call",
"info",
"(",
")",
";",
"/",
"/",
"override",
"client",
"to",
"store",
"the",
"call",
"info",
... |
[
"translate",
"particle",
"given",
"amount",
"continuous",
"collision",
"detection",
"achieved",
"by",
"using",
"ray",
"cast",
"from",
"old",
"pos",
"to",
"new",
"pos"
] | [
"public",
"void",
"translate",
"(",
"float",
"velocity",
"x",
",",
"float",
"velocity",
"y",
")",
"{",
"/",
"*",
"*",
"if",
"velocities",
"squares",
"summed",
"is",
"shorter",
"than",
"epsilon",
"it",
"could",
"lead",
"~",
"0",
"length",
"ray",
"cast",
... |
[
"write",
"variable",
"length",
"bytes",
"to",
"byte",
"buffers"
] | [
"public",
"void",
"write",
"bytes",
"(",
"final",
"byte",
"[",
"]",
"value",
")",
"{",
"byte",
"buf",
"write",
"bytes",
"(",
"value",
")",
";",
"}"
] |
[
"ask",
"this",
"provider",
"for",
"the",
"name",
"servers",
"to",
"query",
"for",
"{",
"@",
"code",
"hostname",
"}"
] | [
"dns",
"server",
"address",
"stream",
"name",
"server",
"address",
"stream",
"(",
"string",
"hostname",
")",
";"
] |
[
"set",
"the",
"owner",
"value"
] | [
"public",
"list",
"result",
"entry",
"schema",
"with",
"owner",
"(",
"final",
"string",
"owner",
")",
"{",
"this",
"owner",
"=",
"owner",
";",
"return",
"this",
";",
"}"
] |
[
"ensures",
"that",
"all",
"nodes",
"in",
"the",
"cluster",
"are",
"connected",
"to",
"each",
"other",
"some",
"network",
"disruptions",
"may",
"leave",
"nodes",
"that",
"are",
"not",
"the",
"master",
"disconnected",
"from",
"each",
"other",
"{",
"@",
"link",... | [
"public",
"static",
"void",
"ensure",
"fully",
"connected",
"cluster",
"(",
"internal",
"test",
"cluster",
"cluster",
")",
"{",
"final",
"string",
"[",
"]",
"node",
"names",
"=",
"cluster",
"get",
"node",
"names",
"(",
")",
";",
"final",
"count",
"down",
... |
[
"create",
"the",
"main",
"panel"
] | [
"private",
"void",
"create",
"(",
")",
"{",
"key",
"listener",
"listener",
"=",
"new",
"key",
"adapter",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"key",
"pressed",
"(",
"key",
"event",
"e",
")",
"{",
"if",
"(",
"e",
"get",
"key",
"code",
"... |
[
"gets",
"the",
"broadcast",
"data",
"set",
"registered",
"under",
"the",
"given",
"name",
"broadcast",
"data",
"sets",
"are",
"available",
"on",
"all",
"parallel",
"instances",
"of",
"a",
"function",
"they",
"can",
"be",
"registered",
"via",
"{",
"@",
"link"... | [
"public",
"<",
"t",
">",
"collection",
"<",
"t",
">",
"get",
"broadcast",
"set",
"(",
"string",
"name",
")",
"{",
"return",
"this",
"runtime",
"context",
"get",
"broadcast",
"variable",
"(",
"name",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.