docstring_tokens
list | code_tokens
list |
---|---|
[
"sets",
"the",
"current",
"length",
"to",
"a",
"new",
"value",
"if",
"the",
"new",
"length",
"is",
"larger",
"than",
"the",
"current",
"length",
",",
"then",
"the",
"new",
"characters",
"at",
"the",
"end",
"of",
"this",
"object",
"will",
"contain",
"the",
"{",
"@",
"code",
"char",
"}",
"value",
"of",
"{",
"@",
"code",
"\u0000",
"}"
]
| [
"public",
"void",
"set",
"length",
"(",
"int",
"new",
"length",
")",
"{",
"if",
"(",
"new",
"length",
"<",
"0",
")",
"{",
"throw",
"new",
"string",
"index",
"out",
"of",
"bounds",
"exception",
"(",
"new",
"length",
")",
";",
"}",
"if",
"(",
"new",
"length",
">",
"chars",
"length",
")",
"{",
"enlarge",
"buffer",
"(",
"new",
"length",
")",
";",
"}",
"else",
"{",
"if",
"(",
"length",
"<",
"new",
"length",
")",
"{",
"arrays",
"fill",
"(",
"chars",
",",
"length",
",",
"new",
"length",
",",
"(",
"char",
")",
"0",
")",
";",
"}",
"}",
"length",
"=",
"new",
"length",
";",
"}"
]
|
[
"gets",
"an",
"output",
"page",
"from",
"the",
"operator",
"if",
"no",
"output",
"data",
"is",
"currently",
"available",
",",
"return",
"null"
]
| [
"page",
"get",
"output",
"(",
")",
";"
]
|
[
"the",
"{",
"@",
"link",
"metrics",
"}",
"that",
"this",
"group",
"belongs",
"to",
"do",
"not",
"use",
"this",
"to",
"add",
"{",
"@",
"link",
"sensor",
"sensors",
"}",
",",
"since",
"they",
"will",
"not",
"be",
"removed",
"when",
"this",
"group",
"is",
"{",
"@",
"link",
"#",
"close",
"(",
")",
"closed",
"}",
"metrics",
"can",
"be",
"added",
"directly",
",",
"as",
"long",
"as",
"the",
"metric",
"names",
"are",
"obtained",
"from",
"this",
"group",
"via",
"the",
"{",
"@",
"link",
"#",
"metric",
"name",
"(",
"metric",
"name",
"template",
")",
"}",
"method"
]
| [
"public",
"metrics",
"metrics",
"(",
")",
"{",
"return",
"metrics",
";",
"}"
]
|
[
"perform",
"any",
"necessary",
"state",
"cleanup"
]
| [
"default",
"void",
"cleanup",
"(",
")",
"{",
"/",
"/",
"nothing",
"to",
"cleanup",
"by",
"default",
"}"
]
|
[
"cancels",
"touch",
"focus",
"for",
"all",
"listeners",
"with",
"the",
"specified",
"listener",
"actor"
]
| [
"public",
"void",
"cancel",
"touch",
"focus",
"(",
"actor",
"listener",
"actor",
")",
"{",
"/",
"/",
"cancel",
"all",
"current",
"touch",
"focuses",
"for",
"the",
"specified",
"listener",
",",
"allowing",
"for",
"concurrent",
"modification",
",",
"and",
"never",
"cancel",
"the",
"/",
"/",
"same",
"focus",
"twice",
"input",
"event",
"event",
"=",
"null",
";",
"snapshot",
"array",
"<",
"touch",
"focus",
">",
"touch",
"focuses",
"=",
"this",
"touch",
"focuses",
";",
"touch",
"focus",
"[",
"]",
"items",
"=",
"touch",
"focuses",
"begin",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"n",
"=",
"touch",
"focuses",
"size",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"touch",
"focus",
"focus",
"=",
"items",
"[",
"i",
"]",
";",
"if",
"(",
"focus",
"listener",
"actor",
"!",
"=",
"listener",
"actor",
")",
"continue",
";",
"if",
"(",
"!",
"touch",
"focuses",
"remove",
"value",
"(",
"focus",
",",
"true",
")",
")",
"continue",
";",
"/",
"/",
"touch",
"focus",
"already",
"gone",
"if",
"(",
"event",
"=",
"=",
"null",
")",
"{",
"event",
"=",
"pools",
"obtain",
"(",
"input",
"event",
"class",
")",
";",
"event",
"set",
"stage",
"(",
"this",
")",
";",
"event",
"set",
"type",
"(",
"input",
"event",
"type",
"touch",
"up",
")",
";",
"event",
"set",
"stage",
"x",
"(",
"integer",
"min",
"value",
")",
";",
"event",
"set",
"stage",
"y",
"(",
"integer",
"min",
"value",
")",
";",
"}",
"event",
"set",
"target",
"(",
"focus",
"target",
")",
";",
"event",
"set",
"listener",
"actor",
"(",
"focus",
"listener",
"actor",
")",
";",
"event",
"set",
"pointer",
"(",
"focus",
"pointer",
")",
";",
"event",
"set",
"button",
"(",
"focus",
"button",
")",
";",
"focus",
"listener",
"handle",
"(",
"event",
")",
";",
"/",
"/",
"cannot",
"return",
"touch",
"focus",
"to",
"pool",
",",
"as",
"it",
"may",
"still",
"be",
"in",
"use",
"(",
"eg",
"if",
"cancel",
"touch",
"focus",
"is",
"called",
"from",
"touch",
"dragged",
")",
"}",
"touch",
"focuses",
"end",
"(",
")",
";",
"if",
"(",
"event",
"!",
"=",
"null",
")",
"pools",
"free",
"(",
"event",
")",
";",
"}"
]
|
[
"test",
"syncable",
"interface",
"on",
"raw",
"local",
"file",
"system"
]
| [
"public",
"void",
"test",
"syncable",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"file",
"system",
"fs",
"=",
"file",
"sys",
"get",
"raw",
"file",
"system",
"(",
")",
";",
"path",
"file",
"=",
"new",
"path",
"(",
"test",
"root",
"dir",
",",
"\"",
"syncable",
"\"",
")",
";",
"f",
"s",
"data",
"output",
"stream",
"out",
"=",
"fs",
"create",
"(",
"file",
")",
";",
";",
"final",
"int",
"bytes",
"written",
"=",
"1",
";",
"byte",
"[",
"]",
"expected",
"buf",
"=",
"new",
"byte",
"[",
"]",
"{",
"'",
"0",
"'",
",",
"'",
"1",
"'",
",",
"'",
"2",
"'",
",",
"'",
"3",
"'",
"}",
";",
"try",
"{",
"out",
"write",
"(",
"expected",
"buf",
",",
"0",
",",
"1",
")",
";",
"out",
"hflush",
"(",
")",
";",
"verify",
"file",
"(",
"fs",
",",
"file",
",",
"bytes",
"written",
",",
"expected",
"buf",
")",
";",
"out",
"write",
"(",
"expected",
"buf",
",",
"bytes",
"written",
",",
"expected",
"buf",
"length",
"-",
"bytes",
"written",
")",
";",
"out",
"hsync",
"(",
")",
";",
"verify",
"file",
"(",
"fs",
",",
"file",
",",
"expected",
"buf",
"length",
",",
"expected",
"buf",
")",
";",
"}",
"finally",
"{",
"out",
"close",
"(",
")",
";",
"}",
"}"
]
|
[
"write",
"a",
"struct",
"to",
"the",
"buffer"
]
| [
"public",
"void",
"write",
"(",
"byte",
"buffer",
"buffer",
",",
"object",
"o",
")",
"{",
"struct",
"r",
"=",
"(",
"struct",
")",
"o",
";",
"for",
"(",
"bound",
"field",
"field",
":",
"fields",
")",
"{",
"try",
"{",
"object",
"value",
"=",
"field",
"def",
"type",
"validate",
"(",
"r",
"get",
"(",
"field",
")",
")",
";",
"field",
"def",
"type",
"write",
"(",
"buffer",
",",
"value",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"throw",
"new",
"schema",
"exception",
"(",
"\"",
"error",
"writing",
"field",
"'",
"\"",
"+",
"field",
"def",
"name",
"+",
"\"",
"'",
":",
"\"",
"+",
"(",
"e",
"get",
"message",
"(",
")",
"=",
"=",
"null",
"?",
"e",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
":",
"e",
"get",
"message",
"(",
")",
")",
")",
";",
"}",
"}",
"}"
]
|
[
"the",
"invoker",
"destroyed"
]
| [
"void",
"destroyed",
"(",
"invoker",
"<",
"?",
">",
"invoker",
")",
";"
]
|
[
"get",
"the",
"status",
"code"
]
| [
"public",
"int",
"get",
"status",
"code",
"(",
")",
"{",
"return",
"status",
"code",
";",
"}"
]
|
[
"wraps",
"{",
"@",
"link",
"file",
"visitor",
"}",
"to",
"ignore",
"symlinks"
]
| [
"public",
"static",
"file",
"visitor",
"ignoring",
"symlinks",
"(",
"final",
"file",
"visitor",
"v",
",",
"string",
"verification",
"root",
",",
"boolean",
"no",
"follow",
"links",
")",
"{",
"if",
"(",
"no",
"follow",
"links",
")",
"{",
"return",
"new",
"file",
"visitor",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"visit",
"(",
"file",
"f",
",",
"string",
"relative",
"path",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"verification",
"root",
"=",
"=",
"null",
"|",
"|",
"!",
"file",
"path",
"is",
"symlink",
"(",
"f",
",",
"verification",
"root",
",",
"no",
"follow",
"links",
")",
")",
"{",
"v",
"visit",
"(",
"f",
",",
"relative",
"path",
")",
";",
"}",
"}",
"@",
"override",
"public",
"boolean",
"understands",
"symlink",
"(",
")",
"{",
"return",
"false",
";",
"}",
"}",
";",
"}",
"return",
"v",
";",
"}"
]
|
[
"inserts",
"a",
"new",
"bitfield",
"at",
"the",
"specified",
"ordinal",
"position",
"in",
"this",
"union",
"for",
"both",
"aligned",
"and",
"unaligned",
"unions",
"the",
"bitfield",
"starts",
"with",
"bit",
"-",
"0",
"(",
"lsb",
")",
"of",
"the",
"first",
"byte",
"for",
"little",
"-",
"endian",
",",
"and",
"with",
"bit",
"-",
"7",
"(",
"msb",
")",
"of",
"the",
"first",
"byte",
"for",
"big",
"-",
"endian",
"this",
"is",
"the",
"default",
"behavior",
"for",
"most",
"compilers",
"insertion",
"behavior",
"may",
"not",
"work",
"as",
"expected",
"if",
"packing",
"rules",
"differ",
"from",
"this"
]
| [
"public",
"data",
"type",
"component",
"insert",
"bit",
"field",
"(",
"int",
"ordinal",
",",
"data",
"type",
"base",
"data",
"type",
",",
"int",
"bit",
"size",
",",
"string",
"component",
"name",
",",
"string",
"comment",
")",
"throws",
"invalid",
"data",
"type",
"exception",
",",
"array",
"index",
"out",
"of",
"bounds",
"exception",
";"
]
|
[
"adds",
"a",
"j",
"label",
"and",
"three",
"j",
"radio",
"button",
"instances",
"in",
"a",
"button",
"group",
"to",
"the",
"given",
"panel",
"with",
"a",
"grid",
"bag",
"layout",
",",
"and",
"returns",
"the",
"buttons",
"in",
"an",
"array"
]
| [
"private",
"j",
"radio",
"button",
"[",
"]",
"add",
"radio",
"button",
"triplet",
"(",
"string",
"label",
"text",
",",
"j",
"panel",
"panel",
")",
"{",
"grid",
"bag",
"constraints",
"label",
"constraints",
"=",
"new",
"grid",
"bag",
"constraints",
"(",
")",
";",
"label",
"constraints",
"anchor",
"=",
"grid",
"bag",
"constraints",
"west",
";",
"label",
"constraints",
"insets",
"=",
"new",
"insets",
"(",
"2",
",",
"10",
",",
"2",
",",
"10",
")",
";",
"grid",
"bag",
"constraints",
"button",
"constraints",
"=",
"new",
"grid",
"bag",
"constraints",
"(",
")",
";",
"button",
"constraints",
"insets",
"=",
"label",
"constraints",
"insets",
";",
"grid",
"bag",
"constraints",
"last",
"glue",
"constraints",
"=",
"new",
"grid",
"bag",
"constraints",
"(",
")",
";",
"last",
"glue",
"constraints",
"gridwidth",
"=",
"grid",
"bag",
"constraints",
"remainder",
";",
"last",
"glue",
"constraints",
"weightx",
"=",
"1",
"0",
";",
"/",
"/",
"create",
"the",
"radio",
"buttons",
"j",
"radio",
"button",
"radio",
"button",
"0",
"=",
"new",
"j",
"radio",
"button",
"(",
")",
";",
"j",
"radio",
"button",
"radio",
"button",
"1",
"=",
"new",
"j",
"radio",
"button",
"(",
")",
";",
"j",
"radio",
"button",
"radio",
"button",
"2",
"=",
"new",
"j",
"radio",
"button",
"(",
")",
";",
"/",
"/",
"put",
"them",
"in",
"a",
"button",
"group",
"button",
"group",
"button",
"group",
"=",
"new",
"button",
"group",
"(",
")",
";",
"button",
"group",
"add",
"(",
"radio",
"button",
"0",
")",
";",
"button",
"group",
"add",
"(",
"radio",
"button",
"1",
")",
";",
"button",
"group",
"add",
"(",
"radio",
"button",
"2",
")",
";",
"/",
"/",
"add",
"the",
"label",
"and",
"the",
"buttons",
"to",
"the",
"panel",
"panel",
"add",
"(",
"new",
"j",
"label",
"(",
"label",
"text",
")",
",",
"label",
"constraints",
")",
";",
"panel",
"add",
"(",
"radio",
"button",
"0",
",",
"button",
"constraints",
")",
";",
"panel",
"add",
"(",
"radio",
"button",
"1",
",",
"button",
"constraints",
")",
";",
"panel",
"add",
"(",
"radio",
"button",
"2",
",",
"button",
"constraints",
")",
";",
"panel",
"add",
"(",
"box",
"create",
"glue",
"(",
")",
",",
"last",
"glue",
"constraints",
")",
";",
"return",
"new",
"j",
"radio",
"button",
"[",
"]",
"{",
"radio",
"button",
"0",
",",
"radio",
"button",
"1",
",",
"radio",
"button",
"2",
"}",
";",
"}"
]
|
[
"return",
"a",
"template",
"loader",
"based",
"on",
"the",
"given",
"template",
"loader",
"list",
"if",
"more",
"than",
"one",
"template",
"loader",
"has",
"been",
"registered",
",",
"a",
"free",
"marker",
"multi",
"template",
"loader",
"needs",
"to",
"be",
"created"
]
| [
"protected",
"template",
"loader",
"get",
"aggregate",
"template",
"loader",
"(",
"list",
"<",
"template",
"loader",
">",
"template",
"loaders",
")",
"{",
"switch",
"(",
"template",
"loaders",
"size",
"(",
")",
")",
"{",
"case",
"0",
":",
"logger",
"debug",
"(",
"\"",
"no",
"free",
"marker",
"template",
"loaders",
"specified",
"\"",
")",
";",
"return",
"null",
";",
"case",
"1",
":",
"return",
"template",
"loaders",
"get",
"(",
"0",
")",
";",
"default",
":",
"template",
"loader",
"[",
"]",
"loaders",
"=",
"template",
"loaders",
"to",
"array",
"(",
"new",
"template",
"loader",
"[",
"0",
"]",
")",
";",
"return",
"new",
"multi",
"template",
"loader",
"(",
"loaders",
")",
";",
"}",
"}"
]
|
[
"helper",
"method",
"to",
"get",
"an",
"extended",
"(",
"16",
"-",
"bit",
")",
"opcode",
"out",
"of",
"an",
"instruction",
",",
"returning",
"it",
"as",
"a",
"code",
"unit",
"the",
"opcode",
"must",
"be",
"an",
"extended",
"opcode"
]
| [
"protected",
"static",
"short",
"opcode",
"unit",
"(",
"dalv",
"insn",
"insn",
")",
"{",
"int",
"opcode",
"=",
"insn",
"get",
"opcode",
"(",
")",
"get",
"opcode",
"(",
")",
";",
"if",
"(",
"(",
"opcode",
"<",
"0x",
"1",
"0",
"0",
")",
"|",
"|",
"(",
"opcode",
">",
"0xffff",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"opcode",
"out",
"of",
"range",
"0",
"65535",
"\"",
")",
";",
"}",
"return",
"(",
"short",
")",
"opcode",
";",
"}"
]
|
[
"set",
"log",
"size",
"limit"
]
| [
"public",
"static",
"void",
"set",
"txn",
"log",
"size",
"limit",
"(",
"long",
"size",
")",
"{",
"txn",
"log",
"size",
"limit",
"=",
"size",
";",
"}"
]
|
[
"get",
"ship",
"date"
]
| [
"public",
"offset",
"date",
"time",
"get",
"ship",
"date",
"(",
")",
"{",
"return",
"ship",
"date",
";",
"}"
]
|
[
"adds",
"a",
"field",
"to",
"load",
"and",
"return",
"as",
"part",
"of",
"the",
"search",
"request"
]
| [
"public",
"search",
"source",
"builder",
"fetch",
"field",
"(",
"field",
"and",
"format",
"fetch",
"field",
")",
"{",
"if",
"(",
"fetch",
"fields",
"=",
"=",
"null",
")",
"{",
"fetch",
"fields",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"}",
"fetch",
"fields",
"add",
"(",
"fetch",
"field",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"get",
"anytype",
"1"
]
| [
"public",
"object",
"get",
"anytype",
"1",
"(",
")",
"{",
"return",
"anytype",
"1",
";",
"}"
]
|
[
"gets",
"the",
"type",
"for",
"a",
"property",
"setter"
]
| [
"public",
"class",
"<",
"?",
">",
"get",
"setter",
"type",
"(",
"string",
"property",
"name",
")",
"{",
"class",
"<",
"?",
">",
"clazz",
"=",
"set",
"types",
"get",
"(",
"property",
"name",
")",
";",
"if",
"(",
"clazz",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"reflection",
"exception",
"(",
"\"",
"there",
"is",
"no",
"setter",
"for",
"property",
"named",
"'",
"\"",
"+",
"property",
"name",
"+",
"\"",
"'",
"in",
"'",
"\"",
"+",
"type",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"return",
"clazz",
";",
"}"
]
|
[
"fills",
"in",
"the",
"progress",
"bar",
"to",
"the",
"indicated",
"percent"
]
| [
"private",
"void",
"do",
"set",
"progress",
"(",
"final",
"int",
"progress",
"percentage",
")",
"{",
"if",
"(",
"progress",
"percentage",
"<",
"0",
"|",
"|",
"progress",
"percentage",
">",
"100",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"invalid",
"progress",
"value",
"(",
"\"",
"+",
"progress",
"percentage",
"+",
"\"",
")",
"must",
"be",
"from",
"0",
"to",
"100",
"\"",
")",
";",
"}",
"if",
"(",
"!",
"is",
"showing",
"progress",
")",
"{",
"add",
"(",
"progress",
"bar",
")",
";",
"is",
"showing",
"progress",
"=",
"true",
";",
"}",
"progress",
"bar",
"set",
"value",
"(",
"progress",
"percentage",
")",
";",
"do",
"validate",
"(",
")",
";",
"}"
]
|
[
"initializes",
"a",
"multi",
"-",
"part",
"upload"
]
| [
"string",
"start",
"multi",
"part",
"upload",
"(",
"string",
"key",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"tests",
"that",
"the",
"operation",
"could",
"be",
"scheduled",
"with",
"expected",
"delay"
]
| [
"public",
"void",
"test",
"schedule",
"with",
"delay",
"(",
")",
"throws",
"exception",
"{",
"final",
"manually",
"triggered",
"scheduled",
"executor",
"scheduled",
"executor",
"=",
"new",
"manually",
"triggered",
"scheduled",
"executor",
"(",
")",
";",
"final",
"int",
"expected",
"result",
"=",
"42",
";",
"completable",
"future",
"<",
"integer",
">",
"completable",
"future",
"=",
"future",
"utils",
"schedule",
"with",
"delay",
"(",
"(",
")",
"-",
">",
"expected",
"result",
",",
"time",
"milliseconds",
"(",
"0",
")",
",",
"scheduled",
"executor",
")",
";",
"scheduled",
"executor",
"trigger",
"scheduled",
"tasks",
"(",
")",
";",
"final",
"int",
"actual",
"result",
"=",
"completable",
"future",
"get",
"(",
")",
";",
"assert",
"equals",
"(",
"expected",
"result",
",",
"actual",
"result",
")",
";",
"}"
]
|
[
"set",
"the",
"trigger",
"'",
"s",
"job",
"data",
"map"
]
| [
"public",
"void",
"set",
"job",
"data",
"map",
"(",
"job",
"data",
"map",
"job",
"data",
"map",
")",
"{",
"this",
"job",
"data",
"map",
"=",
"job",
"data",
"map",
";",
"}"
]
|
[
"copies",
"the",
"contents",
"of",
"this",
"byte",
"source",
"to",
"the",
"given",
"{",
"@",
"code",
"output",
"stream",
"}",
"does",
"not",
"close",
"{",
"@",
"code",
"output",
"}"
]
| [
"public",
"long",
"copy",
"to",
"(",
"output",
"stream",
"output",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"not",
"null",
"(",
"output",
")",
";",
"closer",
"closer",
"=",
"closer",
"create",
"(",
")",
";",
"try",
"{",
"input",
"stream",
"in",
"=",
"closer",
"register",
"(",
"open",
"stream",
"(",
")",
")",
";",
"return",
"byte",
"streams",
"copy",
"(",
"in",
",",
"output",
")",
";",
"}",
"catch",
"(",
"throwable",
"e",
")",
"{",
"throw",
"closer",
"rethrow",
"(",
"e",
")",
";",
"}",
"finally",
"{",
"closer",
"close",
"(",
")",
";",
"}",
"}"
]
|
[
"set",
"cookie",
"parameters",
"to",
"the",
"request",
"builder",
",",
"including",
"default",
"cookies"
]
| [
"public",
"void",
"process",
"cookie",
"params",
"(",
"map",
"<",
"string",
",",
"string",
">",
"cookie",
"params",
",",
"request",
"builder",
"req",
"builder",
")",
"{",
"for",
"(",
"entry",
"<",
"string",
",",
"string",
">",
"param",
":",
"cookie",
"params",
"entry",
"set",
"(",
")",
")",
"{",
"req",
"builder",
"add",
"header",
"(",
"\"",
"cookie",
"\"",
",",
"string",
"format",
"(",
"\"",
"%",
"s",
"=",
"%",
"s",
"\"",
",",
"param",
"get",
"key",
"(",
")",
",",
"param",
"get",
"value",
"(",
")",
")",
")",
";",
"}",
"for",
"(",
"entry",
"<",
"string",
",",
"string",
">",
"param",
":",
"default",
"cookie",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"!",
"cookie",
"params",
"contains",
"key",
"(",
"param",
"get",
"key",
"(",
")",
")",
")",
"{",
"req",
"builder",
"add",
"header",
"(",
"\"",
"cookie",
"\"",
",",
"string",
"format",
"(",
"\"",
"%",
"s",
"=",
"%",
"s",
"\"",
",",
"param",
"get",
"key",
"(",
")",
",",
"param",
"get",
"value",
"(",
")",
")",
")",
";",
"}",
"}",
"}"
]
|
[
"creates",
"the",
"type",
"information",
"for",
"all",
"elements",
"of",
"a",
"type",
"that",
"expects",
"a",
"certain",
"number",
"of",
"subtypes",
"(",
"e",
"g",
"tuple",
"x",
"x",
")"
]
| [
"private",
"<",
"in1",
",",
"in2",
">",
"type",
"information",
"<",
"?",
">",
"[",
"]",
"create",
"sub",
"types",
"info",
"(",
"type",
"original",
"type",
",",
"parameterized",
"type",
"defining",
"type",
",",
"list",
"<",
"type",
">",
"type",
"hierarchy",
",",
"type",
"information",
"<",
"in1",
">",
"in",
"1",
"type",
",",
"type",
"information",
"<",
"in2",
">",
"in",
"2",
"type",
",",
"boolean",
"lenient",
")",
"{",
"type",
"[",
"]",
"subtypes",
"=",
"new",
"type",
"[",
"defining",
"type",
"get",
"actual",
"type",
"arguments",
"(",
")",
"length",
"]",
";",
"/",
"/",
"materialize",
"possible",
"type",
"variables",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"subtypes",
"length",
";",
"i",
"+",
"+",
")",
"{",
"final",
"type",
"actual",
"type",
"arg",
"=",
"defining",
"type",
"get",
"actual",
"type",
"arguments",
"(",
")",
"[",
"i",
"]",
";",
"/",
"/",
"materialize",
"immediate",
"type",
"variables",
"if",
"(",
"actual",
"type",
"arg",
"instanceof",
"type",
"variable",
"<",
"?",
">",
")",
"{",
"subtypes",
"[",
"i",
"]",
"=",
"materialize",
"type",
"variable",
"(",
"type",
"hierarchy",
",",
"(",
"type",
"variable",
"<",
"?",
">",
")",
"actual",
"type",
"arg",
")",
";",
"}",
"/",
"/",
"class",
"or",
"parameterized",
"type",
"else",
"{",
"subtypes",
"[",
"i",
"]",
"=",
"actual",
"type",
"arg",
";",
"}",
"}",
"type",
"information",
"<",
"?",
">",
"[",
"]",
"sub",
"types",
"info",
"=",
"new",
"type",
"information",
"<",
"?",
">",
"[",
"subtypes",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"subtypes",
"length",
";",
"i",
"+",
"+",
")",
"{",
"final",
"list",
"<",
"type",
">",
"sub",
"type",
"hierarchy",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"type",
"hierarchy",
")",
";",
"sub",
"type",
"hierarchy",
"add",
"(",
"subtypes",
"[",
"i",
"]",
")",
";",
"/",
"/",
"sub",
"type",
"could",
"not",
"be",
"determined",
"with",
"materializing",
"/",
"/",
"try",
"to",
"derive",
"the",
"type",
"info",
"of",
"the",
"type",
"variable",
"from",
"the",
"immediate",
"base",
"child",
"input",
"/",
"/",
"as",
"a",
"last",
"attempt",
"if",
"(",
"subtypes",
"[",
"i",
"]",
"instanceof",
"type",
"variable",
"<",
"?",
">",
")",
"{",
"sub",
"types",
"info",
"[",
"i",
"]",
"=",
"create",
"type",
"info",
"from",
"inputs",
"(",
"(",
"type",
"variable",
"<",
"?",
">",
")",
"subtypes",
"[",
"i",
"]",
",",
"sub",
"type",
"hierarchy",
",",
"in",
"1",
"type",
",",
"in",
"2",
"type",
")",
";",
"/",
"/",
"variable",
"could",
"not",
"be",
"determined",
"if",
"(",
"sub",
"types",
"info",
"[",
"i",
"]",
"=",
"=",
"null",
"&",
"&",
"!",
"lenient",
")",
"{",
"throw",
"new",
"invalid",
"types",
"exception",
"(",
"\"",
"type",
"of",
"type",
"variable",
"'",
"\"",
"+",
"(",
"(",
"type",
"variable",
"<",
"?",
">",
")",
"subtypes",
"[",
"i",
"]",
")",
"get",
"name",
"(",
")",
"+",
"\"",
"'",
"in",
"'",
"\"",
"+",
"(",
"(",
"type",
"variable",
"<",
"?",
">",
")",
"subtypes",
"[",
"i",
"]",
")",
"get",
"generic",
"declaration",
"(",
")",
"+",
"\"",
"'",
"could",
"not",
"be",
"determined",
"this",
"is",
"most",
"likely",
"a",
"type",
"erasure",
"problem",
"\"",
"+",
"\"",
"the",
"type",
"extraction",
"currently",
"supports",
"types",
"with",
"generic",
"variables",
"only",
"in",
"cases",
"where",
"\"",
"+",
"\"",
"all",
"variables",
"in",
"the",
"return",
"type",
"can",
"be",
"deduced",
"from",
"the",
"input",
"type",
"(",
"s",
")",
"\"",
"+",
"\"",
"otherwise",
"the",
"type",
"has",
"to",
"be",
"specified",
"explicitly",
"using",
"type",
"information",
"\"",
")",
";",
"}",
"}",
"else",
"{",
"/",
"/",
"create",
"the",
"type",
"information",
"of",
"the",
"subtype",
"or",
"null",
"/",
"exception",
"try",
"{",
"sub",
"types",
"info",
"[",
"i",
"]",
"=",
"create",
"type",
"info",
"with",
"type",
"hierarchy",
"(",
"sub",
"type",
"hierarchy",
",",
"subtypes",
"[",
"i",
"]",
",",
"in",
"1",
"type",
",",
"in",
"2",
"type",
")",
";",
"}",
"catch",
"(",
"invalid",
"types",
"exception",
"e",
")",
"{",
"if",
"(",
"lenient",
")",
"{",
"sub",
"types",
"info",
"[",
"i",
"]",
"=",
"null",
";",
"}",
"else",
"{",
"throw",
"e",
";",
"}",
"}",
"}",
"}",
"/",
"/",
"check",
"that",
"number",
"of",
"fields",
"matches",
"the",
"number",
"of",
"subtypes",
"if",
"(",
"!",
"lenient",
")",
"{",
"class",
"<",
"?",
">",
"original",
"type",
"as",
"class",
"=",
"null",
";",
"if",
"(",
"is",
"class",
"type",
"(",
"original",
"type",
")",
")",
"{",
"original",
"type",
"as",
"class",
"=",
"type",
"to",
"class",
"(",
"original",
"type",
")",
";",
"}",
"check",
"not",
"null",
"(",
"original",
"type",
"as",
"class",
",",
"\"",
"original",
"type",
"has",
"an",
"unexpected",
"type",
"\"",
")",
";",
"/",
"/",
"check",
"if",
"the",
"class",
"we",
"assumed",
"to",
"conform",
"to",
"the",
"defining",
"type",
"so",
"far",
"is",
"actually",
"a",
"/",
"/",
"pojo",
"because",
"the",
"/",
"/",
"original",
"type",
"contains",
"additional",
"fields",
"/",
"/",
"check",
"for",
"additional",
"fields",
"int",
"field",
"count",
"=",
"count",
"fields",
"in",
"class",
"(",
"original",
"type",
"as",
"class",
")",
";",
"if",
"(",
"field",
"count",
">",
"sub",
"types",
"info",
"length",
")",
"{",
"return",
"null",
";",
"}",
"}",
"return",
"sub",
"types",
"info",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"int",
"read",
"(",
"@",
"nonnull",
"byte",
"[",
"]",
"b",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"long",
"begin",
"=",
"profiling",
"event",
"hook",
"before",
"file",
"io",
"(",
"volume",
",",
"read",
",",
"b",
"length",
")",
";",
"try",
"{",
"fault",
"injector",
"event",
"hook",
"before",
"file",
"io",
"(",
"volume",
",",
"read",
",",
"b",
"length",
")",
";",
"int",
"num",
"bytes",
"read",
"=",
"super",
"read",
"(",
"b",
")",
";",
"profiling",
"event",
"hook",
"after",
"file",
"io",
"(",
"volume",
",",
"read",
",",
"begin",
",",
"num",
"bytes",
"read",
")",
";",
"return",
"num",
"bytes",
"read",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"on",
"failure",
"(",
"volume",
",",
"begin",
")",
";",
"throw",
"e",
";",
"}",
"}"
]
|
[
"close",
"the",
"group"
]
| [
"void",
"close",
"(",
")",
";"
]
|
[
"test",
"json",
"serialization",
"of",
"form",
"data"
]
| [
"public",
"void",
"test",
"json",
"form",
"data",
"(",
"string",
"param",
",",
"string",
"param",
"2",
")",
"throws",
"api",
"exception",
"{",
"object",
"local",
"var",
"post",
"body",
"=",
"null",
";",
"/",
"/",
"verify",
"the",
"required",
"parameter",
"'",
"param",
"'",
"is",
"set",
"if",
"(",
"param",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"api",
"exception",
"(",
"400",
",",
"\"",
"missing",
"the",
"required",
"parameter",
"'",
"param",
"'",
"when",
"calling",
"test",
"json",
"form",
"data",
"\"",
")",
";",
"}",
"/",
"/",
"verify",
"the",
"required",
"parameter",
"'",
"param",
"2",
"'",
"is",
"set",
"if",
"(",
"param",
"2",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"api",
"exception",
"(",
"400",
",",
"\"",
"missing",
"the",
"required",
"parameter",
"'",
"param",
"2",
"'",
"when",
"calling",
"test",
"json",
"form",
"data",
"\"",
")",
";",
"}",
"/",
"/",
"create",
"path",
"and",
"map",
"variables",
"string",
"local",
"var",
"path",
"=",
"\"",
"/",
"fake",
"/",
"json",
"form",
"data",
"\"",
";",
"/",
"/",
"query",
"params",
"list",
"<",
"pair",
">",
"local",
"var",
"query",
"params",
"=",
"new",
"array",
"list",
"<",
"pair",
">",
"(",
")",
";",
"list",
"<",
"pair",
">",
"local",
"var",
"collection",
"query",
"params",
"=",
"new",
"array",
"list",
"<",
"pair",
">",
"(",
")",
";",
"map",
"<",
"string",
",",
"string",
">",
"local",
"var",
"header",
"params",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"map",
"<",
"string",
",",
"string",
">",
"local",
"var",
"cookie",
"params",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"map",
"<",
"string",
",",
"object",
">",
"local",
"var",
"form",
"params",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"object",
">",
"(",
")",
";",
"if",
"(",
"param",
"!",
"=",
"null",
")",
"local",
"var",
"form",
"params",
"put",
"(",
"\"",
"param",
"\"",
",",
"param",
")",
";",
"if",
"(",
"param",
"2",
"!",
"=",
"null",
")",
"local",
"var",
"form",
"params",
"put",
"(",
"\"",
"param",
"2",
"\"",
",",
"param",
"2",
")",
";",
"final",
"string",
"[",
"]",
"local",
"var",
"accepts",
"=",
"{",
"}",
";",
"final",
"string",
"local",
"var",
"accept",
"=",
"api",
"client",
"select",
"header",
"accept",
"(",
"local",
"var",
"accepts",
")",
";",
"final",
"string",
"[",
"]",
"local",
"var",
"content",
"types",
"=",
"{",
"\"",
"application",
"/",
"x",
"-",
"www",
"-",
"form",
"-",
"urlencoded",
"\"",
"}",
";",
"final",
"string",
"local",
"var",
"content",
"type",
"=",
"api",
"client",
"select",
"header",
"content",
"type",
"(",
"local",
"var",
"content",
"types",
")",
";",
"string",
"[",
"]",
"local",
"var",
"auth",
"names",
"=",
"new",
"string",
"[",
"]",
"{",
"}",
";",
"api",
"client",
"invoke",
"a",
"p",
"i",
"(",
"local",
"var",
"path",
",",
"\"",
"get",
"\"",
",",
"local",
"var",
"query",
"params",
",",
"local",
"var",
"collection",
"query",
"params",
",",
"local",
"var",
"post",
"body",
",",
"local",
"var",
"header",
"params",
",",
"local",
"var",
"cookie",
"params",
",",
"local",
"var",
"form",
"params",
",",
"local",
"var",
"accept",
",",
"local",
"var",
"content",
"type",
",",
"local",
"var",
"auth",
"names",
",",
"null",
")",
";",
"}"
]
|
[
"closes",
"job",
"this",
"communicator",
"is",
"encapsulating"
]
| [
"public",
"void",
"close",
"(",
"boolean",
"restart",
",",
"string",
"reason",
")",
"{",
"future",
"<",
"?",
">",
"future",
"=",
"autodetect",
"worker",
"executor",
"submit",
"(",
"(",
")",
"-",
">",
"{",
"check",
"process",
"is",
"alive",
"(",
")",
";",
"try",
"{",
"if",
"(",
"autodetect",
"process",
"is",
"ready",
"(",
")",
")",
"{",
"autodetect",
"process",
"close",
"(",
")",
";",
"}",
"else",
"{",
"kill",
"process",
"(",
"false",
",",
"false",
")",
";",
"state",
"streamer",
"cancel",
"(",
")",
";",
"}",
"autodetect",
"result",
"processor",
"await",
"completion",
"(",
")",
";",
"}",
"finally",
"{",
"on",
"finish",
"handler",
"accept",
"(",
"restart",
"?",
"new",
"elasticsearch",
"exception",
"(",
"reason",
")",
":",
"null",
",",
"true",
")",
";",
"}",
"logger",
"info",
"(",
"\"",
"[",
"{",
"}",
"]",
"job",
"closed",
"\"",
",",
"job",
"get",
"id",
"(",
")",
")",
";",
"return",
"null",
";",
"}",
")",
";",
"try",
"{",
"future",
"get",
"(",
")",
";",
"autodetect",
"worker",
"executor",
"shutdown",
"(",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"thread",
"current",
"thread",
"(",
")",
"interrupt",
"(",
")",
";",
"}",
"catch",
"(",
"execution",
"exception",
"e",
")",
"{",
"if",
"(",
"process",
"killed",
")",
"{",
"/",
"/",
"in",
"this",
"case",
"the",
"original",
"exception",
"is",
"spurious",
"and",
"highly",
"misleading",
"throw",
"exceptions",
"helper",
"conflict",
"status",
"exception",
"(",
"\"",
"close",
"job",
"interrupted",
"by",
"kill",
"request",
"\"",
")",
";",
"}",
"else",
"{",
"throw",
"future",
"utils",
"rethrow",
"execution",
"exception",
"(",
"e",
")",
";",
"}",
"}",
"finally",
"{",
"destroy",
"categorization",
"analyzer",
"(",
")",
";",
"}",
"}"
]
|
[
"returns",
"an",
"interceptor",
"that",
"will",
"be",
"applies",
"to",
"calls"
]
| [
"public",
"client",
"interceptor",
"get",
"interceptor",
"(",
")",
"{",
"return",
"interceptor",
";",
"}"
]
|
[
"validates",
"the",
"given",
"encoding"
]
| [
"private",
"string",
"validate",
"encoding",
"(",
"string",
"encoding",
")",
"{",
"return",
"(",
"encoding",
"=",
"=",
"null",
")",
"?",
"charset",
"default",
"charset",
"(",
")",
"name",
"(",
")",
":",
"charset",
"for",
"name",
"(",
"encoding",
"trim",
"(",
")",
")",
"name",
"(",
")",
";",
"}"
]
|
[
"moves",
"the",
"output",
"view",
"to",
"the",
"next",
"page",
"this",
"method",
"invokes",
"internally",
"the",
"{",
"@",
"link",
"#",
"next",
"segment",
"(",
"memory",
"segment",
",",
"int",
")",
"}",
"method",
"to",
"give",
"the",
"current",
"memory",
"segment",
"to",
"the",
"concrete",
"subclass",
"'",
"implementation",
"and",
"obtain",
"the",
"next",
"segment",
"to",
"write",
"to",
"writing",
"will",
"continue",
"inside",
"the",
"new",
"segment",
"after",
"the",
"header"
]
| [
"public",
"void",
"advance",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"this",
"current",
"segment",
"=",
"next",
"segment",
"(",
"this",
"current",
"segment",
",",
"this",
"position",
"in",
"segment",
")",
";",
"this",
"position",
"in",
"segment",
"=",
"this",
"header",
"length",
";",
"}"
]
|
[
"return",
"{",
"@",
"code",
"true",
"}",
"if",
"sctp",
"is",
"supported",
"by",
"the",
"running",
"os"
]
| [
"public",
"static",
"boolean",
"is",
"sctp",
"supported",
"(",
")",
"{",
"string",
"os",
"=",
"system",
"get",
"property",
"(",
"\"",
"os",
"name",
"\"",
")",
"to",
"lower",
"case",
"(",
"locale",
"uk",
")",
";",
"if",
"(",
"\"",
"unix",
"\"",
"equals",
"(",
"os",
")",
"|",
"|",
"\"",
"linux",
"\"",
"equals",
"(",
"os",
")",
"|",
"|",
"\"",
"sun",
"\"",
"equals",
"(",
"os",
")",
"|",
"|",
"\"",
"solaris",
"\"",
"equals",
"(",
"os",
")",
")",
"{",
"try",
"{",
"/",
"/",
"try",
"to",
"open",
"a",
"sctp",
"channel",
",",
"by",
"using",
"reflection",
"to",
"make",
"it",
"compile",
"also",
"on",
"/",
"/",
"operation",
"systems",
"that",
"not",
"support",
"sctp",
"like",
"osx",
"and",
"windows",
"class",
"<",
"?",
">",
"sctp",
"channel",
"class",
"=",
"class",
"for",
"name",
"(",
"\"",
"com",
"sun",
"nio",
"sctp",
"sctp",
"channel",
"\"",
")",
";",
"channel",
"channel",
"=",
"(",
"channel",
")",
"sctp",
"channel",
"class",
"get",
"method",
"(",
"\"",
"open",
"\"",
")",
"invoke",
"(",
"null",
")",
";",
"try",
"{",
"channel",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"/",
"/",
"ignore",
"}",
"}",
"catch",
"(",
"unsupported",
"operation",
"exception",
"e",
")",
"{",
"/",
"/",
"this",
"exception",
"may",
"get",
"thrown",
"if",
"the",
"os",
"does",
"not",
"have",
"/",
"/",
"the",
"shared",
"libs",
"installed",
"system",
"out",
"print",
"(",
"\"",
"not",
"supported",
":",
"\"",
"+",
"e",
"get",
"message",
"(",
")",
")",
";",
"return",
"false",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"if",
"(",
"!",
"(",
"t",
"instanceof",
"i",
"o",
"exception",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
]
|
[
"create",
"an",
"instance",
"of",
"this",
"class",
"with",
"a",
"base",
"url",
"after",
"that",
"calls",
"to",
"one",
"of",
"the",
"instance",
"based",
"{",
"@",
"code",
"with",
"xxx",
"(",
"}",
"}",
"methods",
"will",
"create",
"u",
"r",
"ls",
"relative",
"to",
"the",
"given",
"base",
"url"
]
| [
"public",
"static",
"mvc",
"uri",
"components",
"builder",
"relative",
"to",
"(",
"uri",
"components",
"builder",
"base",
"url",
")",
"{",
"return",
"new",
"mvc",
"uri",
"components",
"builder",
"(",
"base",
"url",
")",
";",
"}"
]
|
[
"model",
"tests",
"for",
"model",
"return"
]
| [
"public",
"void",
"test",
"model",
"return",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"model",
"return",
"}"
]
|
[
"get",
"a",
"report",
"of",
"the",
"given",
"application",
"in",
"secure",
"mode",
",",
"<",
"code",
">",
"yarn",
"<",
"code",
">",
"verifies",
"access",
"to",
"the",
"application",
",",
"queue",
"etc",
"before",
"accepting",
"the",
"request",
"if",
"the",
"user",
"does",
"not",
"have",
"<",
"code",
">",
"view",
"app",
"<",
"code",
">",
"access",
"then",
"the",
"following",
"fields",
"in",
"the",
"report",
"will",
"be",
"set",
"to",
"stubbed",
"values",
":",
"host",
"-",
"set",
"to",
"\"",
"na",
"\"",
"rpc",
"port",
"-",
"set",
"to",
"-",
"1",
"client",
"token",
"-",
"set",
"to",
"\"",
"na",
"\"",
"diagnostics",
"-",
"set",
"to",
"\"",
"na",
"\"",
"tracking",
"url",
"-",
"set",
"to",
"\"",
"na",
"\"",
"original",
"tracking",
"url",
"-",
"set",
"to",
"\"",
"na",
"\"",
"resource",
"usage",
"report",
"-",
"all",
"values",
"are",
"-",
"1"
]
| [
"public",
"abstract",
"application",
"report",
"get",
"application",
"report",
"(",
"application",
"id",
"app",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"required",
":",
"the",
"protocol",
"exposed",
"on",
"the",
"port",
"must",
"be",
"one",
"of",
"http",
"|",
"https",
"|",
"grpc",
"|",
"http2",
"|",
"mongo",
"|",
"tcp",
"|",
"tls",
"tls",
"implies",
"the",
"connection",
"will",
"be",
"routed",
"based",
"on",
"the",
"sni",
"header",
"to",
"the",
"destination",
"without",
"terminating",
"the",
"tls",
"connection",
"<",
"code",
">",
"string",
"protocol",
"=",
"2",
";",
"<",
"code",
">"
]
| [
"public",
"java",
"lang",
"string",
"get",
"protocol",
"(",
")",
"{",
"java",
"lang",
"object",
"ref",
"=",
"protocol",
";",
"if",
"(",
"ref",
"instanceof",
"java",
"lang",
"string",
")",
"{",
"return",
"(",
"java",
"lang",
"string",
")",
"ref",
";",
"}",
"else",
"{",
"com",
"google",
"protobuf",
"byte",
"string",
"bs",
"=",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
")",
"ref",
";",
"java",
"lang",
"string",
"s",
"=",
"bs",
"to",
"string",
"utf",
"8",
"(",
")",
";",
"protocol",
"=",
"s",
";",
"return",
"s",
";",
"}",
"}"
]
|
[
"moves",
"previously",
"imported",
"data",
"types",
"from",
"the",
"dwarf",
"uncategorized",
"folder",
"into",
"folder",
"d",
"w",
"a",
"r",
"fsource",
"code",
"filename",
"ext",
"when",
"moving",
"renaming",
"data",
"types",
",",
"you",
"only",
"need",
"to",
"worry",
"about",
"named",
"data",
"types",
"pointers",
"and",
"arrays",
",",
"which",
"can",
"only",
"exist",
"by",
"referring",
"to",
"a",
"named",
"data",
"type",
",",
"get",
"moved",
"renamed",
"automagically",
"by",
"the",
"data",
"type",
"manager",
"after",
"moving",
"each",
"data",
"type",
",",
"if",
"the",
"folder",
"is",
"empty",
",",
"remove",
"the",
"folder"
]
| [
"private",
"void",
"move",
"types",
"into",
"source",
"folders",
"(",
")",
"throws",
"cancelled",
"exception",
"{",
"list",
"<",
"data",
"type",
"path",
">",
"imported",
"types",
"=",
"dwarf",
"d",
"t",
"m",
"get",
"imported",
"types",
"(",
")",
";",
"monitor",
"set",
"indeterminate",
"(",
"false",
")",
";",
"monitor",
"set",
"show",
"progress",
"value",
"(",
"true",
")",
";",
"monitor",
"initialize",
"(",
"imported",
"types",
"size",
"(",
")",
")",
";",
"monitor",
"set",
"message",
"(",
"\"",
"dwarf",
"move",
"types",
"\"",
")",
";",
"category",
"path",
"un",
"cat",
"root",
"cp",
"=",
"prog",
"get",
"uncategorized",
"root",
"d",
"n",
"i",
"(",
")",
"get",
"organizational",
"category",
"path",
"(",
")",
";",
"category",
"path",
"root",
"c",
"p",
"=",
"prog",
"get",
"root",
"d",
"n",
"i",
"(",
")",
"as",
"category",
"path",
"(",
")",
";",
"for",
"(",
"data",
"type",
"path",
"data",
"type",
"path",
":",
"imported",
"types",
")",
"{",
"monitor",
"check",
"canceled",
"(",
")",
";",
"monitor",
"increment",
"progress",
"(",
"1",
")",
";",
"data",
"type",
"data",
"type",
"=",
"prog",
"get",
"ghidra",
"program",
"(",
")",
"get",
"data",
"type",
"manager",
"(",
")",
"get",
"data",
"type",
"(",
"data",
"type",
"path",
")",
";",
"if",
"(",
"data",
"type",
"!",
"=",
"null",
"&",
"&",
"!",
"(",
"data",
"type",
"instanceof",
"pointer",
"|",
"|",
"data",
"type",
"instanceof",
"array",
")",
")",
"{",
"d",
"w",
"a",
"r",
"f",
"source",
"info",
"dsi",
"=",
"dwarf",
"d",
"t",
"m",
"get",
"source",
"info",
"(",
"data",
"type",
")",
";",
"if",
"(",
"dsi",
"!",
"=",
"null",
"&",
"&",
"dsi",
"get",
"filename",
"(",
")",
"!",
"=",
"null",
")",
"{",
"category",
"path",
"data",
"type",
"orig",
"c",
"p",
"=",
"data",
"type",
"get",
"category",
"path",
"(",
")",
";",
"category",
"path",
"new",
"root",
"=",
"new",
"category",
"path",
"(",
"root",
"c",
"p",
",",
"dsi",
"get",
"filename",
"(",
")",
")",
";",
"category",
"path",
"new",
"c",
"p",
"=",
"rehome",
"category",
"path",
"sub",
"tree",
"(",
"un",
"cat",
"root",
"cp",
",",
"new",
"root",
",",
"data",
"type",
"orig",
"c",
"p",
")",
";",
"if",
"(",
"new",
"c",
"p",
"!",
"=",
"null",
")",
"{",
"try",
"{",
"data",
"type",
"set",
"category",
"path",
"(",
"new",
"c",
"p",
")",
";",
"if",
"(",
"data",
"type",
"instanceof",
"composite",
")",
"{",
"fixup",
"anon",
"struct",
"members",
"(",
"(",
"composite",
")",
"data",
"type",
",",
"data",
"type",
"orig",
"c",
"p",
",",
"new",
"c",
"p",
")",
";",
"}",
"delete",
"empty",
"category",
"paths",
"(",
"data",
"type",
"orig",
"c",
"p",
")",
";",
"}",
"catch",
"(",
"duplicate",
"name",
"exception",
"e",
")",
"{",
"/",
"/",
"if",
"some",
"unexpected",
"error",
"occurs",
"during",
"a",
"move",
"operation",
",",
"/",
"/",
"the",
"datatype",
"is",
"left",
"in",
"its",
"original",
"location",
"under",
"uncategorized",
"msg",
"error",
"(",
"this",
",",
"\"",
"failed",
"to",
"move",
"\"",
"+",
"data",
"type",
"get",
"data",
"type",
"path",
"(",
")",
"+",
"\"",
"to",
"\"",
"+",
"new",
"c",
"p",
")",
";",
"}",
"}",
"}",
"}",
"}",
"monitor",
"set",
"message",
"(",
"\"",
"dwarf",
"move",
"types",
"-",
"done",
"\"",
")",
";",
"}"
]
|
[
"this",
"fs",
"doesn",
"'",
"t",
"explicitly",
"support",
"multiple",
"data",
"sources",
",",
"so",
"return",
"false",
"here"
]
| [
"public",
"boolean",
"seek",
"to",
"new",
"source",
"(",
"long",
"target",
"pos",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"false",
";",
"}"
]
|
[
"destroy",
"the",
"current",
"command"
]
| [
"public",
"int",
"destroy",
"(",
")",
"{",
"return",
"process",
"destroy",
"(",
")",
";",
"}"
]
|
[
"set",
"a",
"key",
"on",
"the",
"component",
"that",
"is",
"local",
"to",
"its",
"parent"
]
| [
"public",
"t",
"key",
"(",
"@",
"nullable",
"string",
"key",
")",
"{",
"if",
"(",
"key",
"=",
"=",
"null",
")",
"{",
"final",
"string",
"component",
"name",
"=",
"m",
"context",
"get",
"component",
"scope",
"(",
")",
"!",
"=",
"null",
"?",
"m",
"context",
"get",
"component",
"scope",
"(",
")",
"get",
"simple",
"name",
"(",
")",
":",
"\"",
"unknown",
"component",
"\"",
";",
"final",
"string",
"message",
"=",
"\"",
"setting",
"a",
"null",
"key",
"from",
"\"",
"+",
"component",
"name",
"+",
"\"",
"which",
"is",
"usually",
"a",
"mistake",
"!",
"if",
"it",
"is",
"not",
",",
"explicitly",
"set",
"the",
"string",
"'",
"null",
"'",
"\"",
";",
"components",
"reporter",
"emit",
"message",
"(",
"components",
"reporter",
"log",
"level",
"error",
",",
"null",
"key",
"set",
",",
"message",
")",
";",
"key",
"=",
"\"",
"null",
"\"",
";",
"}",
"m",
"component",
"set",
"key",
"(",
"key",
")",
";",
"return",
"get",
"this",
"(",
")",
";",
"}"
]
|
[
"tests",
"that",
"only",
"a",
"single",
"space",
"check",
"is",
"performed",
"if",
"two",
"name",
"dirs",
"are",
"supplied",
"which",
"are",
"on",
"the",
"same",
"volume"
]
| [
"public",
"void",
"test",
"checking",
"2",
"name",
"dirs",
"on",
"one",
"volume",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"configuration",
"conf",
"=",
"new",
"configuration",
"(",
")",
";",
"file",
"name",
"dir",
"1",
"=",
"new",
"file",
"(",
"base",
"dir",
",",
"\"",
"name",
"-",
"dir",
"1",
"\"",
")",
";",
"file",
"name",
"dir",
"2",
"=",
"new",
"file",
"(",
"base",
"dir",
",",
"\"",
"name",
"-",
"dir",
"2",
"\"",
")",
";",
"name",
"dir",
"1",
"mkdirs",
"(",
")",
";",
"name",
"dir",
"2",
"mkdirs",
"(",
")",
";",
"conf",
"set",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"namenode",
"edits",
"dir",
"key",
",",
"name",
"dir",
"1",
"get",
"absolute",
"path",
"(",
")",
"+",
"\"",
",",
"\"",
"+",
"name",
"dir",
"2",
"get",
"absolute",
"path",
"(",
")",
")",
";",
"conf",
"set",
"long",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"namenode",
"du",
"reserved",
"key",
",",
"long",
"max",
"value",
")",
";",
"name",
"node",
"resource",
"checker",
"nb",
"=",
"new",
"name",
"node",
"resource",
"checker",
"(",
"conf",
")",
";",
"assert",
"equals",
"(",
"\"",
"should",
"not",
"check",
"the",
"same",
"volume",
"more",
"than",
"once",
"\"",
",",
"1",
",",
"nb",
"get",
"volumes",
"low",
"on",
"space",
"(",
")",
"size",
"(",
")",
")",
";",
"}"
]
|
[
"sets",
"the",
"war",
"filter",
"to",
"be",
"represented",
"in",
"this",
"dialog"
]
| [
"public",
"void",
"set",
"war",
"filter",
"(",
"list",
"filter",
")",
"{",
"war",
"filter",
"text",
"field",
"set",
"text",
"(",
"filter",
"!",
"=",
"null",
"?",
"list",
"util",
"comma",
"separated",
"string",
"(",
"filter",
",",
"true",
")",
":",
"default",
"war",
"filter",
")",
";",
"}"
]
|
[
"get",
"map",
"map",
"anytype"
]
| [
"public",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"object",
">",
">",
"get",
"map",
"map",
"anytype",
"(",
")",
"{",
"return",
"map",
"map",
"anytype",
";",
"}"
]
|
[
"removes",
"the",
"least",
"recently",
"used",
"items",
"from",
"the",
"cache",
"until",
"the",
"current",
"size",
"is",
"less",
"than",
"the",
"given",
"size"
]
| [
"protected",
"synchronized",
"void",
"trim",
"to",
"size",
"(",
"long",
"size",
")",
"{",
"map",
"entry",
"<",
"t",
",",
"entry",
"<",
"y",
">",
">",
"last",
";",
"iterator",
"<",
"map",
"entry",
"<",
"t",
",",
"entry",
"<",
"y",
">",
">",
">",
"cache",
"iterator",
";",
"while",
"(",
"current",
"size",
">",
"size",
")",
"{",
"cache",
"iterator",
"=",
"cache",
"entry",
"set",
"(",
")",
"iterator",
"(",
")",
";",
"last",
"=",
"cache",
"iterator",
"next",
"(",
")",
";",
"final",
"entry",
"<",
"y",
">",
"to",
"remove",
"=",
"last",
"get",
"value",
"(",
")",
";",
"current",
"size",
"-",
"=",
"to",
"remove",
"size",
";",
"final",
"t",
"key",
"=",
"last",
"get",
"key",
"(",
")",
";",
"cache",
"iterator",
"remove",
"(",
")",
";",
"on",
"item",
"evicted",
"(",
"key",
",",
"to",
"remove",
"value",
")",
";",
"}",
"}"
]
|
[
"splice",
"from",
"this",
"{",
"@",
"link",
"abstract",
"epoll",
"stream",
"channel",
"}",
"to",
"another",
"{",
"@",
"link",
"file",
"descriptor",
"}",
"the",
"{",
"@",
"code",
"offset",
"}",
"is",
"the",
"offset",
"for",
"the",
"{",
"@",
"link",
"file",
"descriptor",
"}",
"and",
"{",
"@",
"code",
"len",
"}",
"is",
"the",
"number",
"of",
"bytes",
"to",
"splice",
"if",
"using",
"{",
"@",
"link",
"integer",
"#",
"max",
"value",
"}",
"it",
"will",
"splice",
"until",
"the",
"{",
"@",
"link",
"channel",
"future",
"}",
"was",
"canceled",
"or",
"it",
"was",
"failed",
"please",
"note",
":",
"{",
"@",
"link",
"epoll",
"channel",
"config",
"#",
"get",
"epoll",
"mode",
"(",
")",
"}",
"must",
"be",
"{",
"@",
"link",
"epoll",
"mode",
"#",
"level",
"triggered",
"}",
"for",
"this",
"{",
"@",
"link",
"abstract",
"epoll",
"stream",
"channel",
"}",
"the",
"{",
"@",
"link",
"file",
"descriptor",
"}",
"will",
"not",
"be",
"closed",
"after",
"the",
"{",
"@",
"link",
"channel",
"promise",
"}",
"is",
"notified",
"this",
"channel",
"must",
"be",
"registered",
"to",
"an",
"event",
"loop",
"or",
"{",
"@",
"link",
"illegal",
"state",
"exception",
"}",
"will",
"be",
"thrown"
]
| [
"public",
"final",
"channel",
"future",
"splice",
"to",
"(",
"final",
"file",
"descriptor",
"ch",
",",
"final",
"int",
"offset",
",",
"final",
"int",
"len",
",",
"final",
"channel",
"promise",
"promise",
")",
"{",
"check",
"positive",
"or",
"zero",
"(",
"len",
",",
"\"",
"len",
"\"",
")",
";",
"check",
"positive",
"or",
"zero",
"(",
"offset",
",",
"\"",
"offset",
"\"",
")",
";",
"if",
"(",
"config",
"(",
")",
"get",
"epoll",
"mode",
"(",
")",
"!",
"=",
"epoll",
"mode",
"level",
"triggered",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"splice",
"to",
"(",
")",
"supported",
"only",
"when",
"using",
"\"",
"+",
"epoll",
"mode",
"level",
"triggered",
")",
";",
"}",
"check",
"not",
"null",
"(",
"promise",
",",
"\"",
"promise",
"\"",
")",
";",
"if",
"(",
"!",
"is",
"open",
"(",
")",
")",
"{",
"promise",
"try",
"failure",
"(",
"new",
"closed",
"channel",
"exception",
"(",
")",
")",
";",
"}",
"else",
"{",
"add",
"to",
"splice",
"queue",
"(",
"new",
"splice",
"fd",
"task",
"(",
"ch",
",",
"offset",
",",
"len",
",",
"promise",
")",
")",
";",
"fail",
"splice",
"if",
"closed",
"(",
"promise",
")",
";",
"}",
"return",
"promise",
";",
"}"
]
|
[
"returns",
"a",
"{",
"@",
"link",
"cache",
"loader",
"}",
"that",
"returns",
"the",
"key",
"for",
"every",
"request"
]
| [
"static",
"<",
"t",
">",
"identity",
"loader",
"<",
"t",
">",
"identity",
"loader",
"(",
")",
"{",
"return",
"new",
"identity",
"loader",
"<",
"t",
">",
"(",
")",
";",
"}"
]
|
[
"is",
"there",
"an",
"exception",
"in",
"this",
"class",
"?"
]
| [
"public",
"boolean",
"has",
"exception",
"(",
")",
"{",
"return",
"exception",
"!",
"=",
"null",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"my",
"number",
"'"
]
| [
"public",
"void",
"my",
"number",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"my",
"number",
"}"
]
|
[
"post",
"-",
"process",
"the",
"given",
"message",
"code",
",",
"built",
"by",
"this",
"resolver",
"the",
"default",
"implementation",
"applies",
"the",
"specified",
"prefix",
",",
"if",
"any"
]
| [
"protected",
"string",
"post",
"process",
"message",
"code",
"(",
"string",
"code",
")",
"{",
"return",
"get",
"prefix",
"(",
")",
"+",
"code",
";",
"}"
]
|
[
"finds",
"pets",
"by",
"tags",
"multiple",
"tags",
"can",
"be",
"provided",
"with",
"comma",
"separated",
"strings",
"use",
"tag",
"1",
",",
"tag",
"2",
",",
"tag",
"3",
"for",
"testing"
]
| [
"public",
"void",
"find",
"pets",
"by",
"tags",
"test",
"(",
")",
"{",
"list",
"<",
"string",
">",
"tags",
"=",
"null",
";",
"/",
"/",
"list",
"<",
"pet",
">",
"response",
"=",
"api",
"find",
"pets",
"by",
"tags",
"(",
"tags",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
]
|
[
"cancels",
"all",
"currently",
"running",
"vertex",
"executions"
]
| [
"public",
"void",
"cancel",
"(",
")",
"{",
"for",
"(",
"execution",
"vertex",
"ev",
":",
"get",
"task",
"vertices",
"(",
")",
")",
"{",
"ev",
"cancel",
"(",
")",
";",
"}",
"}"
]
|
[
"set",
"associated",
"source",
"file"
]
| [
"public",
"final",
"void",
"set",
"source",
"file",
"(",
"resource",
"file",
"source",
"file",
")",
"{",
"this",
"source",
"file",
"=",
"source",
"file",
";",
"}"
]
|
[
"compare",
"the",
"remote",
"server",
"capabilities",
"with",
"those",
"requested",
"by",
"current",
"execution"
]
| [
"public",
"static",
"client",
"server",
"compatibility",
"status",
"check",
"client",
"server",
"compatibility",
"(",
"server",
"capabilities",
"capabilities",
",",
"remote",
"options",
"remote",
"options",
",",
"digest",
"function",
"value",
"digest",
"function",
",",
"server",
"capabilities",
"requirement",
"requirement",
")",
"{",
"client",
"server",
"compatibility",
"status",
"builder",
"result",
"=",
"new",
"client",
"server",
"compatibility",
"status",
"builder",
"(",
")",
";",
"boolean",
"should",
"check",
"execution",
"capabilities",
"=",
"(",
"requirement",
"=",
"=",
"server",
"capabilities",
"requirement",
"execution",
"|",
"|",
"requirement",
"=",
"=",
"server",
"capabilities",
"requirement",
"execution",
"and",
"cache",
")",
";",
"boolean",
"should",
"check",
"cache",
"capabilities",
"=",
"(",
"requirement",
"=",
"=",
"server",
"capabilities",
"requirement",
"cache",
"|",
"|",
"requirement",
"=",
"=",
"server",
"capabilities",
"requirement",
"execution",
"and",
"cache",
")",
";",
"if",
"(",
"!",
"(",
"should",
"check",
"cache",
"capabilities",
"|",
"|",
"should",
"check",
"execution",
"capabilities",
")",
")",
"{",
"return",
"result",
"build",
"(",
")",
";",
"}",
"/",
"/",
"check",
"api",
"version",
"api",
"version",
"server",
"supported",
"status",
"st",
"=",
"api",
"version",
"current",
"check",
"server",
"supported",
"versions",
"(",
"capabilities",
")",
";",
"if",
"(",
"st",
"is",
"unsupported",
"(",
")",
")",
"{",
"result",
"add",
"error",
"(",
"st",
"get",
"message",
"(",
")",
")",
";",
"}",
"if",
"(",
"st",
"is",
"deprecated",
"(",
")",
")",
"{",
"result",
"add",
"warning",
"(",
"st",
"get",
"message",
"(",
")",
")",
";",
"}",
"if",
"(",
"should",
"check",
"execution",
"capabilities",
")",
"{",
"/",
"/",
"check",
"remote",
"execution",
"is",
"enabled",
"execution",
"capabilities",
"exec",
"cap",
"=",
"capabilities",
"get",
"execution",
"capabilities",
"(",
")",
";",
"if",
"(",
"!",
"exec",
"cap",
"get",
"exec",
"enabled",
"(",
")",
")",
"{",
"result",
"add",
"error",
"(",
"\"",
"remote",
"execution",
"is",
"not",
"supported",
"by",
"the",
"remote",
"server",
",",
"or",
"the",
"current",
"\"",
"+",
"\"",
"account",
"is",
"not",
"authorized",
"to",
"use",
"remote",
"execution",
"\"",
")",
";",
"return",
"result",
"build",
"(",
")",
";",
"/",
"/",
"no",
"point",
"checking",
"other",
"execution",
"fields",
"}",
"/",
"/",
"check",
"execution",
"digest",
"function",
"if",
"(",
"exec",
"cap",
"get",
"digest",
"function",
"(",
")",
"=",
"=",
"digest",
"function",
"value",
"unknown",
")",
"{",
"/",
"/",
"server",
"side",
"error",
"-",
"-",
"this",
"is",
"not",
"supposed",
"to",
"happen",
"result",
"add",
"error",
"(",
"\"",
"remote",
"server",
"error",
":",
"unknown",
"execution",
"digest",
"function",
"\"",
")",
";",
"}",
"if",
"(",
"exec",
"cap",
"get",
"digest",
"function",
"(",
")",
"!",
"=",
"digest",
"function",
")",
"{",
"result",
"add",
"error",
"(",
"string",
"format",
"(",
"\"",
"cannot",
"use",
"hash",
"function",
"%",
"s",
"with",
"remote",
"execution",
"\"",
"+",
"\"",
"server",
"supported",
"function",
"is",
"%",
"s",
"\"",
",",
"digest",
"function",
",",
"exec",
"cap",
"get",
"digest",
"function",
"(",
")",
")",
")",
";",
"}",
"/",
"/",
"check",
"execution",
"priority",
"is",
"in",
"the",
"supported",
"range",
"check",
"priority",
"in",
"range",
"(",
"remote",
"options",
"remote",
"execution",
"priority",
",",
"\"",
"remote",
"execution",
"priority",
"\"",
",",
"exec",
"cap",
"get",
"execution",
"priority",
"capabilities",
"(",
")",
",",
"result",
")",
";",
"}",
"if",
"(",
"should",
"check",
"cache",
"capabilities",
")",
"{",
"/",
"/",
"check",
"cache",
"digest",
"function",
"cache",
"capabilities",
"cache",
"cap",
"=",
"capabilities",
"get",
"cache",
"capabilities",
"(",
")",
";",
"if",
"(",
"!",
"cache",
"cap",
"get",
"digest",
"function",
"list",
"(",
")",
"contains",
"(",
"digest",
"function",
")",
")",
"{",
"result",
"add",
"error",
"(",
"string",
"format",
"(",
"\"",
"cannot",
"use",
"hash",
"function",
"%",
"s",
"with",
"remote",
"cache",
"\"",
"+",
"\"",
"server",
"supported",
"functions",
"are",
":",
"%",
"s",
"\"",
",",
"digest",
"function",
",",
"cache",
"cap",
"get",
"digest",
"function",
"list",
"(",
")",
")",
")",
";",
"}",
"/",
"/",
"check",
"updating",
"remote",
"cache",
"is",
"allowed",
",",
"if",
"we",
"ever",
"need",
"to",
"do",
"that",
"boolean",
"remote",
"execution",
"=",
"!",
"strings",
"is",
"null",
"or",
"empty",
"(",
"remote",
"options",
"remote",
"executor",
")",
";",
"if",
"(",
"remote",
"execution",
")",
"{",
"if",
"(",
"remote",
"options",
"remote",
"local",
"fallback",
"&",
"&",
"remote",
"options",
"remote",
"upload",
"local",
"results",
"&",
"&",
"!",
"cache",
"cap",
"get",
"action",
"cache",
"update",
"capabilities",
"(",
")",
"get",
"update",
"enabled",
"(",
")",
")",
"{",
"result",
"add",
"error",
"(",
"\"",
"-",
"-",
"remote",
"local",
"fallback",
"and",
"-",
"-",
"remote",
"upload",
"local",
"results",
"are",
"set",
",",
"\"",
"+",
"\"",
"but",
"the",
"current",
"account",
"is",
"not",
"authorized",
"to",
"write",
"local",
"results",
"\"",
"+",
"\"",
"to",
"the",
"remote",
"cache",
"\"",
")",
";",
"}",
"}",
"else",
"{",
"/",
"/",
"local",
"execution",
":",
"check",
"updating",
"remote",
"cache",
"is",
"allowed",
"if",
"(",
"remote",
"options",
"remote",
"upload",
"local",
"results",
"&",
"&",
"!",
"cache",
"cap",
"get",
"action",
"cache",
"update",
"capabilities",
"(",
")",
"get",
"update",
"enabled",
"(",
")",
")",
"{",
"result",
"add",
"error",
"(",
"\"",
"-",
"-",
"remote",
"upload",
"local",
"results",
"is",
"set",
",",
"but",
"the",
"current",
"account",
"is",
"not",
"authorized",
"\"",
"+",
"\"",
"to",
"write",
"local",
"results",
"to",
"the",
"remote",
"cache",
"\"",
")",
";",
"}",
"}",
"/",
"/",
"check",
"result",
"cache",
"priority",
"is",
"in",
"the",
"supported",
"range",
"check",
"priority",
"in",
"range",
"(",
"remote",
"options",
"remote",
"result",
"cache",
"priority",
",",
"\"",
"remote",
"result",
"cache",
"priority",
"\"",
",",
"cache",
"cap",
"get",
"cache",
"priority",
"capabilities",
"(",
")",
",",
"result",
")",
";",
"}",
"return",
"result",
"build",
"(",
")",
";",
"}"
]
|
[
"get",
"prefix",
"ns",
"array"
]
| [
"public",
"list",
"<",
"integer",
">",
"get",
"prefix",
"ns",
"array",
"(",
")",
"{",
"return",
"prefix",
"ns",
"array",
";",
"}"
]
|
[
"allows",
"at",
"-",
"least",
"-",
"x",
"verification",
"e",
"g",
":",
"<",
"pre",
"class",
"=",
"\"",
"code",
"\"",
">",
"<",
"code",
"class",
"=",
"\"",
"java",
"\"",
">",
"verify",
"(",
"mock",
",",
"at",
"least",
"(",
"3",
")",
")",
"some",
"method",
"(",
"\"",
"some",
"arg",
"\"",
")",
";",
"<",
"code",
">",
"see",
"examples",
"in",
"javadoc",
"for",
"{",
"@",
"link",
"mockito",
"}",
"class"
]
| [
"public",
"static",
"verification",
"mode",
"at",
"least",
"(",
"int",
"min",
"number",
"of",
"invocations",
")",
"{",
"return",
"verification",
"mode",
"factory",
"at",
"least",
"(",
"min",
"number",
"of",
"invocations",
")",
";",
"}"
]
|
[
"returns",
"the",
"first",
"of",
"two",
"given",
"parameters",
"that",
"is",
"not",
"{",
"@",
"code",
"null",
"}",
",",
"if",
"either",
"is",
",",
"or",
"otherwise",
"throws",
"a",
"{",
"@",
"link",
"null",
"pointer",
"exception",
"}",
"to",
"find",
"the",
"first",
"non",
"-",
"null",
"element",
"in",
"an",
"iterable",
",",
"use",
"{",
"@",
"code",
"iterables",
"find",
"(",
"iterable",
",",
"predicates",
"not",
"null",
"(",
")",
")",
"}",
"for",
"varargs",
",",
"use",
"{",
"@",
"code",
"iterables",
"find",
"(",
"arrays",
"as",
"list",
"(",
"a",
",",
"b",
",",
"c",
",",
")",
",",
"predicates",
"not",
"null",
"(",
")",
")",
"}",
",",
"static",
"importing",
"as",
"necessary",
"<",
"b",
">",
"note",
":",
"<",
"b",
">",
"if",
"{",
"@",
"code",
"first",
"}",
"is",
"represented",
"as",
"an",
"{",
"@",
"link",
"optional",
"}",
",",
"this",
"can",
"be",
"accomplished",
"with",
"{",
"@",
"link",
"optional",
"#",
"or",
"(",
"object",
")",
"first",
"or",
"(",
"second",
")",
"}",
"that",
"approach",
"also",
"allows",
"for",
"lazy",
"evaluation",
"of",
"the",
"fallback",
"instance",
",",
"using",
"{",
"@",
"link",
"optional",
"#",
"or",
"(",
"supplier",
")",
"first",
"or",
"(",
"supplier",
")",
"}",
"<",
"b",
">",
"java",
"9",
"users",
":",
"<",
"b",
">",
"use",
"{",
"@",
"code",
"java",
"util",
"objects",
"require",
"non",
"null",
"else",
"(",
"first",
",",
"second",
")",
"}",
"instead"
]
| [
"public",
"static",
"<",
"t",
">",
"t",
"first",
"non",
"null",
"(",
"@",
"nullable",
"t",
"first",
",",
"@",
"nullable",
"t",
"second",
")",
"{",
"if",
"(",
"first",
"!",
"=",
"null",
")",
"{",
"return",
"first",
";",
"}",
"if",
"(",
"second",
"!",
"=",
"null",
")",
"{",
"return",
"second",
";",
"}",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
"\"",
"both",
"parameters",
"are",
"null",
"\"",
")",
";",
"}"
]
|
[
"handle",
"the",
"case",
"of",
"a",
"void",
"property",
"type"
]
| [
"public",
"void",
"visit",
"(",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
")",
";",
"}"
]
|
[
"warnings",
"are",
"sorted",
"by",
"decreasing",
"severity"
]
| [
"public",
"int",
"compare",
"to",
"(",
"q",
"a",
"warning",
"other",
")",
"{",
"return",
"-",
"severity",
"compare",
"to",
"(",
"other",
"get",
"severity",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"the",
"arguments",
"is",
"an",
"{",
"@",
"linkplain",
"internal",
"reference",
"}",
"that",
"holds",
"the",
"same",
"element",
"a",
"weakly",
"or",
"softly",
"held",
"element",
"is",
"compared",
"using",
"identity",
"equality"
]
| [
"default",
"boolean",
"reference",
"equals",
"(",
"@",
"nullable",
"object",
"object",
")",
"{",
"if",
"(",
"object",
"=",
"=",
"this",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"object",
"instanceof",
"internal",
"reference",
"<",
"?",
">",
")",
"{",
"internal",
"reference",
"<",
"?",
">",
"referent",
"=",
"(",
"internal",
"reference",
"<",
"?",
">",
")",
"object",
";",
"return",
"(",
"get",
"(",
")",
"=",
"=",
"referent",
"get",
"(",
")",
")",
";",
"}",
"return",
"false",
";",
"}"
]
|
[
"set",
"an",
"offset",
"for",
"a",
"partition",
"using",
"connect",
"data",
"values"
]
| [
"public",
"synchronized",
"void",
"offset",
"(",
"map",
"<",
"string",
",",
"?",
">",
"partition",
",",
"map",
"<",
"string",
",",
"?",
">",
"offset",
")",
"{",
"data",
"put",
"(",
"(",
"map",
"<",
"string",
",",
"object",
">",
")",
"partition",
",",
"(",
"map",
"<",
"string",
",",
"object",
">",
")",
"offset",
")",
";",
"}"
]
|
[
"called",
"by",
"the",
"player",
"to",
"determine",
"whether",
"it",
"should",
"continue",
"to",
"load",
"the",
"source"
]
| [
"boolean",
"should",
"continue",
"loading",
"(",
"long",
"playback",
"position",
"us",
",",
"long",
"buffered",
"duration",
"us",
",",
"float",
"playback",
"speed",
")",
";"
]
|
[
"logs",
"an",
"argument",
"whose",
"value",
"is",
"a",
"double",
"it",
"will",
"be",
"stringified",
"with",
"{",
"@",
"link",
"string",
"#",
"value",
"of",
"(",
"double",
")",
"}"
]
| [
"args",
"builder",
"arg",
"(",
"string",
"key",
",",
"double",
"value",
")",
";"
]
|
[
"sets",
"the",
"attributes",
"for",
"the",
"addresses",
"resolved",
"by",
"name",
"resolution",
"if",
"unset",
",",
"{",
"@",
"link",
"attributes",
"#",
"empty",
"}",
"will",
"be",
"used",
"as",
"a",
"default"
]
| [
"public",
"builder",
"set",
"attributes",
"(",
"attributes",
"attributes",
")",
"{",
"this",
"attributes",
"=",
"attributes",
";",
"return",
"this",
";",
"}"
]
|
[
"close",
"a",
"component",
"with",
"a",
"timeout"
]
| [
"public",
"static",
"completable",
"future",
"<",
"void",
">",
"close",
"async",
"with",
"timeout",
"(",
"string",
"component",
"name",
",",
"runnable",
"closing",
"sequence",
",",
"duration",
"close",
"timeout",
")",
"{",
"return",
"close",
"async",
"with",
"timeout",
"(",
"component",
"name",
",",
"(",
"throwing",
"runnable",
"<",
"exception",
">",
")",
"closing",
"sequence",
":",
":",
"run",
",",
"close",
"timeout",
")",
";",
"}"
]
|
[
"return",
"the",
"cache",
"(",
"s",
")",
"to",
"use",
"for",
"the",
"specified",
"invocation"
]
| [
"collection",
"<",
"?",
"extends",
"cache",
">",
"resolve",
"caches",
"(",
"cache",
"operation",
"invocation",
"context",
"<",
"?",
">",
"context",
")",
";"
]
|
[
"this",
"method",
"will",
"clear",
"all",
"data",
"and",
"trigger",
"fire",
"a",
"table",
"data",
"changed",
"use",
"this",
"method",
"to",
"immediately",
"clear",
"all",
"data",
"this",
"is",
"useful",
"when",
"you",
"want",
"to",
"reload",
"your",
"table",
"data",
"and",
"not",
"have",
"any",
"old",
"data",
"hanging",
"around",
"being",
"painted",
",",
"which",
"can",
"produce",
"odd",
"results"
]
| [
"protected",
"void",
"clear",
"data",
"(",
")",
"{",
"do",
"clear",
"data",
"(",
")",
";",
"fire",
"table",
"data",
"changed",
"(",
")",
";",
"}"
]
|
[
"sets",
"the",
"failure",
"image"
]
| [
"public",
"generic",
"drawee",
"hierarchy",
"builder",
"set",
"failure",
"image",
"(",
"@",
"nullable",
"drawable",
"failure",
"drawable",
")",
"{",
"m",
"failure",
"image",
"=",
"failure",
"drawable",
";",
"return",
"this",
";",
"}"
]
|
[
"get",
"capital",
"snake"
]
| [
"public",
"string",
"get",
"capital",
"snake",
"(",
")",
"{",
"return",
"capital",
"snake",
";",
"}"
]
|
[
"skips",
"bits",
"and",
"moves",
"current",
"reading",
"position",
"forward"
]
| [
"public",
"void",
"skip",
"bits",
"(",
"int",
"num",
"bits",
")",
"{",
"int",
"old",
"byte",
"offset",
"=",
"byte",
"offset",
";",
"int",
"num",
"bytes",
"=",
"num",
"bits",
"/",
"8",
";",
"byte",
"offset",
"+",
"=",
"num",
"bytes",
";",
"bit",
"offset",
"+",
"=",
"num",
"bits",
"-",
"(",
"num",
"bytes",
"*",
"8",
")",
";",
"if",
"(",
"bit",
"offset",
">",
"7",
")",
"{",
"byte",
"offset",
"+",
"+",
";",
"bit",
"offset",
"-",
"=",
"8",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"old",
"byte",
"offset",
"+",
"1",
";",
"i",
"<",
"=",
"byte",
"offset",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"should",
"skip",
"byte",
"(",
"i",
")",
")",
"{",
"/",
"/",
"skip",
"the",
"byte",
"and",
"move",
"forward",
"to",
"check",
"three",
"bytes",
"ahead",
"byte",
"offset",
"+",
"+",
";",
"i",
"+",
"=",
"2",
";",
"}",
"}",
"assert",
"valid",
"offset",
"(",
")",
";",
"}"
]
|
[
"resource",
"version",
"this",
"is",
"used",
"to",
"determine",
"when",
"resources",
"change",
"across",
"resource",
"updates",
"it",
"should",
"be",
"treated",
"as",
"opaque",
"by",
"consumerssinks",
"<",
"code",
">",
"string",
"version",
"=",
"3",
";",
"<",
"code",
">"
]
| [
"public",
"java",
"lang",
"string",
"get",
"version",
"(",
")",
"{",
"java",
"lang",
"object",
"ref",
"=",
"version",
";",
"if",
"(",
"!",
"(",
"ref",
"instanceof",
"java",
"lang",
"string",
")",
")",
"{",
"com",
"google",
"protobuf",
"byte",
"string",
"bs",
"=",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
")",
"ref",
";",
"java",
"lang",
"string",
"s",
"=",
"bs",
"to",
"string",
"utf",
"8",
"(",
")",
";",
"version",
"=",
"s",
";",
"return",
"s",
";",
"}",
"else",
"{",
"return",
"(",
"java",
"lang",
"string",
")",
"ref",
";",
"}",
"}"
]
|
[
"returns",
"inet",
"address",
"from",
"peer",
"the",
"get",
"remote",
"address",
"string",
"has",
"the",
"form",
"[",
"host",
"]",
"[",
"ip",
"-",
"address",
"]",
":",
"port",
"the",
"host",
"may",
"be",
"missing",
"the",
"ip",
"address",
"(",
"and",
"preceding",
"'",
"'",
")",
"may",
"be",
"missing",
"the",
"port",
"preceded",
"by",
"'",
":",
"'",
"is",
"always",
"present"
]
| [
"public",
"static",
"inet",
"address",
"get",
"peer",
"address",
"(",
"peer",
"peer",
")",
"{",
"string",
"remote",
"addr",
"=",
"peer",
"get",
"remote",
"address",
"string",
"(",
")",
"split",
"(",
"\"",
":",
"\"",
")",
"[",
"0",
"]",
";",
"int",
"slash",
"idx",
"=",
"remote",
"addr",
"index",
"of",
"(",
"'",
"/",
"'",
")",
";",
"return",
"inet",
"addresses",
"for",
"string",
"(",
"slash",
"idx",
"!",
"=",
"-",
"1",
"?",
"remote",
"addr",
"substring",
"(",
"slash",
"idx",
"+",
"1",
",",
"remote",
"addr",
"length",
"(",
")",
")",
":",
"remote",
"addr",
")",
";",
"}"
]
|
[
"read",
"in",
"\"",
"length",
"\"",
"bytes",
",",
"convert",
"to",
"utf8",
"string"
]
| [
"public",
"static",
"string",
"read",
"u",
"t",
"f",
"8",
"(",
"file",
"system",
"fs",
",",
"path",
"path",
",",
"int",
"length",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"length",
"<",
"0",
")",
"{",
"file",
"status",
"status",
"=",
"fs",
"get",
"file",
"status",
"(",
"path",
")",
";",
"length",
"=",
"(",
"int",
")",
"status",
"get",
"len",
"(",
")",
";",
"}",
"try",
"(",
"f",
"s",
"data",
"input",
"stream",
"in",
"=",
"fs",
"open",
"(",
"path",
")",
")",
"{",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"length",
"]",
";",
"in",
"read",
"fully",
"(",
"0",
",",
"buf",
")",
";",
"return",
"new",
"string",
"(",
"buf",
",",
"\"",
"utf",
"-",
"8",
"\"",
")",
";",
"}",
"}"
]
|
[
"gets",
"the",
"filter",
"value",
"indicating",
"which",
"type",
"is",
"associated",
"with",
"this",
"action",
"record"
]
| [
"public",
"int",
"get",
"action",
"type",
"filter",
"(",
")",
"{",
"return",
"type",
"filter",
";",
"}"
]
|
[
"create",
"a",
"hdfs",
"data",
"output",
"stream",
"builder",
"to",
"create",
"a",
"file",
"on",
"dfs",
"similar",
"to",
"{",
"@",
"link",
"#",
"create",
"(",
"path",
")",
"}",
",",
"file",
"is",
"overwritten",
"by",
"default"
]
| [
"public",
"hdfs",
"data",
"output",
"stream",
"builder",
"create",
"file",
"(",
"path",
"path",
")",
"{",
"return",
"new",
"hdfs",
"data",
"output",
"stream",
"builder",
"(",
"this",
",",
"path",
")",
"create",
"(",
")",
"overwrite",
"(",
"true",
")",
";",
"}"
]
|
[
"a",
"log",
"prefix",
"used",
"in",
"the",
"handshake",
"to",
"correlate",
"log",
"messages",
",",
"if",
"any"
]
| [
"public",
"string",
"get",
"log",
"prefix",
"(",
")",
"{",
"return",
"this",
"log",
"prefix",
";",
"}"
]
|
[
"trims",
"and",
"removes",
"tags",
"from",
"the",
"given",
"line",
"the",
"removed",
"tags",
"are",
"added",
"to",
"{",
"@",
"code",
"tags",
"}"
]
| [
"private",
"string",
"process",
"line",
"(",
"string",
"line",
",",
"array",
"list",
"<",
"string",
">",
"tags",
")",
"{",
"line",
"=",
"line",
"trim",
"(",
")",
";",
"int",
"removed",
"character",
"count",
"=",
"0",
";",
"string",
"builder",
"processed",
"line",
"=",
"new",
"string",
"builder",
"(",
"line",
")",
";",
"matcher",
"matcher",
"=",
"subrip",
"tag",
"pattern",
"matcher",
"(",
"line",
")",
";",
"while",
"(",
"matcher",
"find",
"(",
")",
")",
"{",
"string",
"tag",
"=",
"matcher",
"group",
"(",
")",
";",
"tags",
"add",
"(",
"tag",
")",
";",
"int",
"start",
"=",
"matcher",
"start",
"(",
")",
"-",
"removed",
"character",
"count",
";",
"int",
"tag",
"length",
"=",
"tag",
"length",
"(",
")",
";",
"processed",
"line",
"replace",
"(",
"start",
",",
"/",
"*",
"end",
"=",
"*",
"/",
"start",
"+",
"tag",
"length",
",",
"/",
"*",
"str",
"=",
"*",
"/",
"\"",
"\"",
")",
";",
"removed",
"character",
"count",
"+",
"=",
"tag",
"length",
";",
"}",
"return",
"processed",
"line",
"to",
"string",
"(",
")",
";",
"}"
]
|
[
"visit",
"a",
"parse",
"tree",
"produced",
"by",
"the",
"{",
"@",
"code",
"show",
"columns",
"}",
"labeled",
"alternative",
"in",
"{",
"@",
"link",
"sql",
"base",
"parser",
"#",
"statement",
"}"
]
| [
"t",
"visit",
"show",
"columns",
"(",
"sql",
"base",
"parser",
"show",
"columns",
"context",
"ctx",
")",
";"
]
|
[
"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",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"map",
"number",
"'"
]
| [
"public",
"void",
"map",
"number",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"map",
"number",
"}"
]
|
[
"not",
"supported",
"<",
"b",
">",
"you",
"are",
"attempting",
"to",
"create",
"a",
"multiset",
"that",
"may",
"contain",
"a",
"non",
"-",
"{",
"@",
"code",
"comparable",
"}",
"element",
"<",
"b",
">",
"proper",
"calls",
"will",
"resolve",
"to",
"the",
"version",
"in",
"{",
"@",
"code",
"immutable",
"sorted",
"multiset",
"}",
",",
"not",
"this",
"dummy",
"version"
]
| [
"public",
"static",
"<",
"e",
">",
"immutable",
"sorted",
"multiset",
"<",
"e",
">",
"of",
"(",
"e",
"e",
"1",
",",
"e",
"e",
"2",
",",
"e",
"e",
"3",
",",
"e",
"e",
"4",
",",
"e",
"e",
"5",
",",
"e",
"e",
"6",
",",
"e",
"remaining",
")",
"{",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";",
"}"
]
|
[
"constructs",
"a",
"resource",
"name",
"from",
"the",
"canonical",
"form",
"used",
"throughout",
"android",
"(",
"{",
"@",
"code",
"[",
"<",
"pkg",
">",
":",
"]",
"<",
"type",
">",
"<",
"entry",
">",
"}",
")"
]
| [
"static",
"resource",
"name",
"parse",
"(",
"string",
"name",
")",
"{",
"matcher",
"matcher",
"=",
"fully",
"qualified",
"name",
"qualified",
"reference",
"matcher",
"(",
"name",
")",
";",
"verify",
"(",
"matcher",
"matches",
"(",
")",
",",
"\"",
"%",
"s",
"is",
"not",
"a",
"valid",
"resource",
"name",
"expected",
"%",
"s",
"\"",
",",
"name",
",",
"fully",
"qualified",
"name",
"qualified",
"reference",
")",
";",
"return",
"create",
"(",
"strings",
"null",
"to",
"empty",
"(",
"matcher",
"group",
"(",
"\"",
"package",
"\"",
")",
")",
",",
"resource",
"type",
"get",
"enum",
"(",
"matcher",
"group",
"(",
"\"",
"type",
"\"",
")",
")",
",",
"matcher",
"group",
"(",
"\"",
"name",
"\"",
")",
")",
";",
"}"
]
|
[
"get",
"map",
"map",
"string"
]
| [
"public",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"string",
">",
">",
"get",
"map",
"map",
"string",
"(",
")",
"{",
"return",
"map",
"map",
"string",
";",
"}"
]
|
[
"is",
"authorized",
"response",
"type",
"for",
"service",
"?"
]
| [
"public",
"static",
"boolean",
"is",
"authorized",
"response",
"type",
"for",
"service",
"(",
"final",
"j",
"e",
"e",
"context",
"context",
",",
"final",
"o",
"auth",
"registered",
"service",
"registered",
"service",
")",
"{",
"if",
"(",
"registered",
"service",
"get",
"supported",
"response",
"types",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"!",
"registered",
"service",
"get",
"supported",
"response",
"types",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"val",
"response",
"type",
"=",
"context",
"get",
"request",
"parameter",
"(",
"o",
"auth",
"2",
"0",
"constants",
"response",
"type",
")",
"map",
"(",
"string",
":",
":",
"value",
"of",
")",
"or",
"else",
"(",
"string",
"utils",
"empty",
")",
";",
"if",
"(",
"registered",
"service",
"get",
"supported",
"response",
"types",
"(",
")",
"stream",
"(",
")",
"any",
"match",
"(",
"s",
"-",
">",
"s",
"equals",
"ignore",
"case",
"(",
"response",
"type",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"logger",
"warn",
"(",
"\"",
"response",
"type",
"not",
"authorized",
"for",
"service",
":",
"[",
"{",
"}",
"]",
"not",
"listed",
"in",
"supported",
"response",
"types",
":",
"[",
"{",
"}",
"]",
"\"",
",",
"response",
"type",
",",
"registered",
"service",
"get",
"supported",
"response",
"types",
"(",
")",
")",
";",
"return",
"false",
";",
"}",
"logger",
"warn",
"(",
"\"",
"registered",
"service",
"[",
"{",
"}",
"]",
"does",
"not",
"define",
"any",
"authorized",
"/",
"supported",
"response",
"types",
"\"",
"+",
"\"",
"it",
"is",
"strongly",
"recommended",
"that",
"you",
"authorize",
"and",
"assign",
"response",
"types",
"to",
"the",
"service",
"definition",
"\"",
"+",
"\"",
"while",
"just",
"a",
"warning",
"for",
"now",
",",
"this",
"behavior",
"will",
"be",
"enforced",
"by",
"cas",
"in",
"future",
"versions",
"\"",
",",
"registered",
"service",
"get",
"name",
"(",
")",
")",
";",
"return",
"true",
";",
"}"
]
|
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"field",
"id",
",",
"or",
"null",
"if",
"its",
"not",
"found"
]
| [
"public",
"static",
"fields",
"find",
"by",
"thrift",
"id",
"(",
"int",
"field",
"id",
")",
"{",
"switch",
"(",
"field",
"id",
")",
"{",
"default",
":",
"return",
"null",
";",
"}",
"}"
]
|
[
"create",
"a",
"pre",
"-",
"configured",
"token",
"filter",
"that",
"may",
"not",
"vary",
"at",
"all"
]
| [
"public",
"static",
"pre",
"configured",
"token",
"filter",
"singleton",
"(",
"string",
"name",
",",
"boolean",
"use",
"filter",
"for",
"multiterm",
"queries",
",",
"function",
"<",
"token",
"stream",
",",
"token",
"stream",
">",
"create",
")",
"{",
"return",
"new",
"pre",
"configured",
"token",
"filter",
"(",
"name",
",",
"use",
"filter",
"for",
"multiterm",
"queries",
",",
"true",
",",
"caching",
"strategy",
"one",
",",
"(",
"token",
"stream",
",",
"version",
")",
"-",
">",
"create",
"apply",
"(",
"token",
"stream",
")",
")",
";",
"}"
]
|
[
"this",
"method",
"must",
"only",
"be",
"called",
"for",
"{",
"@",
"link",
"byte",
"buffer",
"}",
"s",
"that",
"were",
"allocated",
"via",
"{",
"@",
"link",
"#",
"allocate",
"direct",
"no",
"cleaner",
"(",
"int",
")",
"}"
]
| [
"public",
"static",
"void",
"free",
"direct",
"no",
"cleaner",
"(",
"byte",
"buffer",
"buffer",
")",
"{",
"assert",
"use",
"direct",
"buffer",
"no",
"cleaner",
";",
"int",
"capacity",
"=",
"buffer",
"capacity",
"(",
")",
";",
"platform",
"dependent",
"0",
"free",
"memory",
"(",
"platform",
"dependent",
"0",
"direct",
"buffer",
"address",
"(",
"buffer",
")",
")",
";",
"decrement",
"memory",
"counter",
"(",
"capacity",
")",
";",
"}"
]
|
[
"returns",
"the",
"current",
"sum",
"the",
"returned",
"value",
"is",
"not",
"an",
"atomic",
"snapshot",
";",
"invocation",
"in",
"the",
"absence",
"of",
"concurrent",
"updates",
"returns",
"an",
"accurate",
"result",
",",
"but",
"concurrent",
"updates",
"that",
"occur",
"while",
"the",
"sum",
"is",
"being",
"calculated",
"might",
"not",
"be",
"incorporated"
]
| [
"public",
"long",
"sum",
"(",
")",
"{",
"long",
"sum",
"=",
"base",
";",
"cell",
"[",
"]",
"as",
"=",
"cells",
";",
"if",
"(",
"as",
"!",
"=",
"null",
")",
"{",
"int",
"n",
"=",
"as",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"+",
"+",
"i",
")",
"{",
"cell",
"a",
"=",
"as",
"[",
"i",
"]",
";",
"if",
"(",
"a",
"!",
"=",
"null",
")",
"sum",
"+",
"=",
"a",
"value",
";",
"}",
"}",
"return",
"sum",
";",
"}"
]
|
[
"model",
"tests",
"for",
"enum",
"test"
]
| [
"public",
"void",
"test",
"enum",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"enum",
"test",
"}"
]
|
[
"create",
"an",
"{",
"@",
"link",
"amazon",
"s",
"3",
"}",
"client",
"override",
"this",
"to",
"provide",
"an",
"extended",
"version",
"of",
"the",
"client"
]
| [
"protected",
"amazon",
"s",
"3",
"new",
"amazon",
"s",
"3",
"client",
"(",
"final",
"a",
"w",
"s",
"credentials",
"provider",
"credentials",
",",
"final",
"client",
"configuration",
"aws",
"conf",
",",
"final",
"request",
"metric",
"collector",
"metrics",
",",
"final",
"string",
"endpoint",
",",
"final",
"boolean",
"path",
"style",
"access",
")",
"{",
"if",
"(",
"metrics",
"!",
"=",
"null",
")",
"{",
"log",
"debug",
"(",
"\"",
"building",
"s3",
"client",
"using",
"the",
"sdk",
"builder",
"api",
"\"",
")",
";",
"return",
"build",
"amazon",
"s",
"3",
"client",
"(",
"credentials",
",",
"aws",
"conf",
",",
"metrics",
",",
"endpoint",
",",
"path",
"style",
"access",
")",
";",
"}",
"else",
"{",
"log",
"debug",
"(",
"\"",
"building",
"s3",
"client",
"using",
"the",
"sdk",
"builder",
"api",
"\"",
")",
";",
"return",
"classic",
"amazon",
"s",
"3",
"client",
"(",
"credentials",
",",
"aws",
"conf",
",",
"endpoint",
",",
"path",
"style",
"access",
")",
";",
"}",
"}"
]
|
[
"this",
"tests",
"whether",
"timestamps",
"are",
"properly",
"extracted",
"in",
"the",
"timestamp",
"extractor",
"and",
"whether",
"watermark",
"are",
"correctly",
"forwarded",
"from",
"the",
"custom",
"watermark",
"emit",
"function"
]
| [
"public",
"void",
"test",
"timestamp",
"extractor",
"with",
"custom",
"watermark",
"emit",
"(",
")",
"throws",
"exception",
"{",
"final",
"int",
"num",
"elements",
"=",
"10",
";",
"stream",
"execution",
"environment",
"env",
"=",
"stream",
"execution",
"environment",
"get",
"execution",
"environment",
"(",
")",
";",
"env",
"get",
"config",
"(",
")",
"set",
"auto",
"watermark",
"interval",
"(",
"10",
")",
";",
"env",
"set",
"parallelism",
"(",
"1",
")",
";",
"data",
"stream",
"<",
"integer",
">",
"source",
"1",
"=",
"env",
"add",
"source",
"(",
"new",
"source",
"function",
"<",
"integer",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"source",
"context",
"<",
"integer",
">",
"ctx",
")",
"throws",
"exception",
"{",
"int",
"index",
"=",
"1",
";",
"while",
"(",
"index",
"<",
"=",
"num",
"elements",
")",
"{",
"ctx",
"collect",
"(",
"index",
")",
";",
"latch",
"await",
"(",
")",
";",
"index",
"+",
"+",
";",
"}",
"}",
"@",
"override",
"public",
"void",
"cancel",
"(",
")",
"{",
"}",
"}",
")",
";",
"source",
"1",
"assign",
"timestamps",
"and",
"watermarks",
"(",
"new",
"assigner",
"with",
"punctuated",
"watermarks",
"<",
"integer",
">",
"(",
")",
"{",
"@",
"override",
"public",
"long",
"extract",
"timestamp",
"(",
"integer",
"element",
",",
"long",
"current",
"timestamp",
")",
"{",
"return",
"element",
";",
"}",
"@",
"override",
"public",
"watermark",
"check",
"and",
"get",
"next",
"watermark",
"(",
"integer",
"element",
",",
"long",
"extracted",
"timestamp",
")",
"{",
"return",
"new",
"watermark",
"(",
"extracted",
"timestamp",
"-",
"1",
")",
";",
"}",
"}",
")",
"transform",
"(",
"\"",
"watermark",
"check",
"\"",
",",
"basic",
"type",
"info",
"int",
"type",
"info",
",",
"new",
"custom",
"operator",
"(",
"true",
")",
")",
"transform",
"(",
"\"",
"timestamp",
"check",
"\"",
",",
"basic",
"type",
"info",
"int",
"type",
"info",
",",
"new",
"timestamp",
"checking",
"operator",
"(",
")",
")",
";",
"env",
"execute",
"(",
")",
";",
"/",
"/",
"verify",
"that",
"we",
"get",
"num",
"elements",
"watermarks",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"num",
"elements",
";",
"j",
"+",
"+",
")",
"{",
"if",
"(",
"!",
"custom",
"operator",
"final",
"watermarks",
"[",
"0",
"]",
"get",
"(",
"j",
")",
"equals",
"(",
"new",
"watermark",
"(",
"j",
")",
")",
")",
"{",
"assert",
"fail",
"(",
"\"",
"wrong",
"watermark",
"\"",
")",
";",
"}",
"}",
"/",
"/",
"the",
"input",
"is",
"finite",
",",
"so",
"it",
"should",
"have",
"a",
"max",
"watermark",
"assert",
"equals",
"(",
"watermark",
"max",
"watermark",
",",
"custom",
"operator",
"final",
"watermarks",
"[",
"0",
"]",
"get",
"(",
"custom",
"operator",
"final",
"watermarks",
"[",
"0",
"]",
"size",
"(",
")",
"-",
"1",
")",
")",
";",
"}"
]
|
[
"sets",
"a",
"stub",
"parameters",
"in",
"the",
"configuration",
"of",
"this",
"contract",
"the",
"stub",
"parameters",
"are",
"accessible",
"by",
"the",
"user",
"code",
"at",
"runtime",
"parameters",
"that",
"the",
"user",
"code",
"needs",
"to",
"access",
"at",
"runtime",
"to",
"configure",
"its",
"behavior",
"are",
"typically",
"stored",
"as",
"stub",
"parameters"
]
| [
"public",
"void",
"set",
"parameter",
"(",
"string",
"key",
",",
"boolean",
"value",
")",
"{",
"this",
"parameters",
"set",
"boolean",
"(",
"key",
",",
"value",
")",
";",
"}"
]
|
[
"schedules",
"a",
"renderer",
"enable",
"action"
]
| [
"public",
"builder",
"enable",
"renderer",
"(",
"int",
"index",
")",
"{",
"return",
"apply",
"(",
"new",
"set",
"renderer",
"disabled",
"(",
"tag",
",",
"index",
",",
"false",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"(",
"minimum",
")",
"unique",
"groups",
"of",
"the",
"given",
"columns"
]
| [
"public",
"immutable",
"bit",
"set",
"get",
"unique",
"groups",
"(",
"rel",
"node",
"rel",
",",
"immutable",
"bit",
"set",
"columns",
")",
"{",
"for",
"(",
";",
";",
")",
"{",
"try",
"{",
"preconditions",
"check",
"argument",
"(",
"columns",
"!",
"=",
"null",
")",
";",
"if",
"(",
"columns",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"columns",
";",
"}",
"immutable",
"bit",
"set",
"unique",
"groups",
"=",
"unique",
"groups",
"handler",
"get",
"unique",
"groups",
"(",
"rel",
",",
"this",
",",
"columns",
")",
";",
"preconditions",
"check",
"argument",
"(",
"unique",
"groups",
"!",
"=",
"null",
"&",
"&",
"!",
"unique",
"groups",
"is",
"empty",
"(",
")",
")",
";",
"preconditions",
"check",
"argument",
"(",
"columns",
"contains",
"(",
"unique",
"groups",
")",
")",
";",
"return",
"unique",
"groups",
";",
"}",
"catch",
"(",
"janino",
"rel",
"metadata",
"provider",
"no",
"handler",
"e",
")",
"{",
"unique",
"groups",
"handler",
"=",
"revise",
"(",
"e",
"rel",
"class",
",",
"flink",
"metadata",
"unique",
"groups",
"def",
")",
";",
"}",
"}",
"}"
]
|
[
"indicates",
"whether",
"the",
"given",
"character",
"is",
"in",
"the",
"{",
"@",
"code",
"gen",
"-",
"delims",
"}",
"set"
]
| [
"protected",
"boolean",
"is",
"generic",
"delimiter",
"(",
"int",
"c",
")",
"{",
"return",
"(",
"'",
":",
"'",
"=",
"=",
"c",
"|",
"|",
"'",
"/",
"'",
"=",
"=",
"c",
"|",
"|",
"'",
"?",
"'",
"=",
"=",
"c",
"|",
"|",
"'",
"#",
"'",
"=",
"=",
"c",
"|",
"|",
"'",
"[",
"'",
"=",
"=",
"c",
"|",
"|",
"'",
"]",
"'",
"=",
"=",
"c",
"|",
"|",
"'",
"@",
"'",
"=",
"=",
"c",
")",
";",
"}"
]
|
[
"should",
"set",
"bitmap",
"into",
"incoming",
"view",
"incoming",
"view",
"is",
"guaranteed",
"not",
"null",
"<",
"br",
">",
"this",
"method",
"is",
"called",
"on",
"ui",
"thread"
]
| [
"protected",
"abstract",
"void",
"set",
"image",
"bitmap",
"into",
"(",
"bitmap",
"bitmap",
",",
"view",
"view",
")",
";"
]
|
[
"sets",
"the",
"playback",
"controls",
"timeout",
"the",
"playback",
"controls",
"are",
"automatically",
"hidden",
"after",
"this",
"duration",
"of",
"time",
"has",
"elapsed",
"without",
"user",
"input"
]
| [
"public",
"void",
"set",
"show",
"timeout",
"ms",
"(",
"int",
"show",
"timeout",
"ms",
")",
"{",
"this",
"show",
"timeout",
"ms",
"=",
"show",
"timeout",
"ms",
";",
"if",
"(",
"is",
"fully",
"visible",
"(",
")",
")",
"{",
"control",
"view",
"layout",
"manager",
"reset",
"hide",
"callbacks",
"(",
")",
";",
"}",
"}"
]
|
[
"inject",
"and",
"return",
"a",
"spy",
"on",
"a",
"storage",
"directory"
]
| [
"public",
"static",
"storage",
"directory",
"spy",
"on",
"storage",
"directory",
"(",
"storage",
"s",
",",
"int",
"idx",
")",
"{",
"storage",
"directory",
"dir",
"=",
"mockito",
"spy",
"(",
"s",
"get",
"storage",
"dir",
"(",
"idx",
")",
")",
";",
"s",
"get",
"storage",
"dirs",
"(",
")",
"set",
"(",
"idx",
",",
"dir",
")",
";",
"return",
"dir",
";",
"}"
]
|
[
"test",
"when",
"md",
"5",
"file",
"exists",
"but",
"has",
"a",
"bad",
"format"
]
| [
"public",
"void",
"test",
"verify",
"m",
"d",
"5",
"file",
"bad",
"format",
"(",
")",
"throws",
"exception",
"{",
"file",
"writer",
"writer",
"=",
"new",
"file",
"writer",
"(",
"m",
"d",
"5",
"file",
"utils",
"get",
"digest",
"file",
"for",
"file",
"(",
"test",
"file",
")",
")",
";",
"try",
"{",
"writer",
"write",
"(",
"\"",
"this",
"is",
"not",
"an",
"md",
"5",
"file",
"\"",
")",
";",
"}",
"finally",
"{",
"writer",
"close",
"(",
")",
";",
"}",
"try",
"{",
"m",
"d",
"5",
"file",
"utils",
"verify",
"saved",
"m",
"d",
"5",
"(",
"test",
"file",
",",
"test",
"md5",
")",
";",
"fail",
"(",
"\"",
"did",
"not",
"throw",
"\"",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"/",
"/",
"expected",
"}",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.