docstring_tokens
list | code_tokens
list |
---|---|
[
"the",
"completed",
"status",
"of",
"the",
"stream",
"the",
"future",
"will",
"never",
"fail",
",",
"but",
"in",
"case",
"of",
"error",
"will",
"contain",
"a",
"corresponding",
"status"
]
| [
"listenable",
"future",
"<",
"status",
">",
"get",
"status",
"(",
")",
";"
]
|
[
"initialize",
"the",
"bodies",
",",
"anchors",
",",
"and",
"reference",
"angle",
"using",
"a",
"world",
"anchor",
"point"
]
| [
"public",
"void",
"initialize",
"(",
"body",
"b",
"a",
",",
"body",
"b",
"b",
",",
"vec",
"2",
"anchor",
")",
"{",
"body",
"a",
"=",
"b",
"a",
";",
"body",
"b",
"=",
"b",
"b",
";",
"body",
"a",
"get",
"local",
"point",
"to",
"out",
"(",
"anchor",
",",
"local",
"anchor",
"a",
")",
";",
"body",
"b",
"get",
"local",
"point",
"to",
"out",
"(",
"anchor",
",",
"local",
"anchor",
"b",
")",
";",
"reference",
"angle",
"=",
"body",
"b",
"get",
"angle",
"(",
")",
"-",
"body",
"a",
"get",
"angle",
"(",
")",
";",
"}"
]
|
[
"returns",
"the",
"first",
"element",
"in",
"{",
"@",
"code",
"iterator",
"}",
"that",
"satisfies",
"the",
"given",
"predicate",
";",
"use",
"this",
"method",
"only",
"when",
"such",
"an",
"element",
"is",
"known",
"to",
"exist",
"if",
"no",
"such",
"element",
"is",
"found",
",",
"the",
"iterator",
"will",
"be",
"left",
"exhausted",
":",
"its",
"{",
"@",
"code",
"has",
"next",
"(",
")",
"}",
"method",
"will",
"return",
"{",
"@",
"code",
"false",
"}",
"if",
"it",
"is",
"possible",
"that",
"no",
"element",
"will",
"match",
",",
"use",
"{",
"@",
"link",
"#",
"try",
"find",
"}",
"or",
"{",
"@",
"link",
"#",
"find",
"(",
"iterator",
",",
"predicate",
",",
"object",
")",
"}",
"instead"
]
| [
"public",
"static",
"<",
"t",
">",
"t",
"find",
"(",
"iterator",
"<",
"t",
">",
"iterator",
",",
"predicate",
"<",
"?",
"super",
"t",
">",
"predicate",
")",
"{",
"check",
"not",
"null",
"(",
"iterator",
")",
";",
"check",
"not",
"null",
"(",
"predicate",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"t",
"t",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"predicate",
"apply",
"(",
"t",
")",
")",
"{",
"return",
"t",
";",
"}",
"}",
"throw",
"new",
"no",
"such",
"element",
"exception",
"(",
")",
";",
"}"
]
|
[
"modify",
"a",
"configuration",
"to",
"use",
"kerberos",
"as",
"the",
"auth",
"method"
]
| [
"public",
"void",
"bind",
"conf",
"to",
"cluster",
"(",
"configuration",
"conf",
")",
"{",
"conf",
"set",
"(",
"hadoop",
"security",
"authentication",
",",
"user",
"group",
"information",
"authentication",
"method",
"kerberos",
"name",
"(",
")",
")",
";",
"conf",
"set",
"(",
"common",
"configuration",
"keys",
"hadoop",
"user",
"group",
"static",
"overrides",
",",
"\"",
"alice",
",",
"alice",
"\"",
")",
";",
"/",
"/",
"a",
"shortname",
"for",
"the",
"rm",
"principal",
"avoids",
"kerberos",
"mapping",
"problems",
"conf",
"set",
"(",
"yarn",
"configuration",
"rm",
"principal",
",",
"bob",
")",
";",
"}"
]
|
[
"patch",
"any",
"collection",
"of",
"metadata",
"entries",
"with",
"the",
"timestamp",
"of",
"a",
"time",
"provider",
"this",
"must",
"be",
"used",
"when",
"creating",
"new",
"entries",
"for",
"directories"
]
| [
"static",
"void",
"patch",
"last",
"updated",
"(",
"final",
"collection",
"<",
"?",
"extends",
"path",
"metadata",
">",
"file",
"metas",
",",
"@",
"nullable",
"final",
"i",
"ttl",
"time",
"provider",
"time",
"provider",
")",
"{",
"if",
"(",
"time",
"provider",
"!",
"=",
"null",
")",
"{",
"final",
"long",
"now",
"=",
"time",
"provider",
"get",
"now",
"(",
")",
";",
"file",
"metas",
"for",
"each",
"(",
"file",
"meta",
"-",
">",
"file",
"meta",
"set",
"last",
"updated",
"(",
"now",
")",
")",
";",
"}",
"else",
"{",
"log",
"debug",
"(",
"\"",
"time",
"provider",
"is",
"null",
",",
"put",
"{",
"}",
"without",
"setting",
"last",
"updated",
"\"",
",",
"file",
"metas",
")",
";",
"}",
"}"
]
|
[
"appends",
"the",
"string",
"representation",
"of",
"each",
"of",
"{",
"@",
"code",
"parts",
"}",
",",
"using",
"the",
"previously",
"configured",
"separator",
"between",
"each",
",",
"to",
"{",
"@",
"code",
"builder",
"}",
"identical",
"to",
"{",
"@",
"link",
"#",
"append",
"to",
"(",
"appendable",
",",
"iterable",
")",
"}",
",",
"except",
"that",
"it",
"does",
"not",
"throw",
"{",
"@",
"link",
"i",
"o",
"exception",
"}"
]
| [
"public",
"final",
"string",
"builder",
"append",
"to",
"(",
"string",
"builder",
"builder",
",",
"iterable",
"<",
"?",
">",
"parts",
")",
"{",
"return",
"append",
"to",
"(",
"builder",
",",
"parts",
"iterator",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"this",
"try",
"'",
"s",
"catch",
"handler",
"index",
"note",
"that",
"this",
"is",
"distinct",
"from",
"the",
"its",
"catch",
"handler",
"offset"
]
| [
"public",
"int",
"get",
"catch",
"handler",
"index",
"(",
")",
"{",
"return",
"catch",
"handler",
"index",
";",
"}"
]
|
[
"this",
"is",
"a",
"high",
"cpu",
"cost",
"method",
",",
"only",
"called",
"when",
"sending",
"to",
"collector",
"or",
"test",
"cases"
]
| [
"public",
"segment",
"object",
"transform",
"(",
")",
"{",
"segment",
"object",
"builder",
"trace",
"segment",
"builder",
"=",
"segment",
"object",
"new",
"builder",
"(",
")",
";",
"trace",
"segment",
"builder",
"set",
"trace",
"id",
"(",
"get",
"related",
"global",
"traces",
"(",
")",
"get",
"(",
"0",
")",
"get",
"id",
"(",
")",
")",
";",
"/",
"*",
"*",
"trace",
"segment",
"*",
"/",
"trace",
"segment",
"builder",
"set",
"trace",
"segment",
"id",
"(",
"this",
"trace",
"segment",
"id",
")",
";",
"/",
"/",
"don",
"'",
"t",
"serialize",
"trace",
"segment",
"reference",
"/",
"/",
"span",
"object",
"for",
"(",
"abstract",
"tracing",
"span",
"span",
":",
"this",
"spans",
")",
"{",
"trace",
"segment",
"builder",
"add",
"spans",
"(",
"span",
"transform",
"(",
")",
")",
";",
"}",
"trace",
"segment",
"builder",
"set",
"service",
"(",
"config",
"agent",
"service",
"name",
")",
";",
"trace",
"segment",
"builder",
"set",
"service",
"instance",
"(",
"config",
"agent",
"instance",
"name",
")",
";",
"trace",
"segment",
"builder",
"set",
"is",
"size",
"limited",
"(",
"this",
"is",
"size",
"limited",
")",
";",
"return",
"trace",
"segment",
"builder",
"build",
"(",
")",
";",
"}"
]
|
[
"unsupported",
",",
"but",
"we",
"should",
"test",
"that",
"parsing",
"works"
]
| [
"@",
"test",
"void",
"version",
"2",
"unsupported",
"(",
")",
"{",
"assert",
"that",
"thrown",
"by",
"(",
"(",
")",
"-",
">",
"storage",
"version",
"specific",
"templates",
"(",
"v2",
"4",
")",
")",
"has",
"message",
"(",
"\"",
"elasticsearch",
"versions",
"5",
"-",
"7",
"x",
"are",
"supported",
",",
"was",
":",
"2",
"4",
"\"",
")",
";",
"}"
]
|
[
"the",
"search",
"request",
"that",
"matches",
"the",
"documents",
"to",
"process"
]
| [
"public",
"search",
"request",
"get",
"search",
"request",
"(",
")",
"{",
"return",
"search",
"request",
";",
"}"
]
|
[
"sets",
"the",
"admin",
"state",
"to",
"indicate",
"that",
"decommission",
"is",
"complete"
]
| [
"public",
"void",
"set",
"decommissioned",
"(",
")",
"{",
"admin",
"state",
"=",
"admin",
"states",
"decommissioned",
";",
"}"
]
|
[
"saves",
"the",
"property",
"at",
"the",
"given",
"index",
"to",
"the",
"given",
"output",
"stream"
]
| [
"protected",
"void",
"save",
"property",
"(",
"object",
"output",
"stream",
"oos",
",",
"long",
"index",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"oos",
"write",
"byte",
"(",
"get",
"byte",
"(",
"index",
")",
")",
";",
"}",
"catch",
"(",
"no",
"value",
"exception",
"e",
")",
"{",
"throw",
"new",
"assert",
"exception",
"(",
"e",
"get",
"message",
"(",
")",
")",
";",
"}",
"}"
]
|
[
"end",
"pass",
"n"
]
| [
"protected",
"void",
"end",
"pass",
"(",
"int",
"n",
")",
"{",
"frame",
"buffers",
"[",
"n",
"]",
"end",
"(",
")",
";",
"}"
]
|
[
"gets",
"the",
"path",
"of",
"the",
"image"
]
| [
"public",
"string",
"get",
"path",
"(",
")",
"{",
"return",
"path",
";",
"}"
]
|
[
"returns",
"an",
"{",
"@",
"link",
"address",
"range",
"iterator",
"}",
"over",
"all",
"ranges",
"that",
"have",
"associated",
"objects"
]
| [
"public",
"address",
"range",
"iterator",
"get",
"address",
"range",
"iterator",
"(",
")",
"{",
"return",
"new",
"simple",
"address",
"range",
"iterator",
"(",
")",
";",
"}"
]
|
[
"returns",
"a",
"comparator",
"that",
"compares",
"two",
"arrays",
"of",
"unsigned",
"{",
"@",
"code",
"long",
"}",
"values",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"en",
"wikipedia",
"orgwiki",
"lexicographical",
"order",
"\"",
">",
"lexicographically",
"that",
"is",
",",
"it",
"compares",
",",
"using",
"{",
"@",
"link",
"#",
"compare",
"(",
"long",
",",
"long",
")",
"}",
")",
",",
"the",
"first",
"pair",
"of",
"values",
"that",
"follow",
"any",
"common",
"prefix",
",",
"or",
"when",
"one",
"array",
"is",
"a",
"prefix",
"of",
"the",
"other",
",",
"treats",
"the",
"shorter",
"array",
"as",
"the",
"lesser",
"for",
"example",
",",
"{",
"@",
"code",
"[",
"]",
"<",
"[",
"1l",
"]",
"<",
"[",
"1l",
",",
"2l",
"]",
"<",
"[",
"2l",
"]",
"<",
"[",
"1l",
"<",
"<",
"63",
"]",
"}",
"the",
"returned",
"comparator",
"is",
"inconsistent",
"with",
"{",
"@",
"link",
"object",
"#",
"equals",
"(",
"object",
")",
"}",
"(",
"since",
"arrays",
"support",
"only",
"identity",
"equality",
")",
",",
"but",
"it",
"is",
"consistent",
"with",
"{",
"@",
"link",
"arrays",
"#",
"equals",
"(",
"long",
"[",
"]",
",",
"long",
"[",
"]",
")",
"}"
]
| [
"public",
"static",
"comparator",
"<",
"long",
"[",
"]",
">",
"lexicographical",
"comparator",
"(",
")",
"{",
"return",
"lexicographical",
"comparator",
"instance",
";",
"}"
]
|
[
"tests",
"equality",
"of",
"{",
"@",
"link",
"hashing",
"#",
"good",
"fast",
"hash",
"}",
"instances",
"this",
"test",
"must",
"be",
"separate",
"from",
"{",
"@",
"link",
"#",
"test",
"seeded",
"hash",
"function",
"equals",
"}",
"because",
"the",
"parameter",
"to",
"{",
"@",
"code",
"good",
"fast",
"hash",
"}",
"is",
"a",
"size",
",",
"not",
"a",
"seed",
",",
"and",
"because",
"that",
"size",
"is",
"rounded",
"up",
"thus",
",",
"{",
"@",
"code",
"good",
"fast",
"hash",
"}",
"instances",
"with",
"different",
"parameters",
"can",
"be",
"equal",
"that",
"fact",
"is",
"a",
"problem",
"for",
"{",
"@",
"code",
"test",
"seeded",
"hash",
"function",
"equals",
"}"
]
| [
"public",
"void",
"test",
"good",
"fast",
"hash",
"equals",
"(",
")",
"throws",
"exception",
"{",
"hash",
"function",
"hash",
"function",
"1a",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"1",
")",
";",
"hash",
"function",
"hash",
"function",
"1b",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"32",
")",
";",
"hash",
"function",
"hash",
"function",
"2a",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"33",
")",
";",
"hash",
"function",
"hash",
"function",
"2b",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"128",
")",
";",
"hash",
"function",
"hash",
"function",
"3a",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"129",
")",
";",
"hash",
"function",
"hash",
"function",
"3b",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"256",
")",
";",
"hash",
"function",
"hash",
"function",
"4a",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"257",
")",
";",
"hash",
"function",
"hash",
"function",
"4b",
"=",
"hashing",
"good",
"fast",
"hash",
"(",
"384",
")",
";",
"new",
"equals",
"tester",
"(",
")",
"add",
"equality",
"group",
"(",
"hash",
"function",
"1a",
",",
"hash",
"function",
"1b",
")",
"add",
"equality",
"group",
"(",
"hash",
"function",
"2a",
",",
"hash",
"function",
"2b",
")",
"add",
"equality",
"group",
"(",
"hash",
"function",
"3a",
",",
"hash",
"function",
"3b",
")",
"add",
"equality",
"group",
"(",
"hash",
"function",
"4a",
",",
"hash",
"function",
"4b",
")",
"test",
"equals",
"(",
")",
";",
"assert",
"equals",
"(",
"hash",
"function",
"1a",
"to",
"string",
"(",
")",
",",
"hash",
"function",
"1b",
"to",
"string",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"hash",
"function",
"2a",
"to",
"string",
"(",
")",
",",
"hash",
"function",
"2b",
"to",
"string",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"hash",
"function",
"3a",
"to",
"string",
"(",
")",
",",
"hash",
"function",
"3b",
"to",
"string",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"hash",
"function",
"4a",
"to",
"string",
"(",
")",
",",
"hash",
"function",
"4b",
"to",
"string",
"(",
")",
")",
";",
"}"
]
|
[
"judge",
"the",
"table",
"model",
"has",
"such",
"a",
"column",
"or",
"not"
]
| [
"public",
"boolean",
"contains",
"column",
"(",
"string",
"column",
"name",
")",
"{",
"return",
"column",
"model",
"map",
"contains",
"key",
"(",
"base",
"utility",
"change",
"case",
"(",
"column",
"name",
")",
")",
";",
"}"
]
|
[
"add",
"the",
"given",
"{",
"@",
"link",
"handler",
"method",
"return",
"value",
"handler",
"handler",
"method",
"return",
"value",
"handlers",
"}"
]
| [
"public",
"handler",
"method",
"return",
"value",
"handler",
"composite",
"add",
"handlers",
"(",
"@",
"nullable",
"list",
"<",
"?",
"extends",
"handler",
"method",
"return",
"value",
"handler",
">",
"handlers",
")",
"{",
"if",
"(",
"handlers",
"!",
"=",
"null",
")",
"{",
"this",
"return",
"value",
"handlers",
"add",
"all",
"(",
"handlers",
")",
";",
"}",
"return",
"this",
";",
"}"
]
|
[
"return",
"the",
"value",
"of",
"the",
"{",
"@",
"code",
"access",
"-",
"control",
"-",
"expose",
"-",
"headers",
"}",
"response",
"header"
]
| [
"public",
"list",
"<",
"string",
">",
"get",
"access",
"control",
"expose",
"headers",
"(",
")",
"{",
"return",
"get",
"values",
"as",
"list",
"(",
"access",
"control",
"expose",
"headers",
")",
";",
"}"
]
|
[
"adds",
"the",
"segmentd",
"input",
"elements",
"for",
"checkpointing",
"including",
"completed",
"but",
"not",
"yet",
"emitted",
"elements"
]
| [
"void",
"add",
"pending",
"elements",
"(",
"list",
"<",
"stream",
"element",
">",
"results",
")",
"{",
"for",
"(",
"stream",
"element",
"queue",
"entry",
"<",
"out",
">",
"element",
":",
"completed",
"elements",
")",
"{",
"results",
"add",
"(",
"element",
"get",
"input",
"element",
"(",
")",
")",
";",
"}",
"for",
"(",
"stream",
"element",
"queue",
"entry",
"<",
"out",
">",
"element",
":",
"incomplete",
"elements",
")",
"{",
"results",
"add",
"(",
"element",
"get",
"input",
"element",
"(",
")",
")",
";",
"}",
"}"
]
|
[
"helper",
"methods",
"that",
"tests",
"for",
"a",
"variety",
"of",
"decoding",
"scenarios",
"this",
"methods",
"invokes",
":",
"{",
"@",
"link",
"#",
"test",
"encode",
"(",
"publisher",
",",
"resolvable",
"type",
",",
"consumer",
",",
"mime",
"type",
",",
"map",
")",
"}",
"{",
"@",
"link",
"#",
"test",
"encode",
"error",
"(",
"publisher",
",",
"resolvable",
"type",
",",
"mime",
"type",
",",
"map",
")",
"}",
"{",
"@",
"link",
"#",
"test",
"encode",
"cancel",
"(",
"publisher",
",",
"resolvable",
"type",
",",
"mime",
"type",
",",
"map",
")",
"}",
"{",
"@",
"link",
"#",
"test",
"encode",
"empty",
"(",
"resolvable",
"type",
",",
"mime",
"type",
",",
"map",
")",
"}"
]
| [
"protected",
"<",
"t",
">",
"void",
"test",
"encode",
"all",
"(",
"publisher",
"<",
"?",
"extends",
"t",
">",
"input",
",",
"resolvable",
"type",
"input",
"type",
",",
"consumer",
"<",
"step",
"verifier",
"first",
"step",
"<",
"data",
"buffer",
">",
">",
"step",
"consumer",
",",
"@",
"nullable",
"mime",
"type",
"mime",
"type",
",",
"@",
"nullable",
"map",
"<",
"string",
",",
"object",
">",
"hints",
")",
"{",
"test",
"encode",
"(",
"input",
",",
"input",
"type",
",",
"step",
"consumer",
",",
"mime",
"type",
",",
"hints",
")",
";",
"test",
"encode",
"error",
"(",
"input",
",",
"input",
"type",
",",
"mime",
"type",
",",
"hints",
")",
";",
"test",
"encode",
"cancel",
"(",
"input",
",",
"input",
"type",
",",
"mime",
"type",
",",
"hints",
")",
";",
"test",
"encode",
"empty",
"(",
"input",
"type",
",",
"mime",
"type",
",",
"hints",
")",
";",
"}"
]
|
[
"refer",
"or",
"destroy",
"callback",
"service",
"on",
"server",
"side"
]
| [
"private",
"static",
"object",
"refer",
"or",
"destroy",
"callback",
"service",
"(",
"channel",
"channel",
",",
"url",
"url",
",",
"class",
"<",
"?",
">",
"clazz",
",",
"invocation",
"inv",
",",
"int",
"instid",
",",
"boolean",
"is",
"refer",
")",
"{",
"object",
"proxy",
";",
"string",
"invoker",
"cache",
"key",
"=",
"get",
"server",
"side",
"callback",
"invoker",
"cache",
"key",
"(",
"channel",
",",
"clazz",
"get",
"name",
"(",
")",
",",
"instid",
")",
";",
"string",
"proxy",
"cache",
"key",
"=",
"get",
"server",
"side",
"callback",
"service",
"cache",
"key",
"(",
"channel",
",",
"clazz",
"get",
"name",
"(",
")",
",",
"instid",
")",
";",
"proxy",
"=",
"channel",
"get",
"attribute",
"(",
"proxy",
"cache",
"key",
")",
";",
"string",
"countkey",
"=",
"get",
"server",
"side",
"count",
"key",
"(",
"channel",
",",
"clazz",
"get",
"name",
"(",
")",
")",
";",
"if",
"(",
"is",
"refer",
")",
"{",
"if",
"(",
"proxy",
"=",
"=",
"null",
")",
"{",
"url",
"referurl",
"=",
"url",
"value",
"of",
"(",
"\"",
"callback",
":",
"/",
"/",
"\"",
"+",
"url",
"get",
"address",
"(",
")",
"+",
"\"",
"/",
"\"",
"+",
"clazz",
"get",
"name",
"(",
")",
"+",
"\"",
"?",
"\"",
"+",
"interface",
"key",
"+",
"\"",
"=",
"\"",
"+",
"clazz",
"get",
"name",
"(",
")",
")",
";",
"referurl",
"=",
"referurl",
"add",
"parameters",
"if",
"absent",
"(",
"url",
"get",
"parameters",
"(",
")",
")",
"remove",
"parameter",
"(",
"methods",
"key",
")",
";",
"if",
"(",
"!",
"is",
"instances",
"over",
"limit",
"(",
"channel",
",",
"referurl",
",",
"clazz",
"get",
"name",
"(",
")",
",",
"instid",
",",
"true",
")",
")",
"{",
"application",
"model",
"get",
"service",
"repository",
"(",
")",
"register",
"service",
"(",
"clazz",
")",
";",
"@",
"suppress",
"warnings",
"(",
"\"",
"rawtypes",
"\"",
")",
"invoker",
"<",
"?",
">",
"invoker",
"=",
"new",
"channel",
"wrapped",
"invoker",
"(",
"clazz",
",",
"channel",
",",
"referurl",
",",
"string",
"value",
"of",
"(",
"instid",
")",
")",
";",
"proxy",
"=",
"proxy",
"factory",
"get",
"proxy",
"(",
"new",
"async",
"to",
"sync",
"invoker",
"<",
">",
"(",
"invoker",
")",
")",
";",
"channel",
"set",
"attribute",
"(",
"proxy",
"cache",
"key",
",",
"proxy",
")",
";",
"channel",
"set",
"attribute",
"(",
"invoker",
"cache",
"key",
",",
"invoker",
")",
";",
"increase",
"instance",
"count",
"(",
"channel",
",",
"countkey",
")",
";",
"/",
"/",
"convert",
"error",
"fail",
"fast",
"/",
"/",
"ignore",
"concurrent",
"problem",
"set",
"<",
"invoker",
"<",
"?",
">",
">",
"callback",
"invokers",
"=",
"(",
"set",
"<",
"invoker",
"<",
"?",
">",
">",
")",
"channel",
"get",
"attribute",
"(",
"channel",
"callback",
"key",
")",
";",
"if",
"(",
"callback",
"invokers",
"=",
"=",
"null",
")",
"{",
"callback",
"invokers",
"=",
"new",
"concurrent",
"hash",
"set",
"<",
">",
"(",
"1",
")",
";",
"channel",
"set",
"attribute",
"(",
"channel",
"callback",
"key",
",",
"callback",
"invokers",
")",
";",
"}",
"callback",
"invokers",
"add",
"(",
"invoker",
")",
";",
"logger",
"info",
"(",
"\"",
"method",
"\"",
"+",
"inv",
"get",
"method",
"name",
"(",
")",
"+",
"\"",
"include",
"a",
"callback",
"service",
":",
"\"",
"+",
"invoker",
"get",
"url",
"(",
")",
"+",
"\"",
",",
"a",
"proxy",
":",
"\"",
"+",
"invoker",
"+",
"\"",
"has",
"been",
"created",
"\"",
")",
";",
"}",
"}",
"}",
"else",
"{",
"if",
"(",
"proxy",
"!",
"=",
"null",
")",
"{",
"invoker",
"<",
"?",
">",
"invoker",
"=",
"(",
"invoker",
"<",
"?",
">",
")",
"channel",
"get",
"attribute",
"(",
"invoker",
"cache",
"key",
")",
";",
"try",
"{",
"set",
"<",
"invoker",
"<",
"?",
">",
">",
"callback",
"invokers",
"=",
"(",
"set",
"<",
"invoker",
"<",
"?",
">",
">",
")",
"channel",
"get",
"attribute",
"(",
"channel",
"callback",
"key",
")",
";",
"if",
"(",
"callback",
"invokers",
"!",
"=",
"null",
")",
"{",
"callback",
"invokers",
"remove",
"(",
"invoker",
")",
";",
"}",
"invoker",
"destroy",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"logger",
"error",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"}",
"/",
"/",
"cancel",
"refer",
",",
"directly",
"remove",
"from",
"the",
"map",
"channel",
"remove",
"attribute",
"(",
"proxy",
"cache",
"key",
")",
";",
"channel",
"remove",
"attribute",
"(",
"invoker",
"cache",
"key",
")",
";",
"decrease",
"instance",
"count",
"(",
"channel",
",",
"countkey",
")",
";",
"}",
"}",
"return",
"proxy",
";",
"}"
]
|
[
"parses",
"a",
"resource",
"config",
"value",
"in",
"one",
"of",
"three",
"forms",
":",
"percentage",
":",
"&",
"quot",
";",
"50",
"%",
"&",
"quot",
";",
"or",
"&",
"quot",
";",
"40",
"%",
"memory",
",",
"60",
"%",
"cpu",
"&",
"quot",
";",
"new",
"style",
"resources",
":",
"&",
"quot",
";",
"vcores",
"=",
"10",
",",
"memory",
"-",
"mb",
"=",
"1024",
"&",
"quot",
";",
"or",
"&",
"quot",
";",
"vcores",
"=",
"60",
"%",
",",
"memory",
"-",
"mb",
"=",
"40",
"%",
"&",
"quot",
";",
"old",
"style",
"resources",
":",
"&",
"quot",
";",
"1024",
"mb",
",",
"10",
"vcores",
"&",
"quot",
";",
"in",
"new",
"style",
"resources",
",",
"any",
"resource",
"that",
"is",
"not",
"specified",
"will",
"be",
"set",
"to",
"{",
"@",
"code",
"missing",
"}",
"or",
"0",
"%",
",",
"as",
"appropriate",
"also",
",",
"in",
"the",
"new",
"style",
"resources",
",",
"units",
"are",
"not",
"allowed",
"units",
"are",
"assumed",
"from",
"the",
"resource",
"manager",
"'",
"s",
"settings",
"for",
"the",
"resources",
"when",
"the",
"value",
"isn",
"'",
"t",
"a",
"percentage",
"the",
"{",
"@",
"code",
"missing",
"}",
"parameter",
"is",
"only",
"used",
"in",
"the",
"case",
"of",
"new",
"style",
"resources",
"without",
"percentages",
"with",
"new",
"style",
"resources",
"with",
"percentages",
",",
"any",
"missing",
"resources",
"will",
"be",
"assumed",
"to",
"be",
"100",
"%",
"because",
"percentages",
"are",
"only",
"used",
"with",
"maximum",
"resource",
"limits"
]
| [
"public",
"static",
"configurable",
"resource",
"parse",
"resource",
"config",
"value",
"(",
"string",
"value",
",",
"long",
"missing",
")",
"throws",
"allocation",
"configuration",
"exception",
"{",
"configurable",
"resource",
"configurable",
"resource",
";",
"if",
"(",
"value",
"trim",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"throw",
"new",
"allocation",
"configuration",
"exception",
"(",
"\"",
"error",
"reading",
"resource",
"\"",
"+",
"\"",
"config",
"-",
"-",
"the",
"resource",
"string",
"is",
"empty",
"\"",
")",
";",
"}",
"try",
"{",
"if",
"(",
"value",
"contains",
"(",
"\"",
"=",
"\"",
")",
")",
"{",
"configurable",
"resource",
"=",
"parse",
"new",
"style",
"resource",
"(",
"value",
",",
"missing",
")",
";",
"}",
"else",
"if",
"(",
"value",
"contains",
"(",
"\"",
"%",
"\"",
")",
")",
"{",
"configurable",
"resource",
"=",
"parse",
"old",
"style",
"resource",
"as",
"percentage",
"(",
"value",
")",
";",
"}",
"else",
"{",
"configurable",
"resource",
"=",
"parse",
"old",
"style",
"resource",
"(",
"value",
")",
";",
"}",
"}",
"catch",
"(",
"runtime",
"exception",
"ex",
")",
"{",
"throw",
"new",
"allocation",
"configuration",
"exception",
"(",
"\"",
"error",
"reading",
"resource",
"config",
"\"",
",",
"ex",
")",
";",
"}",
"return",
"configurable",
"resource",
";",
"}"
]
|
[
"start",
"to",
"select",
"media",
"and",
"wait",
"for",
"result"
]
| [
"public",
"void",
"for",
"result",
"(",
"int",
"request",
"code",
")",
"{",
"activity",
"activity",
"=",
"m",
"matisse",
"get",
"activity",
"(",
")",
";",
"if",
"(",
"activity",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"intent",
"intent",
"=",
"new",
"intent",
"(",
"activity",
",",
"matisse",
"activity",
"class",
")",
";",
"fragment",
"fragment",
"=",
"m",
"matisse",
"get",
"fragment",
"(",
")",
";",
"if",
"(",
"fragment",
"!",
"=",
"null",
")",
"{",
"fragment",
"start",
"activity",
"for",
"result",
"(",
"intent",
",",
"request",
"code",
")",
";",
"}",
"else",
"{",
"activity",
"start",
"activity",
"for",
"result",
"(",
"intent",
",",
"request",
"code",
")",
";",
"}",
"}"
]
|
[
"set",
"the",
"entity",
"tag",
"of",
"the",
"body",
",",
"as",
"specified",
"by",
"the",
"{",
"@",
"code",
"e",
"tag",
"}",
"header"
]
| [
"b",
"e",
"tag",
"(",
"string",
"e",
"tag",
")",
";"
]
|
[
"skip",
"over",
"bytes",
"of",
"one",
"record",
"from",
"the",
"paged",
"input",
"view",
",",
"discarding",
"the",
"skipped",
"bytes"
]
| [
"public",
"abstract",
"void",
"skip",
"record",
"from",
"pages",
"(",
"abstract",
"paged",
"input",
"view",
"source",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"return",
"the",
"initial",
"delay",
",",
"or",
"0",
"if",
"none"
]
| [
"public",
"long",
"get",
"initial",
"delay",
"(",
")",
"{",
"return",
"this",
"initial",
"delay",
";",
"}"
]
|
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"-",
"1",
",",
"0",
",",
"or",
"1",
",",
"if",
"this",
"float",
"value",
"is",
"less",
"than",
",",
"equal",
"to",
",",
"or",
"greater",
"than",
"the",
"given",
"specific",
"float",
"value",
",",
"respectively"
]
| [
"public",
"integer",
"value",
"compare",
"(",
"specific",
"float",
"value",
"other",
")",
"{",
"return",
"compare",
"(",
"(",
"float",
"value",
")",
"other",
")",
";",
"}"
]
|
[
"helper",
"method",
"to",
"get",
"the",
"root",
"prefix",
"from",
"the",
"given",
"dwp",
"file"
]
| [
"private",
"static",
"path",
"fragment",
"dwp",
"root",
"prefix",
"(",
"artifact",
"dwp",
"file",
")",
"throws",
"exception",
"{",
"return",
"dwp",
"file",
"get",
"exec",
"path",
"(",
")",
"sub",
"fragment",
"(",
"0",
",",
"dwp",
"file",
"get",
"exec",
"path",
"(",
")",
"segment",
"count",
"(",
")",
"-",
"dwp",
"file",
"get",
"root",
"relative",
"path",
"(",
")",
"segment",
"count",
"(",
")",
")",
";",
"}"
]
|
[
"indicates",
"whether",
"scores",
"will",
"be",
"tracked",
"for",
"this",
"request"
]
| [
"public",
"boolean",
"track",
"scores",
"(",
")",
"{",
"return",
"track",
"scores",
";",
"}"
]
|
[
"draws",
"a",
"pixel",
"data",
"sub",
"-",
"block",
",",
"as",
"defined",
"by",
"etsi",
"en",
"300",
"743",
"7",
"2",
"5",
"1",
",",
"into",
"a",
"canvas"
]
| [
"private",
"static",
"void",
"paint",
"pixel",
"data",
"sub",
"block",
"(",
"byte",
"[",
"]",
"pixel",
"data",
",",
"int",
"[",
"]",
"clut",
"entries",
",",
"int",
"region",
"depth",
",",
"int",
"horizontal",
"address",
",",
"int",
"vertical",
"address",
",",
"@",
"nullable",
"paint",
"paint",
",",
"canvas",
"canvas",
")",
"{",
"parsable",
"bit",
"array",
"data",
"=",
"new",
"parsable",
"bit",
"array",
"(",
"pixel",
"data",
")",
";",
"int",
"column",
"=",
"horizontal",
"address",
";",
"int",
"line",
"=",
"vertical",
"address",
";",
"@",
"nullable",
"byte",
"[",
"]",
"clut",
"map",
"table",
"2",
"to",
"4",
"=",
"null",
";",
"@",
"nullable",
"byte",
"[",
"]",
"clut",
"map",
"table",
"2",
"to",
"8",
"=",
"null",
";",
"@",
"nullable",
"byte",
"[",
"]",
"clut",
"map",
"table",
"4",
"to",
"8",
"=",
"null",
";",
"while",
"(",
"data",
"bits",
"left",
"(",
")",
"!",
"=",
"0",
")",
"{",
"int",
"data",
"type",
"=",
"data",
"read",
"bits",
"(",
"8",
")",
";",
"switch",
"(",
"data",
"type",
")",
"{",
"case",
"data",
"type",
"2bp",
"code",
"string",
":",
"@",
"nullable",
"byte",
"[",
"]",
"clut",
"map",
"table",
"2",
"to",
"x",
";",
"if",
"(",
"region",
"depth",
"=",
"=",
"region",
"depth",
"8",
"bit",
")",
"{",
"clut",
"map",
"table",
"2",
"to",
"x",
"=",
"clut",
"map",
"table",
"2",
"to",
"8",
"=",
"=",
"null",
"?",
"default",
"map",
"2",
"to",
"8",
":",
"clut",
"map",
"table",
"2",
"to",
"8",
";",
"}",
"else",
"if",
"(",
"region",
"depth",
"=",
"=",
"region",
"depth",
"4",
"bit",
")",
"{",
"clut",
"map",
"table",
"2",
"to",
"x",
"=",
"clut",
"map",
"table",
"2",
"to",
"4",
"=",
"=",
"null",
"?",
"default",
"map",
"2",
"to",
"4",
":",
"clut",
"map",
"table",
"2",
"to",
"4",
";",
"}",
"else",
"{",
"clut",
"map",
"table",
"2",
"to",
"x",
"=",
"null",
";",
"}",
"column",
"=",
"paint",
"2",
"bit",
"pixel",
"code",
"string",
"(",
"data",
",",
"clut",
"entries",
",",
"clut",
"map",
"table",
"2",
"to",
"x",
",",
"column",
",",
"line",
",",
"paint",
",",
"canvas",
")",
";",
"data",
"byte",
"align",
"(",
")",
";",
"break",
";",
"case",
"data",
"type",
"4bp",
"code",
"string",
":",
"@",
"nullable",
"byte",
"[",
"]",
"clut",
"map",
"table",
"4",
"to",
"x",
";",
"if",
"(",
"region",
"depth",
"=",
"=",
"region",
"depth",
"8",
"bit",
")",
"{",
"clut",
"map",
"table",
"4",
"to",
"x",
"=",
"clut",
"map",
"table",
"4",
"to",
"8",
"=",
"=",
"null",
"?",
"default",
"map",
"4",
"to",
"8",
":",
"clut",
"map",
"table",
"4",
"to",
"8",
";",
"}",
"else",
"{",
"clut",
"map",
"table",
"4",
"to",
"x",
"=",
"null",
";",
"}",
"column",
"=",
"paint",
"4",
"bit",
"pixel",
"code",
"string",
"(",
"data",
",",
"clut",
"entries",
",",
"clut",
"map",
"table",
"4",
"to",
"x",
",",
"column",
",",
"line",
",",
"paint",
",",
"canvas",
")",
";",
"data",
"byte",
"align",
"(",
")",
";",
"break",
";",
"case",
"data",
"type",
"8bp",
"code",
"string",
":",
"column",
"=",
"paint",
"8",
"bit",
"pixel",
"code",
"string",
"(",
"data",
",",
"clut",
"entries",
",",
"/",
"*",
"clut",
"map",
"table",
"=",
"*",
"/",
"null",
",",
"column",
",",
"line",
",",
"paint",
",",
"canvas",
")",
";",
"break",
";",
"case",
"data",
"type",
"24",
"table",
"data",
":",
"clut",
"map",
"table",
"2",
"to",
"4",
"=",
"build",
"clut",
"map",
"table",
"(",
"4",
",",
"4",
",",
"data",
")",
";",
"break",
";",
"case",
"data",
"type",
"28",
"table",
"data",
":",
"clut",
"map",
"table",
"2",
"to",
"8",
"=",
"build",
"clut",
"map",
"table",
"(",
"4",
",",
"8",
",",
"data",
")",
";",
"break",
";",
"case",
"data",
"type",
"48",
"table",
"data",
":",
"clut",
"map",
"table",
"4",
"to",
"8",
"=",
"build",
"clut",
"map",
"table",
"(",
"16",
",",
"8",
",",
"data",
")",
";",
"break",
";",
"case",
"data",
"type",
"end",
"line",
":",
"column",
"=",
"horizontal",
"address",
";",
"line",
"+",
"=",
"2",
";",
"break",
";",
"default",
":",
"/",
"/",
"do",
"nothing",
"break",
";",
"}",
"}",
"}"
]
|
[
"the",
"executor",
"service",
"for",
"this",
"transport",
"service"
]
| [
"private",
"executor",
"service",
"get",
"executor",
"service",
"(",
")",
"{",
"return",
"thread",
"pool",
"generic",
"(",
")",
";",
"}"
]
|
[
"returns",
"the",
"{",
"@",
"link",
"starlark",
"builtin",
"doc",
"}",
"entry",
"representing",
"the",
"collection",
"of",
"top",
"level",
"functions",
"(",
"this",
"is",
"a",
"special",
"case",
"of",
"{",
"@",
"link",
"starlark",
"builtin",
"doc",
"}",
"as",
"it",
"has",
"no",
"object",
"name",
")"
]
| [
"private",
"static",
"starlark",
"builtin",
"doc",
"get",
"top",
"level",
"module",
"doc",
"(",
"map",
"<",
"string",
",",
"starlark",
"builtin",
"doc",
">",
"modules",
")",
"{",
"return",
"modules",
"get",
"(",
"get",
"top",
"level",
"module",
"(",
")",
"name",
"(",
")",
")",
";",
"}"
]
|
[
"check",
"new",
"name",
"for",
"job"
]
| [
"private",
"void",
"check",
"if",
"name",
"is",
"used",
"(",
"@",
"non",
"null",
"string",
"new",
"name",
")",
"throws",
"failure",
"{",
"try",
"{",
"item",
"item",
"=",
"get",
"parent",
"(",
")",
"get",
"item",
"(",
"new",
"name",
")",
";",
"if",
"(",
"item",
"!",
"=",
"null",
")",
"{",
"throw",
"new",
"failure",
"(",
"messages",
"abstract",
"item",
"new",
"name",
"in",
"use",
"(",
"new",
"name",
")",
")",
";",
"}",
"try",
"(",
"a",
"c",
"l",
"context",
"ctx",
"=",
"acl",
"as",
"2",
"(",
"acl",
"system2",
")",
")",
"{",
"item",
"=",
"get",
"parent",
"(",
")",
"get",
"item",
"(",
"new",
"name",
")",
";",
"if",
"(",
"item",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"logger",
"is",
"loggable",
"(",
"level",
"fine",
")",
")",
"{",
"logger",
"log",
"(",
"level",
"fine",
",",
"\"",
"unable",
"to",
"rename",
"the",
"job",
"{",
"0",
"}",
":",
"name",
"{",
"1",
"}",
"is",
"already",
"in",
"use",
"\"",
"+",
"\"",
"user",
"{",
"2",
"}",
"has",
"no",
"{",
"3",
"}",
"permission",
"for",
"existing",
"job",
"with",
"the",
"same",
"name",
"\"",
",",
"new",
"object",
"[",
"]",
"{",
"this",
"get",
"full",
"name",
"(",
")",
",",
"new",
"name",
",",
"ctx",
"get",
"previous",
"context",
"2",
"(",
")",
"get",
"authentication",
"(",
")",
"get",
"name",
"(",
")",
",",
"item",
"discover",
"name",
"}",
")",
";",
"}",
"/",
"/",
"don",
"'",
"t",
"explicitly",
"mention",
"that",
"there",
"is",
"another",
"item",
"with",
"the",
"same",
"name",
"throw",
"new",
"failure",
"(",
"messages",
"jenkins",
"not",
"allowed",
"name",
"(",
"new",
"name",
")",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"access",
"denied",
"exception",
"ex",
")",
"{",
"if",
"(",
"logger",
"is",
"loggable",
"(",
"level",
"fine",
")",
")",
"{",
"logger",
"log",
"(",
"level",
"fine",
",",
"\"",
"unable",
"to",
"rename",
"the",
"job",
"{",
"0",
"}",
":",
"name",
"{",
"1",
"}",
"is",
"already",
"in",
"use",
"\"",
"+",
"\"",
"user",
"{",
"2",
"}",
"has",
"{",
"3",
"}",
"permission",
",",
"but",
"no",
"{",
"4",
"}",
"for",
"existing",
"job",
"with",
"the",
"same",
"name",
"\"",
",",
"new",
"object",
"[",
"]",
"{",
"this",
"get",
"full",
"name",
"(",
")",
",",
"new",
"name",
",",
"user",
"current",
"(",
")",
",",
"item",
"discover",
"name",
",",
"item",
"read",
"name",
"}",
")",
";",
"}",
"throw",
"new",
"failure",
"(",
"messages",
"abstract",
"item",
"new",
"name",
"in",
"use",
"(",
"new",
"name",
")",
")",
";",
"}",
"}"
]
|
[
"set",
"the",
"help",
"location",
"for",
"this",
"dialog"
]
| [
"public",
"void",
"set",
"help",
"location",
"(",
"help",
"location",
"help",
"location",
")",
"{",
"docking",
"window",
"manager",
"set",
"help",
"location",
"(",
"root",
"panel",
",",
"help",
"location",
")",
";",
"}"
]
|
[
"set",
"whether",
"to",
"use",
"the",
"shared",
"servlet",
"config",
"object",
"passed",
"in",
"through",
"{",
"@",
"code",
"set",
"servlet",
"config",
"}",
",",
"if",
"available",
"default",
"is",
"\"",
"true",
"\"",
"turn",
"this",
"setting",
"to",
"\"",
"false",
"\"",
"to",
"pass",
"in",
"a",
"mock",
"servlet",
"config",
"object",
"with",
"the",
"bean",
"name",
"as",
"servlet",
"name",
",",
"holding",
"the",
"current",
"servlet",
"context"
]
| [
"public",
"void",
"set",
"use",
"shared",
"servlet",
"config",
"(",
"boolean",
"use",
"shared",
"servlet",
"config",
")",
"{",
"this",
"use",
"shared",
"servlet",
"config",
"=",
"use",
"shared",
"servlet",
"config",
";",
"}"
]
|
[
"if",
"we",
"should",
"retry",
"the",
"rpc",
"call"
]
| [
"private",
"retry",
"decision",
"should",
"retry",
"(",
"final",
"i",
"o",
"exception",
"ioe",
",",
"final",
"int",
"retry",
"count",
",",
"final",
"string",
"ns",
"id",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"check",
"for",
"the",
"case",
"of",
"cluster",
"unavailable",
"state",
"if",
"(",
"is",
"cluster",
"un",
"available",
"(",
"ns",
"id",
")",
")",
"{",
"/",
"/",
"we",
"allow",
"to",
"retry",
"once",
"if",
"cluster",
"is",
"unavailable",
"if",
"(",
"retry",
"count",
"=",
"=",
"0",
")",
"{",
"return",
"retry",
"decision",
"retry",
";",
"}",
"else",
"{",
"throw",
"new",
"no",
"namenodes",
"available",
"exception",
"(",
"ns",
"id",
",",
"ioe",
")",
";",
"}",
"}",
"try",
"{",
"final",
"retry",
"policy",
"retry",
"action",
"a",
"=",
"this",
"retry",
"policy",
"should",
"retry",
"(",
"ioe",
",",
"retry",
"count",
",",
"0",
",",
"true",
")",
";",
"return",
"a",
"action",
";",
"}",
"catch",
"(",
"exception",
"ex",
")",
"{",
"log",
"error",
"(",
"\"",
"re",
"-",
"throwing",
"api",
"exception",
",",
"no",
"more",
"retries",
"\"",
",",
"ex",
")",
";",
"throw",
"to",
"i",
"o",
"exception",
"(",
"ex",
")",
";",
"}",
"}"
]
|
[
"converts",
"bytes",
"to",
"a",
"hexadecimal",
"string",
"representation",
"and",
"returns",
"it"
]
| [
"private",
"string",
"byte",
"array",
"to",
"string",
"(",
"byte",
"[",
"]",
"array",
")",
"{",
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"byte",
"b",
":",
"array",
")",
"{",
"sb",
"append",
"(",
"integer",
"to",
"hex",
"string",
"(",
"0xff",
"&",
"b",
")",
")",
";",
"}",
"return",
"sb",
"to",
"string",
"(",
")",
";",
"}"
]
|
[
"invoke",
"the",
"call",
"once",
"without",
"retrying"
]
| [
"synchronized",
"call",
"return",
"invoke",
"once",
"(",
")",
"{",
"try",
"{",
"if",
"(",
"retry",
"info",
"!",
"=",
"null",
")",
"{",
"return",
"process",
"wait",
"time",
"and",
"retry",
"info",
"(",
")",
";",
"}",
"/",
"/",
"the",
"number",
"of",
"times",
"this",
"invocation",
"handler",
"has",
"ever",
"been",
"failed",
"over",
"/",
"/",
"before",
"this",
"method",
"invocation",
"attempt",
"used",
"to",
"prevent",
"concurrent",
"/",
"/",
"failed",
"method",
"invocations",
"from",
"triggering",
"multiple",
"failover",
"attempts",
"final",
"long",
"failover",
"count",
"=",
"retry",
"invocation",
"handler",
"get",
"failover",
"count",
"(",
")",
";",
"try",
"{",
"return",
"invoke",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"if",
"(",
"log",
"is",
"trace",
"enabled",
"(",
")",
")",
"{",
"log",
"trace",
"(",
"to",
"string",
"(",
")",
",",
"e",
")",
";",
"}",
"if",
"(",
"thread",
"current",
"thread",
"(",
")",
"is",
"interrupted",
"(",
")",
")",
"{",
"/",
"/",
"if",
"interrupted",
",",
"do",
"not",
"retry",
"throw",
"e",
";",
"}",
"retry",
"info",
"=",
"retry",
"invocation",
"handler",
"handle",
"exception",
"(",
"method",
",",
"call",
"id",
",",
"retry",
"policy",
",",
"counters",
",",
"failover",
"count",
",",
"e",
")",
";",
"return",
"process",
"wait",
"time",
"and",
"retry",
"info",
"(",
")",
";",
"}",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"return",
"new",
"call",
"return",
"(",
"t",
")",
";",
"}",
"}"
]
|
[
"the",
"same",
"class",
"thrown",
"in",
"the",
"same",
"line",
"ends",
"up",
"in",
"a",
"single",
"event",
"with",
"two",
"occurrences"
]
| [
"public",
"void",
"add",
"occurrence",
"if",
"same",
"stack",
"trace",
"(",
")",
"{",
"assume",
"assume",
"true",
"(",
"\"",
"the",
"telemetry",
"should",
"be",
"enabled",
"\"",
",",
"missing",
"class",
"telemetry",
"enabled",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"2",
";",
"i",
"+",
"+",
")",
"{",
"try",
"{",
"/",
"/",
"exceptions",
"thrown",
"at",
"the",
"same",
"line",
",",
"with",
"the",
"same",
"stack",
"trace",
"become",
"occurrences",
"of",
"just",
"one",
"event",
"cl",
"load",
"class",
"(",
"non",
"existing",
"class",
")",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"ignored",
")",
"{",
"}",
"}",
"/",
"/",
"get",
"the",
"events",
"gathered",
"missing",
"class",
"events",
"events",
"=",
"missing",
"class",
"telemetry",
"get",
"events",
"(",
")",
";",
"concurrent",
"hash",
"map",
"<",
"list",
"<",
"stack",
"trace",
"element",
">",
",",
"missing",
"class",
"event",
">",
"events",
"gathered",
"=",
"events",
"get",
"events",
"and",
"clean",
"(",
")",
";",
"/",
"/",
"only",
"one",
"class",
"miss",
"gathered",
"with",
"two",
"occurrences",
"assert",
"equals",
"(",
"1",
",",
"events",
"gathered",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"2",
",",
"events",
"gathered",
"values",
"(",
")",
"iterator",
"(",
")",
"next",
"(",
")",
"get",
"occurrences",
"(",
")",
")",
";",
"/",
"/",
"the",
"class",
"name",
"and",
"also",
"the",
"stack",
"trace",
"of",
"these",
"c",
"n",
"f",
"es",
"are",
"the",
"same",
",",
"so",
"1",
"log",
"event",
"assert",
"equals",
"(",
"\"",
"just",
"one",
"missing",
"class",
"should",
"be",
"printed",
"out",
"in",
"the",
"log",
"\"",
",",
"1",
",",
"logging",
"get",
"records",
"(",
")",
"stream",
"(",
")",
"filter",
"(",
"r",
"-",
">",
"r",
"get",
"message",
"(",
")",
"contains",
"(",
"non",
"existing",
"class",
")",
")",
"count",
"(",
")",
")",
";",
"}"
]
|
[
"gets",
"the",
"description",
"of",
"the",
"current",
"test"
]
| [
"description",
"get",
"(",
")",
";"
]
|
[
"returns",
"the",
"number",
"of",
"failed",
"writes",
"to",
"the",
"server"
]
| [
"int",
"get",
"failures",
"(",
")",
";"
]
|
[
"create",
"a",
"pre",
"-",
"configured",
"char",
"filter",
"that",
"may",
"not",
"vary",
"at",
"all",
",",
"provide",
"access",
"to",
"the",
"elasticsearch",
"version"
]
| [
"public",
"static",
"pre",
"configured",
"char",
"filter",
"singleton",
"with",
"version",
"(",
"string",
"name",
",",
"boolean",
"use",
"filter",
"for",
"multiterm",
"queries",
",",
"bi",
"function",
"<",
"reader",
",",
"org",
"elasticsearch",
"version",
",",
"reader",
">",
"create",
")",
"{",
"return",
"new",
"pre",
"configured",
"char",
"filter",
"(",
"name",
",",
"caching",
"strategy",
"one",
",",
"use",
"filter",
"for",
"multiterm",
"queries",
",",
"(",
"reader",
",",
"version",
")",
"-",
">",
"create",
"apply",
"(",
"reader",
",",
"version",
")",
")",
";",
"}"
]
|
[
"register",
"a",
"listener",
"that",
"will",
"be",
"called",
"when",
"this",
"model",
"visibility",
"state",
"has",
"changed",
"the",
"listener",
"will",
"contribute",
"to",
"this",
"model",
"'",
"s",
"hash",
"code",
"state",
"per",
"the",
"{",
"@",
"link",
"com",
"airbnb",
"epoxy",
"epoxy",
"attribute",
"option",
"#",
"do",
"not",
"hash",
"}",
"rules"
]
| [
"public",
"group",
"prop",
"single",
"supported",
"attribute",
"model",
"view",
"model",
"on",
"visibility",
"state",
"changed",
"(",
"on",
"model",
"visibility",
"state",
"changed",
"listener",
"<",
"group",
"prop",
"single",
"supported",
"attribute",
"model",
"view",
"model",
",",
"group",
"prop",
"single",
"supported",
"attribute",
"model",
"view",
">",
"listener",
")",
"{",
"on",
"mutation",
"(",
")",
";",
"this",
"on",
"model",
"visibility",
"state",
"changed",
"listener",
"epoxy",
"generated",
"model",
"=",
"listener",
";",
"return",
"this",
";",
"}"
]
|
[
"write",
"a",
"{",
"@",
"link",
"writable",
"}",
",",
"{",
"@",
"link",
"string",
"}",
",",
"primitive",
"type",
",",
"or",
"an",
"array",
"of",
"the",
"preceding"
]
| [
"public",
"static",
"void",
"write",
"object",
"(",
"data",
"output",
"out",
",",
"object",
"instance",
",",
"class",
"declared",
"class",
",",
"configuration",
"conf",
",",
"boolean",
"allow",
"compact",
"arrays",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"instance",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"null",
"instance",
"=",
"new",
"null",
"instance",
"(",
"declared",
"class",
",",
"conf",
")",
";",
"declared",
"class",
"=",
"writable",
"class",
";",
"}",
"/",
"/",
"special",
"case",
":",
"must",
"come",
"before",
"writing",
"out",
"the",
"declared",
"class",
"/",
"/",
"if",
"this",
"is",
"an",
"eligible",
"array",
"of",
"primitives",
",",
"/",
"/",
"wrap",
"it",
"in",
"an",
"array",
"primitive",
"writable",
"$",
"internal",
"wrapper",
"class",
"if",
"(",
"allow",
"compact",
"arrays",
"&",
"&",
"declared",
"class",
"is",
"array",
"(",
")",
"&",
"&",
"instance",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
"equals",
"(",
"declared",
"class",
"get",
"name",
"(",
")",
")",
"&",
"&",
"instance",
"get",
"class",
"(",
")",
"get",
"component",
"type",
"(",
")",
"is",
"primitive",
"(",
")",
")",
"{",
"instance",
"=",
"new",
"array",
"primitive",
"writable",
"internal",
"(",
"instance",
")",
";",
"declared",
"class",
"=",
"array",
"primitive",
"writable",
"internal",
"class",
";",
"}",
"utf8",
"write",
"string",
"(",
"out",
",",
"declared",
"class",
"get",
"name",
"(",
")",
")",
";",
"/",
"/",
"always",
"write",
"declared",
"if",
"(",
"declared",
"class",
"is",
"array",
"(",
")",
")",
"{",
"/",
"/",
"non",
"-",
"primitive",
"or",
"non",
"-",
"compact",
"array",
"int",
"length",
"=",
"array",
"get",
"length",
"(",
"instance",
")",
";",
"out",
"write",
"int",
"(",
"length",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"write",
"object",
"(",
"out",
",",
"array",
"get",
"(",
"instance",
",",
"i",
")",
",",
"declared",
"class",
"get",
"component",
"type",
"(",
")",
",",
"conf",
",",
"allow",
"compact",
"arrays",
")",
";",
"}",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"array",
"primitive",
"writable",
"internal",
"class",
")",
"{",
"(",
"(",
"array",
"primitive",
"writable",
"internal",
")",
"instance",
")",
"write",
"(",
"out",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"string",
"class",
")",
"{",
"/",
"/",
"string",
"utf8",
"write",
"string",
"(",
"out",
",",
"(",
"string",
")",
"instance",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"is",
"primitive",
"(",
")",
")",
"{",
"/",
"/",
"primitive",
"type",
"if",
"(",
"declared",
"class",
"=",
"=",
"boolean",
"type",
")",
"{",
"/",
"/",
"boolean",
"out",
"write",
"boolean",
"(",
"(",
"(",
"boolean",
")",
"instance",
")",
"boolean",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"character",
"type",
")",
"{",
"/",
"/",
"char",
"out",
"write",
"char",
"(",
"(",
"(",
"character",
")",
"instance",
")",
"char",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"byte",
"type",
")",
"{",
"/",
"/",
"byte",
"out",
"write",
"byte",
"(",
"(",
"(",
"byte",
")",
"instance",
")",
"byte",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"short",
"type",
")",
"{",
"/",
"/",
"short",
"out",
"write",
"short",
"(",
"(",
"(",
"short",
")",
"instance",
")",
"short",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"integer",
"type",
")",
"{",
"/",
"/",
"int",
"out",
"write",
"int",
"(",
"(",
"(",
"integer",
")",
"instance",
")",
"int",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"long",
"type",
")",
"{",
"/",
"/",
"long",
"out",
"write",
"long",
"(",
"(",
"(",
"long",
")",
"instance",
")",
"long",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"float",
"type",
")",
"{",
"/",
"/",
"float",
"out",
"write",
"float",
"(",
"(",
"(",
"float",
")",
"instance",
")",
"float",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"double",
"type",
")",
"{",
"/",
"/",
"double",
"out",
"write",
"double",
"(",
"(",
"(",
"double",
")",
"instance",
")",
"double",
"value",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"declared",
"class",
"=",
"=",
"void",
"type",
")",
"{",
"/",
"/",
"void",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"not",
"a",
"primitive",
":",
"\"",
"+",
"declared",
"class",
")",
";",
"}",
"}",
"else",
"if",
"(",
"declared",
"class",
"is",
"enum",
"(",
")",
")",
"{",
"/",
"/",
"enum",
"utf8",
"write",
"string",
"(",
"out",
",",
"(",
"(",
"enum",
")",
"instance",
")",
"name",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"writable",
"class",
"is",
"assignable",
"from",
"(",
"declared",
"class",
")",
")",
"{",
"/",
"/",
"writable",
"utf8",
"write",
"string",
"(",
"out",
",",
"instance",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"(",
"(",
"writable",
")",
"instance",
")",
"write",
"(",
"out",
")",
";",
"}",
"else",
"if",
"(",
"message",
"class",
"is",
"assignable",
"from",
"(",
"declared",
"class",
")",
")",
"{",
"(",
"(",
"message",
")",
"instance",
")",
"write",
"delimited",
"to",
"(",
"data",
"output",
"output",
"stream",
"construct",
"output",
"stream",
"(",
"out",
")",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"can",
"'",
"t",
"write",
":",
"\"",
"+",
"instance",
"+",
"\"",
"as",
"\"",
"+",
"declared",
"class",
")",
";",
"}",
"}"
]
|
[
"an",
"ad",
"-",
"hoc",
"substitution",
"to",
"put",
"the",
"information",
"from",
"the",
"{",
"@",
"code",
"android",
"device",
"script",
"fixture",
"}",
"s",
"into",
"the",
"bash",
"stub",
"script",
"todo",
"(",
"ajmichael",
")",
":",
"determine",
"an",
"actual",
"protocol",
"to",
"pass",
"this",
"information",
"to",
"the",
"test",
"suite"
]
| [
"private",
"static",
"substitution",
"device",
"script",
"fixtures",
"substitution",
"(",
"rule",
"context",
"rule",
"context",
")",
"{",
"immutable",
"list",
"builder",
"<",
"string",
">",
"builder",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"for",
"(",
"android",
"device",
"script",
"fixture",
"info",
"provider",
"device",
"script",
"fixture",
":",
"get",
"device",
"script",
"fixtures",
"(",
"rule",
"context",
")",
")",
"{",
"builder",
"add",
"(",
"string",
"format",
"(",
"\"",
"[",
"%",
"s",
"]",
"=",
"%",
"b",
",",
"%",
"b",
"\"",
",",
"device",
"script",
"fixture",
"get",
"fixture",
"script",
"(",
")",
"get",
"runfiles",
"path",
"string",
"(",
")",
",",
"device",
"script",
"fixture",
"get",
"daemon",
"(",
")",
",",
"device",
"script",
"fixture",
"get",
"strict",
"exit",
"(",
")",
")",
")",
";",
"}",
"return",
"substitution",
"of",
"space",
"separated",
"list",
"(",
"\"",
"%",
"device",
"script",
"fixtures",
"%",
"\"",
",",
"builder",
"build",
"(",
")",
")",
";",
"}"
]
|
[
"transform",
"the",
"record",
"with",
"the",
"given",
"key",
"and",
"value",
"additionally",
",",
"any",
"{",
"@",
"link",
"state",
"store",
"state",
"}",
"that",
"is",
"{",
"@",
"link",
"k",
"stream",
"#",
"transform",
"(",
"transformer",
"supplier",
",",
"string",
")",
"attached",
"}",
"to",
"this",
"operator",
"can",
"be",
"accessed",
"and",
"modified",
"arbitrarily",
"(",
"cf",
"{",
"@",
"link",
"processor",
"context",
"#",
"get",
"state",
"store",
"(",
"string",
")",
"}",
")",
"if",
"only",
"one",
"record",
"should",
"be",
"forward",
"downstream",
",",
"{",
"@",
"code",
"transform",
"}",
"can",
"return",
"a",
"new",
"{",
"@",
"link",
"key",
"value",
"}",
"if",
"more",
"than",
"one",
"output",
"record",
"should",
"be",
"forwarded",
"downstream",
",",
"{",
"@",
"link",
"processor",
"context",
"#",
"forward",
"(",
"object",
",",
"object",
")",
"}",
"and",
"{",
"@",
"link",
"processor",
"context",
"#",
"forward",
"(",
"object",
",",
"object",
",",
"to",
")",
"}",
"can",
"be",
"used",
"if",
"no",
"record",
"should",
"be",
"forwarded",
"downstream",
",",
"{",
"@",
"code",
"transform",
"}",
"can",
"return",
"{",
"@",
"code",
"null",
"}",
"note",
"that",
"returning",
"a",
"new",
"{",
"@",
"link",
"key",
"value",
"}",
"is",
"merely",
"for",
"convenience",
"the",
"same",
"can",
"be",
"achieved",
"by",
"using",
"{",
"@",
"link",
"processor",
"context",
"#",
"forward",
"(",
"object",
",",
"object",
")",
"}",
"and",
"returning",
"{",
"@",
"code",
"null",
"}"
]
| [
"r",
"transform",
"(",
"final",
"k",
"key",
",",
"final",
"v",
"value",
")",
";"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"single",
"observer",
"}",
"wrapper",
"around",
"a",
"{",
"@",
"link",
"observer",
"}",
"history",
":",
"2",
"0",
"1",
"-",
"experimental"
]
| [
"public",
"static",
"<",
"t",
">",
"single",
"observer",
"<",
"t",
">",
"create",
"(",
"observer",
"<",
"?",
"super",
"t",
">",
"downstream",
")",
"{",
"return",
"new",
"single",
"to",
"observable",
"observer",
"<",
">",
"(",
"downstream",
")",
";",
"}"
]
|
[
"cleanup",
"and",
"release",
"resources"
]
| [
"public",
"void",
"dispose",
"(",
")",
";"
]
|
[
"generates",
"a",
"new",
"map",
"suitable",
"for",
"storing",
"the",
"cache",
"as",
"a",
"whole"
]
| [
"private",
"concurrent",
"hash",
"map",
"<",
"descriptor",
"t",
",",
"concurrent",
"hash",
"map",
"<",
"configuration",
"t",
",",
"key",
"and",
"state",
"<",
"key",
"t",
">",
">",
">",
"new",
"cache",
"map",
"(",
")",
"{",
"return",
"new",
"concurrent",
"hash",
"map",
"<",
">",
"(",
"cache",
"initial",
"size",
",",
"cache",
"load",
"factor",
",",
"cache",
"concurrency",
"level",
")",
";",
"}"
]
|
[
"simply",
"returns",
"its",
"argument"
]
| [
"public",
"static",
"<",
"n",
",",
"e",
">",
"immutable",
"network",
"<",
"n",
",",
"e",
">",
"copy",
"of",
"(",
"immutable",
"network",
"<",
"n",
",",
"e",
">",
"network",
")",
"{",
"return",
"check",
"not",
"null",
"(",
"network",
")",
";",
"}"
]
|
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
]
| [
"private",
"string",
"to",
"indented",
"string",
"(",
"java",
"lang",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
]
|
[
"set",
"whether",
"to",
"cache",
"the",
"jndi",
"object",
"once",
"it",
"has",
"been",
"located",
"default",
"is",
"\"",
"true",
"\"",
"can",
"be",
"turned",
"off",
"to",
"allow",
"for",
"hot",
"redeployment",
"of",
"jndi",
"objects",
"in",
"this",
"case",
",",
"the",
"jndi",
"object",
"will",
"be",
"fetched",
"for",
"each",
"invocation",
"for",
"hot",
"redeployment",
",",
"a",
"proxy",
"interface",
"needs",
"to",
"be",
"specified"
]
| [
"public",
"void",
"set",
"cache",
"(",
"boolean",
"cache",
")",
"{",
"this",
"cache",
"=",
"cache",
";",
"}"
]
|
[
"get",
"prefix",
"ns",
"integer"
]
| [
"public",
"integer",
"get",
"prefix",
"ns",
"integer",
"(",
")",
"{",
"return",
"prefix",
"ns",
"integer",
";",
"}"
]
|
[
"sets",
"the",
"sockets"
]
| [
"public",
"builder",
"set",
"sockets",
"(",
"list",
"<",
"internal",
"with",
"log",
"id",
">",
"sockets",
")",
"{",
"check",
"state",
"(",
"subchannels",
"is",
"empty",
"(",
")",
")",
";",
"this",
"sockets",
"=",
"collections",
"unmodifiable",
"list",
"(",
"check",
"not",
"null",
"(",
"sockets",
")",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"delete",
"user",
"this",
"can",
"only",
"be",
"done",
"by",
"the",
"logged",
"in",
"user"
]
| [
"public",
"void",
"delete",
"user",
"(",
"@",
"path",
"param",
"(",
"\"",
"username",
"\"",
")",
"string",
"username",
")",
";"
]
|
[
"sets",
"the",
"window",
"menu",
"group",
"if",
"the",
"window",
"menu",
"group",
"is",
"null",
",",
"the",
"corresponding",
"window",
"menu",
"item",
"will",
"appear",
"in",
"the",
"root",
"menu",
",",
"otherwise",
"it",
"will",
"appear",
"in",
"a",
"sub",
"-",
"menu",
"named",
"<",
"code",
">",
"group",
"<",
"code",
">"
]
| [
"protected",
"void",
"set",
"window",
"menu",
"group",
"(",
"string",
"group",
")",
"{",
"this",
"window",
"menu",
"group",
"=",
"group",
";",
"}"
]
|
[
"stubbings",
"in",
"descending",
"order",
",",
"most",
"recent",
"first"
]
| [
"public",
"list",
"<",
"stubbing",
">",
"get",
"stubbings",
"descending",
"(",
")",
"{",
"return",
"(",
"list",
")",
"stubbed",
";",
"}"
]
|
[
"returns",
"whether",
"this",
"vertex",
"has",
"too",
"many",
"incoming",
"references",
",",
"where",
"too",
"many",
"is",
"subjectively",
"defined",
"by",
"this",
"class",
"too",
"many",
"nodes",
"in",
"the",
"display",
"would",
"ruin",
"rendering",
"and",
"general",
"usability"
]
| [
"public",
"boolean",
"has",
"too",
"many",
"incoming",
"references",
"(",
")",
"{",
"return",
"too",
"many",
"incoming",
"references",
";",
"}"
]
|
[
"adds",
"a",
"{",
"@",
"link",
"drm",
"session",
"event",
"listener",
"}",
"to",
"the",
"list",
"of",
"listeners",
"which",
"are",
"notified",
"of",
"drm",
"events",
"for",
"this",
"media",
"source"
]
| [
"void",
"add",
"drm",
"event",
"listener",
"(",
"handler",
"handler",
",",
"drm",
"session",
"event",
"listener",
"event",
"listener",
")",
";"
]
|
[
"sets",
"a",
"focus",
"change",
"listener",
"on",
"this",
"host"
]
| [
"void",
"set",
"component",
"focus",
"change",
"listener",
"(",
"component",
"focus",
"change",
"listener",
"listener",
")",
"{",
"m",
"on",
"focus",
"change",
"listener",
"=",
"listener",
";",
"this",
"set",
"on",
"focus",
"change",
"listener",
"(",
"listener",
")",
";",
"}"
]
|
[
"returns",
"the",
"bridge",
"method",
"for",
"reading",
"an",
"instance",
"field",
",",
"identified",
"by",
"(",
"getfield",
")",
"instruction"
]
| [
"public",
"final",
"method",
"key",
"bridge",
"of",
"instance",
"read",
"(",
")",
"{",
"return",
"method",
"key",
"create",
"(",
"owner",
"(",
")",
",",
"name",
"with",
"suffix",
"(",
"\"",
"bridge",
"getter",
"\"",
")",
",",
"type",
"get",
"method",
"descriptor",
"(",
"get",
"field",
"type",
"(",
")",
",",
"type",
"get",
"object",
"type",
"(",
"owner",
"name",
"(",
")",
")",
")",
")",
";",
"}"
]
|
[
"returns",
"whether",
"a",
"track",
"selection",
"dialog",
"will",
"have",
"content",
"to",
"display",
"if",
"initialized",
"with",
"the",
"specified",
"{",
"@",
"link",
"default",
"track",
"selector",
"}",
"in",
"its",
"current",
"state"
]
| [
"public",
"static",
"boolean",
"will",
"have",
"content",
"(",
"default",
"track",
"selector",
"track",
"selector",
")",
"{",
"mapped",
"track",
"info",
"mapped",
"track",
"info",
"=",
"track",
"selector",
"get",
"current",
"mapped",
"track",
"info",
"(",
")",
";",
"return",
"mapped",
"track",
"info",
"!",
"=",
"null",
"&",
"&",
"will",
"have",
"content",
"(",
"mapped",
"track",
"info",
")",
";",
"}"
]
|
[
"attempts",
"to",
"find",
"the",
"next",
"sub",
"-",
"sequence",
"of",
"the",
"input",
"sequence",
"that",
"matches",
"the",
"pattern"
]
| [
"public",
"static",
"boolean",
"find",
"(",
"final",
"pattern",
"pattern",
",",
"final",
"string",
"string",
")",
"{",
"return",
"pattern",
"matcher",
"(",
"string",
")",
"find",
"(",
")",
";",
"}"
]
|
[
"cancels",
"the",
"message",
"delivery"
]
| [
"public",
"synchronized",
"player",
"message",
"cancel",
"(",
")",
"{",
"assertions",
"check",
"state",
"(",
"is",
"sent",
")",
";",
"is",
"canceled",
"=",
"true",
";",
"mark",
"as",
"processed",
"(",
"/",
"*",
"is",
"delivered",
"=",
"*",
"/",
"false",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"this",
"method",
"will",
"delegate",
"to",
"the",
"{",
"@",
"link",
"diff",
"section",
"spec",
"}",
"method",
"annotated",
"with",
"{",
"@",
"link",
"on",
"diff",
"}"
]
| [
"protected",
"void",
"generate",
"change",
"set",
"(",
"section",
"context",
"c",
",",
"change",
"set",
"change",
"set",
",",
"section",
"context",
"previous",
"context",
",",
"section",
"previous",
",",
"section",
"context",
"next",
"context",
",",
"section",
"next",
")",
"{",
"}"
]
|
[
"aggregate",
"two",
"minimum",
"values"
]
| [
"public",
"static",
"long",
"aggregate",
"minimums",
"(",
"long",
"l",
",",
"long",
"r",
")",
"{",
"if",
"(",
"l",
"=",
"=",
"min",
"unset",
"value",
")",
"{",
"return",
"r",
";",
"}",
"else",
"if",
"(",
"r",
"=",
"=",
"min",
"unset",
"value",
")",
"{",
"return",
"l",
";",
"}",
"else",
"{",
"return",
"math",
"min",
"(",
"l",
",",
"r",
")",
";",
"}",
"}"
]
|
[
"for",
"testing",
"only",
"encoded",
"style",
"according",
"to",
"{",
"@",
"link",
"text",
"style",
"}"
]
| [
"public",
"long",
"get",
"style",
"at",
"(",
"int",
"external",
"row",
",",
"int",
"column",
")",
"{",
"return",
"m",
"terminal",
"get",
"screen",
"(",
")",
"get",
"style",
"at",
"(",
"external",
"row",
",",
"column",
")",
";",
"}"
]
|
[
"ensures",
"that",
"the",
"given",
"value",
"is",
"within",
"the",
"given",
"range"
]
| [
"public",
"static",
"int",
"clamp",
"(",
"int",
"value",
",",
"int",
"min",
",",
"int",
"max",
")",
"{",
"if",
"(",
"value",
"<",
"min",
")",
"{",
"return",
"min",
";",
"}",
"if",
"(",
"value",
">",
"max",
")",
"{",
"return",
"max",
";",
"}",
"return",
"value",
";",
"}"
]
|
[
"test",
"that",
"if",
"any",
"of",
"the",
"futures",
"in",
"the",
"list",
"fails",
",",
"we",
"cancel",
"all",
"the",
"futures",
"immediately"
]
| [
"public",
"void",
"all",
"as",
"list",
"or",
"cancel",
"all",
"cancellation",
"(",
")",
"throws",
"interrupted",
"exception",
"{",
"final",
"list",
"<",
"delayed",
"future",
">",
"future",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"6",
";",
"i",
"+",
"+",
")",
"{",
"delayed",
"future",
"future",
"=",
"new",
"delayed",
"future",
"(",
"i",
"*",
"1000",
")",
";",
"executor",
"service",
"execute",
"(",
"future",
")",
";",
"future",
"list",
"add",
"(",
"future",
")",
";",
"}",
"delayed",
"future",
"to",
"fail",
"=",
"new",
"delayed",
"future",
"(",
"1000",
")",
";",
"future",
"list",
"add",
"(",
"to",
"fail",
")",
";",
"to",
"fail",
"make",
"it",
"fail",
"(",
")",
";",
"listenable",
"future",
"<",
"list",
"<",
"object",
">",
">",
"list",
"=",
"more",
"futures",
"all",
"as",
"list",
"or",
"cancel",
"all",
"(",
"future",
"list",
")",
";",
"try",
"{",
"list",
"get",
"(",
")",
";",
"fail",
"(",
"\"",
"this",
"should",
"fail",
"\"",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"|",
"execution",
"exception",
"ignored",
")",
"{",
"}",
"thread",
"sleep",
"(",
"100",
")",
";",
"for",
"(",
"delayed",
"future",
"delayed",
"future",
":",
"future",
"list",
")",
"{",
"assert",
"that",
"(",
"delayed",
"future",
"was",
"canceled",
"|",
"|",
"delayed",
"future",
"=",
"=",
"to",
"fail",
")",
"is",
"true",
"(",
")",
";",
"assert",
"that",
"(",
"delayed",
"future",
"was",
"interrupted",
")",
"is",
"false",
"(",
")",
";",
"}",
"}"
]
|
[
"returns",
"the",
"original",
"representation",
"of",
"a",
"setting",
"key"
]
| [
"public",
"final",
"key",
"get",
"raw",
"key",
"(",
")",
"{",
"return",
"key",
";",
"}"
]
|
[
"set",
"the",
"span",
"of",
"strikethrough"
]
| [
"public",
"span",
"utils",
"set",
"strikethrough",
"(",
")",
"{",
"this",
"is",
"strikethrough",
"=",
"true",
";",
"return",
"this",
";",
"}"
]
|
[
"this",
"method",
"resolves",
"the",
"target",
"address",
"to",
"a",
"callable",
"gateway",
"and",
"starts",
"the",
"registration",
"after",
"that"
]
| [
"public",
"void",
"start",
"registration",
"(",
")",
"{",
"if",
"(",
"canceled",
")",
"{",
"/",
"/",
"we",
"already",
"got",
"canceled",
"return",
";",
"}",
"try",
"{",
"/",
"/",
"trigger",
"resolution",
"of",
"the",
"target",
"address",
"to",
"a",
"callable",
"gateway",
"final",
"completable",
"future",
"<",
"g",
">",
"rpc",
"gateway",
"future",
";",
"if",
"(",
"fenced",
"rpc",
"gateway",
"class",
"is",
"assignable",
"from",
"(",
"target",
"type",
")",
")",
"{",
"rpc",
"gateway",
"future",
"=",
"(",
"completable",
"future",
"<",
"g",
">",
")",
"rpc",
"service",
"connect",
"(",
"target",
"address",
",",
"fencing",
"token",
",",
"target",
"type",
"as",
"subclass",
"(",
"fenced",
"rpc",
"gateway",
"class",
")",
")",
";",
"}",
"else",
"{",
"rpc",
"gateway",
"future",
"=",
"rpc",
"service",
"connect",
"(",
"target",
"address",
",",
"target",
"type",
")",
";",
"}",
"/",
"/",
"upon",
"success",
",",
"start",
"the",
"registration",
"attempts",
"completable",
"future",
"<",
"void",
">",
"rpc",
"gateway",
"accept",
"future",
"=",
"rpc",
"gateway",
"future",
"then",
"accept",
"async",
"(",
"(",
"g",
"rpc",
"gateway",
")",
"-",
">",
"{",
"log",
"info",
"(",
"\"",
"resolved",
"{",
"}",
"address",
",",
"beginning",
"registration",
"\"",
",",
"target",
"name",
")",
";",
"register",
"(",
"rpc",
"gateway",
",",
"1",
",",
"retrying",
"registration",
"configuration",
"get",
"initial",
"registration",
"timeout",
"millis",
"(",
")",
")",
";",
"}",
",",
"rpc",
"service",
"get",
"executor",
"(",
")",
")",
";",
"/",
"/",
"upon",
"failure",
",",
"retry",
",",
"unless",
"this",
"is",
"cancelled",
"rpc",
"gateway",
"accept",
"future",
"when",
"complete",
"async",
"(",
"(",
"void",
"v",
",",
"throwable",
"failure",
")",
"-",
">",
"{",
"if",
"(",
"failure",
"!",
"=",
"null",
"&",
"&",
"!",
"canceled",
")",
"{",
"final",
"throwable",
"stripped",
"failure",
"=",
"exception",
"utils",
"strip",
"completion",
"exception",
"(",
"failure",
")",
";",
"if",
"(",
"log",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"log",
"debug",
"(",
"\"",
"could",
"not",
"resolve",
"{",
"}",
"address",
"{",
"}",
",",
"retrying",
"in",
"{",
"}",
"ms",
"\"",
",",
"target",
"name",
",",
"target",
"address",
",",
"retrying",
"registration",
"configuration",
"get",
"error",
"delay",
"millis",
"(",
")",
",",
"stripped",
"failure",
")",
";",
"}",
"else",
"{",
"log",
"info",
"(",
"\"",
"could",
"not",
"resolve",
"{",
"}",
"address",
"{",
"}",
",",
"retrying",
"in",
"{",
"}",
"ms",
":",
"{",
"}",
"\"",
",",
"target",
"name",
",",
"target",
"address",
",",
"retrying",
"registration",
"configuration",
"get",
"error",
"delay",
"millis",
"(",
")",
",",
"stripped",
"failure",
"get",
"message",
"(",
")",
")",
";",
"}",
"start",
"registration",
"later",
"(",
"retrying",
"registration",
"configuration",
"get",
"error",
"delay",
"millis",
"(",
")",
")",
";",
"}",
"}",
",",
"rpc",
"service",
"get",
"executor",
"(",
")",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"completion",
"future",
"complete",
"exceptionally",
"(",
"t",
")",
";",
"cancel",
"(",
")",
";",
"}",
"}"
]
|
[
"handle",
"request",
"for",
"jwk",
"set"
]
| [
"public",
"response",
"entity",
"<",
"string",
">",
"handle",
"request",
"internal",
"(",
"final",
"http",
"servlet",
"request",
"request",
",",
"final",
"http",
"servlet",
"response",
"response",
",",
"final",
"model",
"model",
")",
"{",
"try",
"{",
"val",
"resource",
"=",
"oidc",
"json",
"web",
"keystore",
"generator",
"service",
"generate",
"(",
")",
";",
"val",
"json",
"jwks",
"=",
"i",
"o",
"utils",
"to",
"string",
"(",
"resource",
"get",
"input",
"stream",
"(",
")",
",",
"standard",
"charsets",
"utf",
"8",
")",
";",
"val",
"json",
"web",
"key",
"set",
"=",
"new",
"json",
"web",
"key",
"set",
"(",
"json",
"jwks",
")",
";",
"val",
"services",
"manager",
"=",
"get",
"o",
"auth",
"configuration",
"context",
"(",
")",
"get",
"services",
"manager",
"(",
")",
";",
"services",
"manager",
"get",
"all",
"services",
"(",
")",
"stream",
"(",
")",
"filter",
"(",
"s",
"-",
">",
"s",
"instanceof",
"oidc",
"registered",
"service",
")",
"map",
"(",
"s",
"-",
">",
"(",
"oidc",
"registered",
"service",
")",
"s",
")",
"filter",
"(",
"s",
"-",
">",
"string",
"utils",
"is",
"not",
"blank",
"(",
"s",
"get",
"jwks",
"(",
")",
")",
")",
"for",
"each",
"(",
"service",
"-",
">",
"{",
"val",
"set",
"=",
"oidc",
"json",
"web",
"key",
"store",
"utils",
"get",
"json",
"web",
"key",
"set",
"(",
"service",
",",
"get",
"o",
"auth",
"configuration",
"context",
"(",
")",
"get",
"application",
"context",
"(",
")",
")",
";",
"set",
"if",
"present",
"(",
"keys",
"-",
">",
"keys",
"get",
"json",
"web",
"keys",
"(",
")",
"for",
"each",
"(",
"json",
"web",
"key",
"set",
":",
":",
"add",
"json",
"web",
"key",
")",
")",
";",
"}",
")",
";",
"val",
"body",
"=",
"json",
"web",
"key",
"set",
"to",
"json",
"(",
"json",
"web",
"key",
"output",
"control",
"level",
"public",
"only",
")",
";",
"response",
"set",
"content",
"type",
"(",
"media",
"type",
"application",
"json",
"value",
")",
";",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"body",
",",
"http",
"status",
"ok",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"e",
")",
"{",
"logging",
"utils",
"error",
"(",
"logger",
",",
"e",
")",
";",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"e",
"get",
"message",
"(",
")",
",",
"http",
"status",
"bad",
"request",
")",
";",
"}",
"}"
]
|
[
"this",
"test",
"creates",
"a",
"dynamic",
"config",
"of",
"new",
"format",
"the",
"dynamic",
"config",
"is",
"written",
"in",
"dynamic",
"config",
"file",
"it",
"checks",
"that",
"the",
"client",
"port",
"will",
"be",
"read",
"from",
"the",
"dynamic",
"config",
"this",
"handles",
"the",
"case",
"of",
"h",
"base",
",",
"which",
"adds",
"a",
"single",
"server",
"line",
"to",
"the",
"config",
"maintain",
"bw",
"compatibility"
]
| [
"public",
"void",
"test",
"client",
"port",
"in",
"dynamic",
"file",
"(",
")",
"throws",
"exception",
"{",
"client",
"base",
"setup",
"test",
"env",
"(",
")",
";",
"final",
"int",
"client",
"port",
"=",
"port",
"assignment",
"unique",
"(",
")",
";",
"string",
"quorum",
"cfg",
"section",
"=",
"\"",
"server",
"1",
"=",
"127",
"0",
"0",
"1",
":",
"\"",
"+",
"(",
"port",
"assignment",
"unique",
"(",
")",
")",
"+",
"\"",
":",
"\"",
"+",
"(",
"port",
"assignment",
"unique",
"(",
")",
")",
"+",
"\"",
":",
"participant",
";",
"\"",
"+",
"client",
"port",
"+",
"\"",
"\\",
"n",
"\"",
";",
"main",
"thread",
"mt",
"=",
"new",
"main",
"thread",
"(",
"1",
",",
"quorum",
"cfg",
"section",
")",
";",
"verify",
"standalone",
"(",
"mt",
",",
"client",
"port",
")",
";",
"}"
]
|
[
"adds",
"a",
"{",
"@",
"link",
"pseudo",
"action",
"}",
"to",
"the",
"build",
"graph",
"that",
"is",
"only",
"used",
"for",
"providing",
"information",
"to",
"the",
"blaze",
"extra",
"action",
"feature"
]
| [
"void",
"add",
"py",
"extra",
"action",
"pseudo",
"action",
"(",
")",
"{",
"if",
"(",
"rule",
"context",
"get",
"configuration",
"(",
")",
"get",
"action",
"listeners",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"return",
";",
"}",
"rule",
"context",
"register",
"action",
"(",
"make",
"py",
"extra",
"action",
"pseudo",
"action",
"(",
"rule",
"context",
"get",
"action",
"owner",
"(",
")",
",",
"/",
"/",
"has",
"to",
"be",
"unfiltered",
"sources",
"as",
"filtered",
"will",
"give",
"an",
"error",
"for",
"/",
"/",
"unsupported",
"file",
"types",
"where",
"as",
"certain",
"tests",
"only",
"expect",
"a",
"warning",
"rule",
"context",
"get",
"prerequisite",
"artifacts",
"(",
"\"",
"srcs",
"\"",
")",
"list",
"(",
")",
",",
"/",
"/",
"we",
"must",
"not",
"add",
"the",
"files",
"declared",
"in",
"the",
"srcs",
"of",
"this",
"rule",
";",
"dependency",
"transitive",
"python",
"sources",
",",
"pseudo",
"action",
"get",
"dummy",
"output",
"(",
"rule",
"context",
")",
")",
")",
";",
"}"
]
|
[
"makes",
"a",
"best",
"effort",
"to",
"wipe",
"the",
"existing",
"database",
"the",
"wipe",
"may",
"be",
"incomplete",
"if",
"the",
"database",
"contains",
"foreign",
"key",
"constraints"
]
| [
"private",
"static",
"void",
"wipe",
"database",
"(",
"s",
"q",
"lite",
"database",
"db",
")",
"{",
"string",
"[",
"]",
"columns",
"=",
"{",
"\"",
"type",
"\"",
",",
"\"",
"name",
"\"",
"}",
";",
"try",
"(",
"cursor",
"cursor",
"=",
"db",
"query",
"(",
"\"",
"sqlite",
"master",
"\"",
",",
"columns",
",",
"/",
"*",
"selection",
"=",
"*",
"/",
"null",
",",
"/",
"*",
"selection",
"args",
"=",
"*",
"/",
"null",
",",
"/",
"*",
"group",
"by",
"=",
"*",
"/",
"null",
",",
"/",
"*",
"having",
"=",
"*",
"/",
"null",
",",
"/",
"*",
"order",
"by",
"=",
"*",
"/",
"null",
")",
")",
"{",
"while",
"(",
"cursor",
"move",
"to",
"next",
"(",
")",
")",
"{",
"string",
"type",
"=",
"cursor",
"get",
"string",
"(",
"0",
")",
";",
"string",
"name",
"=",
"cursor",
"get",
"string",
"(",
"1",
")",
";",
"if",
"(",
"!",
"\"",
"sqlite",
"sequence",
"\"",
"equals",
"(",
"name",
")",
")",
"{",
"/",
"/",
"if",
"it",
"'",
"s",
"not",
"an",
"sql",
"-",
"controlled",
"entity",
",",
"drop",
"it",
"string",
"sql",
"=",
"\"",
"drop",
"\"",
"+",
"type",
"+",
"\"",
"if",
"exists",
"\"",
"+",
"name",
";",
"try",
"{",
"db",
"exec",
"s",
"q",
"l",
"(",
"sql",
")",
";",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"log",
"e",
"(",
"tag",
",",
"\"",
"error",
"executing",
"\"",
"+",
"sql",
",",
"e",
")",
";",
"}",
"}",
"}",
"}",
"}"
]
|
[
"the",
"abbreviation",
"of",
"the",
"name",
"of",
"the",
"role",
"this",
"is",
"used",
"in",
"the",
"cat",
"nodes",
"api",
"to",
"display",
"an",
"abbreviated",
"version",
"of",
"the",
"name",
"of",
"the",
"role"
]
| [
"public",
"final",
"string",
"role",
"name",
"abbreviation",
"(",
")",
"{",
"return",
"role",
"name",
"abbreviation",
";",
"}"
]
|
[
"test",
"block",
"manager",
"won",
"'",
"t",
"leave",
"safe",
"mode",
"if",
"datanode",
"threshold",
"is",
"not",
"met",
"only",
"if",
"datanode",
"threshold",
"is",
"configured",
">",
"0"
]
| [
"public",
"void",
"test",
"datanode",
"threshod",
"should",
"be",
"met",
"only",
"if",
"configured",
"(",
")",
"throws",
"exception",
"{",
"bm",
"safe",
"mode",
"activate",
"(",
"block",
"total",
")",
";",
"/",
"/",
"blocks",
"received",
"is",
"set",
"to",
"threshold",
"set",
"block",
"safe",
"(",
"block",
"threshold",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"1",
"but",
"not",
"all",
"d",
"ns",
"registered",
"/",
"/",
"expecting",
"safe",
"mode",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"1",
")",
";",
"set",
"datanode",
"threshold",
"(",
"1",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"true",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"1",
"and",
"all",
"d",
"ns",
"registered",
"/",
"/",
"not",
"expecting",
"safe",
"mode",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"datanode",
"num",
")",
";",
"set",
"datanode",
"threshold",
"(",
"1",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"wait",
"for",
"extension",
"period",
"(",
")",
";",
"assert",
"false",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"0",
"but",
"not",
"all",
"d",
"ns",
"registered",
"/",
"/",
"not",
"expecting",
"safe",
"mode",
"bm",
"safe",
"mode",
"activate",
"(",
"block",
"total",
")",
";",
"set",
"block",
"safe",
"(",
"block",
"threshold",
")",
";",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"1",
")",
";",
"set",
"datanode",
"threshold",
"(",
"0",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"false",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"0",
"and",
"all",
"d",
"ns",
"registered",
"/",
"/",
"not",
"expecting",
"safe",
"mode",
"bm",
"safe",
"mode",
"activate",
"(",
"block",
"total",
")",
";",
"set",
"block",
"safe",
"(",
"block",
"threshold",
")",
";",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"datanode",
"num",
")",
";",
"set",
"datanode",
"threshold",
"(",
"0",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"false",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"blocks",
"received",
"set",
"to",
"below",
"threshold",
"and",
"all",
"combinations",
"/",
"/",
"of",
"datanode",
"threshold",
"should",
"result",
"in",
"safe",
"mode",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"1",
"but",
"not",
"all",
"d",
"ns",
"registered",
"/",
"/",
"expecting",
"safe",
"mode",
"bm",
"safe",
"mode",
"activate",
"(",
"block",
"total",
")",
";",
"set",
"block",
"safe",
"(",
"block",
"threshold",
"-",
"1",
")",
";",
"set",
"safe",
"mode",
"status",
"(",
"b",
"m",
"safe",
"mode",
"status",
"pending",
"threshold",
")",
";",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"1",
")",
";",
"set",
"datanode",
"threshold",
"(",
"1",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"true",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"1",
"and",
"all",
"d",
"ns",
"registered",
"/",
"/",
"expecting",
"safe",
"mode",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"datanode",
"num",
")",
";",
"set",
"datanode",
"threshold",
"(",
"1",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"true",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"0",
"but",
"not",
"all",
"d",
"ns",
"registered",
"/",
"/",
"expecting",
"safe",
"mode",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"1",
")",
";",
"set",
"datanode",
"threshold",
"(",
"0",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"true",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"/",
"/",
"datanode",
"threshold",
"is",
"configured",
"to",
"0",
"and",
"all",
"d",
"ns",
"registered",
"/",
"/",
"expecting",
"safe",
"mode",
"when",
"(",
"dn",
"get",
"num",
"live",
"data",
"nodes",
"(",
")",
")",
"then",
"return",
"(",
"datanode",
"num",
")",
";",
"set",
"datanode",
"threshold",
"(",
"0",
")",
";",
"bm",
"safe",
"mode",
"check",
"safe",
"mode",
"(",
")",
";",
"assert",
"true",
"(",
"bm",
"safe",
"mode",
"is",
"in",
"safe",
"mode",
"(",
")",
")",
";",
"}"
]
|
[
"creates",
"a",
"new",
"late",
"bound",
"default",
"which",
"uses",
"the",
"rule",
",",
"its",
"configured",
"attributes",
",",
"and",
"a",
"fragment",
"of",
"the",
"host",
"configuration",
"this",
"should",
"only",
"be",
"necessary",
"in",
"very",
"specialized",
"cases",
"in",
"almost",
"all",
"cases",
",",
"you",
"don",
"'",
"t",
"need",
"this",
"method",
",",
"just",
"{",
"@",
"link",
"#",
"from",
"target",
"configuration",
"}",
"and",
"{",
"@",
"link",
"com",
"google",
"devtools",
"build",
"lib",
"analysis",
"config",
"host",
"transition",
"}",
"this",
"method",
"only",
"affects",
"the",
"configuration",
"fragment",
"passed",
"to",
"{",
"@",
"link",
"#",
"resolve",
"}",
"you",
"must",
"also",
"use",
"{",
"@",
"link",
"com",
"google",
"devtools",
"build",
"lib",
"analysis",
"config",
"host",
"transition",
"}",
",",
"so",
"that",
"the",
"dependency",
"will",
"be",
"analyzed",
"in",
"the",
"host",
"configuration"
]
| [
"public",
"static",
"<",
"fragment",
"t",
">",
"label",
"late",
"bound",
"default",
"<",
"fragment",
"t",
">",
"from",
"host",
"configuration",
"(",
"class",
"<",
"fragment",
"t",
">",
"fragment",
"class",
",",
"label",
"default",
"value",
",",
"resolver",
"<",
"fragment",
"t",
",",
"label",
">",
"resolver",
")",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"fragment",
"class",
"equals",
"(",
"void",
"class",
")",
",",
"\"",
"use",
"from",
"rule",
"and",
"attributes",
"only",
"to",
"specify",
"a",
"late",
"bound",
"default",
"which",
"does",
"not",
"use",
"\"",
"+",
"\"",
"configuration",
"\"",
")",
";",
"return",
"new",
"label",
"late",
"bound",
"default",
"<",
">",
"(",
"true",
",",
"fragment",
"class",
",",
"default",
"value",
",",
"resolver",
")",
";",
"}"
]
|
[
"whether",
"the",
"given",
"view",
"name",
"is",
"a",
"redirect",
"view",
"reference",
"the",
"default",
"implementation",
"checks",
"the",
"configured",
"redirect",
"patterns",
"and",
"also",
"if",
"the",
"view",
"name",
"starts",
"with",
"the",
"\"",
"redirect",
":",
"\"",
"prefix"
]
| [
"protected",
"boolean",
"is",
"redirect",
"view",
"name",
"(",
"string",
"view",
"name",
")",
"{",
"return",
"(",
"pattern",
"match",
"utils",
"simple",
"match",
"(",
"this",
"redirect",
"patterns",
",",
"view",
"name",
")",
"|",
"|",
"view",
"name",
"starts",
"with",
"(",
"\"",
"redirect",
":",
"\"",
")",
")",
";",
"}"
]
|
[
"add",
"the",
"corresponding",
"files",
"as",
"source",
"files",
"these",
"may",
"also",
"be",
"header",
"files",
",",
"in",
"which",
"case",
"they",
"will",
"not",
"be",
"compiled",
",",
"but",
"also",
"not",
"made",
"visible",
"as",
"includes",
"to",
"dependent",
"rules"
]
| [
"public",
"cc",
"compilation",
"helper",
"add",
"sources",
"(",
"artifact",
"sources",
")",
"{",
"return",
"add",
"sources",
"(",
"arrays",
"as",
"list",
"(",
"sources",
")",
")",
";",
"}"
]
|
[
"creates",
"a",
"new",
"{",
"@",
"link",
"simple",
"data",
"source",
"}"
]
| [
"public",
"static",
"<",
"t",
">",
"simple",
"data",
"source",
"<",
"t",
">",
"create",
"(",
")",
"{",
"return",
"new",
"simple",
"data",
"source",
"<",
"t",
">",
"(",
")",
";",
"}"
]
|
[
"create",
"a",
"jaxp",
"1",
"4",
"{",
"@",
"link",
"st",
"a",
"x",
"result",
"}",
"for",
"the",
"given",
"{",
"@",
"link",
"x",
"m",
"l",
"stream",
"writer",
"}"
]
| [
"public",
"static",
"result",
"create",
"stax",
"result",
"(",
"x",
"m",
"l",
"stream",
"writer",
"stream",
"writer",
")",
"{",
"return",
"new",
"st",
"a",
"x",
"result",
"(",
"stream",
"writer",
")",
";",
"}"
]
|
[
"returns",
"the",
"rest",
"status",
"for",
"this",
"response",
"(",
"based",
"on",
"{",
"@",
"link",
"shard",
"info",
"#",
"status",
"(",
")",
"}"
]
| [
"public",
"rest",
"status",
"status",
"(",
")",
"{",
"return",
"get",
"shard",
"info",
"(",
")",
"status",
"(",
")",
";",
"}"
]
|
[
"method",
"parameter",
"only",
"exists",
"in",
"service",
"info"
]
| [
"public",
"string",
"get",
"service",
"method",
"parameter",
"(",
"string",
"protocol",
"service",
"key",
",",
"string",
"method",
",",
"string",
"key",
")",
"{",
"metadata",
"info",
"service",
"info",
"service",
"info",
"=",
"metadata",
"info",
"get",
"service",
"info",
"(",
"protocol",
"service",
"key",
")",
";",
"string",
"value",
"=",
"service",
"info",
"get",
"method",
"parameter",
"(",
"method",
",",
"key",
",",
"null",
")",
";",
"if",
"(",
"string",
"utils",
"is",
"not",
"empty",
"(",
"value",
")",
")",
"{",
"return",
"value",
";",
"}",
"return",
"get",
"parameter",
"(",
"key",
")",
";",
"}"
]
|
[
"load",
"a",
"property",
"-",
"based",
"resource",
"bundle",
"from",
"the",
"given",
"reader",
"this",
"will",
"be",
"called",
"in",
"case",
"of",
"a",
"{",
"@",
"link",
"#",
"set",
"default",
"encoding",
"\"",
"default",
"encoding",
"\"",
"}",
",",
"including",
"{",
"@",
"link",
"resource",
"bundle",
"message",
"source",
"}",
"'",
"s",
"default",
"iso",
"-",
"8859",
"-",
"1",
"encoding",
"note",
"that",
"this",
"method",
"can",
"only",
"be",
"called",
"with",
"a",
"{",
"@",
"code",
"resource",
"bundle",
"control",
"}",
":",
"when",
"running",
"on",
"the",
"jdk",
"9",
"+",
"module",
"path",
"where",
"such",
"control",
"handles",
"are",
"not",
"supported",
",",
"any",
"overrides",
"in",
"custom",
"subclasses",
"will",
"effectively",
"get",
"ignored",
"the",
"default",
"implementation",
"returns",
"a",
"{",
"@",
"link",
"property",
"resource",
"bundle",
"}"
]
| [
"protected",
"resource",
"bundle",
"load",
"bundle",
"(",
"reader",
"reader",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"new",
"property",
"resource",
"bundle",
"(",
"reader",
")",
";",
"}"
]
|
[
"create",
"a",
"builder",
"with",
"the",
"given",
"http",
"method",
",",
"uri",
"template",
",",
"and",
"variables"
]
| [
"public",
"static",
"body",
"builder",
"method",
"(",
"http",
"method",
"method",
",",
"string",
"uri",
"template",
",",
"map",
"<",
"string",
",",
"?",
">",
"uri",
"variables",
")",
"{",
"return",
"new",
"default",
"body",
"builder",
"(",
"method",
",",
"uri",
"template",
",",
"uri",
"variables",
")",
";",
"}"
]
|
[
"get",
"prefix",
"array"
]
| [
"public",
"list",
"<",
"integer",
">",
"get",
"prefix",
"array",
"(",
")",
"{",
"return",
"prefix",
"array",
";",
"}"
]
|
[
"waits",
"until",
"mappings",
"for",
"the",
"provided",
"fields",
"exist",
"on",
"all",
"nodes",
"note",
",",
"this",
"waits",
"for",
"the",
"current",
"started",
"shards",
"and",
"checks",
"for",
"concrete",
"mappings"
]
| [
"private",
"void",
"assert",
"concrete",
"mappings",
"on",
"all",
"(",
"final",
"string",
"index",
",",
"final",
"string",
"field",
"names",
")",
"{",
"set",
"<",
"string",
">",
"nodes",
"=",
"internal",
"cluster",
"(",
")",
"nodes",
"include",
"(",
"index",
")",
";",
"assert",
"that",
"(",
"nodes",
",",
"matchers",
"not",
"(",
"matchers",
"empty",
"iterable",
"(",
")",
")",
")",
";",
"for",
"(",
"string",
"node",
":",
"nodes",
")",
"{",
"indices",
"service",
"indices",
"service",
"=",
"internal",
"cluster",
"(",
")",
"get",
"instance",
"(",
"indices",
"service",
"class",
",",
"node",
")",
";",
"index",
"service",
"index",
"service",
"=",
"indices",
"service",
"index",
"service",
"(",
"resolve",
"index",
"(",
"index",
")",
")",
";",
"assert",
"that",
"(",
"\"",
"index",
"service",
"doesn",
"'",
"t",
"exists",
"on",
"\"",
"+",
"node",
",",
"index",
"service",
",",
"not",
"null",
"value",
"(",
")",
")",
";",
"mapper",
"service",
"mapper",
"service",
"=",
"index",
"service",
"mapper",
"service",
"(",
")",
";",
"for",
"(",
"string",
"field",
"name",
":",
"field",
"names",
")",
"{",
"mapped",
"field",
"type",
"field",
"type",
"=",
"mapper",
"service",
"field",
"type",
"(",
"field",
"name",
")",
";",
"assert",
"not",
"null",
"(",
"\"",
"field",
"\"",
"+",
"field",
"name",
"+",
"\"",
"doesn",
"'",
"t",
"exists",
"on",
"\"",
"+",
"node",
",",
"field",
"type",
")",
";",
"}",
"}",
"assert",
"mapping",
"on",
"master",
"(",
"index",
",",
"field",
"names",
")",
";",
"}"
]
|
[
"get",
"the",
"number",
"of",
"matches",
"which",
"are",
"false",
"positives",
"since",
"they",
"have",
"the",
"wrong",
"incoming",
"flow",
"to",
"be",
"a",
"function",
"start"
]
| [
"public",
"int",
"get",
"num",
"wrong",
"flow",
"(",
")",
"{",
"return",
"fp",
"wrong",
"flow",
";",
"}"
]
|
[
"optionally",
"returns",
"the",
"current",
"position",
"of",
"the",
"reader",
"this",
"can",
"be",
"implemented",
"by",
"readers",
"that",
"want",
"to",
"speed",
"up",
"recovery",
"from",
"a",
"checkpoint",
"the",
"current",
"position",
"of",
"the",
"reader",
"is",
"the",
"position",
"of",
"the",
"next",
"record",
"that",
"will",
"be",
"returned",
"in",
"a",
"call",
"to",
"{",
"@",
"link",
"#",
"read",
"(",
")",
"}",
"this",
"can",
"be",
"implemented",
"by",
"readers",
"that",
"want",
"to",
"speed",
"up",
"recovery",
"from",
"a",
"checkpoint",
"see",
"the",
"{",
"@",
"link",
"file",
"record",
"format",
"top",
"-",
"level",
"class",
"comment",
"}",
"(",
"section",
"\"",
"checkpointing",
"\"",
")",
"for",
"details"
]
| [
"default",
"checkpointed",
"position",
"get",
"checkpointed",
"position",
"(",
")",
"{",
"return",
"null",
";",
"}"
]
|
[
"convert",
"{",
"@",
"link",
"#",
"get",
"error",
"(",
")",
"}",
"from",
"x",
"content",
"to",
"a",
"map",
"for",
"easy",
"processing",
"will",
"return",
"an",
"empty",
"map",
"if",
"the",
"task",
"didn",
"'",
"t",
"finish",
"with",
"an",
"error",
",",
"hasn",
"'",
"t",
"yet",
"finished",
",",
"or",
"didn",
"'",
"t",
"store",
"its",
"result"
]
| [
"public",
"map",
"<",
"string",
",",
"object",
">",
"get",
"error",
"as",
"map",
"(",
")",
"{",
"if",
"(",
"error",
"=",
"=",
"null",
")",
"{",
"return",
"empty",
"map",
"(",
")",
";",
"}",
"return",
"convert",
"to",
"map",
"(",
"error",
",",
"false",
")",
"v",
"2",
"(",
")",
";",
"}"
]
|
[
"sets",
"the",
"<",
"code",
">",
"big",
"decimal",
"<",
"code",
">",
"property"
]
| [
"public",
"format",
"test",
"big",
"decimal",
"(",
"big",
"decimal",
"big",
"decimal",
")",
"{",
"this",
"big",
"decimal",
"=",
"big",
"decimal",
";",
"return",
"this",
";",
"}"
]
|
[
"returns",
"a",
"parameterized",
"type",
"equivalent",
"to",
"{",
"@",
"code",
"type",
"}"
]
| [
"public",
"static",
"parameterized",
"type",
"name",
"get",
"(",
"parameterized",
"type",
"type",
")",
"{",
"return",
"get",
"(",
"type",
",",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
")",
";",
"}"
]
|
[
"mark",
"the",
"start",
"of",
"asynchronous",
"request",
"processing",
"so",
"that",
"when",
"the",
"main",
"processing",
"thread",
"exits",
",",
"the",
"response",
"remains",
"open",
"for",
"further",
"processing",
"in",
"another",
"thread"
]
| [
"void",
"start",
"async",
"(",
")",
";"
]
|
[
"sets",
"the",
"enabled",
"playback",
"actions"
]
| [
"public",
"void",
"set",
"enabled",
"playback",
"actions",
"(",
"@",
"playback",
"actions",
"long",
"enabled",
"playback",
"actions",
")",
"{",
"enabled",
"playback",
"actions",
"&",
"=",
"all",
"playback",
"actions",
";",
"if",
"(",
"this",
"enabled",
"playback",
"actions",
"!",
"=",
"enabled",
"playback",
"actions",
")",
"{",
"this",
"enabled",
"playback",
"actions",
"=",
"enabled",
"playback",
"actions",
";",
"invalidate",
"media",
"session",
"playback",
"state",
"(",
")",
";",
"}",
"}"
]
|
[
"return",
"a",
"map",
"from",
"replica",
"to",
"future",
"which",
"can",
"be",
"used",
"to",
"check",
"the",
"log",
"directory",
"information",
"of",
"individual",
"replicas"
]
| [
"public",
"map",
"<",
"topic",
"partition",
"replica",
",",
"kafka",
"future",
"<",
"replica",
"log",
"dir",
"info",
">",
">",
"values",
"(",
")",
"{",
"return",
"futures",
";",
"}"
]
|
[
"sets",
"{",
"@",
"link",
"annotation",
"#",
"value",
"(",
")",
"}"
]
| [
"public",
"string",
"value",
"(",
")",
"{",
"return",
"value",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.