docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"the",
"instance",
"of",
"{",
"@",
"link",
"filterer",
"}",
"helper",
"interface",
"that",
"allows",
"to",
"covariantly",
"specify",
"lower",
"bound",
"for",
"predicate",
"that",
"we",
"want",
"to",
"filter",
"by"
]
| [
"filterer",
"<",
"?",
"extends",
"threat",
"aware",
"system",
",",
"?",
"extends",
"threat",
">",
"filtered",
"(",
")",
";"
]
|
[
"sets",
"the",
"amount",
"of",
"time",
"before",
"an",
"entry",
"in",
"the",
"cache",
"expires",
"after",
"it",
"was",
"written"
]
| [
"public",
"cache",
"builder",
"<",
"k",
",",
"v",
">",
"set",
"expire",
"after",
"write",
"(",
"time",
"value",
"expire",
"after",
"write",
")",
"{",
"objects",
"require",
"non",
"null",
"(",
"expire",
"after",
"write",
")",
";",
"final",
"long",
"expire",
"after",
"write",
"nanos",
"=",
"expire",
"after",
"write",
"get",
"nanos",
"(",
")",
";",
"if",
"(",
"expire",
"after",
"write",
"nanos",
"<",
"=",
"0",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"expire",
"after",
"write",
"<",
"=",
"0",
"\"",
")",
";",
"}",
"this",
"expire",
"after",
"write",
"nanos",
"=",
"expire",
"after",
"write",
"nanos",
";",
"return",
"this",
";",
"}"
]
|
[
"returns",
"a",
"memory",
"efficient",
"version",
"of",
"the",
"passed",
"proto",
"source",
"root",
"any",
"sizable",
"proto",
"graph",
"will",
"contain",
"many",
"{",
"@",
"code",
"proto",
"}",
"sources",
"with",
"the",
"same",
"source",
"root",
"we",
"can",
"'",
"t",
"afford",
"to",
"have",
"all",
"of",
"them",
"represented",
"as",
"individual",
"objects",
"in",
"memory"
]
| [
"static",
"path",
"fragment",
"memory",
"efficient",
"proto",
"source",
"root",
"(",
"path",
"fragment",
"proto",
"source",
"root",
")",
"{",
"return",
"proto",
"source",
"root",
"interner",
"intern",
"(",
"proto",
"source",
"root",
")",
";",
"}"
]
|
[
"gets",
"the",
"estimated",
"number",
"of",
"bytes",
"per",
"record"
]
| [
"float",
"get",
"estimated",
"avg",
"width",
"per",
"output",
"record",
"(",
")",
";"
]
|
[
"test",
"the",
"property",
"'",
"prefix",
"boolean",
"'"
]
| [
"public",
"void",
"prefix",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"prefix",
"boolean",
"}"
]
|
[
"parse",
"the",
"given",
"string",
"content",
"type",
"into",
"a",
"{",
"@",
"code",
"media",
"type",
"}",
"object"
]
| [
"public",
"static",
"media",
"type",
"value",
"of",
"(",
"string",
"content",
"type",
")",
"{",
"if",
"(",
"string",
"utils",
"is",
"empty",
"(",
"content",
"type",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"media",
"type",
"must",
"not",
"be",
"empty",
"\"",
")",
";",
"}",
"string",
"[",
"]",
"values",
"=",
"content",
"type",
"split",
"(",
"\"",
";",
"\"",
")",
";",
"string",
"charset",
"=",
"constants",
"encode",
";",
"for",
"(",
"string",
"value",
":",
"values",
")",
"{",
"if",
"(",
"value",
"starts",
"with",
"(",
"\"",
"charset",
"=",
"\"",
")",
")",
"{",
"charset",
"=",
"value",
"substring",
"(",
"\"",
"charset",
"=",
"\"",
"length",
"(",
")",
")",
";",
"}",
"}",
"return",
"new",
"media",
"type",
"(",
"values",
"[",
"0",
"]",
",",
"charset",
")",
";",
"}"
]
|
[
"get",
"authorization",
"challenge"
]
| [
"public",
"string",
"get",
"(",
"final",
"string",
"token",
")",
"{",
"logger",
"debug",
"(",
"\"",
"fetching",
"acme",
"token",
"[",
"{",
"}",
"]",
"\"",
",",
"token",
")",
";",
"return",
"cache",
"get",
"if",
"present",
"(",
"token",
")",
";",
"}"
]
|
[
"returns",
"an",
"{",
"@",
"link",
"file",
"path",
"filter",
"}",
"object",
"that",
"represents",
"all",
"the",
"in",
"-",
"scope",
"filters",
",",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"none",
"is",
"needed"
]
| [
"public",
"static",
"@",
"check",
"for",
"null",
"file",
"path",
"filter",
"current",
"(",
")",
"{",
"channel",
"ch",
"=",
"channel",
"current",
"(",
")",
";",
"if",
"(",
"ch",
"=",
"=",
"null",
")",
"return",
"null",
";",
"return",
"ch",
"get",
"property",
"(",
"file",
"path",
"filter",
"aggregator",
"key",
")",
";",
"}"
]
|
[
"invoke",
"http",
"get",
"request"
]
| [
"public",
"static",
"rest",
"result",
"<",
"string",
">",
"invoke",
"u",
"r",
"l",
"(",
"string",
"url",
",",
"list",
"<",
"string",
">",
"headers",
",",
"string",
"encoding",
")",
"throws",
"exception",
"{",
"header",
"header",
"=",
"header",
"new",
"instance",
"(",
")",
";",
"header",
"add",
"param",
"(",
"http",
"header",
"consts",
"accept",
"charset",
",",
"encoding",
")",
";",
"if",
"(",
"collection",
"utils",
"is",
"not",
"empty",
"(",
"headers",
")",
")",
"{",
"header",
"add",
"all",
"(",
"headers",
")",
";",
"}",
"return",
"http",
"client",
"manager",
"get",
"nacos",
"rest",
"template",
"(",
")",
"get",
"(",
"url",
",",
"header",
",",
"query",
"empty",
",",
"string",
"class",
")",
";",
"}"
]
|
[
"check",
"the",
"entry",
"to",
"determine",
"if",
"the",
"user",
"input",
"is",
"valid",
"for",
"archiving",
"a",
"project"
]
| [
"private",
"boolean",
"check",
"input",
"(",
")",
"{",
"string",
"pathname",
"=",
"get",
"archive",
"path",
"name",
"(",
")",
";",
"if",
"(",
"(",
"pathname",
"=",
"=",
"null",
")",
"|",
"|",
"(",
"pathname",
"equals",
"(",
"\"",
"\"",
")",
")",
")",
"{",
"set",
"status",
"text",
"(",
"\"",
"specify",
"an",
"archive",
"file",
"\"",
")",
";",
"return",
"false",
";",
"}",
"file",
"file",
"=",
"new",
"file",
"(",
"pathname",
")",
";",
"string",
"name",
"=",
"file",
"get",
"name",
"(",
")",
";",
"if",
"(",
"!",
"is",
"valid",
"name",
"(",
"name",
")",
")",
"{",
"set",
"status",
"text",
"(",
"\"",
"archive",
"name",
"contains",
"invalid",
"characters",
"\"",
")",
";",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
]
|
[
"test",
"filtering",
"an",
"index",
"with",
"no",
"fields"
]
| [
"public",
"void",
"test",
"empty",
"(",
")",
"throws",
"exception",
"{",
"directory",
"dir",
"=",
"new",
"directory",
"(",
")",
";",
"index",
"writer",
"config",
"iwc",
"=",
"new",
"index",
"writer",
"config",
"(",
"null",
")",
";",
"index",
"writer",
"iw",
"=",
"new",
"index",
"writer",
"(",
"dir",
",",
"iwc",
")",
";",
"iw",
"add",
"document",
"(",
"new",
"document",
"(",
")",
")",
";",
"/",
"/",
"open",
"reader",
"directory",
"reader",
"ir",
"=",
"field",
"subset",
"reader",
"wrap",
"(",
"directory",
"reader",
"open",
"(",
"iw",
")",
",",
"new",
"character",
"run",
"automaton",
"(",
"automata",
"make",
"string",
"(",
"\"",
"field",
"a",
"\"",
")",
")",
")",
";",
"/",
"/",
"see",
"no",
"fields",
"leaf",
"reader",
"segment",
"reader",
"=",
"ir",
"leaves",
"(",
")",
"get",
"(",
"0",
")",
"reader",
"(",
")",
";",
"set",
"<",
"string",
">",
"seen",
"fields",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"field",
"info",
"info",
":",
"segment",
"reader",
"get",
"field",
"infos",
"(",
")",
")",
"{",
"seen",
"fields",
"add",
"(",
"info",
"name",
")",
";",
"}",
"assert",
"equals",
"(",
"0",
",",
"seen",
"fields",
"size",
"(",
")",
")",
";",
"assert",
"null",
"(",
"segment",
"reader",
"terms",
"(",
"\"",
"foo",
"\"",
")",
")",
";",
"/",
"/",
"see",
"no",
"vectors",
"assert",
"null",
"(",
"segment",
"reader",
"get",
"term",
"vectors",
"(",
"0",
")",
")",
";",
"/",
"/",
"see",
"no",
"stored",
"fields",
"document",
"document",
"=",
"segment",
"reader",
"document",
"(",
"0",
")",
";",
"assert",
"equals",
"(",
"0",
",",
"document",
"get",
"fields",
"(",
")",
"size",
"(",
")",
")",
";",
"test",
"util",
"check",
"reader",
"(",
"ir",
")",
";",
"i",
"o",
"utils",
"close",
"(",
"ir",
",",
"iw",
",",
"dir",
")",
";",
"}"
]
|
[
"return",
"the",
"custom",
"type",
"converter",
"to",
"use",
",",
"if",
"any"
]
| [
"protected",
"type",
"converter",
"get",
"custom",
"type",
"converter",
"(",
")",
"{",
"return",
"this",
"type",
"converter",
";",
"}"
]
|
[
"set",
"the",
"value",
"for",
"the",
"given",
"header",
"name",
"only",
"if",
"the",
"header",
"name",
"is",
"not",
"already",
"associated",
"with",
"a",
"value"
]
| [
"public",
"message",
"builder",
"<",
"t",
">",
"set",
"header",
"if",
"absent",
"(",
"string",
"header",
"name",
",",
"object",
"header",
"value",
")",
"{",
"this",
"header",
"accessor",
"set",
"header",
"if",
"absent",
"(",
"header",
"name",
",",
"header",
"value",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"common",
"non",
"-",
"parallel",
"implementation",
"of",
"depth",
"-",
"bounded",
"allrdepsdeps"
]
| [
"static",
"<",
"t",
">",
"query",
"task",
"future",
"<",
"void",
">",
"eval",
"(",
"final",
"query",
"environment",
"<",
"t",
">",
"env",
",",
"query",
"expression",
"expression",
",",
"final",
"predicate",
"<",
"t",
">",
"universe",
",",
"query",
"expression",
"context",
"<",
"t",
">",
"context",
",",
"final",
"callback",
"<",
"t",
">",
"callback",
",",
"final",
"int",
"depth",
")",
"{",
"final",
"min",
"depth",
"uniquifier",
"<",
"t",
">",
"min",
"depth",
"uniquifier",
"=",
"env",
"create",
"min",
"depth",
"uniquifier",
"(",
")",
";",
"return",
"env",
"eval",
"(",
"expression",
",",
"context",
",",
"new",
"callback",
"<",
"t",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"process",
"(",
"iterable",
"<",
"t",
">",
"partial",
"result",
")",
"throws",
"query",
"exception",
",",
"interrupted",
"exception",
"{",
"iterable",
"<",
"t",
">",
"current",
"=",
"partial",
"result",
";",
"/",
"/",
"we",
"need",
"to",
"iterate",
"depth",
"bound",
"+",
"1",
"times",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"=",
"depth",
";",
"i",
"+",
"+",
")",
"{",
"list",
"<",
"t",
">",
"next",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"/",
"/",
"restrict",
"to",
"nodes",
"satisfying",
"the",
"universe",
"predicate",
"iterable",
"<",
"t",
">",
"current",
"in",
"universe",
"=",
"iterables",
"filter",
"(",
"current",
",",
"universe",
")",
";",
"/",
"/",
"filter",
"already",
"visited",
"nodes",
":",
"if",
"we",
"see",
"a",
"node",
"in",
"a",
"later",
"round",
",",
"then",
"we",
"don",
"'",
"t",
"/",
"/",
"need",
"to",
"visit",
"it",
"again",
",",
"because",
"the",
"depth",
"at",
"which",
"we",
"see",
"it",
"must",
"be",
"greater",
"/",
"/",
"than",
"or",
"equal",
"to",
"the",
"last",
"visit",
"iterables",
"add",
"all",
"(",
"next",
",",
"env",
"get",
"reverse",
"deps",
"(",
"min",
"depth",
"uniquifier",
"unique",
"at",
"depth",
"less",
"than",
"or",
"equal",
"to",
"(",
"current",
"in",
"universe",
",",
"i",
")",
",",
"context",
")",
")",
";",
"callback",
"process",
"(",
"current",
"in",
"universe",
")",
";",
"if",
"(",
"next",
"is",
"empty",
"(",
")",
")",
"{",
"/",
"/",
"exit",
"when",
"there",
"are",
"no",
"more",
"nodes",
"to",
"visit",
"break",
";",
"}",
"current",
"=",
"next",
";",
"}",
"}",
"}",
")",
";",
"}"
]
|
[
"if",
"the",
"action",
"producing",
"this",
"set",
"of",
"decompiler",
"results",
"didn",
"'",
"t",
"complete",
",",
"this",
"method",
"can",
"be",
"used",
"to",
"determine",
"if",
"the",
"action",
"was",
"explicitly",
"cancelled",
"(",
"as",
"opposed",
"to",
"an",
"error",
",",
"a",
"timeout",
",",
"or",
"a",
"crash",
")"
]
| [
"public",
"boolean",
"is",
"cancelled",
"(",
")",
"{",
"return",
"process",
"state",
"=",
"=",
"decompile",
"process",
"dispose",
"state",
"disposed",
"on",
"cancel",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"void",
"update",
"clob",
"(",
"string",
"column",
"label",
",",
"clob",
"x",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"}"
]
|
[
"utility",
"method",
"to",
"verify",
"that",
"the",
"given",
"sorted",
"set",
"is",
"equal",
"to",
"and",
"hashes",
"identically",
"to",
"a",
"set",
"constructed",
"with",
"the",
"elements",
"in",
"the",
"given",
"iterable",
"also",
"verifies",
"that",
"the",
"comparator",
"is",
"the",
"same",
"as",
"the",
"given",
"comparator"
]
| [
"private",
"static",
"<",
"e",
">",
"void",
"verify",
"sorted",
"set",
"contents",
"(",
"sorted",
"set",
"<",
"e",
">",
"set",
",",
"iterable",
"<",
"e",
">",
"iterable",
",",
"@",
"nullable",
"comparator",
"<",
"e",
">",
"comparator",
")",
"{",
"assert",
"same",
"(",
"comparator",
",",
"set",
"comparator",
"(",
")",
")",
";",
"verify",
"set",
"contents",
"(",
"set",
",",
"iterable",
")",
";",
"}"
]
|
[
"create",
"a",
"file",
"if",
"it",
"doesn",
"'",
"t",
"exist",
",",
"otherwise",
"do",
"nothing"
]
| [
"public",
"static",
"boolean",
"create",
"or",
"exists",
"file",
"(",
"final",
"string",
"file",
"path",
")",
"{",
"return",
"create",
"or",
"exists",
"file",
"(",
"get",
"file",
"by",
"path",
"(",
"file",
"path",
")",
")",
";",
"}"
]
|
[
"visit",
"a",
"parse",
"tree",
"produced",
"by",
"the",
"{",
"@",
"code",
"numeric",
"}",
"labeled",
"alternative",
"in",
"{",
"@",
"link",
"painless",
"parser",
"#",
"primary",
"}"
]
| [
"t",
"visit",
"numeric",
"(",
"painless",
"parser",
"numeric",
"context",
"ctx",
")",
";"
]
|
[
"tries",
"to",
"copy",
"the",
"given",
"record",
"from",
"using",
"the",
"provided",
"kryo",
"instance",
"if",
"this",
"fails",
",",
"then",
"the",
"record",
"from",
"is",
"copied",
"by",
"serializing",
"it",
"into",
"a",
"byte",
"buffer",
"and",
"deserializing",
"it",
"from",
"there"
]
| [
"public",
"static",
"<",
"t",
">",
"t",
"copy",
"(",
"t",
"from",
",",
"kryo",
"kryo",
",",
"type",
"serializer",
"<",
"t",
">",
"serializer",
")",
"{",
"try",
"{",
"return",
"kryo",
"copy",
"(",
"from",
")",
";",
"}",
"catch",
"(",
"kryo",
"exception",
"ke",
")",
"{",
"/",
"/",
"kryo",
"could",
"not",
"copy",
"the",
"object",
"-",
"-",
">",
"try",
"to",
"serialize",
"/",
"deserialize",
"the",
"object",
"try",
"{",
"byte",
"[",
"]",
"byte",
"array",
"=",
"instantiation",
"util",
"serialize",
"to",
"byte",
"array",
"(",
"serializer",
",",
"from",
")",
";",
"return",
"instantiation",
"util",
"deserialize",
"from",
"byte",
"array",
"(",
"serializer",
",",
"byte",
"array",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"could",
"not",
"copy",
"object",
"by",
"serializing",
"/",
"deserializing",
"\"",
"+",
"\"",
"it",
"\"",
",",
"ioe",
")",
";",
"}",
"}",
"}"
]
|
[
"determine",
"whether",
"the",
"given",
"{",
"@",
"code",
"value",
"}",
"string",
"indicates",
"a",
"hex",
"number",
",",
"i",
"e",
"needs",
"to",
"be",
"passed",
"into",
"{",
"@",
"code",
"integer",
"decode",
"}",
"instead",
"of",
"{",
"@",
"code",
"integer",
"value",
"of",
"}",
",",
"etc"
]
| [
"private",
"static",
"boolean",
"is",
"hex",
"number",
"(",
"string",
"value",
")",
"{",
"int",
"index",
"=",
"(",
"value",
"starts",
"with",
"(",
"\"",
"-",
"\"",
")",
"?",
"1",
":",
"0",
")",
";",
"return",
"(",
"value",
"starts",
"with",
"(",
"\"",
"0x",
"\"",
",",
"index",
")",
"|",
"|",
"value",
"starts",
"with",
"(",
"\"",
"0x",
"\"",
",",
"index",
")",
"|",
"|",
"value",
"starts",
"with",
"(",
"\"",
"#",
"\"",
",",
"index",
")",
")",
";",
"}"
]
|
[
"returns",
"{",
"@",
"code",
"x",
"mod",
"m",
"}",
",",
"a",
"non",
"-",
"negative",
"value",
"less",
"than",
"{",
"@",
"code",
"m",
"}",
"this",
"differs",
"from",
"{",
"@",
"code",
"x",
"%",
"m",
"}",
",",
"which",
"might",
"be",
"negative",
"for",
"example",
":",
"{",
"@",
"code",
"mod",
"(",
"7",
",",
"4",
")",
"=",
"=",
"3",
"mod",
"(",
"-",
"7",
",",
"4",
")",
"=",
"=",
"1",
"mod",
"(",
"-",
"1",
",",
"4",
")",
"=",
"=",
"3",
"mod",
"(",
"-",
"8",
",",
"4",
")",
"=",
"=",
"0",
"mod",
"(",
"8",
",",
"4",
")",
"=",
"=",
"0",
"}"
]
| [
"public",
"static",
"long",
"mod",
"(",
"long",
"x",
",",
"long",
"m",
")",
"{",
"if",
"(",
"m",
"<",
"=",
"0",
")",
"{",
"throw",
"new",
"arithmetic",
"exception",
"(",
"\"",
"modulus",
"must",
"be",
"positive",
"\"",
")",
";",
"}",
"long",
"result",
"=",
"x",
"%",
"m",
";",
"return",
"(",
"result",
">",
"=",
"0",
")",
"?",
"result",
":",
"result",
"+",
"m",
";",
"}"
]
|
[
"retrieves",
"the",
"full",
"set",
"of",
"proguard",
"specs",
"that",
"should",
"be",
"applied",
"to",
"this",
"binary",
",",
"including",
"the",
"specs",
"passed",
"in",
",",
"if",
"proguard",
"should",
"run",
"on",
"the",
"given",
"rule",
"{",
"@",
"link",
"#",
"create",
"proguard",
"action",
"}",
"relies",
"on",
"this",
"method",
"returning",
"an",
"empty",
"list",
"if",
"the",
"given",
"rule",
"doesn",
"'",
"t",
"declare",
"specs",
"in",
"-",
"-",
"java",
"optimization",
"mode",
"=",
"legacy",
"if",
"there",
"are",
"no",
"proguard",
"specs",
"on",
"this",
"rule",
",",
"an",
"empty",
"list",
"will",
"be",
"returned",
",",
"regardless",
"of",
"any",
"given",
"specs",
"or",
"specs",
"from",
"dependencies",
"{",
"@",
"link",
"com",
"google",
"devtools",
"build",
"lib",
"rules",
"android",
"android",
"binary",
"#",
"create",
"android",
"binary",
"}",
"relies",
"on",
"that",
"behavior"
]
| [
"public",
"static",
"immutable",
"list",
"<",
"artifact",
">",
"collect",
"transitive",
"proguard",
"specs",
"(",
"rule",
"context",
"rule",
"context",
",",
"iterable",
"<",
"artifact",
">",
"specs",
"to",
"include",
")",
"{",
"return",
"collect",
"transitive",
"proguard",
"specs",
"(",
"rule",
"context",
",",
"iterables",
"concat",
"(",
"specs",
"to",
"include",
",",
"rule",
"context",
"get",
"prerequisite",
"artifacts",
"(",
"\"",
":",
"extra",
"proguard",
"specs",
"\"",
")",
"list",
"(",
")",
")",
",",
"rule",
"context",
"attributes",
"(",
")",
"has",
"(",
"proguard",
"specs",
",",
"build",
"type",
"label",
"list",
")",
"?",
"rule",
"context",
"get",
"prerequisite",
"artifacts",
"(",
"proguard",
"specs",
")",
"list",
"(",
")",
":",
"immutable",
"list",
"<",
"artifact",
">",
"of",
"(",
")",
",",
"rule",
"context",
"get",
"prerequisites",
"(",
"\"",
"deps",
"\"",
",",
"proguard",
"spec",
"provider",
"provider",
")",
")",
";",
"}"
]
|
[
"check",
"ansi",
"string",
":",
"checks",
"ascii",
"string",
"for",
"\"",
"goodness",
"\""
]
| [
"private",
"int",
"check",
"ansi",
"string",
"(",
"memory",
"mem",
",",
"address",
"adref",
")",
"{",
"int",
"len",
"=",
"get",
"string",
"length",
"(",
"mem",
",",
"adref",
",",
"processor",
"alignment",
")",
";",
"/",
"/",
"returns",
"-",
"1",
"for",
"bad",
"if",
"(",
"len",
"<",
"=",
"0",
")",
"{",
"return",
"0",
";",
"}",
"/",
"/",
"int",
"len",
"2",
"=",
"get",
"str",
"len",
"(",
"mem",
",",
"adref",
"subtract",
"(",
"4",
")",
")",
";",
"/",
"/",
"if",
"(",
"len",
"2",
">",
"len",
"+",
"2",
")",
"/",
"/",
"return",
"0",
";",
"return",
"len",
";",
"}"
]
|
[
"whether",
"or",
"not",
"an",
"avatar",
"is",
"present",
"for",
"the",
"given",
"recipient"
]
| [
"public",
"static",
"boolean",
"has",
"avatar",
"(",
"@",
"non",
"null",
"context",
"context",
",",
"@",
"non",
"null",
"recipient",
"id",
"recipient",
"id",
")",
"{",
"file",
"avatar",
"file",
"=",
"get",
"avatar",
"file",
"(",
"context",
",",
"recipient",
"id",
")",
";",
"return",
"avatar",
"file",
"exists",
"(",
")",
"&",
"&",
"avatar",
"file",
"length",
"(",
")",
">",
"0",
";",
"}"
]
|
[
"get",
"indirect",
"map"
]
| [
"public",
"map",
"<",
"string",
",",
"boolean",
">",
"get",
"indirect",
"map",
"(",
")",
"{",
"return",
"indirect",
"map",
";",
"}"
]
|
[
"called",
"when",
"a",
"position",
"discontinuity",
"occurs",
"without",
"a",
"change",
"to",
"the",
"timeline",
"a",
"position",
"discontinuity",
"occurs",
"when",
"the",
"current",
"window",
"or",
"period",
"index",
"changes",
"(",
"as",
"a",
"result",
"of",
"playback",
"transitioning",
"from",
"one",
"period",
"in",
"the",
"timeline",
"to",
"the",
"next",
")",
",",
"or",
"when",
"the",
"playback",
"position",
"jumps",
"within",
"the",
"period",
"currently",
"being",
"played",
"(",
"as",
"a",
"result",
"of",
"a",
"seek",
"being",
"performed",
",",
"or",
"when",
"the",
"source",
"introduces",
"a",
"discontinuity",
"internally",
")",
"when",
"a",
"position",
"discontinuity",
"occurs",
"as",
"a",
"result",
"of",
"a",
"change",
"to",
"the",
"timeline",
"this",
"method",
"is",
"not",
"called",
"{",
"@",
"link",
"#",
"on",
"timeline",
"changed",
"(",
"timeline",
",",
"int",
")",
"}",
"is",
"called",
"in",
"this",
"case"
]
| [
"default",
"void",
"on",
"position",
"discontinuity",
"(",
"@",
"discontinuity",
"reason",
"int",
"reason",
")",
"{",
"}"
]
|
[
"get",
"the",
"field",
"type",
"for",
"the",
"key"
]
| [
"public",
"field",
"get",
"key",
"field",
"type",
"(",
")",
"{",
"return",
"key",
"type",
";",
"}"
]
|
[
"write",
"this",
"body",
"to",
"the",
"given",
"{",
"@",
"link",
"output",
"stream",
"}"
]
| [
"void",
"write",
"to",
"(",
"output",
"stream",
"output",
"stream",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"record",
"a",
"granted",
"vote",
"from",
"one",
"of",
"the",
"voters"
]
| [
"public",
"boolean",
"record",
"granted",
"vote",
"(",
"int",
"remote",
"node",
"id",
")",
"{",
"state",
"state",
"=",
"vote",
"states",
"get",
"(",
"remote",
"node",
"id",
")",
";",
"if",
"(",
"state",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"attempt",
"to",
"grant",
"vote",
"to",
"non",
"-",
"voter",
"\"",
"+",
"remote",
"node",
"id",
")",
";",
"}",
"else",
"if",
"(",
"state",
"=",
"=",
"state",
"rejected",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"attempt",
"to",
"grant",
"vote",
"from",
"node",
"\"",
"+",
"remote",
"node",
"id",
"+",
"\"",
"which",
"previously",
"rejected",
"our",
"request",
"\"",
")",
";",
"}",
"return",
"vote",
"states",
"put",
"(",
"remote",
"node",
"id",
",",
"state",
"granted",
")",
"=",
"=",
"state",
"unrecorded",
";",
"}"
]
|
[
"use",
"when",
"all",
"access",
"are",
"on",
"a",
"single",
"thread",
",",
"such",
"as",
"the",
"swing",
"thread"
]
| [
"public",
"static",
"<",
"t",
">",
"weak",
"set",
"<",
"t",
">",
"create",
"single",
"thread",
"access",
"weak",
"set",
"(",
")",
"{",
"return",
"new",
"thread",
"unsafe",
"weak",
"set",
"<",
"t",
">",
"(",
")",
";",
"}"
]
|
[
"get",
"anytype",
"3"
]
| [
"public",
"object",
"get",
"anytype",
"3",
"(",
")",
"{",
"return",
"anytype",
"3",
";",
"}"
]
|
[
"data",
"operation",
",",
"returning",
"submission",
"results",
"synchronously",
",",
"datum"
]
| [
"response",
"write",
"(",
"write",
"request",
"request",
")",
"throws",
"exception",
";"
]
|
[
"test",
"to",
"upper",
"list"
]
| [
"public",
"void",
"test",
"to",
"upper",
"list",
"(",
")",
"{",
"list",
"<",
"string",
">",
"source",
"list",
"=",
"null",
";",
"assertions",
"assert",
"null",
"(",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"source",
"list",
")",
")",
";",
"source",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"assertions",
"assert",
"equals",
"(",
"collections",
"empty",
"list",
",",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"source",
"list",
")",
")",
";",
"list",
"<",
"string",
">",
"another",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"source",
"list",
"add",
"(",
"\"",
"a",
"\"",
")",
";",
"another",
"list",
"add",
"(",
"\"",
"a",
"\"",
")",
";",
"source",
"list",
"add",
"(",
"\"",
"b",
"\"",
")",
";",
"another",
"list",
"add",
"(",
"\"",
"b",
"\"",
")",
";",
"source",
"list",
"add",
"(",
"\"",
"c",
"\"",
")",
";",
"another",
"list",
"add",
"(",
"\"",
"c",
"\"",
")",
";",
"assertions",
"assert",
"equals",
"(",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"source",
"list",
")",
",",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"another",
"list",
")",
")",
";",
"another",
"list",
"add",
"(",
"\"",
"d",
"\"",
")",
";",
"assertions",
"assert",
"true",
"(",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"another",
"list",
")",
"contains",
"all",
"(",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"source",
"list",
")",
")",
")",
";",
"list",
"<",
"string",
">",
"list",
"with",
"null",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"list",
"with",
"null",
"add",
"(",
"\"",
"foo",
"\"",
")",
";",
"list",
"with",
"null",
"add",
"(",
"null",
")",
";",
"list",
"with",
"null",
"add",
"(",
"\"",
"bar",
"\"",
")",
";",
"list",
"<",
"string",
">",
"list",
"upper",
"with",
"null",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"list",
"upper",
"with",
"null",
"add",
"(",
"\"",
"foo",
"\"",
")",
";",
"list",
"upper",
"with",
"null",
"add",
"(",
"null",
")",
";",
"list",
"upper",
"with",
"null",
"add",
"(",
"\"",
"bar",
"\"",
")",
";",
"assertions",
"assert",
"equals",
"(",
"list",
"upper",
"with",
"null",
",",
"collection",
"utils",
"to",
"upper",
"list",
"(",
"list",
"with",
"null",
")",
")",
";",
"}"
]
|
[
"model",
"tests",
"for",
"animal"
]
| [
"public",
"void",
"test",
"animal",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"animal",
"}"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"function",
"definition",
"}",
"from",
"given",
"{",
"@",
"link",
"catalog",
"function",
"}"
]
| [
"function",
"definition",
"create",
"function",
"definition",
"(",
"string",
"name",
",",
"catalog",
"function",
"catalog",
"function",
")",
";"
]
|
[
"model",
"tests",
"for",
"enum",
"class"
]
| [
"public",
"void",
"test",
"enum",
"class",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"enum",
"class",
"}"
]
|
[
"set",
"the",
"<",
"code",
">",
"updated",
"nodes",
"<",
"code",
">",
"of",
"the",
"response"
]
| [
"public",
"allocate",
"response",
"builder",
"updated",
"nodes",
"(",
"list",
"<",
"node",
"report",
">",
"updated",
"nodes",
")",
"{",
"allocate",
"response",
"set",
"updated",
"nodes",
"(",
"updated",
"nodes",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"removes",
"any",
"associated",
"body",
"with",
"the",
"given",
"namespace"
]
| [
"public",
"address",
"set",
"view",
"remove",
"body",
"(",
"namespace",
"namespace",
")",
"{",
"lock",
"acquire",
"(",
")",
";",
"try",
"{",
"address",
"set",
"view",
"set",
"=",
"get",
"address",
"set",
"(",
"namespace",
")",
";",
"address",
"range",
"iterator",
"iter",
"=",
"set",
"get",
"address",
"ranges",
"(",
")",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"address",
"range",
"range",
"=",
"iter",
"next",
"(",
")",
";",
"namespace",
"map",
"clear",
"range",
"(",
"range",
"get",
"min",
"address",
"(",
")",
",",
"range",
"get",
"max",
"address",
"(",
")",
")",
";",
"}",
"return",
"set",
";",
"}",
"finally",
"{",
"clear",
"cache",
"(",
")",
";",
"lock",
"release",
"(",
")",
";",
"}",
"}"
]
|
[
"postmultiplies",
"this",
"matrix",
"by",
"a",
"translation",
"matrix",
"postmultiplication",
"is",
"also",
"used",
"by",
"open",
"g",
"l",
"es",
"'",
"gl",
"translategl",
"rotategl",
"scale"
]
| [
"public",
"matrix",
"4",
"translate",
"(",
"vector",
"3",
"translation",
")",
"{",
"return",
"translate",
"(",
"translation",
"x",
",",
"translation",
"y",
",",
"translation",
"z",
")",
";",
"}"
]
|
[
"set",
"the",
"user",
"supplied",
"s",
"q",
"l",
"exception",
"override",
"class",
"name"
]
| [
"public",
"void",
"set",
"exception",
"override",
"class",
"name",
"(",
"string",
"exception",
"override",
"class",
"name",
")",
"{",
"check",
"if",
"sealed",
"(",
")",
";",
"class",
"<",
"?",
">",
"override",
"class",
"=",
"attempt",
"from",
"context",
"loader",
"(",
"exception",
"override",
"class",
"name",
")",
";",
"try",
"{",
"if",
"(",
"override",
"class",
"=",
"=",
"null",
")",
"{",
"override",
"class",
"=",
"this",
"get",
"class",
"(",
")",
"get",
"class",
"loader",
"(",
")",
"load",
"class",
"(",
"exception",
"override",
"class",
"name",
")",
";",
"logger",
"debug",
"(",
"\"",
"s",
"q",
"l",
"exception",
"override",
"class",
"{",
"}",
"found",
"in",
"the",
"hikari",
"config",
"class",
"classloader",
"{",
"}",
"\"",
",",
"exception",
"override",
"class",
"name",
",",
"this",
"get",
"class",
"(",
")",
"get",
"class",
"loader",
"(",
")",
")",
";",
"}",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"e",
")",
"{",
"logger",
"error",
"(",
"\"",
"failed",
"to",
"load",
"s",
"q",
"l",
"exception",
"override",
"class",
"{",
"}",
"from",
"hikari",
"config",
"class",
"classloader",
"{",
"}",
"\"",
",",
"exception",
"override",
"class",
"name",
",",
"this",
"get",
"class",
"(",
")",
"get",
"class",
"loader",
"(",
")",
")",
";",
"}",
"if",
"(",
"override",
"class",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"failed",
"to",
"load",
"s",
"q",
"l",
"exception",
"override",
"class",
"\"",
"+",
"exception",
"override",
"class",
"name",
"+",
"\"",
"in",
"either",
"of",
"hikari",
"config",
"class",
"loader",
"or",
"thread",
"context",
"classloader",
"\"",
")",
";",
"}",
"try",
"{",
"override",
"class",
"get",
"constructor",
"(",
")",
"new",
"instance",
"(",
")",
";",
"this",
"exception",
"override",
"class",
"name",
"=",
"exception",
"override",
"class",
"name",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"failed",
"to",
"instantiate",
"class",
"\"",
"+",
"exception",
"override",
"class",
"name",
",",
"e",
")",
";",
"}",
"}"
]
|
[
"result",
"string",
"(",
"junction",
"target",
")",
"or",
"error",
"message",
"(",
"depending",
"on",
"{",
"@",
"link",
"status",
"}",
")"
]
| [
"public",
"string",
"get",
"result",
"(",
")",
"{",
"return",
"result",
";",
"}"
]
|
[
"returns",
"the",
"paint",
"object",
"this",
"renderer",
"uses",
"for",
"drawing",
"the",
"values",
"(",
"value",
"-",
"text",
")"
]
| [
"public",
"paint",
"get",
"paint",
"values",
"(",
")",
"{",
"return",
"m",
"value",
"paint",
";",
"}"
]
|
[
"sets",
"the",
"value",
"of",
"\"",
"overall",
"score",
"\"",
"only",
"buckets",
"with",
"\"",
"overall",
"score",
"\"",
"equal",
"or",
"greater",
"will",
"be",
"returned"
]
| [
"public",
"void",
"set",
"overall",
"score",
"(",
"double",
"overall",
"score",
")",
"{",
"this",
"overall",
"score",
"=",
"overall",
"score",
";",
"}"
]
|
[
"parses",
"an",
"environment",
"file",
"from",
"an",
"string"
]
| [
"public",
"static",
"environment",
"parse",
"(",
"string",
"content",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"return",
"new",
"config",
"util",
"lower",
"case",
"yaml",
"mapper",
"(",
")",
"read",
"value",
"(",
"content",
",",
"environment",
"class",
")",
";",
"}",
"catch",
"(",
"json",
"mapping",
"exception",
"e",
")",
"{",
"throw",
"new",
"sql",
"client",
"exception",
"(",
"\"",
"could",
"not",
"parse",
"environment",
"file",
"cause",
":",
"\"",
"+",
"e",
"get",
"message",
"(",
")",
")",
";",
"}",
"}"
]
|
[
"get",
"attribute",
"string"
]
| [
"public",
"string",
"get",
"attribute",
"string",
"(",
")",
"{",
"return",
"attribute",
"string",
";",
"}"
]
|
[
"required",
"one",
"or",
"more",
"hosts",
"exposed",
"by",
"this",
"gateway",
"while",
"typically",
"applicable",
"to",
"http",
"services",
",",
"it",
"can",
"also",
"be",
"used",
"for",
"tcp",
"services",
"using",
"tls",
"with",
"sni",
"a",
"host",
"is",
"specified",
"as",
"a",
"`",
"dns",
"name",
"`",
"with",
"an",
"optional",
"`",
"namespace",
"`",
"prefix",
"the",
"`",
"dns",
"name",
"`",
"should",
"be",
"specified",
"using",
"fqdn",
"format",
",",
"optionally",
"including",
"a",
"wildcard",
"character",
"in",
"the",
"left",
"-",
"most",
"component",
"(",
"e",
"g",
",",
"`",
"prod",
"&",
"#",
"42",
";",
"example",
"com",
"`",
")",
"set",
"the",
"`",
"dns",
"name",
"`",
"to",
"`",
"`",
"to",
"select",
"all",
"`",
"virtual",
"service",
"`",
"hosts",
"from",
"the",
"specified",
"namespace",
"(",
"e",
"g",
",",
"`",
"prod",
"&",
"#",
"42",
";",
"`",
")",
"the",
"`",
"namespace",
"`",
"can",
"be",
"set",
"to",
"`",
"`",
"or",
"`",
"`",
",",
"representing",
"any",
"or",
"the",
"current",
"namespace",
",",
"respectively",
"for",
"example",
",",
"`",
"&",
"#",
"47",
";",
"foo",
"example",
"com",
"`",
"selects",
"the",
"service",
"from",
"any",
"available",
"namespace",
"while",
"`",
"foo",
"example",
"com",
"`",
"only",
"selects",
"the",
"service",
"from",
"the",
"namespace",
"of",
"the",
"sidecar",
"the",
"default",
",",
"if",
"no",
"`",
"namespace",
"`",
"is",
"specified",
",",
"is",
"`",
"&",
"#",
"47",
";",
"`",
",",
"that",
"is",
",",
"select",
"services",
"from",
"any",
"namespace",
"any",
"associated",
"`",
"destination",
"rule",
"`",
"in",
"the",
"selected",
"namespace",
"will",
"also",
"be",
"used",
"a",
"`",
"virtual",
"service",
"`",
"must",
"be",
"bound",
"to",
"the",
"gateway",
"and",
"must",
"have",
"one",
"or",
"more",
"hosts",
"that",
"match",
"the",
"hosts",
"specified",
"in",
"a",
"server",
"the",
"match",
"could",
"be",
"an",
"exact",
"match",
"or",
"a",
"suffix",
"match",
"with",
"the",
"server",
"'",
"s",
"hosts",
"for",
"example",
",",
"if",
"the",
"server",
"'",
"s",
"hosts",
"specifies",
"`",
"example",
"com",
"`",
",",
"a",
"`",
"virtual",
"service",
"`",
"with",
"hosts",
"`",
"dev",
"example",
"com",
"`",
"or",
"`",
"prod",
"example",
"com",
"`",
"will",
"match",
"however",
",",
"a",
"`",
"virtual",
"service",
"`",
"with",
"host",
"`",
"example",
"com",
"`",
"or",
"`",
"newexample",
"com",
"`",
"will",
"not",
"match",
"note",
":",
"only",
"virtual",
"services",
"exported",
"to",
"the",
"gateway",
"'",
"s",
"namespace",
"(",
"e",
"g",
",",
"`",
"export",
"to",
"`",
"value",
"of",
"`",
"`",
")",
"can",
"be",
"referenced",
"private",
"configurations",
"(",
"e",
"g",
",",
"`",
"export",
"to",
"`",
"set",
"to",
"`",
"`",
")",
"will",
"not",
"be",
"available",
"refer",
"to",
"the",
"`",
"export",
"to",
"`",
"setting",
"in",
"`",
"virtual",
"service",
"`",
",",
"`",
"destination",
"rule",
"`",
",",
"and",
"`",
"service",
"entry",
"`",
"configurations",
"for",
"details",
"<",
"code",
">",
"repeated",
"string",
"hosts",
"=",
"2",
";",
"<",
"code",
">"
]
| [
"public",
"java",
"lang",
"string",
"get",
"hosts",
"(",
"int",
"index",
")",
"{",
"return",
"hosts",
"get",
"(",
"index",
")",
";",
"}"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"s",
"s",
"l",
"handler",
"factory",
"}",
"to",
"be",
"used",
"by",
"the",
"rest",
"clients"
]
| [
"public",
"static",
"s",
"s",
"l",
"handler",
"factory",
"create",
"rest",
"client",
"s",
"s",
"l",
"engine",
"factory",
"(",
"final",
"configuration",
"config",
")",
"throws",
"exception",
"{",
"client",
"auth",
"client",
"auth",
"=",
"is",
"rest",
"s",
"s",
"l",
"authentication",
"enabled",
"(",
"config",
")",
"?",
"client",
"auth",
"require",
":",
"client",
"auth",
"none",
";",
"ssl",
"context",
"ssl",
"context",
"=",
"create",
"rest",
"netty",
"s",
"s",
"l",
"context",
"(",
"config",
",",
"true",
",",
"client",
"auth",
")",
";",
"if",
"(",
"ssl",
"context",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"configuration",
"exception",
"(",
"\"",
"ssl",
"is",
"not",
"enabled",
"for",
"rest",
"endpoints",
"\"",
")",
";",
"}",
"return",
"new",
"s",
"s",
"l",
"handler",
"factory",
"(",
"ssl",
"context",
",",
"-",
"1",
",",
"-",
"1",
")",
";",
"}"
]
|
[
"the",
"name",
"of",
"the",
"kind",
"of",
"thing",
"being",
"resolved",
"used",
"when",
"building",
"the",
"error",
"message",
"sent",
"back",
"to",
"the",
"user",
"when",
"they",
"specify",
"a",
"function",
"that",
"doesn",
"'",
"t",
"exist"
]
| [
"protected",
"abstract",
"string",
"type",
"(",
")",
";"
]
|
[
"returns",
"a",
"{",
"@",
"link",
"caffeine",
"}",
"builder",
"configured",
"according",
"to",
"this",
"specification"
]
| [
"caffeine",
"<",
"object",
",",
"object",
">",
"to",
"builder",
"(",
")",
"{",
"caffeine",
"<",
"object",
",",
"object",
">",
"builder",
"=",
"caffeine",
"new",
"builder",
"(",
")",
";",
"if",
"(",
"initial",
"capacity",
"!",
"=",
"unset",
"int",
")",
"{",
"builder",
"initial",
"capacity",
"(",
"initial",
"capacity",
")",
";",
"}",
"if",
"(",
"maximum",
"size",
"!",
"=",
"unset",
"int",
")",
"{",
"builder",
"maximum",
"size",
"(",
"maximum",
"size",
")",
";",
"}",
"if",
"(",
"maximum",
"weight",
"!",
"=",
"unset",
"int",
")",
"{",
"builder",
"maximum",
"weight",
"(",
"maximum",
"weight",
")",
";",
"}",
"if",
"(",
"key",
"strength",
"!",
"=",
"null",
")",
"{",
"require",
"state",
"(",
"key",
"strength",
"=",
"=",
"strength",
"weak",
")",
";",
"builder",
"weak",
"keys",
"(",
")",
";",
"}",
"if",
"(",
"value",
"strength",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"value",
"strength",
"=",
"=",
"strength",
"weak",
")",
"{",
"builder",
"weak",
"values",
"(",
")",
";",
"}",
"else",
"if",
"(",
"value",
"strength",
"=",
"=",
"strength",
"soft",
")",
"{",
"builder",
"soft",
"values",
"(",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}",
"}",
"if",
"(",
"expire",
"after",
"write",
"!",
"=",
"null",
")",
"{",
"builder",
"expire",
"after",
"write",
"(",
"expire",
"after",
"write",
")",
";",
"}",
"if",
"(",
"expire",
"after",
"access",
"!",
"=",
"null",
")",
"{",
"builder",
"expire",
"after",
"access",
"(",
"expire",
"after",
"access",
")",
";",
"}",
"if",
"(",
"refresh",
"after",
"write",
"!",
"=",
"null",
")",
"{",
"builder",
"refresh",
"after",
"write",
"(",
"refresh",
"after",
"write",
")",
";",
"}",
"if",
"(",
"record",
"stats",
")",
"{",
"builder",
"record",
"stats",
"(",
")",
";",
"}",
"return",
"builder",
";",
"}"
]
|
[
"get",
"statistics",
"pertaining",
"to",
"blocks",
"of",
"type",
"{",
"@",
"link",
"block",
"type",
"#",
"striped",
"}",
"in",
"the",
"filesystem"
]
| [
"e",
"c",
"block",
"group",
"stats",
"get",
"e",
"c",
"block",
"group",
"stats",
"(",
")",
"{",
"return",
"new",
"e",
"c",
"block",
"group",
"stats",
"(",
"get",
"low",
"redundancy",
"e",
"c",
"block",
"groups",
"(",
")",
",",
"get",
"corrupt",
"e",
"c",
"block",
"groups",
"(",
")",
",",
"get",
"missing",
"e",
"c",
"block",
"groups",
"(",
")",
",",
"get",
"bytes",
"in",
"future",
"e",
"c",
"block",
"groups",
"(",
")",
",",
"get",
"pending",
"deletion",
"e",
"c",
"blocks",
"(",
")",
",",
"get",
"highest",
"priority",
"low",
"redundancy",
"e",
"c",
"blocks",
"(",
")",
")",
";",
"}",
"@",
"override",
"/",
"/",
"f",
"s",
"namesystem",
"m",
"bean",
"@",
"metric",
"(",
"{",
"\"",
"capacity",
"total",
"\"",
",",
"\"",
"total",
"raw",
"capacity",
"of",
"data",
"nodes",
"in",
"bytes",
"\"",
"}"
]
|
[
"when",
"string",
"[",
"]",
"is",
"null",
"return",
"blank",
"array"
]
| [
"public",
"static",
"string",
"[",
"]",
"null",
"to",
"blank",
"(",
"final",
"string",
"[",
"]",
"string",
"array",
")",
"{",
"string",
"[",
"]",
"result",
"=",
"string",
"array",
";",
"if",
"(",
"string",
"array",
"=",
"=",
"null",
")",
"{",
"result",
"=",
"new",
"string",
"[",
"]",
"{",
"}",
";",
"}",
"return",
"result",
";",
"}"
]
|
[
"adds",
"this",
"file",
"metadata",
"to",
"the",
"given",
"{",
"@",
"link",
"fingerprint",
"}"
]
| [
"public",
"final",
"void",
"add",
"to",
"(",
"fingerprint",
"fp",
")",
"{",
"byte",
"[",
"]",
"digest",
"=",
"get",
"digest",
"(",
")",
";",
"if",
"(",
"digest",
"!",
"=",
"null",
")",
"{",
"fp",
"add",
"bytes",
"(",
"digest",
")",
";",
"}",
"else",
"{",
"/",
"/",
"use",
"the",
"timestamp",
"if",
"the",
"digest",
"is",
"not",
"present",
",",
"but",
"not",
"both",
"modifying",
"a",
"timestamp",
"while",
"/",
"/",
"keeping",
"the",
"contents",
"of",
"a",
"file",
"the",
"same",
"should",
"not",
"cause",
"rebuilds",
"fp",
"add",
"long",
"(",
"get",
"modified",
"time",
"(",
")",
")",
";",
"}",
"}"
]
|
[
"make",
"python",
"configuration",
"options",
"available",
"for",
"host",
"configurations",
"as",
"well"
]
| [
"public",
"fragment",
"options",
"get",
"host",
"(",
")",
"{",
"return",
"clone",
"(",
")",
";",
"/",
"/",
"host",
"options",
"are",
"the",
"same",
"as",
"target",
"options",
"}"
]
|
[
"array",
"of",
"enums"
]
| [
"public",
"list",
"<",
"outer",
"enum",
">",
"get",
"array",
"of",
"enums",
"(",
")",
"throws",
"api",
"exception",
"{",
"return",
"get",
"array",
"of",
"enums",
"with",
"http",
"info",
"(",
")",
"get",
"data",
"(",
")",
";",
"}"
]
|
[
"parse",
"the",
"given",
"value",
"into",
"a",
"days",
"of",
"week",
"{",
"@",
"code",
"quartz",
"cron",
"field",
"}",
",",
"the",
"sixth",
"entry",
"of",
"a",
"cron",
"expression",
"expects",
"a",
"\"",
"l",
"\"",
"or",
"\"",
"#",
"\"",
"in",
"the",
"given",
"value"
]
| [
"public",
"static",
"quartz",
"cron",
"field",
"parse",
"days",
"of",
"week",
"(",
"string",
"value",
")",
"{",
"int",
"idx",
"=",
"value",
"last",
"index",
"of",
"(",
"'",
"l",
"'",
")",
";",
"if",
"(",
"idx",
"!",
"=",
"-",
"1",
")",
"{",
"if",
"(",
"idx",
"!",
"=",
"value",
"length",
"(",
")",
"-",
"1",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"unrecognized",
"characters",
"after",
"'",
"l",
"'",
"in",
"'",
"\"",
"+",
"value",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"else",
"{",
"temporal",
"adjuster",
"adjuster",
";",
"if",
"(",
"idx",
"=",
"=",
"0",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"no",
"day",
"-",
"of",
"-",
"week",
"before",
"'",
"l",
"'",
"in",
"'",
"\"",
"+",
"value",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"else",
"{",
"/",
"/",
"\"",
"[",
"0",
"-",
"7",
"]",
"l",
"\"",
"day",
"of",
"week",
"day",
"of",
"week",
"=",
"parse",
"day",
"of",
"week",
"(",
"value",
"substring",
"(",
"0",
",",
"idx",
")",
")",
";",
"adjuster",
"=",
"temporal",
"adjusters",
"last",
"in",
"month",
"(",
"day",
"of",
"week",
")",
";",
"}",
"return",
"new",
"quartz",
"cron",
"field",
"(",
"type",
"day",
"of",
"week",
",",
"type",
"day",
"of",
"month",
",",
"adjuster",
",",
"value",
")",
";",
"}",
"}",
"idx",
"=",
"value",
"last",
"index",
"of",
"(",
"'",
"#",
"'",
")",
";",
"if",
"(",
"idx",
"!",
"=",
"-",
"1",
")",
"{",
"if",
"(",
"idx",
"=",
"=",
"0",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"no",
"day",
"-",
"of",
"-",
"week",
"before",
"'",
"#",
"'",
"in",
"'",
"\"",
"+",
"value",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"else",
"if",
"(",
"idx",
"=",
"=",
"value",
"length",
"(",
")",
"-",
"1",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"no",
"ordinal",
"after",
"'",
"#",
"'",
"in",
"'",
"\"",
"+",
"value",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"/",
"/",
"\"",
"[",
"0",
"-",
"7",
"]",
"#",
"[",
"0",
"-",
"9",
"]",
"+",
"\"",
"day",
"of",
"week",
"day",
"of",
"week",
"=",
"parse",
"day",
"of",
"week",
"(",
"value",
"substring",
"(",
"0",
",",
"idx",
")",
")",
";",
"int",
"ordinal",
"=",
"integer",
"parse",
"int",
"(",
"value",
"substring",
"(",
"idx",
"+",
"1",
")",
")",
";",
"temporal",
"adjuster",
"adjuster",
"=",
"temporal",
"adjusters",
"day",
"of",
"week",
"in",
"month",
"(",
"ordinal",
",",
"day",
"of",
"week",
")",
";",
"return",
"new",
"quartz",
"cron",
"field",
"(",
"type",
"day",
"of",
"week",
",",
"type",
"day",
"of",
"month",
",",
"adjuster",
",",
"value",
")",
";",
"}",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"no",
"'",
"l",
"'",
"or",
"'",
"#",
"'",
"found",
"in",
"'",
"\"",
"+",
"value",
"+",
"\"",
"'",
"\"",
")",
";",
"}"
]
|
[
"get",
"an",
"array",
"of",
"data",
"type",
"components",
"that",
"begin",
"at",
"start",
"or",
"before",
"end",
"data",
"types",
"that",
"begin",
"before",
"start",
"are",
"not",
"returned",
"data",
"types",
"that",
"begin",
"before",
"end",
",",
"but",
"terminate",
"after",
"end",
"are",
"returned"
]
| [
"public",
"data",
"type",
"component",
"[",
"]",
"get",
"data",
"type",
"components",
"(",
"int",
"start",
",",
"int",
"end",
")",
";",
"/",
"*",
"*",
"*",
"get",
"the",
"maximum",
"contiguous",
"offset",
"that",
"can",
"be",
"used",
"to",
"retrieve",
"from",
"the",
"buffer",
"*",
"this",
"could",
"be",
"til",
":",
"*",
"the",
"end",
"of",
"the",
"block",
"of",
"memory",
"is",
"hit",
"*",
"til",
"the",
"end",
"of",
"a",
"structure",
"*",
"/",
"/",
"/",
"public",
"int",
"get",
"max",
"offset",
"(",
")",
";"
]
|
[
"adjust",
"the",
"referenced",
"repeatable",
"comments",
"display",
"options",
"if",
"the",
"associated",
"options",
"changed"
]
| [
"private",
"void",
"adjust",
"ref",
"repeat",
"display",
"options",
"(",
"options",
"options",
",",
"string",
"option",
"name",
",",
"object",
"old",
"value",
",",
"object",
"new",
"value",
")",
"{",
"if",
"(",
"option",
"name",
"equals",
"(",
"options",
"gui",
"comment",
"ref",
"repeat",
"get",
"color",
"option",
"name",
"(",
")",
")",
")",
"{",
"ref",
"repeatable",
"comment",
"color",
"=",
"(",
"color",
")",
"new",
"value",
";",
"}",
"string",
"ref",
"repeat",
"style",
"name",
"=",
"options",
"gui",
"comment",
"ref",
"repeat",
"get",
"style",
"option",
"name",
"(",
")",
";",
"if",
"(",
"option",
"name",
"equals",
"(",
"ref",
"repeat",
"style",
"name",
")",
")",
"{",
"ref",
"repeatable",
"comment",
"style",
"=",
"options",
"get",
"int",
"(",
"ref",
"repeat",
"style",
"name",
",",
"-",
"1",
")",
";",
"}",
"}"
]
|
[
"sets",
"optional",
"x",
"attrs"
]
| [
"public",
"void",
"set",
"x",
"attrs",
"(",
"map",
"<",
"string",
",",
"byte",
"[",
"]",
">",
"x",
"attrs",
")",
"{",
"this",
"x",
"attrs",
"=",
"x",
"attrs",
";",
"}"
]
|
[
"generate",
"c",
"#",
"code",
"this",
"method",
"only",
"creates",
"the",
"requested",
"file",
"(",
"s",
")",
"and",
"spits",
"-",
"out",
"file",
"-",
"level",
"elements",
"(",
"such",
"as",
"include",
"statements",
"etc",
")",
"record",
"-",
"level",
"code",
"is",
"generated",
"by",
"j",
"record"
]
| [
"void",
"gen",
"code",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"for",
"(",
"j",
"record",
"rec",
":",
"m",
"rec",
"list",
")",
"{",
"rec",
"gen",
"csharp",
"code",
"(",
"output",
"directory",
")",
";",
"}",
"}"
]
|
[
"factory",
"method",
"used",
"to",
"create",
"a",
"{",
"@",
"link",
"date",
"time",
"formatter",
"}"
]
| [
"protected",
"date",
"time",
"formatter",
"get",
"formatter",
"(",
"date",
"time",
"format",
"annotation",
",",
"class",
"<",
"?",
">",
"field",
"type",
")",
"{",
"date",
"time",
"formatter",
"factory",
"factory",
"=",
"new",
"date",
"time",
"formatter",
"factory",
"(",
")",
";",
"string",
"style",
"=",
"resolve",
"embedded",
"value",
"(",
"annotation",
"style",
"(",
")",
")",
";",
"if",
"(",
"string",
"utils",
"has",
"length",
"(",
"style",
")",
")",
"{",
"factory",
"set",
"style",
"(",
"style",
")",
";",
"}",
"factory",
"set",
"iso",
"(",
"annotation",
"iso",
"(",
")",
")",
";",
"string",
"pattern",
"=",
"resolve",
"embedded",
"value",
"(",
"annotation",
"pattern",
"(",
")",
")",
";",
"if",
"(",
"string",
"utils",
"has",
"length",
"(",
"pattern",
")",
")",
"{",
"factory",
"set",
"pattern",
"(",
"pattern",
")",
";",
"}",
"return",
"factory",
"create",
"date",
"time",
"formatter",
"(",
")",
";",
"}"
]
|
[
"executes",
"a",
"request",
"using",
"the",
"ranking",
"evaluation",
"api",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchreferencecurrentsearch",
"-",
"rank",
"-",
"eval",
"html",
"\"",
">",
"ranking",
"evaluation",
"api",
"on",
"elastic",
"co"
]
| [
"public",
"final",
"rank",
"eval",
"response",
"rank",
"eval",
"(",
"rank",
"eval",
"request",
"rank",
"eval",
"request",
",",
"request",
"options",
"options",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"perform",
"request",
"and",
"parse",
"entity",
"(",
"rank",
"eval",
"request",
",",
"request",
"converters",
":",
":",
"rank",
"eval",
",",
"options",
",",
"rank",
"eval",
"response",
":",
":",
"from",
"x",
"content",
",",
"empty",
"set",
"(",
")",
")",
";",
"}"
]
|
[
"translates",
"a",
"non",
"-",
"rollup",
"aggregation",
"tree",
"into",
"a",
"rollup",
"-",
"enabled",
"agg",
"tree",
"for",
"example",
",",
"the",
"source",
"aggregation",
"may",
"look",
"like",
"this",
":",
"{",
"@",
"code",
"post",
"foo",
"rollup",
"search",
"{",
"\"",
"aggregations",
"\"",
":",
"{",
"\"",
"the",
"histo",
"\"",
":",
"{",
"\"",
"date",
"histogram",
"\"",
":",
"{",
"\"",
"field",
"\"",
":",
"\"",
"ts",
"\"",
",",
"\"",
"calendar",
"interval",
"\"",
":",
"\"",
"1d",
"\"",
"}",
",",
"\"",
"aggs",
"\"",
":",
"{",
"\"",
"the",
"max",
"\"",
":",
"{",
"\"",
"max",
"\"",
":",
"{",
"\"",
"field",
"\"",
":",
"\"",
"foo",
"\"",
"}",
"}",
"}",
"}",
"}",
"}",
"}",
"which",
"is",
"then",
"translated",
"into",
"an",
"aggregation",
"looking",
"like",
"this",
":",
"{",
"@",
"code",
"post",
"rolled",
"foo",
"search",
"{",
"\"",
"aggregations",
"\"",
":",
"{",
"\"",
"filter",
"histo",
"\"",
":",
"{",
"\"",
"filter",
"\"",
":",
"{",
"\"",
"bool",
"\"",
":",
"{",
"\"",
"must",
"\"",
":",
"[",
"{",
"\"",
"term",
"\"",
":",
"{",
"\"",
"rollup",
"version",
"\"",
":",
"1",
"}",
"}",
",",
"{",
"\"",
"term",
"\"",
":",
"{",
"\"",
"ts",
"date",
"histogram",
"interval",
"\"",
":",
"\"",
"1d",
"\"",
"}",
"}",
"]",
"}",
"}",
",",
"\"",
"aggregations",
"\"",
":",
"{",
"\"",
"the",
"histo",
"\"",
":",
"{",
"\"",
"date",
"histogram",
"\"",
":",
"{",
"\"",
"field",
"\"",
":",
"\"",
"ts",
"date",
"histogram",
"timestamp",
"\"",
",",
"\"",
"calendar",
"interval",
"\"",
":",
"\"",
"1d",
"\"",
"}",
",",
"\"",
"aggregations",
"\"",
":",
"{",
"\"",
"the",
"histo",
"count",
"\"",
":",
"{",
"\"",
"sum",
"\"",
":",
"{",
"\"",
"field",
"\"",
":",
"\"",
"ts",
"date",
"histogram",
"count",
"\"",
"}",
"}",
",",
"\"",
"the",
"max",
"\"",
":",
"{",
"\"",
"max",
"\"",
":",
"{",
"\"",
"field",
"\"",
":",
"\"",
"foo",
"max",
"value",
"\"",
"}",
"}",
"}",
"}",
"}",
"}",
"}",
"}",
"}",
"the",
"various",
"conventions",
"that",
"are",
"applied",
"during",
"the",
"translation",
"are",
"elucidated",
"in",
"the",
"comments",
"of",
"the",
"relevant",
"method",
"below"
]
| [
"public",
"static",
"list",
"<",
"aggregation",
"builder",
">",
"translate",
"aggregation",
"(",
"aggregation",
"builder",
"source",
",",
"named",
"writeable",
"registry",
"registry",
")",
"{",
"if",
"(",
"source",
"get",
"writeable",
"name",
"(",
")",
"equals",
"(",
"date",
"histogram",
"aggregation",
"builder",
"name",
")",
")",
"{",
"return",
"translate",
"date",
"histogram",
"(",
"(",
"date",
"histogram",
"aggregation",
"builder",
")",
"source",
",",
"registry",
")",
";",
"}",
"else",
"if",
"(",
"source",
"get",
"writeable",
"name",
"(",
")",
"equals",
"(",
"histogram",
"aggregation",
"builder",
"name",
")",
")",
"{",
"return",
"translate",
"histogram",
"(",
"(",
"histogram",
"aggregation",
"builder",
")",
"source",
",",
"registry",
")",
";",
"}",
"else",
"if",
"(",
"rollup",
"field",
"supported",
"metrics",
"contains",
"(",
"source",
"get",
"writeable",
"name",
"(",
")",
")",
")",
"{",
"return",
"translate",
"v",
"s",
"leaf",
"(",
"(",
"values",
"source",
"aggregation",
"builder",
"leaf",
"only",
")",
"source",
",",
"registry",
")",
";",
"}",
"else",
"if",
"(",
"source",
"get",
"writeable",
"name",
"(",
")",
"equals",
"(",
"terms",
"aggregation",
"builder",
"name",
")",
")",
"{",
"return",
"translate",
"terms",
"(",
"(",
"terms",
"aggregation",
"builder",
")",
"source",
",",
"registry",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"unable",
"to",
"translate",
"aggregation",
"tree",
"into",
"rollup",
"aggregation",
"[",
"\"",
"+",
"source",
"get",
"name",
"(",
")",
"+",
"\"",
"]",
"is",
"of",
"type",
"[",
"\"",
"+",
"source",
"get",
"class",
"(",
")",
"get",
"simple",
"name",
"(",
")",
"+",
"\"",
"]",
"which",
"is",
"\"",
"+",
"\"",
"currently",
"unsupported",
"\"",
")",
";",
"}",
"}"
]
|
[
"get",
"transaction",
"exception",
"code"
]
| [
"public",
"static",
"transaction",
"exception",
"code",
"get",
"(",
"int",
"ordinal",
")",
"{",
"transaction",
"exception",
"code",
"value",
"=",
"null",
";",
"try",
"{",
"value",
"=",
"transaction",
"exception",
"code",
"values",
"(",
")",
"[",
"ordinal",
"]",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"unknown",
"transaction",
"exception",
"code",
"[",
"\"",
"+",
"ordinal",
"+",
"\"",
"]",
"\"",
")",
";",
"}",
"return",
"value",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"property",
"class",
"'"
]
| [
"public",
"void",
"property",
"class",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"property",
"class",
"}"
]
|
[
"returns",
"the",
"remote",
"cache"
]
| [
"remote",
"cache",
"get",
"remote",
"cache",
"(",
")",
"{",
"return",
"cache",
";",
"}"
]
|
[
"called",
"when",
"the",
"primary",
"playlist",
"changes"
]
| [
"void",
"on",
"primary",
"playlist",
"refreshed",
"(",
"hls",
"media",
"playlist",
"media",
"playlist",
")",
";"
]
|
[
"used",
"in",
"logging",
"and",
"reporting",
"to",
"help",
"disentangle",
"messages"
]
| [
"protected",
"string",
"get",
"role",
"(",
")",
"{",
"return",
"role",
";",
"}"
]
|
[
"we",
"need",
"to",
"hold",
"the",
"throwing",
"name",
"at",
"this",
"level",
"for",
"argument",
"binding",
"calculations",
",",
"this",
"method",
"allows",
"the",
"after",
"throwing",
"advice",
"subclass",
"to",
"set",
"the",
"name"
]
| [
"protected",
"void",
"set",
"throwing",
"name",
"no",
"check",
"(",
"string",
"name",
")",
"{",
"/",
"/",
"name",
"could",
"be",
"a",
"variable",
"or",
"a",
"type",
"if",
"(",
"is",
"variable",
"name",
"(",
"name",
")",
")",
"{",
"this",
"throwing",
"name",
"=",
"name",
";",
"}",
"else",
"{",
"/",
"/",
"assume",
"a",
"type",
"try",
"{",
"this",
"discovered",
"throwing",
"type",
"=",
"class",
"utils",
"for",
"name",
"(",
"name",
",",
"get",
"aspect",
"class",
"loader",
"(",
")",
")",
";",
"}",
"catch",
"(",
"throwable",
"ex",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"throwing",
"name",
"'",
"\"",
"+",
"name",
"+",
"\"",
"'",
"is",
"neither",
"a",
"valid",
"argument",
"name",
"nor",
"the",
"fully",
"-",
"qualified",
"\"",
"+",
"\"",
"name",
"of",
"a",
"java",
"type",
"on",
"the",
"classpath",
"root",
"cause",
":",
"\"",
"+",
"ex",
")",
";",
"}",
"}",
"}"
]
|
[
"returns",
"the",
"map",
"record",
"node",
"allocation",
"bitmap"
]
| [
"public",
"byte",
"[",
"]",
"get",
"bitmap",
"(",
")",
"{",
"return",
"bitmap",
";",
"}"
]
|
[
"gets",
"the",
"type",
"index",
"(",
"type",
"representation",
"in",
"h",
"base",
"connector",
")",
"from",
"the",
"{",
"@",
"link",
"type",
"information",
"}"
]
| [
"public",
"static",
"int",
"get",
"type",
"index",
"(",
"type",
"information",
"type",
"info",
")",
"{",
"return",
"get",
"type",
"index",
"(",
"type",
"info",
"get",
"type",
"class",
"(",
")",
")",
";",
"}"
]
|
[
"moves",
"an",
"element",
"one",
"level",
"up",
"from",
"a",
"min",
"level",
"to",
"a",
"max",
"level",
"(",
"or",
"vice",
"versa",
")",
"returns",
"the",
"new",
"position",
"of",
"the",
"element"
]
| [
"int",
"cross",
"over",
"up",
"(",
"int",
"index",
",",
"e",
"x",
")",
"{",
"if",
"(",
"index",
"=",
"=",
"0",
")",
"{",
"queue",
"[",
"0",
"]",
"=",
"x",
";",
"return",
"0",
";",
"}",
"int",
"parent",
"index",
"=",
"get",
"parent",
"index",
"(",
"index",
")",
";",
"e",
"parent",
"element",
"=",
"element",
"data",
"(",
"parent",
"index",
")",
";",
"if",
"(",
"parent",
"index",
"!",
"=",
"0",
")",
"{",
"/",
"/",
"this",
"is",
"a",
"guard",
"for",
"the",
"case",
"of",
"the",
"childless",
"uncle",
"/",
"/",
"since",
"the",
"end",
"of",
"the",
"array",
"is",
"actually",
"the",
"middle",
"of",
"the",
"heap",
",",
"/",
"/",
"a",
"smaller",
"childless",
"uncle",
"can",
"become",
"a",
"child",
"of",
"x",
"when",
"we",
"/",
"/",
"bubble",
"up",
"alternate",
"levels",
",",
"violating",
"the",
"invariant",
"int",
"grandparent",
"index",
"=",
"get",
"parent",
"index",
"(",
"parent",
"index",
")",
";",
"int",
"uncle",
"index",
"=",
"get",
"right",
"child",
"index",
"(",
"grandparent",
"index",
")",
";",
"if",
"(",
"uncle",
"index",
"!",
"=",
"parent",
"index",
"&",
"&",
"get",
"left",
"child",
"index",
"(",
"uncle",
"index",
")",
">",
"=",
"size",
")",
"{",
"e",
"uncle",
"element",
"=",
"element",
"data",
"(",
"uncle",
"index",
")",
";",
"if",
"(",
"ordering",
"compare",
"(",
"uncle",
"element",
",",
"parent",
"element",
")",
"<",
"0",
")",
"{",
"parent",
"index",
"=",
"uncle",
"index",
";",
"parent",
"element",
"=",
"uncle",
"element",
";",
"}",
"}",
"}",
"if",
"(",
"ordering",
"compare",
"(",
"parent",
"element",
",",
"x",
")",
"<",
"0",
")",
"{",
"queue",
"[",
"index",
"]",
"=",
"parent",
"element",
";",
"queue",
"[",
"parent",
"index",
"]",
"=",
"x",
";",
"return",
"parent",
"index",
";",
"}",
"queue",
"[",
"index",
"]",
"=",
"x",
";",
"return",
"index",
";",
"}"
]
|
[
"specify",
"the",
"environment",
"for",
"the",
"jmx",
"connector"
]
| [
"public",
"void",
"set",
"environment",
"(",
"@",
"nullable",
"map",
"<",
"string",
",",
"?",
">",
"environment",
")",
"{",
"this",
"environment",
"=",
"environment",
";",
"}"
]
|
[
"verifies",
"that",
"queue",
"is",
"initialized",
"(",
"warmed",
"-",
"up",
")",
"for",
"provided",
"keys"
]
| [
"public",
"void",
"test",
"warm",
"up",
"(",
")",
"throws",
"exception",
"{",
"mock",
"filler",
"filler",
"=",
"new",
"mock",
"filler",
"(",
")",
";",
"value",
"queue",
"<",
"string",
">",
"vq",
"=",
"new",
"value",
"queue",
"<",
"string",
">",
"(",
"10",
",",
"0",
"5f",
",",
"30000",
",",
"1",
",",
"sync",
"generation",
"policy",
"all",
",",
"filler",
")",
";",
"vq",
"initialize",
"queues",
"for",
"keys",
"(",
"\"",
"k",
"1",
"\"",
",",
"\"",
"k",
"2",
"\"",
",",
"\"",
"k",
"3",
"\"",
")",
";",
"fill",
"info",
"[",
"]",
"fill",
"infos",
"=",
"{",
"filler",
"get",
"top",
"(",
")",
",",
"filler",
"get",
"top",
"(",
")",
",",
"filler",
"get",
"top",
"(",
")",
"}",
";",
"assert",
"assert",
"equals",
"(",
"5",
",",
"fill",
"infos",
"[",
"0",
"]",
"num",
")",
";",
"assert",
"assert",
"equals",
"(",
"5",
",",
"fill",
"infos",
"[",
"1",
"]",
"num",
")",
";",
"assert",
"assert",
"equals",
"(",
"5",
",",
"fill",
"infos",
"[",
"2",
"]",
"num",
")",
";",
"assert",
"assert",
"equals",
"(",
"sets",
"new",
"hash",
"set",
"(",
"\"",
"k",
"1",
"\"",
",",
"\"",
"k",
"2",
"\"",
",",
"\"",
"k",
"3",
"\"",
")",
",",
"sets",
"new",
"hash",
"set",
"(",
"fill",
"infos",
"[",
"0",
"]",
"key",
",",
"fill",
"infos",
"[",
"1",
"]",
"key",
",",
"fill",
"infos",
"[",
"2",
"]",
"key",
")",
")",
";",
"vq",
"shutdown",
"(",
")",
";",
"}"
]
|
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"and",
"only",
"if",
"the",
"end",
"of",
"the",
"compressed",
"stream",
"has",
"been",
"reached"
]
| [
"public",
"boolean",
"is",
"closed",
"(",
")",
"{",
"return",
"finished",
";",
"}"
]
|
[
"create",
"a",
"test",
"file",
"by",
"repeating",
"the",
"characters",
"in",
"the",
"alphabet"
]
| [
"private",
"void",
"create",
"test",
"file",
"and",
"set",
"length",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"to",
"reduce",
"test",
"run",
"time",
",",
"the",
"test",
"file",
"can",
"be",
"reused",
"if",
"(",
"fs",
"exists",
"(",
"test",
"file",
"path",
")",
")",
"{",
"test",
"file",
"status",
"=",
"fs",
"get",
"file",
"status",
"(",
"test",
"file",
"path",
")",
";",
"test",
"file",
"length",
"=",
"test",
"file",
"status",
"get",
"len",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"reusing",
"test",
"file",
":",
"{",
"}",
"\"",
",",
"test",
"file",
"status",
")",
";",
"return",
";",
"}",
"byte",
"[",
"]",
"buffer",
"=",
"new",
"byte",
"[",
"256",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"buffer",
"length",
";",
"i",
"+",
"+",
")",
"{",
"buffer",
"[",
"i",
"]",
"=",
"(",
"byte",
")",
"i",
";",
"}",
"log",
"info",
"(",
"\"",
"creating",
"test",
"file",
"{",
"}",
"of",
"size",
":",
"{",
"}",
"\"",
",",
"test",
"file",
"path",
",",
"test",
"file",
"size",
")",
";",
"try",
"(",
"f",
"s",
"data",
"output",
"stream",
"output",
"stream",
"=",
"fs",
"create",
"(",
"test",
"file",
"path",
")",
")",
"{",
"int",
"bytes",
"written",
"=",
"0",
";",
"while",
"(",
"bytes",
"written",
"<",
"test",
"file",
"size",
")",
"{",
"output",
"stream",
"write",
"(",
"buffer",
")",
";",
"bytes",
"written",
"+",
"=",
"buffer",
"length",
";",
"}",
"log",
"info",
"(",
"\"",
"closing",
"stream",
"{",
"}",
"\"",
",",
"output",
"stream",
")",
";",
"output",
"stream",
"close",
"(",
")",
";",
"}",
"test",
"file",
"length",
"=",
"fs",
"get",
"file",
"status",
"(",
"test",
"file",
"path",
")",
"get",
"len",
"(",
")",
";",
"}"
]
|
[
"test",
"the",
"behavior",
"of",
"the",
"router",
"when",
"one",
"of",
"the",
"subclusters",
"in",
"a",
"mount",
"point",
"fails",
"in",
"particular",
",",
"it",
"checks",
"if",
"it",
"can",
"write",
"files",
"or",
"not",
"related",
"to",
"{",
"@",
"link",
"test",
"router",
"rpc",
"multi",
"destination",
"#",
"test",
"subcluster",
"down",
"(",
")",
"}"
]
| [
"public",
"void",
"test",
"write",
"with",
"failed",
"subcluster",
"(",
")",
"throws",
"exception",
"{",
"log",
"info",
"(",
"\"",
"stop",
"ns",
"1",
"to",
"simulate",
"an",
"unavailable",
"subcluster",
"\"",
")",
";",
"namenodes",
"get",
"(",
"\"",
"ns",
"1",
"\"",
")",
"stop",
"(",
")",
";",
"/",
"/",
"run",
"the",
"actual",
"tests",
"with",
"each",
"approach",
"final",
"list",
"<",
"callable",
"<",
"boolean",
">",
">",
"tasks",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"final",
"list",
"<",
"destination",
"order",
">",
"orders",
"=",
"as",
"list",
"(",
"destination",
"order",
"hash",
"all",
",",
"destination",
"order",
"space",
",",
"destination",
"order",
"random",
",",
"destination",
"order",
"hash",
")",
";",
"for",
"(",
"destination",
"order",
"order",
":",
"orders",
")",
"{",
"tasks",
"add",
"(",
"(",
")",
"-",
">",
"{",
"test",
"write",
"with",
"failed",
"subcluster",
"(",
"order",
")",
";",
"return",
"true",
";",
"}",
")",
";",
"}",
"task",
"results",
"results",
"=",
"collect",
"results",
"(",
"\"",
"full",
"tests",
"\"",
",",
"tasks",
")",
";",
"assert",
"equals",
"(",
"orders",
"size",
"(",
")",
",",
"results",
"get",
"success",
"(",
")",
")",
";",
"}"
]
|
[
"start",
"the",
"activity"
]
| [
"public",
"static",
"void",
"start",
"activity",
"for",
"result",
"(",
"@",
"non",
"null",
"final",
"bundle",
"extras",
",",
"@",
"non",
"null",
"final",
"activity",
"activity",
",",
"@",
"non",
"null",
"final",
"class",
"<",
"?",
"extends",
"activity",
">",
"clz",
",",
"final",
"int",
"request",
"code",
")",
"{",
"start",
"activity",
"for",
"result",
"(",
"activity",
",",
"extras",
",",
"activity",
"get",
"package",
"name",
"(",
")",
",",
"clz",
"get",
"name",
"(",
")",
",",
"request",
"code",
",",
"null",
")",
";",
"}"
]
|
[
"returns",
"the",
"required",
"jenkins",
"core",
"version",
"of",
"this",
"plugin"
]
| [
"public",
"@",
"check",
"for",
"null",
"string",
"get",
"required",
"core",
"version",
"(",
")",
"{",
"string",
"v",
"=",
"manifest",
"get",
"main",
"attributes",
"(",
")",
"get",
"value",
"(",
"\"",
"jenkins",
"-",
"version",
"\"",
")",
";",
"if",
"(",
"v",
"!",
"=",
"null",
")",
"return",
"v",
";",
"v",
"=",
"manifest",
"get",
"main",
"attributes",
"(",
")",
"get",
"value",
"(",
"\"",
"hudson",
"-",
"version",
"\"",
")",
";",
"if",
"(",
"v",
"!",
"=",
"null",
")",
"return",
"v",
";",
"return",
"null",
";",
"}"
]
|
[
"whether",
"the",
"topic",
"is",
"internal",
"to",
"kafka",
"an",
"example",
"of",
"an",
"internal",
"topic",
"is",
"the",
"offsets",
"and",
"group",
"management",
"topic",
":",
"consumer",
"offsets"
]
| [
"public",
"boolean",
"is",
"internal",
"(",
")",
"{",
"return",
"internal",
";",
"}"
]
|
[
"test",
"parsing",
"{",
"@",
"link",
"simulate",
"document",
"base",
"result",
"}",
"with",
"inner",
"failures",
"as",
"they",
"don",
"'",
"t",
"support",
"asserting",
"on",
"xcontent",
"equivalence",
",",
"given",
"that",
"exceptions",
"are",
"not",
"parsed",
"back",
"as",
"the",
"same",
"original",
"class",
"we",
"run",
"the",
"usual",
"{",
"@",
"link",
"abstract",
"x",
"content",
"test",
"case",
"#",
"test",
"from",
"x",
"content",
"(",
")",
"}",
"without",
"failures",
",",
"and",
"this",
"other",
"test",
"with",
"failures",
"where",
"we",
"disable",
"asserting",
"on",
"xcontent",
"equivalence",
"at",
"the",
"end"
]
| [
"public",
"void",
"test",
"from",
"x",
"content",
"with",
"failures",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"supplier",
"<",
"simulate",
"document",
"base",
"result",
">",
"instance",
"supplier",
"=",
"simulate",
"document",
"base",
"result",
"tests",
":",
":",
"create",
"test",
"instance",
"with",
"failures",
";",
"/",
"/",
"exceptions",
"are",
"not",
"of",
"the",
"same",
"type",
"whenever",
"parsed",
"back",
"boolean",
"assert",
"to",
"x",
"content",
"equivalence",
"=",
"false",
";",
"abstract",
"x",
"content",
"test",
"case",
"test",
"from",
"x",
"content",
"(",
"number",
"of",
"test",
"runs",
",",
"instance",
"supplier",
",",
"supports",
"unknown",
"fields",
"(",
")",
",",
"get",
"shuffle",
"fields",
"exceptions",
"(",
")",
",",
"get",
"random",
"fields",
"exclude",
"filter",
"(",
")",
",",
"this",
":",
":",
"create",
"parser",
",",
"this",
":",
":",
"do",
"parse",
"instance",
",",
"this",
":",
":",
"assert",
"equal",
"instances",
",",
"assert",
"to",
"x",
"content",
"equivalence",
",",
"get",
"to",
"x",
"content",
"params",
"(",
")",
")",
";",
"}"
]
|
[
"reading",
"from",
"logs",
"should",
"succeed",
"and",
"they",
"should",
"be",
"shown",
"in",
"the",
"aggregated",
"logs",
"block",
"html"
]
| [
"public",
"void",
"test",
"aggregated",
"logs",
"block",
"(",
")",
"throws",
"exception",
"{",
"file",
"util",
"fully",
"delete",
"(",
"new",
"file",
"(",
"\"",
"target",
"/",
"logs",
"\"",
")",
")",
";",
"configuration",
"configuration",
"=",
"get",
"configuration",
"(",
")",
";",
"write",
"logs",
"(",
"\"",
"target",
"/",
"logs",
"/",
"logs",
"/",
"application",
"0",
"0001",
"/",
"container",
"0",
"0001",
"01",
"000001",
"\"",
")",
";",
"write",
"log",
"(",
"configuration",
",",
"\"",
"admin",
"\"",
")",
";",
"byte",
"array",
"output",
"stream",
"data",
"=",
"new",
"byte",
"array",
"output",
"stream",
"(",
")",
";",
"print",
"writer",
"print",
"writer",
"=",
"new",
"print",
"writer",
"(",
"data",
")",
";",
"html",
"block",
"html",
"=",
"new",
"html",
"block",
"for",
"test",
"(",
")",
";",
"html",
"block",
"block",
"block",
"=",
"new",
"block",
"for",
"test",
"(",
"html",
",",
"print",
"writer",
",",
"10",
",",
"false",
")",
";",
"t",
"file",
"aggregated",
"logs",
"block",
"for",
"test",
"aggregated",
"block",
"=",
"get",
"t",
"file",
"aggregated",
"logs",
"block",
"for",
"test",
"(",
"configuration",
",",
"\"",
"admin",
"\"",
",",
"\"",
"container",
"0",
"0001",
"01",
"000001",
"\"",
",",
"\"",
"localhost",
":",
"1234",
"\"",
")",
";",
"aggregated",
"block",
"render",
"(",
"block",
")",
";",
"block",
"get",
"writer",
"(",
")",
"flush",
"(",
")",
";",
"string",
"out",
"=",
"data",
"to",
"string",
"(",
")",
";",
"assert",
"true",
"(",
"out",
"contains",
"(",
"\"",
"test",
"log",
"1",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"out",
"contains",
"(",
"\"",
"test",
"log",
"2",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"out",
"contains",
"(",
"\"",
"test",
"log",
"3",
"\"",
")",
")",
";",
"}"
]
|
[
"decrypts",
"provided",
"<",
"code",
">",
"encrypted",
"data",
"<",
"code",
">",
"with",
"<",
"code",
">",
"default",
"pass",
"phrase",
"<",
"code",
">"
]
| [
"static",
"byte",
"[",
"]",
"decrypt",
"(",
"byte",
"[",
"]",
"encrypted",
"data",
")",
"{",
"return",
"decrypt",
"(",
"encrypted",
"data",
",",
"default",
"pass",
"phrase",
")",
";",
"}"
]
|
[
"creates",
"a",
"pair",
"(",
"name",
",",
"path",
")",
"that",
"represents",
"a",
"{",
"@",
"link",
"com",
"google",
"devtools",
"build",
"lib",
"view",
"config",
"crosstool",
"crosstool",
"config",
"tool",
"path",
"}",
"from",
"a",
"{",
"@",
"link",
"starlark",
"info",
"}"
]
| [
"static",
"pair",
"<",
"string",
",",
"string",
">",
"tool",
"path",
"from",
"starlark",
"(",
"starlark",
"info",
"tool",
"path",
"struct",
")",
"throws",
"eval",
"exception",
"{",
"check",
"right",
"provider",
"type",
"(",
"tool",
"path",
"struct",
",",
"\"",
"tool",
"path",
"\"",
")",
";",
"string",
"name",
"=",
"get",
"mandatory",
"field",
"from",
"starlark",
"provider",
"(",
"tool",
"path",
"struct",
",",
"\"",
"name",
"\"",
",",
"string",
"class",
")",
";",
"string",
"path",
"=",
"get",
"mandatory",
"field",
"from",
"starlark",
"provider",
"(",
"tool",
"path",
"struct",
",",
"\"",
"path",
"\"",
",",
"string",
"class",
")",
";",
"if",
"(",
"name",
"=",
"=",
"null",
"|",
"|",
"name",
"is",
"empty",
"(",
")",
")",
"{",
"throw",
"info",
"error",
"(",
"tool",
"path",
"struct",
",",
"\"",
"'",
"name",
"'",
"parameter",
"of",
"tool",
"path",
"must",
"be",
"a",
"nonempty",
"string",
"\"",
")",
";",
"}",
"if",
"(",
"path",
"=",
"=",
"null",
"|",
"|",
"path",
"is",
"empty",
"(",
")",
")",
"{",
"throw",
"info",
"error",
"(",
"tool",
"path",
"struct",
",",
"\"",
"'",
"path",
"'",
"parameter",
"of",
"tool",
"path",
"must",
"be",
"a",
"nonempty",
"string",
"\"",
")",
";",
"}",
"return",
"pair",
"of",
"(",
"name",
",",
"path",
")",
";",
"}"
]
|
[
"sets",
"the",
"title",
"to",
"be",
"displayed"
]
| [
"void",
"set",
"title",
"(",
"string",
"s",
")",
"{",
"title",
"label",
"set",
"text",
"(",
"s",
")",
";",
"title",
"label",
"set",
"tool",
"tip",
"text",
"(",
"s",
")",
";",
"}"
]
|
[
"get",
"the",
"object",
"mapper"
]
| [
"public",
"object",
"mapper",
"get",
"mapper",
"(",
")",
"{",
"return",
"mapper",
";",
"}"
]
|
[
"advances",
"{",
"@",
"code",
"iterator",
"}",
"{",
"@",
"code",
"position",
"+",
"1",
"}",
"times",
",",
"returning",
"the",
"element",
"at",
"the",
"{",
"@",
"code",
"position",
"}",
"th",
"position",
"or",
"{",
"@",
"code",
"default",
"value",
"}",
"otherwise"
]
| [
"public",
"static",
"<",
"t",
">",
"t",
"get",
"(",
"iterator",
"<",
"?",
"extends",
"t",
">",
"iterator",
",",
"int",
"position",
",",
"@",
"nullable",
"decl",
"t",
"default",
"value",
")",
"{",
"check",
"nonnegative",
"(",
"position",
")",
";",
"advance",
"(",
"iterator",
",",
"position",
")",
";",
"return",
"get",
"next",
"(",
"iterator",
",",
"default",
"value",
")",
";",
"}"
]
|
[
"sets",
"the",
"<",
"code",
">",
"att",
"name",
"<",
"code",
">",
"property"
]
| [
"public",
"void",
"set",
"a",
"t",
"t",
"n",
"a",
"m",
"e",
"(",
"string",
"att",
"name",
")",
"{",
"this",
"att",
"name",
"=",
"att",
"name",
";",
"}"
]
|
[
"expands",
"all",
"flags",
"in",
"this",
"group",
"and",
"adds",
"them",
"to",
"{",
"@",
"code",
"command",
"line",
"}",
"the",
"flags",
"of",
"the",
"group",
"will",
"be",
"expanded",
"either",
":",
"once",
",",
"if",
"there",
"is",
"no",
"variable",
"of",
"sequence",
"type",
"in",
"any",
"of",
"the",
"group",
"'",
"s",
"flags",
",",
"or",
"for",
"each",
"element",
"in",
"the",
"sequence",
",",
"if",
"there",
"is",
"'",
"iterate",
"over",
"'",
"variable",
"specified",
"(",
"preferred",
",",
"explicit",
"way",
")",
",",
"or",
"for",
"each",
"element",
"in",
"the",
"sequence",
",",
"if",
"there",
"is",
"only",
"one",
"sequence",
"variable",
"used",
"in",
"the",
"body",
"of",
"the",
"flag",
"group",
"(",
"deprecated",
",",
"implicit",
"way",
")",
"having",
"more",
"than",
"a",
"single",
"variable",
"of",
"sequence",
"type",
"in",
"a",
"single",
"flag",
"group",
"with",
"implicit",
"iteration",
"is",
"not",
"supported",
"use",
"explicit",
"'",
"iterate",
"over",
"'",
"instead"
]
| [
"private",
"void",
"expand",
"command",
"line",
"(",
"cc",
"toolchain",
"variables",
"variables",
",",
"@",
"nullable",
"artifact",
"expander",
"expander",
",",
"final",
"list",
"<",
"string",
">",
"command",
"line",
")",
"throws",
"expansion",
"exception",
"{",
"expand",
"(",
"variables",
",",
"expander",
",",
"command",
"line",
")",
";",
"}"
]
|
[
"returns",
"the",
"skyframe",
"nodes",
"which",
"need",
"to",
"be",
"rewound",
"if",
"a",
"consumer",
"of",
"this",
"action",
"'",
"s",
"output",
"finds",
"out",
"that",
"output",
"has",
"been",
"lost"
]
| [
"immutable",
"graph",
"<",
"sky",
"key",
">",
"get",
"skyframe",
"dependencies",
"for",
"rewinding",
"(",
"sky",
"key",
"self",
")",
";"
]
|
[
"this",
"test",
"behave",
"slightly",
"differently",
"in",
"gson",
"2",
"2",
"and",
"earlier",
"it",
"fails",
"during",
"peek",
"rather",
"than",
"during",
"next",
"string",
"(",
")"
]
| [
"public",
"void",
"test",
"unterminated",
"string",
"failure",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"json",
"reader",
"reader",
"=",
"new",
"json",
"reader",
"(",
"reader",
"(",
"\"",
"[",
"\\",
"\"",
"string",
"\"",
")",
")",
";",
"reader",
"set",
"lenient",
"(",
"true",
")",
";",
"reader",
"begin",
"array",
"(",
")",
";",
"assert",
"equals",
"(",
"json",
"token",
"string",
",",
"reader",
"peek",
"(",
")",
")",
";",
"try",
"{",
"reader",
"next",
"string",
"(",
")",
";",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"malformed",
"json",
"exception",
"expected",
")",
"{",
"}",
"}"
]
|
[
"returns",
"the",
"type",
"of",
"the",
"elements",
"of",
"this",
"array",
"type",
"this",
"method",
"should",
"only",
"be",
"used",
"for",
"an",
"array",
"type"
]
| [
"public",
"type",
"get",
"element",
"type",
"(",
")",
"{",
"final",
"int",
"num",
"dimensions",
"=",
"get",
"dimensions",
"(",
")",
";",
"return",
"get",
"type",
"internal",
"(",
"value",
"buffer",
",",
"value",
"begin",
"+",
"num",
"dimensions",
",",
"value",
"end",
")",
";",
"}"
]
|
[
"returns",
"true",
"if",
"at",
"least",
"one",
"fid",
"library",
"databases",
"can",
"process",
"programs",
"with",
"the",
"given",
"language"
]
| [
"public",
"boolean",
"can",
"process",
"(",
"language",
"language",
")",
"{",
"return",
"fid",
"file",
"manager",
"can",
"query",
"(",
"language",
")",
";",
"}"
]
|
[
"to",
"test",
"the",
"collection",
"format",
"in",
"query",
"parameters"
]
| [
"call",
"<",
"void",
">",
"test",
"query",
"parameter",
"collection",
"format",
"(",
"@",
"retrofit",
"2",
"http",
"query",
"(",
"\"",
"pipe",
"\"",
")",
"c",
"s",
"v",
"params",
"pipe",
",",
"@",
"retrofit",
"2",
"http",
"query",
"(",
"\"",
"ioutil",
"\"",
")",
"c",
"s",
"v",
"params",
"ioutil",
",",
"@",
"retrofit",
"2",
"http",
"query",
"(",
"\"",
"http",
"\"",
")",
"s",
"s",
"v",
"params",
"http",
",",
"@",
"retrofit",
"2",
"http",
"query",
"(",
"\"",
"url",
"\"",
")",
"c",
"s",
"v",
"params",
"url",
",",
"@",
"retrofit",
"2",
"http",
"query",
"(",
"\"",
"context",
"\"",
")",
"list",
"<",
"string",
">",
"context",
")",
";"
]
|
[
"stop",
"all",
"background",
"threads",
"and",
"wait",
"for",
"ongoing",
"indexing",
"operations",
"to",
"finish"
]
| [
"public",
"void",
"stop",
"and",
"await",
"stopped",
"(",
")",
"throws",
"interrupted",
"exception",
"{",
"stop",
"(",
")",
";",
"await",
"stopped",
"(",
")",
";",
"}"
]
|
[
"counter",
"increment",
"by",
"count"
]
| [
"public",
"static",
"void",
"counter",
"increment",
"(",
"final",
"string",
"name",
",",
"final",
"string",
"[",
"]",
"label",
"values",
",",
"final",
"long",
"count",
")",
"{",
"metrics",
"register",
"counter",
"increment",
"(",
"name",
",",
"label",
"values",
",",
"count",
")",
";",
"}"
]
|
[
"get",
"the",
"{",
"@",
"link",
"output",
"committer",
"}",
"implementation",
"for",
"the",
"map",
"-",
"reduce",
"job",
",",
"defaults",
"to",
"{",
"@",
"link",
"file",
"output",
"committer",
"}",
"if",
"not",
"specified",
"explicitly"
]
| [
"public",
"output",
"committer",
"get",
"output",
"committer",
"(",
")",
"{",
"return",
"(",
"output",
"committer",
")",
"reflection",
"utils",
"new",
"instance",
"(",
"get",
"class",
"(",
"\"",
"mapred",
"output",
"committer",
"class",
"\"",
",",
"file",
"output",
"committer",
"class",
",",
"output",
"committer",
"class",
")",
",",
"this",
")",
";",
"}"
]
|
[
"this",
"method",
"detects",
"a",
"code",
"in",
"a",
"\"",
"pure",
"\"",
"image",
"-",
"-",
"that",
"is",
",",
"pure",
"monochrome",
"image",
"which",
"contains",
"only",
"an",
"unrotated",
",",
"unskewed",
",",
"image",
"of",
"a",
"code",
",",
"with",
"some",
"white",
"border",
"around",
"it",
"this",
"is",
"a",
"specialized",
"method",
"that",
"works",
"exceptionally",
"fast",
"in",
"this",
"special",
"case"
]
| [
"private",
"static",
"bit",
"matrix",
"extract",
"pure",
"bits",
"(",
"bit",
"matrix",
"image",
")",
"throws",
"not",
"found",
"exception",
"{",
"int",
"[",
"]",
"left",
"top",
"black",
"=",
"image",
"get",
"top",
"left",
"on",
"bit",
"(",
")",
";",
"int",
"[",
"]",
"right",
"bottom",
"black",
"=",
"image",
"get",
"bottom",
"right",
"on",
"bit",
"(",
")",
";",
"if",
"(",
"left",
"top",
"black",
"=",
"=",
"null",
"|",
"|",
"right",
"bottom",
"black",
"=",
"=",
"null",
")",
"{",
"throw",
"not",
"found",
"exception",
"get",
"not",
"found",
"instance",
"(",
")",
";",
"}",
"int",
"module",
"size",
"=",
"module",
"size",
"(",
"left",
"top",
"black",
",",
"image",
")",
";",
"int",
"top",
"=",
"left",
"top",
"black",
"[",
"1",
"]",
";",
"int",
"bottom",
"=",
"right",
"bottom",
"black",
"[",
"1",
"]",
";",
"int",
"left",
"=",
"left",
"top",
"black",
"[",
"0",
"]",
";",
"int",
"right",
"=",
"right",
"bottom",
"black",
"[",
"0",
"]",
";",
"int",
"matrix",
"width",
"=",
"(",
"right",
"-",
"left",
"+",
"1",
")",
"/",
"module",
"size",
";",
"int",
"matrix",
"height",
"=",
"(",
"bottom",
"-",
"top",
"+",
"1",
")",
"/",
"module",
"size",
";",
"if",
"(",
"matrix",
"width",
"<",
"=",
"0",
"|",
"|",
"matrix",
"height",
"<",
"=",
"0",
")",
"{",
"throw",
"not",
"found",
"exception",
"get",
"not",
"found",
"instance",
"(",
")",
";",
"}",
"/",
"/",
"push",
"in",
"the",
"\"",
"border",
"\"",
"by",
"half",
"the",
"module",
"width",
"so",
"that",
"we",
"start",
"/",
"/",
"sampling",
"in",
"the",
"middle",
"of",
"the",
"module",
"just",
"in",
"case",
"the",
"image",
"is",
"a",
"/",
"/",
"little",
"off",
",",
"this",
"will",
"help",
"recover",
"int",
"nudge",
"=",
"module",
"size",
"/",
"2",
";",
"top",
"+",
"=",
"nudge",
";",
"left",
"+",
"=",
"nudge",
";",
"/",
"/",
"now",
"just",
"read",
"off",
"the",
"bits",
"bit",
"matrix",
"bits",
"=",
"new",
"bit",
"matrix",
"(",
"matrix",
"width",
",",
"matrix",
"height",
")",
";",
"for",
"(",
"int",
"y",
"=",
"0",
";",
"y",
"<",
"matrix",
"height",
";",
"y",
"+",
"+",
")",
"{",
"int",
"i",
"offset",
"=",
"top",
"+",
"y",
"*",
"module",
"size",
";",
"for",
"(",
"int",
"x",
"=",
"0",
";",
"x",
"<",
"matrix",
"width",
";",
"x",
"+",
"+",
")",
"{",
"if",
"(",
"image",
"get",
"(",
"left",
"+",
"x",
"*",
"module",
"size",
",",
"i",
"offset",
")",
")",
"{",
"bits",
"set",
"(",
"x",
",",
"y",
")",
";",
"}",
"}",
"}",
"return",
"bits",
";",
"}"
]
|
[
"allocate",
"a",
"heap",
"{",
"@",
"link",
"composite",
"byte",
"buf",
"}",
"with",
"the",
"given",
"maximum",
"number",
"of",
"components",
"that",
"can",
"be",
"stored",
"in",
"it"
]
| [
"composite",
"byte",
"buf",
"composite",
"heap",
"buffer",
"(",
"int",
"max",
"num",
"components",
")",
";"
]
|
[
"only",
"used",
"for",
"unit",
"tests"
]
| [
"public",
"synchronized",
"job",
"info",
"parse",
"(",
"event",
"reader",
"reader",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"info",
"!",
"=",
"null",
")",
"{",
"return",
"info",
";",
"}",
"info",
"=",
"new",
"job",
"info",
"(",
")",
";",
"parse",
"(",
"reader",
",",
"this",
")",
";",
"return",
"info",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.