docstring_tokens
list | code_tokens
list |
---|---|
[
"add",
"a",
"custom",
"header"
]
| [
"if",
"(",
"custom",
"headers",
"=",
"=",
"null",
")",
"{",
"custom",
"headers",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
"2",
")",
";",
"}",
"list",
"<",
"string",
">",
"header",
"=",
"custom",
"headers",
"get",
"(",
"name",
")",
";",
"if",
"(",
"header",
"=",
"=",
"null",
")",
"{",
"header",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"custom",
"headers",
"put",
"(",
"name",
",",
"header",
")",
";",
"}",
"header",
"add",
"(",
"value",
")",
";"
]
|
[
"returns",
"custom",
"headers",
"that",
"have",
"been",
"added",
"this",
"method",
"should",
"not",
"be",
"used",
"to",
"mutate",
"headers"
]
| [
"if",
"(",
"custom",
"headers",
"=",
"=",
"null",
")",
"{",
"return",
"collections",
"empty",
"map",
"(",
")",
";",
"}",
"else",
"{",
"return",
"custom",
"headers",
";",
"}"
]
|
[
"write",
"all",
"undefined",
"symbols",
"given",
"in",
"{",
"@",
"code",
"symbol",
"files",
"}",
"into",
"a",
"linker",
"script",
"wrapped",
"in",
"extern",
"commands"
]
| [
"undefined",
"symbols",
"linker",
"script",
"rule",
"=",
"graph",
"builder",
"add",
"to",
"index",
"(",
"new",
"undefined",
"symbols",
"linker",
"script",
"(",
"target",
",",
"project",
"filesystem",
",",
"base",
"params",
"with",
"declared",
"deps",
"(",
"immutable",
"sorted",
"set",
"copy",
"of",
"(",
"rule",
"finder",
"filter",
"build",
"rule",
"inputs",
"(",
"symbol",
"files",
")",
")",
")",
"without",
"extra",
"deps",
"(",
")",
",",
"symbol",
"files",
")",
")",
";",
"return",
"immutable",
"list",
"of",
"(",
"source",
"path",
"arg",
"of",
"(",
"rule",
"get",
"source",
"path",
"to",
"output",
"(",
")",
")",
")",
";"
]
|
[
"gets",
"the",
"binary",
"data",
"for",
"the",
"serialized",
"elements"
]
| [
"return",
"serialized",
"data",
";"
]
|
[
"gets",
"the",
"number",
"of",
"i",
"ds",
"in",
"the",
"checkpoint"
]
| [
"return",
"num",
"ids",
";"
]
|
[
"converts",
"a",
"list",
"of",
"checkpoints",
"with",
"elements",
"into",
"an",
"array",
"of",
"serialized",
"checkpoint",
"data"
]
| [
"return",
"from",
"deque",
"(",
"checkpoints",
",",
"serializer",
",",
"new",
"data",
"output",
"serializer",
"(",
"128",
")",
")",
";"
]
|
[
"converts",
"a",
"list",
"of",
"checkpoints",
"into",
"an",
"array",
"of",
"serialized",
"checkpoint",
"data"
]
| [
"serialized",
"checkpoint",
"data",
"[",
"]",
"serialized",
"checkpoints",
"=",
"new",
"serialized",
"checkpoint",
"data",
"[",
"checkpoints",
"size",
"(",
")",
"]",
";",
"int",
"pos",
"=",
"0",
";",
"for",
"(",
"tuple",
"2",
"<",
"long",
",",
"set",
"<",
"t",
">",
">",
"checkpoint",
":",
"checkpoints",
")",
"{",
"output",
"buffer",
"clear",
"(",
")",
";",
"set",
"<",
"t",
">",
"checkpoint",
"ids",
"=",
"checkpoint",
"f",
"1",
";",
"for",
"(",
"t",
"id",
":",
"checkpoint",
"ids",
")",
"{",
"serializer",
"serialize",
"(",
"id",
",",
"output",
"buffer",
")",
";",
"}",
"serialized",
"checkpoints",
"[",
"pos",
"+",
"+",
"]",
"=",
"new",
"serialized",
"checkpoint",
"data",
"(",
"checkpoint",
"f",
"0",
",",
"output",
"buffer",
"get",
"copy",
"of",
"buffer",
"(",
")",
",",
"checkpoint",
"ids",
"size",
"(",
")",
")",
";",
"}",
"return",
"serialized",
"checkpoints",
";"
]
|
[
"de",
"-",
"serializes",
"an",
"array",
"of",
"serialized",
"checkpoint",
"data",
"back",
"into",
"an",
"array",
"deque",
"of",
"element",
"checkpoints"
]
| [
"array",
"deque",
"<",
"tuple",
"2",
"<",
"long",
",",
"set",
"<",
"t",
">",
">",
">",
"deque",
"=",
"new",
"array",
"deque",
"<",
">",
"(",
"data",
"length",
")",
";",
"data",
"input",
"deserializer",
"deser",
"=",
"null",
";",
"for",
"(",
"serialized",
"checkpoint",
"data",
"checkpoint",
":",
"data",
")",
"{",
"byte",
"[",
"]",
"serialized",
"data",
"=",
"checkpoint",
"get",
"serialized",
"data",
"(",
")",
";",
"if",
"(",
"deser",
"=",
"=",
"null",
")",
"{",
"deser",
"=",
"new",
"data",
"input",
"deserializer",
"(",
"serialized",
"data",
",",
"0",
",",
"serialized",
"data",
"length",
")",
";",
"}",
"else",
"{",
"deser",
"set",
"buffer",
"(",
"serialized",
"data",
")",
";",
"}",
"final",
"set",
"<",
"t",
">",
"ids",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
"checkpoint",
"get",
"num",
"ids",
"(",
")",
")",
";",
"final",
"int",
"num",
"ids",
"=",
"checkpoint",
"get",
"num",
"ids",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"ids",
";",
"i",
"+",
"+",
")",
"{",
"ids",
"add",
"(",
"serializer",
"deserialize",
"(",
"deser",
")",
")",
";",
"}",
"deque",
"add",
"last",
"(",
"new",
"tuple",
"2",
"<",
"long",
",",
"set",
"<",
"t",
">",
">",
"(",
"checkpoint",
"checkpoint",
"id",
",",
"ids",
")",
")",
";",
"}",
"return",
"deque",
";"
]
|
[
"uses",
"{"
]
| [
"set",
"unmarshal",
"type",
"(",
"list",
"class",
")",
";"
]
|
[
"call",
"back",
"provider",
"start",
"recommended",
"invocation"
]
| [
"if",
"(",
"m",
"on",
"provider",
"listener",
"!",
"=",
"null",
")",
"m",
"on",
"provider",
"listener",
"on",
"provider",
"data",
"start",
"(",
")",
";"
]
|
[
"send",
"media",
"data",
"for",
"player",
"must",
"invocation"
]
| [
"if",
"(",
"m",
"on",
"provider",
"listener",
"!",
"=",
"null",
")",
"m",
"on",
"provider",
"listener",
"on",
"provider",
"data",
"success",
"(",
"provider",
"code",
"success",
"media",
"data",
",",
"bundle",
")",
";"
]
|
[
"send",
"extra",
"data",
"usually",
"custom",
"by",
"yourself",
"according",
"to",
"your",
"need"
]
| [
"if",
"(",
"m",
"on",
"provider",
"listener",
"!",
"=",
"null",
")",
"m",
"on",
"provider",
"listener",
"on",
"provider",
"data",
"success",
"(",
"code",
",",
"bundle",
")",
";"
]
|
[
"when",
"provider",
"media",
"data",
"error",
"must",
"invocation"
]
| [
"if",
"(",
"m",
"on",
"provider",
"listener",
"!",
"=",
"null",
")",
"m",
"on",
"provider",
"listener",
"on",
"provider",
"error",
"(",
"provider",
"code",
"data",
"provider",
"error",
",",
"bundle",
")",
";"
]
|
[
"if",
"occur",
"error",
"it",
"is",
"strongly",
"recommended",
"to",
"call",
"the",
"method"
]
| [
"if",
"(",
"m",
"on",
"provider",
"listener",
"!",
"=",
"null",
")",
"m",
"on",
"provider",
"listener",
"on",
"provider",
"error",
"(",
"code",
",",
"bundle",
")",
";"
]
|
[
"<",
"p",
">",
"number",
"of",
"days",
"aws",
"config",
"stores",
"your",
"historical",
"information",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"currently",
"only",
"applicable",
"to",
"the",
"configuration",
"item",
"history",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
]
| [
"this",
"retention",
"period",
"in",
"days",
"=",
"retention",
"period",
"in",
"days",
";"
]
|
[
"<",
"p",
">",
"number",
"of",
"days",
"aws",
"config",
"stores",
"your",
"historical",
"information",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"currently",
"only",
"applicable",
"to",
"the",
"configuration",
"item",
"history",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
]
| [
"return",
"this",
"retention",
"period",
"in",
"days",
";"
]
|
[
"<",
"p",
">",
"number",
"of",
"days",
"aws",
"config",
"stores",
"your",
"historical",
"information",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"currently",
"only",
"applicable",
"to",
"the",
"configuration",
"item",
"history",
"<",
"/",
"p",
">",
"<",
"/",
"note",
">"
]
| [
"set",
"retention",
"period",
"in",
"days",
"(",
"retention",
"period",
"in",
"days",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"whether",
"or",
"not",
"to",
"invert",
"the",
"layout",
"horizontally",
"if",
"the",
"layout",
"is",
"in",
"rtl",
"mode"
]
| [
"m",
"shortcuts",
"and",
"widgets",
"set",
"invert",
"if",
"rtl",
"(",
"invert",
")",
";"
]
|
[
"given",
"a",
"point",
"return",
"the",
"cell",
"that",
"strictly",
"encloses",
"that",
"point"
]
| [
"final",
"int",
"h",
"start",
"padding",
"=",
"get",
"padding",
"left",
"(",
")",
";",
"final",
"int",
"v",
"start",
"padding",
"=",
"get",
"padding",
"top",
"(",
")",
";",
"result",
"[",
"0",
"]",
"=",
"(",
"x",
"-",
"h",
"start",
"padding",
")",
"/",
"(",
"m",
"cell",
"width",
"+",
"m",
"width",
"gap",
")",
";",
"result",
"[",
"1",
"]",
"=",
"(",
"y",
"-",
"v",
"start",
"padding",
")",
"/",
"(",
"m",
"cell",
"height",
"+",
"m",
"height",
"gap",
")",
";",
"final",
"int",
"x",
"axis",
"=",
"m",
"count",
"x",
";",
"final",
"int",
"y",
"axis",
"=",
"m",
"count",
"y",
";",
"if",
"(",
"result",
"[",
"0",
"]",
"<",
"0",
")",
"result",
"[",
"0",
"]",
"=",
"0",
";",
"if",
"(",
"result",
"[",
"0",
"]",
">",
"=",
"x",
"axis",
")",
"result",
"[",
"0",
"]",
"=",
"x",
"axis",
"-",
"1",
";",
"if",
"(",
"result",
"[",
"1",
"]",
"<",
"0",
")",
"result",
"[",
"1",
"]",
"=",
"0",
";",
"if",
"(",
"result",
"[",
"1",
"]",
">",
"=",
"y",
"axis",
")",
"result",
"[",
"1",
"]",
"=",
"y",
"axis",
"-",
"1",
";"
]
|
[
"given",
"a",
"cell",
"coordinate",
"return",
"the",
"point",
"that",
"represents",
"the",
"upper",
"left",
"corner",
"of",
"that",
"cell"
]
| [
"final",
"int",
"h",
"start",
"padding",
"=",
"get",
"padding",
"left",
"(",
")",
";",
"final",
"int",
"v",
"start",
"padding",
"=",
"get",
"padding",
"top",
"(",
")",
";",
"result",
"[",
"0",
"]",
"=",
"h",
"start",
"padding",
"+",
"cell",
"x",
"*",
"(",
"m",
"cell",
"width",
"+",
"m",
"width",
"gap",
")",
";",
"result",
"[",
"1",
"]",
"=",
"v",
"start",
"padding",
"+",
"cell",
"y",
"*",
"(",
"m",
"cell",
"height",
"+",
"m",
"height",
"gap",
")",
";"
]
|
[
"given",
"a",
"cell",
"coordinate",
"return",
"the",
"point",
"that",
"represents",
"the",
"center",
"of",
"the",
"cell"
]
| [
"region",
"to",
"center",
"point",
"(",
"cell",
"x",
",",
"cell",
"y",
",",
"1",
",",
"1",
",",
"result",
")",
";"
]
|
[
"given",
"a",
"cell",
"coordinate",
"and",
"span",
"return",
"the",
"point",
"that",
"represents",
"the",
"center",
"of",
"the",
"regio"
]
| [
"final",
"int",
"h",
"start",
"padding",
"=",
"get",
"padding",
"left",
"(",
")",
";",
"final",
"int",
"v",
"start",
"padding",
"=",
"get",
"padding",
"top",
"(",
")",
";",
"result",
"[",
"0",
"]",
"=",
"h",
"start",
"padding",
"+",
"cell",
"x",
"*",
"(",
"m",
"cell",
"width",
"+",
"m",
"width",
"gap",
")",
"+",
"(",
"span",
"x",
"*",
"m",
"cell",
"width",
"+",
"(",
"span",
"x",
"-",
"1",
")",
"*",
"m",
"width",
"gap",
")",
"/",
"2",
";",
"result",
"[",
"1",
"]",
"=",
"v",
"start",
"padding",
"+",
"cell",
"y",
"*",
"(",
"m",
"cell",
"height",
"+",
"m",
"height",
"gap",
")",
"+",
"(",
"span",
"y",
"*",
"m",
"cell",
"height",
"+",
"(",
"span",
"y",
"-",
"1",
")",
"*",
"m",
"height",
"gap",
")",
"/",
"2",
";"
]
|
[
"given",
"a",
"cell",
"coordinate",
"and",
"span",
"fills",
"out",
"a",
"corresponding",
"pixel",
"rect"
]
| [
"final",
"int",
"h",
"start",
"padding",
"=",
"get",
"padding",
"left",
"(",
")",
";",
"final",
"int",
"v",
"start",
"padding",
"=",
"get",
"padding",
"top",
"(",
")",
";",
"final",
"int",
"left",
"=",
"h",
"start",
"padding",
"+",
"cell",
"x",
"*",
"(",
"m",
"cell",
"width",
"+",
"m",
"width",
"gap",
")",
";",
"final",
"int",
"top",
"=",
"v",
"start",
"padding",
"+",
"cell",
"y",
"*",
"(",
"m",
"cell",
"height",
"+",
"m",
"height",
"gap",
")",
";",
"result",
"set",
"(",
"left",
",",
"top",
",",
"left",
"+",
"(",
"span",
"x",
"*",
"m",
"cell",
"width",
"+",
"(",
"span",
"x",
"-",
"1",
")",
"*",
"m",
"width",
"gap",
")",
",",
"top",
"+",
"(",
"span",
"y",
"*",
"m",
"cell",
"height",
"+",
"(",
"span",
"y",
"-",
"1",
")",
"*",
"m",
"height",
"gap",
")",
")",
";"
]
|
[
"returns",
"the",
"amount",
"of",
"space",
"left",
"over",
"after",
"subtracting",
"padding",
"and",
"cells",
"this",
"space",
"will",
"be",
"very",
"small",
"a",
"few",
"pixels",
"at",
"most",
"and",
"is",
"a",
"result",
"of",
"rounding",
"down",
"when",
"calculating",
"the",
"cell",
"width",
"in",
"{"
]
| [
"return",
"get",
"measured",
"width",
"(",
")",
"-",
"get",
"padding",
"left",
"(",
")",
"-",
"get",
"padding",
"right",
"(",
")",
"-",
"(",
"m",
"count",
"x",
"*",
"m",
"cell",
"width",
")",
";"
]
|
[
"find",
"a",
"vacant",
"area",
"that",
"will",
"fit",
"the",
"given",
"bounds",
"nearest",
"the",
"requested",
"cell",
"location",
"uses",
"euclidean",
"distance",
"to",
"score",
"multiple",
"vacant",
"areas"
]
| [
"return",
"find",
"nearest",
"area",
"(",
"pixel",
"x",
",",
"pixel",
"y",
",",
"min",
"span",
"x",
",",
"min",
"span",
"y",
",",
"span",
"x",
",",
"span",
"y",
",",
"true",
",",
"result",
",",
"result",
"span",
")",
";"
]
|
[
"/",
"*",
"returns",
"a",
"pair",
"(",
"x",
"y",
")",
"where",
"x",
"y",
"are",
"in",
"{",
"-",
"1",
"0",
"1",
"}",
"corresponding",
"to",
"vector",
"between",
"the",
"provided",
"point",
"and",
"the",
"provided",
"cell"
]
| [
"double",
"angle",
"=",
"math",
"atan",
"(",
"delta",
"y",
"/",
"delta",
"x",
")",
";",
"result",
"[",
"0",
"]",
"=",
"0",
";",
"result",
"[",
"1",
"]",
"=",
"0",
";",
"if",
"(",
"math",
"abs",
"(",
"math",
"cos",
"(",
"angle",
")",
")",
">",
"0",
"5f",
")",
"{",
"result",
"[",
"0",
"]",
"=",
"(",
"int",
")",
"math",
"signum",
"(",
"delta",
"x",
")",
";",
"}",
"if",
"(",
"math",
"abs",
"(",
"math",
"sin",
"(",
"angle",
")",
")",
">",
"0",
"5f",
")",
"{",
"result",
"[",
"1",
"]",
"=",
"(",
"int",
")",
"math",
"signum",
"(",
"delta",
"y",
")",
";",
"}"
]
|
[
"this",
"method",
"starts",
"or",
"changes",
"the",
"reorder",
"preview",
"animations"
]
| [
"int",
"child",
"count",
"=",
"m",
"shortcuts",
"and",
"widgets",
"get",
"child",
"count",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"child",
"count",
";",
"i",
"+",
"+",
")",
"{",
"view",
"child",
"=",
"m",
"shortcuts",
"and",
"widgets",
"get",
"child",
"at",
"(",
"i",
")",
";",
"if",
"(",
"child",
"=",
"=",
"drag",
"view",
")",
"continue",
";",
"cell",
"and",
"span",
"c",
"=",
"solution",
"map",
"get",
"(",
"child",
")",
";",
"boolean",
"skip",
"=",
"mode",
"=",
"=",
"reorder",
"preview",
"animation",
"mode",
"hint",
"&",
"&",
"solution",
"intersecting",
"views",
"!",
"=",
"null",
"&",
"&",
"!",
"solution",
"intersecting",
"views",
"contains",
"(",
"child",
")",
";",
"layout",
"params",
"lp",
"=",
"(",
"layout",
"params",
")",
"child",
"get",
"layout",
"params",
"(",
")",
";",
"if",
"(",
"c",
"!",
"=",
"null",
"&",
"&",
"!",
"skip",
")",
"{",
"reorder",
"preview",
"animation",
"rha",
"=",
"new",
"reorder",
"preview",
"animation",
"(",
"child",
",",
"mode",
",",
"lp",
"cell",
"x",
",",
"lp",
"cell",
"y",
",",
"c",
"cell",
"x",
",",
"c",
"cell",
"y",
",",
"c",
"span",
"x",
",",
"c",
"span",
"y",
")",
";",
"rha",
"animate",
"(",
")",
";",
"}",
"}"
]
|
[
"for",
"a",
"given",
"cell",
"and",
"span",
"fetch",
"the",
"set",
"of",
"views",
"intersecting",
"the",
"region"
]
| [
"if",
"(",
"bounding",
"rect",
"!",
"=",
"null",
")",
"{",
"bounding",
"rect",
"set",
"(",
"cell",
"x",
",",
"cell",
"y",
",",
"cell",
"x",
"+",
"span",
"x",
",",
"cell",
"y",
"+",
"span",
"y",
")",
";",
"}",
"intersecting",
"views",
"clear",
"(",
")",
";",
"rect",
"r",
"0",
"=",
"new",
"rect",
"(",
"cell",
"x",
",",
"cell",
"y",
",",
"cell",
"x",
"+",
"span",
"x",
",",
"cell",
"y",
"+",
"span",
"y",
")",
";",
"rect",
"r",
"1",
"=",
"new",
"rect",
"(",
")",
";",
"final",
"int",
"count",
"=",
"m",
"shortcuts",
"and",
"widgets",
"get",
"child",
"count",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"count",
";",
"i",
"+",
"+",
")",
"{",
"view",
"child",
"=",
"m",
"shortcuts",
"and",
"widgets",
"get",
"child",
"at",
"(",
"i",
")",
";",
"if",
"(",
"child",
"=",
"=",
"drag",
"view",
")",
"continue",
";",
"layout",
"params",
"lp",
"=",
"(",
"layout",
"params",
")",
"child",
"get",
"layout",
"params",
"(",
")",
";",
"r",
"1",
"set",
"(",
"lp",
"cell",
"x",
",",
"lp",
"cell",
"y",
",",
"lp",
"cell",
"x",
"+",
"lp",
"cell",
"h",
"span",
",",
"lp",
"cell",
"y",
"+",
"lp",
"cell",
"v",
"span",
")",
";",
"if",
"(",
"rect",
"intersects",
"(",
"r",
"0",
",",
"r",
"1",
")",
")",
"{",
"m",
"intersecting",
"views",
"add",
"(",
"child",
")",
";",
"if",
"(",
"bounding",
"rect",
"!",
"=",
"null",
")",
"{",
"bounding",
"rect",
"union",
"(",
"r",
"1",
")",
";",
"}",
"}",
"}"
]
|
[
"find",
"a",
"starting",
"cell",
"position",
"that",
"will",
"fit",
"the",
"given",
"bounds",
"nearest",
"the",
"requested",
"cell",
"location",
"uses",
"euclidean",
"distance",
"to",
"score",
"multiple",
"vacant",
"areas"
]
| [
"return",
"find",
"nearest",
"area",
"(",
"pixel",
"x",
",",
"pixel",
"y",
",",
"span",
"x",
",",
"span",
"y",
",",
"span",
"x",
",",
"span",
"y",
",",
"false",
",",
"result",
",",
"null",
")",
";"
]
|
[
"finds",
"the",
"upper",
"-",
"left",
"coordinate",
"of",
"the",
"first",
"rectangle",
"in",
"the",
"grid",
"that",
"can",
"hold",
"a",
"cell",
"of",
"the",
"specified",
"dimensions",
"if",
"intersect",
"x",
"and",
"intersect",
"y",
"are",
"not",
"-",
"1",
"then",
"this",
"method",
"will",
"only",
"return",
"coordinates",
"for",
"rectangles",
"that",
"contain",
"the",
"cell",
"(",
"intersect",
"x",
"intersect",
"y",
")"
]
| [
"if",
"(",
"cell",
"x",
"y",
"=",
"=",
"null",
")",
"{",
"cell",
"x",
"y",
"=",
"new",
"int",
"[",
"2",
"]",
";",
"}",
"return",
"m",
"occupied",
"find",
"vacant",
"cell",
"(",
"cell",
"x",
"y",
",",
"span",
"x",
",",
"span",
"y",
")",
";"
]
|
[
"a",
"drag",
"event",
"has",
"begun",
"over",
"this",
"layout",
"it",
"may",
"have",
"begun",
"over",
"this",
"layout",
"(",
"in",
"which",
"case",
"on",
"drag",
"child",
"is",
"called",
"first",
")",
"or",
"it",
"may",
"have",
"begun",
"on",
"another",
"layout"
]
| [
"m",
"dragging",
"=",
"true",
";"
]
|
[
"mark",
"a",
"child",
"as",
"having",
"been",
"dropped",
"at",
"the",
"beginning",
"of",
"the",
"drag",
"operation",
"the",
"child",
"may",
"have",
"been",
"on",
"another",
"screen",
"but",
"it",
"is",
"re",
"-",
"parented",
"before",
"this",
"method",
"is",
"called"
]
| [
"if",
"(",
"child",
"!",
"=",
"null",
")",
"{",
"layout",
"params",
"lp",
"=",
"(",
"layout",
"params",
")",
"child",
"get",
"layout",
"params",
"(",
")",
";",
"lp",
"dropped",
"=",
"true",
";",
"child",
"request",
"layout",
"(",
")",
";",
"mark",
"cells",
"as",
"occupied",
"for",
"view",
"(",
"child",
")",
";",
"}"
]
|
[
"computes",
"a",
"bounding",
"rectangle",
"for",
"a",
"range",
"of",
"cells"
]
| [
"final",
"int",
"cell",
"width",
"=",
"m",
"cell",
"width",
";",
"final",
"int",
"cell",
"height",
"=",
"m",
"cell",
"height",
";",
"final",
"int",
"width",
"gap",
"=",
"m",
"width",
"gap",
";",
"final",
"int",
"height",
"gap",
"=",
"m",
"height",
"gap",
";",
"final",
"int",
"h",
"start",
"padding",
"=",
"get",
"padding",
"left",
"(",
")",
";",
"final",
"int",
"v",
"start",
"padding",
"=",
"get",
"padding",
"top",
"(",
")",
";",
"int",
"width",
"=",
"cell",
"h",
"span",
"*",
"cell",
"width",
"+",
"(",
"(",
"cell",
"h",
"span",
"-",
"1",
")",
"*",
"width",
"gap",
")",
";",
"int",
"height",
"=",
"cell",
"v",
"span",
"*",
"cell",
"height",
"+",
"(",
"(",
"cell",
"v",
"span",
"-",
"1",
")",
"*",
"height",
"gap",
")",
";",
"int",
"x",
"=",
"h",
"start",
"padding",
"+",
"cell",
"x",
"*",
"(",
"cell",
"width",
"+",
"width",
"gap",
")",
";",
"int",
"y",
"=",
"v",
"start",
"padding",
"+",
"cell",
"y",
"*",
"(",
"cell",
"height",
"+",
"height",
"gap",
")",
";",
"result",
"rect",
"set",
"(",
"x",
",",
"y",
",",
"x",
"+",
"width",
",",
"y",
"+",
"height",
")",
";"
]
|
[
"get",
"iterator",
"which",
"skips",
"the",
"stored",
"ranges",
"the",
"iterator",
"next",
"(",
")",
"call",
"return",
"the",
"index",
"starting",
"from",
"0"
]
| [
"return",
"new",
"skip",
"range",
"iterator",
"(",
"ranges",
"iterator",
"(",
")",
")",
";"
]
|
[
"get",
"the",
"no",
"of",
"indices",
"stored",
"in",
"the",
"ranges"
]
| [
"return",
"indices",
"count",
";"
]
|
[
"get",
"the",
"sorted",
"set",
"of",
"ranges"
]
| [
"return",
"ranges",
";"
]
|
[
"get",
"the",
"end",
"index",
"end",
"index",
"is",
"exclusive"
]
| [
"return",
"start",
"index",
"+",
"length",
";"
]
|
[
"returns",
"true",
"till",
"the",
"index",
"reaches",
"long",
"max",
"value"
]
| [
"return",
"next",
"<",
"long",
"max",
"value",
";"
]
|
[
"get",
"the",
"next",
"available",
"index",
"the",
"index",
"starts",
"from",
"0"
]
| [
"long",
"ci",
"=",
"next",
";",
"do",
"next",
"(",
")",
";",
"return",
"ci",
";"
]
|
[
"get",
"whether",
"all",
"the",
"ranges",
"have",
"been",
"skipped"
]
| [
"return",
"!",
"range",
"iterator",
"has",
"next",
"(",
")",
"&",
"&",
"next",
">",
"range",
"get",
"end",
"index",
"(",
")",
";"
]
|
[
"overloading",
"the",
"read",
"int",
"method",
"accomodate",
"subject",
"in",
"order",
"to",
"check",
"for",
"authorization",
"(",
"security",
"turned",
"on",
")"
]
| [
"input",
"stream",
"in",
"=",
"store",
"get",
"blob",
"(",
"key",
")",
";",
"try",
"{",
"return",
"in",
"read",
"(",
")",
";",
"}",
"finally",
"{",
"in",
"close",
"(",
")",
";",
"}"
]
|
[
"checks",
"for",
"assertion",
"when",
"we",
"turn",
"on",
"security"
]
| [
"assert",
"equals",
"(",
"value",
",",
"read",
"int",
"(",
"store",
",",
"who",
",",
"key",
")",
")",
";"
]
|
[
"{"
]
| [
"return",
"mvcc",
"!",
"=",
"null",
"?",
"new",
"grid",
"cache",
"attributes",
"mvcc",
"obsolete",
"ttl",
"entry",
"extras",
"(",
"mvcc",
",",
"obsolete",
"ver",
",",
"ttl",
",",
"expire",
"time",
")",
":",
"this",
";"
]
|
[
"{"
]
| [
"if",
"(",
"obsolete",
"ver",
"!",
"=",
"null",
")",
"{",
"this",
"obsolete",
"ver",
"=",
"obsolete",
"ver",
";",
"return",
"this",
";",
"}",
"else",
"return",
"new",
"grid",
"cache",
"attributes",
"ttl",
"entry",
"extras",
"(",
"ttl",
",",
"expire",
"time",
")",
";"
]
|
[
"{"
]
| [
"if",
"(",
"expire",
"time",
"!",
"=",
"cu",
"expire",
"time",
"eternal",
")",
"{",
"this",
"ttl",
"=",
"ttl",
";",
"this",
"expire",
"time",
"=",
"expire",
"time",
";",
"return",
"this",
";",
"}",
"else",
"return",
"new",
"grid",
"cache",
"attributes",
"obsolete",
"entry",
"extras",
"(",
"obsolete",
"ver",
")",
";"
]
|
[
"{"
]
| [
"return",
"s",
"to",
"string",
"(",
"grid",
"cache",
"attributes",
"obsolete",
"ttl",
"entry",
"extras",
"class",
",",
"this",
")",
";"
]
|
[
"<",
"p",
">",
"errors",
"encountered",
"when",
"trying",
"to",
"delete",
"the",
"requested",
"partitions",
"<",
"/",
"p",
">"
]
| [
"return",
"errors",
";"
]
|
[
"<",
"p",
">",
"errors",
"encountered",
"when",
"trying",
"to",
"delete",
"the",
"requested",
"partitions",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"errors",
"=",
"=",
"null",
")",
"{",
"this",
"errors",
"=",
"null",
";",
"return",
";",
"}",
"this",
"errors",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"partition",
"error",
">",
"(",
"errors",
")",
";"
]
|
[
"<",
"p",
">",
"errors",
"encountered",
"when",
"trying",
"to",
"create",
"the",
"requested",
"partitions",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"errors",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"errors",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"errors",
"=",
"=",
"null",
")",
"{",
"set",
"errors",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"partition",
"error",
">",
"(",
"errors",
"length",
")",
")",
";",
"}",
"for",
"(",
"partition",
"error",
"ele",
":",
"errors",
")",
"{",
"this",
"errors",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"errors",
"encountered",
"when",
"trying",
"to",
"create",
"the",
"requested",
"partitions",
"<",
"/",
"p",
">"
]
| [
"set",
"errors",
"(",
"errors",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"ttl",
"update",
"type"
]
| [
"this",
"update",
"type",
"=",
"update",
"type",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"state",
"visibility"
]
| [
"this",
"state",
"visibility",
"=",
"state",
"visibility",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"time",
"characteristic"
]
| [
"this",
"time",
"characteristic",
"=",
"time",
"characteristic",
";",
"return",
"this",
";"
]
|
[
"cleanup",
"expired",
"state",
"in",
"full",
"snapshot",
"on",
"checkpoint"
]
| [
"cleanup",
"strategies",
"strategies",
"put",
"(",
"cleanup",
"strategies",
"strategies",
"full",
"state",
"scan",
"snapshot",
",",
"new",
"cleanup",
"strategies",
"cleanup",
"strategy",
"(",
")",
"{",
"}",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"ttl",
"time"
]
| [
"this",
"ttl",
"=",
"ttl",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"deletion",
"task",
"identifier",
"that",
"you",
"can",
"use",
"to",
"check",
"the",
"status",
"of",
"the",
"deletion",
"this",
"identifier",
"is",
"returned",
"in",
"the",
"format",
"<",
"code",
">",
"task",
"/",
"aws",
"-",
"service",
"-",
"role",
"/",
"&",
"lt",
";",
"service",
"-",
"principal",
"-",
"name",
"&",
"gt",
";",
"/",
"&",
"lt",
";",
"role",
"-",
"name",
"&",
"gt",
";",
"/",
"&",
"lt",
";",
"task",
"-",
"uuid",
"&",
"gt",
";",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"deletion",
"task",
"id",
"=",
"deletion",
"task",
"id",
";"
]
|
[
"<",
"p",
">",
"the",
"deletion",
"task",
"identifier",
"that",
"you",
"can",
"use",
"to",
"check",
"the",
"status",
"of",
"the",
"deletion",
"this",
"identifier",
"is",
"returned",
"in",
"the",
"format",
"<",
"code",
">",
"task",
"/",
"aws",
"-",
"service",
"-",
"role",
"/",
"&",
"lt",
";",
"service",
"-",
"principal",
"-",
"name",
"&",
"gt",
";",
"/",
"&",
"lt",
";",
"role",
"-",
"name",
"&",
"gt",
";",
"/",
"&",
"lt",
";",
"task",
"-",
"uuid",
"&",
"gt",
";",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"deletion",
"task",
"id",
";"
]
|
[
"<",
"p",
">",
"the",
"deletion",
"task",
"identifier",
"this",
"identifier",
"is",
"returned",
"by",
"the",
"<",
"a",
">",
"delete",
"service",
"linked",
"role",
"<",
"/",
"a",
">",
"operation",
"in",
"the",
"format",
"<",
"code",
">",
"task",
"/",
"aws",
"-",
"service",
"-",
"role",
"/",
"&",
"lt",
";",
"service",
"-",
"principal",
"-",
"name",
"&",
"gt",
";",
"/",
"&",
"lt",
";",
"role",
"-",
"name",
"&",
"gt",
";",
"/",
"&",
"lt",
";",
"task",
"-",
"uuid",
"&",
"gt",
";",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"deletion",
"task",
"id",
"(",
"deletion",
"task",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"protocol"
]
| [
"this",
"protocol",
"=",
"protocol",
";",
"return",
"this",
";"
]
|
[
"sets",
"host"
]
| [
"this",
"host",
"=",
"host",
";",
"return",
"this",
";"
]
|
[
"sets",
"context",
"path"
]
| [
"if",
"(",
"!",
"context",
"path",
"ends",
"with",
"(",
"string",
"utils",
"context",
"sep",
")",
")",
"{",
"context",
"path",
"+",
"=",
"string",
"utils",
"context",
"sep",
";",
"}",
"this",
"context",
"path",
"=",
"context",
"path",
";",
"return",
"this",
";"
]
|
[
"sets",
"io",
"threads"
]
| [
"this",
"io",
"threads",
"=",
"io",
"threads",
";",
"return",
"this",
";"
]
|
[
"gets",
"thread",
"pool",
"type"
]
| [
"return",
"thread",
"pool",
"type",
";"
]
|
[
"sets",
"thread",
"pool",
"type"
]
| [
"this",
"thread",
"pool",
"type",
"=",
"thread",
"pool",
"type",
";",
"return",
"this",
";"
]
|
[
"sets",
"core",
"threads"
]
| [
"this",
"core",
"threads",
"=",
"core",
"threads",
";",
"return",
"this",
";"
]
|
[
"sets",
"max",
"threads"
]
| [
"this",
"max",
"threads",
"=",
"max",
"threads",
";",
"return",
"this",
";"
]
|
[
"sets",
"telnet"
]
| [
"this",
"telnet",
"=",
"telnet",
";",
"return",
"this",
";"
]
|
[
"gets",
"queue",
"type"
]
| [
"return",
"queue",
"type",
";"
]
|
[
"sets",
"queue",
"type"
]
| [
"this",
"queue",
"type",
"=",
"queue",
"type",
";",
"return",
"this",
";"
]
|
[
"gets",
"queues"
]
| [
"return",
"queues",
";"
]
|
[
"sets",
"queues"
]
| [
"this",
"queues",
"=",
"queues",
";",
"return",
"this",
";"
]
|
[
"gets",
"alive",
"time"
]
| [
"return",
"alive",
"time",
";"
]
|
[
"sets",
"alive",
"time"
]
| [
"this",
"alive",
"time",
"=",
"alive",
"time",
";",
"return",
"this",
";"
]
|
[
"is",
"pre",
"start",
"core",
"boolean"
]
| [
"return",
"pre",
"start",
"core",
";"
]
|
[
"sets",
"pre",
"start",
"core"
]
| [
"this",
"pre",
"start",
"core",
"=",
"pre",
"start",
"core",
";",
"return",
"this",
";"
]
|
[
"gets",
"payload"
]
| [
"return",
"payload",
";"
]
|
[
"sets",
"payload"
]
| [
"this",
"payload",
"=",
"payload",
";",
"return",
"this",
";"
]
|
[
"sets",
"serialization"
]
| [
"this",
"serialization",
"=",
"serialization",
";",
"return",
"this",
";"
]
|
[
"sets",
"dispatcher"
]
| [
"this",
"dispatcher",
"=",
"dispatcher",
";",
"return",
"this",
";"
]
|
[
"sets",
"parameters"
]
| [
"if",
"(",
"this",
"parameters",
"=",
"=",
"null",
")",
"{",
"this",
"parameters",
"=",
"new",
"concurrent",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"this",
"parameters",
"put",
"all",
"(",
"parameters",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"sets",
"virtual",
"host"
]
| [
"this",
"virtual",
"host",
"=",
"virtual",
"host",
";",
"return",
"this",
";"
]
|
[
"gets",
"virtual",
"port"
]
| [
"return",
"virtual",
"port",
";"
]
|
[
"sets",
"virtual",
"port"
]
| [
"this",
"virtual",
"port",
"=",
"virtual",
"port",
";",
"return",
"this",
";"
]
|
[
"sets",
"on",
"connect"
]
| [
"this",
"on",
"connect",
"=",
"on",
"connect",
";",
"return",
"this",
";"
]
|
[
"is",
"epoll",
"boolean"
]
| [
"return",
"epoll",
";"
]
|
[
"sets",
"epoll"
]
| [
"this",
"epoll",
"=",
"epoll",
";",
"return",
"this",
";"
]
|
[
"sets",
"daemon"
]
| [
"this",
"daemon",
"=",
"daemon",
";",
"return",
"this",
";"
]
|
[
"sets",
"transport"
]
| [
"this",
"transport",
"=",
"transport",
";",
"return",
"this",
";"
]
|
[
"is",
"adaptive",
"port",
"boolean"
]
| [
"return",
"adaptive",
"port",
";"
]
|
[
"sets",
"adaptive",
"port"
]
| [
"this",
"adaptive",
"port",
"=",
"adaptive",
"port",
";",
"return",
"this",
";"
]
|
[
"is",
"auto",
"start",
"boolean"
]
| [
"return",
"auto",
"start",
";"
]
|
[
"sets",
"auto",
"start"
]
| [
"this",
"auto",
"start",
"=",
"auto",
"start",
";",
"return",
"this",
";"
]
|
[
"gets",
"stop",
"timeout"
]
| [
"return",
"stop",
"timeout",
";"
]
|
[
"sets",
"stop",
"timeout"
]
| [
"this",
"stop",
"timeout",
"=",
"stop",
"timeout",
";",
"return",
"this",
";"
]
|
[
"sets",
"bound",
"host"
]
| [
"this",
"bound",
"host",
"=",
"bound",
"host",
";",
"return",
"this",
";"
]
|
[
"gets",
"bound",
"host"
]
| [
"return",
"bound",
"host",
";"
]
|
[
"set",
"keep",
"alive"
]
| [
"this",
"keep",
"alive",
"=",
"keep",
"alive",
";",
"return",
"this",
";"
]
|
[
"creates",
"a",
"new",
"empty",
"{"
]
| [
"return",
"create",
"(",
"object",
"count",
"hash",
"map",
"default",
"size",
")",
";"
]
|
[
"returns",
"true",
"if",
"field",
"bolt",
"object",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
]
| [
"return",
"this",
"bolt",
"object",
"!",
"=",
"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",
"bolt",
"object",
":",
"return",
"is",
"set",
"bolt",
"object",
"(",
")",
";",
"case",
"common",
":",
"return",
"is",
"set",
"common",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.