docstring_tokens list | code_tokens list |
|---|---|
[
"test",
"the",
"property",
"'",
"quantity",
"'"
] | [
"public",
"void",
"quantity",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"quantity",
"}"
] |
[
"used",
"externally",
"to",
"submit",
"simple",
"task",
"(",
"one",
"that",
"does",
"not",
"have",
"any",
"subtasks",
")",
"depending",
"on",
"the",
"min",
"duration",
"attribute",
"of",
"the",
"task",
"type",
",",
"task",
"may",
"be",
"just",
"aggregated"... | [
"public",
"void",
"log",
"simple",
"task",
"duration",
"(",
"long",
"start",
"time",
"nanos",
",",
"duration",
"duration",
",",
"profiler",
"task",
"type",
",",
"string",
"description",
")",
"{",
"if",
"(",
"should",
"profile",
"(",
"start",
"time",
"nanos... |
[
"if",
"there",
"'",
"s",
"a",
"bug",
"in",
"builder",
"growth",
",",
"we",
"wouldn",
"'",
"t",
"know",
"how",
"to",
"expose",
"it",
"so",
",",
"brute",
"force",
"the",
"hell",
"out",
"of",
"it",
"for",
"a",
"while",
"and",
"see",
"what",
"happens"
... | [
"public",
"void",
"test",
"builder",
"brute",
"force",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"reduce",
"iterations",
"if",
"gwt",
"(",
"100",
")",
";",
"i",
"+",
"+",
")",
"{",
"immutable",
"double",
"array",
"builder",
... |
[
"returns",
"a",
"map",
"of",
"volume",
"set",
"i",
"ds",
"and",
"volume",
"set",
"plans"
] | [
"public",
"list",
"<",
"step",
">",
"get",
"volume",
"set",
"plans",
"(",
")",
"{",
"return",
"volume",
"set",
"plans",
";",
"}"
] |
[
"figures",
"out",
"how",
"many",
"slices",
"the",
"request",
"handling",
"will",
"use"
] | [
"protected",
"int",
"expected",
"slices",
"(",
"int",
"request",
"slices",
",",
"collection",
"<",
"string",
">",
"indices",
")",
"{",
"if",
"(",
"request",
"slices",
"=",
"=",
"abstract",
"bulk",
"by",
"scroll",
"request",
"auto",
"slices",
")",
"{",
"i... |
[
"multiplies",
"the",
"vector",
"with",
"the",
"given",
"matrix",
"the",
"matrix",
"array",
"is",
"assumed",
"to",
"hold",
"a",
"4x",
"4",
"column",
"major",
"matrix",
"as",
"you",
"can",
"get",
"from",
"{",
"@",
"link",
"matrix",
"4",
"#",
"val",
"}",
... | [
"public",
"static",
"void",
"mul",
"vec",
"(",
"float",
"[",
"]",
"mat",
",",
"float",
"[",
"]",
"vec",
")",
"{",
"matrix",
"4",
"mul",
"vec",
"(",
"mat",
",",
"vec",
",",
"0",
")",
";",
"}"
] |
[
"notify",
"listeners",
"of",
"a",
"connection",
"state",
"change"
] | [
"private",
"void",
"fire",
"state",
"changed",
"(",
")",
"{",
"for",
"(",
"remote",
"adapter",
"listener",
"listener",
":",
"listener",
"list",
")",
"{",
"listener",
"connection",
"state",
"changed",
"(",
"this",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"first",
"region",
"found",
"with",
"the",
"specified",
"name",
"this",
"method",
"uses",
"string",
"comparison",
"to",
"find",
"the",
"region",
",",
"so",
"the",
"result",
"should",
"be",
"cached",
"rather",
"than",
"calling",
"this",
"met... | [
"public",
"@",
"null",
"atlas",
"region",
"find",
"region",
"(",
"string",
"name",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"n",
"=",
"regions",
"size",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"if",
"(",
"regions",
"get",
"(",
"i... |
[
"populates",
"{",
"@",
"code",
"fields",
"}",
"with",
"the",
"set",
"of",
"fields",
"used",
"by",
"the",
"query",
",",
"or",
"throws",
"unsupported",
"operation",
"exception",
"if",
"it",
"doesn",
"'",
"t",
"know",
"how",
"to",
"do",
"this"
] | [
"static",
"void",
"extract",
"fields",
"(",
"query",
"query",
",",
"set",
"<",
"string",
">",
"fields",
")",
"throws",
"unsupported",
"operation",
"exception",
"{",
"/",
"/",
"note",
":",
"we",
"expect",
"a",
"rewritten",
"query",
",",
"so",
"we",
"only"... |
[
"add",
"a",
"default",
"cookie"
] | [
"public",
"api",
"client",
"add",
"default",
"cookie",
"(",
"string",
"key",
",",
"string",
"value",
")",
"{",
"default",
"cookie",
"map",
"put",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"returns",
"a",
"contiguous",
"set",
"containing",
"all",
"{",
"@",
"code",
"int",
"}",
"values",
"from",
"{",
"@",
"code",
"lower",
"}",
"(",
"inclusive",
")",
"to",
"{",
"@",
"code",
"upper",
"}",
"(",
"exclusive",
")",
"if",
"the",
"endpoints",
"a... | [
"public",
"static",
"contiguous",
"set",
"<",
"integer",
">",
"closed",
"open",
"(",
"int",
"lower",
",",
"int",
"upper",
")",
"{",
"return",
"create",
"(",
"range",
"closed",
"open",
"(",
"lower",
",",
"upper",
")",
",",
"discrete",
"domain",
"integers"... |
[
"factory",
"for",
"\"",
"32",
"\"",
"version",
"of",
"{",
"@",
"link",
"data",
"high",
"level",
"shader",
"language",
"symbol",
"internals",
"}"
] | [
"public",
"static",
"data",
"high",
"level",
"shader",
"language",
"symbol",
"internals",
"parse",
"3",
"2",
"(",
"abstract",
"pdb",
"pdb",
",",
"pdb",
"byte",
"reader",
"reader",
")",
"throws",
"pdb",
"exception",
"{",
"data",
"high",
"level",
"shader",
"... |
[
"json",
"string",
"deserialize",
"to",
"object"
] | [
"public",
"static",
"<",
"t",
">",
"t",
"to",
"obj",
"(",
"input",
"stream",
"input",
"stream",
",",
"class",
"<",
"t",
">",
"cls",
")",
"{",
"try",
"{",
"return",
"mapper",
"read",
"value",
"(",
"input",
"stream",
",",
"cls",
")",
";",
"}",
"cat... |
[
"takes",
"input",
"as",
"a",
"comma",
"separated",
"list",
"of",
"files",
"and",
"verifies",
"if",
"they",
"exist",
"it",
"defaults",
"for",
"file",
":",
"if",
"the",
"files",
"specified",
"do",
"not",
"have",
"a",
"scheme",
"it",
"returns",
"the",
"path... | [
"private",
"string",
"validate",
"files",
"(",
"string",
"files",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"validate",
"files",
"(",
"files",
",",
"false",
")",
";",
"}"
] |
[
"tests",
"that",
"the",
"zoo",
"keeper",
"state",
"handle",
"store",
"can",
"handle",
"corrupted",
"data",
"by",
"releasing",
"and",
"trying",
"to",
"remove",
"the",
"respective",
"zoo",
"keeper",
"z",
"nodes"
] | [
"public",
"void",
"test",
"corrupted",
"data",
"(",
")",
"throws",
"exception",
"{",
"final",
"testing",
"long",
"state",
"handle",
"helper",
"state",
"storage",
"=",
"new",
"testing",
"long",
"state",
"handle",
"helper",
"(",
")",
";",
"zoo",
"keeper",
"s... |
[
"creates",
"a",
"new",
"dewey",
"number",
"from",
"this",
"such",
"that",
"its",
"last",
"digit",
"is",
"increased",
"by",
"the",
"supplied",
"number"
] | [
"public",
"dewey",
"number",
"increase",
"(",
"int",
"times",
")",
"{",
"int",
"[",
"]",
"new",
"dewey",
"number",
"=",
"arrays",
"copy",
"of",
"(",
"dewey",
"number",
",",
"dewey",
"number",
"length",
")",
";",
"new",
"dewey",
"number",
"[",
"dewey",
... |
[
"put",
"j",
"s",
"o",
"n",
"array",
"in",
"cache"
] | [
"public",
"void",
"put",
"(",
"@",
"non",
"null",
"final",
"string",
"key",
",",
"final",
"j",
"s",
"o",
"n",
"array",
"value",
",",
"final",
"int",
"save",
"time",
")",
"{",
"real",
"put",
"bytes",
"(",
"type",
"json",
"array",
"+",
"key",
",",
... |
[
"creates",
"a",
"{",
"@",
"code",
"data",
"descriptor",
"}",
"view",
"over",
"a",
"writable",
"buffer",
"the",
"given",
"buffers",
"position",
"is",
"advanced",
"by",
"the",
"number",
"of",
"bytes",
"consumed",
"by",
"the",
"view"
] | [
"public",
"static",
"data",
"descriptor",
"view",
"(",
"byte",
"buffer",
"buffer",
")",
"{",
"data",
"descriptor",
"view",
"=",
"new",
"data",
"descriptor",
"(",
"buffer",
"slice",
"(",
")",
")",
"init",
"(",
")",
";",
"buffer",
"position",
"(",
"buffer"... |
[
"plus",
"equal",
"operation",
"(",
"+",
"=",
")"
] | [
"long",
"long",
"plus",
"equal",
"(",
"long",
"long",
"that",
")",
"{",
"this",
"d",
"0",
"+",
"=",
"that",
"d",
"0",
";",
"this",
"d",
"1",
"+",
"=",
"that",
"d",
"1",
";",
"return",
"this",
";",
"}"
] |
[
"a",
"list",
"of",
"namespaces",
"to",
"which",
"this",
"service",
"is",
"exported",
"exporting",
"a",
"service",
"allows",
"it",
"to",
"be",
"used",
"by",
"sidecars",
",",
"gateways",
"and",
"virtual",
"services",
"defined",
"in",
"other",
"namespaces",
"th... | [
"public",
"com",
"google",
"protobuf",
"protocol",
"string",
"list",
"get",
"export",
"to",
"list",
"(",
")",
"{",
"return",
"export",
"to",
"get",
"unmodifiable",
"view",
"(",
")",
";",
"}"
] |
[
"post",
"usercreate",
"with",
"array",
":",
"creates",
"list",
"of",
"users",
"with",
"given",
"input",
"array"
] | [
"com",
"netflix",
"hystrix",
"hystrix",
"command",
"<",
"response",
"entity",
"<",
"void",
">",
">",
"create",
"users",
"with",
"array",
"input",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"list",
"of",
"user",
"object",
"\"",
",",
"required",
... |
[
"builds",
"a",
"program",
"with",
"1",
"function"
] | [
"private",
"program",
"builder",
"build",
"test",
"program",
"2",
"(",
")",
"throws",
"exception",
"{",
"program",
"builder",
"builder",
"=",
"new",
"program",
"builder",
"(",
"\"",
"test",
"pgm",
"1",
"\"",
",",
"program",
"builder",
"toy",
"be",
")",
"... |
[
"set",
"a",
"new",
"set",
"of",
"configurations",
"to",
"the",
"{",
"@",
"link",
"target",
"}",
"only",
"those",
"allowed",
"to",
"be",
"modified",
"will",
"be",
"included",
"in",
"{",
"@",
"link",
"target",
"dynamic",
"config",
"}"
] | [
"public",
"void",
"set",
"target",
"config",
"(",
"target",
"dynamic",
"config",
"dynamic",
"config",
")",
"{",
"if",
"(",
"m",
"use",
"background",
"change",
"sets",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"/",
"/",
"apply",
"change",
"sets",
... |
[
"gets",
"a",
"future",
"that",
"completes",
"once",
"the",
"task",
"execution",
"reaches",
"a",
"terminal",
"state",
"the",
"future",
"will",
"be",
"completed",
"with",
"specific",
"state",
"that",
"the",
"execution",
"reached",
"this",
"future",
"is",
"always... | [
"public",
"completable",
"future",
"<",
"execution",
"state",
">",
"get",
"terminal",
"state",
"future",
"(",
")",
"{",
"return",
"terminal",
"state",
"future",
";",
"}"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"message",
"authentication",
"code",
"(",
"mac",
")",
"algorithm",
",",
"using",
"the",
"sha",
"-",
"256",
"(",
"256",
"hash",
"bits",
")",
"hash",
"function",
"and",
"the",
"given",
"secret",
"key... | [
"public",
"static",
"hash",
"function",
"hmac",
"sha",
"2",
"5",
"6",
"(",
"key",
"key",
")",
"{",
"return",
"new",
"mac",
"hash",
"function",
"(",
"\"",
"hmac",
"s",
"h",
"a",
"2",
"5",
"6",
"\"",
",",
"key",
",",
"hmac",
"to",
"string",
"(",
... |
[
"return",
"the",
"wrapped",
"values"
] | [
"public",
"numeric",
"doc",
"values",
"get",
"long",
"values",
"(",
")",
"{",
"return",
"values",
";",
"}"
] |
[
"saves",
"data",
"in",
"all",
"nested",
"editors"
] | [
"public",
"void",
"do",
"save",
"(",
"i",
"progress",
"monitor",
"monitor",
")",
"{",
"if",
"(",
"!",
"is",
"dirty",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"editor",
"utils",
"is",
"in",
"auto",
"save",
"job",
"(",
")",
")",
"{",
"/... |
[
"check",
"and",
"ensure",
"the",
"buffers",
"are",
"of",
"the",
"desired",
"length",
"and",
"type",
",",
"direct",
"buffers",
"or",
"not"
] | [
"void",
"check",
"output",
"buffers",
"(",
"byte",
"buffer",
"[",
"]",
"buffers",
")",
"{",
"for",
"(",
"byte",
"buffer",
"buffer",
":",
"buffers",
")",
"{",
"if",
"(",
"buffer",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"hadoop",
"illegal",
"argum... |
[
"determine",
"if",
"a",
"class",
"was",
"generated",
"using",
"<",
"code",
">",
"enhancer",
"<",
"code",
">"
] | [
"public",
"static",
"boolean",
"is",
"enhanced",
"(",
"class",
"type",
")",
"{",
"try",
"{",
"get",
"callbacks",
"setter",
"(",
"type",
",",
"set",
"thread",
"callbacks",
"name",
")",
";",
"return",
"true",
";",
"}",
"catch",
"(",
"no",
"such",
"method... |
[
"test",
"of",
"contains",
"all",
"method",
",",
"of",
"class",
"tree",
"set"
] | [
"public",
"void",
"test",
"contains",
"all",
"(",
")",
"{",
"collection",
"<",
"string",
">",
"list",
"=",
"arrays",
"as",
"list",
"(",
"new",
"string",
"[",
"]",
"{",
"\"",
"apa",
"\"",
",",
"\"",
"apa",
"2",
"\"",
",",
"\"",
"apa",
"\"",
"}",
... |
[
"return",
"the",
"database",
"-",
"specific",
"query",
"to",
"use",
"for",
"retrieving",
"a",
"sequence",
"value",
"the",
"provided",
"sql",
"is",
"supposed",
"to",
"result",
"in",
"a",
"single",
"row",
"with",
"a",
"single",
"column",
"that",
"allows",
"f... | [
"protected",
"abstract",
"string",
"get",
"sequence",
"query",
"(",
")",
";"
] |
[
"return",
"the",
"country",
"by",
"sim",
"card"
] | [
"public",
"static",
"string",
"get",
"country",
"by",
"sim",
"(",
")",
"{",
"telephony",
"manager",
"manager",
"=",
"(",
"telephony",
"manager",
")",
"utils",
"get",
"app",
"(",
")",
"get",
"system",
"service",
"(",
"context",
"telephony",
"service",
")",
... |
[
"returns",
"the",
"value",
"by",
"getting",
"the",
"serialized",
"value",
"and",
"deserializing",
"it",
"if",
"it",
"is",
"not",
"null"
] | [
"protected",
"static",
"<",
"v",
",",
"k",
",",
"n",
">",
"v",
"get",
"serialized",
"value",
"(",
"internal",
"kv",
"state",
"<",
"k",
",",
"n",
",",
"v",
">",
"kv",
"state",
",",
"k",
"key",
",",
"type",
"serializer",
"<",
"k",
">",
"key",
"se... |
[
"peeks",
"into",
"the",
"cache",
"'",
"s",
"internals",
"to",
"verify",
"that",
"its",
"eviction",
"queue",
"is",
"consistent",
"verifies",
"that",
"the",
"prevnext",
"links",
"are",
"correct",
",",
"and",
"that",
"all",
"items",
"in",
"each",
"segment",
"... | [
"static",
"void",
"check",
"eviction",
"(",
"cache",
"<",
"?",
",",
"?",
">",
"cache",
")",
"{",
"if",
"(",
"has",
"local",
"cache",
"(",
"cache",
")",
")",
"{",
"check",
"eviction",
"(",
"to",
"local",
"cache",
"(",
"cache",
")",
")",
";",
"}",
... |
[
"configure",
"a",
"{",
"@",
"code",
"task",
"scheduler",
"}",
"for",
"scheduling",
"a",
"connect",
"timeout",
"task",
"where",
"the",
"timeout",
"value",
"is",
"calculated",
"based",
"on",
"the",
"duration",
"of",
"the",
"initial",
"sock",
"j",
"s",
"\"",
... | [
"public",
"void",
"set",
"connect",
"timeout",
"scheduler",
"(",
"task",
"scheduler",
"connect",
"timeout",
"scheduler",
")",
"{",
"this",
"connect",
"timeout",
"scheduler",
"=",
"connect",
"timeout",
"scheduler",
";",
"}"
] |
[
"returns",
"if",
"an",
"attribute",
"with",
"the",
"given",
"name",
"is",
"late",
"-",
"bound",
"according",
"to",
"the",
"naming",
"policy",
"that",
"designates",
"late",
"-",
"bound",
"attributes"
] | [
"public",
"static",
"boolean",
"is",
"late",
"bound",
"(",
"string",
"name",
")",
"{",
"return",
"name",
"starts",
"with",
"(",
"\"",
":",
"\"",
")",
";",
"}"
] |
[
"create",
"test",
"table",
"with",
"one",
"row",
"of",
"data"
] | [
"public",
"static",
"void",
"init",
"test",
"data",
"(",
"database",
"configuration",
"db",
"config",
",",
"string",
"table",
"name",
")",
"throws",
"database",
"service",
"exception",
",",
"s",
"q",
"l",
"exception",
"{",
"statement",
"stmt",
"=",
"null",
... |
[
"creates",
"a",
"new",
"runtime",
"type",
"adapter",
"using",
"for",
"{",
"@",
"code",
"base",
"type",
"}",
"using",
"{",
"@",
"code",
"type",
"field",
"name",
"}",
"as",
"the",
"type",
"field",
"name",
"type",
"field",
"names",
"are",
"case",
"sensiti... | [
"public",
"static",
"<",
"t",
">",
"runtime",
"type",
"adapter",
"factory",
"<",
"t",
">",
"of",
"(",
"class",
"<",
"t",
">",
"base",
"type",
",",
"string",
"type",
"field",
"name",
")",
"{",
"return",
"new",
"runtime",
"type",
"adapter",
"factory",
... |
[
"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",
"\"",
"... |
[
"test",
"validate",
"and",
"create",
"resource",
"request",
"fails",
"on",
"recovery",
",",
"app",
"should",
"ignore",
"this",
"exception",
"and",
"continue"
] | [
"public",
"void",
"test",
"app",
"fail",
"to",
"validate",
"resource",
"request",
"on",
"recovery",
"(",
")",
"throws",
"exception",
"{",
"rm",
"1",
"=",
"new",
"mock",
"r",
"m",
"(",
"conf",
")",
";",
"rm",
"1",
"start",
"(",
")",
";",
"mock",
"n"... |
[
"finds",
"the",
"child",
"with",
"the",
"specified",
"name",
"and",
"returns",
"it",
"as",
"a",
"short"
] | [
"public",
"short",
"get",
"short",
"(",
"string",
"name",
")",
"{",
"json",
"value",
"child",
"=",
"get",
"(",
"name",
")",
";",
"if",
"(",
"child",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"named",
"value... |
[
"test",
"that",
"{",
"@",
"link",
"netty",
"4",
"http",
"server",
"transport",
"}",
"supports",
"the",
"\"",
"expect",
":",
"100",
"-",
"continue",
"\"",
"http",
"header"
] | [
"public",
"void",
"test",
"expect",
"continue",
"header",
"(",
")",
"throws",
"interrupted",
"exception",
"{",
"final",
"settings",
"settings",
"=",
"create",
"settings",
"(",
")",
";",
"final",
"int",
"content",
"length",
"=",
"random",
"int",
"between",
"(... |
[
"buildscreates",
"a",
"new",
"{",
"@",
"link",
"inbound",
"http",
"2",
"to",
"http",
"adapter",
"}",
"instance",
"using",
"this",
"builder",
"'",
"s",
"current",
"settings"
] | [
"protected",
"t",
"build",
"(",
")",
"{",
"final",
"t",
"instance",
";",
"try",
"{",
"instance",
"=",
"build",
"(",
"connection",
"(",
")",
",",
"max",
"content",
"length",
"(",
")",
",",
"is",
"validate",
"http",
"headers",
"(",
")",
",",
"is",
"p... |
[
"the",
"set",
"of",
"values",
"defined",
"for",
"this",
"entry",
",",
"each",
"corresponding",
"to",
"a",
"different",
"configurationvariant",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"config",
"value",
"config",
"value",
"=",
"4",
";",
"<",
"code",
">"... | [
"public",
"com",
"android",
"aapt",
"resources",
"config",
"value",
"or",
"builder",
"get",
"config",
"value",
"or",
"builder",
"(",
"int",
"index",
")",
"{",
"return",
"config",
"value",
"get",
"(",
"index",
")",
";",
"}"
] |
[
"place",
"new",
"accepted",
"connection",
"onto",
"a",
"queue",
"for",
"adding",
"do",
"this",
"so",
"only",
"the",
"selector",
"thread",
"modifies",
"what",
"keys",
"are",
"registered",
"with",
"the",
"selector"
] | [
"public",
"boolean",
"add",
"accepted",
"connection",
"(",
"socket",
"channel",
"accepted",
")",
"{",
"if",
"(",
"stopped",
"|",
"|",
"!",
"accepted",
"queue",
"offer",
"(",
"accepted",
")",
")",
"{",
"return",
"false",
";",
"}",
"wakeup",
"selector",
"(... |
[
"get",
"capital",
"snake"
] | [
"public",
"string",
"get",
"capital",
"snake",
"(",
")",
"{",
"return",
"capital",
"snake",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"does",
"nothing"
] | [
"@",
"override",
"public",
"void",
"exit",
"event",
"query",
"(",
"eql",
"base",
"parser",
"event",
"query",
"context",
"ctx",
")",
"{",
"}"
] |
[
"verify",
"if",
"a",
"member",
"is",
"notified",
"when",
"it",
"'",
"s",
"joining",
"a",
"party",
"generate",
"an",
"action",
"and",
"see",
"if",
"the",
"other",
"member",
"gets",
"it",
"also",
"check",
"members",
"don",
"'",
"t",
"get",
"their",
"own"... | [
"public",
"void",
"test",
"party",
"action",
"(",
")",
"{",
"final",
"var",
"party",
"member",
"1",
"=",
"mock",
"(",
"party",
"member",
"class",
")",
";",
"final",
"var",
"party",
"member",
"2",
"=",
"mock",
"(",
"party",
"member",
"class",
")",
";"... |
[
"get",
"the",
"record",
"offset",
"within",
"the",
"buffer"
] | [
"public",
"int",
"get",
"record",
"data",
"offset",
"(",
"int",
"index",
")",
"{",
"return",
"buffer",
"get",
"int",
"(",
"data",
"offset",
"base",
"offset",
"+",
"(",
"index",
"*",
"entry",
"size",
")",
")",
";",
"}"
] |
[
"@",
"inherit",
"doc"
] | [
"public",
"int",
"read",
"int",
"(",
")",
"throws",
"e",
"o",
"f",
"exception",
"{",
"int",
"short",
"0",
"=",
"read",
"(",
")",
";",
"int",
"short",
"1",
"=",
"read",
"(",
")",
";",
"return",
"short",
"0",
"|",
"(",
"short",
"1",
"<",
"<",
"... |
[
"get",
"the",
"http",
"status",
"code"
] | [
"public",
"int",
"get",
"code",
"(",
")",
"{",
"return",
"code",
";",
"}"
] |
[
"gets",
"the",
"location",
"string",
"(",
"for",
"stack",
"variables",
"this",
"is",
"the",
"offset",
"as",
"a",
"string",
")"
] | [
"public",
"string",
"get",
"loc",
"(",
")",
"{",
"return",
"loc",
";",
"}"
] |
[
"attempt",
"to",
"markup",
"any",
"or",
"all",
"scalars",
"contained",
"within",
"the",
"representation",
"list"
] | [
"private",
"boolean",
"perform",
"scalar",
"markup",
"(",
"instruction",
"inst",
",",
"int",
"op",
"index",
",",
"function",
"function",
",",
"reference",
"primary",
"ref",
",",
"variable",
"referenced",
"variable",
",",
"map",
"<",
"register",
",",
"integer",... |
[
"stores",
"a",
"boolean",
"value",
"in",
"the",
"table",
"at",
"the",
"given",
"row",
"and",
"column",
"note",
"-",
"all",
"values",
"in",
"a",
"given",
"column",
"must",
"be",
"of",
"the",
"same",
"type"
] | [
"public",
"void",
"put",
"boolean",
"(",
"int",
"row",
",",
"int",
"col",
",",
"boolean",
"value",
")",
"{",
"max",
"row",
"=",
"math",
"max",
"(",
"max",
"row",
",",
"row",
")",
";",
"occupied",
"put",
"(",
"row",
",",
"true",
")",
";",
"super",... |
[
"returns",
"byte",
"length",
"of",
"the",
"optimized",
"dex",
"file"
] | [
"public",
"int",
"get",
"dex",
"length",
"(",
")",
"{",
"return",
"dex",
"length",
";",
"}"
] |
[
"configures",
"the",
"passed",
"in",
"{",
"@",
"link",
"https",
"u",
"r",
"l",
"connection",
"}",
"to",
"allow",
"all",
"ssl",
"certificates",
"also",
"presents",
"a",
"client",
"certificate"
] | [
"public",
"static",
"void",
"set",
"allow",
"all",
"s",
"s",
"l",
"(",
"https",
"u",
"r",
"l",
"connection",
"https",
"conn",
",",
"x",
"5",
"0",
"9",
"certificate",
"client",
"cert",
",",
"key",
"pair",
"client",
"key",
"pair",
")",
"throws",
"key",... |
[
"rounds",
"the",
"given",
"utc",
"milliseconds",
"sicne",
"the",
"epoch",
"down",
"to",
"the",
"next",
"unit",
"millis",
"note",
":",
"this",
"does",
"not",
"check",
"for",
"correctness",
"of",
"the",
"result",
",",
"as",
"this",
"only",
"works",
"with",
... | [
"public",
"static",
"long",
"round",
"floor",
"(",
"long",
"utc",
"millis",
",",
"final",
"long",
"unit",
"millis",
")",
"{",
"if",
"(",
"utc",
"millis",
">",
"=",
"0",
")",
"{",
"return",
"utc",
"millis",
"-",
"utc",
"millis",
"%",
"unit",
"millis",... |
[
"gets",
"original",
"exception"
] | [
"public",
"throwable",
"get",
"original",
"exception",
"(",
")",
"{",
"return",
"original",
"exception",
";",
"}"
] |
[
"appends",
"{",
"@",
"code",
"values",
"}",
",",
"in",
"order",
",",
"to",
"the",
"end",
"of",
"the",
"values",
"the",
"built",
"{",
"@",
"link",
"immutable",
"long",
"array",
"}",
"will",
"contain"
] | [
"public",
"builder",
"add",
"all",
"(",
"long",
"[",
"]",
"values",
")",
"{",
"ensure",
"room",
"for",
"(",
"values",
"length",
")",
";",
"system",
"arraycopy",
"(",
"values",
",",
"0",
",",
"array",
",",
"count",
",",
"values",
"length",
")",
";",
... |
[
"post",
"storeorder",
":",
"place",
"an",
"order",
"for",
"a",
"pet"
] | [
"default",
"response",
"entity",
"<",
"order",
">",
"place",
"order",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"order",
"placed",
"for",
"purchasing",
"the",
"pet",
"\"",
",",
"required",
"=",
"true",
")",
"@",
"valid",
"@",
"request",
"body"... |
[
"template",
"method",
"for",
"customizing",
"the",
"expression",
"evaluation",
"context",
"the",
"default",
"implementation",
"is",
"empty"
] | [
"protected",
"void",
"customize",
"evaluation",
"context",
"(",
"standard",
"evaluation",
"context",
"eval",
"context",
")",
"{",
"}"
] |
[
"checks",
"if",
"the",
"symbol",
"is",
"a",
"function",
"variable"
] | [
"public",
"boolean",
"is",
"variable",
"symbol",
"(",
"symbol",
"s",
")",
"{",
"symbol",
"parent",
"=",
"s",
"get",
"parent",
"symbol",
"(",
")",
";",
"if",
"(",
"parent",
"=",
"=",
"null",
"|",
"|",
"!",
"is",
"function",
"symbol",
"(",
"parent",
... |
[
"https",
":",
"jira",
"spring",
"iobrowse",
"s",
"p",
"r",
"-",
"2788"
] | [
"public",
"void",
"as",
"body",
"tag",
"with",
"no",
"errors",
"and",
"existing",
"messages",
"attribute",
"in",
"session",
"scope",
"are",
"not",
"clobbered",
"(",
")",
"throws",
"exception",
"{",
"assert",
"when",
"no",
"errors",
"existing",
"messages",
"i... |
[
"collects",
"all",
"attribute",
"labels",
"from",
"the",
"specified",
"aspect",
"definition"
] | [
"public",
"static",
"void",
"add",
"all",
"attributes",
"of",
"aspect",
"(",
"final",
"rule",
"from",
",",
"final",
"multimap",
"<",
"attribute",
",",
"label",
">",
"label",
"builder",
",",
"aspect",
"aspect",
",",
"dependency",
"filter",
"dependency",
"filt... |
[
"test",
"the",
"property",
"'",
"ship",
"date",
"'"
] | [
"public",
"void",
"ship",
"date",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"ship",
"date",
"}"
] |
[
"register",
"a",
"watcher",
"to",
"the",
"target",
"value"
] | [
"void",
"register",
"config",
"change",
"watcher",
"(",
"config",
"change",
"watcher",
"watcher",
")",
";"
] |
[
"sets",
"the",
"default",
"{",
"@",
"link",
"transition",
"options",
"}",
"to",
"use",
"when",
"starting",
"a",
"request",
"that",
"will",
"load",
"a",
"resource",
"with",
"the",
"given",
"{",
"@",
"link",
"class",
"}",
"it",
"'",
"s",
"preferable",
"b... | [
"public",
"<",
"t",
">",
"glide",
"builder",
"set",
"default",
"transition",
"options",
"(",
"@",
"non",
"null",
"class",
"<",
"t",
">",
"clazz",
",",
"@",
"nullable",
"transition",
"options",
"<",
"?",
",",
"t",
">",
"options",
")",
"{",
"default",
... |
[
"update",
"an",
"existing",
"pet"
] | [
"public",
"void",
"update",
"pet",
"(",
"pet",
"body",
")",
";"
] |
[
"disable",
"erasure",
"coding",
"policy"
] | [
"public",
"void",
"disable",
"erasure",
"coding",
"policy",
"(",
"string",
"ec",
"policy",
"name",
")",
"throws",
"i",
"o",
"exception",
"{",
"statistics",
"increment",
"write",
"ops",
"(",
"1",
")",
";",
"storage",
"statistics",
"increment",
"op",
"counter"... |
[
"create",
"dummy",
"archive",
"and",
"installation",
"folders",
"in",
"the",
"temp",
"space",
"that",
"we",
"can",
"populate",
"with",
"extensions"
] | [
"public",
"void",
"setup",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"g",
"layout",
"=",
"application",
"get",
"application",
"layout",
"(",
")",
";",
"/",
"/",
"verify",
"that",
"the",
"archive",
"and",
"install",
"directories",
"are",
"empty",
"(... |
[
"gets",
"the",
"unit",
"test",
"parameters"
] | [
"public",
"static",
"stream",
"<",
"arguments",
">",
"get",
"test",
"parameters",
"(",
")",
"{",
"return",
"stream",
"of",
"(",
"/",
"*",
"test",
"with",
"cert",
"with",
"rfc822",
"email",
"address",
"and",
"no",
"alternate",
"*",
"/",
"arguments",
"(",
... |
[
"test",
"serialization",
"of",
"outer",
"string",
"types"
] | [
"public",
"void",
"fake",
"outer",
"string",
"serialize",
"(",
"string",
"body",
",",
"api",
"client",
"auth",
"info",
"auth",
"info",
",",
"handler",
"<",
"async",
"result",
"<",
"string",
">",
">",
"result",
"handler",
")",
"{",
"object",
"local",
"var... |
[
"the",
"open",
"interface",
"for",
"other",
"classes",
"in",
"crud",
"package",
"to",
"update",
"multiple",
"rows",
"using",
"table",
"name",
"to",
"decide",
"which",
"table",
"to",
"update",
",",
"and",
"conditions",
"representing",
"the",
"where",
"part",
... | [
"public",
"int",
"on",
"update",
"all",
"(",
"string",
"table",
"name",
",",
"content",
"values",
"values",
",",
"string",
"conditions",
")",
"{",
"base",
"utility",
"check",
"conditions",
"correct",
"(",
"conditions",
")",
";",
"if",
"(",
"conditions",
"!... |
[
"works",
"like",
"{",
"@",
"link",
"#",
"surround",
"with",
"(",
"string",
",",
"string",
")",
"}",
"except",
"that",
"the",
"token",
"replacement",
"is",
"not",
"performed",
"on",
"parameters"
] | [
"public",
"void",
"surround",
"with",
"literal",
"(",
"string",
"start",
"tag",
",",
"string",
"end",
"tag",
")",
"{",
"add",
"markup",
"(",
"0",
",",
"length",
"(",
")",
",",
"start",
"tag",
",",
"end",
"tag",
")",
";",
"}"
] |
[
"receives",
"the",
"elapsed",
"time",
"of",
"the",
"lifetime",
"of",
"an",
"{",
"@",
"link",
"auto",
"profiler",
"}",
"instance",
"note",
"that",
"system",
"#",
"nano",
"time",
"isn",
"'",
"t",
"guaranteed",
"to",
"be",
"non",
"-",
"decreasing",
",",
"... | [
"void",
"accept",
"(",
"long",
"elapsed",
"time",
"nanos",
")",
";"
] |
[
"get",
"the",
"{",
"@",
"link",
"configuration",
"}",
"for",
"this",
"{",
"@",
"link",
"http",
"2",
"headers",
"decoder",
"}"
] | [
"configuration",
"configuration",
"(",
")",
";"
] |
[
"get",
"the",
"list",
"of",
"block",
"entries",
"it",
"is",
"used",
"for",
"testing",
"purposes",
"only"
] | [
"list",
"<",
"block",
"entry",
">",
"get",
"block",
"list",
"(",
")",
"throws",
"storage",
"exception",
",",
"i",
"o",
"exception",
"{",
"return",
"blob",
"download",
"block",
"list",
"(",
"block",
"listing",
"filter",
"committed",
",",
"new",
"blob",
"r... |
[
"escapes",
"all",
"strings",
"in",
"{",
"@",
"code",
"argv",
"}",
"individually",
"and",
"joins",
"them",
"on",
"single",
"spaces",
"into",
"{",
"@",
"code",
"out",
"}",
"the",
"result",
"is",
"appended",
"directly",
"into",
"{",
"@",
"code",
"out",
"}... | [
"public",
"static",
"appendable",
"escape",
"join",
"all",
"(",
"appendable",
"out",
",",
"iterable",
"<",
"?",
"extends",
"string",
">",
"argv",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"space",
"joiner",
"append",
"to",
"(",
"out",
",",
"es... |
[
"the",
"template",
"source",
"definition"
] | [
"public",
"put",
"index",
"template",
"request",
"source",
"(",
"string",
"template",
"source",
",",
"x",
"content",
"type",
"x",
"content",
"type",
")",
"{",
"return",
"source",
"(",
"x",
"content",
"helper",
"convert",
"to",
"map",
"(",
"x",
"content",
... |
[
"returns",
"a",
"translated",
"display",
"name",
"for",
"the",
"resource",
"type"
] | [
"public",
"string",
"get",
"display",
"name",
"(",
")",
"{",
"return",
"display",
"name",
";",
"}"
] |
[
"invoked",
"immediately",
"after",
"the",
"send",
"invocation",
"the",
"boolean",
"value",
"argument",
"represents",
"the",
"return",
"value",
"of",
"that",
"invocation"
] | [
"default",
"void",
"post",
"send",
"(",
"message",
"<",
"?",
">",
"message",
",",
"message",
"channel",
"channel",
",",
"boolean",
"sent",
")",
"{",
"}"
] |
[
"returns",
"the",
"section",
"number",
"if",
"this",
"symbol"
] | [
"public",
"int",
"get",
"section",
"number",
"(",
")",
"{",
"return",
"section",
"number",
";",
"}"
] |
[
"sets",
"if",
"{",
"@",
"link",
"#",
"build",
"(",
")",
"}",
"will",
"to",
"create",
"a",
"{",
"@",
"link",
"http",
"2",
"connection",
"}",
"in",
"server",
"mode",
"(",
"{",
"@",
"code",
"true",
"}",
")",
"or",
"client",
"mode",
"(",
"{",
"@",
... | [
"protected",
"b",
"server",
"(",
"boolean",
"is",
"server",
")",
"{",
"enforce",
"constraint",
"(",
"\"",
"server",
"\"",
",",
"\"",
"connection",
"\"",
",",
"connection",
")",
";",
"enforce",
"constraint",
"(",
"\"",
"server",
"\"",
",",
"\"",
"codec",
... |
[
"test",
"{",
"@",
"link",
"fs",
"dataset",
"impl",
"#",
"init",
"replica",
"recovery",
"(",
"string",
",",
"replica",
"map",
",",
"block",
",",
"long",
",",
"long",
")",
"}"
] | [
"public",
"void",
"test",
"init",
"replica",
"recovery",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"long",
"firstblockid",
"=",
"10000l",
";",
"final",
"long",
"gs",
"=",
"7777l",
";",
"final",
"long",
"length",
"=",
"22l",
";",
"final",
... |
[
"build",
"api",
"gateway",
"response"
] | [
"public",
"api",
"gateway",
"response",
"build",
"(",
")",
"{",
"string",
"str",
"body",
"=",
"null",
";",
"if",
"(",
"this",
"body",
"!",
"=",
"null",
")",
"{",
"try",
"{",
"str",
"body",
"=",
"object",
"mapper",
"write",
"value",
"as",
"string",
... |
[
"verify",
"that",
"the",
"client",
"is",
"cleaning",
"up",
"properly",
"openclose",
"a",
"large",
"number",
"of",
"sessions",
"essentially",
"looking",
"to",
"see",
"if",
"socketsselectors",
"are",
"being",
"cleaned",
"up",
"properly",
"during",
"close"
] | [
"public",
"void",
"test",
"client",
"cleanup",
"(",
")",
"throws",
"throwable",
"{",
"o",
"s",
"m",
"x",
"bean",
"os",
"mbean",
"=",
"new",
"o",
"s",
"m",
"x",
"bean",
"(",
")",
";",
"if",
"(",
"!",
"os",
"mbean",
"get",
"unix",
"(",
")",
")",
... |
[
"sets",
"the",
"read",
"position",
"of",
"the",
"stream"
] | [
"public",
"synchronized",
"void",
"seek",
"(",
"long",
"pos",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"state",
"(",
")",
";",
"if",
"(",
"pos",
"<",
"0",
")",
"{",
"throw",
"new",
"e",
"o",
"f",
"exception",
"(",
"f",
"s",
"exception",
... |
[
"get",
"the",
"comma",
"delimited",
"values",
"of",
"the",
"<",
"code",
">",
"name",
"<",
"code",
">",
"property",
"as",
"an",
"array",
"of",
"<",
"code",
">",
"string",
"<",
"code",
">",
"s",
"if",
"no",
"such",
"property",
"is",
"specified",
"then"... | [
"public",
"string",
"[",
"]",
"get",
"strings",
"(",
"string",
"name",
")",
"{",
"string",
"value",
"string",
"=",
"get",
"(",
"name",
")",
";",
"return",
"string",
"utils",
"get",
"strings",
"(",
"value",
"string",
")",
";",
"}"
] |
[
"list",
"of",
"arguments",
"to",
"run",
"the",
"junit",
"test"
] | [
"public",
"static",
"collection",
"<",
"object",
"[",
"]",
">",
"get",
"test",
"parameters",
"(",
")",
"{",
"return",
"arrays",
"as",
"list",
"(",
"new",
"object",
"[",
"]",
"[",
"]",
"{",
"{",
"\"",
"test",
"single",
"reducer",
"\"",
",",
"3",
","... |
[
"<",
"code",
">",
"optional",
"aapt",
"pb",
"primitive",
"prim",
"=",
"7",
";",
"<",
"code",
">"
] | [
"public",
"builder",
"set",
"prim",
"(",
"com",
"android",
"aapt",
"resources",
"primitive",
"value",
")",
"{",
"copy",
"on",
"write",
"(",
")",
";",
"instance",
"set",
"prim",
"(",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"sets",
"the",
"text",
"to",
"be",
"shown",
"as",
"the",
"description",
"never",
"set",
"this",
"to",
"null",
"as",
"this",
"will",
"cause",
"nullpointer",
"exception",
"when",
"drawing",
"with",
"android",
"canvas"
] | [
"public",
"void",
"set",
"text",
"(",
"string",
"text",
")",
"{",
"this",
"text",
"=",
"text",
";",
"}"
] |
[
"resolve",
"the",
"given",
"resource",
"location",
"to",
"a",
"{",
"@",
"code",
"java",
"io",
"file",
"}",
",",
"i",
"e",
"to",
"a",
"file",
"in",
"the",
"file",
"system",
"does",
"not",
"check",
"whether",
"the",
"file",
"actually",
"exists",
";",
"... | [
"public",
"static",
"file",
"get",
"file",
"(",
"string",
"resource",
"location",
")",
"throws",
"file",
"not",
"found",
"exception",
"{",
"assert",
"not",
"null",
"(",
"resource",
"location",
",",
"\"",
"resource",
"location",
"must",
"not",
"be",
"null",
... |
[
"returns",
"the",
"contents",
"of",
"a",
"container",
"'",
"s",
"log",
"file",
"in",
"plain",
"text"
] | [
"public",
"response",
"get",
"container",
"log",
"file",
"(",
"@",
"context",
"http",
"servlet",
"request",
"req",
",",
"@",
"context",
"http",
"servlet",
"response",
"res",
",",
"@",
"path",
"param",
"(",
"yarn",
"web",
"service",
"params",
"container",
"... |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"public",
"t",
"next",
"(",
")",
"{",
"try",
"{",
"return",
"invoker",
"retry",
"(",
"\"",
"scan",
"dynamo",
"\"",
",",
"null",
",",
"true",
",",
"iterator",
":",
":",
"next",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"... |
[
"return",
"whether",
"the",
"rom",
"is",
"made",
"by",
"oppo"
] | [
"public",
"static",
"boolean",
"is",
"oppo",
"(",
")",
"{",
"return",
"rom",
"oppo",
"[",
"0",
"]",
"equals",
"(",
"get",
"rom",
"info",
"(",
")",
"name",
")",
";",
"}"
] |
[
"returns",
"the",
"given",
"callback",
"object",
"if",
"it",
"is",
"not",
"{",
"@",
"code",
"null",
"}",
"otherwise",
",",
"a",
"{",
"@",
"link",
"#",
"callback",
"(",
")",
"}",
"is",
"returned",
"this",
"is",
"useful",
"to",
"avoid",
"using",
"{",
... | [
"public",
"static",
"<",
"t",
">",
"supplier",
"<",
"t",
">",
"if",
"null",
"(",
"supplier",
"<",
"t",
">",
"s",
")",
"{",
"return",
"s",
"=",
"=",
"null",
"?",
"supplier",
"(",
")",
":",
"s",
";",
"}"
] |
[
"creates",
"any",
"necessary",
"but",
"nonexistent",
"parent",
"directories",
"of",
"the",
"specified",
"file",
"note",
"that",
"if",
"this",
"operation",
"fails",
"it",
"may",
"have",
"succeeded",
"in",
"creating",
"some",
"(",
"but",
"not",
"all",
")",
"of... | [
"public",
"static",
"void",
"create",
"parent",
"dirs",
"(",
"file",
"file",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"not",
"null",
"(",
"file",
")",
";",
"file",
"parent",
"=",
"file",
"get",
"canonical",
"file",
"(",
")",
"get",
"parent",... |
[
"append",
"specified",
"bytes",
"to",
"a",
"given",
"file",
",",
"starting",
"with",
"new",
"block"
] | [
"public",
"static",
"void",
"append",
"file",
"new",
"block",
"(",
"distributed",
"file",
"system",
"fs",
",",
"path",
"p",
",",
"byte",
"[",
"]",
"bytes",
")",
"throws",
"i",
"o",
"exception",
"{",
"assert",
"fs",
"exists",
"(",
"p",
")",
";",
"try"... |
[
"visit",
"a",
"parse",
"tree",
"produced",
"by",
"{",
"@",
"link",
"sql",
"base",
"parser",
"#",
"pivot",
"args",
"}"
] | [
"t",
"visit",
"pivot",
"args",
"(",
"sql",
"base",
"parser",
"pivot",
"args",
"context",
"ctx",
")",
";"
] |
[
"if",
"one",
"instance",
"is",
"empty",
",",
"return",
"the",
"other",
"if",
"both",
"instances",
"have",
"conditions",
",",
"combine",
"the",
"individual",
"conditions",
"after",
"ensuring",
"they",
"are",
"of",
"the",
"same",
"type",
"and",
"number"
] | [
"public",
"composite",
"request",
"condition",
"combine",
"(",
"composite",
"request",
"condition",
"other",
")",
"{",
"if",
"(",
"is",
"empty",
"(",
")",
"&",
"&",
"other",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"this",
";",
"}",
"else",
"if",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.