docstring_tokens list | code_tokens list |
|---|---|
[
"changes",
"the",
"current",
"regular",
"expression",
"search",
"setting"
] | [
"if",
"(",
"value",
"=",
"=",
"get",
"search",
"reg",
"ex",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"m",
"type",
"=",
"=",
"null",
")",
"{",
"m",
"search",
"reg",
"ex",
"=",
"value",
";",
"}",
"else",
"{",
"m",
"type",
"set",
"re... |
[
"changes",
"the",
"current",
"search",
"selected",
"nodes",
"only",
"setting"
] | [
"if",
"(",
"value",
"=",
"=",
"get",
"search",
"selected",
"nodes",
"only",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"m",
"type",
"=",
"=",
"null",
")",
"{",
"m",
"search",
"selected",
"nodes",
"only",
"=",
"value",
";",
"}",
"else",
... |
[
"changes",
"the",
"current",
"search",
"visible",
"nodes",
"only",
"setting"
] | [
"if",
"(",
"value",
"=",
"=",
"get",
"search",
"visible",
"nodes",
"only",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"m",
"type",
"=",
"=",
"null",
")",
"{",
"m",
"search",
"visible",
"nodes",
"only",
"=",
"value",
";",
"}",
"else",
"{... |
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"class",
"is",
"used",
"outside",
"the",
"workbench",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"in",
"normal",
"mode"
] | [
"return",
"java",
"core",
"get",
"plugin",
"(",
")",
"=",
"=",
"null",
";"
] |
[
"returns",
"the",
"possibly",
"project",
"-",
"specific",
"core",
"preference",
"defined",
"under",
"<",
"code",
">",
"key",
"<",
"/",
"code",
">"
] | [
"if",
"(",
"f",
"project",
"=",
"=",
"null",
")",
"return",
"java",
"core",
"get",
"option",
"(",
"key",
")",
";",
"return",
"f",
"project",
"get",
"option",
"(",
"key",
",",
"true",
")",
";"
] |
[
"computes",
"the",
"indentation",
"at",
"the",
"reference",
"point",
"of",
"<",
"code",
">",
"position",
"<",
"/",
"code",
">"
] | [
"return",
"get",
"reference",
"indentation",
"(",
"offset",
",",
"false",
")",
";"
] |
[
"computes",
"the",
"indentation",
"at",
"<",
"code",
">",
"offset",
"<",
"/",
"code",
">"
] | [
"return",
"compute",
"indentation",
"(",
"offset",
",",
"false",
")",
";"
] |
[
"computes",
"the",
"length",
"of",
"a",
"<",
"code",
">",
"character",
"sequence",
"<",
"/",
"code",
">",
"counting",
"a",
"tab",
"character",
"as",
"the",
"size",
"until",
"the",
"next",
"tab",
"stop",
"and",
"every",
"other",
"character",
"as",
"one"
] | [
"final",
"int",
"tab",
"size",
"=",
"f",
"prefs",
"pref",
"tab",
"size",
";",
"int",
"length",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"indent",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"char",
"ch",
"=",
"i... |
[
"strips",
"any",
"characters",
"off",
"the",
"end",
"of",
"<",
"code",
">",
"reference",
"<",
"/",
"code",
">",
"that",
"exceed",
"<",
"code",
">",
"indent",
"length",
"<",
"/",
"code",
">"
] | [
"final",
"int",
"tab",
"size",
"=",
"f",
"prefs",
"pref",
"tab",
"size",
";",
"int",
"measured",
"=",
"0",
";",
"int",
"chars",
"=",
"reference",
"length",
"(",
")",
";",
"int",
"i",
"=",
"0",
";",
"for",
"(",
";",
"measured",
"<",
"indent",
"len... |
[
"returns",
"the",
"indentation",
"of",
"the",
"line",
"at",
"<",
"code",
">",
"offset",
"<",
"/",
"code",
">",
"as",
"a",
"<",
"code",
">",
"string",
"buffer",
"<",
"/",
"code",
">",
"if",
"the",
"offset",
"is",
"not",
"valid",
"the",
"empty",
"str... | [
"string",
"buffer",
"indent",
"=",
"new",
"string",
"buffer",
"(",
")",
";",
"try",
"{",
"i",
"region",
"line",
"=",
"f",
"document",
"get",
"line",
"information",
"of",
"offset",
"(",
"offset",
")",
";",
"int",
"line",
"offset",
"=",
"line",
"get",
... |
[
"returns",
"the",
"reference",
"position",
"regarding",
"to",
"indentation",
"for",
"<",
"code",
">",
"offset",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"not",
"found",
"<",
"/",
"code",
">",
"this",
"method",
"calls",
"{",
"@",
"link",
"#",
"f... | [
"return",
"find",
"reference",
"position",
"(",
"offset",
",",
"peek",
"char",
"(",
"offset",
")",
")",
";"
] |
[
"peeks",
"the",
"next",
"char",
"in",
"the",
"document",
"that",
"comes",
"after",
"<",
"code",
">",
"offset",
"<",
"/",
"code",
">",
"on",
"the",
"same",
"line",
"as",
"<",
"code",
">",
"offset",
"<",
"/",
"code",
">"
] | [
"if",
"(",
"offset",
"<",
"f",
"document",
"get",
"length",
"(",
")",
")",
"{",
"try",
"{",
"i",
"region",
"line",
"=",
"f",
"document",
"get",
"line",
"information",
"of",
"offset",
"(",
"offset",
")",
";",
"int",
"line",
"offset",
"=",
"line",
"g... |
[
"tells",
"whether",
"the",
"given",
"string",
"is",
"a",
"continuation",
"expression"
] | [
"int",
"next",
"non",
"w",
"s",
"char",
"position",
"=",
"f",
"scanner",
"find",
"non",
"whitespace",
"backward",
"in",
"any",
"partition",
"(",
"offset",
"-",
"1",
",",
"java",
"heuristic",
"scanner",
"unbound",
")",
";",
"try",
"{",
"if",
"(",
"next"... |
[
"returns",
"the",
"reference",
"position",
"regarding",
"to",
"indentation",
"for",
"<",
"code",
">",
"position",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"not",
"found",
"<",
"/",
"code",
">",
"<",
"code",
">",
"f",
"indent",
"<",
"/",
"code",... | [
"return",
"find",
"reference",
"position",
"(",
"offset",
",",
"dangling",
"else",
",",
"match",
"brace",
",",
"match",
"paren",
",",
"match",
"case",
",",
"false",
")",
";"
] |
[
"checks",
"if",
"the",
"semicolon",
"at",
"the",
"current",
"position",
"is",
"part",
"of",
"a",
"for",
"statement"
] | [
"int",
"semi",
"colon",
"count",
"=",
"1",
";",
"while",
"(",
"true",
")",
"{",
"next",
"token",
"(",
")",
";",
"switch",
"(",
"f",
"token",
")",
"{",
"case",
"symbols",
"token",
"f",
"o",
"r",
":",
"return",
"true",
";",
"case",
"symbols",
"toke... |
[
"checks",
"if",
"the",
"semicolon",
"at",
"the",
"current",
"position",
"is",
"part",
"of",
"a",
"try",
"with",
"resources",
"statement"
] | [
"while",
"(",
"true",
")",
"{",
"next",
"token",
"(",
")",
";",
"switch",
"(",
"f",
"token",
")",
"{",
"case",
"symbols",
"token",
"t",
"r",
"y",
":",
"return",
"true",
";",
"case",
"symbols",
"token",
"l",
"b",
"r",
"a",
"c",
"e",
":",
"return... |
[
"returns",
"the",
"contents",
"of",
"the",
"current",
"token"
] | [
"return",
"new",
"document",
"character",
"iterator",
"(",
"f",
"document",
",",
"f",
"position",
",",
"f",
"previous",
"pos",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"next",
"token",
"received",
"after",
"calling",
"<",
"code",
">",
"next",
"token",
"<",
"/",
"code",
">",
"is",
"either",
"an",
"equal",
"sign",
"or",
"an",
"array",
"designato... | [
"next",
"token",
"(",
")",
";",
"if",
"(",
"f",
"token",
"=",
"=",
"symbols",
"token",
"e",
"q",
"u",
"a",
"l",
"|",
"|",
"skip",
"brackets",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"skips",
"brackets",
"if",
"the",
"current",
"token",
"is",
"a",
"rbracket",
"there",
"can",
"be",
"nothing",
"but",
"whitespace",
"in",
"between",
"this",
"is",
"only",
"to",
"be",
"used",
"for",
"<",
"code",
">",
"[",
"]",
"<",
"/",
"code",
">",
"e... | [
"if",
"(",
"f",
"token",
"=",
"=",
"symbols",
"token",
"r",
"b",
"r",
"a",
"c",
"k",
"e",
"t",
")",
"{",
"next",
"token",
"(",
")",
";",
"if",
"(",
"f",
"token",
"=",
"=",
"symbols",
"token",
"l",
"b",
"r",
"a",
"c",
"k",
"e",
"t",
")",
... |
[
"reads",
"the",
"next",
"token",
"in",
"backward",
"direction",
"from",
"the",
"heuristic",
"scanner",
"and",
"sets",
"the",
"fields",
"<",
"code",
">",
"f",
"token",
"f",
"previous",
"position",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"f",
"po... | [
"next",
"token",
"(",
"f",
"position",
")",
";"
] |
[
"reads",
"the",
"next",
"token",
"in",
"backward",
"direction",
"of",
"<",
"code",
">",
"start",
"<",
"/",
"code",
">",
"from",
"the",
"heuristic",
"scanner",
"and",
"sets",
"the",
"fields",
"<",
"code",
">",
"f",
"token",
"f",
"previous",
"position",
... | [
"f",
"token",
"=",
"f",
"scanner",
"previous",
"token",
"(",
"start",
"-",
"1",
",",
"java",
"heuristic",
"scanner",
"unbound",
")",
";",
"f",
"previous",
"pos",
"=",
"start",
";",
"f",
"position",
"=",
"f",
"scanner",
"get",
"position",
"(",
")",
"+... |
[
"scans",
"tokens",
"for",
"the",
"matching",
"opening",
"peer",
"the",
"internal",
"cursor",
"(",
"<",
"code",
">",
"f",
"position",
"<",
"/",
"code",
">",
")",
"is",
"set",
"to",
"the",
"offset",
"of",
"the",
"opening",
"peer",
"if",
"found"
] | [
"int",
"depth",
"=",
"1",
";",
"while",
"(",
"true",
")",
"{",
"next",
"token",
"(",
")",
";",
"if",
"(",
"f",
"token",
"=",
"=",
"close",
"token",
")",
"{",
"depth",
"+",
"+",
";",
"}",
"else",
"if",
"(",
"f",
"token",
"=",
"=",
"open",
"t... |
[
"{"
] | [
"return",
"new",
"number",
"range",
"(",
"(",
"double",
")",
"from",
",",
"(",
"double",
")",
"to",
")",
";"
] |
[
"{"
] | [
"return",
"(",
"double",
")",
"value",
";"
] |
[
"start",
"timer",
"to",
"refresh",
"all",
"systems"
] | [
"if",
"(",
"s",
"s",
"h",
"util",
"key",
"management",
"enabled",
"&",
"&",
"minute",
">",
"0",
")",
"{",
"new",
"refresh",
"auth",
"key",
"util",
"(",
")",
";",
"}"
] |
[
"task",
"for",
"distributing",
"keys",
"to",
"all",
"systems"
] | [
"runnable",
"run",
"=",
"new",
"refresh",
"all",
"systems",
"task",
"(",
")",
";",
"thread",
"thread",
"=",
"new",
"thread",
"(",
"run",
")",
";",
"thread",
"start",
"(",
")",
";"
] |
[
"task",
"for",
"distributing",
"keys",
"to",
"all",
"systems",
"based",
"on",
"profile"
] | [
"runnable",
"run",
"=",
"new",
"refresh",
"profile",
"systems",
"task",
"(",
"profile",
"id",
")",
";",
"thread",
"thread",
"=",
"new",
"thread",
"(",
"run",
")",
";",
"thread",
"start",
"(",
")",
";"
] |
[
"task",
"for",
"distributing",
"keys",
"to",
"all",
"systems",
"based",
"on",
"user"
] | [
"runnable",
"run",
"=",
"new",
"refresh",
"user",
"systems",
"task",
"(",
"user",
"id",
")",
";",
"thread",
"thread",
"=",
"new",
"thread",
"(",
"run",
")",
";",
"thread",
"start",
"(",
")",
";"
] |
[
"@",
"return",
"the",
"usb",
"spec",
"value",
"associated",
"with",
"the",
"device",
"descriptor",
"for",
"the",
"descriptors",
"stream",
"being",
"parsed"
] | [
"if",
"(",
"m",
"device",
"descriptor",
"!",
"=",
"null",
")",
"{",
"return",
"m",
"device",
"descriptor",
"get",
"spec",
"(",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}"
] |
[
"get",
"input",
"headset",
"probability",
"(",
")",
"reports",
"a",
"probability",
"of",
"a",
"usb",
"input",
"peripheral",
"being",
"a",
"headset",
"the",
"probability",
"range",
"is",
"between",
"0",
"0f",
"(",
"definitely",
"not",
"a",
"headset",
")",
"... | [
"return",
"get",
"input",
"headset",
"probability",
"(",
")",
">",
"=",
"in",
"headset",
"trigger",
";"
] |
[
"get",
"output",
"headset",
"probability",
"(",
")",
"reports",
"a",
"probability",
"of",
"a",
"usb",
"output",
"peripheral",
"being",
"a",
"headset",
"the",
"probability",
"range",
"is",
"between",
"0",
"0f",
"(",
"definitely",
"not",
"a",
"headset",
")",
... | [
"return",
"get",
"output",
"headset",
"probability",
"(",
")",
">",
"=",
"out",
"headset",
"trigger",
";"
] |
[
"some",
"text"
] | [] |
[
"some",
"text"
] | [] |
[
"{"
] | [
"hystrix",
"invokable",
"command",
"=",
"hystrix",
"command",
"factory",
"get",
"instance",
"(",
")",
"create",
"delayed",
"(",
"create",
"copy",
"(",
"original",
"meta",
"holder",
",",
"execution",
"type",
")",
")",
";",
"return",
"new",
"command",
"executi... |
[
"{"
] | [
"hystrix",
"invokable",
"command",
"=",
"hystrix",
"command",
"factory",
"get",
"instance",
"(",
")",
"create",
"delayed",
"(",
"create",
"copy",
"(",
"original",
"meta",
"holder",
",",
"execution",
"type",
",",
"args",
")",
")",
";",
"return",
"new",
"com... |
[
"{"
] | [
"return",
"string",
"utils",
"is",
"not",
"empty",
"(",
"original",
"meta",
"holder",
"get",
"hystrix",
"command",
"(",
")",
"command",
"key",
"(",
")",
")",
"?",
"original",
"meta",
"holder",
"get",
"hystrix",
"command",
"(",
")",
"command",
"key",
"(",... |
[
"todo",
"dmgcodevil",
":",
"move",
"it",
"to",
"meta",
"holder",
"class",
"?"
] | [
"return",
"meta",
"holder",
"builder",
"(",
")",
"obj",
"(",
"source",
"get",
"obj",
"(",
")",
")",
"method",
"(",
"source",
"get",
"method",
"(",
")",
")",
"ajc",
"method",
"(",
"source",
"get",
"ajc",
"method",
"(",
")",
")",
"fallback",
"execution... |
[
"reset",
"caches",
"<",
"br",
">",
"needed",
"to",
"make",
"sure",
"the",
"player",
"starts",
"with",
"a",
"fresh",
"fuel",
"stash"
] | [
"fuel",
"caches",
"=",
"new",
"hash",
"map",
"<",
"entity",
"player",
"m",
"p",
",",
"integer",
">",
"(",
")",
";"
] |
[
"compare",
"two",
"item",
"stacks",
"and",
"see",
"if",
"their",
"items",
"match",
"-",
"take",
"wildcards",
"into",
"account",
"don",
"t",
"take",
"stacksize",
"into",
"account"
] | [
"if",
"(",
"a",
"=",
"=",
"null",
"&",
"&",
"b",
"=",
"=",
"null",
")",
"return",
"true",
";",
"if",
"(",
"a",
"=",
"=",
"null",
"|",
"|",
"b",
"=",
"=",
"null",
")",
"return",
"false",
";",
"if",
"(",
"a",
"get",
"metadata",
"(",
")",
"=... |
[
"go",
"through",
"player",
"s",
"inventory",
"and",
"see",
"how",
"much",
"fuel",
"they",
"have"
] | [
"integer",
"from",
"cache",
"=",
"fuel",
"caches",
"get",
"(",
"player",
")",
";",
"int",
"total",
"=",
"(",
"from",
"cache",
"!",
"=",
"null",
")",
"?",
"from",
"cache",
":",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"player",... |
[
"attempt",
"to",
"find",
"all",
"recipes",
"that",
"result",
"in",
"an",
"item",
"of",
"the",
"requested",
"output"
] | [
"list",
"<",
"i",
"recipe",
">",
"matching",
"recipes",
"=",
"new",
"array",
"list",
"<",
"i",
"recipe",
">",
"(",
")",
";",
"item",
"stack",
"target",
"=",
"minecraft",
"type",
"helper",
"get",
"item",
"stack",
"from",
"parameter",
"string",
"(",
"out... |
[
"attempt",
"to",
"find",
"a",
"smelting",
"recipe",
"that",
"results",
"in",
"the",
"requested",
"output"
] | [
"item",
"stack",
"target",
"=",
"minecraft",
"type",
"helper",
"get",
"item",
"stack",
"from",
"parameter",
"string",
"(",
"output",
")",
";",
"iterator",
"<",
"?",
">",
"furnace",
"it",
"=",
"furnace",
"recipes",
"instance",
"(",
")",
"get",
"smelting",
... |
[
"find",
"the",
"positions",
"of",
"all",
"the",
"given",
"children"
] | [
"map",
"<",
"node",
",",
"integer",
">",
"positions",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"calculated",
"syntax",
"model",
"elements",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
... |
[
"remove",
"from",
"the",
"difference",
"all",
"the",
"elements",
"related",
"to",
"indentation",
"this",
"is",
"mainly",
"intended",
"for",
"test",
"purposes"
] | [
"elements",
"remove",
"if",
"(",
"el",
"-",
">",
"el",
"get",
"element",
"(",
")",
"instanceof",
"csm",
"indent",
"|",
"|",
"el",
"get",
"element",
"(",
")",
"instanceof",
"csm",
"unindent",
")",
";"
] |
[
"{"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"lazy",
"vals",
"arr",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"lazy",
"vals",
"arr",
"[",
"i",
"]",
"instanceof",
"binary",
"lazy",
"value",
")",
"lazy",
"vals",
"arr",
"[",
"i",
"]... |
[
"{"
] | [
"if",
"(",
"cls",
"name",
"=",
"=",
"null",
")",
"ctx",
"write",
"array",
"(",
"writer",
",",
"grid",
"binary",
"marshaller",
"obj",
"arr",
",",
"lazy",
"vals",
"arr",
",",
"comp",
"type",
"id",
")",
";",
"else",
"ctx",
"write",
"array",
"(",
"writ... |
[
"return",
"the",
"tag",
"of",
"the",
"object"
] | [
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"-",
"1",
";",
"}",
"lazy",
"binary",
"union",
"lazy",
"binary",
"union",
"=",
"(",
"lazy",
"binary",
"union",
")",
"o",
";",
"return",
"lazy",
"binary",
"union",
"get",
"tag",
"(",
")",
";"
] |
[
"return",
"the",
"field",
"based",
"on",
"the",
"tag",
"value",
"associated",
"with",
"the",
"object"
] | [
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"lazy",
"binary",
"union",
"lazy",
"binary",
"union",
"=",
"(",
"lazy",
"binary",
"union",
")",
"o",
";",
"return",
"lazy",
"binary",
"union",
"get",
"field",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"replicated",
";"
] |
[
"we",
"support",
"only",
"these",
"two",
"events",
"on",
"the",
"client",
"as",
"these",
"are",
"the",
"events",
"used",
"by",
"inventory",
"ui"
] | [
"inventory",
"component",
"class",
"}",
")",
"public",
"void",
"switch",
"item",
"request",
"(",
"switch",
"item",
"action",
"event",
",",
"entity",
"ref",
"entity",
")",
"{",
"switch",
"item",
"(",
"entity",
",",
"event",
"get",
"instigator",
"(",
")",
... |
[
"this",
"will",
"start",
"the",
"closing",
"animation",
"of",
"the",
"marker",
"and",
"call",
"on",
"closing",
"complete",
"when",
"finished"
] | [
"m",
"popup",
"view",
"m",
"marker",
"animate",
"close",
"(",
")",
";"
] |
[
"force",
"the",
"popup",
"window",
"to",
"be",
"removed",
"you",
"typically",
"calls",
"this",
"when",
"the",
"parent",
"view",
"is",
"being",
"removed",
"from",
"the",
"window",
"to",
"avoid",
"a",
"window",
"leak"
] | [
"if",
"(",
"is",
"showing",
"(",
")",
")",
"{",
"m",
"showing",
"=",
"false",
";",
"try",
"{",
"m",
"window",
"manager",
"remove",
"view",
"immediate",
"(",
"m",
"popup",
"view",
")",
";",
"}",
"finally",
"{",
"}",
"}"
] |
[
"receive",
"the",
"result",
"from",
"a",
"previous",
"call",
"to",
"{",
"@",
"link",
"#",
"start",
"activity",
"for",
"result",
"(",
"intent",
"int",
")",
"}",
"this",
"follows",
"the",
"related",
"activity",
"api",
"as",
"described",
"there",
"in",
"{",... | [] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"begin",
"hook",
"activity",
"life",
"cycle",
"callback",
"*",
"*",
"*",
"*",
"*",
"... | [] |
[
"check",
"whether",
"the",
"event",
"name",
"has",
"been",
"registered"
] | [
"return",
"m",
"events",
"get",
"(",
"event",
"name",
")",
";"
] |
[
"is",
"the",
"total",
"physical",
"memory",
"check",
"enabled",
"?"
] | [
"return",
"this",
"pmem",
"check",
"enabled",
";"
] |
[
"is",
"the",
"total",
"virtual",
"memory",
"check",
"enabled",
"?"
] | [
"return",
"this",
"vmem",
"check",
"enabled",
";"
] |
[
"trigger",
"a",
"purge",
"operation"
] | [
"return",
"purge",
"(",
"path",
",",
"id",
",",
"policy",
"match",
",",
"purge",
"policy",
",",
"null",
")",
";"
] |
[
"if",
"the",
"transform",
"is",
"associated",
"with",
"a",
"single",
"annotation",
"returns",
"a",
"name",
"suitable",
"for",
"displaying",
"in",
"error",
"messages"
] | [
"return",
"null",
";"
] |
[
"starts",
"are",
"new",
"recovery",
"for",
"the",
"given",
"shard",
"source",
"node",
"and",
"state"
] | [
"recovery",
"target",
"recovery",
"target",
"=",
"new",
"recovery",
"target",
"(",
"index",
"shard",
",",
"source",
"node",
",",
"listener",
",",
"ensure",
"cluster",
"state",
"version",
"callback",
")",
";",
"start",
"recovery",
"internal",
"(",
"recovery",
... |
[
"gets",
"the",
"{"
] | [
"recovery",
"target",
"status",
"=",
"on",
"going",
"recoveries",
"get",
"(",
"id",
")",
";",
"if",
"(",
"status",
"!",
"=",
"null",
"&",
"&",
"status",
"try",
"inc",
"ref",
"(",
")",
")",
"{",
"return",
"new",
"recovery",
"ref",
"(",
"status",
")"... |
[
"similar",
"to",
"{"
] | [
"recovery",
"ref",
"recovery",
"ref",
"=",
"get",
"recovery",
"(",
"id",
")",
";",
"if",
"(",
"recovery",
"ref",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"index",
"shard",
"closed",
"exception",
"(",
"shard",
"id",
")",
";",
"}",
"assert",
"recove... |
[
"the",
"number",
"of",
"ongoing",
"recoveries"
] | [
"return",
"on",
"going",
"recoveries",
"size",
"(",
")",
";"
] |
[
"throws",
"{",
"@",
"code",
"throwable",
"}",
"if",
"it",
"is",
"a",
"{",
"@",
"link",
"runtime",
"exception",
"}",
"or",
"{",
"@",
"link",
"error",
"}",
"example",
"usage",
":"
] | [
"check",
"not",
"null",
"(",
"throwable",
")",
";",
"if",
"(",
"throwable",
"instanceof",
"runtime",
"exception",
")",
"{",
"throw",
"(",
"runtime",
"exception",
")",
"throwable",
";",
"}",
"if",
"(",
"throwable",
"instanceof",
"error",
")",
"{",
"throw",
... |
[
"propagates",
"{",
"@",
"code",
"throwable",
"}",
"exactly",
"as",
"-",
"is",
"if",
"and",
"only",
"if",
"it",
"is",
"an",
"instance",
"of",
"{",
"@",
"link",
"runtime",
"exception",
"}",
"or",
"{",
"@",
"link",
"error",
"}",
"example",
"usage",
":"
... | [
"if",
"(",
"throwable",
"!",
"=",
"null",
")",
"{",
"throw",
"if",
"unchecked",
"(",
"throwable",
")",
";",
"}"
] |
[
"propagates",
"{",
"@",
"code",
"throwable",
"}",
"as",
"-",
"is",
"if",
"it",
"is",
"an",
"instance",
"of",
"{",
"@",
"link",
"runtime",
"exception",
"}",
"or",
"{",
"@",
"link",
"error",
"}",
"or",
"else",
"as",
"a",
"last",
"resort",
"wraps",
"i... | [
"throw",
"if",
"unchecked",
"(",
"throwable",
")",
";",
"throw",
"new",
"runtime",
"exception",
"(",
"throwable",
")",
";"
] |
[
"sets",
"length",
"to",
"0"
] | [
"length",
"=",
"0",
";"
] |
[
"returns",
"the",
"current",
"capacity",
"of",
"the",
"buffer"
] | [
"return",
"c",
"length",
";"
] |
[
"appends",
"the",
"contents",
"of",
"<",
"code",
">",
"cb",
"<",
"/",
"code",
">",
"to",
"the",
"end",
"of",
"this",
"char",
"buffer"
] | [
"if",
"(",
"cb",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"provide",
"capacity",
"(",
"length",
"+",
"cb",
"length",
")",
";",
"system",
"arraycopy",
"(",
"cb",
"c",
",",
"0",
",",
"c",
",",
"length",
",",
"cb",
"length",
")",
";",
"leng... |
[
"appends",
"<",
"code",
">",
"s",
"<",
"/",
"code",
">",
"to",
"the",
"end",
"of",
"this",
"char",
"buffer",
"this",
"method",
"involves",
"copying",
"the",
"new",
"data",
"once",
"!"
] | [
"if",
"(",
"s",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"append",
"(",
"s",
"to",
"char",
"array",
"(",
")",
")",
";"
] |
[
"appends",
"<",
"code",
">",
"sb",
"<",
"/",
"code",
">",
"to",
"the",
"end",
"of",
"this",
"char",
"buffer",
"this",
"method",
"involves",
"copying",
"the",
"new",
"data",
"once",
"!"
] | [
"if",
"(",
"sb",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"provide",
"capacity",
"(",
"length",
"+",
"sb",
"length",
"(",
")",
")",
";",
"sb",
"get",
"chars",
"(",
"0",
",",
"sb",
"length",
"(",
")",
",",
"c",
",",
"length",
")",
";",
... |
[
"appends",
"<",
"code",
">",
"data",
"<",
"/",
"code",
">",
"to",
"the",
"end",
"of",
"this",
"char",
"buffer",
"this",
"method",
"involves",
"copying",
"the",
"new",
"data",
"once",
"!"
] | [
"if",
"(",
"data",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"provide",
"capacity",
"(",
"length",
"+",
"data",
"length",
")",
";",
"system",
"arraycopy",
"(",
"data",
",",
"0",
",",
"c",
",",
"length",
",",
"data",
"length",
")",
";",
"len... |
[
"appends",
"a",
"single",
"character",
"to",
"the",
"end",
"of",
"this",
"char",
"buffer",
"this",
"method",
"involves",
"copying",
"the",
"new",
"data",
"once",
"!"
] | [
"provide",
"capacity",
"(",
"length",
"+",
"1",
")",
";",
"c",
"[",
"length",
"]",
"=",
"data",
";",
"length",
"+",
"+",
";"
] |
[
"shrinks",
"the",
"capacity",
"of",
"the",
"buffer",
"to",
"the",
"current",
"length",
"if",
"necessary",
"this",
"method",
"involves",
"copying",
"the",
"data",
"once",
"!"
] | [
"if",
"(",
"c",
"length",
"=",
"=",
"length",
")",
"{",
"return",
";",
"}",
"char",
"[",
"]",
"newc",
"=",
"new",
"char",
"[",
"length",
"]",
";",
"system",
"arraycopy",
"(",
"c",
",",
"0",
",",
"newc",
",",
"0",
",",
"length",
")",
";",
"c",... |
[
"removes",
"trailing",
"whitespace"
] | [
"while",
"(",
"length",
">",
"0",
"&",
"&",
"character",
"is",
"whitespace",
"(",
"c",
"[",
"length",
"-",
"1",
"]",
")",
")",
"{",
"length",
"-",
"-",
";",
"}"
] |
[
"returns",
"the",
"contents",
"of",
"the",
"buffer",
"as",
"a",
"char",
"[",
"]",
"the",
"returned",
"array",
"may",
"be",
"the",
"internal",
"array",
"of",
"the",
"buffer",
"so",
"the",
"caller",
"must",
"take",
"care",
"when",
"modifying",
"it",
"this"... | [
"if",
"(",
"c",
"length",
"=",
"=",
"length",
")",
"{",
"return",
"c",
";",
"}",
"char",
"[",
"]",
"chars",
"=",
"new",
"char",
"[",
"length",
"]",
";",
"system",
"arraycopy",
"(",
"c",
",",
"0",
",",
"chars",
",",
"0",
",",
"length",
")",
";... |
[
"returns",
"the",
"character",
"at",
"the",
"specified",
"position"
] | [
"return",
"c",
"[",
"pos",
"]",
";"
] |
[
"converts",
"the",
"contents",
"of",
"the",
"buffer",
"into",
"a",
"string",
"buffer",
"this",
"method",
"involves",
"copying",
"the",
"new",
"data",
"once",
"!"
] | [
"return",
"new",
"string",
"(",
"c",
",",
"0",
",",
"length",
")",
";"
] |
[
"copies",
"the",
"data",
"into",
"a",
"new",
"array",
"of",
"at",
"least",
"<",
"code",
">",
"capacity",
"<",
"/",
"code",
">",
"size"
] | [
"if",
"(",
"c",
"length",
">",
"=",
"capacity",
")",
"{",
"return",
";",
"}",
"int",
"newcapacity",
"=",
"(",
"(",
"capacity",
"*",
"3",
")",
">",
">",
"1",
")",
"+",
"1",
";",
"char",
"[",
"]",
"newc",
"=",
"new",
"char",
"[",
"newcapacity",
... |
[
"not",
"doing",
"anything",
"just",
"like",
"scheduler",
"shuttingdown"
] | [] |
[
"<",
"p",
">",
"a",
"user",
"-",
"supplied",
"id",
"that",
"uniquely",
"identifies",
"the",
"<",
"code",
">",
"data",
"source",
"<",
"/",
"code",
">",
"typically",
"an",
"amazon",
"resource",
"number",
"(",
"arn",
")",
"becomes",
"the",
"id",
"for",
... | [
"this",
"data",
"source",
"id",
"=",
"data",
"source",
"id",
";"
] |
[
"<",
"p",
">",
"a",
"user",
"-",
"supplied",
"id",
"that",
"uniquely",
"identifies",
"the",
"<",
"code",
">",
"data",
"source",
"<",
"/",
"code",
">",
"typically",
"an",
"amazon",
"resource",
"number",
"(",
"arn",
")",
"becomes",
"the",
"id",
"for",
... | [
"return",
"this",
"data",
"source",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"assigned",
"to",
"the",
"<",
"code",
">",
"data",
"source",
"<",
"/",
"code",
">",
"at",
"creation",
"<",
"/",
"p",
">"
] | [
"set",
"data",
"source",
"id",
"(",
"data",
"source",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"indicates",
"whether",
"a",
"verbose",
"level",
"of",
"detail",
"is",
"enabled",
"<",
"/",
"p",
">"
] | [
"this",
"verbose",
"=",
"verbose",
";"
] |
[
"<",
"p",
">",
"indicates",
"whether",
"a",
"verbose",
"level",
"of",
"detail",
"is",
"enabled",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"verbose",
";"
] |
[
"<",
"p",
">",
"specifies",
"whether",
"the",
"<",
"code",
">",
"get",
"data",
"source",
"<",
"/",
"code",
">",
"operation",
"should",
"return",
"<",
"code",
">",
"data",
"source",
"schema",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">... | [
"set",
"verbose",
"(",
"verbose",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"indicates",
"whether",
"a",
"verbose",
"level",
"of",
"detail",
"is",
"enabled",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"verbose",
";"
] |
[
"format",
"a",
"symbol",
"with",
"the",
"given",
"style"
] | [
"symbol",
"printer",
"context",
"context",
"=",
"style",
"create",
"new",
"context",
"(",
"sql",
"printer",
"visitor",
")",
";",
"symbol",
"print",
"visitor",
"process",
"(",
"symbol",
",",
"context",
")",
";",
"return",
"context",
"formatted",
"(",
")",
"... |
[
"returns",
"the",
"display",
"mode",
"of",
"notification"
] | [
"return",
"display",
"mode",
";"
] |
[
"returns",
"the",
"{"
] | [
"return",
"logger",
";"
] |
[
"returns",
"the",
"{"
] | [
"return",
"level",
";"
] |
[
"test",
"constructor"
] | [
"partial",
"test",
"=",
"new",
"partial",
"(",
")",
";",
"assert",
"equals",
"(",
"iso",
"utc",
",",
"test",
"get",
"chronology",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"0",
",",
"test",
"size",
"(",
")",
")",
";"
] |
[
"test",
"constructor"
] | [
"partial",
"test",
"=",
"new",
"partial",
"(",
"(",
"chronology",
")",
"null",
")",
";",
"assert",
"equals",
"(",
"iso",
"utc",
",",
"test",
"get",
"chronology",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"0",
",",
"test",
"size",
"(",
")",
")",
... |
[
"test",
"constructor"
] | [
"partial",
"test",
"=",
"new",
"partial",
"(",
"date",
"time",
"field",
"type",
"day",
"of",
"year",
"(",
")",
",",
"4",
")",
";",
"assert",
"equals",
"(",
"iso",
"utc",
",",
"test",
"get",
"chronology",
"(",
")",
")",
";",
"assert",
"equals",
"(",... |
[
"test",
"constructor"
] | [
"partial",
"test",
"=",
"new",
"partial",
"(",
"date",
"time",
"field",
"type",
"day",
"of",
"year",
"(",
")",
",",
"4",
",",
"gregorian",
"paris",
")",
";",
"assert",
"equals",
"(",
"gregorian",
"utc",
",",
"test",
"get",
"chronology",
"(",
")",
")"... |
[
"test",
"constructor"
] | [
"date",
"time",
"field",
"type",
"[",
"]",
"types",
"=",
"new",
"date",
"time",
"field",
"type",
"[",
"]",
"{",
"date",
"time",
"field",
"type",
"year",
"(",
")",
",",
"date",
"time",
"field",
"type",
"day",
"of",
"year",
"(",
")",
"}",
";",
"int... |
[
"test",
"constructor"
] | [
"date",
"time",
"field",
"type",
"[",
"]",
"types",
"=",
"new",
"date",
"time",
"field",
"type",
"[",
"]",
"{",
"date",
"time",
"field",
"type",
"year",
"(",
")",
",",
"date",
"time",
"field",
"type",
"weekyear",
"(",
")",
"}",
";",
"int",
"[",
"... |
[
"test",
"constructor"
] | [
"date",
"time",
"field",
"type",
"[",
"]",
"types",
"=",
"new",
"date",
"time",
"field",
"type",
"[",
"0",
"]",
";",
"int",
"[",
"]",
"values",
"=",
"new",
"int",
"[",
"0",
"]",
";",
"partial",
"test",
"=",
"new",
"partial",
"(",
"types",
",",
... |
[
"test",
"constructor"
] | [
"date",
"time",
"field",
"type",
"[",
"]",
"types",
"=",
"new",
"date",
"time",
"field",
"type",
"[",
"]",
"{",
"date",
"time",
"field",
"type",
"year",
"(",
")",
",",
"date",
"time",
"field",
"type",
"day",
"of",
"year",
"(",
")",
"}",
";",
"int... |
[
"fetch",
"metric",
"in",
"{"
] | [
"optional",
"<",
"metric",
">",
"optional",
"=",
"metrics",
"get",
"metric",
"(",
"metric",
"class",
")",
";",
"if",
"(",
"optional",
"is",
"present",
"(",
")",
")",
"{",
"metric",
"metric",
"=",
"optional",
"get",
"(",
")",
";",
"optional",
"<",
"un... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.