docstring_tokens
list | code_tokens
list |
---|---|
[
"this",
"gets",
"the",
"size",
"of",
"the",
"image",
"this",
"makes",
"it",
"easier",
"to",
"adjust",
"the",
"size",
"of",
"your",
"image",
"preview",
"to",
"the",
"the",
"size",
"of",
"the",
"scaled",
"image"
] |
[
"public",
"int",
"[",
"]",
"get",
"scale",
"size",
"(",
")",
"{",
"return",
"new",
"int",
"[",
"]",
"{",
"scale",
"width",
",",
"scale",
"height",
"}",
";",
"}"
] |
[
"load",
"in",
"the",
"filesystem",
"image",
"from",
"file",
"it",
"'",
"s",
"a",
"big",
"list",
"of",
"filenames",
"and",
"blocks"
] |
[
"private",
"void",
"load",
"f",
"s",
"image",
"(",
"file",
"cur",
"file",
",",
"m",
"d",
"5",
"hash",
"expected",
"md",
"5",
",",
"f",
"s",
"namesystem",
"target",
",",
"meta",
"recovery",
"context",
"recovery",
",",
"boolean",
"require",
"same",
"layout",
"version",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"block",
"pool",
"id",
"is",
"required",
"when",
"the",
"fs",
"image",
"loader",
"loads",
"the",
"rolling",
"upgrade",
"/",
"/",
"information",
"make",
"sure",
"the",
"id",
"is",
"properly",
"set",
"target",
"set",
"block",
"pool",
"id",
"(",
"this",
"get",
"block",
"pool",
"i",
"d",
"(",
")",
")",
";",
"f",
"s",
"image",
"format",
"loader",
"delegator",
"loader",
"=",
"f",
"s",
"image",
"format",
"new",
"loader",
"(",
"conf",
",",
"target",
")",
";",
"loader",
"load",
"(",
"cur",
"file",
",",
"require",
"same",
"layout",
"version",
")",
";",
"/",
"/",
"check",
"that",
"the",
"image",
"digest",
"we",
"loaded",
"matches",
"up",
"with",
"what",
"/",
"/",
"we",
"expected",
"m",
"d",
"5",
"hash",
"read",
"image",
"md",
"5",
"=",
"loader",
"get",
"loaded",
"image",
"md",
"5",
"(",
")",
";",
"if",
"(",
"expected",
"md",
"5",
"!",
"=",
"null",
"&",
"&",
"!",
"expected",
"md",
"5",
"equals",
"(",
"read",
"image",
"md",
"5",
")",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"image",
"file",
"\"",
"+",
"cur",
"file",
"+",
"\"",
"is",
"corrupt",
"with",
"md5",
"checksum",
"of",
"\"",
"+",
"read",
"image",
"md",
"5",
"+",
"\"",
"but",
"expecting",
"\"",
"+",
"expected",
"md",
"5",
")",
";",
"}",
"long",
"tx",
"id",
"=",
"loader",
"get",
"loaded",
"image",
"tx",
"id",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"loaded",
"image",
"for",
"txid",
"\"",
"+",
"tx",
"id",
"+",
"\"",
"from",
"\"",
"+",
"cur",
"file",
")",
";",
"last",
"applied",
"tx",
"id",
"=",
"tx",
"id",
";",
"storage",
"set",
"most",
"recent",
"checkpoint",
"info",
"(",
"tx",
"id",
",",
"cur",
"file",
"last",
"modified",
"(",
")",
")",
";",
"}"
] |
[
"set",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"name",
"<",
"code",
">",
"property",
"to",
"a",
"<",
"code",
">",
"double",
"<",
"code",
">"
] |
[
"public",
"void",
"set",
"double",
"(",
"string",
"name",
",",
"double",
"value",
")",
"{",
"set",
"(",
"name",
",",
"double",
"to",
"string",
"(",
"value",
")",
")",
";",
"}"
] |
[
"get",
"the",
"rotational",
"inertia",
"of",
"the",
"body",
"about",
"the",
"local",
"origin"
] |
[
"public",
"float",
"get",
"inertia",
"(",
")",
"{",
"return",
"body",
"get",
"inertia",
"(",
")",
";",
"}"
] |
[
"enter",
"a",
"parse",
"tree",
"produced",
"by",
"the",
"{",
"@",
"code",
"primitive",
"data",
"type",
"}",
"labeled",
"alternative",
"in",
"{",
"@",
"link",
"sql",
"base",
"parser",
"#",
"data",
"type",
"}"
] |
[
"void",
"enter",
"primitive",
"data",
"type",
"(",
"sql",
"base",
"parser",
"primitive",
"data",
"type",
"context",
"ctx",
")",
";"
] |
[
"append",
"is",
"not",
"supported",
"in",
"ec"
] |
[
"public",
"void",
"test",
"append",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"path",
"p",
"=",
"new",
"path",
"(",
"\"",
"/",
"file",
"test",
"\"",
")",
";",
"fs",
"mkdirs",
"(",
"p",
")",
";",
"path",
"f",
"=",
"new",
"path",
"(",
"\"",
"/",
"file",
"test",
"/",
"append",
"file",
"\"",
")",
";",
"try",
"(",
"data",
"output",
"stream",
"dos",
"=",
"fs",
"create",
"(",
"f",
")",
")",
"{",
"dos",
"write",
"bytes",
"(",
"\"",
"create",
"with",
"some",
"content",
"\"",
")",
";",
"}",
"try",
"{",
"fs",
"append",
"(",
"f",
")",
";",
"fail",
"(",
"\"",
"append",
"is",
"not",
"supported",
"on",
"erasure",
"coded",
"file",
"\"",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"/",
"/",
"work",
"as",
"expected",
"}",
"}"
] |
[
"initializes",
"the",
"array",
"with",
"the",
"provided",
"number",
"of",
"bytes"
] |
[
"private",
"void",
"initialize",
"(",
"int",
"bytes",
")",
"{",
"int",
"capacity",
"=",
"bytes",
"/",
"element",
"length",
"in",
"bytes",
";",
"preconditions",
"check",
"argument",
"(",
"capacity",
">",
"0",
",",
"\"",
"requested",
"array",
"with",
"zero",
"capacity",
"\"",
")",
";",
"preconditions",
"check",
"argument",
"(",
"capacity",
"<",
"=",
"max",
"array",
"size",
",",
"\"",
"requested",
"capacity",
"exceeds",
"limit",
"of",
"\"",
"+",
"max",
"array",
"size",
")",
";",
"data",
"=",
"new",
"float",
"[",
"capacity",
"]",
";",
"}"
] |
[
"create",
"default",
"actions",
"as",
"place",
"holders",
"in",
"the",
"menu"
] |
[
"private",
"void",
"create",
"place",
"holder",
"actions",
"(",
")",
"{",
"string",
"owner",
"=",
"plugin",
"get",
"name",
"(",
")",
";",
"docking",
"action",
"action",
"=",
"new",
"docking",
"action",
"(",
"\"",
"run",
"tool",
"\"",
",",
"owner",
")",
"{",
"@",
"override",
"public",
"void",
"action",
"performed",
"(",
"action",
"context",
"context",
")",
"{",
"/",
"/",
"no",
"-",
"op",
";",
"placeholder",
"action",
"}",
"}",
";",
"action",
"set",
"menu",
"bar",
"data",
"(",
"new",
"menu",
"data",
"(",
"new",
"string",
"[",
"]",
"{",
"tool",
"constants",
"menu",
"tools",
",",
"menu",
"item",
"run",
"tool",
"}",
",",
"null",
",",
"\"",
"b",
"tools",
"\"",
")",
")",
";",
"action",
"set",
"help",
"location",
"(",
"new",
"help",
"location",
"(",
"tool",
"constants",
"tool",
"help",
"topic",
",",
"\"",
"run",
"tool",
"\"",
")",
")",
";",
"action",
"set",
"enabled",
"(",
"false",
")",
";",
"tool",
"add",
"action",
"(",
"action",
")",
";",
"run",
"tool",
"action",
"map",
"put",
"(",
"action",
"get",
"name",
"(",
")",
",",
"action",
")",
";",
"action",
"=",
"new",
"docking",
"action",
"(",
"\"",
"delete",
"tool",
"\"",
",",
"owner",
")",
"{",
"@",
"override",
"public",
"void",
"action",
"performed",
"(",
"action",
"context",
"context",
")",
"{",
"/",
"/",
"no",
"-",
"op",
";",
"placeholder",
"action",
"}",
"}",
";",
"action",
"set",
"menu",
"bar",
"data",
"(",
"new",
"menu",
"data",
"(",
"new",
"string",
"[",
"]",
"{",
"tool",
"constants",
"menu",
"tools",
",",
"menu",
"item",
"delete",
"tool",
"}",
",",
"null",
",",
"\"",
"c",
"tools",
"\"",
")",
")",
";",
"action",
"set",
"help",
"location",
"(",
"new",
"help",
"location",
"(",
"tool",
"constants",
"tool",
"help",
"topic",
",",
"\"",
"delete",
"tool",
"\"",
")",
")",
";",
"action",
"set",
"enabled",
"(",
"false",
")",
";",
"tool",
"add",
"action",
"(",
"action",
")",
";",
"del",
"tool",
"action",
"map",
"put",
"(",
"action",
"get",
"name",
"(",
")",
",",
"action",
")",
";",
"action",
"=",
"new",
"docking",
"action",
"(",
"\"",
"export",
"tool",
"\"",
",",
"owner",
")",
"{",
"@",
"override",
"public",
"void",
"action",
"performed",
"(",
"action",
"context",
"context",
")",
"{",
"/",
"/",
"no",
"-",
"op",
";",
"placeholder",
"action",
"}",
"}",
";",
"action",
"set",
"menu",
"bar",
"data",
"(",
"new",
"menu",
"data",
"(",
"new",
"string",
"[",
"]",
"{",
"tool",
"constants",
"menu",
"tools",
",",
"menu",
"item",
"export",
"tool",
"}",
",",
"null",
",",
"\"",
"d",
"tools",
"\"",
")",
")",
";",
"action",
"set",
"help",
"location",
"(",
"new",
"help",
"location",
"(",
"tool",
"constants",
"tool",
"help",
"topic",
",",
"\"",
"export",
"tool",
"\"",
")",
")",
";",
"action",
"set",
"enabled",
"(",
"false",
")",
";",
"export",
"tool",
"action",
"map",
"put",
"(",
"action",
"get",
"name",
"(",
")",
",",
"action",
")",
";",
"tool",
"add",
"action",
"(",
"action",
")",
";",
"}"
] |
[
"computes",
"a",
"result",
"{",
"@",
"code",
"future",
"}",
"the",
"output",
"{",
"@",
"code",
"future",
"}",
"need",
"not",
"be",
"{",
"@",
"linkplain",
"future",
"#",
"is",
"done",
"done",
"}",
",",
"making",
"{",
"@",
"code",
"async",
"callable",
"}",
"suitable",
"for",
"asynchronous",
"derivations",
"throwing",
"an",
"exception",
"from",
"this",
"method",
"is",
"equivalent",
"to",
"returning",
"a",
"failing",
"{",
"@",
"link",
"listenable",
"future",
"}"
] |
[
"listenable",
"future",
"<",
"v",
">",
"call",
"(",
")",
"throws",
"exception",
";"
] |
[
"sets",
"the",
"rotation",
"of",
"this",
"decal",
"to",
"the",
"given",
"angles",
"on",
"all",
"axes"
] |
[
"public",
"void",
"set",
"rotation",
"(",
"float",
"yaw",
",",
"float",
"pitch",
",",
"float",
"roll",
")",
"{",
"rotation",
"set",
"euler",
"angles",
"(",
"yaw",
",",
"pitch",
",",
"roll",
")",
";",
"updated",
"=",
"false",
";",
"}"
] |
[
"returns",
"true",
"if",
"field",
"msg",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"public",
"boolean",
"is",
"set",
"msg",
"(",
")",
"{",
"return",
"this",
"msg",
"!",
"=",
"null",
";",
"}"
] |
[
"subscribe",
"on",
"the",
"given",
"topic",
",",
"with",
"the",
"given",
"qos",
"when",
"a",
"message",
"is",
"received",
",",
"mqtt",
"client",
"will",
"invoke",
"the",
"{",
"@",
"link",
"mqtt",
"handler",
"#",
"on",
"message",
"(",
"string",
",",
"byte",
"buf",
")",
"}",
"function",
"of",
"the",
"given",
"handler",
"this",
"subscription",
"is",
"only",
"once",
"if",
"the",
"mqtt",
"client",
"has",
"received",
"1",
"message",
",",
"the",
"subscription",
"will",
"be",
"removed"
] |
[
"future",
"<",
"void",
">",
"once",
"(",
"string",
"topic",
",",
"mqtt",
"handler",
"handler",
",",
"mqtt",
"qo",
"s",
"qos",
")",
";"
] |
[
"helper",
"function",
"to",
"print",
"usage"
] |
[
"private",
"void",
"print",
"usage",
"(",
"options",
"opts",
")",
"{",
"new",
"help",
"formatter",
"(",
")",
"print",
"help",
"(",
"\"",
"application",
"master",
"\"",
",",
"opts",
")",
";",
"}"
] |
[
"returns",
"the",
"object",
"at",
"the",
"given",
"row",
",",
"column"
] |
[
"public",
"object",
"get",
"object",
"(",
"int",
"row",
",",
"int",
"col",
")",
"{",
"object",
"array",
"oa",
"=",
"(",
"object",
"array",
")",
"data",
"columns",
"[",
"col",
"]",
";",
"return",
"oa",
"get",
"(",
"row",
")",
";",
"}"
] |
[
"ensures",
"that",
"all",
"move",
"operations",
"in",
"this",
"block",
"occur",
"such",
"that",
"reads",
"of",
"any",
"register",
"happen",
"before",
"writes",
"to",
"that",
"register",
"note",
":",
"caller",
"is",
"expected",
"to",
"return",
"spare",
"registers",
"(",
")",
"!",
"todo",
":",
"see",
"briggs",
",",
"et",
"al",
"\"",
"practical",
"improvements",
"to",
"the",
"construction",
"and",
"destruction",
"of",
"static",
"single",
"assignment",
"form",
"\"",
"section",
"5",
"a",
")",
"this",
"can",
"be",
"done",
"in",
"three",
"passes"
] |
[
"private",
"void",
"schedule",
"use",
"before",
"assigned",
"(",
"list",
"<",
"ssa",
"insn",
">",
"to",
"schedule",
")",
"{",
"bit",
"set",
"regs",
"used",
"as",
"sources",
"=",
"new",
"bit",
"set",
"(",
"parent",
"get",
"reg",
"count",
"(",
")",
")",
";",
"/",
"/",
"todo",
":",
"get",
"rid",
"of",
"this",
"bit",
"set",
"regs",
"used",
"as",
"results",
"=",
"new",
"bit",
"set",
"(",
"parent",
"get",
"reg",
"count",
"(",
")",
")",
";",
"int",
"sz",
"=",
"to",
"schedule",
"size",
"(",
")",
";",
"int",
"insert",
"place",
"=",
"0",
";",
"while",
"(",
"insert",
"place",
"<",
"sz",
")",
"{",
"int",
"old",
"insert",
"place",
"=",
"insert",
"place",
";",
"/",
"/",
"record",
"all",
"registers",
"used",
"as",
"sources",
"in",
"this",
"block",
"for",
"(",
"int",
"i",
"=",
"insert",
"place",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"set",
"regs",
"used",
"(",
"regs",
"used",
"as",
"sources",
",",
"to",
"schedule",
"get",
"(",
"i",
")",
"get",
"sources",
"(",
")",
"get",
"(",
"0",
")",
")",
";",
"set",
"regs",
"used",
"(",
"regs",
"used",
"as",
"results",
",",
"to",
"schedule",
"get",
"(",
"i",
")",
"get",
"result",
"(",
")",
")",
";",
"}",
"/",
"*",
"*",
"if",
"there",
"are",
"no",
"circular",
"dependencies",
",",
"then",
"there",
"exists",
"*",
"n",
"instructions",
"where",
"n",
">",
"1",
"whose",
"result",
"is",
"not",
"used",
"as",
"a",
"source",
"*",
"/",
"for",
"(",
"int",
"i",
"=",
"insert",
"place",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"ssa",
"insn",
"insn",
"=",
"to",
"schedule",
"get",
"(",
"i",
")",
";",
"/",
"*",
"*",
"move",
"these",
"n",
"registers",
"to",
"the",
"front",
",",
"since",
"they",
"overwrite",
"*",
"nothing",
"*",
"/",
"if",
"(",
"!",
"check",
"reg",
"used",
"(",
"regs",
"used",
"as",
"sources",
",",
"insn",
"get",
"result",
"(",
")",
")",
")",
"{",
"collections",
"swap",
"(",
"to",
"schedule",
",",
"i",
",",
"insert",
"place",
"+",
"+",
")",
";",
"}",
"}",
"/",
"*",
"*",
"if",
"we",
"'",
"ve",
"made",
"no",
"progress",
"in",
"this",
"iteration",
",",
"there",
"'",
"s",
"a",
"*",
"circular",
"dependency",
"split",
"it",
"using",
"the",
"temp",
"reg",
"*",
"/",
"if",
"(",
"old",
"insert",
"place",
"=",
"=",
"insert",
"place",
")",
"{",
"ssa",
"insn",
"insn",
"to",
"split",
"=",
"null",
";",
"/",
"/",
"find",
"an",
"insn",
"whose",
"result",
"is",
"used",
"as",
"a",
"source",
"for",
"(",
"int",
"i",
"=",
"insert",
"place",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"ssa",
"insn",
"insn",
"=",
"to",
"schedule",
"get",
"(",
"i",
")",
";",
"if",
"(",
"check",
"reg",
"used",
"(",
"regs",
"used",
"as",
"sources",
",",
"insn",
"get",
"result",
"(",
")",
")",
"&",
"&",
"check",
"reg",
"used",
"(",
"regs",
"used",
"as",
"results",
",",
"insn",
"get",
"sources",
"(",
")",
"get",
"(",
"0",
")",
")",
")",
"{",
"insn",
"to",
"split",
"=",
"insn",
";",
"/",
"*",
"*",
"we",
"'",
"re",
"going",
"to",
"split",
"this",
"insn",
";",
"move",
"it",
"to",
"the",
"*",
"front",
"*",
"/",
"collections",
"swap",
"(",
"to",
"schedule",
",",
"insert",
"place",
",",
"i",
")",
";",
"break",
";",
"}",
"}",
"/",
"/",
"at",
"least",
"one",
"insn",
"will",
"be",
"set",
"above",
"register",
"spec",
"result",
"=",
"insn",
"to",
"split",
"get",
"result",
"(",
")",
";",
"register",
"spec",
"temp",
"spec",
"=",
"result",
"with",
"reg",
"(",
"parent",
"borrow",
"spare",
"register",
"(",
"result",
"get",
"category",
"(",
")",
")",
")",
";",
"normal",
"ssa",
"insn",
"to",
"add",
"=",
"new",
"normal",
"ssa",
"insn",
"(",
"new",
"plain",
"insn",
"(",
"rops",
"op",
"move",
"(",
"result",
"get",
"type",
"(",
")",
")",
",",
"source",
"position",
"no",
"info",
",",
"temp",
"spec",
",",
"insn",
"to",
"split",
"get",
"sources",
"(",
")",
")",
",",
"this",
")",
";",
"to",
"schedule",
"add",
"(",
"insert",
"place",
"+",
"+",
",",
"to",
"add",
")",
";",
"register",
"spec",
"list",
"new",
"sources",
"=",
"register",
"spec",
"list",
"make",
"(",
"temp",
"spec",
")",
";",
"normal",
"ssa",
"insn",
"to",
"replace",
"=",
"new",
"normal",
"ssa",
"insn",
"(",
"new",
"plain",
"insn",
"(",
"rops",
"op",
"move",
"(",
"result",
"get",
"type",
"(",
")",
")",
",",
"source",
"position",
"no",
"info",
",",
"result",
",",
"new",
"sources",
")",
",",
"this",
")",
";",
"to",
"schedule",
"set",
"(",
"insert",
"place",
",",
"to",
"replace",
")",
";",
"/",
"/",
"the",
"size",
"changed",
"sz",
"=",
"to",
"schedule",
"size",
"(",
")",
";",
"}",
"regs",
"used",
"as",
"sources",
"clear",
"(",
")",
";",
"regs",
"used",
"as",
"results",
"clear",
"(",
")",
";",
"}",
"}"
] |
[
"make",
"preparations",
"for",
"commit",
",",
"to",
"be",
"performed",
"before",
"the",
"{",
"@",
"code",
"before",
"commit",
"}",
"synchronization",
"callbacks",
"occur",
"note",
"that",
"exceptions",
"will",
"get",
"propagated",
"to",
"the",
"commit",
"caller",
"and",
"cause",
"a",
"rollback",
"of",
"the",
"transaction"
] |
[
"protected",
"void",
"prepare",
"for",
"commit",
"(",
"default",
"transaction",
"status",
"status",
")",
"{",
"}"
] |
[
"the",
"sink",
",",
"acting",
"as",
"g",
"r",
"p",
"c",
"client",
",",
"establishes",
"a",
"new",
"resource",
"stream",
"with",
"the",
"source",
"the",
"sink",
"sends",
"request",
"resources",
"message",
"to",
"and",
"receives",
"resources",
"messages",
"from",
"the",
"source"
] |
[
"public",
"io",
"grpc",
"stub",
"stream",
"observer",
"<",
"com",
"alibaba",
"nacos",
"istio",
"model",
"mcp",
"request",
"resources",
">",
"establish",
"resource",
"stream",
"(",
"io",
"grpc",
"stub",
"stream",
"observer",
"<",
"com",
"alibaba",
"nacos",
"istio",
"model",
"mcp",
"resources",
">",
"response",
"observer",
")",
"{",
"return",
"async",
"unimplemented",
"streaming",
"call",
"(",
"get",
"establish",
"resource",
"stream",
"method",
"(",
")",
",",
"response",
"observer",
")",
";",
"}"
] |
[
"computes",
"steps",
"to",
"make",
"a",
"disk",
"balancer",
"volume",
"set",
"balanced"
] |
[
"public",
"void",
"balance",
"volume",
"set",
"(",
"disk",
"balancer",
"data",
"node",
"node",
",",
"disk",
"balancer",
"volume",
"set",
"v",
"set",
",",
"node",
"plan",
"plan",
")",
"throws",
"exception",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"v",
"set",
")",
";",
"preconditions",
"check",
"not",
"null",
"(",
"plan",
")",
";",
"preconditions",
"check",
"not",
"null",
"(",
"node",
")",
";",
"disk",
"balancer",
"volume",
"set",
"current",
"set",
"=",
"new",
"disk",
"balancer",
"volume",
"set",
"(",
"v",
"set",
")",
";",
"while",
"(",
"current",
"set",
"is",
"balancing",
"needed",
"(",
"this",
"threshold",
")",
")",
"{",
"remove",
"skip",
"volumes",
"(",
"current",
"set",
")",
";",
"disk",
"balancer",
"volume",
"low",
"volume",
"=",
"current",
"set",
"get",
"sorted",
"queue",
"(",
")",
"first",
"(",
")",
";",
"disk",
"balancer",
"volume",
"high",
"volume",
"=",
"current",
"set",
"get",
"sorted",
"queue",
"(",
")",
"last",
"(",
")",
";",
"step",
"next",
"step",
"=",
"null",
";",
"/",
"/",
"ok",
"both",
"volumes",
"bytes",
"used",
"are",
"in",
"the",
"range",
"that",
"we",
"expect",
"/",
"/",
"then",
"we",
"create",
"a",
"move",
"request",
"if",
"(",
"!",
"low",
"volume",
"is",
"skip",
"(",
")",
"&",
"&",
"!",
"high",
"volume",
"is",
"skip",
"(",
")",
")",
"{",
"next",
"step",
"=",
"compute",
"move",
"(",
"current",
"set",
",",
"low",
"volume",
",",
"high",
"volume",
")",
";",
"}",
"else",
"{",
"log",
"debug",
"(",
"\"",
"skipping",
"compute",
"move",
"low",
"volume",
":",
"{",
"}",
"high",
"volume",
":",
"{",
"}",
"\"",
",",
"low",
"volume",
"get",
"path",
"(",
")",
",",
"high",
"volume",
"get",
"path",
"(",
")",
")",
";",
"}",
"apply",
"step",
"(",
"next",
"step",
",",
"current",
"set",
",",
"low",
"volume",
",",
"high",
"volume",
")",
";",
"if",
"(",
"next",
"step",
"!",
"=",
"null",
")",
"{",
"log",
"debug",
"(",
"\"",
"step",
":",
"{",
"}",
"\"",
",",
"next",
"step",
")",
";",
"plan",
"add",
"step",
"(",
"next",
"step",
")",
";",
"}",
"}",
"log",
"info",
"(",
"\"",
"disk",
"volume",
"set",
"{",
"}",
"-",
"type",
":",
"{",
"}",
"plan",
"completed",
"\"",
",",
"current",
"set",
"get",
"set",
"i",
"d",
"(",
")",
",",
"current",
"set",
"get",
"volumes",
"(",
")",
"get",
"(",
"0",
")",
"get",
"storage",
"type",
"(",
")",
")",
";",
"plan",
"set",
"node",
"name",
"(",
"node",
"get",
"data",
"node",
"name",
"(",
")",
")",
";",
"plan",
"set",
"node",
"u",
"u",
"i",
"d",
"(",
"node",
"get",
"data",
"node",
"u",
"u",
"i",
"d",
"(",
")",
")",
";",
"plan",
"set",
"time",
"stamp",
"(",
"time",
"now",
"(",
")",
")",
";",
"plan",
"set",
"port",
"(",
"node",
"get",
"data",
"node",
"port",
"(",
")",
")",
";",
"}"
] |
[
"create",
"a",
"{",
"@",
"linkplain",
"aggregation",
"context",
"}",
"for",
"testing",
"an",
"{",
"@",
"link",
"aggregator",
"}",
"while",
"{",
"@",
"linkplain",
"aggregation",
"context",
"}",
"is",
"{",
"@",
"link",
"releasable",
"}",
"the",
"caller",
"is",
"not",
"responsible",
"for",
"releasing",
"it",
"instead",
",",
"it",
"is",
"released",
"automatically",
"in",
"in",
"{",
"@",
"link",
"#",
"cleanup",
"releasables",
"(",
")",
"}"
] |
[
"protected",
"aggregation",
"context",
"create",
"aggregation",
"context",
"(",
"index",
"searcher",
"index",
"searcher",
",",
"query",
"query",
",",
"mapped",
"field",
"type",
"field",
"types",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"create",
"aggregation",
"context",
"(",
"index",
"searcher",
",",
"create",
"index",
"settings",
"(",
")",
",",
"query",
",",
"new",
"none",
"circuit",
"breaker",
"service",
"(",
")",
",",
"aggregation",
"builder",
"default",
"preallocation",
"*",
"5",
",",
"/",
"/",
"we",
"don",
"'",
"t",
"know",
"how",
"many",
"bytes",
"to",
"preallocate",
"so",
"we",
"grab",
"a",
"hand",
"full",
"default",
"max",
"buckets",
",",
"field",
"types",
")",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"implementations",
"may",
"or",
"may",
"not",
"support",
"removal",
"when",
"a",
"call",
"to",
"{",
"@",
"link",
"#",
"peek",
"(",
")",
"}",
"has",
"occurred",
"since",
"the",
"most",
"recent",
"call",
"to",
"{",
"@",
"link",
"#",
"next",
"(",
")",
"}"
] |
[
"void",
"remove",
"(",
")",
";"
] |
[
"returns",
"a",
"{",
"@",
"link",
"settings",
"}",
"instance",
"which",
"include",
"random",
"values",
"for",
"{",
"@",
"link",
"org",
"elasticsearch",
"cluster",
"metadata",
"index",
"metadata",
"#",
"setting",
"number",
"of",
"shards",
"}",
"and",
"{",
"@",
"link",
"org",
"elasticsearch",
"cluster",
"metadata",
"index",
"metadata",
"#",
"setting",
"number",
"of",
"replicas",
"}"
] |
[
"public",
"static",
"settings",
"random",
"index",
"settings",
"(",
")",
"{",
"settings",
"builder",
"builder",
"=",
"settings",
"builder",
"(",
")",
";",
"if",
"(",
"random",
"boolean",
"(",
")",
")",
"{",
"int",
"number",
"of",
"shards",
"=",
"random",
"int",
"between",
"(",
"1",
",",
"10",
")",
";",
"builder",
"put",
"(",
"setting",
"number",
"of",
"shards",
",",
"number",
"of",
"shards",
")",
";",
"}",
"if",
"(",
"random",
"boolean",
"(",
")",
")",
"{",
"int",
"number",
"of",
"replicas",
"=",
"random",
"int",
"between",
"(",
"1",
",",
"10",
")",
";",
"builder",
"put",
"(",
"setting",
"number",
"of",
"replicas",
",",
"number",
"of",
"replicas",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";",
"}"
] |
[
"appends",
"the",
"chain",
"of",
"messages",
"from",
"the",
"{",
"@",
"code",
"conflicting",
"stack",
"trace",
"}",
"to",
"the",
"original",
"{",
"@",
"code",
"message",
"}"
] |
[
"public",
"string",
"get",
"message",
"(",
")",
"{",
"string",
"builder",
"message",
"=",
"new",
"string",
"builder",
"(",
"super",
"get",
"message",
"(",
")",
")",
";",
"for",
"(",
"throwable",
"t",
"=",
"conflicting",
"stack",
"trace",
";",
"t",
"!",
"=",
"null",
";",
"t",
"=",
"t",
"get",
"cause",
"(",
")",
")",
"{",
"message",
"append",
"(",
"\"",
",",
"\"",
")",
"append",
"(",
"t",
"get",
"message",
"(",
")",
")",
";",
"}",
"return",
"message",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"return",
"a",
"{",
"@",
"code",
"request",
"predicate",
"}",
"that",
"tests",
"if",
"the",
"request",
"'",
"s",
"{",
"@",
"linkplain",
"server",
"request",
"headers",
"#",
"accept",
"(",
")",
"accept",
"}",
"header",
"is",
"{",
"@",
"linkplain",
"media",
"type",
"#",
"is",
"compatible",
"with",
"(",
"media",
"type",
")",
"compatible",
"}",
"with",
"any",
"of",
"the",
"given",
"media",
"types"
] |
[
"public",
"static",
"request",
"predicate",
"accept",
"(",
"media",
"type",
"media",
"types",
")",
"{",
"assert",
"not",
"empty",
"(",
"media",
"types",
",",
"\"",
"'",
"media",
"types",
"'",
"must",
"not",
"be",
"empty",
"\"",
")",
";",
"return",
"new",
"accept",
"predicate",
"(",
"media",
"types",
")",
";",
"}"
] |
[
"called",
"after",
"a",
"new",
"job",
"is",
"created",
"by",
"copying",
"from",
"an",
"existing",
"job",
"for",
"backward",
"compatibility",
",",
"the",
"default",
"implementation",
"of",
"this",
"method",
"calls",
"{",
"@",
"link",
"#",
"on",
"created",
"(",
"item",
")",
"}",
"if",
"you",
"choose",
"to",
"handle",
"this",
"method",
",",
"think",
"about",
"whether",
"you",
"want",
"to",
"call",
"super",
"on",
"copied",
"or",
"not"
] |
[
"public",
"void",
"on",
"copied",
"(",
"item",
"src",
",",
"item",
"item",
")",
"{",
"on",
"created",
"(",
"item",
")",
";",
"}"
] |
[
"one",
"empty",
"request",
"followed",
"by",
"one",
"empty",
"response"
] |
[
"public",
"io",
"grpc",
"testing",
"integration",
"empty",
"protos",
"empty",
"empty",
"call",
"(",
"io",
"grpc",
"testing",
"integration",
"empty",
"protos",
"empty",
"request",
")",
"{",
"return",
"io",
"grpc",
"stub",
"client",
"calls",
"blocking",
"unary",
"call",
"(",
"get",
"channel",
"(",
")",
",",
"get",
"empty",
"call",
"method",
"(",
")",
",",
"get",
"call",
"options",
"(",
")",
",",
"request",
")",
";",
"}"
] |
[
"returns",
"the",
"unicode",
"code",
"point",
"of",
"the",
"character",
"at",
"the",
"given",
"index",
"unlike",
"{",
"@",
"link",
"character",
"#",
"code",
"point",
"at",
"(",
"char",
"sequence",
",",
"int",
")",
"}",
"or",
"{",
"@",
"link",
"string",
"#",
"code",
"point",
"at",
"(",
"int",
")",
"}",
"this",
"method",
"will",
"never",
"fail",
"silently",
"when",
"encountering",
"an",
"invalid",
"surrogate",
"pair",
"the",
"behaviour",
"of",
"this",
"method",
"is",
"as",
"follows",
":",
"if",
"{",
"@",
"code",
"index",
">",
"=",
"end",
"}",
",",
"{",
"@",
"link",
"index",
"out",
"of",
"bounds",
"exception",
"}",
"is",
"thrown",
"<",
"b",
">",
"if",
"the",
"character",
"at",
"the",
"specified",
"index",
"is",
"not",
"a",
"surrogate",
",",
"it",
"is",
"returned",
"<",
"b",
">",
"if",
"the",
"first",
"character",
"was",
"a",
"high",
"surrogate",
"value",
",",
"then",
"an",
"attempt",
"is",
"made",
"to",
"read",
"the",
"next",
"character",
"<",
"b",
">",
"if",
"the",
"end",
"of",
"the",
"sequence",
"was",
"reached",
",",
"the",
"negated",
"value",
"of",
"the",
"trailing",
"high",
"surrogate",
"is",
"returned",
"<",
"b",
">",
"<",
"b",
">",
"if",
"the",
"next",
"character",
"was",
"a",
"valid",
"low",
"surrogate",
",",
"the",
"code",
"point",
"value",
"of",
"the",
"highlow",
"surrogate",
"pair",
"is",
"returned",
"<",
"b",
">",
"if",
"the",
"next",
"character",
"was",
"not",
"a",
"low",
"surrogate",
"value",
",",
"then",
"{",
"@",
"link",
"illegal",
"argument",
"exception",
"}",
"is",
"thrown",
"if",
"the",
"first",
"character",
"was",
"a",
"low",
"surrogate",
"value",
",",
"{",
"@",
"link",
"illegal",
"argument",
"exception",
"}",
"is",
"thrown"
] |
[
"protected",
"static",
"int",
"code",
"point",
"at",
"(",
"char",
"sequence",
"seq",
",",
"int",
"index",
",",
"int",
"end",
")",
"{",
"check",
"not",
"null",
"(",
"seq",
")",
";",
"if",
"(",
"index",
"<",
"end",
")",
"{",
"char",
"c",
"1",
"=",
"seq",
"char",
"at",
"(",
"index",
"+",
"+",
")",
";",
"if",
"(",
"c",
"1",
"<",
"character",
"min",
"high",
"surrogate",
"|",
"|",
"c",
"1",
">",
"character",
"max",
"low",
"surrogate",
")",
"{",
"/",
"/",
"fast",
"path",
"(",
"first",
"test",
"is",
"probably",
"all",
"we",
"need",
"to",
"do",
")",
"return",
"c",
"1",
";",
"}",
"else",
"if",
"(",
"c",
"1",
"<",
"=",
"character",
"max",
"high",
"surrogate",
")",
"{",
"/",
"/",
"if",
"the",
"high",
"surrogate",
"was",
"the",
"last",
"character",
",",
"return",
"its",
"inverse",
"if",
"(",
"index",
"=",
"=",
"end",
")",
"{",
"return",
"-",
"c",
"1",
";",
"}",
"/",
"/",
"otherwise",
"look",
"for",
"the",
"low",
"surrogate",
"following",
"it",
"char",
"c",
"2",
"=",
"seq",
"char",
"at",
"(",
"index",
")",
";",
"if",
"(",
"character",
"is",
"low",
"surrogate",
"(",
"c",
"2",
")",
")",
"{",
"return",
"character",
"to",
"code",
"point",
"(",
"c",
"1",
",",
"c",
"2",
")",
";",
"}",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"expected",
"low",
"surrogate",
"but",
"got",
"char",
"'",
"\"",
"+",
"c",
"2",
"+",
"\"",
"'",
"with",
"value",
"\"",
"+",
"(",
"int",
")",
"c",
"2",
"+",
"\"",
"at",
"index",
"\"",
"+",
"index",
"+",
"\"",
"in",
"'",
"\"",
"+",
"seq",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"unexpected",
"low",
"surrogate",
"character",
"'",
"\"",
"+",
"c",
"1",
"+",
"\"",
"'",
"with",
"value",
"\"",
"+",
"(",
"int",
")",
"c",
"1",
"+",
"\"",
"at",
"index",
"\"",
"+",
"(",
"index",
"-",
"1",
")",
"+",
"\"",
"in",
"'",
"\"",
"+",
"seq",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"}",
"throw",
"new",
"index",
"out",
"of",
"bounds",
"exception",
"(",
"\"",
"index",
"exceeds",
"specified",
"range",
"\"",
")",
";",
"}"
] |
[
"called",
"when",
"the",
"stream",
"is",
"fully",
"closed",
"a",
"status",
"code",
"of",
"{",
"@",
"link",
"io",
"grpc",
"status",
"code",
"#",
"ok",
"}",
"implies",
"normal",
"termination",
"of",
"the",
"stream",
"any",
"other",
"value",
"implies",
"abnormal",
"termination",
"since",
"clients",
"cannot",
"send",
"status",
",",
"the",
"passed",
"status",
"is",
"always",
"library",
"-",
"generated",
"and",
"only",
"is",
"concerned",
"with",
"transport",
"-",
"level",
"stream",
"shutdown",
"(",
"the",
"call",
"itself",
"may",
"have",
"had",
"a",
"failing",
"status",
",",
"but",
"if",
"the",
"stream",
"terminated",
"cleanly",
"with",
"the",
"status",
"appearing",
"to",
"have",
"been",
"sent",
",",
"then",
"the",
"passed",
"status",
"here",
"would",
"be",
"{",
"@",
"code",
"ok",
"}",
")",
"this",
"is",
"guaranteed",
"to",
"always",
"be",
"the",
"final",
"call",
"on",
"a",
"listener",
"no",
"further",
"callbacks",
"will",
"be",
"issued",
"this",
"method",
"should",
"return",
"quickly",
",",
"as",
"the",
"same",
"thread",
"may",
"be",
"used",
"to",
"process",
"other",
"streams"
] |
[
"void",
"closed",
"(",
"status",
"status",
")",
";"
] |
[
"find",
"pet",
"by",
"id",
"returns",
"a",
"single",
"pet"
] |
[
"pet",
"get",
"pet",
"by",
"id",
"(",
"@",
"param",
"(",
"\"",
"pet",
"id",
"\"",
")",
"long",
"pet",
"id",
")",
";"
] |
[
"returns",
"the",
"procedure",
"frame",
"padding",
"length"
] |
[
"public",
"long",
"get",
"procedure",
"frame",
"padding",
"length",
"(",
")",
"{",
"return",
"procedure",
"frame",
"padding",
"length",
";",
"}"
] |
[
"the",
"given",
"local",
"variable",
"must",
"have",
"a",
"value",
"at",
"indices",
"into",
"the",
"code",
"array",
"in",
"the",
"interval",
"[",
"start",
"pc",
",",
"start",
"pc",
"+",
"length",
")",
",",
"that",
"is",
",",
"between",
"start",
"pc",
"inclusive",
"and",
"start",
"pc",
"+",
"length",
"exclusive",
"the",
"value",
"of",
"start",
"pc",
"must",
"be",
"a",
"valid",
"index",
"into",
"the",
"code",
"array",
"of",
"this",
"code",
"attribute",
"and",
"must",
"be",
"the",
"index",
"of",
"the",
"opcode",
"of",
"an",
"instruction",
"the",
"value",
"of",
"start",
"pc",
"+",
"length",
"must",
"either",
"be",
"a",
"valid",
"index",
"into",
"the",
"code",
"array",
"of",
"this",
"code",
"attribute",
"and",
"be",
"the",
"index",
"of",
"the",
"opcode",
"of",
"an",
"instruction",
",",
"or",
"it",
"must",
"be",
"the",
"first",
"index",
"beyond",
"the",
"end",
"of",
"that",
"code",
"array"
] |
[
"public",
"int",
"get",
"start",
"p",
"c",
"(",
")",
"{",
"return",
"start",
"p",
"c",
"&",
"0xffff",
";",
"}"
] |
[
"post",
"fakeouterstring",
"test",
"serialization",
"of",
"outer",
"string",
"types"
] |
[
"public",
"response",
"entity",
"<",
"string",
">",
"fake",
"outer",
"string",
"serialize",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"input",
"string",
"as",
"post",
"body",
"\"",
")",
"@",
"valid",
"@",
"request",
"body",
"(",
"required",
"=",
"false",
")",
"string",
"body",
")",
"{",
"return",
"delegate",
"fake",
"outer",
"string",
"serialize",
"(",
"body",
")",
";",
"}"
] |
[
"returns",
"the",
"program",
"selection",
"equivalent",
"to",
"the",
"rows",
"currently",
"selected",
"in",
"the",
"table",
"this",
"method",
"is",
"only",
"valid",
"when",
"the",
"underlying",
"table",
"model",
"implements",
"{",
"@",
"link",
"program",
"table",
"model",
"}",
"<",
"p",
">",
"returns",
"null",
"if",
"no",
"rows",
"are",
"selected",
"or",
"the",
"underlying",
"model",
"does",
"not",
"implement",
"<",
"code",
">",
"program",
"table",
"model",
"<",
"code",
">"
] |
[
"public",
"program",
"selection",
"get",
"program",
"selection",
"(",
")",
"{",
"program",
"table",
"model",
"program",
"table",
"model",
"=",
"get",
"program",
"table",
"model",
"(",
"data",
"model",
")",
";",
"if",
"(",
"program",
"table",
"model",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"program",
"table",
"model",
"get",
"program",
"selection",
"(",
"get",
"selected",
"rows",
"(",
")",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"a",
"shortcut",
"for",
"{",
"@",
"link",
"#",
"wait",
"for",
"active",
"shards",
"(",
"active",
"shard",
"count",
")",
"}",
"where",
"the",
"numerical",
"shard",
"count",
"is",
"passed",
"in",
",",
"instead",
"of",
"having",
"to",
"first",
"call",
"{",
"@",
"link",
"active",
"shard",
"count",
"#",
"from",
"(",
"int",
")",
"}",
"to",
"get",
"the",
"active",
"shard",
"count"
] |
[
"public",
"rollover",
"request",
"builder",
"wait",
"for",
"active",
"shards",
"(",
"final",
"int",
"wait",
"for",
"active",
"shards",
")",
"{",
"return",
"wait",
"for",
"active",
"shards",
"(",
"active",
"shard",
"count",
"from",
"(",
"wait",
"for",
"active",
"shards",
")",
")",
";",
"}"
] |
[
"tests",
"that",
"when",
"strict",
"-",
"deps",
"is",
"disabled",
",",
"java",
"lite",
"proto",
"library",
"provides",
"(",
"in",
"its",
"\"",
"direct",
"\"",
"jars",
")",
"all",
"transitive",
"classes",
",",
"not",
"only",
"direct",
"ones",
"this",
"does",
"not",
"concern",
"strict",
"-",
"deps",
"in",
"the",
"compilation",
"of",
"the",
"generated",
"java",
"code",
"itself",
",",
"only",
"compilation",
"of",
"regular",
"code",
"in",
"java",
"libraryjava",
"binary",
"and",
"similar",
"rules"
] |
[
"public",
"void",
"jpl",
"correctly",
"defines",
"direct",
"jars",
"strict",
"deps",
"disabled",
"(",
")",
"throws",
"exception",
"{",
"scratch",
"file",
"(",
"\"",
"x",
"/",
"build",
"\"",
",",
"\"",
"load",
"(",
"'",
"/",
"/",
"tools",
"/",
"build",
"rules",
"/",
"java",
"lite",
"proto",
"library",
":",
"java",
"lite",
"proto",
"library",
"bzl",
"'",
",",
"\"",
",",
"\"",
"'",
"java",
"lite",
"proto",
"library",
"'",
")",
"\"",
",",
"\"",
"java",
"lite",
"proto",
"library",
"(",
"name",
"=",
"'",
"foo",
"lite",
"pb",
"'",
",",
"deps",
"=",
"[",
"'",
":",
"foo",
"'",
"]",
",",
"strict",
"deps",
"=",
"0",
")",
"\"",
",",
"\"",
"proto",
"library",
"(",
"\"",
",",
"\"",
"name",
"=",
"'",
"foo",
"'",
",",
"\"",
",",
"\"",
"srcs",
"=",
"[",
"'",
"foo",
"proto",
"'",
"]",
",",
"\"",
",",
"\"",
"deps",
"=",
"[",
"'",
":",
"bar",
"'",
"]",
",",
"\"",
",",
"\"",
")",
"\"",
",",
"\"",
"java",
"lite",
"proto",
"library",
"(",
"name",
"=",
"'",
"bar",
"lite",
"pb",
"'",
",",
"deps",
"=",
"[",
"'",
":",
"bar",
"'",
"]",
")",
"\"",
",",
"\"",
"proto",
"library",
"(",
"\"",
",",
"\"",
"name",
"=",
"'",
"bar",
"'",
",",
"\"",
",",
"\"",
"srcs",
"=",
"[",
"'",
"bar",
"proto",
"'",
"]",
",",
"\"",
",",
"\"",
"deps",
"=",
"[",
"'",
":",
"baz",
"'",
"]",
",",
"\"",
",",
"\"",
")",
"\"",
",",
"\"",
"proto",
"library",
"(",
"\"",
",",
"\"",
"name",
"=",
"'",
"baz",
"'",
",",
"\"",
",",
"\"",
"srcs",
"=",
"[",
"'",
"baz",
"proto",
"'",
"]",
",",
"\"",
",",
"\"",
")",
"\"",
")",
";",
"{",
"java",
"compile",
"action",
"action",
"=",
"(",
"java",
"compile",
"action",
")",
"get",
"generating",
"action",
"(",
"get",
"configured",
"target",
"(",
"\"",
"/",
"/",
"x",
":",
"foo",
"lite",
"pb",
"\"",
")",
",",
"\"",
"x",
"/",
"libfoo",
"-",
"lite",
"jar",
"\"",
")",
";",
"assert",
"that",
"(",
"pretty",
"artifact",
"names",
"(",
"get",
"inputs",
"(",
"action",
",",
"get",
"direct",
"jars",
"(",
"action",
")",
")",
")",
")",
"is",
"empty",
"(",
")",
";",
"}",
"{",
"java",
"compile",
"action",
"action",
"=",
"(",
"java",
"compile",
"action",
")",
"get",
"generating",
"action",
"(",
"get",
"configured",
"target",
"(",
"\"",
"/",
"/",
"x",
":",
"bar",
"lite",
"pb",
"\"",
")",
",",
"\"",
"x",
"/",
"libbar",
"-",
"lite",
"jar",
"\"",
")",
";",
"assert",
"that",
"(",
"pretty",
"artifact",
"names",
"(",
"get",
"inputs",
"(",
"action",
",",
"get",
"direct",
"jars",
"(",
"action",
")",
")",
")",
")",
"is",
"empty",
"(",
")",
";",
"}",
"}"
] |
[
"gets",
"the",
"content",
"text",
"for",
"the",
"current",
"media",
"item",
"see",
"{",
"@",
"link",
"notification",
"compat",
"builder",
"#",
"set",
"content",
"text",
"(",
"char",
"sequence",
")",
"}"
] |
[
"char",
"sequence",
"get",
"current",
"content",
"text",
"(",
"player",
"player",
")",
";"
] |
[
"pauses",
"engine",
"all",
"new",
"\"",
"load",
"&",
"display",
"\"",
"tasks",
"won",
"'",
"t",
"be",
"executed",
"until",
"image",
"loader",
"is",
"{",
"@",
"link",
"#",
"resume",
"(",
")",
"resumed",
"}",
"<",
"br",
">",
"already",
"running",
"tasks",
"are",
"not",
"paused"
] |
[
"void",
"pause",
"(",
")",
"{",
"paused",
"set",
"(",
"true",
")",
";",
"}"
] |
[
"minimum",
":",
"20",
"maximum",
":",
"200"
] |
[
"public",
"format",
"test",
"int",
"3",
"2",
"(",
"integer",
"int",
"3",
"2",
")",
"{",
"this",
"int",
"3",
"2",
"=",
"int",
"3",
"2",
";",
"return",
"this",
";",
"}"
] |
[
"create",
"{",
"@",
"link",
"customer",
"}",
"with",
"given",
"roles"
] |
[
"public",
"static",
"customer",
"new",
"customer",
"(",
"role",
"role",
")",
"{",
"var",
"customer",
"=",
"new",
"customer",
"(",
")",
";",
"arrays",
"stream",
"(",
"role",
")",
"for",
"each",
"(",
"customer",
":",
":",
"add",
"role",
")",
";",
"return",
"customer",
";",
"}"
] |
[
"the",
"nonce",
"provides",
"a",
"way",
"to",
"explicitly",
"ack",
"a",
"specific",
"mesh",
"config",
"response",
"in",
"a",
"following",
"mesh",
"config",
"request",
"additional",
"messages",
"may",
"have",
"been",
"sent",
"by",
"client",
"to",
"the",
"management",
"server",
"for",
"the",
"previous",
"version",
"on",
"the",
"stream",
"prior",
"to",
"this",
"mesh",
"config",
"response",
",",
"that",
"were",
"unprocessed",
"at",
"response",
"send",
"time",
"the",
"nonce",
"allows",
"the",
"management",
"server",
"to",
"ignore",
"any",
"further",
"mesh",
"config",
"requests",
"for",
"the",
"previous",
"version",
"until",
"a",
"mesh",
"config",
"request",
"bearing",
"the",
"nonce",
"<",
"code",
">",
"string",
"nonce",
"=",
"4",
";",
"<",
"code",
">"
] |
[
"public",
"java",
"lang",
"string",
"get",
"nonce",
"(",
")",
"{",
"java",
"lang",
"object",
"ref",
"=",
"nonce",
";",
"if",
"(",
"!",
"(",
"ref",
"instanceof",
"java",
"lang",
"string",
")",
")",
"{",
"com",
"google",
"protobuf",
"byte",
"string",
"bs",
"=",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
")",
"ref",
";",
"java",
"lang",
"string",
"s",
"=",
"bs",
"to",
"string",
"utf",
"8",
"(",
")",
";",
"nonce",
"=",
"s",
";",
"return",
"s",
";",
"}",
"else",
"{",
"return",
"(",
"java",
"lang",
"string",
")",
"ref",
";",
"}",
"}"
] |
[
"build",
"up",
"the",
"path",
"string",
"for",
"keytab",
"install",
"location",
"-",
"no",
"attempt",
"to",
"create",
"the",
"directory",
"is",
"made"
] |
[
"public",
"path",
"build",
"keytab",
"installation",
"dir",
"path",
"(",
"string",
"keytab",
"folder",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"keytab",
"folder",
")",
";",
"path",
"path",
"=",
"get",
"base",
"application",
"path",
"(",
")",
";",
"return",
"new",
"path",
"(",
"path",
",",
"yarn",
"service",
"constants",
"keytab",
"dir",
"+",
"\"",
"/",
"\"",
"+",
"keytab",
"folder",
")",
";",
"}"
] |
[
"returns",
"the",
"string",
"representation",
"of",
"this",
"dotted",
"version",
",",
"padded",
"to",
"a",
"minimum",
"number",
"of",
"components",
"if",
"the",
"string",
"representation",
"does",
"not",
"already",
"contain",
"that",
"many",
"components",
"for",
"example",
",",
"a",
"dotted",
"version",
"of",
"\"",
"7",
"3",
"\"",
"will",
"return",
"\"",
"7",
"3",
"\"",
"with",
"either",
"one",
"or",
"two",
"components",
"requested",
",",
"\"",
"7",
"3",
"0",
"\"",
"if",
"three",
"are",
"requested",
",",
"and",
"\"",
"7",
"3",
"0",
"0",
"\"",
"if",
"four",
"are",
"requested",
"trailing",
"zero",
"components",
"at",
"the",
"end",
"of",
"a",
"string",
"representation",
"will",
"not",
"be",
"removed",
"for",
"example",
",",
"a",
"dotted",
"version",
"of",
"\"",
"1",
"0",
"0",
"\"",
"will",
"return",
"\"",
"1",
"0",
"0",
"\"",
"if",
"only",
"one",
"or",
"two",
"components",
"are",
"requested"
] |
[
"public",
"string",
"to",
"string",
"with",
"minimum",
"components",
"(",
"int",
"num",
"min",
"components",
")",
"{",
"return",
"to",
"string",
"with",
"components",
"(",
"math",
"max",
"(",
"this",
"num",
"original",
"components",
",",
"num",
"min",
"components",
")",
")",
";",
"}"
] |
[
"add",
"a",
"complete",
"base",
"element"
] |
[
"head",
"base",
"(",
"string",
"uri",
")",
";"
] |
[
"determine",
"if",
"the",
"given",
"instructions",
"which",
"have",
"at",
"least",
"one",
"differing",
"operand",
",",
"have",
"equivalent",
"operand",
"types",
"if",
"operand",
"type",
"is",
"a",
"scalar",
",",
"is",
"it",
"the",
"same",
"scalar"
] |
[
"private",
"boolean",
"have",
"equivalent",
"operands",
"(",
"instruction",
"inst",
"1",
",",
"instruction",
"inst",
"2",
",",
"int",
"[",
"]",
"operands",
"that",
"differ",
")",
"{",
"for",
"(",
"int",
"operand",
":",
"operands",
"that",
"differ",
")",
"{",
"/",
"/",
"first",
",",
"check",
"to",
"see",
"if",
"the",
"op",
"type",
"is",
"the",
"same",
"if",
"not",
",",
"return",
"false",
"int",
"src",
"op",
"type",
"=",
"inst",
"1",
"get",
"operand",
"type",
"(",
"operand",
")",
";",
"int",
"dest",
"op",
"type",
"=",
"inst",
"2",
"get",
"operand",
"type",
"(",
"operand",
")",
";",
"if",
"(",
"src",
"op",
"type",
"!",
"=",
"dest",
"op",
"type",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"if",
"the",
"matching",
"op",
"types",
"are",
"scalars",
",",
"check",
"to",
"see",
"if",
"they",
"are",
"the",
"same",
"if",
"not",
"/",
"/",
"return",
"false",
"if",
"(",
"operand",
"type",
"is",
"scalar",
"(",
"src",
"op",
"type",
")",
"&",
"&",
"!",
"inst",
"1",
"get",
"scalar",
"(",
"operand",
")",
"equals",
"(",
"inst",
"2",
"get",
"scalar",
"(",
"operand",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"if",
"operands",
"are",
"addresses",
"check",
"to",
"see",
"if",
"both",
"refer",
"to",
"data",
"or",
"both",
"refer",
"to",
"code",
"if",
"(",
"operand",
"type",
"is",
"address",
"(",
"src",
"op",
"type",
")",
")",
"{",
"if",
"(",
"operand",
"type",
"is",
"data",
"reference",
"(",
"src",
"op",
"type",
")",
"&",
"&",
"operand",
"type",
"is",
"data",
"reference",
"(",
"dest",
"op",
"type",
")",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"operand",
"type",
"is",
"code",
"reference",
"(",
"src",
"op",
"type",
")",
"&",
"&",
"operand",
"type",
"is",
"code",
"reference",
"(",
"dest",
"op",
"type",
")",
")",
"{",
"continue",
";",
"}",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}"
] |
[
"cleans",
"up",
"after",
"an",
"already",
"-",
"expired",
"ticket",
",",
"by",
"running",
"the",
"necessary",
"processes",
"such",
"as",
"logout",
"notifications",
"and",
"more"
] |
[
"default",
"int",
"clean",
"ticket",
"(",
"final",
"ticket",
"ticket",
")",
"{",
"return",
"0",
";",
"}"
] |
[
"get",
"anytype",
"2"
] |
[
"public",
"object",
"get",
"anytype",
"2",
"(",
")",
"{",
"return",
"anytype",
"2",
";",
"}"
] |
[
"returns",
"the",
"list",
"of",
"{",
"@",
"link",
"fake",
"sample",
"stream",
"item",
"}",
"s",
"that",
"will",
"be",
"passed",
"to",
"{",
"@",
"link",
"fake",
"sample",
"stream",
"#",
"fake",
"sample",
"stream",
"(",
"media",
"source",
"event",
"listener",
"event",
"dispatcher",
",",
"drm",
"session",
"manager",
",",
"drm",
"session",
"event",
"listener",
"event",
"dispatcher",
",",
"format",
",",
"list",
")",
"}"
] |
[
"list",
"<",
"fake",
"sample",
"stream",
"item",
">",
"create",
"(",
"format",
"format",
",",
"media",
"period",
"id",
"media",
"period",
"id",
")",
";"
] |
[
"saves",
"the",
"current",
"processor",
"state",
"for",
"when",
"this",
"context",
"flows",
"to",
"the",
"given",
"address",
"use",
"this",
"method",
"if",
"keeping",
"separate",
"flows",
"from",
"different",
"flow",
"from",
"addresses",
"is",
"not",
"important"
] |
[
"public",
"register",
"value",
"copy",
"to",
"future",
"flow",
"state",
"(",
"address",
"address",
")",
"{",
"return",
"copy",
"to",
"future",
"flow",
"state",
"(",
"address",
"no",
"address",
",",
"address",
")",
";",
"}"
] |
[
"returns",
"the",
"display",
"name",
"of",
"this",
"exporter"
] |
[
"final",
"public",
"string",
"get",
"name",
"(",
")",
"{",
"return",
"name",
";",
"}"
] |
[
"checks",
"that",
"the",
"schema",
"of",
"{",
"@",
"link",
"create",
"table",
"operation",
"}",
"is",
"equal",
"to",
"the",
"given",
"{",
"@",
"link",
"table",
"schema",
"}"
] |
[
"public",
"static",
"matcher",
"<",
"create",
"table",
"operation",
">",
"with",
"schema",
"(",
"table",
"schema",
"schema",
")",
"{",
"return",
"new",
"feature",
"matcher",
"<",
"create",
"table",
"operation",
",",
"table",
"schema",
">",
"(",
"equal",
"to",
"(",
"schema",
")",
",",
"\"",
"table",
"schema",
"of",
"the",
"derived",
"table",
"\"",
",",
"\"",
"table",
"schema",
"\"",
")",
"{",
"@",
"override",
"protected",
"table",
"schema",
"feature",
"value",
"of",
"(",
"create",
"table",
"operation",
"actual",
")",
"{",
"return",
"actual",
"get",
"catalog",
"table",
"(",
")",
"get",
"schema",
"(",
")",
";",
"}",
"}",
";",
"}"
] |
[
"get",
"the",
"rate",
"at",
"which",
"this",
"cleaner",
"thread",
"should",
"be",
"scheduled",
"we",
"do",
"this",
"by",
"taking",
"the",
"minimum",
"expiration",
"time",
"and",
"dividing",
"by",
"4"
] |
[
"public",
"long",
"get",
"rate",
"in",
"ms",
"(",
")",
"{",
"long",
"min",
"lifespan",
"ms",
"=",
"math",
"min",
"(",
"max",
"non",
"mmapped",
"evictable",
"lifespan",
"ms",
",",
"max",
"evictable",
"mmaped",
"lifespan",
"ms",
")",
";",
"long",
"sample",
"time",
"ms",
"=",
"min",
"lifespan",
"ms",
"/",
"4",
";",
"return",
"(",
"sample",
"time",
"ms",
"<",
"1",
")",
"?",
"1",
":",
"sample",
"time",
"ms",
";",
"}"
] |
[
"reads",
"gif",
"file",
"header",
"information"
] |
[
"private",
"void",
"read",
"header",
"(",
")",
"{",
"string",
"builder",
"id",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"6",
";",
"i",
"+",
"+",
")",
"{",
"id",
"append",
"(",
"(",
"char",
")",
"read",
"(",
")",
")",
";",
"}",
"if",
"(",
"!",
"id",
"to",
"string",
"(",
")",
"starts",
"with",
"(",
"\"",
"gif",
"\"",
")",
")",
"{",
"header",
"status",
"=",
"status",
"format",
"error",
";",
"return",
";",
"}",
"read",
"l",
"s",
"d",
"(",
")",
";",
"if",
"(",
"header",
"gct",
"flag",
"&",
"&",
"!",
"err",
"(",
")",
")",
"{",
"header",
"gct",
"=",
"read",
"color",
"table",
"(",
"header",
"gct",
"size",
")",
";",
"header",
"bg",
"color",
"=",
"header",
"gct",
"[",
"header",
"bg",
"index",
"]",
";",
"}",
"}"
] |
[
"check",
"whether",
"there",
"is",
"pending",
"request",
"to",
"the",
"given",
"node",
"this",
"includes",
"both",
"request",
"that",
"have",
"been",
"transmitted",
"(",
"i",
"e",
"in",
"-",
"flight",
"requests",
")",
"and",
"those",
"which",
"are",
"awaiting",
"transmission"
] |
[
"public",
"boolean",
"has",
"pending",
"requests",
"(",
"node",
"node",
")",
"{",
"if",
"(",
"unsent",
"has",
"requests",
"(",
"node",
")",
")",
"return",
"true",
";",
"lock",
"lock",
"(",
")",
";",
"try",
"{",
"return",
"client",
"has",
"in",
"flight",
"requests",
"(",
"node",
"id",
"string",
"(",
")",
")",
";",
"}",
"finally",
"{",
"lock",
"unlock",
"(",
")",
";",
"}",
"}"
] |
[
"return",
"the",
"current",
"message",
"to",
"write",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"nothing",
"was",
"flushed",
"before",
"and",
"so",
"is",
"ready",
"to",
"be",
"written"
] |
[
"public",
"object",
"current",
"(",
")",
"{",
"entry",
"entry",
"=",
"flushed",
"entry",
";",
"if",
"(",
"entry",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"entry",
"msg",
";",
"}"
] |
[
"make",
"a",
"copy",
"of",
"the",
"writable",
"object",
"using",
"serialization",
"to",
"a",
"buffer"
] |
[
"public",
"static",
"void",
"clone",
"into",
"(",
"writable",
"dst",
",",
"writable",
"src",
")",
"throws",
"i",
"o",
"exception",
"{",
"reflection",
"utils",
"clone",
"writable",
"into",
"(",
"dst",
",",
"src",
")",
";",
"}"
] |
[
"judge",
"whether",
"contain",
"server",
"in",
"cluster"
] |
[
"public",
"boolean",
"contains",
"(",
"string",
"server",
"address",
")",
"{",
"for",
"(",
"member",
"server",
":",
"get",
"servers",
"(",
")",
")",
"{",
"if",
"(",
"objects",
"equals",
"(",
"server",
"address",
",",
"server",
"get",
"address",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"g",
"l",
"version",
"get",
"g",
"l",
"version",
"(",
")",
"{",
"return",
"gl",
"version",
";",
"}"
] |
[
"returns",
"the",
"{",
"@",
"link",
"data",
"type",
"manager",
"}",
"associated",
"with",
"this",
"analyzer"
] |
[
"private",
"data",
"type",
"manager",
"get",
"data",
"type",
"manager",
"(",
")",
"{",
"return",
"data",
"type",
"manager",
";",
"}"
] |
[
"gets",
"the",
"most",
"recent",
"persisted",
"process",
"definition",
"that",
"matches",
"this",
"one",
"for",
"tenant",
"and",
"key",
"if",
"none",
"is",
"found",
",",
"returns",
"null",
"this",
"method",
"assumes",
"that",
"the",
"tenant",
"and",
"key",
"are",
"properly",
"set",
"on",
"the",
"process",
"definition",
"entity"
] |
[
"public",
"process",
"definition",
"entity",
"get",
"most",
"recent",
"version",
"of",
"process",
"definition",
"(",
"process",
"definition",
"entity",
"process",
"definition",
")",
"{",
"string",
"key",
"=",
"process",
"definition",
"get",
"key",
"(",
")",
";",
"string",
"tenant",
"id",
"=",
"process",
"definition",
"get",
"tenant",
"id",
"(",
")",
";",
"process",
"definition",
"entity",
"manager",
"process",
"definition",
"manager",
"=",
"context",
"get",
"command",
"context",
"(",
")",
"get",
"process",
"engine",
"configuration",
"(",
")",
"get",
"process",
"definition",
"entity",
"manager",
"(",
")",
";",
"process",
"definition",
"entity",
"existing",
"definition",
"=",
"null",
";",
"if",
"(",
"tenant",
"id",
"!",
"=",
"null",
"&",
"&",
"!",
"tenant",
"id",
"equals",
"(",
"process",
"engine",
"configuration",
"no",
"tenant",
"id",
")",
")",
"{",
"existing",
"definition",
"=",
"process",
"definition",
"manager",
"find",
"latest",
"process",
"definition",
"by",
"key",
"and",
"tenant",
"id",
"(",
"key",
",",
"tenant",
"id",
")",
";",
"}",
"else",
"{",
"existing",
"definition",
"=",
"process",
"definition",
"manager",
"find",
"latest",
"process",
"definition",
"by",
"key",
"(",
"key",
")",
";",
"}",
"return",
"existing",
"definition",
";",
"}"
] |
[
"get",
"the",
"allocated",
"resource"
] |
[
"public",
"abstract",
"resource",
"get",
"capability",
"(",
")",
";"
] |
[
"returns",
"the",
"{",
"@",
"code",
"short",
"}",
"nearest",
"in",
"value",
"to",
"{",
"@",
"code",
"value",
"}"
] |
[
"public",
"static",
"short",
"saturated",
"cast",
"(",
"long",
"value",
")",
"{",
"if",
"(",
"value",
">",
"short",
"max",
"value",
")",
"{",
"return",
"short",
"max",
"value",
";",
"}",
"if",
"(",
"value",
"<",
"short",
"min",
"value",
")",
"{",
"return",
"short",
"min",
"value",
";",
"}",
"return",
"(",
"short",
")",
"value",
";",
"}"
] |
[
"return",
"the",
"deadline",
"(",
"in",
"nanoseconds",
")",
"when",
"the",
"next",
"scheduled",
"task",
"is",
"ready",
"to",
"be",
"run",
"or",
"{",
"@",
"code",
"-",
"1",
"}",
"if",
"no",
"task",
"is",
"scheduled"
] |
[
"protected",
"final",
"long",
"next",
"scheduled",
"task",
"deadline",
"nanos",
"(",
")",
"{",
"scheduled",
"future",
"task",
"<",
"?",
">",
"scheduled",
"task",
"=",
"peek",
"scheduled",
"task",
"(",
")",
";",
"return",
"scheduled",
"task",
"!",
"=",
"null",
"?",
"scheduled",
"task",
"deadline",
"nanos",
"(",
")",
":",
"-",
"1",
";",
"}"
] |
[
"two",
"{",
"@",
"link",
"d",
"f",
"a",
"state",
"}",
"instances",
"are",
"equal",
"if",
"their",
"atn",
"configuration",
"sets",
"are",
"the",
"same",
"this",
"method",
"is",
"used",
"to",
"see",
"if",
"a",
"state",
"already",
"exists",
"because",
"the",
"number",
"of",
"alternatives",
"and",
"number",
"of",
"atn",
"configurations",
"are",
"finite",
",",
"there",
"is",
"a",
"finite",
"number",
"of",
"dfa",
"states",
"that",
"can",
"be",
"processed",
"this",
"is",
"necessary",
"to",
"show",
"that",
"the",
"algorithm",
"terminates",
"cannot",
"test",
"the",
"dfa",
"state",
"numbers",
"here",
"because",
"in",
"{",
"@",
"link",
"parser",
"a",
"t",
"n",
"simulator",
"#",
"add",
"d",
"f",
"a",
"state",
"}",
"we",
"need",
"to",
"know",
"if",
"any",
"other",
"state",
"exists",
"that",
"has",
"this",
"exact",
"set",
"of",
"atn",
"configurations",
"the",
"{",
"@",
"link",
"#",
"state",
"number",
"}",
"is",
"irrelevant"
] |
[
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"/",
"/",
"compare",
"set",
"of",
"atn",
"configurations",
"in",
"this",
"set",
"with",
"other",
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"d",
"f",
"a",
"state",
")",
")",
"{",
"return",
"false",
";",
"}",
"d",
"f",
"a",
"state",
"other",
"=",
"(",
"d",
"f",
"a",
"state",
")",
"o",
";",
"/",
"/",
"todo",
"(",
"sam",
")",
":",
"what",
"to",
"do",
"when",
"configs",
"=",
"=",
"null",
"?",
"boolean",
"same",
"set",
"=",
"this",
"configs",
"equals",
"(",
"other",
"configs",
")",
";",
"/",
"/",
"system",
"out",
"println",
"(",
"\"",
"d",
"f",
"a",
"state",
"equals",
":",
"\"",
"+",
"configs",
"+",
"(",
"same",
"set",
"?",
"\"",
"=",
"=",
"\"",
":",
"\"",
"!",
"=",
"\"",
")",
"+",
"other",
"configs",
")",
";",
"return",
"same",
"set",
";",
"}"
] |
[
"may",
"be",
"overriden",
"by",
"sub",
"classes",
"to",
"set",
"up",
"a",
"different",
"db"
] |
[
"protected",
"database",
"create",
"database",
"(",
")",
"{",
"s",
"q",
"lite",
"database",
"sq",
"lite",
"database",
";",
"if",
"(",
"in",
"memory",
")",
"{",
"sq",
"lite",
"database",
"=",
"s",
"q",
"lite",
"database",
"create",
"(",
"null",
")",
";",
"}",
"else",
"{",
"get",
"context",
"(",
")",
"delete",
"database",
"(",
"db",
"name",
")",
";",
"sq",
"lite",
"database",
"=",
"get",
"context",
"(",
")",
"open",
"or",
"create",
"database",
"(",
"db",
"name",
",",
"0",
",",
"null",
")",
";",
"}",
"return",
"new",
"standard",
"database",
"(",
"sq",
"lite",
"database",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"integer",
"'"
] |
[
"public",
"void",
"integer",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"integer",
"}"
] |
[
"test",
"the",
"property",
"'",
"declawed",
"'"
] |
[
"public",
"void",
"declawed",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"declawed",
"}"
] |
[
"get",
"hdfs",
"file",
"statuses",
"of",
"the",
"reserved",
"paths",
":",
"inodes",
"and",
"raw"
] |
[
"hdfs",
"file",
"status",
"[",
"]",
"get",
"reserved",
"statuses",
"(",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"reserved",
"statuses",
",",
"\"",
"reserved",
"statuses",
"should",
"\"",
"+",
"\"",
"not",
"be",
"null",
"it",
"is",
"populated",
"when",
"f",
"s",
"namesystem",
"loads",
"fs",
"image",
"\"",
"+",
"\"",
"it",
"has",
"to",
"be",
"set",
"at",
"this",
"time",
"instead",
"of",
"initialization",
"time",
"\"",
"+",
"\"",
"because",
"c",
"time",
"is",
"loaded",
"during",
"f",
"s",
"namesystem",
"#",
"load",
"from",
"disk",
"\"",
")",
";",
"return",
"reserved",
"statuses",
";",
"}"
] |
[
"look",
"up",
"a",
"parameter",
"type",
"ids",
"from",
"a",
"method",
"index",
"cheaper",
"than",
":",
"{",
"@",
"code",
"read",
"type",
"list",
"(",
"proto",
"ids",
"get",
"(",
"method",
"ids",
"(",
")",
"get",
"(",
"method",
"dex",
"index",
")",
"get",
"proto",
"index",
"(",
")",
")",
"get",
"parameters",
"offset",
"(",
")",
")",
"get",
"types",
"(",
")",
";",
"}"
] |
[
"public",
"short",
"[",
"]",
"parameter",
"type",
"indices",
"from",
"method",
"index",
"(",
"int",
"method",
"index",
")",
"{",
"check",
"bounds",
"(",
"method",
"index",
",",
"table",
"of",
"contents",
"method",
"ids",
"size",
")",
";",
"int",
"position",
"=",
"table",
"of",
"contents",
"method",
"ids",
"off",
"+",
"(",
"size",
"of",
"member",
"id",
"item",
"*",
"method",
"index",
")",
";",
"position",
"+",
"=",
"size",
"of",
"ushort",
";",
"/",
"/",
"declaring",
"class",
"index",
"int",
"proto",
"index",
"=",
"data",
"get",
"short",
"(",
"position",
")",
"&",
"0x",
"f",
"f",
"f",
"f",
";",
"check",
"bounds",
"(",
"proto",
"index",
",",
"table",
"of",
"contents",
"proto",
"ids",
"size",
")",
";",
"position",
"=",
"table",
"of",
"contents",
"proto",
"ids",
"off",
"+",
"(",
"size",
"of",
"proto",
"id",
"item",
"*",
"proto",
"index",
")",
";",
"position",
"+",
"=",
"size",
"of",
"uint",
";",
"/",
"/",
"shorty",
"index",
"position",
"+",
"=",
"size",
"of",
"uint",
";",
"/",
"/",
"return",
"type",
"index",
"int",
"parameters",
"offset",
"=",
"data",
"get",
"int",
"(",
"position",
")",
";",
"if",
"(",
"parameters",
"offset",
"=",
"=",
"0",
")",
"{",
"return",
"empty",
"short",
"array",
";",
"}",
"position",
"=",
"parameters",
"offset",
";",
"int",
"size",
"=",
"data",
"get",
"int",
"(",
"position",
")",
";",
"if",
"(",
"size",
"<",
"=",
"0",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
"\"",
"unexpected",
"parameter",
"type",
"list",
"size",
":",
"\"",
"+",
"size",
")",
";",
"}",
"position",
"+",
"=",
"size",
"of",
"uint",
";",
"short",
"[",
"]",
"types",
"=",
"new",
"short",
"[",
"size",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"types",
"[",
"i",
"]",
"=",
"data",
"get",
"short",
"(",
"position",
")",
";",
"position",
"+",
"=",
"size",
"of",
"ushort",
";",
"}",
"return",
"types",
";",
"}"
] |
[
"test",
"a",
"string",
"stats",
"aggregation",
"as",
"a",
"subaggregation",
"of",
"a",
"terms",
"aggregation"
] |
[
"public",
"void",
"test",
"nested",
"aggregation",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"mapped",
"field",
"type",
"numeric",
"field",
"type",
"=",
"new",
"number",
"field",
"mapper",
"number",
"field",
"type",
"(",
"\"",
"value",
"\"",
",",
"number",
"field",
"mapper",
"number",
"type",
"integer",
")",
";",
"text",
"field",
"mapper",
"text",
"field",
"type",
"text",
"field",
"type",
"=",
"new",
"text",
"field",
"mapper",
"text",
"field",
"type",
"(",
"\"",
"text",
"\"",
")",
";",
"text",
"field",
"type",
"set",
"fielddata",
"(",
"true",
")",
";",
"terms",
"aggregation",
"builder",
"aggregation",
"builder",
"=",
"new",
"terms",
"aggregation",
"builder",
"(",
"\"",
"terms",
"\"",
")",
"user",
"value",
"type",
"hint",
"(",
"value",
"type",
"numeric",
")",
"field",
"(",
"\"",
"value",
"\"",
")",
"sub",
"aggregation",
"(",
"new",
"string",
"stats",
"aggregation",
"builder",
"(",
"\"",
"text",
"stats",
"\"",
")",
"field",
"(",
"\"",
"text",
"\"",
")",
"user",
"value",
"type",
"hint",
"(",
"value",
"type",
"string",
")",
")",
";",
"directory",
"directory",
"=",
"new",
"directory",
"(",
")",
";",
"random",
"index",
"writer",
"index",
"writer",
"=",
"new",
"random",
"index",
"writer",
"(",
"random",
"(",
")",
",",
"directory",
")",
";",
"final",
"int",
"num",
"docs",
"=",
"10",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"docs",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"4",
";",
"j",
"+",
"+",
")",
"index",
"writer",
"add",
"document",
"(",
"list",
"of",
"(",
"new",
"numeric",
"doc",
"values",
"field",
"(",
"\"",
"value",
"\"",
",",
"i",
"+",
"1",
")",
",",
"new",
"text",
"field",
"(",
"\"",
"text",
"\"",
",",
"\"",
"test",
"\"",
"+",
"j",
",",
"field",
"store",
"no",
")",
")",
")",
";",
"}",
"index",
"writer",
"close",
"(",
")",
";",
"index",
"reader",
"index",
"reader",
"=",
"directory",
"reader",
"open",
"(",
"directory",
")",
";",
"index",
"searcher",
"index",
"searcher",
"=",
"new",
"searcher",
"(",
"index",
"reader",
",",
"true",
",",
"true",
")",
";",
"terms",
"aggregator",
"aggregator",
"=",
"create",
"aggregator",
"(",
"aggregation",
"builder",
",",
"index",
"searcher",
",",
"numeric",
"field",
"type",
",",
"text",
"field",
"type",
")",
";",
"aggregator",
"pre",
"collection",
"(",
")",
";",
"index",
"searcher",
"search",
"(",
"new",
"match",
"all",
"docs",
"query",
"(",
")",
",",
"aggregator",
")",
";",
"terms",
"terms",
"=",
"(",
"terms",
")",
"aggregator",
"build",
"top",
"level",
"(",
")",
";",
"assert",
"not",
"null",
"(",
"terms",
")",
";",
"list",
"<",
"?",
"extends",
"terms",
"bucket",
">",
"buckets",
"=",
"terms",
"get",
"buckets",
"(",
")",
";",
"assert",
"not",
"null",
"(",
"buckets",
")",
";",
"assert",
"equals",
"(",
"10",
",",
"buckets",
"size",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"10",
";",
"i",
"+",
"+",
")",
"{",
"terms",
"bucket",
"bucket",
"=",
"buckets",
"get",
"(",
"i",
")",
";",
"assert",
"not",
"null",
"(",
"bucket",
")",
";",
"assert",
"equals",
"(",
"(",
"long",
")",
"i",
"+",
"1",
",",
"bucket",
"get",
"key",
"as",
"number",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"4l",
",",
"bucket",
"get",
"doc",
"count",
"(",
")",
")",
";",
"internal",
"string",
"stats",
"stats",
"=",
"bucket",
"get",
"aggregations",
"(",
")",
"get",
"(",
"\"",
"text",
"stats",
"\"",
")",
";",
"assert",
"not",
"null",
"(",
"stats",
")",
";",
"assert",
"equals",
"(",
"4l",
",",
"stats",
"get",
"count",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"5",
",",
"stats",
"get",
"max",
"length",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"5",
",",
"stats",
"get",
"min",
"length",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"5",
"0",
",",
"stats",
"get",
"avg",
"length",
"(",
")",
",",
"0",
")",
";",
"assert",
"equals",
"(",
"7",
",",
"stats",
"get",
"distribution",
"(",
")",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"0",
"4",
",",
"stats",
"get",
"distribution",
"(",
")",
"get",
"(",
"\"",
"t",
"\"",
")",
",",
"0",
")",
";",
"assert",
"equals",
"(",
"0",
"2",
",",
"stats",
"get",
"distribution",
"(",
")",
"get",
"(",
"\"",
"e",
"\"",
")",
",",
"0",
")",
";",
"assert",
"equals",
"(",
"2",
"32193",
",",
"stats",
"get",
"entropy",
"(",
")",
",",
"0",
"00001",
")",
";",
"}",
"index",
"reader",
"close",
"(",
")",
";",
"directory",
"close",
"(",
")",
";",
"}"
] |
[
"model",
"tests",
"for",
"format",
"test"
] |
[
"public",
"void",
"test",
"format",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"format",
"test",
"}"
] |
[
"check",
"identity",
"links",
"on",
"process",
"definitions"
] |
[
"public",
"void",
"test",
"process",
"definition",
"identity",
"link",
"events",
"(",
")",
"throws",
"exception",
"{",
"process",
"definition",
"process",
"definition",
"=",
"repository",
"service",
"create",
"process",
"definition",
"query",
"(",
")",
"process",
"definition",
"key",
"(",
"\"",
"one",
"task",
"process",
"\"",
")",
"single",
"result",
"(",
")",
";",
"assert",
"that",
"(",
"process",
"definition",
")",
"is",
"not",
"null",
"(",
")",
";",
"/",
"/",
"add",
"candidate",
"user",
"and",
"group",
"repository",
"service",
"add",
"candidate",
"starter",
"user",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
",",
"\"",
"kermit",
"\"",
")",
";",
"repository",
"service",
"add",
"candidate",
"starter",
"group",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
",",
"\"",
"sales",
"\"",
")",
";",
"assert",
"that",
"(",
"listener",
"get",
"events",
"received",
"(",
")",
")",
"has",
"size",
"(",
"4",
")",
";",
"activiti",
"entity",
"event",
"event",
"=",
"(",
"activiti",
"entity",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"entity",
"created",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"entity",
"(",
")",
")",
"is",
"instance",
"of",
"(",
"identity",
"link",
"class",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"event",
"=",
"(",
"activiti",
"entity",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"1",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"entity",
"initialized",
")",
";",
"event",
"=",
"(",
"activiti",
"entity",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"2",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"entity",
"created",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"entity",
"(",
")",
")",
"is",
"instance",
"of",
"(",
"identity",
"link",
"class",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"event",
"=",
"(",
"activiti",
"entity",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"3",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"entity",
"initialized",
")",
";",
"listener",
"clear",
"events",
"received",
"(",
")",
";",
"/",
"/",
"delete",
"identity",
"links",
"repository",
"service",
"delete",
"candidate",
"starter",
"user",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
",",
"\"",
"kermit",
"\"",
")",
";",
"repository",
"service",
"delete",
"candidate",
"starter",
"group",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
",",
"\"",
"sales",
"\"",
")",
";",
"assert",
"that",
"(",
"listener",
"get",
"events",
"received",
"(",
")",
")",
"has",
"size",
"(",
"2",
")",
";",
"event",
"=",
"(",
"activiti",
"entity",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"entity",
"deleted",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"entity",
"(",
")",
")",
"is",
"instance",
"of",
"(",
"identity",
"link",
"class",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"event",
"=",
"(",
"activiti",
"entity",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"1",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"entity",
"deleted",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"entity",
"(",
")",
")",
"is",
"instance",
"of",
"(",
"identity",
"link",
"class",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"definition",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"}"
] |
[
"initialize",
"cipher",
"based",
"on",
"service",
"public",
"key"
] |
[
"public",
"cipher",
"to",
"cipher",
"(",
")",
"{",
"try",
"{",
"val",
"public",
"key",
"=",
"get",
"object",
"(",
")",
";",
"if",
"(",
"public",
"key",
"!",
"=",
"null",
")",
"{",
"val",
"cipher",
"=",
"cipher",
"get",
"instance",
"(",
"this",
"algorithm",
")",
";",
"cipher",
"init",
"(",
"cipher",
"encrypt",
"mode",
",",
"public",
"key",
")",
";",
"logger",
"trace",
"(",
"\"",
"initialized",
"cipher",
"in",
"encrypt",
"-",
"mode",
"via",
"the",
"public",
"key",
"algorithm",
"[",
"{",
"}",
"]",
"\"",
",",
"this",
"algorithm",
")",
";",
"return",
"cipher",
";",
"}",
"}",
"catch",
"(",
"final",
"exception",
"e",
")",
"{",
"logger",
"warn",
"(",
"\"",
"cipher",
"could",
"not",
"be",
"initialized",
"error",
"[",
"{",
"}",
"]",
"\"",
",",
"e",
"get",
"message",
"(",
")",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
[
"flip",
"the",
"vector",
"and",
"return",
"it",
"-",
"alters",
"this",
"vector"
] |
[
"public",
"final",
"vec",
"2",
"negate",
"local",
"(",
")",
"{",
"x",
"=",
"-",
"x",
";",
"y",
"=",
"-",
"y",
";",
"return",
"this",
";",
"}"
] |
[
"find",
"purchase",
"order",
"by",
"id",
"for",
"valid",
"response",
"try",
"integer",
"i",
"ds",
"with",
"value",
"&",
"lt",
";",
"&",
"#",
"x",
"3",
"d",
";",
"5",
"or",
"&",
"gt",
";",
"10",
"other",
"values",
"will",
"generated",
"exceptions"
] |
[
"public",
"void",
"get",
"order",
"by",
"id",
"(",
"long",
"order",
"id",
",",
"api",
"client",
"auth",
"info",
"auth",
"info",
",",
"handler",
"<",
"async",
"result",
"<",
"order",
">",
">",
"result",
"handler",
")",
"{",
"delegate",
"get",
"order",
"by",
"id",
"(",
"order",
"id",
",",
"auth",
"info",
",",
"result",
"handler",
")",
";",
"}"
] |
[
"return",
"the",
"cookie",
"\"",
"path",
"\"",
"attribute",
",",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"not",
"set"
] |
[
"public",
"string",
"get",
"path",
"(",
")",
"{",
"return",
"this",
"path",
";",
"}"
] |
[
"get",
"direct",
"map"
] |
[
"public",
"map",
"<",
"string",
",",
"boolean",
">",
"get",
"direct",
"map",
"(",
")",
"{",
"return",
"direct",
"map",
";",
"}"
] |
[
"returns",
"a",
"collection",
"view",
"of",
"all",
"values",
"associated",
"with",
"a",
"key",
"if",
"no",
"mappings",
"in",
"the",
"multimap",
"have",
"the",
"provided",
"key",
",",
"an",
"empty",
"collection",
"is",
"returned",
"changes",
"to",
"the",
"returned",
"collection",
"will",
"update",
"the",
"underlying",
"multimap",
",",
"and",
"vice",
"versa",
"because",
"a",
"{",
"@",
"code",
"sorted",
"set",
"multimap",
"}",
"has",
"unique",
"sorted",
"values",
"for",
"a",
"given",
"key",
",",
"this",
"method",
"returns",
"a",
"{",
"@",
"link",
"sorted",
"set",
"}",
",",
"instead",
"of",
"the",
"{",
"@",
"link",
"java",
"util",
"collection",
"}",
"specified",
"in",
"the",
"{",
"@",
"link",
"multimap",
"}",
"interface"
] |
[
"sorted",
"set",
"<",
"v",
">",
"get",
"(",
"@",
"nullable",
"decl",
"k",
"key",
")",
";"
] |
[
"asynchronous",
"version",
"of",
"{",
"@",
"link",
"abstract",
"dao",
"#",
"insert",
"(",
"object",
")",
"}"
] |
[
"public",
"async",
"operation",
"insert",
"(",
"object",
"entity",
")",
"{",
"return",
"insert",
"(",
"entity",
",",
"0",
")",
";",
"}"
] |
[
"returns",
"the",
"api",
"level",
"corresponding",
"to",
"the",
"given",
"magic",
"number",
",",
"or",
"{",
"@",
"code",
"-",
"1",
"}",
"if",
"the",
"given",
"array",
"is",
"not",
"a",
"well",
"-",
"formed",
"dex",
"file",
"magic",
"number"
] |
[
"public",
"static",
"int",
"magic",
"to",
"api",
"(",
"byte",
"[",
"]",
"magic",
")",
"{",
"if",
"(",
"magic",
"length",
"!",
"=",
"8",
")",
"{",
"return",
"-",
"1",
";",
"}",
"if",
"(",
"(",
"magic",
"[",
"0",
"]",
"!",
"=",
"'",
"d",
"'",
")",
"|",
"|",
"(",
"magic",
"[",
"1",
"]",
"!",
"=",
"'",
"e",
"'",
")",
"|",
"|",
"(",
"magic",
"[",
"2",
"]",
"!",
"=",
"'",
"x",
"'",
")",
"|",
"|",
"(",
"magic",
"[",
"3",
"]",
"!",
"=",
"'",
"\\",
"n",
"'",
")",
"|",
"|",
"(",
"magic",
"[",
"7",
"]",
"!",
"=",
"'",
"\\",
"0",
"'",
")",
")",
"{",
"return",
"-",
"1",
";",
"}",
"string",
"version",
"=",
"\"",
"\"",
"+",
"(",
"(",
"char",
")",
"magic",
"[",
"4",
"]",
")",
"+",
"(",
"(",
"char",
")",
"magic",
"[",
"5",
"]",
")",
"+",
"(",
"(",
"char",
")",
"magic",
"[",
"6",
"]",
")",
";",
"if",
"(",
"version",
"equals",
"(",
"version",
"current",
")",
")",
"{",
"return",
"api",
"current",
";",
"}",
"else",
"if",
"(",
"version",
"equals",
"(",
"version",
"for",
"api",
"13",
")",
")",
"{",
"return",
"13",
";",
"}",
"return",
"-",
"1",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] |
[
"@",
"override",
"public",
"t",
"visit",
"value",
"expression",
"default",
"(",
"eql",
"base",
"parser",
"value",
"expression",
"default",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"add",
"the",
"given",
"header",
"values"
] |
[
"b",
"headers",
"(",
"multi",
"value",
"map",
"<",
"string",
",",
"string",
">",
"headers",
")",
";"
] |
[
"register",
"new",
"sub",
"type",
"of",
"health",
"checker",
"to",
"factory",
"for",
"serialize",
"and",
"deserialize"
] |
[
"public",
"static",
"void",
"register",
"sub",
"type",
"(",
"class",
"<",
"?",
"extends",
"abstract",
"health",
"checker",
">",
"extend",
"health",
"checker",
"class",
",",
"string",
"type",
"name",
")",
"{",
"mapper",
"register",
"subtypes",
"(",
"new",
"named",
"type",
"(",
"extend",
"health",
"checker",
"class",
",",
"type",
"name",
")",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"direct",
"map",
"'"
] |
[
"public",
"void",
"direct",
"map",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"direct",
"map",
"}"
] |
[
"asynchronously",
"closes",
"an",
"index",
"using",
"the",
"close",
"index",
"api",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchreferencecurrentindices",
"-",
"open",
"-",
"close",
"html",
"\"",
">",
"close",
"index",
"api",
"on",
"elastic",
"co"
] |
[
"public",
"cancellable",
"close",
"async",
"(",
"close",
"index",
"request",
"close",
"index",
"request",
",",
"request",
"options",
"options",
",",
"action",
"listener",
"<",
"close",
"index",
"response",
">",
"listener",
")",
"{",
"return",
"rest",
"high",
"level",
"client",
"perform",
"request",
"async",
"and",
"parse",
"entity",
"(",
"close",
"index",
"request",
",",
"indices",
"request",
"converters",
":",
":",
"close",
"index",
",",
"options",
",",
"close",
"index",
"response",
":",
":",
"from",
"x",
"content",
",",
"listener",
",",
"empty",
"set",
"(",
")",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"replaces",
"the",
"given",
"'",
"jsr",
"'",
"instruction",
"by",
"a",
"simpler",
"branch",
"instruction",
",",
"if",
"it",
"jumps",
"to",
"a",
"subroutine",
"that",
"doesn",
"'",
"t",
"return",
"or",
"a",
"subroutine",
"that",
"is",
"only",
"called",
"from",
"one",
"place"
] |
[
"private",
"void",
"replace",
"jsr",
"instruction",
"(",
"clazz",
"clazz",
",",
"int",
"offset",
",",
"branch",
"instruction",
"branch",
"instruction",
")",
"{",
"/",
"/",
"is",
"the",
"subroutine",
"ever",
"returning",
"?",
"int",
"subroutine",
"start",
"=",
"offset",
"+",
"branch",
"instruction",
"branch",
"offset",
";",
"if",
"(",
"!",
"partial",
"evaluator",
"is",
"subroutine",
"returning",
"(",
"subroutine",
"start",
")",
"|",
"|",
"partial",
"evaluator",
"branch",
"origins",
"(",
"subroutine",
"start",
")",
"instruction",
"offset",
"count",
"(",
")",
"=",
"=",
"1",
")",
"{",
"/",
"/",
"all",
"'",
"jsr",
"'",
"instructions",
"to",
"this",
"subroutine",
"can",
"be",
"replaced",
"/",
"/",
"by",
"unconditional",
"branch",
"instructions",
"replace",
"branch",
"instruction",
"(",
"clazz",
",",
"offset",
",",
"branch",
"instruction",
")",
";",
"}",
"else",
"if",
"(",
"!",
"partial",
"evaluator",
"is",
"traced",
"(",
"offset",
"+",
"branch",
"instruction",
"length",
"(",
"offset",
")",
")",
")",
"{",
"/",
"/",
"we",
"have",
"to",
"make",
"sure",
"the",
"instruction",
"after",
"this",
"'",
"jsr",
"'",
"/",
"/",
"instruction",
"is",
"valid",
",",
"even",
"if",
"it",
"is",
"never",
"reached",
"replace",
"by",
"infinite",
"loop",
"(",
"clazz",
",",
"offset",
"+",
"branch",
"instruction",
"length",
"(",
"offset",
")",
",",
"branch",
"instruction",
")",
";",
"}",
"}"
] |
[
"set",
"the",
"{",
"@",
"link",
"script",
"engine",
"}",
"to",
"use",
"by",
"the",
"view",
"if",
"{",
"@",
"code",
"render",
"function",
"}",
"is",
"specified",
",",
"the",
"script",
"engine",
"must",
"implement",
"{",
"@",
"code",
"invocable",
"}",
"you",
"must",
"define",
"{",
"@",
"code",
"engine",
"}",
"or",
"{",
"@",
"code",
"engine",
"name",
"}",
",",
"not",
"both",
"when",
"the",
"{",
"@",
"code",
"shared",
"engine",
"}",
"flag",
"is",
"set",
"to",
"{",
"@",
"code",
"false",
"}",
",",
"you",
"should",
"not",
"specify",
"the",
"script",
"engine",
"with",
"this",
"setter",
",",
"but",
"with",
"{",
"@",
"link",
"#",
"set",
"engine",
"name",
"(",
"string",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"set",
"engine",
"supplier",
"(",
"supplier",
")",
"}",
"since",
"it",
"implies",
"multiple",
"lazy",
"instantiations",
"of",
"the",
"script",
"engine"
] |
[
"public",
"void",
"set",
"engine",
"(",
"@",
"nullable",
"script",
"engine",
"engine",
")",
"{",
"this",
"engine",
"=",
"engine",
";",
"}"
] |
[
"get",
"threshold",
"for",
"planning",
"purpose"
] |
[
"private",
"double",
"get",
"threshold",
"percentage",
"(",
"command",
"line",
"cmd",
")",
"{",
"double",
"value",
"=",
"0",
"0",
";",
"if",
"(",
"cmd",
"has",
"option",
"(",
"disk",
"balancer",
"c",
"l",
"i",
"threshold",
")",
")",
"{",
"value",
"=",
"double",
"parse",
"double",
"(",
"cmd",
"get",
"option",
"value",
"(",
"disk",
"balancer",
"c",
"l",
"i",
"threshold",
")",
")",
";",
"}",
"if",
"(",
"(",
"value",
"<",
"=",
"0",
"0",
")",
"|",
"|",
"(",
"value",
">",
"100",
"0",
")",
")",
"{",
"value",
"=",
"get",
"conf",
"(",
")",
"get",
"double",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"disk",
"balancer",
"plan",
"threshold",
",",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"disk",
"balancer",
"plan",
"threshold",
"default",
")",
";",
"}",
"return",
"value",
";",
"}"
] |
[
"verify",
"that",
"without",
"system",
"properties",
"the",
"cluster",
"still",
"comes",
"up",
",",
"provided",
"the",
"configuration",
"is",
"set"
] |
[
"public",
"void",
"test",
"cluster",
"without",
"system",
"properties",
"(",
")",
"throws",
"throwable",
"{",
"string",
"old",
"prp",
"=",
"system",
"get",
"property",
"(",
"mini",
"d",
"f",
"s",
"cluster",
"prop",
"test",
"build",
"data",
")",
";",
"system",
"clear",
"property",
"(",
"mini",
"d",
"f",
"s",
"cluster",
"prop",
"test",
"build",
"data",
")",
";",
"configuration",
"conf",
"=",
"new",
"hdfs",
"configuration",
"(",
")",
";",
"file",
"test",
"data",
"cluster",
"1",
"=",
"new",
"file",
"(",
"test",
"data",
"path",
",",
"cluster",
"1",
")",
";",
"string",
"c",
"1",
"path",
"=",
"test",
"data",
"cluster",
"1",
"get",
"absolute",
"path",
"(",
")",
";",
"conf",
"set",
"(",
"mini",
"d",
"f",
"s",
"cluster",
"hdfs",
"minidfs",
"basedir",
",",
"c",
"1",
"path",
")",
";",
"try",
"(",
"mini",
"d",
"f",
"s",
"cluster",
"cluster",
"=",
"new",
"mini",
"d",
"f",
"s",
"cluster",
"builder",
"(",
"conf",
")",
"build",
"(",
")",
")",
"{",
"assert",
"equals",
"(",
"new",
"file",
"(",
"c",
"1",
"path",
"+",
"\"",
"/",
"data",
"\"",
")",
",",
"new",
"file",
"(",
"cluster",
"get",
"data",
"directory",
"(",
")",
")",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"old",
"prp",
"!",
"=",
"null",
")",
"{",
"system",
"set",
"property",
"(",
"mini",
"d",
"f",
"s",
"cluster",
"prop",
"test",
"build",
"data",
",",
"old",
"prp",
")",
";",
"}",
"}",
"}"
] |
[
"check",
"that",
"the",
"when",
"sending",
"an",
"import",
"-",
"dangling",
"-",
"indices",
"request",
",",
"the",
"specified",
"u",
"u",
"i",
"ds",
"are",
"validated",
"as",
"being",
"dangling"
] |
[
"public",
"void",
"test",
"dangling",
"indices",
"must",
"exist",
"to",
"be",
"imported",
"(",
")",
"{",
"internal",
"cluster",
"(",
")",
"start",
"nodes",
"(",
"1",
",",
"build",
"settings",
"(",
"0",
",",
"true",
")",
")",
";",
"final",
"import",
"dangling",
"index",
"request",
"request",
"=",
"new",
"import",
"dangling",
"index",
"request",
"(",
"\"",
"non",
"existent",
"u",
"u",
"i",
"d",
"\"",
",",
"true",
")",
";",
"final",
"illegal",
"argument",
"exception",
"e",
"=",
"expect",
"throws",
"(",
"illegal",
"argument",
"exception",
"class",
",",
"(",
")",
"-",
">",
"client",
"(",
")",
"admin",
"(",
")",
"cluster",
"(",
")",
"import",
"dangling",
"index",
"(",
"request",
")",
"action",
"get",
"(",
")",
")",
";",
"assert",
"that",
"(",
"e",
"get",
"message",
"(",
")",
",",
"contains",
"string",
"(",
"\"",
"no",
"dangling",
"index",
"found",
"for",
"uuid",
"[",
"non",
"existent",
"u",
"u",
"i",
"d",
"]",
"\"",
")",
")",
";",
"}"
] |
[
"the",
"children",
"of",
"this",
"element",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"xml",
"node",
"child",
"=",
"5",
";",
"<",
"code",
">"
] |
[
"private",
"void",
"add",
"child",
"(",
"com",
"android",
"aapt",
"resources",
"xml",
"node",
"builder",
"builder",
"for",
"value",
")",
"{",
"ensure",
"child",
"is",
"mutable",
"(",
")",
";",
"child",
"add",
"(",
"builder",
"for",
"value",
"build",
"(",
")",
")",
";",
"}"
] |
[
"translates",
"a",
"like",
"pattern",
"to",
"a",
"lucene",
"wildcard",
"this",
"methods",
"pays",
"attention",
"to",
"the",
"custom",
"escape",
"char",
"which",
"gets",
"converted",
"into",
"\\",
"(",
"used",
"by",
"lucene",
")",
"%",
"-",
"&",
"gt",
";",
"-",
"&",
"gt",
";",
"?",
"escape",
"character",
"-",
"can",
"be",
"0",
"(",
"in",
"which",
"case",
"no",
"regex",
"gets",
"escaped",
")",
"or",
"should",
"be",
"followed",
"by",
"%",
"or",
"(",
"otherwise",
"an",
"exception",
"is",
"thrown",
")"
] |
[
"public",
"static",
"string",
"like",
"to",
"lucene",
"wildcard",
"(",
"string",
"pattern",
",",
"char",
"escape",
")",
"{",
"string",
"builder",
"wildcard",
"=",
"new",
"string",
"builder",
"(",
"pattern",
"length",
"(",
")",
"+",
"4",
")",
";",
"boolean",
"escaped",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pattern",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"char",
"curr",
"=",
"pattern",
"char",
"at",
"(",
"i",
")",
";",
"if",
"(",
"!",
"escaped",
"&",
"&",
"(",
"curr",
"=",
"=",
"escape",
")",
"&",
"&",
"escape",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"i",
"+",
"1",
"=",
"=",
"pattern",
"length",
"(",
")",
")",
"{",
"throw",
"new",
"ql",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"sequence",
"-",
"escape",
"character",
"is",
"not",
"followed",
"by",
"special",
"wildcard",
"char",
"\"",
")",
";",
"}",
"escaped",
"=",
"true",
";",
"}",
"else",
"{",
"switch",
"(",
"curr",
")",
"{",
"case",
"'",
"%",
"'",
":",
"wildcard",
"append",
"(",
"escaped",
"?",
"sql",
"wildcard",
":",
"\"",
"*",
"\"",
")",
";",
"break",
";",
"case",
"'",
"'",
":",
"wildcard",
"append",
"(",
"escaped",
"?",
"\"",
"\"",
":",
"\"",
"?",
"\"",
")",
";",
"break",
";",
"default",
":",
"if",
"(",
"escaped",
")",
"{",
"throw",
"new",
"ql",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"sequence",
"-",
"escape",
"character",
"is",
"not",
"followed",
"by",
"special",
"wildcard",
"char",
"\"",
")",
";",
"}",
"/",
"/",
"escape",
"special",
"regex",
"characters",
"switch",
"(",
"curr",
")",
"{",
"case",
"'",
"\\",
"\\",
"'",
":",
"case",
"'",
"*",
"'",
":",
"case",
"'",
"?",
"'",
":",
"wildcard",
"append",
"(",
"'",
"\\",
"\\",
"'",
")",
";",
"}",
"wildcard",
"append",
"(",
"curr",
")",
";",
"}",
"escaped",
"=",
"false",
";",
"}",
"}",
"return",
"wildcard",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"a",
"{",
"@",
"code",
"map",
"}",
"from",
"cluster",
"-",
"privilege",
"-",
"name",
"to",
"access",
"each",
"requested",
"privilege",
"is",
"included",
"as",
"a",
"key",
"in",
"the",
"map",
",",
"and",
"the",
"associated",
"value",
"indicates",
"whether",
"the",
"user",
"was",
"granted",
"that",
"privilege",
"the",
"{",
"@",
"link",
"#",
"has",
"cluster",
"privilege",
"}",
"method",
"should",
"be",
"used",
"in",
"preference",
"to",
"directly",
"accessing",
"this",
"map"
] |
[
"public",
"map",
"<",
"string",
",",
"boolean",
">",
"get",
"cluster",
"privileges",
"(",
")",
"{",
"return",
"cluster",
"privileges",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"complete",
"'"
] |
[
"public",
"void",
"complete",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"complete",
"}"
] |
[
"overridden",
"to",
"provide",
"a",
"web",
"hdfs",
"file",
"system",
"wrapper",
"for",
"the",
"super",
"-",
"user"
] |
[
"protected",
"web",
"hdfs",
"file",
"system",
"create",
"file",
"system",
"(",
")",
"throws",
"exception",
"{",
"return",
"web",
"hdfs",
"test",
"util",
"get",
"web",
"hdfs",
"file",
"system",
"(",
"conf",
",",
"web",
"hdfs",
"constants",
"webhdfs",
"scheme",
")",
";",
"}"
] |
[
"sets",
"new",
"values",
"to",
"all",
"fields",
"of",
"the",
"tuple"
] |
[
"public",
"void",
"set",
"fields",
"(",
"t0",
"value",
"0",
")",
"{",
"this",
"f",
"0",
"=",
"value",
"0",
";",
"}",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"/",
"/",
"standard",
"utilities",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"return",
"the",
"{",
"@",
"code",
"list",
"}",
"of",
"{",
"@",
"code",
"resource",
"}",
"paths",
"to",
"use",
"as",
"sources",
"for",
"serving",
"static",
"resources",
"note",
"that",
"if",
"{",
"@",
"link",
"#",
"set",
"location",
"values",
"(",
"list",
")",
"location",
"values",
"}",
"are",
"provided",
",",
"instead",
"of",
"loaded",
"resource",
"-",
"based",
"locations",
",",
"this",
"method",
"will",
"return",
"empty",
"until",
"after",
"initialization",
"via",
"{",
"@",
"link",
"#",
"after",
"properties",
"set",
"(",
")",
"}"
] |
[
"public",
"list",
"<",
"resource",
">",
"get",
"locations",
"(",
")",
"{",
"return",
"this",
"locations",
";",
"}"
] |
[
"discards",
"the",
"specified",
"byte",
"array"
] |
[
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"b",
")",
"{",
"check",
"not",
"null",
"(",
"b",
")",
";",
"}"
] |
[
"gets",
"the",
"time",
"spent",
"waiting",
"for",
"the",
"delay"
] |
[
"public",
"float",
"get",
"time",
"(",
")",
"{",
"return",
"time",
";",
"}"
] |
[
"concatenates",
"a",
"varargs",
"array",
"of",
"iterables",
"without",
"making",
"a",
"defensive",
"copy",
"of",
"the",
"array"
] |
[
"private",
"static",
"<",
"t",
">",
"fluent",
"iterable",
"<",
"t",
">",
"concat",
"no",
"defensive",
"copy",
"(",
"final",
"iterable",
"<",
"?",
"extends",
"t",
">",
"inputs",
")",
"{",
"for",
"(",
"iterable",
"<",
"?",
"extends",
"t",
">",
"input",
":",
"inputs",
")",
"{",
"check",
"not",
"null",
"(",
"input",
")",
";",
"}",
"return",
"new",
"fluent",
"iterable",
"<",
"t",
">",
"(",
")",
"{",
"@",
"override",
"public",
"iterator",
"<",
"t",
">",
"iterator",
"(",
")",
"{",
"return",
"iterators",
"concat",
"(",
"/",
"*",
"lazily",
"generate",
"the",
"iterators",
"on",
"each",
"input",
"only",
"as",
"needed",
"*",
"/",
"new",
"abstract",
"indexed",
"list",
"iterator",
"<",
"iterator",
"<",
"?",
"extends",
"t",
">",
">",
"(",
"inputs",
"length",
")",
"{",
"@",
"override",
"public",
"iterator",
"<",
"?",
"extends",
"t",
">",
"get",
"(",
"int",
"i",
")",
"{",
"return",
"inputs",
"[",
"i",
"]",
"iterator",
"(",
")",
";",
"}",
"}",
")",
";",
"}",
"}",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.