docstring_tokens list | code_tokens list |
|---|---|
[
"makes",
"sure",
"that",
"the",
"given",
"info",
"collection",
"has",
"a",
"{",
"@",
"link",
"cc",
"toolchain",
"provider",
"}",
"(",
"gives",
"an",
"error",
"otherwise",
")",
",",
"and",
"returns",
"a",
"reference",
"to",
"that",
"{",
"@",
"link",
"cc... | [
"public",
"static",
"cc",
"toolchain",
"provider",
"get",
"toolchain",
"(",
"rule",
"context",
"rule",
"context",
",",
"string",
"toolchain",
"attribute",
")",
"{",
"if",
"(",
"!",
"rule",
"context",
"is",
"attr",
"defined",
"(",
"toolchain",
"attribute",
",... |
[
"tries",
"to",
"copy",
"the",
"given",
"record",
"from",
"using",
"the",
"provided",
"kryo",
"instance",
"if",
"this",
"fails",
",",
"then",
"the",
"record",
"from",
"is",
"copied",
"by",
"serializing",
"it",
"into",
"a",
"byte",
"buffer",
"and",
"deserial... | [
"public",
"static",
"<",
"t",
">",
"t",
"copy",
"(",
"t",
"from",
",",
"t",
"reuse",
",",
"kryo",
"kryo",
",",
"type",
"serializer",
"<",
"t",
">",
"serializer",
")",
"{",
"try",
"{",
"return",
"kryo",
"copy",
"(",
"from",
")",
";",
"}",
"catch",... |
[
"an",
"alternative",
"to",
"{",
"@",
"link",
"#",
"from",
"method",
"(",
"class",
",",
"method",
",",
"object",
")",
"}",
"that",
"accepts",
"a",
"{",
"@",
"code",
"uri",
"components",
"builder",
"}",
"representing",
"the",
"base",
"url",
"this",
"is",... | [
"public",
"static",
"uri",
"components",
"builder",
"from",
"method",
"(",
"uri",
"components",
"builder",
"base",
"url",
",",
"@",
"nullable",
"class",
"<",
"?",
">",
"controller",
"type",
",",
"method",
"method",
",",
"object",
"args",
")",
"{",
"return"... |
[
"set",
"the",
"scripts",
"to",
"be",
"loaded",
"by",
"the",
"script",
"engine",
"(",
"library",
"or",
"user",
"provided",
")",
"since",
"{",
"@",
"code",
"resource",
"loader",
"path",
"}",
"default",
"value",
"is",
"\"",
"classpath",
":",
"\"",
",",
"y... | [
"public",
"void",
"set",
"scripts",
"(",
"@",
"nullable",
"string",
"script",
"names",
")",
"{",
"this",
"scripts",
"=",
"script",
"names",
";",
"}"
] |
[
"test",
"that",
"server",
"default",
"values",
"are",
"cached",
"on",
"the",
"client",
"size",
"and",
"are",
"stale",
"after",
"namenode",
"update"
] | [
"public",
"void",
"test",
"server",
"defaults",
"with",
"caching",
"(",
")",
"throws",
"i",
"o",
"exception",
",",
"interrupted",
"exception",
"{",
"/",
"/",
"create",
"cluster",
"with",
"an",
"explicit",
"block",
"size",
"param",
"configuration",
"cluster",
... |
[
"adds",
"a",
"range",
"of",
"addresses",
"to",
"this",
"set"
] | [
"public",
"void",
"add",
"range",
"(",
"program",
"program",
",",
"address",
"start",
",",
"address",
"end",
")",
"{",
"if",
"(",
"start",
"get",
"address",
"space",
"(",
")",
"equals",
"(",
"end",
"get",
"address",
"space",
"(",
")",
")",
")",
"{",
... |
[
"get",
"the",
"number",
"of",
"lines",
"per",
"split"
] | [
"public",
"static",
"int",
"get",
"num",
"lines",
"per",
"split",
"(",
"job",
"context",
"job",
")",
"{",
"return",
"job",
"get",
"configuration",
"(",
")",
"get",
"int",
"(",
"lines",
"per",
"map",
",",
"1",
")",
";",
"}"
] |
[
"calculates",
"the",
"delay",
"in",
"millis",
"between",
"\"",
"now",
"\"",
"and",
"the",
"next",
"execution"
] | [
"time",
"value",
"next",
"execution",
"delay",
"(",
"zoned",
"date",
"time",
"now",
")",
";"
] |
[
"tests",
"that",
"the",
"last",
"heartbeat",
"from",
"an",
"unregistered",
"target",
"equals",
"-",
"1"
] | [
"public",
"void",
"test",
"last",
"heartbeat",
"from",
"unregistered",
"target",
"(",
")",
"{",
"final",
"long",
"heartbeat",
"timeout",
"=",
"100l",
";",
"final",
"resource",
"i",
"d",
"resource",
"id",
"=",
"resource",
"i",
"d",
"generate",
"(",
")",
"... |
[
"put",
"fakebody",
"-",
"with",
"-",
"file",
"-",
"schema"
] | [
"public",
"<",
"t",
">",
"t",
"execute",
"(",
"function",
"<",
"response",
",",
"t",
">",
"handler",
")",
"{",
"return",
"handler",
"apply",
"(",
"rest",
"assured",
"given",
"(",
")",
"spec",
"(",
"req",
"spec",
"build",
"(",
")",
")",
"expect",
"(... |
[
"synchronously",
"get",
"application",
"privilege",
"(",
"s",
")",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchreferencecurrentsecurity",
"-",
"api",
"-",
"get",
"-",
"privileges",
"html",
"\"",
">",
"the",
"docs"... | [
"public",
"get",
"privileges",
"response",
"get",
"privileges",
"(",
"final",
"get",
"privileges",
"request",
"request",
",",
"final",
"request",
"options",
"options",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"rest",
"high",
"level",
"client",
"per... |
[
"log",
"a",
"message",
"object",
"at",
"the",
"info",
"level"
] | [
"public",
"void",
"info",
"(",
"string",
"msg",
")",
"{",
"if",
"(",
"logger",
"is",
"loggable",
"(",
"level",
"info",
")",
")",
"{",
"log",
"(",
"self",
",",
"level",
"info",
",",
"msg",
",",
"null",
")",
";",
"}",
"}"
] |
[
"tests",
"that",
"savepoint",
"loading",
"fails",
"when",
"there",
"is",
"non",
"-",
"restored",
"state",
",",
"but",
"it",
"is",
"not",
"allowed"
] | [
"public",
"void",
"test",
"non",
"restored",
"state",
"when",
"disallowed",
"(",
")",
"throws",
"exception",
"{",
"final",
"operator",
"i",
"d",
"operator",
"id",
"=",
"new",
"operator",
"i",
"d",
"(",
")",
";",
"final",
"int",
"parallelism",
"=",
"9",
... |
[
"handle",
"the",
"split",
"changes",
"this",
"call",
"should",
"be",
"non",
"-",
"blocking"
] | [
"void",
"handle",
"splits",
"changes",
"(",
"splits",
"change",
"<",
"split",
"t",
">",
"splits",
"changes",
")",
";"
] |
[
"the",
"set",
"of",
"arityplural",
"mappings",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"plural",
"entry",
"entry",
"=",
"1",
";",
"<",
"code",
">"
] | [
"private",
"void",
"clear",
"entry",
"(",
")",
"{",
"entry",
"=",
"empty",
"protobuf",
"list",
"(",
")",
";",
"}"
] |
[
"records",
"cache",
"misses",
"this",
"should",
"be",
"called",
"when",
"a",
"cache",
"request",
"returns",
"a",
"value",
"that",
"was",
"not",
"found",
"in",
"the",
"cache",
"this",
"method",
"should",
"be",
"called",
"by",
"the",
"loading",
"thread",
","... | [
"void",
"record",
"misses",
"(",
"int",
"count",
")",
";"
] |
[
"modify",
"the",
"application",
"context",
"'",
"s",
"internal",
"bean",
"definition",
"registry",
"after",
"its",
"standard",
"initialization",
"all",
"regular",
"bean",
"definitions",
"will",
"have",
"been",
"loaded",
",",
"but",
"no",
"beans",
"will",
"have",... | [
"void",
"post",
"process",
"bean",
"definition",
"registry",
"(",
"bean",
"definition",
"registry",
"registry",
")",
"throws",
"beans",
"exception",
";"
] |
[
"verify",
"quota",
"for",
"adding",
"or",
"moving",
"a",
"new",
"i",
"node",
"with",
"required",
"namespace",
"and",
"storagespace",
"to",
"a",
"given",
"position"
] | [
"static",
"void",
"verify",
"quota",
"(",
"i",
"nodes",
"in",
"path",
"iip",
",",
"int",
"pos",
",",
"quota",
"counts",
"deltas",
",",
"i",
"node",
"common",
"ancestor",
")",
"throws",
"quota",
"exceeded",
"exception",
"{",
"if",
"(",
"deltas",
"get",
... |
[
"setter",
"for",
"y"
] | [
"public",
"void",
"set",
"i",
"(",
"integer",
"i",
")",
"{",
"this",
"i",
"=",
"i",
";",
"}"
] |
[
"returns",
"the",
"total",
"length",
"of",
"the",
"extra",
"data",
"record",
"in",
"bytes"
] | [
"public",
"int",
"get",
"length",
"(",
")",
"{",
"return",
"get",
"data",
"length",
"(",
")",
"+",
"fixed",
"data",
"size",
";",
"}"
] |
[
"format",
":",
"-",
"-",
"<",
"key",
">",
"=",
"<",
"value",
">"
] | [
"public",
"desugar",
"rule",
"builder",
"add",
"command",
"options",
"(",
"string",
"key",
",",
"string",
"value",
")",
"{",
"custom",
"command",
"options",
"put",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"get",
"an",
"individual",
"field",
"in",
"the",
"composite"
] | [
"public",
"j",
"text",
"field",
"get",
"field",
"(",
"int",
"i",
")",
"{",
"return",
"linked",
"fields",
"get",
"(",
"i",
")",
"field",
";",
"}"
] |
[
"for",
"internal",
"usage",
"only",
"!",
"extracts",
"the",
"inner",
"hits",
"from",
"the",
"query",
"tree",
"while",
"it",
"extracts",
"inner",
"hits",
",",
"child",
"inner",
"hits",
"are",
"inlined",
"into",
"the",
"inner",
"hit",
"builder",
"they",
"bel... | [
"protected",
"void",
"extract",
"inner",
"hit",
"builders",
"(",
"map",
"<",
"string",
",",
"inner",
"hit",
"context",
"builder",
">",
"inner",
"hits",
")",
"{",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"public",
"int",
"hash",
"code",
"(",
")",
"{",
"return",
"string",
"hash",
"code",
"(",
")",
";",
"}"
] |
[
"returns",
"whether",
"configurations",
"should",
"trim",
"their",
"fragments",
"to",
"only",
"those",
"needed",
"by",
"targets",
"and",
"their",
"transitive",
"dependencies"
] | [
"private",
"static",
"boolean",
"use",
"untrimmed",
"configs",
"(",
"build",
"options",
"options",
")",
"{",
"return",
"options",
"get",
"(",
"core",
"options",
"class",
")",
"configs",
"mode",
"=",
"=",
"core",
"options",
"configs",
"mode",
"notrim",
";",
... |
[
"green",
"channel",
",",
"it",
"will",
"skip",
"all",
"of",
"interceptors"
] | [
"public",
"postcard",
"green",
"channel",
"(",
")",
"{",
"this",
"green",
"channel",
"=",
"true",
";",
"return",
"this",
";",
"}"
] |
[
"shallow",
"tuple",
"copy"
] | [
"public",
"tuple",
"1",
"2",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
">",
"copy",
"(",
")",
"{",
"return",
"new",
"tuple",
"1",
"2",
"<",
">",
... |
[
",",
",",
"。"
] | [
"public",
"static",
"rate",
"limiter",
"rate",
"limiter",
"(",
"int",
"permits",
"per",
"second",
")",
"{",
"return",
"rate",
"limiter",
"create",
"(",
"permits",
"per",
"second",
")",
";",
"}"
] |
[
"return",
"the",
"type",
"of",
"the",
"newly",
"created",
"array"
] | [
"public",
"constant",
"get",
"constant",
"(",
")",
"{",
"return",
"array",
"type",
";",
"}"
] |
[
"sets",
"extra",
"data"
] | [
"public",
"void",
"set",
"extra",
"data",
"(",
"string",
"extra",
"data",
")",
"{",
"this",
"extra",
"data",
"=",
"extra",
"data",
";",
"}"
] |
[
"deserialize",
"the",
"fields",
"of",
"this",
"object",
"from",
"<",
"code",
">",
"in",
"<",
"code",
">",
"for",
"efficiency",
",",
"implementations",
"should",
"attempt",
"to",
"re",
"-",
"use",
"storage",
"in",
"the",
"existing",
"object",
"where",
"poss... | [
"void",
"read",
"fields",
"(",
"data",
"input",
"in",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"returns",
"the",
"base",
"url",
"(",
"schema",
":",
"host",
":",
"port",
")",
"of",
"the",
"test",
"jetty",
"server",
"(",
"see",
"{",
"@",
"link",
"#",
"get",
"jetty",
"server",
"(",
")",
"}",
")",
"once",
"started"
] | [
"public",
"static",
"url",
"get",
"jetty",
"u",
"r",
"l",
"(",
")",
"{",
"test",
"jetty",
"helper",
"helper",
"=",
"test",
"jetty",
"tl",
"get",
"(",
")",
";",
"if",
"(",
"helper",
"=",
"=",
"null",
"|",
"|",
"helper",
"server",
"=",
"=",
"null",... |
[
"destroy",
"all",
"the",
"resources",
",",
"including",
"registries",
"and",
"protocols"
] | [
"public",
"void",
"do",
"destroy",
"(",
")",
"{",
"/",
"/",
"dispatch",
"the",
"dubbo",
"destroyed",
"event",
"@",
"since",
"2",
"7",
"5",
"dispatch",
"(",
"new",
"dubbo",
"service",
"destroyed",
"event",
"(",
"this",
")",
")",
";",
"}"
] |
[
"get",
"all",
"of",
"the",
"applications",
"'",
"s",
"settings",
"directories",
"(",
"<",
"tt",
">",
"application",
"name",
"version",
"<",
"tt",
">",
")",
"for",
"various",
"versions",
"in",
"descending",
"order",
"by",
"the",
"modification",
"time",
"in"... | [
"private",
"static",
"list",
"<",
"file",
">",
"get",
"user",
"settings",
"dirs",
"by",
"time",
"(",
")",
"{",
"file",
"user",
"data",
"directory",
"=",
"application",
"get",
"user",
"settings",
"directory",
"(",
")",
";",
"file",
"user",
"data",
"dir",
... |
[
"return",
"if",
"a",
"c",
"ls",
"are",
"enabled",
"for",
"the",
"map",
"reduce",
"system"
] | [
"boolean",
"are",
"acls",
"enabled",
"(",
")",
"{",
"return",
"are",
"acls",
"enabled",
";",
"}"
] |
[
"returns",
"an",
"instance",
"which",
"specifies",
"that",
"ordering",
"is",
"guaranteed",
"to",
"be",
"always",
"be",
"the",
"same",
"across",
"iterations",
",",
"and",
"across",
"releases",
"some",
"methods",
"may",
"have",
"stronger",
"guarantees",
"this",
... | [
"public",
"static",
"<",
"s",
">",
"element",
"order",
"<",
"s",
">",
"stable",
"(",
")",
"{",
"return",
"new",
"element",
"order",
"<",
"s",
">",
"(",
"type",
"stable",
",",
"null",
")",
";",
"}"
] |
[
"model",
"tests",
"for",
"map",
"test"
] | [
"public",
"void",
"test",
"map",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"map",
"test",
"}"
] |
[
"for",
"the",
"purposes",
"of",
"unit",
"tests",
",",
"we",
"want",
"to",
"test",
"login",
"from",
"keytab",
"and",
"don",
"'",
"t",
"want",
"to",
"wait",
"until",
"the",
"renew",
"window",
"(",
"controlled",
"by",
"ticket",
"renew",
"window",
")"
] | [
"public",
"static",
"void",
"set",
"should",
"renew",
"immediately",
"for",
"tests",
"(",
"boolean",
"immediate",
")",
"{",
"should",
"renew",
"immediately",
"for",
"tests",
"=",
"immediate",
";",
"}"
] |
[
"determine",
"if",
"this",
"instance",
"only",
"contains",
"a",
"single",
"attribute",
"named",
"{",
"@",
"code",
"value",
"}"
] | [
"boolean",
"has",
"only",
"value",
"attribute",
"(",
")",
"{",
"return",
"(",
"this",
"attribute",
"methods",
"length",
"=",
"=",
"1",
"&",
"&",
"merged",
"annotation",
"value",
"equals",
"(",
"this",
"attribute",
"methods",
"[",
"0",
"]",
"get",
"name",... |
[
"puts",
"some",
"abstract",
"types",
"of",
"{",
"@",
"link",
"#",
"current",
"frame",
"}",
"in",
"{",
"@",
"link",
"#",
"stack",
"map",
"table",
"entries",
"}",
",",
"using",
"the",
"jvms",
"verification",
"type",
"info",
"format",
"used",
"in",
"stack... | [
"private",
"void",
"put",
"abstract",
"types",
"(",
"final",
"int",
"start",
",",
"final",
"int",
"end",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"start",
";",
"i",
"<",
"end",
";",
"+",
"+",
"i",
")",
"{",
"frame",
"put",
"abstract",
"type",
"(",
... |
[
"set",
"symlink",
"bytes",
"for",
"this",
"entity",
"(",
"default",
"=",
"null",
")"
] | [
"public",
"builder",
"symlink",
"(",
"byte",
"[",
"]",
"symlink",
")",
"{",
"this",
"symlink",
"=",
"null",
"=",
"=",
"symlink",
"?",
"null",
":",
"arrays",
"copy",
"of",
"(",
"symlink",
",",
"symlink",
"length",
")",
";",
"return",
"this",
";",
"}"
... |
[
"the",
"set",
"of",
"attribute",
"declarations",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"styleable",
"entry",
"entry",
"=",
"1",
";",
"<",
"code",
">"
] | [
"private",
"void",
"set",
"entry",
"(",
"int",
"index",
",",
"com",
"android",
"aapt",
"resources",
"styleable",
"entry",
"builder",
"builder",
"for",
"value",
")",
"{",
"ensure",
"entry",
"is",
"mutable",
"(",
")",
";",
"entry",
"set",
"(",
"index",
","... |
[
"apply",
"a",
"force",
"to",
"the",
"center",
"of",
"mass",
"this",
"wakes",
"up",
"the",
"body"
] | [
"public",
"void",
"apply",
"force",
"to",
"center",
"(",
"float",
"force",
"x",
",",
"float",
"force",
"y",
",",
"boolean",
"wake",
")",
"{",
"tmp",
"set",
"(",
"force",
"x",
",",
"force",
"y",
")",
";",
"body",
"apply",
"force",
"to",
"center",
"(... |
[
"this",
"is",
"a",
"test",
"-",
"only",
"back",
"door",
"which",
"resets",
"the",
"state",
"and",
"binds",
"to",
"a",
"token",
"again",
"this",
"allows",
"an",
"instance",
"of",
"this",
"class",
"to",
"be",
"bonded",
"to",
"a",
"dt",
"after",
"being",
... | [
"void",
"reset",
"token",
"binding",
"to",
"d",
"t",
"(",
"final",
"token",
"<",
"abstract",
"s",
"3",
"a",
"token",
"identifier",
">",
"token",
")",
"throws",
"i",
"o",
"exception",
"{",
"credential",
"providers",
"=",
"optional",
"empty",
"(",
")",
"... |
[
"tests",
"that",
"a",
"non",
"existing",
"path",
"throws",
"an",
"exception"
] | [
"public",
"void",
"test",
"get",
"non",
"existing",
"path",
"(",
")",
"throws",
"exception",
"{",
"final",
"testing",
"long",
"state",
"handle",
"helper",
"state",
"handle",
"provider",
"=",
"new",
"testing",
"long",
"state",
"handle",
"helper",
"(",
")",
... |
[
"is",
"reference",
"bean",
"?"
] | [
"public",
"boolean",
"is",
"reference",
"(",
"object",
"bean",
",",
"string",
"bean",
"name",
")",
"throws",
"framework",
"exception",
"{",
"string",
"bean",
"class",
"name",
"=",
"bean",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
";",
"return",
... |
[
"recover",
"resource",
"request",
"back",
"from",
"r",
"m",
"container",
"when",
"a",
"container",
"is",
"preempted",
"before",
"am",
"pulled",
"the",
"same",
"if",
"container",
"is",
"pulled",
"by",
"am",
",",
"then",
"r",
"m",
"container",
"will",
"not",... | [
"private",
"void",
"recover",
"resource",
"request",
"for",
"container",
"(",
"r",
"m",
"container",
"rm",
"container",
")",
"{",
"container",
"request",
"container",
"request",
"=",
"rm",
"container",
"get",
"container",
"request",
"(",
")",
";",
"/",
"/",
... |
[
"shuts",
"down",
"the",
"mini",
"cluster",
",",
"failing",
"all",
"currently",
"executing",
"jobs",
"the",
"mini",
"cluster",
"can",
"be",
"started",
"again",
"by",
"calling",
"the",
"{",
"@",
"link",
"#",
"start",
"(",
")",
"}",
"method",
"again",
"this... | [
"public",
"completable",
"future",
"<",
"void",
">",
"close",
"async",
"(",
")",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"running",
")",
"{",
"log",
"info",
"(",
"\"",
"shutting",
"down",
"flink",
"mini",
"cluster",
"\"",
")",
";",
"tr... |
[
"returns",
"the",
"byte",
"value",
"of",
"this",
"transport",
"protocol"
] | [
"public",
"byte",
"byte",
"value",
"(",
")",
"{",
"return",
"transport",
"byte",
";",
"}"
] |
[
"get",
"datetime",
"prop"
] | [
"public",
"offset",
"date",
"time",
"get",
"datetime",
"prop",
"(",
")",
"{",
"return",
"datetime",
"prop",
"or",
"else",
"(",
"null",
")",
";",
"}"
] |
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"{",
"@",
"code",
"object",
"}",
"is",
"a",
"{",
"@",
"link",
"hash",
"code",
"}",
"instance",
"with",
"the",
"identical",
"byte",
"representation",
"to",
"this",
"hash",
"code",
"<",
"b",
">",
"securit... | [
"public",
"final",
"boolean",
"equals",
"(",
"@",
"nullable",
"decl",
"object",
"object",
")",
"{",
"if",
"(",
"object",
"instanceof",
"hash",
"code",
")",
"{",
"hash",
"code",
"that",
"=",
"(",
"hash",
"code",
")",
"object",
";",
"return",
"bits",
"("... |
[
"test",
"the",
"property",
"'",
"breed",
"'"
] | [
"public",
"void",
"breed",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"breed",
"}"
] |
[
"test",
"the",
"property",
"'",
"array",
"enum",
"'"
] | [
"public",
"void",
"array",
"enum",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"array",
"enum",
"}"
] |
[
"clears",
"disk",
"cache"
] | [
"public",
"void",
"clear",
"disk",
"cache",
"(",
")",
"{",
"check",
"configuration",
"(",
")",
";",
"configuration",
"disk",
"cache",
"clear",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"java",
"command",
"it",
"can",
"use",
"to",
"launch",
"the",
"decompilers"
] | [
"public",
"static",
"synchronized",
"string",
"get",
"java",
"command",
"(",
")",
"{",
"try",
"{",
"sm",
"stop",
"blocking",
"(",
")",
";",
"process",
"builder",
"pb",
"=",
"new",
"process",
"builder",
"(",
"\"",
"java",
"\"",
",",
"\"",
"-",
"version"... |
[
"creates",
"an",
"instance",
"of",
"an",
"{",
"@",
"link",
"invalid",
"}",
"validation",
"state"
] | [
"public",
"static",
"validated",
"invalid",
"(",
"validation",
"rule",
"rule",
",",
"string",
"message",
")",
"{",
"return",
"new",
"invalid",
"(",
"rule",
",",
"message",
")",
";",
"}"
] |
[
"illustrates",
"the",
"somewhat",
"bizarre",
"behavior",
"when",
"a",
"null",
"is",
"passed",
"in"
] | [
"public",
"void",
"test",
"concat",
"containing",
"null",
"(",
")",
"{",
"@",
"suppress",
"warnings",
"(",
"\"",
"unchecked",
"\"",
")",
"iterator",
"<",
"iterator",
"<",
"integer",
">",
">",
"input",
"=",
"as",
"list",
"(",
"iterate",
"over",
"(",
"1"... |
[
"indicates",
"whether",
"{",
"@",
"code",
"buffered",
"input",
"stream",
"}",
"supports",
"the",
"{",
"@",
"link",
"#",
"mark",
"(",
"int",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"reset",
"(",
")",
"}",
"methods"
] | [
"public",
"boolean",
"mark",
"supported",
"(",
")",
"{",
"return",
"true",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"declawed",
"'"
] | [
"public",
"void",
"declawed",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"declawed",
"}"
] |
[
"default",
":",
"true",
"when",
"true",
",",
"we",
"skip",
"fsync",
"(",
")",
"calls",
"for",
"speed",
"improvements"
] | [
"public",
"builder",
"skip",
"fsync",
"for",
"testing",
"(",
"boolean",
"val",
")",
"{",
"this",
"skip",
"fsync",
"for",
"testing",
"=",
"val",
";",
"return",
"this",
";",
"}"
] |
[
"tests",
"that",
"the",
"kryo",
"output",
"buffer",
"is",
"cleared",
"in",
"case",
"of",
"an",
"exception",
"flink",
"uses",
"the",
"e",
"o",
"f",
"exception",
"to",
"signal",
"that",
"a",
"buffer",
"is",
"full",
"in",
"such",
"a",
"case",
",",
"the",
... | [
"public",
"void",
"test",
"output",
"buffered",
"being",
"cleared",
"in",
"case",
"of",
"exception",
"(",
")",
"throws",
"exception",
"{",
"execution",
"config",
"execution",
"config",
"=",
"new",
"execution",
"config",
"(",
")",
";",
"execution",
"config",
... |
[
"sets",
"the",
"<",
"code",
">",
"name",
"integer",
"<",
"code",
">",
"property"
] | [
"public",
"void",
"set",
"name",
"integer",
"(",
"integer",
"name",
"integer",
")",
"{",
"this",
"name",
"integer",
"=",
"name",
"integer",
";",
"}"
] |
[
"returns",
"whether",
"the",
"flag",
"{",
"@",
"code",
"acc",
"enum",
"}",
"is",
"on",
"in",
"the",
"given",
"flags"
] | [
"public",
"static",
"boolean",
"is",
"enum",
"(",
"int",
"flags",
")",
"{",
"return",
"(",
"flags",
"&",
"acc",
"enum",
")",
"!",
"=",
"0",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"kind",
"'"
] | [
"public",
"void",
"kind",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"kind",
"}"
] |
[
"this",
"command",
"uses",
"post",
"(",
"probably",
"to",
"allow",
"for",
"larger",
"parameters",
")",
"but",
"does",
"not",
"actually",
"modify",
"any",
"state",
"so",
"we",
"do",
"not",
"add",
"csrf",
"protection",
"to",
"it"
] | [
"public",
"void",
"do",
"post",
"(",
"http",
"servlet",
"request",
"request",
",",
"http",
"servlet",
"response",
"response",
")",
"throws",
"servlet",
"exception",
",",
"i",
"o",
"exception",
"{",
"try",
"{",
"long",
"start",
"=",
"system",
"current",
"ti... |
[
"get",
"local",
"address"
] | [
"public",
"inet",
"socket",
"address",
"get",
"local",
"address",
"(",
")",
"{",
"return",
"new",
"rpc",
"context",
"get",
"local",
"address",
"(",
")",
";",
"}"
] |
[
"print",
"a",
"message",
"as",
"an",
"warning"
] | [
"private",
"void",
"warn",
"(",
"string",
"category",
",",
"string",
"message",
",",
"object",
"args",
")",
"{",
"println",
"(",
"\"",
"warning",
":",
"%",
"s",
":",
"%",
"s",
"\"",
",",
"category",
",",
"string",
"format",
"(",
"message",
",",
"args... |
[
"launches",
"a",
"single",
"html",
"selenium",
"test",
"suite"
] | [
"public",
"string",
"run",
"h",
"t",
"m",
"l",
"suite",
"(",
"string",
"browser",
",",
"string",
"start",
"u",
"r",
"l",
",",
"string",
"suite",
"u",
"r",
"l",
",",
"file",
"output",
"file",
",",
"long",
"timeout",
"in",
"seconds",
",",
"string",
"... |
[
"test",
"a",
"command",
"execution",
"timeout",
"where",
"the",
"command",
"implemented",
"get",
"fallback"
] | [
"public",
"void",
"test",
"execution",
"timeout",
"with",
"fallback",
"using",
"semaphore",
"isolation",
"(",
")",
"{",
"test",
"hystrix",
"observable",
"command",
"<",
"integer",
">",
"command",
"=",
"get",
"command",
"(",
"execution",
"isolation",
"strategy",
... |
[
"return",
"an",
"iterable",
"of",
"sky",
"keys",
"corresponding",
"to",
"the",
"aspect",
"-",
"related",
"dependencies",
"of",
"target",
"this",
"method",
"may",
"return",
"a",
"precise",
"set",
"of",
"aspect",
"keys",
",",
"but",
"may",
"need",
"to",
"req... | [
"private",
"iterable",
"<",
"sky",
"key",
">",
"get",
"strict",
"label",
"aspect",
"keys",
"(",
"target",
"target",
",",
"map",
"<",
"sky",
"key",
",",
"value",
"or",
"exception",
"2",
"<",
"no",
"such",
"package",
"exception",
",",
"no",
"such",
"targ... |
[
"model",
"tests",
"for",
"class",
"model"
] | [
"public",
"void",
"test",
"class",
"model",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"class",
"model",
"}"
] |
[
"starts",
"an",
"instance",
"of",
"data",
"node"
] | [
"public",
"void",
"start",
"up",
"(",
")",
"throws",
"i",
"o",
"exception",
",",
"u",
"r",
"i",
"syntax",
"exception",
"{",
"tear",
"down",
"done",
"=",
"false",
";",
"conf",
"=",
"new",
"hdfs",
"configuration",
"(",
")",
";",
"conf",
"set",
"(",
"... |
[
"sets",
"the",
"number",
"of",
"audio",
"frames",
"to",
"trim",
"from",
"the",
"start",
"and",
"end",
"of",
"audio",
"passed",
"to",
"this",
"processor",
"after",
"calling",
"this",
"method",
",",
"call",
"{",
"@",
"link",
"#",
"configure",
"(",
"audio",... | [
"public",
"void",
"set",
"trim",
"frame",
"count",
"(",
"int",
"trim",
"start",
"frames",
",",
"int",
"trim",
"end",
"frames",
")",
"{",
"this",
"trim",
"start",
"frames",
"=",
"trim",
"start",
"frames",
";",
"this",
"trim",
"end",
"frames",
"=",
"trim... |
[
"replace",
"an",
"inode",
"of",
"the",
"given",
"i",
"nodes",
"in",
"path",
"in",
"the",
"given",
"position",
"we",
"do",
"a",
"deep",
"copy",
"of",
"the",
"i",
"node",
"array"
] | [
"public",
"static",
"i",
"nodes",
"in",
"path",
"replace",
"(",
"i",
"nodes",
"in",
"path",
"iip",
",",
"int",
"pos",
",",
"i",
"node",
"inode",
")",
"{",
"preconditions",
"check",
"argument",
"(",
"iip",
"length",
"(",
")",
">",
"0",
"&",
"&",
"po... |
[
"check",
"that",
"no",
"edits",
"files",
"are",
"present",
"in",
"the",
"given",
"storage",
"dirs"
] | [
"private",
"void",
"assert",
"no",
"edit",
"files",
"(",
"iterable",
"<",
"uri",
">",
"dirs",
")",
"throws",
"i",
"o",
"exception",
"{",
"assert",
"edit",
"files",
"(",
"dirs",
",",
"new",
"string",
"[",
"]",
"{",
"}",
")",
";",
"}"
] |
[
"<",
"code",
">",
"optional",
"string",
"value",
"=",
"1",
";",
"<",
"code",
">"
] | [
"private",
"void",
"set",
"value",
"bytes",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
"value",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"bit",
"field",
"0"... |
[
"report",
"1",
"byte",
"read"
] | [
"public",
"int",
"read",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"int",
"read",
"=",
"in",
"read",
"(",
")",
";",
"data",
"counts",
"reporter",
"report",
"bytes",
"read",
"(",
"read",
"<",
"0",
"?",
"0",
":",
"1",
")",
";",
"current",
"po... |
[
"obtains",
"a",
"byte",
"buffer",
"at",
"a",
"given",
"offset"
] | [
"private",
"byte",
"buffer",
"get",
"data",
"(",
"long",
"offset",
",",
"int",
"size",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"buffered",
"file",
"get",
"buffer",
"(",
"offset",
",",
"size",
")",
"order",
"(",
"byte",
"order",
"little",
"... |
[
"test",
"that",
"program",
"diff",
"recognizes",
"that",
"the",
"2",
"programs",
"have",
"the",
"same",
"address",
"spaces"
] | [
"public",
"void",
"test",
"compare",
"same",
"address",
"spaces",
"(",
")",
"throws",
"exception",
"{",
"program",
"builder",
"1",
"create",
"memory",
"(",
"\"",
"d",
"1",
"\"",
",",
"\"",
"0x",
"1",
"0",
"0",
"\"",
",",
"0x",
"1",
"0",
"0",
",",
... |
[
"returns",
"an",
"immutable",
"sorted",
"set",
"containing",
"the",
"elements",
"of",
"a",
"sorted",
"set",
",",
"sorted",
"by",
"the",
"same",
"{",
"@",
"code",
"comparator",
"}",
"that",
"behavior",
"differs",
"from",
"{",
"@",
"link",
"#",
"copy",
"of... | [
"public",
"static",
"<",
"e",
">",
"immutable",
"sorted",
"set",
"<",
"e",
">",
"copy",
"of",
"sorted",
"(",
"sorted",
"set",
"<",
"e",
">",
"sorted",
"set",
")",
"{",
"comparator",
"<",
"?",
"super",
"e",
">",
"comparator",
"=",
"sorted",
"iterables... |
[
"get",
"integer",
"minimum",
":",
"10",
"maximum",
":",
"100"
] | [
"public",
"integer",
"get",
"integer",
"(",
")",
"{",
"return",
"integer",
";",
"}"
] |
[
"materialize",
"this",
"stream",
"to",
"a",
"topic",
"and",
"creates",
"a",
"new",
"{",
"@",
"code",
"k",
"stream",
"}",
"from",
"the",
"topic",
"using",
"the",
"{",
"@",
"link",
"produced",
"}",
"instance",
"for",
"configuration",
"of",
"the",
"{",
"@... | [
"k",
"stream",
"<",
"k",
",",
"v",
">",
"through",
"(",
"final",
"string",
"topic",
",",
"final",
"produced",
"<",
"k",
",",
"v",
">",
"produced",
")",
";"
] |
[
"returns",
"the",
"file",
"extensions",
"that",
"the",
"loader",
"supports",
"(",
"excluding",
"the",
"'",
"'",
")"
] | [
"public",
"string",
"[",
"]",
"get",
"file",
"extensions",
"(",
")",
"{",
"return",
"new",
"string",
"[",
"]",
"{",
"\"",
"json",
"\"",
"}",
";",
"}"
] |
[
"requires",
"{",
"@",
"link",
"feature",
"#",
"fake",
"}",
"to",
"be",
"understood",
"for",
"use",
"in",
"testing",
"consumers",
"of",
"this",
"credential"
] | [
"public",
"builder",
"require",
"fake",
"feature",
"(",
")",
"{",
"fake",
"feature",
"=",
"true",
";",
"return",
"this",
";",
"}"
] |
[
"catalog",
"cas",
"properties",
"container"
] | [
"public",
"static",
"cas",
"properties",
"container",
"query",
"(",
"final",
"configuration",
"metadata",
"catalog",
"query",
"query",
")",
"{",
"val",
"repo",
"=",
"new",
"cas",
"configuration",
"metadata",
"repository",
"(",
")",
";",
"val",
"all",
"properti... |
[
"find",
"pet",
"by",
"id",
"returns",
"a",
"single",
"pet"
] | [
"public",
"void",
"get",
"pet",
"by",
"id",
"(",
"long",
"pet",
"id",
",",
"api",
"client",
"auth",
"info",
"auth",
"info",
",",
"handler",
"<",
"async",
"result",
"<",
"pet",
">",
">",
"result",
"handler",
")",
"{",
"object",
"local",
"var",
"body",... |
[
"look",
"up",
"a",
"handler",
"instance",
"for",
"the",
"given",
"url",
"path",
"this",
"method",
"is",
"used",
"when",
"parsed",
"{",
"@",
"code",
"path",
"pattern",
"}",
"s",
"are",
"{",
"@",
"link",
"#",
"uses",
"path",
"patterns",
"(",
")",
"enab... | [
"protected",
"object",
"lookup",
"handler",
"(",
"request",
"path",
"path",
",",
"string",
"lookup",
"path",
",",
"http",
"servlet",
"request",
"request",
")",
"throws",
"exception",
"{",
"object",
"handler",
"=",
"get",
"direct",
"match",
"(",
"lookup",
"pa... |
[
"get",
"tag",
"value"
] | [
"public",
"string",
"get",
"tag",
"(",
"string",
"tag",
"key",
")",
"{",
"for",
"(",
"meter",
"tag",
"tag",
":",
"meter",
"id",
"get",
"tags",
"(",
")",
")",
"{",
"if",
"(",
"tag",
"get",
"key",
"(",
")",
"equals",
"(",
"tag",
"key",
")",
")",
... |
[
"try",
"to",
"call",
"{",
"@",
"link",
"reference",
"counted",
"#",
"retain",
"(",
"int",
")",
"}",
"if",
"the",
"specified",
"message",
"implements",
"{",
"@",
"link",
"reference",
"counted",
"}",
"if",
"the",
"specified",
"message",
"doesn",
"'",
"t",
... | [
"public",
"static",
"<",
"t",
">",
"t",
"retain",
"(",
"t",
"msg",
",",
"int",
"increment",
")",
"{",
"if",
"(",
"msg",
"instanceof",
"reference",
"counted",
")",
"{",
"return",
"(",
"t",
")",
"(",
"(",
"reference",
"counted",
")",
"msg",
")",
"ret... |
[
"for",
"testing",
",",
"delete",
"all",
"application",
"records",
"in",
"registry"
] | [
"public",
"synchronized",
"void",
"clean",
"all",
"applications",
"(",
")",
"{",
"try",
"{",
"remove",
"key",
"registry",
"(",
"this",
"registry",
",",
"this",
"user",
",",
"get",
"registry",
"key",
"(",
"null",
",",
"null",
")",
",",
"true",
",",
"fal... |
[
"attempts",
"to",
"read",
"from",
"the",
"queue",
"{",
"@",
"link",
"format",
"formats",
"}",
"read",
"from",
"this",
"method",
"may",
"be",
"associated",
"to",
"a",
"{",
"@",
"link",
"drm",
"session",
"}",
"through",
"{",
"@",
"link",
"format",
"holde... | [
"public",
"int",
"read",
"(",
"format",
"holder",
"format",
"holder",
",",
"decoder",
"input",
"buffer",
"buffer",
",",
"boolean",
"format",
"required",
",",
"boolean",
"loading",
"finished",
")",
"{",
"int",
"result",
"=",
"read",
"sample",
"metadata",
"(",... |
[
"return",
"the",
"original",
"filename",
"in",
"the",
"client",
"'",
"s",
"filesystem",
"this",
"may",
"contain",
"path",
"information",
"depending",
"on",
"the",
"browser",
"used",
",",
"but",
"it",
"typically",
"will",
"not",
"with",
"any",
"other",
"than"... | [
"string",
"get",
"original",
"filename",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"there",
"are",
"pending",
"listeners"
] | [
"public",
"boolean",
"refresh",
"needed",
"(",
")",
"{",
"/",
"/",
"a",
"null",
"list",
"doesn",
"'",
"t",
"need",
"a",
"refresh",
"if",
"we",
"'",
"re",
"closed",
"we",
"don",
"'",
"t",
"need",
"a",
"refresh",
"either",
"return",
"refresh",
"listene... |
[
"create",
"open",
"files"
] | [
"public",
"static",
"map",
"<",
"path",
",",
"f",
"s",
"data",
"output",
"stream",
">",
"create",
"open",
"files",
"(",
"file",
"system",
"fs",
",",
"path",
"base",
"dir",
",",
"string",
"file",
"prefix",
",",
"int",
"num",
"files",
"to",
"create",
"... |
[
"add",
"a",
"{",
"@",
"link",
"weather",
"observer",
"}",
",",
"verify",
"if",
"it",
"gets",
"notified",
"of",
"a",
"weather",
"change",
",",
"remove",
"the",
"observer",
"again",
"and",
"verify",
"that",
"there",
"are",
"no",
"more",
"notifications"
] | [
"public",
"void",
"test",
"add",
"remove",
"observer",
"(",
")",
"{",
"final",
"var",
"observer",
"=",
"mock",
"(",
"race",
"class",
")",
";",
"final",
"var",
"weather",
"=",
"new",
"g",
"weather",
"(",
")",
";",
"weather",
"add",
"observer",
"(",
"o... |
[
"sets",
"the",
"quaternion",
"from",
"the",
"given",
"rotation",
"matrix",
",",
"which",
"must",
"not",
"contain",
"scaling"
] | [
"public",
"quaternion",
"set",
"from",
"matrix",
"(",
"matrix",
"4",
"matrix",
")",
"{",
"return",
"set",
"from",
"matrix",
"(",
"false",
",",
"matrix",
")",
";",
"}"
] |
[
"return",
"a",
"collection",
"of",
"action",
"values",
"which",
"have",
"output",
"files",
"that",
"are",
"not",
"in",
"-",
"sync",
"with",
"the",
"on",
"-",
"disk",
"file",
"value",
"(",
"were",
"modified",
"externally",
")"
] | [
"collection",
"<",
"sky",
"key",
">",
"get",
"dirty",
"action",
"values",
"(",
"map",
"<",
"sky",
"key",
",",
"sky",
"value",
">",
"values",
"map",
",",
"@",
"nullable",
"final",
"batch",
"stat",
"batch",
"statter",
",",
"modified",
"file",
"set",
"mod... |
[
"set",
"the",
"angular",
"velocity"
] | [
"public",
"void",
"set",
"angular",
"velocity",
"(",
"float",
"omega",
")",
"{",
"jni",
"set",
"angular",
"velocity",
"(",
"addr",
",",
"omega",
")",
";",
"}"
] |
[
"release",
"the",
"given",
"array",
"back",
"to",
"the",
"pool"
] | [
"void",
"release",
"(",
"@",
"non",
"null",
"int",
"[",
"]",
"array",
")",
";"
] |
[
"the",
"{",
"@",
"link",
"channel",
"}",
"of",
"the",
"{",
"@",
"link",
"channel",
"handler",
"context",
"}",
"was",
"unregistered",
"from",
"its",
"{",
"@",
"link",
"event",
"loop",
"}"
] | [
"void",
"channel",
"unregistered",
"(",
"channel",
"handler",
"context",
"ctx",
")",
"throws",
"exception",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.