docstring_tokens
list | code_tokens
list |
---|---|
[
"generate",
"an",
"address",
"value",
"based",
"upon",
"bytes",
"stored",
"at",
"the",
"specified",
"buf",
"location"
]
| [
"public",
"static",
"address",
"get",
"address",
"value",
"(",
"mem",
"buffer",
"buf",
",",
"int",
"size",
",",
"int",
"shift",
",",
"address",
"space",
"target",
"space",
")",
"{",
"if",
"(",
"size",
"<",
"=",
"0",
"|",
"|",
"size",
">",
"8",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"buf",
"get",
"address",
"(",
")",
"instanceof",
"segmented",
"address",
")",
"{",
"/",
"/",
"not",
"supported",
"for",
"segmented",
"addresses",
"return",
"null",
";",
"}",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"size",
"]",
";",
"if",
"(",
"buf",
"get",
"bytes",
"(",
"bytes",
",",
"0",
")",
"!",
"=",
"size",
")",
"{",
"return",
"null",
";",
"}",
"long",
"val",
"=",
"data",
"converter",
"get",
"instance",
"(",
"buf",
"is",
"big",
"endian",
"(",
")",
")",
"get",
"value",
"(",
"bytes",
",",
"size",
")",
";",
"val",
"=",
"val",
"<",
"<",
"shift",
";",
"try",
"{",
"return",
"target",
"space",
"get",
"address",
"(",
"val",
",",
"true",
")",
";",
"}",
"catch",
"(",
"address",
"out",
"of",
"bounds",
"exception",
"e",
")",
"{",
"/",
"/",
"offset",
"too",
"large",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"iae",
")",
"{",
"/",
"/",
"do",
"nothing",
"tried",
"to",
"create",
"an",
"address",
"that",
"was",
"too",
"large",
"/",
"/",
"for",
"the",
"address",
"space",
"/",
"/",
"/",
"/",
"for",
"example",
",",
"trying",
"to",
"create",
"a",
"56",
"bit",
"pointer",
"in",
"a",
"/",
"/",
"32",
"bit",
"address",
"space",
"}",
"return",
"null",
";",
"}"
]
|
[
"sets",
"the",
"name",
"of",
"the",
"index",
"template"
]
| [
"public",
"request",
"name",
"(",
"string",
"name",
")",
"{",
"this",
"name",
"=",
"name",
";",
"return",
"this",
";",
"}"
]
|
[
"test",
"using",
"the",
"gzip",
"codec",
"with",
"two",
"input",
"files"
]
| [
"public",
"void",
"test",
"gzip",
"with",
"two",
"inputs",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"compression",
"codec",
"gzip",
"=",
"new",
"gzip",
"codec",
"(",
")",
";",
"local",
"fs",
"delete",
"(",
"work",
"dir",
",",
"true",
")",
";",
"fixed",
"length",
"input",
"format",
"format",
"=",
"new",
"fixed",
"length",
"input",
"format",
"(",
")",
";",
"job",
"conf",
"job",
"=",
"new",
"job",
"conf",
"(",
"default",
"conf",
")",
";",
"format",
"set",
"record",
"length",
"(",
"job",
",",
"5",
")",
";",
"file",
"input",
"format",
"set",
"input",
"paths",
"(",
"job",
",",
"work",
"dir",
")",
";",
"reflection",
"utils",
"set",
"conf",
"(",
"gzip",
",",
"job",
")",
";",
"format",
"configure",
"(",
"job",
")",
";",
"/",
"/",
"create",
"files",
"with",
"fixed",
"length",
"records",
"with",
"5",
"byte",
"long",
"records",
"write",
"file",
"(",
"local",
"fs",
",",
"new",
"path",
"(",
"work",
"dir",
",",
"\"",
"part",
"1",
"txt",
"gz",
"\"",
")",
",",
"gzip",
",",
"\"",
"one",
"two",
"threefour",
"five",
"six",
"seveneightnine",
"ten",
"\"",
")",
";",
"write",
"file",
"(",
"local",
"fs",
",",
"new",
"path",
"(",
"work",
"dir",
",",
"\"",
"part",
"2",
"txt",
"gz",
"\"",
")",
",",
"gzip",
",",
"\"",
"ten",
"nine",
"eightsevensix",
"five",
"four",
"threetwo",
"one",
"\"",
")",
";",
"input",
"split",
"[",
"]",
"splits",
"=",
"format",
"get",
"splits",
"(",
"job",
",",
"100",
")",
";",
"assert",
"equals",
"(",
"\"",
"compressed",
"splits",
"=",
"=",
"2",
"\"",
",",
"2",
",",
"splits",
"length",
")",
";",
"file",
"split",
"tmp",
"=",
"(",
"file",
"split",
")",
"splits",
"[",
"0",
"]",
";",
"if",
"(",
"tmp",
"get",
"path",
"(",
")",
"get",
"name",
"(",
")",
"equals",
"(",
"\"",
"part",
"2",
"txt",
"gz",
"\"",
")",
")",
"{",
"splits",
"[",
"0",
"]",
"=",
"splits",
"[",
"1",
"]",
";",
"splits",
"[",
"1",
"]",
"=",
"tmp",
";",
"}",
"list",
"<",
"string",
">",
"results",
"=",
"read",
"split",
"(",
"format",
",",
"splits",
"[",
"0",
"]",
",",
"job",
")",
";",
"assert",
"equals",
"(",
"\"",
"splits",
"[",
"0",
"]",
"length",
"\"",
",",
"10",
",",
"results",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"splits",
"[",
"0",
"]",
"[",
"5",
"]",
"\"",
",",
"\"",
"six",
"\"",
",",
"results",
"get",
"(",
"5",
")",
")",
";",
"results",
"=",
"read",
"split",
"(",
"format",
",",
"splits",
"[",
"1",
"]",
",",
"job",
")",
";",
"assert",
"equals",
"(",
"\"",
"splits",
"[",
"1",
"]",
"length",
"\"",
",",
"10",
",",
"results",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"splits",
"[",
"1",
"]",
"[",
"0",
"]",
"\"",
",",
"\"",
"ten",
"\"",
",",
"results",
"get",
"(",
"0",
")",
")",
";",
"assert",
"equals",
"(",
"\"",
"splits",
"[",
"1",
"]",
"[",
"1",
"]",
"\"",
",",
"\"",
"nine",
"\"",
",",
"results",
"get",
"(",
"1",
")",
")",
";",
"}"
]
|
[
"<",
"code",
">",
"optional",
"int",
"3",
"2",
"blah",
"=",
"1",
";",
"<",
"code",
">"
]
| [
"public",
"builder",
"set",
"blah",
"(",
"int",
"value",
")",
"{",
"bit",
"field",
"0",
"|",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
";",
"blah",
"=",
"value",
";",
"on",
"changed",
"(",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"encode",
"\"",
"-",
"q",
"-",
"\""
]
| [
"void",
"encode",
"q",
"(",
")",
"{",
"/",
"/",
"current",
"pinyin",
"if",
"(",
"string",
"at",
"(",
"m",
"current",
",",
"3",
",",
"\"",
"qin",
"\"",
",",
"\"",
"\"",
")",
")",
"{",
"metaph",
"add",
"(",
"\"",
"x",
"\"",
")",
";",
"m",
"current",
"+",
"+",
";",
"return",
";",
"}",
"/",
"/",
"eat",
"redundant",
"'",
"q",
"'",
"if",
"(",
"char",
"at",
"(",
"m",
"current",
"+",
"1",
")",
"=",
"=",
"'",
"q",
"'",
")",
"{",
"m",
"current",
"+",
"=",
"2",
";",
"}",
"else",
"{",
"m",
"current",
"+",
"+",
";",
"}",
"metaph",
"add",
"(",
"\"",
"k",
"\"",
")",
";",
"}"
]
|
[
"model",
"tests",
"for",
"type",
"holder",
"example"
]
| [
"public",
"void",
"test",
"type",
"holder",
"example",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"type",
"holder",
"example",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"load",
"the",
"model",
"for",
"use",
"by",
"at",
"search",
"models",
"requested",
"by",
"search",
"are",
"always",
"cached"
]
| [
"public",
"void",
"get",
"model",
"for",
"search",
"(",
"string",
"model",
"id",
",",
"action",
"listener",
"<",
"local",
"model",
">",
"model",
"action",
"listener",
")",
"{",
"get",
"model",
"(",
"model",
"id",
",",
"consumer",
"search",
",",
"model",
"action",
"listener",
")",
";",
"}"
]
|
[
"returns",
"<",
"tt",
">",
"true",
"<",
"tt",
">",
"if",
"the",
"iterator",
"has",
"more",
"files"
]
| [
"public",
"boolean",
"has",
"next",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"while",
"(",
"cur",
"file",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"cur",
"itor",
"has",
"next",
"(",
")",
")",
"{",
"handle",
"file",
"stat",
"(",
"cur",
"itor",
"next",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"!",
"itors",
"empty",
"(",
")",
")",
"{",
"cur",
"itor",
"=",
"itors",
"pop",
"(",
")",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}"
]
|
[
"@",
"inherit",
"doc"
]
| [
"public",
"locals",
"array",
"merge",
"(",
"locals",
"array",
"other",
")",
"{",
"if",
"(",
"other",
"instanceof",
"one",
"locals",
"array",
")",
"{",
"return",
"merge",
"(",
"(",
"one",
"locals",
"array",
")",
"other",
")",
";",
"}",
"else",
"{",
"/",
"/",
"locals",
"array",
"set",
"/",
"/",
"locals",
"array",
"set",
"knows",
"how",
"to",
"merge",
"me",
"return",
"other",
"merge",
"(",
"this",
")",
";",
"}",
"}"
]
|
[
"returns",
"the",
"version",
"number",
"of",
"the",
"pdb"
]
| [
"public",
"int",
"get",
"version",
"number",
"(",
")",
"{",
"return",
"version",
"number",
";",
"}"
]
|
[
"set",
"the",
"default",
"'",
"deprecation",
"'",
"value",
"for",
"this",
"package"
]
| [
"private",
"void",
"set",
"default",
"deprecation",
"(",
"string",
"deprecation",
")",
"{",
"default",
"deprecation",
"=",
"deprecation",
";",
"}"
]
|
[
"filter",
"on",
"method",
"arguments",
"that",
"have",
"the",
"given",
"annotations"
]
| [
"public",
"final",
"arg",
"resolver",
"annot",
"present",
"(",
"class",
"<",
"?",
"extends",
"annotation",
">",
"annotation",
"types",
")",
"{",
"this",
"filters",
"add",
"(",
"param",
"-",
">",
"arrays",
"stream",
"(",
"annotation",
"types",
")",
"all",
"match",
"(",
"param",
":",
":",
"has",
"parameter",
"annotation",
")",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"installs",
"the",
"remote",
"logger",
"this",
"can",
"only",
"be",
"called",
"once",
",",
"and",
"the",
"caller",
"should",
"not",
"keep",
"the",
"reference",
"to",
"the",
"logger"
]
| [
"public",
"static",
"synchronized",
"void",
"install",
"remote",
"logger",
"(",
"future",
"<",
"logger",
">",
"logger",
")",
"{",
"preconditions",
"check",
"state",
"(",
"remote",
"logger",
"=",
"=",
"null",
")",
";",
"remote",
"logger",
"=",
"logger",
";",
"}"
]
|
[
"returns",
"linker",
"inputs",
"that",
"are",
"not",
"libraries"
]
| [
"public",
"set",
"<",
"linker",
"input",
">",
"get",
"object",
"files",
"(",
")",
"{",
"return",
"object",
"files",
";",
"}"
]
|
[
"returns",
"a",
"future",
"which",
"yields",
"list",
"of",
"delegation",
"tokens"
]
| [
"public",
"kafka",
"future",
"<",
"list",
"<",
"delegation",
"token",
">",
">",
"delegation",
"tokens",
"(",
")",
"{",
"return",
"delegation",
"tokens",
";",
"}"
]
|
[
"create",
"a",
"{",
"@",
"link",
"table",
"meta",
"data",
"provider",
"}",
"based",
"on",
"the",
"database",
"meta",
"-",
"data"
]
| [
"public",
"static",
"table",
"meta",
"data",
"provider",
"create",
"meta",
"data",
"provider",
"(",
"data",
"source",
"data",
"source",
",",
"table",
"meta",
"data",
"context",
"context",
")",
"{",
"try",
"{",
"return",
"jdbc",
"utils",
"extract",
"database",
"meta",
"data",
"(",
"data",
"source",
",",
"database",
"meta",
"data",
"-",
">",
"{",
"string",
"database",
"product",
"name",
"=",
"jdbc",
"utils",
"common",
"database",
"name",
"(",
"database",
"meta",
"data",
"get",
"database",
"product",
"name",
"(",
")",
")",
";",
"boolean",
"access",
"table",
"column",
"meta",
"data",
"=",
"context",
"is",
"access",
"table",
"column",
"meta",
"data",
"(",
")",
";",
"table",
"meta",
"data",
"provider",
"provider",
";",
"if",
"(",
"\"",
"oracle",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"oracle",
"table",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
",",
"context",
"is",
"override",
"include",
"synonyms",
"default",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"postgre",
"s",
"q",
"l",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"postgres",
"table",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"apache",
"derby",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"derby",
"table",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
")",
";",
"}",
"else",
"if",
"(",
"\"",
"hsql",
"database",
"engine",
"\"",
"equals",
"(",
"database",
"product",
"name",
")",
")",
"{",
"provider",
"=",
"new",
"hsql",
"table",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
")",
";",
"}",
"else",
"{",
"provider",
"=",
"new",
"generic",
"table",
"meta",
"data",
"provider",
"(",
"database",
"meta",
"data",
")",
";",
"}",
"if",
"(",
"logger",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"using",
"\"",
"+",
"provider",
"get",
"class",
"(",
")",
"get",
"simple",
"name",
"(",
")",
")",
";",
"}",
"provider",
"initialize",
"with",
"meta",
"data",
"(",
"database",
"meta",
"data",
")",
";",
"if",
"(",
"access",
"table",
"column",
"meta",
"data",
")",
"{",
"provider",
"initialize",
"with",
"table",
"column",
"meta",
"data",
"(",
"database",
"meta",
"data",
",",
"context",
"get",
"catalog",
"name",
"(",
")",
",",
"context",
"get",
"schema",
"name",
"(",
")",
",",
"context",
"get",
"table",
"name",
"(",
")",
")",
";",
"}",
"return",
"provider",
";",
"}",
")",
";",
"}",
"catch",
"(",
"meta",
"data",
"access",
"exception",
"ex",
")",
"{",
"throw",
"new",
"data",
"access",
"resource",
"failure",
"exception",
"(",
"\"",
"error",
"retrieving",
"database",
"meta",
"-",
"data",
"\"",
",",
"ex",
")",
";",
"}",
"}"
]
|
[
"adds",
"{",
"@",
"link",
"align",
"#",
"top",
"}",
"and",
"clears",
"{",
"@",
"link",
"align",
"#",
"bottom",
"}",
"for",
"the",
"alignment",
"of",
"the",
"logical",
"table",
"within",
"the",
"table",
"actor"
]
| [
"public",
"table",
"top",
"(",
")",
"{",
"align",
"|",
"=",
"align",
"top",
";",
"align",
"&",
"=",
"~",
"align",
"bottom",
";",
"return",
"this",
";",
"}"
]
|
[
"gets",
"the",
"garbage",
"collection",
"statistics",
"from",
"the",
"jvm"
]
| [
"public",
"static",
"string",
"get",
"garbage",
"collector",
"stats",
"as",
"string",
"(",
"list",
"<",
"garbage",
"collector",
"m",
"x",
"bean",
">",
"gc",
"m",
"x",
"beans",
")",
"{",
"string",
"builder",
"bld",
"=",
"new",
"string",
"builder",
"(",
"\"",
"garbage",
"collector",
"stats",
":",
"\"",
")",
";",
"for",
"(",
"garbage",
"collector",
"m",
"x",
"bean",
"bean",
":",
"gc",
"m",
"x",
"beans",
")",
"{",
"bld",
"append",
"(",
"'",
"[",
"'",
")",
"append",
"(",
"bean",
"get",
"name",
"(",
")",
")",
"append",
"(",
"\"",
",",
"gc",
"time",
"(",
"ms",
")",
":",
"\"",
")",
"append",
"(",
"bean",
"get",
"collection",
"time",
"(",
")",
")",
";",
"bld",
"append",
"(",
"\"",
",",
"gc",
"count",
":",
"\"",
")",
"append",
"(",
"bean",
"get",
"collection",
"count",
"(",
")",
")",
"append",
"(",
"'",
"]",
"'",
")",
";",
"bld",
"append",
"(",
"\"",
",",
"\"",
")",
";",
"}",
"if",
"(",
"!",
"gc",
"m",
"x",
"beans",
"is",
"empty",
"(",
")",
")",
"{",
"bld",
"set",
"length",
"(",
"bld",
"length",
"(",
")",
"-",
"2",
")",
";",
"}",
"return",
"bld",
"to",
"string",
"(",
")",
";",
"}"
]
|
[
"visits",
"any",
"type",
"of",
"instruction"
]
| [
"public",
"void",
"visit",
"any",
"instruction",
"(",
"clazz",
"clazz",
",",
"method",
"method",
",",
"code",
"attribute",
"code",
"attribute",
",",
"int",
"offset",
",",
"instruction",
"instruction",
")",
"{",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
"\"",
"method",
"must",
"be",
"overridden",
"in",
"[",
"\"",
"+",
"this",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
"+",
"\"",
"]",
"if",
"ever",
"called",
"\"",
")",
";",
"}"
]
|
[
"converts",
"from",
"nanos",
"to",
"millis",
"since",
"the",
"epoch"
]
| [
"long",
"to",
"epoch",
"(",
"long",
"time",
"nanos",
")",
";"
]
|
[
"the",
"provided",
"{",
"@",
"code",
"response",
"observer",
"}",
"will",
"extend",
"{",
"@",
"link",
"server",
"call",
"stream",
"observer",
"}"
]
| [
"void",
"invoke",
"(",
"req",
"t",
"request",
",",
"stream",
"observer",
"<",
"resp",
"t",
">",
"response",
"observer",
")",
";"
]
|
[
"another",
"regression",
"test",
"for",
"hdfs",
"-",
"3626",
"this",
"one",
"creates",
"files",
"using",
"a",
"path",
"instantiated",
"from",
"a",
"uri",
"object"
]
| [
"public",
"void",
"test",
"create",
"non",
"canonical",
"path",
"and",
"restart",
"from",
"uri",
"(",
")",
"throws",
"exception",
"{",
"do",
"create",
"test",
"(",
"creation",
"method",
"path",
"from",
"uri",
")",
";",
"}"
]
|
[
"register",
"classes",
"in",
"the",
"supplied",
"{",
"@",
"link",
"generic",
"application",
"context",
"context",
"}",
"from",
"the",
"classes",
"in",
"the",
"supplied",
"{",
"@",
"link",
"merged",
"context",
"configuration",
"}",
"each",
"class",
"must",
"represent",
"a",
"component",
"class",
"an",
"{",
"@",
"link",
"annotated",
"bean",
"definition",
"reader",
"}",
"is",
"used",
"to",
"register",
"the",
"appropriate",
"bean",
"definitions",
"note",
"that",
"this",
"method",
"does",
"not",
"call",
"{",
"@",
"link",
"#",
"create",
"bean",
"definition",
"reader",
"}",
"since",
"{",
"@",
"code",
"annotated",
"bean",
"definition",
"reader",
"}",
"is",
"not",
"an",
"instance",
"of",
"{",
"@",
"link",
"bean",
"definition",
"reader",
"}"
]
| [
"protected",
"void",
"load",
"bean",
"definitions",
"(",
"generic",
"application",
"context",
"context",
",",
"merged",
"context",
"configuration",
"merged",
"config",
")",
"{",
"class",
"<",
"?",
">",
"[",
"]",
"component",
"classes",
"=",
"merged",
"config",
"get",
"classes",
"(",
")",
";",
"if",
"(",
"logger",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"registering",
"component",
"classes",
":",
"\"",
"+",
"object",
"utils",
"null",
"safe",
"to",
"string",
"(",
"component",
"classes",
")",
")",
";",
"}",
"new",
"annotated",
"bean",
"definition",
"reader",
"(",
"context",
")",
"register",
"(",
"component",
"classes",
")",
";",
"}"
]
|
[
"tests",
"setting",
"the",
"rpc",
"port",
"to",
"a",
"different",
"as",
"the",
"web",
"port",
"that",
"an",
"exception",
"is",
"not",
"thrown"
]
| [
"public",
"void",
"test",
"that",
"different",
"r",
"p",
"cand",
"http",
"ports",
"are",
"o",
"k",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"configuration",
"conf",
"=",
"new",
"hdfs",
"configuration",
"(",
")",
";",
"file",
"name",
"dir",
"=",
"new",
"file",
"(",
"mini",
"d",
"f",
"s",
"cluster",
"get",
"base",
"directory",
"(",
")",
",",
"\"",
"name",
"\"",
")",
";",
"conf",
"set",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"namenode",
"name",
"dir",
"key",
",",
"name",
"dir",
"get",
"absolute",
"path",
"(",
")",
")",
";",
"random",
"rand",
"=",
"new",
"random",
"(",
")",
";",
"/",
"/",
"a",
"few",
"retries",
"in",
"case",
"the",
"ports",
"we",
"choose",
"are",
"in",
"use",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"5",
";",
"+",
"+",
"i",
")",
"{",
"final",
"int",
"port",
"1",
"=",
"30000",
"+",
"rand",
"next",
"int",
"(",
"10000",
")",
";",
"final",
"int",
"port",
"2",
"=",
"port",
"1",
"+",
"1",
"+",
"rand",
"next",
"int",
"(",
"10000",
")",
";",
"file",
"system",
"set",
"default",
"uri",
"(",
"conf",
",",
"\"",
"hdfs",
":",
"/",
"/",
"localhost",
":",
"\"",
"+",
"port",
"1",
")",
";",
"conf",
"set",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"namenode",
"http",
"address",
"key",
",",
"\"",
"127",
"0",
"0",
"1",
":",
"\"",
"+",
"port",
"2",
")",
";",
"d",
"f",
"s",
"test",
"util",
"format",
"name",
"node",
"(",
"conf",
")",
";",
"name",
"node",
"name",
"node",
"=",
"null",
";",
"try",
"{",
"name",
"node",
"=",
"new",
"name",
"node",
"(",
"conf",
")",
";",
"/",
"/",
"should",
"be",
"ok",
"!",
"break",
";",
"}",
"catch",
"(",
"bind",
"exception",
"be",
")",
"{",
"continue",
";",
"/",
"/",
"port",
"in",
"use",
"?",
"try",
"another",
"}",
"finally",
"{",
"if",
"(",
"name",
"node",
"!",
"=",
"null",
")",
"{",
"name",
"node",
"stop",
"(",
")",
";",
"}",
"}",
"}",
"}"
]
|
[
"return",
"whether",
"this",
"target",
"source",
"creator",
"is",
"prototype",
"-",
"based",
"the",
"scope",
"of",
"the",
"target",
"bean",
"definition",
"will",
"be",
"set",
"accordingly",
"default",
"is",
"\"",
"true",
"\""
]
| [
"protected",
"boolean",
"is",
"prototype",
"based",
"(",
")",
"{",
"return",
"true",
";",
"}"
]
|
[
"encode",
"\"",
"-",
"gl",
"-",
"\""
]
| [
"boolean",
"encode",
"gl",
"(",
")",
"{",
"/",
"/",
"'",
"tagliaro",
"'",
",",
"'",
"puglia",
"'",
"but",
"add",
"k",
"in",
"alternative",
"/",
"/",
"since",
"americans",
"sometimes",
"do",
"this",
"if",
"(",
"string",
"at",
"(",
"(",
"m",
"current",
"+",
"1",
")",
",",
"3",
",",
"\"",
"lia",
"\"",
",",
"\"",
"lio",
"\"",
",",
"\"",
"lie",
"\"",
",",
"\"",
"\"",
")",
"&",
"&",
"is",
"vowel",
"(",
"m",
"current",
"-",
"1",
")",
")",
"{",
"metaph",
"add",
"exact",
"approx",
"(",
"\"",
"l",
"\"",
",",
"\"",
"gl",
"\"",
",",
"\"",
"l",
"\"",
",",
"\"",
"kl",
"\"",
")",
";",
"m",
"current",
"+",
"=",
"2",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
]
|
[
"draws",
"a",
"region",
"at",
"the",
"center"
]
| [
"void",
"draw",
"center",
"(",
"texture",
"region",
"region",
",",
"boolean",
"flipx",
",",
"boolean",
"flipy",
")",
"{",
"draw",
"(",
"region",
",",
"(",
"width",
"-",
"region",
"width",
")",
"/",
"2",
",",
"(",
"height",
"-",
"region",
"height",
")",
"/",
"2",
",",
"flipx",
",",
"flipy",
")",
";",
"}"
]
|
[
"get",
"just",
"symbol"
]
| [
"public",
"just",
"symbol",
"enum",
"get",
"just",
"symbol",
"(",
")",
"{",
"return",
"just",
"symbol",
";",
"}"
]
|
[
"set",
"the",
"progressable",
"object",
"in",
"order",
"to",
"report",
"progress"
]
| [
"public",
"void",
"set",
"progressable",
"(",
"progressable",
"progressable",
")",
"{",
"this",
"progressable",
"=",
"progressable",
";",
"}"
]
|
[
"the",
"method",
"used",
"by",
"administrators",
"to",
"ask",
"scm",
"to",
"run",
"cleaner",
"task",
"right",
"away"
]
| [
"public",
"run",
"shared",
"cache",
"cleaner",
"task",
"response",
"run",
"cleaner",
"task",
"(",
"run",
"shared",
"cache",
"cleaner",
"task",
"request",
"request",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"copies",
"the",
"contents",
"of",
"src",
"to",
"dst",
",",
"starting",
"from",
"src",
"[",
"src",
"offset",
"]",
",",
"copying",
"num",
"elements",
"elements",
"the",
"{",
"@",
"link",
"buffer",
"}",
"instance",
"'",
"s",
"{",
"@",
"link",
"buffer",
"#",
"position",
"(",
")",
"}",
"is",
"used",
"to",
"define",
"the",
"offset",
"into",
"the",
"buffer",
"itself",
"the",
"position",
"and",
"limit",
"will",
"stay",
"the",
"same",
"<",
"b",
">",
"the",
"buffer",
"must",
"be",
"a",
"direct",
"buffer",
"with",
"native",
"byte",
"order",
"no",
"error",
"checking",
"is",
"performed",
"<",
"b",
">"
]
| [
"public",
"static",
"void",
"copy",
"(",
"long",
"[",
"]",
"src",
",",
"int",
"src",
"offset",
",",
"int",
"num",
"elements",
",",
"buffer",
"dst",
")",
"{",
"long",
"buffer",
"buffer",
"=",
"null",
";",
"if",
"(",
"dst",
"instanceof",
"byte",
"buffer",
")",
"buffer",
"=",
"(",
"(",
"byte",
"buffer",
")",
"dst",
")",
"as",
"long",
"buffer",
"(",
")",
";",
"else",
"if",
"(",
"dst",
"instanceof",
"long",
"buffer",
")",
"buffer",
"=",
"(",
"long",
"buffer",
")",
"dst",
";",
"if",
"(",
"buffer",
"=",
"=",
"null",
")",
"throw",
"new",
"gdx",
"runtime",
"exception",
"(",
"\"",
"dst",
"must",
"be",
"a",
"byte",
"buffer",
"or",
"long",
"buffer",
"\"",
")",
";",
"int",
"old",
"position",
"=",
"buffer",
"position",
"(",
")",
";",
"buffer",
"put",
"(",
"src",
",",
"src",
"offset",
",",
"num",
"elements",
")",
";",
"buffer",
"position",
"(",
"old",
"position",
")",
";",
"}"
]
|
[
"returns",
"true",
"if",
"an",
"equate",
"record",
"exists",
"with",
"the",
"given",
"name"
]
| [
"abstract",
"boolean",
"has",
"record",
"(",
"string",
"name",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"gets",
"the",
"source",
"positions",
"list"
]
| [
"public",
"position",
"list",
"get",
"positions",
"(",
")",
"{",
"finish",
"processing",
"if",
"necessary",
"(",
")",
";",
"return",
"positions",
";",
"}"
]
|
[
"build",
"callback",
"view",
"via",
"redirect",
"uri",
"model",
"and",
"view"
]
| [
"protected",
"model",
"and",
"view",
"build",
"callback",
"view",
"via",
"redirect",
"uri",
"(",
"final",
"j",
"e",
"e",
"context",
"context",
",",
"final",
"string",
"client",
"id",
",",
"final",
"authentication",
"authentication",
",",
"final",
"o",
"auth",
"2",
"0",
"code",
"code",
")",
"{",
"val",
"attributes",
"=",
"authentication",
"get",
"attributes",
"(",
")",
";",
"val",
"state",
"=",
"attributes",
"get",
"(",
"o",
"auth",
"2",
"0",
"constants",
"state",
")",
"get",
"(",
"0",
")",
"to",
"string",
"(",
")",
";",
"val",
"nonce",
"=",
"attributes",
"get",
"(",
"o",
"auth",
"2",
"0",
"constants",
"nonce",
")",
"get",
"(",
"0",
")",
"to",
"string",
"(",
")",
";",
"val",
"redirect",
"uri",
"=",
"context",
"get",
"request",
"parameter",
"(",
"o",
"auth",
"2",
"0",
"constants",
"redirect",
"uri",
")",
"map",
"(",
"string",
":",
":",
"value",
"of",
")",
"or",
"else",
"(",
"string",
"utils",
"empty",
")",
";",
"logger",
"debug",
"(",
"\"",
"authorize",
"request",
"successful",
"for",
"client",
"[",
"{",
"}",
"]",
"with",
"redirect",
"uri",
"[",
"{",
"}",
"]",
"\"",
",",
"client",
"id",
",",
"redirect",
"uri",
")",
";",
"val",
"params",
"=",
"new",
"linked",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"params",
"put",
"(",
"o",
"auth",
"2",
"0",
"constants",
"code",
",",
"code",
"get",
"id",
"(",
")",
")",
";",
"if",
"(",
"string",
"utils",
"is",
"not",
"blank",
"(",
"state",
")",
")",
"{",
"params",
"put",
"(",
"o",
"auth",
"2",
"0",
"constants",
"state",
",",
"state",
")",
";",
"}",
"if",
"(",
"string",
"utils",
"is",
"not",
"blank",
"(",
"nonce",
")",
")",
"{",
"params",
"put",
"(",
"o",
"auth",
"2",
"0",
"constants",
"nonce",
",",
"nonce",
")",
";",
"}",
"logger",
"debug",
"(",
"\"",
"redirecting",
"to",
"url",
"[",
"{",
"}",
"]",
"with",
"params",
"[",
"{",
"}",
"]",
"for",
"client",
"id",
"[",
"{",
"}",
"]",
"\"",
",",
"redirect",
"uri",
",",
"params",
"key",
"set",
"(",
")",
",",
"client",
"id",
")",
";",
"return",
"build",
"response",
"model",
"and",
"view",
"(",
"context",
",",
"services",
"manager",
",",
"client",
"id",
",",
"redirect",
"uri",
",",
"params",
")",
";",
"}"
]
|
[
"check",
"the",
"config",
"info"
]
| [
"public",
"static",
"void",
"check",
"param",
"(",
"map",
"<",
"string",
",",
"object",
">",
"config",
"advance",
"info",
")",
"throws",
"nacos",
"exception",
"{",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"object",
">",
"config",
"advance",
"info",
"tmp",
":",
"config",
"advance",
"info",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"\"",
"config",
"tags",
"\"",
"equals",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"key",
"(",
")",
")",
")",
"{",
"if",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
"!",
"=",
"null",
")",
"{",
"string",
"[",
"]",
"tag",
"arr",
"=",
"(",
"(",
"string",
")",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
")",
"split",
"(",
"\"",
",",
"\"",
")",
";",
"if",
"(",
"tag",
"arr",
"length",
">",
"5",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"much",
"config",
"tags",
",",
"over",
"5",
"\"",
")",
";",
"}",
"for",
"(",
"string",
"tag",
":",
"tag",
"arr",
")",
"{",
"if",
"(",
"tag",
"length",
"(",
")",
">",
"64",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"long",
"tag",
",",
"over",
"64",
"\"",
")",
";",
"}",
"}",
"}",
"}",
"else",
"if",
"(",
"\"",
"desc",
"\"",
"equals",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"key",
"(",
")",
")",
")",
"{",
"if",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"(",
"(",
"string",
")",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
")",
"length",
"(",
")",
">",
"128",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"long",
"desc",
",",
"over",
"128",
"\"",
")",
";",
"}",
"}",
"else",
"if",
"(",
"\"",
"use",
"\"",
"equals",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"key",
"(",
")",
")",
")",
"{",
"if",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"(",
"(",
"string",
")",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
")",
"length",
"(",
")",
">",
"32",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"long",
"use",
",",
"over",
"32",
"\"",
")",
";",
"}",
"}",
"else",
"if",
"(",
"\"",
"effect",
"\"",
"equals",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"key",
"(",
")",
")",
")",
"{",
"if",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"(",
"(",
"string",
")",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
")",
"length",
"(",
")",
">",
"32",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"long",
"effect",
",",
"over",
"32",
"\"",
")",
";",
"}",
"}",
"else",
"if",
"(",
"\"",
"type",
"\"",
"equals",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"key",
"(",
")",
")",
")",
"{",
"if",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"(",
"(",
"string",
")",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
")",
"length",
"(",
")",
">",
"32",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"long",
"type",
",",
"over",
"32",
"\"",
")",
";",
"}",
"}",
"else",
"if",
"(",
"\"",
"schema",
"\"",
"equals",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"key",
"(",
")",
")",
")",
"{",
"if",
"(",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"(",
"(",
"string",
")",
"config",
"advance",
"info",
"tmp",
"get",
"value",
"(",
")",
")",
"length",
"(",
")",
">",
"32768",
")",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"too",
"long",
"schema",
",",
"over",
"32768",
"\"",
")",
";",
"}",
"}",
"else",
"{",
"throw",
"new",
"nacos",
"exception",
"(",
"nacos",
"exception",
"invalid",
"param",
",",
"\"",
"invalid",
"param",
"\"",
")",
";",
"}",
"}",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"immediately",
"if",
"the",
"handler",
"is",
"already",
"in",
"error",
"recovery",
"mode",
"otherwise",
",",
"it",
"calls",
"{",
"@",
"link",
"#",
"begin",
"error",
"condition",
"}",
"and",
"dispatches",
"the",
"reporting",
"task",
"based",
"on",
"the",
"runtime",
"type",
"of",
"{",
"@",
"code",
"e",
"}",
"according",
"to",
"the",
"following",
"table",
"{",
"@",
"link",
"no",
"viable",
"alt",
"exception",
"}",
":",
"dispatches",
"the",
"call",
"to",
"{",
"@",
"link",
"#",
"report",
"no",
"viable",
"alternative",
"}",
"{",
"@",
"link",
"input",
"mismatch",
"exception",
"}",
":",
"dispatches",
"the",
"call",
"to",
"{",
"@",
"link",
"#",
"report",
"input",
"mismatch",
"}",
"{",
"@",
"link",
"failed",
"predicate",
"exception",
"}",
":",
"dispatches",
"the",
"call",
"to",
"{",
"@",
"link",
"#",
"report",
"failed",
"predicate",
"}",
"all",
"other",
"types",
":",
"calls",
"{",
"@",
"link",
"parser",
"#",
"notify",
"error",
"listeners",
"}",
"to",
"report",
"the",
"exception"
]
| [
"public",
"void",
"report",
"error",
"(",
"parser",
"recognizer",
",",
"recognition",
"exception",
"e",
")",
"{",
"/",
"/",
"if",
"we",
"'",
"ve",
"already",
"reported",
"an",
"error",
"and",
"have",
"not",
"matched",
"a",
"token",
"/",
"/",
"yet",
"successfully",
",",
"don",
"'",
"t",
"report",
"any",
"errors",
"if",
"(",
"in",
"error",
"recovery",
"mode",
"(",
"recognizer",
")",
")",
"{",
"/",
"/",
"system",
"err",
"print",
"(",
"\"",
"[",
"spurious",
"]",
"\"",
")",
";",
"return",
";",
"/",
"/",
"don",
"'",
"t",
"report",
"spurious",
"errors",
"}",
"begin",
"error",
"condition",
"(",
"recognizer",
")",
";",
"if",
"(",
"e",
"instanceof",
"no",
"viable",
"alt",
"exception",
")",
"{",
"report",
"no",
"viable",
"alternative",
"(",
"recognizer",
",",
"(",
"no",
"viable",
"alt",
"exception",
")",
"e",
")",
";",
"}",
"else",
"if",
"(",
"e",
"instanceof",
"input",
"mismatch",
"exception",
")",
"{",
"report",
"input",
"mismatch",
"(",
"recognizer",
",",
"(",
"input",
"mismatch",
"exception",
")",
"e",
")",
";",
"}",
"else",
"if",
"(",
"e",
"instanceof",
"failed",
"predicate",
"exception",
")",
"{",
"report",
"failed",
"predicate",
"(",
"recognizer",
",",
"(",
"failed",
"predicate",
"exception",
")",
"e",
")",
";",
"}",
"else",
"{",
"system",
"err",
"println",
"(",
"\"",
"unknown",
"recognition",
"error",
"type",
":",
"\"",
"+",
"e",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"recognizer",
"notify",
"error",
"listeners",
"(",
"e",
"get",
"offending",
"token",
"(",
")",
",",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"}",
"}"
]
|
[
"this",
"transition",
"executes",
"in",
"the",
"event",
"-",
"dispatcher",
"thread",
",",
"though",
"it",
"'",
"s",
"triggered",
"in",
"m",
"r",
"app",
"master",
"'",
"s",
"start",
"jobs",
"(",
")",
"method"
]
| [
"public",
"void",
"transition",
"(",
"job",
"impl",
"job",
",",
"job",
"event",
"event",
")",
"{",
"job",
"start",
"event",
"jse",
"=",
"(",
"job",
"start",
"event",
")",
"event",
";",
"if",
"(",
"jse",
"get",
"recovered",
"job",
"start",
"time",
"(",
")",
"!",
"=",
"-",
"1l",
")",
"{",
"job",
"start",
"time",
"=",
"jse",
"get",
"recovered",
"job",
"start",
"time",
"(",
")",
";",
"}",
"else",
"{",
"job",
"start",
"time",
"=",
"job",
"clock",
"get",
"time",
"(",
")",
";",
"}",
"job",
"inited",
"event",
"jie",
"=",
"new",
"job",
"inited",
"event",
"(",
"job",
"old",
"job",
"id",
",",
"job",
"start",
"time",
",",
"job",
"num",
"map",
"tasks",
",",
"job",
"num",
"reduce",
"tasks",
",",
"job",
"get",
"state",
"(",
")",
"to",
"string",
"(",
")",
",",
"job",
"is",
"uber",
"(",
")",
")",
";",
"job",
"event",
"handler",
"handle",
"(",
"new",
"job",
"history",
"event",
"(",
"job",
"job",
"id",
",",
"jie",
")",
")",
";",
"job",
"info",
"change",
"event",
"jice",
"=",
"new",
"job",
"info",
"change",
"event",
"(",
"job",
"old",
"job",
"id",
",",
"job",
"app",
"submit",
"time",
",",
"job",
"start",
"time",
")",
";",
"job",
"event",
"handler",
"handle",
"(",
"new",
"job",
"history",
"event",
"(",
"job",
"job",
"id",
",",
"jice",
")",
")",
";",
"job",
"metrics",
"running",
"job",
"(",
"job",
")",
";",
"job",
"event",
"handler",
"handle",
"(",
"new",
"committer",
"job",
"setup",
"event",
"(",
"job",
"job",
"id",
",",
"job",
"job",
"context",
")",
")",
";",
"}"
]
|
[
"returns",
"string",
"representation",
"of",
"a",
"{",
"@",
"link",
"format",
"support",
"}",
"flag"
]
| [
"static",
"string",
"get",
"format",
"support",
"string",
"(",
"@",
"format",
"support",
"int",
"format",
"support",
")",
"{",
"switch",
"(",
"format",
"support",
")",
"{",
"case",
"renderer",
"capabilities",
"format",
"handled",
":",
"return",
"\"",
"yes",
"\"",
";",
"case",
"renderer",
"capabilities",
"format",
"exceeds",
"capabilities",
":",
"return",
"\"",
"no",
"exceeds",
"capabilities",
"\"",
";",
"case",
"renderer",
"capabilities",
"format",
"unsupported",
"drm",
":",
"return",
"\"",
"no",
"unsupported",
"drm",
"\"",
";",
"case",
"renderer",
"capabilities",
"format",
"unsupported",
"subtype",
":",
"return",
"\"",
"no",
"unsupported",
"type",
"\"",
";",
"case",
"renderer",
"capabilities",
"format",
"unsupported",
"type",
":",
"return",
"\"",
"no",
"\"",
";",
"default",
":",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}",
"}"
]
|
[
"get",
"the",
"namenode",
"address",
"to",
"be",
"used",
"by",
"clients"
]
| [
"public",
"string",
"get",
"client",
"namenode",
"address",
"(",
")",
"{",
"return",
"client",
"namenode",
"address",
";",
"}"
]
|
[
"get",
"array",
"nullable",
"prop"
]
| [
"public",
"list",
"<",
"object",
">",
"get",
"array",
"nullable",
"prop",
"(",
")",
"{",
"return",
"array",
"nullable",
"prop",
"or",
"else",
"(",
"null",
")",
";",
"}"
]
|
[
"delegates",
"to",
"{",
"@",
"link",
"xpath",
"expectations",
"helper",
"#",
"assert",
"node",
"count",
"(",
"byte",
"[",
"]",
",",
"string",
",",
"matcher",
")",
"}"
]
| [
"public",
"web",
"test",
"client",
"body",
"content",
"spec",
"node",
"count",
"(",
"matcher",
"<",
"?",
"super",
"integer",
">",
"matcher",
")",
"{",
"return",
"assert",
"with",
"(",
"(",
")",
"-",
">",
"this",
"xpath",
"helper",
"assert",
"node",
"count",
"(",
"get",
"content",
"(",
")",
",",
"get",
"charset",
"(",
")",
",",
"matcher",
")",
")",
";",
"}"
]
|
[
"helper",
"for",
"all",
"the",
"{",
"@",
"code",
"visit",
"}",
"methods"
]
| [
"private",
"void",
"visit",
"(",
"insn",
"insn",
")",
"{",
"register",
"spec",
"result",
"=",
"insn",
"get",
"result",
"(",
")",
";",
"if",
"(",
"result",
"!",
"=",
"null",
")",
"{",
"process",
"reg",
"(",
"result",
")",
";",
"}",
"register",
"spec",
"list",
"sources",
"=",
"insn",
"get",
"sources",
"(",
")",
";",
"int",
"sz",
"=",
"sources",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"process",
"reg",
"(",
"sources",
"get",
"(",
"i",
")",
")",
";",
"}",
"}"
]
|
[
"a",
"server",
"rst",
"stream",
"shouldn",
"'",
"t",
"prevent",
"the",
"client",
"from",
"consuming",
"the",
"response",
"body",
",",
"even",
"if",
"it",
"follows",
"a",
"truncated",
"request",
"body"
]
| [
"@",
"test",
"public",
"void",
"client",
"request",
"body",
"server",
"response",
"body",
"rst",
"stream",
"(",
")",
"throws",
"exception",
"{",
"/",
"/",
"write",
"the",
"mocking",
"script",
"peer",
"send",
"frame",
"(",
")",
"settings",
"(",
"new",
"settings",
"(",
")",
")",
";",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"ack",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"syn",
"stream",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"ping",
"peer",
"send",
"frame",
"(",
")",
"headers",
"(",
"false",
",",
"3",
",",
"header",
"entries",
"(",
"\"",
"a",
"\"",
",",
"\"",
"android",
"\"",
")",
")",
";",
"peer",
"send",
"frame",
"(",
")",
"data",
"(",
"true",
",",
"3",
",",
"new",
"buffer",
"(",
")",
"write",
"utf",
"8",
"(",
"\"",
"robot",
"\"",
")",
",",
"5",
")",
";",
"peer",
"send",
"frame",
"(",
")",
"rst",
"stream",
"(",
"3",
",",
"error",
"code",
"no",
"error",
")",
";",
"peer",
"send",
"frame",
"(",
")",
"ping",
"(",
"true",
",",
"await",
"ping",
",",
"0",
")",
";",
"/",
"/",
"pong",
"peer",
"play",
"(",
")",
";",
"/",
"/",
"play",
"it",
"back",
"http",
"2",
"connection",
"connection",
"=",
"connect",
"(",
"peer",
")",
";",
"http",
"2",
"stream",
"stream",
"=",
"connection",
"new",
"stream",
"(",
"header",
"entries",
"(",
")",
",",
"true",
")",
";",
"connection",
"write",
"ping",
"and",
"await",
"pong",
"(",
")",
";",
"buffered",
"sink",
"sink",
"=",
"okio",
"buffer",
"(",
"stream",
"get",
"sink",
"(",
")",
")",
";",
"sink",
"write",
"utf",
"8",
"(",
"\"",
"abc",
"\"",
")",
";",
"try",
"{",
"sink",
"close",
"(",
")",
";",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"stream",
"reset",
"exception",
"expected",
")",
"{",
"assert",
"that",
"(",
"expected",
"error",
"code",
")",
"is",
"equal",
"to",
"(",
"error",
"code",
"no",
"error",
")",
";",
"}",
"assert",
"that",
"(",
"stream",
"take",
"headers",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"headers",
"of",
"(",
"\"",
"a",
"\"",
",",
"\"",
"android",
"\"",
")",
")",
";",
"buffered",
"source",
"source",
"=",
"okio",
"buffer",
"(",
"stream",
"get",
"source",
"(",
")",
")",
";",
"assert",
"that",
"(",
"source",
"read",
"utf",
"8",
"(",
"5",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"robot",
"\"",
")",
";",
"assert",
"that",
"(",
"connection",
"open",
"stream",
"count",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"/",
"/",
"verify",
"the",
"peer",
"received",
"what",
"was",
"expected",
"in",
"frame",
"syn",
"stream",
"=",
"peer",
"take",
"frame",
"(",
")",
";",
"assert",
"that",
"(",
"syn",
"stream",
"type",
")",
"is",
"equal",
"to",
"(",
"http",
"2",
"type",
"headers",
")",
";",
"in",
"frame",
"ping",
"=",
"peer",
"take",
"frame",
"(",
")",
";",
"assert",
"that",
"(",
"ping",
"type",
")",
"is",
"equal",
"to",
"(",
"http",
"2",
"type",
"ping",
")",
";",
"}"
]
|
[
"determines",
"which",
"tool",
"to",
"use",
"when",
"fixing",
"dependency",
"errors"
]
| [
"public",
"string",
"get",
"fix",
"deps",
"tool",
"(",
")",
"{",
"return",
"fix",
"deps",
"tool",
";",
"}"
]
|
[
"joins",
"this",
"{",
"@",
"link",
"table",
"}",
"with",
"an",
"user",
"-",
"defined",
"{",
"@",
"link",
"table",
"function",
"}",
"this",
"join",
"is",
"similar",
"to",
"a",
"sql",
"inner",
"join",
"but",
"works",
"with",
"a",
"table",
"function",
"each",
"row",
"of",
"the",
"table",
"is",
"joined",
"with",
"all",
"rows",
"produced",
"by",
"the",
"table",
"function",
"example",
":",
"{",
"@",
"code",
"class",
"my",
"split",
"u",
"d",
"t",
"f",
"extends",
"table",
"function",
"<",
"string",
">",
"{",
"public",
"void",
"eval",
"(",
"string",
"str",
")",
"{",
"str",
"split",
"(",
"\"",
"#",
"\"",
")",
"for",
"each",
"(",
"this",
":",
":",
"collect",
")",
";",
"}",
"}",
"table",
"join",
"lateral",
"(",
"call",
"(",
"my",
"split",
"u",
"d",
"t",
"f",
"class",
",",
"$",
"(",
"\"",
"c",
"\"",
")",
")",
"as",
"(",
"\"",
"s",
"\"",
")",
",",
"$",
"(",
"\"",
"a",
"\"",
")",
"is",
"equal",
"(",
"$",
"(",
"\"",
"s",
"\"",
")",
")",
")",
"select",
"(",
"$",
"(",
"\"",
"a",
"\"",
")",
",",
"$",
"(",
"\"",
"b",
"\"",
")",
",",
"$",
"(",
"\"",
"c",
"\"",
")",
",",
"$",
"(",
"\"",
"s",
"\"",
")",
")",
";",
"}",
"scala",
"example",
":",
"{",
"@",
"code",
"class",
"my",
"split",
"u",
"d",
"t",
"f",
"extends",
"table",
"function",
"[",
"string",
"]",
"{",
"def",
"eval",
"(",
"str",
":",
"string",
")",
":",
"unit",
"=",
"{",
"str",
"split",
"(",
"\"",
"#",
"\"",
")",
"foreach",
"(",
"collect",
")",
"}",
"}",
"val",
"split",
"=",
"new",
"my",
"split",
"u",
"d",
"t",
"f",
"(",
")",
"table",
"join",
"lateral",
"(",
"split",
"(",
"$",
"\"",
"c",
"\"",
")",
"as",
"\"",
"s",
"\"",
",",
"$",
"\"",
"a",
"\"",
"=",
"=",
"=",
"$",
"\"",
"s",
"\"",
")",
"select",
"(",
"$",
"\"",
"a",
"\"",
",",
"$",
"\"",
"b",
"\"",
",",
"$",
"\"",
"c",
"\"",
",",
"$",
"\"",
"s",
"\"",
")",
"}"
]
| [
"table",
"join",
"lateral",
"(",
"expression",
"table",
"function",
"call",
",",
"expression",
"join",
"predicate",
")",
";"
]
|
[
"register",
"a",
"listener",
"that",
"will",
"be",
"called",
"when",
"this",
"model",
"is",
"bound",
"to",
"a",
"view",
"the",
"listener",
"will",
"contribute",
"to",
"this",
"model",
"'",
"s",
"hash",
"code",
"state",
"per",
"the",
"{",
"@",
"link",
"com",
"airbnb",
"epoxy",
"epoxy",
"attribute",
"option",
"#",
"do",
"not",
"hash",
"}",
"rules",
"you",
"may",
"clear",
"the",
"listener",
"by",
"setting",
"a",
"null",
"value",
",",
"or",
"by",
"calling",
"{",
"@",
"link",
"#",
"reset",
"(",
")",
"}"
]
| [
"public",
"model",
"with",
"all",
"private",
"field",
"types",
"on",
"bind",
"(",
"on",
"model",
"bound",
"listener",
"<",
"model",
"with",
"all",
"private",
"field",
"types",
",",
"object",
">",
"listener",
")",
"{",
"on",
"mutation",
"(",
")",
";",
"this",
"on",
"model",
"bound",
"listener",
"epoxy",
"generated",
"model",
"=",
"listener",
";",
"return",
"this",
";",
"}"
]
|
[
"adds",
"a",
"\"",
"dismiss",
"\"",
"button",
"to",
"the",
"button",
"panel",
"the",
"protected",
"method",
"dismiss",
"callback",
"(",
")",
"will",
"be",
"invoked",
"whenever",
"the",
"\"",
"dismiss",
"\"",
"button",
"is",
"pressed"
]
| [
"protected",
"void",
"add",
"dismiss",
"button",
"(",
")",
"{",
"dismiss",
"button",
"=",
"new",
"j",
"button",
"(",
"\"",
"dismiss",
"\"",
")",
";",
"dismiss",
"button",
"set",
"mnemonic",
"(",
"'",
"d",
"'",
")",
";",
"dismiss",
"button",
"set",
"name",
"(",
"\"",
"dismiss",
"\"",
")",
";",
"dismiss",
"button",
"add",
"action",
"listener",
"(",
"e",
"-",
">",
"dismiss",
"callback",
"(",
")",
")",
";",
"add",
"button",
"(",
"dismiss",
"button",
")",
";",
"}"
]
|
[
"copy",
"the",
"property",
"values",
"of",
"the",
"given",
"source",
"bean",
"into",
"the",
"target",
"bean",
"note",
":",
"the",
"source",
"and",
"target",
"classes",
"do",
"not",
"have",
"to",
"match",
"or",
"even",
"be",
"derived",
"from",
"each",
"other",
",",
"as",
"long",
"as",
"the",
"properties",
"match",
"any",
"bean",
"properties",
"that",
"the",
"source",
"bean",
"exposes",
"but",
"the",
"target",
"bean",
"does",
"not",
"will",
"silently",
"be",
"ignored",
"this",
"is",
"just",
"a",
"convenience",
"method",
"for",
"more",
"complex",
"transfer",
"needs",
",",
"consider",
"using",
"a",
"full",
"bean",
"wrapper"
]
| [
"public",
"static",
"void",
"copy",
"properties",
"(",
"object",
"source",
",",
"object",
"target",
")",
"throws",
"beans",
"exception",
"{",
"copy",
"properties",
"(",
"source",
",",
"target",
",",
"null",
",",
"(",
"string",
"[",
"]",
")",
"null",
")",
";",
"}"
]
|
[
"apply",
"the",
"x",
"path",
"and",
"assert",
"it",
"with",
"the",
"given",
"{",
"@",
"code",
"matcher",
"<",
"node",
">",
"}"
]
| [
"public",
"request",
"matcher",
"node",
"(",
"matcher",
"<",
"?",
"super",
"node",
">",
"matcher",
")",
"{",
"return",
"(",
"xpath",
"request",
"matcher",
")",
"request",
"-",
">",
"this",
"xpath",
"helper",
"assert",
"node",
"(",
"request",
"get",
"body",
"as",
"bytes",
"(",
")",
",",
"default",
"encoding",
",",
"matcher",
")",
";",
"}"
]
|
[
"verifies",
"that",
"empty",
"domain",
"is",
"allowed",
"response"
]
| [
"public",
"void",
"test",
"empty",
"bound",
"address",
"(",
")",
"{",
"socks",
"5",
"command",
"response",
"socks",
"5",
"cmd",
"response",
"=",
"new",
"default",
"socks",
"5",
"command",
"response",
"(",
"socks",
"5",
"command",
"status",
"success",
",",
"socks",
"5",
"address",
"type",
"domain",
",",
"\"",
"\"",
",",
"80",
")",
";",
"assert",
"equals",
"(",
"\"",
"\"",
",",
"socks",
"5",
"cmd",
"response",
"bnd",
"addr",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"80",
",",
"socks",
"5",
"cmd",
"response",
"bnd",
"port",
"(",
")",
")",
";",
"byte",
"buf",
"buffer",
"=",
"socks",
"5",
"common",
"test",
"utils",
"encode",
"server",
"(",
"socks",
"5",
"cmd",
"response",
")",
";",
"byte",
"[",
"]",
"expected",
"=",
"{",
"0x",
"0",
"5",
",",
"/",
"/",
"version",
"0x",
"0",
"0",
",",
"/",
"/",
"success",
"reply",
"0x",
"0",
"0",
",",
"/",
"/",
"reserved",
"0x",
"0",
"3",
",",
"/",
"/",
"address",
"type",
"domain",
"0x",
"0",
"0",
",",
"/",
"/",
"domain",
"length",
"0x",
"0",
"0",
",",
"/",
"/",
"port",
"0x",
"5",
"0",
"}",
";",
"assert",
"byte",
"buf",
"equals",
"(",
"expected",
",",
"buffer",
")",
";",
"buffer",
"release",
"(",
")",
";",
"}"
]
|
[
"return",
"the",
"new",
"activated",
"program",
"may",
"be",
"null"
]
| [
"public",
"program",
"get",
"active",
"program",
"(",
")",
"{",
"return",
"new",
"program",
"ref",
"get",
"(",
")",
";",
"}"
]
|
[
"adds",
"{",
"@",
"code",
"node",
"}",
"if",
"it",
"is",
"not",
"already",
"present",
"<",
"b",
">",
"nodes",
"must",
"be",
"unique",
"<",
"b",
">",
",",
"just",
"as",
"{",
"@",
"code",
"map",
"}",
"keys",
"must",
"be",
"they",
"must",
"also",
"be",
"non",
"-",
"null"
]
| [
"boolean",
"add",
"node",
"(",
"n",
"node",
")",
";"
]
|
[
"an",
"expectation",
"for",
"checking",
"whether",
"the",
"given",
"frame",
"is",
"available",
"to",
"switch",
"to",
"if",
"the",
"frame",
"is",
"available",
"it",
"switches",
"the",
"given",
"driver",
"to",
"the",
"specified",
"frame"
]
| [
"public",
"static",
"expected",
"condition",
"<",
"web",
"driver",
">",
"frame",
"to",
"be",
"available",
"and",
"switch",
"to",
"it",
"(",
"final",
"by",
"locator",
")",
"{",
"return",
"new",
"expected",
"condition",
"<",
"web",
"driver",
">",
"(",
")",
"{",
"@",
"override",
"public",
"web",
"driver",
"apply",
"(",
"web",
"driver",
"driver",
")",
"{",
"try",
"{",
"return",
"driver",
"switch",
"to",
"(",
")",
"frame",
"(",
"driver",
"find",
"element",
"(",
"locator",
")",
")",
";",
"}",
"catch",
"(",
"no",
"such",
"frame",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}",
"}",
"@",
"override",
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"\"",
"frame",
"to",
"be",
"available",
":",
"\"",
"+",
"locator",
";",
"}",
"}",
";",
"}"
]
|
[
"string",
"(",
"char",
",",
"char",
")",
",",
"firstlast"
]
| [
"public",
"static",
"string",
"replace",
"last",
"(",
"@",
"nullable",
"string",
"s",
",",
"char",
"sub",
",",
"char",
"with",
")",
"{",
"if",
"(",
"s",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"int",
"index",
"=",
"s",
"last",
"index",
"of",
"(",
"sub",
")",
";",
"if",
"(",
"index",
"=",
"=",
"-",
"1",
")",
"{",
"return",
"s",
";",
"}",
"char",
"[",
"]",
"str",
"=",
"s",
"to",
"char",
"array",
"(",
")",
";",
"str",
"[",
"index",
"]",
"=",
"with",
";",
"return",
"new",
"string",
"(",
"str",
")",
";",
"}"
]
|
[
"repeated",
"weak",
"compare",
"and",
"set",
"succeeds",
"in",
"changing",
"value",
"when",
"equal",
"to",
"expected"
]
| [
"public",
"void",
"test",
"weak",
"compare",
"and",
"set",
"(",
")",
"{",
"double",
"prev",
"=",
"math",
"e",
";",
"double",
"unused",
"=",
"math",
"e",
"+",
"math",
"pi",
";",
"atomic",
"double",
"at",
"=",
"new",
"atomic",
"double",
"(",
"prev",
")",
";",
"for",
"(",
"double",
"x",
":",
"values",
")",
"{",
"assert",
"bit",
"equals",
"(",
"prev",
",",
"at",
"get",
"(",
")",
")",
";",
"assert",
"false",
"(",
"at",
"weak",
"compare",
"and",
"set",
"(",
"unused",
",",
"x",
")",
")",
";",
"assert",
"bit",
"equals",
"(",
"prev",
",",
"at",
"get",
"(",
")",
")",
";",
"while",
"(",
"!",
"at",
"weak",
"compare",
"and",
"set",
"(",
"prev",
",",
"x",
")",
")",
"{",
";",
"}",
"assert",
"bit",
"equals",
"(",
"x",
",",
"at",
"get",
"(",
")",
")",
";",
"prev",
"=",
"x",
";",
"}",
"}"
]
|
[
"returns",
"a",
"pair",
"consisting",
"of",
"an",
"error",
"code",
"and",
"a",
"user",
"readable",
"error",
"message",
"for",
"the",
"given",
"throwable"
]
| [
"pair",
"<",
"integer",
",",
"string",
">",
"get",
"error",
"message",
"(",
"t",
"throwable",
")",
";"
]
|
[
"asks",
"this",
"shard",
"to",
"throttle",
"indexing",
"to",
"one",
"thread"
]
| [
"protected",
"void",
"activate",
"throttling",
"(",
"index",
"shard",
"shard",
")",
"{",
"shard",
"activate",
"throttling",
"(",
")",
";",
"}"
]
|
[
"initialize",
"the",
"underlying",
"aspect",
"j",
"pointcut",
"parser"
]
| [
"private",
"pointcut",
"parser",
"initialize",
"pointcut",
"parser",
"(",
"@",
"nullable",
"class",
"loader",
"class",
"loader",
")",
"{",
"pointcut",
"parser",
"parser",
"=",
"pointcut",
"parser",
"get",
"pointcut",
"parser",
"supporting",
"specified",
"primitives",
"and",
"using",
"specified",
"class",
"loader",
"for",
"resolution",
"(",
"supported",
"primitives",
",",
"class",
"loader",
")",
";",
"parser",
"register",
"pointcut",
"designator",
"handler",
"(",
"new",
"bean",
"pointcut",
"designator",
"handler",
"(",
")",
")",
";",
"return",
"parser",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"kind",
"'"
]
| [
"public",
"void",
"kind",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"kind",
"}"
]
|
[
"read",
"grpc",
"hook",
"config",
"into",
"{",
"@",
"link",
"g",
"r",
"p",
"c",
"alarm",
"setting",
"}"
]
| [
"private",
"void",
"read",
"grpc",
"config",
"(",
"rules",
"rules",
")",
"{",
"map",
"grpchooks",
"=",
"(",
"map",
")",
"yaml",
"data",
"get",
"(",
"\"",
"g",
"r",
"p",
"c",
"hook",
"\"",
")",
";",
"if",
"(",
"grpchooks",
"!",
"=",
"null",
")",
"{",
"g",
"r",
"p",
"c",
"alarm",
"setting",
"grpc",
"alarm",
"setting",
"=",
"new",
"g",
"r",
"p",
"c",
"alarm",
"setting",
"(",
")",
";",
"object",
"target",
"host",
"=",
"grpchooks",
"get",
"(",
"\"",
"target",
"host",
"\"",
")",
";",
"if",
"(",
"target",
"host",
"!",
"=",
"null",
")",
"{",
"grpc",
"alarm",
"setting",
"set",
"target",
"host",
"(",
"(",
"string",
")",
"target",
"host",
")",
";",
"}",
"object",
"target",
"port",
"=",
"grpchooks",
"get",
"(",
"\"",
"target",
"port",
"\"",
")",
";",
"if",
"(",
"target",
"port",
"!",
"=",
"null",
")",
"{",
"grpc",
"alarm",
"setting",
"set",
"target",
"port",
"(",
"(",
"integer",
")",
"target",
"port",
")",
";",
"}",
"rules",
"set",
"grpchook",
"setting",
"(",
"grpc",
"alarm",
"setting",
")",
";",
"}",
"}"
]
|
[
"create",
"state",
"initial",
"passwordless"
]
| [
"protected",
"void",
"create",
"state",
"initial",
"passwordless",
"(",
"final",
"flow",
"flow",
")",
"{",
"val",
"state",
"=",
"get",
"state",
"(",
"flow",
",",
"cas",
"webflow",
"constants",
"state",
"id",
"init",
"login",
"form",
",",
"action",
"state",
"class",
")",
";",
"create",
"transition",
"for",
"state",
"(",
"state",
",",
"transition",
"id",
"passwordless",
"get",
"userid",
",",
"state",
"id",
"passwordless",
"get",
"userid",
",",
"true",
")",
";",
"}"
]
|
[
"return",
"the",
"bitmap",
"in",
"cache"
]
| [
"public",
"bitmap",
"get",
"bitmap",
"(",
"@",
"non",
"null",
"final",
"string",
"key",
",",
"final",
"bitmap",
"default",
"value",
")",
"{",
"bitmap",
"obj",
"=",
"m",
"cache",
"memory",
"utils",
"get",
"(",
"key",
")",
";",
"if",
"(",
"obj",
"!",
"=",
"null",
")",
"return",
"obj",
";",
"return",
"m",
"cache",
"disk",
"utils",
"get",
"bitmap",
"(",
"key",
",",
"default",
"value",
")",
";",
"}"
]
|
[
"enables",
"or",
"disables",
"analysis",
"according",
"to",
"the",
"passed",
"-",
"in",
"boolean",
"value",
"a",
"script",
"that",
"calls",
"this",
"method",
"should",
"run",
"as",
"a",
"'",
"pre",
"script",
"'",
",",
"since",
"pre",
"scripts",
"execute",
"before",
"analysis",
"would",
"typically",
"run",
"running",
"the",
"script",
"as",
"a",
"'",
"post",
"script",
"'",
"is",
"ineffective",
",",
"since",
"the",
"stage",
"at",
"which",
"analysis",
"would",
"have",
"happened",
"has",
"already",
"passed",
"this",
"change",
"will",
"persist",
"throughout",
"the",
"current",
"headless",
"analyzer",
"session",
",",
"unless",
"changed",
"again",
"(",
"in",
"other",
"words",
",",
"once",
"analysis",
"is",
"enabled",
"via",
"script",
"for",
"one",
"program",
",",
"it",
"will",
"also",
"be",
"enabled",
"for",
"future",
"programs",
"in",
"the",
"current",
"session",
",",
"unless",
"changed",
")"
]
| [
"public",
"void",
"enable",
"headless",
"analysis",
"(",
"boolean",
"b",
")",
"throws",
"improper",
"use",
"exception",
"{",
"check",
"headless",
"status",
"(",
")",
";",
"headless",
"get",
"options",
"(",
")",
"enable",
"analysis",
"(",
"b",
")",
";",
"}"
]
|
[
"returns",
"the",
"provider",
"'",
"s",
"current",
"title"
]
| [
"public",
"string",
"get",
"title",
"(",
")",
"{",
"return",
"title",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"tags",
"'"
]
| [
"public",
"void",
"tags",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"tags",
"}"
]
|
[
"check",
"pk",
"values",
"for",
"multi",
"pk",
"at",
"most",
"one",
"null",
"per",
"row",
"method",
"is",
"not",
"allowed"
]
| [
"protected",
"boolean",
"check",
"pk",
"values",
"for",
"multi",
"pk",
"(",
"map",
"<",
"string",
",",
"list",
"<",
"object",
">",
">",
"pk",
"values",
")",
"{",
"set",
"<",
"string",
">",
"pk",
"names",
"=",
"pk",
"values",
"key",
"set",
"(",
")",
";",
"if",
"(",
"pk",
"names",
"is",
"empty",
"(",
")",
")",
"{",
"throw",
"new",
"should",
"never",
"happen",
"exception",
"(",
")",
";",
"}",
"int",
"row",
"size",
"=",
"pk",
"values",
"get",
"(",
"pk",
"names",
"iterator",
"(",
")",
"next",
"(",
")",
")",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"row",
"size",
";",
"i",
"+",
"+",
")",
"{",
"int",
"n",
"=",
"0",
";",
"int",
"m",
"=",
"0",
";",
"for",
"(",
"string",
"name",
":",
"pk",
"names",
")",
"{",
"object",
"pk",
"value",
"=",
"pk",
"values",
"get",
"(",
"name",
")",
"get",
"(",
"i",
")",
";",
"if",
"(",
"pk",
"value",
"instanceof",
"null",
")",
"{",
"n",
"+",
"+",
";",
"}",
"if",
"(",
"pk",
"value",
"instanceof",
"sql",
"method",
"expr",
")",
"{",
"m",
"+",
"+",
";",
"}",
"}",
"if",
"(",
"n",
">",
"1",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"m",
">",
"0",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}"
]
|
[
"creates",
"list",
"of",
"users",
"with",
"given",
"input",
"array"
]
| [
"public",
"void",
"create",
"users",
"with",
"array",
"input",
"test",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"list",
"<",
"user",
">",
"user",
"=",
"null",
";",
"api",
"create",
"users",
"with",
"array",
"input",
"(",
"user",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
]
|
[
"deserializes",
"an",
"{",
"@",
"link",
"abstract",
"ms",
"symbol",
"}",
"from",
"the",
"{",
"@",
"link",
"pdb",
"byte",
"reader",
"}",
"and",
"returns",
"it"
]
| [
"public",
"abstract",
"ms",
"symbol",
"parse",
"(",
"pdb",
"byte",
"reader",
"reader",
")",
"throws",
"pdb",
"exception",
",",
"cancelled",
"exception",
"{",
"int",
"symbol",
"type",
"id",
"=",
"reader",
"parse",
"unsigned",
"short",
"val",
"(",
")",
";",
"abstract",
"ms",
"symbol",
"symbol",
";",
"try",
"{",
"symbol",
"=",
"parse",
"record",
"(",
"symbol",
"type",
"id",
",",
"reader",
")",
";",
"}",
"catch",
"(",
"pdb",
"exception",
"e",
")",
"{",
"symbol",
"=",
"new",
"bad",
"ms",
"symbol",
"(",
"pdb",
",",
"symbol",
"type",
"id",
")",
";",
"}",
"return",
"symbol",
";",
"}"
]
|
[
"get",
"the",
"current",
"cursor",
"value",
"for",
"the",
"ring",
"buffer",
"the",
"actual",
"value",
"received",
"will",
"depend",
"on",
"the",
"type",
"of",
"{",
"@",
"link",
"sequencer",
"}",
"that",
"is",
"being",
"used"
]
| [
"public",
"long",
"get",
"cursor",
"(",
")",
"{",
"return",
"sequencer",
"get",
"cursor",
"(",
")",
";",
"}"
]
|
[
"get",
"the",
"{",
"@",
"code",
"@",
"sql",
"}",
"annotations",
"declared",
"on",
"the",
"supplied",
"class"
]
| [
"private",
"set",
"<",
"sql",
">",
"get",
"sql",
"annotations",
"for",
"(",
"class",
"<",
"?",
">",
"clazz",
")",
"{",
"return",
"test",
"context",
"annotation",
"utils",
"get",
"merged",
"repeatable",
"annotations",
"(",
"clazz",
",",
"sql",
"class",
")",
";",
"}"
]
|
[
"open",
"the",
"url",
"in",
"the",
"default",
"app",
"set",
"to",
"open",
"this",
"type",
"of",
"link",
"if",
"no",
"app",
"is",
"set",
"as",
"default",
",",
"it",
"will",
"open",
"a",
"chooser"
]
| [
"private",
"static",
"void",
"open",
"in",
"default",
"app",
"(",
"final",
"context",
"context",
",",
"final",
"string",
"url",
")",
"{",
"final",
"intent",
"intent",
"=",
"new",
"intent",
"(",
"intent",
"action",
"view",
",",
"uri",
"parse",
"(",
"url",
")",
")",
";",
"context",
"start",
"activity",
"(",
"intent",
"create",
"chooser",
"(",
"intent",
",",
"context",
"get",
"string",
"(",
"r",
"string",
"share",
"dialog",
"title",
")",
")",
"set",
"flags",
"(",
"intent",
"flag",
"activity",
"new",
"task",
")",
")",
";",
"}"
]
|
[
"specifies",
"that",
"each",
"key",
"(",
"not",
"value",
")",
"stored",
"in",
"the",
"map",
"should",
"be",
"wrapped",
"in",
"a",
"{",
"@",
"link",
"weak",
"reference",
"}",
"(",
"by",
"default",
",",
"strong",
"references",
"are",
"used",
")",
"<",
"b",
">",
"warning",
":",
"<",
"b",
">",
"when",
"this",
"method",
"is",
"used",
",",
"the",
"resulting",
"map",
"will",
"use",
"identity",
"(",
"{",
"@",
"code",
"=",
"=",
"}",
")",
"comparison",
"to",
"determine",
"equality",
"of",
"keys",
",",
"which",
"is",
"a",
"technical",
"violation",
"of",
"the",
"{",
"@",
"link",
"map",
"}",
"specification",
",",
"and",
"may",
"not",
"be",
"what",
"you",
"expect"
]
| [
"public",
"map",
"maker",
"weak",
"keys",
"(",
")",
"{",
"return",
"set",
"key",
"strength",
"(",
"strength",
"weak",
")",
";",
"}"
]
|
[
"assert",
"the",
"request",
"content",
"type",
"as",
"a",
"string"
]
| [
"public",
"request",
"matcher",
"content",
"type",
"(",
"string",
"expected",
"content",
"type",
")",
"{",
"return",
"content",
"type",
"(",
"media",
"type",
"parse",
"media",
"type",
"(",
"expected",
"content",
"type",
")",
")",
";",
"}"
]
|
[
"set",
"the",
"role",
"hint",
"for",
"this",
"{",
"@",
"code",
"bean",
"definition",
"}"
]
| [
"public",
"void",
"set",
"role",
"(",
"int",
"role",
")",
"{",
"this",
"role",
"=",
"role",
";",
"}"
]
|
[
"confirm",
"that",
"the",
"client",
"times",
"out",
"if",
"the",
"server",
"stalls",
"after",
"3",
"bytes",
"after",
"the",
"timeout",
"the",
"connection",
"is",
"still",
"considered",
"healthy",
"while",
"we",
"await",
"the",
"degraded",
"pong",
"when",
"that",
"doesn",
"'",
"t",
"arrive",
"the",
"connection",
"goes",
"unhealthy"
]
| [
"@",
"test",
"public",
"void",
"read",
"times",
"out",
"(",
")",
"throws",
"exception",
"{",
"/",
"/",
"write",
"the",
"mocking",
"script",
"peer",
"send",
"frame",
"(",
")",
"settings",
"(",
"new",
"settings",
"(",
")",
")",
";",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"ack",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"syn",
"stream",
"peer",
"send",
"frame",
"(",
")",
"headers",
"(",
"false",
",",
"3",
",",
"header",
"entries",
"(",
"\"",
"a",
"\"",
",",
"\"",
"android",
"\"",
")",
")",
";",
"peer",
"send",
"frame",
"(",
")",
"data",
"(",
"false",
",",
"3",
",",
"new",
"buffer",
"(",
")",
"write",
"utf",
"8",
"(",
"\"",
"abc",
"\"",
")",
",",
"3",
")",
";",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"rst",
"stream",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"degraded",
"ping",
"peer",
"accept",
"frame",
"(",
")",
";",
"/",
"/",
"await",
"ping",
"peer",
"send",
"frame",
"(",
")",
"ping",
"(",
"true",
",",
"degraded",
"ping",
",",
"1",
")",
";",
"/",
"/",
"degraded",
"pong",
"peer",
"send",
"frame",
"(",
")",
"ping",
"(",
"true",
",",
"await",
"ping",
",",
"0",
")",
";",
"/",
"/",
"await",
"pong",
"peer",
"play",
"(",
")",
";",
"/",
"/",
"play",
"it",
"back",
"http",
"2",
"connection",
"connection",
"=",
"connect",
"(",
"peer",
")",
";",
"http",
"2",
"stream",
"stream",
"=",
"connection",
"new",
"stream",
"(",
"header",
"entries",
"(",
"\"",
"b",
"\"",
",",
"\"",
"banana",
"\"",
")",
",",
"false",
")",
";",
"stream",
"read",
"timeout",
"(",
")",
"timeout",
"(",
"500",
",",
"time",
"unit",
"milliseconds",
")",
";",
"buffered",
"source",
"source",
"=",
"okio",
"buffer",
"(",
"stream",
"get",
"source",
"(",
")",
")",
";",
"source",
"require",
"(",
"3",
")",
";",
"long",
"start",
"nanos",
"=",
"system",
"nano",
"time",
"(",
")",
";",
"try",
"{",
"source",
"require",
"(",
"4",
")",
";",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"interrupted",
"i",
"o",
"exception",
"expected",
")",
"{",
"}",
"long",
"elapsed",
"nanos",
"=",
"system",
"nano",
"time",
"(",
")",
"-",
"start",
"nanos",
";",
"await",
"watchdog",
"idle",
"(",
")",
";",
"/",
"*",
"2",
"0",
"0ms",
"delta",
"*",
"/",
"assert",
"that",
"(",
"(",
"double",
")",
"time",
"unit",
"nanoseconds",
"to",
"millis",
"(",
"elapsed",
"nanos",
")",
")",
"is",
"close",
"to",
"(",
"5",
"0",
"0d",
",",
"offset",
"(",
"2",
"0",
"0d",
")",
")",
";",
"assert",
"that",
"(",
"connection",
"open",
"stream",
"count",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"/",
"/",
"when",
"the",
"timeout",
"is",
"sent",
"the",
"connection",
"doesn",
"'",
"t",
"immediately",
"go",
"unhealthy",
"assert",
"that",
"(",
"connection",
"is",
"healthy",
"(",
"system",
"nano",
"time",
"(",
")",
")",
")",
"is",
"true",
"(",
")",
";",
"/",
"/",
"but",
"if",
"the",
"ping",
"doesn",
"'",
"t",
"arrive",
",",
"the",
"connection",
"goes",
"unhealthy",
"thread",
"sleep",
"(",
"time",
"unit",
"nanoseconds",
"to",
"millis",
"(",
"degraded",
"pong",
"timeout",
"ns",
")",
")",
";",
"assert",
"that",
"(",
"connection",
"is",
"healthy",
"(",
"system",
"nano",
"time",
"(",
")",
")",
")",
"is",
"false",
"(",
")",
";",
"/",
"/",
"when",
"a",
"pong",
"does",
"arrive",
",",
"the",
"connection",
"becomes",
"healthy",
"again",
"connection",
"write",
"ping",
"and",
"await",
"pong",
"(",
")",
";",
"assert",
"that",
"(",
"connection",
"is",
"healthy",
"(",
"system",
"nano",
"time",
"(",
")",
")",
")",
"is",
"true",
"(",
")",
";",
"/",
"/",
"verify",
"the",
"peer",
"received",
"what",
"was",
"expected",
"assert",
"that",
"(",
"peer",
"take",
"frame",
"(",
")",
"type",
")",
"is",
"equal",
"to",
"(",
"http",
"2",
"type",
"headers",
")",
";",
"assert",
"that",
"(",
"peer",
"take",
"frame",
"(",
")",
"type",
")",
"is",
"equal",
"to",
"(",
"http",
"2",
"type",
"rst",
"stream",
")",
";",
"assert",
"that",
"(",
"peer",
"take",
"frame",
"(",
")",
"type",
")",
"is",
"equal",
"to",
"(",
"http",
"2",
"type",
"ping",
")",
";",
"assert",
"that",
"(",
"peer",
"take",
"frame",
"(",
")",
"type",
")",
"is",
"equal",
"to",
"(",
"http",
"2",
"type",
"ping",
")",
";",
"}"
]
|
[
"initialize",
"the",
"bodies",
",",
"anchors",
",",
"and",
"reference",
"angle",
"using",
"a",
"world",
"anchor",
"point"
]
| [
"public",
"void",
"initialize",
"(",
"body",
"body",
"a",
",",
"body",
"body",
"b",
",",
"vector",
"2",
"anchor",
")",
"{",
"this",
"body",
"a",
"=",
"body",
"a",
";",
"this",
"body",
"b",
"=",
"body",
"b",
";",
"local",
"anchor",
"a",
"set",
"(",
"body",
"a",
"get",
"local",
"point",
"(",
"anchor",
")",
")",
";",
"local",
"anchor",
"b",
"set",
"(",
"body",
"b",
"get",
"local",
"point",
"(",
"anchor",
")",
")",
";",
"reference",
"angle",
"=",
"body",
"b",
"get",
"angle",
"(",
")",
"-",
"body",
"a",
"get",
"angle",
"(",
")",
";",
"}"
]
|
[
"this",
"method",
"caused",
"cl",
"1",
"5",
"2",
"1",
"9",
"9",
"3",
"9",
"1",
"to",
"fail",
"due",
"to",
"stack",
"map",
"frame",
"corruption",
"so",
"it",
"is",
"to",
"make",
"sure",
"the",
"desugared",
"version",
"of",
"this",
"class",
"still",
"has",
"correct",
"stack",
"map",
"frames"
]
| [
"public",
"string",
"join",
"integers",
"(",
"int",
"integers",
")",
"{",
"string",
"builder",
"builder",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"integers",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"i",
">",
"0",
")",
"{",
"builder",
"append",
"(",
"\"",
",",
"\"",
")",
";",
"}",
"builder",
"append",
"(",
"i",
")",
";",
"builder",
"append",
"(",
"'",
"=",
"'",
")",
";",
"object",
"value",
"=",
"i",
"%",
"2",
"=",
"=",
"0",
"?",
"\"",
"even",
"\"",
":",
"\"",
"odd",
"\"",
";",
"if",
"(",
"i",
"%",
"2",
"=",
"=",
"0",
")",
"{",
"builder",
"append",
"(",
"value",
")",
";",
"}",
"else",
"{",
"builder",
"append",
"(",
"value",
")",
";",
"}",
"}",
"return",
"builder",
"to",
"string",
"(",
")",
";",
"}"
]
|
[
"used",
"to",
"calculate",
"the",
"source",
"activity",
"execution",
"for",
"method",
"{",
"@",
"link",
"#",
"update",
"activity",
"instance",
"id",
"in",
"historic",
"variable",
"update",
"(",
"historic",
"detail",
"variable",
"instance",
"update",
"entity",
",",
"execution",
"entity",
"impl",
")",
"}"
]
| [
"protected",
"execution",
"entity",
"impl",
"get",
"source",
"activity",
"execution",
"(",
")",
"{",
"return",
"this",
";",
"}"
]
|
[
"parse",
"a",
"failure",
"from",
"the",
"response",
"the",
"stream",
"is",
"not",
"closed",
"when",
"the",
"parsing",
"is",
"complete",
"the",
"caller",
"must",
"close",
"it"
]
| [
"public",
"static",
"remote",
"failure",
"parse",
"from",
"response",
"(",
"input",
"stream",
"stream",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"mark",
"so",
"we",
"can",
"rewind",
"to",
"get",
"the",
"entire",
"response",
"in",
"case",
"we",
"have",
"to",
"render",
"an",
"error",
"stream",
"=",
"new",
"buffered",
"input",
"stream",
"(",
"stream",
")",
";",
"stream",
"mark",
"(",
"max",
"raw",
"response",
")",
";",
"json",
"parser",
"parser",
"=",
"null",
";",
"try",
"{",
"parser",
"=",
"json",
"factory",
"create",
"parser",
"(",
"stream",
")",
";",
"return",
"parse",
"response",
"top",
"level",
"(",
"parser",
")",
";",
"}",
"catch",
"(",
"json",
"parse",
"exception",
"e",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"parse",
"error",
"message",
"(",
"e",
"get",
"original",
"message",
"(",
")",
",",
"stream",
",",
"parser",
")",
",",
"e",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"parse",
"error",
"message",
"(",
"e",
"get",
"message",
"(",
")",
",",
"stream",
",",
"parser",
")",
",",
"e",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"parser",
"!",
"=",
"null",
")",
"{",
"parser",
"close",
"(",
")",
";",
"}",
"}",
"}"
]
|
[
"method",
"used",
"to",
"find",
"inputs",
"before",
"execution",
"for",
"an",
"action",
"that",
"{",
"@",
"link",
"action",
"execution",
"metadata",
"#",
"discovers",
"inputs",
"}",
"returns",
"the",
"set",
"of",
"discovered",
"inputs",
"(",
"may",
"be",
"the",
"empty",
"set",
")",
"or",
"null",
"if",
"this",
"action",
"declared",
"additional",
"skyframe",
"dependencies",
"that",
"must",
"be",
"computed",
"before",
"it",
"can",
"make",
"a",
"decision"
]
| [
"nested",
"set",
"<",
"artifact",
">",
"discover",
"inputs",
"(",
"action",
"execution",
"context",
"action",
"execution",
"context",
")",
"throws",
"action",
"execution",
"exception",
",",
"interrupted",
"exception",
";"
]
|
[
"receives",
"a",
"object",
"array",
",",
"generates",
"a",
"binary",
"row",
"data",
"based",
"on",
"the",
"array"
]
| [
"public",
"static",
"binary",
"row",
"data",
"binaryrow",
"(",
"object",
"fields",
")",
"{",
"binary",
"row",
"data",
"row",
"=",
"new",
"binary",
"row",
"data",
"(",
"fields",
"length",
")",
";",
"binary",
"row",
"writer",
"writer",
"=",
"new",
"binary",
"row",
"writer",
"(",
"row",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"fields",
"length",
";",
"j",
"+",
"+",
")",
"{",
"object",
"value",
"=",
"fields",
"[",
"j",
"]",
";",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"writer",
"set",
"null",
"at",
"(",
"j",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"byte",
")",
"{",
"writer",
"write",
"byte",
"(",
"j",
",",
"(",
"byte",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"short",
")",
"{",
"writer",
"write",
"short",
"(",
"j",
",",
"(",
"short",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"integer",
")",
"{",
"writer",
"write",
"int",
"(",
"j",
",",
"(",
"integer",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"string",
")",
"{",
"writer",
"write",
"string",
"(",
"j",
",",
"string",
"data",
"from",
"string",
"(",
"(",
"string",
")",
"value",
")",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"double",
")",
"{",
"writer",
"write",
"double",
"(",
"j",
",",
"(",
"double",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"float",
")",
"{",
"writer",
"write",
"float",
"(",
"j",
",",
"(",
"float",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"long",
")",
"{",
"writer",
"write",
"long",
"(",
"j",
",",
"(",
"long",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"boolean",
")",
"{",
"writer",
"write",
"boolean",
"(",
"j",
",",
"(",
"boolean",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"byte",
"[",
"]",
")",
"{",
"writer",
"write",
"binary",
"(",
"j",
",",
"(",
"byte",
"[",
"]",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"decimal",
"data",
")",
"{",
"decimal",
"data",
"decimal",
"=",
"(",
"decimal",
"data",
")",
"value",
";",
"writer",
"write",
"decimal",
"(",
"j",
",",
"decimal",
",",
"decimal",
"precision",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"tuple",
"2",
"&",
"&",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"0",
"instanceof",
"timestamp",
"data",
")",
"{",
"timestamp",
"data",
"timestamp",
"=",
"(",
"timestamp",
"data",
")",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"0",
";",
"writer",
"write",
"timestamp",
"(",
"j",
",",
"timestamp",
",",
"(",
"int",
")",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"1",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"tuple",
"2",
"&",
"&",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"0",
"instanceof",
"array",
"data",
")",
"{",
"array",
"data",
"array",
"=",
"(",
"array",
"data",
")",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"0",
";",
"array",
"data",
"serializer",
"serializer",
"=",
"(",
"array",
"data",
"serializer",
")",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"1",
";",
"writer",
"write",
"array",
"(",
"j",
",",
"array",
",",
"serializer",
")",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"tuple",
"2",
"&",
"&",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"0",
"instanceof",
"row",
"data",
")",
"{",
"row",
"data",
"row",
"data",
"=",
"(",
"(",
"row",
"data",
")",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"0",
")",
";",
"row",
"data",
"serializer",
"serializer",
"=",
"(",
"row",
"data",
"serializer",
")",
"(",
"(",
"tuple",
"2",
")",
"value",
")",
"f",
"1",
";",
"writer",
"write",
"row",
"(",
"j",
",",
"row",
"data",
",",
"serializer",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"not",
"support",
"yet",
"!",
"\"",
")",
";",
"}",
"}",
"writer",
"complete",
"(",
")",
";",
"return",
"row",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"called",
"to",
"parse",
"a",
"received",
"frame",
"and",
"attempt",
"delivery",
"of",
"any",
"completed",
"messages",
"must",
"be",
"called",
"from",
"the",
"transport",
"thread"
]
| [
"protected",
"final",
"void",
"deframe",
"(",
"final",
"readable",
"buffer",
"frame",
")",
"{",
"try",
"{",
"deframer",
"deframe",
"(",
"frame",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"deframe",
"failed",
"(",
"t",
")",
";",
"}",
"}"
]
|
[
"calculates",
"the",
"maximum",
"size",
"allowed",
"before",
"rehashing"
]
| [
"private",
"int",
"calc",
"max",
"size",
"(",
"int",
"capacity",
")",
"{",
"/",
"/",
"clip",
"the",
"upper",
"bound",
"so",
"that",
"there",
"will",
"always",
"be",
"at",
"least",
"one",
"available",
"slot",
"int",
"upper",
"bound",
"=",
"capacity",
"-",
"1",
";",
"return",
"math",
"min",
"(",
"upper",
"bound",
",",
"(",
"int",
")",
"(",
"capacity",
"*",
"load",
"factor",
")",
")",
";",
"}"
]
|
[
"wait",
"for",
"outstanding",
"tasks",
"to",
"complete",
"the",
"specified",
"admin",
"client",
"is",
"used",
"to",
"check",
"the",
"outstanding",
"tasks",
"and",
"this",
"is",
"done",
"using",
"{",
"@",
"link",
"e",
"s",
"test",
"case",
"#",
"assert",
"busy",
"(",
"checked",
"runnable",
")",
"}",
"to",
"give",
"a",
"chance",
"to",
"any",
"outstanding",
"tasks",
"to",
"complete",
"the",
"specified",
"filter",
"is",
"used",
"to",
"filter",
"out",
"outstanding",
"tasks",
"that",
"are",
"expected",
"to",
"be",
"there"
]
| [
"public",
"static",
"void",
"wait",
"for",
"pending",
"tasks",
"(",
"final",
"rest",
"client",
"admin",
"client",
",",
"final",
"predicate",
"<",
"string",
">",
"task",
"filter",
")",
"throws",
"exception",
"{",
"assert",
"busy",
"(",
"(",
")",
"-",
">",
"{",
"try",
"{",
"final",
"request",
"request",
"=",
"new",
"request",
"(",
"\"",
"get",
"\"",
",",
"\"",
"/",
"cat",
"/",
"tasks",
"\"",
")",
";",
"request",
"add",
"parameter",
"(",
"\"",
"detailed",
"\"",
",",
"\"",
"true",
"\"",
")",
";",
"final",
"response",
"response",
"=",
"admin",
"client",
"perform",
"request",
"(",
"request",
")",
";",
"/",
"*",
"*",
"check",
"to",
"see",
"if",
"there",
"are",
"outstanding",
"tasks",
";",
"we",
"exclude",
"the",
"list",
"task",
"itself",
",",
"and",
"any",
"expected",
"outstanding",
"tasks",
"using",
"*",
"the",
"specified",
"task",
"filter",
"*",
"/",
"if",
"(",
"response",
"get",
"status",
"line",
"(",
")",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"http",
"status",
"sc",
"ok",
")",
"{",
"try",
"(",
"buffered",
"reader",
"response",
"reader",
"=",
"new",
"buffered",
"reader",
"(",
"new",
"input",
"stream",
"reader",
"(",
"response",
"get",
"entity",
"(",
")",
"get",
"content",
"(",
")",
",",
"standard",
"charsets",
"utf",
"8",
")",
")",
")",
"{",
"int",
"active",
"tasks",
"=",
"0",
";",
"string",
"line",
";",
"final",
"string",
"builder",
"tasks",
"list",
"string",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"while",
"(",
"(",
"line",
"=",
"response",
"reader",
"read",
"line",
"(",
")",
")",
"!",
"=",
"null",
")",
"{",
"final",
"string",
"task",
"name",
"=",
"line",
"split",
"(",
"\"",
"\\",
"\\",
"s",
"+",
"\"",
")",
"[",
"0",
"]",
";",
"if",
"(",
"task",
"name",
"starts",
"with",
"(",
"list",
"tasks",
"action",
"name",
")",
"|",
"|",
"task",
"filter",
"test",
"(",
"task",
"name",
")",
")",
"{",
"continue",
";",
"}",
"active",
"tasks",
"+",
"+",
";",
"tasks",
"list",
"string",
"append",
"(",
"line",
")",
";",
"tasks",
"list",
"string",
"append",
"(",
"'",
"\\",
"n",
"'",
")",
";",
"}",
"assert",
"equals",
"(",
"active",
"tasks",
"+",
"\"",
"active",
"tasks",
"found",
":",
"\\",
"n",
"\"",
"+",
"tasks",
"list",
"string",
",",
"0",
",",
"active",
"tasks",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"final",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
"\"",
"error",
"getting",
"active",
"tasks",
"list",
"\"",
",",
"e",
")",
";",
"}",
"}",
",",
"30l",
",",
"time",
"unit",
"seconds",
")",
";",
"}"
]
|
[
"sets",
"the",
"given",
"{",
"@",
"code",
"data",
"}",
"for",
"the",
"given",
"{",
"@",
"code",
"uri",
"}"
]
| [
"public",
"fake",
"data",
"set",
"set",
"data",
"(",
"uri",
"uri",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"return",
"new",
"data",
"(",
"uri",
")",
"append",
"read",
"data",
"(",
"data",
")",
"end",
"data",
"(",
")",
";",
"}"
]
|
[
"show",
"the",
"dialog",
";",
"return",
"an",
"id",
"for",
"the",
"action",
"that",
"the",
"user",
"chose"
]
| [
"public",
"int",
"show",
"dialog",
"(",
")",
"{",
"if",
"(",
"swing",
"utilities",
"is",
"event",
"dispatch",
"thread",
"(",
")",
")",
"{",
"docking",
"window",
"manager",
"show",
"dialog",
"(",
"null",
",",
"checkout",
"dialog",
"this",
")",
";",
"}",
"else",
"{",
"try",
"{",
"swing",
"utilities",
"invoke",
"and",
"wait",
"(",
"new",
"runnable",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"docking",
"window",
"manager",
"show",
"dialog",
"(",
"null",
",",
"checkout",
"dialog",
"this",
")",
";",
"}",
"}",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"}",
"}",
"return",
"action",
"i",
"d",
";",
"}"
]
|
[
"starts",
"with",
"an",
"empty",
"delimiter",
"and",
"changes",
"to",
"the",
"desired",
"value",
"at",
"the",
"end",
"of",
"the",
"iteration"
]
| [
"int",
"assign",
"delimiter",
"(",
"int",
"reps",
")",
"{",
"int",
"dummy",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"reps",
";",
"i",
"+",
"+",
")",
"{",
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"string",
"delim",
"=",
"\"",
"\"",
";",
"for",
"(",
"string",
"comp",
":",
"components",
")",
"{",
"sb",
"append",
"(",
"delim",
")",
";",
"sb",
"append",
"(",
"comp",
")",
";",
"delim",
"=",
"delimiter",
"string",
";",
"}",
"dummy",
"^",
"=",
"sb",
"to",
"string",
"(",
")",
"length",
"(",
")",
";",
"}",
"return",
"dummy",
";",
"}"
]
|
[
"default",
":",
"false"
]
| [
"public",
"builder",
"check",
"data",
"node",
"host",
"config",
"(",
"boolean",
"val",
")",
"{",
"this",
"check",
"data",
"node",
"host",
"config",
"=",
"val",
";",
"return",
"this",
";",
"}"
]
|
[
"compute",
"the",
"bitwise",
"or",
"of",
"this",
"and",
"another",
"masked",
"long",
"to",
"handle",
"unknown",
"bits",
",",
"the",
"result",
"is",
"derived",
"from",
"the",
"following",
"truth",
"table",
":",
"{",
"@",
"literal",
"0",
"x",
"1",
"<",
"=",
"a",
"(",
"this",
")",
"0",
"0",
"x",
"1",
"x",
"x",
"x",
"1",
"1",
"1",
"1",
"1",
"^",
"b",
"(",
"that",
")",
"}"
]
| [
"public",
"masked",
"long",
"or",
"(",
"masked",
"long",
"that",
")",
"{",
"long",
"new",
"msk",
"=",
"this",
"msk",
"&",
"that",
"msk",
";",
"long",
"new",
"val",
"=",
"this",
"val",
"|",
"that",
"val",
";",
"/",
"/",
"if",
"we",
"have",
"a",
"definite",
"1",
"on",
"either",
"side",
",",
"we",
"know",
"the",
"results",
"is",
"definitely",
"1",
"/",
"/",
"we",
"can",
"ignore",
"the",
"mask",
"a",
"1",
"in",
"the",
"value",
"must",
"be",
"a",
"definite",
"1",
",",
"or",
"else",
"it",
"would",
"have",
"/",
"/",
"been",
"masked",
"out",
"new",
"msk",
"|",
"=",
"this",
"val",
";",
"new",
"msk",
"|",
"=",
"that",
"val",
";",
"/",
"/",
"no",
"need",
"to",
"remask",
"i",
"checked",
"the",
"arithmetic",
"assert",
"new",
"val",
"=",
"=",
"(",
"new",
"msk",
"&",
"new",
"val",
")",
";",
"/",
"/",
"eh",
",",
"the",
"constructor",
"does",
"it",
"anyway",
"return",
"from",
"mask",
"and",
"value",
"(",
"new",
"msk",
",",
"new",
"val",
")",
";",
"}"
]
|
[
"sets",
"the",
"percentage",
"of",
"the",
"desired",
"amount",
"of",
"time",
"spent",
"for",
"io",
"in",
"the",
"event",
"loop",
"value",
"range",
"from",
"1",
"-",
"100",
"the",
"default",
"value",
"is",
"{",
"@",
"code",
"50",
"}",
",",
"which",
"means",
"the",
"event",
"loop",
"will",
"try",
"to",
"spend",
"the",
"same",
"amount",
"of",
"time",
"for",
"io",
"as",
"for",
"non",
"-",
"io",
"tasks",
"the",
"lower",
"the",
"number",
"the",
"more",
"time",
"can",
"be",
"spent",
"on",
"non",
"-",
"io",
"tasks",
"if",
"value",
"set",
"to",
"{",
"@",
"code",
"100",
"}",
",",
"this",
"feature",
"will",
"be",
"disabled",
"and",
"event",
"loop",
"will",
"not",
"attempt",
"to",
"balance",
"io",
"and",
"non",
"-",
"io",
"tasks"
]
| [
"public",
"void",
"set",
"io",
"ratio",
"(",
"int",
"io",
"ratio",
")",
"{",
"if",
"(",
"io",
"ratio",
"<",
"=",
"0",
"|",
"|",
"io",
"ratio",
">",
"100",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"io",
"ratio",
":",
"\"",
"+",
"io",
"ratio",
"+",
"\"",
"(",
"expected",
":",
"0",
"<",
"io",
"ratio",
"<",
"=",
"100",
")",
"\"",
")",
";",
"}",
"this",
"io",
"ratio",
"=",
"io",
"ratio",
";",
"}"
]
|
[
"get",
"the",
"current",
"referenced",
"value",
"null",
"if",
"there",
"'",
"s",
"no",
"value"
]
| [
"public",
"synchronized",
"t",
"get",
"(",
")",
"{",
"return",
"m",
"value",
";",
"}"
]
|
[
"starts",
"the",
"{",
"@",
"link",
"job",
"graph",
"store",
"}",
"service"
]
| [
"void",
"start",
"(",
"job",
"graph",
"listener",
"job",
"graph",
"listener",
")",
"throws",
"exception",
";"
]
|
[
"set",
"whether",
"methods",
"called",
"from",
"within",
"the",
"proxy",
"'",
"s",
"constructer",
"will",
"be",
"intercepted",
"the",
"default",
"value",
"is",
"true",
"unintercepted",
"methods",
"will",
"call",
"the",
"method",
"of",
"the",
"proxy",
"'",
"s",
"base",
"class",
",",
"if",
"it",
"exists"
]
| [
"public",
"void",
"set",
"intercept",
"during",
"construction",
"(",
"boolean",
"intercept",
"during",
"construction",
")",
"{",
"this",
"intercept",
"during",
"construction",
"=",
"intercept",
"during",
"construction",
";",
"}"
]
|
[
"to",
"test",
"special",
"tags",
"to",
"test",
"special",
"tags",
"and",
"operation",
"id",
"starting",
"with",
"number"
]
| [
"public",
"client",
"call",
"1",
"2",
"3test",
"special",
"tags",
"(",
"@",
"valid",
"client",
"body",
")",
";"
]
|
[
"force",
"all",
"data",
"in",
"the",
"output",
"stream",
"to",
"be",
"written",
"to",
"azure",
"storage",
"wait",
"to",
"return",
"until",
"this",
"is",
"complete"
]
| [
"public",
"void",
"hflush",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"when",
"block",
"compaction",
"is",
"disabled",
",",
"hflush",
"is",
"empty",
"function",
"if",
"(",
"compaction",
"enabled",
")",
"{",
"flush",
"(",
")",
";",
"}",
"}"
]
|
[
"configure",
"whether",
"to",
"verify",
"certificate",
"and",
"hostname",
"when",
"making",
"https",
"requests",
"default",
"to",
"true",
"note",
":",
"do",
"not",
"set",
"to",
"false",
"in",
"production",
"code",
",",
"otherwise",
"you",
"would",
"face",
"multiple",
"types",
"of",
"cryptographic",
"attacks"
]
| [
"public",
"api",
"client",
"set",
"verifying",
"ssl",
"(",
"boolean",
"verifying",
"ssl",
")",
"{",
"this",
"verifying",
"ssl",
"=",
"verifying",
"ssl",
";",
"apply",
"ssl",
"settings",
"(",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"name",
"'"
]
| [
"public",
"void",
"name",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"}"
]
|
[
"post",
"a",
"new",
"event",
"to",
"all",
"transports",
";",
"simultaneously",
"keep",
"track",
"of",
"the",
"events",
"we",
"announce",
"to",
"still",
"come",
"moreover",
",",
"link",
"unannounced",
"events",
"to",
"the",
"progress",
"stream",
";",
"we",
"only",
"expect",
"failure",
"events",
"to",
"come",
"before",
"their",
"parents"
]
| [
"private",
"void",
"post",
"(",
"build",
"event",
"event",
")",
"{",
"list",
"<",
"build",
"event",
">",
"link",
"events",
"=",
"null",
";",
"build",
"event",
"id",
"id",
"=",
"event",
"get",
"event",
"id",
"(",
")",
";",
"list",
"<",
"build",
"event",
">",
"flush",
"events",
"=",
"null",
";",
"boolean",
"last",
"event",
"=",
"false",
";",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"announced",
"events",
"=",
"=",
"null",
")",
"{",
"announced",
"events",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"/",
"/",
"the",
"very",
"first",
"event",
"of",
"a",
"stream",
"is",
"implicitly",
"announced",
"by",
"the",
"convention",
"that",
"/",
"/",
"a",
"complete",
"stream",
"has",
"to",
"have",
"at",
"least",
"one",
"entry",
"in",
"this",
"way",
"we",
"keep",
"the",
"invariant",
"/",
"/",
"that",
"the",
"set",
"of",
"posted",
"events",
"is",
"always",
"a",
"subset",
"of",
"the",
"set",
"of",
"announced",
"events",
"announced",
"events",
"add",
"(",
"id",
")",
";",
"if",
"(",
"!",
"event",
"get",
"children",
"events",
"(",
")",
"contains",
"(",
"progress",
"event",
"initial",
"progress",
"update",
")",
")",
"{",
"build",
"event",
"progress",
"=",
"progress",
"event",
"progress",
"chain",
"in",
"(",
"progress",
"count",
",",
"event",
"get",
"event",
"id",
"(",
")",
")",
";",
"link",
"events",
"=",
"immutable",
"list",
"of",
"(",
"progress",
")",
";",
"progress",
"count",
"+",
"+",
";",
"announced",
"events",
"add",
"all",
"(",
"progress",
"get",
"children",
"events",
"(",
")",
")",
";",
"/",
"/",
"the",
"new",
"first",
"event",
"in",
"the",
"stream",
",",
"implicitly",
"announced",
"by",
"the",
"fact",
"that",
"complete",
"/",
"/",
"stream",
"may",
"not",
"be",
"empty",
"announced",
"events",
"add",
"(",
"progress",
"get",
"event",
"id",
"(",
")",
")",
";",
"posted",
"events",
"add",
"(",
"progress",
"get",
"event",
"id",
"(",
")",
")",
";",
"}",
"if",
"(",
"!",
"buffered",
"stdout",
"stderr",
"pairs",
"is",
"empty",
"(",
")",
")",
"{",
"flush",
"events",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"buffered",
"stdout",
"stderr",
"pairs",
"size",
"(",
")",
")",
";",
"for",
"(",
"pair",
"<",
"string",
",",
"string",
">",
"out",
"err",
"pair",
":",
"buffered",
"stdout",
"stderr",
"pairs",
")",
"{",
"flush",
"events",
"add",
"(",
"flush",
"stdout",
"stderr",
"event",
"(",
"out",
"err",
"pair",
"get",
"first",
"(",
")",
",",
"out",
"err",
"pair",
"get",
"second",
"(",
")",
")",
")",
";",
"}",
"}",
"buffered",
"stdout",
"stderr",
"pairs",
"=",
"null",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"announced",
"events",
"contains",
"(",
"id",
")",
")",
"{",
"iterable",
"<",
"string",
">",
"all",
"out",
"=",
"immutable",
"list",
"of",
"(",
")",
";",
"iterable",
"<",
"string",
">",
"all",
"err",
"=",
"immutable",
"list",
"of",
"(",
")",
";",
"if",
"(",
"out",
"err",
"provider",
"!",
"=",
"null",
")",
"{",
"all",
"out",
"=",
"or",
"empty",
"(",
"out",
"err",
"provider",
"get",
"out",
"(",
")",
")",
";",
"all",
"err",
"=",
"or",
"empty",
"(",
"out",
"err",
"provider",
"get",
"err",
"(",
")",
")",
";",
"}",
"link",
"events",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"list",
"<",
"build",
"event",
">",
"final",
"link",
"events",
"=",
"link",
"events",
";",
"consume",
"as",
"pairsof",
"strings",
"(",
"all",
"out",
",",
"all",
"err",
",",
"(",
"out",
",",
"err",
")",
"-",
">",
"{",
"build",
"event",
"progress",
"event",
"=",
"progress",
"event",
"progress",
"chain",
"in",
"(",
"progress",
"count",
",",
"id",
",",
"out",
",",
"err",
")",
";",
"final",
"link",
"events",
"add",
"(",
"progress",
"event",
")",
";",
"progress",
"count",
"+",
"+",
";",
"announced",
"events",
"add",
"all",
"(",
"progress",
"event",
"get",
"children",
"events",
"(",
")",
")",
";",
"posted",
"events",
"add",
"(",
"progress",
"event",
"get",
"event",
"id",
"(",
")",
")",
";",
"}",
")",
";",
"}",
"}",
"if",
"(",
"event",
"instanceof",
"build",
"info",
"event",
")",
"{",
"/",
"/",
"the",
"specification",
"for",
"build",
"info",
"event",
"says",
"that",
"there",
"may",
"be",
"many",
"such",
"events",
",",
"/",
"/",
"but",
"all",
"except",
"the",
"first",
"one",
"should",
"be",
"ignored",
"if",
"(",
"posted",
"events",
"contains",
"(",
"id",
")",
")",
"{",
"return",
";",
"}",
"}",
"posted",
"events",
"add",
"(",
"id",
")",
";",
"announced",
"events",
"add",
"all",
"(",
"event",
"get",
"children",
"events",
"(",
")",
")",
";",
"/",
"/",
"we",
"keep",
"as",
"an",
"invariant",
"that",
"posted",
"events",
"is",
"a",
"subset",
"of",
"announced",
"events",
",",
"so",
"this",
"is",
"a",
"/",
"/",
"cheaper",
"test",
"for",
"equality",
"if",
"(",
"announced",
"events",
"size",
"(",
")",
"=",
"=",
"posted",
"events",
"size",
"(",
")",
")",
"{",
"last",
"event",
"=",
"true",
";",
"}",
"}",
"build",
"event",
"main",
"event",
"=",
"event",
";",
"if",
"(",
"last",
"event",
")",
"{",
"main",
"event",
"=",
"new",
"last",
"build",
"event",
"(",
"event",
")",
";",
"}",
"for",
"(",
"build",
"event",
"transport",
"transport",
":",
"transports",
")",
"{",
"if",
"(",
"link",
"events",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"build",
"event",
"link",
"event",
":",
"link",
"events",
")",
"{",
"transport",
"send",
"build",
"event",
"(",
"link",
"event",
")",
";",
"}",
"}",
"transport",
"send",
"build",
"event",
"(",
"main",
"event",
")",
";",
"}",
"if",
"(",
"flush",
"events",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"build",
"event",
"flush",
"event",
":",
"flush",
"events",
")",
"{",
"for",
"(",
"build",
"event",
"transport",
"transport",
":",
"transports",
")",
"{",
"transport",
"send",
"build",
"event",
"(",
"flush",
"event",
")",
";",
"}",
"}",
"}",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.