docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"get",
"the",
"next",
"entry",
"in",
"this",
"tar",
"archive",
"this",
"will",
"skip",
"over",
"any",
"remaining",
"data",
"in",
"the",
"current",
"entry",
",",
"if",
"there",
"is",
"one",
",",
"and",
"place",
"the",
"input",
"stream",
"at",
"the",
"header",
"of",
"the",
"next",
"entry",
",",
"and",
"read",
"the",
"header",
"and",
"instantiate",
"a",
"new",
"tar",
"entry",
"from",
"the",
"header",
"bytes",
"and",
"return",
"that",
"entry",
"if",
"there",
"are",
"no",
"more",
"entries",
"in",
"the",
"archive",
",",
"null",
"will",
"be",
"returned",
"to",
"indicate",
"that",
"the",
"end",
"of",
"the",
"archive",
"has",
"been",
"reached"
] | [
"public",
"tar",
"entry",
"get",
"next",
"entry",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"this",
"has",
"hit",
"e",
"o",
"f",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"this",
"curr",
"entry",
"!",
"=",
"null",
")",
"{",
"long",
"num",
"to",
"skip",
"=",
"this",
"entry",
"size",
"-",
"this",
"entry",
"offset",
";",
"if",
"(",
"this",
"debug",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"tar",
"input",
"stream",
":",
"skip",
"curr",
"e",
"n",
"t",
"r",
"y",
"'",
"\"",
"+",
"this",
"curr",
"entry",
"get",
"name",
"(",
")",
"+",
"\"",
"'",
"sz",
"\"",
"+",
"this",
"entry",
"size",
"+",
"\"",
"off",
"\"",
"+",
"this",
"entry",
"offset",
"+",
"\"",
"skipping",
"\"",
"+",
"num",
"to",
"skip",
"+",
"\"",
"bytes",
"\"",
")",
";",
"}",
"if",
"(",
"num",
"to",
"skip",
">",
"0",
")",
"{",
"this",
"skip",
"(",
"num",
"to",
"skip",
")",
";",
"}",
"this",
"read",
"buf",
"=",
"null",
";",
"}",
"byte",
"[",
"]",
"header",
"buf",
"=",
"this",
"buffer",
"read",
"record",
"(",
")",
";",
"if",
"(",
"header",
"buf",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"this",
"debug",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"read",
"null",
"record",
"\"",
")",
";",
"}",
"this",
"has",
"hit",
"e",
"o",
"f",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"this",
"buffer",
"is",
"e",
"o",
"f",
"record",
"(",
"header",
"buf",
")",
")",
"{",
"if",
"(",
"this",
"debug",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"read",
"eof",
"record",
"\"",
")",
";",
"}",
"this",
"has",
"hit",
"e",
"o",
"f",
"=",
"true",
";",
"}",
"if",
"(",
"this",
"has",
"hit",
"e",
"o",
"f",
")",
"{",
"this",
"curr",
"entry",
"=",
"null",
";",
"}",
"else",
"{",
"this",
"curr",
"entry",
"=",
"new",
"tar",
"entry",
"(",
"header",
"buf",
")",
";",
"if",
"(",
"this",
"debug",
")",
"{",
"system",
"err",
"println",
"(",
"\"",
"tar",
"input",
"stream",
":",
"set",
"curr",
"e",
"n",
"t",
"r",
"y",
"'",
"\"",
"+",
"this",
"curr",
"entry",
"get",
"name",
"(",
")",
"+",
"\"",
"'",
"size",
"=",
"\"",
"+",
"this",
"curr",
"entry",
"get",
"size",
"(",
")",
")",
";",
"}",
"this",
"entry",
"offset",
"=",
"0",
";",
"this",
"entry",
"size",
"=",
"this",
"curr",
"entry",
"get",
"size",
"(",
")",
";",
"}",
"if",
"(",
"this",
"curr",
"entry",
"!",
"=",
"null",
"&",
"&",
"this",
"curr",
"entry",
"is",
"g",
"n",
"u",
"long",
"name",
"entry",
"(",
")",
")",
"{",
"/",
"/",
"read",
"in",
"the",
"name",
"byte",
"array",
"output",
"stream",
"baos",
"=",
"new",
"byte",
"array",
"output",
"stream",
"(",
")",
";",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"256",
"]",
";",
"int",
"length",
";",
"while",
"(",
"(",
"length",
"=",
"read",
"(",
"buf",
")",
")",
">",
"=",
"0",
")",
"{",
"baos",
"write",
"(",
"buf",
",",
"0",
",",
"length",
")",
";",
"}",
"get",
"next",
"entry",
"(",
")",
";",
"if",
"(",
"this",
"curr",
"entry",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"bugzilla",
":",
"40334",
"/",
"/",
"malformed",
"tar",
"file",
"-",
"long",
"entry",
"name",
"not",
"followed",
"by",
"entry",
"return",
"null",
";",
"}",
"string",
"long",
"name",
"=",
"baos",
"to",
"string",
"(",
"\"",
"utf",
"-",
"8",
"\"",
")",
";",
"/",
"/",
"remove",
"trailing",
"null",
"terminator",
"if",
"(",
"long",
"name",
"length",
"(",
")",
">",
"0",
"&",
"&",
"long",
"name",
"char",
"at",
"(",
"long",
"name",
"length",
"(",
")",
"-",
"1",
")",
"=",
"=",
"0",
")",
"{",
"long",
"name",
"=",
"long",
"name",
"substring",
"(",
"0",
",",
"long",
"name",
"length",
"(",
")",
"-",
"1",
")",
";",
"}",
"this",
"curr",
"entry",
"set",
"name",
"(",
"long",
"name",
")",
";",
"}",
"return",
"this",
"curr",
"entry",
";",
"}"
] |
[
"get",
"date",
"time"
] | [
"public",
"offset",
"date",
"time",
"get",
"date",
"time",
"(",
")",
"{",
"return",
"date",
"time",
";",
"}"
] |
[
"read",
"in",
"my",
"data",
"state"
] | [
"public",
"void",
"read",
"data",
"state",
"(",
"save",
"state",
"save",
"state",
")",
"{",
"if",
"(",
"!",
"program",
"mgr",
"is",
"empty",
"(",
")",
")",
"{",
"current",
"location",
"=",
"null",
";",
"return",
";",
"/",
"/",
"don",
"'",
"t",
"do",
"anything",
"restoring",
"toolstate",
"}",
"load",
"programs",
"(",
"save",
"state",
")",
";",
"string",
"current",
"file",
"=",
"save",
"state",
"get",
"string",
"(",
"\"",
"current",
"file",
"\"",
",",
"null",
")",
";",
"program",
"[",
"]",
"programs",
"=",
"program",
"mgr",
"get",
"all",
"programs",
"(",
")",
";",
"if",
"(",
"programs",
"length",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"current",
"file",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"program",
"program",
":",
"programs",
")",
"{",
"if",
"(",
"program",
"get",
"domain",
"file",
"(",
")",
"get",
"name",
"(",
")",
"equals",
"(",
"current",
"file",
")",
")",
"{",
"program",
"mgr",
"set",
"current",
"program",
"(",
"program",
")",
";",
"current",
"location",
"=",
"program",
"location",
"get",
"location",
"(",
"program",
",",
"save",
"state",
")",
";",
"break",
";",
"}",
"}",
"}",
"if",
"(",
"get",
"current",
"program",
"(",
")",
"=",
"=",
"null",
")",
"{",
"program",
"mgr",
"set",
"current",
"program",
"(",
"programs",
"[",
"0",
"]",
")",
";",
"}",
"}",
"update",
"actions",
"(",
")",
";",
"}"
] |
[
"handle",
"http",
"delete",
"request"
] | [
"public",
"response",
"delete",
"(",
"@",
"context",
"final",
"user",
"group",
"information",
"ugi",
",",
"@",
"query",
"param",
"(",
"delegation",
"param",
"name",
")",
"@",
"default",
"value",
"(",
"delegation",
"param",
"default",
")",
"final",
"delegation",
"param",
"delegation",
",",
"@",
"query",
"param",
"(",
"user",
"param",
"name",
")",
"@",
"default",
"value",
"(",
"user",
"param",
"default",
")",
"final",
"user",
"param",
"username",
",",
"@",
"query",
"param",
"(",
"do",
"as",
"param",
"name",
")",
"@",
"default",
"value",
"(",
"do",
"as",
"param",
"default",
")",
"final",
"do",
"as",
"param",
"do",
"as",
"user",
",",
"@",
"path",
"param",
"(",
"uri",
"fs",
"path",
"param",
"name",
")",
"final",
"uri",
"fs",
"path",
"param",
"path",
",",
"@",
"query",
"param",
"(",
"delete",
"op",
"param",
"name",
")",
"@",
"default",
"value",
"(",
"delete",
"op",
"param",
"default",
")",
"final",
"delete",
"op",
"param",
"op",
",",
"@",
"query",
"param",
"(",
"recursive",
"param",
"name",
")",
"@",
"default",
"value",
"(",
"recursive",
"param",
"default",
")",
"final",
"recursive",
"param",
"recursive",
",",
"@",
"query",
"param",
"(",
"snapshot",
"name",
"param",
"name",
")",
"@",
"default",
"value",
"(",
"snapshot",
"name",
"param",
"default",
")",
"final",
"snapshot",
"name",
"param",
"snapshot",
"name",
")",
"throws",
"i",
"o",
"exception",
",",
"interrupted",
"exception",
"{",
"init",
"(",
"ugi",
",",
"delegation",
",",
"username",
",",
"do",
"as",
"user",
",",
"path",
",",
"op",
",",
"recursive",
",",
"snapshot",
"name",
")",
";",
"return",
"do",
"as",
"(",
"ugi",
",",
"new",
"privileged",
"exception",
"action",
"<",
"response",
">",
"(",
")",
"{",
"@",
"override",
"public",
"response",
"run",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"delete",
"(",
"ugi",
",",
"delegation",
",",
"username",
",",
"do",
"as",
"user",
",",
"path",
"get",
"absolute",
"path",
"(",
")",
",",
"op",
",",
"recursive",
",",
"snapshot",
"name",
")",
";",
"}",
"}",
")",
";",
"}"
] |
[
"returns",
"the",
"string",
"representation",
"of",
"the",
"{",
"@",
"link",
"#",
"sum",
"}"
] | [
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"long",
"to",
"string",
"(",
"sum",
"(",
")",
")",
";",
"}"
] |
[
"computes",
"the",
"child",
"functions",
"of",
"a",
"function",
"(",
"who",
"do",
"i",
"call",
"?",
")"
] | [
"static",
"set",
"<",
"function",
">",
"compute",
"children",
"(",
"function",
"function",
")",
"{",
"hash",
"set",
"<",
"function",
">",
"results",
"=",
"new",
"hash",
"set",
"<",
"function",
">",
"(",
")",
";",
"program",
"program",
"=",
"function",
"get",
"program",
"(",
")",
";",
"function",
"manager",
"function",
"manager",
"=",
"program",
"get",
"function",
"manager",
"(",
")",
";",
"reference",
"manager",
"reference",
"manager",
"=",
"program",
"get",
"reference",
"manager",
"(",
")",
";",
"address",
"iterator",
"reference",
"iterator",
"=",
"reference",
"manager",
"get",
"reference",
"source",
"iterator",
"(",
"function",
"get",
"body",
"(",
")",
",",
"true",
")",
";",
"for",
"(",
"address",
"address",
":",
"reference",
"iterator",
")",
"{",
"reference",
"[",
"]",
"references",
"from",
"=",
"reference",
"manager",
"get",
"references",
"from",
"(",
"address",
")",
";",
"for",
"(",
"reference",
"reference",
":",
"references",
"from",
")",
"{",
"if",
"(",
"reference",
"get",
"reference",
"type",
"(",
")",
"is",
"call",
"(",
")",
")",
"{",
"function",
"child",
"=",
"function",
"manager",
"get",
"function",
"at",
"(",
"reference",
"get",
"to",
"address",
"(",
")",
")",
";",
"if",
"(",
"child",
"!",
"=",
"null",
")",
"{",
"results",
"add",
"(",
"child",
")",
";",
"}",
"}",
"}",
"}",
"return",
"results",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"name",
"boolean",
"'"
] | [
"public",
"void",
"name",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"boolean",
"}"
] |
[
"gets",
"the",
"total",
"size",
"in",
"bytes",
"of",
"the",
"cached",
"items",
"that",
"are",
"used",
"by",
"at",
"least",
"one",
"client"
] | [
"public",
"synchronized",
"int",
"get",
"in",
"use",
"size",
"in",
"bytes",
"(",
")",
"{",
"return",
"m",
"cached",
"entries",
"get",
"size",
"in",
"bytes",
"(",
")",
"-",
"m",
"exclusive",
"entries",
"get",
"size",
"in",
"bytes",
"(",
")",
";",
"}"
] |
[
"pre",
"collection",
"callback"
] | [
"public",
"abstract",
"void",
"pre",
"collection",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"generate",
"an",
"unsigned",
"value",
"array",
"from",
"variable",
"length",
"src",
"bytes",
"extending",
"or",
"truncating",
"bytes",
"as",
"needed",
"to",
"ensure",
"a",
"returned",
"length",
"of",
"byte",
"length",
"the",
"msb",
"is",
"located",
"at",
"byte",
"index",
"0",
",",
"therefore",
"adjustments",
"may",
"be",
"needed",
"to",
"ensure",
"that",
"the",
"lsb",
"retains",
"its",
"position",
"in",
"the",
"least",
"-",
"significant",
"byte",
"a",
"short",
"src",
"bytes",
"array",
"will",
"result",
"in",
"zero",
"-",
"filled",
"most",
"-",
"significant",
"bytes",
"within",
"the",
"result"
] | [
"private",
"static",
"byte",
"[",
"]",
"get",
"unsigned",
"value",
"array",
"(",
"byte",
"[",
"]",
"src",
"bytes",
",",
"int",
"byte",
"length",
")",
"{",
"if",
"(",
"src",
"bytes",
"length",
"=",
"=",
"byte",
"length",
")",
"{",
"return",
"src",
"bytes",
";",
"}",
"byte",
"[",
"]",
"result",
"=",
"new",
"byte",
"[",
"byte",
"length",
"]",
";",
"int",
"src",
"start",
"index",
"=",
"math",
"max",
"(",
"0",
",",
"src",
"bytes",
"length",
"-",
"byte",
"length",
")",
";",
"/",
"/",
"discard",
"excessive",
"most",
"-",
"significant",
"bytes",
"int",
"copy",
"count",
"=",
"math",
"min",
"(",
"byte",
"length",
",",
"src",
"bytes",
"length",
")",
";",
"/",
"/",
"limit",
"copy",
"to",
"requested",
"number",
"of",
"bytes",
"int",
"dest",
"start",
"index",
"=",
"byte",
"length",
"-",
"copy",
"count",
";",
"/",
"/",
"adjust",
"if",
"too",
"few",
"bytes",
"provided",
"system",
"arraycopy",
"(",
"src",
"bytes",
",",
"src",
"start",
"index",
",",
"result",
",",
"dest",
"start",
"index",
",",
"copy",
"count",
")",
";",
"return",
"result",
";",
"}"
] |
[
"initialize",
"the",
"credentials",
"by",
"calling",
"{",
"@",
"link",
"#",
"create",
"credentials",
"(",
"configuration",
")",
"}",
"with",
"the",
"current",
"config"
] | [
"protected",
"void",
"init",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"stop",
"re",
"-",
"entrant",
"attempts",
"if",
"(",
"initialized",
"get",
"and",
"set",
"(",
"true",
")",
")",
"{",
"return",
";",
"}",
"try",
"{",
"aws",
"credentials",
"=",
"invoker",
"once",
"(",
"\"",
"create",
"credentials",
"\"",
",",
"\"",
"\"",
",",
"(",
")",
"-",
">",
"create",
"credentials",
"(",
"get",
"conf",
"(",
")",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"initialization",
"exception",
"=",
"e",
";",
"throw",
"e",
";",
"}",
"}"
] |
[
"determine",
"the",
"order",
"value",
"for",
"the",
"given",
"object",
"the",
"default",
"implementation",
"checks",
"against",
"the",
"given",
"{",
"@",
"link",
"order",
"source",
"provider",
"}",
"using",
"{",
"@",
"link",
"#",
"find",
"order",
"}",
"and",
"falls",
"back",
"to",
"a",
"regular",
"{",
"@",
"link",
"#",
"get",
"order",
"(",
"object",
")",
"}",
"call"
] | [
"private",
"int",
"get",
"order",
"(",
"@",
"nullable",
"object",
"obj",
",",
"@",
"nullable",
"order",
"source",
"provider",
"source",
"provider",
")",
"{",
"integer",
"order",
"=",
"null",
";",
"if",
"(",
"obj",
"!",
"=",
"null",
"&",
"&",
"source",
"provider",
"!",
"=",
"null",
")",
"{",
"object",
"order",
"source",
"=",
"source",
"provider",
"get",
"order",
"source",
"(",
"obj",
")",
";",
"if",
"(",
"order",
"source",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"order",
"source",
"get",
"class",
"(",
")",
"is",
"array",
"(",
")",
")",
"{",
"for",
"(",
"object",
"source",
":",
"object",
"utils",
"to",
"object",
"array",
"(",
"order",
"source",
")",
")",
"{",
"order",
"=",
"find",
"order",
"(",
"source",
")",
";",
"if",
"(",
"order",
"!",
"=",
"null",
")",
"{",
"break",
";",
"}",
"}",
"}",
"else",
"{",
"order",
"=",
"find",
"order",
"(",
"order",
"source",
")",
";",
"}",
"}",
"}",
"return",
"(",
"order",
"!",
"=",
"null",
"?",
"order",
":",
"get",
"order",
"(",
"obj",
")",
")",
";",
"}"
] |
[
"returns",
"an",
"array",
"with",
"all",
"the",
"values",
"in",
"the",
"set"
] | [
"public",
"int",
"[",
"]",
"get",
"values",
"(",
")",
"{",
"return",
"indexer",
"get",
"keys",
"(",
")",
";",
"}"
] |
[
"return",
"the",
"{",
"@",
"link",
"#",
"set",
"max",
"parts",
"configured",
"}",
"limit",
"on",
"the",
"number",
"of",
"parts"
] | [
"public",
"int",
"get",
"max",
"parts",
"(",
")",
"{",
"return",
"this",
"max",
"parts",
";",
"}"
] |
[
"set",
"the",
"{",
"@",
"code",
"list",
"}",
"of",
"{",
"@",
"code",
"resource",
"}",
"paths",
"to",
"use",
"as",
"sources",
"for",
"serving",
"static",
"resources"
] | [
"public",
"void",
"set",
"locations",
"(",
"@",
"nullable",
"list",
"<",
"resource",
">",
"locations",
")",
"{",
"this",
"locations",
"clear",
"(",
")",
";",
"if",
"(",
"locations",
"!",
"=",
"null",
")",
"{",
"this",
"locations",
"add",
"all",
"(",
"locations",
")",
";",
"}",
"}"
] |
[
"sets",
"an",
"offset",
"in",
"stage",
"coordinates",
"from",
"the",
"touch",
"position",
"which",
"is",
"used",
"to",
"determine",
"the",
"drop",
"location",
"default",
"is",
"0",
",",
"0"
] | [
"public",
"void",
"set",
"touch",
"offset",
"(",
"float",
"touch",
"offset",
"x",
",",
"float",
"touch",
"offset",
"y",
")",
"{",
"this",
"touch",
"offset",
"x",
"=",
"touch",
"offset",
"x",
";",
"this",
"touch",
"offset",
"y",
"=",
"touch",
"offset",
"y",
";",
"}"
] |
[
"returns",
"the",
"index",
"of",
"the",
"last",
"appearance",
"of",
"the",
"value",
"{",
"@",
"code",
"target",
"}",
"in",
"{",
"@",
"code",
"array",
"}",
"note",
"that",
"this",
"always",
"returns",
"{",
"@",
"code",
"-",
"1",
"}",
"when",
"{",
"@",
"code",
"target",
"}",
"is",
"{",
"@",
"code",
"na",
"n",
"}"
] | [
"public",
"static",
"int",
"last",
"index",
"of",
"(",
"double",
"[",
"]",
"array",
",",
"double",
"target",
")",
"{",
"return",
"last",
"index",
"of",
"(",
"array",
",",
"target",
",",
"0",
",",
"array",
"length",
")",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"update",
"{",
"@",
"link",
"#",
"queue",
"duration",
"}",
"with",
"queue",
"duration",
",",
"decrement",
"{",
"@",
"code",
"stream",
"write",
"block",
"uploads",
"pending",
"}",
"gauge",
"and",
"increment",
"{",
"@",
"code",
"stream",
"write",
"block",
"uploads",
"active",
"}"
] | [
"public",
"void",
"block",
"upload",
"started",
"(",
"duration",
"time",
"in",
"queue",
",",
"int",
"block",
"size",
")",
"{",
"/",
"/",
"the",
"local",
"counter",
"is",
"used",
"in",
"to",
"string",
"reporting",
"queue",
"duration",
"add",
"and",
"get",
"(",
"time",
"in",
"queue",
"to",
"millis",
"(",
")",
")",
";",
"/",
"/",
"update",
"the",
"duration",
"fields",
"in",
"the",
"i",
"o",
"statistics",
"local",
"i",
"o",
"statistics",
"(",
")",
"add",
"timed",
"operation",
"(",
"action",
"executor",
"acquired",
",",
"time",
"in",
"queue",
")",
";",
"inc",
"all",
"gauges",
"(",
"stream",
"write",
"block",
"uploads",
"pending",
",",
"-",
"1",
")",
";",
"inc",
"all",
"gauges",
"(",
"stream",
"write",
"block",
"uploads",
"active",
",",
"1",
")",
";",
"}"
] |
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"this",
"multimap",
"contains",
"at",
"least",
"one",
"key",
"-",
"value",
"pair",
"with",
"the",
"key",
"{",
"@",
"code",
"key",
"}",
"and",
"the",
"value",
"{",
"@",
"code",
"value",
"}"
] | [
"boolean",
"contains",
"entry",
"(",
"@",
"compatible",
"with",
"(",
"\"",
"k",
"\"",
")",
"@",
"nullable",
"decl",
"object",
"key",
",",
"@",
"compatible",
"with",
"(",
"\"",
"v",
"\"",
")",
"@",
"nullable",
"decl",
"object",
"value",
")",
";",
"/",
"/",
"modification",
"operations"
] |
[
"used",
"to",
"print",
"a",
"error",
"message"
] | [
"public",
"void",
"print",
"error",
"string",
"(",
"final",
"string",
"value",
")",
"{",
"this",
"error",
"println",
"(",
"value",
")",
";",
"}"
] |
[
"<",
"code",
">",
"optional",
"string",
"foo",
"=",
"1",
";",
"<",
"code",
">"
] | [
"public",
"builder",
"clear",
"foo",
"(",
")",
"{",
"bit",
"field",
"0",
"=",
"(",
"bit",
"field",
"0",
"&",
"~",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
")",
";",
"foo",
"=",
"get",
"default",
"instance",
"(",
")",
"get",
"foo",
"(",
")",
";",
"on",
"changed",
"(",
")",
";",
"return",
"this",
";",
"}"
] |
[
"post",
"-",
"processes",
"a",
"bean",
"factory",
"in",
"search",
"of",
"configuration",
"class",
"bean",
"definitions",
";",
"any",
"candidates",
"are",
"then",
"enhanced",
"by",
"a",
"{",
"@",
"link",
"configuration",
"class",
"enhancer",
"}",
"candidate",
"status",
"is",
"determined",
"by",
"bean",
"definition",
"attribute",
"metadata"
] | [
"public",
"void",
"enhance",
"configuration",
"classes",
"(",
"configurable",
"listable",
"bean",
"factory",
"bean",
"factory",
")",
"{",
"startup",
"step",
"enhance",
"config",
"classes",
"=",
"this",
"application",
"startup",
"start",
"(",
"\"",
"spring",
"context",
"config",
"-",
"classes",
"enhance",
"\"",
")",
";",
"map",
"<",
"string",
",",
"abstract",
"bean",
"definition",
">",
"config",
"bean",
"defs",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"bean",
"name",
":",
"bean",
"factory",
"get",
"bean",
"definition",
"names",
"(",
")",
")",
"{",
"bean",
"definition",
"bean",
"def",
"=",
"bean",
"factory",
"get",
"bean",
"definition",
"(",
"bean",
"name",
")",
";",
"object",
"config",
"class",
"attr",
"=",
"bean",
"def",
"get",
"attribute",
"(",
"configuration",
"class",
"utils",
"configuration",
"class",
"attribute",
")",
";",
"method",
"metadata",
"method",
"metadata",
"=",
"null",
";",
"if",
"(",
"bean",
"def",
"instanceof",
"annotated",
"bean",
"definition",
")",
"{",
"method",
"metadata",
"=",
"(",
"(",
"annotated",
"bean",
"definition",
")",
"bean",
"def",
")",
"get",
"factory",
"method",
"metadata",
"(",
")",
";",
"}",
"if",
"(",
"(",
"config",
"class",
"attr",
"!",
"=",
"null",
"|",
"|",
"method",
"metadata",
"!",
"=",
"null",
")",
"&",
"&",
"bean",
"def",
"instanceof",
"abstract",
"bean",
"definition",
")",
"{",
"/",
"/",
"configuration",
"class",
"(",
"full",
"or",
"lite",
")",
"or",
"a",
"configuration",
"-",
"derived",
"@",
"bean",
"method",
"/",
"/",
"-",
">",
"resolve",
"bean",
"class",
"at",
"this",
"point",
"abstract",
"bean",
"definition",
"abd",
"=",
"(",
"abstract",
"bean",
"definition",
")",
"bean",
"def",
";",
"if",
"(",
"!",
"abd",
"has",
"bean",
"class",
"(",
")",
")",
"{",
"try",
"{",
"abd",
"resolve",
"bean",
"class",
"(",
"this",
"bean",
"class",
"loader",
")",
";",
"}",
"catch",
"(",
"throwable",
"ex",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"cannot",
"load",
"configuration",
"class",
":",
"\"",
"+",
"bean",
"def",
"get",
"bean",
"class",
"name",
"(",
")",
",",
"ex",
")",
";",
"}",
"}",
"}",
"if",
"(",
"configuration",
"class",
"utils",
"configuration",
"class",
"full",
"equals",
"(",
"config",
"class",
"attr",
")",
")",
"{",
"if",
"(",
"!",
"(",
"bean",
"def",
"instanceof",
"abstract",
"bean",
"definition",
")",
")",
"{",
"throw",
"new",
"bean",
"definition",
"store",
"exception",
"(",
"\"",
"cannot",
"enhance",
"@",
"configuration",
"bean",
"definition",
"'",
"\"",
"+",
"bean",
"name",
"+",
"\"",
"'",
"since",
"it",
"is",
"not",
"stored",
"in",
"an",
"abstract",
"bean",
"definition",
"subclass",
"\"",
")",
";",
"}",
"else",
"if",
"(",
"logger",
"is",
"info",
"enabled",
"(",
")",
"&",
"&",
"bean",
"factory",
"contains",
"singleton",
"(",
"bean",
"name",
")",
")",
"{",
"logger",
"info",
"(",
"\"",
"cannot",
"enhance",
"@",
"configuration",
"bean",
"definition",
"'",
"\"",
"+",
"bean",
"name",
"+",
"\"",
"'",
"since",
"its",
"singleton",
"instance",
"has",
"been",
"created",
"too",
"early",
"the",
"typical",
"cause",
"\"",
"+",
"\"",
"is",
"a",
"non",
"-",
"static",
"@",
"bean",
"method",
"with",
"a",
"bean",
"definition",
"registry",
"post",
"processor",
"\"",
"+",
"\"",
"return",
"type",
":",
"consider",
"declaring",
"such",
"methods",
"as",
"'",
"static",
"'",
"\"",
")",
";",
"}",
"config",
"bean",
"defs",
"put",
"(",
"bean",
"name",
",",
"(",
"abstract",
"bean",
"definition",
")",
"bean",
"def",
")",
";",
"}",
"}",
"if",
"(",
"config",
"bean",
"defs",
"is",
"empty",
"(",
")",
"|",
"|",
"in",
"native",
"image",
")",
"{",
"/",
"/",
"nothing",
"to",
"enhance",
"-",
">",
"return",
"immediately",
"enhance",
"config",
"classes",
"end",
"(",
")",
";",
"return",
";",
"}",
"configuration",
"class",
"enhancer",
"enhancer",
"=",
"new",
"configuration",
"class",
"enhancer",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"abstract",
"bean",
"definition",
">",
"entry",
":",
"config",
"bean",
"defs",
"entry",
"set",
"(",
")",
")",
"{",
"abstract",
"bean",
"definition",
"bean",
"def",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"/",
"/",
"if",
"a",
"@",
"configuration",
"class",
"gets",
"proxied",
",",
"always",
"proxy",
"the",
"target",
"class",
"bean",
"def",
"set",
"attribute",
"(",
"auto",
"proxy",
"utils",
"preserve",
"target",
"class",
"attribute",
",",
"boolean",
"true",
")",
";",
"/",
"/",
"set",
"enhanced",
"subclass",
"of",
"the",
"user",
"-",
"specified",
"bean",
"class",
"class",
"<",
"?",
">",
"config",
"class",
"=",
"bean",
"def",
"get",
"bean",
"class",
"(",
")",
";",
"class",
"<",
"?",
">",
"enhanced",
"class",
"=",
"enhancer",
"enhance",
"(",
"config",
"class",
",",
"this",
"bean",
"class",
"loader",
")",
";",
"if",
"(",
"config",
"class",
"!",
"=",
"enhanced",
"class",
")",
"{",
"if",
"(",
"logger",
"is",
"trace",
"enabled",
"(",
")",
")",
"{",
"logger",
"trace",
"(",
"string",
"format",
"(",
"\"",
"replacing",
"bean",
"definition",
"'",
"%",
"s",
"'",
"existing",
"class",
"'",
"%",
"s",
"'",
"with",
"\"",
"+",
"\"",
"enhanced",
"class",
"'",
"%",
"s",
"'",
"\"",
",",
"entry",
"get",
"key",
"(",
")",
",",
"config",
"class",
"get",
"name",
"(",
")",
",",
"enhanced",
"class",
"get",
"name",
"(",
")",
")",
")",
";",
"}",
"bean",
"def",
"set",
"bean",
"class",
"(",
"enhanced",
"class",
")",
";",
"}",
"}",
"enhance",
"config",
"classes",
"tag",
"(",
"\"",
"class",
"count",
"\"",
",",
"(",
")",
"-",
">",
"string",
"value",
"of",
"(",
"config",
"bean",
"defs",
"key",
"set",
"(",
")",
"size",
"(",
")",
")",
")",
"end",
"(",
")",
";",
"}"
] |
[
"return",
"the",
"attributes",
"candidate",
"for",
"flash",
"storage",
"or",
"an",
"empty",
"map"
] | [
"map",
"<",
"string",
",",
"?",
">",
"get",
"flash",
"attributes",
"(",
")",
";"
] |
[
"get",
"name",
"wrapped",
"array"
] | [
"public",
"list",
"<",
"integer",
">",
"get",
"name",
"wrapped",
"array",
"(",
")",
"{",
"return",
"name",
"wrapped",
"array",
";",
"}"
] |
[
"get",
"number",
"item"
] | [
"public",
"big",
"decimal",
"get",
"number",
"item",
"(",
")",
"{",
"return",
"number",
"item",
";",
"}"
] |
[
"get",
"array",
"enum"
] | [
"public",
"list",
"<",
"array",
"enum",
"enum",
">",
"get",
"array",
"enum",
"(",
")",
"{",
"return",
"array",
"enum",
";",
"}"
] |
[
"true",
"when",
"{",
"@",
"code",
"type",
"}",
"has",
"the",
"same",
"type",
"as",
"{",
"@",
"code",
"clazz",
"}"
] | [
"private",
"boolean",
"matches",
"type",
"(",
"type",
"mirror",
"type",
",",
"class",
"<",
"?",
">",
"clazz",
")",
"{",
"return",
"env",
"get",
"type",
"utils",
"(",
")",
"is",
"same",
"type",
"(",
"type",
",",
"get",
"type",
"(",
"clazz",
")",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"this",
"program",
"contains",
"objective",
"-",
"c"
] | [
"public",
"final",
"static",
"boolean",
"is",
"objective",
"c",
"(",
"program",
"program",
")",
"{",
"string",
"format",
"=",
"program",
"get",
"executable",
"format",
"(",
")",
";",
"if",
"(",
"macho",
"loader",
"mach",
"o",
"name",
"equals",
"(",
"format",
")",
")",
"{",
"for",
"(",
"string",
"objc",
"section",
":",
"get",
"objective",
"c",
"section",
"names",
"(",
")",
")",
"{",
"if",
"(",
"program",
"get",
"memory",
"(",
")",
"get",
"block",
"(",
"objc",
"section",
")",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"objc",
"section",
"equals",
"(",
"\"",
"data",
"\"",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"}",
"return",
"false",
";",
"}"
] |
[
"gets",
"the",
"selected",
"text",
"that",
"pertains",
"to",
"an",
"individual",
"field",
"null",
"is",
"returned",
"if",
"the",
"given",
"selection",
"spans",
"more",
"than",
"one",
"field"
] | [
"public",
"static",
"string",
"get",
"field",
"selection",
"text",
"(",
"field",
"selection",
"selection",
",",
"field",
"panel",
"panel",
")",
"{",
"if",
"(",
"!",
"is",
"string",
"selection",
"(",
"selection",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"get",
"text",
"for",
"field",
"(",
"selection",
"get",
"field",
"range",
"(",
"0",
")",
",",
"panel",
")",
";",
"}"
] |
[
"tests",
"that",
"the",
"{",
"@",
"link",
"execution",
"graph",
"}",
"is",
"deployed",
"in",
"topological",
"order"
] | [
"public",
"void",
"test",
"execution",
"graph",
"is",
"deployed",
"in",
"topological",
"order",
"(",
")",
"throws",
"exception",
"{",
"final",
"int",
"source",
"parallelism",
"=",
"2",
";",
"final",
"int",
"sink",
"parallelism",
"=",
"1",
";",
"final",
"job",
"vertex",
"source",
"vertex",
"=",
"new",
"job",
"vertex",
"(",
"\"",
"source",
"\"",
")",
";",
"source",
"vertex",
"set",
"invokable",
"class",
"(",
"no",
"op",
"invokable",
"class",
")",
";",
"source",
"vertex",
"set",
"parallelism",
"(",
"source",
"parallelism",
")",
";",
"final",
"job",
"vertex",
"sink",
"vertex",
"=",
"new",
"job",
"vertex",
"(",
"\"",
"sink",
"\"",
")",
";",
"sink",
"vertex",
"set",
"invokable",
"class",
"(",
"no",
"op",
"invokable",
"class",
")",
";",
"sink",
"vertex",
"set",
"parallelism",
"(",
"sink",
"parallelism",
")",
";",
"sink",
"vertex",
"connect",
"new",
"data",
"set",
"as",
"input",
"(",
"source",
"vertex",
",",
"distribution",
"pattern",
"pointwise",
",",
"result",
"partition",
"type",
"pipelined",
")",
";",
"final",
"job",
"i",
"d",
"job",
"id",
"=",
"new",
"job",
"i",
"d",
"(",
")",
";",
"final",
"int",
"number",
"tasks",
"=",
"source",
"parallelism",
"+",
"sink",
"parallelism",
";",
"final",
"array",
"blocking",
"queue",
"<",
"execution",
"attempt",
"i",
"d",
">",
"submitted",
"tasks",
"queue",
"=",
"new",
"array",
"blocking",
"queue",
"<",
">",
"(",
"number",
"tasks",
")",
";",
"testing",
"task",
"executor",
"gateway",
"builder",
"testing",
"task",
"executor",
"gateway",
"builder",
"=",
"new",
"testing",
"task",
"executor",
"gateway",
"builder",
"(",
")",
";",
"testing",
"task",
"executor",
"gateway",
"builder",
"set",
"submit",
"task",
"consumer",
"(",
"(",
"task",
"deployment",
"descriptor",
",",
"job",
"master",
"id",
")",
"-",
">",
"{",
"submitted",
"tasks",
"queue",
"offer",
"(",
"task",
"deployment",
"descriptor",
"get",
"execution",
"attempt",
"id",
"(",
")",
")",
";",
"return",
"completable",
"future",
"completed",
"future",
"(",
"acknowledge",
"get",
"(",
")",
")",
";",
"}",
")",
";",
"final",
"task",
"manager",
"location",
"task",
"manager",
"location",
"=",
"new",
"local",
"task",
"manager",
"location",
"(",
")",
";",
"final",
"testing",
"task",
"executor",
"gateway",
"task",
"executor",
"gateway",
"=",
"testing",
"task",
"executor",
"gateway",
"builder",
"create",
"testing",
"task",
"executor",
"gateway",
"(",
")",
";",
"final",
"rpc",
"task",
"manager",
"gateway",
"task",
"manager",
"gateway",
"=",
"new",
"rpc",
"task",
"manager",
"gateway",
"(",
"task",
"executor",
"gateway",
",",
"job",
"master",
"id",
"generate",
"(",
")",
")",
";",
"final",
"job",
"graph",
"job",
"graph",
"=",
"new",
"job",
"graph",
"(",
"job",
"id",
",",
"\"",
"test",
"job",
"\"",
",",
"source",
"vertex",
",",
"sink",
"vertex",
")",
";",
"job",
"graph",
"set",
"schedule",
"mode",
"(",
"schedule",
"mode",
"eager",
")",
";",
"final",
"testing",
"physical",
"slot",
"provider",
"physical",
"slot",
"provider",
"=",
"testing",
"physical",
"slot",
"provider",
"create",
"without",
"immediate",
"physical",
"slot",
"creation",
"(",
")",
";",
"final",
"scheduler",
"base",
"scheduler",
"=",
"scheduler",
"testing",
"utils",
"new",
"scheduler",
"builder",
"(",
"job",
"graph",
",",
"component",
"main",
"thread",
"executor",
"service",
"adapter",
"for",
"main",
"thread",
"(",
")",
")",
"set",
"execution",
"slot",
"allocator",
"factory",
"(",
"scheduler",
"testing",
"utils",
"new",
"slot",
"sharing",
"execution",
"slot",
"allocator",
"factory",
"(",
"physical",
"slot",
"provider",
")",
")",
"set",
"future",
"executor",
"(",
"new",
"direct",
"scheduled",
"executor",
"service",
"(",
")",
")",
"build",
"(",
")",
";",
"final",
"execution",
"graph",
"execution",
"graph",
"=",
"scheduler",
"get",
"execution",
"graph",
"(",
")",
";",
"scheduler",
"start",
"scheduling",
"(",
")",
";",
"/",
"/",
"change",
"the",
"order",
"in",
"which",
"the",
"futures",
"are",
"completed",
"final",
"list",
"<",
"completable",
"future",
"<",
"testing",
"physical",
"slot",
">",
">",
"shuffled",
"futures",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"physical",
"slot",
"provider",
"get",
"responses",
"(",
")",
"values",
"(",
")",
")",
";",
"collections",
"shuffle",
"(",
"shuffled",
"futures",
")",
";",
"for",
"(",
"completable",
"future",
"<",
"testing",
"physical",
"slot",
">",
"slot",
"future",
":",
"shuffled",
"futures",
")",
"{",
"slot",
"future",
"complete",
"(",
"testing",
"physical",
"slot",
"builder",
"(",
")",
"with",
"task",
"manager",
"location",
"(",
"task",
"manager",
"location",
")",
"with",
"task",
"manager",
"gateway",
"(",
"task",
"manager",
"gateway",
")",
"build",
"(",
")",
")",
";",
"}",
"final",
"list",
"<",
"execution",
"attempt",
"i",
"d",
">",
"submitted",
"tasks",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"number",
"tasks",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"number",
"tasks",
";",
"i",
"+",
"+",
")",
"{",
"submitted",
"tasks",
"add",
"(",
"submitted",
"tasks",
"queue",
"take",
"(",
")",
")",
";",
"}",
"final",
"collection",
"<",
"execution",
"attempt",
"i",
"d",
">",
"first",
"stage",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"source",
"parallelism",
")",
";",
"for",
"(",
"execution",
"vertex",
"task",
"vertex",
":",
"execution",
"graph",
"get",
"job",
"vertex",
"(",
"source",
"vertex",
"get",
"i",
"d",
"(",
")",
")",
"get",
"task",
"vertices",
"(",
")",
")",
"{",
"first",
"stage",
"add",
"(",
"task",
"vertex",
"get",
"current",
"execution",
"attempt",
"(",
")",
"get",
"attempt",
"id",
"(",
")",
")",
";",
"}",
"final",
"collection",
"<",
"execution",
"attempt",
"i",
"d",
">",
"second",
"stage",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"sink",
"parallelism",
")",
";",
"for",
"(",
"execution",
"vertex",
"task",
"vertex",
":",
"execution",
"graph",
"get",
"job",
"vertex",
"(",
"sink",
"vertex",
"get",
"i",
"d",
"(",
")",
")",
"get",
"task",
"vertices",
"(",
")",
")",
"{",
"second",
"stage",
"add",
"(",
"task",
"vertex",
"get",
"current",
"execution",
"attempt",
"(",
")",
"get",
"attempt",
"id",
"(",
")",
")",
";",
"}",
"assert",
"that",
"(",
"submitted",
"tasks",
",",
"new",
"execution",
"stage",
"matcher",
"(",
"arrays",
"as",
"list",
"(",
"first",
"stage",
",",
"second",
"stage",
")",
")",
")",
";",
"}"
] |
[
"usually",
"returns",
"{",
"@",
"code",
"null",
"}",
"but",
",",
"if",
"this",
"{",
"@",
"code",
"future",
"}",
"has",
"failed",
",",
"may",
"optionally",
"return",
"the",
"cause",
"of",
"the",
"failure",
"\"",
"failure",
"\"",
"means",
"specifically",
"\"",
"completed",
"with",
"an",
"exception",
"\"",
";",
"it",
"does",
"not",
"include",
"\"",
"was",
"cancelled",
"\"",
"to",
"be",
"explicit",
":",
"if",
"this",
"method",
"returns",
"a",
"non",
"-",
"null",
"value",
",",
"then",
":",
"{",
"@",
"code",
"is",
"done",
"(",
")",
"}",
"must",
"return",
"{",
"@",
"code",
"true",
"}",
"{",
"@",
"code",
"is",
"cancelled",
"(",
")",
"}",
"must",
"return",
"{",
"@",
"code",
"false",
"}",
"{",
"@",
"code",
"get",
"(",
")",
"}",
"must",
"not",
"block",
",",
"and",
"it",
"must",
"throw",
"an",
"{",
"@",
"code",
"execution",
"exception",
"}",
"with",
"the",
"return",
"value",
"of",
"this",
"method",
"as",
"its",
"cause",
"this",
"method",
"is",
"{",
"@",
"code",
"protected",
"}",
"so",
"that",
"classes",
"like",
"{",
"@",
"code",
"com",
"google",
"common",
"util",
"concurrent",
"settable",
"future",
"}",
"do",
"not",
"expose",
"it",
"to",
"their",
"users",
"as",
"an",
"instance",
"method",
"in",
"the",
"unlikely",
"event",
"that",
"you",
"need",
"to",
"call",
"this",
"method",
",",
"call",
"{",
"@",
"link",
"internal",
"futures",
"#",
"try",
"internal",
"fast",
"path",
"get",
"failure",
"(",
"internal",
"future",
"failure",
"access",
")",
"}"
] | [
"protected",
"final",
"@",
"nullable",
"throwable",
"try",
"internal",
"fast",
"path",
"get",
"failure",
"(",
")",
"{",
"if",
"(",
"this",
"instanceof",
"trusted",
")",
"{",
"object",
"obj",
"=",
"value",
";",
"if",
"(",
"obj",
"instanceof",
"failure",
")",
"{",
"return",
"(",
"(",
"failure",
")",
"obj",
")",
"exception",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"performs",
"a",
"selection",
"operation",
"on",
"a",
"over",
"windowed",
"table",
"similar",
"to",
"an",
"sql",
"select",
"statement",
"the",
"field",
"expressions",
"can",
"contain",
"complex",
"expressions",
"and",
"aggregations",
"example",
":",
"{",
"@",
"code",
"over",
"windowed",
"table",
"select",
"(",
"$",
"(",
"\"",
"c",
"\"",
")",
",",
"$",
"(",
"\"",
"b",
"\"",
")",
"count",
"(",
")",
"over",
"(",
"$",
"(",
"\"",
"ow",
"\"",
")",
")",
",",
"$",
"(",
"\"",
"e",
"\"",
")",
"sum",
"(",
")",
"over",
"(",
"$",
"(",
"\"",
"ow",
"\"",
")",
")",
")",
";",
"}",
"scala",
"example",
":",
"{",
"@",
"code",
"over",
"windowed",
"table",
"select",
"(",
"'",
"c",
",",
"'",
"b",
"count",
"over",
"'",
"ow",
",",
"'",
"e",
"sum",
"over",
"'",
"ow",
")",
"}"
] | [
"table",
"select",
"(",
"expression",
"fields",
")",
";"
] |
[
"create",
"a",
"composite",
"interface",
"class",
"for",
"the",
"given",
"interfaces",
",",
"implementing",
"the",
"given",
"interfaces",
"in",
"one",
"single",
"class",
"the",
"default",
"implementation",
"builds",
"a",
"jdk",
"proxy",
"class",
"for",
"the",
"given",
"interfaces"
] | [
"protected",
"class",
"<",
"?",
">",
"create",
"composite",
"interface",
"(",
"class",
"<",
"?",
">",
"[",
"]",
"interfaces",
")",
"{",
"return",
"class",
"utils",
"create",
"composite",
"interface",
"(",
"interfaces",
",",
"this",
"bean",
"class",
"loader",
")",
";",
"}"
] |
[
"parse",
"some",
"text",
"into",
"a",
"{",
"@",
"link",
"date",
"}",
",",
"according",
"to",
"rfc6265"
] | [
"public",
"static",
"date",
"parse",
"http",
"date",
"(",
"char",
"sequence",
"txt",
")",
"{",
"return",
"parse",
"http",
"date",
"(",
"txt",
",",
"0",
",",
"txt",
"length",
"(",
")",
")",
";",
"}"
] |
[
"look",
"for",
"the",
"part",
"file",
"subdir",
"of",
"the",
"output",
"dir"
] | [
"private",
"void",
"validate",
"map",
"file",
"output",
"content",
"(",
"file",
"system",
"fs",
",",
"path",
"dir",
")",
"throws",
"exception",
"{",
"/",
"/",
"map",
"output",
"is",
"a",
"directory",
"with",
"index",
"and",
"data",
"files",
"assert",
"path",
"exists",
"(",
"\"",
"map",
"output",
"\"",
",",
"dir",
")",
";",
"path",
"expected",
"map",
"dir",
"=",
"get",
"part",
"0",
"0",
"0",
"0",
"(",
"dir",
")",
";",
"assert",
"path",
"exists",
"(",
"\"",
"map",
"output",
"\"",
",",
"expected",
"map",
"dir",
")",
";",
"assert",
"is",
"directory",
"(",
"expected",
"map",
"dir",
")",
";",
"file",
"status",
"[",
"]",
"files",
"=",
"fs",
"list",
"status",
"(",
"expected",
"map",
"dir",
")",
";",
"assert",
"true",
"(",
"\"",
"no",
"files",
"found",
"in",
"\"",
"+",
"expected",
"map",
"dir",
",",
"files",
"length",
">",
"0",
")",
";",
"assert",
"path",
"exists",
"(",
"\"",
"index",
"file",
"in",
"\"",
"+",
"expected",
"map",
"dir",
",",
"new",
"path",
"(",
"expected",
"map",
"dir",
",",
"map",
"file",
"index",
"file",
"name",
")",
")",
";",
"assert",
"path",
"exists",
"(",
"\"",
"data",
"file",
"in",
"\"",
"+",
"expected",
"map",
"dir",
",",
"new",
"path",
"(",
"expected",
"map",
"dir",
",",
"map",
"file",
"data",
"file",
"name",
")",
")",
";",
"}"
] |
[
"set",
"the",
"boolean",
"value",
"indicating",
"the",
"state",
"of",
"the",
"option",
"for",
"updating",
"only",
"changed",
"files"
] | [
"public",
"void",
"set",
"enable",
"minimal",
"update",
"(",
"boolean",
"enable",
"minimal",
"update",
")",
"{",
"this",
"enable",
"minimal",
"update",
"=",
"enable",
"minimal",
"update",
";",
"}"
] |
[
"returns",
"iterator",
"over",
"all",
"sub",
"-",
"events"
] | [
"public",
"iterator",
"<",
"domain",
"object",
"change",
"record",
">",
"iterator",
"(",
")",
"{",
"return",
"sub",
"events",
"iterator",
"(",
")",
";",
"}"
] |
[
"a",
"hook",
"for",
"subclasses",
"to",
"customize",
"the",
"message",
"channel",
"for",
"messages",
"from",
"the",
"application",
"or",
"message",
"broker",
"to",
"web",
"socket",
"clients"
] | [
"protected",
"void",
"configure",
"client",
"outbound",
"channel",
"(",
"channel",
"registration",
"registration",
")",
"{",
"}"
] |
[
"predicate",
"to",
"decide",
"whether",
"or",
"not",
"to",
"accept",
"a",
"prefix"
] | [
"boolean",
"accept",
"(",
"path",
"key",
"path",
",",
"string",
"common",
"prefix",
")",
";"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"format",
"the",
"given",
"date",
"object",
"into",
"string"
] | [
"public",
"string",
"format",
"date",
"(",
"date",
"date",
")",
"{",
"return",
"date",
"format",
"format",
"(",
"date",
")",
";",
"}"
] |
[
"set",
"the",
"parameter",
"name",
"discoverer",
"for",
"resolving",
"parameter",
"names",
"when",
"needed",
"(",
"e",
"g",
"default",
"request",
"attribute",
"name",
")",
"default",
"is",
"a",
"{",
"@",
"link",
"default",
"parameter",
"name",
"discoverer",
"}"
] | [
"public",
"void",
"set",
"parameter",
"name",
"discoverer",
"(",
"parameter",
"name",
"discoverer",
"name",
"discoverer",
")",
"{",
"this",
"parameter",
"name",
"discoverer",
"=",
"name",
"discoverer",
";",
"}"
] |
[
"inserts",
"the",
"specified",
"element",
"into",
"the",
"queue",
"represented",
"by",
"this",
"deque",
"(",
"in",
"other",
"words",
",",
"at",
"the",
"tail",
"of",
"this",
"deque",
")",
"if",
"it",
"is",
"possible",
"to",
"do",
"so",
"immediately",
"without",
"violating",
"capacity",
"restrictions",
",",
"returning",
"<",
"tt",
">",
"true",
"<",
"tt",
">",
"upon",
"success",
"and",
"<",
"tt",
">",
"false",
"<",
"tt",
">",
"if",
"no",
"space",
"is",
"currently",
"available",
"when",
"using",
"a",
"capacity",
"-",
"restricted",
"deque",
",",
"this",
"method",
"is",
"generally",
"preferable",
"to",
"the",
"{",
"@",
"link",
"#",
"add",
"}",
"method",
",",
"which",
"can",
"fail",
"to",
"insert",
"an",
"element",
"only",
"by",
"throwing",
"an",
"exception",
"<",
"p",
">",
"this",
"method",
"is",
"equivalent",
"to",
"{",
"@",
"link",
"#",
"offer",
"last",
"offer",
"last",
"}"
] | [
"boolean",
"offer",
"(",
"e",
"e",
")",
";"
] |
[
"returns",
"true",
"if",
"this",
"edge",
"is",
"a",
"direct",
"edge",
"from",
"a",
"lower",
"level",
"any",
"other",
"edges",
"are",
"considered",
"indirect",
"and",
"are",
"less",
"important",
"in",
"the",
"graph"
] | [
"public",
"boolean",
"is",
"direct",
"edge",
"(",
")",
"{",
"fcg",
"level",
"start",
"level",
"=",
"get",
"start",
"(",
")",
"get",
"level",
"(",
")",
";",
"fcg",
"level",
"end",
"level",
"=",
"get",
"end",
"(",
")",
"get",
"level",
"(",
")",
";",
"if",
"(",
"start",
"level",
"is",
"source",
"(",
")",
"|",
"|",
"end",
"level",
"is",
"source",
"(",
")",
")",
"{",
"/",
"/",
"all",
"info",
"leaving",
"the",
"source",
"is",
"important",
"/",
"'",
"direct",
"'",
"return",
"true",
";",
"}",
"fcg",
"level",
"parent",
"=",
"start",
"level",
"parent",
"(",
")",
";",
"if",
"(",
"parent",
"equals",
"(",
"end",
"level",
")",
")",
"{",
"return",
"true",
";",
"}",
"fcg",
"level",
"child",
"=",
"start",
"level",
"child",
"(",
")",
";",
"return",
"child",
"equals",
"(",
"end",
"level",
")",
";",
"}"
] |
[
"create",
"a",
"map",
"of",
"input",
"index",
"to",
"output",
"index",
"this",
"does",
"not",
"include",
"the",
"time",
"or",
"control",
"fields"
] | [
"private",
"list",
"<",
"input",
"output",
"map",
">",
"create",
"input",
"output",
"map",
"(",
"map",
"<",
"string",
",",
"integer",
">",
"in",
"field",
"indexes",
")",
"{",
"list",
"<",
"input",
"output",
"map",
">",
"input",
"output",
"map",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"int",
"out",
"index",
"=",
"time",
"field",
"out",
"index",
";",
"integer",
"in",
"index",
"=",
"in",
"field",
"indexes",
"get",
"(",
"data",
"description",
"get",
"time",
"field",
"(",
")",
")",
";",
"if",
"(",
"in",
"index",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"string",
"format",
"(",
"locale",
"root",
",",
"\"",
"input",
"time",
"field",
"'",
"%",
"s",
"'",
"not",
"found",
"\"",
",",
"data",
"description",
"get",
"time",
"field",
"(",
")",
")",
")",
";",
"}",
"input",
"output",
"map",
"add",
"(",
"new",
"input",
"output",
"map",
"(",
"in",
"index",
",",
"out",
"index",
")",
")",
";",
"for",
"(",
"string",
"field",
":",
"analysis",
"config",
"analysis",
"fields",
"(",
")",
")",
"{",
"if",
"(",
"analysis",
"config",
"ml",
"category",
"field",
"equals",
"(",
"field",
")",
"=",
"=",
"false",
")",
"{",
"+",
"+",
"out",
"index",
";",
"in",
"index",
"=",
"in",
"field",
"indexes",
"get",
"(",
"field",
")",
";",
"if",
"(",
"in",
"index",
"!",
"=",
"null",
")",
"{",
"input",
"output",
"map",
"add",
"(",
"new",
"input",
"output",
"map",
"(",
"in",
"index",
",",
"out",
"index",
")",
")",
";",
"}",
"}",
"}",
"return",
"input",
"output",
"map",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] | [
"@",
"override",
"public",
"t",
"visit",
"named",
"value",
"expression",
"(",
"sql",
"base",
"parser",
"named",
"value",
"expression",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"return",
"the",
"outstanding",
"requests",
"in",
"the",
"queue",
",",
"which",
"havent",
"been",
"processed",
"yet"
] | [
"public",
"long",
"get",
"outstanding",
"requests",
"(",
")",
"{",
"return",
"get",
"in",
"process",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"<",
"code",
">",
"name",
"<",
"code",
">",
"property"
] | [
"public",
"void",
"set",
"name",
"(",
"string",
"name",
")",
"{",
"this",
"name",
"=",
"name",
";",
"}"
] |
[
"this",
"will",
"return",
"true",
"if",
"enough",
"pushes",
"before",
"top",
"of",
"function",
"this",
"will",
"return",
"false",
"if",
"not",
"enough",
"pushes",
"or",
"if",
"not",
"a",
"function"
] | [
"private",
"boolean",
"has",
"enough",
"pushes",
"(",
"code",
"unit",
"iterator",
"iterator",
",",
"int",
"num",
"params",
")",
"{",
"if",
"(",
"iterator",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"int",
"num",
"pushes",
"=",
"0",
";",
"int",
"num",
"skips",
"=",
"0",
";",
"while",
"(",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"&",
"&",
"(",
"num",
"pushes",
"<",
"num",
"params",
")",
")",
"{",
"code",
"unit",
"cu",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"num",
"skips",
">",
"0",
")",
"{",
"num",
"skips",
"-",
"-",
";",
"}",
"else",
"if",
"(",
"cu",
"get",
"mnemonic",
"string",
"(",
")",
"equals",
"(",
"\"",
"call",
"\"",
")",
")",
"{",
"num",
"params",
"+",
"=",
"num",
"params",
"(",
"cu",
")",
";",
"}",
"else",
"if",
"(",
"cu",
"get",
"mnemonic",
"string",
"(",
")",
"equals",
"(",
"\"",
"push",
"\"",
")",
")",
"{",
"num",
"pushes",
"+",
"+",
";",
"}",
"}",
"/",
"/",
"have",
"enough",
"params",
"between",
"ref",
"and",
"top",
"of",
"function",
"?",
"return",
"num",
"pushes",
">",
"=",
"num",
"params",
";",
"}"
] |
[
"encodes",
"the",
"given",
"x",
"5",
"0",
"9",
"certificate",
"as",
"a",
"pkcs12",
"trust",
"store",
",",
"optionally",
"protecting",
"the",
"cert",
"with",
"a",
"password",
"(",
"though",
"it",
"'",
"s",
"unclear",
"why",
"one",
"would",
"do",
"this",
"since",
"certificates",
"only",
"contain",
"public",
"information",
"and",
"do",
"not",
"need",
"to",
"be",
"kept",
"secret",
")",
"returns",
"the",
"byte",
"array",
"encoding",
"of",
"the",
"trust",
"store",
",",
"which",
"may",
"be",
"written",
"to",
"a",
"file",
"and",
"loaded",
"to",
"instantiate",
"the",
"trust",
"store",
"at",
"a",
"later",
"point",
"or",
"in",
"another",
"process"
] | [
"public",
"static",
"byte",
"[",
"]",
"cert",
"to",
"p",
"k",
"c",
"s",
"1",
"2",
"trust",
"store",
"bytes",
"(",
"x",
"5",
"0",
"9",
"certificate",
"cert",
",",
"string",
"key",
"password",
")",
"throws",
"i",
"o",
"exception",
",",
"general",
"security",
"exception",
"{",
"key",
"store",
"trust",
"store",
"=",
"key",
"store",
"get",
"instance",
"(",
"\"",
"pkcs12",
"\"",
")",
";",
"return",
"cert",
"to",
"trust",
"store",
"bytes",
"(",
"cert",
",",
"key",
"password",
",",
"trust",
"store",
")",
";",
"}"
] |
[
"run",
"a",
"s",
"3",
"guard",
"tool",
"command",
"from",
"a",
"varags",
"list",
",",
"catch",
"any",
"raised",
"exit",
"exception",
"and",
"verify",
"the",
"status",
"code",
"matches",
"that",
"expected"
] | [
"protected",
"void",
"run",
"to",
"failure",
"(",
"int",
"status",
",",
"object",
"args",
")",
"throws",
"exception",
"{",
"final",
"configuration",
"conf",
"=",
"get",
"configuration",
"(",
")",
";",
"exit",
"util",
"exit",
"exception",
"ex",
"=",
"intercept",
"(",
"exit",
"util",
"exit",
"exception",
"class",
",",
"(",
")",
"-",
">",
"run",
"s",
"3",
"guard",
"command",
"(",
"conf",
",",
"args",
")",
")",
";",
"if",
"(",
"ex",
"status",
"!",
"=",
"status",
")",
"{",
"throw",
"ex",
";",
"}",
"}"
] |
[
"test",
"that",
"without",
"a",
"cast",
",",
"we",
"fail",
"when",
"conversions",
"would",
"narrow"
] | [
"public",
"void",
"test",
"illegal",
"conversions",
"(",
")",
"{",
"expect",
"script",
"throws",
"(",
"class",
"cast",
"exception",
"class",
",",
"(",
")",
"-",
">",
"{",
"exec",
"(",
"\"",
"long",
"x",
"=",
"5l",
";",
"int",
"y",
"=",
"+",
"x",
";",
"return",
"y",
"\"",
")",
";",
"}",
")",
";",
"expect",
"script",
"throws",
"(",
"class",
"cast",
"exception",
"class",
",",
"(",
")",
"-",
">",
"{",
"exec",
"(",
"\"",
"long",
"x",
"=",
"5l",
";",
"int",
"y",
"=",
"(",
"x",
"+",
"x",
")",
";",
"return",
"y",
"\"",
")",
";",
"}",
")",
";",
"expect",
"script",
"throws",
"(",
"class",
"cast",
"exception",
"class",
",",
"(",
")",
"-",
">",
"{",
"exec",
"(",
"\"",
"boolean",
"x",
"=",
"true",
";",
"int",
"y",
"=",
"+",
"x",
";",
"return",
"y",
"\"",
")",
";",
"}",
")",
";",
"expect",
"script",
"throws",
"(",
"class",
"cast",
"exception",
"class",
",",
"(",
")",
"-",
">",
"{",
"exec",
"(",
"\"",
"boolean",
"x",
"=",
"true",
";",
"int",
"y",
"=",
"(",
"x",
"^",
"false",
")",
";",
"return",
"y",
"\"",
")",
";",
"}",
")",
";",
"expect",
"script",
"throws",
"(",
"class",
"cast",
"exception",
"class",
",",
"(",
")",
"-",
">",
"{",
"exec",
"(",
"\"",
"long",
"x",
"=",
"5l",
";",
"boolean",
"y",
"=",
"+",
"x",
";",
"return",
"y",
"\"",
")",
";",
"}",
")",
";",
"expect",
"script",
"throws",
"(",
"class",
"cast",
"exception",
"class",
",",
"(",
")",
"-",
">",
"{",
"exec",
"(",
"\"",
"long",
"x",
"=",
"5l",
";",
"boolean",
"y",
"=",
"(",
"x",
"+",
"x",
")",
";",
"return",
"y",
"\"",
")",
";",
"}",
")",
";",
"}"
] |
[
"test",
"serialization",
"of",
"outer",
"number",
"types"
] | [
"public",
"void",
"fake",
"outer",
"number",
"serialize",
"test",
"(",
")",
"throws",
"api",
"exception",
"{",
"big",
"decimal",
"body",
"=",
"null",
";",
"big",
"decimal",
"response",
"=",
"api",
"fake",
"outer",
"number",
"serialize",
"(",
"body",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
] |
[
"returns",
"the",
"{",
"@",
"link",
"dns",
"server",
"address",
"stream",
"}",
"that",
"was",
"cached",
"for",
"the",
"given",
"hostname",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"non",
"could",
"be",
"found"
] | [
"private",
"dns",
"server",
"address",
"stream",
"get",
"name",
"servers",
"from",
"cache",
"(",
"string",
"hostname",
")",
"{",
"int",
"len",
"=",
"hostname",
"length",
"(",
")",
";",
"if",
"(",
"len",
"=",
"=",
"0",
")",
"{",
"/",
"/",
"we",
"never",
"cache",
"for",
"root",
"servers",
"return",
"null",
";",
"}",
"/",
"/",
"we",
"always",
"store",
"in",
"the",
"cache",
"with",
"a",
"trailing",
"'",
"'",
"if",
"(",
"hostname",
"char",
"at",
"(",
"len",
"-",
"1",
")",
"!",
"=",
"'",
"'",
")",
"{",
"hostname",
"+",
"=",
"\"",
"\"",
";",
"}",
"int",
"idx",
"=",
"hostname",
"index",
"of",
"(",
"'",
"'",
")",
";",
"if",
"(",
"idx",
"=",
"=",
"hostname",
"length",
"(",
")",
"-",
"1",
")",
"{",
"/",
"/",
"we",
"are",
"not",
"interested",
"in",
"handling",
"'",
"'",
"as",
"we",
"should",
"never",
"serve",
"the",
"root",
"servers",
"from",
"cache",
"return",
"null",
";",
"}",
"/",
"/",
"we",
"start",
"from",
"the",
"closed",
"match",
"and",
"then",
"move",
"down",
"for",
"(",
";",
";",
")",
"{",
"/",
"/",
"skip",
"'",
"'",
"as",
"well",
"hostname",
"=",
"hostname",
"substring",
"(",
"idx",
"+",
"1",
")",
";",
"int",
"idx",
"2",
"=",
"hostname",
"index",
"of",
"(",
"'",
"'",
")",
";",
"if",
"(",
"idx",
"2",
"<",
"=",
"0",
"|",
"|",
"idx",
"2",
"=",
"=",
"hostname",
"length",
"(",
")",
"-",
"1",
")",
"{",
"/",
"/",
"we",
"are",
"not",
"interested",
"in",
"handling",
"'",
"tld",
"'",
"as",
"we",
"should",
"never",
"serve",
"the",
"root",
"servers",
"from",
"cache",
"return",
"null",
";",
"}",
"idx",
"=",
"idx",
"2",
";",
"dns",
"server",
"address",
"stream",
"entries",
"=",
"authoritative",
"dns",
"server",
"cache",
"(",
")",
"get",
"(",
"hostname",
")",
";",
"if",
"(",
"entries",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"the",
"returned",
"list",
"may",
"contain",
"unresolved",
"inet",
"socket",
"address",
"instances",
"that",
"will",
"be",
"/",
"/",
"resolved",
"on",
"the",
"fly",
"in",
"query",
"(",
")",
"return",
"entries",
";",
"}",
"}",
"}"
] |
[
"test",
"that",
"a",
"data",
"-",
"node",
"does",
"not",
"start",
"if",
"configuration",
"specifies",
"incorrect",
"uri",
"scheme",
"in",
"data",
"directory",
"test",
"that",
"a",
"data",
"-",
"node",
"starts",
"if",
"data",
"directory",
"is",
"specified",
"as",
"uri",
"=",
"\"",
"file",
":",
"path",
"\"",
"or",
"as",
"a",
"non",
"uri",
"path"
] | [
"public",
"void",
"test",
"data",
"directories",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"file",
"data",
"dir",
"=",
"new",
"file",
"(",
"base",
"dir",
",",
"\"",
"data",
"\"",
")",
"get",
"canonical",
"file",
"(",
")",
";",
"configuration",
"conf",
"=",
"cluster",
"get",
"configuration",
"(",
"0",
")",
";",
"/",
"/",
"1",
"test",
"unsupported",
"ec",
"policy",
"only",
"\"",
"file",
":",
"\"",
"is",
"supported",
"string",
"dn",
"dir",
"=",
"make",
"u",
"r",
"i",
"(",
"\"",
"shv",
"\"",
",",
"null",
",",
"file",
"as",
"u",
"r",
"i",
"(",
"data",
"dir",
")",
"get",
"path",
"(",
")",
")",
";",
"conf",
"set",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"datanode",
"data",
"dir",
"key",
",",
"dn",
"dir",
")",
";",
"data",
"node",
"dn",
"=",
"null",
";",
"try",
"{",
"dn",
"=",
"data",
"node",
"create",
"data",
"node",
"(",
"new",
"string",
"[",
"]",
"{",
"}",
",",
"conf",
")",
";",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"/",
"/",
"expecting",
"exception",
"here",
"}",
"finally",
"{",
"if",
"(",
"dn",
"!",
"=",
"null",
")",
"{",
"dn",
"shutdown",
"(",
")",
";",
"}",
"}",
"assert",
"null",
"(",
"\"",
"data",
"-",
"node",
"startup",
"should",
"have",
"failed",
"\"",
",",
"dn",
")",
";",
"/",
"/",
"2",
"test",
"\"",
"file",
":",
"\"",
"ec",
"policy",
"and",
"no",
"ec",
"policy",
"(",
"path",
"-",
"only",
")",
"both",
"should",
"work",
"string",
"dn",
"dir",
"1",
"=",
"file",
"as",
"u",
"r",
"i",
"(",
"data",
"dir",
")",
"to",
"string",
"(",
")",
"+",
"\"",
"1",
"\"",
";",
"string",
"dn",
"dir",
"2",
"=",
"make",
"u",
"r",
"i",
"(",
"\"",
"file",
"\"",
",",
"\"",
"localhost",
"\"",
",",
"file",
"as",
"u",
"r",
"i",
"(",
"data",
"dir",
")",
"get",
"path",
"(",
")",
"+",
"\"",
"2",
"\"",
")",
";",
"string",
"dn",
"dir",
"3",
"=",
"data",
"dir",
"get",
"absolute",
"path",
"(",
")",
"+",
"\"",
"3",
"\"",
";",
"conf",
"set",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"datanode",
"data",
"dir",
"key",
",",
"dn",
"dir",
"1",
"+",
"\"",
",",
"\"",
"+",
"dn",
"dir",
"2",
"+",
"\"",
",",
"\"",
"+",
"dn",
"dir",
"3",
")",
";",
"try",
"{",
"cluster",
"start",
"data",
"nodes",
"(",
"conf",
",",
"1",
",",
"false",
",",
"startup",
"option",
"regular",
",",
"null",
")",
";",
"assert",
"true",
"(",
"\"",
"data",
"-",
"node",
"should",
"startup",
"\"",
",",
"cluster",
"is",
"data",
"node",
"up",
"(",
")",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"cluster",
"!",
"=",
"null",
")",
"{",
"cluster",
"shutdown",
"data",
"nodes",
"(",
")",
";",
"}",
"}",
"}"
] |
[
"model",
"tests",
"for",
"outer",
"enum"
] | [
"public",
"void",
"test",
"outer",
"enum",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"outer",
"enum",
"}"
] |
[
"get",
"the",
"effective",
"file",
"system",
"where",
"the",
"path",
"is",
"located",
"df",
"is",
"a",
"packaged",
"cross",
"-",
"platform",
"class",
",",
"it",
"can",
"get",
"volumes",
"information",
"from",
"current",
"system"
] | [
"private",
"static",
"string",
"get",
"effective",
"file",
"system",
"(",
"string",
"path",
",",
"configuration",
"conf",
")",
"{",
"try",
"{",
"df",
"df",
"=",
"new",
"df",
"(",
"new",
"file",
"(",
"path",
")",
",",
"conf",
")",
";",
"return",
"df",
"get",
"filesystem",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"log",
"error",
"(",
"\"",
"failed",
"to",
"get",
"filesystem",
"for",
"dir",
"{",
"}",
"\"",
",",
"path",
",",
"ioe",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
[
"creates",
"a",
"hole",
"span"
] | [
"public",
"static",
"simple",
"cache",
"span",
"create",
"hole",
"(",
"string",
"key",
",",
"long",
"position",
",",
"long",
"length",
")",
"{",
"return",
"new",
"simple",
"cache",
"span",
"(",
"key",
",",
"position",
",",
"length",
",",
"c",
"time",
"unset",
",",
"null",
")",
";",
"}"
] |
[
"returns",
"the",
"{",
"@",
"link",
"org",
"apache",
"hive",
"hcatalog",
"data",
"schema",
"h",
"cat",
"schema",
"}",
"of",
"the",
"{",
"@",
"link",
"org",
"apache",
"hive",
"hcatalog",
"data",
"h",
"cat",
"record",
"}",
"returned",
"by",
"this",
"input",
"format"
] | [
"public",
"h",
"cat",
"schema",
"get",
"output",
"schema",
"(",
")",
"{",
"return",
"this",
"output",
"schema",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"map",
"integer",
"'"
] | [
"public",
"void",
"map",
"integer",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"map",
"integer",
"}"
] |
[
"get",
"the",
"metrics",
"system",
"for",
"the",
"router"
] | [
"public",
"router",
"metrics",
"get",
"router",
"metrics",
"(",
")",
"{",
"return",
"this",
"router",
"metrics",
";",
"}"
] |
[
"gets",
"whether",
"or",
"not",
"the",
"script",
"editor",
"feature",
"is",
"enabled"
] | [
"public",
"static",
"boolean",
"is",
"script",
"editor",
"enabled",
"(",
")",
"{",
"i",
"preference",
"store",
"prefs",
"=",
"activator",
"get",
"default",
"(",
")",
"get",
"preference",
"store",
"(",
")",
";",
"return",
"prefs",
"get",
"boolean",
"(",
"ghidra",
"script",
"editor",
"enabled",
")",
";",
"}"
] |
[
"prepare",
"peer",
"entity",
"saml",
"endpoint"
] | [
"public",
"static",
"void",
"prepare",
"peer",
"entity",
"saml",
"endpoint",
"context",
"(",
"final",
"request",
"abstract",
"type",
"request",
",",
"final",
"message",
"context",
"outbound",
"context",
",",
"final",
"saml",
"registered",
"service",
"service",
"provider",
"metadata",
"facade",
"adaptor",
",",
"final",
"string",
"binding",
")",
"throws",
"saml",
"exception",
"{",
"val",
"entity",
"id",
"=",
"adaptor",
"get",
"entity",
"id",
"(",
")",
";",
"if",
"(",
"!",
"adaptor",
"contains",
"assertion",
"consumer",
"services",
"(",
")",
")",
"{",
"throw",
"new",
"saml",
"exception",
"(",
"\"",
"no",
"assertion",
"consumer",
"service",
"could",
"be",
"found",
"for",
"entity",
"\"",
"+",
"entity",
"id",
")",
";",
"}",
"val",
"peer",
"entity",
"context",
"=",
"outbound",
"context",
"get",
"subcontext",
"(",
"s",
"a",
"m",
"l",
"peer",
"entity",
"context",
"class",
",",
"true",
")",
";",
"if",
"(",
"peer",
"entity",
"context",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"saml",
"exception",
"(",
"\"",
"s",
"a",
"m",
"l",
"peer",
"entity",
"context",
"could",
"not",
"be",
"defined",
"for",
"entity",
"\"",
"+",
"entity",
"id",
")",
";",
"}",
"peer",
"entity",
"context",
"set",
"entity",
"id",
"(",
"entity",
"id",
")",
";",
"val",
"endpoint",
"context",
"=",
"peer",
"entity",
"context",
"get",
"subcontext",
"(",
"s",
"a",
"m",
"l",
"endpoint",
"context",
"class",
",",
"true",
")",
";",
"if",
"(",
"endpoint",
"context",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"saml",
"exception",
"(",
"\"",
"s",
"a",
"m",
"l",
"endpoint",
"context",
"could",
"not",
"be",
"defined",
"for",
"entity",
"\"",
"+",
"entity",
"id",
")",
";",
"}",
"val",
"endpoint",
"=",
"determine",
"endpoint",
"for",
"request",
"(",
"request",
",",
"adaptor",
",",
"binding",
")",
";",
"logger",
"debug",
"(",
"\"",
"configured",
"peer",
"entity",
"endpoint",
"to",
"be",
"[",
"{",
"}",
"]",
"with",
"binding",
"[",
"{",
"}",
"]",
"\"",
",",
"endpoint",
"get",
"location",
"(",
")",
",",
"endpoint",
"get",
"binding",
"(",
")",
")",
";",
"endpoint",
"context",
"set",
"endpoint",
"(",
"endpoint",
")",
";",
"}"
] |
[
"see",
"{",
"@",
"link",
"file",
"status",
"#",
"get",
"permission",
"(",
")",
"}"
] | [
"fs",
"permission",
"get",
"permission",
"(",
")",
";"
] |
[
"make",
"a",
"toast"
] | [
"public",
"static",
"toast",
"utils",
"make",
"(",
")",
"{",
"return",
"new",
"toast",
"utils",
"(",
")",
";",
"}"
] |
[
"see",
"{",
"@",
"link",
"socket",
"#",
"set",
"so",
"linger",
"(",
"boolean",
",",
"int",
")",
"}",
"calling",
"this",
"method",
"does",
"not",
"trigger",
"mode",
"detection"
] | [
"public",
"void",
"set",
"so",
"linger",
"(",
"boolean",
"on",
",",
"int",
"linger",
")",
"throws",
"socket",
"exception",
"{",
"get",
"socket",
"allow",
"unknown",
"mode",
"(",
")",
"set",
"so",
"linger",
"(",
"on",
",",
"linger",
")",
";",
"}"
] |
[
"returns",
"whether",
"this",
"cluster",
"is",
"configured",
"to",
"be",
"skipped",
"when",
"unavailable"
] | [
"boolean",
"is",
"skip",
"unavailable",
"(",
")",
"{",
"return",
"skip",
"unavailable",
";",
"}"
] |
[
"gets",
"the",
"{",
"@",
"link",
"virtual",
"file",
"}",
"representation",
"of",
"this",
"{",
"@",
"link",
"file",
"path",
"}"
] | [
"public",
"virtual",
"file",
"to",
"virtual",
"file",
"(",
")",
"{",
"return",
"virtual",
"file",
"for",
"file",
"path",
"(",
"this",
")",
";",
"}"
] |
[
"method",
"to",
"return",
"the",
"car",
"models",
"built",
"after",
"year",
"2000",
"using",
"for",
"loops"
] | [
"public",
"static",
"list",
"<",
"string",
">",
"get",
"models",
"after",
"2",
"0",
"0",
"0",
"(",
"list",
"<",
"car",
">",
"cars",
")",
"{",
"list",
"<",
"car",
">",
"cars",
"sorted",
"by",
"year",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"car",
"car",
":",
"cars",
")",
"{",
"if",
"(",
"car",
"get",
"year",
"(",
")",
">",
"2000",
")",
"{",
"cars",
"sorted",
"by",
"year",
"add",
"(",
"car",
")",
";",
"}",
"}",
"collections",
"sort",
"(",
"cars",
"sorted",
"by",
"year",
",",
"new",
"comparator",
"<",
"car",
">",
"(",
")",
"{",
"@",
"override",
"public",
"int",
"compare",
"(",
"car",
"car",
"1",
",",
"car",
"car",
"2",
")",
"{",
"return",
"car",
"1",
"get",
"year",
"(",
")",
"-",
"car",
"2",
"get",
"year",
"(",
")",
";",
"}",
"}",
")",
";",
"list",
"<",
"string",
">",
"models",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"car",
"car",
":",
"cars",
"sorted",
"by",
"year",
")",
"{",
"models",
"add",
"(",
"car",
"get",
"model",
"(",
")",
")",
";",
"}",
"return",
"models",
";",
"}"
] |
[
"token",
"identifier",
"bound",
"to"
] | [
"protected",
"optional",
"<",
"session",
"token",
"identifier",
">",
"get",
"token",
"identifier",
"(",
")",
"{",
"return",
"token",
"identifier",
";",
"}"
] |
[
"produces",
"a",
"string",
"representation",
"containing",
"useful",
"information",
"about",
"a",
"stream",
"thread",
",",
"starting",
"with",
"the",
"given",
"indent",
"this",
"is",
"useful",
"in",
"debugging",
"scenarios"
] | [
"public",
"string",
"to",
"string",
"(",
"final",
"string",
"indent",
")",
"{",
"return",
"indent",
"+",
"\"",
"\\",
"t",
"streams",
"thread",
"thread",
"id",
":",
"\"",
"+",
"get",
"name",
"(",
")",
"+",
"\"",
"\\",
"n",
"\"",
"+",
"task",
"manager",
"to",
"string",
"(",
"indent",
")",
";",
"}"
] |
[
"adds",
"a",
"query",
"that",
"<",
"b",
">",
"must",
"not",
"<",
"b",
">",
"appear",
"in",
"the",
"matching",
"documents",
"no",
"{",
"@",
"code",
"null",
"}",
"value",
"allowed"
] | [
"public",
"bool",
"query",
"builder",
"must",
"not",
"(",
"query",
"builder",
"query",
"builder",
")",
"{",
"if",
"(",
"query",
"builder",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"inner",
"bool",
"query",
"clause",
"cannot",
"be",
"null",
"\"",
")",
";",
"}",
"must",
"not",
"clauses",
"add",
"(",
"query",
"builder",
")",
";",
"return",
"this",
";",
"}"
] |
[
"shows",
"the",
"playback",
"controls",
",",
"but",
"only",
"if",
"forced",
"or",
"shown",
"indefinitely"
] | [
"private",
"void",
"maybe",
"show",
"controller",
"(",
"boolean",
"is",
"forced",
")",
"{",
"if",
"(",
"is",
"playing",
"ad",
"(",
")",
"&",
"&",
"controller",
"hide",
"during",
"ads",
")",
"{",
"return",
";",
"}",
"if",
"(",
"use",
"controller",
"(",
")",
")",
"{",
"boolean",
"was",
"showing",
"indefinitely",
"=",
"controller",
"is",
"fully",
"visible",
"(",
")",
"&",
"&",
"controller",
"get",
"show",
"timeout",
"ms",
"(",
")",
"<",
"=",
"0",
";",
"boolean",
"should",
"show",
"indefinitely",
"=",
"should",
"show",
"controller",
"indefinitely",
"(",
")",
";",
"if",
"(",
"is",
"forced",
"|",
"|",
"was",
"showing",
"indefinitely",
"|",
"|",
"should",
"show",
"indefinitely",
")",
"{",
"show",
"controller",
"(",
"should",
"show",
"indefinitely",
")",
";",
"}",
"}",
"}"
] |
[
"get",
"the",
"datadir",
"used",
"by",
"this",
"filetxn",
"snap",
"log"
] | [
"public",
"file",
"get",
"data",
"dir",
"(",
")",
"{",
"return",
"this",
"data",
"dir",
";",
"}"
] |
[
"returns",
"the",
"current",
"set",
"of",
"received",
"values"
] | [
"public",
"list",
"<",
"t",
">",
"get",
"values",
"(",
")",
"{",
"return",
"collections",
"unmodifiable",
"list",
"(",
"results",
")",
";",
"}"
] |
[
"setup",
"up",
"permissions",
"to",
"allow",
"a",
"recursive",
"delete",
"for",
"cleanup",
"purposes"
] | [
"protected",
"void",
"allow",
"recursive",
"delete",
"(",
"native",
"azure",
"file",
"system",
"fs",
",",
"string",
"path",
")",
"throws",
"i",
"o",
"exception",
"{",
"int",
"index",
"=",
"path",
"last",
"index",
"of",
"(",
"'",
"/",
"'",
")",
";",
"string",
"parent",
"=",
"(",
"index",
"=",
"=",
"0",
")",
"?",
"\"",
"/",
"\"",
":",
"path",
"substring",
"(",
"0",
",",
"index",
")",
";",
"authorizer",
"delete",
"all",
"auth",
"rules",
"(",
")",
";",
"authorizer",
"add",
"auth",
"rule",
"(",
"parent",
",",
"write",
",",
"get",
"current",
"user",
"short",
"name",
"(",
")",
",",
"true",
")",
";",
"authorizer",
"add",
"auth",
"rule",
"(",
"(",
"path",
"ends",
"with",
"(",
"\"",
"*",
"\"",
")",
"?",
"path",
":",
"path",
"+",
"\"",
"*",
"\"",
")",
",",
"write",
",",
"get",
"current",
"user",
"short",
"name",
"(",
")",
",",
"true",
")",
";",
"fs",
"update",
"wasb",
"authorizer",
"(",
"authorizer",
")",
";",
"}"
] |
[
"model",
"tests",
"for",
"model",
"2",
"0",
"0",
"response"
] | [
"public",
"void",
"test",
"model",
"2",
"0",
"0",
"response",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"model",
"2",
"0",
"0",
"response",
"}"
] |
[
"joins",
"two",
"{",
"@",
"link",
"table",
"}",
"s",
"similar",
"to",
"a",
"sql",
"full",
"outer",
"join",
"the",
"fields",
"of",
"the",
"two",
"joined",
"operations",
"must",
"not",
"overlap",
",",
"use",
"{",
"@",
"code",
"as",
"}",
"to",
"rename",
"fields",
"if",
"necessary",
"note",
":",
"both",
"tables",
"must",
"be",
"bound",
"to",
"the",
"same",
"{",
"@",
"code",
"table",
"environment",
"}",
"and",
"its",
"{",
"@",
"code",
"table",
"config",
"}",
"must",
"have",
"null",
"check",
"enabled",
"(",
"default",
")",
"example",
":",
"{",
"@",
"code",
"left",
"full",
"outer",
"join",
"(",
"right",
",",
"\"",
"a",
"=",
"b",
"\"",
")",
"select",
"(",
"\"",
"a",
",",
"b",
",",
"d",
"\"",
")",
"}"
] | [
"table",
"full",
"outer",
"join",
"(",
"table",
"right",
",",
"string",
"join",
"predicate",
")",
";"
] |
[
"reads",
"the",
"next",
"eight",
"bytes",
"as",
"a",
"signed",
"value"
] | [
"public",
"long",
"read",
"long",
"(",
")",
"{",
"return",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"56",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"48",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"40",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"32",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"24",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"16",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
"<",
"<",
"8",
"|",
"(",
"data",
"[",
"position",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
"l",
")",
";",
"}"
] |
[
"the",
"number",
"of",
"{",
"@",
"link",
"doc",
"id",
"set",
"}",
"s",
"that",
"have",
"been",
"cached"
] | [
"public",
"long",
"get",
"cache",
"count",
"(",
")",
"{",
"return",
"cache",
"count",
";",
"}"
] |
[
"indicates",
"if",
"a",
"reference",
"can",
"be",
"inlined",
"in",
"a",
"styleable"
] | [
"public",
"boolean",
"should",
"inline",
"(",
"fully",
"qualified",
"name",
"reference",
")",
"{",
"/",
"/",
"only",
"inline",
"if",
"it",
"'",
"s",
"in",
"the",
"current",
"package",
"if",
"(",
"!",
"reference",
"is",
"in",
"package",
"(",
"package",
"name",
"or",
"else",
"(",
"fully",
"qualified",
"name",
"default",
"package",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"inline",
"status",
"inlineable",
"equals",
"(",
"qualified",
"reference",
"inline",
"status",
"get",
"(",
"reference",
")",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"resource",
"resolver",
"the",
"return",
"value",
"is",
"{",
"@",
"code",
"null",
"}",
"iff",
"{",
"@",
"link",
"#",
"unavailability",
"cause",
"(",
")",
"}",
"is",
"not",
"null",
";"
] | [
"@",
"nullable",
"resource",
"resolver",
"new",
"resource",
"resolver",
"(",
")",
";"
] |
[
"computes",
"all",
"updates",
"in",
"a",
"{",
"@",
"link",
"directory",
"input",
"}"
] | [
"private",
"static",
"immutable",
"map",
"<",
"relative",
"file",
",",
"file",
"status",
">",
"compute",
"updates",
"(",
"@",
"non",
"null",
"directory",
"input",
"directory",
"input",
")",
"{",
"immutable",
"map",
"builder",
"<",
"relative",
"file",
",",
"file",
"status",
">",
"builder",
"=",
"immutable",
"map",
"builder",
"(",
")",
";",
"map",
"<",
"file",
",",
"status",
">",
"changed",
"files",
"=",
"directory",
"input",
"get",
"changed",
"files",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"file",
",",
"status",
">",
"changed",
"file",
":",
"changed",
"files",
"entry",
"set",
"(",
")",
")",
"{",
"relative",
"file",
"rf",
"=",
"new",
"relative",
"file",
"(",
"directory",
"input",
"get",
"file",
"(",
")",
",",
"changed",
"file",
"get",
"key",
"(",
")",
")",
";",
"file",
"status",
"status",
"=",
"map",
"status",
"(",
"changed",
"file",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"status",
"!",
"=",
"null",
"&",
"&",
"!",
"(",
"new",
"file",
"(",
"rf",
"get",
"base",
"(",
")",
",",
"rf",
"get",
"relative",
"path",
"(",
")",
")",
"is",
"directory",
"(",
")",
")",
")",
"{",
"builder",
"put",
"(",
"rf",
",",
"status",
")",
";",
"}",
"}",
"return",
"builder",
"build",
"(",
")",
";",
"}"
] |
[
"there",
"are",
"two",
"scenarios",
"to",
"close",
"the",
"network",
"resources",
"one",
"is",
"from",
"{",
"@",
"link",
"task",
"canceler",
"}",
"to",
"early",
"release",
"partitions",
"and",
"gates",
"another",
"is",
"from",
"task",
"thread",
"during",
"task",
"exiting"
] | [
"private",
"void",
"close",
"network",
"resources",
"(",
")",
"{",
"for",
"(",
"result",
"partition",
"writer",
"partition",
"writer",
":",
"consumable",
"notifying",
"partition",
"writers",
")",
"{",
"try",
"{",
"partition",
"writer",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"exception",
"utils",
"rethrow",
"if",
"fatal",
"error",
"(",
"t",
")",
";",
"log",
"error",
"(",
"\"",
"failed",
"to",
"release",
"result",
"partition",
"for",
"task",
"{",
"}",
"\"",
",",
"task",
"name",
"with",
"subtask",
",",
"t",
")",
";",
"}",
"}",
"for",
"(",
"input",
"gate",
"input",
"gate",
":",
"input",
"gates",
")",
"{",
"try",
"{",
"input",
"gate",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"exception",
"utils",
"rethrow",
"if",
"fatal",
"error",
"(",
"t",
")",
";",
"log",
"error",
"(",
"\"",
"failed",
"to",
"release",
"input",
"gate",
"for",
"task",
"{",
"}",
"\"",
",",
"task",
"name",
"with",
"subtask",
",",
"t",
")",
";",
"}",
"}",
"}"
] |
[
"set",
"the",
"phase",
"change",
"flag",
"as",
"true",
"so",
"we",
"will",
"aggregate",
"incoming",
"spawn",
"metrics"
] | [
"void",
"change",
"phase",
"(",
")",
"{",
"this",
"phase",
"change",
"=",
"true",
";",
"}"
] |
[
"verify",
"that",
"when",
"a",
"consumer",
"changes",
"its",
"topic",
"subscription",
"its",
"assigned",
"partitions",
"do",
"not",
"immediately",
"change",
",",
"and",
"the",
"consumed",
"offsets",
"of",
"its",
"to",
"-",
"be",
"-",
"revoked",
"partitions",
"are",
"not",
"committed",
"(",
"when",
"auto",
"-",
"commit",
"is",
"disabled",
")",
"upon",
"unsubscribing",
"from",
"subscribed",
"topics",
",",
"the",
"assigned",
"partitions",
"immediately",
"change",
"but",
"if",
"auto",
"-",
"commit",
"is",
"disabled",
"the",
"consumer",
"offsets",
"are",
"not",
"committed"
] | [
"public",
"void",
"test",
"subscription",
"changes",
"with",
"auto",
"commit",
"disabled",
"(",
")",
"{",
"time",
"time",
"=",
"new",
"mock",
"time",
"(",
")",
";",
"subscription",
"state",
"subscription",
"=",
"new",
"subscription",
"state",
"(",
"new",
"log",
"context",
"(",
")",
",",
"offset",
"reset",
"strategy",
"earliest",
")",
";",
"consumer",
"metadata",
"metadata",
"=",
"create",
"metadata",
"(",
"subscription",
")",
";",
"mock",
"client",
"client",
"=",
"new",
"mock",
"client",
"(",
"time",
",",
"metadata",
")",
";",
"map",
"<",
"string",
",",
"integer",
">",
"tp",
"counts",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"tp",
"counts",
"put",
"(",
"topic",
",",
"1",
")",
";",
"tp",
"counts",
"put",
"(",
"topic",
"2",
",",
"1",
")",
";",
"init",
"metadata",
"(",
"client",
",",
"tp",
"counts",
")",
";",
"node",
"node",
"=",
"metadata",
"fetch",
"(",
")",
"nodes",
"(",
")",
"get",
"(",
"0",
")",
";",
"consumer",
"partition",
"assignor",
"assignor",
"=",
"new",
"range",
"assignor",
"(",
")",
";",
"kafka",
"consumer",
"<",
"string",
",",
"string",
">",
"consumer",
"=",
"new",
"consumer",
"(",
"time",
",",
"client",
",",
"subscription",
",",
"metadata",
",",
"assignor",
",",
"false",
",",
"group",
"instance",
"id",
")",
";",
"initialize",
"subscription",
"with",
"single",
"topic",
"(",
"consumer",
",",
"get",
"consumer",
"rebalance",
"listener",
"(",
"consumer",
")",
")",
";",
"/",
"/",
"mock",
"rebalance",
"responses",
"prepare",
"rebalance",
"(",
"client",
",",
"node",
",",
"assignor",
",",
"singleton",
"list",
"(",
"tp",
"0",
")",
",",
"null",
")",
";",
"consumer",
"update",
"assignment",
"metadata",
"if",
"needed",
"(",
"time",
"timer",
"(",
"long",
"max",
"value",
")",
")",
";",
"consumer",
"poll",
"(",
"duration",
"zero",
")",
";",
"/",
"/",
"verify",
"that",
"subscription",
"is",
"still",
"the",
"same",
",",
"and",
"now",
"assignment",
"has",
"caught",
"up",
"assert",
"equals",
"(",
"singleton",
"(",
"topic",
")",
",",
"consumer",
"subscription",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"singleton",
"(",
"tp",
"0",
")",
",",
"consumer",
"assignment",
"(",
")",
")",
";",
"consumer",
"poll",
"(",
"duration",
"zero",
")",
";",
"/",
"/",
"subscription",
"change",
"consumer",
"subscribe",
"(",
"singleton",
"(",
"topic",
"2",
")",
",",
"get",
"consumer",
"rebalance",
"listener",
"(",
"consumer",
")",
")",
";",
"/",
"/",
"verify",
"that",
"subscription",
"has",
"changed",
"but",
"assignment",
"is",
"still",
"unchanged",
"assert",
"equals",
"(",
"singleton",
"(",
"topic",
"2",
")",
",",
"consumer",
"subscription",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"singleton",
"(",
"tp",
"0",
")",
",",
"consumer",
"assignment",
"(",
")",
")",
";",
"/",
"/",
"the",
"auto",
"commit",
"is",
"disabled",
",",
"so",
"no",
"offset",
"commit",
"request",
"should",
"be",
"sent",
"for",
"(",
"client",
"request",
"req",
":",
"client",
"requests",
"(",
")",
")",
"assert",
"not",
"same",
"(",
"api",
"keys",
"offset",
"commit",
",",
"req",
"request",
"builder",
"(",
")",
"api",
"key",
"(",
")",
")",
";",
"/",
"/",
"subscription",
"change",
"consumer",
"unsubscribe",
"(",
")",
";",
"/",
"/",
"verify",
"that",
"subscription",
"and",
"assignment",
"are",
"both",
"updated",
"assert",
"equals",
"(",
"collections",
"empty",
"set",
"(",
")",
",",
"consumer",
"subscription",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"collections",
"empty",
"set",
"(",
")",
",",
"consumer",
"assignment",
"(",
")",
")",
";",
"/",
"/",
"the",
"auto",
"commit",
"is",
"disabled",
",",
"so",
"no",
"offset",
"commit",
"request",
"should",
"be",
"sent",
"for",
"(",
"client",
"request",
"req",
":",
"client",
"requests",
"(",
")",
")",
"assert",
"not",
"same",
"(",
"api",
"keys",
"offset",
"commit",
",",
"req",
"request",
"builder",
"(",
")",
"api",
"key",
"(",
")",
")",
";",
"client",
"requests",
"(",
")",
"clear",
"(",
")",
";",
"consumer",
"close",
"(",
")",
";",
"}"
] |
[
"removes",
"the",
"given",
"listener",
"from",
"the",
"list",
"of",
"listeners",
"to",
"be",
"notified",
"of",
"a",
"format",
"change"
] | [
"public",
"void",
"remove",
"format",
"modle",
"listener",
"(",
"format",
"model",
"listener",
"listener",
")",
"{",
"format",
"listeners",
"remove",
"(",
"listener",
")",
";",
"}"
] |
[
"return",
"true",
"if",
"the",
"dest",
"node",
"can",
"accept",
"the",
"drop",
"node"
] | [
"boolean",
"is",
"drop",
"site",
"ok",
"(",
"program",
"node",
"dest",
"node",
",",
"program",
"node",
"drop",
"node",
",",
"int",
"drop",
"action",
",",
"int",
"relative",
"mouse",
"pos",
")",
"{",
"program",
"module",
"m",
"parent",
"=",
"dest",
"node",
"get",
"parent",
"module",
"(",
")",
";",
"group",
"drag",
"group",
"=",
"drop",
"node",
"get",
"group",
"(",
")",
";",
"if",
"(",
"drag",
"group",
"equals",
"(",
"dest",
"node",
"get",
"group",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"/",
"/",
"can",
"'",
"t",
"drop",
"a",
"group",
"onto",
"itself",
"}",
"if",
"(",
"m",
"parent",
"=",
"=",
"null",
"&",
"&",
"relative",
"mouse",
"pos",
"!",
"=",
"0",
")",
"{",
"return",
"false",
";",
"/",
"/",
"can",
"'",
"t",
"reorder",
"above",
"or",
"below",
"root",
"}",
"/",
"/",
"if",
"the",
"target",
"node",
"is",
"the",
"same",
"as",
"the",
"parent",
"of",
"the",
"/",
"/",
"from",
"object",
"(",
"node",
"to",
"be",
"dropped",
")",
",",
"then",
"the",
"action",
"/",
"/",
"must",
"be",
"a",
"move",
",",
"because",
"this",
"is",
"just",
"a",
"reorder",
"of",
"the",
"/",
"/",
"children",
"if",
"(",
"dest",
"node",
"equals",
"(",
"drop",
"node",
"get",
"parent",
"(",
")",
")",
")",
"{",
"if",
"(",
"drop",
"action",
"!",
"=",
"dn",
"d",
"constants",
"action",
"move",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"if",
"(",
"drop",
"node",
"get",
"parent",
"(",
")",
"equals",
"(",
"dest",
"node",
"get",
"parent",
"(",
")",
")",
"&",
"&",
"drop",
"action",
"!",
"=",
"dn",
"d",
"constants",
"action",
"move",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"drop",
"node",
"get",
"parent",
"(",
")",
"equals",
"(",
"dest",
"node",
"get",
"parent",
"(",
")",
")",
")",
"{",
"/",
"/",
"if",
"parent",
"nodes",
"are",
"different",
",",
"check",
"to",
"make",
"sure",
"this",
"/",
"/",
"fragment",
"does",
"not",
"already",
"exist",
"as",
"a",
"child",
"of",
"the",
"/",
"/",
"parent",
"of",
"the",
"from",
"object",
"if",
"(",
"drop",
"node",
"is",
"fragment",
"(",
")",
")",
"{",
"program",
"fragment",
"frag",
"=",
"drop",
"node",
"get",
"fragment",
"(",
")",
";",
"if",
"(",
"m",
"parent",
"!",
"=",
"null",
"&",
"&",
"m",
"parent",
"contains",
"(",
"frag",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"this",
"is",
"the",
"root",
";",
"make",
"sure",
"fragment",
"does",
"not",
"/",
"/",
"already",
"exist",
"as",
"a",
"child",
"of",
"root",
"if",
"(",
"m",
"parent",
"=",
"=",
"null",
"&",
"&",
"dest",
"node",
"get",
"module",
"(",
")",
"contains",
"(",
"frag",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"dest",
"node",
"is",
"module",
"(",
")",
")",
"{",
"program",
"module",
"dm",
"=",
"dest",
"node",
"get",
"module",
"(",
")",
";",
"if",
"(",
"dm",
"contains",
"(",
"frag",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}",
"/",
"/",
"from",
"object",
"must",
"be",
"a",
"module",
"program",
"module",
"m",
"=",
"drop",
"node",
"get",
"module",
"(",
")",
";",
"if",
"(",
"m",
"parent",
"!",
"=",
"null",
"&",
"&",
"(",
"!",
"m",
"equals",
"(",
"m",
"parent",
")",
"&",
"&",
"m",
"parent",
"contains",
"(",
"m",
")",
")",
"|",
"|",
"m",
"equals",
"(",
"m",
"parent",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"this",
"is",
"the",
"root",
";",
"make",
"sure",
"module",
"does",
"not",
"/",
"/",
"already",
"exist",
"as",
"a",
"child",
"of",
"root",
"if",
"(",
"m",
"parent",
"=",
"=",
"null",
"&",
"&",
"dest",
"node",
"get",
"module",
"(",
")",
"contains",
"(",
"m",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"/",
"/",
"else",
"parent",
"nodes",
"are",
"the",
"same",
",",
"so",
"this",
"a",
"reorder",
"if",
"(",
"dest",
"node",
"is",
"module",
"(",
")",
"&",
"&",
"drop",
"action",
"=",
"=",
"dn",
"d",
"constants",
"action",
"copy",
")",
"{",
"program",
"module",
"dm",
"=",
"dest",
"node",
"get",
"module",
"(",
")",
";",
"if",
"(",
"drop",
"node",
"is",
"module",
"(",
")",
")",
"{",
"if",
"(",
"dm",
"contains",
"(",
"drop",
"node",
"get",
"module",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"dm",
"contains",
"(",
"drop",
"node",
"get",
"fragment",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"}",
"return",
"true",
";",
"}"
] |
[
"truncate",
"a",
"block",
"file"
] | [
"private",
"long",
"truncate",
"block",
"file",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"(",
"auto",
"closeable",
"lock",
"lock",
"=",
"fds",
"acquire",
"dataset",
"lock",
"(",
")",
")",
"{",
"for",
"(",
"replica",
"info",
"b",
":",
"fs",
"dataset",
"test",
"util",
"get",
"replicas",
"(",
"fds",
",",
"bpid",
")",
")",
"{",
"file",
"f",
"=",
"new",
"file",
"(",
"b",
"get",
"block",
"u",
"r",
"i",
"(",
")",
")",
";",
"file",
"mf",
"=",
"new",
"file",
"(",
"b",
"get",
"metadata",
"u",
"r",
"i",
"(",
")",
")",
";",
"/",
"/",
"truncate",
"a",
"block",
"file",
"that",
"has",
"a",
"corresponding",
"metadata",
"file",
"if",
"(",
"f",
"exists",
"(",
")",
"&",
"&",
"f",
"length",
"(",
")",
"!",
"=",
"0",
"&",
"&",
"mf",
"exists",
"(",
")",
")",
"{",
"file",
"output",
"stream",
"s",
"=",
"null",
";",
"file",
"channel",
"channel",
"=",
"null",
";",
"try",
"{",
"s",
"=",
"new",
"file",
"output",
"stream",
"(",
"f",
")",
";",
"channel",
"=",
"s",
"get",
"channel",
"(",
")",
";",
"channel",
"truncate",
"(",
"0",
")",
";",
"log",
"info",
"(",
"\"",
"truncated",
"block",
"file",
"\"",
"+",
"f",
"get",
"absolute",
"path",
"(",
")",
")",
";",
"return",
"b",
"get",
"block",
"id",
"(",
")",
";",
"}",
"finally",
"{",
"i",
"o",
"utils",
"cleanup",
"with",
"logger",
"(",
"log",
",",
"channel",
",",
"s",
")",
";",
"}",
"}",
"}",
"}",
"return",
"0",
";",
"}"
] |
[
"returns",
"a",
"secret",
"key",
"that",
"survives",
"across",
"container",
"startstop",
"this",
"value",
"is",
"useful",
"for",
"implementing",
"some",
"of",
"the",
"security",
"features"
] | [
"public",
"string",
"get",
"secret",
"key",
"(",
")",
"{",
"return",
"secret",
"key",
";",
"}"
] |
[
"increment",
"the",
"per",
"-",
"policy",
"snapshot",
"failure",
"count",
"for",
"the",
"given",
"policy",
"id"
] | [
"public",
"void",
"snapshot",
"failed",
"(",
"string",
"slm",
"policy",
")",
"{",
"this",
"policy",
"stats",
"compute",
"if",
"absent",
"(",
"slm",
"policy",
",",
"snapshot",
"policy",
"stats",
":",
":",
"new",
")",
"snapshot",
"failed",
"(",
")",
";",
"}"
] |
[
"registers",
"a",
"data",
"watcher",
"for",
"the",
"given",
"lds",
"resource"
] | [
"void",
"watch",
"lds",
"resource",
"(",
"string",
"resource",
"name",
",",
"lds",
"resource",
"watcher",
"watcher",
")",
"{",
"}"
] |
[
"update",
"an",
"existing",
"pet"
] | [
"public",
"api",
"response",
"<",
"void",
">",
"update",
"pet",
"with",
"http",
"info",
"(",
"pet",
"body",
")",
"throws",
"api",
"exception",
"{",
"okhttp",
"3",
"call",
"local",
"var",
"call",
"=",
"update",
"pet",
"validate",
"before",
"call",
"(",
"body",
",",
"null",
")",
";",
"return",
"local",
"var",
"api",
"client",
"execute",
"(",
"local",
"var",
"call",
")",
";",
"}"
] |
[
"removes",
"the",
"changes",
"listener"
] | [
"public",
"void",
"remove",
"change",
"listener",
"(",
"change",
"listener",
"listener",
")",
"{",
"listeners",
"remove",
"(",
"listener",
")",
";",
"}"
] |
[
"return",
"an",
"unmodifiable",
"view",
"of",
"the",
"specified",
"multi",
"-",
"value",
"map"
] | [
"public",
"static",
"<",
"k",
",",
"v",
">",
"multi",
"value",
"map",
"<",
"k",
",",
"v",
">",
"unmodifiable",
"multi",
"value",
"map",
"(",
"multi",
"value",
"map",
"<",
"?",
"extends",
"k",
",",
"?",
"extends",
"v",
">",
"target",
"map",
")",
"{",
"assert",
"not",
"null",
"(",
"target",
"map",
",",
"\"",
"'",
"target",
"map",
"'",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"map",
"<",
"k",
",",
"list",
"<",
"v",
">",
">",
"result",
"=",
"new",
"linked",
"hash",
"map",
"(",
"target",
"map",
"size",
"(",
")",
")",
";",
"target",
"map",
"for",
"each",
"(",
"(",
"key",
",",
"value",
")",
"-",
">",
"{",
"list",
"<",
"?",
"extends",
"v",
">",
"values",
"=",
"collections",
"unmodifiable",
"list",
"(",
"value",
")",
";",
"result",
"put",
"(",
"key",
",",
"(",
"list",
"<",
"v",
">",
")",
"values",
")",
";",
"}",
")",
";",
"map",
"<",
"k",
",",
"list",
"<",
"v",
">",
">",
"unmodifiable",
"map",
"=",
"collections",
"unmodifiable",
"map",
"(",
"result",
")",
";",
"return",
"to",
"multi",
"value",
"map",
"(",
"unmodifiable",
"map",
")",
";",
"}"
] |
[
"sets",
"whether",
"stack",
"traces",
"of",
"{",
"@",
"link",
"throwable",
"}",
"s",
"will",
"be",
"logged",
"to",
"logcat",
"stack",
"trace",
"logging",
"is",
"enabled",
"by",
"default"
] | [
"public",
"static",
"void",
"set",
"log",
"stack",
"traces",
"(",
"boolean",
"log",
"stack",
"traces",
")",
"{",
"log",
"log",
"stack",
"traces",
"=",
"log",
"stack",
"traces",
";",
"}"
] |
[
"removes",
"the",
"message",
"from",
"being",
"displayed",
"by",
"this",
"panel",
"setting",
"the",
"message",
"text",
"will",
"cause",
"it",
"to",
"get",
"added",
"again"
] | [
"public",
"void",
"remove",
"message",
"(",
")",
"{",
"remove",
"(",
"progress",
"message",
"panel",
")",
";",
"is",
"showing",
"message",
"=",
"false",
";",
"do",
"validate",
"(",
")",
";",
"}"
] |
[
"sends",
"client",
"sasl",
"negotiation",
"for",
"specialized",
"encrypted",
"handshake"
] | [
"private",
"i",
"o",
"stream",
"pair",
"get",
"encrypted",
"streams",
"(",
"inet",
"address",
"addr",
",",
"output",
"stream",
"underlying",
"out",
",",
"input",
"stream",
"underlying",
"in",
",",
"data",
"encryption",
"key",
"encryption",
"key",
",",
"token",
"<",
"block",
"token",
"identifier",
">",
"access",
"token",
",",
"secret",
"key",
"secret",
"key",
")",
"throws",
"i",
"o",
"exception",
"{",
"map",
"<",
"string",
",",
"string",
">",
"sasl",
"props",
"=",
"create",
"sasl",
"properties",
"for",
"encryption",
"(",
"encryption",
"key",
"encryption",
"algorithm",
")",
";",
"if",
"(",
"secret",
"key",
"!",
"=",
"null",
")",
"{",
"log",
"debug",
"(",
"\"",
"data",
"node",
"overwriting",
"downstream",
"qop",
"\"",
"+",
"sasl",
"props",
"get",
"(",
"sasl",
"qop",
")",
")",
";",
"update",
"token",
"(",
"access",
"token",
",",
"secret",
"key",
",",
"sasl",
"props",
")",
";",
"}",
"log",
"debug",
"(",
"\"",
"client",
"using",
"encryption",
"algorithm",
"{",
"}",
"\"",
",",
"encryption",
"key",
"encryption",
"algorithm",
")",
";",
"string",
"user",
"name",
"=",
"get",
"user",
"name",
"from",
"encryption",
"key",
"(",
"encryption",
"key",
")",
";",
"char",
"[",
"]",
"password",
"=",
"encryption",
"key",
"to",
"password",
"(",
"encryption",
"key",
"encryption",
"key",
")",
";",
"callback",
"handler",
"callback",
"handler",
"=",
"new",
"sasl",
"client",
"callback",
"handler",
"(",
"user",
"name",
",",
"password",
")",
";",
"return",
"do",
"sasl",
"handshake",
"(",
"addr",
",",
"underlying",
"out",
",",
"underlying",
"in",
",",
"user",
"name",
",",
"sasl",
"props",
",",
"callback",
"handler",
",",
"access",
"token",
")",
";",
"}"
] |
[
"check",
"if",
"values",
"from",
"the",
"given",
"annotation",
"can",
"be",
"safely",
"accessed",
"without",
"causing",
"any",
"{",
"@",
"link",
"type",
"not",
"present",
"exception",
"type",
"not",
"present",
"exceptions",
"}",
"in",
"particular",
",",
"this",
"method",
"is",
"designed",
"to",
"cover",
"google",
"app",
"engine",
"'",
"s",
"late",
"arrival",
"of",
"such",
"exceptions",
"for",
"{",
"@",
"code",
"class",
"}",
"values",
"(",
"instead",
"of",
"the",
"more",
"typical",
"early",
"{",
"@",
"code",
"class",
"get",
"annotations",
"(",
")",
"failure",
"}"
] | [
"void",
"validate",
"(",
"annotation",
"annotation",
")",
"{",
"assert",
"annotation",
"(",
"annotation",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"can",
"throw",
"type",
"not",
"present",
"exception",
"(",
"i",
")",
")",
"{",
"try",
"{",
"get",
"(",
"i",
")",
"invoke",
"(",
"annotation",
")",
";",
"}",
"catch",
"(",
"throwable",
"ex",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"could",
"not",
"obtain",
"annotation",
"attribute",
"value",
"for",
"\"",
"+",
"get",
"(",
"i",
")",
"get",
"name",
"(",
")",
"+",
"\"",
"declared",
"on",
"\"",
"+",
"annotation",
"annotation",
"type",
"(",
")",
",",
"ex",
")",
";",
"}",
"}",
"}",
"}"
] |
[
"verify",
"user",
"device",
"is",
"paired"
] | [
"public",
"boolean",
"verify",
"user",
"device",
"is",
"paired",
"(",
")",
"{",
"val",
"acceptto",
"=",
"cas",
"properties",
"get",
"authn",
"(",
")",
"get",
"mfa",
"(",
")",
"get",
"acceptto",
"(",
")",
";",
"val",
"authentication",
"=",
"web",
"utils",
"get",
"in",
"progress",
"authentication",
"(",
")",
";",
"if",
"(",
"!",
"acceptto",
"api",
"utils",
"is",
"user",
"device",
"paired",
"(",
"authentication",
",",
"acceptto",
")",
")",
"{",
"val",
"email",
"=",
"acceptto",
"api",
"utils",
"get",
"user",
"email",
"(",
"authentication",
",",
"acceptto",
")",
";",
"throw",
"new",
"acceptto",
"user",
"device",
"registration",
"exception",
"(",
"\"",
"could",
"not",
"locate",
"registered",
"device",
"for",
"\"",
"+",
"email",
")",
";",
"}",
"return",
"true",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.