docstring_tokens
list | code_tokens
list |
---|---|
[
"write",
"{",
"@",
"code",
"content",
"}",
"in",
"{",
"@",
"code",
"filename",
"}",
"to",
"this",
"output"
]
| [
"void",
"write",
"(",
"string",
"filename",
",",
"byte",
"[",
"]",
"content",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"sets",
"the",
"given",
"layout",
"provider",
",",
"<",
"b",
">",
"but",
"does",
"not",
"actually",
"perform",
"a",
"layout",
"<",
"b",
">"
]
| [
"public",
"void",
"set",
"layout",
"provider",
"(",
"layout",
"provider",
"<",
"f",
"g",
"vertex",
",",
"f",
"g",
"edge",
",",
"function",
"graph",
">",
"new",
"layout",
"provider",
")",
"{",
"layout",
"provider",
"<",
"f",
"g",
"vertex",
",",
"f",
"g",
"edge",
",",
"function",
"graph",
">",
"old",
"layout",
"provider",
"=",
"layout",
"provider",
";",
"super",
"set",
"layout",
"provider",
"(",
"new",
"layout",
"provider",
")",
";",
"if",
"(",
"graph",
"component",
"=",
"=",
"null",
")",
"{",
"return",
";",
"/",
"/",
"not",
"yet",
"created",
",",
"no",
"work",
"to",
"do",
"}",
"if",
"(",
"old",
"layout",
"provider",
"!",
"=",
"new",
"layout",
"provider",
")",
"{",
"/",
"/",
"the",
"saved",
"positions",
"no",
"longer",
"make",
"sense",
"in",
"a",
"different",
"layout",
"fg",
"component",
"clear",
"layout",
"position",
"cache",
"(",
")",
";",
"}",
"}"
]
|
[
"post",
"pet",
"{",
"pet",
"id",
"}",
":",
"updates",
"a",
"pet",
"in",
"the",
"store",
"with",
"form",
"data"
]
| [
"default",
"response",
"entity",
"<",
"void",
">",
"update",
"pet",
"with",
"form",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"id",
"of",
"pet",
"that",
"needs",
"to",
"be",
"updated",
"\"",
",",
"required",
"=",
"true",
")",
"@",
"path",
"variable",
"(",
"\"",
"pet",
"id",
"\"",
")",
"long",
"pet",
"id",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"updated",
"name",
"of",
"the",
"pet",
"\"",
")",
"@",
"valid",
"@",
"request",
"part",
"(",
"value",
"=",
"\"",
"name",
"\"",
",",
"required",
"=",
"false",
")",
"string",
"name",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"updated",
"status",
"of",
"the",
"pet",
"\"",
")",
"@",
"valid",
"@",
"request",
"part",
"(",
"value",
"=",
"\"",
"status",
"\"",
",",
"required",
"=",
"false",
")",
"string",
"status",
")",
"{",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"http",
"status",
"not",
"implemented",
")",
";",
"}"
]
|
[
"if",
"the",
"base",
"object",
"is",
"a",
"map",
",",
"returns",
"the",
"value",
"associated",
"with",
"the",
"given",
"key",
",",
"as",
"specified",
"by",
"the",
"property",
"argument",
"if",
"the",
"key",
"was",
"not",
"found",
",",
"null",
"is",
"returned",
"if",
"the",
"base",
"is",
"a",
"map",
",",
"the",
"property",
"resolved",
"property",
"of",
"the",
"e",
"l",
"context",
"object",
"must",
"be",
"set",
"to",
"true",
"by",
"this",
"resolver",
",",
"before",
"returning",
"if",
"this",
"property",
"is",
"not",
"true",
"after",
"this",
"method",
"is",
"called",
",",
"the",
"caller",
"should",
"ignore",
"the",
"return",
"value",
"just",
"as",
"in",
"java",
"util",
"map",
"get",
"(",
"object",
")",
",",
"just",
"because",
"null",
"is",
"returned",
"doesn",
"'",
"t",
"mean",
"there",
"is",
"no",
"mapping",
"for",
"the",
"key",
";",
"it",
"'",
"s",
"also",
"possible",
"that",
"the",
"map",
"explicitly",
"maps",
"the",
"key",
"to",
"null"
]
| [
"public",
"object",
"get",
"value",
"(",
"e",
"l",
"context",
"context",
",",
"object",
"base",
",",
"object",
"property",
")",
"{",
"if",
"(",
"context",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
"\"",
"context",
"is",
"null",
"\"",
")",
";",
"}",
"object",
"result",
"=",
"null",
";",
"if",
"(",
"is",
"resolvable",
"(",
"base",
")",
")",
"{",
"json",
"node",
"result",
"node",
"=",
"(",
"(",
"json",
"node",
")",
"base",
")",
"get",
"(",
"property",
"to",
"string",
"(",
")",
")",
";",
"if",
"(",
"result",
"node",
"!",
"=",
"null",
"&",
"&",
"result",
"node",
"is",
"value",
"node",
"(",
")",
")",
"{",
"if",
"(",
"result",
"node",
"is",
"boolean",
"(",
")",
")",
"{",
"result",
"=",
"result",
"node",
"as",
"boolean",
"(",
")",
";",
"}",
"else",
"if",
"(",
"result",
"node",
"is",
"long",
"(",
")",
")",
"{",
"result",
"=",
"result",
"node",
"as",
"long",
"(",
")",
";",
"}",
"else",
"if",
"(",
"result",
"node",
"is",
"big",
"decimal",
"(",
")",
"|",
"|",
"result",
"node",
"is",
"double",
"(",
")",
")",
"{",
"result",
"=",
"result",
"node",
"as",
"double",
"(",
")",
";",
"}",
"else",
"if",
"(",
"result",
"node",
"is",
"textual",
"(",
")",
")",
"{",
"result",
"=",
"result",
"node",
"as",
"text",
"(",
")",
";",
"}",
"else",
"{",
"result",
"=",
"result",
"node",
"to",
"string",
"(",
")",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"result",
"node",
"is",
"array",
"(",
")",
")",
"{",
"result",
"=",
"context",
"get",
"process",
"engine",
"configuration",
"(",
")",
"get",
"object",
"mapper",
"(",
")",
"convert",
"value",
"(",
"result",
"node",
",",
"list",
"class",
")",
";",
"}",
"else",
"{",
"result",
"=",
"result",
"node",
";",
"}",
"}",
"context",
"set",
"property",
"resolved",
"(",
"true",
")",
";",
"}",
"return",
"result",
";",
"}"
]
|
[
"returns",
"the",
"document",
"including",
"its",
"metadata",
"fields",
",",
"unless",
"{",
"@",
"link",
"#",
"extract",
"metadata",
"(",
")",
"}",
"has",
"been",
"called",
",",
"in",
"which",
"case",
"the",
"metadata",
"fields",
"will",
"not",
"be",
"present",
"anymore",
"modify",
"the",
"document",
"instead",
"using",
"{",
"@",
"link",
"#",
"set",
"field",
"value",
"(",
"string",
",",
"object",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"remove",
"field",
"(",
"string",
")",
"}"
]
| [
"public",
"map",
"<",
"string",
",",
"object",
">",
"get",
"source",
"and",
"metadata",
"(",
")",
"{",
"return",
"this",
"source",
"and",
"metadata",
";",
"}"
]
|
[
"returns",
"the",
"pivot",
"point",
"in",
"the",
"list",
"between",
"the",
"access",
"entries",
"and",
"the",
"default",
"entries",
"this",
"is",
"the",
"index",
"of",
"the",
"first",
"element",
"in",
"the",
"list",
"that",
"is",
"a",
"default",
"entry"
]
| [
"private",
"static",
"int",
"calculate",
"pivot",
"on",
"default",
"entries",
"(",
"list",
"<",
"acl",
"entry",
">",
"acl",
"builder",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"acl",
"builder",
"size",
"(",
")",
";",
"+",
"+",
"i",
")",
"{",
"if",
"(",
"acl",
"builder",
"get",
"(",
"i",
")",
"get",
"scope",
"(",
")",
"=",
"=",
"acl",
"entry",
"scope",
"default",
")",
"{",
"return",
"i",
";",
"}",
"}",
"return",
"pivot",
"not",
"found",
";",
"}"
]
|
[
"get",
"the",
"immediate",
"parent",
"data",
"prototype",
"of",
"this",
"component"
]
| [
"public",
"data",
"get",
"parent",
"(",
")",
"{",
"return",
"parent",
";",
"}"
]
|
[
"tests",
"that",
"if",
"local",
"recovery",
"is",
"enabled",
"we",
"won",
"'",
"t",
"spread",
"out",
"tasks",
"when",
"recovering",
"for",
"global",
"failover"
]
| [
"public",
"void",
"test",
"local",
"recovery",
"full",
"(",
")",
"throws",
"exception",
"{",
"test",
"local",
"recovery",
"internal",
"(",
"\"",
"full",
"\"",
")",
";",
"}"
]
|
[
"the",
"same",
"as",
"value",
"of",
"(",
"inode",
",",
"path",
",",
"false",
")"
]
| [
"public",
"static",
"i",
"node",
"file",
"value",
"of",
"(",
"i",
"node",
"inode",
",",
"string",
"path",
")",
"throws",
"file",
"not",
"found",
"exception",
"{",
"return",
"value",
"of",
"(",
"inode",
",",
"path",
",",
"false",
")",
";",
"}"
]
|
[
"computes",
"partition",
"for",
"given",
"record",
"if",
"the",
"record",
"has",
"partition",
"returns",
"the",
"value",
"otherwise",
"calls",
"configured",
"partitioner",
"class",
"to",
"compute",
"the",
"partition"
]
| [
"private",
"int",
"partition",
"(",
"producer",
"record",
"<",
"k",
",",
"v",
">",
"record",
",",
"byte",
"[",
"]",
"serialized",
"key",
",",
"byte",
"[",
"]",
"serialized",
"value",
",",
"cluster",
"cluster",
")",
"{",
"integer",
"partition",
"=",
"record",
"partition",
"(",
")",
";",
"return",
"partition",
"!",
"=",
"null",
"?",
"partition",
":",
"partitioner",
"partition",
"(",
"record",
"topic",
"(",
")",
",",
"record",
"key",
"(",
")",
",",
"serialized",
"key",
",",
"record",
"value",
"(",
")",
",",
"serialized",
"value",
",",
"cluster",
")",
";",
"}"
]
|
[
"model",
"tests",
"for",
"dog"
]
| [
"public",
"void",
"test",
"dog",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"dog",
"}"
]
|
[
"get",
"the",
"dialog",
"provider",
"'",
"s",
"status",
"text"
]
| [
"public",
"static",
"string",
"get",
"status",
"text",
"(",
"dialog",
"component",
"provider",
"provider",
")",
"{",
"atomic",
"reference",
"<",
"string",
">",
"ref",
"=",
"new",
"atomic",
"reference",
"<",
">",
"(",
")",
";",
"run",
"swing",
"(",
"(",
")",
"-",
">",
"{",
"ref",
"set",
"(",
"provider",
"get",
"status",
"text",
"(",
")",
")",
";",
"}",
")",
";",
"return",
"ref",
"get",
"(",
")",
";",
"}"
]
|
[
"whether",
"there",
"any",
"partial",
"matches"
]
| [
"public",
"boolean",
"is",
"empty",
"(",
")",
"{",
"return",
"this",
"partial",
"matches",
"is",
"empty",
"(",
")",
";",
"}"
]
|
[
"clear",
"any",
"accumulated",
"inconsistency",
"state",
"used",
"by",
"tests",
"to",
"make",
"paths",
"visible",
"again"
]
| [
"public",
"static",
"void",
"clear",
"inconsistency",
"(",
"s",
"3",
"a",
"file",
"system",
"fs",
")",
"throws",
"exception",
"{",
"amazon",
"s",
"3",
"s",
"3",
"=",
"fs",
"get",
"amazon",
"s",
"3",
"client",
"for",
"testing",
"(",
"\"",
"s",
"3guard",
"\"",
")",
";",
"inconsistent",
"amazon",
"s",
"3",
"client",
"ic",
"=",
"inconsistent",
"amazon",
"s",
"3",
"client",
"cast",
"from",
"(",
"s",
"3",
")",
";",
"ic",
"clear",
"inconsistency",
"(",
")",
";",
"}"
]
|
[
"make",
"sure",
"the",
"order",
"is",
"same",
"as",
"the",
"expected",
"order",
",",
"add",
"default",
"value",
"if",
"absent"
]
| [
"public",
"static",
"int",
"values",
"sort",
"values",
"(",
"int",
"values",
"origin",
",",
"list",
"<",
"string",
">",
"expected",
"order",
",",
"int",
"default",
"value",
")",
"{",
"int",
"values",
"int",
"values",
"=",
"new",
"int",
"values",
"(",
")",
";",
"expected",
"order",
"for",
"each",
"(",
"id",
"-",
">",
"{",
"k",
"v",
"int",
"e",
"=",
"new",
"k",
"v",
"int",
"(",
")",
";",
"e",
"set",
"id",
"(",
"id",
")",
";",
"e",
"set",
"value",
"(",
"origin",
"find",
"value",
"(",
"id",
",",
"default",
"value",
")",
")",
";",
"int",
"values",
"add",
"k",
"v",
"int",
"(",
"e",
")",
";",
"}",
")",
";",
"return",
"int",
"values",
";",
"}"
]
|
[
"checks",
"the",
"ack",
"message",
"going",
"from",
"the",
"{",
"@",
"code",
"from",
"}",
"license",
"type",
"to",
"{",
"@",
"code",
"to",
"}",
"license",
"type",
"todo",
":",
"check",
"the",
"actual",
"messages",
",",
"not",
"just",
"the",
"number",
"of",
"them",
"!",
"this",
"was",
"copied",
"from",
"previous",
"license",
"tests"
]
| [
"void",
"assert",
"ack",
"messages",
"(",
"string",
"feature",
",",
"operation",
"mode",
"from",
",",
"operation",
"mode",
"to",
",",
"int",
"expected",
"messages",
")",
"{",
"string",
"[",
"]",
"got",
"messages",
"=",
"x",
"pack",
"license",
"state",
"acknowledgment",
"messages",
"get",
"(",
"feature",
")",
"apply",
"(",
"from",
",",
"to",
")",
";",
"assert",
"equals",
"(",
"expected",
"messages",
",",
"got",
"messages",
"length",
")",
";",
"}"
]
|
[
"return",
"true",
"if",
"this",
"nullable",
"shape",
"object",
"is",
"equal",
"to",
"o"
]
| [
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"return",
"super",
"equals",
"(",
"o",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"additional",
"properties",
",",
"(",
"(",
"nullable",
"shape",
")",
"o",
")",
"additional",
"properties",
")",
";",
"}"
]
|
[
"specifically",
"test",
"interaction",
"with",
"a",
"scheduler",
"with",
"subscribe",
"on"
]
| [
"public",
"void",
"issue",
"2",
"1",
"9",
"1",
"scheduler",
"unsubscribe",
"on",
"error",
"(",
")",
"throws",
"throwable",
"{",
"/",
"/",
"setup",
"mocks",
"consumer",
"<",
"integer",
">",
"source",
"next",
"=",
"mock",
"(",
"consumer",
"class",
")",
";",
"action",
"source",
"completed",
"=",
"mock",
"(",
"action",
"class",
")",
";",
"consumer",
"<",
"throwable",
">",
"source",
"error",
"=",
"mock",
"(",
"consumer",
"class",
")",
";",
"action",
"source",
"unsubscribed",
"=",
"mock",
"(",
"action",
"class",
")",
";",
"final",
"scheduler",
"mock",
"scheduler",
"=",
"mock",
"(",
"scheduler",
"class",
")",
";",
"final",
"disposable",
"mock",
"subscription",
"=",
"mock",
"(",
"disposable",
"class",
")",
";",
"worker",
"spied",
"worker",
"=",
"worker",
"spy",
"(",
"mock",
"subscription",
")",
";",
"subscriber",
"<",
"integer",
">",
"mock",
"observer",
"before",
"connect",
"=",
"test",
"helper",
"mock",
"subscriber",
"(",
")",
";",
"subscriber",
"<",
"integer",
">",
"mock",
"observer",
"after",
"connect",
"=",
"test",
"helper",
"mock",
"subscriber",
"(",
")",
";",
"when",
"(",
"mock",
"scheduler",
"create",
"worker",
"(",
")",
")",
"then",
"return",
"(",
"spied",
"worker",
")",
";",
"/",
"/",
"flowable",
"under",
"test",
"function",
"<",
"integer",
",",
"integer",
">",
"mock",
"func",
"=",
"mock",
"(",
"function",
"class",
")",
";",
"illegal",
"argument",
"exception",
"illegal",
"argument",
"exception",
"=",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"when",
"(",
"mock",
"func",
"apply",
"(",
"1",
")",
")",
"then",
"return",
"(",
"1",
")",
";",
"when",
"(",
"mock",
"func",
"apply",
"(",
"2",
")",
")",
"then",
"throw",
"(",
"illegal",
"argument",
"exception",
")",
";",
"connectable",
"flowable",
"<",
"integer",
">",
"replay",
"=",
"flowable",
"just",
"(",
"1",
",",
"2",
",",
"3",
")",
"map",
"(",
"mock",
"func",
")",
"do",
"on",
"next",
"(",
"source",
"next",
")",
"do",
"on",
"cancel",
"(",
"source",
"unsubscribed",
")",
"do",
"on",
"complete",
"(",
"source",
"completed",
")",
"do",
"on",
"error",
"(",
"source",
"error",
")",
"subscribe",
"on",
"(",
"mock",
"scheduler",
")",
"replay",
"(",
")",
";",
"replay",
"subscribe",
"(",
"mock",
"observer",
"before",
"connect",
")",
";",
"replay",
"subscribe",
"(",
"mock",
"observer",
"before",
"connect",
")",
";",
"replay",
"connect",
"(",
")",
";",
"replay",
"subscribe",
"(",
"mock",
"observer",
"after",
"connect",
")",
";",
"replay",
"subscribe",
"(",
"mock",
"observer",
"after",
"connect",
")",
";",
"verify",
"(",
"mock",
"observer",
"before",
"connect",
",",
"times",
"(",
"2",
")",
")",
"on",
"subscribe",
"(",
"(",
"subscription",
")",
"any",
"(",
")",
")",
";",
"verify",
"(",
"mock",
"observer",
"after",
"connect",
",",
"times",
"(",
"2",
")",
")",
"on",
"subscribe",
"(",
"(",
"subscription",
")",
"any",
"(",
")",
")",
";",
"/",
"/",
"verify",
"interactions",
"verify",
"(",
"mock",
"scheduler",
",",
"times",
"(",
"1",
")",
")",
"create",
"worker",
"(",
")",
";",
"verify",
"(",
"spied",
"worker",
",",
"times",
"(",
"1",
")",
")",
"schedule",
"(",
"(",
"runnable",
")",
"not",
"null",
"(",
")",
")",
";",
"verify",
"(",
"source",
"next",
",",
"times",
"(",
"1",
")",
")",
"accept",
"(",
"1",
")",
";",
"verify",
"(",
"source",
"error",
",",
"times",
"(",
"1",
")",
")",
"accept",
"(",
"illegal",
"argument",
"exception",
")",
";",
"verify",
"observer",
"(",
"mock",
"observer",
"before",
"connect",
",",
"2",
",",
"2",
",",
"illegal",
"argument",
"exception",
")",
";",
"verify",
"observer",
"(",
"mock",
"observer",
"after",
"connect",
",",
"2",
",",
"2",
",",
"illegal",
"argument",
"exception",
")",
";",
"/",
"/",
"fixme",
"publish",
"also",
"calls",
"cancel",
"verify",
"(",
"spied",
"worker",
",",
"times",
"(",
"1",
")",
")",
"dispose",
"(",
")",
";",
"verify",
"(",
"source",
"unsubscribed",
",",
"never",
"(",
")",
")",
"run",
"(",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"source",
"next",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"source",
"completed",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"source",
"error",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"source",
"unsubscribed",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"spied",
"worker",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"mock",
"subscription",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"mock",
"scheduler",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"mock",
"observer",
"before",
"connect",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"mock",
"observer",
"after",
"connect",
")",
";",
"}"
]
|
[
"select",
"from",
"the",
"landsat",
"file"
]
| [
"private",
"list",
"<",
"string",
">",
"select",
"landsat",
"file",
"(",
"final",
"configuration",
"conf",
",",
"final",
"string",
"sql",
",",
"final",
"object",
"args",
")",
"throws",
"exception",
"{",
"/",
"/",
"there",
"'",
"s",
"a",
"limit",
"on",
"the",
"number",
"of",
"rows",
"to",
"read",
";",
"this",
"is",
"larger",
"/",
"/",
"than",
"the",
"select",
"limit",
"call",
"to",
"catch",
"any",
"failure",
"where",
"more",
"than",
"/",
"/",
"that",
"is",
"returned",
",",
"newline",
"parsing",
"fails",
",",
"etc",
"etc",
"return",
"parse",
"to",
"lines",
"(",
"select",
"(",
"get",
"landsat",
"f",
"s",
"(",
")",
",",
"get",
"landsat",
"g",
"z",
"(",
")",
",",
"conf",
",",
"sql",
",",
"args",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"action",
"used",
"to",
"show",
"this",
"provider"
]
| [
"docking",
"action",
"if",
"get",
"show",
"provider",
"action",
"(",
")",
"{",
"create",
"show",
"provider",
"action",
"(",
")",
";",
"return",
"show",
"provider",
"action",
";",
"}"
]
|
[
"allow",
"map",
"access",
"to",
"the",
"java",
"mail",
"properties",
"of",
"this",
"sender",
",",
"with",
"the",
"option",
"to",
"add",
"or",
"override",
"specific",
"entries",
"useful",
"for",
"specifying",
"entries",
"directly",
",",
"for",
"example",
"via",
"\"",
"java",
"mail",
"properties",
"[",
"mail",
"smtp",
"auth",
"]",
"\""
]
| [
"public",
"properties",
"get",
"java",
"mail",
"properties",
"(",
")",
"{",
"return",
"this",
"java",
"mail",
"properties",
";",
"}"
]
|
[
"parse",
"the",
"origin",
"from",
"given",
"http",
"request"
]
| [
"string",
"parse",
"origin",
"(",
"http",
"servlet",
"request",
"request",
")",
";"
]
|
[
"tests",
"that",
"exactly",
"one",
"resource",
"manager",
"is",
"elected",
"as",
"the",
"leader"
]
| [
"public",
"void",
"test",
"resource",
"manager",
"leader",
"election",
"(",
")",
"throws",
"exception",
"{",
"leader",
"contender",
"leader",
"contender",
"1",
"=",
"mock",
"(",
"leader",
"contender",
"class",
")",
";",
"leader",
"contender",
"leader",
"contender",
"2",
"=",
"mock",
"(",
"leader",
"contender",
"class",
")",
";",
"leader",
"election",
"service",
"leader",
"election",
"service",
"1",
"=",
"embedded",
"ha",
"services",
"get",
"resource",
"manager",
"leader",
"election",
"service",
"(",
")",
";",
"leader",
"election",
"service",
"leader",
"election",
"service",
"2",
"=",
"embedded",
"ha",
"services",
"get",
"resource",
"manager",
"leader",
"election",
"service",
"(",
")",
";",
"leader",
"election",
"service",
"1",
"start",
"(",
"leader",
"contender",
"1",
")",
";",
"leader",
"election",
"service",
"2",
"start",
"(",
"leader",
"contender",
"2",
")",
";",
"argument",
"captor",
"<",
"uuid",
">",
"leader",
"id",
"argument",
"captor",
"1",
"=",
"argument",
"captor",
"for",
"class",
"(",
"uuid",
"class",
")",
";",
"argument",
"captor",
"<",
"uuid",
">",
"leader",
"id",
"argument",
"captor",
"2",
"=",
"argument",
"captor",
"for",
"class",
"(",
"uuid",
"class",
")",
";",
"verify",
"(",
"leader",
"contender",
"1",
",",
"at",
"least",
"(",
"0",
")",
")",
"grant",
"leadership",
"(",
"leader",
"id",
"argument",
"captor",
"1",
"capture",
"(",
")",
")",
";",
"verify",
"(",
"leader",
"contender",
"2",
",",
"at",
"least",
"(",
"0",
")",
")",
"grant",
"leadership",
"(",
"leader",
"id",
"argument",
"captor",
"2",
"capture",
"(",
")",
")",
";",
"assert",
"true",
"(",
"leader",
"id",
"argument",
"captor",
"1",
"get",
"all",
"values",
"(",
")",
"is",
"empty",
"(",
")",
"^",
"leader",
"id",
"argument",
"captor",
"2",
"get",
"all",
"values",
"(",
")",
"is",
"empty",
"(",
")",
")",
";",
"}"
]
|
[
"creates",
"an",
"empty",
"{",
"@",
"code",
"priority",
"queue",
"}",
"with",
"the",
"ordering",
"given",
"by",
"its",
"elements",
"'",
"natural",
"ordering"
]
| [
"public",
"static",
"<",
"e",
"extends",
"comparable",
">",
"priority",
"queue",
"<",
"e",
">",
"new",
"priority",
"queue",
"(",
")",
"{",
"return",
"new",
"priority",
"queue",
"<",
"e",
">",
"(",
")",
";",
"}"
]
|
[
"pops",
"the",
"first",
"different",
"state",
"from",
"the",
"supplied",
"element"
]
| [
"@",
"nullable",
"editor",
"element",
"pop",
"(",
"@",
"non",
"null",
"editor",
"element",
"element",
")",
"{",
"if",
"(",
"stack",
"empty",
"(",
")",
")",
"return",
"null",
";",
"byte",
"[",
"]",
"element",
"bytes",
"=",
"get",
"bytes",
"(",
"element",
")",
";",
"byte",
"[",
"]",
"stack",
"data",
"=",
"null",
";",
"while",
"(",
"!",
"stack",
"empty",
"(",
")",
"&",
"&",
"stack",
"data",
"=",
"=",
"null",
")",
"{",
"byte",
"[",
"]",
"top",
"data",
"=",
"stack",
"pop",
"(",
")",
";",
"if",
"(",
"!",
"arrays",
"equals",
"(",
"top",
"data",
",",
"element",
"bytes",
")",
")",
"{",
"stack",
"data",
"=",
"top",
"data",
";",
"}",
"}",
"if",
"(",
"stack",
"data",
"=",
"=",
"null",
")",
"return",
"null",
";",
"parcel",
"parcel",
"=",
"parcel",
"obtain",
"(",
")",
";",
"try",
"{",
"parcel",
"unmarshall",
"(",
"stack",
"data",
",",
"0",
",",
"stack",
"data",
"length",
")",
";",
"parcel",
"set",
"data",
"position",
"(",
"0",
")",
";",
"return",
"parcel",
"read",
"parcelable",
"(",
"editor",
"element",
"class",
"get",
"class",
"loader",
"(",
")",
")",
";",
"}",
"finally",
"{",
"parcel",
"recycle",
"(",
")",
";",
"}",
"}"
]
|
[
"resets",
"read",
"and",
"write",
"views",
"and",
"should",
"only",
"be",
"used",
"on",
"compaction",
"partition"
]
| [
"public",
"void",
"reset",
"r",
"w",
"views",
"(",
")",
"{",
"this",
"write",
"view",
"reset",
"to",
"(",
"0l",
")",
";",
"this",
"read",
"view",
"set",
"read",
"position",
"(",
"0l",
")",
";",
"}"
]
|
[
"returns",
"the",
"size",
"of",
"the",
"array",
"(",
"number",
"of",
"elements",
"element",
"size",
")"
]
| [
"public",
"big",
"integer",
"get",
"size",
"(",
")",
"{",
"return",
"size",
";",
"}"
]
|
[
"run",
"game",
"loop"
]
| [
"public",
"void",
"run",
"(",
")",
"{",
"logger",
"info",
"(",
"\"",
"start",
"game",
"\"",
")",
";",
"is",
"running",
"=",
"true",
";",
"var",
"thread",
"=",
"new",
"thread",
"(",
"this",
":",
":",
"game",
"loop",
")",
";",
"thread",
"start",
"(",
")",
";",
"}"
]
|
[
"callback",
"on",
"a",
"read",
"operation",
"retried"
]
| [
"void",
"read",
"retry",
"event",
"(",
"string",
"text",
",",
"i",
"o",
"exception",
"ex",
",",
"int",
"attempts",
",",
"boolean",
"idempotent",
")",
"{",
"read",
"throttle",
"events",
"increment",
"and",
"get",
"(",
")",
";",
"retry",
"event",
"(",
"text",
",",
"ex",
",",
"attempts",
",",
"true",
")",
";",
"}"
]
|
[
"releases",
"a",
"value",
"to",
"this",
"bucket",
"and",
"decrements",
"the",
"in",
"use",
"count"
]
| [
"public",
"void",
"release",
"(",
"v",
"value",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"value",
")",
";",
"if",
"(",
"m",
"fix",
"buckets",
"reinitialization",
")",
"{",
"/",
"/",
"proper",
"way",
"preconditions",
"check",
"state",
"(",
"m",
"in",
"use",
"length",
">",
"0",
")",
";",
"m",
"in",
"use",
"length",
"-",
"-",
";",
"add",
"to",
"free",
"list",
"(",
"value",
")",
";",
"}",
"else",
"{",
"/",
"/",
"keep",
"using",
"previous",
"adhoc",
"if",
"(",
"m",
"in",
"use",
"length",
">",
"0",
")",
"{",
"m",
"in",
"use",
"length",
"-",
"-",
";",
"add",
"to",
"free",
"list",
"(",
"value",
")",
";",
"}",
"else",
"{",
"f",
"log",
"e",
"(",
"tag",
",",
"\"",
"tried",
"to",
"release",
"value",
"%",
"s",
"from",
"an",
"empty",
"bucket",
"!",
"\"",
",",
"value",
")",
";",
"}",
"}",
"}"
]
|
[
"parse",
"the",
"{",
"@",
"code",
"jar",
"-",
"file",
"}",
"xml",
"elements"
]
| [
"protected",
"void",
"parse",
"jar",
"files",
"(",
"element",
"persistence",
"unit",
",",
"spring",
"persistence",
"unit",
"info",
"unit",
"info",
")",
"throws",
"i",
"o",
"exception",
"{",
"list",
"<",
"element",
">",
"jars",
"=",
"dom",
"utils",
"get",
"child",
"elements",
"by",
"tag",
"name",
"(",
"persistence",
"unit",
",",
"jar",
"file",
"url",
")",
";",
"for",
"(",
"element",
"element",
":",
"jars",
")",
"{",
"string",
"value",
"=",
"dom",
"utils",
"get",
"text",
"value",
"(",
"element",
")",
"trim",
"(",
")",
";",
"if",
"(",
"string",
"utils",
"has",
"text",
"(",
"value",
")",
")",
"{",
"resource",
"[",
"]",
"resources",
"=",
"this",
"resource",
"pattern",
"resolver",
"get",
"resources",
"(",
"value",
")",
";",
"boolean",
"found",
"=",
"false",
";",
"for",
"(",
"resource",
"resource",
":",
"resources",
")",
"{",
"if",
"(",
"resource",
"exists",
"(",
")",
")",
"{",
"found",
"=",
"true",
";",
"unit",
"info",
"add",
"jar",
"file",
"url",
"(",
"resource",
"get",
"u",
"r",
"l",
"(",
")",
")",
";",
"}",
"}",
"if",
"(",
"!",
"found",
")",
"{",
"/",
"/",
"relative",
"to",
"the",
"persistence",
"unit",
"root",
",",
"according",
"to",
"the",
"jpa",
"spec",
"url",
"root",
"url",
"=",
"unit",
"info",
"get",
"persistence",
"unit",
"root",
"url",
"(",
")",
";",
"if",
"(",
"root",
"url",
"!",
"=",
"null",
")",
"{",
"unit",
"info",
"add",
"jar",
"file",
"url",
"(",
"new",
"url",
"(",
"root",
"url",
",",
"value",
")",
")",
";",
"}",
"else",
"{",
"logger",
"warn",
"(",
"\"",
"cannot",
"resolve",
"jar",
"-",
"file",
"entry",
"[",
"\"",
"+",
"value",
"+",
"\"",
"]",
"in",
"persistence",
"unit",
"'",
"\"",
"+",
"unit",
"info",
"get",
"persistence",
"unit",
"name",
"(",
")",
"+",
"\"",
"'",
"without",
"root",
"url",
"\"",
")",
";",
"}",
"}",
"}",
"}",
"}"
]
|
[
"invoke",
"dynamic",
"bootstrap",
"method",
"in",
"addition",
"to",
"ordinary",
"parameters",
",",
"we",
"also",
"take",
"some",
"parameters",
"defined",
"at",
"the",
"call",
"site",
":",
"{",
"@",
"code",
"initial",
"depth",
"}",
":",
"initial",
"call",
"site",
"depth",
"this",
"is",
"used",
"to",
"exercise",
"megamorphic",
"fallback",
"{",
"@",
"code",
"flavor",
"}",
":",
"type",
"of",
"dynamic",
"call",
"it",
"is",
"(",
"and",
"which",
"part",
"of",
"whitelist",
"to",
"look",
"at",
")",
"{",
"@",
"code",
"args",
"}",
":",
"flavor",
"-",
"specific",
"args",
"and",
"we",
"take",
"the",
"{",
"@",
"link",
"painless",
"lookup",
"}",
"used",
"to",
"compile",
"the",
"script",
"for",
"whitelist",
"checking",
"see",
"https",
":",
"docs",
"oracle",
"comjavasespecsjvmsse",
"7htmljvms",
"-",
"6",
"html",
"#",
"jvms",
"-",
"6",
"5",
"invokedynamic"
]
| [
"public",
"static",
"call",
"site",
"bootstrap",
"(",
"painless",
"lookup",
"painless",
"lookup",
",",
"function",
"table",
"functions",
",",
"map",
"<",
"string",
",",
"object",
">",
"constants",
",",
"method",
"handles",
"lookup",
"method",
"handles",
"lookup",
",",
"string",
"name",
",",
"method",
"type",
"type",
",",
"int",
"initial",
"depth",
",",
"int",
"flavor",
",",
"object",
"args",
")",
"{",
"/",
"/",
"validate",
"arguments",
"switch",
"(",
"flavor",
")",
"{",
"/",
"/",
"\"",
"function",
"-",
"call",
"\"",
"like",
"things",
"get",
"a",
"polymorphic",
"cache",
"case",
"method",
"call",
":",
"if",
"(",
"args",
"length",
"=",
"=",
"0",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"invalid",
"number",
"of",
"parameters",
"for",
"method",
"call",
"\"",
")",
";",
"}",
"if",
"(",
"args",
"[",
"0",
"]",
"instanceof",
"string",
"=",
"=",
"false",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"parameter",
"for",
"method",
"call",
":",
"\"",
"+",
"args",
"[",
"0",
"]",
")",
";",
"}",
"string",
"recipe",
"=",
"(",
"string",
")",
"args",
"[",
"0",
"]",
";",
"int",
"num",
"lambdas",
"=",
"recipe",
"length",
"(",
")",
";",
"if",
"(",
"num",
"lambdas",
">",
"type",
"parameter",
"count",
"(",
")",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"recipe",
"for",
"method",
"call",
":",
"too",
"many",
"bits",
"\"",
")",
";",
"}",
"if",
"(",
"args",
"length",
"!",
"=",
"num",
"lambdas",
"+",
"1",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"number",
"of",
"parameters",
":",
"expected",
"\"",
"+",
"num",
"lambdas",
"+",
"\"",
"references",
"\"",
")",
";",
"}",
"return",
"new",
"pic",
"(",
"painless",
"lookup",
",",
"functions",
",",
"constants",
",",
"method",
"handles",
"lookup",
",",
"name",
",",
"type",
",",
"initial",
"depth",
",",
"flavor",
",",
"args",
")",
";",
"case",
"load",
":",
"case",
"store",
":",
"case",
"array",
"load",
":",
"case",
"array",
"store",
":",
"case",
"iterator",
":",
"case",
"index",
"normalize",
":",
"if",
"(",
"args",
"length",
">",
"0",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"static",
"bootstrap",
"parameters",
"for",
"flavor",
":",
"\"",
"+",
"flavor",
")",
";",
"}",
"return",
"new",
"pic",
"(",
"painless",
"lookup",
",",
"functions",
",",
"constants",
",",
"method",
"handles",
"lookup",
",",
"name",
",",
"type",
",",
"initial",
"depth",
",",
"flavor",
",",
"args",
")",
";",
"case",
"reference",
":",
"if",
"(",
"args",
"length",
"!",
"=",
"1",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"invalid",
"number",
"of",
"parameters",
"for",
"reference",
"call",
"\"",
")",
";",
"}",
"if",
"(",
"args",
"[",
"0",
"]",
"instanceof",
"string",
"=",
"=",
"false",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"parameter",
"for",
"reference",
"call",
":",
"\"",
"+",
"args",
"[",
"0",
"]",
")",
";",
"}",
"return",
"new",
"pic",
"(",
"painless",
"lookup",
",",
"functions",
",",
"constants",
",",
"method",
"handles",
"lookup",
",",
"name",
",",
"type",
",",
"initial",
"depth",
",",
"flavor",
",",
"args",
")",
";",
"/",
"/",
"operators",
"get",
"monomorphic",
"cache",
",",
"with",
"a",
"generic",
"impl",
"for",
"a",
"fallback",
"case",
"unary",
"operator",
":",
"case",
"shift",
"operator",
":",
"case",
"binary",
"operator",
":",
"if",
"(",
"args",
"length",
"!",
"=",
"1",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"invalid",
"number",
"of",
"parameters",
"for",
"operator",
"call",
"\"",
")",
";",
"}",
"if",
"(",
"args",
"[",
"0",
"]",
"instanceof",
"integer",
"=",
"=",
"false",
")",
"{",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"parameter",
"for",
"reference",
"call",
":",
"\"",
"+",
"args",
"[",
"0",
"]",
")",
";",
"}",
"int",
"flags",
"=",
"(",
"int",
")",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"(",
"flags",
"&",
"operator",
"allows",
"null",
")",
"!",
"=",
"0",
"&",
"&",
"flavor",
"!",
"=",
"binary",
"operator",
")",
"{",
"/",
"/",
"we",
"just",
"don",
"'",
"t",
"need",
"it",
"anywhere",
"else",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"this",
"parameter",
"is",
"only",
"supported",
"for",
"binary",
"o",
"p",
"e",
"r",
"a",
"t",
"o",
"rs",
"\"",
")",
";",
"}",
"if",
"(",
"(",
"flags",
"&",
"operator",
"compound",
"assignment",
")",
"!",
"=",
"0",
"&",
"&",
"flavor",
"!",
"=",
"binary",
"operator",
"&",
"&",
"flavor",
"!",
"=",
"shift",
"operator",
")",
"{",
"/",
"/",
"we",
"just",
"don",
"'",
"t",
"need",
"it",
"anywhere",
"else",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"this",
"parameter",
"is",
"only",
"supported",
"for",
"binary",
"/",
"shift",
"o",
"p",
"e",
"r",
"a",
"t",
"o",
"rs",
"\"",
")",
";",
"}",
"return",
"new",
"mic",
"(",
"name",
",",
"type",
",",
"initial",
"depth",
",",
"flavor",
",",
"flags",
")",
";",
"default",
":",
"throw",
"new",
"bootstrap",
"method",
"error",
"(",
"\"",
"illegal",
"static",
"bootstrap",
"parameter",
"for",
"flavor",
":",
"\"",
"+",
"flavor",
")",
";",
"}",
"}"
]
|
[
"called",
"whenever",
"a",
"{",
"@",
"link",
"instruction",
"table",
"data",
"object",
"}",
"has",
"changed",
"note",
":",
"this",
"is",
"our",
"custom",
"version",
"of",
"the",
"update",
"(",
")",
"method",
"in",
"the",
"{",
"@",
"link",
"observer",
"}",
"interface"
]
| [
"public",
"void",
"changed",
"(",
")",
"{",
"fire",
"table",
"data",
"changed",
"(",
")",
";",
"}"
]
|
[
"convert",
"a",
"list",
"of",
"numeric",
"compacted",
"codewords",
"from",
"base",
"900",
"to",
"base",
"10"
]
| [
"private",
"static",
"string",
"decode",
"base",
"9",
"0",
"0to",
"base",
"1",
"0",
"(",
"int",
"[",
"]",
"codewords",
",",
"int",
"count",
")",
"throws",
"format",
"exception",
"{",
"big",
"integer",
"result",
"=",
"big",
"integer",
"zero",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"count",
";",
"i",
"+",
"+",
")",
"{",
"result",
"=",
"result",
"add",
"(",
"exp900",
"[",
"count",
"-",
"i",
"-",
"1",
"]",
"multiply",
"(",
"big",
"integer",
"value",
"of",
"(",
"codewords",
"[",
"i",
"]",
")",
")",
")",
";",
"}",
"string",
"result",
"string",
"=",
"result",
"to",
"string",
"(",
")",
";",
"if",
"(",
"result",
"string",
"char",
"at",
"(",
"0",
")",
"!",
"=",
"'",
"1",
"'",
")",
"{",
"throw",
"format",
"exception",
"get",
"format",
"instance",
"(",
")",
";",
"}",
"return",
"result",
"string",
"substring",
"(",
"1",
")",
";",
"}"
]
|
[
"helper",
"method",
"to",
"get",
"human",
"-",
"readable",
"state",
"of",
"the",
"job"
]
| [
"public",
"static",
"string",
"get",
"job",
"run",
"state",
"(",
"int",
"state",
")",
"{",
"if",
"(",
"state",
"<",
"1",
"|",
"|",
"state",
">",
"=",
"run",
"states",
"length",
")",
"{",
"return",
"unknown",
";",
"}",
"return",
"run",
"states",
"[",
"state",
"]",
";",
"}"
]
|
[
"tests",
"that",
"server",
"accepts",
"connections",
"from",
"clients",
"with",
"a",
"trusted",
"certificate",
"when",
"client",
"authentication",
"is",
"required"
]
| [
"public",
"void",
"test",
"client",
"authentication",
"required",
"valid",
"provided",
"(",
"args",
"args",
")",
"throws",
"exception",
"{",
"args",
"ssl",
"server",
"configs",
"put",
"(",
"broker",
"security",
"configs",
"ssl",
"client",
"auth",
"config",
",",
"\"",
"required",
"\"",
")",
";",
"verify",
"ssl",
"configs",
"(",
"args",
")",
";",
"}"
]
|
[
"implementation",
"of",
"completing",
"a",
"task",
"either",
"{",
"@",
"code",
"v",
"}",
"or",
"{",
"@",
"code",
"t",
"}",
"will",
"be",
"set",
"but",
"not",
"both",
"the",
"{",
"@",
"code",
"final",
"state",
"}",
"is",
"the",
"state",
"to",
"change",
"to",
"from",
"{",
"@",
"link",
"#",
"running",
"}",
"if",
"the",
"state",
"is",
"not",
"in",
"the",
"running",
"state",
"we",
"return",
"{",
"@",
"code",
"false",
"}",
"after",
"waiting",
"for",
"the",
"state",
"to",
"be",
"set",
"to",
"a",
"valid",
"final",
"state",
"(",
"{",
"@",
"link",
"#",
"completed",
"}",
"or",
"{",
"@",
"link",
"#",
"cancelled",
"}",
")"
]
| [
"private",
"boolean",
"complete",
"(",
"@",
"nullable",
"v",
"v",
",",
"@",
"nullable",
"throwable",
"t",
",",
"int",
"final",
"state",
")",
"{",
"boolean",
"do",
"completion",
"=",
"compare",
"and",
"set",
"state",
"(",
"running",
",",
"completing",
")",
";",
"if",
"(",
"do",
"completion",
")",
"{",
"/",
"/",
"if",
"this",
"thread",
"successfully",
"transitioned",
"to",
"completing",
",",
"set",
"the",
"value",
"/",
"/",
"and",
"exception",
"and",
"then",
"release",
"to",
"the",
"final",
"state",
"this",
"value",
"=",
"v",
";",
"this",
"exception",
"=",
"t",
";",
"release",
"shared",
"(",
"final",
"state",
")",
";",
"}",
"else",
"if",
"(",
"get",
"state",
"(",
")",
"=",
"=",
"completing",
")",
"{",
"/",
"/",
"if",
"some",
"other",
"thread",
"is",
"currently",
"completing",
"the",
"future",
",",
"block",
"until",
"/",
"/",
"they",
"are",
"done",
"so",
"we",
"can",
"guarantee",
"completion",
"acquire",
"shared",
"(",
"-",
"1",
")",
";",
"}",
"return",
"do",
"completion",
";",
"}"
]
|
[
"runs",
"the",
"following",
"program",
"[",
"(",
"source",
")",
"-",
">",
"(",
"filter",
")",
"-",
">",
"(",
"map",
")",
"]",
"-",
">",
"[",
"(",
"co",
"-",
"map",
")",
"]",
"-",
">",
"[",
"(",
"map",
")",
"]",
"-",
">",
"[",
"(",
"group",
"byreduce",
")",
"-",
">",
"(",
"sink",
")",
"]"
]
| [
"public",
"void",
"test",
"co",
"stream",
"checkpointing",
"program",
"(",
")",
"throws",
"exception",
"{",
"assert",
"true",
"(",
"\"",
"broken",
"test",
"setup",
"\"",
",",
"num",
"strings",
"%",
"40",
"=",
"=",
"0",
")",
";",
"stream",
"execution",
"environment",
"env",
"=",
"stream",
"execution",
"environment",
"get",
"execution",
"environment",
"(",
")",
";",
"env",
"set",
"parallelism",
"(",
"parallelism",
")",
";",
"env",
"enable",
"checkpointing",
"(",
"50",
")",
";",
"env",
"set",
"restart",
"strategy",
"(",
"restart",
"strategies",
"fixed",
"delay",
"restart",
"(",
"integer",
"max",
"value",
",",
"0l",
")",
")",
";",
"data",
"stream",
"<",
"string",
">",
"stream",
"=",
"env",
"add",
"source",
"(",
"new",
"string",
"generating",
"source",
"function",
"(",
"num",
"strings",
",",
"num",
"strings",
"/",
"5",
")",
")",
";",
"stream",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"first",
"vertex",
",",
"chained",
"to",
"the",
"source",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"filter",
"(",
"new",
"string",
"rich",
"filter",
"function",
"(",
")",
")",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"second",
"vertex",
"-",
"stateful",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"connect",
"(",
"stream",
")",
"flat",
"map",
"(",
"new",
"left",
"identity",
"co",
"rich",
"flat",
"map",
"function",
"(",
")",
")",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"third",
"vertex",
"-",
"stateful",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"map",
"(",
"new",
"string",
"prefix",
"count",
"rich",
"map",
"function",
"(",
")",
")",
"start",
"new",
"chain",
"(",
")",
"map",
"(",
"new",
"stateful",
"counter",
"function",
"(",
")",
")",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"fourth",
"vertex",
"-",
"reducer",
"(",
"failing",
")",
"and",
"the",
"sink",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"key",
"by",
"(",
"\"",
"prefix",
"\"",
")",
"reduce",
"(",
"new",
"once",
"failing",
"reducer",
"(",
"num",
"strings",
")",
")",
"add",
"sink",
"(",
"new",
"sink",
"function",
"<",
"prefix",
"count",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"invoke",
"(",
"prefix",
"count",
"value",
")",
"{",
"/",
"/",
"do",
"nothing",
"here",
"}",
"}",
")",
";",
"test",
"utils",
"try",
"execute",
"(",
"env",
",",
"\"",
"fault",
"tolerance",
"test",
"\"",
")",
";",
"/",
"/",
"validate",
"the",
"result",
"long",
"filter",
"sum",
"=",
"0",
";",
"for",
"(",
"long",
"l",
":",
"string",
"rich",
"filter",
"function",
"counts",
")",
"{",
"filter",
"sum",
"+",
"=",
"l",
";",
"}",
"long",
"co",
"map",
"sum",
"=",
"0",
";",
"for",
"(",
"long",
"l",
":",
"left",
"identity",
"co",
"rich",
"flat",
"map",
"function",
"counts",
")",
"{",
"co",
"map",
"sum",
"+",
"=",
"l",
";",
"}",
"long",
"map",
"sum",
"=",
"0",
";",
"for",
"(",
"long",
"l",
":",
"string",
"prefix",
"count",
"rich",
"map",
"function",
"counts",
")",
"{",
"map",
"sum",
"+",
"=",
"l",
";",
"}",
"long",
"count",
"sum",
"=",
"0",
";",
"for",
"(",
"long",
"l",
":",
"stateful",
"counter",
"function",
"counts",
")",
"{",
"count",
"sum",
"+",
"=",
"l",
";",
"}",
"/",
"/",
"verify",
"that",
"we",
"counted",
"exactly",
"right",
"assert",
"equals",
"(",
"num",
"strings",
",",
"filter",
"sum",
")",
";",
"assert",
"equals",
"(",
"num",
"strings",
",",
"co",
"map",
"sum",
")",
";",
"assert",
"equals",
"(",
"num",
"strings",
",",
"map",
"sum",
")",
";",
"assert",
"equals",
"(",
"num",
"strings",
",",
"count",
"sum",
")",
";",
"}"
]
|
[
"define",
"a",
"new",
"configuration",
"with",
"no",
"special",
"validation",
"logic",
",",
"not",
"dependents",
"and",
"no",
"custom",
"recommender"
]
| [
"public",
"config",
"def",
"define",
"(",
"string",
"name",
",",
"type",
"type",
",",
"object",
"default",
"value",
",",
"importance",
"importance",
",",
"string",
"documentation",
",",
"string",
"group",
",",
"int",
"order",
"in",
"group",
",",
"width",
"width",
",",
"string",
"display",
"name",
")",
"{",
"return",
"define",
"(",
"name",
",",
"type",
",",
"default",
"value",
",",
"null",
",",
"importance",
",",
"documentation",
",",
"group",
",",
"order",
"in",
"group",
",",
"width",
",",
"display",
"name",
",",
"collections",
"<",
"string",
">",
"empty",
"list",
"(",
")",
")",
";",
"}"
]
|
[
"language",
"specified",
"by",
"language",
"name",
"was",
"not",
"found",
"check",
"for",
"valid",
"language",
"translationmigration",
"old",
"language",
"version",
"specified",
"by",
"language",
"version"
]
| [
"private",
"version",
"exception",
"check",
"for",
"language",
"change",
"(",
"language",
"not",
"found",
"exception",
"e",
",",
"int",
"open",
"mode",
")",
"throws",
"language",
"not",
"found",
"exception",
"{",
"language",
"upgrade",
"translator",
"=",
"language",
"translator",
"factory",
"get",
"language",
"translator",
"factory",
"(",
")",
"get",
"language",
"translator",
"(",
"language",
"i",
"d",
",",
"language",
"version",
")",
";",
"if",
"(",
"language",
"upgrade",
"translator",
"=",
"=",
"null",
")",
"{",
"throw",
"e",
";",
"}",
"language",
"=",
"language",
"upgrade",
"translator",
"get",
"old",
"language",
"(",
")",
";",
"language",
"i",
"d",
"=",
"language",
"get",
"language",
"i",
"d",
"(",
")",
";",
"version",
"exception",
"ve",
"=",
"new",
"version",
"exception",
"(",
"true",
")",
";",
"language",
"i",
"d",
"old",
"lang",
"name",
"=",
"language",
"upgrade",
"translator",
"get",
"old",
"language",
"(",
")",
"get",
"language",
"i",
"d",
"(",
")",
";",
"language",
"i",
"d",
"new",
"lang",
"name",
"=",
"language",
"upgrade",
"translator",
"get",
"new",
"language",
"(",
")",
"get",
"language",
"i",
"d",
"(",
")",
";",
"string",
"message",
";",
"if",
"(",
"old",
"lang",
"name",
"equals",
"(",
"new",
"lang",
"name",
")",
")",
"{",
"message",
"=",
"\"",
"program",
"requires",
"a",
"processor",
"language",
"version",
"change",
"\"",
";",
"}",
"else",
"{",
"message",
"=",
"\"",
"program",
"requires",
"a",
"processor",
"language",
"change",
"to",
":",
"\"",
"+",
"new",
"lang",
"name",
";",
"}",
"ve",
"set",
"detail",
"message",
"(",
"message",
")",
";",
"return",
"ve",
";",
"}"
]
|
[
"return",
"paths",
"in",
"the",
"table"
]
| [
"public",
"string",
"[",
"]",
"get",
"paths",
"(",
")",
"{",
"string",
"[",
"]",
"paths",
"=",
"new",
"string",
"[",
"table",
"model",
"get",
"row",
"count",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"paths",
"length",
";",
"i",
"+",
"+",
")",
"{",
"paths",
"[",
"i",
"]",
"=",
"(",
"string",
")",
"table",
"model",
"get",
"value",
"at",
"(",
"i",
",",
"0",
")",
";",
"}",
"return",
"paths",
";",
"}"
]
|
[
"check",
"client",
"running",
"status"
]
| [
"public",
"boolean",
"is",
"running",
"(",
")",
"{",
"return",
"client",
"is",
"running",
"(",
")",
";",
"}"
]
|
[
"not",
"-",
"null",
"value",
";",
"ensure",
"this",
"value",
"is",
"available",
"before",
"it",
"is",
"saved",
"to",
"the",
"database"
]
| [
"public",
"void",
"set",
"simple",
"byte",
"array",
"(",
"@",
"not",
"null",
"byte",
"[",
"]",
"simple",
"byte",
"array",
")",
"{",
"this",
"simple",
"byte",
"array",
"=",
"simple",
"byte",
"array",
";",
"}"
]
|
[
"creates",
"an",
"action",
"to",
"run",
"proguard",
"over",
"the",
"given",
"{",
"@",
"code",
"program",
"jar",
"}",
"with",
"various",
"other",
"given",
"inputs",
"to",
"produce",
"{",
"@",
"code",
"proguard",
"output",
"jar",
"}",
"if",
"requested",
"explicitly",
",",
"or",
"implicitly",
"with",
"-",
"-",
"java",
"optimization",
"mode",
",",
"the",
"action",
"also",
"produces",
"a",
"mapping",
"file",
"(",
"which",
"shows",
"what",
"methods",
"and",
"classes",
"in",
"the",
"output",
"jar",
"correspond",
"to",
"which",
"methods",
"and",
"classes",
"in",
"the",
"input",
")",
"the",
"\"",
"pair",
"\"",
"returned",
"by",
"this",
"method",
"indicates",
"whether",
"a",
"mapping",
"is",
"being",
"produced",
"see",
"the",
"proguard",
"manual",
"for",
"the",
"meaning",
"of",
"the",
"various",
"artifacts",
"in",
"play"
]
| [
"public",
"static",
"proguard",
"output",
"create",
"optimization",
"actions",
"(",
"rule",
"context",
"rule",
"context",
",",
"files",
"to",
"run",
"provider",
"proguard",
",",
"artifact",
"program",
"jar",
",",
"immutable",
"list",
"<",
"artifact",
">",
"proguard",
"specs",
",",
"@",
"nullable",
"artifact",
"proguard",
"seeds",
",",
"@",
"nullable",
"artifact",
"proguard",
"usage",
",",
"@",
"nullable",
"artifact",
"proguard",
"mapping",
",",
"@",
"nullable",
"artifact",
"proguard",
"dictionary",
",",
"nested",
"set",
"<",
"artifact",
">",
"library",
"jars",
",",
"artifact",
"proguard",
"output",
"jar",
",",
"java",
"semantics",
"semantics",
",",
"@",
"nullable",
"integer",
"optimization",
"passes",
",",
"@",
"nullable",
"artifact",
"proguard",
"output",
"map",
")",
"throws",
"interrupted",
"exception",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"proguard",
"specs",
"is",
"empty",
"(",
")",
")",
";",
"proguard",
"output",
"output",
"=",
"get",
"proguard",
"outputs",
"(",
"proguard",
"output",
"jar",
",",
"proguard",
"seeds",
",",
"proguard",
"usage",
",",
"rule",
"context",
",",
"semantics",
",",
"proguard",
"output",
"map",
")",
";",
"if",
"(",
"!",
"library",
"jars",
"is",
"empty",
"(",
")",
"&",
"&",
"!",
"library",
"jars",
"is",
"singleton",
"(",
")",
")",
"{",
"java",
"target",
"attributes",
"attributes",
"=",
"new",
"java",
"target",
"attributes",
"builder",
"(",
"semantics",
")",
"build",
"(",
")",
";",
"artifact",
"combined",
"library",
"jar",
"=",
"get",
"proguard",
"temp",
"artifact",
"(",
"rule",
"context",
",",
"\"",
"combined",
"library",
"jars",
"jar",
"\"",
")",
";",
"new",
"deploy",
"archive",
"builder",
"(",
"semantics",
",",
"rule",
"context",
")",
"set",
"output",
"jar",
"(",
"combined",
"library",
"jar",
")",
"set",
"attributes",
"(",
"attributes",
")",
"add",
"runtime",
"jars",
"(",
"library",
"jars",
")",
"build",
"(",
")",
";",
"library",
"jars",
"=",
"nested",
"set",
"builder",
"create",
"(",
"order",
"stable",
"order",
",",
"combined",
"library",
"jar",
")",
";",
"}",
"boolean",
"filter",
"library",
"jar",
"with",
"program",
"jar",
"=",
"rule",
"context",
"get",
"fragment",
"(",
"android",
"configuration",
"class",
")",
"filter",
"library",
"jar",
"with",
"program",
"jar",
"(",
")",
";",
"if",
"(",
"filter",
"library",
"jar",
"with",
"program",
"jar",
")",
"{",
"preconditions",
"check",
"state",
"(",
"library",
"jars",
"is",
"singleton",
"(",
")",
")",
";",
"artifact",
"library",
"jar",
"=",
"library",
"jars",
"get",
"singleton",
"(",
")",
";",
"artifact",
"filtered",
"library",
"jar",
"=",
"get",
"proguard",
"temp",
"artifact",
"(",
"rule",
"context",
",",
"\"",
"combined",
"library",
"jars",
"filtered",
"jar",
"\"",
")",
";",
"new",
"zip",
"filter",
"builder",
"(",
"rule",
"context",
")",
"set",
"input",
"zip",
"(",
"library",
"jar",
")",
"set",
"output",
"zip",
"(",
"filtered",
"library",
"jar",
")",
"add",
"filter",
"zips",
"(",
"immutable",
"list",
"of",
"(",
"program",
"jar",
")",
")",
"set",
"check",
"hash",
"mismatch",
"mode",
"(",
"zip",
"filter",
"builder",
"check",
"hash",
"mismatch",
"mode",
"none",
")",
"build",
"(",
")",
";",
"library",
"jars",
"=",
"nested",
"set",
"builder",
"create",
"(",
"order",
"stable",
"order",
",",
"filtered",
"library",
"jar",
")",
";",
"}",
"if",
"(",
"optimization",
"passes",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"run",
"proguard",
"as",
"a",
"single",
"step",
"spawn",
"action",
"builder",
"proguard",
"action",
"=",
"new",
"spawn",
"action",
"builder",
"(",
")",
";",
"custom",
"command",
"line",
"builder",
"command",
"line",
"=",
"custom",
"command",
"line",
"builder",
"(",
")",
";",
"default",
"action",
"(",
"proguard",
"action",
",",
"command",
"line",
",",
"proguard",
",",
"program",
"jar",
",",
"proguard",
"specs",
",",
"proguard",
"mapping",
",",
"proguard",
"dictionary",
",",
"library",
"jars",
",",
"output",
"get",
"output",
"jar",
"(",
")",
",",
"output",
"get",
"mapping",
"(",
")",
",",
"output",
"get",
"proto",
"mapping",
"(",
")",
",",
"output",
"get",
"seeds",
"(",
")",
",",
"output",
"get",
"usage",
"(",
")",
",",
"output",
"get",
"constant",
"string",
"obfuscated",
"mapping",
"(",
")",
",",
"output",
"get",
"config",
"(",
")",
",",
"\"",
"proguard",
"\"",
")",
";",
"proguard",
"action",
"set",
"progress",
"message",
"(",
"\"",
"trimming",
"binary",
"with",
"proguard",
":",
"%",
"s",
"\"",
",",
"rule",
"context",
"get",
"label",
"(",
")",
")",
"add",
"output",
"(",
"proguard",
"output",
"jar",
")",
";",
"proguard",
"action",
"add",
"command",
"line",
"(",
"command",
"line",
"build",
"(",
")",
")",
";",
"rule",
"context",
"register",
"action",
"(",
"proguard",
"action",
"build",
"(",
"rule",
"context",
")",
")",
";",
"}",
"else",
"{",
"java",
"configuration",
"java",
"configuration",
"=",
"rule",
"context",
"get",
"configuration",
"(",
")",
"get",
"fragment",
"(",
"java",
"configuration",
"class",
")",
";",
"java",
"configuration",
"named",
"label",
"optimizer",
"=",
"java",
"configuration",
"get",
"bytecode",
"optimizer",
"(",
")",
";",
"string",
"mnemonic",
"=",
"optimizer",
"name",
"(",
")",
";",
"optional",
"<",
"label",
">",
"optimizer",
"target",
"=",
"optimizer",
"label",
"(",
")",
";",
"files",
"to",
"run",
"provider",
"executable",
"=",
"null",
";",
"if",
"(",
"optimizer",
"target",
"is",
"present",
"(",
")",
")",
"{",
"transitive",
"info",
"collection",
"optimizer",
"dep",
"=",
"rule",
"context",
"get",
"prerequisite",
"(",
"\"",
":",
"bytecode",
"optimizer",
"\"",
")",
";",
"if",
"(",
"optimizer",
"dep",
"get",
"label",
"(",
")",
"equals",
"(",
"optimizer",
"target",
"get",
"(",
")",
")",
")",
"{",
"executable",
"=",
"optimizer",
"dep",
"get",
"provider",
"(",
"files",
"to",
"run",
"provider",
"class",
")",
";",
"}",
"}",
"else",
"{",
"check",
"state",
"(",
"\"",
"proguard",
"\"",
"equals",
"(",
"mnemonic",
")",
",",
"\"",
"need",
"label",
"to",
"run",
"%",
"s",
"\"",
",",
"mnemonic",
")",
";",
"executable",
"=",
"proguard",
";",
"}",
"check",
"not",
"null",
"(",
"executable",
",",
"\"",
"couldn",
"'",
"t",
"find",
"optimizer",
"%",
"s",
"\"",
",",
"optimizer",
")",
";",
"/",
"/",
"optimization",
"passes",
"have",
"been",
"specified",
",",
"so",
"run",
"proguard",
"in",
"multiple",
"phases",
"artifact",
"last",
"stage",
"output",
"=",
"get",
"proguard",
"temp",
"artifact",
"(",
"rule",
"context",
",",
"\"",
"proguard",
"preoptimization",
"jar",
"\"",
")",
";",
"spawn",
"action",
"builder",
"initial",
"action",
"=",
"new",
"spawn",
"action",
"builder",
"(",
")",
";",
"custom",
"command",
"line",
"builder",
"initial",
"command",
"line",
"=",
"custom",
"command",
"line",
"builder",
"(",
")",
";",
"default",
"action",
"(",
"initial",
"action",
",",
"initial",
"command",
"line",
",",
"proguard",
",",
"program",
"jar",
",",
"proguard",
"specs",
",",
"proguard",
"mapping",
",",
"proguard",
"dictionary",
",",
"library",
"jars",
",",
"output",
"get",
"output",
"jar",
"(",
")",
",",
"/",
"*",
"proguard",
"output",
"map",
"*",
"/",
"null",
",",
"/",
"*",
"proguard",
"output",
"proto",
"map",
"*",
"/",
"null",
",",
"output",
"get",
"seeds",
"(",
")",
",",
"/",
"/",
"pro",
"guard",
"only",
"prints",
"seeds",
"during",
"initial",
"and",
"normal",
"runtypes",
"/",
"*",
"proguard",
"usage",
"*",
"/",
"null",
",",
"/",
"*",
"constant",
"string",
"obfuscated",
"mapping",
"*",
"/",
"null",
",",
"/",
"*",
"proguard",
"config",
"output",
"*",
"/",
"null",
",",
"mnemonic",
")",
";",
"initial",
"action",
"set",
"progress",
"message",
"(",
"\"",
"trimming",
"binary",
"with",
"%",
"s",
":",
"verification",
"/",
"shrinking",
"pass",
"\"",
",",
"mnemonic",
")",
"add",
"output",
"(",
"last",
"stage",
"output",
")",
"set",
"mnemonic",
"(",
"mnemonic",
")",
";",
"initial",
"command",
"line",
"add",
"(",
"\"",
"-",
"runtype",
"initial",
"\"",
")",
"add",
"exec",
"path",
"(",
"\"",
"-",
"nextstageoutput",
"\"",
",",
"last",
"stage",
"output",
")",
";",
"initial",
"action",
"add",
"command",
"line",
"(",
"initial",
"command",
"line",
"build",
"(",
")",
")",
";",
"rule",
"context",
"register",
"action",
"(",
"initial",
"action",
"build",
"(",
"rule",
"context",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"=",
"optimization",
"passes",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"java",
"configuration",
"split",
"bytecode",
"optimization",
"pass",
"(",
")",
")",
"{",
"last",
"stage",
"output",
"=",
"create",
"single",
"optimization",
"action",
"(",
"\"",
"initial",
"\"",
",",
"rule",
"context",
",",
"mnemonic",
",",
"i",
",",
"executable",
",",
"program",
"jar",
",",
"proguard",
"specs",
",",
"proguard",
"mapping",
",",
"proguard",
"dictionary",
",",
"library",
"jars",
",",
"output",
",",
"last",
"stage",
"output",
")",
";",
"last",
"stage",
"output",
"=",
"create",
"single",
"optimization",
"action",
"(",
"\"",
"final",
"\"",
",",
"rule",
"context",
",",
"mnemonic",
",",
"i",
",",
"executable",
",",
"program",
"jar",
",",
"proguard",
"specs",
",",
"proguard",
"mapping",
",",
"proguard",
"dictionary",
",",
"library",
"jars",
",",
"output",
",",
"last",
"stage",
"output",
")",
";",
"}",
"else",
"{",
"last",
"stage",
"output",
"=",
"create",
"single",
"optimization",
"action",
"(",
"/",
"*",
"runtype",
"suffix",
"*",
"/",
"\"",
"\"",
",",
"rule",
"context",
",",
"mnemonic",
",",
"i",
",",
"executable",
",",
"program",
"jar",
",",
"proguard",
"specs",
",",
"proguard",
"mapping",
",",
"proguard",
"dictionary",
",",
"library",
"jars",
",",
"output",
",",
"last",
"stage",
"output",
")",
";",
"}",
"}",
"spawn",
"action",
"builder",
"final",
"action",
"=",
"new",
"spawn",
"action",
"builder",
"(",
")",
";",
"custom",
"command",
"line",
"builder",
"final",
"command",
"line",
"=",
"custom",
"command",
"line",
"builder",
"(",
")",
";",
"default",
"action",
"(",
"final",
"action",
",",
"final",
"command",
"line",
",",
"proguard",
",",
"program",
"jar",
",",
"proguard",
"specs",
",",
"proguard",
"mapping",
",",
"proguard",
"dictionary",
",",
"library",
"jars",
",",
"output",
"get",
"output",
"jar",
"(",
")",
",",
"output",
"get",
"mapping",
"(",
")",
",",
"output",
"get",
"proto",
"mapping",
"(",
")",
",",
"/",
"*",
"proguard",
"seeds",
"*",
"/",
"null",
",",
"/",
"/",
"runtype",
"final",
"does",
"not",
"produce",
"seeds",
"output",
"get",
"usage",
"(",
")",
",",
"output",
"get",
"constant",
"string",
"obfuscated",
"mapping",
"(",
")",
",",
"output",
"get",
"config",
"(",
")",
",",
"mnemonic",
")",
";",
"final",
"action",
"set",
"progress",
"message",
"(",
"\"",
"trimming",
"binary",
"with",
"%",
"s",
":",
"obfuscation",
"and",
"final",
"output",
"pass",
"\"",
",",
"mnemonic",
")",
"add",
"input",
"(",
"last",
"stage",
"output",
")",
"add",
"output",
"(",
"proguard",
"output",
"jar",
")",
";",
"final",
"command",
"line",
"add",
"(",
"\"",
"-",
"runtype",
"final",
"\"",
")",
"add",
"exec",
"path",
"(",
"\"",
"-",
"laststageoutput",
"\"",
",",
"last",
"stage",
"output",
")",
";",
"final",
"action",
"add",
"command",
"line",
"(",
"final",
"command",
"line",
"build",
"(",
")",
")",
";",
"rule",
"context",
"register",
"action",
"(",
"final",
"action",
"build",
"(",
"rule",
"context",
")",
")",
";",
"}",
"return",
"output",
";",
"}"
]
|
[
"initialize",
"the",
"capacity",
"information",
"of",
"the",
"tenant",
"if",
"the",
"quota",
"is",
"reached",
",",
"the",
"capacity",
"will",
"be",
"automatically",
"expanded",
"to",
"reduce",
"the",
"operation",
"and",
"maintenance",
"cos"
]
| [
"public",
"boolean",
"init",
"tenant",
"capacity",
"(",
"string",
"tenant",
")",
"{",
"return",
"init",
"tenant",
"capacity",
"(",
"tenant",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
")",
";",
"}"
]
|
[
"compares",
"the",
"two",
"specified",
"{",
"@",
"code",
"int",
"}",
"values",
",",
"treating",
"them",
"as",
"unsigned",
"values",
"between",
"{",
"@",
"code",
"0",
"}",
"and",
"{",
"@",
"code",
"2",
"^",
"32",
"-",
"1",
"}",
"inclusive",
"<",
"b",
">",
"java",
"8",
"users",
":",
"<",
"b",
">",
"use",
"{",
"@",
"link",
"integer",
"#",
"compare",
"unsigned",
"(",
"int",
",",
"int",
")",
"}",
"instead"
]
| [
"public",
"static",
"int",
"compare",
"(",
"int",
"a",
",",
"int",
"b",
")",
"{",
"return",
"ints",
"compare",
"(",
"flip",
"(",
"a",
")",
",",
"flip",
"(",
"b",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"target",
"model",
"class",
"that",
"should",
"be",
"used",
"to",
"deserialize",
"the",
"input",
"data",
"this",
"function",
"can",
"be",
"invoked",
"for",
"any",
"ofone",
"of",
"composed",
"models",
"with",
"discriminator",
"mappings",
"the",
"discriminator",
"mappings",
"are",
"used",
"to",
"determine",
"the",
"target",
"model",
"class"
]
| [
"class",
"<",
"?",
">",
"get",
"class",
"for",
"element",
"(",
"json",
"node",
"node",
",",
"set",
"<",
"class",
"<",
"?",
">",
">",
"visited",
"classes",
")",
"{",
"if",
"(",
"visited",
"classes",
"contains",
"(",
"model",
"class",
")",
")",
"{",
"/",
"/",
"class",
"has",
"already",
"been",
"visited",
"return",
"null",
";",
"}",
"/",
"/",
"determine",
"the",
"value",
"of",
"the",
"discriminator",
"property",
"in",
"the",
"input",
"data",
"string",
"discr",
"value",
"=",
"get",
"discriminator",
"value",
"(",
"node",
")",
";",
"if",
"(",
"discr",
"value",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"class",
"<",
"?",
">",
"cls",
"=",
"discriminator",
"mappings",
"get",
"(",
"discr",
"value",
")",
";",
"/",
"/",
"it",
"may",
"not",
"be",
"sufficient",
"to",
"return",
"this",
"cls",
"directly",
"because",
"that",
"target",
"class",
"/",
"/",
"may",
"itself",
"be",
"a",
"composed",
"schema",
",",
"possibly",
"with",
"its",
"own",
"discriminator",
"visited",
"classes",
"add",
"(",
"model",
"class",
")",
";",
"for",
"(",
"class",
"<",
"?",
">",
"child",
"class",
":",
"discriminator",
"mappings",
"values",
"(",
")",
")",
"{",
"class",
"discriminator",
"mapping",
"child",
"cdm",
"=",
"model",
"discriminators",
"get",
"(",
"child",
"class",
")",
";",
"if",
"(",
"child",
"cdm",
"=",
"=",
"null",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"!",
"discriminator",
"name",
"equals",
"(",
"child",
"cdm",
"discriminator",
"name",
")",
")",
"{",
"discr",
"value",
"=",
"get",
"discriminator",
"value",
"(",
"node",
")",
";",
"if",
"(",
"discr",
"value",
"=",
"=",
"null",
")",
"{",
"continue",
";",
"}",
"}",
"if",
"(",
"child",
"cdm",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"recursively",
"traverse",
"the",
"discriminator",
"mappings",
"class",
"<",
"?",
">",
"child",
"discr",
"=",
"child",
"cdm",
"get",
"class",
"for",
"element",
"(",
"node",
",",
"visited",
"classes",
")",
";",
"if",
"(",
"child",
"discr",
"!",
"=",
"null",
")",
"{",
"return",
"child",
"discr",
";",
"}",
"}",
"}",
"return",
"cls",
";",
"}"
]
|
[
"create",
"new",
"instance"
]
| [
"public",
"static",
"remote",
"node",
"new",
"instance",
"(",
"node",
"id",
"node",
"id",
",",
"string",
"http",
"address",
")",
"{",
"remote",
"node",
"remote",
"node",
"=",
"records",
"new",
"record",
"(",
"remote",
"node",
"class",
")",
";",
"remote",
"node",
"set",
"node",
"id",
"(",
"node",
"id",
")",
";",
"remote",
"node",
"set",
"http",
"address",
"(",
"http",
"address",
")",
";",
"return",
"remote",
"node",
";",
"}"
]
|
[
"get",
"additional",
"hints",
"for",
"decoding",
"for",
"example",
"based",
"on",
"the",
"server",
"request",
"or",
"annotations",
"from",
"controller",
"method",
"parameters",
"by",
"default",
",",
"delegate",
"to",
"the",
"decoder",
"if",
"it",
"is",
"an",
"instance",
"of",
"{",
"@",
"link",
"http",
"message",
"decoder",
"}"
]
| [
"protected",
"map",
"<",
"string",
",",
"object",
">",
"get",
"read",
"hints",
"(",
"resolvable",
"type",
"actual",
"type",
",",
"resolvable",
"type",
"element",
"type",
",",
"server",
"http",
"request",
"request",
",",
"server",
"http",
"response",
"response",
")",
"{",
"if",
"(",
"this",
"decoder",
"instanceof",
"http",
"message",
"decoder",
")",
"{",
"http",
"message",
"decoder",
"<",
"?",
">",
"decoder",
"=",
"(",
"http",
"message",
"decoder",
"<",
"?",
">",
")",
"this",
"decoder",
";",
"return",
"decoder",
"get",
"decode",
"hints",
"(",
"actual",
"type",
",",
"element",
"type",
",",
"request",
",",
"response",
")",
";",
"}",
"return",
"hints",
"none",
"(",
")",
";",
"}"
]
|
[
"set",
"the",
"name",
"of",
"this",
"notification"
]
| [
"public",
"void",
"set",
"name",
"(",
"@",
"nullable",
"string",
"name",
")",
"{",
"this",
"name",
"=",
"name",
";",
"}"
]
|
[
"get",
"the",
"md",
"5",
"for",
"the",
"file",
"call",
"get",
"m",
"d",
"5",
"(",
"file",
"input",
"stream",
"is",
",",
"int",
"buf",
"len",
")",
"inside"
]
| [
"public",
"static",
"string",
"get",
"m",
"d",
"5",
"(",
"final",
"file",
"file",
")",
"{",
"if",
"(",
"file",
"=",
"=",
"null",
"|",
"|",
"!",
"file",
"exists",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"file",
"input",
"stream",
"fin",
"=",
"null",
";",
"try",
"{",
"fin",
"=",
"new",
"file",
"input",
"stream",
"(",
"file",
")",
";",
"string",
"md",
"5",
"=",
"get",
"m",
"d",
"5",
"(",
"fin",
")",
";",
"return",
"md",
"5",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"share",
"tinker",
"log",
"e",
"(",
"tag",
",",
"e",
"get",
"message",
"(",
")",
")",
";",
"return",
"null",
";",
"}",
"finally",
"{",
"close",
"quietly",
"(",
"fin",
")",
";",
"}",
"}"
]
|
[
"has",
"this",
"batch",
"used",
"up",
"allowed",
"buffer",
"size"
]
| [
"boolean",
"is",
"full",
"(",
")",
"{",
"return",
"encoded",
"length",
">",
"=",
"buffer",
"size",
";",
"}"
]
|
[
"add",
"a",
"{",
"@",
"link",
"timer",
"listener",
"}",
"that",
"will",
"be",
"executed",
"until",
"it",
"is",
"garbage",
"collected",
"or",
"removed",
"by",
"clearing",
"the",
"returned",
"{",
"@",
"link",
"reference",
"}",
"note",
":",
"it",
"is",
"the",
"responsibility",
"of",
"code",
"that",
"adds",
"a",
"listener",
"via",
"this",
"method",
"to",
"clear",
"this",
"listener",
"when",
"completed",
"<",
"blockquote",
">",
"{",
"@",
"code",
"add",
"a",
"timer",
"listener",
"reference",
"<",
"timer",
"listener",
">",
"listener",
"=",
"hystrix",
"timer",
"get",
"instance",
"(",
")",
"add",
"timer",
"listener",
"(",
"listener",
"impl",
")",
";",
"sometime",
"later",
",",
"often",
"in",
"a",
"thread",
"shutdown",
",",
"request",
"cleanup",
",",
"servlet",
"filter",
"or",
"something",
"similar",
"the",
"listener",
"must",
"be",
"shutdown",
"via",
"the",
"clear",
"(",
")",
"method",
"listener",
"clear",
"(",
")",
";",
"}",
"<",
"blockquote",
">"
]
| [
"public",
"reference",
"<",
"timer",
"listener",
">",
"add",
"timer",
"listener",
"(",
"final",
"timer",
"listener",
"listener",
")",
"{",
"start",
"thread",
"if",
"needed",
"(",
")",
";",
"/",
"/",
"add",
"the",
"listener",
"runnable",
"r",
"=",
"new",
"runnable",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"try",
"{",
"listener",
"tick",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"logger",
"error",
"(",
"\"",
"failed",
"while",
"ticking",
"timer",
"listener",
"\"",
",",
"e",
")",
";",
"}",
"}",
"}",
";",
"scheduled",
"future",
"<",
"?",
">",
"f",
"=",
"executor",
"get",
"(",
")",
"get",
"thread",
"pool",
"(",
")",
"schedule",
"at",
"fixed",
"rate",
"(",
"r",
",",
"listener",
"get",
"interval",
"time",
"in",
"milliseconds",
"(",
")",
",",
"listener",
"get",
"interval",
"time",
"in",
"milliseconds",
"(",
")",
",",
"time",
"unit",
"milliseconds",
")",
";",
"return",
"new",
"timer",
"reference",
"(",
"listener",
",",
"f",
")",
";",
"}"
]
|
[
"get",
"the",
"value",
"as",
"integer"
]
| [
"public",
"big",
"integer",
"get",
"integer",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"type",
"!",
"=",
"der",
"parser",
"integer",
")",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"invalid",
"der",
":",
"object",
"is",
"not",
"integer",
"\"",
")",
";",
"/",
"/",
"$",
"non",
"-",
"nls",
"-",
"1",
"$",
"return",
"new",
"big",
"integer",
"(",
"value",
")",
";",
"}"
]
|
[
"map",
"the",
"route",
"for",
"http",
"head",
"requests"
]
| [
"public",
"void",
"head",
"(",
"string",
"path",
",",
"string",
"accept",
"type",
",",
"template",
"view",
"route",
"route",
",",
"template",
"engine",
"engine",
")",
"{",
"add",
"route",
"(",
"http",
"method",
"head",
",",
"template",
"view",
"route",
"impl",
"create",
"(",
"path",
",",
"accept",
"type",
",",
"route",
",",
"engine",
")",
")",
";",
"}"
]
|
[
"match",
"the",
"beginning",
"of",
"the",
"given",
"path",
"and",
"return",
"the",
"remaining",
"portion",
"not",
"covered",
"by",
"this",
"pattern",
"this",
"is",
"useful",
"for",
"matching",
"nested",
"routes",
"where",
"the",
"path",
"is",
"matched",
"incrementally",
"at",
"each",
"level"
]
| [
"public",
"path",
"remaining",
"match",
"info",
"match",
"start",
"of",
"path",
"(",
"path",
"container",
"path",
"container",
")",
"{",
"if",
"(",
"this",
"head",
"=",
"=",
"null",
")",
"{",
"return",
"new",
"path",
"remaining",
"match",
"info",
"(",
"empty",
"path",
",",
"path",
"container",
")",
";",
"}",
"else",
"if",
"(",
"!",
"has",
"length",
"(",
"path",
"container",
")",
")",
"{",
"return",
"null",
";",
"}",
"matching",
"context",
"matching",
"context",
"=",
"new",
"matching",
"context",
"(",
"path",
"container",
",",
"true",
")",
";",
"matching",
"context",
"set",
"match",
"allow",
"extra",
"path",
"(",
")",
";",
"boolean",
"matches",
"=",
"this",
"head",
"matches",
"(",
"0",
",",
"matching",
"context",
")",
";",
"if",
"(",
"!",
"matches",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"path",
"container",
"path",
"matched",
";",
"path",
"container",
"path",
"remaining",
";",
"if",
"(",
"matching",
"context",
"remaining",
"path",
"index",
"=",
"=",
"path",
"container",
"elements",
"(",
")",
"size",
"(",
")",
")",
"{",
"path",
"matched",
"=",
"path",
"container",
";",
"path",
"remaining",
"=",
"empty",
"path",
";",
"}",
"else",
"{",
"path",
"matched",
"=",
"path",
"container",
"sub",
"path",
"(",
"0",
",",
"matching",
"context",
"remaining",
"path",
"index",
")",
";",
"path",
"remaining",
"=",
"path",
"container",
"sub",
"path",
"(",
"matching",
"context",
"remaining",
"path",
"index",
")",
";",
"}",
"return",
"new",
"path",
"remaining",
"match",
"info",
"(",
"path",
"matched",
",",
"path",
"remaining",
",",
"matching",
"context",
"get",
"path",
"match",
"result",
"(",
")",
")",
";",
"}",
"}",
"/",
"*",
"*",
"*",
"determine",
"the",
"pattern",
"-",
"mapped",
"part",
"for",
"the",
"given",
"path",
"*",
"<",
"p",
">",
"for",
"example",
":",
"<",
"ul",
">",
"*",
"<",
"li",
">",
"'",
"{",
"@",
"code",
"/",
"docs",
"/",
"cvs",
"/",
"commit",
"html",
"}",
"'",
"and",
"'",
"{",
"@",
"code",
"/",
"docs",
"/",
"cvs",
"/",
"commit",
"html",
"}",
"&",
"rarr",
";",
"'",
"'",
"<",
"/",
"li",
">",
"*",
"<",
"li",
">",
"'",
"{",
"@",
"code",
"/",
"docs",
"/",
"*",
"}",
"'",
"and",
"'",
"{",
"@",
"code",
"/",
"docs",
"/",
"cvs",
"/",
"commit",
"}",
"'",
"&",
"rarr",
";",
"'",
"{",
"@",
"code",
"cvs",
"/",
"commit",
"}",
"'",
"<",
"/",
"li",
">",
"*",
"<",
"li",
">",
"'",
"{",
"@",
"code",
"/",
"docs",
"/",
"cvs",
"/",
"*",
"html",
"}",
"'",
"and",
"'",
"{",
"@",
"code",
"/",
"docs",
"/",
"cvs",
"/",
"commit",
"html",
"}",
"&",
"rarr",
";",
"'",
"{",
"@",
"code",
"commit",
"html",
"}",
"'",
"<",
"/",
"li",
">",
"*",
"<",
"li",
">",
"'",
"{",
"@",
"code",
"/",
"docs"
]
|
[
"put",
"a",
"{",
"@",
"link",
"msf",
"stream",
"}",
"into",
"the",
"stream",
"table",
"at",
"the",
"index",
"location",
"if",
"the",
"index",
"location",
"does",
"not",
"exist",
",",
"then",
"enough",
"dummy",
"streams",
"are",
"added",
"to",
"the",
"table",
"to",
"allow",
"the",
"new",
"{",
"@",
"link",
"msf",
"stream",
"}",
"to",
"be",
"added",
"at",
"the",
"index",
"location"
]
| [
"void",
"set",
"stream",
"(",
"int",
"index",
",",
"msf",
"stream",
"stream",
",",
"task",
"monitor",
"monitor",
")",
"throws",
"cancelled",
"exception",
"{",
"if",
"(",
"index",
"<",
"map",
"stream",
"number",
"to",
"stream",
"size",
"(",
")",
")",
"{",
"map",
"stream",
"number",
"to",
"stream",
"set",
"(",
"index",
",",
"stream",
")",
";",
"}",
"else",
"{",
"for",
"(",
"int",
"i",
"=",
"map",
"stream",
"number",
"to",
"stream",
"size",
"(",
")",
";",
"i",
"<",
"index",
";",
"i",
"+",
"+",
")",
"{",
"monitor",
"check",
"canceled",
"(",
")",
";",
"map",
"stream",
"number",
"to",
"stream",
"add",
"(",
"null",
")",
";",
"}",
"map",
"stream",
"number",
"to",
"stream",
"add",
"(",
"stream",
")",
";",
"}",
"}"
]
|
[
"expose",
"this",
"{",
"@",
"link",
"listenable",
"future",
"}",
"as",
"a",
"jdk",
"{",
"@",
"link",
"completable",
"future",
"}"
]
| [
"default",
"completable",
"future",
"<",
"t",
">",
"completable",
"(",
")",
"{",
"completable",
"future",
"<",
"t",
">",
"completable",
"=",
"new",
"delegating",
"completable",
"future",
"<",
">",
"(",
"this",
")",
";",
"add",
"callback",
"(",
"completable",
":",
":",
"complete",
",",
"completable",
":",
":",
"complete",
"exceptionally",
")",
";",
"return",
"completable",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"plus",
"with",
"a",
"constant"
]
| [
"public",
"void",
"plus",
"equals",
"(",
"double",
"alpha",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
"data",
"length",
";",
"i",
"+",
"+",
")",
"{",
"this",
"data",
"[",
"i",
"]",
"+",
"=",
"alpha",
";",
"}",
"}"
]
|
[
"gets",
"all",
"the",
"task",
"ids",
"that",
"are",
"running",
"in",
"this",
"worker",
"process",
"(",
"including",
"the",
"task",
"for",
"this",
"task",
")"
]
| [
"public",
"list",
"<",
"integer",
">",
"get",
"this",
"worker",
"tasks",
"(",
")",
"{",
"return",
"worker",
"tasks",
";",
"}"
]
|
[
"return",
"the",
"hql",
"query",
"string",
"that",
"was",
"invalid"
]
| [
"public",
"string",
"get",
"query",
"string",
"(",
")",
"{",
"return",
"(",
"(",
"query",
"exception",
")",
"get",
"cause",
"(",
")",
")",
"get",
"query",
"string",
"(",
")",
";",
"}"
]
|
[
"creates",
"a",
"new",
"{",
"@",
"link",
"job",
"}",
"with",
"no",
"particular",
"{",
"@",
"link",
"cluster",
"}",
"a",
"cluster",
"will",
"be",
"created",
"from",
"the",
"conf",
"parameter",
"only",
"when",
"it",
"'",
"s",
"needed",
"the",
"<",
"code",
">",
"job",
"<",
"code",
">",
"makes",
"a",
"copy",
"of",
"the",
"<",
"code",
">",
"configuration",
"<",
"code",
">",
"so",
"that",
"any",
"necessary",
"internal",
"modifications",
"do",
"not",
"reflect",
"on",
"the",
"incoming",
"parameter"
]
| [
"public",
"static",
"job",
"get",
"instance",
"(",
"cluster",
"ignored",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"get",
"instance",
"(",
")",
";",
"}"
]
|
[
"map",
"the",
"route",
"for",
"http",
"post",
"requests"
]
| [
"public",
"static",
"void",
"post",
"(",
"string",
"path",
",",
"string",
"accept",
"type",
",",
"route",
"route",
")",
"{",
"get",
"instance",
"(",
")",
"post",
"(",
"path",
",",
"accept",
"type",
",",
"route",
")",
";",
"}"
]
|
[
"get",
"the",
"default",
"extension",
"of",
"{",
"@",
"link",
"service",
"name",
"mapping",
"}"
]
| [
"static",
"service",
"name",
"mapping",
"get",
"default",
"extension",
"(",
")",
"{",
"return",
"get",
"extension",
"loader",
"(",
"service",
"name",
"mapping",
"class",
")",
"get",
"default",
"extension",
"(",
")",
";",
"}"
]
|
[
"2016",
"-",
"11",
"-",
"10",
"07",
":",
"33",
":",
"23",
",",
"-",
"11",
"-",
"10",
"00",
":",
"00",
":",
"00"
]
| [
"public",
"static",
"date",
"begin",
"of",
"date",
"(",
"@",
"not",
"null",
"final",
"date",
"date",
")",
"{",
"return",
"date",
"utils",
"truncate",
"(",
"date",
",",
"calendar",
"date",
")",
";",
"}"
]
|
[
"gets",
"the",
"fully",
"qualified",
"hostname",
"of",
"the",
"task",
"manager",
"based",
"on",
"the",
"network",
"address"
]
| [
"private",
"static",
"string",
"get",
"fqdn",
"host",
"name",
"(",
"inet",
"address",
"inet",
"address",
")",
"{",
"string",
"fqdn",
"host",
"name",
";",
"try",
"{",
"fqdn",
"host",
"name",
"=",
"inet",
"address",
"get",
"canonical",
"host",
"name",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"log",
"warn",
"(",
"\"",
"unable",
"to",
"determine",
"the",
"canonical",
"hostname",
"input",
"split",
"assignment",
"(",
"such",
"as",
"\"",
"+",
"\"",
"for",
"hdfs",
"files",
")",
"may",
"be",
"non",
"-",
"local",
"when",
"the",
"canonical",
"hostname",
"is",
"missing",
"\"",
")",
";",
"log",
"debug",
"(",
"\"",
"get",
"canonical",
"host",
"name",
"(",
")",
"exception",
":",
"\"",
",",
"t",
")",
";",
"fqdn",
"host",
"name",
"=",
"inet",
"address",
"get",
"host",
"address",
"(",
")",
";",
"}",
"return",
"fqdn",
"host",
"name",
";",
"}"
]
|
[
"returns",
"if",
"the",
"welcome",
"message",
"to",
"be",
"displayed",
"will",
"be",
"the",
"enhanced",
"version"
]
| [
"boolean",
"is",
"enhanced",
"(",
")",
";"
]
|
[
"asserts",
"correct",
"reading",
"of",
"standard",
"test",
"data",
"from",
"{",
"@",
"code",
"sample",
"queue",
"}"
]
| [
"private",
"void",
"assert",
"read",
"test",
"data",
"(",
"format",
"start",
"format",
")",
"{",
"assert",
"read",
"test",
"data",
"(",
"start",
"format",
",",
"0",
")",
";",
"}"
]
|
[
"loads",
"the",
"map",
"data",
",",
"given",
"the",
"xml",
"root",
"element"
]
| [
"protected",
"tiled",
"map",
"load",
"tiled",
"map",
"(",
"file",
"handle",
"tmx",
"file",
",",
"p",
"parameter",
",",
"image",
"resolver",
"image",
"resolver",
")",
"{",
"this",
"map",
"=",
"new",
"tiled",
"map",
"(",
")",
";",
"if",
"(",
"parameter",
"!",
"=",
"null",
")",
"{",
"this",
"convert",
"object",
"to",
"tile",
"space",
"=",
"parameter",
"convert",
"object",
"to",
"tile",
"space",
";",
"this",
"flip",
"y",
"=",
"parameter",
"flip",
"y",
";",
"}",
"else",
"{",
"this",
"convert",
"object",
"to",
"tile",
"space",
"=",
"false",
";",
"this",
"flip",
"y",
"=",
"true",
";",
"}",
"string",
"map",
"orientation",
"=",
"root",
"get",
"attribute",
"(",
"\"",
"orientation",
"\"",
",",
"null",
")",
";",
"int",
"map",
"width",
"=",
"root",
"get",
"int",
"attribute",
"(",
"\"",
"width",
"\"",
",",
"0",
")",
";",
"int",
"map",
"height",
"=",
"root",
"get",
"int",
"attribute",
"(",
"\"",
"height",
"\"",
",",
"0",
")",
";",
"int",
"tile",
"width",
"=",
"root",
"get",
"int",
"attribute",
"(",
"\"",
"tilewidth",
"\"",
",",
"0",
")",
";",
"int",
"tile",
"height",
"=",
"root",
"get",
"int",
"attribute",
"(",
"\"",
"tileheight",
"\"",
",",
"0",
")",
";",
"int",
"hex",
"side",
"length",
"=",
"root",
"get",
"int",
"attribute",
"(",
"\"",
"hexsidelength",
"\"",
",",
"0",
")",
";",
"string",
"stagger",
"axis",
"=",
"root",
"get",
"attribute",
"(",
"\"",
"staggeraxis",
"\"",
",",
"null",
")",
";",
"string",
"stagger",
"index",
"=",
"root",
"get",
"attribute",
"(",
"\"",
"staggerindex",
"\"",
",",
"null",
")",
";",
"string",
"map",
"background",
"color",
"=",
"root",
"get",
"attribute",
"(",
"\"",
"backgroundcolor",
"\"",
",",
"null",
")",
";",
"map",
"properties",
"map",
"properties",
"=",
"map",
"get",
"properties",
"(",
")",
";",
"if",
"(",
"map",
"orientation",
"!",
"=",
"null",
")",
"{",
"map",
"properties",
"put",
"(",
"\"",
"orientation",
"\"",
",",
"map",
"orientation",
")",
";",
"}",
"map",
"properties",
"put",
"(",
"\"",
"width",
"\"",
",",
"map",
"width",
")",
";",
"map",
"properties",
"put",
"(",
"\"",
"height",
"\"",
",",
"map",
"height",
")",
";",
"map",
"properties",
"put",
"(",
"\"",
"tilewidth",
"\"",
",",
"tile",
"width",
")",
";",
"map",
"properties",
"put",
"(",
"\"",
"tileheight",
"\"",
",",
"tile",
"height",
")",
";",
"map",
"properties",
"put",
"(",
"\"",
"hexsidelength",
"\"",
",",
"hex",
"side",
"length",
")",
";",
"if",
"(",
"stagger",
"axis",
"!",
"=",
"null",
")",
"{",
"map",
"properties",
"put",
"(",
"\"",
"staggeraxis",
"\"",
",",
"stagger",
"axis",
")",
";",
"}",
"if",
"(",
"stagger",
"index",
"!",
"=",
"null",
")",
"{",
"map",
"properties",
"put",
"(",
"\"",
"staggerindex",
"\"",
",",
"stagger",
"index",
")",
";",
"}",
"if",
"(",
"map",
"background",
"color",
"!",
"=",
"null",
")",
"{",
"map",
"properties",
"put",
"(",
"\"",
"backgroundcolor",
"\"",
",",
"map",
"background",
"color",
")",
";",
"}",
"this",
"map",
"tile",
"width",
"=",
"tile",
"width",
";",
"this",
"map",
"tile",
"height",
"=",
"tile",
"height",
";",
"this",
"map",
"width",
"in",
"pixels",
"=",
"map",
"width",
"*",
"tile",
"width",
";",
"this",
"map",
"height",
"in",
"pixels",
"=",
"map",
"height",
"*",
"tile",
"height",
";",
"if",
"(",
"map",
"orientation",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"\"",
"staggered",
"\"",
"equals",
"(",
"map",
"orientation",
")",
")",
"{",
"if",
"(",
"map",
"height",
">",
"1",
")",
"{",
"this",
"map",
"width",
"in",
"pixels",
"+",
"=",
"tile",
"width",
"/",
"2",
";",
"this",
"map",
"height",
"in",
"pixels",
"=",
"map",
"height",
"in",
"pixels",
"/",
"2",
"+",
"tile",
"height",
"/",
"2",
";",
"}",
"}",
"}",
"element",
"properties",
"=",
"root",
"get",
"child",
"by",
"name",
"(",
"\"",
"properties",
"\"",
")",
";",
"if",
"(",
"properties",
"!",
"=",
"null",
")",
"{",
"load",
"properties",
"(",
"map",
"get",
"properties",
"(",
")",
",",
"properties",
")",
";",
"}",
"array",
"<",
"element",
">",
"tilesets",
"=",
"root",
"get",
"children",
"by",
"name",
"(",
"\"",
"tileset",
"\"",
")",
";",
"for",
"(",
"element",
"element",
":",
"tilesets",
")",
"{",
"load",
"tile",
"set",
"(",
"element",
",",
"tmx",
"file",
",",
"image",
"resolver",
")",
";",
"root",
"remove",
"child",
"(",
"element",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"j",
"=",
"root",
"get",
"child",
"count",
"(",
")",
";",
"i",
"<",
"j",
";",
"i",
"+",
"+",
")",
"{",
"element",
"element",
"=",
"root",
"get",
"child",
"(",
"i",
")",
";",
"load",
"layer",
"(",
"map",
",",
"map",
"get",
"layers",
"(",
")",
",",
"element",
",",
"tmx",
"file",
",",
"image",
"resolver",
")",
";",
"}",
"return",
"map",
";",
"}"
]
|
[
"returns",
"the",
"script",
"author",
"information"
]
| [
"public",
"string",
"get",
"author",
"(",
")",
"{",
"parse",
"header",
"(",
")",
";",
"return",
"author",
";",
"}"
]
|
[
"format",
"url",
"template",
"using",
"given",
"variables"
]
| [
"public",
"string",
"url",
"(",
"map",
"<",
"string",
",",
"string",
">",
"variables",
")",
"{",
"string",
"url",
"=",
"this",
"url",
";",
"/",
"/",
"go",
"through",
"variables",
"and",
"replace",
"placeholders",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"server",
"variable",
">",
"variable",
":",
"this",
"variables",
"entry",
"set",
"(",
")",
")",
"{",
"string",
"name",
"=",
"variable",
"get",
"key",
"(",
")",
";",
"server",
"variable",
"server",
"variable",
"=",
"variable",
"get",
"value",
"(",
")",
";",
"string",
"value",
"=",
"server",
"variable",
"default",
"value",
";",
"if",
"(",
"variables",
"!",
"=",
"null",
"&",
"&",
"variables",
"contains",
"key",
"(",
"name",
")",
")",
"{",
"value",
"=",
"variables",
"get",
"(",
"name",
")",
";",
"if",
"(",
"server",
"variable",
"enum",
"values",
"size",
"(",
")",
">",
"0",
"&",
"&",
"!",
"server",
"variable",
"enum",
"values",
"contains",
"(",
"value",
")",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"\"",
"the",
"variable",
"\"",
"+",
"name",
"+",
"\"",
"in",
"the",
"server",
"url",
"has",
"invalid",
"value",
"\"",
"+",
"value",
"+",
"\"",
"\"",
")",
";",
"}",
"}",
"url",
"=",
"url",
"replace",
"all",
"(",
"\"",
"\\",
"\\",
"{",
"\"",
"+",
"name",
"+",
"\"",
"\\",
"\\",
"}",
"\"",
",",
"value",
")",
";",
"}",
"return",
"url",
";",
"}"
]
|
[
"returns",
"the",
"id",
"of",
"the",
"associated",
"quorum",
"peer",
",",
"which",
"will",
"do",
"for",
"a",
"unique",
"id",
"of",
"this",
"server"
]
| [
"public",
"long",
"get",
"server",
"id",
"(",
")",
"{",
"return",
"self",
"get",
"id",
"(",
")",
";",
"}"
]
|
[
"test",
"that",
"the",
"nn",
"initializes",
"its",
"under",
"-",
"replicated",
"blocks",
"queue",
"before",
"it",
"is",
"ready",
"to",
"exit",
"safemode",
"(",
"hdfs",
"-",
"1476",
")"
]
| [
"public",
"void",
"test",
"initialize",
"repl",
"queues",
"early",
"(",
")",
"throws",
"exception",
"{",
"log",
"info",
"(",
"\"",
"starting",
"test",
"initialize",
"repl",
"queues",
"early",
"\"",
")",
";",
"/",
"/",
"spray",
"the",
"blocks",
"around",
"the",
"cluster",
"when",
"we",
"add",
"d",
"ns",
"instead",
"of",
"/",
"/",
"concentrating",
"all",
"blocks",
"on",
"the",
"first",
"node",
"block",
"manager",
"test",
"util",
"set",
"writing",
"prefers",
"local",
"node",
"(",
"cluster",
"get",
"namesystem",
"(",
")",
"get",
"block",
"manager",
"(",
")",
",",
"false",
")",
";",
"cluster",
"start",
"data",
"nodes",
"(",
"conf",
",",
"2",
",",
"true",
",",
"startup",
"option",
"regular",
",",
"null",
")",
";",
"cluster",
"wait",
"active",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"creating",
"files",
"\"",
")",
";",
"d",
"f",
"s",
"test",
"util",
"create",
"file",
"(",
"fs",
",",
"test",
"path",
",",
"15",
"*",
"block",
"size",
",",
"(",
"short",
")",
"1",
",",
"1l",
")",
";",
"log",
"info",
"(",
"\"",
"stopping",
"all",
"data",
"nodes",
"\"",
")",
";",
"list",
"<",
"data",
"node",
"properties",
">",
"dnprops",
"=",
"lists",
"new",
"linked",
"list",
"(",
")",
";",
"dnprops",
"add",
"(",
"cluster",
"stop",
"data",
"node",
"(",
"0",
")",
")",
";",
"dnprops",
"add",
"(",
"cluster",
"stop",
"data",
"node",
"(",
"0",
")",
")",
";",
"dnprops",
"add",
"(",
"cluster",
"stop",
"data",
"node",
"(",
"0",
")",
")",
";",
"cluster",
"get",
"configuration",
"(",
"0",
")",
"set",
"float",
"(",
"d",
"f",
"s",
"config",
"keys",
"dfs",
"namenode",
"repl",
"queue",
"threshold",
"pct",
"key",
",",
"1f",
"/",
"1",
"5f",
")",
";",
"log",
"info",
"(",
"\"",
"restarting",
"name",
"node",
"\"",
")",
";",
"cluster",
"restart",
"name",
"node",
"(",
")",
";",
"final",
"name",
"node",
"nn",
"=",
"cluster",
"get",
"name",
"node",
"(",
")",
";",
"string",
"status",
"=",
"nn",
"get",
"namesystem",
"(",
")",
"get",
"safemode",
"(",
")",
";",
"assert",
"equals",
"(",
"\"",
"safe",
"mode",
"is",
"on",
"the",
"reported",
"blocks",
"0",
"needs",
"additional",
"\"",
"+",
"\"",
"14",
"blocks",
"to",
"reach",
"the",
"threshold",
"0",
"9990",
"of",
"total",
"blocks",
"15",
"\"",
"+",
"newline",
"+",
"\"",
"the",
"minimum",
"number",
"of",
"live",
"datanodes",
"is",
"not",
"required",
"\"",
"+",
"\"",
"safe",
"mode",
"will",
"be",
"turned",
"off",
"automatically",
"once",
"the",
"thresholds",
"have",
"\"",
"+",
"\"",
"been",
"reached",
"\"",
",",
"status",
")",
";",
"assert",
"false",
"(",
"\"",
"mis",
"-",
"replicated",
"block",
"queues",
"should",
"not",
"be",
"initialized",
"\"",
"+",
"\"",
"until",
"threshold",
"is",
"crossed",
"\"",
",",
"name",
"node",
"adapter",
"safe",
"mode",
"initialized",
"repl",
"queues",
"(",
"nn",
")",
")",
";",
"log",
"info",
"(",
"\"",
"restarting",
"one",
"data",
"node",
"\"",
")",
";",
"cluster",
"restart",
"data",
"node",
"(",
"dnprops",
"remove",
"(",
"0",
")",
")",
";",
"/",
"/",
"wait",
"for",
"block",
"reports",
"from",
"all",
"attached",
"storages",
"of",
"/",
"/",
"the",
"restarted",
"dn",
"to",
"come",
"in",
"generic",
"test",
"utils",
"wait",
"for",
"(",
"new",
"supplier",
"<",
"boolean",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"get",
"(",
")",
"{",
"return",
"get",
"long",
"counter",
"(",
"\"",
"storage",
"block",
"report",
"num",
"ops",
"\"",
",",
"get",
"metrics",
"(",
"nn",
"metrics",
")",
")",
"=",
"=",
"cluster",
"get",
"storages",
"per",
"datanode",
"(",
")",
";",
"}",
"}",
",",
"10",
",",
"10000",
")",
";",
"final",
"long",
"safe",
"=",
"name",
"node",
"adapter",
"get",
"safe",
"mode",
"safe",
"blocks",
"(",
"nn",
")",
";",
"assert",
"true",
"(",
"\"",
"expected",
"first",
"block",
"report",
"to",
"make",
"some",
"blocks",
"safe",
"\"",
",",
"safe",
">",
"0",
")",
";",
"assert",
"true",
"(",
"\"",
"did",
"not",
"expect",
"first",
"block",
"report",
"to",
"make",
"all",
"blocks",
"safe",
"\"",
",",
"safe",
"<",
"15",
")",
";",
"assert",
"true",
"(",
"name",
"node",
"adapter",
"safe",
"mode",
"initialized",
"repl",
"queues",
"(",
"nn",
")",
")",
";",
"/",
"/",
"ensure",
"that",
"under",
"replicated",
"blocks",
"goes",
"up",
"to",
"15",
"-",
"safe",
"misreplicated",
"/",
"/",
"blocks",
"are",
"processed",
"asynchronously",
"so",
"this",
"may",
"take",
"a",
"few",
"seconds",
"/",
"/",
"failure",
"here",
"will",
"manifest",
"as",
"a",
"test",
"timeout",
"block",
"manager",
"test",
"util",
"update",
"state",
"(",
"nn",
"get",
"namesystem",
"(",
")",
"get",
"block",
"manager",
"(",
")",
")",
";",
"long",
"under",
"replicated",
"blocks",
"=",
"nn",
"get",
"namesystem",
"(",
")",
"get",
"under",
"replicated",
"blocks",
"(",
")",
";",
"while",
"(",
"under",
"replicated",
"blocks",
"!",
"=",
"(",
"15",
"-",
"safe",
")",
")",
"{",
"log",
"info",
"(",
"\"",
"under",
"replicated",
"blocks",
"expected",
"=",
"\"",
"+",
"(",
"15",
"-",
"safe",
")",
"+",
"\"",
",",
"actual",
"=",
"\"",
"+",
"under",
"replicated",
"blocks",
")",
";",
"thread",
"sleep",
"(",
"100",
")",
";",
"block",
"manager",
"test",
"util",
"update",
"state",
"(",
"nn",
"get",
"namesystem",
"(",
")",
"get",
"block",
"manager",
"(",
")",
")",
";",
"under",
"replicated",
"blocks",
"=",
"nn",
"get",
"namesystem",
"(",
")",
"get",
"under",
"replicated",
"blocks",
"(",
")",
";",
"}",
"cluster",
"restart",
"data",
"nodes",
"(",
")",
";",
"}"
]
|
[
"sets",
"the",
"default",
"value",
"for",
"{",
"@",
"code",
"type",
"}",
",",
"when",
"dummy",
"value",
"for",
"a",
"parameter",
"of",
"the",
"same",
"type",
"needs",
"to",
"be",
"created",
"in",
"order",
"to",
"invoke",
"a",
"method",
"or",
"constructor",
"the",
"default",
"value",
"isn",
"'",
"t",
"used",
"in",
"testing",
"{",
"@",
"link",
"object",
"#",
"equals",
"}",
"because",
"more",
"than",
"one",
"sample",
"instances",
"are",
"needed",
"for",
"testing",
"inequality"
]
| [
"protected",
"final",
"<",
"t",
">",
"void",
"set",
"default",
"(",
"class",
"<",
"t",
">",
"type",
",",
"t",
"value",
")",
"{",
"tester",
"set",
"default",
"(",
"type",
",",
"value",
")",
";",
"}"
]
|
[
"closes",
"the",
"writer",
"this",
"stops",
"the",
"flushing",
"thread",
"(",
"if",
"there",
"is",
"one",
")"
]
| [
"public",
"void",
"close",
"(",
")",
"{",
"/",
"/",
"make",
"sure",
"we",
"terminate",
"the",
"thread",
"in",
"any",
"case",
"if",
"(",
"output",
"flusher",
"!",
"=",
"null",
")",
"{",
"output",
"flusher",
"terminate",
"(",
")",
";",
"try",
"{",
"output",
"flusher",
"join",
"(",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"/",
"/",
"ignore",
"on",
"close",
"/",
"/",
"restore",
"interrupt",
"flag",
"to",
"fast",
"exit",
"further",
"blocking",
"calls",
"thread",
"current",
"thread",
"(",
")",
"interrupt",
"(",
")",
";",
"}",
"}",
"}"
]
|
[
"create",
"a",
"list",
"of",
"account",
"objects",
"for",
"each",
"account",
"that",
"is",
"acceptable",
"filter",
"out",
"accounts",
"that",
"don",
"'",
"t",
"match",
"the",
"allowable",
"types",
",",
"if",
"provided",
",",
"or",
"that",
"don",
"'",
"t",
"match",
"the",
"allowable",
"accounts",
",",
"if",
"provided"
]
| [
"private",
"array",
"list",
"<",
"account",
">",
"get",
"acceptable",
"account",
"choices",
"(",
"v",
"account",
"manager",
"account",
"manager",
")",
"{",
"final",
"account",
"[",
"]",
"accounts",
"=",
"account",
"manager",
"get",
"accounts",
"(",
"m",
"calling",
"user",
"id",
",",
"null",
")",
";",
"array",
"list",
"<",
"account",
">",
"accounts",
"to",
"populate",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"accounts",
"length",
")",
";",
"for",
"(",
"account",
"account",
":",
"accounts",
")",
"{",
"if",
"(",
"m",
"set",
"of",
"allowable",
"accounts",
"!",
"=",
"null",
"&",
"&",
"!",
"m",
"set",
"of",
"allowable",
"accounts",
"contains",
"(",
"account",
")",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"m",
"set",
"of",
"relevant",
"account",
"types",
"!",
"=",
"null",
"&",
"&",
"!",
"m",
"set",
"of",
"relevant",
"account",
"types",
"contains",
"(",
"account",
"type",
")",
")",
"{",
"continue",
";",
"}",
"accounts",
"to",
"populate",
"add",
"(",
"account",
")",
";",
"}",
"return",
"accounts",
"to",
"populate",
";",
"}"
]
|
[
"set",
"the",
"request",
"header",
"names",
"(",
"e",
"g",
"\"",
"accept",
"-",
"language",
"\"",
")",
"for",
"which",
"the",
"response",
"is",
"subject",
"to",
"content",
"negotiation",
"and",
"variances",
"based",
"on",
"the",
"value",
"of",
"those",
"request",
"headers"
]
| [
"public",
"void",
"set",
"vary",
"(",
"list",
"<",
"string",
">",
"request",
"headers",
")",
"{",
"set",
"(",
"vary",
",",
"to",
"comma",
"delimited",
"string",
"(",
"request",
"headers",
")",
")",
";",
"}"
]
|
[
"creates",
"actions",
"for",
"the",
"given",
"user"
]
| [
"public",
"collection",
"<",
"?",
"extends",
"action",
">",
"create",
"for",
"(",
"user",
"target",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}"
]
|
[
"returns",
"the",
"default",
"value",
"for",
"this",
"type",
";",
"may",
"return",
"null",
"iff",
"no",
"default",
"is",
"defined",
"for",
"this",
"type"
]
| [
"public",
"abstract",
"t",
"get",
"default",
"value",
"(",
")",
";"
]
|
[
"checks",
"if",
"the",
"index",
"was",
"already",
"opened",
"by",
"this",
"version",
"of",
"elasticsearch",
"and",
"doesn",
"'",
"t",
"require",
"any",
"additional",
"checks"
]
| [
"boolean",
"is",
"upgraded",
"(",
"index",
"metadata",
"index",
"metadata",
")",
"{",
"return",
"index",
"metadata",
"get",
"upgraded",
"version",
"(",
")",
"on",
"or",
"after",
"(",
"version",
"current",
")",
";",
"}"
]
|
[
"time",
"a",
"multi",
"-",
"threaded",
"access",
"to",
"a",
"cache"
]
| [
"private",
"<",
"v",
">",
"stop",
"watch",
"time",
"multi",
"threaded",
"(",
"string",
"id",
",",
"final",
"map",
"<",
"integer",
",",
"v",
">",
"map",
",",
"value",
"factory",
"<",
"v",
">",
"factory",
")",
"throws",
"interrupted",
"exception",
"{",
"stop",
"watch",
"stop",
"watch",
"=",
"new",
"stop",
"watch",
"(",
"id",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"500",
";",
"i",
"+",
"+",
")",
"{",
"map",
"put",
"(",
"i",
",",
"factory",
"new",
"value",
"(",
"i",
")",
")",
";",
"}",
"thread",
"[",
"]",
"threads",
"=",
"new",
"thread",
"[",
"30",
"]",
";",
"stop",
"watch",
"start",
"(",
"\"",
"running",
"threads",
"\"",
")",
";",
"for",
"(",
"int",
"thread",
"index",
"=",
"0",
";",
"thread",
"index",
"<",
"threads",
"length",
";",
"thread",
"index",
"+",
"+",
")",
"{",
"threads",
"[",
"thread",
"index",
"]",
"=",
"new",
"thread",
"(",
"\"",
"cache",
"access",
"thread",
"\"",
"+",
"thread",
"index",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"1000",
";",
"j",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"1000",
";",
"i",
"+",
"+",
")",
"{",
"map",
"get",
"(",
"i",
")",
";",
"}",
"}",
"}",
"}",
";",
"}",
"for",
"(",
"thread",
"thread",
":",
"threads",
")",
"{",
"thread",
"start",
"(",
")",
";",
"}",
"for",
"(",
"thread",
"thread",
":",
"threads",
")",
"{",
"if",
"(",
"thread",
"is",
"alive",
"(",
")",
")",
"{",
"thread",
"join",
"(",
"2000",
")",
";",
"}",
"}",
"stop",
"watch",
"stop",
"(",
")",
";",
"return",
"stop",
"watch",
";",
"}"
]
|
[
"check",
"whether",
"{",
"@",
"code",
"address",
"}",
"point",
"to",
"extend",
"file",
"just",
"test",
"{",
"@",
"code",
"address",
"}",
"is",
"less",
"than",
"0"
]
| [
"public",
"static",
"boolean",
"is",
"ext",
"addr",
"(",
"final",
"long",
"address",
")",
"{",
"return",
"address",
"<",
"=",
"max",
"addr",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"prefix",
"namespace",
"string",
"'"
]
| [
"public",
"void",
"prefix",
"namespace",
"string",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"prefix",
"namespace",
"string",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}",
"tls",
"doesn",
"'",
"t",
"support",
"a",
"way",
"to",
"advertise",
"non",
"-",
"contiguous",
"versions",
"from",
"the",
"client",
"'",
"s",
"perspective",
",",
"and",
"the",
"client",
"just",
"advertises",
"the",
"max",
"supported",
"version",
"the",
"tls",
"protocol",
"also",
"doesn",
"'",
"t",
"support",
"all",
"different",
"combinations",
"of",
"discrete",
"protocols",
",",
"and",
"instead",
"assumes",
"contiguous",
"ranges",
"open",
"s",
"s",
"l",
"has",
"some",
"unexpected",
"behavior",
"(",
"e",
"g",
"handshake",
"failures",
")",
"if",
"non",
"-",
"contiguous",
"protocols",
"are",
"used",
"even",
"where",
"there",
"is",
"a",
"compatible",
"set",
"of",
"protocols",
"and",
"ciphers",
"for",
"these",
"reasons",
"this",
"method",
"will",
"determine",
"the",
"minimum",
"protocol",
"and",
"the",
"maximum",
"protocol",
"and",
"enabled",
"a",
"contiguous",
"range",
"from",
"[",
"min",
"protocol",
",",
"max",
"protocol",
"]",
"in",
"open",
"s",
"s",
"l"
]
| [
"public",
"final",
"void",
"set",
"enabled",
"protocols",
"(",
"string",
"[",
"]",
"protocols",
")",
"{",
"if",
"(",
"protocols",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"this",
"is",
"correct",
"from",
"the",
"api",
"docs",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"int",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocols",
"length",
";",
"int",
"max",
"protocol",
"index",
"=",
"0",
";",
"for",
"(",
"string",
"p",
":",
"protocols",
")",
"{",
"if",
"(",
"!",
"open",
"ssl",
"supported",
"protocols",
"set",
"contains",
"(",
"p",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"protocol",
"\"",
"+",
"p",
"+",
"\"",
"is",
"not",
"supported",
"\"",
")",
";",
"}",
"if",
"(",
"p",
"equals",
"(",
"protocol",
"ssl",
"v2",
")",
")",
"{",
"if",
"(",
"min",
"protocol",
"index",
">",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv2",
")",
"{",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv2",
";",
"}",
"if",
"(",
"max",
"protocol",
"index",
"<",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv2",
")",
"{",
"/",
"/",
"lgtm",
"[",
"java",
"/",
"constant",
"-",
"comparison",
"]",
"max",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv2",
";",
"}",
"}",
"else",
"if",
"(",
"p",
"equals",
"(",
"protocol",
"ssl",
"v3",
")",
")",
"{",
"if",
"(",
"min",
"protocol",
"index",
">",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv3",
")",
"{",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv3",
";",
"}",
"if",
"(",
"max",
"protocol",
"index",
"<",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv3",
")",
"{",
"max",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"sslv3",
";",
"}",
"}",
"else",
"if",
"(",
"p",
"equals",
"(",
"protocol",
"tls",
"v1",
")",
")",
"{",
"if",
"(",
"min",
"protocol",
"index",
">",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
")",
"{",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
";",
"}",
"if",
"(",
"max",
"protocol",
"index",
"<",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
")",
"{",
"max",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
";",
"}",
"}",
"else",
"if",
"(",
"p",
"equals",
"(",
"protocol",
"tls",
"v1",
"1",
")",
")",
"{",
"if",
"(",
"min",
"protocol",
"index",
">",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"1",
")",
"{",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"1",
";",
"}",
"if",
"(",
"max",
"protocol",
"index",
"<",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"1",
")",
"{",
"max",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"1",
";",
"}",
"}",
"else",
"if",
"(",
"p",
"equals",
"(",
"protocol",
"tls",
"v1",
"2",
")",
")",
"{",
"if",
"(",
"min",
"protocol",
"index",
">",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"2",
")",
"{",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"2",
";",
"}",
"if",
"(",
"max",
"protocol",
"index",
"<",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"2",
")",
"{",
"max",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"2",
";",
"}",
"}",
"else",
"if",
"(",
"p",
"equals",
"(",
"protocol",
"tls",
"v1",
"3",
")",
")",
"{",
"if",
"(",
"min",
"protocol",
"index",
">",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"3",
")",
"{",
"min",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"3",
";",
"}",
"if",
"(",
"max",
"protocol",
"index",
"<",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"3",
")",
"{",
"max",
"protocol",
"index",
"=",
"openssl",
"op",
"no",
"protocol",
"index",
"t",
"l",
"sv",
"1",
"3",
";",
"}",
"}",
"}",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"!",
"is",
"destroyed",
"(",
")",
")",
"{",
"/",
"/",
"clear",
"out",
"options",
"which",
"disable",
"protocols",
"ssl",
"clear",
"options",
"(",
"ssl",
",",
"ssl",
"ssl",
"op",
"no",
"s",
"s",
"lv",
"2",
"|",
"ssl",
"ssl",
"op",
"no",
"s",
"s",
"lv",
"3",
"|",
"ssl",
"ssl",
"op",
"no",
"t",
"l",
"sv",
"1",
"|",
"ssl",
"ssl",
"op",
"no",
"t",
"l",
"sv",
"1",
"1",
"|",
"ssl",
"ssl",
"op",
"no",
"t",
"l",
"sv",
"1",
"2",
"|",
"ssl",
"ssl",
"op",
"no",
"t",
"l",
"sv",
"1",
"3",
")",
";",
"int",
"opts",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"min",
"protocol",
"index",
";",
"+",
"+",
"i",
")",
"{",
"opts",
"|",
"=",
"openssl",
"op",
"no",
"protocols",
"[",
"i",
"]",
";",
"}",
"assert",
"max",
"protocol",
"index",
"!",
"=",
"max",
"value",
";",
"for",
"(",
"int",
"i",
"=",
"max",
"protocol",
"index",
"+",
"1",
";",
"i",
"<",
"openssl",
"op",
"no",
"protocols",
"length",
";",
"+",
"+",
"i",
")",
"{",
"opts",
"|",
"=",
"openssl",
"op",
"no",
"protocols",
"[",
"i",
"]",
";",
"}",
"/",
"/",
"disable",
"protocols",
"we",
"do",
"not",
"want",
"ssl",
"set",
"options",
"(",
"ssl",
",",
"opts",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"failed",
"to",
"enable",
"protocols",
":",
"\"",
"+",
"arrays",
"as",
"list",
"(",
"protocols",
")",
")",
";",
"}",
"}",
"}"
]
|
[
"uses",
"a",
"{",
"@",
"link",
"linked",
"list",
"}",
"to",
"store",
"value",
"collections"
]
| [
"public",
"list",
"multimap",
"builder",
"<",
"k0",
",",
"object",
">",
"linked",
"list",
"values",
"(",
")",
"{",
"return",
"new",
"list",
"multimap",
"builder",
"<",
"k0",
",",
"object",
">",
"(",
")",
"{",
"@",
"override",
"public",
"<",
"k",
"extends",
"k0",
",",
"v",
">",
"list",
"multimap",
"<",
"k",
",",
"v",
">",
"build",
"(",
")",
"{",
"return",
"multimaps",
"new",
"list",
"multimap",
"(",
"multimap",
"builder",
"with",
"keys",
"this",
"<",
"k",
",",
"v",
">",
"create",
"map",
"(",
")",
",",
"linked",
"list",
"supplier",
"<",
"v",
">",
"instance",
"(",
")",
")",
";",
"}",
"}",
";",
"}"
]
|
[
"key",
"set",
"add",
"throws",
"null",
"pointer",
"exception",
"if",
"the",
"specified",
"key",
"is",
"null"
]
| [
"public",
"void",
"test",
"add",
"5",
"(",
")",
"{",
"set",
"full",
"=",
"populated",
"set",
"(",
"3",
")",
";",
"try",
"{",
"full",
"add",
"(",
"null",
")",
";",
"should",
"throw",
"(",
")",
";",
"}",
"catch",
"(",
"null",
"pointer",
"exception",
"success",
")",
"{",
"}",
"}"
]
|
[
"creates",
"a",
"test",
"bootstrap",
"info",
"object"
]
| [
"public",
"static",
"bootstrapper",
"bootstrap",
"info",
"get",
"test",
"bootstrap",
"info",
"(",
")",
"{",
"try",
"{",
"bootstrapper",
"certificate",
"provider",
"info",
"gcp",
"id",
"=",
"new",
"bootstrapper",
"certificate",
"provider",
"info",
"(",
"\"",
"testca",
"\"",
",",
"(",
"map",
"<",
"string",
",",
"?",
">",
")",
"json",
"parser",
"parse",
"(",
"meshca",
"config",
")",
")",
";",
"bootstrapper",
"certificate",
"provider",
"info",
"file",
"provider",
"=",
"new",
"bootstrapper",
"certificate",
"provider",
"info",
"(",
"\"",
"file",
"watcher",
"\"",
",",
"(",
"map",
"<",
"string",
",",
"?",
">",
")",
"json",
"parser",
"parse",
"(",
"file",
"watcher",
"config",
")",
")",
";",
"map",
"<",
"string",
",",
"bootstrapper",
"certificate",
"provider",
"info",
">",
"cert",
"providers",
"=",
"immutable",
"map",
"of",
"(",
"\"",
"gcp",
"id",
"\"",
",",
"gcp",
"id",
",",
"\"",
"file",
"provider",
"\"",
",",
"file",
"provider",
")",
";",
"bootstrapper",
"bootstrap",
"info",
"bootstrap",
"info",
"=",
"new",
"bootstrapper",
"bootstrap",
"info",
"(",
"immutable",
"list",
"<",
"bootstrapper",
"server",
"info",
">",
"of",
"(",
")",
",",
"envoy",
"proto",
"data",
"node",
"new",
"builder",
"(",
")",
"build",
"(",
")",
",",
"cert",
"providers",
",",
"\"",
"grpc",
"/",
"server",
"\"",
")",
";",
"return",
"bootstrap",
"info",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
"e",
")",
";",
"}",
"}"
]
|
[
"determines",
"if",
"the",
"modal",
"merge",
"tool",
"is",
"currently",
"displayed",
"on",
"the",
"screen"
]
| [
"public",
"boolean",
"is",
"merge",
"tool",
"visible",
"(",
")",
"{",
"return",
"merge",
"tool",
"is",
"visible",
";",
"}"
]
|
[
"adds",
"a",
"parameter",
"to",
"the",
"list",
"parameter",
"order",
"is",
"preserved",
"when",
"printing",
"the",
"command",
"-",
"line",
"usage",
"string"
]
| [
"public",
"void",
"add",
"parameter",
"(",
"parameter",
"<",
"?",
">",
"parameter",
")",
"{",
"parameters",
"add",
"(",
"parameter",
")",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"boolean",
"is",
"last",
"(",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"return",
"false",
";",
"}"
]
|
[
"get",
"the",
"metrics",
"registry"
]
| [
"public",
"metrics",
"registry",
"get",
"registry",
"(",
")",
"{",
"return",
"registry",
";",
"}"
]
|
[
"start",
"the",
"services",
"common",
"to",
"active",
"and",
"standby",
"states"
]
| [
"private",
"void",
"start",
"common",
"services",
"(",
"configuration",
"conf",
")",
"throws",
"i",
"o",
"exception",
"{",
"namesystem",
"start",
"common",
"services",
"(",
"conf",
",",
"ha",
"context",
")",
";",
"register",
"n",
"n",
"s",
"m",
"x",
"bean",
"(",
")",
";",
"if",
"(",
"namenode",
"role",
"namenode",
"!",
"=",
"role",
")",
"{",
"start",
"http",
"server",
"(",
"conf",
")",
";",
"http",
"server",
"set",
"name",
"node",
"address",
"(",
"get",
"name",
"node",
"address",
"(",
")",
")",
";",
"http",
"server",
"set",
"f",
"s",
"image",
"(",
"get",
"f",
"s",
"image",
"(",
")",
")",
";",
"if",
"(",
"level",
"d",
"b",
"alias",
"map",
"server",
"!",
"=",
"null",
")",
"{",
"http",
"server",
"set",
"alias",
"map",
"(",
"level",
"d",
"b",
"alias",
"map",
"server",
"get",
"alias",
"map",
"(",
")",
")",
";",
"}",
"}",
"rpc",
"server",
"start",
"(",
")",
";",
"try",
"{",
"plugins",
"=",
"conf",
"get",
"instances",
"(",
"dfs",
"namenode",
"plugins",
"key",
",",
"service",
"plugin",
"class",
")",
";",
"}",
"catch",
"(",
"runtime",
"exception",
"e",
")",
"{",
"string",
"plugins",
"value",
"=",
"conf",
"get",
"(",
"dfs",
"namenode",
"plugins",
"key",
")",
";",
"log",
"error",
"(",
"\"",
"unable",
"to",
"load",
"name",
"node",
"plugins",
"specified",
"list",
"of",
"plugins",
":",
"\"",
"+",
"plugins",
"value",
",",
"e",
")",
";",
"throw",
"e",
";",
"}",
"for",
"(",
"service",
"plugin",
"p",
":",
"plugins",
")",
"{",
"try",
"{",
"p",
"start",
"(",
"this",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"log",
"warn",
"(",
"\"",
"service",
"plugin",
"\"",
"+",
"p",
"+",
"\"",
"could",
"not",
"be",
"started",
"\"",
",",
"t",
")",
";",
"}",
"}",
"log",
"info",
"(",
"get",
"role",
"(",
")",
"+",
"\"",
"rpc",
"up",
"at",
":",
"\"",
"+",
"get",
"name",
"node",
"address",
"(",
")",
")",
";",
"if",
"(",
"rpc",
"server",
"get",
"service",
"rpc",
"address",
"(",
")",
"!",
"=",
"null",
")",
"{",
"log",
"info",
"(",
"get",
"role",
"(",
")",
"+",
"\"",
"service",
"rpc",
"up",
"at",
":",
"\"",
"+",
"rpc",
"server",
"get",
"service",
"rpc",
"address",
"(",
")",
")",
";",
"}",
"}"
]
|
[
"returns",
"the",
"y",
"position",
"of",
"the",
"cached",
"string",
",",
"relative",
"to",
"the",
"position",
"when",
"the",
"string",
"was",
"cached"
]
| [
"public",
"float",
"get",
"y",
"(",
")",
"{",
"return",
"y",
";",
"}"
]
|
[
"parses",
"a",
"der",
"encoded",
"dsa",
"key",
"to",
"a",
"{",
"@",
"link",
"d",
"s",
"a",
"private",
"key",
"spec",
"}",
"using",
"a",
"minimal",
"{",
"@",
"link",
"der",
"parser",
"}"
]
| [
"private",
"static",
"d",
"s",
"a",
"private",
"key",
"spec",
"parse",
"dsa",
"der",
"(",
"byte",
"[",
"]",
"key",
"bytes",
")",
"throws",
"i",
"o",
"exception",
"{",
"der",
"parser",
"parser",
"=",
"new",
"der",
"parser",
"(",
"key",
"bytes",
")",
";",
"der",
"parser",
"asn",
"1",
"object",
"sequence",
"=",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
";",
"parser",
"=",
"sequence",
"get",
"parser",
"(",
")",
";",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
"get",
"integer",
"(",
")",
";",
"/",
"/",
"(",
"version",
")",
"we",
"don",
"'",
"t",
"need",
"it",
"but",
"must",
"read",
"to",
"get",
"to",
"p",
"big",
"integer",
"p",
"=",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
"get",
"integer",
"(",
")",
";",
"big",
"integer",
"q",
"=",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
"get",
"integer",
"(",
")",
";",
"big",
"integer",
"g",
"=",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
"get",
"integer",
"(",
")",
";",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
"get",
"integer",
"(",
")",
";",
"/",
"/",
"we",
"don",
"'",
"t",
"need",
"x",
"big",
"integer",
"x",
"=",
"parser",
"read",
"asn",
"1",
"object",
"(",
")",
"get",
"integer",
"(",
")",
";",
"return",
"new",
"d",
"s",
"a",
"private",
"key",
"spec",
"(",
"x",
",",
"p",
",",
"q",
",",
"g",
")",
";",
"}"
]
|
[
"assigns",
"the",
"given",
"key",
"to",
"a",
"key",
"-",
"group",
"index"
]
| [
"public",
"static",
"int",
"assign",
"to",
"key",
"group",
"(",
"object",
"key",
",",
"int",
"max",
"parallelism",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"key",
",",
"\"",
"assigned",
"key",
"must",
"not",
"be",
"null",
"!",
"\"",
")",
";",
"return",
"compute",
"key",
"group",
"for",
"key",
"hash",
"(",
"key",
"hash",
"code",
"(",
")",
",",
"max",
"parallelism",
")",
";",
"}"
]
|
[
"the",
"reason",
"of",
"the",
"failure"
]
| [
"public",
"final",
"string",
"reason",
"(",
")",
"{",
"return",
"reason",
";",
"}"
]
|
[
"updates",
"document",
"from",
"stream"
]
| [
"void",
"update",
"document",
"(",
"@",
"not",
"null",
"d",
"b",
"r",
"progress",
"monitor",
"monitor",
",",
"@",
"not",
"null",
"input",
"stream",
"stream",
",",
"@",
"nullable",
"charset",
"charset",
")",
"throws",
"i",
"o",
"exception",
",",
"d",
"b",
"exception",
";"
]
|
[
"emits",
"{",
"@",
"link",
"string",
"}",
"output",
"of",
"this",
"class",
"into",
"the",
"provided",
"{",
"@",
"link",
"string",
"builder",
"}"
]
| [
"public",
"void",
"emit",
"(",
"string",
"builder",
"builder",
")",
"{",
"builder",
"append",
"(",
"this",
"get",
"class",
"(",
")",
"get",
"simple",
"name",
"(",
")",
")",
";",
"}"
]
|
[
"set",
"the",
"index",
"template",
"name",
"to",
"delete"
]
| [
"public",
"delete",
"index",
"template",
"request",
"name",
"(",
"string",
"name",
")",
"{",
"this",
"name",
"=",
"name",
";",
"return",
"this",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.