docstring_tokens
list | code_tokens
list |
---|---|
[
"create",
"a",
"new",
"{",
"@",
"link",
"merged",
"annotations",
"}",
"instance",
"from",
"the",
"specified",
"annotations"
] |
[
"static",
"merged",
"annotations",
"from",
"(",
"object",
"source",
",",
"annotation",
"annotations",
")",
"{",
"return",
"from",
"(",
"source",
",",
"annotations",
",",
"repeatable",
"containers",
"standard",
"repeatables",
"(",
")",
")",
";",
"}"
] |
[
"return",
"a",
"corresponding",
"error",
"code",
"for",
"this",
"type",
"of",
"exception"
] |
[
"public",
"abstract",
"string",
"get",
"error",
"code",
"(",
")",
";"
] |
[
"allocate",
"a",
"heap",
"{",
"@",
"link",
"byte",
"buf",
"}",
"with",
"the",
"given",
"initial",
"capacity",
"and",
"the",
"given",
"maximal",
"capacity"
] |
[
"byte",
"buf",
"heap",
"buffer",
"(",
"int",
"initial",
"capacity",
",",
"int",
"max",
"capacity",
")",
";"
] |
[
"find",
"a",
"custom",
"translator",
"for",
"the",
"specified",
"database"
] |
[
"public",
"s",
"q",
"l",
"exception",
"translator",
"find",
"translator",
"for",
"database",
"(",
"string",
"db",
"name",
")",
"{",
"return",
"this",
"translator",
"map",
"get",
"(",
"db",
"name",
")",
";",
"}"
] |
[
"get",
"last",
"name"
] |
[
"public",
"string",
"get",
"last",
"name",
"(",
")",
"{",
"return",
"last",
"name",
";",
"}"
] |
[
"gets",
"the",
"number",
"of",
"currently",
"open",
"output",
"streams"
] |
[
"public",
"int",
"get",
"number",
"of",
"open",
"output",
"streams",
"(",
")",
"{",
"lock",
"lock",
"(",
")",
";",
"try",
"{",
"return",
"num",
"reserved",
"output",
"streams",
";",
"}",
"finally",
"{",
"lock",
"unlock",
"(",
")",
";",
"}",
"}"
] |
[
"sets",
"the",
"cache",
"to",
"which",
"data",
"will",
"be",
"written",
"must",
"be",
"called",
"before",
"the",
"factory",
"is",
"used"
] |
[
"public",
"factory",
"set",
"cache",
"(",
"cache",
"cache",
")",
"{",
"this",
"cache",
"=",
"cache",
";",
"return",
"this",
";",
"}"
] |
[
"sets",
"resource",
"manager"
] |
[
"public",
"void",
"set",
"resource",
"manager",
"(",
"resource",
"manager",
"resource",
"manager",
")",
"{",
"this",
"resource",
"manager",
"=",
"resource",
"manager",
";",
"}"
] |
[
"returns",
"the",
"same",
"date",
"format",
"as",
"{",
"@",
"code",
"date",
"format",
"get",
"date",
"time",
"instance",
"(",
"date",
"style",
",",
"time",
"style",
",",
"locale",
"us",
")",
"}",
"in",
"java",
"8",
"or",
"below"
] |
[
"public",
"static",
"date",
"format",
"get",
"u",
"s",
"date",
"time",
"format",
"(",
"int",
"date",
"style",
",",
"int",
"time",
"style",
")",
"{",
"string",
"pattern",
"=",
"get",
"date",
"part",
"of",
"date",
"time",
"pattern",
"(",
"date",
"style",
")",
"+",
"\"",
"\"",
"+",
"get",
"time",
"part",
"of",
"date",
"time",
"pattern",
"(",
"time",
"style",
")",
";",
"return",
"new",
"simple",
"date",
"format",
"(",
"pattern",
",",
"locale",
"us",
")",
";",
"}"
] |
[
"test",
"the",
"address",
"iterator",
"starting",
"at",
"a",
"specific",
"address"
] |
[
"public",
"void",
"test",
"get",
"addresses",
"at",
"(",
")",
"{",
"int",
"count",
"=",
"0",
";",
"address",
"iterator",
"iter",
"=",
"f",
"1",
"get",
"addresses",
"(",
"addr",
"(",
"0x",
"1",
"0",
")",
",",
"true",
")",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"iter",
"next",
"(",
")",
";",
"+",
"+",
"count",
";",
"}",
"assert",
"equals",
"(",
"0xf",
"0",
",",
"count",
")",
";",
"}"
] |
[
"returns",
"the",
"contents",
"that",
"would",
"be",
"written",
",",
"as",
"a",
"{",
"@",
"link",
"byte",
"string",
"}",
"used",
"when",
"the",
"caller",
"wants",
"a",
"{",
"@",
"link",
"byte",
"string",
"}",
"in",
"the",
"end",
",",
"to",
"avoid",
"making",
"unnecessary",
"copies"
] |
[
"default",
"byte",
"string",
"get",
"bytes",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"byte",
"string",
"output",
"out",
"=",
"byte",
"string",
"new",
"output",
"(",
")",
";",
"write",
"output",
"file",
"(",
"out",
")",
";",
"return",
"out",
"to",
"byte",
"string",
"(",
")",
";",
"}"
] |
[
"return",
"some",
"value",
"in",
"the",
"small",
"set",
"if",
"there",
"is",
"always",
"at",
"least",
"one",
"value",
"in",
"the",
"small",
"set",
"during",
"the",
"lifetime",
"of",
"this",
"call",
",",
"it",
"will",
"not",
"return",
"null",
",",
"since",
"by",
"the",
"invariant",
",",
"{",
"@",
"link",
"#",
"first",
"}",
"must",
"be",
"non",
"-",
"null"
] |
[
"private",
"t",
"get",
"(",
")",
"{",
"return",
"first",
";",
"}"
] |
[
"earlier",
"implementations",
"of",
"android",
"'",
"s",
"hostname",
"verifier",
"required",
"that",
"wildcard",
"names",
"wouldn",
"'",
"t",
"match",
"\"",
"com",
"\"",
"or",
"similar",
"this",
"was",
"a",
"nonstandard",
"check",
"that",
"we",
"'",
"ve",
"since",
"dropped",
"it",
"is",
"the",
"ca",
"'",
"s",
"responsibility",
"to",
"not",
"hand",
"out",
"certificates",
"that",
"match",
"so",
"broadly"
] |
[
"@",
"test",
"public",
"void",
"wildcards",
"does",
"not",
"need",
"two",
"dots",
"(",
")",
"throws",
"exception",
"{",
"/",
"/",
"openssl",
"req",
"-",
"x",
"5",
"0",
"9",
"-",
"nodes",
"-",
"days",
"36500",
"-",
"subj",
"'",
"/",
"cn",
"=",
"*",
"com",
"'",
"-",
"newkey",
"rsa",
":",
"512",
"-",
"out",
"cert",
"pem",
"s",
"s",
"l",
"session",
"session",
"=",
"session",
"(",
"\"",
"\"",
"+",
"\"",
"-",
"-",
"-",
"-",
"-",
"begin",
"certificate",
"-",
"-",
"-",
"-",
"-",
"\\",
"n",
"\"",
"+",
"\"",
"m",
"i",
"i",
"bj",
"d",
"c",
"c",
"a",
"tag",
"aw",
"i",
"b",
"ag",
"i",
"j",
"a",
"o",
"vul",
"x",
"c",
"su",
"6",
"hu",
"m",
"a",
"0",
"g",
"c",
"sq",
"g",
"s",
"ib",
"3",
"d",
"q",
"e",
"b",
"b",
"q",
"u",
"a",
"m",
"b",
"ax",
"dj",
"a",
"m",
"bg",
"n",
"v",
"\\",
"n",
"\"",
"+",
"\"",
"b",
"a",
"m",
"u",
"b",
"sou",
"y",
"2",
"9t",
"m",
"c",
"a",
"x",
"d",
"t",
"ew",
"m",
"t",
"iy",
"m",
"d",
"e",
"2",
"n",
"dkz",
"o",
"fo",
"y",
"dz",
"ix",
"m",
"t",
"ax",
"m",
"t",
"i",
"2",
"m",
"t",
"y",
"0",
"o",
"t",
"m",
"4",
"wj",
"a",
"q",
"m",
"q",
"4w",
"\\",
"n",
"\"",
"+",
"\"",
"d",
"a",
"y",
"d",
"v",
"q",
"q",
"d",
"f",
"a",
"uq",
"lm",
"nvb",
"t",
"bc",
"m",
"a",
"0",
"g",
"c",
"sq",
"g",
"s",
"ib",
"3",
"d",
"q",
"e",
"b",
"a",
"q",
"u",
"a",
"a",
"0s",
"a",
"m",
"eg",
"c",
"q",
"q",
"d",
"jd",
"8xqni",
"+",
"h",
"7",
"iaz",
"\\",
"n",
"\"",
"+",
"\"",
"yp",
"itivs",
"9k",
"pui",
"j",
"uq",
"vz",
"+",
"su",
"j",
"1",
"c",
"0",
"5",
"s",
"fc",
"3",
"pml",
"r",
"cvw",
"s",
"ifhy",
"d",
"6",
"7f",
"hcb",
"mdl",
"+",
"a",
"/",
"lr",
"ijhh",
"k",
"z",
"je",
"\\",
"n",
"\"",
"+",
"\"",
"1jo",
"o",
"0",
"+",
"p",
"f",
"ag",
"m",
"b",
"a",
"a",
"gjc",
"t",
"bv",
"m",
"b",
"0",
"g",
"a",
"1",
"ud",
"dg",
"q",
"w",
"b",
"b",
"s",
"4",
"iuzf",
"5w",
"8",
"jd",
"cp",
"+",
"et",
"bfd",
"f",
"nudf",
"6",
"+",
"yz",
"b",
"a",
"\\",
"n",
"\"",
"+",
"\"",
"bg",
"n",
"v",
"h",
"s",
"m",
"e",
"o",
"t",
"a",
"3g",
"b",
"s",
"4",
"iuzf",
"5w",
"8",
"jd",
"cp",
"+",
"et",
"bfd",
"f",
"nudf",
"6",
"+",
"y",
"6",
"e",
"up",
"b",
"iw",
"e",
"d",
"e",
"o",
"m",
"aw",
"g",
"a",
"1",
"u",
"e",
"ax",
"q",
"f",
"\\",
"n",
"\"",
"+",
"\"",
"ki",
"5jb",
"2",
"2",
"c",
"c",
"q",
"dlbp",
"vwkruh",
"7j",
"a",
"m",
"bg",
"n",
"v",
"h",
"r",
"m",
"e",
"b",
"t",
"a",
"d",
"a",
"q",
"h",
"/",
"m",
"a",
"0",
"g",
"c",
"sq",
"g",
"s",
"ib",
"3",
"d",
"q",
"e",
"b",
"b",
"q",
"u",
"a",
"a",
"0",
"e",
"a",
"\\",
"n",
"\"",
"+",
"\"",
"u",
"6",
"l",
"fxm",
"zr",
"3",
"1l",
"fyis",
"2",
"/",
"t",
"6",
"8",
"ppj",
"appc",
"0",
"dp",
"n",
"qu",
"a",
"2m",
"/",
"y",
"7o",
"t",
"h",
"b",
"di",
"5",
"5",
"fw",
"6",
"h",
"v",
"h",
"cw",
"3lucu",
"w",
"z",
"5d",
"\\",
"n",
"\"",
"+",
"\"",
"q",
"u",
"yo",
"4",
"e",
"s",
"5",
"4",
"8",
"jdp",
"qtc",
"lr",
"w",
"2s",
"a",
"=",
"=",
"\\",
"n",
"\"",
"+",
"\"",
"-",
"-",
"-",
"-",
"-",
"end",
"certificate",
"-",
"-",
"-",
"-",
"-",
"\"",
")",
";",
"assert",
"that",
"(",
"verifier",
"verify",
"(",
"\"",
"google",
"com",
"\"",
",",
"session",
")",
")",
"is",
"false",
"(",
")",
";",
"}"
] |
[
"indicates",
"that",
"the",
"test",
"case",
"with",
"the",
"given",
"key",
"was",
"skipped"
] |
[
"public",
"void",
"test",
"skipped",
"(",
"description",
"description",
")",
"{",
"test",
"node",
"test",
"=",
"get",
"test",
"(",
"description",
")",
";",
"if",
"(",
"test",
"!",
"=",
"null",
")",
"{",
"test",
"test",
"skipped",
"(",
"now",
"(",
")",
")",
";",
"}",
"}"
] |
[
"grows",
"the",
"array",
"the",
"new",
"array",
"capacity",
"will",
"be",
"the",
"maximum",
"of",
"min",
"capacity",
"and",
"twice",
"the",
"current",
"capacity"
] |
[
"private",
"void",
"adjust",
"array",
"sizes",
"(",
"int",
"size",
")",
"{",
"if",
"(",
"size",
"<",
"min",
"size",
")",
"{",
"size",
"=",
"min",
"size",
";",
"}",
"int",
"len",
"=",
"math",
"min",
"(",
"size",
",",
"starts",
"length",
")",
";",
"int",
"[",
"]",
"new",
"starts",
"=",
"new",
"int",
"[",
"size",
"]",
";",
"short",
"[",
"]",
"new",
"lengths",
"=",
"new",
"short",
"[",
"size",
"]",
";",
"system",
"arraycopy",
"(",
"starts",
",",
"0",
",",
"new",
"starts",
",",
"0",
",",
"len",
")",
";",
"system",
"arraycopy",
"(",
"lengths",
",",
"0",
",",
"new",
"lengths",
",",
"0",
",",
"len",
")",
";",
"starts",
"=",
"new",
"starts",
";",
"lengths",
"=",
"new",
"lengths",
";",
"}"
] |
[
"this",
"version",
"is",
"so",
"that",
"the",
"'",
"check",
"any",
"permission",
"'",
"on",
"{",
"@",
"code",
"layout",
"jelly",
"}",
"degrades",
"gracefully",
"if",
"\"",
"it",
"\"",
"is",
"not",
"an",
"{",
"@",
"link",
"access",
"controlled",
"}",
"object",
"otherwise",
"it",
"will",
"perform",
"no",
"check",
"and",
"that",
"problem",
"is",
"hard",
"to",
"notice"
] |
[
"public",
"static",
"void",
"check",
"any",
"permission",
"(",
"object",
"object",
",",
"permission",
"[",
"]",
"permissions",
")",
"throws",
"i",
"o",
"exception",
",",
"servlet",
"exception",
"{",
"if",
"(",
"permissions",
"=",
"=",
"null",
"|",
"|",
"permissions",
"length",
"=",
"=",
"0",
")",
"{",
"return",
";",
"}",
"if",
"(",
"object",
"instanceof",
"access",
"controlled",
")",
"check",
"any",
"permission",
"(",
"(",
"access",
"controlled",
")",
"object",
",",
"permissions",
")",
";",
"else",
"{",
"list",
"<",
"ancestor",
">",
"ancs",
"=",
"stapler",
"get",
"current",
"request",
"(",
")",
"get",
"ancestors",
"(",
")",
";",
"for",
"(",
"ancestor",
"anc",
":",
"iterators",
"reverse",
"(",
"ancs",
")",
")",
"{",
"object",
"o",
"=",
"anc",
"get",
"object",
"(",
")",
";",
"if",
"(",
"o",
"instanceof",
"access",
"controlled",
")",
"{",
"check",
"any",
"permission",
"(",
"(",
"access",
"controlled",
")",
"o",
",",
"permissions",
")",
";",
"return",
";",
"}",
"}",
"check",
"any",
"permission",
"(",
"jenkins",
"get",
"(",
")",
",",
"permissions",
")",
";",
"}",
"}"
] |
[
",",
",",
"-",
"djava",
"security",
"=",
"file",
":",
"dev",
"urandom",
"(",
")",
":",
"《",
"》",
"http",
":",
"calvin",
"1",
"9",
"7",
"8",
"blogcn",
"comarticlessecurerandom",
"html"
] |
[
"public",
"static",
"secure",
"random",
"secure",
"random",
"(",
")",
"{",
"try",
"{",
"return",
"secure",
"random",
"get",
"instance",
"(",
"\"",
"sha1prng",
"\"",
")",
";",
"}",
"catch",
"(",
"no",
"such",
"algorithm",
"exception",
"e",
")",
"{",
"/",
"/",
"nosonar",
"return",
"new",
"secure",
"random",
"(",
")",
";",
"}",
"}"
] |
[
"returns",
"a",
"set",
"of",
"nodes",
"for",
"which",
"publication",
"has",
"failed"
] |
[
"public",
"set",
"<",
"discovery",
"node",
">",
"get",
"failed",
"nodes",
"(",
")",
"{",
"return",
"collections",
"unmodifiable",
"set",
"(",
"failed",
"nodes",
")",
";",
"}"
] |
[
"visit",
"a",
"parse",
"tree",
"produced",
"by",
"{",
"@",
"link",
"sql",
"base",
"parser",
"#",
"boolean",
"value",
"}"
] |
[
"t",
"visit",
"boolean",
"value",
"(",
"sql",
"base",
"parser",
"boolean",
"value",
"context",
"ctx",
")",
";"
] |
[
"get",
"attribute",
"boolean"
] |
[
"public",
"boolean",
"is",
"attribute",
"boolean",
"(",
")",
"{",
"return",
"attribute",
"boolean",
";",
"}"
] |
[
"get",
"a",
"report",
"(",
"application",
"report",
")",
"of",
"all",
"applications",
"in",
"the",
"cluster",
"if",
"the",
"user",
"does",
"not",
"have",
"<",
"code",
">",
"view",
"app",
"<",
"code",
">",
"access",
"for",
"an",
"application",
"then",
"the",
"corresponding",
"report",
"will",
"be",
"filtered",
"as",
"described",
"in",
"{",
"@",
"link",
"#",
"get",
"application",
"report",
"(",
"application",
"id",
")",
"}"
] |
[
"public",
"abstract",
"list",
"<",
"application",
"report",
">",
"get",
"applications",
"(",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
] |
[
"attempts",
"to",
"locate",
"a",
"value",
"from",
"script",
"arguments",
"or",
"a",
"script",
"properties",
"file",
"using",
"the",
"given",
"<",
"code",
">",
"keys",
"<",
"code",
">",
"as",
"the",
"lookup",
"key",
"for",
"the",
"latter",
"the",
"given",
"<",
"code",
">",
"parser",
"<",
"code",
">",
"will",
"be",
"called",
"to",
"turn",
"the",
"string",
"into",
"a",
"<",
"code",
">",
"t",
"<",
"code",
">"
] |
[
"private",
"<",
"t",
">",
"t",
"load",
"ask",
"value",
"(",
"string",
"transformer",
"<",
"t",
">",
"transformer",
",",
"string",
"key",
")",
"{",
"t",
"value",
"=",
"load",
"ask",
"value",
"(",
"null",
",",
"transformer",
",",
"key",
")",
";",
"return",
"value",
";",
"}"
] |
[
"always",
"returns",
"<",
"tt",
">",
"integer",
"max",
"value",
"<",
"tt",
">",
"because",
"a",
"<",
"tt",
">",
"monitor",
"based",
"priority",
"blocking",
"queue",
"<",
"tt",
">",
"is",
"not",
"capacity",
"constrained"
] |
[
"public",
"int",
"remaining",
"capacity",
"(",
")",
"{",
"return",
"integer",
"max",
"value",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"does",
"nothing"
] |
[
"@",
"override",
"public",
"void",
"enter",
"cast",
"expression",
"(",
"sql",
"base",
"parser",
"cast",
"expression",
"context",
"ctx",
")",
"{",
"}"
] |
[
"given",
"a",
"{",
"@",
"link",
"sorted",
"numeric",
"doc",
"values",
"}",
",",
"return",
"a",
"{",
"@",
"link",
"sorted",
"numeric",
"double",
"values",
"}",
"instance",
"that",
"will",
"translate",
"long",
"values",
"to",
"doubles",
"using",
"{",
"@",
"link",
"org",
"apache",
"lucene",
"util",
"numeric",
"utils",
"#",
"sortable",
"long",
"to",
"double",
"(",
"long",
")",
"}"
] |
[
"public",
"static",
"sorted",
"numeric",
"double",
"values",
"sortable",
"long",
"bits",
"to",
"doubles",
"(",
"sorted",
"numeric",
"doc",
"values",
"values",
")",
"{",
"final",
"numeric",
"doc",
"values",
"singleton",
"=",
"doc",
"values",
"unwrap",
"singleton",
"(",
"values",
")",
";",
"if",
"(",
"singleton",
"!",
"=",
"null",
")",
"{",
"final",
"numeric",
"double",
"values",
"doubles",
";",
"if",
"(",
"singleton",
"instanceof",
"sortable",
"long",
"bits",
"numeric",
"doc",
"values",
")",
"{",
"doubles",
"=",
"(",
"(",
"sortable",
"long",
"bits",
"numeric",
"doc",
"values",
")",
"singleton",
")",
"get",
"double",
"values",
"(",
")",
";",
"}",
"else",
"{",
"doubles",
"=",
"new",
"sortable",
"long",
"bits",
"to",
"numeric",
"double",
"values",
"(",
"singleton",
")",
";",
"}",
"return",
"singleton",
"(",
"doubles",
")",
";",
"}",
"else",
"{",
"if",
"(",
"values",
"instanceof",
"sortable",
"long",
"bits",
"sorted",
"numeric",
"doc",
"values",
")",
"{",
"return",
"(",
"(",
"sortable",
"long",
"bits",
"sorted",
"numeric",
"doc",
"values",
")",
"values",
")",
"get",
"double",
"values",
"(",
")",
";",
"}",
"else",
"{",
"return",
"new",
"sortable",
"long",
"bits",
"to",
"sorted",
"numeric",
"double",
"values",
"(",
"values",
")",
";",
"}",
"}",
"}"
] |
[
"adds",
"the",
"constructor",
"by",
"key",
"reference",
"to",
"the",
"node",
"type"
] |
[
"private",
"void",
"add",
"constructor",
"by",
"key",
"ref",
"(",
")",
"{",
"context",
"constructor",
"by",
"key",
"ref",
"=",
"method",
"spec",
"constructor",
"builder",
"(",
")",
"add",
"parameter",
"(",
"key",
"ref",
"spec",
")",
";",
"add",
"common",
"parameters",
"(",
"context",
"constructor",
"by",
"key",
"ref",
")",
";",
"if",
"(",
"is",
"base",
"class",
"(",
")",
")",
"{",
"assign",
"key",
"ref",
"and",
"value",
"(",
")",
";",
"}",
"else",
"{",
"call",
"parent",
"by",
"key",
"ref",
"(",
")",
";",
"}",
"}"
] |
[
"test",
"that",
"creating",
"one",
"tree",
"multimap",
"from",
"a",
"sorted",
"set",
"multimap",
"uses",
"natural",
"ordering"
] |
[
"public",
"void",
"test",
"create",
"from",
"sorted",
"set",
"multimap",
"(",
")",
"{",
"sorted",
"set",
"multimap",
"<",
"double",
",",
"double",
">",
"tree",
"=",
"tree",
"multimap",
"create",
"(",
"key",
"comparator",
",",
"value",
"comparator",
")",
";",
"tree",
"put",
"(",
"1",
"0",
",",
"2",
"0",
")",
";",
"tree",
"put",
"(",
"2",
"0",
",",
"3",
"0",
")",
";",
"tree",
"put",
"(",
"3",
"0",
",",
"4",
"0",
")",
";",
"tree",
"put",
"(",
"4",
"0",
",",
"5",
"0",
")",
";",
"sorted",
"set",
"multimap",
"<",
"double",
",",
"double",
">",
"sorted",
"=",
"multimaps",
"unmodifiable",
"sorted",
"set",
"multimap",
"(",
"tree",
")",
";",
"tree",
"multimap",
"<",
"double",
",",
"double",
">",
"copy",
"from",
"sorted",
"=",
"tree",
"multimap",
"create",
"(",
"sorted",
")",
";",
"assert",
"equals",
"(",
"tree",
",",
"copy",
"from",
"sorted",
")",
";",
"assert",
"same",
"(",
"ordering",
"natural",
"(",
")",
",",
"copy",
"from",
"sorted",
"key",
"comparator",
"(",
")",
")",
";",
"assert",
"same",
"(",
"ordering",
"natural",
"(",
")",
",",
"copy",
"from",
"sorted",
"value",
"comparator",
"(",
")",
")",
";",
"assert",
"same",
"(",
"ordering",
"natural",
"(",
")",
",",
"copy",
"from",
"sorted",
"get",
"(",
"1",
"0",
")",
"comparator",
"(",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"size",
"of",
"this",
"source",
"in",
"bytes",
",",
"even",
"if",
"doing",
"so",
"requires",
"opening",
"and",
"traversing",
"an",
"entire",
"stream",
"to",
"avoid",
"a",
"potentially",
"expensive",
"operation",
",",
"see",
"{",
"@",
"link",
"#",
"size",
"if",
"known",
"}",
"the",
"default",
"implementation",
"calls",
"{",
"@",
"link",
"#",
"size",
"if",
"known",
"}",
"and",
"returns",
"the",
"value",
"if",
"present",
"if",
"absent",
",",
"it",
"will",
"fall",
"back",
"to",
"a",
"heavyweight",
"operation",
"that",
"will",
"open",
"a",
"stream",
",",
"read",
"(",
"or",
"{",
"@",
"link",
"input",
"stream",
"#",
"skip",
"(",
"long",
")",
"skip",
"}",
",",
"if",
"possible",
")",
"to",
"the",
"end",
"of",
"the",
"stream",
"and",
"return",
"the",
"total",
"number",
"of",
"bytes",
"that",
"were",
"read",
"note",
"that",
"for",
"some",
"sources",
"that",
"implement",
"{",
"@",
"link",
"#",
"size",
"if",
"known",
"}",
"to",
"provide",
"a",
"more",
"efficient",
"implementation",
",",
"it",
"is",
"possible",
"that",
"this",
"method",
"will",
"return",
"a",
"different",
"number",
"of",
"bytes",
"than",
"would",
"be",
"returned",
"by",
"reading",
"all",
"of",
"the",
"bytes",
"(",
"for",
"example",
",",
"some",
"special",
"files",
"may",
"return",
"a",
"size",
"of",
"0",
"despite",
"actually",
"having",
"content",
"when",
"read",
")",
"in",
"either",
"case",
",",
"for",
"mutable",
"sources",
"such",
"as",
"files",
",",
"a",
"subsequent",
"read",
"may",
"return",
"a",
"different",
"number",
"of",
"bytes",
"if",
"the",
"contents",
"are",
"changed"
] |
[
"public",
"long",
"size",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"optional",
"<",
"long",
">",
"size",
"if",
"known",
"=",
"size",
"if",
"known",
"(",
")",
";",
"if",
"(",
"size",
"if",
"known",
"is",
"present",
"(",
")",
")",
"{",
"return",
"size",
"if",
"known",
"get",
"(",
")",
";",
"}",
"closer",
"closer",
"=",
"closer",
"create",
"(",
")",
";",
"try",
"{",
"input",
"stream",
"in",
"=",
"closer",
"register",
"(",
"open",
"stream",
"(",
")",
")",
";",
"return",
"count",
"by",
"skipping",
"(",
"in",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"/",
"/",
"skip",
"may",
"not",
"be",
"supported",
"at",
"any",
"rate",
",",
"try",
"reading",
"}",
"finally",
"{",
"closer",
"close",
"(",
")",
";",
"}",
"closer",
"=",
"closer",
"create",
"(",
")",
";",
"try",
"{",
"input",
"stream",
"in",
"=",
"closer",
"register",
"(",
"open",
"stream",
"(",
")",
")",
";",
"return",
"byte",
"streams",
"exhaust",
"(",
"in",
")",
";",
"}",
"catch",
"(",
"throwable",
"e",
")",
"{",
"throw",
"closer",
"rethrow",
"(",
"e",
")",
";",
"}",
"finally",
"{",
"closer",
"close",
"(",
")",
";",
"}",
"}"
] |
[
"gets",
"the",
"broadcast",
"data",
"set",
"registered",
"under",
"the",
"given",
"name",
"broadcast",
"data",
"sets",
"are",
"available",
"on",
"all",
"parallel",
"instances",
"of",
"a",
"function"
] |
[
"public",
"<",
"t",
">",
"collection",
"<",
"t",
">",
"get",
"broadcast",
"set",
"(",
"string",
"name",
")",
"{",
"return",
"this",
"runtime",
"context",
"get",
"broadcast",
"variable",
"(",
"name",
")",
";",
"}"
] |
[
"get",
"all",
"{",
"@",
"link",
"header",
"}",
"s",
",",
"apply",
"the",
"transform",
"to",
"each",
"and",
"store",
"the",
"result",
"in",
"place",
"of",
"the",
"original"
] |
[
"headers",
"apply",
"(",
"header",
"transform",
"transform",
")",
";"
] |
[
"disable",
"an",
"erasure",
"coding",
"policy"
] |
[
"boolean",
"disable",
"erasure",
"coding",
"policy",
"(",
"string",
"ec",
"policy",
"name",
",",
"final",
"boolean",
"log",
"retry",
"cache",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"string",
"operation",
"name",
"=",
"\"",
"disable",
"erasure",
"coding",
"policy",
"\"",
";",
"check",
"operation",
"(",
"operation",
"category",
"write",
")",
";",
"check",
"erasure",
"coding",
"supported",
"(",
"operation",
"name",
")",
";",
"boolean",
"success",
"=",
"false",
";",
"log",
"info",
"(",
"\"",
"disable",
"the",
"erasure",
"coding",
"policy",
"\"",
"+",
"ec",
"policy",
"name",
")",
";",
"try",
"{",
"write",
"lock",
"(",
")",
";",
"try",
"{",
"check",
"operation",
"(",
"operation",
"category",
"write",
")",
";",
"check",
"name",
"node",
"safe",
"mode",
"(",
"\"",
"cannot",
"disable",
"erasure",
"coding",
"policy",
"\"",
"+",
"ec",
"policy",
"name",
")",
";",
"success",
"=",
"f",
"s",
"dir",
"erasure",
"coding",
"op",
"disable",
"erasure",
"coding",
"policy",
"(",
"this",
",",
"ec",
"policy",
"name",
",",
"log",
"retry",
"cache",
")",
";",
"}",
"finally",
"{",
"write",
"unlock",
"(",
"operation",
"name",
",",
"get",
"lock",
"report",
"info",
"supplier",
"(",
"ec",
"policy",
"name",
")",
")",
";",
"}",
"}",
"catch",
"(",
"access",
"control",
"exception",
"ace",
")",
"{",
"log",
"audit",
"event",
"(",
"false",
",",
"operation",
"name",
",",
"ec",
"policy",
"name",
")",
";",
"throw",
"ace",
";",
"}",
"if",
"(",
"success",
")",
"{",
"get",
"edit",
"log",
"(",
")",
"log",
"sync",
"(",
")",
";",
"log",
"audit",
"event",
"(",
"true",
",",
"operation",
"name",
",",
"ec",
"policy",
"name",
")",
";",
"}",
"return",
"success",
";",
"}"
] |
[
"inserts",
"a",
"serializable",
"value",
"into",
"the",
"mapping",
"of",
"this",
"bundle",
",",
"replacing",
"any",
"existing",
"value",
"for",
"the",
"given",
"key",
"either",
"key",
"or",
"value",
"may",
"be",
"null"
] |
[
"public",
"postcard",
"with",
"serializable",
"(",
"@",
"nullable",
"string",
"key",
",",
"@",
"nullable",
"serializable",
"value",
")",
"{",
"m",
"bundle",
"put",
"serializable",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"set",
"the",
"mapreduce",
"job"
] |
[
"public",
"synchronized",
"void",
"set",
"job",
"(",
"job",
"job",
")",
"{",
"this",
"job",
"=",
"job",
";",
"}"
] |
[
"returns",
"an",
"initializable",
"for",
"an",
"instance",
"that",
"requires",
"no",
"initialization"
] |
[
"static",
"<",
"t",
">",
"initializable",
"<",
"t",
">",
"of",
"(",
"final",
"t",
"instance",
")",
"{",
"return",
"new",
"initializable",
"<",
"t",
">",
"(",
")",
"{",
"@",
"override",
"public",
"t",
"get",
"(",
"errors",
"errors",
")",
"throws",
"errors",
"exception",
"{",
"return",
"instance",
";",
"}",
"@",
"override",
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"string",
"value",
"of",
"(",
"instance",
")",
";",
"}",
"}",
";",
"}"
] |
[
"gets",
"a",
"single",
"attribute"
] |
[
"public",
"object",
"get",
"attribute",
"(",
"final",
"string",
"key",
")",
"{",
"return",
"attributes",
"get",
"(",
"key",
")",
";",
"}"
] |
[
"renders",
"a",
"{",
"@",
"link",
"bit",
"matrix",
"}",
"as",
"an",
"image",
",",
"where",
"\"",
"false",
"\"",
"bits",
"are",
"rendered",
"as",
"white",
",",
"and",
"\"",
"true",
"\"",
"bits",
"are",
"rendered",
"as",
"black",
"uses",
"default",
"configuration"
] |
[
"public",
"static",
"buffered",
"image",
"to",
"buffered",
"image",
"(",
"bit",
"matrix",
"matrix",
")",
"{",
"return",
"to",
"buffered",
"image",
"(",
"matrix",
",",
"default",
"config",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"blocking",
"-",
"style",
"stub",
"that",
"supports",
"unary",
"and",
"streaming",
"output",
"calls",
"on",
"the",
"service"
] |
[
"public",
"static",
"health",
"blocking",
"stub",
"new",
"blocking",
"stub",
"(",
"io",
"grpc",
"channel",
"channel",
")",
"{",
"io",
"grpc",
"stub",
"abstract",
"stub",
"stub",
"factory",
"<",
"health",
"blocking",
"stub",
">",
"factory",
"=",
"new",
"io",
"grpc",
"stub",
"abstract",
"stub",
"stub",
"factory",
"<",
"health",
"blocking",
"stub",
">",
"(",
")",
"{",
"@",
"java",
"lang",
"override",
"public",
"health",
"blocking",
"stub",
"new",
"stub",
"(",
"io",
"grpc",
"channel",
"channel",
",",
"io",
"grpc",
"call",
"options",
"call",
"options",
")",
"{",
"return",
"new",
"health",
"blocking",
"stub",
"(",
"channel",
",",
"call",
"options",
")",
";",
"}",
"}",
";",
"return",
"health",
"blocking",
"stub",
"new",
"stub",
"(",
"factory",
",",
"channel",
")",
";",
"}"
] |
[
"return",
"filtered",
"input",
"stream",
"for",
"loading",
"a",
"memory",
"block",
"(",
"includes",
"non",
"-",
"loaded",
"other",
"blocks",
")",
"note",
":",
"if",
"this",
"method",
"is",
"overriden",
",",
"the",
"{",
"@",
"link",
"#",
"has",
"filtered",
"load",
"input",
"stream",
"(",
"elf",
"load",
"helper",
",",
"memory",
"loadable",
",",
"address",
")",
"}",
"must",
"also",
"be",
"overriden",
"in",
"a",
"consistent",
"fashion"
] |
[
"public",
"input",
"stream",
"get",
"filtered",
"load",
"input",
"stream",
"(",
"elf",
"load",
"helper",
"elf",
"load",
"helper",
",",
"memory",
"loadable",
"loadable",
",",
"address",
"start",
",",
"long",
"data",
"length",
",",
"input",
"stream",
"data",
"input",
")",
"{",
"return",
"data",
"input",
";",
"}"
] |
[
"set",
"the",
"converted",
"value",
"of",
"this",
"property",
"value",
",",
"after",
"processed",
"type",
"conversion"
] |
[
"public",
"synchronized",
"void",
"set",
"converted",
"value",
"(",
"@",
"nullable",
"object",
"value",
")",
"{",
"this",
"converted",
"=",
"true",
";",
"this",
"converted",
"value",
"=",
"value",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"attribute",
"boolean",
"'"
] |
[
"public",
"void",
"attribute",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"attribute",
"boolean",
"}"
] |
[
"construct",
"data",
"transfer",
"in",
"{",
"@",
"link",
"data",
"node",
"#",
"transfer",
"replica",
"for",
"pipeline",
"recovery",
"}",
"when",
"recover",
"pipeline",
",",
"block",
"construction",
"stage",
"is",
"pipeline",
"setup",
"append",
"recovery",
",",
"pipeline",
"setup",
"streaming",
"recovery",
",",
"pipeline",
"close",
"recovery",
"if",
"block",
"construction",
"stage",
"is",
"pipeline",
"close",
"recovery",
",",
"don",
"'",
"t",
"need",
"transfer",
"replica",
"so",
"block",
"construction",
"stage",
"is",
"pipeline",
"setup",
"append",
"recovery",
",",
"pipeline",
"setup",
"streaming",
"recovery"
] |
[
"private",
"static",
"boolean",
"is",
"write",
"(",
"block",
"construction",
"stage",
"stage",
")",
"{",
"return",
"(",
"stage",
"=",
"=",
"pipeline",
"setup",
"streaming",
"recovery",
"|",
"|",
"stage",
"=",
"=",
"pipeline",
"setup",
"append",
"recovery",
")",
";",
"}"
] |
[
"set",
"the",
"object",
"lists"
] |
[
"void",
"set",
"program",
"lists",
"(",
"list",
"<",
"program",
">",
"hidden",
"list",
",",
"list",
"<",
"program",
">",
"shown",
"list",
")",
"{",
"this",
"hidden",
"list",
"=",
"hidden",
"list",
";",
"this",
"shown",
"list",
"=",
"shown",
"list",
";",
"init",
"list",
"model",
"(",
")",
";",
"program",
"list",
"clear",
"selection",
"(",
")",
";",
"}"
] |
[
"check",
"if",
"watcher",
"has",
"been",
"stopped",
"manually",
"via",
"the",
"stop",
"api"
] |
[
"private",
"boolean",
"is",
"watcher",
"stopped",
"manually",
"(",
"cluster",
"state",
"state",
")",
"{",
"watcher",
"metadata",
"watcher",
"metadata",
"=",
"state",
"get",
"metadata",
"(",
")",
"custom",
"(",
"watcher",
"metadata",
"type",
")",
";",
"return",
"watcher",
"metadata",
"!",
"=",
"null",
"&",
"&",
"watcher",
"metadata",
"manually",
"stopped",
"(",
")",
";",
"}"
] |
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"field",
"id",
",",
"throwing",
"an",
"exception",
"if",
"it",
"is",
"not",
"found"
] |
[
"public",
"static",
"fields",
"find",
"by",
"thrift",
"id",
"or",
"throw",
"(",
"int",
"field",
"id",
")",
"{",
"fields",
"fields",
"=",
"find",
"by",
"thrift",
"id",
"(",
"field",
"id",
")",
";",
"if",
"(",
"fields",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"field",
"\"",
"+",
"field",
"id",
"+",
"\"",
"doesn",
"'",
"t",
"exist",
"!",
"\"",
")",
";",
"return",
"fields",
";",
"}"
] |
[
"compares",
"two",
"v",
"int",
"writables"
] |
[
"public",
"int",
"compare",
"to",
"(",
"v",
"int",
"writable",
"o",
")",
"{",
"int",
"this",
"value",
"=",
"this",
"value",
";",
"int",
"that",
"value",
"=",
"o",
"value",
";",
"return",
"(",
"this",
"value",
"<",
"that",
"value",
"?",
"-",
"1",
":",
"(",
"this",
"value",
"=",
"=",
"that",
"value",
"?",
"0",
":",
"1",
")",
")",
";",
"}"
] |
[
"lazy",
"initialization",
"of",
"param",
"file",
"name",
"to",
"content",
"map"
] |
[
"private",
"map",
"<",
"string",
",",
"iterable",
"<",
"string",
">",
">",
"get",
"param",
"file",
"name",
"to",
"content",
"map",
"(",
")",
"{",
"if",
"(",
"param",
"file",
"name",
"to",
"content",
"map",
"=",
"=",
"null",
")",
"{",
"param",
"file",
"name",
"to",
"content",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"}",
"return",
"param",
"file",
"name",
"to",
"content",
"map",
";",
"}"
] |
[
"returns",
"a",
"string",
"representation",
"of",
"this",
"location"
] |
[
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"super",
"to",
"string",
"(",
")",
"+",
"\"",
",",
"equate",
"value",
"=",
"\"",
"+",
"get",
"equate",
"value",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"list",
"of",
"all",
"programs",
"that",
"should",
"be",
"analyzed",
"this",
"will",
"always",
"include",
"the",
"currently",
"selected",
"program",
",",
"as",
"well",
"as",
"any",
"other",
"programs",
"that",
"have",
"a",
"similar",
"architecture",
"those",
"programs",
"with",
"different",
"architectures",
"will",
"be",
"filtered",
"out"
] |
[
"private",
"list",
"<",
"program",
">",
"get",
"valid",
"programs",
"by",
"architecture",
"(",
")",
"{",
"list",
"<",
"program",
">",
"valid",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"programs",
")",
";",
"program",
"i",
"d",
"proto",
"type",
"program",
"i",
"d",
"=",
"new",
"program",
"i",
"d",
"(",
"prototype",
"program",
")",
";",
"for",
"(",
"program",
"program",
":",
"programs",
")",
"{",
"program",
"i",
"d",
"program",
"i",
"d",
"=",
"new",
"program",
"i",
"d",
"(",
"program",
")",
";",
"if",
"(",
"!",
"proto",
"type",
"program",
"i",
"d",
"equals",
"(",
"program",
"i",
"d",
")",
")",
"{",
"valid",
"list",
"remove",
"(",
"program",
")",
";",
"}",
"}",
"return",
"valid",
"list",
";",
"}"
] |
[
"returns",
"the",
"number",
"of",
"elements",
"in",
"this",
"queue"
] |
[
"public",
"int",
"size",
"(",
")",
"{",
"final",
"monitor",
"monitor",
"=",
"this",
"monitor",
";",
"monitor",
"enter",
"(",
")",
";",
"try",
"{",
"return",
"count",
";",
"}",
"finally",
"{",
"monitor",
"leave",
"(",
")",
";",
"}",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"void",
"parsed",
"(",
"byte",
"array",
"bytes",
",",
"int",
"offset",
",",
"int",
"len",
",",
"string",
"human",
")",
"{",
"offset",
"=",
"bytes",
"underlying",
"offset",
"(",
"offset",
",",
"get",
"bytes",
"(",
")",
")",
";",
"boolean",
"raw",
"bytes",
"=",
"get",
"raw",
"bytes",
"(",
")",
";",
"if",
"(",
"offset",
"<",
"at",
")",
"{",
"println",
"(",
"\"",
"<",
"dump",
"skipped",
"backwards",
"to",
"\"",
"+",
"hex",
"u",
"4",
"(",
"offset",
")",
"+",
"\"",
">",
"\"",
")",
";",
"at",
"=",
"offset",
";",
"}",
"else",
"if",
"(",
"offset",
">",
"at",
")",
"{",
"string",
"hex",
"=",
"raw",
"bytes",
"?",
"hex",
"dump",
"(",
"at",
",",
"offset",
"-",
"at",
")",
":",
"\"",
"\"",
";",
"print",
"(",
"two",
"columns",
"(",
"hex",
",",
"\"",
"<",
"skipped",
"to",
"\"",
"+",
"hex",
"u",
"4",
"(",
"offset",
")",
"+",
"\"",
">",
"\"",
")",
")",
";",
"at",
"=",
"offset",
";",
"}",
"string",
"hex",
"=",
"raw",
"bytes",
"?",
"hex",
"dump",
"(",
"offset",
",",
"len",
")",
":",
"\"",
"\"",
";",
"print",
"(",
"two",
"columns",
"(",
"hex",
",",
"human",
")",
")",
";",
"at",
"+",
"=",
"len",
";",
"}"
] |
[
"the",
"action",
"for",
"which",
"we",
"are",
"storing",
"the",
"stat"
] |
[
"public",
"final",
"action",
"get",
"action",
"(",
")",
"{",
"return",
"action",
";",
"}"
] |
[
"get",
"the",
"container",
"name",
"from",
"the",
"hostname",
"-",
"the",
"single",
"element",
"before",
"the",
"first",
"\"",
"\"",
"in",
"the",
"hostname"
] |
[
"public",
"static",
"string",
"extract",
"container",
"name",
"(",
"string",
"hostname",
")",
"throws",
"swift",
"configuration",
"exception",
"{",
"int",
"i",
"=",
"hostname",
"index",
"of",
"(",
"\"",
"\"",
")",
";",
"if",
"(",
"i",
"<",
"=",
"0",
")",
"{",
"throw",
"invalid",
"name",
"(",
"hostname",
")",
";",
"}",
"return",
"hostname",
"substring",
"(",
"0",
",",
"i",
")",
";",
"}"
] |
[
"get",
"double",
"value"
] |
[
"public",
"double",
"get",
"double",
"(",
"int",
"index",
",",
"double",
"def",
")",
"{",
"object",
"tmp",
"=",
"m",
"array",
"get",
"(",
"index",
")",
";",
"return",
"tmp",
"instanceof",
"number",
"?",
"(",
"(",
"number",
")",
"tmp",
")",
"double",
"value",
"(",
")",
":",
"def",
";",
"}"
] |
[
"wraps",
"the",
"filter",
"in",
"filter",
"impl"
] |
[
"static",
"filter",
"impl",
"create",
"(",
"final",
"string",
"path",
",",
"final",
"filter",
"filter",
")",
"{",
"return",
"create",
"(",
"path",
",",
"default",
"accept",
"type",
",",
"filter",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"skips",
"over",
"data",
"to",
"reach",
"the",
"next",
"tag",
"header"
] |
[
"private",
"void",
"skip",
"to",
"tag",
"header",
"(",
"extractor",
"input",
"input",
")",
"throws",
"i",
"o",
"exception",
"{",
"input",
"skip",
"fully",
"(",
"bytes",
"to",
"next",
"tag",
"header",
")",
";",
"bytes",
"to",
"next",
"tag",
"header",
"=",
"0",
";",
"state",
"=",
"state",
"reading",
"tag",
"header",
";",
"}"
] |
[
"executes",
"the",
"query",
"and",
"returns",
"the",
"unique",
"result",
"or",
"null"
] |
[
"public",
"t",
"unique",
"(",
")",
"{",
"check",
"thread",
"(",
")",
";",
"cursor",
"cursor",
"=",
"dao",
"get",
"database",
"(",
")",
"raw",
"query",
"(",
"sql",
",",
"parameters",
")",
";",
"return",
"dao",
"access",
"load",
"unique",
"and",
"close",
"cursor",
"(",
"cursor",
")",
";",
"}"
] |
[
"validates",
"the",
"implementation",
"of",
"input",
"stream",
"mark",
"supported"
] |
[
"public",
"void",
"test",
"0301",
"mark",
"supported",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"assume",
"huge",
"file",
"exists",
"(",
")",
";",
"try",
"(",
"f",
"s",
"data",
"input",
"stream",
"input",
"stream",
"=",
"fs",
"open",
"(",
"test",
"file",
"path",
")",
")",
"{",
"assert",
"true",
"(",
"\"",
"mark",
"is",
"not",
"supported",
"\"",
",",
"input",
"stream",
"mark",
"supported",
"(",
")",
")",
";",
"}",
"}"
] |
[
"used",
"only",
"for",
"test"
] |
[
"queue",
"get",
"root",
"(",
")",
"{",
"return",
"root",
";",
"}"
] |
[
"the",
"place",
"in",
"the",
"code",
"where",
"the",
"invocation",
"happened"
] |
[
"location",
"get",
"location",
"(",
")",
";"
] |
[
"the",
"maximum",
"length",
"of",
"regex",
"string",
"allowed",
"in",
"a",
"regexp",
"query"
] |
[
"public",
"int",
"get",
"max",
"regex",
"length",
"(",
")",
"{",
"return",
"max",
"regex",
"length",
";",
"}"
] |
[
"please",
"run",
"this",
"test",
"in",
"run",
"mode"
] |
[
"public",
"void",
"test",
"set",
"exception",
"with",
"empty",
"stack",
"trace",
"exception",
"(",
")",
"{",
"throwable",
"throwable",
"=",
"build",
"empty",
"stack",
"trace",
"exception",
"(",
")",
";",
"if",
"(",
"throwable",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"app",
"response",
"app",
"response",
"=",
"new",
"app",
"response",
"(",
")",
";",
"app",
"response",
"set",
"exception",
"(",
"throwable",
")",
";",
"stack",
"trace",
"element",
"[",
"]",
"stack",
"trace",
"=",
"app",
"response",
"get",
"exception",
"(",
")",
"get",
"stack",
"trace",
"(",
")",
";",
"assertions",
"assert",
"not",
"null",
"(",
"stack",
"trace",
")",
";",
"assertions",
"assert",
"equals",
"(",
"0",
",",
"stack",
"trace",
"length",
")",
";",
"}"
] |
[
"converts",
"a",
"windows",
"buffer",
"to",
"a",
"java",
"string"
] |
[
"static",
"string",
"convert",
"buffer",
"to",
"string",
"(",
"byte",
"[",
"]",
"buf",
")",
"{",
"return",
"new",
"string",
"(",
"buf",
",",
"0",
",",
"buf",
"length",
"-",
"2",
",",
"standard",
"charsets",
"utf",
"16le",
")",
";",
"}"
] |
[
"creates",
"a",
"logging",
"version",
"of",
"a",
"connection"
] |
[
"public",
"static",
"connection",
"new",
"instance",
"(",
"connection",
"conn",
",",
"log",
"statement",
"log",
",",
"int",
"query",
"stack",
")",
"{",
"invocation",
"handler",
"handler",
"=",
"new",
"connection",
"logger",
"(",
"conn",
",",
"statement",
"log",
",",
"query",
"stack",
")",
";",
"class",
"loader",
"cl",
"=",
"connection",
"class",
"get",
"class",
"loader",
"(",
")",
";",
"return",
"(",
"connection",
")",
"proxy",
"new",
"proxy",
"instance",
"(",
"cl",
",",
"new",
"class",
"[",
"]",
"{",
"connection",
"class",
"}",
",",
"handler",
")",
";",
"}"
] |
[
"file",
"system",
"group",
":",
":",
"=",
"#",
"scheme",
"(",
"scheme",
"#",
"counter",
"(",
"key",
"value",
")",
")"
] |
[
"public",
"synchronized",
"void",
"write",
"(",
"data",
"output",
"out",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"map",
"!",
"=",
"null",
")",
"{",
"writable",
"utils",
"write",
"v",
"int",
"(",
"out",
",",
"map",
"size",
"(",
")",
")",
";",
"/",
"/",
"#",
"scheme",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"object",
"[",
"]",
">",
"entry",
":",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"writable",
"utils",
"write",
"string",
"(",
"out",
",",
"entry",
"get",
"key",
"(",
")",
")",
";",
"/",
"/",
"scheme",
"/",
"/",
"#",
"counter",
"for",
"the",
"above",
"scheme",
"writable",
"utils",
"write",
"v",
"int",
"(",
"out",
",",
"num",
"set",
"counters",
"(",
"entry",
"get",
"value",
"(",
")",
")",
")",
";",
"for",
"(",
"object",
"counter",
":",
"entry",
"get",
"value",
"(",
")",
")",
"{",
"if",
"(",
"counter",
"=",
"=",
"null",
")",
"continue",
";",
"@",
"suppress",
"warnings",
"(",
"\"",
"unchecked",
"\"",
")",
"f",
"s",
"counter",
"c",
"=",
"(",
"f",
"s",
"counter",
")",
"(",
"(",
"counter",
")",
"counter",
")",
"get",
"underlying",
"counter",
"(",
")",
";",
"writable",
"utils",
"write",
"v",
"int",
"(",
"out",
",",
"c",
"key",
"ordinal",
"(",
")",
")",
";",
"/",
"/",
"key",
"writable",
"utils",
"write",
"v",
"long",
"(",
"out",
",",
"c",
"get",
"value",
"(",
")",
")",
";",
"/",
"/",
"value",
"}",
"}",
"}",
"else",
"{",
"writable",
"utils",
"write",
"v",
"int",
"(",
"out",
",",
"0",
")",
";",
"}",
"}"
] |
[
"get",
"a",
"local",
"file",
"under",
"a",
"directory",
"named",
"by",
"dirs",
"prop",
"with",
"the",
"given",
"path",
"if",
"dirs",
"prop",
"contains",
"multiple",
"directories",
",",
"then",
"one",
"is",
"chosen",
"based",
"on",
"path",
"'",
"s",
"hash",
"code",
"if",
"the",
"selected",
"directory",
"does",
"not",
"exist",
",",
"an",
"attempt",
"is",
"made",
"to",
"create",
"it"
] |
[
"public",
"path",
"get",
"local",
"path",
"(",
"string",
"dirs",
"prop",
",",
"string",
"path",
")",
"throws",
"i",
"o",
"exception",
"{",
"string",
"[",
"]",
"dirs",
"=",
"get",
"trimmed",
"strings",
"(",
"dirs",
"prop",
")",
";",
"int",
"hash",
"code",
"=",
"path",
"hash",
"code",
"(",
")",
";",
"file",
"system",
"fs",
"=",
"file",
"system",
"get",
"local",
"(",
"this",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"dirs",
"length",
";",
"i",
"+",
"+",
")",
"{",
"/",
"/",
"try",
"each",
"local",
"dir",
"int",
"index",
"=",
"(",
"hash",
"code",
"+",
"i",
"&",
"integer",
"max",
"value",
")",
"%",
"dirs",
"length",
";",
"path",
"file",
"=",
"new",
"path",
"(",
"dirs",
"[",
"index",
"]",
",",
"path",
")",
";",
"path",
"dir",
"=",
"file",
"get",
"parent",
"(",
")",
";",
"if",
"(",
"fs",
"mkdirs",
"(",
"dir",
")",
"|",
"|",
"fs",
"exists",
"(",
"dir",
")",
")",
"{",
"return",
"file",
";",
"}",
"}",
"log",
"warn",
"(",
"\"",
"could",
"not",
"make",
"\"",
"+",
"path",
"+",
"\"",
"in",
"local",
"directories",
"from",
"\"",
"+",
"dirs",
"prop",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"dirs",
"length",
";",
"i",
"+",
"+",
")",
"{",
"int",
"index",
"=",
"(",
"hash",
"code",
"+",
"i",
"&",
"integer",
"max",
"value",
")",
"%",
"dirs",
"length",
";",
"log",
"warn",
"(",
"dirs",
"prop",
"+",
"\"",
"[",
"\"",
"+",
"index",
"+",
"\"",
"]",
"=",
"\"",
"+",
"dirs",
"[",
"index",
"]",
")",
";",
"}",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"no",
"valid",
"local",
"directories",
"in",
"property",
":",
"\"",
"+",
"dirs",
"prop",
")",
";",
"}"
] |
[
"file",
"to",
"uri"
] |
[
"public",
"static",
"uri",
"file",
"2",
"uri",
"(",
"final",
"file",
"file",
")",
"{",
"if",
"(",
"!",
"utils",
"bridge",
"is",
"file",
"exists",
"(",
"file",
")",
")",
"return",
"null",
";",
"if",
"(",
"build",
"version",
"sdk",
"int",
">",
"=",
"build",
"version",
"codes",
"n",
")",
"{",
"string",
"authority",
"=",
"utils",
"get",
"app",
"(",
")",
"get",
"package",
"name",
"(",
")",
"+",
"\"",
"utilcode",
"provider",
"\"",
";",
"return",
"file",
"provider",
"get",
"uri",
"for",
"file",
"(",
"utils",
"get",
"app",
"(",
")",
",",
"authority",
",",
"file",
")",
";",
"}",
"else",
"{",
"return",
"uri",
"from",
"file",
"(",
"file",
")",
";",
"}",
"}"
] |
[
"return",
"the",
"{",
"@",
"link",
"org",
"springframework",
"core",
"io",
"resource",
"}",
"to",
"load",
"the",
"script",
"from"
] |
[
"public",
"final",
"resource",
"get",
"resource",
"(",
")",
"{",
"return",
"this",
"resource",
"get",
"resource",
"(",
")",
";",
"}"
] |
[
"writes",
"the",
"specified",
"string",
"to",
"the",
"file",
"using",
"the",
"specified",
"charset",
"parent",
"directories",
"will",
"be",
"created",
"if",
"necessary"
] |
[
"public",
"void",
"write",
"string",
"(",
"string",
"string",
",",
"boolean",
"append",
",",
"string",
"charset",
")",
"{",
"writer",
"writer",
"=",
"null",
";",
"try",
"{",
"writer",
"=",
"writer",
"(",
"append",
",",
"charset",
")",
";",
"writer",
"write",
"(",
"string",
")",
";",
"}",
"catch",
"(",
"exception",
"ex",
")",
"{",
"throw",
"new",
"gdx",
"runtime",
"exception",
"(",
"\"",
"error",
"writing",
"file",
":",
"\"",
"+",
"file",
"+",
"\"",
"(",
"\"",
"+",
"type",
"+",
"\"",
")",
"\"",
",",
"ex",
")",
";",
"}",
"finally",
"{",
"stream",
"utils",
"close",
"quietly",
"(",
"writer",
")",
";",
"}",
"}"
] |
[
"get",
"prefix",
"ns",
"integer"
] |
[
"public",
"integer",
"get",
"prefix",
"ns",
"integer",
"(",
")",
"{",
"return",
"prefix",
"ns",
"integer",
";",
"}"
] |
[
"retrieves",
"a",
"locatable",
"input",
"split",
"with",
"minimum",
"local",
"count",
"input",
"splits",
"which",
"have",
"already",
"been",
"assigned",
"(",
"i",
"e",
",",
"which",
"are",
"not",
"contained",
"in",
"the",
"provided",
"set",
")",
"are",
"filtered",
"out",
"the",
"returned",
"input",
"split",
"is",
"not",
"removed",
"from",
"the",
"provided",
"set"
] |
[
"split",
"with",
"info",
"get",
"next",
"unassigned",
"min",
"local",
"count",
"split",
"(",
"set",
"<",
"split",
"with",
"info",
">",
"unassigned",
"splits",
")",
"{",
"if",
"(",
"splits",
"size",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"null",
";",
"}",
"do",
"{",
"element",
"cycle",
"count",
"-",
"-",
";",
"/",
"/",
"take",
"first",
"split",
"of",
"the",
"list",
"split",
"with",
"info",
"split",
"=",
"splits",
"poll",
"first",
"(",
")",
";",
"if",
"(",
"unassigned",
"splits",
"contains",
"(",
"split",
")",
")",
"{",
"int",
"local",
"count",
"=",
"split",
"get",
"local",
"count",
"(",
")",
";",
"/",
"/",
"still",
"unassigned",
",",
"check",
"local",
"count",
"if",
"(",
"local",
"count",
">",
"min",
"local",
"count",
")",
"{",
"/",
"/",
"re",
"-",
"insert",
"at",
"end",
"of",
"the",
"list",
"and",
"continue",
"to",
"look",
"for",
"split",
"with",
"smaller",
"/",
"/",
"local",
"count",
"splits",
"offer",
"last",
"(",
"split",
")",
";",
"/",
"/",
"check",
"and",
"update",
"second",
"smallest",
"local",
"count",
"if",
"(",
"next",
"min",
"local",
"count",
"=",
"=",
"-",
"1",
"|",
"|",
"split",
"get",
"local",
"count",
"(",
")",
"<",
"next",
"min",
"local",
"count",
")",
"{",
"next",
"min",
"local",
"count",
"=",
"split",
"get",
"local",
"count",
"(",
")",
";",
"}",
"split",
"=",
"null",
";",
"}",
"}",
"else",
"{",
"/",
"/",
"split",
"was",
"already",
"assigned",
"split",
"=",
"null",
";",
"}",
"if",
"(",
"element",
"cycle",
"count",
"=",
"=",
"0",
")",
"{",
"/",
"/",
"one",
"full",
"cycle",
",",
"but",
"no",
"split",
"with",
"min",
"local",
"count",
"found",
"/",
"/",
"update",
"min",
"local",
"cnt",
"and",
"element",
"cycle",
"count",
"for",
"next",
"pass",
"over",
"the",
"splits",
"min",
"local",
"count",
"=",
"next",
"min",
"local",
"count",
";",
"next",
"min",
"local",
"count",
"=",
"-",
"1",
";",
"element",
"cycle",
"count",
"=",
"splits",
"size",
"(",
")",
";",
"}",
"if",
"(",
"split",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"found",
"a",
"split",
"to",
"assign",
"return",
"split",
";",
"}",
"}",
"while",
"(",
"element",
"cycle",
"count",
">",
"0",
")",
";",
"/",
"/",
"no",
"split",
"left",
"return",
"null",
";",
"}"
] |
[
"set",
"the",
"icon",
"and",
"the",
"description",
"on",
"the",
"tool",
"and",
"call",
"the",
"method",
"in",
"tool",
"services",
"to",
"save",
"the",
"tool"
] |
[
"private",
"void",
"save",
"tool",
"config",
"(",
")",
"{",
"if",
"(",
"icon",
"u",
"r",
"l",
"=",
"=",
"null",
")",
"{",
"string",
"icon",
"name",
"=",
"icon",
"field",
"get",
"text",
"(",
")",
";",
"if",
"(",
"icon",
"name",
"length",
"(",
")",
">",
"0",
")",
"{",
"icon",
"u",
"r",
"l",
"=",
"new",
"tool",
"icon",
"u",
"r",
"l",
"(",
"icon",
"name",
")",
";",
"}",
"}",
"if",
"(",
"icon",
"u",
"r",
"l",
"!",
"=",
"null",
")",
"{",
"tool",
"set",
"icon",
"u",
"r",
"l",
"(",
"icon",
"u",
"r",
"l",
")",
";",
"icon",
"map",
"put",
"(",
"icon",
"u",
"r",
"l",
"get",
"location",
"(",
")",
",",
"icon",
"u",
"r",
"l",
")",
";",
"}",
"tool",
"services",
"save",
"tool",
"(",
"tool",
")",
";",
"}"
] |
[
"write",
"the",
"given",
"temporary",
"output",
"stream",
"to",
"the",
"http",
"response"
] |
[
"protected",
"void",
"write",
"to",
"response",
"(",
"http",
"servlet",
"response",
"response",
",",
"byte",
"array",
"output",
"stream",
"baos",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"write",
"content",
"type",
"and",
"also",
"length",
"(",
"determined",
"via",
"byte",
"array",
")",
"response",
"set",
"content",
"type",
"(",
"get",
"content",
"type",
"(",
")",
")",
";",
"response",
"set",
"content",
"length",
"(",
"baos",
"size",
"(",
")",
")",
";",
"/",
"/",
"flush",
"byte",
"array",
"to",
"servlet",
"output",
"stream",
"servlet",
"output",
"stream",
"out",
"=",
"response",
"get",
"output",
"stream",
"(",
")",
";",
"baos",
"write",
"to",
"(",
"out",
")",
";",
"out",
"flush",
"(",
")",
";",
"}"
] |
[
"return",
"the",
"value",
"for",
"the",
"passed",
"pname"
] |
[
"public",
"final",
"native",
"float",
"get",
"parameterf",
"(",
"int",
"pname",
")",
"/",
"*",
"-",
"{",
"return",
"this",
"get",
"parameter",
"(",
"pname",
")",
";",
"}"
] |
[
"finds",
"the",
"column",
"position",
"for",
"the",
"given",
"pixel",
"x",
"coordinate",
"in",
"the",
"indicated",
"text",
"string"
] |
[
"protected",
"int",
"find",
"column",
"(",
"string",
"text",
"string",
",",
"int",
"x",
")",
"{",
"int",
"start",
"pos",
"=",
"0",
";",
"int",
"col",
";",
"for",
"(",
"col",
"=",
"0",
";",
"col",
"<",
"text",
"string",
"length",
"(",
")",
";",
"col",
"+",
"+",
")",
"{",
"start",
"pos",
"+",
"=",
"metrics",
"char",
"width",
"(",
"text",
"string",
"char",
"at",
"(",
"col",
")",
")",
";",
"if",
"(",
"x",
"<",
"start",
"pos",
")",
"{",
"break",
";",
"}",
"}",
"return",
"col",
";",
"}"
] |
[
"replace",
"the",
"default",
"{",
"@",
"link",
"test",
"context",
"}"
] |
[
"void",
"set",
"context",
"(",
"test",
"context",
"context",
")",
"{",
"this",
"context",
"=",
"context",
";",
"}"
] |
[
"post",
"fake",
"{",
"pet",
"id",
"}",
"upload",
"image",
"with",
"required",
"file",
":",
"uploads",
"an",
"image",
"(",
"required",
")"
] |
[
"default",
"response",
"entity",
"<",
"model",
"api",
"response",
">",
"upload",
"file",
"with",
"required",
"file",
"(",
"long",
"pet",
"id",
",",
"multipart",
"file",
"required",
"file",
",",
"string",
"additional",
"metadata",
")",
"{",
"get",
"request",
"(",
")",
"if",
"present",
"(",
"request",
"-",
">",
"{",
"for",
"(",
"media",
"type",
"media",
"type",
":",
"media",
"type",
"parse",
"media",
"types",
"(",
"request",
"get",
"header",
"(",
"\"",
"accept",
"\"",
")",
")",
")",
"{",
"if",
"(",
"media",
"type",
"is",
"compatible",
"with",
"(",
"media",
"type",
"value",
"of",
"(",
"\"",
"application",
"/",
"json",
"\"",
")",
")",
")",
"{",
"string",
"example",
"string",
"=",
"\"",
"{",
"\\",
"\"",
"code",
"\\",
"\"",
":",
"0",
",",
"\\",
"\"",
"type",
"\\",
"\"",
":",
"\\",
"\"",
"type",
"\\",
"\"",
",",
"\\",
"\"",
"message",
"\\",
"\"",
":",
"\\",
"\"",
"message",
"\\",
"\"",
"}",
"\"",
";",
"api",
"util",
"set",
"example",
"response",
"(",
"request",
",",
"\"",
"application",
"/",
"json",
"\"",
",",
"example",
"string",
")",
";",
"break",
";",
"}",
"}",
"}",
")",
";",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"http",
"status",
"not",
"implemented",
")",
";",
"}"
] |
[
"return",
"whether",
"there",
"is",
"a",
"previous",
"index",
";",
"if",
"there",
"is",
",",
"\"",
"current",
"previous",
"\"",
"has",
"the",
"value"
] |
[
"private",
"void",
"find",
"previous",
"(",
")",
"{",
"try",
"{",
"long",
"prev",
"index",
"=",
"pm",
"get",
"previous",
"property",
"index",
"(",
"current",
")",
";",
"if",
"(",
"has",
"boundaries",
"&",
"&",
"prev",
"index",
"<",
"start",
")",
"{",
"does",
"have",
"previous",
"=",
"false",
";",
"return",
";",
"}",
"current",
"=",
"prev",
"index",
";",
"does",
"have",
"previous",
"=",
"true",
";",
"does",
"have",
"next",
"=",
"false",
";",
"}",
"catch",
"(",
"no",
"such",
"index",
"exception",
"e",
")",
"{",
"return",
";",
"}",
"}"
] |
[
"return",
"existing",
"string",
"or",
"null",
"for",
"long",
"key",
"string",
"i",
"d"
] |
[
"string",
"record",
"lookup",
"string",
"(",
"long",
"string",
"i",
"d",
")",
"{",
"string",
"record",
"string",
"record",
"=",
"string",
"cache",
"get",
"(",
"string",
"i",
"d",
")",
";",
"if",
"(",
"string",
"record",
"=",
"=",
"null",
")",
"{",
"d",
"b",
"record",
"record",
";",
"try",
"{",
"record",
"=",
"table",
"get",
"record",
"(",
"string",
"i",
"d",
")",
";",
"if",
"(",
"record",
"!",
"=",
"null",
")",
"{",
"string",
"record",
"=",
"new",
"string",
"record",
"(",
"string",
"cache",
",",
"string",
"i",
"d",
",",
"record",
"get",
"string",
"(",
"string",
"value",
"col",
")",
")",
";",
"}",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"serious",
"delayed",
"database",
"access",
"error",
"\"",
",",
"e",
")",
";",
"}",
"}",
"return",
"string",
"record",
";",
"}"
] |
[
"gets",
"the",
"py",
"dev",
"jython",
"preference",
"page",
"id"
] |
[
"public",
"static",
"string",
"get",
"jython",
"preference",
"page",
"id",
"(",
")",
"{",
"return",
"\"",
"org",
"python",
"pydev",
"ui",
"pythonpathconf",
"interpreter",
"preferences",
"page",
"jython",
"\"",
";",
"}"
] |
[
"get",
"attribute",
"string"
] |
[
"public",
"string",
"get",
"attribute",
"string",
"(",
")",
"{",
"return",
"attribute",
"string",
";",
"}"
] |
[
"create",
"a",
"new",
"instance",
"of",
"resource",
"type",
"info",
"from",
"name",
",",
"units"
] |
[
"public",
"static",
"resource",
"type",
"info",
"new",
"instance",
"(",
"string",
"name",
",",
"string",
"units",
")",
"{",
"return",
"resource",
"type",
"info",
"new",
"instance",
"(",
"name",
",",
"units",
",",
"resource",
"types",
"countable",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"the",
"specified",
"oas",
"model",
"has",
"at",
"least",
"one",
"operation",
"with",
"the",
"http",
"basic",
"security",
"scheme",
"the",
"http",
"signature",
"scheme",
"is",
"defined",
"in",
"https",
":",
"datatracker",
"ietf",
"orgdocdraft",
"-",
"cavage",
"-",
"http",
"-",
"signatures"
] |
[
"public",
"static",
"boolean",
"has",
"http",
"signature",
"methods",
"(",
"list",
"<",
"codegen",
"security",
">",
"auth",
"methods",
")",
"{",
"if",
"(",
"auth",
"methods",
"!",
"=",
"null",
"&",
"&",
"!",
"auth",
"methods",
"is",
"empty",
"(",
")",
")",
"{",
"for",
"(",
"codegen",
"security",
"cs",
":",
"auth",
"methods",
")",
"{",
"if",
"(",
"boolean",
"true",
"equals",
"(",
"cs",
"is",
"http",
"signature",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"sets",
"index",
"settings",
"that",
"should",
"be",
"added",
"or",
"replaced",
"during",
"restore"
] |
[
"public",
"restore",
"snapshot",
"request",
"builder",
"set",
"index",
"settings",
"(",
"settings",
"settings",
")",
"{",
"request",
"index",
"settings",
"(",
"settings",
")",
";",
"return",
"this",
";",
"}"
] |
[
"if",
"channel",
"is",
"null",
",",
"gets",
"a",
"channel",
"from",
"the",
"channel",
"pool",
",",
"otherwise",
",",
"returns",
"the",
"cached",
"channel"
] |
[
"synchronized",
"channel",
"get",
"(",
")",
"{",
"if",
"(",
"channel",
"=",
"=",
"null",
")",
"{",
"channel",
"=",
"channel",
"pool",
"get",
"object",
"(",
")",
";",
"}",
"return",
"channel",
";",
"}"
] |
[
"creates",
"a",
"new",
"global",
"scope",
"analysis",
"provider",
"without",
"index",
"specific",
"settings",
"not",
"settings",
"for",
"the",
"provider",
"itself",
"this",
"can",
"be",
"used",
"to",
"get",
"a",
"default",
"instance",
"of",
"an",
"analysis",
"factory",
"without",
"binding",
"to",
"an",
"index"
] |
[
"default",
"t",
"get",
"(",
"environment",
"environment",
",",
"string",
"name",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"requires",
"analysis",
"settings",
"(",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"analysis",
"settings",
"required",
"-",
"can",
"'",
"t",
"instantiate",
"analysis",
"factory",
"\"",
")",
";",
"}",
"return",
"get",
"(",
"na",
"index",
"settings",
",",
"environment",
",",
"name",
",",
"na",
"index",
"settings",
"get",
"settings",
"(",
")",
")",
";",
"}"
] |
[
"processes",
"the",
"next",
"bytes",
"in",
"a",
"handshake",
"a",
"general",
"security",
"exception",
"is",
"thrown",
"if",
"the",
"handshaker",
"service",
"is",
"interrupted",
"or",
"fails",
"note",
"that",
"is",
"finished",
"(",
")",
"must",
"be",
"false",
"before",
"this",
"function",
"is",
"called"
] |
[
"public",
"byte",
"buffer",
"next",
"(",
"byte",
"buffer",
"in",
"bytes",
")",
"throws",
"general",
"security",
"exception",
"{",
"preconditions",
"check",
"state",
"(",
"!",
"is",
"finished",
"(",
")",
",",
"\"",
"handshake",
"has",
"already",
"finished",
"\"",
")",
";",
"handshaker",
"req",
"builder",
"req",
"=",
"handshaker",
"req",
"new",
"builder",
"(",
")",
"set",
"next",
"(",
"next",
"handshake",
"message",
"req",
"new",
"builder",
"(",
")",
"set",
"in",
"bytes",
"(",
"byte",
"string",
"copy",
"from",
"(",
"in",
"bytes",
"duplicate",
"(",
")",
")",
")",
"build",
"(",
")",
")",
";",
"handshaker",
"resp",
"resp",
";",
"try",
"{",
"resp",
"=",
"handshaker",
"stub",
"send",
"(",
"req",
"build",
"(",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"|",
"interrupted",
"exception",
"e",
")",
"{",
"throw",
"new",
"general",
"security",
"exception",
"(",
"e",
")",
";",
"}",
"handle",
"response",
"(",
"resp",
")",
";",
"(",
"(",
"buffer",
")",
"in",
"bytes",
")",
"position",
"(",
"in",
"bytes",
"position",
"(",
")",
"+",
"resp",
"get",
"bytes",
"consumed",
"(",
")",
")",
";",
"return",
"resp",
"get",
"out",
"frames",
"(",
")",
"as",
"read",
"only",
"byte",
"buffer",
"(",
")",
";",
"}"
] |
[
"resolve",
"attribute",
"values",
"as",
"list"
] |
[
"list",
"<",
"object",
">",
"resolve",
"attribute",
"values",
"(",
"list",
"<",
"object",
">",
"attribute",
"values",
",",
"string",
"scope",
",",
"registered",
"service",
"registered",
"service",
")",
";"
] |
[
"creates",
"a",
"new",
"{",
"@",
"link",
"readable",
"buffer",
"}",
"that",
"is",
"backed",
"by",
"the",
"given",
"{",
"@",
"link",
"byte",
"buffer",
"}",
"calls",
"to",
"read",
"from",
"the",
"buffer",
"will",
"increment",
"the",
"position",
"of",
"the",
"{",
"@",
"link",
"byte",
"buffer",
"}"
] |
[
"public",
"static",
"readable",
"buffer",
"wrap",
"(",
"byte",
"buffer",
"bytes",
")",
"{",
"return",
"new",
"byte",
"readable",
"buffer",
"wrapper",
"(",
"bytes",
")",
";",
"}"
] |
[
"publish",
"the",
"{",
"@",
"link",
"application",
"event",
"}",
"created",
"by",
"the",
"given",
"{",
"@",
"code",
"event",
"factory",
"}",
"to",
"the",
"{",
"@",
"linkplain",
"application",
"context",
"application",
"context",
"}",
"for",
"this",
"test",
"context",
"the",
"{",
"@",
"code",
"application",
"event",
"}",
"will",
"only",
"be",
"published",
"if",
"the",
"application",
"context",
"for",
"this",
"test",
"context",
"{",
"@",
"linkplain",
"#",
"has",
"application",
"context",
"(",
")",
"is",
"available",
"}"
] |
[
"default",
"void",
"publish",
"event",
"(",
"function",
"<",
"test",
"context",
",",
"?",
"extends",
"application",
"event",
">",
"event",
"factory",
")",
"{",
"if",
"(",
"has",
"application",
"context",
"(",
")",
")",
"{",
"get",
"application",
"context",
"(",
")",
"publish",
"event",
"(",
"event",
"factory",
"apply",
"(",
"this",
")",
")",
";",
"}",
"}"
] |
[
"the",
"total",
"number",
"of",
"fields",
"sent",
"to",
"the",
"job",
"including",
"fields",
"that",
"aren",
"'",
"t",
"analysed"
] |
[
"public",
"long",
"get",
"input",
"field",
"count",
"(",
")",
"{",
"return",
"input",
"field",
"count",
";",
"}"
] |
[
"method",
"that",
"provides",
"execution",
"of",
"the",
"insert",
"using",
"the",
"passed",
"-",
"in",
"{",
"@",
"link",
"sql",
"parameter",
"source",
"}",
"and",
"returning",
"a",
"generated",
"key"
] |
[
"protected",
"number",
"do",
"execute",
"and",
"return",
"key",
"(",
"sql",
"parameter",
"source",
"parameter",
"source",
")",
"{",
"check",
"compiled",
"(",
")",
";",
"list",
"<",
"object",
">",
"values",
"=",
"match",
"in",
"parameter",
"values",
"with",
"insert",
"columns",
"(",
"parameter",
"source",
")",
";",
"return",
"execute",
"insert",
"and",
"return",
"key",
"internal",
"(",
"values",
")",
";",
"}"
] |
[
"initialize",
"the",
"cos",
"native",
"file",
"system",
"store",
"object",
",",
"including",
"its",
"cos",
"client",
"and",
"default",
"cos",
"bucket"
] |
[
"public",
"void",
"initialize",
"(",
"uri",
"uri",
",",
"configuration",
"conf",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"init",
"c",
"o",
"s",
"client",
"(",
"uri",
",",
"conf",
")",
";",
"this",
"bucket",
"name",
"=",
"uri",
"get",
"host",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"handle",
"exception",
"(",
"e",
",",
"\"",
"\"",
")",
";",
"}",
"}"
] |
[
"set",
"all",
"prefixed",
"properties",
"on",
"{",
"@",
"link",
"client",
"configuration",
"}"
] |
[
"public",
"static",
"void",
"set",
"aws",
"client",
"config",
"properties",
"(",
"client",
"configuration",
"config",
",",
"properties",
"config",
"props",
")",
"{",
"map",
"<",
"string",
",",
"object",
">",
"aws",
"config",
"properties",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"object",
",",
"object",
">",
"entry",
":",
"config",
"props",
"entry",
"set",
"(",
")",
")",
"{",
"string",
"key",
"=",
"(",
"string",
")",
"entry",
"get",
"key",
"(",
")",
";",
"if",
"(",
"key",
"starts",
"with",
"(",
"aws",
"client",
"config",
"prefix",
")",
")",
"{",
"aws",
"config",
"properties",
"put",
"(",
"key",
"substring",
"(",
"aws",
"client",
"config",
"prefix",
"length",
"(",
")",
")",
",",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}",
"}",
"/",
"/",
"jackson",
"does",
"not",
"like",
"the",
"following",
"properties",
"string",
"[",
"]",
"ignorable",
"properties",
"=",
"{",
"\"",
"secure",
"random",
"\"",
"}",
";",
"bean",
"deserializer",
"modifier",
"modifier",
"=",
"new",
"bean",
"deserializer",
"modifier",
"for",
"ignorables",
"(",
"client",
"configuration",
"class",
",",
"ignorable",
"properties",
")",
";",
"deserializer",
"factory",
"factory",
"=",
"bean",
"deserializer",
"factory",
"instance",
"with",
"deserializer",
"modifier",
"(",
"modifier",
")",
";",
"object",
"mapper",
"mapper",
"=",
"new",
"object",
"mapper",
"(",
"null",
",",
"null",
",",
"new",
"default",
"deserialization",
"context",
"impl",
"(",
"factory",
")",
")",
";",
"json",
"node",
"prop",
"tree",
"=",
"mapper",
"convert",
"value",
"(",
"aws",
"config",
"properties",
",",
"json",
"node",
"class",
")",
";",
"try",
"{",
"mapper",
"reader",
"for",
"updating",
"(",
"config",
")",
"read",
"value",
"(",
"prop",
"tree",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ex",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"ex",
")",
";",
"}",
"}"
] |
[
"count",
"the",
"number",
"of",
"bits",
"required",
"to",
"encode",
"the",
"given",
"value"
] |
[
"static",
"int",
"find",
"closest",
"num",
"bits",
"(",
"long",
"value",
")",
"{",
"int",
"count",
"=",
"0",
";",
"while",
"(",
"value",
"!",
"=",
"0",
")",
"{",
"count",
"+",
"+",
";",
"value",
"=",
"value",
">",
">",
">",
"1",
";",
"}",
"return",
"get",
"closest",
"fixed",
"bits",
"(",
"count",
")",
";",
"}"
] |
[
"assert",
"that",
"a",
"set",
"of",
"properties",
"files",
"all",
"contain",
"the",
"same",
"data"
] |
[
"public",
"static",
"void",
"assert",
"properties",
"files",
"same",
"(",
"file",
"[",
"]",
"prop",
"files",
",",
"set",
"<",
"string",
">",
"ignored",
"properties",
")",
"throws",
"i",
"o",
"exception",
"{",
"set",
"<",
"map",
"entry",
"<",
"object",
",",
"object",
">",
">",
"prev",
"props",
"=",
"null",
";",
"for",
"(",
"file",
"f",
":",
"prop",
"files",
")",
"{",
"properties",
"props",
";",
"file",
"input",
"stream",
"is",
"=",
"new",
"file",
"input",
"stream",
"(",
"f",
")",
";",
"try",
"{",
"props",
"=",
"new",
"properties",
"(",
")",
";",
"props",
"load",
"(",
"is",
")",
";",
"}",
"finally",
"{",
"i",
"o",
"utils",
"close",
"stream",
"(",
"is",
")",
";",
"}",
"if",
"(",
"prev",
"props",
"=",
"=",
"null",
")",
"{",
"prev",
"props",
"=",
"props",
"entry",
"set",
"(",
")",
";",
"}",
"else",
"{",
"set",
"<",
"entry",
"<",
"object",
",",
"object",
">",
">",
"diff",
"=",
"sets",
"symmetric",
"difference",
"(",
"prev",
"props",
",",
"props",
"entry",
"set",
"(",
")",
")",
";",
"iterator",
"<",
"entry",
"<",
"object",
",",
"object",
">",
">",
"it",
"=",
"diff",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
"has",
"next",
"(",
")",
")",
"{",
"entry",
"<",
"object",
",",
"object",
">",
"entry",
"=",
"it",
"next",
"(",
")",
";",
"if",
"(",
"ignored",
"properties",
"!",
"=",
"null",
"&",
"&",
"ignored",
"properties",
"contains",
"(",
"entry",
"get",
"key",
"(",
")",
")",
")",
"{",
"continue",
";",
"}",
"fail",
"(",
"\"",
"properties",
"file",
"\"",
"+",
"f",
"+",
"\"",
"differs",
"from",
"\"",
"+",
"prop",
"files",
"[",
"0",
"]",
")",
";",
"}",
"}",
"}",
"}"
] |
[
"returns",
"the",
"watermark",
"for",
"the",
"current",
"row",
"or",
"null",
"if",
"no",
"watermark",
"should",
"be",
"generated"
] |
[
"public",
"abstract",
"watermark",
"get",
"watermark",
"(",
"row",
"row",
",",
"long",
"timestamp",
")",
";"
] |
[
"model",
"tests",
"for",
"big",
"cat"
] |
[
"public",
"void",
"test",
"big",
"cat",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"big",
"cat",
"}"
] |
[
"get",
"name",
"of",
"the",
"timer",
"that",
"tracks",
"incoming",
"http",
"connections"
] |
[
"protected",
"string",
"http",
"connections",
"(",
")",
"{",
"return",
"name",
"(",
"http",
"connection",
"factory",
"class",
",",
"bind",
"host",
",",
"integer",
"to",
"string",
"(",
"port",
")",
",",
"\"",
"connections",
"\"",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.