docstring_tokens
list | code_tokens
list |
---|---|
[
"return",
"the",
"servlet",
"path",
"for",
"the",
"given",
"request",
",",
"regarding",
"an",
"include",
"request",
"url",
"if",
"called",
"within",
"a",
"request",
"dispatcher",
"include",
"as",
"the",
"value",
"returned",
"by",
"{",
"@",
"code",
"request",
"get",
"servlet",
"path",
"(",
")",
"}",
"is",
"already",
"decoded",
"by",
"the",
"servlet",
"container",
",",
"this",
"method",
"will",
"not",
"attempt",
"to",
"decode",
"it"
]
| [
"public",
"string",
"get",
"servlet",
"path",
"(",
"http",
"servlet",
"request",
"request",
")",
"{",
"string",
"servlet",
"path",
"=",
"(",
"string",
")",
"request",
"get",
"attribute",
"(",
"web",
"utils",
"include",
"servlet",
"path",
"attribute",
")",
";",
"if",
"(",
"servlet",
"path",
"=",
"=",
"null",
")",
"{",
"servlet",
"path",
"=",
"request",
"get",
"servlet",
"path",
"(",
")",
";",
"}",
"if",
"(",
"servlet",
"path",
"length",
"(",
")",
">",
"1",
"&",
"&",
"servlet",
"path",
"ends",
"with",
"(",
"\"",
"/",
"\"",
")",
"&",
"&",
"should",
"remove",
"trailing",
"servlet",
"path",
"slash",
"(",
"request",
")",
")",
"{",
"/",
"/",
"on",
"web",
"sphere",
",",
"in",
"non",
"-",
"compliant",
"mode",
",",
"for",
"a",
"\"",
"/",
"foo",
"/",
"\"",
"case",
"that",
"would",
"be",
"\"",
"/",
"foo",
"\"",
"/",
"/",
"on",
"all",
"other",
"servlet",
"containers",
":",
"removing",
"trailing",
"slash",
",",
"proceeding",
"with",
"/",
"/",
"that",
"remaining",
"slash",
"as",
"final",
"lookup",
"path",
"servlet",
"path",
"=",
"servlet",
"path",
"substring",
"(",
"0",
",",
"servlet",
"path",
"length",
"(",
")",
"-",
"1",
")",
";",
"}",
"return",
"servlet",
"path",
";",
"}"
]
|
[
"get",
"the",
"list",
"of",
"cached",
"files",
"that",
"were",
"registered",
"for",
"distribution",
"among",
"the",
"task",
"managers"
]
| [
"public",
"list",
"<",
"tuple",
"2",
"<",
"string",
",",
"distributed",
"cache",
"distributed",
"cache",
"entry",
">",
">",
"get",
"cached",
"files",
"(",
")",
"{",
"return",
"cache",
"file",
";",
"}"
]
|
[
"subclass",
"{",
"@",
"code",
"read",
"fully",
"(",
")",
"}",
"operation",
"which",
"only",
"seeks",
"at",
"the",
"start",
"of",
"the",
"series",
"of",
"operations",
";",
"seeking",
"back",
"at",
"the",
"end",
"this",
"is",
"significantly",
"higher",
"performance",
"if",
"multiple",
"read",
"attempts",
"are",
"needed",
"to",
"fetch",
"the",
"data",
",",
"as",
"it",
"does",
"not",
"break",
"the",
"http",
"connection",
"to",
"maintain",
"thread",
"safety",
"requirements",
",",
"this",
"operation",
"is",
"synchronized",
"for",
"the",
"duration",
"of",
"the",
"sequence",
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"void",
"read",
"fully",
"(",
"long",
"position",
",",
"byte",
"[",
"]",
"buffer",
",",
"int",
"offset",
",",
"int",
"length",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"not",
"closed",
"(",
")",
";",
"validate",
"positioned",
"read",
"args",
"(",
"position",
",",
"buffer",
",",
"offset",
",",
"length",
")",
";",
"stream",
"statistics",
"read",
"fully",
"operation",
"started",
"(",
"position",
",",
"length",
")",
";",
"if",
"(",
"length",
"=",
"=",
"0",
")",
"{",
"return",
";",
"}",
"int",
"nread",
"=",
"0",
";",
"synchronized",
"(",
"this",
")",
"{",
"long",
"old",
"pos",
"=",
"get",
"pos",
"(",
")",
";",
"try",
"{",
"seek",
"(",
"position",
")",
";",
"while",
"(",
"nread",
"<",
"length",
")",
"{",
"int",
"nbytes",
"=",
"read",
"(",
"buffer",
",",
"offset",
"+",
"nread",
",",
"length",
"-",
"nread",
")",
";",
"if",
"(",
"nbytes",
"<",
"0",
")",
"{",
"throw",
"new",
"e",
"o",
"f",
"exception",
"(",
"f",
"s",
"exception",
"messages",
"eof",
"in",
"read",
"fully",
")",
";",
"}",
"nread",
"+",
"=",
"nbytes",
";",
"}",
"}",
"finally",
"{",
"seek",
"quietly",
"(",
"old",
"pos",
")",
";",
"}",
"}",
"}"
]
|
[
"validate",
"privatepublic",
"distributed",
"cache",
"files"
]
| [
"private",
"void",
"validate",
"dist",
"cache",
"files",
"(",
"list",
"<",
"long",
">",
"files",
"sizes",
"expected",
",",
"path",
"dist",
"cache",
"dir",
")",
"throws",
"file",
"not",
"found",
"exception",
",",
"i",
"o",
"exception",
"{",
"/",
"/",
"remote",
"iterator",
"<",
"located",
"file",
"status",
">",
"iter",
"=",
"file",
"status",
"[",
"]",
"statuses",
"=",
"gridmix",
"test",
"utils",
"dfs",
"list",
"status",
"(",
"dist",
"cache",
"dir",
")",
";",
"int",
"num",
"files",
"=",
"files",
"sizes",
"expected",
"size",
"(",
")",
";",
"assert",
"equals",
"(",
"\"",
"number",
"of",
"files",
"under",
"distributed",
"cache",
"dir",
"is",
"wrong",
"\"",
",",
"num",
"files",
",",
"statuses",
"length",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"files",
";",
"i",
"+",
"+",
")",
"{",
"file",
"status",
"stat",
"=",
"statuses",
"[",
"i",
"]",
";",
"assert",
"true",
"(",
"\"",
"file",
"size",
"of",
"distributed",
"cache",
"file",
"\"",
"+",
"stat",
"get",
"path",
"(",
")",
"to",
"uri",
"(",
")",
"get",
"path",
"(",
")",
"+",
"\"",
"is",
"wrong",
"\"",
",",
"files",
"sizes",
"expected",
"remove",
"(",
"stat",
"get",
"len",
"(",
")",
")",
")",
";",
"fs",
"permission",
"perm",
"=",
"stat",
"get",
"permission",
"(",
")",
";",
"assert",
"equals",
"(",
"\"",
"wrong",
"permissions",
"for",
"distributed",
"cache",
"file",
"\"",
"+",
"stat",
"get",
"path",
"(",
")",
"to",
"uri",
"(",
")",
"get",
"path",
"(",
")",
",",
"new",
"fs",
"permission",
"(",
"generate",
"dist",
"cache",
"data",
"gridmix",
"distcache",
"file",
"perm",
")",
",",
"perm",
")",
";",
"}",
"}"
]
|
[
"return",
"the",
"number",
"of",
"milliseconds",
"to",
"cache",
"loaded",
"properties",
"files"
]
| [
"protected",
"long",
"get",
"cache",
"millis",
"(",
")",
"{",
"return",
"this",
"cache",
"millis",
";",
"}"
]
|
[
"model",
"tests",
"for",
"additional",
"properties",
"number"
]
| [
"public",
"void",
"test",
"additional",
"properties",
"number",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"additional",
"properties",
"number",
"}"
]
|
[
"this",
"covers",
"a",
"case",
"where",
"if",
"the",
"last",
"service",
"to",
"stop",
"failed",
"then",
"the",
"stopped",
"callback",
"would",
"never",
"be",
"called"
]
| [
"public",
"void",
"test",
"single",
"failed",
"service",
"calls",
"stopped",
"(",
")",
"{",
"service",
"a",
"=",
"new",
"fail",
"start",
"service",
"(",
")",
";",
"service",
"manager",
"manager",
"=",
"new",
"service",
"manager",
"(",
"as",
"list",
"(",
"a",
")",
")",
";",
"recording",
"listener",
"listener",
"=",
"new",
"recording",
"listener",
"(",
")",
";",
"manager",
"add",
"listener",
"(",
"listener",
",",
"direct",
"executor",
"(",
")",
")",
";",
"try",
"{",
"manager",
"start",
"async",
"(",
")",
"await",
"healthy",
"(",
")",
";",
"fail",
"(",
")",
";",
"}",
"catch",
"(",
"illegal",
"state",
"exception",
"expected",
")",
"{",
"}",
"assert",
"true",
"(",
"listener",
"stopped",
"called",
")",
";",
"}"
]
|
[
"returns",
"the",
"decoded",
"request",
"path"
]
| [
"public",
"string",
"decoded",
"path",
"(",
")",
"{",
"return",
"decoded",
"path",
";",
"}"
]
|
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"matching",
"operations",
"to",
"throw",
"connect",
"transport",
"exceptions"
]
| [
"public",
"void",
"add",
"fail",
"to",
"send",
"no",
"connect",
"rule",
"(",
"transport",
"service",
"transport",
"service",
",",
"final",
"set",
"<",
"string",
">",
"blocked",
"actions",
")",
"{",
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"add",
"fail",
"to",
"send",
"no",
"connect",
"rule",
"(",
"transport",
"address",
",",
"blocked",
"actions",
")",
";",
"}",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"determine",
"whether",
"or",
"not",
"there",
"are",
"only",
"undefined",
"data",
"types",
"from",
"the",
"indicated",
"row",
"index",
"until",
"the",
"end",
"of",
"the",
"composite",
"there",
"must",
"be",
"at",
"least",
"one",
"undefined",
"data",
"type",
"to",
"return",
"true"
]
| [
"protected",
"boolean",
"only",
"undefineds",
"until",
"end",
"(",
"int",
"row",
"index",
")",
"{",
"if",
"(",
"!",
"is",
"showing",
"undefined",
"bytes",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"int",
"num",
"row",
"components",
"=",
"get",
"num",
"components",
"(",
")",
";",
"if",
"(",
"row",
"index",
"<",
"0",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"row",
"index",
">",
"=",
"num",
"row",
"components",
")",
"{",
"return",
"false",
";",
"/",
"/",
"beyond",
"last",
"component",
"}",
"for",
"(",
"int",
"i",
"=",
"row",
"index",
";",
"i",
"<",
"num",
"row",
"components",
";",
"i",
"+",
"+",
")",
"{",
"/",
"/",
"get",
"the",
"current",
"data",
"type",
"at",
"the",
"index",
"data",
"type",
"component",
"comp",
"=",
"get",
"component",
"(",
"i",
")",
";",
"data",
"type",
"dt",
"=",
"comp",
"get",
"data",
"type",
"(",
")",
";",
"if",
"(",
"!",
"dt",
"equals",
"(",
"data",
"type",
"default",
")",
")",
"{",
"return",
"false",
";",
"/",
"/",
"ran",
"into",
"data",
"type",
"other",
"than",
"undefined",
"byte",
"}",
"}",
"return",
"true",
";",
"}"
]
|
[
"build",
"the",
"request"
]
| [
"server",
"request",
"build",
"(",
")",
";"
]
|
[
"get",
"the",
"number",
"of",
"bytes",
"contained",
"within",
"the",
"allocation",
"byte",
"size",
"which",
"are",
"not",
"visible",
"on",
"the",
"left",
"side",
"when",
"edit",
"use",
"is",
"enabled",
"the",
"left",
"will",
"always",
"be",
"zero",
"regardless",
"of",
"visibility"
]
| [
"private",
"int",
"get",
"left",
"byte",
"chop",
"(",
")",
"{",
"if",
"(",
"edit",
"use",
"enabled",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"visible",
"area",
"width",
"=",
"=",
"0",
")",
"{",
"/",
"/",
"component",
"not",
"yet",
"contained",
"witin",
"scroll",
"pane",
"return",
"allocation",
"byte",
"size",
"-",
"1",
";",
"}",
"int",
"visible",
"start",
"=",
"visible",
"area",
"x",
";",
"return",
"(",
"visible",
"start",
"/",
"byte",
"width",
")",
";",
"}"
]
|
[
"initialize",
"private",
"data",
"for",
"test"
]
| [
"private",
"void",
"set",
"up",
"data",
"(",
")",
"throws",
"exception",
"{",
"client",
"base",
"setup",
"test",
"env",
"(",
")",
";",
"quorum",
"peer",
"config",
"set",
"standalone",
"enabled",
"(",
"false",
")",
";",
"quorum",
"peer",
"config",
"set",
"reconfig",
"enabled",
"(",
"true",
")",
";",
"peers",
"=",
"new",
"main",
"thread",
"[",
"num",
"servers",
"]",
";",
"zk",
"handles",
"=",
"new",
"zoo",
"keeper",
"[",
"num",
"servers",
"]",
";",
"zk",
"admin",
"handles",
"=",
"new",
"zoo",
"keeper",
"admin",
"[",
"num",
"servers",
"]",
";",
"client",
"ports",
"=",
"new",
"int",
"[",
"num",
"servers",
"]",
";",
"server",
"strings",
"=",
"build",
"server",
"strings",
"(",
")",
";",
"reconfig",
"servers",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"system",
"set",
"property",
"(",
"\"",
"zookeeper",
"digest",
"authentication",
"provider",
"super",
"digest",
"\"",
",",
"\"",
"super",
":",
"d",
"/",
"in",
"i",
"h",
"sb",
"7y",
"e",
"ebr",
"wz",
"8b",
"9l",
"7",
"1",
"rj",
"z",
"j",
"u",
"=",
"\"",
"/",
"*",
"password",
"is",
"'",
"test",
"'",
"*",
"/",
")",
";",
"}"
]
|
[
"test",
"serialization",
"of",
"outer",
"string",
"types"
]
| [
"public",
"void",
"fake",
"outer",
"string",
"serialize",
"test",
"(",
")",
"throws",
"api",
"exception",
"{",
"string",
"body",
"=",
"null",
";",
"completable",
"future",
"<",
"string",
">",
"response",
"=",
"api",
"fake",
"outer",
"string",
"serialize",
"(",
"body",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
]
|
[
"converts",
"the",
"given",
"number",
"of",
"the",
"current",
"units",
"into",
"terabytes"
]
| [
"public",
"long",
"to",
"terabytes",
"(",
"long",
"l",
")",
"{",
"return",
"terabytes",
"convert",
"(",
"l",
",",
"this",
")",
";",
"}"
]
|
[
"creates",
"the",
"action",
"that",
"writes",
"the",
"java",
"executable",
"stub",
"script",
"returns",
"the",
"launcher",
"script",
"artifact",
"this",
"may",
"or",
"may",
"not",
"be",
"the",
"same",
"as",
"{",
"@",
"code",
"executable",
"}",
",",
"depending",
"on",
"the",
"implementation",
"of",
"this",
"method",
"if",
"they",
"are",
"the",
"same",
",",
"then",
"this",
"artifact",
"should",
"be",
"used",
"when",
"creating",
"both",
"the",
"{",
"@",
"code",
"runfiles",
"provider",
"}",
"and",
"the",
"{",
"@",
"code",
"runfiles",
"support",
"}",
"if",
"they",
"are",
"different",
",",
"the",
"new",
"value",
"should",
"be",
"used",
"when",
"creating",
"the",
"{",
"@",
"code",
"runfiles",
"provider",
"}",
"(",
"so",
"it",
"will",
"be",
"the",
"stub",
"script",
"executed",
"by",
"\"",
"bazel",
"run",
"\"",
"for",
"example",
")",
",",
"and",
"the",
"old",
"value",
"should",
"be",
"used",
"when",
"creating",
"the",
"{",
"@",
"code",
"runfiles",
"support",
"}",
"(",
"so",
"the",
"runfiles",
"directory",
"will",
"be",
"named",
"after",
"it",
")",
"for",
"example",
"on",
"windows",
"we",
"use",
"a",
"double",
"dispatch",
"approach",
":",
"the",
"launcher",
"is",
"a",
"batch",
"file",
"(",
"and",
"is",
"created",
"and",
"returned",
"by",
"this",
"method",
")",
"which",
"shells",
"out",
"to",
"a",
"shell",
"script",
"(",
"the",
"{",
"@",
"code",
"executable",
"}",
"argument",
")",
"in",
"blaze",
",",
"this",
"method",
"considers",
"{",
"@",
"code",
"java",
"executable",
"}",
"as",
"a",
"substitution",
"that",
"can",
"be",
"directly",
"used",
"to",
"replace",
"%",
"javabin",
"%",
"in",
"stub",
"script",
",",
"but",
"in",
"bazel",
"this",
"method",
"considers",
"{",
"@",
"code",
"java",
"executable",
"}",
"as",
"a",
"file",
"path",
"for",
"the",
"jvm",
"binary",
"(",
"java",
")"
]
| [
"artifact",
"create",
"stub",
"action",
"(",
"rule",
"context",
"rule",
"context",
",",
"java",
"common",
"java",
"common",
",",
"list",
"<",
"string",
">",
"jvm",
"flags",
",",
"artifact",
"executable",
",",
"string",
"java",
"start",
"class",
",",
"string",
"java",
"executable",
")",
"throws",
"interrupted",
"exception",
";"
]
|
[
"gets",
"a",
"handle",
"to",
"the",
"system",
"'",
"s",
"keyvalue",
"map",
"state",
"this",
"state",
"is",
"similar",
"to",
"the",
"state",
"accessed",
"via",
"{",
"@",
"link",
"#",
"get",
"state",
"(",
"value",
"state",
"descriptor",
")",
"}",
",",
"but",
"is",
"optimized",
"for",
"state",
"that",
"is",
"composed",
"of",
"user",
"-",
"defined",
"key",
"-",
"value",
"pairs",
"this",
"state",
"is",
"only",
"accessible",
"if",
"the",
"function",
"is",
"executed",
"on",
"a",
"keyed",
"stream",
"{",
"@",
"code",
"data",
"stream",
"<",
"my",
"type",
">",
"stream",
"=",
";",
"keyed",
"stream",
"<",
"my",
"type",
">",
"keyed",
"stream",
"=",
"stream",
"key",
"by",
"(",
"\"",
"id",
"\"",
")",
";",
"keyed",
"stream",
"map",
"(",
"new",
"rich",
"map",
"function",
"<",
"my",
"type",
",",
"list",
"<",
"my",
"type",
">",
">",
"(",
")",
"{",
"private",
"map",
"state",
"<",
"my",
"type",
",",
"long",
">",
"state",
";",
"public",
"void",
"open",
"(",
"configuration",
"cfg",
")",
"{",
"state",
"=",
"get",
"runtime",
"context",
"(",
")",
"get",
"map",
"state",
"(",
"new",
"map",
"state",
"descriptor",
"<",
">",
"(",
"\"",
"sum",
"\"",
",",
"my",
"type",
"class",
",",
"long",
"class",
")",
")",
";",
"}",
"public",
"tuple",
"2",
"<",
"my",
"type",
",",
"long",
">",
"map",
"(",
"my",
"type",
"value",
")",
"{",
"return",
"new",
"tuple",
"2",
"<",
">",
"(",
"value",
",",
"state",
"get",
"(",
"value",
")",
")",
";",
"}",
"}",
")",
";",
"}"
]
| [
"<",
"uk",
",",
"uv",
">",
"map",
"state",
"<",
"uk",
",",
"uv",
">",
"get",
"map",
"state",
"(",
"map",
"state",
"descriptor",
"<",
"uk",
",",
"uv",
">",
"state",
"properties",
")",
";"
]
|
[
"when",
"enabled",
",",
"the",
"values",
"will",
"be",
"clipped",
"to",
"content",
"rect",
",",
"otherwise",
"they",
"can",
"bleed",
"outside",
"the",
"content",
"rect"
]
| [
"public",
"void",
"set",
"clip",
"values",
"to",
"content",
"(",
"boolean",
"enabled",
")",
"{",
"m",
"clip",
"values",
"to",
"content",
"=",
"enabled",
";",
"}"
]
|
[
"writes",
"any",
"error",
"messages",
"from",
"the",
"task",
"to",
"the",
"log"
]
| [
"public",
"void",
"log",
"errors",
"(",
")",
"{",
"if",
"(",
"errors",
"is",
"empty",
"(",
")",
")",
"{",
"return",
";",
"}",
"string",
"builder",
"buf",
"=",
"new",
"string",
"builder",
"(",
"get",
"error",
"header",
"(",
")",
")",
";",
"buf",
"append",
"(",
"\"",
"\\",
"n",
"\"",
")",
";",
"for",
"(",
"string",
"error",
":",
"errors",
")",
"{",
"buf",
"append",
"(",
"\"",
"\\",
"t",
"\"",
")",
"append",
"(",
"error",
")",
"append",
"(",
"\"",
"\\",
"n",
"\"",
")",
";",
"}",
"msg",
"error",
"(",
"this",
",",
"buf",
"to",
"string",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"adapter",
"position",
"of",
"the",
"first",
"visible",
"view",
"this",
"position",
"does",
"not",
"include",
"adapter",
"changes",
"that",
"were",
"dispatched",
"after",
"the",
"last",
"layout",
"pass"
]
| [
"public",
"int",
"find",
"first",
"visible",
"item",
"position",
"(",
")",
"{",
"final",
"view",
"child",
"=",
"find",
"one",
"visible",
"child",
"(",
"0",
",",
"layout",
"manager",
"get",
"child",
"count",
"(",
")",
",",
"false",
",",
"true",
")",
";",
"return",
"child",
"=",
"=",
"null",
"?",
"recycler",
"view",
"no",
"position",
":",
"recycler",
"view",
"get",
"child",
"adapter",
"position",
"(",
"child",
")",
";",
"}"
]
|
[
"get",
"output",
"file",
"name",
"for",
"which",
"dependencies",
"are",
"included",
"in",
"this",
"dependency",
"set"
]
| [
"public",
"string",
"get",
"output",
"file",
"name",
"(",
")",
"{",
"return",
"output",
"file",
"name",
";",
"}"
]
|
[
"adds",
"a",
"listing",
"field",
"to",
"the",
"given",
"model"
]
| [
"private",
"void",
"add",
"field",
"(",
"field",
"format",
"model",
"model",
",",
"string",
"field",
"name",
",",
"int",
"column",
")",
"{",
"field",
"factory",
"[",
"]",
"all",
"factories",
"=",
"model",
"get",
"all",
"factories",
"(",
")",
";",
"for",
"(",
"field",
"factory",
"field",
"factory",
":",
"all",
"factories",
")",
"{",
"if",
"(",
"field",
"factory",
"get",
"field",
"name",
"(",
")",
"equals",
"(",
"field",
"name",
")",
")",
"{",
"model",
"add",
"factory",
"(",
"field",
"factory",
",",
"0",
",",
"column",
")",
";",
"}",
"}",
"}"
]
|
[
"create",
"a",
"shell",
"command",
"executor",
"object",
"for",
"fetch",
"a",
"user",
"'",
"s",
"group",
"id",
"list"
]
| [
"protected",
"shell",
"command",
"executor",
"create",
"group",
"i",
"d",
"executor",
"(",
"string",
"user",
"name",
")",
"{",
"return",
"new",
"shell",
"command",
"executor",
"(",
"get",
"groups",
"i",
"d",
"for",
"user",
"command",
"(",
"user",
"name",
")",
",",
"null",
",",
"null",
",",
"timeout",
")",
";",
"}"
]
|
[
"get",
"the",
"last",
"child",
"name",
"from",
"a",
"queue",
"name"
]
| [
"private",
"string",
"get",
"last",
"child",
"for",
"queue",
"(",
"string",
"queue",
")",
"{",
"return",
"queue",
"substring",
"(",
"queue",
"last",
"index",
"of",
"(",
"'",
"'",
")",
"+",
"1",
")",
";",
"}"
]
|
[
"the",
"value",
"assigned",
"to",
"this",
"element",
"<",
"code",
">",
"optional",
"aapt",
"pb",
"item",
"item",
"=",
"3",
";",
"<",
"code",
">"
]
| [
"com",
"android",
"aapt",
"resources",
"item",
"get",
"item",
"(",
")",
";"
]
|
[
"gets",
"whether",
"the",
"applications",
"should",
"be",
"killed",
"or",
"moved",
"to",
"the",
"parent",
"queue",
"when",
"the",
"{",
"@",
"link",
"reservation",
"definition",
"}",
"expires"
]
| [
"public",
"boolean",
"get",
"move",
"on",
"expiry",
"(",
"string",
"queue",
")",
"{",
"return",
"default",
"reservation",
"move",
"on",
"expiry",
";",
"}"
]
|
[
"get",
"prefix",
"integer"
]
| [
"public",
"integer",
"get",
"prefix",
"integer",
"(",
")",
"{",
"return",
"prefix",
"integer",
";",
"}"
]
|
[
"end",
"building",
"the",
"model"
]
| [
"public",
"model",
"end",
"(",
")",
"{",
"if",
"(",
"model",
"=",
"=",
"null",
")",
"throw",
"new",
"gdx",
"runtime",
"exception",
"(",
"\"",
"call",
"begin",
"(",
")",
"first",
"\"",
")",
";",
"final",
"model",
"result",
"=",
"model",
";",
"endnode",
"(",
")",
";",
"model",
"=",
"null",
";",
"for",
"(",
"final",
"mesh",
"builder",
"mb",
":",
"builders",
")",
"mb",
"end",
"(",
")",
";",
"builders",
"clear",
"(",
")",
";",
"rebuild",
"references",
"(",
"result",
")",
";",
"return",
"result",
";",
"}"
]
|
[
"returns",
"the",
"exception",
"that",
"caused",
"the",
"job",
"to",
"fail",
"this",
"is",
"the",
"first",
"root",
"exception",
"that",
"was",
"not",
"recoverable",
"and",
"triggered",
"job",
"failure"
]
| [
"error",
"info",
"get",
"failure",
"info",
"(",
")",
";"
]
|
[
"normalize",
"the",
"supplied",
"url"
]
| [
"public",
"static",
"string",
"to",
"normalized",
"icon",
"url",
"(",
"string",
"url",
")",
"{",
"if",
"(",
"url",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"final",
"string",
"original",
"url",
"=",
"url",
";",
"if",
"(",
"url",
"starts",
"with",
"(",
"\"",
"/",
"\"",
")",
")",
"{",
"url",
"=",
"url",
"substring",
"(",
"1",
")",
";",
"}",
"if",
"(",
"url",
"starts",
"with",
"(",
"\"",
"images",
"/",
"\"",
")",
")",
"{",
"return",
"url",
"substring",
"(",
"\"",
"images",
"/",
"\"",
"length",
"(",
")",
")",
";",
"}",
"if",
"(",
"url",
"starts",
"with",
"(",
"\"",
"plugin",
"/",
"\"",
")",
")",
"{",
"return",
"url",
"substring",
"(",
"\"",
"plugin",
"/",
"\"",
"length",
"(",
")",
")",
";",
"}",
"return",
"original",
"url",
";",
"}"
]
|
[
"overrides",
"the",
"cached",
"get",
"block",
"pool",
"id",
"(",
")",
"with",
"an",
"update",
"the",
"state",
"will",
"be",
"reset",
"when",
"the",
"cache",
"is",
"flushed"
]
| [
"public",
"void",
"override",
"state",
"(",
"federation",
"namenode",
"service",
"state",
"new",
"state",
")",
"{",
"this",
"set",
"state",
"(",
"new",
"state",
")",
";",
"}"
]
|
[
"escapes",
"the",
"given",
"unicode",
"code",
"point",
"in",
"utf",
"-",
"8"
]
| [
"protected",
"char",
"[",
"]",
"escape",
"(",
"int",
"cp",
")",
"{",
"/",
"/",
"we",
"should",
"never",
"get",
"negative",
"values",
"here",
"but",
"if",
"we",
"do",
"it",
"will",
"throw",
"an",
"/",
"/",
"index",
"out",
"of",
"bounds",
"exception",
",",
"so",
"at",
"least",
"it",
"will",
"get",
"spotted",
"if",
"(",
"cp",
"<",
"safe",
"octets",
"length",
"&",
"&",
"safe",
"octets",
"[",
"cp",
"]",
")",
"{",
"return",
"null",
";",
"}",
"else",
"if",
"(",
"cp",
"=",
"=",
"'",
"'",
"&",
"&",
"plus",
"for",
"space",
")",
"{",
"return",
"plus",
"sign",
";",
"}",
"else",
"if",
"(",
"cp",
"<",
"=",
"0x",
"7",
"f",
")",
"{",
"/",
"/",
"single",
"byte",
"utf",
"-",
"8",
"characters",
"/",
"/",
"start",
"with",
"\"",
"%",
"-",
"-",
"\"",
"and",
"fill",
"in",
"the",
"blanks",
"char",
"[",
"]",
"dest",
"=",
"new",
"char",
"[",
"3",
"]",
";",
"dest",
"[",
"0",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"2",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"dest",
"[",
"1",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
">",
">",
">",
"4",
"]",
";",
"return",
"dest",
";",
"}",
"else",
"if",
"(",
"cp",
"<",
"=",
"0x",
"7ff",
")",
"{",
"/",
"/",
"two",
"byte",
"utf",
"-",
"8",
"characters",
"[",
"cp",
">",
"=",
"0x",
"8",
"0",
"&",
"&",
"cp",
"<",
"=",
"0x",
"7ff",
"]",
"/",
"/",
"start",
"with",
"\"",
"%",
"-",
"-",
"%",
"-",
"-",
"\"",
"and",
"fill",
"in",
"the",
"blanks",
"char",
"[",
"]",
"dest",
"=",
"new",
"char",
"[",
"6",
"]",
";",
"dest",
"[",
"0",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"3",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"5",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"4",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"8",
"|",
"(",
"cp",
"&",
"0x",
"3",
")",
"]",
";",
"cp",
">",
">",
">",
"=",
"2",
";",
"dest",
"[",
"2",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"1",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"c",
"|",
"cp",
"]",
";",
"return",
"dest",
";",
"}",
"else",
"if",
"(",
"cp",
"<",
"=",
"0xffff",
")",
"{",
"/",
"/",
"three",
"byte",
"utf",
"-",
"8",
"characters",
"[",
"cp",
">",
"=",
"0x",
"8",
"0",
"0",
"&",
"&",
"cp",
"<",
"=",
"0xffff",
"]",
"/",
"/",
"start",
"with",
"\"",
"%",
"e",
"-",
"%",
"-",
"-",
"%",
"-",
"-",
"\"",
"and",
"fill",
"in",
"the",
"blanks",
"char",
"[",
"]",
"dest",
"=",
"new",
"char",
"[",
"9",
"]",
";",
"dest",
"[",
"0",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"1",
"]",
"=",
"'",
"e",
"'",
";",
"dest",
"[",
"3",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"6",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"8",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"7",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"8",
"|",
"(",
"cp",
"&",
"0x",
"3",
")",
"]",
";",
"cp",
">",
">",
">",
"=",
"2",
";",
"dest",
"[",
"5",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"4",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"8",
"|",
"(",
"cp",
"&",
"0x",
"3",
")",
"]",
";",
"cp",
">",
">",
">",
"=",
"2",
";",
"dest",
"[",
"2",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"]",
";",
"return",
"dest",
";",
"}",
"else",
"if",
"(",
"cp",
"<",
"=",
"0x",
"1",
"0ffff",
")",
"{",
"char",
"[",
"]",
"dest",
"=",
"new",
"char",
"[",
"12",
"]",
";",
"/",
"/",
"four",
"byte",
"utf",
"-",
"8",
"characters",
"[",
"cp",
">",
"=",
"0xffff",
"&",
"&",
"cp",
"<",
"=",
"0x",
"1",
"0ffff",
"]",
"/",
"/",
"start",
"with",
"\"",
"%",
"f",
"-",
"%",
"-",
"-",
"%",
"-",
"-",
"%",
"-",
"-",
"\"",
"and",
"fill",
"in",
"the",
"blanks",
"dest",
"[",
"0",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"1",
"]",
"=",
"'",
"f",
"'",
";",
"dest",
"[",
"3",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"6",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"9",
"]",
"=",
"'",
"%",
"'",
";",
"dest",
"[",
"11",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"10",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"8",
"|",
"(",
"cp",
"&",
"0x",
"3",
")",
"]",
";",
"cp",
">",
">",
">",
"=",
"2",
";",
"dest",
"[",
"8",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"7",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"8",
"|",
"(",
"cp",
"&",
"0x",
"3",
")",
"]",
";",
"cp",
">",
">",
">",
"=",
"2",
";",
"dest",
"[",
"5",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"f",
"]",
";",
"cp",
">",
">",
">",
"=",
"4",
";",
"dest",
"[",
"4",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"0x",
"8",
"|",
"(",
"cp",
"&",
"0x",
"3",
")",
"]",
";",
"cp",
">",
">",
">",
"=",
"2",
";",
"dest",
"[",
"2",
"]",
"=",
"upper",
"hex",
"digits",
"[",
"cp",
"&",
"0x",
"7",
"]",
";",
"return",
"dest",
";",
"}",
"else",
"{",
"/",
"/",
"if",
"this",
"ever",
"happens",
"it",
"is",
"due",
"to",
"bug",
"in",
"unicode",
"escaper",
",",
"not",
"bad",
"input",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"unicode",
"character",
"value",
"\"",
"+",
"cp",
")",
";",
"}",
"}"
]
|
[
"the",
"largest",
"integer",
"allowed",
"for",
"this",
"xml",
"attribute",
"only",
"makes",
"sense",
"if",
"the",
"format",
"includes",
"format",
"flags",
":",
":",
"integer",
"<",
"code",
">",
"optional",
"int",
"3",
"2",
"max",
"int",
"=",
"3",
";",
"<",
"code",
">"
]
| [
"public",
"int",
"get",
"max",
"int",
"(",
")",
"{",
"return",
"max",
"int",
";",
"}"
]
|
[
"ensure",
"exception",
"if",
"we",
"bind",
"to",
"multicast",
"ipv",
"4",
"address"
]
| [
"public",
"void",
"test",
"bind",
"multicast",
"v",
"4",
"(",
")",
"throws",
"exception",
"{",
"network",
"service",
"service",
"=",
"new",
"network",
"service",
"(",
"collections",
"empty",
"list",
"(",
")",
")",
";",
"try",
"{",
"service",
"resolve",
"bind",
"host",
"addresses",
"(",
"new",
"string",
"[",
"]",
"{",
"\"",
"239",
"1",
"1",
"1",
"\"",
"}",
")",
";",
"fail",
"(",
"\"",
"should",
"have",
"hit",
"exception",
"\"",
")",
";",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"e",
")",
"{",
"assert",
"true",
"(",
"e",
"get",
"message",
"(",
")",
"contains",
"(",
"\"",
"invalid",
":",
"multicast",
"\"",
")",
")",
";",
"}",
"}"
]
|
[
"returns",
"the",
"greatest",
"common",
"divisor",
"of",
"{",
"@",
"code",
"a",
",",
"b",
"}",
"returns",
"{",
"@",
"code",
"0",
"}",
"if",
"{",
"@",
"code",
"a",
"=",
"=",
"0",
"&",
"&",
"b",
"=",
"=",
"0",
"}"
]
| [
"public",
"static",
"long",
"gcd",
"(",
"long",
"a",
",",
"long",
"b",
")",
"{",
"/",
"*",
"*",
"the",
"reason",
"we",
"require",
"both",
"arguments",
"to",
"be",
">",
"=",
"0",
"is",
"because",
"otherwise",
",",
"what",
"do",
"you",
"return",
"on",
"*",
"gcd",
"(",
"0",
",",
"long",
"min",
"value",
")",
"?",
"big",
"integer",
"gcd",
"would",
"return",
"positive",
"2",
"^",
"63",
",",
"but",
"positive",
"2",
"^",
"63",
"isn",
"'",
"t",
"an",
"*",
"int",
"*",
"/",
"check",
"non",
"negative",
"(",
"\"",
"a",
"\"",
",",
"a",
")",
";",
"check",
"non",
"negative",
"(",
"\"",
"b",
"\"",
",",
"b",
")",
";",
"if",
"(",
"a",
"=",
"=",
"0",
")",
"{",
"/",
"/",
"0",
"%",
"b",
"=",
"=",
"0",
",",
"so",
"b",
"divides",
"a",
",",
"but",
"the",
"converse",
"doesn",
"'",
"t",
"hold",
"/",
"/",
"big",
"integer",
"gcd",
"is",
"consistent",
"with",
"this",
"decision",
"return",
"b",
";",
"}",
"else",
"if",
"(",
"b",
"=",
"=",
"0",
")",
"{",
"return",
"a",
";",
"/",
"/",
"similar",
"logic",
"}",
"/",
"*",
"*",
"uses",
"the",
"binary",
"gcd",
"algorithm",
";",
"see",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"binary",
"gcd",
"algorithm",
"this",
"is",
"*",
">",
"60",
"%",
"faster",
"than",
"the",
"euclidean",
"algorithm",
"in",
"benchmarks",
"*",
"/",
"int",
"a",
"twos",
"=",
"long",
"number",
"of",
"trailing",
"zeros",
"(",
"a",
")",
";",
"a",
">",
">",
"=",
"a",
"twos",
";",
"/",
"/",
"divide",
"out",
"all",
"2s",
"int",
"b",
"twos",
"=",
"long",
"number",
"of",
"trailing",
"zeros",
"(",
"b",
")",
";",
"b",
">",
">",
"=",
"b",
"twos",
";",
"/",
"/",
"divide",
"out",
"all",
"2s",
"while",
"(",
"a",
"!",
"=",
"b",
")",
"{",
"/",
"/",
"both",
"a",
",",
"b",
"are",
"odd",
"/",
"/",
"the",
"key",
"to",
"the",
"binary",
"gcd",
"algorithm",
"is",
"as",
"follows",
":",
"/",
"/",
"both",
"a",
"and",
"b",
"are",
"odd",
"assume",
"a",
">",
"b",
";",
"then",
"gcd",
"(",
"a",
"-",
"b",
",",
"b",
")",
"=",
"gcd",
"(",
"a",
",",
"b",
")",
"/",
"/",
"but",
"in",
"gcd",
"(",
"a",
"-",
"b",
",",
"b",
")",
",",
"a",
"-",
"b",
"is",
"even",
"and",
"b",
"is",
"odd",
",",
"so",
"we",
"can",
"divide",
"out",
"powers",
"of",
"two",
"/",
"/",
"we",
"bend",
"over",
"backwards",
"to",
"avoid",
"branching",
",",
"adapting",
"a",
"technique",
"from",
"/",
"/",
"http",
":",
"/",
"/",
"graphics",
"stanford",
"edu",
"/",
"~",
"seander",
"/",
"bithacks",
"html",
"#",
"integer",
"min",
"or",
"max",
"long",
"delta",
"=",
"a",
"-",
"b",
";",
"/",
"/",
"can",
"'",
"t",
"overflow",
",",
"since",
"a",
"and",
"b",
"are",
"nonnegative",
"long",
"min",
"delta",
"or",
"zero",
"=",
"delta",
"&",
"(",
"delta",
">",
">",
"(",
"long",
"size",
"-",
"1",
")",
")",
";",
"/",
"/",
"equivalent",
"to",
"math",
"min",
"(",
"delta",
",",
"0",
")",
"a",
"=",
"delta",
"-",
"min",
"delta",
"or",
"zero",
"-",
"min",
"delta",
"or",
"zero",
";",
"/",
"/",
"sets",
"a",
"to",
"math",
"abs",
"(",
"a",
"-",
"b",
")",
"/",
"/",
"a",
"is",
"now",
"nonnegative",
"and",
"even",
"b",
"+",
"=",
"min",
"delta",
"or",
"zero",
";",
"/",
"/",
"sets",
"b",
"to",
"min",
"(",
"old",
"a",
",",
"b",
")",
"a",
">",
">",
"=",
"long",
"number",
"of",
"trailing",
"zeros",
"(",
"a",
")",
";",
"/",
"/",
"divide",
"out",
"all",
"2s",
",",
"since",
"2",
"doesn",
"'",
"t",
"divide",
"b",
"}",
"return",
"a",
"<",
"<",
"min",
"(",
"a",
"twos",
",",
"b",
"twos",
")",
";",
"}"
]
|
[
"replaces",
"the",
"instruction",
"at",
"a",
"given",
"offset",
"by",
"a",
"static",
"invocation"
]
| [
"private",
"void",
"replace",
"by",
"static",
"invocation",
"(",
"clazz",
"clazz",
",",
"int",
"offset",
",",
"constant",
"instruction",
"constant",
"instruction",
")",
"{",
"/",
"/",
"remember",
"the",
"replacement",
"instruction",
"instruction",
"replacement",
"instruction",
"=",
"new",
"constant",
"instruction",
"(",
"instruction",
"constants",
"op",
"invokestatic",
",",
"constant",
"instruction",
"constant",
"index",
")",
";",
"if",
"(",
"debug",
")",
"system",
"out",
"println",
"(",
"\"",
"replacing",
"by",
"static",
"invocation",
"\"",
"+",
"constant",
"instruction",
"to",
"string",
"(",
"offset",
")",
"+",
"\"",
"-",
">",
"\"",
"+",
"replacement",
"instruction",
"to",
"string",
"(",
")",
")",
";",
"code",
"attribute",
"editor",
"replace",
"instruction",
"(",
"offset",
",",
"replacement",
"instruction",
")",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"return",
"'"
]
| [
"public",
"void",
"return",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"return",
"}"
]
|
[
"sets",
"whether",
"to",
"request",
"term",
"payloads"
]
| [
"public",
"void",
"set",
"payloads",
"(",
"boolean",
"request",
"payloads",
")",
"{",
"this",
"request",
"payloads",
"=",
"request",
"payloads",
";",
"}"
]
|
[
"remove",
"the",
"given",
"file",
"upload",
"from",
"the",
"list",
"of",
"file",
"uploads",
"to",
"clean"
]
| [
"void",
"remove",
"http",
"data",
"from",
"clean",
"(",
"interface",
"http",
"data",
"data",
")",
";"
]
|
[
"get",
"the",
"v0",
"indexed",
"-",
"file",
"-",
"system",
"instance",
"file",
"system",
"storage",
"should",
"first",
"be",
"pre",
"-",
"qualified",
"as",
"an",
"having",
"indexed",
"storage",
"using",
"the",
"{",
"@",
"link",
"#",
"is",
"indexed",
"(",
"string",
")",
"}",
"method",
"and",
"have",
"the",
"correct",
"version"
]
| [
"static",
"indexed",
"v",
"1",
"local",
"file",
"system",
"get",
"file",
"system",
"(",
"string",
"root",
"path",
",",
"boolean",
"is",
"versioned",
",",
"boolean",
"read",
"only",
",",
"boolean",
"enable",
"asyncronous",
"dispatching",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"return",
"new",
"indexed",
"v",
"1",
"local",
"file",
"system",
"(",
"root",
"path",
",",
"is",
"versioned",
",",
"read",
"only",
",",
"enable",
"asyncronous",
"dispatching",
",",
"false",
")",
";",
"}",
"catch",
"(",
"index",
"read",
"exception",
"e",
")",
"{",
"if",
"(",
"read",
"only",
")",
"{",
"throw",
"e",
";",
"/",
"/",
"don",
"'",
"t",
"attempt",
"repair",
"if",
"read",
"-",
"only",
"}",
"msg",
"error",
"(",
"local",
"file",
"system",
"class",
",",
"\"",
"indexed",
"filesystem",
"error",
":",
"\"",
"+",
"e",
"get",
"message",
"(",
")",
")",
";",
"msg",
"info",
"(",
"local",
"file",
"system",
"class",
",",
"\"",
"attempting",
"index",
"rebuild",
":",
"\"",
"+",
"root",
"path",
")",
";",
"if",
"(",
"!",
"indexed",
"v",
"1",
"local",
"file",
"system",
"rebuild",
"(",
"new",
"file",
"(",
"root",
"path",
")",
")",
")",
"{",
"throw",
"e",
";",
"}",
"/",
"/",
"retry",
"after",
"index",
"rebuild",
"return",
"new",
"indexed",
"v",
"1",
"local",
"file",
"system",
"(",
"root",
"path",
",",
"is",
"versioned",
",",
"read",
"only",
",",
"enable",
"asyncronous",
"dispatching",
",",
"false",
")",
";",
"}",
"}"
]
|
[
"returns",
"a",
"reader",
"for",
"{",
"@",
"link",
"state",
"meta",
"info",
"snapshot",
"}",
"with",
"the",
"requested",
"state",
"type",
"and",
"version",
"number"
]
| [
"static",
"state",
"meta",
"info",
"reader",
"get",
"reader",
"(",
"int",
"read",
"version",
")",
"{",
"switch",
"(",
"read",
"version",
")",
"{",
"case",
"current",
"state",
"meta",
"info",
"snapshot",
"version",
":",
"return",
"current",
"reader",
"impl",
"instance",
";",
"case",
"5",
":",
"return",
"v",
"5",
"reader",
"impl",
"instance",
";",
"default",
":",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"unsupported",
"read",
"version",
"for",
"state",
"meta",
"info",
":",
"\"",
"+",
"read",
"version",
")",
";",
"}",
"}"
]
|
[
"sets",
"the",
"origin",
"point",
"to",
"which",
"all",
"of",
"the",
"polygon",
"'",
"s",
"local",
"vertices",
"are",
"relative",
"to"
]
| [
"public",
"void",
"set",
"origin",
"(",
"float",
"origin",
"x",
",",
"float",
"origin",
"y",
")",
"{",
"this",
"origin",
"x",
"=",
"origin",
"x",
";",
"this",
"origin",
"y",
"=",
"origin",
"y",
";",
"dirty",
"=",
"true",
";",
"}"
]
|
[
"checks",
"whether",
"{",
"@",
"link",
"data",
"node",
"#",
"check",
"disk",
"error",
"async",
"(",
")",
"}",
"is",
"being",
"called",
"or",
"not",
"before",
"refactoring",
"the",
"code",
"the",
"above",
"function",
"was",
"not",
"getting",
"called"
]
| [
"public",
"void",
"testcheck",
"disk",
"error",
"(",
")",
"throws",
"exception",
"{",
"if",
"(",
"cluster",
"get",
"data",
"nodes",
"(",
")",
"size",
"(",
")",
"<",
"=",
"0",
")",
"{",
"cluster",
"start",
"data",
"nodes",
"(",
"conf",
",",
"1",
",",
"true",
",",
"null",
",",
"null",
")",
";",
"cluster",
"wait",
"active",
"(",
")",
";",
"}",
"data",
"node",
"data",
"node",
"=",
"cluster",
"get",
"data",
"nodes",
"(",
")",
"get",
"(",
"0",
")",
";",
"/",
"/",
"checking",
"for",
"disk",
"error",
"final",
"long",
"last",
"check",
"timestamp",
"=",
"data",
"node",
"get",
"last",
"disk",
"error",
"check",
"(",
")",
";",
"data",
"node",
"check",
"disk",
"error",
"(",
")",
";",
"generic",
"test",
"utils",
"wait",
"for",
"(",
"new",
"supplier",
"<",
"boolean",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"get",
"(",
")",
"{",
"return",
"data",
"node",
"get",
"last",
"disk",
"error",
"check",
"(",
")",
">",
"last",
"check",
"timestamp",
";",
"}",
"}",
",",
"100",
",",
"60000",
")",
";",
"}"
]
|
[
"inserts",
"a",
"new",
"node",
"between",
"this",
"node",
"and",
"its",
"parent",
",",
"and",
"returns",
"that",
"node",
"newly",
"inserted",
"'",
"middle",
"'",
"node",
"will",
"have",
"this",
"node",
"as",
"its",
"sole",
"child"
]
| [
"private",
"child",
"split",
"(",
"final",
"string",
"prefix",
")",
"{",
"string",
"suffix",
"=",
"node",
"get",
"label",
"(",
")",
"substring",
"(",
"prefix",
"length",
"(",
")",
")",
";",
"child",
"middle",
"=",
"new",
"child",
"(",
"node",
"split",
"(",
"prefix",
")",
")",
";",
"middle",
"make",
"writable",
"(",
")",
";",
"middle",
"children",
"put",
"(",
"suffix",
",",
"this",
")",
";",
"return",
"middle",
";",
"}"
]
|
[
"set",
"the",
"entity",
"id"
]
| [
"public",
"void",
"set",
"entity",
"id",
"(",
"string",
"entity",
"id",
")",
"{",
"this",
"entity",
"id",
"=",
"entity",
"id",
";",
"}"
]
|
[
"projects",
"a",
"{",
"@",
"link",
"tuple",
"}",
"{",
"@",
"link",
"data",
"stream",
"}",
"to",
"the",
"previously",
"selected",
"fields"
]
| [
"public",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
">",
"single",
"output",
"stream",
"operator",
"<",
"tuple",
"1",
"7",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
">",
">",
"project",
"tuple",
"1",
"7",
"(",
")",
"{",
"type",
"information",
"<",
"?",
">",
"[",
"]",
"f",
"types",
"=",
"extract",
"field",
"types",
"(",
"field",
"indexes",
",",
"data",
"stream",
"get",
"type",
"(",
")",
")",
";",
"tuple",
"type",
"info",
"<",
"tuple",
"1",
"7",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
">",
">",
"t",
"type",
"=",
"new",
"tuple",
"type",
"info",
"<",
"tuple",
"1",
"7",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
">",
">",
"(",
"f",
"types",
")",
";",
"return",
"data",
"stream",
"transform",
"(",
"\"",
"projection",
"\"",
",",
"t",
"type",
",",
"new",
"stream",
"project",
"<",
"in",
",",
"tuple",
"1",
"7",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
">",
">",
"(",
"field",
"indexes",
",",
"t",
"type",
"create",
"serializer",
"(",
"data",
"stream",
"get",
"execution",
"config",
"(",
")",
")",
")",
")",
";",
"}"
]
|
[
"manipulate",
"this",
"response",
"'",
"s",
"cookies",
"with",
"the",
"given",
"consumer",
"the",
"cookies",
"provided",
"to",
"the",
"consumer",
"are",
"\"",
"live",
"\"",
",",
"so",
"that",
"the",
"consumer",
"can",
"be",
"used",
"to",
"{",
"@",
"linkplain",
"multi",
"value",
"map",
"#",
"set",
"(",
"object",
",",
"object",
")",
"overwrite",
"}",
"existing",
"cookies",
",",
"{",
"@",
"linkplain",
"multi",
"value",
"map",
"#",
"remove",
"(",
"object",
")",
"remove",
"}",
"cookies",
",",
"or",
"use",
"any",
"of",
"the",
"other",
"{",
"@",
"link",
"multi",
"value",
"map",
"}",
"methods"
]
| [
"builder",
"<",
"t",
">",
"cookies",
"(",
"consumer",
"<",
"multi",
"value",
"map",
"<",
"string",
",",
"cookie",
">",
">",
"cookies",
"consumer",
")",
";"
]
|
[
"create",
"a",
"new",
"set",
"of",
"test",
"entries",
"with",
"the",
"expected",
"result"
]
| [
"public",
"abstract",
"stream",
"<",
"arguments",
">",
"expression",
"provider",
"(",
")",
";"
]
|
[
"return",
"a",
"future",
"containing",
"the",
"a",
"c",
"ls",
"requested"
]
| [
"public",
"kafka",
"future",
"<",
"collection",
"<",
"acl",
"binding",
">",
">",
"values",
"(",
")",
"{",
"return",
"future",
";",
"}"
]
|
[
"get",
"map",
"map",
"of",
"string"
]
| [
"public",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"string",
">",
">",
"get",
"map",
"map",
"of",
"string",
"(",
")",
"{",
"return",
"map",
"map",
"of",
"string",
";",
"}"
]
|
[
"updates",
"a",
"pet",
"in",
"the",
"store",
"with",
"form",
"data"
]
| [
"public",
"single",
"<",
"void",
">",
"rx",
"update",
"pet",
"with",
"form",
"(",
"long",
"pet",
"id",
",",
"string",
"name",
",",
"string",
"status",
")",
"{",
"return",
"single",
"create",
"(",
"new",
"io",
"vertx",
"rx",
"java",
"single",
"on",
"subscribe",
"adapter",
"<",
">",
"(",
"fut",
"-",
">",
"delegate",
"update",
"pet",
"with",
"form",
"(",
"pet",
"id",
",",
"name",
",",
"status",
",",
"fut",
")",
")",
")",
";",
"}"
]
|
[
"it",
"is",
"possible",
"to",
"search",
"by",
"token",
"count"
]
| [
"public",
"void",
"test",
"search",
"by",
"token",
"count",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"init",
"(",
")",
";",
"assert",
"search",
"returns",
"(",
"search",
"by",
"numeric",
"range",
"(",
"4",
",",
"4",
")",
"get",
"(",
")",
",",
"\"",
"single",
"\"",
")",
";",
"assert",
"search",
"returns",
"(",
"search",
"by",
"numeric",
"range",
"(",
"10",
",",
"10",
")",
"get",
"(",
")",
",",
"\"",
"multibulk",
"2",
"\"",
")",
";",
"assert",
"search",
"returns",
"(",
"search",
"by",
"numeric",
"range",
"(",
"7",
",",
"10",
")",
"get",
"(",
")",
",",
"\"",
"multi",
"\"",
",",
"\"",
"multibulk",
"1",
"\"",
",",
"\"",
"multibulk",
"2",
"\"",
")",
";",
"assert",
"search",
"returns",
"(",
"search",
"by",
"numeric",
"range",
"(",
"1",
",",
"10",
")",
"get",
"(",
")",
",",
"\"",
"single",
"\"",
",",
"\"",
"bulk",
"1",
"\"",
",",
"\"",
"bulk",
"2",
"\"",
",",
"\"",
"multi",
"\"",
",",
"\"",
"multibulk",
"1",
"\"",
",",
"\"",
"multibulk",
"2",
"\"",
")",
";",
"assert",
"search",
"returns",
"(",
"search",
"by",
"numeric",
"range",
"(",
"12",
",",
"12",
")",
"get",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"cluster",
"disk",
"info",
"for",
"the",
"cluster",
",",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"none",
"available"
]
| [
"public",
"cluster",
"info",
"get",
"cluster",
"info",
"(",
")",
"{",
"return",
"this",
"cluster",
"info",
";",
"}"
]
|
[
"resolve",
"the",
"externally",
"facing",
"public",
"url",
"path",
"for",
"clients",
"to",
"use",
"to",
"access",
"the",
"resource",
"that",
"is",
"located",
"at",
"the",
"given",
"internal",
"resource",
"path",
"this",
"is",
"useful",
"when",
"rendering",
"url",
"links",
"to",
"clients"
]
| [
"mono",
"<",
"string",
">",
"resolve",
"url",
"path",
"(",
"string",
"resource",
"path",
",",
"list",
"<",
"?",
"extends",
"resource",
">",
"locations",
",",
"resource",
"resolver",
"chain",
"chain",
")",
";"
]
|
[
"return",
"the",
"security",
"context",
"used",
"during",
"the",
"invocation",
"of",
"the",
"wrapped",
"instance",
"methods",
"can",
"be",
"null"
]
| [
"public",
"access",
"control",
"context",
"get",
"security",
"context",
"(",
")",
"{",
"return",
"this",
"acc",
";",
"}"
]
|
[
"iterate",
"over",
"theme",
"resources",
"and",
"fill",
"up",
"the",
"u",
"i",
"manager"
]
| [
"public",
"static",
"void",
"build",
"resources",
"(",
"final",
"iterable",
"<",
"string",
">",
"resources",
",",
"final",
"color",
"color",
")",
"{",
"for",
"(",
"final",
"string",
"resource",
":",
"resources",
")",
"{",
"u",
"i",
"manager",
"get",
"defaults",
"(",
")",
"put",
"(",
"resource",
",",
"color",
")",
";",
"}",
"}"
]
|
[
"model",
"tests",
"for",
"cat",
"all",
"of"
]
| [
"public",
"void",
"test",
"cat",
"all",
"of",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"cat",
"all",
"of",
"}"
]
|
[
"callback",
"when",
"key",
"context",
"is",
"switched"
]
| [
"void",
"key",
"selected",
"(",
"k",
"new",
"key",
")",
";"
]
|
[
"sets",
"the",
"size",
"of",
"the",
"written",
"data",
",",
"i",
"e",
"the",
"<",
"tt",
">",
"writer",
"index",
"<",
"tt",
">",
",",
"of",
"this",
"buffer"
]
| [
"void",
"set",
"size",
"(",
"int",
"writer",
"index",
")",
";"
]
|
[
"removes",
"exactly",
"the",
"specified",
"number",
"of",
"occurrences",
"of",
"{",
"@",
"code",
"element",
"}",
",",
"or",
"makes",
"no",
"change",
"if",
"this",
"is",
"not",
"possible",
"this",
"method",
",",
"in",
"contrast",
"to",
"{",
"@",
"link",
"#",
"remove",
"(",
"object",
",",
"int",
")",
"}",
",",
"has",
"no",
"effect",
"when",
"the",
"element",
"count",
"is",
"smaller",
"than",
"{",
"@",
"code",
"occurrences",
"}"
]
| [
"public",
"boolean",
"remove",
"exactly",
"(",
"@",
"nullable",
"decl",
"object",
"element",
",",
"int",
"occurrences",
")",
"{",
"if",
"(",
"occurrences",
"=",
"=",
"0",
")",
"{",
"return",
"true",
";",
"}",
"check",
"argument",
"(",
"occurrences",
">",
"0",
",",
"\"",
"invalid",
"occurrences",
":",
"%",
"s",
"\"",
",",
"occurrences",
")",
";",
"while",
"(",
"true",
")",
"{",
"int",
"current",
"=",
"count",
"(",
"element",
")",
";",
"if",
"(",
"occurrences",
">",
"current",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"occurrences",
"=",
"=",
"current",
")",
"{",
"if",
"(",
"count",
"map",
"remove",
"(",
"element",
",",
"occurrences",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"else",
"{",
"@",
"suppress",
"warnings",
"(",
"\"",
"unchecked",
"\"",
")",
"/",
"/",
"it",
"'",
"s",
"in",
"the",
"map",
",",
"must",
"be",
"an",
"\"",
"e",
"\"",
"e",
"casted",
"=",
"(",
"e",
")",
"element",
";",
"if",
"(",
"count",
"map",
"replace",
"(",
"casted",
",",
"current",
",",
"current",
"-",
"occurrences",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"/",
"/",
"if",
"we",
"'",
"re",
"still",
"here",
",",
"there",
"was",
"a",
"race",
",",
"so",
"just",
"try",
"again",
"}",
"}"
]
|
[
"from",
"base",
"6",
"4",
"string"
]
| [
"public",
"static",
"byte",
"[",
"]",
"base",
"6",
"4",
"2bytes",
"(",
"string",
"str",
",",
"string",
"code",
")",
"{",
"return",
"base",
"6",
"4",
"2bytes",
"(",
"str",
",",
"0",
",",
"str",
"length",
"(",
")",
",",
"code",
")",
";",
"}"
]
|
[
"test",
"whether",
"the",
"internal",
"lease",
"holder",
"name",
"is",
"updated",
"properly"
]
| [
"public",
"void",
"test",
"internal",
"lease",
"holder",
"(",
")",
"throws",
"exception",
"{",
"lease",
"manager",
"lm",
"=",
"new",
"lease",
"manager",
"(",
"make",
"mock",
"fs",
"name",
"system",
"(",
")",
")",
";",
"/",
"/",
"set",
"the",
"hard",
"lease",
"limit",
"to",
"5",
"0",
"0ms",
"lm",
"set",
"lease",
"period",
"(",
"100l",
",",
"500l",
")",
";",
"string",
"holder",
"=",
"lm",
"get",
"internal",
"lease",
"holder",
"(",
")",
";",
"thread",
"sleep",
"(",
"1000",
")",
";",
"assert",
"not",
"equals",
"(",
"holder",
",",
"lm",
"get",
"internal",
"lease",
"holder",
"(",
")",
")",
";",
"}"
]
|
[
"remove",
"the",
"instance",
"to",
"the",
"managed",
"instances",
"be",
"careful",
"using",
"this",
"method",
"this",
"method",
"is",
"intended",
"for",
"internal",
"purposes",
"only"
]
| [
"public",
"static",
"void",
"remove",
"instance",
"(",
"final",
"bt",
"collision",
"object",
"obj",
")",
"{",
"instances",
"remove",
"(",
"get",
"c",
"ptr",
"(",
"obj",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"next",
"element",
"in",
"the",
"iteration"
]
| [
"e",
"next",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"makes",
"an",
"instance",
"for",
"the",
"given",
"value",
"this",
"may",
"(",
"but",
"does",
"not",
"necessarily",
")",
"return",
"an",
"already",
"-",
"allocated",
"instance"
]
| [
"public",
"static",
"cst",
"char",
"make",
"(",
"char",
"value",
")",
"{",
"return",
"new",
"cst",
"char",
"(",
"value",
")",
";",
"}"
]
|
[
"verifies",
"that",
"the",
"resources",
"are",
"merged",
"correctly",
"for",
"chained",
"operators",
"(",
"covers",
"source",
"and",
"sink",
"cases",
")",
"when",
"generating",
"job",
"graph"
]
| [
"public",
"void",
"test",
"resources",
"for",
"chained",
"source",
"sink",
"(",
")",
"throws",
"exception",
"{",
"resource",
"spec",
"resource",
"1",
"=",
"resource",
"spec",
"new",
"builder",
"(",
"0",
"1",
",",
"100",
")",
"build",
"(",
")",
";",
"resource",
"spec",
"resource",
"2",
"=",
"resource",
"spec",
"new",
"builder",
"(",
"0",
"2",
",",
"200",
")",
"build",
"(",
")",
";",
"resource",
"spec",
"resource",
"3",
"=",
"resource",
"spec",
"new",
"builder",
"(",
"0",
"3",
",",
"300",
")",
"build",
"(",
")",
";",
"resource",
"spec",
"resource",
"4",
"=",
"resource",
"spec",
"new",
"builder",
"(",
"0",
"4",
",",
"400",
")",
"build",
"(",
")",
";",
"resource",
"spec",
"resource",
"5",
"=",
"resource",
"spec",
"new",
"builder",
"(",
"0",
"5",
",",
"500",
")",
"build",
"(",
")",
";",
"method",
"op",
"method",
"=",
"get",
"set",
"resources",
"method",
"and",
"set",
"accessible",
"(",
"single",
"output",
"stream",
"operator",
"class",
")",
";",
"method",
"sink",
"method",
"=",
"get",
"set",
"resources",
"method",
"and",
"set",
"accessible",
"(",
"data",
"stream",
"sink",
"class",
")",
";",
"stream",
"execution",
"environment",
"env",
"=",
"stream",
"execution",
"environment",
"get",
"execution",
"environment",
"(",
")",
";",
"data",
"stream",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"source",
"=",
"env",
"add",
"source",
"(",
"new",
"parallel",
"source",
"function",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"source",
"context",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"ctx",
")",
"throws",
"exception",
"{",
"}",
"@",
"override",
"public",
"void",
"cancel",
"(",
")",
"{",
"}",
"}",
")",
";",
"op",
"method",
"invoke",
"(",
"source",
",",
"resource",
"1",
")",
";",
"data",
"stream",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"map",
"=",
"source",
"map",
"(",
"new",
"map",
"function",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
",",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"map",
"(",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"value",
")",
"throws",
"exception",
"{",
"return",
"value",
";",
"}",
"}",
")",
";",
"op",
"method",
"invoke",
"(",
"map",
",",
"resource",
"2",
")",
";",
"/",
"/",
"chain",
"(",
"source",
"-",
">",
"map",
"-",
">",
"filter",
")",
"data",
"stream",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"filter",
"=",
"map",
"filter",
"(",
"new",
"filter",
"function",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"filter",
"(",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"value",
")",
"throws",
"exception",
"{",
"return",
"false",
";",
"}",
"}",
")",
";",
"op",
"method",
"invoke",
"(",
"filter",
",",
"resource",
"3",
")",
";",
"data",
"stream",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"reduce",
"=",
"filter",
"key",
"by",
"(",
"0",
")",
"reduce",
"(",
"new",
"reduce",
"function",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"reduce",
"(",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"value",
"1",
",",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"value",
"2",
")",
"throws",
"exception",
"{",
"return",
"new",
"tuple",
"2",
"<",
">",
"(",
"value",
"1",
"f",
"0",
",",
"value",
"1",
"f",
"1",
"+",
"value",
"2",
"f",
"1",
")",
";",
"}",
"}",
")",
";",
"op",
"method",
"invoke",
"(",
"reduce",
",",
"resource",
"4",
")",
";",
"data",
"stream",
"sink",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"sink",
"=",
"reduce",
"add",
"sink",
"(",
"new",
"sink",
"function",
"<",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"invoke",
"(",
"tuple",
"2",
"<",
"integer",
",",
"integer",
">",
"value",
")",
"throws",
"exception",
"{",
"}",
"}",
")",
";",
"sink",
"method",
"invoke",
"(",
"sink",
",",
"resource",
"5",
")",
";",
"job",
"graph",
"job",
"graph",
"=",
"streaming",
"job",
"graph",
"generator",
"create",
"job",
"graph",
"(",
"env",
"get",
"stream",
"graph",
"(",
")",
")",
";",
"job",
"vertex",
"source",
"map",
"filter",
"vertex",
"=",
"job",
"graph",
"get",
"vertices",
"sorted",
"topologically",
"from",
"sources",
"(",
")",
"get",
"(",
"0",
")",
";",
"job",
"vertex",
"reduce",
"sink",
"vertex",
"=",
"job",
"graph",
"get",
"vertices",
"sorted",
"topologically",
"from",
"sources",
"(",
")",
"get",
"(",
"1",
")",
";",
"assert",
"true",
"(",
"source",
"map",
"filter",
"vertex",
"get",
"min",
"resources",
"(",
")",
"equals",
"(",
"resource",
"3",
"merge",
"(",
"resource",
"2",
")",
"merge",
"(",
"resource",
"1",
")",
")",
")",
";",
"assert",
"true",
"(",
"reduce",
"sink",
"vertex",
"get",
"preferred",
"resources",
"(",
")",
"equals",
"(",
"resource",
"4",
"merge",
"(",
"resource",
"5",
")",
")",
")",
";",
"}"
]
|
[
"build",
"plugin",
"advice",
"definition"
]
| [
"public",
"plugin",
"interceptor",
"point",
"install",
"(",
")",
"{",
"return",
"new",
"plugin",
"interceptor",
"point",
"(",
"class",
"name",
"of",
"target",
",",
"constructor",
"points",
",",
"instance",
"method",
"points",
",",
"class",
"static",
"method",
"points",
")",
";",
"}"
]
|
[
"returns",
"a",
"visitor",
"for",
"mapping",
"method",
"code"
]
| [
"public",
"method",
"probes",
"visitor",
"visit",
"method",
"(",
"int",
"access",
",",
"string",
"name",
",",
"string",
"desc",
",",
"string",
"signature",
",",
"string",
"[",
"]",
"exceptions",
")",
"{",
"return",
"new",
"method",
"probes",
"mapper",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"visit",
"end",
"(",
")",
"{",
"super",
"visit",
"end",
"(",
")",
";",
"class",
"line",
"to",
"branch",
"exp",
"put",
"all",
"(",
"result",
"(",
")",
")",
";",
"}",
"}",
";",
"}"
]
|
[
"gets",
"all",
"the",
"jobs",
"which",
"were",
"added",
"to",
"particular",
"job",
"queue"
]
| [
"public",
"job",
"status",
"[",
"]",
"get",
"jobs",
"from",
"queue",
"(",
"final",
"string",
"queue",
"name",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"{",
"queue",
"info",
"queue",
"=",
"client",
"ugi",
"do",
"as",
"(",
"new",
"privileged",
"exception",
"action",
"<",
"queue",
"info",
">",
"(",
")",
"{",
"@",
"override",
"public",
"queue",
"info",
"run",
"(",
")",
"throws",
"i",
"o",
"exception",
",",
"interrupted",
"exception",
"{",
"return",
"cluster",
"get",
"queue",
"(",
"queue",
"name",
")",
";",
"}",
"}",
")",
";",
"if",
"(",
"queue",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"org",
"apache",
"hadoop",
"mapreduce",
"job",
"status",
"[",
"]",
"stats",
"=",
"queue",
"get",
"job",
"statuses",
"(",
")",
";",
"job",
"status",
"[",
"]",
"ret",
"=",
"new",
"job",
"status",
"[",
"stats",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"stats",
"length",
";",
"i",
"+",
"+",
")",
"{",
"ret",
"[",
"i",
"]",
"=",
"job",
"status",
"downgrade",
"(",
"stats",
"[",
"i",
"]",
")",
";",
"}",
"return",
"ret",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"ie",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"ie",
")",
";",
"}",
"}"
]
|
[
"runs",
"a",
"script",
"by",
"name",
"using",
"the",
"given",
"state",
"it",
"attempts",
"to",
"locate",
"the",
"script",
"in",
"the",
"directories",
"defined",
"in",
"<",
"code",
">",
"ghidra",
"script",
"util",
"get",
"script",
"directories",
"(",
")",
"<",
"code",
">",
"the",
"script",
"being",
"run",
"uses",
"the",
"given",
"{",
"@",
"link",
"ghidra",
"state",
"}",
"(",
"e",
"g",
",",
"script",
"variables",
")",
"any",
"changes",
"to",
"the",
"state",
"by",
"the",
"script",
"being",
"run",
"will",
"be",
"reflected",
"in",
"the",
"given",
"state",
"object",
"if",
"the",
"given",
"object",
"is",
"the",
"current",
"state",
",",
"the",
"this",
"scripts",
"state",
"may",
"be",
"changed",
"by",
"the",
"called",
"script"
]
| [
"public",
"void",
"run",
"script",
"(",
"string",
"script",
"name",
",",
"ghidra",
"state",
"script",
"state",
")",
"throws",
"exception",
"{",
"run",
"script",
"(",
"script",
"name",
",",
"null",
",",
"script",
"state",
")",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"int",
"get",
"annotation",
"width",
"(",
")",
"{",
"int",
"left",
"width",
"=",
"8",
"+",
"(",
"hex",
"cols",
"*",
"2",
")",
"+",
"(",
"hex",
"cols",
"/",
"2",
")",
";",
"return",
"annotation",
"width",
"-",
"left",
"width",
";",
"}"
]
|
[
"delete",
"purchase",
"order",
"by",
"id",
"for",
"valid",
"response",
"try",
"integer",
"i",
"ds",
"with",
"value",
"&",
"lt",
";",
"1000",
"anything",
"above",
"1000",
"or",
"nonintegers",
"will",
"generate",
"api",
"errors"
]
| [
"public",
"void",
"delete",
"order",
"(",
"string",
"order",
"id",
",",
"api",
"client",
"auth",
"info",
"auth",
"info",
",",
"handler",
"<",
"async",
"result",
"<",
"void",
">",
">",
"result",
"handler",
")",
"{",
"object",
"local",
"var",
"body",
"=",
"null",
";",
"/",
"/",
"verify",
"the",
"required",
"parameter",
"'",
"order",
"id",
"'",
"is",
"set",
"if",
"(",
"order",
"id",
"=",
"=",
"null",
")",
"{",
"result",
"handler",
"handle",
"(",
"api",
"exception",
"fail",
"(",
"400",
",",
"\"",
"missing",
"the",
"required",
"parameter",
"'",
"order",
"id",
"'",
"when",
"calling",
"delete",
"order",
"\"",
")",
")",
";",
"return",
";",
"}",
"/",
"/",
"create",
"path",
"and",
"map",
"variables",
"string",
"local",
"var",
"path",
"=",
"\"",
"/",
"store",
"/",
"order",
"/",
"{",
"order",
"id",
"}",
"\"",
"replace",
"all",
"(",
"\"",
"\\",
"\\",
"{",
"\"",
"+",
"\"",
"order",
"id",
"\"",
"+",
"\"",
"\\",
"\\",
"}",
"\"",
",",
"encode",
"parameter",
"(",
"order",
"id",
"to",
"string",
"(",
")",
")",
")",
";",
"/",
"/",
"query",
"params",
"list",
"<",
"pair",
">",
"local",
"var",
"query",
"params",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"/",
"/",
"header",
"params",
"multi",
"map",
"local",
"var",
"header",
"params",
"=",
"multi",
"map",
"case",
"insensitive",
"multi",
"map",
"(",
")",
";",
"/",
"/",
"cookie",
"params",
"multi",
"map",
"local",
"var",
"cookie",
"params",
"=",
"multi",
"map",
"case",
"insensitive",
"multi",
"map",
"(",
")",
";",
"/",
"/",
"form",
"params",
"/",
"/",
"todo",
":",
"sending",
"files",
"within",
"multipart",
"/",
"form",
"-",
"data",
"is",
"not",
"supported",
"yet",
"(",
"because",
"of",
"vertx",
"web",
"-",
"client",
")",
"map",
"<",
"string",
",",
"object",
">",
"local",
"var",
"form",
"params",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"string",
"[",
"]",
"local",
"var",
"accepts",
"=",
"{",
"}",
";",
"string",
"[",
"]",
"local",
"var",
"content",
"types",
"=",
"{",
"}",
";",
"string",
"[",
"]",
"local",
"var",
"auth",
"names",
"=",
"new",
"string",
"[",
"]",
"{",
"}",
";",
"api",
"client",
"invoke",
"a",
"p",
"i",
"(",
"local",
"var",
"path",
",",
"\"",
"delete",
"\"",
",",
"local",
"var",
"query",
"params",
",",
"local",
"var",
"body",
",",
"local",
"var",
"header",
"params",
",",
"local",
"var",
"cookie",
"params",
",",
"local",
"var",
"form",
"params",
",",
"local",
"var",
"accepts",
",",
"local",
"var",
"content",
"types",
",",
"local",
"var",
"auth",
"names",
",",
"auth",
"info",
",",
"null",
",",
"result",
"handler",
")",
";",
"}"
]
|
[
"parse",
"the",
"{",
"@",
"code",
"phase",
"def",
"}",
"phase",
"definition",
"to",
"get",
"the",
"stepkeys",
"for",
"the",
"given",
"phase",
"if",
"there",
"is",
"an",
"error",
"parsing",
"or",
"if",
"the",
"phase",
"definition",
"is",
"missing",
"the",
"required",
"information",
",",
"returns",
"null"
]
| [
"static",
"set",
"<",
"step",
"step",
"key",
">",
"read",
"step",
"keys",
"(",
"final",
"named",
"x",
"content",
"registry",
"x",
"content",
"registry",
",",
"final",
"client",
"client",
",",
"final",
"string",
"phase",
"def",
",",
"final",
"string",
"current",
"phase",
")",
"{",
"final",
"phase",
"execution",
"info",
"phase",
"execution",
"info",
";",
"try",
"(",
"x",
"content",
"parser",
"parser",
"=",
"json",
"x",
"content",
"json",
"x",
"content",
"create",
"parser",
"(",
"x",
"content",
"registry",
",",
"deprecation",
"handler",
"throw",
"unsupported",
"operation",
",",
"phase",
"def",
")",
")",
"{",
"phase",
"execution",
"info",
"=",
"phase",
"execution",
"info",
"parse",
"(",
"parser",
",",
"current",
"phase",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"logger",
"trace",
"(",
"new",
"parameterized",
"message",
"(",
"\"",
"exception",
"reading",
"step",
"keys",
"checking",
"for",
"refreshability",
",",
"phase",
"definition",
":",
"{",
"}",
"\"",
",",
"phase",
"def",
")",
",",
"e",
")",
";",
"return",
"null",
";",
"}",
"if",
"(",
"phase",
"execution",
"info",
"=",
"=",
"null",
"|",
"|",
"phase",
"execution",
"info",
"get",
"phase",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"phase",
"execution",
"info",
"get",
"phase",
"(",
")",
"get",
"actions",
"(",
")",
"values",
"(",
")",
"stream",
"(",
")",
"flat",
"map",
"(",
"a",
"-",
">",
"a",
"to",
"steps",
"(",
"client",
",",
"phase",
"execution",
"info",
"get",
"phase",
"(",
")",
"get",
"name",
"(",
")",
",",
"null",
")",
"stream",
"(",
")",
")",
"map",
"(",
"step",
":",
":",
"get",
"key",
")",
"collect",
"(",
"collectors",
"to",
"collection",
"(",
"linked",
"hash",
"set",
":",
":",
"new",
")",
")",
";",
"}"
]
|
[
"creates",
"a",
"media",
"type",
"with",
"the",
"\"",
"video",
"\"",
"type",
"and",
"the",
"given",
"subtype"
]
| [
"static",
"media",
"type",
"create",
"video",
"type",
"(",
"string",
"subtype",
")",
"{",
"return",
"create",
"(",
"video",
"type",
",",
"subtype",
")",
";",
"}"
]
|
[
"@",
"inherit",
"doc"
]
| [
"public",
"int",
"get",
"b",
"(",
")",
"{",
"return",
"b",
";",
"}"
]
|
[
"returns",
"the",
"format",
"string",
"for",
"the",
"params",
"filename",
"on",
"the",
"command",
"line",
"(",
"typically",
"\"",
"@",
"%",
"s",
"\"",
")"
]
| [
"public",
"string",
"get",
"flag",
"format",
"string",
"(",
")",
"{",
"return",
"flag",
"format",
"string",
";",
"}"
]
|
[
"reset",
"the",
"underlying",
"shared",
"connection",
",",
"to",
"be",
"reinitialized",
"on",
"next",
"access"
]
| [
"public",
"mono",
"<",
"void",
">",
"reset",
"connection",
"(",
")",
"{",
"connection",
"connection",
"=",
"this",
"target",
"get",
"(",
")",
";",
"if",
"(",
"connection",
"=",
"=",
"null",
")",
"{",
"return",
"mono",
"empty",
"(",
")",
";",
"}",
"return",
"mono",
"defer",
"(",
"(",
")",
"-",
">",
"{",
"if",
"(",
"this",
"target",
"compare",
"and",
"set",
"(",
"connection",
",",
"null",
")",
")",
"{",
"this",
"connection",
"=",
"null",
";",
"return",
"mono",
"from",
"(",
"connection",
"close",
"(",
")",
")",
";",
"}",
"return",
"mono",
"empty",
"(",
")",
";",
"}",
")",
";",
"}"
]
|
[
"get",
"the",
"map",
"output",
"data",
"compression",
"ratio",
"using",
"the",
"given",
"configuration",
"if",
"the",
"compression",
"ratio",
"is",
"not",
"set",
"in",
"the",
"configuration",
"then",
"use",
"the",
"default",
"value",
"i",
"e",
"{",
"@",
"value",
"#",
"default",
"compression",
"ratio",
"}"
]
| [
"static",
"float",
"get",
"map",
"output",
"compression",
"emulation",
"ratio",
"(",
"configuration",
"conf",
")",
"{",
"return",
"conf",
"get",
"float",
"(",
"gridmix",
"map",
"output",
"compression",
"ratio",
",",
"default",
"compression",
"ratio",
")",
";",
"}"
]
|
[
"computes",
"the",
"required",
"constant",
"size",
"for",
"this",
"instruction",
"'",
"s",
"constant"
]
| [
"private",
"int",
"required",
"constant",
"size",
"(",
")",
"{",
"return",
"opcode",
"!",
"=",
"instruction",
"constants",
"op",
"iinc",
"?",
"0",
":",
"(",
"byte",
")",
"constant",
"=",
"=",
"constant",
"?",
"1",
":",
"(",
"short",
")",
"constant",
"=",
"=",
"constant",
"?",
"2",
":",
"4",
";",
"}"
]
|
[
"returns",
"an",
"immutable",
"set",
"of",
"the",
"distinct",
"keys",
"in",
"this",
"multimap",
",",
"in",
"the",
"same",
"order",
"as",
"they",
"appear",
"in",
"this",
"multimap"
]
| [
"public",
"immutable",
"set",
"<",
"k",
">",
"key",
"set",
"(",
")",
"{",
"return",
"map",
"key",
"set",
"(",
")",
";",
"}"
]
|
[
"returns",
"the",
"{",
"@",
"link",
"help",
"location",
"}",
"instance",
"that",
"describes",
"where",
"to",
"direct",
"the",
"user",
"for",
"help",
"when",
"they",
"hit",
"f",
"1"
]
| [
"public",
"default",
"help",
"location",
"get",
"help",
"location",
"(",
")",
"{",
"return",
"null",
";",
"}"
]
|
[
"returns",
"the",
"absolute",
"path",
"for",
"a",
"symlink",
"in",
"the",
"specified",
"directory"
]
| [
"private",
"static",
"path",
"get",
"symlink",
"absolute",
"path",
"(",
"path",
"log",
"dir",
",",
"string",
"symlink",
")",
"{",
"check",
"not",
"null",
"(",
"symlink",
")",
";",
"check",
"argument",
"(",
"symlink",
"length",
"(",
")",
">",
"0",
")",
";",
"file",
"symlink",
"file",
"=",
"new",
"file",
"(",
"symlink",
")",
";",
"if",
"(",
"!",
"symlink",
"file",
"is",
"absolute",
"(",
")",
")",
"{",
"symlink",
"file",
"=",
"new",
"file",
"(",
"log",
"dir",
"+",
"file",
"separator",
"+",
"symlink",
")",
";",
"}",
"check",
"argument",
"(",
"symlink",
"file",
"to",
"path",
"(",
")",
"get",
"parent",
"(",
")",
"equals",
"(",
"log",
"dir",
")",
",",
"\"",
"symlink",
"is",
"not",
"a",
"top",
"-",
"level",
"file",
"in",
"log",
"dir",
"\"",
")",
";",
"return",
"symlink",
"file",
"to",
"path",
"(",
")",
";",
"}"
]
|
[
"get",
"capital",
"snake"
]
| [
"public",
"string",
"get",
"capital",
"snake",
"(",
")",
"{",
"return",
"capital",
"snake",
";",
"}"
]
|
[
"submit",
"a",
"request",
"to",
"allocate",
"a",
"physical",
"slot",
"the",
"physical",
"slot",
"can",
"be",
"either",
"allocated",
"from",
"the",
"slots",
",",
"which",
"are",
"already",
"available",
"for",
"the",
"job",
",",
"or",
"a",
"new",
"one",
"can",
"be",
"requeted",
"from",
"the",
"resource",
"manager"
]
| [
"completable",
"future",
"<",
"physical",
"slot",
"request",
"result",
">",
"allocate",
"physical",
"slot",
"(",
"physical",
"slot",
"request",
"physical",
"slot",
"request",
")",
";"
]
|
[
"increments",
"the",
"statistic",
"{",
"@",
"link",
"statistic",
"#",
"invocation",
"glob",
"status",
"}",
"override",
"superclass",
"so",
"as",
"to",
"disable",
"symlink",
"resolution",
"as",
"symlinks",
"are",
"not",
"supported",
"by",
"s3a",
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"file",
"status",
"[",
"]",
"glob",
"status",
"(",
"final",
"path",
"path",
"pattern",
",",
"final",
"path",
"filter",
"filter",
")",
"throws",
"i",
"o",
"exception",
"{",
"entry",
"point",
"(",
"invocation",
"glob",
"status",
")",
";",
"return",
"globber",
"create",
"globber",
"(",
"this",
")",
"with",
"path",
"pattern",
"(",
"path",
"pattern",
")",
"with",
"path",
"filtern",
"(",
"filter",
")",
"with",
"resolve",
"symlinks",
"(",
"false",
")",
"build",
"(",
")",
"glob",
"(",
")",
";",
"}"
]
|
[
"loads",
"and",
"decodes",
"image",
"synchronously",
"<",
"br",
">",
"<",
"b",
">",
"note",
":",
"<",
"b",
">",
"{",
"@",
"link",
"#",
"init",
"(",
"image",
"loader",
"configuration",
")",
"}",
"method",
"must",
"be",
"called",
"before",
"this",
"method",
"call"
]
| [
"public",
"bitmap",
"load",
"image",
"sync",
"(",
"string",
"uri",
",",
"image",
"size",
"target",
"image",
"size",
",",
"display",
"image",
"options",
"options",
")",
"{",
"if",
"(",
"options",
"=",
"=",
"null",
")",
"{",
"options",
"=",
"configuration",
"default",
"display",
"image",
"options",
";",
"}",
"options",
"=",
"new",
"display",
"image",
"options",
"builder",
"(",
")",
"clone",
"from",
"(",
"options",
")",
"sync",
"loading",
"(",
"true",
")",
"build",
"(",
")",
";",
"sync",
"image",
"loading",
"listener",
"listener",
"=",
"new",
"sync",
"image",
"loading",
"listener",
"(",
")",
";",
"load",
"image",
"(",
"uri",
",",
"target",
"image",
"size",
",",
"options",
",",
"listener",
")",
";",
"return",
"listener",
"get",
"loaded",
"bitmap",
"(",
")",
";",
"}"
]
|
[
"rethrow",
"the",
"given",
"{",
"@",
"link",
"throwable",
"exception",
"}",
",",
"which",
"is",
"presumably",
"the",
"target",
"exception",
"of",
"an",
"{",
"@",
"link",
"invocation",
"target",
"exception",
"}",
"should",
"only",
"be",
"called",
"if",
"no",
"checked",
"exception",
"is",
"expected",
"to",
"be",
"thrown",
"by",
"the",
"target",
"method",
"rethrows",
"the",
"underlying",
"exception",
"cast",
"to",
"an",
"{",
"@",
"link",
"exception",
"}",
"or",
"{",
"@",
"link",
"error",
"}",
"if",
"appropriate",
";",
"otherwise",
",",
"throws",
"an",
"{",
"@",
"link",
"undeclared",
"throwable",
"exception",
"}"
]
| [
"public",
"static",
"void",
"rethrow",
"exception",
"(",
"throwable",
"ex",
")",
"throws",
"exception",
"{",
"if",
"(",
"ex",
"instanceof",
"exception",
")",
"{",
"throw",
"(",
"exception",
")",
"ex",
";",
"}",
"if",
"(",
"ex",
"instanceof",
"error",
")",
"{",
"throw",
"(",
"error",
")",
"ex",
";",
"}",
"throw",
"new",
"undeclared",
"throwable",
"exception",
"(",
"ex",
")",
";",
"}"
]
|
[
"this",
"assumes",
"the",
"server",
"limits",
"metadata",
"size",
"to",
"grpc",
"util",
"default",
"max",
"header",
"list",
"size"
]
| [
"public",
"void",
"server",
"checks",
"inbound",
"metadata",
"size",
"(",
")",
"throws",
"exception",
"{",
"server",
"start",
"(",
"server",
"listener",
")",
";",
"client",
"=",
"new",
"client",
"transport",
"(",
"server",
")",
";",
"start",
"transport",
"(",
"client",
",",
"mock",
"client",
"transport",
"listener",
")",
";",
"mock",
"server",
"transport",
"listener",
"server",
"transport",
"listener",
"=",
"server",
"listener",
"take",
"listener",
"or",
"fail",
"(",
"timeout",
"ms",
",",
"time",
"unit",
"milliseconds",
")",
";",
"server",
"transport",
"=",
"server",
"transport",
"listener",
"transport",
";",
"metadata",
"too",
"large",
"metadata",
"=",
"new",
"metadata",
"(",
")",
";",
"too",
"large",
"metadata",
"put",
"(",
"metadata",
"key",
"of",
"(",
"\"",
"foo",
"-",
"bin",
"\"",
",",
"metadata",
"binary",
"byte",
"marshaller",
")",
",",
"new",
"byte",
"[",
"grpc",
"util",
"default",
"max",
"header",
"list",
"size",
"]",
")",
";",
"client",
"stream",
"client",
"stream",
"=",
"client",
"new",
"stream",
"(",
"method",
"descriptor",
",",
"too",
"large",
"metadata",
",",
"call",
"options",
")",
";",
"client",
"stream",
"listener",
"base",
"client",
"stream",
"listener",
"=",
"new",
"client",
"stream",
"listener",
"base",
"(",
")",
";",
"client",
"stream",
"start",
"(",
"client",
"stream",
"listener",
")",
";",
"client",
"stream",
"write",
"message",
"(",
"method",
"descriptor",
"stream",
"request",
"(",
"\"",
"foo",
"\"",
")",
")",
";",
"client",
"stream",
"half",
"close",
"(",
")",
";",
"client",
"stream",
"request",
"(",
"1",
")",
";",
"/",
"/",
"server",
"shouldn",
"'",
"t",
"have",
"created",
"a",
"stream",
",",
"so",
"nothing",
"to",
"clean",
"up",
"on",
"server",
"-",
"side",
"/",
"/",
"if",
"this",
"times",
"out",
",",
"the",
"server",
"probably",
"isn",
"'",
"t",
"noticing",
"the",
"metadata",
"size",
"status",
"status",
"=",
"client",
"stream",
"listener",
"status",
"get",
"(",
"timeout",
"ms",
",",
"time",
"unit",
"milliseconds",
")",
";",
"list",
"<",
"status",
"code",
">",
"code",
"options",
"=",
"arrays",
"as",
"list",
"(",
"status",
"code",
"unknown",
",",
"status",
"code",
"resource",
"exhausted",
",",
"status",
"code",
"internal",
")",
";",
"if",
"(",
"!",
"code",
"options",
"contains",
"(",
"status",
"get",
"code",
"(",
")",
")",
")",
"{",
"fail",
"(",
"\"",
"status",
"code",
"was",
"not",
"expected",
":",
"\"",
"+",
"status",
")",
";",
"}",
"}"
]
|
[
"returns",
"the",
"start",
"time",
"of",
"a",
"segment"
]
| [
"long",
"get",
"time",
"us",
"(",
"long",
"segment",
"num",
")",
";"
]
|
[
"get",
"the",
"resource",
"utilization",
"of",
"the",
"containers",
"in",
"the",
"node"
]
| [
"public",
"resource",
"utilization",
"get",
"aggregated",
"containers",
"utilization",
"(",
")",
"{",
"return",
"this",
"containers",
"utilization",
";",
"}"
]
|
[
"customize",
"response",
"specification"
]
| [
"public",
"get",
"user",
"by",
"name",
"oper",
"resp",
"spec",
"(",
"consumer",
"<",
"response",
"spec",
"builder",
">",
"resp",
"spec",
"customizer",
")",
"{",
"resp",
"spec",
"customizer",
"accept",
"(",
"resp",
"spec",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"create",
"the",
"list",
"of",
"unique",
"distributed",
"cache",
"files",
"needed",
"for",
"all",
"the",
"simulated",
"jobs",
"and",
"write",
"the",
"list",
"to",
"a",
"special",
"file"
]
| [
"private",
"int",
"build",
"dist",
"cache",
"files",
"list",
"(",
"job",
"story",
"producer",
"jsp",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"read",
"all",
"the",
"jobs",
"from",
"the",
"trace",
"file",
"and",
"build",
"the",
"list",
"of",
"unique",
"/",
"/",
"distributed",
"cache",
"files",
"job",
"story",
"job",
"story",
";",
"while",
"(",
"(",
"job",
"story",
"=",
"jsp",
"get",
"next",
"job",
"(",
")",
")",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"job",
"story",
"get",
"outcome",
"(",
")",
"=",
"=",
"pre",
"2",
"1",
"job",
"history",
"constants",
"values",
"success",
"&",
"&",
"job",
"story",
"get",
"submission",
"time",
"(",
")",
">",
"=",
"0",
")",
"{",
"update",
"h",
"d",
"f",
"s",
"dist",
"cache",
"files",
"list",
"(",
"job",
"story",
")",
";",
"}",
"}",
"jsp",
"close",
"(",
")",
";",
"return",
"write",
"dist",
"cache",
"files",
"list",
"(",
")",
";",
"}"
]
|
[
"initiates",
"service",
"{",
"@",
"linkplain",
"service",
"#",
"start",
"async",
"startup",
"}",
"on",
"all",
"the",
"services",
"being",
"managed",
"it",
"is",
"only",
"valid",
"to",
"call",
"this",
"method",
"if",
"all",
"of",
"the",
"services",
"are",
"{",
"@",
"linkplain",
"state",
"#",
"new",
"new",
"}"
]
| [
"public",
"service",
"manager",
"start",
"async",
"(",
")",
"{",
"for",
"(",
"service",
"service",
":",
"services",
")",
"{",
"state",
"state",
"=",
"service",
"state",
"(",
")",
";",
"check",
"state",
"(",
"state",
"=",
"=",
"new",
",",
"\"",
"service",
"%",
"s",
"is",
"%",
"s",
",",
"cannot",
"start",
"it",
"\"",
",",
"service",
",",
"state",
")",
";",
"}",
"for",
"(",
"service",
"service",
":",
"services",
")",
"{",
"try",
"{",
"state",
"try",
"start",
"timing",
"(",
"service",
")",
";",
"service",
"start",
"async",
"(",
")",
";",
"}",
"catch",
"(",
"illegal",
"state",
"exception",
"e",
")",
"{",
"/",
"/",
"this",
"can",
"happen",
"if",
"the",
"service",
"has",
"already",
"been",
"started",
"or",
"stopped",
"(",
"e",
"g",
"by",
"another",
"/",
"/",
"service",
"or",
"listener",
")",
"our",
"contract",
"says",
"it",
"is",
"safe",
"to",
"call",
"this",
"method",
"if",
"/",
"/",
"all",
"services",
"were",
"new",
"when",
"it",
"was",
"called",
",",
"and",
"this",
"has",
"already",
"been",
"verified",
"above",
",",
"so",
"we",
"/",
"/",
"don",
"'",
"t",
"propagate",
"the",
"exception",
"logger",
"log",
"(",
"level",
"warning",
",",
"\"",
"unable",
"to",
"start",
"service",
"\"",
"+",
"service",
",",
"e",
")",
";",
"}",
"}",
"return",
"this",
";",
"}"
]
|
[
"sets",
"the",
"width",
"of",
"the",
"fields",
"generated",
"by",
"this",
"factory"
]
| [
"public",
"void",
"set",
"width",
"(",
"int",
"w",
")",
"{",
"width",
"=",
"w",
";",
"}"
]
|
[
"advances",
"to",
"the",
"next",
"batch",
"of",
"rows",
"returns",
"false",
"if",
"there",
"are",
"no",
"more"
]
| [
"private",
"boolean",
"next",
"batch",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"for",
"(",
"writable",
"column",
"vector",
"v",
":",
"writable",
"vectors",
")",
"{",
"v",
"reset",
"(",
")",
";",
"}",
"columnar",
"batch",
"set",
"num",
"rows",
"(",
"0",
")",
";",
"if",
"(",
"rows",
"returned",
">",
"=",
"total",
"row",
"count",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"rows",
"returned",
"=",
"=",
"total",
"count",
"loaded",
"so",
"far",
")",
"{",
"read",
"next",
"row",
"group",
"(",
")",
";",
"}",
"int",
"num",
"=",
"(",
"int",
")",
"math",
"min",
"(",
"batch",
"size",
",",
"total",
"count",
"loaded",
"so",
"far",
"-",
"rows",
"returned",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"column",
"readers",
"length",
";",
"+",
"+",
"i",
")",
"{",
"/",
"/",
"noinspection",
"unchecked",
"column",
"readers",
"[",
"i",
"]",
"read",
"to",
"vector",
"(",
"num",
",",
"writable",
"vectors",
"[",
"i",
"]",
")",
";",
"}",
"rows",
"returned",
"+",
"=",
"num",
";",
"columnar",
"batch",
"set",
"num",
"rows",
"(",
"num",
")",
";",
"rows",
"in",
"batch",
"=",
"num",
";",
"return",
"true",
";",
"}"
]
|
[
"appends",
"the",
"node",
"to",
"the",
"tail",
"of",
"the",
"list"
]
| [
"public",
"void",
"append",
"to",
"tail",
"(",
"node",
"head",
")",
"{",
"node",
"tail",
"=",
"head",
"prev",
";",
"head",
"prev",
"=",
"this",
";",
"tail",
"next",
"=",
"this",
";",
"next",
"=",
"head",
";",
"prev",
"=",
"tail",
";",
"}"
]
|
[
"initializes",
"the",
"array",
"with",
"the",
"provided",
"number",
"of",
"bytes"
]
| [
"private",
"void",
"initialize",
"(",
"int",
"bytes",
")",
"{",
"int",
"capacity",
"=",
"bytes",
"/",
"element",
"length",
"in",
"bytes",
";",
"preconditions",
"check",
"argument",
"(",
"capacity",
">",
"0",
",",
"\"",
"requested",
"array",
"with",
"zero",
"capacity",
"\"",
")",
";",
"preconditions",
"check",
"argument",
"(",
"capacity",
"<",
"=",
"max",
"array",
"size",
",",
"\"",
"requested",
"capacity",
"exceeds",
"limit",
"of",
"\"",
"+",
"max",
"array",
"size",
")",
";",
"data",
"=",
"new",
"long",
"[",
"capacity",
"]",
";",
"}"
]
|
[
"tests",
"that",
"requests",
"larger",
"than",
"{",
"@",
"link",
"#",
"test",
"rest",
"max",
"content",
"length",
"}",
"are",
"rejected"
]
| [
"public",
"void",
"test",
"should",
"respect",
"max",
"content",
"length",
"limit",
"for",
"requests",
"(",
")",
"throws",
"exception",
"{",
"test",
"handler",
"handler",
"body",
"=",
"id",
"-",
">",
"{",
"throw",
"new",
"assertion",
"error",
"(",
"\"",
"request",
"should",
"not",
"arrive",
"at",
"server",
"\"",
")",
";",
"}",
";",
"try",
"{",
"send",
"request",
"to",
"test",
"handler",
"(",
"new",
"test",
"request",
"(",
"2",
",",
"create",
"string",
"of",
"size",
"(",
"test",
"rest",
"max",
"content",
"length",
")",
")",
")",
"get",
"(",
")",
";",
"fail",
"(",
"\"",
"expected",
"exception",
"not",
"thrown",
"\"",
")",
";",
"}",
"catch",
"(",
"final",
"execution",
"exception",
"e",
")",
"{",
"final",
"throwable",
"throwable",
"=",
"exception",
"utils",
"strip",
"execution",
"exception",
"(",
"e",
")",
";",
"assert",
"that",
"(",
"throwable",
",",
"instance",
"of",
"(",
"rest",
"client",
"exception",
"class",
")",
")",
";",
"assert",
"that",
"(",
"throwable",
"get",
"message",
"(",
")",
",",
"contains",
"string",
"(",
"\"",
"try",
"to",
"raise",
"\"",
")",
")",
";",
"}",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.