docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"aws",
"region",
"that",
"the",
"stack",
"instance",
"is",
"associated",
"with",
"<",
"/",
"p",
">"
] | [
"set",
"region",
"(",
"region",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"aws",
"account",
"that",
"the",
"stack",
"instance",
"is",
"associated",
"with",
"<",
"/",
"p",
">"
] | [
"set",
"account",
"(",
"account",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"stack",
"instance",
"<",
"/",
"p",
">"
] | [
"set",
"stack",
"id",
"(",
"stack",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"stack",
"set",
"parameters",
"whose",
"values",
"you",
"want",
"to",
"override",
"in",
"the",
"selected",
"stack",
"instances",
"<",
"/",
"p",
">",
"<",
"p",
">",
"any",
"overridden",
"parameter",
"values",
"will",
"be",
"applied",
"to",
"all",
"stack",
"instances",
"in",
"the",
"specified",
"accounts",
"and",
"regions",
"when",
"specifying",
"parameters",
"and",
"their",
"values",
"be",
"aware",
"of",
"how",
"aws",
"cloud",
"formation",
"sets",
"parameter",
"values",
"during",
"stack",
"instance",
"operations",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"override",
"the",
"current",
"value",
"for",
"a",
"parameter",
"include",
"the",
"parameter",
"and",
"specify",
"its",
"value",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"leave",
"a",
"parameter",
"set",
"to",
"its",
"present",
"value",
"you",
"can",
"do",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"do",
"not",
"include",
"the",
"parameter",
"in",
"the",
"list",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"include",
"the",
"parameter",
"and",
"specify",
"<",
"code",
">",
"use",
"previous",
"value",
"<",
"/",
"code",
">",
"as",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"(",
"you",
"cannot",
"specify",
"both",
"a",
"value",
"and",
"set",
"<",
"code",
">",
"use",
"previous",
"value",
"<",
"/",
"code",
">",
"to",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"set",
"all",
"overridden",
"parameter",
"back",
"to",
"the",
"values",
"specified",
"in",
"the",
"stack",
"set",
"specify",
"a",
"parameter",
"list",
"but",
"do",
"not",
"include",
"any",
"parameters",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"leave",
"all",
"parameters",
"set",
"to",
"their",
"present",
"values",
"do",
"not",
"specify",
"this",
"property",
"at",
"all",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"during",
"stack",
"set",
"updates",
"any",
"parameter",
"values",
"overridden",
"for",
"a",
"stack",
"instance",
"are",
"not",
"updated",
"but",
"retain",
"their",
"overridden",
"value",
"<",
"/",
"p",
">",
"<",
"p",
">",
"you",
"can",
"only",
"override",
"the",
"parameter",
"<",
"i",
">",
"values",
"<",
"/",
"i",
">",
"that",
"are",
"specified",
"in",
"the",
"stack",
"set",
";",
"to",
"add",
"or",
"delete",
"a",
"parameter",
"itself",
"use",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"cloud",
"formation",
"/",
"latest",
"/",
"a",
"p",
"i",
"reference",
"/",
"api",
"update",
"stack",
"set",
"html",
">",
"update",
"stack",
"set",
"<",
"/",
"a",
">",
"to",
"update",
"the",
"stack",
"set",
"template",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"parameter",
"overrides",
"=",
"=",
"null",
")",
"{",
"parameter",
"overrides",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"parameter",
">",
"(",
")",
";",
"}",
"return",
"parameter",
"overrides",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"stack",
"set",
"parameters",
"whose",
"values",
"you",
"want",
"to",
"override",
"in",
"the",
"selected",
"stack",
"instances",
"<",
"/",
"p",
">",
"<",
"p",
">",
"any",
"overridden",
"parameter",
"values",
"will",
"be",
"applied",
"to",
"all",
"stack",
"instances",
"in",
"the",
"specified",
"accounts",
"and",
"regions",
"when",
"specifying",
"parameters",
"and",
"their",
"values",
"be",
"aware",
"of",
"how",
"aws",
"cloud",
"formation",
"sets",
"parameter",
"values",
"during",
"stack",
"instance",
"operations",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"override",
"the",
"current",
"value",
"for",
"a",
"parameter",
"include",
"the",
"parameter",
"and",
"specify",
"its",
"value",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"leave",
"a",
"parameter",
"set",
"to",
"its",
"present",
"value",
"you",
"can",
"do",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"do",
"not",
"include",
"the",
"parameter",
"in",
"the",
"list",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"include",
"the",
"parameter",
"and",
"specify",
"<",
"code",
">",
"use",
"previous",
"value",
"<",
"/",
"code",
">",
"as",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"(",
"you",
"cannot",
"specify",
"both",
"a",
"value",
"and",
"set",
"<",
"code",
">",
"use",
"previous",
"value",
"<",
"/",
"code",
">",
"to",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"set",
"all",
"overridden",
"parameter",
"back",
"to",
"the",
"values",
"specified",
"in",
"the",
"stack",
"set",
"specify",
"a",
"parameter",
"list",
"but",
"do",
"not",
"include",
"any",
"parameters",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"to",
"leave",
"all",
"parameters",
"set",
"to",
"their",
"present",
"values",
"do",
"not",
"specify",
"this",
"property",
"at",
"all",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"during",
"stack",
"set",
"updates",
"any",
"parameter",
"values",
"overridden",
"for",
"a",
"stack",
"instance",
"are",
"not",
"updated",
"but",
"retain",
"their",
"overridden",
"value",
"<",
"/",
"p",
">",
"<",
"p",
">",
"you",
"can",
"only",
"override",
"the",
"parameter",
"<",
"i",
">",
"values",
"<",
"/",
"i",
">",
"that",
"are",
"specified",
"in",
"the",
"stack",
"set",
";",
"to",
"add",
"or",
"delete",
"a",
"parameter",
"itself",
"use",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"cloud",
"formation",
"/",
"latest",
"/",
"a",
"p",
"i",
"reference",
"/",
"api",
"update",
"stack",
"set",
"html",
">",
"update",
"stack",
"set",
"<",
"/",
"a",
">",
"to",
"update",
"the",
"stack",
"set",
"template",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"parameter",
"overrides",
"=",
"=",
"null",
")",
"{",
"this",
"parameter",
"overrides",
"=",
"null",
";",
"return",
";",
"}",
"this",
"parameter",
"overrides",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"parameter",
">",
"(",
"parameter",
"overrides",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"parameters",
"from",
"the",
"stack",
"set",
"template",
"whose",
"values",
"have",
"been",
"overridden",
"in",
"this",
"stack",
"instance",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"parameter",
"overrides",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"parameter",
"overrides",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"parameter",
"overrides",
"=",
"=",
"null",
")",
"{",
"set",
"parameter",
"overrides",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"parameter",
">",
"(",
"parameter",
"overrides",
"length",
")",
")",
";",
"}",
"for",
"(",
"parameter",
"ele",
":",
"parameter",
"overrides",
")",
"{",
"this",
"parameter",
"overrides",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"parameters",
"from",
"the",
"stack",
"set",
"template",
"whose",
"values",
"have",
"been",
"overridden",
"in",
"this",
"stack",
"instance",
"<",
"/",
"p",
">"
] | [
"set",
"parameter",
"overrides",
"(",
"parameter",
"overrides",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"stack",
"instance",
"in",
"terms",
"of",
"its",
"synchronization",
"with",
"its",
"associated",
"stack",
"set",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"inoperable",
"<",
"/",
"code",
">",
":",
"a",
"<",
"code",
">",
"delete",
"stack",
"instances",
"<",
"/",
"code",
">",
"operation",
"has",
"failed",
"and",
"left",
"the",
"stack",
"in",
"an",
"unstable",
"state",
"stacks",
"in",
"this",
"state",
"are",
"excluded",
"from",
"further",
"<",
"code",
">",
"update",
"stack",
"set",
"<",
"/",
"code",
">",
"operations",
"you",
"might",
"need",
"to",
"perform",
"a",
"<",
"code",
">",
"delete",
"stack",
"instances",
"<",
"/",
"code",
">",
"operation",
"with",
"<",
"code",
">",
"retain",
"stacks",
"<",
"/",
"code",
">",
"set",
"to",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"to",
"delete",
"the",
"stack",
"instance",
"and",
"then",
"delete",
"the",
"stack",
"manually",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"outdated",
"<",
"/",
"code",
">",
":",
"the",
"stack",
"isn",
"t",
"currently",
"up",
"to",
"date",
"with",
"the",
"stack",
"set",
"because",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"associated",
"stack",
"failed",
"during",
"a",
"<",
"code",
">",
"create",
"stack",
"set",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"update",
"stack",
"set",
"<",
"/",
"code",
">",
"operation",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"stack",
"was",
"part",
"of",
"a",
"<",
"code",
">",
"create",
"stack",
"set",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"update",
"stack",
"set",
"<",
"/",
"code",
">",
"operation",
"that",
"failed",
"or",
"was",
"stopped",
"before",
"the",
"stack",
"was",
"created",
"or",
"updated",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"current",
"<",
"/",
"code",
">",
":",
"the",
"stack",
"is",
"currently",
"up",
"to",
"date",
"with",
"the",
"stack",
"set",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"status",
"(",
"status",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"stack",
"instance",
"in",
"terms",
"of",
"its",
"synchronization",
"with",
"its",
"associated",
"stack",
"set",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"inoperable",
"<",
"/",
"code",
">",
":",
"a",
"<",
"code",
">",
"delete",
"stack",
"instances",
"<",
"/",
"code",
">",
"operation",
"has",
"failed",
"and",
"left",
"the",
"stack",
"in",
"an",
"unstable",
"state",
"stacks",
"in",
"this",
"state",
"are",
"excluded",
"from",
"further",
"<",
"code",
">",
"update",
"stack",
"set",
"<",
"/",
"code",
">",
"operations",
"you",
"might",
"need",
"to",
"perform",
"a",
"<",
"code",
">",
"delete",
"stack",
"instances",
"<",
"/",
"code",
">",
"operation",
"with",
"<",
"code",
">",
"retain",
"stacks",
"<",
"/",
"code",
">",
"set",
"to",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"to",
"delete",
"the",
"stack",
"instance",
"and",
"then",
"delete",
"the",
"stack",
"manually",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"outdated",
"<",
"/",
"code",
">",
":",
"the",
"stack",
"isn",
"t",
"currently",
"up",
"to",
"date",
"with",
"the",
"stack",
"set",
"because",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"associated",
"stack",
"failed",
"during",
"a",
"<",
"code",
">",
"create",
"stack",
"set",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"update",
"stack",
"set",
"<",
"/",
"code",
">",
"operation",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"stack",
"was",
"part",
"of",
"a",
"<",
"code",
">",
"create",
"stack",
"set",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"update",
"stack",
"set",
"<",
"/",
"code",
">",
"operation",
"that",
"failed",
"or",
"was",
"stopped",
"before",
"the",
"stack",
"was",
"created",
"or",
"updated",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"current",
"<",
"/",
"code",
">",
":",
"the",
"stack",
"is",
"currently",
"up",
"to",
"date",
"with",
"the",
"stack",
"set",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"this",
"status",
"=",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"explanation",
"for",
"the",
"specific",
"status",
"code",
"that",
"is",
"assigned",
"to",
"this",
"stack",
"instance",
"<",
"/",
"p",
">"
] | [
"set",
"status",
"reason",
"(",
"status",
"reason",
")",
";",
"return",
"this",
";"
] |
[
"selects",
"a",
"specific",
"pid",
"from",
"within",
"a",
"source"
] | [
"set",
"pid",
"(",
"pid",
")",
";",
"return",
"this",
";"
] |
[
"transforms",
"results",
"using",
"factory",
"expression",
"if",
"result",
"transformer",
"can",
"t",
"be",
"used"
] | [
"if",
"(",
"projection",
"!",
"=",
"null",
")",
"{",
"object",
"result",
"=",
"query",
"get",
"single",
"result",
"(",
")",
";",
"if",
"(",
"result",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"result",
"get",
"class",
"(",
")",
"is",
"array",
"(",
")",
")",
"{",
"result",
"=",
"new",
"object",
"[",
"]",
"{",
"result",
"}",
";",
"}",
"return",
"projection",
"new",
"instance",
"(",
"(",
"object",
"[",
"]",
")",
"result",
")",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}",
"else",
"{",
"return",
"query",
"get",
"single",
"result",
"(",
")",
";",
"}"
] |
[
"clone",
"the",
"state",
"of",
"this",
"query",
"to",
"a",
"new",
"instance",
"with",
"the",
"given",
"entity",
"manager"
] | [
"public",
"abstract",
"q",
"clone",
"(",
"entity",
"manager",
"entity",
"manager",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"return",
"activities",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"service",
"helper",
"start",
"services",
"(",
"activities",
")",
";"
] |
[
"reports",
"the",
"given",
"warning"
] | [
"public",
"abstract",
"void",
"warn",
"(",
"string",
"msg",
")",
";"
] |
[
"returns",
"a",
"single",
"target",
"corresponding",
"to",
"the",
"given",
"label",
"or",
"null",
"this",
"method",
"may",
"only",
"throw",
"an",
"exception",
"if",
"the",
"current",
"thread",
"was",
"interrupted"
] | [
"public",
"abstract",
"t",
"get",
"target",
"or",
"null",
"(",
"label",
"label",
")",
"throws",
"interrupted",
"exception",
";"
] |
[
"returns",
"a",
"single",
"target",
"corresponding",
"to",
"the",
"given",
"label",
"or",
"an",
"empty",
"or",
"failed",
"result"
] | [
"public",
"abstract",
"resolved",
"targets",
"<",
"t",
">",
"get",
"explicit",
"target",
"(",
"label",
"label",
")",
"throws",
"target",
"parsing",
"exception",
",",
"interrupted",
"exception",
";"
] |
[
"returns",
"the",
"set",
"containing",
"the",
"targets",
"found",
"in",
"the",
"given",
"package",
"the",
"specified",
"directory",
"is",
"not",
"necessarily",
"a",
"valid",
"package",
"name",
"if",
"{",
"@",
"code",
"rules",
"only",
"}",
"is",
"true",
"then",
"this",
"method",
"should",
"only",
"return",
"rules",
"in",
"the",
"given",
"package"
] | [
"public",
"abstract",
"resolved",
"targets",
"<",
"t",
">",
"get",
"targets",
"in",
"package",
"(",
"string",
"original",
"pattern",
",",
"package",
"identifier",
"package",
"identifier",
",",
"boolean",
"rules",
"only",
")",
"throws",
"target",
"parsing",
"exception",
",",
"interrupted",
"exception",
";"
] |
[
"computes",
"the",
"set",
"containing",
"the",
"targets",
"found",
"below",
"the",
"given",
"{",
"@",
"code",
"directory",
"}",
"passing",
"it",
"in",
"batches",
"to",
"{",
"@",
"code",
"callback",
"}",
"conceptually",
"this",
"method",
"should",
"look",
"for",
"all",
"packages",
"that",
"start",
"with",
"the",
"{",
"@",
"code",
"directory",
"}",
"(",
"as",
"a",
"proper",
"prefix",
"directory",
"i",
"e",
"foo",
"/",
"ba",
"is",
"not",
"a",
"proper",
"prefix",
"of",
"foo",
"/",
"bar",
"/",
")",
"and",
"then",
"collect",
"all",
"targets",
"in",
"each",
"such",
"package",
"(",
"subject",
"to",
"{",
"@",
"code",
"rules",
"only",
"}",
")",
"as",
"if",
"calling",
"{",
"@",
"link",
"#",
"get",
"targets",
"in",
"package",
"}",
"the",
"specified",
"directory",
"is",
"not",
"necessarily",
"a",
"valid",
"package",
"name"
] | [
"public",
"abstract",
"<",
"e",
"extends",
"exception",
">",
"void",
"find",
"targets",
"beneath",
"directory",
"(",
"repository",
"name",
"repository",
",",
"string",
"original",
"pattern",
",",
"string",
"directory",
",",
"boolean",
"rules",
"only",
",",
"immutable",
"set",
"<",
"path",
"fragment",
">",
"blacklisted",
"subdirectories",
",",
"immutable",
"set",
"<",
"path",
"fragment",
">",
"excluded",
"subdirectories",
",",
"batch",
"callback",
"<",
"t",
",",
"e",
">",
"callback",
",",
"class",
"<",
"e",
">",
"exception",
"class",
")",
"throws",
"target",
"parsing",
"exception",
",",
"e",
",",
"interrupted",
"exception",
";"
] |
[
"async",
"version",
"of",
"{",
"@",
"link",
"#",
"find",
"targets",
"beneath",
"directory",
"}"
] | [
"try",
"{",
"find",
"targets",
"beneath",
"directory",
"(",
"repository",
",",
"original",
"pattern",
",",
"directory",
",",
"rules",
"only",
",",
"blacklisted",
"subdirectories",
",",
"excluded",
"subdirectories",
",",
"callback",
",",
"exception",
"class",
")",
";",
"return",
"futures",
"immediate",
"future",
"(",
"null",
")",
";",
"}",
"catch",
"(",
"target",
"parsing",
"exception",
"e",
")",
"{",
"return",
"futures",
"immediate",
"failed",
"future",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"return",
"futures",
"immediate",
"cancelled",
"future",
"(",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"if",
"(",
"exception",
"class",
"is",
"instance",
"(",
"e",
")",
")",
"{",
"return",
"futures",
"immediate",
"failed",
"future",
"(",
"e",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"and",
"only",
"if",
"the",
"given",
"package",
"identifier",
"corresponds",
"to",
"a",
"package",
"i",
"e",
"a",
"file",
"with",
"the",
"name",
"{"
] | [
"public",
"abstract",
"boolean",
"is",
"package",
"(",
"package",
"identifier",
"package",
"identifier",
")",
"throws",
"interrupted",
"exception",
";"
] |
[
"returns",
"the",
"target",
"kind",
"of",
"the",
"given",
"target",
"for",
"example",
"{"
] | [
"public",
"abstract",
"string",
"get",
"target",
"kind",
"(",
"t",
"target",
")",
";"
] |
[
"<",
"p",
">",
"constructs",
"a",
"<",
"code",
">",
"numeric",
"entity",
"escaper",
"<",
"/",
"code",
">",
"below",
"the",
"specified",
"value",
"(",
"exclusive",
")",
"<",
"/",
"p",
">"
] | [
"return",
"outside",
"of",
"(",
"codepoint",
",",
"integer",
"max",
"value",
")",
";"
] |
[
"<",
"p",
">",
"constructs",
"a",
"<",
"code",
">",
"numeric",
"entity",
"escaper",
"<",
"/",
"code",
">",
"above",
"the",
"specified",
"value",
"(",
"exclusive",
")",
"<",
"/",
"p",
">"
] | [
"return",
"outside",
"of",
"(",
"0",
",",
"codepoint",
")",
";"
] |
[
"<",
"p",
">",
"constructs",
"a",
"<",
"code",
">",
"numeric",
"entity",
"escaper",
"<",
"/",
"code",
">",
"between",
"the",
"specified",
"values",
"(",
"inclusive",
")",
"<",
"/",
"p",
">"
] | [
"return",
"new",
"numeric",
"entity",
"escaper",
"(",
"codepoint",
"low",
",",
"codepoint",
"high",
",",
"true",
")",
";"
] |
[
"<",
"p",
">",
"constructs",
"a",
"<",
"code",
">",
"numeric",
"entity",
"escaper",
"<",
"/",
"code",
">",
"outside",
"of",
"the",
"specified",
"values",
"(",
"exclusive",
")",
"<",
"/",
"p",
">"
] | [
"return",
"new",
"numeric",
"entity",
"escaper",
"(",
"codepoint",
"low",
",",
"codepoint",
"high",
",",
"false",
")",
";"
] |
[
"gets",
"the",
"rlp",
"encoded",
"byte",
"array",
"of",
"this",
"message"
] | [
"public",
"abstract",
"byte",
"[",
"]",
"get",
"encoded",
"(",
")",
";"
] |
[
"get",
"the",
"local",
"client",
"s",
"identity",
"key",
"pair"
] | [
"if",
"(",
"identity",
"key",
"pair",
"=",
"=",
"null",
")",
"{",
"identity",
"key",
"pair",
"=",
"load",
"identity",
"key",
"pair",
"(",
")",
";",
"}",
"return",
"identity",
"key",
"pair",
";"
] |
[
"return",
"the",
"local",
"client",
"s",
"registration",
"id",
"<",
"p",
"/",
">",
"clients",
"should",
"maintain",
"a",
"registration",
"id",
"a",
"random",
"number",
"between",
"1",
"and",
"16380",
"that",
"s",
"generated",
"once",
"at",
"install",
"time"
] | [
"return",
"local",
"registration",
"id",
";"
] |
[
"verify",
"a",
"remote",
"client",
"s",
"identity",
"key",
"<",
"p",
"/",
">",
"determine",
"whether",
"a",
"remote",
"client",
"s",
"identity",
"is",
"trusted",
"convention",
"is",
"that",
"the",
"text",
"secure",
"protocol",
"is",
"trust",
"on",
"first",
"use",
"this",
"means",
"that",
"an",
"identity",
"key",
"is",
"considered",
"trusted",
"if",
"there",
"is",
"no",
"entry",
"for",
"the",
"recipient",
"in",
"the",
"local",
"store",
"or",
"if",
"it",
"matches",
"the",
"saved",
"key",
"for",
"a",
"recipient",
"in",
"the",
"local",
"store",
"only",
"if",
"it",
"mismatches",
"an",
"entry",
"in",
"the",
"local",
"store",
"is",
"it",
"considered",
"untrusted"
] | [
"return",
"true",
";"
] |
[
"returns",
"a",
"copy",
"of",
"the",
"{",
"@",
"link",
"session",
"record",
"}",
"corresponding",
"to",
"the",
"recipient",
"id",
"+",
"device",
"id",
"tuple",
"or",
"a",
"new",
"session",
"record",
"if",
"one",
"does",
"not",
"currently",
"exist",
"<",
"p",
"/",
">",
"it",
"is",
"important",
"that",
"implementations",
"return",
"a",
"copy",
"of",
"the",
"current",
"durable",
"information",
"the",
"returned",
"session",
"record",
"may",
"be",
"modified",
"but",
"those",
"changes",
"should",
"not",
"have",
"an",
"effect",
"on",
"the",
"durable",
"session",
"state",
"(",
"what",
"is",
"returned",
"by",
"subsequent",
"calls",
"to",
"this",
"method",
")",
"without",
"the",
"store",
"method",
"being",
"called",
"here",
"first"
] | [
"session",
"record",
"session",
"=",
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"load",
"session",
"(",
"this",
"account",
",",
"address",
")",
";",
"return",
"(",
"session",
"!",
"=",
"null",
")",
"?",
"session",
":",
"new",
"session",
"record",
"(",
")",
";"
] |
[
"returns",
"all",
"known",
"devices",
"with",
"active",
"sessions",
"for",
"a",
"recipient"
] | [
"return",
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"get",
"sub",
"device",
"sessions",
"(",
"account",
",",
"new",
"signal",
"protocol",
"address",
"(",
"name",
",",
"0",
")",
")",
";"
] |
[
"commit",
"to",
"storage",
"the",
"{",
"@",
"link",
"session",
"record",
"}",
"for",
"a",
"given",
"recipient",
"id",
"+",
"device",
"id",
"tuple"
] | [
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"store",
"session",
"(",
"account",
",",
"address",
",",
"record",
")",
";"
] |
[
"determine",
"whether",
"there",
"is",
"a",
"committed",
"{",
"@",
"link",
"session",
"record",
"}",
"for",
"a",
"recipient",
"id",
"+",
"device",
"id",
"tuple"
] | [
"return",
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"contains",
"session",
"(",
"account",
",",
"address",
")",
";"
] |
[
"remove",
"a",
"{",
"@",
"link",
"session",
"record",
"}",
"for",
"a",
"recipient",
"id",
"+",
"device",
"id",
"tuple"
] | [
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"delete",
"session",
"(",
"account",
",",
"address",
")",
";"
] |
[
"remove",
"the",
"{",
"@",
"link",
"session",
"record",
"}",
"s",
"corresponding",
"to",
"all",
"devices",
"of",
"a",
"recipient",
"id"
] | [
"signal",
"protocol",
"address",
"address",
"=",
"new",
"signal",
"protocol",
"address",
"(",
"name",
",",
"0",
")",
";",
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"delete",
"all",
"sessions",
"(",
"account",
",",
"address",
")",
";"
] |
[
"delete",
"a",
"pre",
"key",
"record",
"from",
"local",
"storage"
] | [
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"delete",
"pre",
"key",
"(",
"account",
",",
"pre",
"key",
"id",
")",
";"
] |
[
"load",
"all",
"local",
"signed",
"pre",
"key",
"records"
] | [
"return",
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"load",
"signed",
"pre",
"keys",
"(",
"account",
")",
";"
] |
[
"store",
"a",
"local",
"signed",
"pre",
"key",
"record"
] | [
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"store",
"signed",
"pre",
"key",
"(",
"account",
",",
"record",
")",
";"
] |
[
"delete",
"a",
"signed",
"pre",
"key",
"record",
"from",
"local",
"storage"
] | [
"m",
"xmpp",
"connection",
"service",
"database",
"backend",
"delete",
"signed",
"pre",
"key",
"(",
"account",
",",
"signed",
"pre",
"key",
"id",
")",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"role",
"the",
"drt",
"will",
"use",
"to",
"access",
"your",
"aws",
"account",
"<",
"/",
"p",
">",
"<",
"p",
">",
"prior",
"to",
"making",
"the",
"<",
"code",
">",
"associate",
"d",
"r",
"t",
"role",
"<",
"/",
"code",
">",
"request",
"you",
"must",
"attach",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"console",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"home",
"?",
"#",
"/",
"policies",
"/",
"arn",
":",
"aws",
":",
"iam",
":",
":",
"aws",
":",
"policy",
"/",
"service",
"-",
"role",
"/",
"a",
"w",
"s",
"shield",
"d",
"r",
"t",
"access",
"policy",
">",
"a",
"w",
"s",
"shield",
"d",
"r",
"t",
"access",
"policy",
"<",
"/",
"a",
">",
"managed",
"policy",
"to",
"this",
"role",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"latest",
"/",
"user",
"guide",
"/",
"access",
"policies",
"manage",
"-",
"attach",
"-",
"detach",
"html",
">",
"attaching",
"and",
"detaching",
"iam",
"policies",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"if",
"the",
"class",
"to",
"be",
"loaded",
"has",
"been",
"configured",
"with",
"a",
"cache",
"then",
"lock",
"given",
"id",
"in",
"that",
"cache",
"and",
"then",
"perform",
"the",
"load"
] | [
"soft",
"lock",
"lock",
"=",
"null",
";",
"final",
"object",
"ck",
";",
"final",
"entity",
"data",
"access",
"cache",
"=",
"persister",
"get",
"cache",
"access",
"strategy",
"(",
")",
";",
"if",
"(",
"persister",
"can",
"write",
"to",
"cache",
"(",
")",
")",
"{",
"ck",
"=",
"cache",
"generate",
"cache",
"key",
"(",
"event",
"get",
"entity",
"id",
"(",
")",
",",
"persister",
",",
"source",
"get",
"factory",
"(",
")",
",",
"source",
"get",
"tenant",
"identifier",
"(",
")",
")",
";",
"lock",
"=",
"persister",
"get",
"cache",
"access",
"strategy",
"(",
")",
"lock",
"item",
"(",
"source",
",",
"ck",
",",
"null",
")",
";",
"}",
"else",
"{",
"ck",
"=",
"null",
";",
"}",
"object",
"entity",
";",
"try",
"{",
"entity",
"=",
"load",
"(",
"event",
",",
"persister",
",",
"key",
"to",
"load",
",",
"options",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"persister",
"can",
"write",
"to",
"cache",
"(",
")",
")",
"{",
"cache",
"unlock",
"item",
"(",
"source",
",",
"ck",
",",
"lock",
")",
";",
"}",
"}",
"return",
"event",
"get",
"session",
"(",
")",
"get",
"persistence",
"context",
"(",
")",
"proxy",
"for",
"(",
"persister",
",",
"key",
"to",
"load",
",",
"entity",
")",
";"
] |
[
"performs",
"the",
"process",
"of",
"loading",
"an",
"entity",
"from",
"the",
"configured",
"underlying",
"datasource"
] | [
"object",
"entity",
"=",
"persister",
"load",
"(",
"event",
"get",
"entity",
"id",
"(",
")",
",",
"event",
"get",
"instance",
"to",
"load",
"(",
")",
",",
"event",
"get",
"lock",
"options",
"(",
")",
",",
"event",
"get",
"session",
"(",
")",
")",
";",
"if",
"(",
"event",
"is",
"association",
"fetch",
"(",
")",
"&",
"&",
"event",
"get",
"session",
"(",
")",
"get",
"factory",
"(",
")",
"get",
"statistics",
"(",
")",
"is",
"statistics",
"enabled",
"(",
")",
")",
"{",
"event",
"get",
"session",
"(",
")",
"get",
"factory",
"(",
")",
"get",
"statistics",
"(",
")",
"fetch",
"entity",
"(",
"event",
"get",
"entity",
"class",
"name",
"(",
")",
")",
";",
"}",
"return",
"entity",
";"
] |
[
"initializes",
"the",
"necessary",
"listeners",
"if",
"a",
"module",
"is",
"loaded"
] | [
"if",
"(",
"m",
"module",
"is",
"loaded",
"(",
")",
")",
"{",
"m",
"module",
"get",
"content",
"(",
")",
"get",
"view",
"container",
"(",
")",
"get",
"native",
"callgraph",
"view",
"(",
")",
"add",
"listener",
"(",
"m",
"view",
"listener",
")",
";",
"}"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"setter",
"/",
"getter",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] | [
"this",
"transform",
"event",
"=",
"transform",
"event",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"amazon",
"macie",
"member",
"account",
"whose",
"resources",
"you",
"want",
"to",
"associate",
"with",
"macie",
"<",
"/",
"p",
">"
] | [
"set",
"member",
"account",
"id",
"(",
"member",
"account",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"associated",
"s3",
"resources",
"returned",
"by",
"the",
"action",
"<",
"/",
"p",
">"
] | [
"return",
"s",
"3",
"resources",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"associated",
"s3",
"resources",
"returned",
"by",
"the",
"action",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"s",
"3",
"resources",
"=",
"=",
"null",
")",
"{",
"this",
"s",
"3",
"resources",
"=",
"null",
";",
"return",
";",
"}",
"this",
"s",
"3",
"resources",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"s",
"3",
"resource",
"classification",
">",
"(",
"s",
"3",
"resources",
")",
";"
] |
[
"<",
"p",
">",
"the",
"s3",
"resources",
"that",
"you",
"want",
"to",
"associate",
"with",
"amazon",
"macie",
"for",
"monitoring",
"and",
"data",
"classification",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"s",
"3",
"resources",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"s",
"3",
"resources",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"s",
"3",
"resources",
"=",
"=",
"null",
")",
"{",
"set",
"s",
"3",
"resources",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"s",
"3",
"resource",
"classification",
">",
"(",
"s",
"3",
"resources",
"length",
")",
")",
";",
"}",
"for",
"(",
"s",
"3",
"resource",
"classification",
"ele",
":",
"s",
"3",
"resources",
")",
"{",
"this",
"s",
"3",
"resources",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"s3",
"resources",
"that",
"you",
"want",
"to",
"associate",
"with",
"amazon",
"macie",
"for",
"monitoring",
"and",
"data",
"classification",
"<",
"/",
"p",
">"
] | [
"set",
"s",
"3",
"resources",
"(",
"s",
"3",
"resources",
")",
";",
"return",
"this",
";"
] |
[
"whether",
"we",
"can",
"split",
"at",
"reduce",
"work",
"for",
"simplicity",
"let",
"s",
"require",
"each",
"work",
"can",
"have",
"at",
"most",
"one",
"child",
"work",
"this",
"may",
"be",
"relaxed",
"by",
"checking",
"connectivity",
"of",
"the",
"work",
"graph",
"after",
"disconnect",
"the",
"current",
"reduce",
"work",
"from",
"its",
"child"
] | [
"for",
"(",
"base",
"work",
"base",
"work",
":",
"spark",
"work",
"get",
"all",
"work",
"unsorted",
"(",
")",
")",
"{",
"if",
"(",
"spark",
"work",
"get",
"children",
"(",
"base",
"work",
")",
"size",
"(",
")",
">",
"1",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
] |
[
"copy",
"a",
"sub",
"-",
"graph",
"from",
"origin",
"work",
"to",
"new",
"work"
] | [
"for",
"(",
"base",
"work",
"child",
":",
"origin",
"work",
"get",
"children",
"(",
"base",
"work",
")",
")",
"{",
"if",
"(",
"!",
"new",
"work",
"contains",
"(",
"child",
")",
")",
"{",
"new",
"work",
"add",
"(",
"child",
")",
";",
"spark",
"edge",
"property",
"edge",
"property",
"=",
"origin",
"work",
"get",
"edge",
"property",
"(",
"base",
"work",
",",
"child",
")",
";",
"new",
"work",
"connect",
"(",
"base",
"work",
",",
"child",
",",
"edge",
"property",
")",
";",
"copy",
"work",
"graph",
"(",
"origin",
"work",
",",
"new",
"work",
",",
"child",
")",
";",
"}",
"}",
"for",
"(",
"base",
"work",
"parent",
":",
"origin",
"work",
"get",
"parents",
"(",
"base",
"work",
")",
")",
"{",
"if",
"(",
"!",
"new",
"work",
"contains",
"(",
"parent",
")",
")",
"{",
"new",
"work",
"add",
"(",
"parent",
")",
";",
"spark",
"edge",
"property",
"edge",
"property",
"=",
"origin",
"work",
"get",
"edge",
"property",
"(",
"parent",
",",
"base",
"work",
")",
";",
"new",
"work",
"connect",
"(",
"parent",
",",
"base",
"work",
",",
"edge",
"property",
")",
";",
"copy",
"work",
"graph",
"(",
"origin",
"work",
",",
"new",
"work",
",",
"parent",
")",
";",
"}",
"}"
] |
[
"retrieve",
"sqlite",
"database"
] | [
"ensure",
"database",
"(",
")",
";",
"return",
"m",
"db",
";"
] |
[
"gets",
"the",
"millisecond",
"instant",
"which",
"is",
"the",
"long",
"value"
] | [
"return",
"(",
"(",
"long",
")",
"object",
")",
"long",
"value",
"(",
")",
";"
] |
[
"gets",
"the",
"millisecond",
"duration",
"which",
"is",
"the",
"long",
"value"
] | [
"return",
"(",
"(",
"long",
")",
"object",
")",
"long",
"value",
"(",
")",
";"
] |
[
"returns",
"long",
"class"
] | [
"return",
"long",
"class",
";"
] |
[
"to",
"be",
"called",
"by",
"system",
"server",
"to",
"keep",
"track",
"which",
"pid",
"is",
"running",
"this",
"animation"
] | [
"m",
"calling",
"pid",
"=",
"pid",
";"
] |
[
"input",
"codec"
] | [
"set",
"codec",
"(",
"codec",
")",
";",
"return",
"this",
";"
] |
[
"input",
"codec"
] | [
"this",
"codec",
"=",
"codec",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"maximum",
"input",
"bitrate",
"categorized",
"coarsely"
] | [
"set",
"maximum",
"bitrate",
"(",
"maximum",
"bitrate",
")",
";",
"return",
"this",
";"
] |
[
"maximum",
"input",
"bitrate",
"categorized",
"coarsely"
] | [
"this",
"maximum",
"bitrate",
"=",
"maximum",
"bitrate",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"input",
"resolution",
"categorized",
"coarsely"
] | [
"set",
"resolution",
"(",
"resolution",
")",
";",
"return",
"this",
";"
] |
[
"input",
"resolution",
"categorized",
"coarsely"
] | [
"this",
"resolution",
"=",
"resolution",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"perform",
"a",
"logical",
"and",
"of",
"2",
"query",
"node",
"trees",
"if",
"q",
"1",
"and",
"q",
"2",
"are",
"a",
"n",
"d",
"query",
"node",
"nodes",
"it",
"uses",
"head",
"node",
"from",
"q",
"1",
"and",
"adds",
"the",
"children",
"of",
"q",
"2",
"to",
"q",
"1",
"if",
"q",
"1",
"is",
"a",
"and",
"node",
"and",
"q",
"2",
"is",
"not",
"add",
"q",
"2",
"as",
"a",
"child",
"of",
"the",
"head",
"node",
"of",
"q",
"1",
"if",
"q",
"2",
"is",
"a",
"and",
"node",
"and",
"q",
"1",
"is",
"not",
"add",
"q",
"1",
"as",
"a",
"child",
"of",
"the",
"head",
"node",
"of",
"q",
"2",
"if",
"q",
"1",
"and",
"q",
"2",
"are",
"not",
"a",
"n",
"d",
"query",
"node",
"nodes",
"create",
"a",
"and",
"node",
"and",
"make",
"q",
"1",
"and",
"q",
"2",
"children",
"of",
"that",
"node",
"if",
"q",
"1",
"or",
"q",
"2",
"is",
"null",
"it",
"returns",
"the",
"not",
"null",
"node",
"if",
"q",
"1",
"=",
"q",
"2",
"=",
"null",
"it",
"returns",
"null"
] | [
"if",
"(",
"q",
"1",
"=",
"=",
"null",
")",
"return",
"q",
"2",
";",
"if",
"(",
"q",
"2",
"=",
"=",
"null",
")",
"return",
"q",
"1",
";",
"a",
"n",
"d",
"operation",
"op",
"=",
"null",
";",
"if",
"(",
"q",
"1",
"instanceof",
"and",
"query",
"node",
"&",
"&",
"q",
"2",
"instanceof",
"and",
"query",
"node",
")",
"op",
"=",
"a",
"n",
"d",
"operation",
"both",
";",
"else",
"if",
"(",
"q",
"1",
"instanceof",
"and",
"query",
"node",
")",
"op",
"=",
"a",
"n",
"d",
"operation",
"q1",
";",
"else",
"if",
"(",
"q",
"2",
"instanceof",
"and",
"query",
"node",
")",
"op",
"=",
"a",
"n",
"d",
"operation",
"q2",
";",
"else",
"op",
"=",
"a",
"n",
"d",
"operation",
"none",
";",
"try",
"{",
"query",
"node",
"result",
"=",
"null",
";",
"switch",
"(",
"op",
")",
"{",
"case",
"none",
":",
"list",
"<",
"query",
"node",
">",
"children",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"children",
"add",
"(",
"q",
"1",
"clone",
"tree",
"(",
")",
")",
";",
"children",
"add",
"(",
"q",
"2",
"clone",
"tree",
"(",
")",
")",
";",
"result",
"=",
"new",
"and",
"query",
"node",
"(",
"children",
")",
";",
"return",
"result",
";",
"case",
"q1",
":",
"result",
"=",
"q",
"1",
"clone",
"tree",
"(",
")",
";",
"result",
"add",
"(",
"q",
"2",
"clone",
"tree",
"(",
")",
")",
";",
"return",
"result",
";",
"case",
"q2",
":",
"result",
"=",
"q",
"2",
"clone",
"tree",
"(",
")",
";",
"result",
"add",
"(",
"q",
"1",
"clone",
"tree",
"(",
")",
")",
";",
"return",
"result",
";",
"case",
"both",
":",
"result",
"=",
"q",
"1",
"clone",
"tree",
"(",
")",
";",
"result",
"add",
"(",
"q",
"2",
"clone",
"tree",
"(",
")",
"get",
"children",
"(",
")",
")",
";",
"return",
"result",
";",
"}",
"}",
"catch",
"(",
"clone",
"not",
"supported",
"exception",
"e",
")",
"{",
"throw",
"new",
"query",
"node",
"error",
"(",
"e",
")",
";",
"}",
"return",
"null",
";"
] |
[
"gets",
"a",
"{",
"@",
"code",
"list",
"}",
"of",
"(",
"visible",
")",
"column",
"names",
"for",
"the",
"given",
"table",
"<",
"p",
">",
"called",
"when",
"exporting",
"the",
"column",
"names"
] | [
"list",
"<",
"string",
">",
"column",
"names",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"col",
"=",
"0",
";",
"col",
"<",
"get",
"table",
"(",
")",
"get",
"column",
"count",
"(",
")",
";",
"col",
"+",
"+",
")",
"{",
"column",
"names",
"list",
"add",
"(",
"get",
"table",
"(",
")",
"get",
"column",
"model",
"(",
")",
"get",
"column",
"(",
"col",
")",
"get",
"header",
"value",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"}",
"return",
"column",
"names",
"list",
";"
] |
[
"gets",
"the",
"cell",
"values",
"(",
"in",
"view",
"order",
")",
"for",
"the",
"given",
"row",
"<",
"p",
">",
"called",
"for",
"each",
"(",
"visible",
")",
"row",
"that",
"s",
"being",
"exported"
] | [
"list",
"<",
"object",
">",
"cells",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"col",
"=",
"0",
";",
"col",
"<",
"get",
"table",
"(",
")",
"get",
"column",
"count",
"(",
")",
";",
"col",
"+",
"+",
")",
"{",
"object",
"value",
"=",
"get",
"table",
"(",
")",
"get",
"value",
"at",
"(",
"row",
",",
"col",
")",
";",
"cells",
"add",
"(",
"value",
"=",
"=",
"null",
"?",
"\"",
"\"",
":",
"value",
"to",
"string",
"(",
")",
")",
";",
"}",
"return",
"cells",
";"
] |
[
"gets",
"the",
"table",
"which",
"this",
"button",
"is",
"associated",
"with"
] | [
"return",
"export",
"table",
";"
] |
[
"sets",
"the",
"table",
"this",
"button",
"is",
"for"
] | [
"this",
"export",
"table",
"=",
"table",
";"
] |
[
"prints",
"to",
"standard",
"output",
"the",
"(",
"i",
"j",
"k",
")",
"with",
"{",
"@",
"code",
"i",
"<",
"j",
"<",
"k",
"}",
"such",
"that",
"{",
"@",
"code",
"a",
"[",
"i",
"]",
"+",
"a",
"[",
"j",
"]",
"+",
"a",
"[",
"k",
"]",
"=",
"=",
"0",
"}"
] | [
"int",
"n",
"=",
"a",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"i",
"+",
"1",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"k",
"=",
"j",
"+",
"1",
";",
"k",
"<",
"n",
";",
"k",
"+",
"+",
")",
"{",
"if",
"(",
"a",
"[",
"i",
"]",
"+",
"a",
"[",
"j",
"]",
"+",
"a",
"[",
"k",
"]",
"=",
"=",
"0",
")",
"{",
"std",
"out",
"println",
"(",
"a",
"[",
"i",
"]",
"+",
"\"",
"\"",
"+",
"a",
"[",
"j",
"]",
"+",
"\"",
"\"",
"+",
"a",
"[",
"k",
"]",
")",
";",
"}",
"}",
"}",
"}"
] |
[
"returns",
"the",
"number",
"of",
"triples",
"(",
"i",
"j",
"k",
")",
"with",
"{",
"@",
"code",
"i",
"<",
"j",
"<",
"k",
"}",
"such",
"that",
"{",
"@",
"code",
"a",
"[",
"i",
"]",
"+",
"a",
"[",
"j",
"]",
"+",
"a",
"[",
"k",
"]",
"=",
"=",
"0",
"}"
] | [
"int",
"n",
"=",
"a",
"length",
";",
"int",
"count",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"i",
"+",
"1",
";",
"j",
"<",
"n",
";",
"j",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"k",
"=",
"j",
"+",
"1",
";",
"k",
"<",
"n",
";",
"k",
"+",
"+",
")",
"{",
"if",
"(",
"a",
"[",
"i",
"]",
"+",
"a",
"[",
"j",
"]",
"+",
"a",
"[",
"k",
"]",
"=",
"=",
"0",
")",
"{",
"count",
"+",
"+",
";",
"}",
"}",
"}",
"}",
"return",
"count",
";"
] |
[
"allows",
"third",
"party",
"apps",
"to",
"specify",
"the",
"camera",
"id",
"rather",
"than",
"determine",
"it",
"automatically",
"based",
"on",
"available",
"cameras",
"and",
"their",
"orientation"
] | [
"if",
"(",
"initialized",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}",
"else",
"{",
"requested",
"camera",
"id",
"=",
"camera",
"id",
";",
"}"
] |
[
"return",
"the",
"name",
"of",
"the",
"package",
"holding",
"label",
"and",
"icon",
"resources"
] | [
"return",
"m",
"source",
"package",
";"
] |
[
"return",
"any",
"resource",
"identifier",
"that",
"has",
"been",
"given",
"for",
"the",
"label",
"text"
] | [
"return",
"m",
"label",
"res",
";"
] |
[
"return",
"any",
"concrete",
"text",
"that",
"has",
"been",
"given",
"for",
"the",
"label",
"text"
] | [
"return",
"m",
"non",
"localized",
"label",
";"
] |
[
"return",
"any",
"resource",
"identifier",
"that",
"has",
"been",
"given",
"for",
"the",
"label",
"icon"
] | [
"return",
"m",
"icon",
";"
] |
[
"retrieve",
"the",
"label",
"associated",
"with",
"this",
"object",
"if",
"the",
"object",
"does",
"not",
"have",
"a",
"label",
"null",
"will",
"be",
"returned",
"in",
"which",
"case",
"you",
"will",
"probably",
"want",
"to",
"load",
"the",
"label",
"from",
"the",
"underlying",
"resolved",
"info",
"for",
"the",
"intent"
] | [
"if",
"(",
"m",
"non",
"localized",
"label",
"!",
"=",
"null",
")",
"{",
"return",
"m",
"non",
"localized",
"label",
";",
"}",
"if",
"(",
"m",
"label",
"res",
"!",
"=",
"0",
"&",
"&",
"m",
"source",
"package",
"!",
"=",
"null",
")",
"{",
"char",
"sequence",
"label",
"=",
"pm",
"get",
"text",
"(",
"m",
"source",
"package",
",",
"m",
"label",
"res",
",",
"null",
")",
";",
"if",
"(",
"label",
"!",
"=",
"null",
")",
"{",
"return",
"label",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"retrieve",
"the",
"icon",
"associated",
"with",
"this",
"object",
"if",
"the",
"object",
"does",
"not",
"have",
"a",
"icon",
"null",
"will",
"be",
"returned",
"in",
"which",
"case",
"you",
"will",
"probably",
"want",
"to",
"load",
"the",
"icon",
"from",
"the",
"underlying",
"resolved",
"info",
"for",
"the",
"intent"
] | [
"if",
"(",
"m",
"icon",
"!",
"=",
"0",
"&",
"&",
"m",
"source",
"package",
"!",
"=",
"null",
")",
"{",
"drawable",
"icon",
"=",
"pm",
"get",
"drawable",
"(",
"m",
"source",
"package",
",",
"m",
"icon",
",",
"null",
")",
";",
"if",
"(",
"icon",
"!",
"=",
"null",
")",
"{",
"return",
"icon",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"{"
] | [
"u",
"write",
"string",
"(",
"out",
",",
"host",
")",
";",
"out",
"write",
"int",
"(",
"port",
")",
";",
"out",
"write",
"int",
"(",
"port",
"range",
")",
";",
"out",
"write",
"int",
"(",
"max",
"open",
"cursors",
"per",
"conn",
")",
";",
"out",
"write",
"int",
"(",
"sock",
"snd",
"buf",
"size",
")",
";",
"out",
"write",
"int",
"(",
"sock",
"rcv",
"buf",
"size",
")",
";",
"out",
"write",
"boolean",
"(",
"tcp",
"no",
"delay",
")",
";",
"out",
"write",
"int",
"(",
"thread",
"pool",
"size",
")",
";",
"out",
"write",
"long",
"(",
"idle",
"timeout",
")",
";",
"out",
"write",
"boolean",
"(",
"jdbc",
"enabled",
")",
";",
"out",
"write",
"boolean",
"(",
"odbc",
"enabled",
")",
";",
"out",
"write",
"boolean",
"(",
"thin",
"cli",
"enabled",
")",
";",
"out",
"write",
"boolean",
"(",
"ssl",
"enabled",
")",
";",
"out",
"write",
"boolean",
"(",
"use",
"ignite",
"ssl",
"ctx",
"factory",
")",
";",
"out",
"write",
"boolean",
"(",
"ssl",
"client",
"auth",
")",
";",
"u",
"write",
"string",
"(",
"out",
",",
"ssl",
"ctx",
"factory",
")",
";"
] |
[
"{"
] | [
"host",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";",
"port",
"=",
"in",
"read",
"int",
"(",
")",
";",
"port",
"range",
"=",
"in",
"read",
"int",
"(",
")",
";",
"max",
"open",
"cursors",
"per",
"conn",
"=",
"in",
"read",
"int",
"(",
")",
";",
"sock",
"snd",
"buf",
"size",
"=",
"in",
"read",
"int",
"(",
")",
";",
"sock",
"rcv",
"buf",
"size",
"=",
"in",
"read",
"int",
"(",
")",
";",
"tcp",
"no",
"delay",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"thread",
"pool",
"size",
"=",
"in",
"read",
"int",
"(",
")",
";",
"if",
"(",
"proto",
"ver",
">",
"v1",
")",
"{",
"idle",
"timeout",
"=",
"in",
"read",
"long",
"(",
")",
";",
"jdbc",
"enabled",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"odbc",
"enabled",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"thin",
"cli",
"enabled",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"ssl",
"enabled",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"use",
"ignite",
"ssl",
"ctx",
"factory",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"ssl",
"client",
"auth",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"ssl",
"ctx",
"factory",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";",
"}"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"visor",
"client",
"connector",
"configuration",
"class",
",",
"this",
")",
";"
] |
[
"stop",
"sync",
"thread"
] | [
"if",
"(",
"!",
"stopped",
"get",
"and",
"set",
"(",
"true",
")",
")",
"{",
"if",
"(",
"syncer",
"!",
"=",
"null",
")",
"{",
"syncer",
"interrupt",
"(",
")",
";",
"}",
"matrix",
"clock",
"cache",
"map",
"clear",
"(",
")",
";",
"}"
] |
[
"remove",
"partition",
"clock",
"cache",
"for",
"a",
"matrix"
] | [
"matrix",
"clock",
"cache",
"map",
"remove",
"(",
"matrix",
"id",
")",
";"
] |
[
"add",
"matrix",
"clock",
"cache"
] | [
"if",
"(",
"!",
"matrix",
"clock",
"cache",
"map",
"contains",
"key",
"(",
"matrix",
"id",
")",
")",
"{",
"matrix",
"clock",
"cache",
"map",
"put",
"if",
"absent",
"(",
"matrix",
"id",
",",
"new",
"matrix",
"clock",
"cache",
"(",
"matrix",
"id",
",",
"parts",
")",
")",
";",
"}"
] |
[
"get",
"a",
"matrix",
"partition",
"clock"
] | [
"matrix",
"clock",
"cache",
"matrix",
"clock",
"cache",
"=",
"matrix",
"clock",
"cache",
"map",
"get",
"(",
"matrix",
"id",
")",
";",
"if",
"(",
"matrix",
"clock",
"cache",
"=",
"=",
"null",
")",
"{",
"return",
"0",
";",
"}",
"return",
"matrix",
"clock",
"cache",
"get",
"clock",
"(",
"part",
"key",
")",
";"
] |
[
"get",
"a",
"matrix",
"row",
"clock"
] | [
"matrix",
"clock",
"cache",
"matrix",
"clock",
"cache",
"=",
"matrix",
"clock",
"cache",
"map",
"get",
"(",
"matrix",
"id",
")",
";",
"if",
"(",
"matrix",
"clock",
"cache",
"=",
"=",
"null",
")",
"{",
"return",
"0",
";",
"}",
"return",
"matrix",
"clock",
"cache",
"get",
"clock",
"(",
"row",
"index",
")",
";"
] |
[
"get",
"matrix",
"clock"
] | [
"matrix",
"clock",
"cache",
"matrix",
"clock",
"cache",
"=",
"matrix",
"clock",
"cache",
"map",
"get",
"(",
"matrix",
"id",
")",
";",
"if",
"(",
"matrix",
"clock",
"cache",
"=",
"=",
"null",
")",
"{",
"return",
"0",
";",
"}",
"return",
"matrix",
"clock",
"cache",
"get",
"clock",
"(",
")",
";"
] |
[
"get",
"a",
"matrix",
"clock",
"cache"
] | [
"return",
"matrix",
"clock",
"cache",
"map",
"get",
"(",
"matrix",
"id",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"causes",
"that",
"are",
"immediate",
"children",
"of",
"this",
"exception"
] | [
"return",
"causes",
";"
] |
[
"returns",
"the",
"list",
"of",
"root",
"causes",
"that",
"are",
"the",
"leaf",
"nodes",
"of",
"all",
"children",
"of",
"this",
"exception"
] | [
"list",
"<",
"throwable",
">",
"root",
"causes",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"add",
"root",
"causes",
"(",
"this",
",",
"root",
"causes",
")",
";",
"return",
"root",
"causes",
";"
] |
[
"create",
"kryo",
"serializer"
] | [
"worker",
"topology",
"context",
"worker",
"topology",
"context",
"=",
"context",
"maker",
"make",
"worker",
"topology",
"context",
"(",
"sys",
"topology",
")",
";",
"kryo",
"tuple",
"deserializer",
"kryo",
"tuple",
"deserializer",
"=",
"new",
"kryo",
"tuple",
"deserializer",
"(",
"storm",
"conf",
",",
"worker",
"topology",
"context",
",",
"worker",
"topology",
"context",
"get",
"raw",
"topology",
"(",
")",
")",
";",
"kryo",
"tuple",
"serializer",
"kryo",
"tuple",
"serializer",
"=",
"new",
"kryo",
"tuple",
"serializer",
"(",
"storm",
"conf",
",",
"worker",
"topology",
"context",
"get",
"raw",
"topology",
"(",
")",
")",
";",
"atom",
"kryo",
"deserializer",
"get",
"and",
"set",
"(",
"kryo",
"tuple",
"deserializer",
")",
";",
"atom",
"kryo",
"serializer",
"get",
"and",
"set",
"(",
"kryo",
"tuple",
"serializer",
")",
";"
] |
[
"private",
"concurrent",
"hash",
"map",
"<",
"integer",
"worker",
"slot",
">",
"task",
"to",
"node",
"port",
";",
"private",
"hash",
"map",
"<",
"integer",
"string",
">",
"tasks",
"to",
"component",
";",
"private",
"map",
"<",
"string",
"list",
"<",
"integer",
">",
">",
"component",
"to",
"sorted",
"tasks",
";",
"private",
"map",
"<",
"string",
"map",
"<",
"string",
"fields",
">",
">",
"component",
"to",
"stream",
"to",
"fields",
";",
"private",
"map",
"<",
"string",
"object",
">",
"default",
"resources",
";",
"private",
"map",
"<",
"string",
"object",
">",
"user",
"resources",
";",
"private",
"map",
"<",
"string",
"object",
">",
"executor",
"data",
";",
"private",
"map",
"registered",
"metrics",
";"
] | [
"update",
"task",
"component",
"map",
"(",
")",
";",
"this",
"default",
"resources",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"this",
"user",
"resources",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"this",
"executor",
"data",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"this",
"registered",
"metrics",
"=",
"new",
"hash",
"map",
"(",
")",
";"
] |
[
"}"
] | [
"return",
"component",
"to",
"sorted",
"tasks",
";"
] |
[
"creates",
"a",
"{",
"@",
"code",
"nk",
"command",
"custom",
"callback",
"}",
"instance",
"from",
"the",
"specified",
"function",
"pointer"
] | [
"nk",
"command",
"custom",
"callback",
"i",
"instance",
"=",
"callback",
"get",
"(",
"function",
"pointer",
")",
";",
"return",
"instance",
"instanceof",
"nk",
"command",
"custom",
"callback",
"?",
"(",
"nk",
"command",
"custom",
"callback",
")",
"instance",
":",
"new",
"container",
"(",
"function",
"pointer",
",",
"instance",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"function",
"pointer",
"=",
"=",
"null",
"?",
"null",
":",
"create",
"(",
"function",
"pointer",
")",
";"
] |
[
"creates",
"a",
"{"
] | [
"return",
"instance",
"instanceof",
"nk",
"command",
"custom",
"callback",
"?",
"(",
"nk",
"command",
"custom",
"callback",
")",
"instance",
":",
"new",
"container",
"(",
"instance",
"address",
"(",
")",
",",
"instance",
")",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"account",
"id",
"<",
"/",
"code",
">",
"value",
"is",
"the",
"aws",
"account",
"id",
"of",
"the",
"account",
"that",
"owns",
"the",
"vault",
"you",
"can",
"either",
"specify",
"an",
"aws",
"account",
"id",
"or",
"optionally",
"a",
"single",
"<",
"code",
">",
"-",
"<",
"/",
"code",
">",
"(",
"hyphen",
")",
"in",
"which",
"case",
"amazon",
"glacier",
"uses",
"the",
"aws",
"account",
"id",
"associated",
"with",
"the",
"credentials",
"used",
"to",
"sign",
"the",
"request",
"if",
"you",
"use",
"an",
"account",
"id",
"do",
"not",
"include",
"any",
"hyphens",
"(",
"-",
")",
"in",
"the",
"id",
"<",
"/",
"p",
">"
] | [
"set",
"account",
"id",
"(",
"account",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"vault",
"<",
"/",
"p",
">"
] | [
"set",
"vault",
"name",
"(",
"vault",
"name",
")",
";",
"return",
"this",
";"
] |
[
"checks",
"statistics",
"-",
"1",
"indicates",
"do",
"not",
"check",
"for",
"the",
"operations"
] | [
"assert",
"equals",
"(",
"read",
"ops",
",",
"d",
"f",
"s",
"test",
"util",
"get",
"statistics",
"(",
"fs",
")",
"get",
"read",
"ops",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"write",
"ops",
",",
"d",
"f",
"s",
"test",
"util",
"get",
"statistics",
"(",
"fs",
")",
"get",
"write",
"ops",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"large",
"read",
"ops",
",",
"d",
"f",
"s",
"test",
"util",
"get",
"statistics",
"(",
"fs",
")",
"get",
"large",
"read",
"ops",
"(",
")",
")",
";"
] |
[
"flink",
"-",
"6629"
] | [
"final",
"configuration",
"configuration",
"=",
"new",
"configuration",
"(",
")",
";",
"final",
"testing",
"high",
"availability",
"services",
"high",
"availability",
"services",
"=",
"new",
"testing",
"high",
"availability",
"services",
"(",
")",
";",
"final",
"actor",
"system",
"actor",
"system",
"=",
"akka",
"utils",
"create",
"default",
"actor",
"system",
"(",
")",
";",
"actor",
"ref",
"actor",
"ref",
"=",
"null",
";",
"final",
"uuid",
"leader",
"id",
"=",
"uuid",
"random",
"u",
"u",
"i",
"d",
"(",
")",
";",
"try",
"{",
"actor",
"ref",
"=",
"actor",
"system",
"actor",
"of",
"(",
"props",
"create",
"(",
"job",
"client",
"actor",
"test",
"plain",
"actor",
"class",
",",
"leader",
"id",
")",
")",
";",
"final",
"string",
"expected",
"address",
"=",
"akka",
"utils",
"get",
"akka",
"u",
"r",
"l",
"(",
"actor",
"system",
",",
"actor",
"ref",
")",
";",
"final",
"settable",
"leader",
"retrieval",
"service",
"settable",
"leader",
"retrieval",
"service",
"=",
"new",
"settable",
"leader",
"retrieval",
"service",
"(",
"expected",
"address",
",",
"leader",
"id",
")",
";",
"high",
"availability",
"services",
"set",
"job",
"master",
"leader",
"retriever",
"(",
"high",
"availability",
"services",
"default",
"job",
"id",
",",
"settable",
"leader",
"retrieval",
"service",
")",
";",
"standalone",
"cluster",
"client",
"client",
"=",
"new",
"standalone",
"cluster",
"client",
"(",
"configuration",
",",
"high",
"availability",
"services",
",",
"true",
")",
";",
"actor",
"gateway",
"gateway",
"=",
"client",
"get",
"job",
"manager",
"gateway",
"(",
")",
";",
"assert",
"equals",
"(",
"expected",
"address",
",",
"gateway",
"path",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"leader",
"id",
",",
"gateway",
"leader",
"session",
"i",
"d",
"(",
")",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"actor",
"ref",
"!",
"=",
"null",
")",
"{",
"testing",
"utils",
"stop",
"actor",
"gracefully",
"(",
"actor",
"ref",
")",
";",
"}",
"actor",
"system",
"shutdown",
"(",
")",
";",
"}"
] |
Subsets and Splits