docstring_tokens
list | code_tokens
list |
---|---|
[
"based",
"on",
"the",
"provided",
"target",
"tier",
"it",
"will",
"return",
"a",
"comma",
"separated",
"list",
"of",
"preferred",
"tiers",
"ie",
"if",
"`",
"data",
"cold",
"`",
"is",
"the",
"target",
"tier",
",",
"it",
"will",
"return",
"`",
"data",
"cold",
",",
"data",
"warm",
",",
"data",
"hot",
"`",
"this",
"is",
"usually",
"used",
"in",
"conjunction",
"with",
"{",
"@",
"link",
"data",
"tier",
"allocation",
"decider",
"#",
"index",
"routing",
"prefer",
"setting",
"}"
]
| [
"static",
"string",
"get",
"preferred",
"tiers",
"configuration",
"(",
"string",
"target",
"tier",
")",
"{",
"int",
"index",
"of",
"target",
"tier",
"=",
"cold",
"to",
"hot",
"tiers",
"index",
"of",
"(",
"target",
"tier",
")",
";",
"if",
"(",
"index",
"of",
"target",
"tier",
"=",
"=",
"-",
"1",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"data",
"tier",
"[",
"\"",
"+",
"target",
"tier",
"+",
"\"",
"]",
"\"",
")",
";",
"}",
"return",
"cold",
"to",
"hot",
"tiers",
"stream",
"(",
")",
"skip",
"(",
"index",
"of",
"target",
"tier",
")",
"collect",
"(",
"collectors",
"joining",
"(",
"\"",
",",
"\"",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"corresponding",
"ghidra",
"script",
"providers",
"for",
"the",
"specified",
"script",
"file"
]
| [
"public",
"static",
"ghidra",
"script",
"provider",
"get",
"provider",
"(",
"resource",
"file",
"script",
"file",
")",
"{",
"string",
"script",
"file",
"name",
"=",
"script",
"file",
"get",
"name",
"(",
")",
"to",
"lower",
"case",
"(",
")",
";",
"for",
"(",
"ghidra",
"script",
"provider",
"provider",
":",
"get",
"providers",
"(",
")",
")",
"{",
"if",
"(",
"script",
"file",
"name",
"ends",
"with",
"(",
"provider",
"get",
"extension",
"(",
")",
"to",
"lower",
"case",
"(",
")",
")",
")",
"{",
"return",
"provider",
";",
"}",
"}",
"return",
"null",
";",
"}"
]
|
[
"patch",
"tabs",
"painter"
]
| [
"void",
"patch",
"painter",
"(",
"final",
"j",
"b",
"editor",
"tabs",
"component",
")",
"{",
"final",
"m",
"t",
"tabs",
"painter",
"tabs",
"painter",
"=",
"new",
"m",
"t",
"tabs",
"painter",
"(",
"component",
")",
";",
"final",
"j",
"b",
"tab",
"painter",
"proxy",
"=",
"(",
"j",
"b",
"tab",
"painter",
")",
"enhancer",
"create",
"(",
"m",
"t",
"tabs",
"painter",
"class",
",",
"new",
"tab",
"painter",
"interceptor",
"(",
"tabs",
"painter",
")",
")",
";",
"apply",
"custom",
"font",
"size",
"(",
"component",
")",
";",
"reflection",
"util",
"set",
"field",
"(",
"j",
"b",
"editor",
"tabs",
"class",
",",
"component",
",",
"j",
"b",
"tab",
"painter",
"class",
",",
"\"",
"my",
"tab",
"painter",
"\"",
",",
"proxy",
")",
";",
"}"
]
|
[
"return",
"the",
"serial",
"number",
"for",
"a",
"user",
"this",
"is",
"a",
"device",
"-",
"unique",
"number",
"assigned",
"to",
"that",
"user",
";",
"if",
"the",
"user",
"is",
"deleted",
"and",
"then",
"a",
"new",
"user",
"created",
",",
"the",
"new",
"users",
"will",
"not",
"be",
"given",
"the",
"same",
"serial",
"number"
]
| [
"public",
"long",
"get",
"serial",
"number",
"for",
"user",
"(",
"v",
"user",
"handle",
"user",
")",
"{",
"return",
"get",
"user",
"serial",
"number",
"(",
"user",
"get",
"identifier",
"(",
")",
")",
";",
"}"
]
|
[
"any",
"flags",
"with",
"this",
"prefix",
"will",
"be",
"skipped",
"during",
"processing"
]
| [
"public",
"builder",
"skipped",
"prefix",
"(",
"string",
"skipped",
"prefix",
")",
"{",
"this",
"impl",
"builder",
"skipped",
"prefix",
"(",
"skipped",
"prefix",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"returns",
"the",
"map",
"of",
"{",
"@",
"code",
"build",
"options",
"}",
"after",
"splitting",
",",
"or",
"the",
"original",
"options",
"if",
"this",
"split",
"is",
"a",
"noop",
"the",
"key",
"values",
"are",
"used",
"as",
"dict",
"keys",
"in",
"ctx",
"split",
"attr",
",",
"so",
"human",
"-",
"readable",
"strings",
"are",
"recommended",
"blaze",
"throws",
"an",
"{",
"@",
"link",
"illegal",
"argument",
"exception",
"}",
"if",
"this",
"method",
"reads",
"any",
"options",
"fragment",
"not",
"declared",
"in",
"{",
"@",
"link",
"configuration",
"transition",
"#",
"requires",
"option",
"fragments",
"}",
"returning",
"an",
"empty",
"or",
"null",
"list",
"triggers",
"a",
"{",
"@",
"link",
"runtime",
"exception",
"}"
]
| [
"map",
"<",
"string",
",",
"build",
"options",
">",
"split",
"(",
"build",
"options",
"view",
"build",
"options",
",",
"event",
"handler",
"event",
"handler",
")",
"throws",
"interrupted",
"exception",
";"
]
|
[
"<",
"code",
">",
"optional",
"aapt",
"pb",
"raw",
"string",
"raw",
"str",
"=",
"3",
";",
"<",
"code",
">"
]
| [
"private",
"void",
"set",
"raw",
"str",
"(",
"com",
"android",
"aapt",
"resources",
"raw",
"string",
"value",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"raw",
"str",
"=",
"value",
";",
"bit",
"field",
"0",
"|",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"4",
";",
"}"
]
|
[
"as",
"long",
"as",
"there",
"is",
"something",
"different",
"in",
"the",
"stack",
"somewhere",
",",
"then",
"we",
"can",
"undo"
]
| [
"boolean",
"can",
"undo",
"(",
"@",
"non",
"null",
"editor",
"element",
"current",
"state",
")",
"{",
"return",
"undo",
"stack",
"stack",
"contains",
"state",
"different",
"from",
"(",
"current",
"state",
")",
";",
"}"
]
|
[
"get",
"pet",
"id"
]
| [
"public",
"long",
"get",
"pet",
"id",
"(",
")",
"{",
"return",
"pet",
"id",
";",
"}"
]
|
[
"execute",
"a",
"jdbc",
"data",
"access",
"operation",
",",
"implemented",
"as",
"callback",
"action",
"working",
"on",
"a",
"jdbc",
"prepared",
"statement",
"this",
"allows",
"for",
"implementing",
"arbitrary",
"data",
"access",
"operations",
"on",
"a",
"single",
"statement",
",",
"within",
"spring",
"'",
"s",
"managed",
"jdbc",
"environment",
":",
"that",
"is",
",",
"participating",
"in",
"spring",
"-",
"managed",
"transactions",
"and",
"converting",
"jdbc",
"s",
"q",
"l",
"exceptions",
"into",
"spring",
"'",
"s",
"data",
"access",
"exception",
"hierarchy",
"the",
"callback",
"action",
"can",
"return",
"a",
"result",
"object",
",",
"for",
"example",
"a",
"domain",
"object",
"or",
"a",
"collection",
"of",
"domain",
"objects"
]
| [
"<",
"t",
">",
"t",
"execute",
"(",
"prepared",
"statement",
"creator",
"psc",
",",
"prepared",
"statement",
"callback",
"<",
"t",
">",
"action",
")",
"throws",
"data",
"access",
"exception",
";"
]
|
[
"get",
"my",
"boolean"
]
| [
"public",
"boolean",
"get",
"my",
"boolean",
"(",
")",
"{",
"return",
"my",
"boolean",
";",
"}"
]
|
[
"returns",
"the",
"options",
"associated",
"with",
"the",
"execution"
]
| [
"public",
"options",
"provider",
"get",
"options",
"(",
")",
"{",
"return",
"options",
";",
"}"
]
|
[
"gets",
"the",
"configured",
"failover",
"proxy",
"provider",
"'",
"s",
"class"
]
| [
"public",
"static",
"<",
"t",
">",
"class",
"<",
"failover",
"proxy",
"provider",
"<",
"t",
">",
">",
"get",
"failover",
"proxy",
"provider",
"class",
"(",
"configuration",
"conf",
",",
"uri",
"name",
"node",
"uri",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"name",
"node",
"uri",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"string",
"host",
"=",
"name",
"node",
"uri",
"get",
"host",
"(",
")",
";",
"string",
"config",
"key",
"=",
"hdfs",
"client",
"config",
"keys",
"failover",
"proxy",
"provider",
"key",
"prefix",
"+",
"\"",
"\"",
"+",
"host",
";",
"try",
"{",
"@",
"suppress",
"warnings",
"(",
"\"",
"unchecked",
"\"",
")",
"class",
"<",
"failover",
"proxy",
"provider",
"<",
"t",
">",
">",
"ret",
"=",
"(",
"class",
"<",
"failover",
"proxy",
"provider",
"<",
"t",
">",
">",
")",
"conf",
"get",
"class",
"(",
"config",
"key",
",",
"null",
",",
"failover",
"proxy",
"provider",
"class",
")",
";",
"return",
"ret",
";",
"}",
"catch",
"(",
"runtime",
"exception",
"e",
")",
"{",
"if",
"(",
"e",
"get",
"cause",
"(",
")",
"instanceof",
"class",
"not",
"found",
"exception",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"could",
"not",
"load",
"failover",
"proxy",
"provider",
"class",
"\"",
"+",
"conf",
"get",
"(",
"config",
"key",
")",
"+",
"\"",
"which",
"is",
"configured",
"for",
"authority",
"\"",
"+",
"name",
"node",
"uri",
",",
"e",
")",
";",
"}",
"else",
"{",
"throw",
"e",
";",
"}",
"}",
"}"
]
|
[
"@",
"inherit",
"doc"
]
| [
"public",
"type",
"bearer",
"get",
"category",
"2",
"(",
"int",
"idx",
")",
"{",
"type",
"bearer",
"result",
"=",
"get",
"(",
"idx",
")",
";",
"if",
"(",
"result",
"get",
"type",
"(",
")",
"is",
"category",
"1",
"(",
")",
")",
"{",
"return",
"throw",
"sim",
"exception",
"(",
"idx",
",",
"\"",
"category",
"-",
"1",
"\"",
")",
";",
"}",
"return",
"result",
";",
"}"
]
|
[
"wait",
"for",
"all",
"operations",
"on",
"the",
"threadpool",
"to",
"complete"
]
| [
"protected",
"static",
"void",
"assert",
"thread",
"pool",
"not",
"busy",
"(",
"thread",
"pool",
"thread",
"pool",
")",
"throws",
"exception",
"{",
"assert",
"busy",
"(",
"(",
")",
"-",
">",
"{",
"for",
"(",
"thread",
"pool",
"stats",
"stats",
"stat",
":",
"thread",
"pool",
"stats",
"(",
")",
")",
"{",
"assert",
"equals",
"(",
"stat",
"get",
"active",
"(",
")",
",",
"0",
")",
";",
"assert",
"equals",
"(",
"stat",
"get",
"queue",
"(",
")",
",",
"0",
")",
";",
"}",
"}",
",",
"30l",
",",
"time",
"unit",
"seconds",
")",
";",
"}"
]
|
[
"get",
"a",
"list",
"of",
"authentication",
"warnings",
"that",
"may",
"be",
"considered",
"global",
"and",
"applicable",
"to",
"the",
"entire",
"authentication",
"event"
]
| [
"list",
"<",
"message",
"descriptor",
">",
"get",
"warnings",
"(",
")",
";"
]
|
[
"marks",
"the",
"code",
"starting",
"at",
"the",
"given",
"offset"
]
| [
"private",
"void",
"mark",
"code",
"(",
"clazz",
"clazz",
",",
"method",
"method",
",",
"code",
"attribute",
"code",
"attribute",
",",
"int",
"offset",
")",
"{",
"boolean",
"old",
"next",
"=",
"next",
";",
"byte",
"[",
"]",
"code",
"=",
"code",
"attribute",
"code",
";",
"/",
"/",
"continue",
"with",
"the",
"current",
"instruction",
"as",
"long",
"as",
"we",
"haven",
"'",
"t",
"marked",
"it",
"/",
"/",
"yet",
"while",
"(",
"!",
"is",
"reachable",
"[",
"offset",
"]",
")",
"{",
"/",
"/",
"get",
"the",
"current",
"instruction",
"instruction",
"instruction",
"=",
"instruction",
"factory",
"create",
"(",
"code",
",",
"offset",
")",
";",
"/",
"/",
"mark",
"it",
"as",
"reachable",
"is",
"reachable",
"[",
"offset",
"]",
"=",
"true",
";",
"/",
"/",
"by",
"default",
",",
"we",
"'",
"ll",
"assume",
"we",
"can",
"continue",
"with",
"the",
"next",
"/",
"/",
"instruction",
"in",
"a",
"moment",
"next",
"=",
"true",
";",
"/",
"/",
"mark",
"the",
"branch",
"targets",
",",
"if",
"any",
"instruction",
"accept",
"(",
"clazz",
",",
"method",
",",
"code",
"attribute",
",",
"offset",
",",
"this",
")",
";",
"/",
"/",
"can",
"we",
"really",
"continue",
"with",
"the",
"next",
"instruction",
"?",
"if",
"(",
"!",
"next",
")",
"{",
"break",
";",
"}",
"/",
"/",
"go",
"to",
"the",
"next",
"instruction",
"offset",
"+",
"=",
"instruction",
"length",
"(",
"offset",
")",
";",
"}",
"next",
"=",
"old",
"next",
";",
"}"
]
|
[
"optional",
"hook",
"for",
"completion",
"processing",
"defaults",
"to",
"doing",
"nothing"
]
| [
"protected",
"void",
"hook",
"on",
"complete",
"(",
")",
"{",
"/",
"/",
"no",
"-",
"op",
"}"
]
|
[
"returns",
"a",
"substring",
"of",
"the",
"input",
"character",
"sequence",
"that",
"omits",
"all",
"matching",
"bmp",
"characters",
"from",
"the",
"beginning",
"and",
"from",
"the",
"end",
"of",
"the",
"string",
"for",
"example",
":",
"{",
"@",
"code",
"char",
"matcher",
"any",
"of",
"(",
"\"",
"ab",
"\"",
")",
"trim",
"from",
"(",
"\"",
"abacatbab",
"\"",
")",
"}",
"returns",
"{",
"@",
"code",
"\"",
"cat",
"\"",
"}",
"note",
"that",
":",
"{",
"@",
"code",
"char",
"matcher",
"in",
"range",
"(",
"'",
"\\",
"0",
"'",
",",
"'",
"'",
")",
"trim",
"from",
"(",
"str",
")",
"}",
"is",
"equivalent",
"to",
"{",
"@",
"link",
"string",
"#",
"trim",
"(",
")",
"}"
]
| [
"public",
"string",
"trim",
"from",
"(",
"char",
"sequence",
"sequence",
")",
"{",
"int",
"len",
"=",
"sequence",
"length",
"(",
")",
";",
"int",
"first",
";",
"int",
"last",
";",
"for",
"(",
"first",
"=",
"0",
";",
"first",
"<",
"len",
";",
"first",
"+",
"+",
")",
"{",
"if",
"(",
"!",
"matches",
"(",
"sequence",
"char",
"at",
"(",
"first",
")",
")",
")",
"{",
"break",
";",
"}",
"}",
"for",
"(",
"last",
"=",
"len",
"-",
"1",
";",
"last",
">",
"first",
";",
"last",
"-",
"-",
")",
"{",
"if",
"(",
"!",
"matches",
"(",
"sequence",
"char",
"at",
"(",
"last",
")",
")",
")",
"{",
"break",
";",
"}",
"}",
"return",
"sequence",
"sub",
"sequence",
"(",
"first",
",",
"last",
"+",
"1",
")",
"to",
"string",
"(",
")",
";",
"}"
]
|
[
"exit",
"a",
"parse",
"tree",
"produced",
"by",
"the",
"{",
"@",
"code",
"boolean",
"default",
"}",
"labeled",
"alternative",
"in",
"{",
"@",
"link",
"eql",
"base",
"parser",
"#",
"boolean",
"expression",
"}"
]
| [
"void",
"exit",
"boolean",
"default",
"(",
"eql",
"base",
"parser",
"boolean",
"default",
"context",
"ctx",
")",
";"
]
|
[
"creates",
"a",
"file",
"system",
"for",
"the",
"super",
"-",
"user"
]
| [
"protected",
"file",
"system",
"create",
"file",
"system",
"(",
")",
"throws",
"exception",
"{",
"return",
"dfs",
"cluster",
"get",
"file",
"system",
"(",
")",
";",
"}"
]
|
[
"appends",
"{",
"@",
"code",
"values",
"}",
",",
"in",
"order",
",",
"to",
"the",
"end",
"of",
"the",
"values",
"the",
"built",
"{",
"@",
"link",
"immutable",
"long",
"array",
"}",
"will",
"contain"
]
| [
"public",
"builder",
"add",
"all",
"(",
"iterable",
"<",
"long",
">",
"values",
")",
"{",
"if",
"(",
"values",
"instanceof",
"collection",
")",
"{",
"return",
"add",
"all",
"(",
"(",
"collection",
"<",
"long",
">",
")",
"values",
")",
";",
"}",
"for",
"(",
"long",
"value",
":",
"values",
")",
"{",
"add",
"(",
"value",
")",
";",
"}",
"return",
"this",
";",
"}"
]
|
[
"sets",
"the",
"icon",
"that",
"will",
"be",
"used",
"in",
"the",
"window",
"'",
"s",
"title",
"bar",
"has",
"no",
"effect",
"in",
"mac",
"o",
"s",
",",
"which",
"doesn",
"'",
"t",
"use",
"window",
"icons"
]
| [
"public",
"void",
"set",
"icon",
"(",
"pixmap",
"image",
")",
"{",
"set",
"icon",
"(",
"window",
"handle",
",",
"image",
")",
";",
"}"
]
|
[
"gets",
"intercepted",
"method",
"that",
"annotated",
"with",
"caching",
"annotation"
]
| [
"public",
"method",
"get",
"method",
"(",
")",
"{",
"return",
"method",
";",
"}"
]
|
[
"selects",
"the",
"items",
"at",
"the",
"given",
"zero",
"-",
"relative",
"indices",
"in",
"the",
"receiver",
"the",
"current",
"selection",
"is",
"cleared",
"before",
"the",
"new",
"items",
"are",
"selected",
"<",
"p",
">",
"indices",
"that",
"are",
"out",
"of",
"range",
"and",
"duplicate",
"indices",
"are",
"ignored",
"if",
"the",
"receiver",
"is",
"single",
"-",
"select",
"and",
"multiple",
"indices",
"are",
"specified",
",",
"then",
"all",
"indices",
"are",
"ignored",
"<",
"p",
">",
"if",
"cell",
"selection",
"is",
"enabled",
",",
"all",
"cells",
"within",
"the",
"given",
"indices",
"are",
"selected"
]
| [
"public",
"void",
"set",
"selection",
"(",
"int",
"[",
"]",
"indices",
")",
"{",
"check",
"widget",
"(",
")",
";",
"if",
"(",
"selection",
"type",
"=",
"=",
"swt",
"single",
"&",
"&",
"indices",
"length",
">",
"1",
")",
"return",
";",
"selected",
"cells",
"clear",
"(",
")",
";",
"for",
"(",
"int",
"j",
":",
"indices",
")",
"{",
"if",
"(",
"j",
"<",
"0",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"j",
">",
"get",
"item",
"count",
"(",
")",
"-",
"1",
")",
"{",
"break",
";",
"}",
"select",
"cells",
"(",
"get",
"cells",
"(",
"j",
")",
")",
";",
"}",
"redraw",
"(",
")",
";",
"}"
]
|
[
"verifies",
"that",
"the",
"{",
"@",
"code",
"set",
"}",
"returned",
"by",
"{",
"@",
"code",
"predecessors",
"}",
"has",
"the",
"expected",
"mutability",
"property",
"(",
"see",
"the",
"{",
"@",
"code",
"network",
"}",
"documentation",
"for",
"more",
"information",
")"
]
| [
"public",
"abstract",
"void",
"predecessors",
"check",
"returned",
"set",
"mutability",
"(",
")",
";"
]
|
[
"verifies",
"that",
"topics",
"in",
"'",
"topics",
"to",
"verify",
"'",
"list",
"have",
"the",
"same",
"number",
"of",
"partitions",
"as",
"described",
"in",
"'",
"topics",
"info",
"'"
]
| [
"static",
"void",
"verify",
"topics",
"(",
"logger",
"log",
",",
"admin",
"admin",
"client",
",",
"collection",
"<",
"string",
">",
"topics",
"to",
"verify",
",",
"map",
"<",
"string",
",",
"new",
"topic",
">",
"topics",
"info",
",",
"int",
"retry",
"count",
",",
"long",
"retry",
"backoff",
"ms",
")",
"throws",
"throwable",
"{",
"map",
"<",
"string",
",",
"topic",
"description",
">",
"topic",
"description",
"map",
"=",
"topic",
"descriptions",
"(",
"topics",
"to",
"verify",
",",
"admin",
"client",
",",
"retry",
"count",
",",
"retry",
"backoff",
"ms",
")",
";",
"for",
"(",
"topic",
"description",
"desc",
":",
"topic",
"description",
"map",
"values",
"(",
")",
")",
"{",
"/",
"/",
"map",
"will",
"always",
"contain",
"the",
"topic",
"since",
"all",
"topics",
"in",
"'",
"topics",
"exists",
"'",
"are",
"in",
"given",
"/",
"/",
"'",
"topics",
"'",
"map",
"int",
"partitions",
"=",
"topics",
"info",
"get",
"(",
"desc",
"name",
"(",
")",
")",
"num",
"partitions",
"(",
")",
";",
"if",
"(",
"partitions",
"!",
"=",
"create",
"topics",
"request",
"no",
"num",
"partitions",
"&",
"&",
"desc",
"partitions",
"(",
")",
"size",
"(",
")",
"!",
"=",
"partitions",
")",
"{",
"string",
"str",
"=",
"\"",
"topic",
"'",
"\"",
"+",
"desc",
"name",
"(",
")",
"+",
"\"",
"'",
"exists",
",",
"but",
"has",
"\"",
"+",
"desc",
"partitions",
"(",
")",
"size",
"(",
")",
"+",
"\"",
"partitions",
",",
"while",
"requested",
"\"",
"+",
"\"",
"number",
"of",
"partitions",
"is",
"\"",
"+",
"partitions",
";",
"log",
"warn",
"(",
"str",
")",
";",
"throw",
"new",
"runtime",
"exception",
"(",
"str",
")",
";",
"}",
"}",
"}"
]
|
[
"removes",
"a",
"range",
"of",
"{",
"@",
"link",
"media",
"source",
"}",
"s",
"from",
"the",
"playlist",
",",
"by",
"specifying",
"an",
"initial",
"index",
"(",
"included",
")",
"and",
"a",
"final",
"index",
"(",
"excluded",
")",
"note",
":",
"when",
"specified",
"range",
"is",
"empty",
",",
"no",
"actual",
"media",
"source",
"is",
"removed",
"and",
"no",
"exception",
"is",
"thrown"
]
| [
"public",
"synchronized",
"void",
"remove",
"media",
"source",
"range",
"(",
"int",
"from",
"index",
",",
"int",
"to",
"index",
")",
"{",
"remove",
"public",
"media",
"sources",
"(",
"from",
"index",
",",
"to",
"index",
",",
"/",
"*",
"handler",
"=",
"*",
"/",
"null",
",",
"/",
"*",
"on",
"completion",
"action",
"=",
"*",
"/",
"null",
")",
";",
"}"
]
|
[
"return",
"the",
"application",
"'",
"s",
"path"
]
| [
"public",
"static",
"string",
"get",
"app",
"path",
"(",
")",
"{",
"return",
"get",
"app",
"path",
"(",
"utils",
"get",
"app",
"(",
")",
"get",
"package",
"name",
"(",
")",
")",
";",
"}"
]
|
[
"all",
"instances",
"of",
"json",
"null",
"are",
"the",
"same"
]
| [
"public",
"boolean",
"equals",
"(",
"object",
"other",
")",
"{",
"return",
"this",
"=",
"=",
"other",
"|",
"|",
"other",
"instanceof",
"json",
"null",
";",
"}"
]
|
[
"model",
"tests",
"for",
"dog",
"all",
"of"
]
| [
"public",
"void",
"test",
"dog",
"all",
"of",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"dog",
"all",
"of",
"}"
]
|
[
"<",
"code",
">",
"optional",
"string",
"value",
"=",
"1",
";",
"<",
"code",
">"
]
| [
"public",
"com",
"google",
"protobuf",
"byte",
"string",
"get",
"value",
"bytes",
"(",
")",
"{",
"return",
"instance",
"get",
"value",
"bytes",
"(",
")",
";",
"}"
]
|
[
"check",
"if",
"system",
"is",
"default",
"to",
"disable",
"docker",
"override",
"or",
"user",
"requested",
"a",
"docker",
"container",
"with",
"entry",
"point",
"support"
]
| [
"private",
"boolean",
"check",
"use",
"entry",
"point",
"(",
"map",
"<",
"string",
",",
"string",
">",
"environment",
")",
"{",
"boolean",
"override",
"disable",
"=",
"false",
";",
"string",
"override",
"disable",
"key",
"=",
"environment",
"yarn",
"container",
"runtime",
"docker",
"run",
"override",
"disable",
"name",
"(",
")",
";",
"string",
"override",
"disable",
"value",
"=",
"(",
"environment",
"get",
"(",
"override",
"disable",
"key",
")",
"!",
"=",
"null",
")",
"?",
"environment",
"get",
"(",
"override",
"disable",
"key",
")",
":",
"system",
"getenv",
"(",
"override",
"disable",
"key",
")",
";",
"override",
"disable",
"=",
"boolean",
"parse",
"boolean",
"(",
"override",
"disable",
"value",
")",
";",
"return",
"override",
"disable",
";",
"}"
]
|
[
"api",
"to",
"store",
"value",
"against",
"a",
"key",
"in",
"the",
"calling",
"thread",
"scope"
]
| [
"public",
"void",
"put",
"(",
"object",
"key",
",",
"object",
"value",
")",
"{",
"store",
"get",
"(",
")",
"put",
"(",
"key",
",",
"value",
")",
";",
"}"
]
|
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"name",
",",
"or",
"null",
"if",
"its",
"not",
"found"
]
| [
"public",
"static",
"fields",
"find",
"by",
"name",
"(",
"string",
"name",
")",
"{",
"return",
"by",
"name",
"get",
"(",
"name",
")",
";",
"}"
]
|
[
"dispatches",
"{",
"@",
"link",
"#",
"on",
"load",
"error",
"(",
"int",
",",
"media",
"period",
"id",
",",
"load",
"event",
"info",
",",
"media",
"load",
"data",
",",
"i",
"o",
"exception",
",",
"boolean",
")",
"}"
]
| [
"public",
"void",
"load",
"error",
"(",
"load",
"event",
"info",
"load",
"event",
"info",
",",
"media",
"load",
"data",
"media",
"load",
"data",
",",
"i",
"o",
"exception",
"error",
",",
"boolean",
"was",
"canceled",
")",
"{",
"for",
"(",
"listener",
"and",
"handler",
"listener",
"and",
"handler",
":",
"listener",
"and",
"handlers",
")",
"{",
"media",
"source",
"event",
"listener",
"listener",
"=",
"listener",
"and",
"handler",
"listener",
";",
"post",
"or",
"run",
"(",
"listener",
"and",
"handler",
"handler",
",",
"(",
")",
"-",
">",
"listener",
"on",
"load",
"error",
"(",
"window",
"index",
",",
"media",
"period",
"id",
",",
"load",
"event",
"info",
",",
"media",
"load",
"data",
",",
"error",
",",
"was",
"canceled",
")",
")",
";",
"}",
"}"
]
|
[
"model",
"tests",
"for",
"has",
"only",
"read",
"only"
]
| [
"public",
"void",
"test",
"has",
"only",
"read",
"only",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"has",
"only",
"read",
"only",
"}"
]
|
[
"get",
"the",
"double",
"value",
"associated",
"with",
"a",
"key"
]
| [
"public",
"double",
"get",
"double",
"(",
"string",
"key",
")",
"throws",
"j",
"s",
"o",
"n",
"exception",
"{",
"object",
"o",
"=",
"get",
"(",
"key",
")",
";",
"try",
"{",
"return",
"o",
"instanceof",
"number",
"?",
"(",
"(",
"number",
")",
"o",
")",
"double",
"value",
"(",
")",
":",
"double",
"value",
"of",
"(",
"(",
"string",
")",
"o",
")",
"double",
"value",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"throw",
"new",
"j",
"s",
"o",
"n",
"exception",
"(",
"\"",
"j",
"s",
"o",
"n",
"object",
"[",
"\"",
"+",
"quote",
"(",
"key",
")",
"+",
"\"",
"]",
"is",
"not",
"a",
"number",
"\"",
")",
";",
"}",
"}"
]
|
[
"set",
"the",
"job",
"level",
"reduce",
"tasks",
"'",
"counters"
]
| [
"void",
"put",
"reduce",
"counters",
"(",
"map",
"<",
"string",
",",
"long",
">",
"reduce",
"counters",
")",
"{",
"this",
"reduce",
"counters",
"map",
"=",
"reduce",
"counters",
";",
"}"
]
|
[
"starts",
"a",
"sandboxfs",
"instance",
"using",
"a",
"fake",
"binary",
"that",
"captures",
"all",
"received",
"requests",
"and",
"yields",
"mock",
"responses"
]
| [
"sandboxfs",
"process",
"create",
"and",
"start",
"fake",
"sandboxfs",
"(",
"list",
"<",
"string",
">",
"responses",
")",
"throws",
"i",
"o",
"exception",
"{",
"captured",
"args",
"=",
"tmp",
"dir",
"get",
"relative",
"(",
"\"",
"captured",
"-",
"args",
"\"",
")",
";",
"captured",
"requests",
"=",
"tmp",
"dir",
"get",
"relative",
"(",
"\"",
"captured",
"-",
"requests",
"\"",
")",
";",
"path",
"fake",
"sandboxfs",
"=",
"tmp",
"dir",
"get",
"relative",
"(",
"\"",
"fake",
"-",
"sandboxfs",
"\"",
")",
";",
"try",
"(",
"print",
"writer",
"writer",
"=",
"new",
"print",
"writer",
"(",
"new",
"buffered",
"writer",
"(",
"new",
"output",
"stream",
"writer",
"(",
"fake",
"sandboxfs",
"get",
"output",
"stream",
"(",
")",
",",
"standard",
"charsets",
"utf",
"8",
")",
")",
")",
")",
"{",
"writer",
"println",
"(",
"\"",
"#",
"!",
"/",
"bin",
"/",
"bash",
"\"",
")",
";",
"/",
"/",
"ignore",
"requests",
"for",
"termination",
"the",
"real",
"sandboxfs",
"process",
"must",
"be",
"sent",
"a",
"sigterm",
"to",
"stop",
"/",
"/",
"serving",
",",
"but",
"in",
"our",
"case",
"we",
"want",
"to",
"terminate",
"cleanly",
"after",
"waiting",
"for",
"all",
"input",
"to",
"be",
"/",
"/",
"recorded",
"writer",
"println",
"(",
"\"",
"trap",
"'",
"'",
"term",
";",
"\"",
")",
";",
"/",
"/",
"handle",
"a",
"-",
"-",
"version",
"invocation",
"and",
"exit",
"quickly",
",",
"which",
"is",
"a",
"prerequisite",
"for",
"the",
"mount",
"call",
"writer",
"println",
"(",
"\"",
"if",
"[",
"\\",
"\"",
"$",
"{",
"*",
"}",
"\\",
"\"",
"=",
"\\",
"\"",
"-",
"-",
"version",
"\\",
"\"",
"]",
";",
"then",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"echo",
"sandboxfs",
"\"",
"+",
"version",
"+",
"\"",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"exit",
"0",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"fi",
";",
"\"",
")",
";",
"/",
"/",
"capture",
"all",
"arguments",
"for",
"later",
"inspection",
"writer",
"println",
"(",
"\"",
"for",
"arg",
"in",
"\\",
"\"",
"$",
"{",
"@",
"}",
"\\",
"\"",
";",
"do",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"echo",
"\\",
"\"",
"$",
"{",
"arg",
"}",
"\\",
"\"",
">",
">",
"\"",
"+",
"captured",
"args",
"+",
"\"",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"done",
";",
"\"",
")",
";",
"/",
"/",
"attempt",
"to",
"\"",
"parse",
"\"",
"requests",
"coming",
"through",
"stdin",
"by",
"just",
"counting",
"brace",
"pairs",
",",
"assuming",
"/",
"/",
"that",
"the",
"input",
"is",
"composed",
"of",
"a",
"stream",
"of",
"json",
"objects",
"then",
",",
"for",
"each",
"request",
",",
"emit",
"one",
"/",
"/",
"response",
"/",
"/",
"/",
"/",
"we",
"must",
"do",
"this",
"because",
"the",
"unordered",
"response",
"processor",
"required",
"to",
"parse",
"0",
"2",
"0",
"output",
"/",
"/",
"expects",
"responses",
"to",
"come",
"only",
"after",
"their",
"requests",
"have",
"been",
"issued",
"ideally",
"we",
"'",
"d",
"match",
"/",
"/",
"our",
"mock",
"responses",
"to",
"specific",
"requests",
"to",
"allow",
"for",
"testing",
"of",
"unordered",
"responses",
",",
"but",
"/",
"/",
"for",
"now",
"assume",
"all",
"requests",
"and",
"responses",
"in",
"the",
"test",
"are",
"correctly",
"ordered",
"/",
"/",
"/",
"/",
"todo",
"(",
"jmmv",
")",
":",
"this",
"has",
"become",
"pretty",
"awful",
"should",
"rethink",
"unit",
"testing",
"for",
"(",
"string",
"response",
":",
"responses",
")",
"{",
"writer",
"println",
"(",
"\"",
"braces",
"=",
"0",
";",
"started",
"=",
"no",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"while",
"read",
"-",
"d",
"'",
"'",
"-",
"n",
"1",
"ch",
";",
"do",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"case",
"\\",
"\"",
"$",
"{",
"ch",
"}",
"\\",
"\"",
"in",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"'",
"{",
"'",
")",
"braces",
"=",
"$",
"(",
"(",
"braces",
"+",
"1",
")",
")",
";",
"started",
"=",
"yes",
";",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"'",
"[",
"'",
")",
"braces",
"=",
"$",
"(",
"(",
"braces",
"+",
"1",
")",
")",
";",
"started",
"=",
"yes",
";",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"'",
"]",
"'",
")",
"braces",
"=",
"$",
"(",
"(",
"braces",
"-",
"1",
")",
")",
";",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"'",
"}",
"'",
")",
"braces",
"=",
"$",
"(",
"(",
"braces",
"-",
"1",
")",
")",
";",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"esac",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"[",
"[",
"\\",
"\"",
"$",
"{",
"ch",
"}",
"\\",
"\"",
"!",
"=",
"'",
"'",
"]",
"]",
"|",
"|",
"ch",
"=",
"'",
"\\",
"n",
"'",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"printf",
"'",
"%",
"c",
"'",
"\\",
"\"",
"$",
"{",
"ch",
"}",
"\\",
"\"",
">",
">",
"\"",
"+",
"captured",
"requests",
")",
";",
"writer",
"println",
"(",
"\"",
"if",
"[",
"[",
"\\",
"\"",
"$",
"{",
"started",
"}",
"\\",
"\"",
"=",
"yes",
"&",
"&",
"\\",
"\"",
"$",
"{",
"braces",
"}",
"\\",
"\"",
"-",
"eq",
"0",
"]",
"]",
";",
"then",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"echo",
"'",
"\"",
"+",
"response",
"+",
"\"",
"'",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"break",
";",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"fi",
"\"",
")",
";",
"writer",
"println",
"(",
"\"",
"done",
"\"",
")",
";",
"}",
"/",
"/",
"capture",
"any",
"stray",
"requests",
"not",
"expected",
"by",
"the",
"test",
"data",
"writer",
"println",
"(",
"\"",
"cat",
">",
">",
"\"",
"+",
"captured",
"requests",
")",
";",
"}",
"fake",
"sandboxfs",
"set",
"executable",
"(",
"true",
")",
";",
"return",
"real",
"sandboxfs",
"process",
"mount",
"(",
"fake",
"sandboxfs",
"as",
"fragment",
"(",
")",
",",
"file",
"system",
"get",
"path",
"(",
"fake",
"mount",
"point",
")",
",",
"tmp",
"dir",
"get",
"relative",
"(",
"\"",
"log",
"\"",
")",
")",
";",
"}"
]
|
[
"resolves",
"this",
"parameter",
"for",
"the",
"given",
"value"
]
| [
"public",
"final",
"void",
"resolve",
"(",
"x",
"value",
")",
"{",
"preconditions",
"check",
"state",
"(",
"!",
"resolved",
",",
"\"",
"this",
"parameter",
"was",
"already",
"resolved",
"\"",
")",
";",
"this",
"value",
"=",
"preconditions",
"check",
"not",
"null",
"(",
"value",
")",
";",
"this",
"resolved",
"=",
"true",
";",
"}"
]
|
[
"configure",
"the",
"{",
"@",
"link",
"one",
"input",
"python",
"function",
"operator",
"}",
"to",
"be",
"chained",
"with",
"the",
"upstreamdownstream",
"operator",
"by",
"setting",
"their",
"parallelism",
",",
"slot",
"sharing",
"group",
",",
"co",
"-",
"location",
"group",
"to",
"be",
"the",
"same",
",",
"and",
"applying",
"a",
"{",
"@",
"link",
"forward",
"partitioner",
"}",
"1",
"operator",
"with",
"name",
"\"",
"keyed",
"stream",
"values",
"operator",
"\"",
"should",
"align",
"with",
"its",
"downstream",
"operator",
"2",
"operator",
"with",
"name",
"\"",
"stream",
"key",
"by",
"map",
"operator",
"\"",
"should",
"align",
"with",
"its",
"upstream",
"operator"
]
| [
"private",
"static",
"void",
"align",
"stream",
"node",
"(",
"stream",
"node",
"stream",
"node",
",",
"stream",
"graph",
"stream",
"graph",
")",
"{",
"if",
"(",
"stream",
"node",
"get",
"operator",
"name",
"(",
")",
"equals",
"(",
"keyed",
"stream",
"value",
"operator",
"name",
")",
")",
"{",
"stream",
"edge",
"down",
"stream",
"edge",
"=",
"stream",
"node",
"get",
"out",
"edges",
"(",
")",
"get",
"(",
"0",
")",
";",
"stream",
"node",
"down",
"stream",
"node",
"=",
"stream",
"graph",
"get",
"stream",
"node",
"(",
"down",
"stream",
"edge",
"get",
"target",
"id",
"(",
")",
")",
";",
"chain",
"stream",
"node",
"(",
"down",
"stream",
"edge",
",",
"stream",
"node",
",",
"down",
"stream",
"node",
")",
";",
"down",
"stream",
"edge",
"set",
"partitioner",
"(",
"new",
"forward",
"partitioner",
"(",
")",
")",
";",
"}",
"if",
"(",
"stream",
"node",
"get",
"operator",
"name",
"(",
")",
"equals",
"(",
"stream",
"key",
"by",
"map",
"operator",
"name",
")",
"|",
"|",
"stream",
"node",
"get",
"operator",
"name",
"(",
")",
"equals",
"(",
"stream",
"partition",
"custom",
"map",
"operator",
"name",
")",
")",
"{",
"stream",
"edge",
"up",
"stream",
"edge",
"=",
"stream",
"node",
"get",
"in",
"edges",
"(",
")",
"get",
"(",
"0",
")",
";",
"stream",
"node",
"up",
"stream",
"node",
"=",
"stream",
"graph",
"get",
"stream",
"node",
"(",
"up",
"stream",
"edge",
"get",
"source",
"id",
"(",
")",
")",
";",
"chain",
"stream",
"node",
"(",
"up",
"stream",
"edge",
",",
"stream",
"node",
",",
"up",
"stream",
"node",
")",
";",
"}",
"}"
]
|
[
"generate",
"all",
"delegates",
"defined",
"on",
"this",
"{",
"@",
"link",
"spec",
"model",
"}"
]
| [
"public",
"static",
"type",
"spec",
"data",
"holder",
"generate",
"delegates",
"(",
"spec",
"model",
"spec",
"model",
",",
"map",
"<",
"class",
"<",
"?",
"extends",
"annotation",
">",
",",
"delegate",
"method",
"description",
">",
"delegate",
"methods",
"map",
",",
"enum",
"set",
"<",
"run",
"mode",
">",
"run",
"mode",
")",
"{",
"type",
"spec",
"data",
"holder",
"builder",
"type",
"spec",
"data",
"holder",
"=",
"type",
"spec",
"data",
"holder",
"new",
"builder",
"(",
")",
";",
"boolean",
"has",
"attach",
"detach",
"callback",
"=",
"false",
";",
"for",
"(",
"spec",
"method",
"model",
"<",
"delegate",
"method",
",",
"void",
">",
"delegate",
"method",
"model",
":",
"spec",
"model",
"get",
"delegate",
"methods",
"(",
")",
")",
"{",
"for",
"(",
"annotation",
"annotation",
":",
"delegate",
"method",
"model",
"annotations",
")",
"{",
"final",
"class",
"<",
"?",
"extends",
"annotation",
">",
"annotation",
"type",
"=",
"annotation",
"annotation",
"type",
"(",
")",
";",
"if",
"(",
"annotation",
"type",
"equals",
"(",
"on",
"attached",
"class",
")",
"|",
"|",
"annotation",
"type",
"equals",
"(",
"on",
"detached",
"class",
")",
")",
"{",
"has",
"attach",
"detach",
"callback",
"=",
"true",
";",
"}",
"if",
"(",
"delegate",
"methods",
"map",
"contains",
"key",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
")",
"{",
"final",
"delegate",
"method",
"description",
"delegate",
"method",
"description",
"=",
"delegate",
"methods",
"map",
"get",
"(",
"annotation",
"annotation",
"type",
"(",
")",
")",
";",
"type",
"spec",
"data",
"holder",
"add",
"method",
"(",
"generate",
"delegate",
"(",
"spec",
"model",
",",
"delegate",
"method",
"description",
",",
"delegate",
"method",
"model",
",",
"run",
"mode",
")",
")",
";",
"for",
"(",
"method",
"spec",
"method",
"spec",
":",
"delegate",
"method",
"description",
"extra",
"methods",
")",
"{",
"type",
"spec",
"data",
"holder",
"add",
"method",
"(",
"method",
"spec",
")",
";",
"}",
"break",
";",
"}",
"}",
"}",
"if",
"(",
"has",
"attach",
"detach",
"callback",
")",
"{",
"type",
"spec",
"data",
"holder",
"add",
"method",
"(",
"generate",
"has",
"attach",
"detach",
"callback",
"(",
")",
")",
";",
"}",
"return",
"type",
"spec",
"data",
"holder",
"build",
"(",
")",
";",
"}"
]
|
[
"tests",
"that",
"higher",
"prioritized",
"primaries",
"and",
"replicas",
"are",
"allocated",
"first",
"even",
"on",
"the",
"balanced",
"shard",
"allocator",
"see",
"https",
":",
"github",
"comelasticelasticsearchissues",
"1",
"3",
"2",
"4",
"9",
"for",
"details"
]
| [
"public",
"void",
"test",
"prioritized",
"indices",
"allocated",
"first",
"(",
")",
"{",
"allocation",
"service",
"allocation",
"=",
"create",
"allocation",
"service",
"(",
"settings",
"builder",
"(",
")",
"put",
"(",
"throttling",
"allocation",
"decider",
"cluster",
"routing",
"allocation",
"node",
"concurrent",
"recoveries",
"setting",
"get",
"key",
"(",
")",
",",
"1",
")",
"put",
"(",
"throttling",
"allocation",
"decider",
"cluster",
"routing",
"allocation",
"node",
"concurrent",
"outgoing",
"recoveries",
"setting",
"get",
"key",
"(",
")",
",",
"10",
")",
"put",
"(",
"throttling",
"allocation",
"decider",
"cluster",
"routing",
"allocation",
"node",
"initial",
"primaries",
"recoveries",
"setting",
"get",
"key",
"(",
")",
",",
"1",
")",
"put",
"(",
"throttling",
"allocation",
"decider",
"cluster",
"routing",
"allocation",
"node",
"concurrent",
"incoming",
"recoveries",
"setting",
"get",
"key",
"(",
")",
",",
"1",
")",
"build",
"(",
")",
")",
";",
"final",
"string",
"high",
"priority",
"name",
";",
"final",
"string",
"low",
"priority",
"name",
";",
"final",
"int",
"priority",
"first",
";",
"final",
"int",
"priority",
"second",
";",
"if",
"(",
"random",
"boolean",
"(",
")",
")",
"{",
"high",
"priority",
"name",
"=",
"\"",
"first",
"\"",
";",
"low",
"priority",
"name",
"=",
"\"",
"second",
"\"",
";",
"priority",
"second",
"=",
"1",
";",
"priority",
"first",
"=",
"100",
";",
"}",
"else",
"{",
"low",
"priority",
"name",
"=",
"\"",
"first",
"\"",
";",
"high",
"priority",
"name",
"=",
"\"",
"second",
"\"",
";",
"priority",
"second",
"=",
"100",
";",
"priority",
"first",
"=",
"1",
";",
"}",
"metadata",
"metadata",
"=",
"metadata",
"builder",
"(",
")",
"put",
"(",
"index",
"metadata",
"builder",
"(",
"\"",
"first",
"\"",
")",
"settings",
"(",
"settings",
"(",
"version",
"current",
")",
"put",
"(",
"index",
"metadata",
"setting",
"priority",
",",
"priority",
"first",
")",
")",
"number",
"of",
"shards",
"(",
"2",
")",
"number",
"of",
"replicas",
"(",
"1",
")",
")",
"put",
"(",
"index",
"metadata",
"builder",
"(",
"\"",
"second",
"\"",
")",
"settings",
"(",
"settings",
"(",
"version",
"current",
")",
"put",
"(",
"index",
"metadata",
"setting",
"priority",
",",
"priority",
"second",
")",
")",
"number",
"of",
"shards",
"(",
"2",
")",
"number",
"of",
"replicas",
"(",
"1",
")",
")",
"build",
"(",
")",
";",
"routing",
"table",
"initial",
"routing",
"table",
"=",
"routing",
"table",
"builder",
"(",
")",
"add",
"as",
"new",
"(",
"metadata",
"index",
"(",
"\"",
"first",
"\"",
")",
")",
"add",
"as",
"new",
"(",
"metadata",
"index",
"(",
"\"",
"second",
"\"",
")",
")",
"build",
"(",
")",
";",
"cluster",
"state",
"cluster",
"state",
"=",
"cluster",
"state",
"builder",
"(",
"org",
"elasticsearch",
"cluster",
"cluster",
"name",
"cluster",
"name",
"setting",
"get",
"default",
"(",
"settings",
"empty",
")",
")",
"metadata",
"(",
"metadata",
")",
"routing",
"table",
"(",
"initial",
"routing",
"table",
")",
"build",
"(",
")",
";",
"cluster",
"state",
"=",
"cluster",
"state",
"builder",
"(",
"cluster",
"state",
")",
"nodes",
"(",
"discovery",
"nodes",
"builder",
"(",
")",
"add",
"(",
"new",
"node",
"(",
"\"",
"node",
"1",
"\"",
")",
")",
"add",
"(",
"new",
"node",
"(",
"\"",
"node",
"2",
"\"",
")",
")",
")",
"build",
"(",
")",
";",
"cluster",
"state",
"=",
"allocation",
"reroute",
"(",
"cluster",
"state",
",",
"\"",
"reroute",
"\"",
")",
";",
"cluster",
"state",
"=",
"allocation",
"reroute",
"(",
"cluster",
"state",
",",
"\"",
"reroute",
"\"",
")",
";",
"assert",
"equals",
"(",
"2",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"high",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"0",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"high",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"1",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"cluster",
"state",
"=",
"start",
"initializing",
"shards",
"and",
"reroute",
"(",
"allocation",
",",
"cluster",
"state",
")",
";",
"assert",
"equals",
"(",
"2",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"low",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"0",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"low",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"1",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"cluster",
"state",
"=",
"start",
"initializing",
"shards",
"and",
"reroute",
"(",
"allocation",
",",
"cluster",
"state",
")",
";",
"assert",
"equals",
"(",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"to",
"string",
"(",
")",
",",
"2",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"high",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"0",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"high",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"1",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"cluster",
"state",
"=",
"start",
"initializing",
"shards",
"and",
"reroute",
"(",
"allocation",
",",
"cluster",
"state",
")",
";",
"assert",
"equals",
"(",
"2",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"low",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"0",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"low",
"priority",
"name",
",",
"cluster",
"state",
"get",
"routing",
"nodes",
"(",
")",
"shards",
"with",
"state",
"(",
"initializing",
")",
"get",
"(",
"1",
")",
"get",
"index",
"name",
"(",
")",
")",
";",
"}"
]
|
[
"maps",
"the",
"central",
"directory",
"to",
"memory",
"called",
"on",
"the",
"first",
"invocation",
"of",
"{",
"@",
"link",
"#",
"central",
"directory",
"(",
")",
"}"
]
| [
"protected",
"void",
"load",
"central",
"directory",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"eocd",
"=",
"=",
"null",
")",
"{",
"load",
"end",
"of",
"central",
"directory",
"(",
")",
";",
"}",
"if",
"(",
"eocd",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"long",
"cd",
"offset",
"=",
"eocd",
"get",
"(",
"endoff",
")",
";",
"long",
"len",
"=",
"eocd",
"file",
"offset",
"(",
")",
"-",
"cd",
"offset",
";",
"verbose",
"(",
"\"",
"-",
"-",
"cdir",
":",
"\"",
"+",
"cd",
"offset",
"+",
"\"",
"size",
":",
"\"",
"+",
"len",
"+",
"\"",
"count",
":",
"\"",
"+",
"eocd",
"get",
"(",
"endsub",
")",
")",
";",
"/",
"/",
"read",
"directory",
"to",
"buffer",
"/",
"/",
"todo",
"(",
"bazel",
"-",
"team",
")",
":",
"we",
"currently",
"assume",
"the",
"directory",
"fits",
"in",
"memory",
"(",
"and",
"int",
")",
"byte",
"buffer",
"buffer",
"=",
"byte",
"buffer",
"allocate",
"direct",
"(",
"(",
"int",
")",
"len",
")",
";",
"while",
"(",
"len",
">",
"0",
")",
"{",
"int",
"read",
"=",
"file",
"channel",
"read",
"(",
"buffer",
",",
"cd",
"offset",
")",
";",
"len",
"-",
"=",
"read",
";",
"cd",
"offset",
"+",
"=",
"read",
";",
"}",
"buffer",
"rewind",
"(",
")",
";",
"cdir",
"=",
"central",
"directory",
"view",
"of",
"(",
"buffer",
")",
"at",
"(",
"cd",
"offset",
")",
"parse",
"(",
")",
";",
"cdir",
"buffer",
"flip",
"(",
")",
";",
"}"
]
|
[
"return",
"the",
"invalid",
"timeout",
"value"
]
| [
"public",
"int",
"get",
"timeout",
"(",
")",
"{",
"return",
"this",
"timeout",
";",
"}"
]
|
[
"returns",
"the",
"a",
"out",
"optional",
"header",
"this",
"return",
"value",
"may",
"be",
"null"
]
| [
"public",
"aout",
"header",
"get",
"optional",
"header",
"(",
")",
"{",
"return",
"aout",
"header",
";",
"}"
]
|
[
"model",
"tests",
"for",
"capitalization"
]
| [
"public",
"void",
"test",
"capitalization",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"capitalization",
"}"
]
|
[
"tests",
"the",
"independence",
"of",
"the",
"reader",
"index",
"via",
"{",
"@",
"link",
"read",
"only",
"sliced",
"network",
"buffer",
"#",
"set",
"reader",
"index",
"(",
"int",
")",
"}",
"and",
"{",
"@",
"link",
"read",
"only",
"sliced",
"network",
"buffer",
"#",
"get",
"reader",
"index",
"(",
")",
"}"
]
| [
"public",
"void",
"test",
"get",
"set",
"reader",
"index",
"2",
"(",
")",
"{",
"test",
"get",
"set",
"reader",
"index",
"(",
"buffer",
"read",
"only",
"slice",
"(",
"1",
",",
"2",
")",
")",
";",
"}"
]
|
[
"notepad",
"pdb",
"is",
"here",
":",
"<",
"teexenotepad",
"pdb",
"3",
"6",
"c",
"f",
"d",
"5",
"f",
"9",
"8",
"8",
"8",
"c",
"4",
"4",
"8",
"3",
"b",
"5",
"2",
"2",
"b",
"9",
"d",
"b",
"2",
"4",
"2",
"d",
"8",
"4",
"7",
"8",
"2",
"notepad",
"pdb",
"xml",
"does",
"not",
"exist",
"repo",
"location",
"set",
"to",
"<",
"teexenotepad",
"pdb",
"3",
"6",
"c",
"f",
"d",
"5",
"f",
"9",
"8",
"8",
"8",
"c",
"4",
"4",
"8",
"3",
"b",
"5",
"2",
"2",
"b",
"9",
"d",
"b",
"2",
"4",
"2",
"d",
"8",
"4",
"7",
"8",
"2",
"on",
"windows",
",",
"pdb",
"file",
"should",
"be",
"found",
"on",
"non",
"-",
"windows",
",",
"pdb",
"file",
"should",
"be",
"found"
]
| [
"public",
"void",
"test",
"find",
"pdb",
"1",
"1",
"(",
")",
"throws",
"exception",
"{",
"created",
"files",
"=",
"create",
"files",
"(",
"pdb",
"location",
"same",
"as",
"exe",
"subdir",
",",
"pdb",
"xml",
"location",
"none",
")",
";",
"file",
"pdb",
"=",
"pdb",
"parser",
"find",
"p",
"d",
"b",
"(",
"test",
"program",
",",
"false",
",",
"pdb",
"file",
"get",
"parent",
"file",
"(",
")",
")",
";",
"assert",
"not",
"null",
"(",
"pdb",
")",
";",
"assert",
"equals",
"(",
"pdb",
"file",
",",
"pdb",
")",
";",
"}"
]
|
[
"test",
"of",
"get",
"representing",
"character",
"method",
",",
"of",
"class",
"task",
"i",
"d"
]
| [
"public",
"void",
"test",
"get",
"representing",
"character",
"(",
")",
"{",
"assert",
"equals",
"(",
"\"",
"the",
"get",
"representing",
"character",
"(",
")",
"method",
"did",
"not",
"return",
"the",
"\"",
"+",
"\"",
"expected",
"character",
"\"",
",",
"'",
"m",
"'",
",",
"task",
"i",
"d",
"get",
"representing",
"character",
"(",
"task",
"type",
"map",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"the",
"get",
"representing",
"character",
"(",
")",
"method",
"did",
"not",
"return",
"the",
"\"",
"+",
"\"",
"expected",
"character",
"\"",
",",
"'",
"r",
"'",
",",
"task",
"i",
"d",
"get",
"representing",
"character",
"(",
"task",
"type",
"reduce",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"the",
"get",
"representing",
"character",
"(",
")",
"method",
"did",
"not",
"return",
"the",
"\"",
"+",
"\"",
"expected",
"character",
"\"",
",",
"'",
"s",
"'",
",",
"task",
"i",
"d",
"get",
"representing",
"character",
"(",
"task",
"type",
"job",
"setup",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"the",
"get",
"representing",
"character",
"(",
")",
"method",
"did",
"not",
"return",
"the",
"\"",
"+",
"\"",
"expected",
"character",
"\"",
",",
"'",
"c",
"'",
",",
"task",
"i",
"d",
"get",
"representing",
"character",
"(",
"task",
"type",
"job",
"cleanup",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"the",
"get",
"representing",
"character",
"(",
")",
"method",
"did",
"not",
"return",
"the",
"\"",
"+",
"\"",
"expected",
"character",
"\"",
",",
"'",
"t",
"'",
",",
"task",
"i",
"d",
"get",
"representing",
"character",
"(",
"task",
"type",
"task",
"cleanup",
")",
")",
";",
"}"
]
|
[
"tests",
"that",
"track",
"selector",
"will",
"prefer",
"tracks",
"that",
"are",
"within",
"renderer",
"'",
"s",
"capabilities",
"over",
"track",
"that",
"have",
"language",
"matching",
"preferred",
"audio",
"given",
"by",
"{",
"@",
"link",
"parameters",
"}",
"but",
"exceed",
"renderer",
"'",
"s",
"capabilities"
]
| [
"public",
"void",
"select",
"tracks",
"prefer",
"track",
"within",
"capabilities",
"over",
"preferred",
"language",
"(",
")",
"throws",
"exception",
"{",
"format",
"builder",
"format",
"builder",
"=",
"audio",
"format",
"build",
"upon",
"(",
")",
";",
"format",
"exceeded",
"en",
"format",
"=",
"format",
"builder",
"set",
"id",
"(",
"\"",
"exceeded",
"format",
"\"",
")",
"set",
"language",
"(",
"\"",
"eng",
"\"",
")",
"build",
"(",
")",
";",
"format",
"supported",
"fr",
"format",
"=",
"format",
"builder",
"set",
"id",
"(",
"\"",
"supported",
"format",
"\"",
")",
"set",
"language",
"(",
"\"",
"fra",
"\"",
")",
"build",
"(",
")",
";",
"track",
"group",
"array",
"track",
"groups",
"=",
"wrap",
"formats",
"(",
"exceeded",
"en",
"format",
",",
"supported",
"fr",
"format",
")",
";",
"map",
"<",
"string",
",",
"integer",
">",
"mapped",
"capabilities",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"mapped",
"capabilities",
"put",
"(",
"exceeded",
"en",
"format",
"id",
",",
"format",
"exceeds",
"capabilities",
")",
";",
"mapped",
"capabilities",
"put",
"(",
"supported",
"fr",
"format",
"id",
",",
"format",
"handled",
")",
";",
"renderer",
"capabilities",
"mapped",
"audio",
"renderer",
"capabilities",
"=",
"new",
"fake",
"mapped",
"renderer",
"capabilities",
"(",
"c",
"track",
"type",
"audio",
",",
"mapped",
"capabilities",
")",
";",
"track",
"selector",
"set",
"parameters",
"(",
"default",
"parameters",
"build",
"upon",
"(",
")",
"set",
"preferred",
"audio",
"language",
"(",
"\"",
"eng",
"\"",
")",
")",
";",
"track",
"selector",
"result",
"result",
"=",
"track",
"selector",
"select",
"tracks",
"(",
"new",
"renderer",
"capabilities",
"[",
"]",
"{",
"mapped",
"audio",
"renderer",
"capabilities",
"}",
",",
"track",
"groups",
",",
"period",
"id",
",",
"timeline",
")",
";",
"assert",
"fixed",
"selection",
"(",
"result",
"selections",
"get",
"(",
"0",
")",
",",
"track",
"groups",
",",
"supported",
"fr",
"format",
")",
";",
"}"
]
|
[
"will",
"try",
"to",
"close",
"dialogs",
"prompting",
"for",
"changes",
"to",
"be",
"saved",
",",
"whether",
"from",
"program",
"changes",
"or",
"from",
"tool",
"config",
"changes"
]
| [
"public",
"static",
"void",
"close",
"save",
"changes",
"dialog",
"(",
")",
"{",
"wait",
"for",
"swing",
"(",
")",
";",
"option",
"dialog",
"dialog",
"=",
"get",
"dialog",
"component",
"(",
"option",
"dialog",
"class",
")",
";",
"if",
"(",
"dialog",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"string",
"title",
"=",
"dialog",
"get",
"title",
"(",
")",
";",
"boolean",
"is",
"save",
"prompt",
"=",
"string",
"utils",
"contains",
"any",
"(",
"title",
",",
"\"",
"changed",
"\"",
",",
"\"",
"saved",
"\"",
")",
";",
"if",
"(",
"!",
"is",
"save",
"prompt",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
"\"",
"unexpected",
"dialog",
"with",
"title",
"'",
"\"",
"+",
"title",
"+",
"\"",
"'",
";",
"\"",
"+",
"\"",
"expected",
"a",
"dialog",
"alerting",
"to",
"program",
"changes",
"\"",
")",
";",
"}",
"if",
"(",
"string",
"utils",
"contains",
"(",
"title",
",",
"\"",
"program",
"changed",
"\"",
")",
")",
"{",
"/",
"/",
"the",
"program",
"is",
"read",
"-",
"only",
"or",
"not",
"in",
"a",
"writable",
"project",
"press",
"button",
"by",
"text",
"(",
"dialog",
",",
"\"",
"continue",
"\"",
")",
";",
"return",
";",
"}",
"if",
"(",
"string",
"utils",
"contains",
"(",
"title",
",",
"\"",
"save",
"program",
"?",
"\"",
")",
")",
"{",
"press",
"button",
"by",
"text",
"(",
"dialog",
",",
"\"",
"cancel",
"\"",
")",
";",
"return",
";",
"}",
"throw",
"new",
"assertion",
"error",
"(",
"\"",
"unexpected",
"dialog",
"with",
"title",
"'",
"\"",
"+",
"title",
"+",
"\"",
"'",
";",
"\"",
"+",
"\"",
"expected",
"a",
"dialog",
"alerting",
"to",
"program",
"changes",
"\"",
")",
";",
"}"
]
|
[
"return",
"the",
"specified",
"cache",
"manager",
"to",
"use",
",",
"if",
"any"
]
| [
"public",
"cache",
"manager",
"get",
"cache",
"manager",
"(",
")",
"{",
"return",
"supplier",
"utils",
"resolve",
"(",
"this",
"cache",
"manager",
")",
";",
"}"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"byte",
"source",
"}",
"for",
"reading",
"bytes",
"from",
"the",
"given",
"file"
]
| [
"public",
"static",
"byte",
"source",
"as",
"byte",
"source",
"(",
"file",
"file",
")",
"{",
"return",
"new",
"file",
"byte",
"source",
"(",
"file",
")",
";",
"}"
]
|
[
"returns",
"a",
"list",
"of",
"all",
"tag",
"ids",
"that",
"have",
"been",
"changed",
"(",
"editeddeleted",
")"
]
| [
"long",
"[",
"]",
"get",
"tag",
"changes",
"(",
")",
";"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"int",
"execute",
"update",
"(",
"string",
"sql",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"connection",
"mark",
"commit",
"state",
"dirty",
"(",
")",
";",
"return",
"delegate",
"execute",
"update",
"(",
"sql",
")",
";",
"}"
]
|
[
"called",
"for",
"entries",
"that",
"have",
"been",
"evicted",
"or",
"removed",
"this",
"method",
"is",
"invoked",
"when",
"a",
"value",
"is",
"evicted",
"to",
"make",
"space",
",",
"removed",
"by",
"a",
"call",
"to",
"{",
"@",
"link",
"#",
"remove",
"}",
",",
"or",
"replaced",
"by",
"a",
"call",
"to",
"{",
"@",
"link",
"#",
"put",
"}",
"the",
"default",
"implementation",
"does",
"nothing",
"the",
"method",
"is",
"called",
"without",
"synchronization",
":",
"other",
"threads",
"may",
"access",
"the",
"cache",
"while",
"this",
"method",
"is",
"executing"
]
| [
"protected",
"void",
"entry",
"removed",
"(",
"boolean",
"evicted",
",",
"k",
"key",
",",
"v",
"old",
"value",
",",
"v",
"new",
"value",
")",
"{",
"}"
]
|
[
"quote",
"all",
"of",
"the",
"active",
"html",
"characters",
"in",
"the",
"given",
"string",
"as",
"they",
"are",
"added",
"to",
"the",
"buffer"
]
| [
"public",
"static",
"void",
"quote",
"html",
"chars",
"(",
"output",
"stream",
"output",
",",
"byte",
"[",
"]",
"buffer",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"i",
"o",
"exception",
"{",
"for",
"(",
"int",
"i",
"=",
"off",
";",
"i",
"<",
"off",
"+",
"len",
";",
"i",
"+",
"+",
")",
"{",
"switch",
"(",
"buffer",
"[",
"i",
"]",
")",
"{",
"case",
"'",
"&",
"'",
":",
"output",
"write",
"(",
"amp",
"bytes",
")",
";",
"break",
";",
"case",
"'",
"<",
"'",
":",
"output",
"write",
"(",
"lt",
"bytes",
")",
";",
"break",
";",
"case",
"'",
">",
"'",
":",
"output",
"write",
"(",
"gt",
"bytes",
")",
";",
"break",
";",
"case",
"'",
"\\",
"'",
"'",
":",
"output",
"write",
"(",
"apos",
"bytes",
")",
";",
"break",
";",
"case",
"'",
"\"",
"'",
":",
"output",
"write",
"(",
"quot",
"bytes",
")",
";",
"break",
";",
"default",
":",
"output",
"write",
"(",
"buffer",
",",
"i",
",",
"1",
")",
";",
"}",
"}",
"}"
]
|
[
"check",
"that",
"a",
"http",
"get",
"request",
"is",
"with",
"given",
"remote",
"host"
]
| [
"private",
"static",
"boolean",
"check",
"http",
"get",
"match",
"host",
"(",
"http",
"get",
"g",
",",
"string",
"h",
")",
"{",
"return",
"g",
"!",
"=",
"null",
"&",
"&",
"g",
"get",
"u",
"r",
"i",
"(",
")",
"get",
"host",
"(",
")",
"equals",
"(",
"h",
")",
";",
"}"
]
|
[
"creates",
"a",
"crosstool",
"release",
"proto",
"for",
"the",
"android",
"ndk",
"the",
"crosstools",
"are",
"generated",
"through",
"code",
"rather",
"than",
"checked",
"in",
"as",
"a",
"flat",
"file",
"to",
"reduce",
"the",
"amount",
"of",
"templateing",
"needed",
"(",
"for",
"parameters",
"like",
"the",
"release",
"name",
"and",
"certain",
"paths",
")",
",",
"to",
"reduce",
"duplication",
",",
"and",
"to",
"make",
"it",
"easier",
"to",
"support",
"future",
"versions",
"of",
"the",
"ndk"
]
| [
"crosstool",
"release",
"crosstool",
"release",
"(",
"ndk",
"paths",
"ndk",
"paths",
",",
"stl",
"impl",
"stl",
"impl",
",",
"string",
"host",
"platform",
")",
";"
]
|
[
"helper",
"function",
"to",
"set",
"an",
"option",
"to",
"hadoop",
"configuration",
"object"
]
| [
"public",
"static",
"void",
"add",
"to",
"conf",
"(",
"configuration",
"conf",
",",
"dist",
"cp",
"option",
"switch",
"option",
")",
"{",
"conf",
"set",
"(",
"option",
"get",
"config",
"label",
"(",
")",
",",
"\"",
"true",
"\"",
")",
";",
"}"
]
|
[
"mark",
"the",
"passage",
"of",
"time",
"and",
"decay",
"the",
"current",
"rate",
"accordingly"
]
| [
"public",
"void",
"tick",
"(",
")",
"{",
"final",
"long",
"count",
"=",
"uncounted",
"sum",
"then",
"reset",
"(",
")",
";",
"final",
"double",
"instant",
"rate",
"=",
"count",
"/",
"interval",
";",
"if",
"(",
"initialized",
")",
"{",
"final",
"double",
"old",
"rate",
"=",
"this",
"rate",
";",
"rate",
"=",
"old",
"rate",
"+",
"(",
"alpha",
"*",
"(",
"instant",
"rate",
"-",
"old",
"rate",
")",
")",
";",
"}",
"else",
"{",
"rate",
"=",
"instant",
"rate",
";",
"initialized",
"=",
"true",
";",
"}",
"}"
]
|
[
"authorize",
"the",
"superuser",
"which",
"is",
"doing",
"do",
"as",
"{",
"@",
"link",
"#",
"authorize",
"(",
"user",
"group",
"information",
",",
"inet",
"address",
")",
"}",
"should",
"be",
"preferred",
"to",
"avoid",
"possibly",
"re",
"-",
"resolving",
"the",
"ip",
"address"
]
| [
"default",
"void",
"authorize",
"(",
"user",
"group",
"information",
"user",
",",
"string",
"remote",
"address",
")",
"throws",
"authorization",
"exception",
"{",
"try",
"{",
"authorize",
"(",
"user",
",",
"inet",
"address",
"get",
"by",
"name",
"(",
"remote",
"address",
")",
")",
";",
"}",
"catch",
"(",
"unknown",
"host",
"exception",
"e",
")",
"{",
"throw",
"new",
"authorization",
"exception",
"(",
"e",
")",
";",
"}",
"}"
]
|
[
"sets",
"the",
"highlight",
"controllers",
"for",
"both",
"decompiler",
"panels"
]
| [
"public",
"void",
"set",
"highlight",
"controllers",
"(",
"clang",
"highlight",
"controller",
"left",
"highlight",
"controller",
",",
"clang",
"highlight",
"controller",
"right",
"highlight",
"controller",
")",
"{",
"highlight",
"controllers",
"[",
"left",
"]",
"=",
"left",
"highlight",
"controller",
";",
"highlight",
"controllers",
"[",
"right",
"]",
"=",
"right",
"highlight",
"controller",
";",
"c",
"panels",
"[",
"left",
"]",
"get",
"decompiler",
"panel",
"(",
")",
"set",
"highlight",
"controller",
"(",
"left",
"highlight",
"controller",
")",
";",
"c",
"panels",
"[",
"right",
"]",
"get",
"decompiler",
"panel",
"(",
")",
"set",
"highlight",
"controller",
"(",
"right",
"highlight",
"controller",
")",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"bar",
"'"
]
| [
"public",
"void",
"bar",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"bar",
"}"
]
|
[
"returns",
"a",
"collection",
"of",
"the",
"names",
"and",
"types",
"of",
"all",
"entries",
"within",
"the",
"directory",
"denoted",
"by",
"the",
"current",
"path",
"follows",
"symbolic",
"links",
"if",
"{",
"@",
"code",
"follow",
"symlinks",
"}",
"is",
"true",
"note",
"that",
"the",
"order",
"of",
"the",
"returned",
"entries",
"is",
"not",
"guaranteed"
]
| [
"public",
"collection",
"<",
"dirent",
">",
"readdir",
"(",
"symlinks",
"follow",
"symlinks",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"file",
"system",
"readdir",
"(",
"this",
",",
"follow",
"symlinks",
"to",
"boolean",
"(",
")",
")",
";",
"}"
]
|
[
"creates",
"a",
"new",
"normalized",
"path",
"fragment"
]
| [
"public",
"static",
"path",
"fragment",
"create",
"(",
"string",
"path",
")",
"{",
"if",
"(",
"path",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"empty",
"fragment",
";",
"}",
"int",
"normalization",
"level",
"=",
"os",
"needs",
"to",
"normalize",
"(",
"path",
")",
";",
"string",
"normalized",
"path",
"=",
"normalization",
"level",
"!",
"=",
"os",
"path",
"policy",
"normalized",
"?",
"os",
"normalize",
"(",
"path",
",",
"normalization",
"level",
")",
":",
"path",
";",
"int",
"drive",
"str",
"length",
"=",
"os",
"get",
"drive",
"str",
"length",
"(",
"normalized",
"path",
")",
";",
"return",
"new",
"path",
"fragment",
"(",
"normalized",
"path",
",",
"drive",
"str",
"length",
")",
";",
"}"
]
|
[
"upload",
"the",
"{",
"@",
"code",
"resource",
"name",
"}",
"to",
"the",
"{",
"@",
"code",
"resource",
"base",
"path",
"}",
"endpoint"
]
| [
"protected",
"void",
"put",
"resource",
"(",
"final",
"rest",
"client",
"client",
",",
"final",
"action",
"listener",
"<",
"resource",
"publish",
"result",
">",
"listener",
",",
"final",
"logger",
"logger",
",",
"final",
"string",
"resource",
"base",
"path",
",",
"final",
"string",
"resource",
"name",
",",
"final",
"map",
"<",
"string",
",",
"string",
">",
"parameters",
",",
"final",
"java",
"util",
"function",
"supplier",
"<",
"http",
"entity",
">",
"body",
",",
"final",
"string",
"resource",
"type",
",",
"final",
"string",
"resource",
"owner",
"name",
",",
"final",
"string",
"resource",
"owner",
"type",
")",
"{",
"logger",
"trace",
"(",
"\"",
"uploading",
"{",
"}",
"[",
"{",
"}",
"]",
"to",
"the",
"[",
"{",
"}",
"]",
"{",
"}",
"\"",
",",
"resource",
"type",
",",
"resource",
"name",
",",
"resource",
"owner",
"name",
",",
"resource",
"owner",
"type",
")",
";",
"final",
"request",
"request",
"=",
"new",
"request",
"(",
"\"",
"put",
"\"",
",",
"resource",
"base",
"path",
"+",
"\"",
"/",
"\"",
"+",
"resource",
"name",
")",
";",
"add",
"default",
"parameters",
"(",
"request",
")",
";",
"add",
"parameters",
"(",
"request",
",",
"parameters",
")",
";",
"request",
"set",
"entity",
"(",
"body",
"get",
"(",
")",
")",
";",
"client",
"perform",
"request",
"async",
"(",
"request",
",",
"new",
"response",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"success",
"(",
"final",
"response",
"response",
")",
"{",
"final",
"int",
"status",
"code",
"=",
"response",
"get",
"status",
"line",
"(",
")",
"get",
"status",
"code",
"(",
")",
";",
"/",
"/",
"200",
"or",
"201",
"if",
"(",
"status",
"code",
"=",
"=",
"rest",
"status",
"ok",
"get",
"status",
"(",
")",
"|",
"|",
"status",
"code",
"=",
"=",
"rest",
"status",
"created",
"get",
"status",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"{",
"}",
"[",
"{",
"}",
"]",
"uploaded",
"to",
"the",
"[",
"{",
"}",
"]",
"{",
"}",
"\"",
",",
"resource",
"type",
",",
"resource",
"name",
",",
"resource",
"owner",
"name",
",",
"resource",
"owner",
"type",
")",
";",
"listener",
"on",
"response",
"(",
"resource",
"publish",
"result",
"ready",
"(",
")",
")",
";",
"}",
"else",
"{",
"on",
"failure",
"(",
"new",
"runtime",
"exception",
"(",
"\"",
"[",
"\"",
"+",
"resource",
"base",
"path",
"+",
"\"",
"/",
"\"",
"+",
"resource",
"name",
"+",
"\"",
"]",
"responded",
"with",
"[",
"\"",
"+",
"status",
"code",
"+",
"\"",
"]",
"\"",
")",
")",
";",
"}",
"}",
"@",
"override",
"public",
"void",
"on",
"failure",
"(",
"final",
"exception",
"exception",
")",
"{",
"logger",
"error",
"(",
"(",
"supplier",
"<",
"?",
">",
")",
"(",
")",
"-",
">",
"new",
"parameterized",
"message",
"(",
"\"",
"failed",
"to",
"upload",
"{",
"}",
"[",
"{",
"}",
"]",
"on",
"the",
"[",
"{",
"}",
"]",
"{",
"}",
"\"",
",",
"resource",
"type",
",",
"resource",
"name",
",",
"resource",
"owner",
"name",
",",
"resource",
"owner",
"type",
")",
",",
"exception",
")",
";",
"listener",
"on",
"failure",
"(",
"exception",
")",
";",
"}",
"}",
")",
";",
"}"
]
|
[
"convert",
"the",
"given",
"user",
"value",
",",
"as",
"passed",
"into",
"the",
"put",
"method",
",",
"to",
"a",
"value",
"in",
"the",
"internal",
"store",
"(",
"adapting",
"{",
"@",
"code",
"null",
"}",
")"
]
| [
"protected",
"object",
"to",
"store",
"value",
"(",
"@",
"nullable",
"object",
"user",
"value",
")",
"{",
"if",
"(",
"user",
"value",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"this",
"allow",
"null",
"values",
")",
"{",
"return",
"null",
"value",
"instance",
";",
"}",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"cache",
"'",
"\"",
"+",
"get",
"name",
"(",
")",
"+",
"\"",
"'",
"is",
"configured",
"to",
"not",
"allow",
"null",
"values",
"but",
"null",
"was",
"provided",
"\"",
")",
";",
"}",
"return",
"user",
"value",
";",
"}"
]
|
[
"returns",
"an",
"{",
"@",
"link",
"optional",
"}",
"containing",
"the",
"first",
"element",
"in",
"this",
"fluent",
"iterable",
"that",
"satisfies",
"the",
"given",
"predicate",
",",
"if",
"such",
"an",
"element",
"exists",
"<",
"b",
">",
"warning",
":",
"<",
"b",
">",
"avoid",
"using",
"a",
"{",
"@",
"code",
"predicate",
"}",
"that",
"matches",
"{",
"@",
"code",
"null",
"}",
"if",
"{",
"@",
"code",
"null",
"}",
"is",
"matched",
"in",
"this",
"fluent",
"iterable",
",",
"a",
"{",
"@",
"link",
"null",
"pointer",
"exception",
"}",
"will",
"be",
"thrown",
"<",
"b",
">",
"{",
"@",
"code",
"stream",
"}",
"equivalent",
":",
"<",
"b",
">",
"{",
"@",
"code",
"stream",
"filter",
"(",
"predicate",
")",
"find",
"first",
"(",
")",
"}"
]
| [
"public",
"final",
"optional",
"<",
"e",
">",
"first",
"match",
"(",
"predicate",
"<",
"?",
"super",
"e",
">",
"predicate",
")",
"{",
"return",
"iterables",
"try",
"find",
"(",
"get",
"delegate",
"(",
")",
",",
"predicate",
")",
";",
"}"
]
|
[
"elements",
"of",
"non",
"-",
"comparable",
"classes",
"equal",
"to",
"those",
"of",
"classes",
"with",
"erased",
"generic",
"type",
"parameters",
"based",
"on",
"comparable",
"can",
"be",
"inserted",
"and",
"found"
]
| [
"public",
"void",
"test",
"generic",
"comparable",
"2",
"(",
")",
"{",
"int",
"size",
"=",
"500",
";",
"/",
"/",
"makes",
"measured",
"test",
"run",
"time",
"-",
">",
"6",
"0ms",
"concurrent",
"map",
"<",
"object",
",",
"boolean",
">",
"m",
"=",
"map",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"m",
"put",
"(",
"collections",
"singleton",
"list",
"(",
"new",
"bi",
"(",
"i",
")",
")",
",",
"true",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"lexicographic",
"list",
"<",
"bi",
">",
"bis",
"=",
"new",
"lexicographic",
"list",
"<",
"bi",
">",
"(",
"new",
"bi",
"(",
"i",
")",
")",
";",
"assert",
"true",
"(",
"m",
"contains",
"key",
"(",
"bis",
")",
")",
";",
"}",
"}"
]
|
[
"add",
"a",
"keyvalue",
"but",
"only",
"if",
"the",
"value",
"is",
"not",
"-",
"null",
"otherwise",
"no",
"-",
"op"
]
| [
"public",
"void",
"put",
"if",
"not",
"null",
"(",
"string",
"key",
",",
"string",
"value",
")",
"{",
"if",
"(",
"value",
"!",
"=",
"null",
")",
"put",
"(",
"key",
",",
"value",
")",
";",
"}"
]
|
[
"mark",
"this",
"monitor",
"as",
"disabled",
",",
"to",
"prevent",
"this",
"from",
"showing",
"up",
"in",
"the",
"ui"
]
| [
"public",
"void",
"disable",
"(",
"boolean",
"value",
")",
"throws",
"i",
"o",
"exception",
"{",
"abstract",
"c",
"i",
"base",
"jenkins",
"=",
"jenkins",
"get",
"(",
")",
";",
"set",
"<",
"string",
">",
"set",
"=",
"jenkins",
"get",
"disabled",
"administrative",
"monitors",
"(",
")",
";",
"if",
"(",
"value",
")",
"{",
"set",
"add",
"(",
"id",
")",
";",
"}",
"else",
"{",
"set",
"remove",
"(",
"id",
")",
";",
"}",
"jenkins",
"set",
"disabled",
"administrative",
"monitors",
"(",
"set",
")",
";",
"jenkins",
"save",
"(",
")",
";",
"}"
]
|
[
"create",
"a",
"masked",
"value",
"from",
"a",
"mask",
"and",
"a",
"long",
"any",
"positions",
"in",
"{",
"@",
"code",
"msk",
"}",
"set",
"to",
"0",
"create",
"an",
"{",
"@",
"code",
"x",
"}",
"in",
"the",
"corresponding",
"position",
"of",
"the",
"result",
"otherwise",
",",
"the",
"position",
"takes",
"the",
"corresponding",
"bit",
"from",
"{",
"@",
"code",
"val",
"}"
]
| [
"public",
"static",
"masked",
"long",
"from",
"mask",
"and",
"value",
"(",
"long",
"msk",
",",
"long",
"val",
")",
"{",
"if",
"(",
"msk",
"=",
"=",
"0",
")",
"{",
"return",
"unks",
";",
"}",
"if",
"(",
"msk",
"=",
"=",
"-",
"1",
"&",
"&",
"val",
"=",
"=",
"0",
")",
"{",
"return",
"zero",
";",
"}",
"if",
"(",
"msk",
"=",
"=",
"-",
"1",
"&",
"&",
"val",
"=",
"=",
"-",
"1",
")",
"{",
"return",
"ones",
";",
"}",
"return",
"new",
"masked",
"long",
"(",
"msk",
",",
"val",
")",
";",
"}"
]
|
[
"added",
"apikey",
"info",
"in",
"access",
"section"
]
| [
"public",
"void",
"test",
"sample",
"asciidoc",
"markup",
"generation",
"access",
"api",
"key",
"(",
")",
"{",
"assert",
"assert",
"true",
"(",
"markup",
"content",
"contains",
"(",
"\"",
"*",
"a",
"p",
"i",
"key",
"*",
"\"",
")",
",",
"\"",
"access",
"section",
"mit",
"apikey",
"expected",
"\"",
")",
";",
"assert",
"assert",
"false",
"(",
"markup",
"content",
"contains",
"(",
"\"",
"*",
"o",
"auth",
"*",
"\"",
")",
",",
"\"",
"access",
"section",
"no",
"oauth",
"expected",
"\"",
")",
";",
"assert",
"assert",
"false",
"(",
"markup",
"content",
"contains",
"(",
"\"",
"*",
"http",
"basic",
"*",
"\"",
")",
",",
"\"",
"access",
"section",
"no",
"http",
"basic",
"expected",
"\"",
")",
";",
"}"
]
|
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
]
| [
"private",
"static",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
]
|
[
"removes",
"{",
"@",
"code",
"edge",
"}",
"from",
"this",
"network",
",",
"if",
"it",
"is",
"present"
]
| [
"boolean",
"remove",
"edge",
"(",
"e",
"edge",
")",
";"
]
|
[
"place",
"an",
"order",
"for",
"a",
"pet",
"<",
"b",
">",
"200",
"<",
"b",
">",
"-",
"successful",
"operation",
"<",
"b",
">",
"400",
"<",
"b",
">",
"-",
"invalid",
"order"
]
| [
"public",
"order",
"place",
"order",
"(",
"order",
"body",
",",
"map",
"<",
"string",
",",
"object",
">",
"params",
")",
"throws",
"i",
"o",
"exception",
"{",
"http",
"response",
"response",
"=",
"place",
"order",
"for",
"http",
"response",
"(",
"body",
",",
"params",
")",
";",
"type",
"reference",
"<",
"order",
">",
"type",
"ref",
"=",
"new",
"type",
"reference",
"<",
"order",
">",
"(",
")",
"{",
"}",
";",
"return",
"api",
"client",
"get",
"object",
"mapper",
"(",
")",
"read",
"value",
"(",
"response",
"get",
"content",
"(",
")",
",",
"type",
"ref",
")",
";",
"}"
]
|
[
"mark",
"all",
"logged",
"metrics",
"with",
"the",
"given",
"marker"
]
| [
"public",
"builder",
"mark",
"with",
"(",
"marker",
"marker",
")",
"{",
"this",
"marker",
"=",
"marker",
";",
"return",
"this",
";",
"}"
]
|
[
"create",
"a",
"{",
"@",
"link",
"call",
"meta",
"data",
"provider",
"}",
"based",
"on",
"the",
"database",
"meta",
"-",
"data"
]
| [
"public",
"static",
"call",
"meta",
"data",
"provider",
"create",
"meta",
"data",
"provider",
"(",
"data",
"source",
"data",
"source",
",",
"final",
"call",
"meta",
"data",
"context",
"context",
")",
"{",
"try",
"{",
"return",
"jdbc",
"utils",
"extract",
"database",
"meta",
"data",
"(",
"data",
"source",
",",
"database",
"meta",
"data",
"-",
">",
"{",
"string",
"database",
"product",
"name",
"=",
"jdbc",
"utils",
"common",
"database",
"name",
"(",
"database",
"meta",
"data",
"get",
"database",
"product",
"name",
"(",
")",
")",
";",
"boolean",
"access",
"procedure",
"column",
"meta",
"data",
"=",
"context",
"is",
"access",
"call",
"parameter",
"meta",
"data",
"(",
")",
";",
"if",
"(",
"context",
"is",
"function",
"(",
")",
")",
"{",
"if",
"(",
"!",
"supported",
"database",
"products",
"for",
"functions",
"contains",
"(",
"database",
"product",
"name",
")",
")",
"{",
"if",
"(",
"logger",
"is",
"info",
"enabled",
"(",
")",
")",
"{",
"logger",
"info",
"(",
"database",
"product",
"name",
"+",
"\"",
"is",
"not",
"one",
"of",
"the",
"databases",
"fully",
"supported",
"for",
"function",
"calls",
"\"",
"+",
"\"",
"-",
"-",
"supported",
"are",
":",
"\"",
"+",
"supported",
"database",
"products",
"for",
"functions",
")",
";",
"}",
"if",
"(",
"access",
"procedure",
"column",
"meta",
"data",
")",
"{",
"logger",
"info",
"(",
"\"",
"metadata",
"processing",
"disabled",
"-",
"you",
"must",
"specify",
"all",
"parameters",
"explicitly",
"\"",
")",
";",
"access",
"procedure",
"column",
"meta",
"data",
"=",
"false",
";",
"}",
"}",
"}",
"else",
"{",
"if",
"(",
"!",
"supported",
"database",
"products",
"for",
"procedures",
"contains",
"(",
"database",
"product",
"name",
")",
")",
"{",
"if",
"(",
"logger",
"is",
"info",
"enabled",
"(",
")",
")",
"{",
"logger",
"info",
"(",
"database",
"product",
"name",
"+",
"\"",
"is",
"not",
"one",
"of",
"the",
"databases",
"fully",
"supported",
"for",
"procedure",
"calls",
"\"",
"+",
"\"",
"-",
"-",
"supported",
"are",
":",
"\"",
"+",
"supported",
"database",
"products",
"for",
"procedures",
")",
";",
"}",
"if",
"(",
"access",
"procedure",
"column",
"meta",
"data",
")",
"{",
"logger",
"info",
"(",
"\"",
"metadata",
"processing",
"disabled",
"-",
"you",
"must",
"specify",
"all",
"parameters",
"explicitly",
"\"",
")",
";",
"access",
"procedure",
"column",
"meta",
"data",
"=",
"false",
";",
"}",
"}",
"}",
"call",
"meta",
"data",
"provider",
"provider",
";",
"if",
"(",
"\"",
"oracle",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"oracle",
"call",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"postgre",
"s",
"q",
"l",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"postgres",
"call",
"meta",
"data",
"provider",
"(",
"(",
"database",
"meta",
"data",
")",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"apache",
"derby",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"derby",
"call",
"meta",
"data",
"provider",
"(",
"(",
"database",
"meta",
"data",
")",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"db2",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"db",
"2",
"call",
"meta",
"data",
"provider",
"(",
"(",
"database",
"meta",
"data",
")",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"hdb",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"hana",
"call",
"meta",
"data",
"provider",
"(",
"(",
"database",
"meta",
"data",
")",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"microsoft",
"sql",
"server",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"sql",
"server",
"call",
"meta",
"data",
"provider",
"(",
"(",
"database",
"meta",
"data",
")",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"sybase",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"sybase",
"call",
"meta",
"data",
"provider",
"(",
"(",
"database",
"meta",
"data",
")",
")",
";",
"}",
"else",
"{",
"provider",
"=",
"new",
"generic",
"call",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
")",
";",
"}",
"if",
"(",
"logger",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"using",
"\"",
"+",
"provider",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"}",
"provider",
"initialize",
"with",
"meta",
"data",
"(",
"database",
"meta",
"data",
")",
";",
"if",
"(",
"access",
"procedure",
"column",
"meta",
"data",
")",
"{",
"provider",
"initialize",
"with",
"procedure",
"column",
"meta",
"data",
"(",
"database",
"meta",
"data",
",",
"context",
"get",
"catalog",
"name",
"(",
")",
",",
"context",
"get",
"schema",
"name",
"(",
")",
",",
"context",
"get",
"procedure",
"name",
"(",
")",
")",
";",
"}",
"return",
"provider",
";",
"}",
")",
";",
"}",
"catch",
"(",
"meta",
"data",
"access",
"exception",
"ex",
")",
"{",
"throw",
"new",
"data",
"access",
"resource",
"failure",
"exception",
"(",
"\"",
"error",
"retrieving",
"database",
"meta",
"-",
"data",
"\"",
",",
"ex",
")",
";",
"}",
"}"
]
|
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
]
| [
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
]
|
[
"translate",
"{",
"@",
"link",
"edge",
"}",
"i",
"ds",
"using",
"the",
"given",
"{",
"@",
"link",
"translate",
"function",
"}"
]
| [
"public",
"static",
"<",
"old",
",",
"new",
",",
"ev",
">",
"data",
"set",
"<",
"edge",
"<",
"new",
",",
"ev",
">",
">",
"translate",
"edge",
"ids",
"(",
"data",
"set",
"<",
"edge",
"<",
"old",
",",
"ev",
">",
">",
"edges",
",",
"translate",
"function",
"<",
"old",
",",
"new",
">",
"translator",
",",
"int",
"parallelism",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"edges",
")",
";",
"preconditions",
"check",
"not",
"null",
"(",
"translator",
")",
";",
"class",
"<",
"edge",
"<",
"new",
",",
"ev",
">",
">",
"edge",
"class",
"=",
"(",
"class",
"<",
"edge",
"<",
"new",
",",
"ev",
">",
">",
")",
"(",
"class",
"<",
"?",
"extends",
"edge",
">",
")",
"edge",
"class",
";",
"type",
"information",
"<",
"old",
">",
"old",
"type",
"=",
"(",
"(",
"tuple",
"type",
"info",
"<",
"edge",
"<",
"old",
",",
"ev",
">",
">",
")",
"edges",
"get",
"type",
"(",
")",
")",
"get",
"type",
"at",
"(",
"0",
")",
";",
"type",
"information",
"<",
"new",
">",
"new",
"type",
"=",
"type",
"extractor",
"get",
"unary",
"operator",
"return",
"type",
"(",
"translator",
",",
"translate",
"function",
"class",
",",
"0",
",",
"1",
",",
"new",
"int",
"[",
"]",
"{",
"1",
"}",
",",
"old",
"type",
",",
"null",
",",
"false",
")",
";",
"type",
"information",
"<",
"ev",
">",
"edge",
"value",
"type",
"=",
"(",
"(",
"tuple",
"type",
"info",
"<",
"edge",
"<",
"old",
",",
"ev",
">",
">",
")",
"edges",
"get",
"type",
"(",
")",
")",
"get",
"type",
"at",
"(",
"2",
")",
";",
"tuple",
"type",
"info",
"<",
"edge",
"<",
"new",
",",
"ev",
">",
">",
"return",
"type",
"=",
"new",
"tuple",
"type",
"info",
"<",
">",
"(",
"edge",
"class",
",",
"new",
"type",
",",
"new",
"type",
",",
"edge",
"value",
"type",
")",
";",
"return",
"edges",
"map",
"(",
"new",
"translate",
"edge",
"id",
"<",
">",
"(",
"translator",
")",
")",
"returns",
"(",
"return",
"type",
")",
"set",
"parallelism",
"(",
"parallelism",
")",
"name",
"(",
"\"",
"translate",
"edge",
"i",
"ds",
"\"",
")",
";",
"}"
]
|
[
"adds",
"a",
"get",
"connection",
"behavior",
"that",
"is",
"the",
"default",
"get",
"connection",
"behavior"
]
| [
"public",
"boolean",
"add",
"get",
"connection",
"behavior",
"(",
"stubbable",
"connection",
"manager",
"get",
"connection",
"behavior",
"behavior",
")",
"{",
"return",
"connection",
"manager",
"(",
")",
"set",
"default",
"get",
"connection",
"behavior",
"(",
"behavior",
")",
";",
"}"
]
|
[
"sets",
"the",
"current",
"transformation",
"to",
"the",
"given",
"one"
]
| [
"public",
"void",
"set",
"transform",
"(",
"matrix",
"4",
"transform",
")",
"{",
"this",
"transform",
"set",
"(",
"transform",
")",
";",
"transform",
"get",
"scale",
"(",
"scale",
")",
";",
"}"
]
|
[
"determine",
"if",
"the",
"user",
"has",
"permission",
"of",
"the",
"resource",
"note",
"if",
"the",
"user",
"has",
"many",
"roles",
",",
"this",
"method",
"returns",
"true",
"if",
"any",
"one",
"role",
"of",
"the",
"user",
"has",
"the",
"desired",
"permission"
]
| [
"public",
"boolean",
"has",
"permission",
"(",
"string",
"username",
",",
"permission",
"permission",
")",
"{",
"/",
"/",
"update",
"password",
"if",
"(",
"nacos",
"auth",
"config",
"update",
"password",
"entry",
"point",
"equals",
"(",
"permission",
"get",
"resource",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"list",
"<",
"role",
"info",
">",
"role",
"info",
"list",
"=",
"get",
"roles",
"(",
"username",
")",
";",
"if",
"(",
"collections",
"is",
"empty",
"(",
"role",
"info",
"list",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"global",
"admin",
"pass",
":",
"for",
"(",
"role",
"info",
"role",
"info",
":",
"role",
"info",
"list",
")",
"{",
"if",
"(",
"global",
"admin",
"role",
"equals",
"(",
"role",
"info",
"get",
"role",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"/",
"/",
"old",
"global",
"admin",
"can",
"pass",
"resource",
"'",
"console",
"/",
"'",
":",
"if",
"(",
"permission",
"get",
"resource",
"(",
")",
"starts",
"with",
"(",
"nacos",
"auth",
"config",
"console",
"resource",
"name",
"prefix",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"for",
"other",
"roles",
",",
"use",
"a",
"pattern",
"match",
"to",
"decide",
"if",
"pass",
"or",
"not",
"for",
"(",
"role",
"info",
"role",
"info",
":",
"role",
"info",
"list",
")",
"{",
"list",
"<",
"permission",
"info",
">",
"permission",
"info",
"list",
"=",
"get",
"permissions",
"(",
"role",
"info",
"get",
"role",
"(",
")",
")",
";",
"if",
"(",
"collections",
"is",
"empty",
"(",
"permission",
"info",
"list",
")",
")",
"{",
"continue",
";",
"}",
"for",
"(",
"permission",
"info",
"permission",
"info",
":",
"permission",
"info",
"list",
")",
"{",
"string",
"permission",
"resource",
"=",
"permission",
"info",
"get",
"resource",
"(",
")",
"replace",
"all",
"(",
"\"",
"\\",
"\\",
"*",
"\"",
",",
"\"",
"*",
"\"",
")",
";",
"string",
"permission",
"action",
"=",
"permission",
"info",
"get",
"action",
"(",
")",
";",
"if",
"(",
"permission",
"action",
"contains",
"(",
"permission",
"get",
"action",
"(",
")",
")",
"&",
"&",
"pattern",
"matches",
"(",
"permission",
"resource",
",",
"permission",
"get",
"resource",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}"
]
|
[
"blocks",
"for",
"{",
"@",
"link",
"#",
"wait",
"for",
"redundancy",
"ms",
"}",
"waiting",
"for",
"corrupt",
"block",
"count",
"to",
"reach",
"a",
"certain",
"count"
]
| [
"protected",
"void",
"wait",
"for",
"corrupt",
"block",
"(",
"final",
"long",
"corrupt",
"cnt",
")",
"throws",
"timeout",
"exception",
",",
"interrupted",
"exception",
"{",
"/",
"/",
"wait",
"for",
"the",
"redundancy",
"monitor",
"to",
"mark",
"the",
"file",
"as",
"corrupt",
"generic",
"test",
"utils",
"wait",
"for",
"(",
"(",
")",
"-",
">",
"{",
"iterator",
"<",
"block",
"info",
">",
"b",
"info",
"iter",
"=",
"cluster",
"get",
"name",
"node",
"(",
")",
"get",
"namesystem",
"(",
")",
"get",
"block",
"manager",
"(",
")",
"get",
"corrupt",
"replica",
"block",
"iterator",
"(",
")",
";",
"int",
"count",
"=",
"0",
";",
"while",
"(",
"b",
"info",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"b",
"info",
"iter",
"next",
"(",
")",
";",
"count",
"+",
"+",
";",
"}",
"return",
"corrupt",
"cnt",
"=",
"=",
"count",
";",
"}",
",",
"2",
"*",
"wait",
"poll",
"interval",
"large",
"ms",
",",
"wait",
"for",
"redundancy",
"ms",
")",
";",
"}"
]
|
[
"call",
"to",
"set",
"to",
"hide",
"right"
]
| [
"public",
"void",
"hide",
"right",
"(",
")",
"{",
"hide",
"down",
"(",
")",
";",
"}"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"job",
"graph",
"store",
"}"
]
| [
"job",
"graph",
"store",
"create",
"(",
")",
";"
]
|
[
"returns",
"a",
"key",
"for",
"the",
"members",
"of",
"{",
"@",
"code",
"type",
"}"
]
| [
"public",
"static",
"string",
"get",
"members",
"key",
"(",
"class",
"<",
"?",
">",
"key",
")",
"{",
"/",
"/",
"for",
"classes",
"key",
"get",
"name",
"(",
")",
"is",
"equivalent",
"to",
"get",
"(",
"key",
")",
"return",
"\"",
"members",
"/",
"\"",
"concat",
"(",
"key",
"get",
"name",
"(",
")",
")",
";",
"}"
]
|
[
"determine",
"if",
"the",
"specified",
"directory",
"contains",
"a",
"likely",
"indexed",
"filesystem"
]
| [
"public",
"static",
"boolean",
"has",
"indexed",
"structure",
"(",
"string",
"root",
"path",
")",
"{",
"file",
"root",
"file",
"=",
"new",
"file",
"(",
"root",
"path",
")",
";",
"if",
"(",
"root",
"file",
"is",
"directory",
"(",
")",
")",
"{",
"try",
"{",
"int",
"item",
"count",
"=",
"verify",
"indexed",
"file",
"structure",
"(",
"root",
"file",
")",
";",
"/",
"/",
"if",
"there",
"are",
"no",
"items",
"assume",
"it",
"is",
"not",
"indexed",
"/",
"/",
"since",
"we",
"rely",
"on",
"property",
"files",
"to",
"make",
"this",
"/",
"/",
"determination",
"return",
"item",
"count",
"!",
"=",
"0",
";",
"}",
"catch",
"(",
"index",
"read",
"exception",
"e",
")",
"{",
"/",
"/",
"contains",
"non",
"-",
"indexed",
"content",
"}",
"}",
"return",
"false",
";",
"}"
]
|
[
"build",
"a",
"{",
"@",
"link",
"priority",
"queue",
"}",
"to",
"sort",
"the",
"buckets",
"after",
"we",
"'",
"ve",
"collected",
"all",
"of",
"the",
"buckets",
"we",
"'",
"ll",
"collect",
"all",
"entries",
"in",
"the",
"queue"
]
| [
"abstract",
"priority",
"queue",
"<",
"b",
">",
"build",
"priority",
"queue",
"(",
"int",
"size",
")",
";"
]
|
[
"test",
"the",
"property",
"'",
"name",
"'"
]
| [
"public",
"void",
"name",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"}"
]
|
[
"retrieve",
"the",
"cors",
"configuration",
"for",
"the",
"given",
"handler"
]
| [
"protected",
"cors",
"configuration",
"get",
"cors",
"configuration",
"(",
"object",
"handler",
",",
"http",
"servlet",
"request",
"request",
")",
"{",
"object",
"resolved",
"handler",
"=",
"handler",
";",
"if",
"(",
"handler",
"instanceof",
"handler",
"execution",
"chain",
")",
"{",
"resolved",
"handler",
"=",
"(",
"(",
"handler",
"execution",
"chain",
")",
"handler",
")",
"get",
"handler",
"(",
")",
";",
"}",
"if",
"(",
"resolved",
"handler",
"instanceof",
"cors",
"configuration",
"source",
")",
"{",
"return",
"(",
"(",
"cors",
"configuration",
"source",
")",
"resolved",
"handler",
")",
"get",
"cors",
"configuration",
"(",
"request",
")",
";",
"}",
"return",
"null",
";",
"}"
]
|
[
"set",
"the",
"hessian",
"proxy",
"factory",
"instance",
"to",
"use",
"if",
"not",
"specified",
",",
"a",
"default",
"hessian",
"proxy",
"factory",
"will",
"be",
"created",
"allows",
"to",
"use",
"an",
"externally",
"configured",
"factory",
"instance",
",",
"in",
"particular",
"a",
"custom",
"hessian",
"proxy",
"factory",
"subclass"
]
| [
"public",
"void",
"set",
"proxy",
"factory",
"(",
"@",
"nullable",
"hessian",
"proxy",
"factory",
"proxy",
"factory",
")",
"{",
"this",
"proxy",
"factory",
"=",
"(",
"proxy",
"factory",
"!",
"=",
"null",
"?",
"proxy",
"factory",
":",
"new",
"hessian",
"proxy",
"factory",
"(",
")",
")",
";",
"}"
]
|
[
"required",
"to",
"support",
"serialization",
"replaces",
"with",
"canonical",
"instance",
"on",
"deserialization",
",",
"protecting",
"singleton",
"pattern",
"alternative",
"to",
"overriding",
"{",
"@",
"code",
"equals",
"(",
")",
"}"
]
| [
"private",
"object",
"read",
"resolve",
"(",
")",
"{",
"return",
"instance",
";",
"}"
]
|
[
"get",
"gpu",
"device",
"information",
"from",
"system",
"this",
"need",
"to",
"be",
"called",
"after",
"initialize",
"please",
"note",
"that",
"this",
"only",
"works",
"on",
"nix",
"platform",
",",
"so",
"external",
"caller",
"need",
"to",
"make",
"sure",
"this"
]
| [
"public",
"synchronized",
"gpu",
"device",
"information",
"get",
"gpu",
"device",
"information",
"(",
")",
"throws",
"yarn",
"exception",
"{",
"if",
"(",
"num",
"of",
"error",
"execution",
"since",
"last",
"succeed",
"=",
"=",
"max",
"repeated",
"error",
"allowed",
")",
"{",
"string",
"msg",
"=",
"get",
"error",
"message",
"of",
"script",
"execution",
"threshold",
"reached",
"(",
")",
";",
"log",
"error",
"(",
"msg",
")",
";",
"throw",
"new",
"yarn",
"exception",
"(",
"msg",
")",
";",
"}",
"try",
"{",
"last",
"discovered",
"gpu",
"information",
"=",
"nvidia",
"binary",
"helper",
"get",
"gpu",
"device",
"information",
"(",
"path",
"of",
"gpu",
"binary",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"num",
"of",
"error",
"execution",
"since",
"last",
"succeed",
"+",
"+",
";",
"string",
"msg",
"=",
"get",
"error",
"message",
"of",
"script",
"execution",
"(",
"e",
"get",
"message",
"(",
")",
")",
";",
"log",
"debug",
"(",
"msg",
")",
";",
"throw",
"new",
"yarn",
"exception",
"(",
"msg",
",",
"e",
")",
";",
"}",
"catch",
"(",
"yarn",
"exception",
"e",
")",
"{",
"num",
"of",
"error",
"execution",
"since",
"last",
"succeed",
"+",
"+",
";",
"string",
"msg",
"=",
"get",
"failed",
"to",
"parse",
"error",
"message",
"(",
"e",
"get",
"message",
"(",
")",
")",
";",
"log",
"debug",
"(",
"msg",
",",
"e",
")",
";",
"throw",
"e",
";",
"}",
"return",
"last",
"discovered",
"gpu",
"information",
";",
"}"
]
|
[
"the",
"query",
"returned",
"a",
"cname",
"which",
"we",
"may",
"attempt",
"to",
"follow",
"with",
"a",
"new",
"query",
"note",
"that",
"multiple",
"queries",
"may",
"be",
"encountering",
"a",
"cname",
"for",
"example",
"a",
"if",
"both",
"{",
"@",
"link",
"dns",
"record",
"type",
"#",
"aaaa",
"}",
"and",
"{",
"@",
"link",
"dns",
"record",
"type",
"#",
"a",
"}",
"are",
"supported",
"we",
"may",
"query",
"for",
"both"
]
| [
"dns",
"query",
"lifecycle",
"observer",
"query",
"c",
"n",
"a",
"m",
"ed",
"(",
"dns",
"question",
"cname",
"question",
")",
";"
]
|
[
"set",
"true",
"during",
"setup",
"if",
"want",
"to",
"dump",
"test",
"settings",
"and",
"coding",
"data",
",",
"useful",
"in",
"debugging"
]
| [
"protected",
"void",
"set",
"allow",
"dump",
"(",
"boolean",
"allow",
"dump",
")",
"{",
"this",
"allow",
"dump",
"=",
"allow",
"dump",
";",
"}"
]
|
[
"returns",
"linkstamps",
"for",
"this",
"link",
"action"
]
| [
"public",
"final",
"immutable",
"set",
"<",
"linkstamp",
">",
"get",
"linkstamps",
"(",
")",
"{",
"return",
"linkstamps",
"builder",
"build",
"(",
")",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.