docstring_tokens
list | code_tokens
list |
---|---|
[
"finds",
"a",
"field",
"matching",
"the",
"given",
"name",
"in",
"this",
"class",
"or",
"a",
"parent",
"class"
] | [
"class",
"node",
"node",
"=",
"this",
";",
"while",
"(",
"node",
"!",
"=",
"null",
")",
"{",
"field",
"node",
"fn",
"=",
"node",
"get",
"declared",
"field",
"(",
"name",
")",
";",
"if",
"(",
"fn",
"!",
"=",
"null",
")",
"return",
"fn",
";",
"node",
"=",
"node",
"get",
"super",
"class",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"helper",
"method",
"to",
"avoid",
"casting",
"to",
"inner",
"class"
] | [
"return",
"null",
";"
] |
[
"adds",
"a",
"statement",
"to",
"the",
"object",
"initializer"
] | [
"get",
"object",
"initializer",
"statements",
"(",
")",
"add",
"(",
"statements",
")",
";"
] |
[
"this",
"methods",
"returns",
"a",
"list",
"of",
"all",
"methods",
"of",
"the",
"given",
"name",
"defined",
"in",
"the",
"current",
"class"
] | [
"if",
"(",
"redirect",
"!",
"=",
"null",
")",
"return",
"redirect",
"(",
")",
"get",
"declared",
"methods",
"(",
"name",
")",
";",
"lazy",
"class",
"init",
"(",
")",
";",
"return",
"methods",
"get",
"not",
"null",
"(",
"name",
")",
";"
] |
[
"this",
"methods",
"creates",
"a",
"list",
"of",
"all",
"methods",
"with",
"this",
"name",
"of",
"the",
"current",
"class",
"and",
"of",
"all",
"super",
"classes"
] | [
"list",
"<",
"method",
"node",
">",
"answer",
"=",
"new",
"array",
"list",
"<",
"method",
"node",
">",
"(",
")",
";",
"class",
"node",
"node",
"=",
"this",
";",
"while",
"(",
"node",
"!",
"=",
"null",
")",
"{",
"answer",
"add",
"all",
"(",
"node",
"get",
"declared",
"methods",
"(",
"name",
")",
")",
";",
"node",
"=",
"node",
"get",
"super",
"class",
"(",
")",
";",
"}",
"return",
"answer",
";"
] |
[
"finds",
"a",
"method",
"matching",
"the",
"given",
"name",
"and",
"parameters",
"in",
"this",
"class"
] | [
"for",
"(",
"method",
"node",
"method",
":",
"get",
"declared",
"methods",
"(",
"name",
")",
")",
"{",
"if",
"(",
"parameters",
"equal",
"(",
"method",
"get",
"parameters",
"(",
")",
",",
"parameters",
")",
")",
"{",
"return",
"method",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"finds",
"a",
"method",
"matching",
"the",
"given",
"name",
"and",
"parameters",
"in",
"this",
"class",
"or",
"any",
"parent",
"class"
] | [
"for",
"(",
"method",
"node",
"method",
":",
"get",
"methods",
"(",
"name",
")",
")",
"{",
"if",
"(",
"parameters",
"equal",
"(",
"method",
"get",
"parameters",
"(",
")",
",",
"parameters",
")",
")",
"{",
"return",
"method",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"@",
"param",
"class",
"node",
"the",
"class",
"node",
"for",
"the",
"interface",
"@",
"return",
"true",
"if",
"this",
"class",
"declares",
"that",
"it",
"implements",
"the",
"given",
"interface",
"or",
"if",
"one",
"of",
"its",
"interfaces",
"extends",
"directly",
"or",
"indirectly",
"the",
"interface"
] | [
"class",
"node",
"[",
"]",
"interfaces",
"=",
"redirect",
"(",
")",
"get",
"interfaces",
"(",
")",
";",
"for",
"(",
"class",
"node",
"cn",
":",
"interfaces",
")",
"{",
"if",
"(",
"cn",
"equals",
"(",
"class",
"node",
")",
")",
"return",
"true",
";",
"}",
"for",
"(",
"class",
"node",
"cn",
":",
"interfaces",
")",
"{",
"if",
"(",
"cn",
"declares",
"interface",
"(",
"class",
"node",
")",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"is",
"this",
"class",
"declared",
"in",
"a",
"static",
"method",
"(",
"such",
"as",
"a",
"closure",
"/",
"inner",
"class",
"declared",
"in",
"a",
"static",
"method",
")"
] | [
"return",
"redirect",
"(",
")",
"static",
"class",
";"
] |
[
"returns",
"true",
"if",
"the",
"given",
"method",
"has",
"a",
"possibly",
"matching",
"static",
"method",
"with",
"the",
"given",
"name",
"and",
"arguments"
] | [
"return",
"class",
"node",
"utils",
"has",
"possible",
"static",
"method",
"(",
"this",
",",
"name",
",",
"arguments",
",",
"false",
")",
";"
] |
[
"marks",
"if",
"the",
"current",
"class",
"uses",
"annotations",
"or",
"not"
] | [
"this",
"annotated",
"=",
"flag",
";"
] |
[
"return",
"the",
"configured",
"location",
"values"
] | [
"return",
"this",
"location",
"values",
";"
] |
[
"set",
"the",
"{"
] | [
"this",
"locations",
"clear",
"(",
")",
";",
"if",
"(",
"locations",
"!",
"=",
"null",
")",
"{",
"this",
"locations",
"add",
"all",
"(",
"locations",
")",
";",
"}"
] |
[
"set",
"the",
"{"
] | [
"this",
"cache",
"control",
"=",
"cache",
"control",
";"
] |
[
"return",
"the",
"{"
] | [
"return",
"this",
"cache",
"control",
";"
] |
[
"configure",
"the",
"{"
] | [
"this",
"resource",
"http",
"message",
"writer",
"=",
"http",
"message",
"writer",
";"
] |
[
"return",
"the",
"configured",
"resource",
"message",
"writer"
] | [
"return",
"this",
"resource",
"http",
"message",
"writer",
";"
] |
[
"set",
"headers",
"on",
"the",
"response",
"called",
"for",
"both",
"get",
"and",
"head",
"requests"
] | [
"http",
"headers",
"headers",
"=",
"exchange",
"get",
"response",
"(",
")",
"get",
"headers",
"(",
")",
";",
"long",
"length",
"=",
"resource",
"content",
"length",
"(",
")",
";",
"headers",
"set",
"content",
"length",
"(",
"length",
")",
";",
"if",
"(",
"media",
"type",
"!",
"=",
"null",
")",
"{",
"headers",
"set",
"content",
"type",
"(",
"media",
"type",
")",
";",
"}",
"if",
"(",
"resource",
"instanceof",
"http",
"resource",
")",
"{",
"http",
"headers",
"resource",
"headers",
"=",
"(",
"(",
"http",
"resource",
")",
"resource",
")",
"get",
"response",
"headers",
"(",
")",
";",
"exchange",
"get",
"response",
"(",
")",
"get",
"headers",
"(",
")",
"put",
"all",
"(",
"resource",
"headers",
")",
";",
"}"
] |
[
"}"
] | [] |
[
"<",
"p",
">",
"the",
"position",
"in",
"the",
"shard",
"from",
"which",
"to",
"start",
"reading",
"data",
"records",
"sequentially",
"a",
"shard",
"iterator",
"specifies",
"this",
"position",
"using",
"the",
"sequence",
"number",
"of",
"a",
"data",
"record",
"in",
"a",
"shard",
"<",
"/",
"p",
">"
] | [
"set",
"shard",
"iterator",
"(",
"shard",
"iterator",
")",
";",
"return",
"this",
";"
] |
[
"converts",
"a",
"scala",
"{",
"@",
"link",
"option",
"}",
"to",
"a",
"{",
"@",
"link",
"optional",
"}"
] | [
"if",
"(",
"scala",
"option",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"optional",
"empty",
"(",
")",
";",
"}",
"else",
"{",
"return",
"optional",
"of",
"nullable",
"(",
"scala",
"option",
"get",
"(",
")",
")",
";",
"}"
] |
[
"paints",
"breakpoints",
"into",
"a",
"view",
"node"
] | [
"if",
"(",
"node",
"get",
"raw",
"node",
"(",
")",
"instanceof",
"i",
"navi",
"code",
"node",
")",
"{",
"paint",
"breakpoints",
"(",
"manager",
",",
"node",
",",
"(",
"i",
"navi",
"code",
"node",
")",
"node",
"get",
"raw",
"node",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"node",
"get",
"raw",
"node",
"(",
")",
"instanceof",
"i",
"navi",
"function",
"node",
")",
"{",
"paint",
"breakpoints",
"(",
"manager",
",",
"node",
",",
"(",
"i",
"navi",
"function",
"node",
")",
"node",
"get",
"raw",
"node",
"(",
")",
")",
";",
"}"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] | [
"this",
"error",
"message",
"handler",
"=",
"error",
"message",
"handler",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] | [
"snapshot",
"manager",
"apply",
"snapshot",
"(",
")",
";"
] |
[
"return",
"a",
"reference",
"to",
"the",
"ints",
"of",
"this",
"builder"
] | [
"return",
"ref",
"ints",
";"
] |
[
"return",
"the",
"int",
"at",
"the",
"given",
"offset"
] | [
"return",
"ref",
"ints",
"[",
"offset",
"]",
";"
] |
[
"set",
"an",
"int"
] | [
"ref",
"ints",
"[",
"offset",
"]",
"=",
"b",
";"
] |
[
"append",
"the",
"provided",
"int",
"to",
"this",
"buffer"
] | [
"grow",
"(",
"ref",
"length",
"+",
"1",
")",
";",
"ref",
"ints",
"[",
"ref",
"length",
"+",
"+",
"]",
"=",
"i",
";"
] |
[
"used",
"to",
"grow",
"the",
"reference",
"array"
] | [
"ref",
"ints",
"=",
"array",
"util",
"grow",
"(",
"ref",
"ints",
",",
"new",
"length",
")",
";"
] |
[
"copies",
"the",
"given",
"array",
"into",
"this",
"instance"
] | [
"grow",
"(",
"other",
"length",
")",
";",
"system",
"arraycopy",
"(",
"other",
"ints",
",",
"other",
"offset",
",",
"ref",
"ints",
",",
"0",
",",
"other",
"length",
")",
";",
"ref",
"length",
"=",
"other",
"length",
";"
] |
[
"copies",
"the",
"given",
"array",
"into",
"this",
"instance"
] | [
"copy",
"ints",
"(",
"ints",
"ints",
",",
"ints",
"offset",
",",
"ints",
"length",
")",
";"
] |
[
"copy",
"the",
"given",
"utf",
"-",
"8",
"bytes",
"into",
"this",
"builder",
"works",
"as",
"if",
"the",
"bytes",
"were",
"first",
"converted",
"from",
"utf",
"-",
"8",
"to",
"utf",
"-",
"32",
"and",
"then",
"copied",
"into",
"this",
"builder"
] | [
"grow",
"(",
"bytes",
"length",
")",
";",
"ref",
"length",
"=",
"unicode",
"util",
"u",
"t",
"f",
"8to",
"u",
"t",
"f",
"3",
"2",
"(",
"bytes",
",",
"ref",
"ints",
")",
";"
] |
[
"build",
"a",
"new",
"{"
] | [
"return",
"ints",
"ref",
"deep",
"copy",
"of",
"(",
"get",
"(",
")",
")",
";"
] |
[
"<",
"p",
">",
"the",
"serial",
"number",
"that",
"uniquely",
"identifies",
"the",
"mfa",
"device",
"for",
"virtual",
"mfa",
"devices",
"the",
"serial",
"number",
"is",
"the",
"same",
"as",
"the",
"arn",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"upper",
"and",
"lowercase",
"alphanumeric",
"characters",
"with",
"no",
"spaces",
"you",
"can",
"also",
"include",
"any",
"of",
"the",
"following",
"characters",
":",
"=",
"@",
":",
"/",
"-",
"<",
"/",
"p",
">"
] | [
"set",
"serial",
"number",
"(",
"serial",
"number",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"reference",
"that",
"is",
"associated",
"with",
"the",
"policy",
"object",
"<",
"/",
"p",
">"
] | [
"set",
"policy",
"reference",
"(",
"policy",
"reference",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"reference",
"that",
"identifies",
"the",
"object",
"to",
"which",
"the",
"policy",
"will",
"be",
"attached",
"<",
"/",
"p",
">"
] | [
"set",
"object",
"reference",
"(",
"object",
"reference",
")",
";",
"return",
"this",
";"
] |
[
"set",
"the",
"transient",
"property",
"at",
"load",
"time",
"based",
"on",
"a",
"calculation",
"note",
"that",
"a",
"native",
"hibernate",
"formula",
"mapping",
"is",
"better",
"for",
"this",
"purpose"
] | [
"age",
"=",
"chrono",
"unit",
"years",
"between",
"(",
"local",
"date",
"time",
"of",
"instant",
"(",
"instant",
"of",
"epoch",
"milli",
"(",
"date",
"of",
"birth",
"get",
"time",
"(",
")",
")",
",",
"zone",
"offset",
"utc",
")",
",",
"local",
"date",
"time",
"now",
"(",
")",
")",
";"
] |
[
"{"
] | [
"return",
"new",
"visor",
"cache",
"lost",
"partitions",
"job",
"(",
"arg",
",",
"debug",
")",
";"
] |
[
"{"
] | [
"map",
"<",
"string",
",",
"list",
"<",
"integer",
">",
">",
"res",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"cache",
"name",
":",
"arg",
"get",
"cache",
"names",
"(",
")",
")",
"{",
"ignite",
"internal",
"cache",
"cache",
"=",
"ignite",
"cachex",
"(",
"cache",
"name",
")",
";",
"if",
"(",
"cache",
"!",
"=",
"null",
")",
"{",
"grid",
"dht",
"partition",
"topology",
"top",
"=",
"cache",
"context",
"(",
")",
"topology",
"(",
")",
";",
"list",
"<",
"integer",
">",
"lost",
"partitions",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"top",
"lost",
"partitions",
"(",
")",
")",
";",
"if",
"(",
"!",
"lost",
"partitions",
"is",
"empty",
"(",
")",
")",
"res",
"put",
"(",
"cache",
"name",
",",
"lost",
"partitions",
")",
";",
"}",
"}",
"return",
"new",
"visor",
"cache",
"lost",
"partitions",
"task",
"result",
"(",
"res",
")",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"visor",
"cache",
"lost",
"partitions",
"job",
"class",
",",
"this",
")",
";"
] |
[
"<",
"p",
">",
"the",
"base",
"6",
"4",
"pem",
"-",
"encoded",
"certificate",
"<",
"/",
"p",
">"
] | [
"set",
"certificate",
"(",
"certificate",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"base",
"6",
"4",
"pem",
"-",
"encoded",
"certificate",
"chain",
"this",
"does",
"not",
"include",
"the",
"certificate",
"that",
"you",
"are",
"exporting",
"<",
"/",
"p",
">"
] | [
"set",
"certificate",
"chain",
"(",
"certificate",
"chain",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"pem",
"-",
"encoded",
"private",
"key",
"associated",
"with",
"the",
"public",
"key",
"in",
"the",
"certificate",
"<",
"/",
"p",
">"
] | [
"set",
"private",
"key",
"(",
"private",
"key",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"value",
"of",
"the",
"given",
"private",
"field",
"from",
"the",
"source",
"object",
"*"
] | [
"final",
"field",
"object",
"field",
"=",
"source",
"get",
"class",
"(",
")",
"get",
"declared",
"field",
"(",
"field",
"name",
")",
";",
"object",
"field",
"set",
"accessible",
"(",
"true",
")",
";",
"return",
"object",
"field",
"get",
"(",
"source",
")",
";"
] |
[
"the",
"arn",
"of",
"the",
"core",
"definition",
"version",
"for",
"this",
"group"
] | [
"set",
"core",
"definition",
"version",
"arn",
"(",
"core",
"definition",
"version",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"the",
"arn",
"of",
"the",
"device",
"definition",
"version",
"for",
"this",
"group"
] | [
"set",
"device",
"definition",
"version",
"arn",
"(",
"device",
"definition",
"version",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"the",
"arn",
"of",
"the",
"function",
"definition",
"version",
"for",
"this",
"group"
] | [
"set",
"function",
"definition",
"version",
"arn",
"(",
"function",
"definition",
"version",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"the",
"arn",
"of",
"the",
"logger",
"definition",
"version",
"for",
"this",
"group"
] | [
"set",
"logger",
"definition",
"version",
"arn",
"(",
"logger",
"definition",
"version",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"the",
"resource",
"definition",
"version",
"arn",
"for",
"this",
"group"
] | [
"set",
"resource",
"definition",
"version",
"arn",
"(",
"resource",
"definition",
"version",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"the",
"arn",
"of",
"the",
"subscription",
"definition",
"version",
"for",
"this",
"group"
] | [
"set",
"subscription",
"definition",
"version",
"arn",
"(",
"subscription",
"definition",
"version",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"*",
"returns",
"the",
"string",
"representation",
"of",
"the",
"telnet",
"protocol",
"command",
"corresponding",
"to",
"the",
"given",
"command",
"code",
"<",
"p",
">"
] | [
"return",
"command",
"string",
"[",
"first",
"command",
"-",
"code",
"]",
";"
] |
[
"*",
"determines",
"if",
"a",
"given",
"command",
"code",
"is",
"valid",
"returns",
"true",
"if",
"valid",
"false",
"if",
"not",
"<",
"p",
">"
] | [
"return",
"(",
"code",
"<",
"=",
"first",
"command",
"&",
"&",
"code",
">",
"=",
"last",
"command",
")",
";"
] |
[
"sets",
"the",
"center",
"point",
"of",
"the",
"query"
] | [
"this",
"center",
"=",
"new",
"geo",
"point",
"(",
"lat",
",",
"lon",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"center",
"point",
"of",
"the",
"distance",
"query"
] | [
"return",
"this",
"center",
";"
] |
[
"sets",
"the",
"distance",
"from",
"the",
"center",
"using",
"the",
"default",
"distance",
"unit"
] | [
"return",
"distance",
"(",
"distance",
",",
"distance",
"unit",
"default",
")",
";"
] |
[
"sets",
"the",
"distance",
"from",
"the",
"center",
"for",
"this",
"query"
] | [
"return",
"distance",
"(",
"double",
"to",
"string",
"(",
"distance",
")",
",",
"unit",
")",
";"
] |
[
"returns",
"the",
"distance",
"configured",
"as",
"radius"
] | [
"return",
"distance",
";"
] |
[
"set",
"validation",
"method",
"for",
"geo",
"coordinates"
] | [
"this",
"validation",
"method",
"=",
"method",
";"
] |
[
"sets",
"whether",
"the",
"query",
"builder",
"should",
"ignore",
"unmapped",
"fields",
"(",
"and",
"run",
"a",
"{"
] | [
"this",
"ignore",
"unmapped",
"=",
"ignore",
"unmapped",
";",
"return",
"this",
";"
] |
[
"returns",
"list",
"of",
"tree",
"node",
"children"
] | [
"protected",
"abstract",
"list",
"<",
"t",
">",
"get",
"children",
"(",
"t",
"tree",
"node",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"this",
"parameter",
"must",
"be",
"set",
"to",
"chef",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"chef",
"version",
"this",
"parameter",
"must",
"be",
"set",
"to",
"12",
"11",
"10",
"or",
"11",
"4",
"for",
"linux",
"stacks",
"and",
"to",
"12",
"2",
"for",
"windows",
"stacks",
"the",
"default",
"value",
"for",
"linux",
"stacks",
"is",
"11",
"4",
"<",
"/",
"p",
">"
] | [
"set",
"version",
"(",
"version",
")",
";",
"return",
"this",
";"
] |
[
"set",
"the",
"codebase",
"url",
"to",
"download",
"classes",
"from",
"if",
"not",
"found",
"locally",
"can",
"consists",
"of",
"multiple",
"u",
"r",
"ls",
"separated",
"by",
"spaces",
"<",
"p",
">",
"follows",
"rmi",
"s",
"codebase",
"conventions",
"for",
"dynamic",
"class",
"download",
"in",
"contrast",
"to",
"rmi",
"where",
"the",
"server",
"determines",
"the",
"url",
"for",
"class",
"download",
"(",
"via",
"the",
"java",
"rmi",
"server",
"codebase",
"system",
"property",
")",
"it",
"s",
"the",
"client",
"that",
"determines",
"the",
"codebase",
"url",
"here",
"the",
"server",
"will",
"usually",
"be",
"the",
"same",
"as",
"for",
"the",
"service",
"url",
"just",
"pointing",
"to",
"a",
"different",
"path",
"there"
] | [
"this",
"codebase",
"url",
"=",
"codebase",
"url",
";"
] |
[
"return",
"the",
"codebase",
"url",
"to",
"download",
"classes",
"from",
"if",
"not",
"found",
"locally"
] | [
"return",
"this",
"codebase",
"url",
";"
] |
[
"set",
"the",
"http",
"invoker",
"request",
"executor",
"implementation",
"to",
"use",
"for",
"executing",
"remote",
"invocations",
"<",
"p",
">",
"default",
"is",
"{"
] | [
"this",
"http",
"invoker",
"request",
"executor",
"=",
"http",
"invoker",
"request",
"executor",
";"
] |
[
"return",
"the",
"http",
"invoker",
"request",
"executor",
"used",
"by",
"this",
"remote",
"accessor",
"<",
"p",
">",
"creates",
"a",
"default",
"simple",
"http",
"invoker",
"request",
"executor",
"if",
"no",
"executor",
"has",
"been",
"initialized",
"already"
] | [
"if",
"(",
"this",
"http",
"invoker",
"request",
"executor",
"=",
"=",
"null",
")",
"{",
"simple",
"http",
"invoker",
"request",
"executor",
"executor",
"=",
"new",
"simple",
"http",
"invoker",
"request",
"executor",
"(",
")",
";",
"executor",
"set",
"bean",
"class",
"loader",
"(",
"get",
"bean",
"class",
"loader",
"(",
")",
")",
";",
"this",
"http",
"invoker",
"request",
"executor",
"=",
"executor",
";",
"}",
"return",
"this",
"http",
"invoker",
"request",
"executor",
";"
] |
[
"execute",
"the",
"given",
"remote",
"invocation",
"via",
"the",
"{"
] | [
"return",
"execute",
"request",
"(",
"invocation",
")",
";"
] |
[
"execute",
"the",
"given",
"remote",
"invocation",
"via",
"the",
"{"
] | [
"return",
"get",
"http",
"invoker",
"request",
"executor",
"(",
")",
"execute",
"request",
"(",
"this",
",",
"invocation",
")",
";"
] |
[
"<",
"p",
">",
"the",
"streaming",
"distribution",
"s",
"configuration",
"information",
"<",
"/",
"p",
">"
] | [
"set",
"streaming",
"distribution",
"config",
"(",
"streaming",
"distribution",
"config",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"le",
"bluetooth",
"device",
"address",
"value",
"to",
"be",
"used",
"during",
"le",
"pairing",
"the",
"value",
"shall",
"be",
"7",
"bytes",
"please",
"see",
"bluetooth",
"c",
"s",
"sv",
"6",
"part",
"a",
"1",
"16",
"for",
"a",
"detailed",
"description"
] | [
"m",
"le",
"bluetooth",
"device",
"address",
"=",
"le",
"bluetooth",
"device",
"address",
";"
] |
[
"sets",
"the",
"temporary",
"key",
"value",
"to",
"be",
"used",
"by",
"the",
"le",
"security",
"manager",
"during",
"le",
"pairing",
"the",
"value",
"shall",
"be",
"16",
"bytes",
"please",
"see",
"bluetooth",
"c",
"s",
"sv",
"6",
"part",
"a",
"1",
"8",
"for",
"a",
"detailed",
"description"
] | [
"m",
"security",
"manager",
"tk",
"=",
"security",
"manager",
"tk",
";"
] |
[
"returns",
"true",
"if",
"field",
"register",
"info",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"register",
"info",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"register",
"info",
":",
"return",
"is",
"set",
"register",
"info",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"event",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"event",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"event",
":",
"return",
"is",
"set",
"event",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"intp",
"group",
"id",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"intp",
"group",
"id",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"json",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"json",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"intp",
"group",
"id",
":",
"return",
"is",
"set",
"intp",
"group",
"id",
"(",
")",
";",
"case",
"json",
":",
"return",
"is",
"set",
"json",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"intp",
"group",
"id",
":",
"return",
"is",
"set",
"intp",
"group",
"id",
"(",
")",
";",
"case",
"note",
"id",
":",
"return",
"is",
"set",
"note",
"id",
"(",
")",
";",
"case",
"paragraph",
"id",
":",
"return",
"is",
"set",
"paragraph",
"id",
"(",
")",
";",
"case",
"name",
":",
"return",
"is",
"set",
"name",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"intp",
"group",
"id",
":",
"return",
"is",
"set",
"intp",
"group",
"id",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"resource",
"id",
"json",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"resource",
"id",
"json",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"resource",
"id",
"json",
":",
"return",
"is",
"set",
"resource",
"id",
"json",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"invoke",
"method",
"json",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"invoke",
"method",
"json",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"intp",
"group",
"id",
":",
"return",
"is",
"set",
"intp",
"group",
"id",
"(",
")",
";",
"case",
"invoke",
"method",
"json",
":",
"return",
"is",
"set",
"invoke",
"method",
"json",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"guarded",
"by",
"segment",
"this"
] | [
"previous",
"set",
"next",
"in",
"access",
"queue",
"(",
"next",
")",
";",
"next",
"set",
"previous",
"in",
"access",
"queue",
"(",
"previous",
")",
";"
] |
[
"guarded",
"by",
"segment",
"this"
] | [
"reference",
"entry",
"<",
"k",
",",
"v",
">",
"null",
"entry",
"=",
"null",
"entry",
"(",
")",
";",
"nulled",
"set",
"next",
"in",
"access",
"queue",
"(",
"null",
"entry",
")",
";",
"nulled",
"set",
"previous",
"in",
"access",
"queue",
"(",
"null",
"entry",
")",
";"
] |
[
"guarded",
"by",
"segment",
"this"
] | [
"previous",
"set",
"next",
"in",
"write",
"queue",
"(",
"next",
")",
";",
"next",
"set",
"previous",
"in",
"write",
"queue",
"(",
"previous",
")",
";"
] |
[
"guarded",
"by",
"segment",
"this"
] | [
"reference",
"entry",
"<",
"k",
",",
"v",
">",
"null",
"entry",
"=",
"null",
"entry",
"(",
")",
";",
"nulled",
"set",
"next",
"in",
"write",
"queue",
"(",
"null",
"entry",
")",
";",
"nulled",
"set",
"previous",
"in",
"write",
"queue",
"(",
"null",
"entry",
")",
";"
] |
[
"gets",
"the",
"value",
"from",
"an",
"entry",
"returns",
"null",
"if",
"the",
"entry",
"is",
"invalid",
"partially",
"-",
"collected",
"loading",
"or",
"expired",
"unlike",
"{"
] | [
"if",
"(",
"entry",
"get",
"key",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"v",
"value",
"=",
"entry",
"get",
"value",
"reference",
"(",
")",
"get",
"(",
")",
";",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"is",
"expired",
"(",
"entry",
",",
"now",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"value",
";"
] |
[
"returns",
"true",
"if",
"the",
"entry",
"has",
"expired"
] | [
"check",
"not",
"null",
"(",
"entry",
")",
";",
"if",
"(",
"expires",
"after",
"access",
"(",
")",
"&",
"&",
"(",
"now",
"-",
"entry",
"get",
"access",
"time",
"(",
")",
">",
"=",
"expire",
"after",
"access",
"nanos",
")",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"expires",
"after",
"write",
"(",
")",
"&",
"&",
"(",
"now",
"-",
"entry",
"get",
"write",
"time",
"(",
")",
">",
"=",
"expire",
"after",
"write",
"nanos",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"null",
"access"
] | [
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
] |
[
"null",
"write"
] | [
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
] |
[
"at",
"most",
"one",
"of",
"load",
"sync",
"/",
"load",
"async",
"may",
"be",
"called",
"for",
"any",
"given",
"loading",
"value",
"reference"
] | [
"listenable",
"future",
"<",
"v",
">",
"loading",
"future",
"=",
"loading",
"value",
"reference",
"load",
"future",
"(",
"key",
",",
"loader",
")",
";",
"return",
"get",
"and",
"record",
"stats",
"(",
"key",
",",
"hash",
",",
"loading",
"value",
"reference",
",",
"loading",
"future",
")",
";"
] |
[
"records",
"the",
"relative",
"order",
"in",
"which",
"this",
"read",
"was",
"performed",
"by",
"adding",
"{",
"@",
"code",
"entry",
"}",
"to",
"the",
"recency",
"queue",
"at",
"write",
"-",
"time",
"or",
"when",
"the",
"queue",
"is",
"full",
"past",
"the",
"threshold",
"the",
"queue",
"will",
"be",
"drained",
"and",
"the",
"entries",
"therein",
"processed"
] | [
"if",
"(",
"map",
"records",
"access",
"(",
")",
")",
"{",
"entry",
"set",
"access",
"time",
"(",
"now",
")",
";",
"}",
"recency",
"queue",
"add",
"(",
"entry",
")",
";"
] |
[
"updates",
"the",
"eviction",
"metadata",
"that",
"{"
] | [
"if",
"(",
"map",
"records",
"access",
"(",
")",
")",
"{",
"entry",
"set",
"access",
"time",
"(",
"now",
")",
";",
"}",
"access",
"queue",
"add",
"(",
"entry",
")",
";"
] |
[
"eviction"
] | [
"enqueue",
"notification",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"entry",
"get",
"hash",
"(",
")",
",",
"entry",
"get",
"value",
"reference",
"(",
")",
",",
"cause",
")",
";"
] |
[
"performs",
"eviction",
"if",
"the",
"segment",
"is",
"full",
"this",
"should",
"only",
"be",
"called",
"prior",
"to",
"adding",
"a",
"new",
"entry",
"and",
"increasing",
"{"
] | [
"if",
"(",
"!",
"map",
"evicts",
"by",
"size",
"(",
")",
")",
"{",
"return",
";",
"}",
"drain",
"recency",
"queue",
"(",
")",
";",
"while",
"(",
"total",
"weight",
">",
"max",
"segment",
"weight",
")",
"{",
"reference",
"entry",
"<",
"k",
",",
"v",
">",
"e",
"=",
"get",
"next",
"evictable",
"(",
")",
";",
"if",
"(",
"!",
"remove",
"entry",
"(",
"e",
",",
"e",
"get",
"hash",
"(",
")",
",",
"removal",
"cause",
"size",
")",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
")",
";",
"}",
"}"
] |
[
"todo",
"(",
"fry",
")",
":",
"instead",
"implement",
"this",
"with",
"an",
"eviction",
"head"
] | [
"for",
"(",
"reference",
"entry",
"<",
"k",
",",
"v",
">",
"e",
":",
"access",
"queue",
")",
"{",
"int",
"weight",
"=",
"e",
"get",
"value",
"reference",
"(",
")",
"get",
"weight",
"(",
")",
";",
"if",
"(",
"weight",
">",
"0",
")",
"{",
"return",
"e",
";",
"}",
"}",
"throw",
"new",
"assertion",
"error",
"(",
")",
";"
] |
[
"specialized",
"implementations",
"of",
"map",
"methods"
] | [
"for",
"(",
"reference",
"entry",
"<",
"k",
",",
"v",
">",
"e",
"=",
"get",
"first",
"(",
"hash",
")",
";",
"e",
"!",
"=",
"null",
";",
"e",
"=",
"e",
"get",
"next",
"(",
")",
")",
"{",
"if",
"(",
"e",
"get",
"hash",
"(",
")",
"!",
"=",
"hash",
")",
"{",
"continue",
";",
"}",
"k",
"entry",
"key",
"=",
"e",
"get",
"key",
"(",
")",
";",
"if",
"(",
"entry",
"key",
"=",
"=",
"null",
")",
"{",
"try",
"drain",
"reference",
"queues",
"(",
")",
";",
"continue",
";",
"}",
"if",
"(",
"map",
"key",
"equivalence",
"equivalent",
"(",
"key",
",",
"entry",
"key",
")",
")",
"{",
"return",
"e",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"gets",
"the",
"value",
"from",
"an",
"entry",
"returns",
"null",
"if",
"the",
"entry",
"is",
"invalid",
"partially",
"-",
"collected",
"loading",
"or",
"expired"
] | [
"if",
"(",
"entry",
"get",
"key",
"(",
")",
"=",
"=",
"null",
")",
"{",
"try",
"drain",
"reference",
"queues",
"(",
")",
";",
"return",
"null",
";",
"}",
"v",
"value",
"=",
"entry",
"get",
"value",
"reference",
"(",
")",
"get",
"(",
")",
";",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"try",
"drain",
"reference",
"queues",
"(",
")",
";",
"return",
"null",
";",
"}",
"if",
"(",
"map",
"is",
"expired",
"(",
"entry",
",",
"now",
")",
")",
"{",
"try",
"expire",
"entries",
"(",
"now",
")",
";",
"return",
"null",
";",
"}",
"return",
"value",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.