docstring_tokens list | code_tokens list |
|---|---|
[
"compute",
"the",
"variable",
"storage",
"for",
"a",
"given",
"function",
"and",
"set",
"of",
"returnparameter",
"datatypes",
"defined",
"by",
"an",
"array",
"of",
"data",
"types"
] | [
"public",
"variable",
"storage",
"[",
"]",
"get",
"storage",
"locations",
"(",
"program",
"program",
",",
"data",
"type",
"[",
"]",
"data",
"types",
",",
"boolean",
"add",
"auto",
"params",
")",
"{",
"boolean",
"inject",
"auto",
"this",
"param",
"=",
"fa... |
[
"adds",
"val",
"to",
"the",
"small",
"set",
"returns",
"some",
"element",
"of",
"the",
"small",
"set"
] | [
"private",
"synchronized",
"t",
"put",
"and",
"get",
"(",
"t",
"elt",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"elt",
")",
";",
"if",
"(",
"is",
"dead",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"elt",
"equals",
"(... |
[
"creates",
"a",
"new",
"int",
"property",
"map",
"with",
"the",
"given",
"name"
] | [
"public",
"int",
"property",
"map",
"create",
"int",
"property",
"map",
"(",
"string",
"property",
"name",
")",
"throws",
"duplicate",
"name",
"exception",
"{",
"lock",
"acquire",
"(",
")",
";",
"try",
"{",
"if",
"(",
"property",
"map",
"cache",
"contains"... |
[
"see",
"{",
"@",
"link",
"collection",
"iterator",
"tester",
"}"
] | [
"static",
"int",
"collection",
"iterator",
"tester",
"num",
"iterations",
"(",
")",
"{",
"return",
"5",
";",
"}"
] |
[
"sets",
"the",
"backing",
"{",
"@",
"link",
"thread",
"factory",
"}",
"for",
"new",
"threads",
"created",
"with",
"this",
"thread",
"factory",
"threads",
"will",
"be",
"created",
"by",
"invoking",
"#",
"new",
"thread",
"(",
"runnable",
")",
"on",
"this",
... | [
"public",
"thread",
"factory",
"builder",
"set",
"thread",
"factory",
"(",
"thread",
"factory",
"backing",
"thread",
"factory",
")",
"{",
"this",
"backing",
"thread",
"factory",
"=",
"check",
"not",
"null",
"(",
"backing",
"thread",
"factory",
")",
";",
"ret... |
[
"fake",
"endpoint",
"for",
"testing",
"various",
"parameters",
"๊ฐ์ง",
"์๋",
"ํฌ์ธํธ",
"fake",
"endpoint",
"for",
"testing",
"various",
"parameters",
"๊ฐ์ง",
"์๋",
"ํฌ์ธํธ"
] | [
"public",
"void",
"test",
"endpoint",
"parameters",
"(",
"big",
"decimal",
"number",
",",
"double",
"double",
",",
"string",
"pattern",
"without",
"delimiter",
",",
"byte",
"[",
"]",
"byte",
",",
"integer",
"integer",
",",
"integer",
"int",
"3",
"2",
",",
... |
[
"return",
"the",
"list",
"of",
"media",
"types",
"this",
"view",
"supports",
",",
"or",
"an",
"empty",
"list"
] | [
"default",
"list",
"<",
"media",
"type",
">",
"get",
"supported",
"media",
"types",
"(",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}"
] |
[
"get",
"pet",
"id"
] | [
"public",
"long",
"get",
"pet",
"id",
"(",
")",
"{",
"return",
"pet",
"id",
";",
"}"
] |
[
"returns",
"the",
"resulting",
"key",
"of",
"the",
"handshake",
",",
"if",
"the",
"handshake",
"is",
"completed",
"note",
"that",
"the",
"key",
"data",
"returned",
"from",
"the",
"handshake",
"may",
"be",
"more",
"than",
"the",
"key",
"length",
"required",
... | [
"public",
"byte",
"[",
"]",
"get",
"key",
"(",
")",
"{",
"if",
"(",
"result",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"result",
"get",
"key",
"data",
"(",
")",
"size",
"(",
")",
"<",
"key",
"length",
")",
"{",
"thro... |
[
"get",
"prefix",
"string"
] | [
"public",
"string",
"get",
"prefix",
"string",
"(",
")",
"{",
"return",
"prefix",
"string",
";",
"}"
] |
[
"validate",
"default",
"ma",
"wo",
"configurations"
] | [
"public",
"void",
"test",
"ma",
"wo",
"configuration",
"(",
")",
"{",
"mawo",
"configuration",
"mawo",
"conf",
"=",
"new",
"mawo",
"configuration",
"(",
")",
";",
"/",
"/",
"validate",
"rpc",
"server",
"port",
"assert",
"assert",
"equals",
"(",
"mawo",
"... |
[
"prevent",
"the",
"response",
"from",
"being",
"cached",
"only",
"called",
"in",
"http",
"1",
"0",
"compatibility",
"mode",
"see",
"{",
"@",
"code",
"https",
":",
"www",
"mnot",
"netcache",
"docs",
"}"
] | [
"protected",
"final",
"void",
"prevent",
"caching",
"(",
"http",
"servlet",
"response",
"response",
")",
"{",
"response",
"set",
"header",
"(",
"header",
"pragma",
",",
"\"",
"no",
"-",
"cache",
"\"",
")",
";",
"if",
"(",
"this",
"use",
"expires",
"heade... |
[
"check",
"the",
"grant",
"type",
"against",
"an",
"expected",
"grant",
"type"
] | [
"public",
"static",
"boolean",
"is",
"grant",
"type",
"(",
"final",
"string",
"type",
",",
"final",
"o",
"auth",
"2",
"0",
"grant",
"types",
"expected",
"type",
")",
"{",
"return",
"expected",
"type",
"name",
"(",
")",
"equals",
"ignore",
"case",
"(",
... |
[
"get",
"userlogout",
":",
"logs",
"out",
"current",
"logged",
"in",
"user",
"session"
] | [
"default",
"response",
"entity",
"<",
"void",
">",
"logout",
"user",
"(",
")",
"{",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"http",
"status",
"not",
"implemented",
")",
";",
"}"
] |
[
"attempt",
"consuming",
"using",
"either",
"static",
"resource",
"handlers",
"or",
"jar",
"resource",
"handlers"
] | [
"public",
"boolean",
"consume",
"(",
"http",
"servlet",
"request",
"http",
"request",
",",
"http",
"servlet",
"response",
"http",
"response",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"if",
"(",
"consume",
"with",
"file",
"resource",
"handlers",... |
[
"tests",
"that",
"meters",
"are",
"properly",
"reported",
"via",
"the",
"j",
"m",
"x",
"reporter"
] | [
"public",
"void",
"test",
"meter",
"reporting",
"(",
")",
"throws",
"exception",
"{",
"metric",
"registry",
"impl",
"registry",
"=",
"null",
";",
"string",
"meter",
"name",
"=",
"\"",
"meter",
"\"",
";",
"try",
"{",
"registry",
"=",
"new",
"metric",
"reg... |
[
"atomically",
"removes",
"all",
"of",
"the",
"elements",
"from",
"this",
"queue",
"the",
"queue",
"will",
"be",
"empty",
"after",
"this",
"call",
"returns"
] | [
"public",
"void",
"clear",
"(",
")",
"{",
"final",
"monitor",
"monitor",
"=",
"this",
"monitor",
";",
"monitor",
"enter",
"(",
")",
";",
"try",
"{",
"q",
"clear",
"(",
")",
";",
"}",
"finally",
"{",
"monitor",
"leave",
"(",
")",
";",
"}",
"}"
] |
[
"model",
"tests",
"for",
"number",
"only"
] | [
"public",
"void",
"test",
"number",
"only",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"number",
"only",
"}"
] |
[
"get",
"network",
"interceptor",
"to",
"add",
"it",
"to",
"the",
"http",
"client",
"to",
"track",
"download",
"progress",
"for",
"async",
"requests"
] | [
"private",
"interceptor",
"get",
"progress",
"interceptor",
"(",
")",
"{",
"return",
"new",
"interceptor",
"(",
")",
"{",
"@",
"override",
"public",
"response",
"intercept",
"(",
"interceptor",
"chain",
"chain",
")",
"throws",
"i",
"o",
"exception",
"{",
"fi... |
[
"set",
"sentinel",
"host",
",",
"port",
"and",
"master",
"id",
"creates",
"a",
"new",
"builder"
] | [
"public",
"static",
"redis",
"connection",
"config",
"builder",
"redis",
"sentinel",
"(",
"string",
"host",
",",
"int",
"port",
",",
"string",
"master",
"id",
")",
"{",
"assert",
"util",
"not",
"empty",
"(",
"host",
",",
"\"",
"host",
"must",
"not",
"be"... |
[
"copies",
"special",
"metadata",
"hold",
"by",
"this",
"instance",
"to",
"the",
"provided",
"instance"
] | [
"void",
"copy",
"meta",
"(",
"default",
"binary",
"memcache",
"request",
"dst",
")",
"{",
"super",
"copy",
"meta",
"(",
"dst",
")",
";",
"dst",
"reserved",
"=",
"reserved",
";",
"}"
] |
[
"creates",
"a",
"new",
"fake",
"project",
"for",
"the",
"given",
"user"
] | [
"public",
"fake",
"shared",
"project",
"create",
"project",
"(",
"user",
"user",
")",
"throws",
"i",
"o",
"exception",
"{",
"fake",
"shared",
"project",
"existing",
"project",
"=",
"projects",
"by",
"user",
"get",
"(",
"user",
")",
";",
"if",
"(",
"exist... |
[
"sets",
"the",
"reason",
"for",
"which",
"the",
"tasktracker",
"was",
"blacklisted"
] | [
"void",
"set",
"reason",
"for",
"black",
"listing",
"(",
"string",
"reason",
"for",
"black",
"listing",
")",
"{",
"this",
"reason",
"for",
"black",
"listing",
"=",
"reason",
"for",
"black",
"listing",
";",
"}"
] |
[
"returns",
"a",
"type",
"that",
"is",
"functionally",
"equal",
"but",
"not",
"necessarily",
"equal",
"according",
"to",
"{",
"@",
"link",
"object",
"#",
"equals",
"(",
"object",
")",
"object",
"equals",
"(",
")",
"}"
] | [
"public",
"static",
"type",
"canonicalize",
"(",
"type",
"type",
")",
"{",
"if",
"(",
"type",
"instanceof",
"parameterized",
"type",
"impl",
"|",
"|",
"type",
"instanceof",
"generic",
"array",
"type",
"impl",
"|",
"|",
"type",
"instanceof",
"wildcard",
"type... |
[
"initialized",
"the",
"internals",
"from",
"a",
"new",
"chunk"
] | [
"public",
"http",
"post",
"standard",
"request",
"decoder",
"offer",
"(",
"http",
"content",
"content",
")",
"{",
"check",
"destroyed",
"(",
")",
";",
"if",
"(",
"content",
"instanceof",
"last",
"http",
"content",
")",
"{",
"is",
"last",
"chunk",
"=",
"t... |
[
"registers",
"an",
"ansi",
"-",
"control",
"-",
"code",
"-",
"allowing",
"event",
"handler",
"with",
"an",
"ansi",
"-",
"stripping",
"event",
"handler",
"that",
"is",
"already",
"registered",
"with",
"the",
"reporter",
"the",
"ansi",
"-",
"stripping",
"handl... | [
"public",
"synchronized",
"void",
"register",
"ansi",
"allowing",
"handler",
"(",
"event",
"handler",
"ansi",
"stripping",
"handler",
",",
"event",
"handler",
"ansi",
"allowing",
"handler",
")",
"{",
"this",
"ansi",
"allowing",
"handler",
"=",
"ansi",
"allowing"... |
[
"determine",
"the",
"last",
"transaction",
"id",
"noted",
"in",
"this",
"storage",
"directory",
"this",
"txid",
"is",
"stored",
"in",
"a",
"special",
"seen",
"txid",
"file",
"since",
"it",
"might",
"not",
"correspond",
"to",
"the",
"latest",
"image",
"or",
... | [
"static",
"long",
"read",
"transaction",
"id",
"file",
"(",
"storage",
"directory",
"sd",
")",
"throws",
"i",
"o",
"exception",
"{",
"file",
"txid",
"file",
"=",
"get",
"storage",
"file",
"(",
"sd",
",",
"name",
"node",
"file",
"seen",
"txid",
")",
";"... |
[
"optional",
":",
"indicates",
"whether",
"connections",
"to",
"this",
"port",
"should",
"be",
"secured",
"using",
"tls",
"the",
"value",
"of",
"this",
"field",
"determines",
"how",
"tls",
"is",
"enforced",
"<",
"code",
">",
"istio",
"networking",
"v",
"1alph... | [
"public",
"int",
"get",
"mode",
"value",
"(",
")",
"{",
"return",
"mode",
";",
"}"
] |
[
"removes",
"and",
"returns",
"the",
"last",
"item"
] | [
"public",
"short",
"pop",
"(",
")",
"{",
"return",
"items",
"[",
"-",
"-",
"size",
"]",
";",
"}"
] |
[
"adds",
"glyphs",
"for",
"the",
"specified",
"text"
] | [
"public",
"glyph",
"layout",
"add",
"text",
"(",
"char",
"sequence",
"str",
",",
"float",
"x",
",",
"float",
"y",
",",
"float",
"target",
"width",
",",
"int",
"halign",
",",
"boolean",
"wrap",
")",
"{",
"return",
"add",
"text",
"(",
"str",
",",
"x",
... |
[
"get",
"the",
"cluster",
"identifier"
] | [
"public",
"string",
"get",
"cluster",
"id",
"(",
")",
"{",
"return",
"this",
"cluster",
"id",
";",
"}"
] |
[
"allows",
"subclasses",
"to",
"access",
"the",
"cache",
"in",
"{",
"@",
"link",
"#",
"draw",
"(",
"batch",
",",
"float",
")",
"}"
] | [
"protected",
"bitmap",
"font",
"cache",
"get",
"bitmap",
"font",
"cache",
"(",
")",
"{",
"return",
"cache",
";",
"}"
] |
[
"sets",
"flags",
"for",
"{",
"@",
"link",
"adts",
"extractor",
"}",
"instances",
"created",
"by",
"the",
"factory"
] | [
"public",
"synchronized",
"default",
"extractors",
"factory",
"set",
"adts",
"extractor",
"flags",
"(",
"@",
"adts",
"extractor",
"flags",
"int",
"flags",
")",
"{",
"this",
"adts",
"flags",
"=",
"flags",
";",
"return",
"this",
";",
"}"
] |
[
"read",
"the",
"state",
"of",
"the",
"change",
"list"
] | [
"void",
"restore",
"undo",
"redo",
"state",
"(",
"save",
"state",
"save",
"state",
")",
"{",
"change",
"list",
"clear",
"(",
")",
";",
"int",
"number",
"of",
"changes",
"=",
"save",
"state",
"get",
"int",
"(",
"number",
"of",
"changes",
",",
"0",
")"... |
[
"an",
"accessor",
"to",
"the",
"raw",
"value",
"of",
"the",
"channel",
"bytes",
"output",
"this",
"method",
"will",
"not",
"instantiate",
"a",
"new",
"stream",
"if",
"one",
"does",
"not",
"exist",
"and",
"this",
"method",
"will",
"not",
"reset",
"the",
"... | [
"protected",
"final",
"bytes",
"stream",
"output",
"bytes",
"output",
"or",
"null",
"(",
")",
"{",
"return",
"bytes",
"out",
";",
"}"
] |
[
"called",
"to",
"add",
"the",
"actor",
"to",
"the",
"tree",
"when",
"the",
"node",
"'",
"s",
"parent",
"is",
"expanded"
] | [
"protected",
"int",
"add",
"to",
"tree",
"(",
"tree",
"<",
"n",
",",
"v",
">",
"tree",
",",
"int",
"actor",
"index",
")",
"{",
"tree",
"add",
"actor",
"at",
"(",
"actor",
"index",
",",
"actor",
")",
";",
"if",
"(",
"!",
"expanded",
")",
"return",... |
[
"test",
"to",
"verify",
"the",
"timeout",
"of",
"image",
"upload"
] | [
"public",
"void",
"test",
"image",
"upload",
"timeout",
"(",
")",
"throws",
"exception",
"{",
"configuration",
"conf",
"=",
"new",
"hdfs",
"configuration",
"(",
")",
";",
"n",
"n",
"storage",
"mock",
"storage",
"=",
"mockito",
"mock",
"(",
"n",
"n",
"sto... |
[
"customize",
"response",
"specification"
] | [
"public",
"upload",
"file",
"with",
"required",
"file",
"oper",
"resp",
"spec",
"(",
"consumer",
"<",
"response",
"spec",
"builder",
">",
"resp",
"spec",
"customizer",
")",
"{",
"resp",
"spec",
"customizer",
"accept",
"(",
"resp",
"spec",
")",
";",
"return... |
[
"extracts",
"a",
"value",
"identified",
"by",
"the",
"given",
"path",
"in",
"the",
"source"
] | [
"public",
"<",
"t",
">",
"t",
"get",
"value",
"(",
"string",
"path",
")",
"{",
"return",
"(",
"t",
")",
"object",
"path",
"eval",
"(",
"path",
",",
"data",
"(",
")",
")",
";",
"}"
] |
[
"ends",
"the",
"visit",
"of",
"{",
"@",
"link",
"#",
"current",
"frame",
"}",
"by",
"writing",
"it",
"in",
"the",
"stack",
"map",
"table",
"entries",
"and",
"by",
"updating",
"the",
"stack",
"map",
"table",
"number",
"of",
"entries",
"(",
"except",
"if... | [
"void",
"visit",
"frame",
"end",
"(",
")",
"{",
"if",
"(",
"previous",
"frame",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"stack",
"map",
"table",
"entries",
"=",
"=",
"null",
")",
"{",
"stack",
"map",
"table",
"entries",
"=",
"new",
"byte",
"vector",... |
[
"determine",
"if",
"this",
"shared",
"memory",
"object",
"is",
"full"
] | [
"synchronized",
"final",
"public",
"boolean",
"is",
"full",
"(",
")",
"{",
"return",
"allocated",
"slots",
"next",
"clear",
"bit",
"(",
"0",
")",
">",
"=",
"slots",
"length",
";",
"}"
] |
[
"creates",
"a",
"{",
"@",
"code",
"delta",
"evictor",
"}",
"from",
"the",
"given",
"threshold",
"and",
"{",
"@",
"code",
"delta",
"function",
"}",
"eviction",
"is",
"done",
"before",
"the",
"window",
"function"
] | [
"public",
"static",
"<",
"t",
",",
"w",
"extends",
"window",
">",
"delta",
"evictor",
"<",
"t",
",",
"w",
">",
"of",
"(",
"double",
"threshold",
",",
"delta",
"function",
"<",
"t",
">",
"delta",
"function",
")",
"{",
"return",
"new",
"delta",
"evicto... |
[
"creates",
"the",
"hierarchy",
"using",
"the",
"information",
"into",
"the",
"config"
] | [
"public",
"static",
"generic",
"drawee",
"hierarchy",
"create",
"drawee",
"hierarchy",
"(",
"final",
"context",
"context",
",",
"final",
"config",
"config",
")",
"{",
"fresco",
"systrace",
"begin",
"section",
"(",
"\"",
"drawee",
"util",
"#",
"create",
"drawee... |
[
"test",
"the",
"message",
"from",
"the",
"elves"
] | [
"public",
"void",
"test",
"message",
"from",
"elves",
"(",
")",
"{",
"final",
"var",
"messenger",
"=",
"new",
"messenger",
"(",
")",
";",
"test",
"message",
"(",
"messenger",
"message",
"from",
"elves",
"(",
")",
",",
"\"",
"much",
"wind",
"pours",
"fr... |
[
"returns",
"true",
"if",
"the",
"this",
"index",
"should",
"be",
"searched",
"throttled",
"ie",
"using",
"the",
"{",
"@",
"link",
"org",
"elasticsearch",
"threadpool",
"thread",
"pool",
"names",
"#",
"search",
"throttled",
"}",
"thread",
"-",
"pool"
] | [
"public",
"boolean",
"is",
"search",
"throttled",
"(",
")",
"{",
"return",
"search",
"throttled",
";",
"}"
] |
[
"specify",
"whether",
"external",
"libraries",
"will",
"be",
"added",
"during",
"the",
"generation"
] | [
"public",
"void",
"set",
"add",
"external",
"libs",
"(",
"boolean",
"value",
")",
"{",
"is",
"add",
"external",
"libs",
"=",
"value",
";",
"}"
] |
[
"determine",
"if",
"the",
"specified",
"component",
"corresponds",
"to",
"a",
"zero",
"-",
"length",
"bit",
"-",
"field"
] | [
"public",
"boolean",
"is",
"zero",
"bit",
"field",
"component",
"(",
")",
";"
] |
[
"get",
"snake",
"case"
] | [
"public",
"integer",
"get",
"snake",
"case",
"(",
")",
"{",
"return",
"snake",
"case",
";",
"}"
] |
[
"compiles",
"and",
"returns",
"the",
"result",
"of",
"{",
"@",
"code",
"script",
"}",
"with",
"access",
"to",
"{",
"@",
"code",
"vars",
"}",
"and",
"compile",
"-",
"time",
"parameters"
] | [
"public",
"object",
"exec",
"(",
"string",
"script",
",",
"map",
"<",
"string",
",",
"object",
">",
"vars",
",",
"map",
"<",
"string",
",",
"string",
">",
"compile",
"params",
",",
"boolean",
"picky",
")",
"{",
"/",
"/",
"test",
"for",
"ambiguity",
"... |
[
"checks",
"whether",
"we",
"can",
"perform",
"a",
"write",
"based",
"on",
"the",
"required",
"active",
"shard",
"count",
"setting",
"returns",
"null",
"if",
"ok",
"to",
"proceed",
",",
"or",
"a",
"string",
"describing",
"the",
"reason",
"to",
"stop"
] | [
"protected",
"string",
"check",
"active",
"shard",
"count",
"(",
")",
"{",
"final",
"shard",
"id",
"shard",
"id",
"=",
"primary",
"routing",
"entry",
"(",
")",
"shard",
"id",
"(",
")",
";",
"final",
"active",
"shard",
"count",
"wait",
"for",
"active",
... |
[
"block",
"awaiting",
"all",
"outstanding",
"uploads",
"to",
"complete"
] | [
"private",
"list",
"<",
"part",
"e",
"tag",
">",
"wait",
"for",
"all",
"part",
"uploads",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"log",
"debug",
"(",
"\"",
"waiting",
"for",
"{",
"}",
"uploads",
"to",
"complete",
"\"",
",",
"part",
"e",
"t... |
[
"get",
"small",
"snake"
] | [
"public",
"string",
"get",
"small",
"snake",
"(",
")",
"{",
"return",
"small",
"snake",
";",
"}"
] |
[
"a",
"filter",
"for",
"iterable",
"<",
"?",
"extends",
"has",
"file",
"type",
">",
"that",
"returns",
"everything",
"except",
"the",
"specified",
"file",
"type"
] | [
"public",
"static",
"<",
"t",
"extends",
"has",
"file",
"type",
">",
"iterable",
"<",
"t",
">",
"except",
"(",
"final",
"iterable",
"<",
"t",
">",
"items",
",",
"file",
"type",
"file",
"type",
")",
"{",
"return",
"iterables",
"filter",
"(",
"items",
... |
[
"int",
"to",
"long",
"conversion",
"with",
"zero",
"-",
"padding"
] | [
"private",
"static",
"long",
"to",
"6",
"4",
"(",
"int",
"i",
")",
"{",
"return",
"i",
"&",
"0x",
"f",
"f",
"f",
"f",
"f",
"f",
"f",
"f",
"l",
";",
"}"
] |
[
"copies",
"all",
"bytes",
"from",
"a",
"url",
"to",
"an",
"output",
"stream"
] | [
"public",
"static",
"void",
"copy",
"(",
"url",
"from",
",",
"output",
"stream",
"to",
")",
"throws",
"i",
"o",
"exception",
"{",
"as",
"byte",
"source",
"(",
"from",
")",
"copy",
"to",
"(",
"to",
")",
";",
"}"
] |
[
"failure",
"handling",
":",
"record",
"the",
"exception",
"that",
"triggered",
"it",
"-",
"if",
"there",
"was",
"not",
"one",
"already",
"services",
"are",
"free",
"to",
"call",
"this",
"themselves"
] | [
"protected",
"final",
"void",
"note",
"failure",
"(",
"exception",
"exception",
")",
"{",
"log",
"debug",
"(",
"\"",
"note",
"failure",
"\"",
",",
"exception",
")",
";",
"if",
"(",
"exception",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"make",
"sure",
"f... |
[
"a",
"simple",
"way",
"to",
"create",
"jar",
"file",
"using",
"the",
"jar",
"creator",
"class"
] | [
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"{",
"if",
"(",
"args",
"length",
"<",
"1",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"usage",
":",
"create",
"jar",
"output",
"[",
"root",
"directories",
"]",
"\"",
"... |
[
"returns",
"true",
"if",
"the",
"supplied",
"class",
"includes",
"an",
"annotation",
"of",
"the",
"given",
"type"
] | [
"static",
"public",
"boolean",
"is",
"annotation",
"present",
"(",
"class",
"c",
",",
"class",
"<",
"?",
"extends",
"java",
"lang",
"annotation",
"annotation",
">",
"annotation",
"type",
")",
"{",
"return",
"c",
"is",
"annotation",
"present",
"(",
"annotatio... |
[
"this",
"method",
"resets",
"the",
"input",
"!"
] | [
"public",
"mutable",
"object",
"iterator",
"<",
"t",
">",
"get",
"iterator",
"(",
")",
"throws",
"interrupted",
"exception",
",",
"i",
"o",
"exception",
"{",
"synchronized",
"(",
"this",
"lock",
")",
"{",
"while",
"(",
"this",
"exception",
"=",
"=",
"nul... |
[
"identifying",
"certificate",
"for",
"this",
"host",
"{",
"@",
"code",
"key",
"cert",
"chain",
"input",
"stream",
"}",
"and",
"{",
"@",
"code",
"key",
"input",
"stream",
"}",
"may",
"be",
"{",
"@",
"code",
"null",
"}",
"for",
"client",
"contexts",
",",... | [
"public",
"ssl",
"context",
"builder",
"key",
"manager",
"(",
"input",
"stream",
"key",
"cert",
"chain",
"input",
"stream",
",",
"input",
"stream",
"key",
"input",
"stream",
")",
"{",
"return",
"key",
"manager",
"(",
"key",
"cert",
"chain",
"input",
"strea... |
[
"test",
"that",
"a",
"dir",
"two",
"levels",
"down",
"has",
"a",
"list",
"status",
"(",
")",
"call",
"that",
"works",
"as",
"expected"
] | [
"public",
"void",
"test",
"directories",
"lower",
"down",
"have",
"matching",
"file",
"status",
"(",
")",
"throws",
"exception",
"{",
"path",
"test",
"=",
"path",
"(",
"\"",
"/",
"test",
"/",
"test",
"directories",
"lower",
"down",
"have",
"matching",
"fil... |
[
"specifies",
"the",
"border",
"radius",
"for",
"the",
"given",
"corner"
] | [
"public",
"builder",
"radius",
"px",
"(",
"@",
"corner",
"int",
"corner",
",",
"@",
"px",
"int",
"radius",
")",
"{",
"check",
"not",
"built",
"(",
")",
";",
"if",
"(",
"corner",
"<",
"0",
"|",
"|",
"corner",
">",
"=",
"radius",
"count",
")",
"{",... |
[
"set",
"the",
"initial",
"delay",
"after",
"a",
"rejection",
"before",
"retrying",
"request"
] | [
"public",
"self",
"set",
"retry",
"backoff",
"initial",
"time",
"(",
"time",
"value",
"retry",
"backoff",
"initial",
"time",
")",
"{",
"this",
"retry",
"backoff",
"initial",
"time",
"=",
"retry",
"backoff",
"initial",
"time",
";",
"return",
"self",
"(",
")... |
[
"set",
"the",
"path",
"filter"
] | [
"public",
"glob",
"builder",
"with",
"path",
"filtern",
"(",
"path",
"filter",
"path",
"filter",
")",
"{",
"filter",
"=",
"path",
"filter",
";",
"return",
"this",
";",
"}"
] |
[
"returns",
"true",
"if",
"this",
"reader",
"will",
"extract",
"values",
"in",
"little",
"endian",
",",
"otherwise",
"in",
"big",
"endian"
] | [
"public",
"boolean",
"is",
"little",
"endian",
"(",
")",
"{",
"return",
"converter",
"instanceof",
"g",
"data",
"converter",
"l",
"e",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] | [
"@",
"override",
"public",
"t",
"visit",
"refcasttype",
"(",
"painless",
"parser",
"refcasttype",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"invokes",
"\"",
"static",
"void",
"register",
"commands",
"(",
"command",
"factory",
")",
"\"",
"on",
"the",
"given",
"class",
"this",
"method",
"abstracts",
"the",
"contract",
"between",
"the",
"factory",
"and",
"the",
"command",
"class",
"do",
"not",
"ass... | [
"public",
"void",
"register",
"commands",
"(",
"class",
"<",
"?",
">",
"registrar",
"class",
")",
"{",
"try",
"{",
"registrar",
"class",
"get",
"method",
"(",
"\"",
"register",
"commands",
"\"",
",",
"command",
"factory",
"class",
")",
"invoke",
"(",
"nu... |
[
"called",
"when",
"a",
"{",
"@",
"link",
"metric",
"}",
"was",
"removed"
] | [
"void",
"notify",
"of",
"removed",
"metric",
"(",
"metric",
"metric",
",",
"string",
"metric",
"name",
",",
"metric",
"group",
"group",
")",
";"
] |
[
"regression",
"test",
":",
"\"",
"value",
"in",
"cycle",
"depends",
"on",
"error",
"\"",
"we",
"add",
"another",
"value",
"that",
"won",
"'",
"t",
"finish",
"building",
"before",
"the",
"threadpool",
"shuts",
"down",
",",
"to",
"check",
"that",
"the",
"c... | [
"public",
"void",
"cycle",
"and",
"error",
"and",
"other",
"in",
"bubble",
"up",
"(",
")",
"throws",
"exception",
"{",
"graph",
"=",
"new",
"deterministic",
"helper",
"deterministic",
"processable",
"graph",
"(",
"new",
"in",
"memory",
"graph",
"impl",
"(",
... |
[
"calls",
"{",
"@",
"link",
"#",
"circle",
"(",
"float",
",",
"float",
",",
"float",
",",
"int",
")",
"}",
"by",
"estimating",
"the",
"number",
"of",
"segments",
"needed",
"for",
"a",
"smooth",
"circle"
] | [
"public",
"void",
"circle",
"(",
"float",
"x",
",",
"float",
"y",
",",
"float",
"radius",
")",
"{",
"circle",
"(",
"x",
",",
"y",
",",
"radius",
",",
"math",
"max",
"(",
"1",
",",
"(",
"int",
")",
"(",
"6",
"*",
"(",
"float",
")",
"math",
"cb... |
[
"uninstall",
"{",
"@",
"link",
"google",
"test",
"security",
"manager",
"}",
"if",
"it",
"is",
"installed",
"if",
"it",
"was",
"installed",
",",
"it",
"will",
"be",
"reinstalled",
"after",
"the",
"test",
"completes"
] | [
"private",
"void",
"uninstall",
"google",
"test",
"security",
"manager",
"(",
")",
"{",
"previous",
"security",
"manager",
"=",
"system",
"get",
"security",
"manager",
"(",
")",
";",
"google",
"test",
"security",
"manager",
"uninstall",
"if",
"installed",
"(",... |
[
"1",
"2",
"3"
] | [
"void",
"output",
"to",
"result",
"(",
")",
"{",
"int",
"index",
"=",
"0",
";",
"for",
"(",
";",
"index",
"<",
"=",
"this",
"cursor",
";",
")",
"{",
"/",
"/",
"if",
"(",
"character",
"util",
"char",
"useless",
"=",
"=",
"this",
"char",
"types",
... |
[
"creates",
"an",
"xml",
"item",
"this",
"route",
"creates",
"an",
"xml",
"item"
] | [
"public",
"single",
"<",
"void",
">",
"rx",
"create",
"xml",
"item",
"(",
"xml",
"item",
"xml",
"item",
",",
"api",
"client",
"auth",
"info",
"auth",
"info",
")",
"{",
"return",
"single",
"create",
"(",
"new",
"io",
"vertx",
"rx",
"java",
"single",
"... |
[
"this",
"implementation",
"calls",
"{",
"@",
"link",
"#",
"init",
"strategies",
"}"
] | [
"protected",
"void",
"on",
"refresh",
"(",
"application",
"context",
"context",
")",
"{",
"init",
"strategies",
"(",
"context",
")",
";",
"}"
] |
[
"set",
"the",
"factory",
"for",
"concrete",
"jca",
"1",
"5",
"activation",
"spec",
"objects",
",",
"creating",
"jca",
"activation",
"specs",
"based",
"on",
"{",
"@",
"link",
"#",
"set",
"activation",
"spec",
"config",
"jms",
"activation",
"spec",
"config",
... | [
"public",
"void",
"set",
"activation",
"spec",
"factory",
"(",
"@",
"nullable",
"jms",
"activation",
"spec",
"factory",
"activation",
"spec",
"factory",
")",
"{",
"this",
"activation",
"spec",
"factory",
"=",
"(",
"activation",
"spec",
"factory",
"!",
"=",
"... |
[
"the",
"symlink",
"chain",
"that",
"is",
"the",
"root",
"cause",
"of",
"the",
"infinite",
"expansion",
"for",
"example",
",",
"suppose",
"'",
"a",
"'",
"-",
">",
"'",
"b",
"'",
"-",
">",
"'",
"c",
"'",
"-",
">",
"'",
"d",
"'",
"-",
">",
"'",
... | [
"public",
"immutable",
"list",
"<",
"rooted",
"path",
">",
"get",
"chain",
"(",
")",
"{",
"return",
"chain",
";",
"}"
] |
[
"checks",
"if",
"the",
"cluster",
"state",
"allows",
"this",
"node",
"to",
"add",
"x",
"-",
"pack",
"metadata",
"to",
"the",
"cluster",
"state",
"see",
"{",
"@",
"link",
"#",
"check",
"ready",
"for",
"x",
"pack",
"custom",
"metadata",
"}",
"for",
"more... | [
"public",
"static",
"boolean",
"is",
"ready",
"for",
"x",
"pack",
"custom",
"metadata",
"(",
"cluster",
"state",
"cluster",
"state",
")",
"{",
"return",
"already",
"contains",
"x",
"pack",
"custom",
"metadata",
"(",
"cluster",
"state",
")",
"|",
"|",
"node... |
[
"sets",
"the",
"setting",
"with",
"the",
"provided",
"setting",
"key",
"and",
"a",
"list",
"of",
"values"
] | [
"public",
"builder",
"put",
"list",
"(",
"string",
"setting",
",",
"list",
"<",
"string",
">",
"values",
")",
"{",
"remove",
"(",
"setting",
")",
";",
"map",
"put",
"(",
"setting",
",",
"new",
"array",
"list",
"<",
">",
"(",
"values",
")",
")",
";"... |
[
"displays",
"format",
"of",
"commands"
] | [
"private",
"static",
"void",
"print",
"usage",
"(",
"string",
"cmd",
")",
"{",
"if",
"(",
"\"",
"-",
"report",
"\"",
"equals",
"(",
"cmd",
")",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"usage",
":",
"hdfs",
"dfsadmin",
"\"",
"+",
"\"",
"[",... |
[
"returns",
"the",
"checkout",
"data",
"corresponding",
"to",
"the",
"specified",
"checkout",
"id",
"null",
"is",
"returned",
"if",
"checkout",
"id",
"is",
"not",
"found"
] | [
"synchronized",
"item",
"checkout",
"status",
"get",
"checkout",
"(",
"long",
"checkout",
"id",
")",
"throws",
"i",
"o",
"exception",
"{",
"validate",
"(",
")",
";",
"return",
"checkouts",
"get",
"(",
"checkout",
"id",
")",
";",
"}"
] |
[
"@",
"inherit",
"doc"
] | [
"public",
"class",
"def",
"read",
"class",
"def",
"(",
")",
"{",
"ensure",
"four",
"bytes",
"aligned",
"(",
"table",
"of",
"contents",
"class",
"defs",
",",
"false",
")",
";",
"return",
"super",
"read",
"class",
"def",
"(",
")",
";",
"}"
] |
[
"sorts",
"the",
"elements",
"of",
"{",
"@",
"code",
"array",
"}",
"between",
"{",
"@",
"code",
"from",
"index",
"}",
"inclusive",
"and",
"{",
"@",
"code",
"to",
"index",
"}",
"exclusive",
"in",
"descending",
"order",
",",
"interpreting",
"them",
"as",
... | [
"public",
"static",
"void",
"sort",
"descending",
"(",
"int",
"[",
"]",
"array",
",",
"int",
"from",
"index",
",",
"int",
"to",
"index",
")",
"{",
"check",
"not",
"null",
"(",
"array",
")",
";",
"check",
"position",
"indexes",
"(",
"from",
"index",
"... |
[
"set",
"the",
"{",
"@",
"link",
"#",
"start",
"time",
"}",
",",
"when",
"the",
"first",
"start",
",",
"which",
"means",
"the",
"first",
"service",
"provided"
] | [
"public",
"exit",
"span",
"start",
"(",
")",
"{",
"if",
"(",
"+",
"+",
"stack",
"depth",
"=",
"=",
"1",
")",
"{",
"super",
"start",
"(",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
[
"put",
"faketest",
"-",
"query",
"-",
"paramters",
"to",
"test",
"the",
"collection",
"format",
"in",
"query",
"parameters"
] | [
"default",
"response",
"entity",
"<",
"void",
">",
"test",
"query",
"parameter",
"collection",
"format",
"(",
"@",
"not",
"null",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"\"",
",",
"required",
"=",
"true",
")",
"@",
"valid",
"@",
"request",
"para... |
[
"tests",
"that",
"track",
"selector",
"will",
"select",
"the",
"lowest",
"bitrate",
"supported",
"audio",
"track",
"when",
"{",
"@",
"link",
"parameters",
"#",
"force",
"lowest",
"bitrate",
"}",
"is",
"set"
] | [
"public",
"void",
"select",
"tracks",
"within",
"capabilities",
"and",
"force",
"lowest",
"bitrate",
"select",
"lower",
"bitrate",
"(",
")",
"throws",
"exception",
"{",
"format",
"builder",
"format",
"builder",
"=",
"audio",
"format",
"build",
"upon",
"(",
")"... |
[
"inserts",
"a",
"parcelable",
"value",
"into",
"the",
"mapping",
"of",
"this",
"bundle",
",",
"replacing",
"any",
"existing",
"value",
"for",
"the",
"given",
"key",
"either",
"key",
"or",
"value",
"may",
"be",
"null"
] | [
"public",
"postcard",
"with",
"parcelable",
"(",
"@",
"nullable",
"string",
"key",
",",
"@",
"nullable",
"parcelable",
"value",
")",
"{",
"m",
"bundle",
"put",
"parcelable",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"apply",
"scale",
"animation",
"for",
"the",
"views",
"'",
"click"
] | [
"public",
"static",
"void",
"apply",
"pressed",
"view",
"scale",
"(",
"final",
"view",
"views",
")",
"{",
"apply",
"pressed",
"view",
"scale",
"(",
"views",
",",
"null",
")",
";",
"}"
] |
[
"transforms",
"the",
"specified",
"point",
"in",
"the",
"stage",
"'",
"s",
"coordinates",
"to",
"the",
"actor",
"'",
"s",
"local",
"coordinate",
"system"
] | [
"public",
"vector",
"2",
"stage",
"to",
"local",
"coordinates",
"(",
"vector",
"2",
"stage",
"coords",
")",
"{",
"if",
"(",
"parent",
"!",
"=",
"null",
")",
"parent",
"stage",
"to",
"local",
"coordinates",
"(",
"stage",
"coords",
")",
";",
"parent",
"t... |
[
"given",
"a",
"block",
"group",
",",
"tell",
"if",
"any",
"of",
"the",
"missing",
"blocks",
"can",
"be",
"recovered",
",",
"to",
"be",
"called",
"by",
"e",
"c",
"manager"
] | [
"public",
"boolean",
"any",
"recoverable",
"(",
"e",
"c",
"block",
"group",
"block",
"group",
")",
"{",
"int",
"erased",
"count",
"=",
"block",
"group",
"get",
"erased",
"count",
"(",
")",
";",
"return",
"erased",
"count",
">",
"0",
"&",
"&",
"erased",... |
[
"creates",
"a",
"new",
"instance",
"of",
"the",
"message",
"digest",
"to",
"use",
"for",
"the",
"blob",
"key",
"computation"
] | [
"static",
"message",
"digest",
"create",
"message",
"digest",
"(",
")",
"{",
"try",
"{",
"return",
"message",
"digest",
"get",
"instance",
"(",
"hashing",
"algorithm",
")",
";",
"}",
"catch",
"(",
"no",
"such",
"algorithm",
"exception",
"e",
")",
"{",
"t... |
[
"sets",
"the",
"<",
"code",
">",
"enum",
"integer",
"<",
"code",
">",
"property"
] | [
"public",
"enum",
"test",
"enum",
"integer",
"(",
"enum",
"integer",
"enum",
"enum",
"integer",
")",
"{",
"this",
"enum",
"integer",
"=",
"enum",
"integer",
";",
"return",
"this",
";",
"}"
] |
[
"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",
"the",
"number",
"of",
"first",
"line",
"of",
"the",
"attribute",
"documentation",
"in",
"its",
"declaration",
"file"
] | [
"int",
"get",
"start",
"line",
"cnt",
"(",
")",
"{",
"return",
"start",
"line",
"cnt",
";",
"}"
] |
[
"remove",
"this",
"leaf",
"from",
"the",
"tree"
] | [
"public",
"fixed",
"key",
"node",
"remove",
"leaf",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"field",
"key",
"=",
"get",
"key",
"field",
"(",
"0",
")",
";",
"int",
"prev",
"buffer",
"id",
"=",
"buffer",
"get",
"int",
"(",
"prev",
"leaf",
"id... |
[
"clean",
"up",
"of",
"the",
"builder",
"for",
"interrupted",
"workflow",
"this",
"does",
"nothing",
"if",
"{",
"@",
"link",
"#",
"close",
"(",
")",
"}",
"was",
"called",
"successfully"
] | [
"public",
"void",
"clean",
"up",
"(",
")",
"{",
"if",
"(",
"m",
"output",
"jar",
"!",
"=",
"null",
")",
"{",
"try",
"{",
"m",
"output",
"jar",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"/",
"/",
"pass",
... |
[
"returns",
"unprocessed",
"arguments",
"whereas",
"{",
"@",
"link",
"#",
"get",
"arguments",
"(",
")",
"}",
"returns",
"arguments",
"already",
"processed",
"(",
"e",
"g",
"varargs",
"expended",
",",
"etc",
")"
] | [
"object",
"[",
"]",
"get",
"raw",
"arguments",
"(",
")",
";"
] |
[
"delegates",
"to",
"the",
"{",
"@",
"link",
"log",
"#",
"info",
"(",
"object",
")",
"}",
"method",
"of",
"the",
"underlying",
"{",
"@",
"link",
"log",
"}",
"instance",
"however",
",",
"this",
"form",
"avoids",
"superfluous",
"object",
"creation",
"when",... | [
"public",
"void",
"info",
"(",
"string",
"format",
",",
"object",
"arguments",
")",
"{",
"if",
"(",
"logger",
"is",
"info",
"enabled",
"(",
")",
")",
"{",
"formatting",
"tuple",
"ft",
"=",
"message",
"formatter",
"array",
"format",
"(",
"format",
",",
... |
[
"returns",
"an",
"error",
"if",
"and",
"only",
"if",
"an",
"earlier",
"call",
"to",
"{",
"@",
"link",
"#",
"evaluate",
"}",
"created",
"it",
";",
"null",
"otherwise",
"this",
"method",
"should",
"only",
"be",
"used",
"by",
"tests",
"that",
"need",
"to"... | [
"error",
"info",
"get",
"existing",
"error",
"for",
"testing",
"(",
"sky",
"key",
"key",
")",
"throws",
"interrupted",
"exception",
";"
] |
[
"returns",
"a",
"new",
"array",
"containing",
"the",
"remaining",
"values"
] | [
"public",
"array",
"<",
"v",
">",
"to",
"array",
"(",
")",
"{",
"return",
"to",
"array",
"(",
"new",
"array",
"(",
"true",
",",
"map",
"size",
")",
")",
";",
"}"
] |
[
"popup",
"the",
"hello",
"dialog"
] | [
"protected",
"void",
"announce",
"(",
"string",
"message",
")",
"{",
"msg",
"show",
"info",
"(",
"get",
"class",
"(",
")",
",",
"main",
"panel",
",",
"\"",
"hello",
"world",
"\"",
",",
"message",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.