docstring_tokens
list | code_tokens
list |
---|---|
[
"create",
"sample",
"entities",
"for",
"testing"
] |
[
"static",
"timeline",
"entities",
"generate",
"test",
"entities",
"(",
")",
"{",
"timeline",
"entities",
"entities",
"=",
"new",
"timeline",
"entities",
"(",
")",
";",
"map",
"<",
"string",
",",
"set",
"<",
"object",
">",
">",
"primary",
"filters",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"set",
"<",
"object",
">",
">",
"(",
")",
";",
"set",
"<",
"object",
">",
"l",
"1",
"=",
"new",
"hash",
"set",
"<",
"object",
">",
"(",
")",
";",
"l",
"1",
"add",
"(",
"\"",
"username",
"\"",
")",
";",
"set",
"<",
"object",
">",
"l",
"2",
"=",
"new",
"hash",
"set",
"<",
"object",
">",
"(",
")",
";",
"l",
"2",
"add",
"(",
"integer",
"max",
"value",
")",
";",
"set",
"<",
"object",
">",
"l",
"3",
"=",
"new",
"hash",
"set",
"<",
"object",
">",
"(",
")",
";",
"l",
"3",
"add",
"(",
"\"",
"1",
"2",
"3abc",
"\"",
")",
";",
"set",
"<",
"object",
">",
"l",
"4",
"=",
"new",
"hash",
"set",
"<",
"object",
">",
"(",
")",
";",
"l",
"4",
"add",
"(",
"(",
"long",
")",
"integer",
"max",
"value",
"+",
"1l",
")",
";",
"primary",
"filters",
"put",
"(",
"\"",
"user",
"\"",
",",
"l",
"1",
")",
";",
"primary",
"filters",
"put",
"(",
"\"",
"appname",
"\"",
",",
"l",
"2",
")",
";",
"primary",
"filters",
"put",
"(",
"\"",
"other",
"\"",
",",
"l",
"3",
")",
";",
"primary",
"filters",
"put",
"(",
"\"",
"long",
"\"",
",",
"l",
"4",
")",
";",
"map",
"<",
"string",
",",
"object",
">",
"secondary",
"filters",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"object",
">",
"(",
")",
";",
"secondary",
"filters",
"put",
"(",
"\"",
"start",
"time",
"\"",
",",
"123456",
")",
";",
"secondary",
"filters",
"put",
"(",
"\"",
"status",
"\"",
",",
"\"",
"running",
"\"",
")",
";",
"map",
"<",
"string",
",",
"object",
">",
"other",
"info",
"1",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"object",
">",
"(",
")",
";",
"other",
"info",
"1",
"put",
"(",
"\"",
"info",
"1",
"\"",
",",
"\"",
"val",
"1",
"\"",
")",
";",
"other",
"info",
"1",
"put",
"all",
"(",
"secondary",
"filters",
")",
";",
"string",
"entity",
"id",
"1",
"=",
"\"",
"id",
"1",
"\"",
";",
"string",
"entity",
"type",
"1",
"=",
"\"",
"type",
"1",
"\"",
";",
"string",
"entity",
"id",
"2",
"=",
"\"",
"id",
"2",
"\"",
";",
"string",
"entity",
"type",
"2",
"=",
"\"",
"type",
"2",
"\"",
";",
"map",
"<",
"string",
",",
"set",
"<",
"string",
">",
">",
"related",
"entities",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"set",
"<",
"string",
">",
">",
"(",
")",
";",
"related",
"entities",
"put",
"(",
"entity",
"type",
"2",
",",
"collections",
"singleton",
"(",
"entity",
"id",
"2",
")",
")",
";",
"timeline",
"event",
"ev",
"3",
"=",
"create",
"event",
"(",
"7",
"8",
"9l",
",",
"\"",
"launch",
"event",
"\"",
",",
"null",
")",
";",
"timeline",
"event",
"ev",
"4",
"=",
"create",
"event",
"(",
"0l",
",",
"\"",
"init",
"event",
"\"",
",",
"null",
")",
";",
"list",
"<",
"timeline",
"event",
">",
"events",
"=",
"new",
"array",
"list",
"<",
"timeline",
"event",
">",
"(",
")",
";",
"events",
"add",
"(",
"ev",
"3",
")",
";",
"events",
"add",
"(",
"ev",
"4",
")",
";",
"entities",
"add",
"entity",
"(",
"create",
"entity",
"(",
"entity",
"id",
"2",
",",
"entity",
"type",
"2",
",",
"4",
"5",
"6l",
",",
"events",
",",
"null",
",",
"null",
",",
"null",
",",
"\"",
"domain",
"id",
"1",
"\"",
")",
")",
";",
"timeline",
"event",
"ev",
"1",
"=",
"create",
"event",
"(",
"1",
"2",
"3l",
",",
"\"",
"start",
"event",
"\"",
",",
"null",
")",
";",
"entities",
"add",
"entity",
"(",
"create",
"entity",
"(",
"entity",
"id",
"1",
",",
"entity",
"type",
"1",
",",
"1",
"2",
"3l",
",",
"collections",
"singleton",
"list",
"(",
"ev",
"1",
")",
",",
"related",
"entities",
",",
"primary",
"filters",
",",
"other",
"info",
"1",
",",
"\"",
"domain",
"id",
"1",
"\"",
")",
")",
";",
"return",
"entities",
";",
"}"
] |
[
"sets",
"a",
"specific",
"password",
"for",
"<",
"code",
">",
"hikari",
"data",
"source",
"<",
"code",
">",
"sql",
"connections"
] |
[
"public",
"static",
"void",
"set",
"password",
"(",
"hikari",
"data",
"source",
"data",
"source",
",",
"string",
"password",
")",
"{",
"if",
"(",
"password",
"!",
"=",
"null",
")",
"{",
"data",
"source",
"set",
"password",
"(",
"password",
")",
";",
"log",
"debug",
"(",
"\"",
"setting",
"non",
"null",
"credentials",
"for",
"store",
"connection",
"\"",
")",
";",
"}",
"else",
"{",
"log",
"debug",
"(",
"\"",
"null",
"credentials",
"specified",
"for",
"store",
"connection",
",",
"so",
"ignoring",
"\"",
")",
";",
"}",
"}"
] |
[
"throws",
"if",
"a",
"value",
"<",
"=",
"0",
"is",
"set",
"required"
] |
[
"public",
"test",
"string",
"overloads",
"view",
"model",
"title",
"(",
"@",
"string",
"res",
"int",
"string",
"res",
")",
"{",
"on",
"mutation",
"(",
")",
";",
"assigned",
"attributes",
"epoxy",
"generated",
"model",
"set",
"(",
"0",
")",
";",
"title",
"string",
"attribute",
"data",
"set",
"value",
"(",
"string",
"res",
")",
";",
"return",
"this",
";",
"}"
] |
[
"execute",
"the",
"http",
"method",
"to",
"the",
"given",
"uri",
"template",
",",
"writing",
"the",
"given",
"request",
"entity",
"to",
"the",
"request",
",",
"and",
"returns",
"the",
"response",
"as",
"{",
"@",
"link",
"http",
"rest",
"result",
"}"
] |
[
"public",
"<",
"t",
">",
"http",
"rest",
"result",
"<",
"t",
">",
"exchange",
"form",
"(",
"string",
"url",
",",
"header",
"header",
",",
"query",
"query",
",",
"map",
"<",
"string",
",",
"string",
">",
"body",
"values",
",",
"string",
"http",
"method",
",",
"type",
"response",
"type",
")",
"throws",
"exception",
"{",
"request",
"http",
"entity",
"request",
"http",
"entity",
"=",
"new",
"request",
"http",
"entity",
"(",
"header",
"set",
"content",
"type",
"(",
"media",
"type",
"application",
"form",
"urlencoded",
")",
",",
"query",
",",
"body",
"values",
")",
";",
"return",
"execute",
"(",
"url",
",",
"http",
"method",
",",
"request",
"http",
"entity",
",",
"response",
"type",
")",
";",
"}"
] |
[
"returns",
"with",
"the",
"message",
"array",
"of",
"the",
"queue"
] |
[
"public",
"play",
"message",
"[",
"]",
"get",
"pending",
"audio",
"(",
")",
"{",
"return",
"pending",
"audio",
";",
"}"
] |
[
"https",
":",
"tools",
"ietf",
"orghtmlrfc",
"3",
"9",
"8",
"6",
"#",
"section",
"-",
"5",
"4",
"1"
] |
[
"@",
"test",
"public",
"void",
"rfc",
"3",
"8",
"8",
"6",
"normal",
"examples",
"(",
")",
"{",
"http",
"url",
"url",
"=",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
";",
"p",
"?",
"q",
"\"",
")",
";",
"/",
"/",
"no",
"'",
"g",
":",
"'",
"scheme",
"in",
"http",
"url",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
":",
"h",
"\"",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"g",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
"/",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"g",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"g",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"/",
"g",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"g",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"?",
"y",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
";",
"p",
"?",
"y",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
"?",
"y",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
"?",
"y",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"#",
"s",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
";",
"p",
"?",
"q",
"#",
"s",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
"#",
"s",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
"#",
"s",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
"?",
"y",
"#",
"s",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
"?",
"y",
"#",
"s",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
";",
"x",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
";",
"x",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
";",
"x",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
";",
"x",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"g",
";",
"x",
"?",
"y",
"#",
"s",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"g",
";",
"x",
"?",
"y",
"#",
"s",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"d",
";",
"p",
"?",
"q",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"c",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"g",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"b",
"/",
"g",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"/",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"\"",
")",
")",
";",
"assert",
"that",
"(",
"url",
"resolve",
"(",
"\"",
"/",
"/",
"g",
"\"",
")",
")",
"is",
"equal",
"to",
"(",
"parse",
"(",
"\"",
"http",
":",
"/",
"/",
"a",
"/",
"g",
"\"",
")",
")",
";",
"}"
] |
[
"whether",
"the",
"symbol",
"can",
"be",
"merged",
"into",
"another",
"resource",
"table",
"without",
"there",
"being",
"an",
"existing",
"definition",
"to",
"override",
"used",
"for",
"overlays",
"and",
"set",
"to",
"true",
"when",
"&",
"lt",
";",
"add",
"-",
"resource",
"&",
"gt",
";",
"is",
"specified",
"<",
"code",
">",
"optional",
"bool",
"allow",
"new",
"=",
"4",
";",
"<",
"code",
">"
] |
[
"private",
"void",
"set",
"allow",
"new",
"(",
"boolean",
"value",
")",
"{",
"bit",
"field",
"0",
"|",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"8",
";",
"allow",
"new",
"=",
"value",
";",
"}"
] |
[
"adds",
"a",
"list",
"of",
"media",
"items",
"to",
"the",
"end",
"of",
"the",
"playlist"
] |
[
"void",
"add",
"media",
"items",
"(",
"list",
"<",
"media",
"item",
">",
"media",
"items",
")",
";"
] |
[
"set",
"whether",
"the",
"{",
"@",
"link",
"resource",
"#",
"last",
"modified",
"(",
")",
"}",
"information",
"should",
"be",
"used",
"to",
"drive",
"http",
"responses",
"this",
"configuration",
"is",
"set",
"to",
"{",
"@",
"code",
"true",
"}",
"by",
"default"
] |
[
"public",
"resource",
"handler",
"registration",
"set",
"use",
"last",
"modified",
"(",
"boolean",
"use",
"last",
"modified",
")",
"{",
"this",
"use",
"last",
"modified",
"=",
"use",
"last",
"modified",
";",
"return",
"this",
";",
"}"
] |
[
"appends",
"the",
"prettified",
"multi",
"-",
"line",
"hexadecimal",
"dump",
"of",
"the",
"specified",
"{",
"@",
"link",
"byte",
"buf",
"}",
"to",
"the",
"specified",
"{",
"@",
"link",
"string",
"builder",
"}",
"that",
"is",
"easy",
"to",
"read",
"by",
"humans"
] |
[
"public",
"static",
"void",
"append",
"pretty",
"hex",
"dump",
"(",
"string",
"builder",
"dump",
",",
"byte",
"buf",
"buf",
")",
"{",
"append",
"pretty",
"hex",
"dump",
"(",
"dump",
",",
"buf",
",",
"buf",
"reader",
"index",
"(",
")",
",",
"buf",
"readable",
"bytes",
"(",
")",
")",
";",
"}"
] |
[
"returns",
"a",
"string",
"representation",
"of",
"this",
"location"
] |
[
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"super",
"to",
"string",
"(",
")",
"+",
"\"",
",",
"op",
"rep",
"=",
"\"",
"+",
"rep",
"+",
"\"",
",",
"field",
"name",
"=",
"\"",
"+",
"field",
"name",
";",
"}"
] |
[
"advances",
"to",
"the",
"given",
"entry",
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"the",
"entry",
"was",
"valid",
",",
"{",
"@",
"code",
"false",
"}",
"if",
"it",
"should",
"be",
"skipped"
] |
[
"boolean",
"advance",
"to",
"(",
"e",
"entry",
")",
"{",
"try",
"{",
"k",
"key",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"v",
"value",
"=",
"get",
"live",
"value",
"(",
"entry",
")",
";",
"if",
"(",
"value",
"!",
"=",
"null",
")",
"{",
"next",
"external",
"=",
"new",
"write",
"through",
"entry",
"(",
"key",
",",
"value",
")",
";",
"return",
"true",
";",
"}",
"else",
"{",
"/",
"/",
"skip",
"stale",
"entry",
"return",
"false",
";",
"}",
"}",
"finally",
"{",
"current",
"segment",
"post",
"read",
"cleanup",
"(",
")",
";",
"}",
"}"
] |
[
"checks",
"whether",
"the",
"method",
"defined",
"on",
"the",
"base",
"type",
"with",
"the",
"given",
"arguments",
"is",
"overridden",
"in",
"the",
"given",
"derived",
"type"
] |
[
"public",
"static",
"boolean",
"is",
"overridden",
"(",
"@",
"non",
"null",
"class",
"<",
"?",
">",
"base",
",",
"@",
"non",
"null",
"class",
"<",
"?",
">",
"derived",
",",
"@",
"non",
"null",
"string",
"method",
"name",
",",
"@",
"non",
"null",
"class",
"<",
"?",
">",
"types",
")",
"{",
"/",
"/",
"if",
"derived",
"is",
"not",
"a",
"subclass",
"or",
"implementor",
"of",
"base",
",",
"it",
"can",
"'",
"t",
"override",
"any",
"method",
"/",
"/",
"technically",
"this",
"should",
"also",
"be",
"triggered",
"when",
"base",
"=",
"=",
"derived",
",",
"because",
"it",
"can",
"'",
"t",
"override",
"its",
"own",
"method",
",",
"but",
"/",
"/",
"the",
"unit",
"tests",
"explicitly",
"test",
"for",
"that",
"as",
"working",
"if",
"(",
"!",
"base",
"is",
"assignable",
"from",
"(",
"derived",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"the",
"specified",
"derived",
"class",
"(",
"\"",
"+",
"derived",
"get",
"canonical",
"name",
"(",
")",
"+",
"\"",
")",
"does",
"not",
"derive",
"from",
"the",
"specified",
"base",
"class",
"(",
"\"",
"+",
"base",
"get",
"canonical",
"name",
"(",
")",
"+",
"\"",
")",
"\"",
")",
";",
"}",
"final",
"method",
"base",
"method",
"=",
"util",
"get",
"method",
"(",
"base",
",",
"null",
",",
"method",
"name",
",",
"types",
")",
";",
"if",
"(",
"base",
"method",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"the",
"specified",
"method",
"is",
"not",
"declared",
"by",
"the",
"specified",
"base",
"class",
"(",
"\"",
"+",
"base",
"get",
"canonical",
"name",
"(",
")",
"+",
"\"",
")",
",",
"or",
"it",
"is",
"private",
",",
"static",
"or",
"final",
"\"",
")",
";",
"}",
"final",
"method",
"derived",
"method",
"=",
"util",
"get",
"method",
"(",
"derived",
",",
"base",
",",
"method",
"name",
",",
"types",
")",
";",
"/",
"/",
"the",
"lookup",
"will",
"either",
"return",
"null",
"or",
"the",
"base",
"method",
"when",
"no",
"override",
"has",
"been",
"found",
"(",
"depending",
"on",
"whether",
"/",
"/",
"the",
"base",
"is",
"an",
"interface",
")",
"return",
"derived",
"method",
"!",
"=",
"null",
"&",
"&",
"derived",
"method",
"!",
"=",
"base",
"method",
";",
"}"
] |
[
"renames",
"all",
"the",
"variables",
"in",
"this",
"block",
"and",
"inserts",
"appriopriate",
"phis",
"in",
"successor",
"blocks"
] |
[
"public",
"void",
"process",
"(",
")",
"{",
"/",
"*",
"*",
"from",
"appel",
":",
"*",
"*",
"rename",
"(",
"n",
")",
"=",
"*",
"for",
"each",
"statement",
"s",
"in",
"block",
"n",
"/",
"/",
"'",
"statement",
"'",
"in",
"'",
"block",
"'",
"*",
"/",
"block",
"for",
"each",
"insn",
"(",
"this",
")",
";",
"update",
"successor",
"phis",
"(",
")",
";",
"/",
"/",
"delete",
"all",
"move",
"insns",
"in",
"this",
"block",
"array",
"list",
"<",
"ssa",
"insn",
">",
"insns",
"=",
"block",
"get",
"insns",
"(",
")",
";",
"int",
"sz",
"insns",
"=",
"insns",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"sz",
"insns",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"ssa",
"insn",
"insn",
"=",
"insns",
"get",
"(",
"i",
")",
";",
"ssa",
"insn",
"replace",
"insn",
";",
"replace",
"insn",
"=",
"insns",
"to",
"replace",
"get",
"(",
"insn",
")",
";",
"if",
"(",
"replace",
"insn",
"!",
"=",
"null",
")",
"{",
"insns",
"set",
"(",
"i",
",",
"replace",
"insn",
")",
";",
"}",
"else",
"if",
"(",
"insn",
"is",
"normal",
"move",
"insn",
"(",
")",
"&",
"&",
"!",
"moves",
"to",
"keep",
"contains",
"(",
"insn",
")",
")",
"{",
"insns",
"remove",
"(",
"i",
")",
";",
"}",
"}",
"/",
"/",
"store",
"the",
"start",
"states",
"for",
"our",
"dom",
"children",
"boolean",
"first",
"=",
"true",
";",
"for",
"(",
"ssa",
"basic",
"block",
"child",
":",
"block",
"get",
"dom",
"children",
"(",
")",
")",
"{",
"if",
"(",
"child",
"!",
"=",
"block",
")",
"{",
"/",
"/",
"don",
"'",
"t",
"bother",
"duplicating",
"the",
"array",
"for",
"the",
"first",
"child",
"register",
"spec",
"[",
"]",
"child",
"start",
"=",
"first",
"?",
"current",
"mapping",
":",
"dup",
"array",
"(",
"current",
"mapping",
")",
";",
"starts",
"for",
"blocks",
"[",
"child",
"get",
"index",
"(",
")",
"]",
"=",
"child",
"start",
";",
"first",
"=",
"false",
";",
"}",
"}",
"/",
"/",
"current",
"mapping",
"is",
"owned",
"by",
"a",
"child",
"now",
"}"
] |
[
"return",
"the",
"actual",
"result",
"size",
"(",
"or",
"-",
"1",
"if",
"unknown",
")"
] |
[
"public",
"int",
"get",
"actual",
"size",
"(",
")",
"{",
"return",
"this",
"actual",
"size",
";",
"}"
] |
[
"adds",
"tracking",
"for",
"load",
"stats",
"sent",
"to",
"the",
"given",
"{",
"@",
"code",
"locality",
"}",
"returns",
"the",
"counter",
"object",
"responsible",
"for",
"tracking",
"the",
"client",
"load",
"stats",
"to",
"the",
"given",
"{",
"@",
"code",
"locality",
"}",
"only",
"load",
"stats",
"for",
"tracked",
"localities",
"will",
"be",
"included",
"in",
"generated",
"load",
"reports"
] |
[
"client",
"load",
"counter",
"add",
"locality",
"(",
"locality",
"locality",
")",
";"
] |
[
"gets",
"the",
"size",
"of",
"this",
"instance",
"as",
"utf",
"-",
"16",
"code",
"points",
"that",
"is",
",",
"get",
"the",
"number",
"of",
"16",
"-",
"bit",
"chars",
"in",
"the",
"utf",
"-",
"16",
"encoding",
"of",
"this",
"instance",
"this",
"is",
"the",
"same",
"as",
"the",
"{",
"@",
"code",
"length",
"}",
"of",
"the",
"java",
"{",
"@",
"code",
"string",
"}",
"representation",
"of",
"this",
"instance"
] |
[
"public",
"int",
"get",
"utf",
"1",
"6",
"size",
"(",
")",
"{",
"return",
"string",
"length",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"fully",
"-",
"populated",
"{",
"@",
"link",
"recipient",
"}",
"may",
"hit",
"the",
"disk",
",",
"and",
"therefore",
"should",
"be",
"called",
"on",
"a",
"background",
"thread"
] |
[
"public",
"static",
"@",
"non",
"null",
"recipient",
"resolved",
"(",
"@",
"non",
"null",
"recipient",
"id",
"id",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"id",
",",
"\"",
"id",
"cannot",
"be",
"null",
"\"",
")",
";",
"return",
"live",
"(",
"id",
")",
"resolve",
"(",
")",
";",
"}"
] |
[
"tpc",
"-",
"ds",
"answer",
"set",
"has",
"three",
"kind",
"of",
"formats",
",",
"recognize",
"them",
"and",
"convert",
"to",
"unified",
"format"
] |
[
"private",
"static",
"void",
"format",
"(",
"file",
"origin",
"file",
",",
"file",
"dest",
"file",
")",
"throws",
"exception",
"{",
"buffered",
"reader",
"reader",
"=",
"new",
"buffered",
"reader",
"(",
"new",
"file",
"reader",
"(",
"origin",
"file",
")",
")",
";",
"buffered",
"writer",
"writer",
"=",
"new",
"buffered",
"writer",
"(",
"new",
"file",
"writer",
"(",
"dest",
"file",
")",
")",
";",
"string",
"line",
";",
"list",
"<",
"integer",
">",
"col",
"length",
"list",
";",
"list",
"<",
"string",
">",
"content",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"while",
"(",
"(",
"line",
"=",
"reader",
"read",
"line",
"(",
")",
")",
"!",
"=",
"null",
")",
"{",
"content",
"add",
"(",
"line",
")",
";",
"}",
"if",
"(",
"is",
"format",
"1",
"(",
"content",
")",
")",
"{",
"col",
"length",
"list",
"=",
"arrays",
"stream",
"(",
"content",
"get",
"(",
"1",
")",
"split",
"(",
"regex",
"split",
"bar",
")",
")",
"map",
"(",
"col",
"-",
">",
"col",
"length",
"(",
")",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"write",
"content",
"(",
"writer",
",",
"content",
",",
"col",
"length",
"list",
")",
";",
"}",
"else",
"if",
"(",
"is",
"format",
"2",
"(",
"content",
")",
")",
"{",
"col",
"length",
"list",
"=",
"arrays",
"stream",
"(",
"content",
"get",
"(",
"1",
")",
"split",
"(",
"result",
"head",
"string",
"space",
")",
")",
"map",
"(",
"col",
"-",
">",
"col",
"length",
"(",
")",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"write",
"content",
"(",
"writer",
",",
"content",
",",
"col",
"length",
"list",
")",
";",
"}",
"else",
"{",
"write",
"content",
"(",
"writer",
",",
"content",
",",
"null",
")",
";",
"}",
"reader",
"close",
"(",
")",
";",
"writer",
"close",
"(",
")",
";",
"}"
] |
[
"the",
"json",
"doesn",
"'",
"t",
"include",
"end",
"frames",
"the",
"data",
"can",
"be",
"taken",
"from",
"the",
"start",
"frame",
"of",
"the",
"next",
"keyframe",
"though"
] |
[
"public",
"static",
"<",
"t",
">",
"void",
"set",
"end",
"frames",
"(",
"list",
"<",
"?",
"extends",
"keyframe",
"<",
"t",
">",
">",
"keyframes",
")",
"{",
"int",
"size",
"=",
"keyframes",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
"-",
"1",
";",
"i",
"+",
"+",
")",
"{",
"/",
"/",
"in",
"the",
"json",
",",
"the",
"keyframes",
"only",
"contain",
"their",
"starting",
"frame",
"keyframe",
"<",
"t",
">",
"keyframe",
"=",
"keyframes",
"get",
"(",
"i",
")",
";",
"keyframe",
"<",
"t",
">",
"next",
"keyframe",
"=",
"keyframes",
"get",
"(",
"i",
"+",
"1",
")",
";",
"keyframe",
"end",
"frame",
"=",
"next",
"keyframe",
"start",
"frame",
";",
"if",
"(",
"keyframe",
"end",
"value",
"=",
"=",
"null",
"&",
"&",
"next",
"keyframe",
"start",
"value",
"!",
"=",
"null",
")",
"{",
"keyframe",
"end",
"value",
"=",
"next",
"keyframe",
"start",
"value",
";",
"if",
"(",
"keyframe",
"instanceof",
"path",
"keyframe",
")",
"{",
"(",
"(",
"path",
"keyframe",
")",
"keyframe",
")",
"create",
"path",
"(",
")",
";",
"}",
"}",
"}",
"keyframe",
"<",
"?",
">",
"last",
"keyframe",
"=",
"keyframes",
"get",
"(",
"size",
"-",
"1",
")",
";",
"if",
"(",
"(",
"last",
"keyframe",
"start",
"value",
"=",
"=",
"null",
"|",
"|",
"last",
"keyframe",
"end",
"value",
"=",
"=",
"null",
")",
"&",
"&",
"keyframes",
"size",
"(",
")",
">",
"1",
")",
"{",
"/",
"/",
"the",
"only",
"purpose",
"the",
"last",
"keyframe",
"has",
"is",
"to",
"provide",
"the",
"end",
"frame",
"of",
"the",
"previous",
"/",
"/",
"keyframe",
"keyframes",
"remove",
"(",
"last",
"keyframe",
")",
";",
"}",
"}"
] |
[
"test",
"the",
"property",
"'",
"$",
"special",
"property",
"name",
"'"
] |
[
"public",
"void",
"$",
"special",
"property",
"name",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"$",
"special",
"property",
"name",
"}"
] |
[
"the",
"set",
"of",
"values",
"defined",
"for",
"this",
"entry",
",",
"each",
"corresponding",
"to",
"a",
"different",
"configurationvariant",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"config",
"value",
"config",
"value",
"=",
"4",
";",
"<",
"code",
">"
] |
[
"public",
"java",
"util",
"list",
"<",
"?",
"extends",
"com",
"android",
"aapt",
"resources",
"config",
"value",
"or",
"builder",
">",
"get",
"config",
"value",
"or",
"builder",
"list",
"(",
")",
"{",
"return",
"config",
"value",
";",
"}"
] |
[
"set",
"a",
"connection",
"spec",
"for",
"this",
"proxy",
"and",
"the",
"current",
"thread",
"the",
"given",
"connection",
"spec",
"will",
"be",
"applied",
"to",
"all",
"subsequent",
"{",
"@",
"code",
"get",
"connection",
"(",
")",
"}",
"calls",
"on",
"this",
"connection",
"factory",
"proxy",
"this",
"will",
"override",
"any",
"statically",
"specified",
"\"",
"connection",
"spec",
"\"",
"property"
] |
[
"public",
"void",
"set",
"connection",
"spec",
"for",
"current",
"thread",
"(",
"connection",
"spec",
"spec",
")",
"{",
"this",
"thread",
"bound",
"spec",
"set",
"(",
"spec",
")",
";",
"}"
] |
[
"to",
"indicate",
"a",
"pointer",
"to",
"thumb",
"code",
",",
"the",
"compiler",
"generates",
"an",
"address",
"that",
"is",
"1",
"more",
"than",
"the",
"actual",
"destination",
"for",
"example",
",",
"a",
"pointer",
"to",
"thumb",
"code",
"at",
"0x",
"1",
"0",
"0",
"0",
"would",
"be",
"generated",
"as",
"0x",
"1",
"0",
"0",
"1",
"we",
"detect",
"this",
"case",
"and",
"correct",
"the",
"pointer",
"reference",
"so",
"that",
"ghidra",
"will",
"disassemble",
"correctly",
"we",
"also",
"need",
"to",
"set",
"the",
"t",
"mode",
"bit",
"!"
] |
[
"private",
"void",
"fixup",
"thumb",
"pointers",
"(",
"address",
"address",
")",
"throws",
"address",
"overflow",
"exception",
"{",
"data",
"data",
"=",
"listing",
"get",
"defined",
"data",
"at",
"(",
"address",
")",
";",
"if",
"(",
"data",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"object",
"value",
"=",
"data",
"get",
"value",
"(",
")",
";",
"if",
"(",
"!",
"(",
"value",
"instanceof",
"address",
")",
")",
"{",
"return",
";",
"}",
"address",
"pointer",
"address",
"=",
"(",
"address",
")",
"value",
";",
"if",
"(",
"(",
"pointer",
"address",
"get",
"offset",
"(",
")",
"%",
"2",
")",
"=",
"=",
"0",
")",
"{",
"/",
"/",
"is",
"the",
"pointer",
"an",
"even",
"/",
"/",
"value",
"?",
"return",
";",
"}",
"memory",
"block",
"pointer",
"block",
"=",
"memory",
"get",
"block",
"(",
"pointer",
"address",
")",
";",
"if",
"(",
"pointer",
"block",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"!",
"pointer",
"block",
"is",
"execute",
"(",
")",
")",
"{",
"return",
";",
"/",
"/",
"not",
"pointing",
"to",
"code",
"}",
"reference",
"[",
"]",
"refs",
"=",
"data",
"get",
"references",
"from",
"(",
")",
";",
"reference",
"manager",
"reference",
"manager",
"=",
"program",
"get",
"reference",
"manager",
"(",
")",
";",
"for",
"(",
"reference",
"ref",
":",
"refs",
")",
"{",
"if",
"(",
"monitor",
"is",
"cancelled",
"(",
")",
")",
"{",
"break",
";",
"}",
"if",
"(",
"ref",
"get",
"to",
"address",
"(",
")",
"equals",
"(",
"pointer",
"address",
")",
")",
"{",
"reference",
"manager",
"delete",
"(",
"ref",
")",
";",
"address",
"thumb",
"address",
"=",
"ref",
"get",
"to",
"address",
"(",
")",
"subtract",
"(",
"1",
")",
";",
"reference",
"manager",
"add",
"memory",
"reference",
"(",
"ref",
"get",
"from",
"address",
"(",
")",
",",
"thumb",
"address",
",",
"ref",
"get",
"reference",
"type",
"(",
")",
",",
"ref",
"get",
"source",
"(",
")",
",",
"ref",
"get",
"operand",
"index",
"(",
")",
")",
";",
"try",
"{",
"mark",
"as",
"thumb",
"(",
"thumb",
"address",
")",
";",
"}",
"catch",
"(",
"context",
"change",
"exception",
"e",
")",
"{",
"/",
"/",
"ignore",
"since",
"no",
"instruction",
"should",
"exist",
"at",
"time",
"of",
"import",
"}",
"}",
"}",
"}"
] |
[
"the",
"base",
"data",
"type",
"that",
"this",
"location",
"descriptor",
"describes",
"(",
"this",
"may",
"be",
"the",
"same",
"as",
"the",
"original",
"data",
"type"
] |
[
"protected",
"data",
"type",
"get",
"base",
"data",
"type",
"(",
")",
"{",
"return",
"get",
"source",
"data",
"type",
"(",
")",
";",
"/",
"/",
"by",
"default",
"these",
"two",
"values",
"are",
"the",
"same",
"}"
] |
[
"visit",
"a",
"parse",
"tree",
"produced",
"by",
"the",
"{",
"@",
"code",
"break",
"}",
"labeled",
"alternative",
"in",
"{",
"@",
"link",
"painless",
"parser",
"#",
"dstatement",
"}"
] |
[
"t",
"visit",
"break",
"(",
"painless",
"parser",
"break",
"context",
"ctx",
")",
";"
] |
[
"check",
"if",
"option",
"-",
"list",
"-",
"corruptfiles",
"of",
"fsck",
"command",
"works",
"properly"
] |
[
"public",
"void",
"test",
"fsck",
"list",
"corrupt",
"files",
"blocks",
"(",
")",
"throws",
"exception",
"{",
"conf",
"set",
"long",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"blockreport",
"interval",
"msec",
"key",
",",
"1000",
")",
";",
"conf",
"set",
"int",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"datanode",
"directoryscan",
"interval",
"key",
",",
"1",
")",
";",
"file",
"system",
"fs",
"=",
"null",
";",
"file",
"builder",
"base",
"dir",
"=",
"new",
"file",
"(",
"generic",
"test",
"utils",
"get",
"randomized",
"temp",
"path",
"(",
")",
")",
";",
"cluster",
"=",
"new",
"mini",
"d",
"f",
"s",
"cluster",
"builder",
"(",
"conf",
",",
"builder",
"base",
"dir",
")",
"build",
"(",
")",
";",
"cluster",
"wait",
"active",
"(",
")",
";",
"fs",
"=",
"cluster",
"get",
"file",
"system",
"(",
")",
";",
"d",
"f",
"s",
"test",
"util",
"util",
"=",
"new",
"d",
"f",
"s",
"test",
"util",
"builder",
"(",
")",
"set",
"name",
"(",
"\"",
"test",
"get",
"corrupt",
"files",
"\"",
")",
"set",
"num",
"files",
"(",
"3",
")",
"set",
"max",
"levels",
"(",
"1",
")",
"set",
"max",
"size",
"(",
"1024",
")",
"build",
"(",
")",
";",
"util",
"create",
"files",
"(",
"fs",
",",
"\"",
"/",
"corrupt",
"data",
"\"",
",",
"(",
"short",
")",
"1",
")",
";",
"util",
"wait",
"replication",
"(",
"fs",
",",
"\"",
"/",
"corrupt",
"data",
"\"",
",",
"(",
"short",
")",
"1",
")",
";",
"string",
"out",
"str",
"=",
"run",
"fsck",
"(",
"conf",
",",
"0",
",",
"false",
",",
"\"",
"/",
"corrupt",
"data",
"\"",
",",
"\"",
"-",
"list",
"-",
"corruptfileblocks",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"1",
"good",
"fsck",
"out",
":",
"\"",
"+",
"out",
"str",
")",
";",
"assert",
"true",
"(",
"out",
"str",
"contains",
"(",
"\"",
"has",
"0",
"corrupt",
"files",
"\"",
")",
")",
";",
"/",
"/",
"delete",
"the",
"blocks",
"final",
"string",
"bpid",
"=",
"cluster",
"get",
"namesystem",
"(",
")",
"get",
"block",
"pool",
"id",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"4",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"=",
"1",
";",
"j",
"+",
"+",
")",
"{",
"file",
"storage",
"dir",
"=",
"cluster",
"get",
"instance",
"storage",
"dir",
"(",
"i",
",",
"j",
")",
";",
"file",
"data",
"dir",
"=",
"mini",
"d",
"f",
"s",
"cluster",
"get",
"finalized",
"dir",
"(",
"storage",
"dir",
",",
"bpid",
")",
";",
"list",
"<",
"file",
">",
"metadata",
"files",
"=",
"mini",
"d",
"f",
"s",
"cluster",
"get",
"all",
"block",
"metadata",
"files",
"(",
"data",
"dir",
")",
";",
"if",
"(",
"metadata",
"files",
"=",
"=",
"null",
")",
"{",
"continue",
";",
"}",
"for",
"(",
"file",
"metadata",
"file",
":",
"metadata",
"files",
")",
"{",
"file",
"block",
"file",
"=",
"block",
"meta",
"to",
"block",
"file",
"(",
"metadata",
"file",
")",
";",
"assert",
"true",
"(",
"\"",
"cannot",
"remove",
"file",
"\"",
",",
"block",
"file",
"delete",
"(",
")",
")",
";",
"assert",
"true",
"(",
"\"",
"cannot",
"remove",
"file",
"\"",
",",
"metadata",
"file",
"delete",
"(",
")",
")",
";",
"}",
"}",
"}",
"wait",
"for",
"corruption",
"blocks",
"(",
"3",
",",
"\"",
"/",
"corrupt",
"data",
"\"",
")",
";",
"out",
"str",
"=",
"run",
"fsck",
"(",
"conf",
",",
"-",
"1",
",",
"true",
",",
"\"",
"/",
"corrupt",
"data",
"\"",
",",
"\"",
"-",
"list",
"-",
"corruptfileblocks",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"2",
"bad",
"fsck",
"out",
":",
"\"",
"+",
"out",
"str",
")",
";",
"assert",
"true",
"(",
"out",
"str",
"contains",
"(",
"\"",
"has",
"3",
"corrupt",
"files",
"\"",
")",
")",
";",
"/",
"/",
"do",
"a",
"listing",
"on",
"a",
"dir",
"which",
"doesn",
"'",
"t",
"have",
"any",
"corrupt",
"blocks",
"and",
"validate",
"util",
"create",
"files",
"(",
"fs",
",",
"\"",
"/",
"good",
"data",
"\"",
")",
";",
"out",
"str",
"=",
"run",
"fsck",
"(",
"conf",
",",
"0",
",",
"true",
",",
"\"",
"/",
"good",
"data",
"\"",
",",
"\"",
"-",
"list",
"-",
"corruptfileblocks",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"3",
"good",
"fsck",
"out",
":",
"\"",
"+",
"out",
"str",
")",
";",
"assert",
"true",
"(",
"out",
"str",
"contains",
"(",
"\"",
"has",
"0",
"corrupt",
"files",
"\"",
")",
")",
";",
"util",
"cleanup",
"(",
"fs",
",",
"\"",
"/",
"good",
"data",
"\"",
")",
";",
"/",
"/",
"validate",
"if",
"a",
"directory",
"have",
"any",
"invalid",
"entries",
"util",
"create",
"files",
"(",
"fs",
",",
"\"",
"/",
"corrupt",
"da",
"\"",
")",
";",
"out",
"str",
"=",
"run",
"fsck",
"(",
"conf",
",",
"0",
",",
"true",
",",
"\"",
"/",
"corrupt",
"da",
"\"",
",",
"\"",
"-",
"list",
"-",
"corruptfileblocks",
"\"",
")",
";",
"assert",
"true",
"(",
"out",
"str",
"contains",
"(",
"\"",
"has",
"0",
"corrupt",
"files",
"\"",
")",
")",
";",
"util",
"cleanup",
"(",
"fs",
",",
"\"",
"/",
"corrupt",
"data",
"\"",
")",
";",
"util",
"cleanup",
"(",
"fs",
",",
"\"",
"/",
"corrupt",
"da",
"\"",
")",
";",
"}"
] |
[
"set",
"the",
"'",
"validated",
"'",
"annotation",
"type",
"the",
"default",
"validated",
"annotation",
"type",
"is",
"the",
"{",
"@",
"link",
"validated",
"}",
"annotation",
"this",
"setter",
"property",
"exists",
"so",
"that",
"developers",
"can",
"provide",
"their",
"own",
"(",
"non",
"-",
"spring",
"-",
"specific",
")",
"annotation",
"type",
"to",
"indicate",
"that",
"a",
"class",
"is",
"supposed",
"to",
"be",
"validated",
"in",
"the",
"sense",
"of",
"applying",
"method",
"validation"
] |
[
"public",
"void",
"set",
"validated",
"annotation",
"type",
"(",
"class",
"<",
"?",
"extends",
"annotation",
">",
"validated",
"annotation",
"type",
")",
"{",
"assert",
"not",
"null",
"(",
"validated",
"annotation",
"type",
",",
"\"",
"'",
"validated",
"annotation",
"type",
"'",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"this",
"validated",
"annotation",
"type",
"=",
"validated",
"annotation",
"type",
";",
"}"
] |
[
"this",
"method",
"invalidates",
"a",
"refresh",
"token",
"so",
"that",
"it",
"may",
"no",
"longer",
"be",
"used",
"invalidation",
"involves",
"performing",
"an",
"update",
"to",
"the",
"token",
"document",
"and",
"setting",
"the",
"<",
"code",
">",
"refresh",
"token",
"invalidated",
"<",
"code",
">",
"field",
"to",
"<",
"code",
">",
"true",
"<",
"code",
">"
] |
[
"public",
"void",
"invalidate",
"refresh",
"token",
"(",
"string",
"refresh",
"token",
",",
"action",
"listener",
"<",
"tokens",
"invalidation",
"result",
">",
"listener",
")",
"{",
"ensure",
"enabled",
"(",
")",
";",
"if",
"(",
"strings",
"is",
"null",
"or",
"empty",
"(",
"refresh",
"token",
")",
")",
"{",
"logger",
"trace",
"(",
"\"",
"no",
"refresh",
"token",
"provided",
"\"",
")",
";",
"listener",
"on",
"failure",
"(",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"refresh",
"token",
"must",
"be",
"provided",
"\"",
")",
")",
";",
"}",
"else",
"{",
"maybe",
"start",
"token",
"remover",
"(",
")",
";",
"final",
"iterator",
"<",
"time",
"value",
">",
"backoff",
"=",
"default",
"backoff",
"iterator",
"(",
")",
";",
"find",
"token",
"from",
"refresh",
"token",
"(",
"refresh",
"token",
",",
"backoff",
",",
"action",
"listener",
"wrap",
"(",
"search",
"hits",
"-",
">",
"{",
"if",
"(",
"search",
"hits",
"get",
"hits",
"(",
")",
"length",
"<",
"1",
")",
"{",
"logger",
"debug",
"(",
"\"",
"could",
"not",
"find",
"token",
"document",
"for",
"refresh",
"token",
"\"",
")",
";",
"listener",
"on",
"response",
"(",
"tokens",
"invalidation",
"result",
"empty",
"result",
"(",
"rest",
"status",
"not",
"found",
")",
")",
";",
"}",
"else",
"if",
"(",
"search",
"hits",
"get",
"hits",
"(",
")",
"length",
">",
"1",
")",
"{",
"listener",
"on",
"failure",
"(",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"multiple",
"tokens",
"share",
"the",
"same",
"refresh",
"token",
"\"",
")",
")",
";",
"}",
"else",
"{",
"final",
"tuple",
"<",
"user",
"token",
",",
"refresh",
"token",
"status",
">",
"parsed",
"tokens",
"=",
"parse",
"token",
"and",
"refresh",
"status",
"(",
"search",
"hits",
"get",
"at",
"(",
"0",
")",
"get",
"source",
"as",
"map",
"(",
")",
")",
";",
"final",
"user",
"token",
"user",
"token",
"=",
"parsed",
"tokens",
"v",
"1",
"(",
")",
";",
"final",
"refresh",
"token",
"status",
"refresh",
"=",
"parsed",
"tokens",
"v",
"2",
"(",
")",
";",
"if",
"(",
"refresh",
"is",
"invalidated",
"(",
")",
")",
"{",
"listener",
"on",
"response",
"(",
"new",
"tokens",
"invalidation",
"result",
"(",
"list",
"of",
"(",
")",
",",
"list",
"of",
"(",
"user",
"token",
"get",
"id",
"(",
")",
")",
",",
"null",
",",
"rest",
"status",
"ok",
")",
")",
";",
"}",
"else",
"{",
"index",
"invalidation",
"(",
"collections",
"singleton",
"list",
"(",
"user",
"token",
")",
",",
"backoff",
",",
"\"",
"refresh",
"token",
"\"",
",",
"null",
",",
"listener",
")",
";",
"}",
"}",
"}",
",",
"e",
"-",
">",
"{",
"if",
"(",
"e",
"instanceof",
"index",
"not",
"found",
"exception",
"|",
"|",
"e",
"instanceof",
"index",
"closed",
"exception",
")",
"{",
"listener",
"on",
"failure",
"(",
"new",
"elasticsearch",
"security",
"exception",
"(",
"\"",
"failed",
"to",
"invalidate",
"token",
"\"",
",",
"rest",
"status",
"bad",
"request",
")",
")",
";",
"}",
"else",
"{",
"listener",
"on",
"failure",
"(",
"unable",
"to",
"perform",
"action",
"(",
"e",
")",
")",
";",
"}",
"}",
")",
")",
";",
"}",
"}"
] |
[
"sets",
"the",
"description",
"to",
"be",
"used",
"in",
"the",
"tooltip"
] |
[
"public",
"void",
"set",
"description",
"(",
"string",
"new",
"description",
")",
"{",
"if",
"(",
"system",
"utilities",
"is",
"equal",
"(",
"new",
"description",
",",
"description",
")",
")",
"{",
"return",
";",
"}",
"string",
"old",
"description",
"=",
"description",
";",
"description",
"=",
"new",
"description",
";",
"fire",
"property",
"changed",
"(",
"description",
"property",
",",
"old",
"description",
",",
"new",
"description",
")",
";",
"}"
] |
[
"test",
"method",
"'",
"job",
"'",
"should",
"print",
"message",
"about",
"error",
"or",
"set",
"job",
"page",
"class",
"for",
"rendering"
] |
[
"public",
"void",
"test",
"get",
"job",
"(",
")",
"{",
"when",
"(",
"job",
"check",
"access",
"(",
"any",
"(",
"user",
"group",
"information",
"class",
")",
",",
"any",
"(",
"job",
"a",
"c",
"l",
"class",
")",
")",
")",
"then",
"return",
"(",
"false",
")",
";",
"app",
"controller",
"job",
"(",
")",
";",
"verify",
"(",
"app",
"controller",
"response",
"(",
")",
")",
"set",
"content",
"type",
"(",
"mime",
"type",
"text",
")",
";",
"assert",
"equals",
"(",
"\"",
"access",
"denied",
":",
"user",
"user",
"does",
"not",
"have",
"permission",
"to",
"view",
"job",
"job",
"01",
"01",
"\"",
",",
"app",
"controller",
"get",
"data",
"(",
")",
")",
";",
"when",
"(",
"job",
"check",
"access",
"(",
"any",
"(",
"user",
"group",
"information",
"class",
")",
",",
"any",
"(",
"job",
"a",
"c",
"l",
"class",
")",
")",
")",
"then",
"return",
"(",
"true",
")",
";",
"app",
"controller",
"get",
"property",
"(",
")",
"remove",
"(",
"a",
"m",
"params",
"job",
"id",
")",
";",
"app",
"controller",
"job",
"(",
")",
";",
"assert",
"equals",
"(",
"\"",
"access",
"denied",
":",
"user",
"user",
"does",
"not",
"have",
"permission",
"to",
"view",
"job",
"job",
"01",
"0",
"1",
"bad",
"request",
":",
"missing",
"job",
"id",
"\"",
",",
"app",
"controller",
"get",
"data",
"(",
")",
")",
";",
"app",
"controller",
"get",
"property",
"(",
")",
"put",
"(",
"a",
"m",
"params",
"job",
"id",
",",
"\"",
"job",
"01",
"01",
"\"",
")",
";",
"app",
"controller",
"job",
"(",
")",
";",
"assert",
"equals",
"(",
"job",
"page",
"class",
",",
"app",
"controller",
"get",
"clazz",
"(",
")",
")",
";",
"}"
] |
[
"writes",
"a",
"simple",
"error",
"response",
"message"
] |
[
"private",
"static",
"void",
"send",
"error",
"(",
"channel",
"handler",
"context",
"ctx",
",",
"http",
"response",
"status",
"status",
")",
"{",
"full",
"http",
"response",
"response",
"=",
"new",
"default",
"full",
"http",
"response",
"(",
"http",
"1",
"1",
",",
"status",
",",
"unpooled",
"copied",
"buffer",
"(",
"\"",
"failure",
":",
"\"",
"+",
"status",
"+",
"\"",
"\\",
"r",
"\\",
"n",
"\"",
",",
"charset",
"util",
"utf",
"8",
")",
")",
";",
"http",
"headers",
"set",
"header",
"(",
"response",
",",
"content",
"type",
",",
"\"",
"text",
"/",
"plain",
";",
"charset",
"=",
"utf",
"-",
"8",
"\"",
")",
";",
"/",
"/",
"close",
"the",
"connection",
"as",
"soon",
"as",
"the",
"error",
"message",
"is",
"sent",
"ctx",
"write",
"and",
"flush",
"(",
"response",
")",
"add",
"listener",
"(",
"channel",
"future",
"listener",
"close",
")",
";",
"}"
] |
[
"configure",
"lifecycle",
"interceptors",
"with",
"callbacks",
"around",
"concurrent",
"request",
"execution",
"that",
"starts",
"when",
"a",
"controller",
"returns",
"a",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"callable",
"}"
] |
[
"public",
"async",
"support",
"configurer",
"register",
"callable",
"interceptors",
"(",
"callable",
"processing",
"interceptor",
"interceptors",
")",
"{",
"this",
"callable",
"interceptors",
"add",
"all",
"(",
"arrays",
"as",
"list",
"(",
"interceptors",
")",
")",
";",
"return",
"this",
";",
"}"
] |
[
"add",
"one",
"piece",
"of",
"the",
"information",
"of",
"the",
"event",
"to",
"the",
"existing",
"information",
"map"
] |
[
"public",
"void",
"add",
"event",
"info",
"(",
"string",
"key",
",",
"object",
"value",
")",
"{",
"this",
"event",
"info",
"put",
"(",
"key",
",",
"value",
")",
";",
"}"
] |
[
"section",
"2",
"4",
"of",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"www",
"ietf",
"orgrfcrfc",
"4",
"6",
"2",
"7",
"txt",
"\"",
">",
"json",
"specification",
"disallows",
"special",
"double",
"values",
"(",
"na",
"n",
",",
"infinity",
",",
"-",
"infinity",
")",
"however",
",",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"www",
"ecma",
"-",
"international",
"orgpublicationsfiles",
"e",
"c",
"m",
"a",
"-",
"s",
"t",
"ecma",
"-",
"262",
"pdf",
"\"",
">",
"javascript",
"specification",
"(",
"see",
"section",
"4",
"3",
"20",
",",
"4",
"3",
"22",
",",
"4",
"3",
"23",
")",
"allows",
"these",
"values",
"as",
"valid",
"javascript",
"values",
"moreover",
",",
"most",
"java",
"script",
"engines",
"will",
"accept",
"these",
"special",
"values",
"in",
"json",
"without",
"problem",
"so",
",",
"at",
"a",
"practical",
"level",
",",
"it",
"makes",
"sense",
"to",
"accept",
"these",
"values",
"as",
"valid",
"json",
"even",
"though",
"json",
"specification",
"disallows",
"them",
"gson",
"always",
"accepts",
"these",
"special",
"values",
"during",
"deserialization",
"however",
",",
"it",
"outputs",
"strictly",
"compliant",
"json",
"hence",
",",
"if",
"it",
"encounters",
"a",
"float",
"value",
"{",
"@",
"link",
"float",
"#",
"na",
"n",
"}",
",",
"{",
"@",
"link",
"float",
"#",
"positive",
"infinity",
"}",
",",
"{",
"@",
"link",
"float",
"#",
"negative",
"infinity",
"}",
",",
"or",
"a",
"double",
"value",
"{",
"@",
"link",
"double",
"#",
"na",
"n",
"}",
",",
"{",
"@",
"link",
"double",
"#",
"positive",
"infinity",
"}",
",",
"{",
"@",
"link",
"double",
"#",
"negative",
"infinity",
"}",
",",
"it",
"will",
"throw",
"an",
"{",
"@",
"link",
"illegal",
"argument",
"exception",
"}",
"this",
"method",
"provides",
"a",
"way",
"to",
"override",
"the",
"default",
"behavior",
"when",
"you",
"know",
"that",
"the",
"json",
"receiver",
"will",
"be",
"able",
"to",
"handle",
"these",
"special",
"values"
] |
[
"public",
"gson",
"builder",
"serialize",
"special",
"floating",
"point",
"values",
"(",
")",
"{",
"this",
"serialize",
"special",
"floating",
"point",
"values",
"=",
"true",
";",
"return",
"this",
";",
"}"
] |
[
"gets",
"the",
"top",
"-",
"level",
"data",
"source",
"supplier",
"to",
"be",
"used",
"by",
"a",
"controller"
] |
[
"protected",
"supplier",
"<",
"data",
"source",
"<",
"image",
">",
">",
"obtain",
"data",
"source",
"supplier",
"(",
"final",
"drawee",
"controller",
"controller",
",",
"final",
"string",
"controller",
"id",
")",
"{",
"if",
"(",
"m",
"data",
"source",
"supplier",
"!",
"=",
"null",
")",
"{",
"return",
"m",
"data",
"source",
"supplier",
";",
"}",
"supplier",
"<",
"data",
"source",
"<",
"image",
">",
">",
"supplier",
"=",
"null",
";",
"/",
"/",
"final",
"image",
"supplier",
";",
"if",
"(",
"m",
"image",
"request",
"!",
"=",
"null",
")",
"{",
"supplier",
"=",
"get",
"data",
"source",
"supplier",
"for",
"request",
"(",
"controller",
",",
"controller",
"id",
",",
"m",
"image",
"request",
")",
";",
"}",
"else",
"if",
"(",
"m",
"multi",
"image",
"requests",
"!",
"=",
"null",
")",
"{",
"supplier",
"=",
"get",
"first",
"available",
"data",
"source",
"supplier",
"(",
"controller",
",",
"controller",
"id",
",",
"m",
"multi",
"image",
"requests",
",",
"m",
"try",
"cache",
"only",
"first",
")",
";",
"}",
"/",
"/",
"increasing",
"-",
"quality",
"supplier",
";",
"highest",
"-",
"quality",
"supplier",
"goes",
"first",
"if",
"(",
"supplier",
"!",
"=",
"null",
"&",
"&",
"m",
"low",
"res",
"image",
"request",
"!",
"=",
"null",
")",
"{",
"list",
"<",
"supplier",
"<",
"data",
"source",
"<",
"image",
">",
">",
">",
"suppliers",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"2",
")",
";",
"suppliers",
"add",
"(",
"supplier",
")",
";",
"suppliers",
"add",
"(",
"get",
"data",
"source",
"supplier",
"for",
"request",
"(",
"controller",
",",
"controller",
"id",
",",
"m",
"low",
"res",
"image",
"request",
")",
")",
";",
"supplier",
"=",
"increasing",
"quality",
"data",
"source",
"supplier",
"create",
"(",
"suppliers",
",",
"false",
")",
";",
"}",
"/",
"/",
"no",
"image",
"requests",
";",
"use",
"null",
"data",
"source",
"supplier",
"if",
"(",
"supplier",
"=",
"=",
"null",
")",
"{",
"supplier",
"=",
"data",
"sources",
"get",
"failed",
"data",
"source",
"supplier",
"(",
"no",
"request",
"exception",
")",
";",
"}",
"return",
"supplier",
";",
"}"
] |
[
"as",
"{",
"@",
"link",
"#",
"simplify",
"and",
"2",
"(",
"list",
",",
"list",
")",
"}",
"but",
"we",
"assume",
"that",
"if",
"the",
"expression",
"returns",
"unknown",
"it",
"will",
"be",
"interpreted",
"as",
"false"
] |
[
"rex",
"node",
"simplify",
"and",
"2",
"for",
"unknown",
"as",
"false",
"(",
"list",
"<",
"rex",
"node",
">",
"terms",
",",
"list",
"<",
"rex",
"node",
">",
"not",
"terms",
")",
"{",
"/",
"/",
"noinspection",
"unchecked",
"return",
"simplify",
"and",
"2",
"for",
"unknown",
"as",
"false",
"(",
"terms",
",",
"not",
"terms",
",",
"comparable",
"class",
")",
";",
"}"
] |
[
"issue",
":",
"add",
"at",
"least",
"one",
"assertion",
"to",
"this",
"test",
"case",
"solution",
":",
"inserted",
"assertion",
"to",
"check",
"whether",
"the",
"execution",
"of",
"the",
"main",
"method",
"in",
"{",
"@",
"link",
"app",
"}",
"throws",
"an",
"exception"
] |
[
"void",
"should",
"execute",
"application",
"without",
"exception",
"(",
")",
"{",
"assert",
"does",
"not",
"throw",
"(",
"(",
")",
"-",
">",
"app",
"main",
"(",
"new",
"string",
"[",
"]",
"{",
"}",
")",
")",
";",
"}"
] |
[
"get",
"the",
"x",
"-",
"y",
"distance",
"the",
"image",
"has",
"moved"
] |
[
"public",
"point",
"get",
"translation",
"(",
")",
"{",
"return",
"label",
"get",
"translation",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"enum",
"which",
"corresponds",
"to",
"the",
"specified",
"enum",
"index",
"and",
"the",
"specified",
"data",
"type",
"manager"
] |
[
"private",
"static",
"final",
"enum",
"get",
"enum",
"(",
"long",
"enum",
"index",
",",
"data",
"type",
"manager",
"dtm",
")",
"{",
"long",
"data",
"type",
"id",
"=",
"(",
"(",
"long",
")",
"data",
"type",
"manager",
"d",
"b",
"enum",
"<",
"<",
"data",
"type",
"manager",
"d",
"b",
"data",
"type",
"kind",
"shift",
")",
"|",
"enum",
"index",
";",
"data",
"type",
"data",
"type",
"=",
"dtm",
"get",
"data",
"type",
"(",
"data",
"type",
"id",
")",
";",
"if",
"(",
"!",
"(",
"data",
"type",
"instanceof",
"enum",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"(",
"enum",
")",
"data",
"type",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"assert",
"suggestion",
"returns",
"size",
"suggestions",
"and",
"the",
"first",
"are",
"the",
"provided",
"text"
] |
[
"public",
"static",
"void",
"assert",
"suggestion",
"(",
"suggest",
"search",
"suggest",
",",
"int",
"entry",
",",
"string",
"key",
",",
"int",
"size",
",",
"string",
"text",
")",
"{",
"assert",
"suggestion",
"size",
"(",
"search",
"suggest",
",",
"entry",
",",
"size",
",",
"key",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"text",
"length",
";",
"i",
"+",
"+",
")",
"{",
"assert",
"suggestion",
"(",
"search",
"suggest",
",",
"entry",
",",
"i",
",",
"key",
",",
"text",
"[",
"i",
"]",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"minimum",
"ttl",
"of",
"the",
"cached",
"dns",
"resource",
"records",
"(",
"in",
"seconds",
")"
] |
[
"public",
"int",
"min",
"ttl",
"(",
")",
"{",
"return",
"min",
"ttl",
";",
"}"
] |
[
"return",
"an",
"array",
"of",
"{",
"@",
"link",
"job",
"queue",
"info",
"}",
"objects",
"for",
"all",
"the",
"queues",
"configurated",
"in",
"the",
"system"
] |
[
"synchronized",
"job",
"queue",
"info",
"[",
"]",
"get",
"job",
"queue",
"infos",
"(",
")",
"{",
"array",
"list",
"<",
"job",
"queue",
"info",
">",
"queue",
"info",
"list",
"=",
"new",
"array",
"list",
"<",
"job",
"queue",
"info",
">",
"(",
")",
";",
"for",
"(",
"string",
"queue",
":",
"all",
"queues",
"key",
"set",
"(",
")",
")",
"{",
"job",
"queue",
"info",
"queue",
"info",
"=",
"get",
"job",
"queue",
"info",
"(",
"queue",
")",
";",
"if",
"(",
"queue",
"info",
"!",
"=",
"null",
")",
"{",
"queue",
"info",
"list",
"add",
"(",
"queue",
"info",
")",
";",
"}",
"}",
"return",
"queue",
"info",
"list",
"to",
"array",
"(",
"new",
"job",
"queue",
"info",
"[",
"queue",
"info",
"list",
"size",
"(",
")",
"]",
")",
";",
"}"
] |
[
"set",
"an",
"implementation",
"of",
"the",
"{",
"@",
"link",
"javax",
"xml",
"transform",
"error",
"listener",
"}",
"interface",
"for",
"custom",
"handling",
"of",
"transformation",
"errors",
"and",
"warnings",
"if",
"not",
"set",
",",
"a",
"default",
"{",
"@",
"link",
"org",
"springframework",
"util",
"xml",
"simple",
"transform",
"error",
"listener",
"}",
"is",
"used",
"that",
"simply",
"logs",
"warnings",
"using",
"the",
"logger",
"instance",
"of",
"the",
"view",
"class",
",",
"and",
"rethrows",
"errors",
"to",
"discontinue",
"the",
"xml",
"transformation"
] |
[
"public",
"void",
"set",
"error",
"listener",
"(",
"@",
"nullable",
"error",
"listener",
"error",
"listener",
")",
"{",
"this",
"error",
"listener",
"=",
"(",
"error",
"listener",
"!",
"=",
"null",
"?",
"error",
"listener",
":",
"new",
"simple",
"transform",
"error",
"listener",
"(",
"logger",
")",
")",
";",
"}"
] |
[
"get",
"the",
"minimum",
"sequence",
"from",
"an",
"array",
"of",
"{",
"@",
"link",
"com",
"lmax",
"disruptor",
"sequence",
"}",
"s"
] |
[
"public",
"static",
"long",
"get",
"minimum",
"sequence",
"(",
"final",
"sequence",
"[",
"]",
"sequences",
",",
"long",
"minimum",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"n",
"=",
"sequences",
"length",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"long",
"value",
"=",
"sequences",
"[",
"i",
"]",
"get",
"(",
")",
";",
"minimum",
"=",
"math",
"min",
"(",
"minimum",
",",
"value",
")",
";",
"}",
"return",
"minimum",
";",
"}"
] |
[
"create",
"a",
"refresh",
"token"
] |
[
"o",
"auth",
"2",
"0",
"refresh",
"token",
"create",
"(",
"service",
"service",
",",
"authentication",
"authentication",
",",
"ticket",
"granting",
"ticket",
"ticket",
"granting",
"ticket",
",",
"collection",
"<",
"string",
">",
"scopes",
",",
"string",
"client",
"id",
",",
"string",
"access",
"token",
",",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"object",
">",
">",
"request",
"claims",
")",
";"
] |
[
"writes",
"a",
"json",
"number",
"field",
"only",
"if",
"the",
"value",
"is",
"defined"
] |
[
"private",
"static",
"void",
"write",
"number",
"field",
"if",
"defined",
"(",
"json",
"generator",
"json",
",",
"string",
"key",
",",
"long",
"value",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"value",
"!",
"=",
"long",
"min",
"value",
")",
"{",
"json",
"write",
"number",
"field",
"(",
"key",
",",
"value",
")",
";",
"}",
"}"
] |
[
"get",
"attribute",
"string"
] |
[
"public",
"string",
"get",
"attribute",
"string",
"(",
")",
"{",
"return",
"attribute",
"string",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"the",
"arity",
"of",
"the",
"plural",
"<",
"code",
">",
"optional",
"aapt",
"pb",
"plural",
"arity",
"arity",
"=",
"3",
";",
"<",
"code",
">"
] |
[
"public",
"builder",
"set",
"arity",
"(",
"com",
"android",
"aapt",
"resources",
"plural",
"arity",
"value",
")",
"{",
"copy",
"on",
"write",
"(",
")",
";",
"instance",
"set",
"arity",
"(",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"translates",
"this",
"operation",
"to",
"a",
"data",
"flow",
"operator",
"of",
"the",
"common",
"data",
"flow",
"api"
] |
[
"protected",
"abstract",
"org",
"apache",
"flink",
"api",
"common",
"operators",
"operator",
"<",
"out",
">",
"translate",
"to",
"data",
"flow",
"(",
"org",
"apache",
"flink",
"api",
"common",
"operators",
"operator",
"<",
"in",
">",
"input",
")",
";"
] |
[
"release",
"read",
"lock"
] |
[
"public",
"static",
"void",
"release",
"read",
"lock",
"(",
"string",
"group",
"key",
")",
"{",
"cache",
"item",
"item",
"=",
"cache",
"get",
"(",
"group",
"key",
")",
";",
"if",
"(",
"null",
"!",
"=",
"item",
")",
"{",
"item",
"rw",
"lock",
"release",
"read",
"lock",
"(",
")",
";",
"}",
"}"
] |
[
"exceptions",
"where",
"'",
"e",
"'",
"is",
"pronounced",
"where",
"it",
"usually",
"wouldn",
"'",
"t",
"be",
",",
"and",
"also",
"some",
"cases",
"where",
"'",
"le",
"'",
"transposition",
"rules",
"don",
"'",
"t",
"apply",
"and",
"the",
"vowel",
"needs",
"to",
"be",
"encoded",
"here"
] |
[
"boolean",
"e",
"pronounced",
"exceptions",
"(",
")",
"{",
"/",
"/",
"greek",
"names",
"e",
"g",
"\"",
"herakles",
"\"",
"or",
"hispanic",
"names",
"e",
"g",
"\"",
"robles",
"\"",
",",
"where",
"'",
"e",
"'",
"is",
"pronounced",
",",
"other",
"exceptions",
"if",
"(",
"(",
"(",
"(",
"m",
"current",
"+",
"1",
")",
"=",
"=",
"m",
"last",
")",
"&",
"&",
"(",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"3",
")",
",",
"5",
",",
"\"",
"ocles",
"\"",
",",
"\"",
"acles",
"\"",
",",
"\"",
"akles",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"4",
",",
"\"",
"ines",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"5",
",",
"\"",
"lopes",
"\"",
",",
"\"",
"estes",
"\"",
",",
"\"",
"gomes",
"\"",
",",
"\"",
"nunes",
"\"",
",",
"\"",
"alves",
"\"",
",",
"\"",
"ickes",
"\"",
",",
"\"",
"innes",
"\"",
",",
"\"",
"peres",
"\"",
",",
"\"",
"wages",
"\"",
",",
"\"",
"neves",
"\"",
",",
"\"",
"benes",
"\"",
",",
"\"",
"dones",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"6",
",",
"\"",
"cortes",
"\"",
",",
"\"",
"chaves",
"\"",
",",
"\"",
"valdes",
"\"",
",",
"\"",
"robles",
"\"",
",",
"\"",
"torres",
"\"",
",",
"\"",
"flores",
"\"",
",",
"\"",
"borges",
"\"",
",",
"\"",
"nieves",
"\"",
",",
"\"",
"montes",
"\"",
",",
"\"",
"soares",
"\"",
",",
"\"",
"valles",
"\"",
",",
"\"",
"geddes",
"\"",
",",
"\"",
"andres",
"\"",
",",
"\"",
"viajes",
"\"",
",",
"\"",
"calles",
"\"",
",",
"\"",
"fontes",
"\"",
",",
"\"",
"hermes",
"\"",
",",
"\"",
"aceves",
"\"",
",",
"\"",
"batres",
"\"",
",",
"\"",
"mathes",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"7",
",",
"\"",
"delores",
"\"",
",",
"\"",
"morales",
"\"",
",",
"\"",
"dolores",
"\"",
",",
"\"",
"angeles",
"\"",
",",
"\"",
"rosales",
"\"",
",",
"\"",
"mireles",
"\"",
",",
"\"",
"linares",
"\"",
",",
"\"",
"perales",
"\"",
",",
"\"",
"paredes",
"\"",
",",
"\"",
"briones",
"\"",
",",
"\"",
"sanches",
"\"",
",",
"\"",
"cazares",
"\"",
",",
"\"",
"reveles",
"\"",
",",
"\"",
"esteves",
"\"",
",",
"\"",
"alvares",
"\"",
",",
"\"",
"matthes",
"\"",
",",
"\"",
"solares",
"\"",
",",
"\"",
"casares",
"\"",
",",
"\"",
"caceres",
"\"",
",",
"\"",
"sturges",
"\"",
",",
"\"",
"ramires",
"\"",
",",
"\"",
"funches",
"\"",
",",
"\"",
"benites",
"\"",
",",
"\"",
"fuentes",
"\"",
",",
"\"",
"puentes",
"\"",
",",
"\"",
"tabares",
"\"",
",",
"\"",
"hentges",
"\"",
",",
"\"",
"valores",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"8",
",",
"\"",
"gonzales",
"\"",
",",
"\"",
"mercedes",
"\"",
",",
"\"",
"fagundes",
"\"",
",",
"\"",
"johannes",
"\"",
",",
"\"",
"gonsales",
"\"",
",",
"\"",
"bermudes",
"\"",
",",
"\"",
"cespedes",
"\"",
",",
"\"",
"betances",
"\"",
",",
"\"",
"terrones",
"\"",
",",
"\"",
"diogenes",
"\"",
",",
"\"",
"corrales",
"\"",
",",
"\"",
"cabrales",
"\"",
",",
"\"",
"martines",
"\"",
",",
"\"",
"grajales",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"9",
",",
"\"",
"cervantes",
"\"",
",",
"\"",
"fernandes",
"\"",
",",
"\"",
"goncalves",
"\"",
",",
"\"",
"benevides",
"\"",
",",
"\"",
"cifuentes",
"\"",
",",
"\"",
"sifuentes",
"\"",
",",
"\"",
"servantes",
"\"",
",",
"\"",
"hernandes",
"\"",
",",
"\"",
"benavides",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"10",
",",
"\"",
"archimedes",
"\"",
",",
"\"",
"carrizales",
"\"",
",",
"\"",
"magallanes",
"\"",
",",
"\"",
"\"",
")",
")",
")",
"|",
"|",
"string",
"at",
"(",
"m",
"current",
"-",
"2",
",",
"4",
",",
"\"",
"fred",
"\"",
",",
"\"",
"dges",
"\"",
",",
"\"",
"dred",
"\"",
",",
"\"",
"gnes",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"5",
")",
",",
"7",
",",
"\"",
"problem",
"\"",
",",
"\"",
"resplen",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"4",
")",
",",
"6",
",",
"\"",
"replen",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"3",
")",
",",
"4",
",",
"\"",
"sple",
"\"",
",",
"\"",
"\"",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
] |
[
"get",
"the",
"http",
"response",
"body"
] |
[
"public",
"string",
"get",
"response",
"body",
"(",
")",
"{",
"return",
"response",
"body",
";",
"}"
] |
[
"removes",
"a",
"pending",
"write",
"operation",
"and",
"release",
"it",
"'",
"s",
"message",
"via",
"{",
"@",
"link",
"reference",
"count",
"util",
"#",
"safe",
"release",
"(",
"object",
")",
"}"
] |
[
"public",
"channel",
"promise",
"remove",
"(",
")",
"{",
"assert",
"ctx",
"executor",
"(",
")",
"in",
"event",
"loop",
"(",
")",
";",
"pending",
"write",
"write",
"=",
"head",
";",
"if",
"(",
"write",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"channel",
"promise",
"promise",
"=",
"write",
"promise",
";",
"reference",
"count",
"util",
"safe",
"release",
"(",
"write",
"msg",
")",
";",
"recycle",
"(",
"write",
",",
"true",
")",
";",
"return",
"promise",
";",
"}"
] |
[
"handles",
"period",
"preparation"
] |
[
"public",
"void",
"handle",
"prepared",
"(",
"float",
"playback",
"speed",
",",
"timeline",
"timeline",
")",
"throws",
"exo",
"playback",
"exception",
"{",
"prepared",
"=",
"true",
";",
"track",
"groups",
"=",
"media",
"period",
"get",
"track",
"groups",
"(",
")",
";",
"track",
"selector",
"result",
"selector",
"result",
"=",
"select",
"tracks",
"(",
"playback",
"speed",
",",
"timeline",
")",
";",
"long",
"requested",
"start",
"position",
"us",
"=",
"info",
"start",
"position",
"us",
";",
"if",
"(",
"info",
"duration",
"us",
"!",
"=",
"c",
"time",
"unset",
"&",
"&",
"requested",
"start",
"position",
"us",
">",
"=",
"info",
"duration",
"us",
")",
"{",
"/",
"/",
"make",
"sure",
"start",
"position",
"doesn",
"'",
"t",
"exceed",
"period",
"duration",
"requested",
"start",
"position",
"us",
"=",
"max",
"(",
"0",
",",
"info",
"duration",
"us",
"-",
"1",
")",
";",
"}",
"long",
"new",
"start",
"position",
"us",
"=",
"apply",
"track",
"selection",
"(",
"selector",
"result",
",",
"requested",
"start",
"position",
"us",
",",
"/",
"*",
"force",
"recreate",
"streams",
"=",
"*",
"/",
"false",
")",
";",
"renderer",
"position",
"offset",
"us",
"+",
"=",
"info",
"start",
"position",
"us",
"-",
"new",
"start",
"position",
"us",
";",
"info",
"=",
"info",
"copy",
"with",
"start",
"position",
"us",
"(",
"new",
"start",
"position",
"us",
")",
";",
"}"
] |
[
"parses",
"the",
"given",
"text",
"as",
"hex",
",",
"returning",
"a",
"{",
"@",
"code",
"byte",
"[",
"]",
"}",
"corresponding",
"to",
"the",
"text",
"the",
"format",
"is",
"simple",
":",
"each",
"line",
"may",
"start",
"with",
"a",
"hex",
"offset",
"followed",
"by",
"a",
"colon",
"(",
"which",
"is",
"verified",
"and",
"presumably",
"used",
"just",
"as",
"a",
"comment",
")",
",",
"and",
"then",
"consists",
"of",
"hex",
"digits",
"freely",
"interspersed",
"with",
"whitespace",
"if",
"a",
"pound",
"sign",
"is",
"encountered",
",",
"it",
"and",
"the",
"rest",
"of",
"the",
"line",
"are",
"ignored",
"as",
"a",
"comment",
"if",
"a",
"double",
"quote",
"is",
"encountered",
",",
"then",
"the",
"ascii",
"value",
"of",
"the",
"subsequent",
"characters",
"is",
"used",
",",
"until",
"the",
"next",
"double",
"quote",
"quoted",
"strings",
"may",
"not",
"span",
"multiple",
"lines"
] |
[
"public",
"static",
"byte",
"[",
"]",
"parse",
"(",
"string",
"src",
")",
"{",
"int",
"len",
"=",
"src",
"length",
"(",
")",
";",
"byte",
"[",
"]",
"result",
"=",
"new",
"byte",
"[",
"len",
"/",
"2",
"]",
";",
"int",
"at",
"=",
"0",
";",
"int",
"out",
"at",
"=",
"0",
";",
"while",
"(",
"at",
"<",
"len",
")",
"{",
"int",
"nl",
"at",
"=",
"src",
"index",
"of",
"(",
"'",
"\\",
"n",
"'",
",",
"at",
")",
";",
"if",
"(",
"nl",
"at",
"<",
"0",
")",
"{",
"nl",
"at",
"=",
"len",
";",
"}",
"int",
"pound",
"at",
"=",
"src",
"index",
"of",
"(",
"'",
"#",
"'",
",",
"at",
")",
";",
"string",
"line",
";",
"if",
"(",
"(",
"pound",
"at",
">",
"=",
"0",
")",
"&",
"&",
"(",
"pound",
"at",
"<",
"nl",
"at",
")",
")",
"{",
"line",
"=",
"src",
"substring",
"(",
"at",
",",
"pound",
"at",
")",
";",
"}",
"else",
"{",
"line",
"=",
"src",
"substring",
"(",
"at",
",",
"nl",
"at",
")",
";",
"}",
"at",
"=",
"nl",
"at",
"+",
"1",
";",
"int",
"colon",
"at",
"=",
"line",
"index",
"of",
"(",
"'",
":",
"'",
")",
";",
"at",
"check",
":",
"if",
"(",
"colon",
"at",
"!",
"=",
"-",
"1",
")",
"{",
"int",
"quote",
"at",
"=",
"line",
"index",
"of",
"(",
"'",
"\\",
"\"",
"'",
")",
";",
"if",
"(",
"(",
"quote",
"at",
"!",
"=",
"-",
"1",
")",
"&",
"&",
"(",
"quote",
"at",
"<",
"colon",
"at",
")",
")",
"{",
"break",
"at",
"check",
";",
"}",
"string",
"at",
"str",
"=",
"line",
"substring",
"(",
"0",
",",
"colon",
"at",
")",
"trim",
"(",
")",
";",
"line",
"=",
"line",
"substring",
"(",
"colon",
"at",
"+",
"1",
")",
";",
"int",
"alleged",
"=",
"integer",
"parse",
"int",
"(",
"at",
"str",
",",
"16",
")",
";",
"if",
"(",
"alleged",
"!",
"=",
"out",
"at",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"bogus",
"offset",
"marker",
":",
"\"",
"+",
"at",
"str",
")",
";",
"}",
"}",
"int",
"line",
"len",
"=",
"line",
"length",
"(",
")",
";",
"int",
"value",
"=",
"-",
"1",
";",
"boolean",
"quote",
"mode",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"line",
"len",
";",
"i",
"+",
"+",
")",
"{",
"char",
"c",
"=",
"line",
"char",
"at",
"(",
"i",
")",
";",
"if",
"(",
"quote",
"mode",
")",
"{",
"if",
"(",
"c",
"=",
"=",
"'",
"\\",
"\"",
"'",
")",
"{",
"quote",
"mode",
"=",
"false",
";",
"}",
"else",
"{",
"result",
"[",
"out",
"at",
"]",
"=",
"(",
"byte",
")",
"c",
";",
"out",
"at",
"+",
"+",
";",
"}",
"continue",
";",
"}",
"if",
"(",
"c",
"<",
"=",
"'",
"'",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"c",
"=",
"=",
"'",
"\\",
"\"",
"'",
")",
"{",
"if",
"(",
"value",
"!",
"=",
"-",
"1",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"spare",
"digit",
"around",
"\"",
"+",
"\"",
"offset",
"\"",
"+",
"hex",
"u",
"4",
"(",
"out",
"at",
")",
")",
";",
"}",
"quote",
"mode",
"=",
"true",
";",
"continue",
";",
"}",
"int",
"dig",
"val",
"=",
"character",
"digit",
"(",
"c",
",",
"16",
")",
";",
"if",
"(",
"dig",
"val",
"=",
"=",
"-",
"1",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"bogus",
"digit",
"character",
":",
"\\",
"\"",
"\"",
"+",
"c",
"+",
"\"",
"\\",
"\"",
"\"",
")",
";",
"}",
"if",
"(",
"value",
"=",
"=",
"-",
"1",
")",
"{",
"value",
"=",
"dig",
"val",
";",
"}",
"else",
"{",
"result",
"[",
"out",
"at",
"]",
"=",
"(",
"byte",
")",
"(",
"(",
"value",
"<",
"<",
"4",
")",
"|",
"dig",
"val",
")",
";",
"out",
"at",
"+",
"+",
";",
"value",
"=",
"-",
"1",
";",
"}",
"}",
"if",
"(",
"value",
"!",
"=",
"-",
"1",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"spare",
"digit",
"around",
"offset",
"\"",
"+",
"hex",
"u",
"4",
"(",
"out",
"at",
")",
")",
";",
"}",
"if",
"(",
"quote",
"mode",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"unterminated",
"quote",
"around",
"\"",
"+",
"\"",
"offset",
"\"",
"+",
"hex",
"u",
"4",
"(",
"out",
"at",
")",
")",
";",
"}",
"}",
"if",
"(",
"out",
"at",
"<",
"result",
"length",
")",
"{",
"byte",
"[",
"]",
"newr",
"=",
"new",
"byte",
"[",
"out",
"at",
"]",
";",
"system",
"arraycopy",
"(",
"result",
",",
"0",
",",
"newr",
",",
"0",
",",
"out",
"at",
")",
";",
"result",
"=",
"newr",
";",
"}",
"return",
"result",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"bar",
"'"
] |
[
"public",
"void",
"bar",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"bar",
"}"
] |
[
"returns",
"an",
"immutable",
"list",
"containing",
"all",
"the",
"file",
"paths",
"found",
"in",
"main",
"file",
"it",
"uses",
"the",
"java",
"runfiles",
"root",
"prefix",
"for",
"every",
"found",
"file",
"to",
"compute",
"its",
"absolute",
"path"
] |
[
"private",
"static",
"immutable",
"list",
"<",
"file",
">",
"get",
"files",
"from",
"file",
"list",
"(",
"file",
"main",
"file",
",",
"string",
"java",
"runfiles",
"root",
")",
"throws",
"i",
"o",
"exception",
"{",
"list",
"<",
"string",
">",
"metadata",
"files",
"=",
"files",
"read",
"lines",
"(",
"main",
"file",
",",
"utf",
"8",
")",
";",
"immutable",
"list",
"builder",
"<",
"file",
">",
"converted",
"metadata",
"files",
"=",
"new",
"builder",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"metadata",
"file",
":",
"metadata",
"files",
")",
"{",
"converted",
"metadata",
"files",
"add",
"(",
"new",
"file",
"(",
"java",
"runfiles",
"root",
"+",
"\"",
"/",
"\"",
"+",
"metadata",
"file",
")",
")",
";",
"}",
"return",
"converted",
"metadata",
"files",
"build",
"(",
")",
";",
"}"
] |
[
"validates",
"a",
"given",
"request",
"with",
"its",
"associated",
"concrete",
"indices",
"and",
"the",
"current",
"state"
] |
[
"optional",
"<",
"exception",
">",
"validate",
"request",
"(",
"t",
"request",
",",
"cluster",
"state",
"state",
",",
"index",
"[",
"]",
"indices",
")",
";"
] |
[
"get",
"prefix",
"array"
] |
[
"public",
"list",
"<",
"integer",
">",
"get",
"prefix",
"array",
"(",
")",
"{",
"return",
"prefix",
"array",
";",
"}"
] |
[
"create",
"a",
"reactive",
"transaction",
"instance",
"for",
"the",
"given",
"arguments"
] |
[
"private",
"generic",
"reactive",
"transaction",
"new",
"reactive",
"transaction",
"(",
"transaction",
"synchronization",
"manager",
"synchronization",
"manager",
",",
"transaction",
"definition",
"definition",
",",
"@",
"nullable",
"object",
"transaction",
",",
"boolean",
"new",
"transaction",
",",
"boolean",
"debug",
",",
"@",
"nullable",
"object",
"suspended",
"resources",
")",
"{",
"return",
"new",
"generic",
"reactive",
"transaction",
"(",
"transaction",
",",
"new",
"transaction",
",",
"!",
"synchronization",
"manager",
"is",
"synchronization",
"active",
"(",
")",
",",
"definition",
"is",
"read",
"only",
"(",
")",
",",
"debug",
",",
"suspended",
"resources",
")",
";",
"}"
] |
[
"moves",
"the",
"mouse",
"to",
"the",
"middle",
"of",
"the",
"element",
"the",
"element",
"is",
"scrolled",
"into",
"view",
"and",
"its",
"location",
"is",
"calculated",
"using",
"get",
"client",
"rects"
] |
[
"public",
"actions",
"move",
"to",
"element",
"(",
"web",
"element",
"target",
")",
"{",
"if",
"(",
"is",
"building",
"actions",
"(",
")",
")",
"{",
"action",
"add",
"action",
"(",
"new",
"move",
"mouse",
"action",
"(",
"json",
"mouse",
",",
"(",
"locatable",
")",
"target",
")",
")",
";",
"}",
"return",
"move",
"in",
"ticks",
"(",
"target",
",",
"0",
",",
"0",
")",
";",
"}"
] |
[
"get",
"just",
"symbol"
] |
[
"public",
"just",
"symbol",
"enum",
"get",
"just",
"symbol",
"(",
")",
"{",
"return",
"just",
"symbol",
";",
"}"
] |
[
"parse",
"the",
"validated",
"document",
"and",
"add",
"entries",
"to",
"the",
"given",
"unit",
"info",
"list"
] |
[
"protected",
"list",
"<",
"spring",
"persistence",
"unit",
"info",
">",
"parse",
"document",
"(",
"resource",
"resource",
",",
"document",
"document",
",",
"list",
"<",
"spring",
"persistence",
"unit",
"info",
">",
"infos",
")",
"throws",
"i",
"o",
"exception",
"{",
"element",
"persistence",
"=",
"document",
"get",
"document",
"element",
"(",
")",
";",
"string",
"version",
"=",
"persistence",
"get",
"attribute",
"(",
"persistence",
"version",
")",
";",
"url",
"root",
"url",
"=",
"determine",
"persistence",
"unit",
"root",
"url",
"(",
"resource",
")",
";",
"list",
"<",
"element",
">",
"units",
"=",
"dom",
"utils",
"get",
"child",
"elements",
"by",
"tag",
"name",
"(",
"persistence",
",",
"persistence",
"unit",
")",
";",
"for",
"(",
"element",
"unit",
":",
"units",
")",
"{",
"infos",
"add",
"(",
"parse",
"persistence",
"unit",
"info",
"(",
"unit",
",",
"version",
",",
"root",
"url",
")",
")",
";",
"}",
"return",
"infos",
";",
"}"
] |
[
"the",
"element",
"lost",
"the",
"focus"
] |
[
"area",
"$",
"onblur",
"(",
"string",
"script",
")",
";"
] |
[
"get",
"date",
"time"
] |
[
"public",
"date",
"get",
"date",
"time",
"(",
")",
"{",
"return",
"date",
"time",
";",
"}"
] |
[
"we",
"need",
"skip",
"bytes",
"to",
"read",
"when",
"the",
"remain",
"bytes",
"of",
"current",
"segment",
"is",
"not",
"enough",
"to",
"write",
"binary",
"row",
"fixed",
"part",
"see",
"{",
"@",
"link",
"binary",
"row",
"data",
"}"
] |
[
"public",
"void",
"check",
"skip",
"read",
"for",
"fix",
"length",
"part",
"(",
"abstract",
"paged",
"input",
"view",
"source",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"skip",
"if",
"there",
"is",
"no",
"enough",
"size",
"/",
"/",
"note",
":",
"use",
"current",
"segment",
"limit",
"instead",
"of",
"segment",
"size",
"int",
"available",
"=",
"source",
"get",
"current",
"segment",
"limit",
"(",
")",
"-",
"source",
"get",
"current",
"position",
"in",
"segment",
"(",
")",
";",
"if",
"(",
"available",
"<",
"get",
"serialized",
"row",
"fixed",
"part",
"length",
"(",
")",
")",
"{",
"source",
"advance",
"(",
")",
";",
"}",
"}"
] |
[
"determines",
"if",
"the",
"candidate",
"should",
"be",
"accepted",
"into",
"the",
"main",
"space",
",",
"as",
"determined",
"by",
"its",
"frequency",
"relative",
"to",
"the",
"victim",
"a",
"small",
"amount",
"of",
"randomness",
"is",
"used",
"to",
"protect",
"against",
"hash",
"collision",
"attacks",
",",
"where",
"the",
"victim",
"'",
"s",
"frequency",
"is",
"artificially",
"raised",
"so",
"that",
"no",
"new",
"entries",
"are",
"admitted"
] |
[
"boolean",
"admit",
"(",
"k",
"candidate",
"key",
",",
"k",
"victim",
"key",
")",
"{",
"int",
"victim",
"freq",
"=",
"frequency",
"sketch",
"(",
")",
"frequency",
"(",
"victim",
"key",
")",
";",
"int",
"candidate",
"freq",
"=",
"frequency",
"sketch",
"(",
")",
"frequency",
"(",
"candidate",
"key",
")",
";",
"if",
"(",
"candidate",
"freq",
">",
"victim",
"freq",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"candidate",
"freq",
"<",
"=",
"5",
")",
"{",
"/",
"/",
"the",
"maximum",
"frequency",
"is",
"15",
"and",
"halved",
"to",
"7",
"after",
"a",
"reset",
"to",
"age",
"the",
"history",
"an",
"attack",
"/",
"/",
"exploits",
"that",
"a",
"hot",
"candidate",
"is",
"rejected",
"in",
"favor",
"of",
"a",
"hot",
"victim",
"the",
"threshold",
"of",
"a",
"warm",
"/",
"/",
"candidate",
"reduces",
"the",
"number",
"of",
"random",
"acceptances",
"to",
"minimize",
"the",
"impact",
"on",
"the",
"hit",
"rate",
"return",
"false",
";",
"}",
"int",
"random",
"=",
"thread",
"local",
"random",
"current",
"(",
")",
"next",
"int",
"(",
")",
";",
"return",
"(",
"(",
"random",
"&",
"127",
")",
"=",
"=",
"0",
")",
";",
"}"
] |
[
"signals",
"that",
"the",
"given",
"object",
"is",
"no",
"longer",
"being",
"used",
"the",
"object",
"will",
"be",
"placed",
"back",
"into",
"the",
"pool",
"until",
"it",
"is",
"disposed",
"via",
"the",
"cleanup",
"timer",
",",
"if",
"it",
"is",
"running"
] |
[
"public",
"synchronized",
"void",
"release",
"(",
"t",
"t",
")",
"{",
"restart",
"cleanup",
"timer",
"(",
")",
";",
"if",
"(",
"is",
"disposed",
")",
"{",
"factory",
"dispose",
"(",
"t",
")",
";",
"return",
";",
"}",
"cache",
"push",
"(",
"t",
")",
";",
"}"
] |
[
"solve",
"a",
"x",
"=",
"b",
",",
"where",
"b",
"is",
"a",
"column",
"vector",
"this",
"is",
"more",
"efficient",
"than",
"computing",
"the",
"inverse",
"in",
"one",
"-",
"shot",
"cases"
] |
[
"public",
"final",
"vec",
"3",
"solve",
"3",
"3",
"(",
"vec",
"3",
"b",
")",
"{",
"vec",
"3",
"x",
"=",
"new",
"vec",
"3",
"(",
")",
";",
"solve",
"3",
"3",
"to",
"out",
"(",
"b",
",",
"x",
")",
";",
"return",
"x",
";",
"}"
] |
[
"starts",
"instances",
"of",
"worker",
"sender",
"and",
"worker",
"receiver"
] |
[
"void",
"start",
"(",
")",
"{",
"this",
"ws",
"thread",
"start",
"(",
")",
";",
"this",
"wr",
"thread",
"start",
"(",
")",
";",
"}"
] |
[
"translate",
"a",
"single",
"{",
"@",
"link",
"abstract",
"insn",
"node",
"}",
"to",
"an",
"{",
"@",
"link",
"instruction",
"filter",
"}"
] |
[
"public",
"static",
"instruction",
"filter",
"translate",
"(",
"abstract",
"insn",
"node",
"ain",
")",
"{",
"if",
"(",
"ain",
"instanceof",
"ldc",
"insn",
"node",
")",
"{",
"return",
"new",
"ldc",
"instruction",
"filter",
"(",
"(",
"(",
"ldc",
"insn",
"node",
")",
"ain",
")",
"cst",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"type",
"insn",
"node",
")",
"{",
"return",
"new",
"type",
"instruction",
"filter",
"(",
"ain",
"get",
"opcode",
"(",
")",
",",
"(",
"(",
"type",
"insn",
"node",
")",
"ain",
")",
"desc",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"field",
"insn",
"node",
")",
"{",
"return",
"new",
"field",
"instruction",
"filter",
"(",
"ain",
"get",
"opcode",
"(",
")",
",",
"(",
"(",
"field",
"insn",
"node",
")",
"ain",
")",
"owner",
",",
"(",
"(",
"field",
"insn",
"node",
")",
"ain",
")",
"name",
",",
"(",
"(",
"field",
"insn",
"node",
")",
"ain",
")",
"desc",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"method",
"insn",
"node",
")",
"{",
"return",
"new",
"method",
"instruction",
"filter",
"(",
"ain",
"get",
"opcode",
"(",
")",
",",
"(",
"(",
"method",
"insn",
"node",
")",
"ain",
")",
"owner",
",",
"(",
"(",
"method",
"insn",
"node",
")",
"ain",
")",
"name",
",",
"(",
"(",
"method",
"insn",
"node",
")",
"ain",
")",
"desc",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"var",
"insn",
"node",
")",
"{",
"return",
"new",
"var",
"instruction",
"filter",
"(",
"ain",
"get",
"opcode",
"(",
")",
",",
"(",
"(",
"var",
"insn",
"node",
")",
"ain",
")",
"var",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"insn",
"node",
")",
"{",
"return",
"new",
"insn",
"instruction",
"filter",
"(",
"ain",
"get",
"opcode",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"iinc",
"insn",
"node",
")",
"{",
"return",
"new",
"iinc",
"instruction",
"filter",
"(",
"(",
"(",
"iinc",
"insn",
"node",
")",
"ain",
")",
"incr",
",",
"(",
"(",
"iinc",
"insn",
"node",
")",
"ain",
")",
"var",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"jump",
"insn",
"node",
")",
"{",
"return",
"new",
"jump",
"instruction",
"filter",
"(",
"ain",
"get",
"opcode",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"label",
"node",
")",
"{",
"return",
"instruction",
"filter",
"accept",
"all",
";",
"/",
"/",
"todo",
":",
"cache",
"labels",
"and",
"/",
"/",
"check",
"/",
"/",
"todo",
":",
"that",
"'",
"s",
"a",
"/",
"/",
"fucking",
"stupid",
"idea",
"}",
"else",
"if",
"(",
"ain",
"instanceof",
"multi",
"a",
"new",
"array",
"insn",
"node",
")",
"{",
"return",
"new",
"multi",
"a",
"new",
"array",
"instruction",
"filter",
"(",
"(",
"(",
"multi",
"a",
"new",
"array",
"insn",
"node",
")",
"ain",
")",
"desc",
",",
"(",
"(",
"multi",
"a",
"new",
"array",
"insn",
"node",
")",
"ain",
")",
"dims",
")",
";",
"}",
"else",
"{",
"return",
"instruction",
"filter",
"accept",
"all",
";",
"}",
"}"
] |
[
"implementation",
"of",
"{",
"@",
"code",
"invocation",
"handler",
"invoke",
"}",
"callers",
"will",
"see",
"exactly",
"the",
"exception",
"thrown",
"by",
"the",
"target",
",",
"unless",
"a",
"hook",
"method",
"throws",
"an",
"exception"
] |
[
"public",
"object",
"invoke",
"(",
"object",
"proxy",
",",
"method",
"method",
",",
"object",
"[",
"]",
"args",
")",
"throws",
"throwable",
"{",
"object",
"old",
"proxy",
"=",
"null",
";",
"boolean",
"set",
"proxy",
"context",
"=",
"false",
";",
"target",
"source",
"target",
"source",
"=",
"this",
"advised",
"target",
"source",
";",
"object",
"target",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"!",
"this",
"equals",
"defined",
"&",
"&",
"aop",
"utils",
"is",
"equals",
"method",
"(",
"method",
")",
")",
"{",
"/",
"/",
"the",
"target",
"does",
"not",
"implement",
"the",
"equals",
"(",
"object",
")",
"method",
"itself",
"return",
"equals",
"(",
"args",
"[",
"0",
"]",
")",
";",
"}",
"else",
"if",
"(",
"!",
"this",
"hash",
"code",
"defined",
"&",
"&",
"aop",
"utils",
"is",
"hash",
"code",
"method",
"(",
"method",
")",
")",
"{",
"/",
"/",
"the",
"target",
"does",
"not",
"implement",
"the",
"hash",
"code",
"(",
")",
"method",
"itself",
"return",
"hash",
"code",
"(",
")",
";",
"}",
"else",
"if",
"(",
"method",
"get",
"declaring",
"class",
"(",
")",
"=",
"=",
"decorating",
"proxy",
"class",
")",
"{",
"/",
"/",
"there",
"is",
"only",
"get",
"decorated",
"class",
"(",
")",
"declared",
"-",
">",
"dispatch",
"to",
"proxy",
"config",
"return",
"aop",
"proxy",
"utils",
"ultimate",
"target",
"class",
"(",
"this",
"advised",
")",
";",
"}",
"else",
"if",
"(",
"!",
"this",
"advised",
"opaque",
"&",
"&",
"method",
"get",
"declaring",
"class",
"(",
")",
"is",
"interface",
"(",
")",
"&",
"&",
"method",
"get",
"declaring",
"class",
"(",
")",
"is",
"assignable",
"from",
"(",
"advised",
"class",
")",
")",
"{",
"/",
"/",
"service",
"invocations",
"on",
"proxy",
"config",
"with",
"the",
"proxy",
"config",
"return",
"aop",
"utils",
"invoke",
"joinpoint",
"using",
"reflection",
"(",
"this",
"advised",
",",
"method",
",",
"args",
")",
";",
"}",
"object",
"ret",
"val",
";",
"if",
"(",
"this",
"advised",
"expose",
"proxy",
")",
"{",
"/",
"/",
"make",
"invocation",
"available",
"if",
"necessary",
"old",
"proxy",
"=",
"aop",
"context",
"set",
"current",
"proxy",
"(",
"proxy",
")",
";",
"set",
"proxy",
"context",
"=",
"true",
";",
"}",
"/",
"/",
"get",
"as",
"late",
"as",
"possible",
"to",
"minimize",
"the",
"time",
"we",
"\"",
"own",
"\"",
"the",
"target",
",",
"/",
"/",
"in",
"case",
"it",
"comes",
"from",
"a",
"pool",
"target",
"=",
"target",
"source",
"get",
"target",
"(",
")",
";",
"class",
"<",
"?",
">",
"target",
"class",
"=",
"(",
"target",
"!",
"=",
"null",
"?",
"target",
"get",
"class",
"(",
")",
":",
"null",
")",
";",
"/",
"/",
"get",
"the",
"interception",
"chain",
"for",
"this",
"method",
"list",
"<",
"object",
">",
"chain",
"=",
"this",
"advised",
"get",
"interceptors",
"and",
"dynamic",
"interception",
"advice",
"(",
"method",
",",
"target",
"class",
")",
";",
"/",
"/",
"check",
"whether",
"we",
"have",
"any",
"advice",
"if",
"we",
"don",
"'",
"t",
",",
"we",
"can",
"fallback",
"on",
"direct",
"/",
"/",
"reflective",
"invocation",
"of",
"the",
"target",
",",
"and",
"avoid",
"creating",
"a",
"method",
"invocation",
"if",
"(",
"chain",
"is",
"empty",
"(",
")",
")",
"{",
"/",
"/",
"we",
"can",
"skip",
"creating",
"a",
"method",
"invocation",
":",
"just",
"invoke",
"the",
"target",
"directly",
"/",
"/",
"note",
"that",
"the",
"final",
"invoker",
"must",
"be",
"an",
"invoker",
"interceptor",
"so",
"we",
"know",
"it",
"does",
"/",
"/",
"nothing",
"but",
"a",
"reflective",
"operation",
"on",
"the",
"target",
",",
"and",
"no",
"hot",
"swapping",
"or",
"fancy",
"proxying",
"object",
"[",
"]",
"args",
"to",
"use",
"=",
"aop",
"proxy",
"utils",
"adapt",
"arguments",
"if",
"necessary",
"(",
"method",
",",
"args",
")",
";",
"ret",
"val",
"=",
"aop",
"utils",
"invoke",
"joinpoint",
"using",
"reflection",
"(",
"target",
",",
"method",
",",
"args",
"to",
"use",
")",
";",
"}",
"else",
"{",
"/",
"/",
"we",
"need",
"to",
"create",
"a",
"method",
"invocation",
"method",
"invocation",
"invocation",
"=",
"new",
"reflective",
"method",
"invocation",
"(",
"proxy",
",",
"target",
",",
"method",
",",
"args",
",",
"target",
"class",
",",
"chain",
")",
";",
"/",
"/",
"proceed",
"to",
"the",
"joinpoint",
"through",
"the",
"interceptor",
"chain",
"ret",
"val",
"=",
"invocation",
"proceed",
"(",
")",
";",
"}",
"/",
"/",
"massage",
"return",
"value",
"if",
"necessary",
"class",
"<",
"?",
">",
"return",
"type",
"=",
"method",
"get",
"return",
"type",
"(",
")",
";",
"if",
"(",
"ret",
"val",
"!",
"=",
"null",
"&",
"&",
"ret",
"val",
"=",
"=",
"target",
"&",
"&",
"return",
"type",
"!",
"=",
"object",
"class",
"&",
"&",
"return",
"type",
"is",
"instance",
"(",
"proxy",
")",
"&",
"&",
"!",
"raw",
"target",
"access",
"class",
"is",
"assignable",
"from",
"(",
"method",
"get",
"declaring",
"class",
"(",
")",
")",
")",
"{",
"/",
"/",
"special",
"case",
":",
"it",
"returned",
"\"",
"this",
"\"",
"and",
"the",
"return",
"type",
"of",
"the",
"method",
"/",
"/",
"is",
"type",
"-",
"compatible",
"note",
"that",
"we",
"can",
"'",
"t",
"help",
"if",
"the",
"target",
"sets",
"/",
"/",
"a",
"reference",
"to",
"itself",
"in",
"another",
"returned",
"object",
"ret",
"val",
"=",
"proxy",
";",
"}",
"else",
"if",
"(",
"ret",
"val",
"=",
"=",
"null",
"&",
"&",
"return",
"type",
"!",
"=",
"void",
"type",
"&",
"&",
"return",
"type",
"is",
"primitive",
"(",
")",
")",
"{",
"throw",
"new",
"aop",
"invocation",
"exception",
"(",
"\"",
"null",
"return",
"value",
"from",
"advice",
"does",
"not",
"match",
"primitive",
"return",
"type",
"for",
":",
"\"",
"+",
"method",
")",
";",
"}",
"return",
"ret",
"val",
";",
"}",
"finally",
"{",
"if",
"(",
"target",
"!",
"=",
"null",
"&",
"&",
"!",
"target",
"source",
"is",
"static",
"(",
")",
")",
"{",
"/",
"/",
"must",
"have",
"come",
"from",
"target",
"source",
"target",
"source",
"release",
"target",
"(",
"target",
")",
";",
"}",
"if",
"(",
"set",
"proxy",
"context",
")",
"{",
"/",
"/",
"restore",
"old",
"proxy",
"aop",
"context",
"set",
"current",
"proxy",
"(",
"old",
"proxy",
")",
";",
"}",
"}",
"}"
] |
[
"model",
"tests",
"for",
"enum",
"test"
] |
[
"public",
"void",
"test",
"enum",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"enum",
"test",
"}"
] |
[
"tests",
"decommission",
"with",
"replicas",
"on",
"the",
"target",
"datanode",
"cannot",
"be",
"migrated",
"to",
"other",
"datanodes",
"and",
"satisfy",
"the",
"replication",
"factor",
"make",
"sure",
"the",
"datanode",
"won",
"'",
"t",
"get",
"stuck",
"in",
"decommissioning",
"state"
] |
[
"public",
"void",
"test",
"decommission",
"2",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"log",
"info",
"(",
"\"",
"starting",
"test",
"test",
"decommission",
"\"",
")",
";",
"int",
"num",
"namenodes",
"=",
"1",
";",
"int",
"num",
"datanodes",
"=",
"4",
";",
"get",
"conf",
"(",
")",
"set",
"int",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"replication",
"key",
",",
"3",
")",
";",
"start",
"cluster",
"(",
"num",
"namenodes",
",",
"num",
"datanodes",
")",
";",
"array",
"list",
"<",
"array",
"list",
"<",
"datanode",
"info",
">",
">",
"namenode",
"decom",
"list",
"=",
"new",
"array",
"list",
"<",
"array",
"list",
"<",
"datanode",
"info",
">",
">",
"(",
"num",
"namenodes",
")",
";",
"namenode",
"decom",
"list",
"add",
"(",
"0",
",",
"new",
"array",
"list",
"<",
"datanode",
"info",
">",
"(",
"num",
"datanodes",
")",
")",
";",
"path",
"file",
"1",
"=",
"new",
"path",
"(",
"\"",
"test",
"decommission",
"2",
"dat",
"\"",
")",
";",
"int",
"replicas",
"=",
"4",
";",
"/",
"/",
"start",
"decommissioning",
"one",
"namenode",
"at",
"a",
"time",
"array",
"list",
"<",
"datanode",
"info",
">",
"decommissioned",
"nodes",
"=",
"namenode",
"decom",
"list",
"get",
"(",
"0",
")",
";",
"file",
"system",
"file",
"sys",
"=",
"get",
"cluster",
"(",
")",
"get",
"file",
"system",
"(",
"0",
")",
";",
"f",
"s",
"namesystem",
"ns",
"=",
"get",
"cluster",
"(",
")",
"get",
"namesystem",
"(",
"0",
")",
";",
"write",
"file",
"(",
"file",
"sys",
",",
"file",
"1",
",",
"replicas",
")",
";",
"int",
"dead",
"decommissioned",
"=",
"ns",
"get",
"num",
"decom",
"dead",
"data",
"nodes",
"(",
")",
";",
"int",
"live",
"decommissioned",
"=",
"ns",
"get",
"num",
"decom",
"live",
"data",
"nodes",
"(",
")",
";",
"/",
"/",
"decommission",
"one",
"node",
"verify",
"that",
"node",
"is",
"decommissioned",
"datanode",
"info",
"decom",
"node",
"=",
"take",
"node",
"outof",
"service",
"(",
"0",
",",
"null",
",",
"0",
",",
"decommissioned",
"nodes",
",",
"admin",
"states",
"decommissioned",
")",
";",
"decommissioned",
"nodes",
"add",
"(",
"decom",
"node",
")",
";",
"assert",
"equals",
"(",
"dead",
"decommissioned",
",",
"ns",
"get",
"num",
"decom",
"dead",
"data",
"nodes",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"live",
"decommissioned",
"+",
"1",
",",
"ns",
"get",
"num",
"decom",
"live",
"data",
"nodes",
"(",
")",
")",
";",
"/",
"/",
"ensure",
"decommissioned",
"datanode",
"is",
"not",
"automatically",
"shutdown",
"d",
"f",
"s",
"client",
"client",
"=",
"get",
"dfs",
"client",
"(",
"0",
")",
";",
"assert",
"equals",
"(",
"\"",
"all",
"datanodes",
"must",
"be",
"alive",
"\"",
",",
"num",
"datanodes",
",",
"client",
"datanode",
"report",
"(",
"datanode",
"report",
"type",
"live",
")",
"length",
")",
";",
"assert",
"null",
"(",
"check",
"file",
"(",
"file",
"sys",
",",
"file",
"1",
",",
"replicas",
",",
"decom",
"node",
"get",
"xfer",
"addr",
"(",
")",
",",
"num",
"datanodes",
")",
")",
";",
"cleanup",
"file",
"(",
"file",
"sys",
",",
"file",
"1",
")",
";",
"/",
"/",
"restart",
"the",
"cluster",
"and",
"ensure",
"recommissioned",
"datanodes",
"/",
"/",
"are",
"allowed",
"to",
"register",
"with",
"the",
"namenode",
"shutdown",
"cluster",
"(",
")",
";",
"start",
"cluster",
"(",
"1",
",",
"4",
")",
";",
"}"
] |
[
"get",
"prefix",
"ns",
"wrapped",
"array"
] |
[
"public",
"list",
"<",
"integer",
">",
"get",
"prefix",
"ns",
"wrapped",
"array",
"(",
")",
"{",
"return",
"prefix",
"ns",
"wrapped",
"array",
";",
"}"
] |
[
"get",
"map",
"of",
"enum",
"string"
] |
[
"public",
"map",
"<",
"string",
",",
"inner",
"enum",
">",
"get",
"map",
"of",
"enum",
"string",
"(",
")",
"{",
"return",
"map",
"of",
"enum",
"string",
";",
"}"
] |
[
"get",
"the",
"marker",
"location",
"for",
"the",
"given",
"x",
",",
"y",
"point"
] |
[
"public",
"marker",
"location",
"get",
"marker",
"location",
"(",
"int",
"x",
",",
"int",
"y",
")",
";"
] |
[
"get",
"bool",
"item"
] |
[
"public",
"boolean",
"get",
"bool",
"item",
"(",
")",
"{",
"return",
"bool",
"item",
";",
"}"
] |
[
"converts",
"a",
"list",
"of",
"{",
"@",
"link",
"syntax",
"error",
"}",
"s",
"to",
"events",
",",
"each",
"with",
"a",
"specified",
"property",
",",
"and",
"replays",
"them",
"on",
"{",
"@",
"code",
"handler",
"}"
] |
[
"public",
"static",
"<",
"t",
">",
"void",
"replay",
"events",
"on",
"(",
"event",
"handler",
"handler",
",",
"list",
"<",
"syntax",
"error",
">",
"errors",
",",
"class",
"<",
"t",
">",
"property",
"type",
",",
"function",
"<",
"syntax",
"error",
",",
"t",
">",
"to",
"property",
")",
"{",
"for",
"(",
"syntax",
"error",
"error",
":",
"errors",
")",
"{",
"handler",
"handle",
"(",
"event",
"error",
"(",
"error",
"location",
"(",
")",
",",
"error",
"message",
"(",
")",
")",
"with",
"property",
"(",
"property",
"type",
",",
"to",
"property",
"apply",
"(",
"error",
")",
")",
")",
";",
"}",
"}"
] |
[
"applies",
"a",
"transformation",
"on",
"the",
"current",
"vertex",
"value",
"and",
"the",
"value",
"of",
"the",
"matched",
"tuple",
"of",
"the",
"input",
"data",
"set"
] |
[
"vv",
"vertex",
"join",
"(",
"vv",
"vertex",
"value",
",",
"t",
"input",
"value",
")",
"throws",
"exception",
";"
] |
[
"make",
"sure",
"the",
"instruction",
"really",
"has",
"a",
"return",
"in",
"it"
] |
[
"private",
"boolean",
"is",
"really",
"return",
"(",
"instruction",
"instr",
")",
"{",
"pcode",
"op",
"[",
"]",
"pcode",
"=",
"instr",
"get",
"pcode",
"(",
")",
";",
"for",
"(",
"pcode",
"op",
"element",
":",
"pcode",
")",
"{",
"if",
"(",
"element",
"get",
"opcode",
"(",
")",
"=",
"=",
"pcode",
"op",
"return",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
] |
[
"returns",
"the",
"value",
"for",
"the",
"removed",
"key",
",",
"or",
"the",
"default",
"value",
"if",
"the",
"key",
"is",
"not",
"in",
"the",
"map"
] |
[
"public",
"float",
"remove",
"(",
"int",
"key",
",",
"float",
"default",
"value",
")",
"{",
"if",
"(",
"key",
"=",
"=",
"0",
")",
"{",
"if",
"(",
"!",
"has",
"zero",
"value",
")",
"return",
"default",
"value",
";",
"has",
"zero",
"value",
"=",
"false",
";",
"size",
"-",
"-",
";",
"return",
"zero",
"value",
";",
"}",
"int",
"i",
"=",
"locate",
"key",
"(",
"key",
")",
";",
"if",
"(",
"i",
"<",
"0",
")",
"return",
"default",
"value",
";",
"int",
"[",
"]",
"key",
"table",
"=",
"this",
"key",
"table",
";",
"float",
"[",
"]",
"value",
"table",
"=",
"this",
"value",
"table",
";",
"float",
"old",
"value",
"=",
"value",
"table",
"[",
"i",
"]",
";",
"int",
"mask",
"=",
"this",
"mask",
",",
"next",
"=",
"i",
"+",
"1",
"&",
"mask",
";",
"while",
"(",
"(",
"key",
"=",
"key",
"table",
"[",
"next",
"]",
")",
"!",
"=",
"0",
")",
"{",
"int",
"placement",
"=",
"place",
"(",
"key",
")",
";",
"if",
"(",
"(",
"next",
"-",
"placement",
"&",
"mask",
")",
">",
"(",
"i",
"-",
"placement",
"&",
"mask",
")",
")",
"{",
"key",
"table",
"[",
"i",
"]",
"=",
"key",
";",
"value",
"table",
"[",
"i",
"]",
"=",
"value",
"table",
"[",
"next",
"]",
";",
"i",
"=",
"next",
";",
"}",
"next",
"=",
"next",
"+",
"1",
"&",
"mask",
";",
"}",
"key",
"table",
"[",
"i",
"]",
"=",
"0",
";",
"size",
"-",
"-",
";",
"return",
"old",
"value",
";",
"}"
] |
[
"checks",
"if",
"the",
"given",
"authentication",
"is",
"anonymous",
"by",
"checking",
"its",
"class"
] |
[
"public",
"static",
"boolean",
"is",
"anonymous",
"2",
"(",
"@",
"non",
"null",
"authentication",
"authentication",
")",
"{",
"/",
"/",
"todo",
"use",
"authentication",
"trust",
"resolver",
"instead",
"to",
"be",
"consistent",
"through",
"the",
"application",
"return",
"authentication",
"instanceof",
"anonymous",
"authentication",
"token",
";",
"}"
] |
[
"creates",
"and",
"returns",
"a",
"new",
"column",
"family",
"with",
"the",
"given",
"name"
] |
[
"public",
"column",
"family",
"handle",
"create",
"new",
"column",
"family",
"(",
"string",
"name",
")",
"{",
"try",
"{",
"final",
"column",
"family",
"handle",
"column",
"family",
"=",
"rocks",
"d",
"b",
"create",
"column",
"family",
"(",
"new",
"column",
"family",
"descriptor",
"(",
"name",
"get",
"bytes",
"(",
")",
",",
"column",
"family",
"options",
")",
")",
";",
"column",
"family",
"handles",
"add",
"(",
"column",
"family",
")",
";",
"return",
"column",
"family",
";",
"}",
"catch",
"(",
"exception",
"ex",
")",
"{",
"throw",
"new",
"flink",
"runtime",
"exception",
"(",
"\"",
"could",
"not",
"create",
"column",
"family",
"\"",
",",
"ex",
")",
";",
"}",
"}"
] |
[
"add",
"a",
"new",
"declared",
"parameter",
"order",
"of",
"parameter",
"addition",
"is",
"significant"
] |
[
"public",
"void",
"add",
"parameter",
"(",
"sql",
"parameter",
"param",
")",
"{",
"this",
"declared",
"parameters",
"add",
"(",
"param",
")",
";",
"}"
] |
[
"set",
"the",
"injectable",
"level"
] |
[
"public",
"void",
"set",
"provided",
"in",
"(",
"string",
"level",
")",
"{",
"try",
"{",
"provided",
"in",
"=",
"provided",
"in",
"level",
"value",
"of",
"(",
"level",
")",
";",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"e",
")",
"{",
"string",
"values",
"=",
"stream",
"of",
"(",
"provided",
"in",
"level",
"values",
"(",
")",
")",
"map",
"(",
"value",
"-",
">",
"\"",
"'",
"\"",
"+",
"value",
"name",
"(",
")",
"+",
"\"",
"'",
"\"",
")",
"collect",
"(",
"collectors",
"joining",
"(",
"\"",
",",
"\"",
")",
")",
";",
"string",
"msg",
"=",
"string",
"format",
"(",
"locale",
"root",
",",
"\"",
"invalid",
"provided",
"in",
"level",
"'",
"%",
"s",
"'",
"must",
"be",
"one",
"of",
"%",
"s",
"\"",
",",
"level",
",",
"values",
")",
";",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"msg",
")",
";",
"}",
"}"
] |
[
"returns",
"a",
"{",
"@",
"link",
"http",
"request",
"handler",
"adapter",
"}",
"for",
"processing",
"requests",
"with",
"{",
"@",
"link",
"http",
"request",
"handler",
"http",
"request",
"handlers",
"}"
] |
[
"public",
"http",
"request",
"handler",
"adapter",
"http",
"request",
"handler",
"adapter",
"(",
")",
"{",
"return",
"new",
"http",
"request",
"handler",
"adapter",
"(",
")",
";",
"}"
] |
[
"parse",
"the",
"command",
"line",
"arguments",
"and",
"initialize",
"the",
"data"
] |
[
"private",
"int",
"init",
"(",
"string",
"[",
"]",
"args",
")",
"{",
"try",
"{",
"/",
"/",
"initialize",
"file",
"system",
"handle",
"fc",
"=",
"file",
"context",
"get",
"file",
"context",
"(",
"get",
"conf",
"(",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"can",
"not",
"initialize",
"the",
"file",
"system",
":",
"\"",
"+",
"ioe",
"get",
"localized",
"message",
"(",
")",
")",
";",
"return",
"-",
"1",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"args",
"length",
";",
"i",
"+",
"+",
")",
"{",
"/",
"/",
"parse",
"command",
"line",
"if",
"(",
"args",
"[",
"i",
"]",
"equals",
"(",
"\"",
"-",
"root",
"\"",
")",
")",
"{",
"root",
"=",
"new",
"path",
"(",
"args",
"[",
"+",
"+",
"i",
"]",
")",
";",
"}",
"else",
"if",
"(",
"args",
"[",
"i",
"]",
"equals",
"(",
"\"",
"-",
"in",
"dir",
"\"",
")",
")",
"{",
"in",
"dir",
"=",
"new",
"file",
"(",
"args",
"[",
"+",
"+",
"i",
"]",
")",
";",
"}",
"else",
"{",
"system",
"err",
"println",
"(",
"usage",
")",
";",
"tool",
"runner",
"print",
"generic",
"command",
"usage",
"(",
"system",
"err",
")",
";",
"system",
"exit",
"(",
"-",
"1",
")",
";",
"}",
"}",
"return",
"0",
";",
"}"
] |
[
"reads",
"the",
"directory",
"stream",
"and",
"returns",
"a",
"{",
"@",
"link",
"pdb",
"byte",
"reader",
"}",
"of",
"its",
"contents"
] |
[
"protected",
"pdb",
"byte",
"reader",
"get",
"directory",
"reader",
"(",
"task",
"monitor",
"monitor",
")",
"throws",
"i",
"o",
"exception",
",",
"cancelled",
"exception",
"{",
"return",
"get",
"reader",
"for",
"stream",
"number",
"(",
"pdb",
"directory",
"stream",
"number",
",",
"0",
",",
"msf",
"stream",
"max",
"stream",
"length",
",",
"monitor",
")",
";",
"}"
] |
[
"test",
"that",
"file",
"leases",
"are",
"persisted",
"across",
"namenode",
"restarts"
] |
[
"public",
"void",
"test",
"file",
"creation",
"namenode",
"restart",
"(",
")",
"throws",
"i",
"o",
"exception",
",",
"no",
"such",
"field",
"exception",
",",
"illegal",
"access",
"exception",
"{",
"configuration",
"conf",
"=",
"new",
"hdfs",
"configuration",
"(",
")",
";",
"final",
"int",
"max",
"idle",
"time",
"=",
"2000",
";",
"/",
"/",
"2s",
"conf",
"set",
"int",
"(",
"\"",
"ipc",
"client",
"connection",
"maxidletime",
"\"",
",",
"max",
"idle",
"time",
")",
";",
"conf",
"set",
"int",
"(",
"dfs",
"namenode",
"heartbeat",
"recheck",
"interval",
"key",
",",
"1000",
")",
";",
"conf",
"set",
"int",
"(",
"dfs",
"heartbeat",
"interval",
"key",
",",
"1",
")",
";",
"if",
"(",
"simulated",
"storage",
")",
"{",
"simulated",
"f",
"s",
"dataset",
"set",
"factory",
"(",
"conf",
")",
";",
"}",
"/",
"/",
"create",
"cluster",
"mini",
"d",
"f",
"s",
"cluster",
"cluster",
"=",
"new",
"mini",
"d",
"f",
"s",
"cluster",
"builder",
"(",
"conf",
")",
"build",
"(",
")",
";",
"distributed",
"file",
"system",
"fs",
"=",
"null",
";",
"try",
"{",
"cluster",
"wait",
"active",
"(",
")",
";",
"fs",
"=",
"cluster",
"get",
"file",
"system",
"(",
")",
";",
"final",
"int",
"nnport",
"=",
"cluster",
"get",
"name",
"node",
"port",
"(",
")",
";",
"/",
"/",
"create",
"a",
"new",
"file",
"path",
"file",
"1",
"=",
"new",
"path",
"(",
"\"",
"/",
"filestatus",
"dat",
"\"",
")",
";",
"hdfs",
"data",
"output",
"stream",
"stm",
"=",
"create",
"(",
"fs",
",",
"file",
"1",
",",
"1",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"created",
"file",
"\"",
"+",
"file",
"1",
")",
";",
"assert",
"equals",
"(",
"file",
"1",
"+",
"\"",
"should",
"be",
"replicated",
"to",
"1",
"datanode",
"\"",
",",
"1",
",",
"stm",
"get",
"current",
"block",
"replication",
"(",
")",
")",
";",
"/",
"/",
"write",
"two",
"full",
"blocks",
"write",
"file",
"(",
"stm",
",",
"num",
"blocks",
"*",
"block",
"size",
")",
";",
"stm",
"hflush",
"(",
")",
";",
"assert",
"equals",
"(",
"file",
"1",
"+",
"\"",
"should",
"still",
"be",
"replicated",
"to",
"1",
"datanode",
"\"",
",",
"1",
",",
"stm",
"get",
"current",
"block",
"replication",
"(",
")",
")",
";",
"/",
"/",
"rename",
"file",
"wile",
"keeping",
"it",
"open",
"path",
"file",
"renamed",
"=",
"new",
"path",
"(",
"\"",
"/",
"filestatus",
"renamed",
"dat",
"\"",
")",
";",
"fs",
"rename",
"(",
"file",
"1",
",",
"file",
"renamed",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"renamed",
"file",
"\"",
"+",
"file",
"1",
"+",
"\"",
"to",
"\"",
"+",
"file",
"renamed",
")",
";",
"file",
"1",
"=",
"file",
"renamed",
";",
"/",
"/",
"create",
"another",
"new",
"file",
"/",
"/",
"path",
"file",
"2",
"=",
"new",
"path",
"(",
"\"",
"/",
"filestatus",
"2",
"dat",
"\"",
")",
";",
"f",
"s",
"data",
"output",
"stream",
"stm",
"2",
"=",
"create",
"file",
"(",
"fs",
",",
"file",
"2",
",",
"1",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"created",
"file",
"\"",
"+",
"file",
"2",
")",
";",
"/",
"/",
"create",
"yet",
"another",
"new",
"file",
"with",
"full",
"path",
"name",
"/",
"/",
"rename",
"it",
"while",
"open",
"/",
"/",
"path",
"file",
"3",
"=",
"new",
"path",
"(",
"\"",
"/",
"user",
"/",
"home",
"/",
"fullpath",
"dat",
"\"",
")",
";",
"f",
"s",
"data",
"output",
"stream",
"stm",
"3",
"=",
"create",
"file",
"(",
"fs",
",",
"file",
"3",
",",
"1",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"created",
"file",
"\"",
"+",
"file",
"3",
")",
";",
"path",
"file",
"4",
"=",
"new",
"path",
"(",
"\"",
"/",
"user",
"/",
"home",
"/",
"fullpath",
"4",
"dat",
"\"",
")",
";",
"f",
"s",
"data",
"output",
"stream",
"stm",
"4",
"=",
"create",
"file",
"(",
"fs",
",",
"file",
"4",
",",
"1",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"created",
"file",
"\"",
"+",
"file",
"4",
")",
";",
"fs",
"mkdirs",
"(",
"new",
"path",
"(",
"\"",
"/",
"bin",
"\"",
")",
")",
";",
"fs",
"rename",
"(",
"new",
"path",
"(",
"\"",
"/",
"user",
"/",
"home",
"\"",
")",
",",
"new",
"path",
"(",
"\"",
"/",
"bin",
"\"",
")",
")",
";",
"path",
"file",
"3new",
"=",
"new",
"path",
"(",
"\"",
"/",
"bin",
"/",
"home",
"/",
"fullpath",
"dat",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"renamed",
"file",
"\"",
"+",
"file",
"3",
"+",
"\"",
"to",
"\"",
"+",
"file",
"3new",
")",
";",
"path",
"file",
"4new",
"=",
"new",
"path",
"(",
"\"",
"/",
"bin",
"/",
"home",
"/",
"fullpath",
"4",
"dat",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"test",
"file",
"creation",
"namenode",
"restart",
":",
"\"",
"+",
"\"",
"renamed",
"file",
"\"",
"+",
"file",
"4",
"+",
"\"",
"to",
"\"",
"+",
"file",
"4new",
")",
";",
"/",
"/",
"restart",
"cluster",
"with",
"the",
"same",
"namenode",
"port",
"as",
"before",
"/",
"/",
"this",
"ensures",
"that",
"leases",
"are",
"persisted",
"in",
"fsimage",
"cluster",
"shutdown",
"(",
"false",
",",
"false",
")",
";",
"try",
"{",
"thread",
"sleep",
"(",
"2",
"*",
"max",
"idle",
"time",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"}",
"cluster",
"=",
"new",
"mini",
"d",
"f",
"s",
"cluster",
"builder",
"(",
"conf",
")",
"name",
"node",
"port",
"(",
"nnport",
")",
"format",
"(",
"false",
")",
"build",
"(",
")",
";",
"cluster",
"wait",
"active",
"(",
")",
";",
"/",
"/",
"restart",
"cluster",
"yet",
"again",
"this",
"triggers",
"the",
"code",
"to",
"read",
"in",
"/",
"/",
"persistent",
"leases",
"from",
"fsimage",
"cluster",
"shutdown",
"(",
"false",
",",
"false",
")",
";",
"try",
"{",
"thread",
"sleep",
"(",
"5000",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"}",
"cluster",
"=",
"new",
"mini",
"d",
"f",
"s",
"cluster",
"builder",
"(",
"conf",
")",
"name",
"node",
"port",
"(",
"nnport",
")",
"format",
"(",
"false",
")",
"build",
"(",
")",
";",
"cluster",
"wait",
"active",
"(",
")",
";",
"fs",
"=",
"cluster",
"get",
"file",
"system",
"(",
")",
";",
"/",
"/",
"instruct",
"the",
"dfsclient",
"to",
"use",
"a",
"new",
"filename",
"when",
"it",
"requests",
"/",
"/",
"new",
"blocks",
"for",
"files",
"that",
"were",
"renamed",
"d",
"f",
"s",
"output",
"stream",
"dfstream",
"=",
"(",
"d",
"f",
"s",
"output",
"stream",
")",
"(",
"stm",
"get",
"wrapped",
"stream",
"(",
")",
")",
";",
"field",
"f",
"=",
"d",
"f",
"s",
"output",
"stream",
"class",
"get",
"declared",
"field",
"(",
"\"",
"src",
"\"",
")",
";",
"field",
"modifiers",
"field",
"=",
"field",
"class",
"get",
"declared",
"field",
"(",
"\"",
"modifiers",
"\"",
")",
";",
"modifiers",
"field",
"set",
"accessible",
"(",
"true",
")",
";",
"modifiers",
"field",
"set",
"int",
"(",
"f",
",",
"f",
"get",
"modifiers",
"(",
")",
"&",
"~",
"modifier",
"final",
")",
";",
"f",
"set",
"accessible",
"(",
"true",
")",
";",
"f",
"set",
"(",
"dfstream",
",",
"file",
"1",
"to",
"string",
"(",
")",
")",
";",
"dfstream",
"=",
"(",
"d",
"f",
"s",
"output",
"stream",
")",
"(",
"stm",
"3",
"get",
"wrapped",
"stream",
"(",
")",
")",
";",
"f",
"set",
"(",
"dfstream",
",",
"file",
"3new",
"to",
"string",
"(",
")",
")",
";",
"dfstream",
"=",
"(",
"d",
"f",
"s",
"output",
"stream",
")",
"(",
"stm",
"4",
"get",
"wrapped",
"stream",
"(",
")",
")",
";",
"f",
"set",
"(",
"dfstream",
",",
"file",
"4new",
"to",
"string",
"(",
")",
")",
";",
"/",
"/",
"write",
"1",
"byte",
"to",
"file",
"this",
"should",
"succeed",
"because",
"the",
"/",
"/",
"namenode",
"should",
"have",
"persisted",
"leases",
"byte",
"[",
"]",
"buffer",
"=",
"append",
"test",
"util",
"random",
"bytes",
"(",
"seed",
",",
"1",
")",
";",
"stm",
"write",
"(",
"buffer",
")",
";",
"stm",
"close",
"(",
")",
";",
"stm",
"2",
"write",
"(",
"buffer",
")",
";",
"stm",
"2",
"close",
"(",
")",
";",
"stm",
"3",
"close",
"(",
")",
";",
"stm",
"4",
"close",
"(",
")",
";",
"/",
"/",
"verify",
"that",
"new",
"block",
"is",
"associated",
"with",
"this",
"file",
"d",
"f",
"s",
"client",
"client",
"=",
"fs",
"dfs",
";",
"located",
"blocks",
"locations",
"=",
"client",
"get",
"namenode",
"(",
")",
"get",
"block",
"locations",
"(",
"file",
"1",
"to",
"string",
"(",
")",
",",
"0",
",",
"long",
"max",
"value",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"locations",
"=",
"\"",
"+",
"locations",
"located",
"block",
"count",
"(",
")",
")",
";",
"assert",
"true",
"(",
"\"",
"error",
"blocks",
"were",
"not",
"cleaned",
"up",
"for",
"file",
"\"",
"+",
"file",
"1",
",",
"locations",
"located",
"block",
"count",
"(",
")",
"=",
"=",
"3",
")",
";",
"/",
"/",
"verify",
"filestatus",
"2",
"dat",
"locations",
"=",
"client",
"get",
"namenode",
"(",
")",
"get",
"block",
"locations",
"(",
"file",
"2",
"to",
"string",
"(",
")",
",",
"0",
",",
"long",
"max",
"value",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"locations",
"=",
"\"",
"+",
"locations",
"located",
"block",
"count",
"(",
")",
")",
";",
"assert",
"true",
"(",
"\"",
"error",
"blocks",
"were",
"not",
"cleaned",
"up",
"for",
"file",
"\"",
"+",
"file",
"2",
",",
"locations",
"located",
"block",
"count",
"(",
")",
"=",
"=",
"1",
")",
";",
"}",
"finally",
"{",
"i",
"o",
"utils",
"close",
"stream",
"(",
"fs",
")",
";",
"cluster",
"shutdown",
"(",
")",
";",
"}",
"}"
] |
[
"load",
"starlark",
"aspect",
"from",
"an",
"extension",
"file",
"is",
"to",
"be",
"called",
"from",
"a",
"sky",
"function"
] |
[
"static",
"starlark",
"aspect",
"load",
"starlark",
"aspect",
"(",
"environment",
"env",
",",
"label",
"extension",
"label",
",",
"string",
"starlark",
"value",
"name",
")",
"throws",
"aspect",
"creation",
"exception",
",",
"interrupted",
"exception",
"{",
"sky",
"key",
"import",
"file",
"key",
"=",
"bzl",
"load",
"value",
"key",
"for",
"build",
"(",
"extension",
"label",
")",
";",
"try",
"{",
"bzl",
"load",
"value",
"bzl",
"load",
"value",
"=",
"(",
"bzl",
"load",
"value",
")",
"env",
"get",
"value",
"or",
"throw",
"(",
"import",
"file",
"key",
",",
"bzl",
"load",
"failed",
"exception",
"class",
")",
";",
"if",
"(",
"bzl",
"load",
"value",
"=",
"=",
"null",
")",
"{",
"preconditions",
"check",
"state",
"(",
"env",
"values",
"missing",
"(",
")",
",",
"\"",
"no",
"starlark",
"import",
"value",
"for",
"%",
"s",
"\"",
",",
"import",
"file",
"key",
")",
";",
"return",
"null",
";",
"}",
"object",
"starlark",
"value",
"=",
"bzl",
"load",
"value",
"get",
"module",
"(",
")",
"get",
"global",
"(",
"starlark",
"value",
"name",
")",
";",
"if",
"(",
"starlark",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"conversion",
"exception",
"(",
"string",
"format",
"(",
"\"",
"%",
"s",
"is",
"not",
"exported",
"from",
"%",
"s",
"\"",
",",
"starlark",
"value",
"name",
",",
"extension",
"label",
"to",
"string",
"(",
")",
")",
")",
";",
"}",
"if",
"(",
"!",
"(",
"starlark",
"value",
"instanceof",
"starlark",
"aspect",
")",
")",
"{",
"throw",
"new",
"conversion",
"exception",
"(",
"string",
"format",
"(",
"\"",
"%",
"s",
"from",
"%",
"s",
"is",
"not",
"an",
"aspect",
"\"",
",",
"starlark",
"value",
"name",
",",
"extension",
"label",
"to",
"string",
"(",
")",
")",
")",
";",
"}",
"return",
"(",
"starlark",
"aspect",
")",
"starlark",
"value",
";",
"}",
"catch",
"(",
"bzl",
"load",
"failed",
"exception",
"e",
")",
"{",
"env",
"get",
"listener",
"(",
")",
"handle",
"(",
"event",
"error",
"(",
"e",
"get",
"message",
"(",
")",
")",
")",
";",
"throw",
"new",
"aspect",
"creation",
"exception",
"(",
"e",
"get",
"message",
"(",
")",
",",
"extension",
"label",
",",
"e",
"get",
"detailed",
"exit",
"code",
"(",
")",
")",
";",
"}",
"catch",
"(",
"conversion",
"exception",
"e",
")",
"{",
"env",
"get",
"listener",
"(",
")",
"handle",
"(",
"event",
"error",
"(",
"e",
"get",
"message",
"(",
")",
")",
")",
";",
"throw",
"new",
"aspect",
"creation",
"exception",
"(",
"e",
"get",
"message",
"(",
")",
",",
"extension",
"label",
")",
";",
"}",
"}"
] |
[
"clear",
"the",
"list",
"of",
"last",
"plugin",
"events",
"fired"
] |
[
"public",
"void",
"clear",
"last",
"events",
"(",
")",
"{",
"last",
"events",
"by",
"type",
"clear",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"per",
"-",
"instance",
"error",
"message",
",",
"if",
"specified",
",",
"or",
"the",
"provider",
"'",
"s",
"message",
"otherwise"
] |
[
"public",
"string",
"get",
"error",
"message",
"for",
"unknown",
"field",
"(",
"string",
"name",
")",
"{",
"return",
"unknown",
"field",
"error",
"!",
"=",
"null",
"?",
"string",
"format",
"(",
"unknown",
"field",
"error",
",",
"name",
")",
"+",
"all",
"attributes",
"suffix",
"(",
")",
":",
"super",
"get",
"error",
"message",
"for",
"unknown",
"field",
"(",
"name",
")",
";",
"}"
] |
[
"gets",
"a",
"runtime",
"configuration",
"value",
"from",
"diskbalancer",
"instance",
"for",
"example",
":",
"disk",
"balancer",
"bandwidth"
] |
[
"public",
"string",
"get",
"disk",
"balancer",
"setting",
"(",
"string",
"key",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"superuser",
"privilege",
"(",
")",
";",
"preconditions",
"check",
"not",
"null",
"(",
"key",
")",
";",
"switch",
"(",
"key",
")",
"{",
"case",
"disk",
"balancer",
"constants",
"diskbalancer",
"volume",
"name",
":",
"return",
"get",
"disk",
"balancer",
"(",
")",
"get",
"volume",
"names",
"(",
")",
";",
"case",
"disk",
"balancer",
"constants",
"diskbalancer",
"bandwidth",
":",
"return",
"long",
"to",
"string",
"(",
"get",
"disk",
"balancer",
"(",
")",
"get",
"bandwidth",
"(",
")",
")",
";",
"default",
":",
"log",
"error",
"(",
"\"",
"disk",
"balancer",
"-",
"unknown",
"key",
"in",
"get",
"balancer",
"setting",
"key",
":",
"{",
"}",
"\"",
",",
"key",
")",
";",
"throw",
"new",
"disk",
"balancer",
"exception",
"(",
"\"",
"unknown",
"key",
"\"",
",",
"disk",
"balancer",
"exception",
"result",
"unknown",
"key",
")",
";",
"}",
"}"
] |
[
"returns",
"an",
"immutable",
"array",
"containing",
"the",
"given",
"values",
",",
"in",
"order"
] |
[
"public",
"static",
"immutable",
"long",
"array",
"of",
"(",
"long",
"e",
"0",
",",
"long",
"e",
"1",
",",
"long",
"e",
"2",
",",
"long",
"e",
"3",
",",
"long",
"e",
"4",
",",
"long",
"e",
"5",
")",
"{",
"return",
"new",
"immutable",
"long",
"array",
"(",
"new",
"long",
"[",
"]",
"{",
"e",
"0",
",",
"e",
"1",
",",
"e",
"2",
",",
"e",
"3",
",",
"e",
"4",
",",
"e",
"5",
"}",
")",
";",
"}",
"/",
"/",
"todo",
"(",
"kevinb",
")",
":",
"go",
"up",
"to",
"11",
"?"
] |
[
"a",
"timeout",
"to",
"wait",
"if",
"the",
"index",
"operation",
"can",
"'",
"t",
"be",
"performed",
"immediately",
"defaults",
"to",
"{",
"@",
"code",
"1m",
"}"
] |
[
"public",
"final",
"request",
"builder",
"set",
"timeout",
"(",
"time",
"value",
"timeout",
")",
"{",
"request",
"timeout",
"(",
"timeout",
")",
";",
"return",
"(",
"request",
"builder",
")",
"this",
";",
"}"
] |
[
"returns",
"the",
"public",
"constructor",
"of",
"{",
"@",
"code",
"cl",
"}",
"specified",
"by",
"the",
"list",
"of",
"{",
"@",
"code",
"args",
"}",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"{",
"@",
"code",
"cl",
"}",
"has",
"no",
"public",
"constructor",
"that",
"matches",
"that",
"specification"
] |
[
"private",
"static",
"constructor",
"<",
"?",
">",
"get",
"constructor",
"(",
"class",
"<",
"?",
">",
"cl",
",",
"class",
"<",
"?",
">",
"args",
")",
"{",
"try",
"{",
"constructor",
"cons",
"=",
"cl",
"get",
"declared",
"constructor",
"(",
"args",
")",
";",
"return",
"modifier",
"is",
"public",
"(",
"cons",
"get",
"modifiers",
"(",
")",
")",
"?",
"cons",
":",
"null",
";",
"}",
"catch",
"(",
"no",
"such",
"method",
"exception",
"|",
"security",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.