docstring_tokens
list | code_tokens
list |
---|---|
[
"post",
"pet",
"{",
"pet",
"id",
"}",
"upload",
"image",
":",
"uploads",
"an",
"image"
] | [
"default",
"response",
"entity",
"<",
"model",
"api",
"response",
">",
"upload",
"file",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"id",
"of",
"pet",
"to",
"update",
"\"",
",",
"required",
"=",
"true",
")",
"@",
"path",
"variable",
"(",
"\"",
"pet",
"id",
"\"",
")",
"long",
"pet",
"id",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"additional",
"data",
"to",
"pass",
"to",
"server",
"\"",
")",
"@",
"valid",
"@",
"request",
"part",
"(",
"value",
"=",
"\"",
"additional",
"metadata",
"\"",
",",
"required",
"=",
"false",
")",
"string",
"additional",
"metadata",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"file",
"to",
"upload",
"\"",
")",
"@",
"valid",
"@",
"request",
"part",
"(",
"value",
"=",
"\"",
"file",
"\"",
",",
"required",
"=",
"false",
")",
"multipart",
"file",
"file",
")",
"{",
"return",
"get",
"delegate",
"(",
")",
"upload",
"file",
"(",
"pet",
"id",
",",
"additional",
"metadata",
",",
"file",
")",
";",
"}"
] |
[
"this",
"benchmark",
"measures",
"the",
"ideal",
"gson",
"performance",
":",
"the",
"cost",
"of",
"parsing",
"a",
"json",
"stream",
"and",
"setting",
"object",
"values",
"by",
"reflection",
"we",
"should",
"strive",
"to",
"reduce",
"the",
"discrepancy",
"between",
"this",
"and",
"{",
"@",
"link",
"#",
"time",
"collections",
"default",
"(",
"int",
")",
"}"
] | [
"public",
"void",
"time",
"collections",
"reflection",
"streaming",
"(",
"int",
"reps",
")",
"throws",
"exception",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"reps",
";",
"+",
"+",
"i",
")",
"{",
"string",
"reader",
"reader",
"=",
"new",
"string",
"reader",
"(",
"json",
")",
";",
"json",
"reader",
"jr",
"=",
"new",
"json",
"reader",
"(",
"reader",
")",
";",
"jr",
"begin",
"array",
"(",
")",
";",
"list",
"<",
"bag",
"of",
"primitives",
">",
"bags",
"=",
"new",
"array",
"list",
"<",
"bag",
"of",
"primitives",
">",
"(",
")",
";",
"while",
"(",
"jr",
"has",
"next",
"(",
")",
")",
"{",
"jr",
"begin",
"object",
"(",
")",
";",
"bag",
"of",
"primitives",
"bag",
"=",
"new",
"bag",
"of",
"primitives",
"(",
")",
";",
"while",
"(",
"jr",
"has",
"next",
"(",
")",
")",
"{",
"string",
"name",
"=",
"jr",
"next",
"name",
"(",
")",
";",
"for",
"(",
"field",
"field",
":",
"bag",
"of",
"primitives",
"class",
"get",
"declared",
"fields",
"(",
")",
")",
"{",
"if",
"(",
"field",
"get",
"name",
"(",
")",
"equals",
"(",
"name",
")",
")",
"{",
"class",
"<",
"?",
">",
"field",
"type",
"=",
"field",
"get",
"type",
"(",
")",
";",
"if",
"(",
"field",
"type",
"equals",
"(",
"long",
"class",
")",
")",
"{",
"field",
"set",
"long",
"(",
"bag",
",",
"jr",
"next",
"long",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"field",
"type",
"equals",
"(",
"int",
"class",
")",
")",
"{",
"field",
"set",
"int",
"(",
"bag",
",",
"jr",
"next",
"int",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"field",
"type",
"equals",
"(",
"boolean",
"class",
")",
")",
"{",
"field",
"set",
"boolean",
"(",
"bag",
",",
"jr",
"next",
"boolean",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"field",
"type",
"equals",
"(",
"string",
"class",
")",
")",
"{",
"field",
"set",
"(",
"bag",
",",
"jr",
"next",
"string",
"(",
")",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"unexpected",
":",
"type",
":",
"\"",
"+",
"field",
"type",
"+",
"\"",
",",
"name",
":",
"\"",
"+",
"name",
")",
";",
"}",
"}",
"}",
"}",
"jr",
"end",
"object",
"(",
")",
";",
"bags",
"add",
"(",
"bag",
")",
";",
"}",
"jr",
"end",
"array",
"(",
")",
";",
"}",
"}"
] |
[
"returns",
"a",
"{",
"@",
"link",
"collection",
"}",
"containing",
"the",
"union",
"of",
"the",
"given",
"{",
"@",
"link",
"collection",
"}",
"s",
"the",
"cardinality",
"of",
"each",
"element",
"in",
"the",
"returned",
"{",
"@",
"link",
"collection",
"}",
"will",
"be",
"equal",
"to",
"the",
"maximum",
"of",
"the",
"cardinality",
"of",
"that",
"element",
"in",
"the",
"two",
"given",
"{",
"@",
"link",
"collection",
"}",
"s"
] | [
"public",
"static",
"collection",
"union",
"(",
"final",
"collection",
"a",
",",
"final",
"collection",
"b",
")",
"{",
"if",
"(",
"a",
"=",
"=",
"null",
"&",
"&",
"b",
"=",
"=",
"null",
")",
"return",
"new",
"array",
"list",
"(",
")",
";",
"if",
"(",
"a",
"=",
"=",
"null",
")",
"return",
"new",
"array",
"list",
"<",
"object",
">",
"(",
"b",
")",
";",
"if",
"(",
"b",
"=",
"=",
"null",
")",
"return",
"new",
"array",
"list",
"<",
"object",
">",
"(",
"a",
")",
";",
"array",
"list",
"<",
"object",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"map",
"<",
"object",
",",
"integer",
">",
"map",
"a",
"=",
"get",
"cardinality",
"map",
"(",
"a",
")",
";",
"map",
"<",
"object",
",",
"integer",
">",
"map",
"b",
"=",
"get",
"cardinality",
"map",
"(",
"b",
")",
";",
"set",
"<",
"object",
">",
"elts",
"=",
"new",
"hash",
"set",
"<",
"object",
">",
"(",
"a",
")",
";",
"elts",
"add",
"all",
"(",
"b",
")",
";",
"for",
"(",
"object",
"obj",
":",
"elts",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"m",
"=",
"math",
"max",
"(",
"get",
"freq",
"(",
"obj",
",",
"map",
"a",
")",
",",
"get",
"freq",
"(",
"obj",
",",
"map",
"b",
")",
")",
";",
"i",
"<",
"m",
";",
"i",
"+",
"+",
")",
"{",
"list",
"add",
"(",
"obj",
")",
";",
"}",
"}",
"return",
"list",
";",
"}"
] |
[
"delays",
",",
"via",
"thread",
"sleep",
",",
"for",
"the",
"given",
"millisecond",
"delay",
",",
"but",
"if",
"the",
"sleep",
"is",
"shorter",
"than",
"specified",
",",
"may",
"re",
"-",
"sleep",
"or",
"yield",
"until",
"time",
"elapses"
] | [
"static",
"void",
"delay",
"(",
"long",
"millis",
")",
"throws",
"interrupted",
"exception",
"{",
"long",
"start",
"time",
"=",
"system",
"nano",
"time",
"(",
")",
";",
"long",
"ns",
"=",
"millis",
"*",
"1000",
"*",
"1000",
";",
"for",
"(",
";",
";",
")",
"{",
"if",
"(",
"millis",
">",
"0l",
")",
"thread",
"sleep",
"(",
"millis",
")",
";",
"else",
"/",
"/",
"too",
"short",
"to",
"sleep",
"thread",
"yield",
"(",
")",
";",
"long",
"d",
"=",
"ns",
"-",
"(",
"system",
"nano",
"time",
"(",
")",
"-",
"start",
"time",
")",
";",
"if",
"(",
"d",
">",
"0l",
")",
"millis",
"=",
"d",
"/",
"(",
"1000",
"*",
"1000",
")",
";",
"else",
"break",
";",
"}",
"}"
] |
[
"this",
"method",
"is",
"called",
"by",
"the",
"{",
"@",
"link",
"registered",
"rpc",
"connection",
"}",
"when",
"the",
"registration",
"is",
"success"
] | [
"void",
"on",
"registration",
"success",
"(",
"t",
"connection",
",",
"s",
"success",
")",
";"
] |
[
"returns",
"the",
"y",
"value",
"of",
"this",
"entry"
] | [
"public",
"float",
"get",
"y",
"(",
")",
"{",
"return",
"y",
";",
"}"
] |
[
"returns",
"a",
"method",
"handle",
"to",
"normalize",
"the",
"index",
"into",
"an",
"array",
"this",
"is",
"what",
"makes",
"lists",
"and",
"arrays",
"stored",
"in",
"{",
"@",
"code",
"def",
"}",
"support",
"negative",
"offsets"
] | [
"static",
"method",
"handle",
"lookup",
"index",
"normalize",
"(",
"class",
"<",
"?",
">",
"receiver",
"class",
")",
"{",
"if",
"(",
"receiver",
"class",
"is",
"array",
"(",
")",
")",
"{",
"return",
"array",
"index",
"normalize",
"helper",
"array",
"index",
"normalizer",
"(",
"receiver",
"class",
")",
";",
"}",
"else",
"if",
"(",
"map",
"class",
"is",
"assignable",
"from",
"(",
"receiver",
"class",
")",
")",
"{",
"/",
"/",
"noop",
"so",
"that",
"mymap",
"[",
"key",
"]",
"doesn",
"'",
"t",
"do",
"funny",
"things",
"with",
"negative",
"keys",
"return",
"map",
"index",
"normalize",
";",
"}",
"else",
"if",
"(",
"list",
"class",
"is",
"assignable",
"from",
"(",
"receiver",
"class",
")",
")",
"{",
"return",
"list",
"index",
"normalize",
";",
"}",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"attempting",
"to",
"address",
"a",
"non",
"-",
"array",
"-",
"like",
"type",
"\"",
"+",
"\"",
"[",
"\"",
"+",
"receiver",
"class",
"get",
"canonical",
"name",
"(",
")",
"+",
"\"",
"]",
"as",
"an",
"array",
"\"",
")",
";",
"}"
] |
[
"convenient",
"method",
"to",
"run",
"the",
"function",
"without",
"arguments"
] | [
"public",
"int",
"run",
"(",
")",
"{",
"return",
"run",
"(",
"new",
"object",
"[",
"0",
"]",
")",
";",
"}"
] |
[
"set",
"the",
"list",
"of",
"{",
"@",
"link",
"reservation",
"allocation",
"state",
"}",
",",
"that",
"correspond",
"to",
"a",
"reservation",
"in",
"the",
"scheduler"
] | [
"public",
"abstract",
"void",
"set",
"reservation",
"allocation",
"state",
"(",
"list",
"<",
"reservation",
"allocation",
"state",
">",
"reservation",
"allocation",
"state",
")",
";"
] |
[
"return",
"the",
"managed",
"{",
"@",
"link",
"message",
"listener",
"container",
"}",
"instance",
"(",
"s",
")"
] | [
"public",
"collection",
"<",
"message",
"listener",
"container",
">",
"get",
"listener",
"containers",
"(",
")",
"{",
"return",
"collections",
"unmodifiable",
"collection",
"(",
"this",
"listener",
"containers",
"values",
"(",
")",
")",
";",
"}"
] |
[
"inverts",
"the",
"given",
"key"
] | [
"public",
"static",
"long",
"invert",
"long",
"(",
"long",
"key",
")",
"{",
"return",
"long",
"max",
"value",
"-",
"key",
";",
"}"
] |
[
"this",
"method",
"looks",
"up",
"the",
"current",
"project",
"and",
"returns",
"the",
"root",
"domain",
"folder"
] | [
"public",
"domain",
"folder",
"get",
"project",
"root",
"folder",
"(",
")",
"{",
"project",
"project",
"=",
"app",
"info",
"get",
"active",
"project",
"(",
")",
";",
"project",
"data",
"project",
"data",
"=",
"project",
"get",
"project",
"data",
"(",
")",
";",
"domain",
"folder",
"folder",
"=",
"project",
"data",
"get",
"root",
"folder",
"(",
")",
";",
"return",
"folder",
";",
"}"
] |
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"name",
",",
"or",
"null",
"if",
"its",
"not",
"found"
] | [
"public",
"static",
"fields",
"find",
"by",
"name",
"(",
"string",
"name",
")",
"{",
"return",
"by",
"name",
"get",
"(",
"name",
")",
";",
"}"
] |
[
"number",
"of",
"blocks",
"copied",
"so",
"far"
] | [
"public",
"void",
"set",
"blocks",
"copied",
"(",
"long",
"blocks",
"copied",
")",
"{",
"this",
"blocks",
"copied",
"=",
"blocks",
"copied",
";",
"}"
] |
[
"main",
"launches",
"the",
"server",
"from",
"the",
"command",
"line"
] | [
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"throws",
"i",
"o",
"exception",
",",
"interrupted",
"exception",
"{",
"if",
"(",
"args",
"length",
"<",
"3",
"|",
"|",
"args",
"length",
">",
"4",
")",
"{",
"system",
"out",
"println",
"(",
"\"",
"usage",
":",
"hello",
"world",
"server",
"tls",
"port",
"cert",
"chain",
"file",
"path",
"private",
"key",
"file",
"path",
"\"",
"+",
"\"",
"[",
"trust",
"cert",
"collection",
"file",
"path",
"]",
"\\",
"n",
"note",
":",
"you",
"only",
"need",
"to",
"supply",
"trust",
"cert",
"collection",
"file",
"path",
"if",
"you",
"want",
"\"",
"+",
"\"",
"to",
"enable",
"mutual",
"tls",
"\"",
")",
";",
"system",
"exit",
"(",
"0",
")",
";",
"}",
"final",
"hello",
"world",
"server",
"tls",
"server",
"=",
"new",
"hello",
"world",
"server",
"tls",
"(",
"integer",
"parse",
"int",
"(",
"args",
"[",
"0",
"]",
")",
",",
"args",
"[",
"1",
"]",
",",
"args",
"[",
"2",
"]",
",",
"args",
"length",
"=",
"=",
"4",
"?",
"args",
"[",
"3",
"]",
":",
"null",
")",
";",
"server",
"start",
"(",
")",
";",
"server",
"block",
"until",
"shutdown",
"(",
")",
";",
"}"
] |
[
"testing",
"that",
"canceling",
"after",
"closing",
"will",
"not",
"lead",
"to",
"an",
"exception"
] | [
"public",
"void",
"test",
"cancel",
"after",
"close",
"(",
")",
"{",
"mailbox",
"processor",
"mailbox",
"processor",
"=",
"new",
"mailbox",
"processor",
"(",
"(",
"ctx",
")",
"-",
">",
"{",
"}",
")",
";",
"mailbox",
"processor",
"close",
"(",
")",
";",
"mailbox",
"processor",
"all",
"actions",
"completed",
"(",
")",
";",
"}"
] |
[
"swap",
"the",
"linkages",
"of",
"two",
"nodes",
"in",
"a",
"tree"
] | [
"private",
"void",
"swap",
"position",
"(",
"red",
"black",
"node",
"<",
"k",
",",
"v",
">",
"x",
",",
"red",
"black",
"node",
"<",
"k",
",",
"v",
">",
"y",
")",
"{",
"/",
"/",
"save",
"initial",
"values",
"red",
"black",
"node",
"<",
"k",
",",
"v",
">",
"px",
"=",
"x",
"parent",
",",
"lx",
"=",
"x",
"left",
",",
"rx",
"=",
"x",
"right",
";",
"red",
"black",
"node",
"<",
"k",
",",
"v",
">",
"py",
"=",
"y",
"parent",
",",
"ly",
"=",
"y",
"left",
",",
"ry",
"=",
"y",
"right",
";",
"boolean",
"x",
"was",
"left",
"child",
"=",
"px",
"!",
"=",
"null",
"&",
"&",
"x",
"=",
"=",
"px",
"left",
";",
"boolean",
"y",
"was",
"left",
"child",
"=",
"py",
"!",
"=",
"null",
"&",
"&",
"y",
"=",
"=",
"py",
"left",
";",
"/",
"/",
"swap",
",",
"handling",
"special",
"cases",
"of",
"one",
"being",
"the",
"other",
"'",
"s",
"parent",
"if",
"(",
"x",
"=",
"=",
"py",
")",
"{",
"/",
"/",
"x",
"was",
"y",
"'",
"s",
"parent",
"x",
"parent",
"=",
"y",
";",
"if",
"(",
"y",
"was",
"left",
"child",
")",
"{",
"y",
"left",
"=",
"x",
";",
"y",
"right",
"=",
"rx",
";",
"}",
"else",
"{",
"y",
"right",
"=",
"x",
";",
"y",
"left",
"=",
"lx",
";",
"}",
"}",
"else",
"{",
"x",
"parent",
"=",
"py",
";",
"if",
"(",
"py",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"y",
"was",
"left",
"child",
")",
"{",
"py",
"left",
"=",
"x",
";",
"}",
"else",
"{",
"py",
"right",
"=",
"x",
";",
"}",
"}",
"y",
"left",
"=",
"lx",
";",
"y",
"right",
"=",
"rx",
";",
"}",
"if",
"(",
"y",
"=",
"=",
"px",
")",
"{",
"/",
"/",
"y",
"was",
"x",
"'",
"s",
"parent",
"y",
"parent",
"=",
"x",
";",
"if",
"(",
"x",
"was",
"left",
"child",
")",
"{",
"x",
"left",
"=",
"y",
";",
"x",
"right",
"=",
"ry",
";",
"}",
"else",
"{",
"x",
"right",
"=",
"y",
";",
"x",
"left",
"=",
"ly",
";",
"}",
"}",
"else",
"{",
"y",
"parent",
"=",
"px",
";",
"if",
"(",
"px",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"x",
"was",
"left",
"child",
")",
"{",
"px",
"left",
"=",
"y",
";",
"}",
"else",
"{",
"px",
"right",
"=",
"y",
";",
"}",
"}",
"x",
"left",
"=",
"ly",
";",
"x",
"right",
"=",
"ry",
";",
"}",
"/",
"/",
"fix",
"children",
"'",
"s",
"parent",
"pointers",
"if",
"(",
"x",
"left",
"!",
"=",
"null",
")",
"{",
"x",
"left",
"parent",
"=",
"x",
";",
"}",
"if",
"(",
"x",
"right",
"!",
"=",
"null",
")",
"{",
"x",
"right",
"parent",
"=",
"x",
";",
"}",
"if",
"(",
"y",
"left",
"!",
"=",
"null",
")",
"{",
"y",
"left",
"parent",
"=",
"y",
";",
"}",
"if",
"(",
"y",
"right",
"!",
"=",
"null",
")",
"{",
"y",
"right",
"parent",
"=",
"y",
";",
"}",
"/",
"/",
"swap",
"colors",
"red",
"black",
"node",
"node",
"color",
"c",
"=",
"x",
"color",
";",
"x",
"color",
"=",
"y",
"color",
";",
"y",
"color",
"=",
"c",
";",
"/",
"/",
"check",
"if",
"root",
"changed",
"if",
"(",
"root",
"=",
"=",
"x",
")",
"{",
"root",
"=",
"y",
";",
"}",
"else",
"if",
"(",
"root",
"=",
"=",
"y",
")",
"{",
"root",
"=",
"x",
";",
"}",
"}"
] |
[
"gets",
"the",
"size",
"of",
"the",
"cue",
"box",
"in",
"the",
"writing",
"direction",
"specified",
"as",
"a",
"fraction",
"of",
"the",
"viewport",
"size",
"in",
"that",
"direction"
] | [
"public",
"float",
"get",
"size",
"(",
")",
"{",
"return",
"size",
";",
"}"
] |
[
"get",
"cipher",
"column"
] | [
"public",
"string",
"get",
"cipher",
"column",
"(",
"final",
"string",
"logic",
"column",
")",
"{",
"return",
"columns",
"get",
"(",
"logic",
"column",
")",
"get",
"cipher",
"column",
"(",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"collect",
"services",
"to",
"match"
] | [
"protected",
"list",
"<",
"service",
">",
"collect",
"services",
"to",
"match",
"(",
"final",
"request",
"context",
"context",
",",
"final",
"string",
"ticket",
"granting",
"ticket",
"id",
")",
"{",
"val",
"services",
"to",
"match",
"=",
"new",
"array",
"list",
"<",
"service",
">",
"(",
")",
";",
"val",
"ticket",
"=",
"string",
"utils",
"is",
"not",
"blank",
"(",
"ticket",
"granting",
"ticket",
"id",
")",
"?",
"ticket",
"registry",
"support",
"get",
"ticket",
"granting",
"ticket",
"(",
"ticket",
"granting",
"ticket",
"id",
")",
":",
"null",
";",
"if",
"(",
"ticket",
"!",
"=",
"null",
")",
"{",
"services",
"to",
"match",
"add",
"all",
"(",
"ticket",
"get",
"services",
"(",
")",
"values",
"(",
")",
")",
";",
"}",
"return",
"services",
"to",
"match",
";",
"}"
] |
[
"downgrade",
"a",
"new",
"task",
"attempt",
"i",
"d",
"to",
"an",
"old",
"one"
] | [
"task",
"attempt",
"i",
"d",
"downgrade",
"(",
"org",
"apache",
"hadoop",
"mapreduce",
"task",
"attempt",
"i",
"d",
"old",
")",
"{",
"if",
"(",
"old",
"instanceof",
"task",
"attempt",
"i",
"d",
")",
"{",
"return",
"(",
"task",
"attempt",
"i",
"d",
")",
"old",
";",
"}",
"else",
"{",
"return",
"new",
"task",
"attempt",
"i",
"d",
"(",
"task",
"i",
"d",
"downgrade",
"(",
"old",
"get",
"task",
"i",
"d",
"(",
")",
")",
",",
"old",
"get",
"id",
"(",
")",
")",
";",
"}",
"}"
] |
[
"optional",
":",
"maximum",
"tls",
"protocol",
"version",
"<",
"code",
">",
"istio",
"networking",
"v",
"1alpha",
"3",
"server",
"t",
"l",
"s",
"options",
"t",
"l",
"s",
"protocol",
"max",
"protocol",
"version",
"=",
"8",
";",
"<",
"code",
">"
] | [
"public",
"builder",
"set",
"max",
"protocol",
"version",
"value",
"(",
"int",
"value",
")",
"{",
"max",
"protocol",
"version",
"=",
"value",
";",
"on",
"changed",
"(",
")",
";",
"return",
"this",
";",
"}"
] |
[
"returns",
"the",
"number",
"of",
"the",
"function",
"'",
"s",
"keyword",
"-",
"only",
"parameters",
",",
"such",
"as",
"{",
"@",
"code",
"c",
"}",
"in",
"{",
"@",
"code",
"def",
"f",
"(",
"a",
",",
"b",
",",
"c",
",",
"d",
")",
"}",
"or",
"{",
"@",
"code",
"def",
"f",
"(",
"a",
",",
",",
"c",
",",
"d",
")",
"}"
] | [
"public",
"int",
"num",
"keyword",
"only",
"params",
"(",
")",
"{",
"return",
"num",
"keyword",
"only",
"params",
";",
"}"
] |
[
"executed",
"after",
"the",
"delay",
"specified",
"with",
"{",
"@",
"link",
"timer",
"#",
"new",
"timeout",
"(",
"timer",
"task",
",",
"long",
",",
"time",
"unit",
")",
"}"
] | [
"void",
"run",
"(",
"timeout",
"timeout",
")",
"throws",
"exception",
";"
] |
[
"compute",
"the",
"bzl",
"load",
"value",
"for",
"all",
"given",
"keys",
"by",
"\"",
"inlining",
"\"",
"the",
"bzl",
"load",
"function",
"and",
"bypassing",
"traditional",
"skyframe",
"evaluation",
",",
"returning",
"{",
"@",
"code",
"null",
"}",
"if",
"skyframe",
"deps",
"were",
"missing",
"and",
"have",
"been",
"requested"
] | [
"private",
"static",
"list",
"<",
"bzl",
"load",
"value",
">",
"compute",
"bzl",
"loads",
"with",
"inlining",
"(",
"environment",
"env",
",",
"list",
"<",
"bzl",
"load",
"value",
"key",
">",
"keys",
",",
"bzl",
"load",
"function",
"bzl",
"load",
"function",
"for",
"inlining",
")",
"throws",
"interrupted",
"exception",
",",
"bzl",
"load",
"failed",
"exception",
"{",
"list",
"<",
"bzl",
"load",
"value",
">",
"bzl",
"loads",
"=",
"lists",
"new",
"array",
"list",
"with",
"expected",
"size",
"(",
"keys",
"size",
"(",
")",
")",
";",
"/",
"/",
"see",
"the",
"comment",
"about",
"the",
"desire",
"for",
"deterministic",
"graph",
"structure",
"in",
"bzl",
"load",
"function",
"for",
"the",
"/",
"/",
"motivation",
"of",
"this",
"approach",
"to",
"exception",
"handling",
"bzl",
"load",
"failed",
"exception",
"deferred",
"exception",
"=",
"null",
";",
"/",
"/",
"compute",
"bzl",
"load",
"value",
"for",
"each",
"key",
",",
"sharing",
"the",
"same",
"inlining",
"state",
",",
"i",
"e",
"cache",
"of",
"loaded",
"/",
"/",
"modules",
"this",
"ensures",
"that",
"each",
"bzl",
"is",
"loaded",
"only",
"once",
",",
"regardless",
"of",
"diamond",
"dependencies",
"/",
"/",
"or",
"cache",
"eviction",
"(",
"multiple",
"loads",
"of",
"the",
"same",
"bzl",
"would",
"screw",
"up",
"identity",
"equality",
"of",
"some",
"/",
"/",
"starlark",
"symbols",
"-",
"-",
"see",
"comments",
"in",
"bzl",
"load",
"function",
"#",
"compute",
"inline",
")",
"bzl",
"load",
"function",
"inlining",
"state",
"inlining",
"state",
"=",
"bzl",
"load",
"function",
"inlining",
"state",
"create",
"(",
")",
";",
"for",
"(",
"bzl",
"load",
"value",
"key",
"key",
":",
"keys",
")",
"{",
"sky",
"value",
"sky",
"value",
";",
"try",
"{",
"/",
"/",
"will",
"complete",
"right",
"away",
"if",
"this",
"key",
"has",
"been",
"seen",
"before",
"in",
"inlining",
"state",
"-",
"-",
"regardless",
"/",
"/",
"of",
"whether",
"it",
"was",
"evaluated",
"successfully",
",",
"had",
"missing",
"deps",
",",
"or",
"was",
"found",
"to",
"be",
"in",
"error",
"sky",
"value",
"=",
"bzl",
"load",
"function",
"for",
"inlining",
"compute",
"inline",
"(",
"key",
",",
"env",
",",
"inlining",
"state",
")",
";",
"}",
"catch",
"(",
"bzl",
"load",
"failed",
"exception",
"e",
")",
"{",
"if",
"(",
"deferred",
"exception",
"=",
"=",
"null",
")",
"{",
"deferred",
"exception",
"=",
"e",
";",
"}",
"continue",
";",
"}",
"if",
"(",
"sky",
"value",
"!",
"=",
"null",
")",
"{",
"bzl",
"loads",
"add",
"(",
"(",
"bzl",
"load",
"value",
")",
"sky",
"value",
")",
";",
"}",
"/",
"/",
"a",
"null",
"value",
"for",
"`",
"sky",
"value",
"`",
"can",
"occur",
"when",
"it",
"(",
"or",
"its",
"transitive",
"loads",
")",
"has",
"a",
"skyframe",
"dep",
"/",
"/",
"that",
"is",
"missing",
"or",
"in",
"error",
"it",
"can",
"also",
"occur",
"if",
"there",
"'",
"s",
"a",
"transitive",
"load",
"on",
"a",
"bzl",
"that",
"/",
"/",
"was",
"already",
"seen",
"by",
"inlining",
"state",
"and",
"which",
"returned",
"null",
"in",
"both",
"these",
"cases",
",",
"we",
"want",
"to",
"/",
"/",
"continue",
"making",
"our",
"inline",
"calls",
",",
"so",
"as",
"to",
"maximize",
"the",
"number",
"of",
"dependent",
"(",
"non",
"-",
"inlined",
")",
"/",
"/",
"sky",
"functions",
"that",
"are",
"requested",
"and",
"avoid",
"a",
"quadratic",
"number",
"of",
"restarts",
"}",
"if",
"(",
"deferred",
"exception",
"!",
"=",
"null",
")",
"{",
"throw",
"deferred",
"exception",
";",
"}",
"return",
"env",
"values",
"missing",
"(",
")",
"?",
"null",
":",
"bzl",
"loads",
";",
"}"
] |
[
"list",
"all",
"pending",
"uploads",
"to",
"the",
"destination",
"fs",
"under",
"a",
"path"
] | [
"public",
"list",
"<",
"multipart",
"upload",
">",
"list",
"pending",
"uploads",
"under",
"path",
"(",
"path",
"dest",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"fs",
"list",
"multipart",
"uploads",
"(",
"fs",
"path",
"to",
"key",
"(",
"dest",
")",
")",
";",
"}"
] |
[
"set",
"the",
"type",
"of",
"annotation",
"that",
"is",
"checked",
"for",
"by",
"this",
"{",
"@",
"code",
"annotation",
"scope",
"metadata",
"resolver",
"}"
] | [
"public",
"void",
"set",
"scope",
"annotation",
"type",
"(",
"class",
"<",
"?",
"extends",
"annotation",
">",
"scope",
"annotation",
"type",
")",
"{",
"assert",
"not",
"null",
"(",
"scope",
"annotation",
"type",
",",
"\"",
"'",
"scope",
"annotation",
"type",
"'",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"this",
"scope",
"annotation",
"type",
"=",
"scope",
"annotation",
"type",
";",
"}"
] |
[
"create",
"a",
"synthetic",
"successful",
"response",
"with",
"an",
"http",
"status",
"code",
"of",
"{",
"@",
"code",
"code",
"}",
"and",
"{",
"@",
"code",
"body",
"}",
"as",
"the",
"deserialized",
"body"
] | [
"public",
"static",
"<",
"t",
">",
"response",
"<",
"t",
">",
"success",
"(",
"int",
"code",
",",
"@",
"nullable",
"t",
"body",
")",
"{",
"if",
"(",
"code",
"<",
"200",
"|",
"|",
"code",
">",
"=",
"300",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"code",
"<",
"200",
"or",
">",
"=",
"300",
":",
"\"",
"+",
"code",
")",
";",
"}",
"return",
"success",
"(",
"body",
",",
"new",
"okhttp",
"3",
"response",
"builder",
"(",
")",
"/",
"/",
"code",
"(",
"code",
")",
"message",
"(",
"\"",
"response",
"success",
"(",
")",
"\"",
")",
"protocol",
"(",
"protocol",
"http",
"1",
"1",
")",
"request",
"(",
"new",
"request",
"builder",
"(",
")",
"url",
"(",
"\"",
"http",
":",
"/",
"/",
"localhost",
"/",
"\"",
")",
"build",
"(",
")",
")",
"build",
"(",
")",
")",
";",
"}"
] |
[
"connect",
"to",
"the",
"remote",
"peer"
] | [
"protected",
"boolean",
"do",
"connect",
"(",
"socket",
"address",
"remote",
"address",
",",
"socket",
"address",
"local",
"address",
")",
"throws",
"exception",
"{",
"if",
"(",
"local",
"address",
"instanceof",
"inet",
"socket",
"address",
")",
"{",
"check",
"resolvable",
"(",
"(",
"inet",
"socket",
"address",
")",
"local",
"address",
")",
";",
"}",
"inet",
"socket",
"address",
"remote",
"socket",
"addr",
"=",
"remote",
"address",
"instanceof",
"inet",
"socket",
"address",
"?",
"(",
"inet",
"socket",
"address",
")",
"remote",
"address",
":",
"null",
";",
"if",
"(",
"remote",
"socket",
"addr",
"!",
"=",
"null",
")",
"{",
"check",
"resolvable",
"(",
"remote",
"socket",
"addr",
")",
";",
"}",
"if",
"(",
"remote",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"check",
"if",
"already",
"connected",
"before",
"trying",
"to",
"connect",
"this",
"is",
"needed",
"as",
"connect",
"(",
")",
"will",
"not",
"return",
"-",
"1",
"/",
"/",
"and",
"set",
"errno",
"to",
"eisconn",
"if",
"a",
"previous",
"connect",
"(",
")",
"attempt",
"was",
"setting",
"errno",
"to",
"einprogress",
"and",
"finished",
"/",
"/",
"later",
"throw",
"new",
"already",
"connected",
"exception",
"(",
")",
";",
"}",
"if",
"(",
"local",
"address",
"!",
"=",
"null",
")",
"{",
"socket",
"bind",
"(",
"local",
"address",
")",
";",
"}",
"boolean",
"connected",
"=",
"do",
"connect",
"0",
"(",
"remote",
"address",
")",
";",
"if",
"(",
"connected",
")",
"{",
"remote",
"=",
"remote",
"socket",
"addr",
"=",
"=",
"null",
"?",
"remote",
"address",
":",
"compute",
"remote",
"addr",
"(",
"remote",
"socket",
"addr",
",",
"socket",
"remote",
"address",
"(",
")",
")",
";",
"}",
"/",
"/",
"we",
"always",
"need",
"to",
"set",
"the",
"local",
"address",
"even",
"if",
"not",
"connected",
"yet",
"as",
"the",
"bind",
"already",
"took",
"place",
"/",
"/",
"/",
"/",
"see",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"netty",
"/",
"netty",
"/",
"issues",
"/",
"3463",
"local",
"=",
"socket",
"local",
"address",
"(",
")",
";",
"return",
"connected",
";",
"}"
] |
[
"compare",
"two",
"link",
"args",
"objects",
",",
"such",
"that",
"objects",
"with",
"the",
"same",
"terminal",
"source",
"path",
"components",
"are",
"grouped",
"together"
] | [
"public",
"int",
"compare",
"(",
"link",
"args",
"a",
",",
"link",
"args",
"b",
")",
"{",
"return",
"comparison",
"chain",
"start",
"(",
")",
"compare",
"(",
"a",
"src",
"get",
"name",
"(",
")",
",",
"b",
"src",
"get",
"name",
"(",
")",
")",
"compare",
"(",
"a",
"src",
",",
"b",
"src",
")",
"compare",
"(",
"a",
"dst",
",",
"b",
"dst",
")",
"result",
"(",
")",
";",
"}"
] |
[
"delete",
"file",
"or",
"directory",
"see",
"{",
"@",
"link",
"client",
"protocol",
"#",
"delete",
"(",
"string",
",",
"boolean",
")",
"}"
] | [
"public",
"boolean",
"delete",
"(",
"string",
"src",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"open",
"(",
")",
";",
"return",
"delete",
"(",
"src",
",",
"true",
")",
";",
"}"
] |
[
"returns",
"the",
"number",
"of",
"milli",
"-",
"seconds",
"the",
"currently",
"executing",
"job",
"spent",
"in",
"the",
"queue",
"waiting",
"for",
"an",
"available",
"executor",
"this",
"excludes",
"the",
"quiet",
"period",
"time",
"of",
"the",
"job"
] | [
"public",
"long",
"get",
"time",
"spent",
"in",
"queue",
"(",
")",
"{",
"lock",
"read",
"lock",
"(",
")",
"lock",
"(",
")",
";",
"try",
"{",
"return",
"start",
"time",
"-",
"work",
"unit",
"context",
"item",
"buildable",
"start",
"milliseconds",
";",
"}",
"finally",
"{",
"lock",
"read",
"lock",
"(",
")",
"unlock",
"(",
")",
";",
"}",
"}"
] |
[
"waits",
"for",
"the",
"command",
"to",
"reach",
"a",
"stopping",
"point",
"to",
"check",
"if",
"it",
"has",
"finished",
"or",
"not"
] | [
"private",
"void",
"synchronize",
"with",
"command",
"(",
")",
"throws",
"interrupted",
"exception",
",",
"broken",
"barrier",
"exception",
"{",
"/",
"/",
"if",
"the",
"future",
"is",
"already",
"done",
",",
"no",
"need",
"to",
"wait",
"at",
"the",
"barrier",
"-",
"we",
"already",
"know",
"the",
"state",
"if",
"(",
"result",
"is",
"done",
"(",
")",
")",
"{",
"/",
"/",
"but",
"if",
"the",
"command",
"thread",
"is",
"waiting",
"on",
"the",
"barrier",
",",
"tell",
"it",
"to",
"stop",
"doing",
"so",
"barrier",
"reset",
"(",
")",
";",
"return",
";",
"}",
"/",
"/",
"offer",
"the",
"sentinel",
"to",
"the",
"queue",
"-",
"if",
"the",
"command",
"is",
"still",
"waiting",
"and",
"it",
"sees",
"the",
"sentinel",
",",
"/",
"/",
"it",
"will",
"go",
"to",
"the",
"barrier",
"detailed",
"code",
"queue",
"offer",
"(",
"sentinel",
")",
";",
"/",
"/",
"then",
"wait",
"for",
"the",
"command",
"to",
"finish",
"processing",
"barrier",
"await",
"(",
")",
";",
"}"
] |
[
"remove",
"the",
"number",
"of",
"{",
"@",
"link",
"byte",
"buf",
"}",
"s",
"starting",
"from",
"the",
"given",
"index"
] | [
"public",
"composite",
"byte",
"buf",
"remove",
"components",
"(",
"int",
"c",
"index",
",",
"int",
"num",
"components",
")",
"{",
"check",
"component",
"index",
"(",
"c",
"index",
",",
"num",
"components",
")",
";",
"if",
"(",
"num",
"components",
"=",
"=",
"0",
")",
"{",
"return",
"this",
";",
"}",
"int",
"end",
"index",
"=",
"c",
"index",
"+",
"num",
"components",
";",
"boolean",
"needs",
"update",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"c",
"index",
";",
"i",
"<",
"end",
"index",
";",
"+",
"+",
"i",
")",
"{",
"component",
"c",
"=",
"components",
"[",
"i",
"]",
";",
"if",
"(",
"c",
"length",
"(",
")",
">",
"0",
")",
"{",
"needs",
"update",
"=",
"true",
";",
"}",
"if",
"(",
"last",
"accessed",
"=",
"=",
"c",
")",
"{",
"last",
"accessed",
"=",
"null",
";",
"}",
"c",
"free",
"(",
")",
";",
"}",
"remove",
"comp",
"range",
"(",
"c",
"index",
",",
"end",
"index",
")",
";",
"if",
"(",
"needs",
"update",
")",
"{",
"/",
"/",
"only",
"need",
"to",
"call",
"update",
"component",
"offsets",
"if",
"the",
"length",
"was",
">",
"0",
"update",
"component",
"offsets",
"(",
"c",
"index",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
[
"set",
"node",
"label",
"expression",
"of",
"this",
"resource",
"request",
"now",
"only",
"support",
"specifying",
"a",
"single",
"node",
"label",
"in",
"the",
"future",
"we",
"will",
"support",
"more",
"complex",
"node",
"label",
"expression",
"specification",
"like",
"{",
"@",
"code",
"and",
"(",
"&",
"&",
")",
",",
"or",
"(",
"|",
"|",
")",
"}",
",",
"etc",
"any",
"please",
"note",
"that",
"node",
"label",
"expression",
"now",
"can",
"only",
"take",
"effect",
"when",
"the",
"resource",
"request",
"has",
"resource",
"name",
"=",
"any"
] | [
"public",
"abstract",
"void",
"set",
"node",
"label",
"expression",
"(",
"string",
"nodelabel",
"expression",
")",
";"
] |
[
"verifies",
"whether",
"a",
"given",
"{",
"@",
"code",
"repeat",
"mode",
"}",
"is",
"enabled",
"in",
"the",
"bitmask",
"{",
"@",
"code",
"enabled",
"modes",
"}"
] | [
"public",
"static",
"boolean",
"is",
"repeat",
"mode",
"enabled",
"(",
"@",
"player",
"repeat",
"mode",
"int",
"repeat",
"mode",
",",
"int",
"enabled",
"modes",
")",
"{",
"switch",
"(",
"repeat",
"mode",
")",
"{",
"case",
"player",
"repeat",
"mode",
"off",
":",
"return",
"true",
";",
"case",
"player",
"repeat",
"mode",
"one",
":",
"return",
"(",
"enabled",
"modes",
"&",
"repeat",
"toggle",
"mode",
"one",
")",
"!",
"=",
"0",
";",
"case",
"player",
"repeat",
"mode",
"all",
":",
"return",
"(",
"enabled",
"modes",
"&",
"repeat",
"toggle",
"mode",
"all",
")",
"!",
"=",
"0",
";",
"default",
":",
"return",
"false",
";",
"}",
"}"
] |
[
"stores",
"a",
"long",
"value",
"in",
"the",
"table",
"at",
"the",
"given",
"row",
"and",
"column",
"note",
"-",
"all",
"values",
"in",
"a",
"given",
"column",
"must",
"be",
"of",
"the",
"same",
"type"
] | [
"public",
"void",
"put",
"long",
"(",
"int",
"row",
",",
"int",
"col",
",",
"long",
"value",
")",
"{",
"if",
"(",
"col",
">",
"=",
"data",
"columns",
"length",
")",
"{",
"grow",
"table",
"(",
"col",
"+",
"1",
")",
";",
"}",
"long",
"array",
"la",
"=",
"null",
";",
"if",
"(",
"data",
"columns",
"[",
"col",
"]",
"=",
"=",
"null",
")",
"{",
"la",
"=",
"new",
"long",
"array",
"(",
")",
";",
"data",
"columns",
"[",
"col",
"]",
"=",
"la",
";",
"}",
"else",
"{",
"la",
"=",
"(",
"long",
"array",
")",
"data",
"columns",
"[",
"col",
"]",
";",
"}",
"la",
"put",
"(",
"row",
",",
"value",
")",
";",
"}"
] |
[
"return",
"the",
"name",
"of",
"the",
"default",
"theme"
] | [
"public",
"string",
"get",
"default",
"theme",
"name",
"(",
")",
"{",
"return",
"this",
"default",
"theme",
"name",
";",
"}"
] |
[
"simulate",
"pressing",
"many",
"keys",
"at",
"once",
"in",
"a",
"\"",
"chord",
"\"",
"takes",
"a",
"sequence",
"of",
"keys",
"xxxx",
"or",
"strings",
";",
"appends",
"each",
"of",
"the",
"values",
"to",
"a",
"string",
",",
"and",
"adds",
"the",
"chord",
"termination",
"key",
"(",
"keys",
"null",
")",
"and",
"returns",
"the",
"resultant",
"string",
"note",
":",
"when",
"the",
"low",
"-",
"level",
"webdriver",
"key",
"handlers",
"see",
"keys",
"null",
",",
"active",
"modifier",
"keys",
"(",
"c",
"t",
"r",
"l",
"a",
"l",
"t",
"s",
"h",
"i",
"f",
"tetc",
")",
"release",
"via",
"a",
"keyup",
"event"
] | [
"public",
"static",
"string",
"chord",
"(",
"char",
"sequence",
"value",
")",
"{",
"return",
"chord",
"(",
"arrays",
"as",
"list",
"(",
"value",
")",
")",
";",
"}"
] |
[
"overridden",
"in",
"order",
"to",
"set",
"the",
"column",
"header",
"renderer",
"on",
"newly",
"created",
"columns"
] | [
"public",
"void",
"create",
"default",
"columns",
"from",
"model",
"(",
")",
"{",
"table",
"model",
"table",
"model",
"=",
"get",
"model",
"(",
")",
";",
"if",
"(",
"table",
"model",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"table",
"column",
"model",
"cm",
"=",
"get",
"column",
"model",
"(",
")",
";",
"if",
"(",
"!",
"(",
"cm",
"instanceof",
"g",
"table",
"column",
"model",
")",
")",
"{",
"/",
"/",
"some",
"tables",
"do",
"not",
"use",
"dynamic",
"column",
"super",
"create",
"default",
"columns",
"from",
"model",
"(",
")",
";",
"return",
";",
"}",
"/",
"/",
"disable",
"the",
"column",
"model",
"updates",
"here",
",",
"as",
"we",
"know",
"that",
"the",
"removal",
"and",
"adding",
"of",
"/",
"/",
"columns",
"we",
"are",
"about",
"to",
"do",
"will",
"trigger",
"copious",
"update",
"events",
"restore",
"when",
"done",
"/",
"/",
"this",
"helps",
"prevent",
"flashing",
"of",
"columns",
"as",
"they",
"are",
"added",
"and",
"removed",
"g",
"table",
"column",
"model",
"table",
"column",
"model",
"=",
"(",
"g",
"table",
"column",
"model",
")",
"get",
"column",
"model",
"(",
")",
";",
"boolean",
"was",
"enabled",
"=",
"table",
"column",
"model",
"set",
"events",
"enabled",
"(",
"false",
")",
";",
"remove",
"all",
"columns",
"(",
")",
";",
"/",
"/",
"create",
"new",
"columns",
"from",
"the",
"model",
"int",
"column",
"count",
"=",
"table",
"model",
"get",
"column",
"count",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"column",
"count",
";",
"i",
"+",
"+",
")",
"{",
"table",
"column",
"new",
"column",
"=",
"new",
"table",
"column",
"(",
"i",
")",
";",
"initial",
"table",
"column",
"size",
"(",
"new",
"column",
",",
"table",
"model",
",",
"i",
")",
";",
"new",
"column",
"set",
"header",
"renderer",
"(",
"new",
"g",
"table",
"header",
"renderer",
"(",
")",
")",
";",
"add",
"column",
"(",
"new",
"column",
")",
";",
"}",
"table",
"column",
"model",
"set",
"events",
"enabled",
"(",
"was",
"enabled",
")",
";",
"}"
] |
[
"the",
"sink",
"node",
"making",
"the",
"request",
"<",
"code",
">",
"istio",
"mcp",
"v",
"1alpha",
"1",
"sink",
"node",
"sink",
"node",
"=",
"2",
";",
"<",
"code",
">"
] | [
"public",
"builder",
"set",
"sink",
"node",
"(",
"com",
"alibaba",
"nacos",
"istio",
"model",
"mcp",
"sink",
"node",
"value",
")",
"{",
"if",
"(",
"sink",
"node",
"builder",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"sink",
"node",
"=",
"value",
";",
"on",
"changed",
"(",
")",
";",
"}",
"else",
"{",
"sink",
"node",
"builder",
"set",
"message",
"(",
"value",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
[
"all",
"input",
"and",
"output",
"parameters",
"must",
"have",
"a",
"unique",
"index",
"order",
"them",
"so",
"that",
"inputs",
"come",
"first",
",",
"then",
"outputs"
] | [
"protected",
"void",
"order",
"parameters",
"(",
")",
"{",
"int",
"id",
"=",
"0",
";",
"for",
"(",
"inject",
"parameter",
"element",
":",
"inputlist",
")",
"{",
"element",
"set",
"index",
"(",
"id",
")",
";",
"id",
"+",
"=",
"1",
";",
"}",
"for",
"(",
"inject",
"parameter",
"element",
":",
"output",
")",
"{",
"element",
"set",
"index",
"(",
"id",
")",
";",
"id",
"+",
"=",
"1",
";",
"}",
"}"
] |
[
"map",
"the",
"route",
"for",
"http",
"put",
"requests"
] | [
"public",
"void",
"put",
"(",
"string",
"path",
",",
"string",
"accept",
"type",
",",
"route",
"route",
")",
"{",
"add",
"route",
"(",
"http",
"method",
"put",
",",
"create",
"route",
"impl",
"(",
"path",
",",
"accept",
"type",
",",
"route",
")",
")",
";",
"}"
] |
[
"for",
"testing",
"what",
"'",
"s",
"in",
"moving",
"window",
"buffer",
"into",
"data",
"stream",
"from",
"0",
"p",
"-",
"1",
"have",
"been",
"consume"
] | [
"protected",
"list",
"<",
"?",
"extends",
"token",
">",
"get",
"buffer",
"(",
")",
"{",
"if",
"(",
"n",
"=",
"=",
"0",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}",
"return",
"arrays",
"as",
"list",
"(",
"tokens",
")",
"sub",
"list",
"(",
"0",
",",
"n",
")",
";",
"}"
] |
[
"fire",
"the",
"tree",
"selection",
"plugin",
"event"
] | [
"private",
"void",
"fire",
"selection",
"event",
"(",
")",
"{",
"group",
"path",
"[",
"]",
"group",
"paths",
"=",
"get",
"selected",
"group",
"paths",
"(",
")",
";",
"plugin",
"fire",
"plugin",
"event",
"(",
"new",
"tree",
"selection",
"plugin",
"event",
"(",
"plugin",
"get",
"name",
"(",
")",
",",
"get",
"tree",
"name",
"(",
")",
",",
"group",
"paths",
")",
")",
";",
"}"
] |
[
"returns",
"type",
"conversion",
"classes",
"that",
"converts",
"between",
"a",
"desugar",
"-",
"shadowed",
"type",
"and",
"its",
"deusgar",
"-",
"mirrored",
"counterpart"
] | [
"public",
"immutable",
"list",
"<",
"class",
"name",
">",
"get",
"type",
"converters",
"(",
")",
"{",
"return",
"stream",
"concat",
"(",
"invocation",
"adapter",
"sites",
"inline",
"conversions",
"(",
")",
"stream",
"(",
")",
",",
"invocation",
"adapter",
"sites",
"adapter",
"replacements",
"(",
")",
"stream",
"(",
")",
")",
"flat",
"map",
"(",
"site",
"-",
">",
"stream",
"concat",
"(",
"stream",
"of",
"(",
"site",
"return",
"type",
"name",
"(",
")",
")",
",",
"site",
"argument",
"type",
"names",
"(",
")",
"stream",
"(",
")",
")",
")",
"filter",
"(",
"class",
"name",
":",
":",
"is",
"desugar",
"shadowed",
"type",
")",
"distinct",
"(",
")",
"map",
"(",
"class",
"name",
":",
":",
"type",
"converter",
"owner",
")",
"collect",
"(",
"to",
"immutable",
"list",
"(",
")",
")",
";",
"}"
] |
[
"adds",
"an",
"environment",
"group",
"to",
"the",
"package"
] | [
"void",
"add",
"environment",
"group",
"(",
"string",
"name",
",",
"list",
"<",
"label",
">",
"environments",
",",
"list",
"<",
"label",
">",
"defaults",
",",
"event",
"handler",
"event",
"handler",
",",
"location",
"location",
")",
"throws",
"name",
"conflict",
"exception",
",",
"label",
"syntax",
"exception",
"{",
"if",
"(",
"has",
"duplicate",
"labels",
"(",
"environments",
",",
"name",
",",
"\"",
"environments",
"\"",
",",
"location",
",",
"event",
"handler",
")",
"|",
"|",
"has",
"duplicate",
"labels",
"(",
"defaults",
",",
"name",
",",
"\"",
"defaults",
"\"",
",",
"location",
",",
"event",
"handler",
")",
")",
"{",
"set",
"contains",
"errors",
"(",
")",
";",
"return",
";",
"}",
"environment",
"group",
"group",
"=",
"new",
"environment",
"group",
"(",
"create",
"label",
"(",
"name",
")",
",",
"pkg",
",",
"environments",
",",
"defaults",
",",
"location",
")",
";",
"target",
"existing",
"=",
"targets",
"get",
"(",
"group",
"get",
"name",
"(",
")",
")",
";",
"if",
"(",
"existing",
"!",
"=",
"null",
")",
"{",
"throw",
"name",
"conflict",
"(",
"group",
",",
"existing",
")",
";",
"}",
"targets",
"put",
"(",
"group",
"get",
"name",
"(",
")",
",",
"group",
")",
";",
"/",
"/",
"invariant",
":",
"once",
"group",
"is",
"inserted",
"into",
"targets",
",",
"it",
"must",
"also",
":",
"/",
"/",
"(",
"a",
")",
"be",
"inserted",
"into",
"environment",
"groups",
",",
"or",
"/",
"/",
"(",
"b",
")",
"have",
"its",
"group",
"process",
"member",
"environments",
"called",
"/",
"/",
"otherwise",
"it",
"will",
"remain",
"uninitialized",
",",
"/",
"/",
"causing",
"crashes",
"when",
"it",
"is",
"later",
"to",
"string",
"-",
"ed",
"for",
"(",
"event",
"error",
":",
"group",
"validate",
"membership",
"(",
")",
")",
"{",
"event",
"handler",
"handle",
"(",
"error",
")",
";",
"set",
"contains",
"errors",
"(",
")",
";",
"}",
"/",
"/",
"for",
"each",
"declared",
"environment",
",",
"make",
"sure",
"it",
"doesn",
"'",
"t",
"also",
"belong",
"to",
"some",
"other",
"group",
"for",
"(",
"label",
"environment",
":",
"group",
"get",
"environments",
"(",
")",
")",
"{",
"environment",
"group",
"other",
"group",
"=",
"environment",
"groups",
"get",
"(",
"environment",
")",
";",
"if",
"(",
"other",
"group",
"!",
"=",
"null",
")",
"{",
"event",
"handler",
"handle",
"(",
"error",
"(",
"location",
",",
"string",
"format",
"(",
"\"",
"environment",
"%",
"s",
"belongs",
"to",
"both",
"%",
"s",
"and",
"%",
"s",
"\"",
",",
"environment",
",",
"group",
"get",
"label",
"(",
")",
",",
"other",
"group",
"get",
"label",
"(",
")",
")",
",",
"code",
"environment",
"in",
"multiple",
"groups",
")",
")",
";",
"set",
"contains",
"errors",
"(",
")",
";",
"/",
"/",
"ensure",
"the",
"orphan",
"gets",
"(",
"trivially",
")",
"initialized",
"group",
"process",
"member",
"environments",
"(",
"immutable",
"map",
"of",
"(",
")",
")",
";",
"}",
"else",
"{",
"environment",
"groups",
"put",
"(",
"environment",
",",
"group",
")",
";",
"}",
"}",
"}"
] |
[
"read",
"lenenc",
"integer",
"from",
"byte",
"buffers"
] | [
"public",
"long",
"read",
"int",
"lenenc",
"(",
")",
"{",
"int",
"first",
"byte",
"=",
"read",
"int",
"1",
"(",
")",
";",
"if",
"(",
"first",
"byte",
"<",
"0xfb",
")",
"{",
"return",
"first",
"byte",
";",
"}",
"if",
"(",
"0xfb",
"=",
"=",
"first",
"byte",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"0xfc",
"=",
"=",
"first",
"byte",
")",
"{",
"return",
"read",
"int",
"2",
"(",
")",
";",
"}",
"if",
"(",
"0xfd",
"=",
"=",
"first",
"byte",
")",
"{",
"return",
"read",
"int",
"3",
"(",
")",
";",
"}",
"return",
"byte",
"buf",
"read",
"long",
"l",
"e",
"(",
")",
";",
"}"
] |
[
"number",
"of",
"data",
"points",
"(",
"processed",
"record",
"count",
"the",
"number",
"of",
"analysed",
"fields",
")",
"processed",
"by",
"this",
"job",
"this",
"count",
"does",
"not",
"include",
"the",
"time",
"field"
] | [
"public",
"long",
"get",
"processed",
"field",
"count",
"(",
")",
"{",
"return",
"processed",
"field",
"count",
";",
"}"
] |
[
"called",
"from",
"request",
"variable",
"shutdown",
"(",
")",
"to",
"unschedule",
"the",
"task"
] | [
"public",
"void",
"shutdown",
"(",
")",
"{",
"request",
"batch",
"<",
"batch",
"return",
"type",
",",
"response",
"type",
",",
"request",
"argument",
"type",
">",
"current",
"batch",
"=",
"batch",
"get",
"and",
"set",
"(",
"null",
")",
";",
"if",
"(",
"current",
"batch",
"!",
"=",
"null",
")",
"{",
"current",
"batch",
"shutdown",
"(",
")",
";",
"}",
"if",
"(",
"timer",
"listener",
"reference",
"get",
"(",
")",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"if",
"the",
"timer",
"was",
"started",
"we",
"'",
"ll",
"clear",
"it",
"so",
"it",
"stops",
"ticking",
"timer",
"listener",
"reference",
"get",
"(",
")",
"clear",
"(",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"index",
"for",
"which",
"{",
"@",
"link",
"#",
"key",
"at",
"}",
"would",
"return",
"the",
"specified",
"key",
",",
"or",
"a",
"negative",
"number",
"if",
"the",
"specified",
"key",
"is",
"not",
"mapped"
] | [
"public",
"int",
"index",
"of",
"key",
"(",
"int",
"key",
")",
"{",
"return",
"binary",
"search",
"(",
"m",
"keys",
",",
"m",
"size",
",",
"key",
")",
";",
"}"
] |
[
"returns",
"a",
"class",
"that",
"shares",
"the",
"same",
"enclosing",
"package",
"or",
"class",
"if",
"this",
"class",
"is",
"enclosed",
"by",
"another",
"class",
",",
"this",
"is",
"equivalent",
"to",
"{",
"@",
"code",
"enclosing",
"class",
"name",
"(",
")",
"nested",
"class",
"(",
"name",
")",
"}",
"otherwise",
"it",
"is",
"equivalent",
"to",
"{",
"@",
"code",
"get",
"(",
"package",
"name",
"(",
")",
",",
"name",
")",
"}"
] | [
"public",
"class",
"name",
"peer",
"class",
"(",
"string",
"name",
")",
"{",
"return",
"new",
"class",
"name",
"(",
"package",
"name",
",",
"enclosing",
"class",
"name",
",",
"name",
")",
";",
"}"
] |
[
"same",
"as",
"get",
"u",
"g",
"i",
"(",
"null",
",",
"request",
",",
"conf",
")"
] | [
"public",
"static",
"user",
"group",
"information",
"get",
"u",
"g",
"i",
"(",
"http",
"servlet",
"request",
"request",
",",
"configuration",
"conf",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"get",
"u",
"g",
"i",
"(",
"null",
",",
"request",
",",
"conf",
")",
";",
"}"
] |
[
"periodically",
"check",
"and",
"wait",
"for",
"any",
"threads",
"whose",
"name",
"match",
"the",
"given",
"regular",
"expression"
] | [
"public",
"static",
"void",
"wait",
"for",
"thread",
"termination",
"(",
"string",
"regex",
",",
"int",
"check",
"every",
"millis",
",",
"final",
"int",
"wait",
"for",
"millis",
")",
"throws",
"timeout",
"exception",
",",
"interrupted",
"exception",
"{",
"final",
"pattern",
"pattern",
"=",
"pattern",
"compile",
"(",
"regex",
")",
";",
"wait",
"for",
"(",
"new",
"supplier",
"<",
"boolean",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"get",
"(",
")",
"{",
"return",
"!",
"any",
"thread",
"matching",
"(",
"pattern",
")",
";",
"}",
"}",
",",
"check",
"every",
"millis",
",",
"wait",
"for",
"millis",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"{",
"@",
"code",
"removal",
"notification",
"}",
"for",
"the",
"given",
"{",
"@",
"code",
"key",
"}",
"{",
"@",
"code",
"value",
"}",
"pair",
",",
"with",
"the",
"given",
"{",
"@",
"code",
"cause",
"}",
"for",
"the",
"removal",
"the",
"{",
"@",
"code",
"key",
"}",
"andor",
"{",
"@",
"code",
"value",
"}",
"may",
"be",
"{",
"@",
"code",
"null",
"}",
"if",
"they",
"were",
"already",
"garbage",
"collected"
] | [
"public",
"static",
"<",
"k",
",",
"v",
">",
"removal",
"notification",
"<",
"k",
",",
"v",
">",
"create",
"(",
"@",
"nullable",
"k",
"key",
",",
"@",
"nullable",
"v",
"value",
",",
"removal",
"cause",
"cause",
")",
"{",
"return",
"new",
"removal",
"notification",
"(",
"key",
",",
"value",
",",
"cause",
")",
";",
"}"
] |
[
"retrieve",
"the",
"web",
"application",
"context",
"to",
"delegate",
"bean",
"name",
"resolution",
"to",
"the",
"default",
"implementation",
"delegates",
"to",
"faces",
"context",
"utils"
] | [
"protected",
"web",
"application",
"context",
"get",
"web",
"application",
"context",
"(",
"e",
"l",
"context",
"el",
"context",
")",
"{",
"faces",
"context",
"faces",
"context",
"=",
"faces",
"context",
"get",
"current",
"instance",
"(",
")",
";",
"return",
"faces",
"context",
"utils",
"get",
"required",
"web",
"application",
"context",
"(",
"faces",
"context",
")",
";",
"}"
] |
[
"this",
"unit",
"test",
"performs",
"sticky",
"assignment",
"for",
"a",
"scenario",
"that",
"round",
"robin",
"assignor",
"handles",
"poorly",
"topics",
"(",
"partitions",
"per",
"topic",
")",
":",
"topic",
"1",
"(",
"2",
")",
",",
"topic",
"2",
"(",
"1",
")",
",",
"topic",
"3",
"(",
"2",
")",
",",
"topic",
"4",
"(",
"1",
")",
",",
"topic",
"5",
"(",
"2",
")",
"subscriptions",
":",
"-",
"consumer",
"1",
":",
"topic",
"1",
",",
"topic",
"2",
",",
"topic",
"3",
",",
"topic",
"4",
",",
"topic",
"5",
"-",
"consumer",
"2",
":",
"topic",
"1",
",",
"topic",
"3",
",",
"topic",
"5",
"-",
"consumer",
"3",
":",
"topic",
"1",
",",
"topic",
"3",
",",
"topic",
"5",
"-",
"consumer",
"4",
":",
"topic",
"1",
",",
"topic",
"2",
",",
"topic",
"3",
",",
"topic",
"4",
",",
"topic",
"5",
"round",
"robin",
"assignment",
"result",
":",
"-",
"consumer",
"1",
":",
"topic",
"1",
"-",
"0",
",",
"topic",
"3",
"-",
"0",
",",
"topic",
"5",
"-",
"0",
"-",
"consumer",
"2",
":",
"topic",
"1",
"-",
"1",
",",
"topic",
"3",
"-",
"1",
",",
"topic",
"5",
"-",
"1",
"-",
"consumer",
"3",
":",
"-",
"consumer",
"4",
":",
"topic",
"2",
"-",
"0",
",",
"topic",
"4",
"-",
"0",
"sticky",
"assignment",
"result",
":",
"-",
"consumer",
"1",
":",
"topic",
"2",
"-",
"0",
",",
"topic",
"3",
"-",
"0",
"-",
"consumer",
"2",
":",
"topic",
"1",
"-",
"0",
",",
"topic",
"3",
"-",
"1",
"-",
"consumer",
"3",
":",
"topic",
"1",
"-",
"1",
",",
"topic",
"5",
"-",
"0",
"-",
"consumer",
"4",
":",
"topic",
"4",
"-",
"0",
",",
"topic",
"5",
"-",
"1"
] | [
"public",
"void",
"test",
"poor",
"round",
"robin",
"assignment",
"scenario",
"(",
")",
"{",
"map",
"<",
"string",
",",
"integer",
">",
"partitions",
"per",
"topic",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"=",
"5",
";",
"i",
"+",
"+",
")",
"partitions",
"per",
"topic",
"put",
"(",
"string",
"format",
"(",
"\"",
"topic",
"%",
"d",
"\"",
",",
"i",
")",
",",
"(",
"i",
"%",
"2",
")",
"+",
"1",
")",
";",
"subscriptions",
"put",
"(",
"\"",
"consumer",
"1",
"\"",
",",
"new",
"subscription",
"(",
"topics",
"(",
"\"",
"topic",
"1",
"\"",
",",
"\"",
"topic",
"2",
"\"",
",",
"\"",
"topic",
"3",
"\"",
",",
"\"",
"topic",
"4",
"\"",
",",
"\"",
"topic",
"5",
"\"",
")",
")",
")",
";",
"subscriptions",
"put",
"(",
"\"",
"consumer",
"2",
"\"",
",",
"new",
"subscription",
"(",
"topics",
"(",
"\"",
"topic",
"1",
"\"",
",",
"\"",
"topic",
"3",
"\"",
",",
"\"",
"topic",
"5",
"\"",
")",
")",
")",
";",
"subscriptions",
"put",
"(",
"\"",
"consumer",
"3",
"\"",
",",
"new",
"subscription",
"(",
"topics",
"(",
"\"",
"topic",
"1",
"\"",
",",
"\"",
"topic",
"3",
"\"",
",",
"\"",
"topic",
"5",
"\"",
")",
")",
")",
";",
"subscriptions",
"put",
"(",
"\"",
"consumer",
"4",
"\"",
",",
"new",
"subscription",
"(",
"topics",
"(",
"\"",
"topic",
"1",
"\"",
",",
"\"",
"topic",
"2",
"\"",
",",
"\"",
"topic",
"3",
"\"",
",",
"\"",
"topic",
"4",
"\"",
",",
"\"",
"topic",
"5",
"\"",
")",
")",
")",
";",
"map",
"<",
"string",
",",
"list",
"<",
"topic",
"partition",
">",
">",
"assignment",
"=",
"assignor",
"assign",
"(",
"partitions",
"per",
"topic",
",",
"subscriptions",
")",
";",
"verify",
"validity",
"and",
"balance",
"(",
"subscriptions",
",",
"assignment",
",",
"partitions",
"per",
"topic",
")",
";",
"}"
] |
[
"get",
"the",
"type",
"of",
"the",
"mapped",
"annotation"
] | [
"class",
"<",
"?",
"extends",
"annotation",
">",
"get",
"annotation",
"type",
"(",
")",
"{",
"return",
"this",
"annotation",
"type",
";",
"}"
] |
[
"test",
"an",
"empty",
"edit",
"log"
] | [
"public",
"void",
"test",
"empty",
"log",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"run",
"edit",
"log",
"test",
"(",
"new",
"elts",
"test",
"empty",
"log",
"(",
"0",
")",
")",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] | [
"@",
"override",
"public",
"t",
"visit",
"assignment",
"(",
"painless",
"parser",
"assignment",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"upgrade",
"an",
"application",
"@",
"api",
"group",
"app",
"detail",
"controller",
"@",
"api",
"name",
"upgrade",
"app",
"@",
"api",
"{",
"put",
"}",
"app",
"detailsupgrade",
"{",
"id",
"}",
"upgrade",
"one",
"instance",
"of",
"application",
"@",
"api",
"param",
"{",
"string",
"}",
"id",
"application",
"name",
"to",
"upgrade",
"@",
"api",
"success",
"{",
"string",
"}",
"text",
"@",
"api",
"error",
"bad",
"request",
"requested",
"application",
"does",
"not",
"upgrade"
] | [
"public",
"response",
"upgrade",
"app",
"(",
"@",
"path",
"param",
"(",
"\"",
"id",
"\"",
")",
"string",
"id",
",",
"service",
"app",
")",
"{",
"try",
"{",
"app",
"catalog",
"solr",
"client",
"sc",
"=",
"new",
"app",
"catalog",
"solr",
"client",
"(",
")",
";",
"sc",
"upgrade",
"app",
"(",
"app",
")",
";",
"yarn",
"service",
"client",
"yc",
"=",
"new",
"yarn",
"service",
"client",
"(",
")",
";",
"yc",
"upgrade",
"app",
"(",
"app",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"|",
"solr",
"server",
"exception",
"e",
")",
"{",
"return",
"response",
"status",
"(",
"status",
"bad",
"request",
")",
"entity",
"(",
"e",
"to",
"string",
"(",
")",
")",
"build",
"(",
")",
";",
"}",
"string",
"output",
"=",
"\"",
"{",
"\\",
"\"",
"status",
"\\",
"\"",
":",
"\\",
"\"",
"application",
"upgrade",
"requested",
"\\",
"\"",
",",
"\\",
"\"",
"id",
"\\",
"\"",
":",
"\\",
"\"",
"\"",
"+",
"app",
"get",
"name",
"(",
")",
"+",
"\"",
"\\",
"\"",
"}",
"\"",
";",
"return",
"response",
"status",
"(",
"status",
"accepted",
")",
"entity",
"(",
"output",
")",
"build",
"(",
")",
";",
"}"
] |
[
"returns",
"collection",
"of",
"values",
"for",
"specified",
"key",
",",
"or",
"an",
"empty",
"collection",
"if",
"key",
"is",
"missing"
] | [
"public",
"immutable",
"collection",
"<",
"string",
">",
"get",
"attribute",
"(",
"string",
"key",
")",
"{",
"return",
"attributes",
"get",
"(",
"key",
")",
";",
"}"
] |
[
"returns",
"a",
"fresh",
"instance",
"for",
"{",
"@",
"code",
"type",
"}",
"if",
"possible",
"the",
"returned",
"instance",
"could",
"be",
":",
"exactly",
"of",
"the",
"given",
"type",
",",
"including",
"generic",
"type",
"parameters",
",",
"such",
"as",
"{",
"@",
"code",
"immutable",
"list",
"<",
"string",
">",
"}",
";",
"of",
"the",
"raw",
"type",
";",
"null",
"if",
"no",
"value",
"can",
"be",
"generated"
] | [
"final",
"object",
"generate",
"fresh",
"(",
"type",
"token",
"<",
"?",
">",
"type",
")",
"{",
"object",
"generated",
"=",
"generate",
"(",
"type",
")",
";",
"if",
"(",
"generated",
"!",
"=",
"null",
")",
"{",
"freshness",
"increment",
"and",
"get",
"(",
")",
";",
"}",
"return",
"generated",
";",
"}"
] |
[
"test",
"create",
",",
"update",
"and",
"delete",
"of",
"task",
"-",
"local",
"variables"
] | [
"public",
"void",
"test",
"task",
"variable",
"events",
"(",
")",
"throws",
"exception",
"{",
"process",
"instance",
"process",
"instance",
"=",
"runtime",
"service",
"start",
"process",
"instance",
"by",
"key",
"(",
"\"",
"one",
"task",
"process",
"\"",
")",
";",
"assert",
"that",
"(",
"process",
"instance",
")",
"is",
"not",
"null",
"(",
")",
";",
"task",
"task",
"=",
"task",
"service",
"create",
"task",
"query",
"(",
")",
"process",
"instance",
"id",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
"single",
"result",
"(",
")",
";",
"assert",
"that",
"(",
"task",
")",
"is",
"not",
"null",
"(",
")",
";",
"task",
"service",
"set",
"variable",
"local",
"(",
"task",
"get",
"id",
"(",
")",
",",
"\"",
"test",
"variable",
"\"",
",",
"\"",
"the",
"value",
"\"",
")",
";",
"task",
"service",
"set",
"variable",
"local",
"(",
"task",
"get",
"id",
"(",
")",
",",
"\"",
"test",
"variable",
"\"",
",",
"\"",
"updated",
"value",
"\"",
")",
";",
"task",
"service",
"remove",
"variable",
"local",
"(",
"task",
"get",
"id",
"(",
")",
",",
"\"",
"test",
"variable",
"\"",
")",
";",
"/",
"/",
"check",
"create",
"event",
"assert",
"that",
"(",
"listener",
"get",
"events",
"received",
"(",
")",
")",
"has",
"size",
"(",
"3",
")",
";",
"activiti",
"variable",
"event",
"event",
"=",
"(",
"activiti",
"variable",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"variable",
"created",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"task",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"task",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"name",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"test",
"variable",
"\"",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"value",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"the",
"value",
"\"",
")",
";",
"event",
"=",
"(",
"activiti",
"variable",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"1",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"variable",
"updated",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"task",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"task",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"name",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"test",
"variable",
"\"",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"value",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"updated",
"value",
"\"",
")",
";",
"event",
"=",
"(",
"activiti",
"variable",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"2",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"variable",
"deleted",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"task",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"task",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"name",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"test",
"variable",
"\"",
")",
";",
"/",
"/",
"deleted",
"values",
"is",
"returned",
"assert",
"that",
"(",
"event",
"get",
"variable",
"value",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"updated",
"value",
"\"",
")",
";",
"listener",
"clear",
"events",
"received",
"(",
")",
";",
"}"
] |
[
"creates",
"a",
"data",
"stream",
"with",
"the",
"specified",
"properties"
] | [
"static",
"cluster",
"state",
"create",
"data",
"stream",
"(",
"metadata",
"create",
"index",
"service",
"metadata",
"create",
"index",
"service",
",",
"cluster",
"state",
"current",
"state",
",",
"string",
"data",
"stream",
"name",
",",
"list",
"<",
"index",
"metadata",
">",
"backing",
"indices",
",",
"index",
"metadata",
"write",
"index",
")",
"throws",
"exception",
"{",
"if",
"(",
"write",
"index",
"=",
"=",
"null",
")",
"{",
"objects",
"require",
"non",
"null",
"(",
"metadata",
"create",
"index",
"service",
")",
";",
"}",
"objects",
"require",
"non",
"null",
"(",
"current",
"state",
")",
";",
"objects",
"require",
"non",
"null",
"(",
"backing",
"indices",
")",
";",
"if",
"(",
"current",
"state",
"metadata",
"(",
")",
"data",
"streams",
"(",
")",
"contains",
"key",
"(",
"data",
"stream",
"name",
")",
")",
"{",
"throw",
"new",
"resource",
"already",
"exists",
"exception",
"(",
"\"",
"data",
"stream",
"[",
"\"",
"+",
"data",
"stream",
"name",
"+",
"\"",
"]",
"already",
"exists",
"\"",
")",
";",
"}",
"metadata",
"create",
"index",
"service",
"validate",
"index",
"or",
"alias",
"name",
"(",
"data",
"stream",
"name",
",",
"(",
"s",
"1",
",",
"s",
"2",
")",
"-",
">",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"data",
"stream",
"[",
"\"",
"+",
"s",
"1",
"+",
"\"",
"]",
"\"",
"+",
"s",
"2",
")",
")",
";",
"if",
"(",
"data",
"stream",
"name",
"to",
"lower",
"case",
"(",
"locale",
"root",
")",
"equals",
"(",
"data",
"stream",
"name",
")",
"=",
"=",
"false",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"data",
"stream",
"[",
"\"",
"+",
"data",
"stream",
"name",
"+",
"\"",
"]",
"must",
"be",
"lowercase",
"\"",
")",
";",
"}",
"if",
"(",
"data",
"stream",
"name",
"starts",
"with",
"(",
"data",
"stream",
"backing",
"index",
"prefix",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"data",
"stream",
"[",
"\"",
"+",
"data",
"stream",
"name",
"+",
"\"",
"]",
"must",
"not",
"start",
"with",
"'",
"\"",
"+",
"data",
"stream",
"backing",
"index",
"prefix",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"composable",
"index",
"template",
"template",
"=",
"lookup",
"template",
"for",
"data",
"stream",
"(",
"data",
"stream",
"name",
",",
"current",
"state",
"metadata",
"(",
")",
")",
";",
"if",
"(",
"write",
"index",
"=",
"=",
"null",
")",
"{",
"string",
"first",
"backing",
"index",
"name",
"=",
"data",
"stream",
"get",
"default",
"backing",
"index",
"name",
"(",
"data",
"stream",
"name",
",",
"1",
",",
"current",
"state",
"nodes",
"(",
")",
"get",
"min",
"node",
"version",
"(",
")",
")",
";",
"create",
"index",
"cluster",
"state",
"update",
"request",
"create",
"index",
"request",
"=",
"new",
"create",
"index",
"cluster",
"state",
"update",
"request",
"(",
"\"",
"initialize",
"data",
"stream",
"\"",
",",
"first",
"backing",
"index",
"name",
",",
"first",
"backing",
"index",
"name",
")",
"data",
"stream",
"name",
"(",
"data",
"stream",
"name",
")",
"settings",
"(",
"settings",
"builder",
"(",
")",
"put",
"(",
"\"",
"index",
"hidden",
"\"",
",",
"true",
")",
"build",
"(",
")",
")",
";",
"try",
"{",
"current",
"state",
"=",
"metadata",
"create",
"index",
"service",
"apply",
"create",
"index",
"request",
"(",
"current",
"state",
",",
"create",
"index",
"request",
",",
"false",
")",
";",
"}",
"catch",
"(",
"resource",
"already",
"exists",
"exception",
"e",
")",
"{",
"/",
"/",
"rethrow",
"as",
"elasticsearch",
"status",
"exception",
",",
"so",
"that",
"bulk",
"transport",
"action",
"doesn",
"'",
"t",
"ignore",
"it",
"during",
"/",
"/",
"auto",
"index",
"/",
"data",
"stream",
"creation",
"/",
"/",
"(",
"otherwise",
"bulk",
"execution",
"fails",
"later",
",",
"because",
"data",
"stream",
"will",
"also",
"not",
"have",
"been",
"created",
")",
"throw",
"new",
"elasticsearch",
"status",
"exception",
"(",
"\"",
"data",
"stream",
"could",
"not",
"be",
"created",
"because",
"backing",
"index",
"[",
"{",
"}",
"]",
"already",
"exists",
"\"",
",",
"rest",
"status",
"bad",
"request",
",",
"e",
",",
"first",
"backing",
"index",
"name",
")",
";",
"}",
"write",
"index",
"=",
"current",
"state",
"metadata",
"(",
")",
"index",
"(",
"first",
"backing",
"index",
"name",
")",
";",
"}",
"assert",
"write",
"index",
"!",
"=",
"null",
";",
"assert",
"write",
"index",
"mapping",
"(",
")",
"!",
"=",
"null",
":",
"\"",
"no",
"mapping",
"found",
"for",
"backing",
"index",
"[",
"\"",
"+",
"write",
"index",
"get",
"index",
"(",
")",
"get",
"name",
"(",
")",
"+",
"\"",
"]",
"\"",
";",
"string",
"field",
"name",
"=",
"template",
"get",
"data",
"stream",
"template",
"(",
")",
"get",
"timestamp",
"field",
"(",
")",
";",
"data",
"stream",
"timestamp",
"field",
"timestamp",
"field",
"=",
"new",
"data",
"stream",
"timestamp",
"field",
"(",
"field",
"name",
")",
";",
"list",
"<",
"index",
">",
"ds",
"backing",
"indices",
"=",
"backing",
"indices",
"stream",
"(",
")",
"map",
"(",
"index",
"metadata",
":",
":",
"get",
"index",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"ds",
"backing",
"indices",
"add",
"(",
"write",
"index",
"get",
"index",
"(",
")",
")",
";",
"boolean",
"hidden",
"=",
"template",
"get",
"data",
"stream",
"template",
"(",
")",
"is",
"hidden",
"(",
")",
";",
"data",
"stream",
"new",
"data",
"stream",
"=",
"new",
"data",
"stream",
"(",
"data",
"stream",
"name",
",",
"timestamp",
"field",
",",
"ds",
"backing",
"indices",
",",
"1l",
",",
"template",
"metadata",
"(",
")",
"!",
"=",
"null",
"?",
"map",
"copy",
"of",
"(",
"template",
"metadata",
"(",
")",
")",
":",
"null",
",",
"hidden",
",",
"false",
")",
";",
"metadata",
"builder",
"builder",
"=",
"metadata",
"builder",
"(",
"current",
"state",
"metadata",
"(",
")",
")",
"put",
"(",
"new",
"data",
"stream",
")",
";",
"logger",
"info",
"(",
"\"",
"adding",
"data",
"stream",
"[",
"{",
"}",
"]",
"with",
"write",
"index",
"[",
"{",
"}",
"]",
"and",
"backing",
"indices",
"[",
"{",
"}",
"]",
"\"",
",",
"data",
"stream",
"name",
",",
"write",
"index",
"get",
"index",
"(",
")",
"get",
"name",
"(",
")",
",",
"strings",
"array",
"to",
"comma",
"delimited",
"string",
"(",
"backing",
"indices",
"stream",
"(",
")",
"map",
"(",
"i",
"-",
">",
"i",
"get",
"index",
"(",
")",
"get",
"name",
"(",
")",
")",
"to",
"array",
"(",
")",
")",
")",
";",
"return",
"cluster",
"state",
"builder",
"(",
"current",
"state",
")",
"metadata",
"(",
"builder",
")",
"build",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"randomly",
"selected",
"existing",
"field",
"name",
"out",
"of",
"the",
"fields",
"that",
"are",
"contained",
"in",
"the",
"document",
"provided",
"as",
"an",
"argument"
] | [
"public",
"static",
"string",
"random",
"existing",
"field",
"name",
"(",
"random",
"random",
",",
"ingest",
"document",
"ingest",
"document",
")",
"{",
"map",
"<",
"string",
",",
"object",
">",
"source",
"=",
"new",
"tree",
"map",
"<",
">",
"(",
"ingest",
"document",
"get",
"source",
"and",
"metadata",
"(",
")",
")",
";",
"map",
"entry",
"<",
"string",
",",
"object",
">",
"random",
"entry",
"=",
"random",
"picks",
"random",
"from",
"(",
"random",
",",
"source",
"entry",
"set",
"(",
")",
")",
";",
"string",
"key",
"=",
"random",
"entry",
"get",
"key",
"(",
")",
";",
"while",
"(",
"random",
"entry",
"get",
"value",
"(",
")",
"instanceof",
"map",
")",
"{",
"@",
"suppress",
"warnings",
"(",
"\"",
"unchecked",
"\"",
")",
"map",
"<",
"string",
",",
"object",
">",
"map",
"=",
"(",
"map",
"<",
"string",
",",
"object",
">",
")",
"random",
"entry",
"get",
"value",
"(",
")",
";",
"map",
"<",
"string",
",",
"object",
">",
"tree",
"map",
"=",
"new",
"tree",
"map",
"<",
">",
"(",
"map",
")",
";",
"random",
"entry",
"=",
"random",
"picks",
"random",
"from",
"(",
"random",
",",
"tree",
"map",
"entry",
"set",
"(",
")",
")",
";",
"key",
"+",
"=",
"\"",
"\"",
"+",
"random",
"entry",
"get",
"key",
"(",
")",
";",
"}",
"assert",
"ingest",
"document",
"get",
"field",
"value",
"(",
"key",
",",
"object",
"class",
")",
"!",
"=",
"null",
";",
"return",
"key",
";",
"}"
] |
[
"returns",
"an",
"array",
"of",
"queue",
"information",
"objects",
"about",
"immediate",
"children",
"of",
"queue",
"queue",
"name"
] | [
"public",
"job",
"queue",
"info",
"[",
"]",
"get",
"child",
"queues",
"(",
"final",
"string",
"queue",
"name",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"return",
"client",
"ugi",
"do",
"as",
"(",
"new",
"privileged",
"exception",
"action",
"<",
"job",
"queue",
"info",
"[",
"]",
">",
"(",
")",
"{",
"public",
"job",
"queue",
"info",
"[",
"]",
"run",
"(",
")",
"throws",
"i",
"o",
"exception",
",",
"interrupted",
"exception",
"{",
"return",
"get",
"job",
"queue",
"info",
"array",
"(",
"cluster",
"get",
"child",
"queues",
"(",
"queue",
"name",
")",
")",
";",
"}",
"}",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"ie",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"ie",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"checksum"
] | [
"public",
"int",
"get",
"checksum",
"(",
")",
"{",
"return",
"ne",
"crc",
";",
"}"
] |
[
"return",
"the",
"name",
"of",
"this",
"attribute"
] | [
"public",
"string",
"name",
"(",
")",
"{",
"return",
"this",
"attribute",
"name",
";",
"}"
] |
[
"[",
"descendant",
",",
"ancestor",
")"
] | [
"private",
"static",
"set",
"<",
"class",
"<",
"?",
">",
">",
"get",
"classes",
"between",
"(",
"class",
"<",
"?",
">",
"descendant",
",",
"class",
"<",
"?",
">",
"ancestor",
")",
"{",
"set",
"<",
"class",
"<",
"?",
">",
">",
"classes",
"=",
"new",
"hash",
"set",
"(",
")",
";",
"while",
"(",
"!",
"descendant",
"equals",
"(",
"ancestor",
")",
")",
"{",
"classes",
"add",
"(",
"descendant",
")",
";",
"descendant",
"=",
"descendant",
"get",
"superclass",
"(",
")",
";",
"}",
"return",
"classes",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"color",
"'"
] | [
"public",
"void",
"color",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"color",
"}"
] |
[
"returns",
"the",
"number",
"of",
"indexes",
"in",
"the",
"specified",
"list",
"@",
"exception",
"index",
"out",
"of",
"bounds",
"exception",
"thrown",
"if",
"the",
"list",
"i",
"d",
"is",
"not",
"in",
"the",
"the",
"range",
"[",
"0",
",",
"num",
"lists",
")"
] | [
"public",
"int",
"get",
"list",
"size",
"(",
"short",
"list",
"i",
"d",
")",
"{",
"if",
"(",
"(",
"list",
"i",
"d",
"<",
"0",
")",
"|",
"|",
"(",
"list",
"i",
"d",
">",
"=",
"num",
"lists",
")",
")",
"{",
"throw",
"new",
"index",
"out",
"of",
"bounds",
"exception",
"(",
"\"",
"the",
"list",
"i",
"d",
"is",
"out",
"of",
"bounds",
"\"",
")",
";",
"}",
"int",
"count",
"=",
"0",
";",
"int",
"p",
"=",
"heads",
"[",
"list",
"i",
"d",
"]",
";",
"while",
"(",
"p",
"!",
"=",
"end",
"of",
"list",
")",
"{",
"count",
"+",
"+",
";",
"p",
"=",
"links",
"[",
"p",
"]",
";",
"}",
"return",
"count",
";",
"}"
] |
[
"add",
"set",
"replication",
"record",
"to",
"edit",
"log"
] | [
"void",
"log",
"set",
"replication",
"(",
"string",
"src",
",",
"short",
"replication",
")",
"{",
"set",
"replication",
"op",
"op",
"=",
"set",
"replication",
"op",
"get",
"instance",
"(",
"cache",
"get",
"(",
")",
")",
"set",
"path",
"(",
"src",
")",
"set",
"replication",
"(",
"replication",
")",
";",
"log",
"edit",
"(",
"op",
")",
";",
"}"
] |
[
"factory",
"method",
"for",
"creating",
"instances",
"of",
"{",
"@",
"link",
"key",
"}",
"the",
"default",
"value",
"of",
"the",
"key",
"is",
"{",
"@",
"code",
"null",
"}"
] | [
"public",
"static",
"<",
"t",
">",
"key",
"<",
"t",
">",
"create",
"(",
"string",
"debug",
"string",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"debug",
"string",
",",
"\"",
"debug",
"string",
"\"",
")",
";",
"return",
"new",
"key",
"<",
">",
"(",
"debug",
"string",
",",
"/",
"*",
"default",
"value",
"=",
"*",
"/",
"null",
")",
";",
"}"
] |
[
"applies",
"a",
"map",
"transformation",
"on",
"a",
"{",
"@",
"link",
"data",
"stream",
"}",
"the",
"transformation",
"calls",
"a",
"{",
"@",
"link",
"map",
"function",
"}",
"for",
"each",
"element",
"of",
"the",
"data",
"stream",
"each",
"map",
"function",
"call",
"returns",
"exactly",
"one",
"element",
"the",
"user",
"can",
"also",
"extend",
"{",
"@",
"link",
"rich",
"map",
"function",
"}",
"to",
"gain",
"access",
"to",
"other",
"features",
"provided",
"by",
"the",
"{",
"@",
"link",
"org",
"apache",
"flink",
"api",
"common",
"functions",
"rich",
"function",
"}",
"interface"
] | [
"public",
"<",
"r",
">",
"single",
"output",
"stream",
"operator",
"<",
"r",
">",
"map",
"(",
"map",
"function",
"<",
"t",
",",
"r",
">",
"mapper",
")",
"{",
"type",
"information",
"<",
"r",
">",
"out",
"type",
"=",
"type",
"extractor",
"get",
"map",
"return",
"types",
"(",
"clean",
"(",
"mapper",
")",
",",
"get",
"type",
"(",
")",
",",
"utils",
"get",
"call",
"location",
"name",
"(",
")",
",",
"true",
")",
";",
"return",
"map",
"(",
"mapper",
",",
"out",
"type",
")",
";",
"}"
] |
[
"configure",
"the",
"pipeline",
"for",
"tls",
"npn",
"negotiation",
"to",
"http2"
] | [
"private",
"void",
"configure",
"ssl",
"(",
"socket",
"channel",
"ch",
")",
"{",
"channel",
"pipeline",
"pipeline",
"=",
"ch",
"pipeline",
"(",
")",
";",
"/",
"/",
"specify",
"host",
"in",
"s",
"s",
"l",
"context",
"new",
"handler",
"to",
"add",
"tls",
"sni",
"extension",
"pipeline",
"add",
"last",
"(",
"ssl",
"ctx",
"new",
"handler",
"(",
"ch",
"alloc",
"(",
")",
",",
"http",
"2",
"client",
"host",
",",
"http",
"2",
"client",
"port",
")",
")",
";",
"/",
"/",
"we",
"must",
"wait",
"for",
"the",
"handshake",
"to",
"finish",
"and",
"the",
"protocol",
"to",
"be",
"negotiated",
"before",
"configuring",
"/",
"/",
"the",
"http",
"/",
"2",
"components",
"of",
"the",
"pipeline",
"pipeline",
"add",
"last",
"(",
"new",
"application",
"protocol",
"negotiation",
"handler",
"(",
"\"",
"\"",
")",
"{",
"@",
"override",
"protected",
"void",
"configure",
"pipeline",
"(",
"channel",
"handler",
"context",
"ctx",
",",
"string",
"protocol",
")",
"{",
"if",
"(",
"application",
"protocol",
"names",
"http",
"2",
"equals",
"(",
"protocol",
")",
")",
"{",
"channel",
"pipeline",
"p",
"=",
"ctx",
"pipeline",
"(",
")",
";",
"p",
"add",
"last",
"(",
"connection",
"handler",
")",
";",
"configure",
"end",
"of",
"pipeline",
"(",
"p",
")",
";",
"return",
";",
"}",
"ctx",
"close",
"(",
")",
";",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"unknown",
"protocol",
":",
"\"",
"+",
"protocol",
")",
";",
"}",
"}",
")",
";",
"}"
] |
[
"sets",
"the",
"aliases",
"that",
"will",
"be",
"associated",
"with",
"the",
"index",
"when",
"it",
"gets",
"created"
] | [
"public",
"create",
"index",
"request",
"aliases",
"(",
"x",
"content",
"builder",
"source",
")",
"{",
"return",
"aliases",
"(",
"bytes",
"reference",
"bytes",
"(",
"source",
")",
",",
"source",
"content",
"type",
"(",
")",
")",
";",
"}"
] |
[
"whether",
"the",
"notified",
"buffer",
"is",
"accepted",
"to",
"use",
"by",
"the",
"listener"
] | [
"boolean",
"is",
"buffer",
"used",
"(",
")",
"{",
"return",
"is",
"buffer",
"used",
";",
"}"
] |
[
"this",
"test",
"creates",
"a",
"long",
"random",
"sequence",
"of",
"inputs",
",",
"then",
"a",
"lot",
"of",
"differently",
"configured",
"sinks",
"process",
"it",
";",
"all",
"should",
"produce",
"the",
"same",
"answer",
",",
"the",
"only",
"difference",
"should",
"be",
"the",
"number",
"of",
"process",
"(",
")",
"process",
"remaining",
"(",
")",
"invocations",
",",
"due",
"to",
"alignment"
] | [
"public",
"void",
"test",
"exhaustive",
"(",
")",
"throws",
"exception",
"{",
"random",
"random",
"=",
"new",
"random",
"(",
"0",
")",
";",
"/",
"/",
"will",
"iteratively",
"make",
"more",
"debuggable",
",",
"each",
"time",
"it",
"breaks",
"for",
"(",
"int",
"total",
"insertions",
"=",
"0",
";",
"total",
"insertions",
"<",
"200",
";",
"total",
"insertions",
"+",
"+",
")",
"{",
"list",
"<",
"sink",
">",
"sinks",
"=",
"lists",
"new",
"array",
"list",
"(",
")",
";",
"for",
"(",
"int",
"chunk",
"size",
"=",
"4",
";",
"chunk",
"size",
"<",
"=",
"32",
";",
"chunk",
"size",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"buffer",
"size",
"=",
"chunk",
"size",
";",
"buffer",
"size",
"<",
"=",
"chunk",
"size",
"*",
"4",
";",
"buffer",
"size",
"+",
"=",
"chunk",
"size",
")",
"{",
"/",
"/",
"yes",
",",
"that",
"'",
"s",
"a",
"lot",
"of",
"sinks",
"!",
"sinks",
"add",
"(",
"new",
"sink",
"(",
"chunk",
"size",
",",
"buffer",
"size",
")",
")",
";",
"/",
"/",
"for",
"convenience",
",",
"testing",
"only",
"with",
"big",
"endianness",
",",
"to",
"match",
"data",
"output",
"stream",
"/",
"/",
"i",
"regard",
"highly",
"unlikely",
"that",
"both",
"the",
"little",
"endianness",
"tests",
"above",
"and",
"this",
"one",
"/",
"/",
"passes",
",",
"and",
"there",
"is",
"still",
"a",
"little",
"endianness",
"bug",
"lurking",
"around",
"}",
"}",
"control",
"control",
"=",
"new",
"control",
"(",
")",
";",
"hasher",
"control",
"sink",
"=",
"control",
"new",
"hasher",
"(",
"1024",
")",
";",
"iterable",
"<",
"hasher",
">",
"sinks",
"and",
"control",
"=",
"iterables",
"concat",
"(",
"sinks",
",",
"collections",
"singleton",
"(",
"control",
"sink",
")",
")",
";",
"for",
"(",
"int",
"insertion",
"=",
"0",
";",
"insertion",
"<",
"total",
"insertions",
";",
"insertion",
"+",
"+",
")",
"{",
"random",
"hasher",
"action",
"pick",
"at",
"random",
"(",
"random",
")",
"perform",
"action",
"(",
"random",
",",
"sinks",
"and",
"control",
")",
";",
"}",
"/",
"/",
"we",
"need",
"to",
"ensure",
"that",
"at",
"least",
"4",
"bytes",
"have",
"been",
"put",
"into",
"the",
"hasher",
"or",
"else",
"/",
"/",
"hasher",
"#",
"hash",
"will",
"throw",
"an",
"ise",
"int",
"int",
"to",
"put",
"=",
"random",
"next",
"int",
"(",
")",
";",
"for",
"(",
"hasher",
"hasher",
":",
"sinks",
"and",
"control",
")",
"{",
"hasher",
"put",
"int",
"(",
"int",
"to",
"put",
")",
";",
"}",
"for",
"(",
"sink",
"sink",
":",
"sinks",
")",
"{",
"hash",
"code",
"unused",
"=",
"sink",
"hash",
"(",
")",
";",
"}",
"byte",
"[",
"]",
"expected",
"=",
"control",
"sink",
"hash",
"(",
")",
"as",
"bytes",
"(",
")",
";",
"for",
"(",
"sink",
"sink",
":",
"sinks",
")",
"{",
"sink",
"assert",
"invariants",
"(",
"expected",
"length",
")",
";",
"sink",
"assert",
"bytes",
"(",
"expected",
")",
";",
"}",
"}",
"}"
] |
[
"get",
"float",
"value"
] | [
"public",
"float",
"get",
"float",
"(",
"int",
"index",
",",
"float",
"def",
")",
"{",
"object",
"tmp",
"=",
"m",
"array",
"get",
"(",
"index",
")",
";",
"return",
"tmp",
"instanceof",
"number",
"?",
"(",
"(",
"number",
")",
"tmp",
")",
"float",
"value",
"(",
")",
":",
"def",
";",
"}"
] |
[
"return",
"a",
"model",
"map",
"for",
"the",
"obtained",
"state",
",",
"exposing",
"a",
"binding",
"result",
"instance",
"as",
"'",
"{",
"@",
"link",
"#",
"model",
"key",
"prefix",
"model",
"key",
"prefix",
"}",
"+",
"object",
"name",
"'",
"and",
"the",
"object",
"itself",
"as",
"'",
"object",
"name",
"'",
"note",
"that",
"the",
"map",
"is",
"constructed",
"every",
"time",
"you",
"'",
"re",
"calling",
"this",
"method",
"adding",
"things",
"to",
"the",
"map",
"and",
"then",
"re",
"-",
"calling",
"this",
"method",
"will",
"not",
"work",
"the",
"attributes",
"in",
"the",
"model",
"map",
"returned",
"by",
"this",
"method",
"are",
"usually",
"included",
"in",
"the",
"{",
"@",
"link",
"org",
"springframework",
"web",
"servlet",
"model",
"and",
"view",
"}",
"for",
"a",
"form",
"view",
"that",
"uses",
"spring",
"'",
"s",
"{",
"@",
"code",
"bind",
"}",
"tag",
"in",
"a",
"jsp",
",",
"which",
"needs",
"access",
"to",
"the",
"binding",
"result",
"instance",
"spring",
"'",
"s",
"pre",
"-",
"built",
"form",
"controllers",
"will",
"do",
"this",
"for",
"you",
"when",
"rendering",
"a",
"form",
"view",
"when",
"building",
"the",
"model",
"and",
"view",
"instance",
"yourself",
",",
"you",
"need",
"to",
"include",
"the",
"attributes",
"from",
"the",
"model",
"map",
"returned",
"by",
"this",
"method"
] | [
"map",
"<",
"string",
",",
"object",
">",
"get",
"model",
"(",
")",
";"
] |
[
"sets",
"the",
"source"
] | [
"public",
"index",
"request",
"builder",
"set",
"source",
"(",
"bytes",
"reference",
"source",
",",
"x",
"content",
"type",
"x",
"content",
"type",
")",
"{",
"request",
"source",
"(",
"source",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";",
"}"
] |
[
"returns",
"an",
"immutable",
"sorted",
"map",
"containing",
"the",
"given",
"entries",
",",
"sorted",
"by",
"the",
"natural",
"ordering",
"of",
"their",
"keys"
] | [
"public",
"static",
"<",
"k",
"extends",
"comparable",
"<",
"?",
"super",
"k",
">",
",",
"v",
">",
"immutable",
"sorted",
"map",
"<",
"k",
",",
"v",
">",
"of",
"(",
"k",
"k",
"1",
",",
"v",
"v",
"1",
",",
"k",
"k",
"2",
",",
"v",
"v",
"2",
",",
"k",
"k",
"3",
",",
"v",
"v",
"3",
",",
"k",
"k",
"4",
",",
"v",
"v",
"4",
",",
"k",
"k",
"5",
",",
"v",
"v",
"5",
")",
"{",
"return",
"of",
"entries",
"(",
"entry",
"of",
"(",
"k",
"1",
",",
"v",
"1",
")",
",",
"entry",
"of",
"(",
"k",
"2",
",",
"v",
"2",
")",
",",
"entry",
"of",
"(",
"k",
"3",
",",
"v",
"3",
")",
",",
"entry",
"of",
"(",
"k",
"4",
",",
"v",
"4",
")",
",",
"entry",
"of",
"(",
"k",
"5",
",",
"v",
"5",
")",
")",
";",
"}"
] |
[
"configures",
"gson",
"to",
"apply",
"a",
"specific",
"naming",
"policy",
"to",
"an",
"object",
"'",
"s",
"field",
"during",
"serialization",
"and",
"deserialization"
] | [
"public",
"gson",
"builder",
"set",
"field",
"naming",
"policy",
"(",
"field",
"naming",
"policy",
"naming",
"convention",
")",
"{",
"this",
"field",
"naming",
"policy",
"=",
"naming",
"convention",
";",
"return",
"this",
";",
"}"
] |
[
"tests",
"that",
"{",
"@",
"link",
"org",
"apache",
"flink",
"streaming",
"api",
"operators",
"yielding",
"operator",
"factory",
"}",
"are",
"chained",
"to",
"new",
"sources",
",",
"see",
"flink",
"-",
"20444"
] | [
"public",
"void",
"test",
"yielding",
"operator",
"properly",
"chained",
"on",
"new",
"sources",
"(",
")",
"{",
"stream",
"execution",
"environment",
"chain",
"env",
"=",
"stream",
"execution",
"environment",
"create",
"local",
"environment",
"(",
"1",
")",
";",
"chain",
"env",
"from",
"source",
"(",
"new",
"number",
"sequence",
"source",
"(",
"0",
",",
"10",
")",
",",
"watermark",
"strategy",
"no",
"watermarks",
"(",
")",
",",
"\"",
"input",
"\"",
")",
"map",
"(",
"(",
"x",
")",
"-",
">",
"x",
")",
"transform",
"(",
"\"",
"test",
"\"",
",",
"basic",
"type",
"info",
"long",
"type",
"info",
",",
"new",
"yielding",
"test",
"operator",
"factory",
"<",
">",
"(",
")",
")",
"add",
"sink",
"(",
"new",
"discarding",
"sink",
"<",
">",
"(",
")",
")",
";",
"final",
"job",
"graph",
"job",
"graph",
"=",
"chain",
"env",
"get",
"stream",
"graph",
"(",
")",
"get",
"job",
"graph",
"(",
")",
";",
"final",
"list",
"<",
"job",
"vertex",
">",
"vertices",
"=",
"job",
"graph",
"get",
"vertices",
"sorted",
"topologically",
"from",
"sources",
"(",
")",
";",
"assert",
"assert",
"equals",
"(",
"1",
",",
"vertices",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"4",
",",
"vertices",
"get",
"(",
"0",
")",
"get",
"operator",
"i",
"ds",
"(",
")",
"size",
"(",
")",
")",
";",
"}"
] |
[
"join",
"on",
"space"
] | [
"public",
"static",
"string",
"sjoin",
"(",
"object",
"args",
")",
"{",
"return",
"ssv",
"joiner",
"join",
"(",
"args",
")",
";",
"}"
] |
[
"creates",
"the",
"intermediate",
"actions",
"needed",
"to",
"generate",
"this",
"target",
"'",
"s",
"\"",
"debug",
"info",
"package",
"\"",
"(",
"i",
"e",
"its",
"dwp",
"file",
")"
] | [
"private",
"static",
"packager",
"create",
"intermediate",
"dwp",
"packagers",
"(",
"rule",
"context",
"context",
",",
"artifact",
"dwp",
"output",
",",
"cc",
"toolchain",
"provider",
"toolchain",
",",
"nested",
"set",
"<",
"artifact",
">",
"dwp",
"files",
",",
"list",
"<",
"artifact",
">",
"dwo",
"files",
",",
"int",
"intermediate",
"dwp",
"count",
")",
"throws",
"rule",
"error",
"exception",
"{",
"list",
"<",
"packager",
">",
"packagers",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"/",
"/",
"step",
"1",
":",
"generate",
"our",
"batches",
"we",
"currently",
"break",
"into",
"arbitrary",
"batches",
"of",
"fixed",
"maximum",
"/",
"/",
"input",
"counts",
",",
"but",
"we",
"can",
"always",
"apply",
"more",
"intelligent",
"heuristics",
"if",
"the",
"need",
"arises",
"packager",
"current",
"packager",
"=",
"new",
"dwp",
"action",
"(",
"context",
",",
"toolchain",
",",
"dwp",
"files",
")",
";",
"int",
"inputs",
"for",
"current",
"packager",
"=",
"0",
";",
"for",
"(",
"artifact",
"dwo",
"file",
":",
"dwo",
"files",
")",
"{",
"if",
"(",
"inputs",
"for",
"current",
"packager",
"=",
"=",
"max",
"inputs",
"per",
"dwp",
"action",
")",
"{",
"packagers",
"add",
"(",
"current",
"packager",
")",
";",
"current",
"packager",
"=",
"new",
"dwp",
"action",
"(",
"context",
",",
"toolchain",
",",
"dwp",
"files",
")",
";",
"inputs",
"for",
"current",
"packager",
"=",
"0",
";",
"}",
"current",
"packager",
"spawn",
"action",
"add",
"input",
"(",
"dwo",
"file",
")",
";",
"current",
"packager",
"command",
"line",
"add",
"exec",
"path",
"(",
"dwo",
"file",
")",
";",
"inputs",
"for",
"current",
"packager",
"+",
"+",
";",
"}",
"packagers",
"add",
"(",
"current",
"packager",
")",
";",
"/",
"/",
"step",
"2",
":",
"given",
"the",
"batches",
",",
"create",
"the",
"actions",
"if",
"(",
"packagers",
"size",
"(",
")",
">",
"1",
")",
"{",
"/",
"/",
"if",
"we",
"have",
"multiple",
"batches",
",",
"make",
"them",
"all",
"intermediate",
"actions",
",",
"then",
"pipe",
"their",
"outputs",
"/",
"/",
"into",
"an",
"additional",
"level",
"list",
"<",
"artifact",
">",
"intermediate",
"outputs",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"packager",
"packager",
":",
"packagers",
")",
"{",
"artifact",
"intermediate",
"output",
"=",
"get",
"intermediate",
"dwp",
"file",
"(",
"context",
",",
"dwp",
"output",
",",
"intermediate",
"dwp",
"count",
"+",
"+",
")",
";",
"packager",
"spawn",
"action",
"set",
"mnemonic",
"(",
"\"",
"cc",
"generate",
"intermediate",
"dwp",
"\"",
")",
"add",
"output",
"(",
"intermediate",
"output",
")",
";",
"packager",
"command",
"line",
"add",
"exec",
"path",
"(",
"\"",
"-",
"o",
"\"",
",",
"intermediate",
"output",
")",
";",
"context",
"register",
"action",
"(",
"packager",
"build",
"(",
"context",
")",
")",
";",
"intermediate",
"outputs",
"add",
"(",
"intermediate",
"output",
")",
";",
"}",
"return",
"create",
"intermediate",
"dwp",
"packagers",
"(",
"context",
",",
"dwp",
"output",
",",
"toolchain",
",",
"dwp",
"files",
",",
"intermediate",
"outputs",
",",
"intermediate",
"dwp",
"count",
")",
";",
"}",
"return",
"iterables",
"get",
"only",
"element",
"(",
"packagers",
")",
";",
"}"
] |
[
"starts",
"the",
"watchdog",
"thread",
"this",
"method",
"should",
"only",
"be",
"called",
"once"
] | [
"public",
"void",
"start",
"(",
")",
"{",
"preconditions",
"check",
"state",
"(",
"!",
"is",
"running",
"get",
"and",
"set",
"(",
"true",
")",
")",
";",
"thread",
"start",
"(",
")",
";",
"}"
] |
[
"returns",
"an",
"array",
"size",
"suitable",
"for",
"the",
"backing",
"array",
"of",
"a",
"hash",
"table",
"that",
"uses",
"open",
"addressing",
"with",
"linear",
"probing",
"in",
"its",
"implementation",
"the",
"returned",
"size",
"is",
"the",
"smallest",
"power",
"of",
"two",
"that",
"can",
"hold",
"set",
"size",
"elements",
"with",
"the",
"desired",
"load",
"factor"
] | [
"static",
"int",
"choose",
"table",
"size",
"(",
"int",
"set",
"size",
")",
"{",
"if",
"(",
"set",
"size",
"=",
"=",
"1",
")",
"{",
"return",
"2",
";",
"}",
"/",
"/",
"correct",
"the",
"size",
"for",
"open",
"addressing",
"to",
"match",
"desired",
"load",
"factor",
"/",
"/",
"round",
"up",
"to",
"the",
"next",
"highest",
"power",
"of",
"2",
"int",
"table",
"size",
"=",
"integer",
"highest",
"one",
"bit",
"(",
"set",
"size",
"-",
"1",
")",
"<",
"<",
"1",
";",
"while",
"(",
"table",
"size",
"*",
"desired",
"load",
"factor",
"<",
"set",
"size",
")",
"{",
"table",
"size",
"<",
"<",
"=",
"1",
";",
"}",
"return",
"table",
"size",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] | [
"@",
"override",
"public",
"t",
"visit",
"break",
"(",
"painless",
"parser",
"break",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"sets",
"the",
"{",
"@",
"link",
"analytics",
"collector",
"}",
"that",
"will",
"collect",
"and",
"forward",
"all",
"player",
"events"
] | [
"public",
"builder",
"set",
"analytics",
"collector",
"(",
"analytics",
"collector",
"analytics",
"collector",
")",
"{",
"assertions",
"check",
"state",
"(",
"!",
"build",
"called",
")",
";",
"this",
"analytics",
"collector",
"=",
"analytics",
"collector",
";",
"return",
"this",
";",
"}"
] |
[
"the",
"version",
"of",
"the",
"response",
"data",
"(",
"used",
"for",
"debugging",
")",
"<",
"code",
">",
"string",
"system",
"version",
"info",
"=",
"1",
";",
"<",
"code",
">"
] | [
"public",
"builder",
"clear",
"system",
"version",
"info",
"(",
")",
"{",
"system",
"version",
"info",
"=",
"get",
"default",
"instance",
"(",
")",
"get",
"system",
"version",
"info",
"(",
")",
";",
"on",
"changed",
"(",
")",
";",
"return",
"this",
";",
"}"
] |
[
"ex",
"a",
"network",
"partition",
"occurs",
"in",
"the",
"middle",
"of",
"the",
"post",
"request"
] | [
"public",
"static",
"http",
"failure",
"disconnect",
"during",
"body",
"(",
")",
"{",
"return",
"new",
"http",
"failure",
"(",
"new",
"mock",
"response",
"(",
")",
"set",
"socket",
"policy",
"(",
"disconnect",
"during",
"request",
"body",
")",
")",
";",
"}"
] |
[
"creates",
"the",
"underlying",
"database",
"table"
] | [
"public",
"static",
"void",
"create",
"table",
"(",
"database",
"db",
",",
"boolean",
"if",
"not",
"exists",
")",
"{",
"string",
"constraint",
"=",
"if",
"not",
"exists",
"?",
"\"",
"if",
"not",
"exists",
"\"",
":",
"\"",
"\"",
";",
"db",
"exec",
"s",
"q",
"l",
"(",
"\"",
"create",
"table",
"\"",
"+",
"constraint",
"+",
"\"",
"\\",
"\"",
"to",
"many",
"entity",
"\\",
"\"",
"(",
"\"",
"+",
"/",
"/",
"\"",
"\\",
"\"",
"id",
"\\",
"\"",
"integer",
"primary",
"key",
",",
"\"",
"+",
"/",
"/",
"0",
":",
"id",
"\"",
"\\",
"\"",
"source",
"join",
"property",
"\\",
"\"",
"text",
")",
";",
"\"",
")",
";",
"/",
"/",
"1",
":",
"source",
"join",
"property",
"}"
] |
[
"tries",
"to",
"match",
"pending",
"requests",
"to",
"all",
"registered",
"slots",
"(",
"available",
"or",
"allocated",
")",
"note",
":",
"the",
"complexity",
"of",
"the",
"method",
"is",
"currently",
"quadratic",
"(",
"number",
"of",
"pending",
"requests",
"x",
"number",
"of",
"all",
"slots",
")"
] | [
"private",
"static",
"boolean",
"are",
"requests",
"fulfillable",
"with",
"slots",
"(",
"final",
"collection",
"<",
"resource",
"profile",
">",
"request",
"resource",
"profiles",
",",
"final",
"set",
"<",
"slot",
"info",
">",
"slots",
")",
"{",
"final",
"set",
"<",
"slot",
"info",
">",
"remaining",
"slots",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
"slots",
")",
";",
"for",
"(",
"resource",
"profile",
"request",
"resource",
"profile",
":",
"request",
"resource",
"profiles",
")",
"{",
"final",
"optional",
"<",
"slot",
"info",
">",
"matched",
"slot",
"=",
"find",
"matching",
"slot",
"for",
"request",
"(",
"request",
"resource",
"profile",
",",
"remaining",
"slots",
")",
";",
"if",
"(",
"matched",
"slot",
"is",
"present",
"(",
")",
")",
"{",
"remaining",
"slots",
"remove",
"(",
"matched",
"slot",
"get",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}"
] |
[
"reads",
"a",
"char",
"as",
"specified",
"by",
"{",
"@",
"link",
"data",
"input",
"stream",
"#",
"read",
"char",
"(",
")",
"}",
",",
"except",
"using",
"little",
"-",
"endian",
"byte",
"order"
] | [
"public",
"char",
"read",
"char",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"(",
"char",
")",
"read",
"unsigned",
"short",
"(",
")",
";",
"}"
] |
[
"return",
"the",
"headers",
"used",
"in",
"the",
"handshake",
"request",
"(",
"never",
"{",
"@",
"code",
"null",
"}",
")"
] | [
"http",
"headers",
"get",
"handshake",
"headers",
"(",
")",
";"
] |
[
"record",
"statistics",
"and",
"perform",
"rule",
"checking",
"for",
"the",
"given",
"resource"
] | [
"public",
"static",
"entry",
"entry",
"(",
"string",
"name",
",",
"entry",
"type",
"traffic",
"type",
",",
"int",
"batch",
"count",
",",
"object",
"args",
")",
"throws",
"block",
"exception",
"{",
"return",
"env",
"sph",
"entry",
"(",
"name",
",",
"traffic",
"type",
",",
"batch",
"count",
",",
"args",
")",
";",
"}"
] |
[
"if",
"true",
",",
"the",
"underlying",
"recycler",
"binder",
"will",
"measure",
"the",
"parent",
"height",
"by",
"the",
"height",
"of",
"children",
"if",
"the",
"orientation",
"is",
"vertical",
",",
"or",
"measure",
"the",
"parent",
"width",
"by",
"the",
"width",
"of",
"children",
"if",
"the",
"orientation",
"is",
"horizontal"
] | [
"public",
"builder",
"wrap",
"content",
"(",
"boolean",
"wrap",
"content",
")",
"{",
"this",
"wrap",
"content",
"=",
"wrap",
"content",
";",
"return",
"this",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.