docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"the",
"language",
"code",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"en",
"<",
"/",
"code",
">",
"-",
"english",
"(",
"default",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"jp",
"<",
"/",
"code",
">",
"-",
"japanese",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"zh",
"<",
"/",
"code",
">",
"-",
"chinese",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"accept",
"language",
"(",
"accept",
"language",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"plan",
"identifier",
"<",
"/",
"p",
">"
] | [
"set",
"plan",
"id",
"(",
"plan",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"unique",
"identifier",
"that",
"you",
"provide",
"to",
"ensure",
"idempotency",
"if",
"multiple",
"requests",
"differ",
"only",
"by",
"the",
"idempotency",
"token",
"the",
"same",
"response",
"is",
"returned",
"for",
"each",
"repeated",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"idempotency",
"token",
"(",
"idempotency",
"token",
")",
";",
"return",
"this",
";"
] |
[
"gets",
"ipc",
"server",
"endpoint"
] | [
"return",
"srv",
"endpoint",
";"
] |
[
"{"
] | [
"super",
"cancel",
"(",
")",
";",
"shutdown",
"0",
"(",
"null",
")",
";"
] |
[
"{"
] | [
"super",
"cancel",
"(",
")",
";",
"srv",
"endpoint",
"close",
"(",
")",
";"
] |
[
"the",
"scaled",
"version",
"of",
"size"
] | [
"return",
"size",
"*",
"2",
";"
] |
[
"returns",
"the",
"total",
"number",
"of",
"key",
"-",
"value",
"headers",
"in",
"this",
"metadata",
"including",
"duplicates"
] | [
"return",
"size",
";"
] |
[
"returns",
"true",
"if",
"a",
"value",
"is",
"defined",
"for",
"the",
"given",
"key"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"bytes",
"equal",
"(",
"key",
"ascii",
"name",
"(",
")",
",",
"name",
"(",
"i",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"returns",
"the",
"last",
"metadata",
"entry",
"added",
"with",
"the",
"name",
"name",
"parsed",
"as",
"t"
] | [
"for",
"(",
"int",
"i",
"=",
"size",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"if",
"(",
"bytes",
"equal",
"(",
"key",
"ascii",
"name",
"(",
")",
",",
"name",
"(",
"i",
")",
")",
")",
"{",
"return",
"key",
"parse",
"bytes",
"(",
"value",
"(",
"i",
")",
")",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"returns",
"all",
"the",
"metadata",
"entries",
"named",
"name",
"in",
"the",
"order",
"they",
"were",
"received",
"parsed",
"as",
"t",
"or",
"null",
"if",
"there",
"are",
"none",
"the",
"iterator",
"is",
"not",
"guaranteed",
"to",
"be",
"live",
"it",
"may",
"or",
"may",
"not",
"be",
"accurate",
"if",
"metadata",
"is",
"mutated"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"bytes",
"equal",
"(",
"key",
"ascii",
"name",
"(",
")",
",",
"name",
"(",
"i",
")",
")",
")",
"{",
"return",
"new",
"iterable",
"at",
"<",
"t",
">",
"(",
"key",
",",
"i",
")",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"expands",
"to",
"exactly",
"the",
"desired",
"capacity"
] | [
"byte",
"[",
"]",
"[",
"]",
"new",
"names",
"and",
"values",
"=",
"new",
"byte",
"[",
"new",
"capacity",
"]",
"[",
"]",
";",
"if",
"(",
"!",
"is",
"empty",
"(",
")",
")",
"{",
"system",
"arraycopy",
"(",
"names",
"and",
"values",
",",
"0",
",",
"new",
"names",
"and",
"values",
",",
"0",
",",
"len",
"(",
")",
")",
";",
"}",
"names",
"and",
"values",
"=",
"new",
"names",
"and",
"values",
";"
] |
[
"serialize",
"all",
"the",
"metadata",
"entries"
] | [
"if",
"(",
"len",
"(",
")",
"=",
"=",
"cap",
"(",
")",
")",
"{",
"return",
"names",
"and",
"values",
";",
"}",
"byte",
"[",
"]",
"[",
"]",
"serialized",
"=",
"new",
"byte",
"[",
"len",
"(",
")",
"]",
"[",
"]",
";",
"system",
"arraycopy",
"(",
"names",
"and",
"values",
",",
"0",
",",
"serialized",
",",
"0",
",",
"len",
"(",
")",
")",
";",
"return",
"serialized",
";"
] |
[
"perform",
"a",
"simple",
"merge",
"of",
"two",
"sets",
"of",
"metadata"
] | [
"if",
"(",
"other",
"is",
"empty",
"(",
")",
")",
"{",
"return",
";",
"}",
"int",
"remaining",
"=",
"cap",
"(",
")",
"-",
"len",
"(",
")",
";",
"if",
"(",
"is",
"empty",
"(",
")",
"|",
"|",
"remaining",
"<",
"other",
"len",
"(",
")",
")",
"{",
"expand",
"(",
"len",
"(",
")",
"+",
"other",
"len",
"(",
")",
")",
";",
"}",
"system",
"arraycopy",
"(",
"other",
"names",
"and",
"values",
",",
"0",
",",
"names",
"and",
"values",
",",
"len",
"(",
")",
",",
"other",
"len",
"(",
")",
")",
";",
"size",
"+",
"=",
"other",
"size",
";"
] |
[
"creates",
"a",
"key",
"for",
"a",
"binary",
"header"
] | [
"return",
"new",
"binary",
"key",
"<",
"t",
">",
"(",
"name",
",",
"marshaller",
")",
";"
] |
[
"creates",
"a",
"key",
"for",
"an",
"ascii",
"header"
] | [
"return",
"of",
"(",
"name",
",",
"false",
",",
"marshaller",
")",
";"
] |
[
"todo",
"(",
"louiscryan",
")",
":",
"migrate",
"to",
"byte",
"string"
] | [
"return",
"name",
"bytes",
";"
] |
[
"returns",
"true",
"if",
"the",
"two",
"objects",
"are",
"both",
"keys",
"and",
"their",
"names",
"match",
"(",
"case",
"insensitive",
")"
] | [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"key",
"<",
"?",
">",
"key",
"=",
"(",
"key",
"<",
"?",
">",
")",
"o",
";",
"return",
"name",
"equals",
"(",
"key",
"name",
")",
";"
] |
[
"serialize",
"a",
"metadata",
"value",
"to",
"bytes"
] | [
"abstract",
"byte",
"[",
"]",
"to",
"bytes",
"(",
"t",
"value",
")",
";"
] |
[
"parse",
"a",
"serialized",
"metadata",
"value",
"from",
"bytes"
] | [
"abstract",
"t",
"parse",
"bytes",
"(",
"byte",
"[",
"]",
"serialized",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"retrieved",
"schema",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"json",
"representation",
"of",
"the",
"schema",
"document",
"<",
"/",
"p",
">"
] | [
"set",
"document",
"(",
"document",
")",
";",
"return",
"this",
";"
] |
[
"this",
"is",
"how",
"the",
"i",
"ds",
"were",
"formed",
"in",
"v",
"5",
"4"
] | [
"return",
"v",
"5",
"4",
"document",
"prefix",
"(",
"job",
"id",
")",
"+",
"doc",
"num",
";"
] |
[
"/",
"*",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"helper",
"methods",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] | [
"for",
"(",
"final",
"map",
"entry",
"<",
"string",
",",
"key",
"information",
">",
"info",
":",
"all",
"keys",
"entry",
"set",
"(",
")",
")",
"{",
"final",
"key",
"information",
"key",
"info",
"=",
"info",
"get",
"value",
"(",
")",
";",
"if",
"(",
"index",
"supports",
"(",
"key",
"info",
")",
")",
"index",
"register",
"(",
"store",
",",
"info",
"get",
"key",
"(",
")",
",",
"key",
"info",
",",
"tx",
")",
";",
"}"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] | [
"check",
"state",
"(",
")",
";"
] |
[
"copies",
"the",
"authentication",
"details",
"from",
"a",
"source",
"authentication",
"object",
"to",
"a",
"destination",
"one",
"provided",
"the",
"latter",
"does",
"not",
"already",
"have",
"one",
"set"
] | [
"if",
"(",
"(",
"dest",
"instanceof",
"abstract",
"authentication",
"token",
")",
"&",
"&",
"(",
"dest",
"get",
"details",
"(",
")",
"=",
"=",
"null",
")",
")",
"{",
"abstract",
"authentication",
"token",
"token",
"=",
"(",
"abstract",
"authentication",
"token",
")",
"dest",
";",
"token",
"set",
"details",
"(",
"source",
"get",
"details",
"(",
")",
")",
";",
"}"
] |
[
"if",
"set",
"to",
"a",
"resulting",
"{",
"@",
"code",
"authentication",
"}",
"which",
"implements",
"the",
"{",
"@",
"code",
"credentials",
"container",
"}",
"interface",
"will",
"have",
"its",
"{",
"@",
"link",
"credentials",
"container",
"#",
"erase",
"credentials",
"(",
")",
"erase",
"credentials",
"}",
"method",
"called",
"before",
"it",
"is",
"returned",
"from",
"the",
"{",
"@",
"code",
"authenticate",
"(",
")",
"}",
"method"
] | [
"this",
"erase",
"credentials",
"after",
"authentication",
"=",
"erase",
"secret",
"data",
";"
] |
[
"~",
"methods",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] | [
"partition",
"schema",
"partition",
"schema",
"=",
"new",
"partition",
"schema",
"(",
")",
";",
"data",
"node",
"to",
"element",
"(",
"root",
"node",
",",
"partition",
"schema",
")",
";",
"return",
"partition",
"schema",
";"
] |
[
"{"
] | [
"return",
"props",
"get",
"(",
"name",
")",
";"
] |
[
"{"
] | [
"assert",
"job",
"cls",
"!",
"=",
"null",
";",
"try",
"{",
"constructor",
"<",
"?",
"extends",
"hadoop",
"job",
"ex",
">",
"constructor",
"=",
"job",
"cls",
"get",
"constructor",
"(",
"hadoop",
"job",
"id",
"class",
",",
"hadoop",
"default",
"job",
"info",
"class",
",",
"ignite",
"logger",
"class",
",",
"string",
"[",
"]",
"class",
",",
"hadoop",
"helper",
"class",
")",
";",
"return",
"constructor",
"new",
"instance",
"(",
"job",
"id",
",",
"this",
",",
"log",
",",
"lib",
"names",
",",
"helper",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"if",
"(",
"t",
"instanceof",
"error",
")",
"throw",
"(",
"error",
")",
"t",
";",
"throw",
"new",
"ignite",
"checked",
"exception",
"(",
"t",
")",
";",
"}"
] |
[
"{"
] | [
"return",
"has",
"combiner",
";"
] |
[
"{"
] | [
"return",
"reducers",
"(",
")",
">",
"0",
";"
] |
[
"{"
] | [
"return",
"num",
"reduces",
";"
] |
[
"{"
] | [
"return",
"job",
"name",
";"
] |
[
"{"
] | [
"return",
"credentials",
";"
] |
[
"{"
] | [
"u",
"write",
"string",
"(",
"out",
",",
"job",
"name",
")",
";",
"u",
"write",
"string",
"(",
"out",
",",
"user",
")",
";",
"out",
"write",
"boolean",
"(",
"has",
"combiner",
")",
";",
"out",
"write",
"int",
"(",
"num",
"reduces",
")",
";",
"igfs",
"utils",
"write",
"string",
"map",
"(",
"out",
",",
"props",
")",
";",
"u",
"write",
"byte",
"array",
"(",
"out",
",",
"credentials",
")",
";"
] |
[
"{"
] | [
"job",
"name",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";",
"user",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";",
"has",
"combiner",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"num",
"reduces",
"=",
"in",
"read",
"int",
"(",
")",
";",
"props",
"=",
"igfs",
"utils",
"read",
"string",
"map",
"(",
"in",
")",
";",
"credentials",
"=",
"u",
"read",
"byte",
"array",
"(",
"in",
")",
";"
] |
[
"compares",
"two",
"{",
"@",
"link",
"java",
"nio",
"byte",
"buffer",
"}",
"s",
"and",
"checks",
"whether",
"the",
"first",
"byte",
"buffer",
"is",
"smaller",
"than",
"the",
"second"
] | [
"return",
"compare",
"(",
"a",
",",
"b",
")",
"<",
"0",
";"
] |
[
"compares",
"two",
"{",
"@",
"link",
"static",
"buffer",
"}",
"s",
"and",
"checks",
"whether",
"the",
"first",
"{",
"@",
"code",
"static",
"buffer",
"}",
"is",
"smaller",
"than",
"the",
"second"
] | [
"return",
"compare",
"(",
"a",
",",
"b",
")",
"<",
"0",
";"
] |
[
"compares",
"two",
"{",
"@",
"link",
"static",
"buffer",
"}",
"s",
"and",
"checks",
"whether",
"the",
"first",
"{",
"@",
"code",
"static",
"buffer",
"}",
"is",
"smaller",
"than",
"or",
"equal",
"to",
"the",
"second"
] | [
"return",
"compare",
"(",
"a",
",",
"b",
")",
"<",
"=",
"0",
";"
] |
[
"thread",
"-",
"safe",
"hashcode",
"method",
"for",
"byte",
"buffer",
"written",
"according",
"to",
"effective",
"java",
"2e",
"by",
"josh",
"bloch"
] | [
"int",
"result",
"=",
"17",
";",
"for",
"(",
"int",
"i",
"=",
"b",
"position",
"(",
")",
";",
"i",
"<",
"b",
"limit",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"result",
"=",
"31",
"*",
"result",
"+",
"(",
"int",
")",
"b",
"get",
"(",
"i",
")",
";",
"}",
"return",
"result",
";"
] |
[
"thread",
"-",
"safe",
"hashcode",
"method",
"for",
"static",
"buffer",
"written",
"according",
"to",
"effective",
"java",
"2e",
"by",
"josh",
"bloch"
] | [
"int",
"result",
"=",
"17",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"b",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"result",
"=",
"31",
"*",
"result",
"+",
"(",
"int",
")",
"b",
"get",
"byte",
"(",
"i",
")",
";",
"}",
"return",
"result",
";"
] |
[
"thread",
"safe",
"equals",
"method",
"for",
"byte",
"buffers"
] | [
"if",
"(",
"b",
"1",
"remaining",
"(",
")",
"!",
"=",
"b",
"2",
"remaining",
"(",
")",
")",
"return",
"false",
";",
"int",
"p",
"1",
"=",
"b",
"1",
"position",
"(",
")",
",",
"p",
"2",
"=",
"b",
"2",
"position",
"(",
")",
";",
"while",
"(",
"p",
"1",
"<",
"b",
"1",
"limit",
"(",
")",
"&",
"&",
"p",
"2",
"<",
"b",
"2",
"limit",
"(",
")",
")",
"{",
"if",
"(",
"b",
"1",
"get",
"(",
"p",
"1",
")",
"!",
"=",
"b",
"2",
"get",
"(",
"p",
"2",
")",
")",
"return",
"false",
";",
"p",
"1",
"+",
"+",
";",
"p",
"2",
"+",
"+",
";",
"}",
"assert",
"p",
"1",
"=",
"=",
"b",
"1",
"limit",
"(",
")",
"&",
"&",
"p",
"2",
"=",
"=",
"b",
"2",
"limit",
"(",
")",
";",
"return",
"true",
";"
] |
[
"thread",
"safe",
"equals",
"method",
"for",
"static",
"buffers"
] | [
"if",
"(",
"b",
"1",
"length",
"(",
")",
"!",
"=",
"b",
"2",
"length",
"(",
")",
")",
"return",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"b",
"1",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"b",
"1",
"get",
"byte",
"(",
"i",
")",
"!",
"=",
"b",
"2",
"get",
"byte",
"(",
"i",
")",
")",
"return",
"false",
";",
"}",
"return",
"true",
";"
] |
[
"the",
"line",
"s",
"color",
"will",
"be",
":",
"-",
"mostly",
"opaque",
"white",
"if",
"the",
"hotseat",
"is",
"white",
"(",
"ignoring",
"alpha",
")",
"-",
"mostly",
"opaque",
"black",
"if",
"the",
"hotseat",
"is",
"black",
"(",
"ignoring",
"alpha",
")"
] | [
"int",
"original",
"line",
"alpha",
"=",
"m",
"line",
"paint",
"get",
"alpha",
"(",
")",
";",
"int",
"color",
"=",
"extracted",
"colors",
"get",
"hotseat",
"color",
"(",
"get",
"context",
"(",
")",
")",
";",
"if",
"(",
"color",
"!",
"=",
"color",
"transparent",
")",
"{",
"color",
"=",
"color",
"utils",
"set",
"alpha",
"component",
"(",
"color",
",",
"255",
")",
";",
"int",
"diff",
"to",
"white",
"=",
"color",
"white",
"-",
"color",
";",
"int",
"diff",
"to",
"black",
"=",
"color",
"black",
"-",
"color",
";",
"if",
"(",
"diff",
"to",
"black",
"<",
"=",
"diff",
"to",
"white",
")",
"{",
"m",
"active",
"alpha",
"=",
"black",
"alpha",
";",
"}",
"else",
"{",
"m",
"active",
"alpha",
"=",
"white",
"alpha",
";",
"}",
"m",
"line",
"paint",
"set",
"color",
"(",
"color",
")",
";",
"m",
"line",
"paint",
"set",
"alpha",
"(",
"original",
"line",
"alpha",
")",
";",
"}"
] |
[
"starts",
"the",
"given",
"animator",
"and",
"stores",
"it",
"in",
"the",
"provided",
"index",
"in",
"{"
] | [
"if",
"(",
"m",
"animators",
"[",
"animator",
"index",
"]",
"!",
"=",
"null",
")",
"{",
"m",
"animators",
"[",
"animator",
"index",
"]",
"cancel",
"(",
")",
";",
"}",
"m",
"animators",
"[",
"animator",
"index",
"]",
"=",
"animator",
";",
"m",
"animators",
"[",
"animator",
"index",
"]",
"add",
"listener",
"(",
"new",
"animator",
"listener",
"adapter",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"animation",
"end",
"(",
"animator",
"animation",
")",
"{",
"m",
"animators",
"[",
"animator",
"index",
"]",
"=",
"null",
";",
"}",
"}",
")",
";",
"m",
"animators",
"[",
"animator",
"index",
"]",
"set",
"duration",
"(",
"line",
"animate",
"duration",
")",
";",
"m",
"animators",
"[",
"animator",
"index",
"]",
"start",
"(",
")",
";"
] |
[
"the",
"{"
] | [
"return",
"runfiles",
";"
] |
[
"returns",
"the",
"input",
"dependencies",
"for",
"this",
"action",
"note",
"we",
"don",
"t",
"need",
"to",
"create",
"the",
"symlink",
"target",
"artifacts",
"before",
"we",
"write",
"the",
"output",
"manifest",
"so",
"this",
"action",
"does",
"not",
"have",
"to",
"depend",
"on",
"them",
"the",
"only",
"necessary",
"dependencies",
"are",
"pruning",
"manifests",
"which",
"must",
"be",
"read",
"to",
"properly",
"prune",
"the",
"tree"
] | [
"immutable",
"list",
"builder",
"<",
"artifact",
">",
"builder",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"for",
"(",
"runfiles",
"pruning",
"manifest",
"manifest",
":",
"runfiles",
"get",
"pruning",
"manifests",
"(",
")",
")",
"{",
"builder",
"add",
"(",
"manifest",
"get",
"manifest",
"file",
"(",
")",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";"
] |
[
"sort",
"the",
"entries",
"in",
"both",
"the",
"normal",
"and",
"root",
"manifests",
"and",
"write",
"the",
"output",
"file"
] | [
"writer",
"manifest",
"file",
"=",
"new",
"buffered",
"writer",
"(",
"new",
"output",
"stream",
"writer",
"(",
"out",
",",
"iso",
"8859",
"1",
")",
")",
";",
"comparator",
"<",
"map",
"entry",
"<",
"path",
"fragment",
",",
"artifact",
">",
">",
"fragment",
"comparator",
"=",
"new",
"comparator",
"<",
"map",
"entry",
"<",
"path",
"fragment",
",",
"artifact",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"int",
"compare",
"(",
"map",
"entry",
"<",
"path",
"fragment",
",",
"artifact",
">",
"path",
"1",
",",
"map",
"entry",
"<",
"path",
"fragment",
",",
"artifact",
">",
"path",
"2",
")",
"{",
"return",
"path",
"1",
"get",
"key",
"(",
")",
"compare",
"to",
"(",
"path",
"2",
"get",
"key",
"(",
")",
")",
";",
"}",
"}",
";",
"list",
"<",
"map",
"entry",
"<",
"path",
"fragment",
",",
"artifact",
">",
">",
"sorted",
"manifest",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"output",
"entry",
"set",
"(",
")",
")",
";",
"collections",
"sort",
"(",
"sorted",
"manifest",
",",
"fragment",
"comparator",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"path",
"fragment",
",",
"artifact",
">",
"line",
":",
"sorted",
"manifest",
")",
"{",
"manifest",
"writer",
"write",
"entry",
"(",
"manifest",
"file",
",",
"line",
"get",
"key",
"(",
")",
",",
"line",
"get",
"value",
"(",
")",
")",
";",
"}",
"manifest",
"file",
"flush",
"(",
")",
";"
] |
[
"creates",
"an",
"action",
"for",
"the",
"given",
"runfiles"
] | [
"return",
"new",
"source",
"manifest",
"action",
"(",
"manifest",
"type",
",",
"owner",
",",
"output",
",",
"runfiles",
")",
";"
] |
[
"adds",
"a",
"set",
"of",
"symlinks",
"from",
"the",
"artifacts",
"root",
"-",
"relative",
"paths",
"to",
"the",
"artifacts",
"themselves"
] | [
"runfiles",
"builder",
"add",
"artifacts",
"(",
"artifacts",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"map",
"of",
"symlinks"
] | [
"runfiles",
"builder",
"add",
"symlinks",
"(",
"symlinks",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"single",
"symlink"
] | [
"runfiles",
"builder",
"add",
"symlink",
"(",
"link",
",",
"target",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"adds",
"a",
"mapping",
"of",
"artifacts",
"to",
"the",
"directory",
"above",
"the",
"normal",
"symlink",
"forest",
"base"
] | [
"runfiles",
"builder",
"add",
"root",
"symlinks",
"(",
"root",
"symlinks",
")",
";",
"return",
"this",
";"
] |
[
"set",
"the",
"empty",
"files",
"supplier",
"for",
"the",
"manifest",
"see",
"{"
] | [
"runfiles",
"builder",
"set",
"empty",
"files",
"supplier",
"(",
"supplier",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"runfiles",
"pruning",
"manifest"
] | [
"runfiles",
"builder",
"add",
"pruning",
"manifest",
"(",
"manifest",
")",
";",
"return",
"this",
";"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"gl",
"draw",
"buffers",
"a",
"r",
"b",
"draw",
"buffers",
"a",
"r",
"b",
"}"
] | [
"public",
"static",
"native",
"void",
"ngl",
"draw",
"buffers",
"a",
"r",
"b",
"(",
"int",
"n",
",",
"long",
"bufs",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"mvcc",
"!",
"=",
"null",
")",
"{",
"this",
"mvcc",
"=",
"mvcc",
";",
"return",
"this",
";",
"}",
"else",
"return",
"new",
"grid",
"cache",
"attributes",
"obsolete",
"entry",
"extras",
"(",
"obsolete",
"ver",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"obsolete",
"ver",
"!",
"=",
"null",
")",
"{",
"this",
"obsolete",
"ver",
"=",
"obsolete",
"ver",
";",
"return",
"this",
";",
"}",
"else",
"return",
"new",
"grid",
"cache",
"attributes",
"mvcc",
"entry",
"extras",
"(",
"mvcc",
")",
";"
] |
[
"{"
] | [
"return",
"expire",
"time",
"!",
"=",
"cu",
"expire",
"time",
"eternal",
"?",
"new",
"grid",
"cache",
"attributes",
"mvcc",
"obsolete",
"ttl",
"entry",
"extras",
"(",
"mvcc",
",",
"obsolete",
"ver",
",",
"ttl",
",",
"expire",
"time",
")",
":",
"this",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"grid",
"cache",
"attributes",
"mvcc",
"obsolete",
"entry",
"extras",
"class",
",",
"this",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"version",
"message",
"indicates",
"the",
"sender",
"has",
"a",
"full",
"copy",
"of",
"the",
"block",
"chain",
"or",
"if",
"it",
"s",
"running",
"in",
"client",
"mode",
"(",
"only",
"has",
"the",
"headers",
")"
] | [
"return",
"(",
"local",
"services",
"&",
"node",
"network",
")",
"=",
"=",
"node",
"network",
";"
] |
[
"returns",
"true",
"if",
"the",
"client",
"version",
"field",
"is",
"{"
] | [
"return",
"client",
"version",
">",
"=",
"params",
"get",
"protocol",
"version",
"num",
"(",
"network",
"parameters",
"protocol",
"version",
"pong",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"client",
"version",
"field",
"is",
"{"
] | [
"return",
"client",
"version",
">",
"=",
"params",
"get",
"protocol",
"version",
"num",
"(",
"network",
"parameters",
"protocol",
"version",
"bloom",
"filter",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"protocol",
"version",
"and",
"service",
"bits",
"both",
"indicate",
"support",
"for",
"the",
"getutxos",
"message"
] | [
"return",
"client",
"version",
">",
"=",
"get",
"u",
"t",
"x",
"os",
"message",
"min",
"protocol",
"version",
"&",
"&",
"(",
"local",
"services",
"&",
"node",
"getutxos",
")",
"=",
"=",
"node",
"getutxos",
";"
] |
[
"returns",
"true",
"if",
"a",
"peer",
"can",
"be",
"asked",
"for",
"blocks",
"and",
"transactions",
"including",
"witness",
"data"
] | [
"return",
"(",
"local",
"services",
"&",
"node",
"witness",
")",
"=",
"=",
"node",
"witness",
";"
] |
[
"fill",
"tables",
"using",
"native",
"ignite",
"api"
] | [
"start",
"preload",
"logging",
"(",
"args",
"preload",
"logs",
"interval",
"(",
")",
")",
";",
"try",
"(",
"ignite",
"data",
"streamer",
"<",
"long",
",",
"accounts",
">",
"data",
"ldr",
"=",
"ignite",
"(",
")",
"data",
"streamer",
"(",
"accounts",
"get",
"name",
"(",
")",
")",
")",
"{",
"for",
"(",
"long",
"i",
"=",
"0",
";",
"i",
"<",
"acc",
"rows",
";",
"i",
"+",
"+",
")",
"data",
"ldr",
"add",
"data",
"(",
"i",
",",
"new",
"accounts",
"(",
"next",
"random",
"(",
"args",
"range",
"(",
")",
")",
")",
")",
";",
"}",
"try",
"(",
"ignite",
"data",
"streamer",
"<",
"long",
",",
"branches",
">",
"data",
"ldr",
"=",
"ignite",
"(",
")",
"data",
"streamer",
"(",
"branches",
"get",
"name",
"(",
")",
")",
")",
"{",
"for",
"(",
"long",
"i",
"=",
"0",
";",
"i",
"<",
"branch",
"rows",
";",
"i",
"+",
"+",
")",
"data",
"ldr",
"add",
"data",
"(",
"i",
",",
"new",
"branches",
"(",
"next",
"random",
"(",
"args",
"range",
"(",
")",
")",
")",
")",
";",
"}",
"try",
"(",
"ignite",
"data",
"streamer",
"<",
"long",
",",
"tellers",
">",
"data",
"ldr",
"=",
"ignite",
"(",
")",
"data",
"streamer",
"(",
"tellers",
"get",
"name",
"(",
")",
")",
")",
"{",
"for",
"(",
"long",
"i",
"=",
"0",
";",
"i",
"<",
"tell",
"rows",
";",
"i",
"+",
"+",
")",
"data",
"ldr",
"add",
"data",
"(",
"i",
",",
"new",
"tellers",
"(",
"next",
"random",
"(",
"args",
"range",
"(",
")",
")",
")",
")",
";",
"}",
"stop",
"preload",
"logging",
"(",
")",
";"
] |
[
"nullsafe",
"{",
"@",
"link",
"motion",
"event",
"#",
"get",
"event",
"time",
"}",
"that",
"interprets",
"null",
"event",
"as",
"something",
"that",
"has",
"happened",
"long",
"enough",
"ago",
"to",
"be",
"gone",
"from",
"the",
"event",
"queue",
"thus",
"the",
"time",
"for",
"a",
"null",
"event",
"is",
"a",
"small",
"number",
"that",
"is",
"below",
"any",
"other",
"non",
"-",
"null",
"event",
"s",
"time"
] | [
"return",
"event",
"!",
"=",
"null",
"?",
"event",
"get",
"event",
"time",
"(",
")",
":",
"long",
"min",
"value",
";"
] |
[
"-",
">",
"{"
] | [
"m",
"handler",
"send",
"empty",
"message",
"delayed",
"(",
"message",
"transition",
"to",
"delegating",
"state",
",",
"m",
"multi",
"tap",
"max",
"delay",
")",
";"
] |
[
"-",
">",
"{"
] | [
"m",
"handler",
"send",
"message",
"delayed",
"(",
"m",
"handler",
"obtain",
"message",
"(",
"message",
"on",
"triple",
"tap",
"and",
"hold",
",",
"motion",
"event",
"obtain",
"(",
"event",
")",
")",
",",
"view",
"configuration",
"get",
"long",
"press",
"timeout",
"(",
")",
")",
";"
] |
[
"sent",
"when",
"{"
] | [] |
[
"sent",
"when",
"a",
"tab",
"controlled",
"by",
"this",
"{",
"@",
"link",
"custom",
"tabs",
"session",
"}",
"has",
"sent",
"a",
"post",
"message",
"message",
"if",
"post",
"message",
"(",
")",
"is",
"called",
"from",
"a",
"single",
"thread",
"then",
"the",
"messages",
"will",
"be",
"posted",
"in",
"the",
"same",
"order",
"when",
"received",
"on",
"the",
"client",
"side",
"it",
"is",
"the",
"client",
"s",
"responsibility",
"to",
"preserve",
"the",
"ordering",
"further"
] | [] |
[
"<",
"p",
">",
"the",
"deletion",
"id",
"returned",
"by",
"the",
"<",
"code",
">",
"delete",
"inventory",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">"
] | [
"set",
"deletion",
"id",
"(",
"deletion",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"inventory",
"data",
"type",
"<",
"/",
"p",
">"
] | [
"set",
"type",
"name",
"(",
"type",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"utc",
"timestamp",
"when",
"the",
"delete",
"operation",
"started",
"<",
"/",
"p",
">"
] | [
"this",
"deletion",
"start",
"time",
"=",
"deletion",
"start",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"utc",
"timestamp",
"when",
"the",
"delete",
"operation",
"started",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"deletion",
"start",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"utc",
"timestamp",
"when",
"the",
"delete",
"operation",
"started",
"<",
"/",
"p",
">"
] | [
"set",
"deletion",
"start",
"time",
"(",
"deletion",
"start",
"time",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"operation",
"possible",
"values",
"are",
"in",
"progress",
"and",
"complete",
"<",
"/",
"p",
">"
] | [
"set",
"last",
"status",
"(",
"last",
"status",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"operation",
"possible",
"values",
"are",
"in",
"progress",
"and",
"complete",
"<",
"/",
"p",
">"
] | [
"this",
"last",
"status",
"=",
"last",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"status",
"<",
"/",
"p",
">"
] | [
"this",
"last",
"status",
"message",
"=",
"last",
"status",
"message",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"status",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"last",
"status",
"message",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"status",
"<",
"/",
"p",
">"
] | [
"set",
"last",
"status",
"message",
"(",
"last",
"status",
"message",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"delete",
"operation",
"for",
"more",
"information",
"about",
"this",
"summary",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"systems",
"-",
"manager",
"/",
"latest",
"/",
"userguide",
"/",
"sysman",
"-",
"inventory",
"-",
"delete",
"html",
"#",
"sysman",
"-",
"inventory",
"-",
"delete",
"-",
"summary",
">",
"understanding",
"the",
"delete",
"inventory",
"summary",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"aws",
"systems",
"manager",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
] | [
"set",
"deletion",
"summary",
"(",
"deletion",
"summary",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"utc",
"timestamp",
"of",
"when",
"the",
"last",
"status",
"report",
"<",
"/",
"p",
">"
] | [
"this",
"last",
"status",
"update",
"time",
"=",
"last",
"status",
"update",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"utc",
"timestamp",
"of",
"when",
"the",
"last",
"status",
"report",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"last",
"status",
"update",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"utc",
"timestamp",
"of",
"when",
"the",
"last",
"status",
"report",
"<",
"/",
"p",
">"
] | [
"set",
"last",
"status",
"update",
"time",
"(",
"last",
"status",
"update",
"time",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"if",
"(",
"field",
"equals",
"(",
"suggest",
"field",
")",
")",
"{",
"suggester",
"query",
"parser",
"=",
"new",
"suggester",
"query",
"parser",
"(",
"field",
",",
"identifier",
")",
";",
"return",
"suggester",
"query",
"parser",
"parse",
"(",
"query",
"text",
")",
";",
"}",
"else",
"{",
"return",
"new",
"custom",
"query",
"parser",
"(",
"field",
")",
"parse",
"(",
"query",
"text",
")",
";",
"}"
] |
[
"gets",
"the",
"index",
"requests"
] | [
"return",
"requests",
";"
] |
[
"gets",
"the",
"index",
"names"
] | [
"list",
"<",
"string",
">",
"index",
"names",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
"requests",
"size",
"(",
")",
")",
";",
"for",
"(",
"index",
"request",
"request",
":",
"requests",
")",
"{",
"if",
"(",
"request",
"get",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"index",
"names",
"add",
"(",
"request",
"get",
"name",
"(",
")",
")",
";",
"}",
"else",
"{",
"index",
"names",
"add",
"(",
"index",
"helper",
"generate",
"index",
"name",
"(",
"request",
"get",
"keys",
"(",
")",
")",
")",
";",
"}",
"}",
"return",
"index",
"names",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"v",
"c",
"p",
"us",
"for",
"the",
"database",
"<",
"/",
"p",
">"
] | [
"set",
"cpu",
"count",
"(",
"cpu",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"disk",
"for",
"the",
"database",
"<",
"/",
"p",
">"
] | [
"set",
"disk",
"size",
"in",
"gb",
"(",
"disk",
"size",
"in",
"gb",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"ram",
"in",
"gb",
"for",
"the",
"database",
"<",
"/",
"p",
">"
] | [
"set",
"ram",
"size",
"in",
"gb",
"(",
"ram",
"size",
"in",
"gb",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"gateway",
"whose",
"file",
"shares",
"you",
"want",
"to",
"list",
"if",
"this",
"field",
"is",
"not",
"present",
"all",
"file",
"shares",
"under",
"your",
"account",
"are",
"listed",
"<",
"/",
"p",
">"
] | [
"set",
"gateway",
"a",
"r",
"n",
"(",
"gateway",
"a",
"r",
"n",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"file",
"shares",
"to",
"return",
"in",
"the",
"response",
"the",
"value",
"must",
"be",
"an",
"integer",
"with",
"a",
"value",
"greater",
"than",
"zero",
"optional",
"<",
"/",
"p",
">"
] | [
"set",
"limit",
"(",
"limit",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"opaque",
"pagination",
"token",
"returned",
"from",
"a",
"previous",
"list",
"file",
"shares",
"operation",
"if",
"present",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"specifies",
"where",
"to",
"continue",
"the",
"list",
"from",
"after",
"a",
"previous",
"call",
"to",
"list",
"file",
"shares",
"optional",
"<",
"/",
"p",
">"
] | [
"set",
"marker",
"(",
"marker",
")",
";",
"return",
"this",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"mutable",
"path",
"keys",
"result",
"=",
"new",
"path",
"keys",
"impl",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"path",
"key",
"values",
"length",
";",
"i",
"+",
"=",
"2",
")",
"{",
"result",
"append",
"(",
"(",
"string",
")",
"path",
"key",
"values",
"[",
"i",
"]",
",",
"path",
"key",
"values",
"[",
"i",
"+",
"1",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"note",
":",
"the",
"fact",
"that",
"the",
"given",
"attribute",
"value",
"is",
"of",
"type",
"comparable",
"doesn",
"t",
"mean",
"that",
"this",
"value",
"is",
"of",
"the",
"same",
"type",
"as",
"the",
"one",
"that",
"s",
"stored",
"in",
"the",
"index",
"thus",
"the",
"conversion",
"is",
"needed"
] | [
"return",
"converter",
"convert",
"(",
"attribute",
"value",
")",
";"
] |
[
"provides",
"comparable",
"null",
"object"
] | [
"return",
"converter",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"systems",
"manager",
"document",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"document",
"version",
"for",
"which",
"you",
"want",
"information",
"can",
"be",
"a",
"specific",
"version",
"or",
"the",
"default",
"version",
"<",
"/",
"p",
">"
] | [
"set",
"document",
"version",
"(",
"document",
"version",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.