docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"grid",
"cache",
"return",
"class",
",",
"this",
")",
";"
] |
[
"for",
"internal",
"use"
] | [
"return",
"from",
"core",
";"
] |
[
"for",
"internal",
"use",
"used",
"by",
"core",
"components",
"to",
"bypass",
"check",
"that",
"prevent",
"a",
"plugin",
"to",
"store",
"core",
"measures"
] | [
"this",
"from",
"core",
"=",
"true",
";",
"return",
"this",
";"
] |
[
"for",
"testing",
"purpose"
] | [
"if",
"(",
"obj",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"obj",
"=",
"=",
"this",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"obj",
"get",
"class",
"(",
")",
"!",
"=",
"get",
"class",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"default",
"measure",
"<",
"?",
">",
"rhs",
"=",
"(",
"default",
"measure",
"<",
"?",
">",
")",
"obj",
";",
"return",
"new",
"equals",
"builder",
"(",
")",
"append",
"(",
"component",
",",
"rhs",
"component",
")",
"append",
"(",
"metric",
",",
"rhs",
"metric",
")",
"append",
"(",
"value",
",",
"rhs",
"value",
")",
"is",
"equals",
"(",
")",
";"
] |
[
"sets",
"the",
"log",
"directory"
] | [
"this",
"storage",
"path",
"=",
"storage",
"path",
";"
] |
[
"sets",
"the",
"log",
"storage",
"level"
] | [
"this",
"storage",
"level",
"=",
"storage",
"level",
";"
] |
[
"given",
"a",
"qualified",
"name",
"{"
] | [
"return",
"node",
"is",
"get",
"prop",
"(",
")",
"?",
"suffixes",
"contains",
"(",
"node",
"get",
"last",
"child",
"(",
")",
"get",
"string",
"(",
")",
")",
":",
"node",
"is",
"name",
"(",
")",
"?",
"suffixes",
"contains",
"(",
"node",
"get",
"string",
"(",
")",
")",
":",
"false",
";"
] |
[
"gets",
"the",
"quit",
"message",
"to",
"send",
"to",
"all",
"online",
"players"
] | [
"return",
"quit",
"message",
";"
] |
[
"sets",
"the",
"quit",
"message",
"to",
"send",
"to",
"all",
"online",
"players"
] | [
"this",
"quit",
"message",
"=",
"quit",
"message",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"container",
"instances",
"registered",
"into",
"the",
"cluster",
"this",
"includes",
"container",
"instances",
"in",
"both",
"<",
"code",
">",
"active",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"draining",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"this",
"registered",
"container",
"instances",
"count",
"=",
"registered",
"container",
"instances",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"container",
"instances",
"registered",
"into",
"the",
"cluster",
"this",
"includes",
"container",
"instances",
"in",
"both",
"<",
"code",
">",
"active",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"draining",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"registered",
"container",
"instances",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"container",
"instances",
"registered",
"into",
"the",
"cluster",
"this",
"includes",
"container",
"instances",
"in",
"both",
"<",
"code",
">",
"active",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"draining",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"set",
"registered",
"container",
"instances",
"count",
"(",
"registered",
"container",
"instances",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"tasks",
"on",
"the",
"container",
"instance",
"that",
"are",
"in",
"the",
"<",
"code",
">",
"running",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"this",
"running",
"tasks",
"count",
"=",
"running",
"tasks",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"tasks",
"on",
"the",
"container",
"instance",
"that",
"are",
"in",
"the",
"<",
"code",
">",
"running",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"running",
"tasks",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"tasks",
"in",
"the",
"cluster",
"that",
"are",
"in",
"the",
"<",
"code",
">",
"running",
"<",
"/",
"code",
">",
"state",
"<",
"/",
"p",
">"
] | [
"set",
"running",
"tasks",
"count",
"(",
"running",
"tasks",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"tasks",
"on",
"the",
"container",
"instance",
"that",
"are",
"in",
"the",
"<",
"code",
">",
"pending",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"this",
"pending",
"tasks",
"count",
"=",
"pending",
"tasks",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"tasks",
"on",
"the",
"container",
"instance",
"that",
"are",
"in",
"the",
"<",
"code",
">",
"pending",
"<",
"/",
"code",
">",
"status",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"pending",
"tasks",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"tasks",
"in",
"the",
"cluster",
"that",
"are",
"in",
"the",
"<",
"code",
">",
"pending",
"<",
"/",
"code",
">",
"state",
"<",
"/",
"p",
">"
] | [
"set",
"pending",
"tasks",
"count",
"(",
"pending",
"tasks",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"services",
"that",
"are",
"running",
"on",
"the",
"cluster",
"in",
"an",
"<",
"code",
">",
"active",
"<",
"/",
"code",
">",
"state",
"you",
"can",
"view",
"these",
"services",
"with",
"<",
"a",
">",
"list",
"services",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"this",
"active",
"services",
"count",
"=",
"active",
"services",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"services",
"that",
"are",
"running",
"on",
"the",
"cluster",
"in",
"an",
"<",
"code",
">",
"active",
"<",
"/",
"code",
">",
"state",
"you",
"can",
"view",
"these",
"services",
"with",
"<",
"a",
">",
"list",
"services",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"active",
"services",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"services",
"that",
"are",
"running",
"on",
"the",
"cluster",
"in",
"an",
"<",
"code",
">",
"active",
"<",
"/",
"code",
">",
"state",
"you",
"can",
"view",
"these",
"services",
"with",
"<",
"a",
">",
"list",
"services",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"set",
"active",
"services",
"count",
"(",
"active",
"services",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"additional",
"information",
"about",
"your",
"clusters",
"that",
"are",
"separated",
"by",
"launch",
"type",
"including",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"if",
"(",
"statistics",
"=",
"=",
"null",
")",
"{",
"statistics",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"key",
"value",
"pair",
">",
"(",
")",
";",
"}",
"return",
"statistics",
";"
] |
[
"<",
"p",
">",
"additional",
"information",
"about",
"your",
"clusters",
"that",
"are",
"separated",
"by",
"launch",
"type",
"including",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"if",
"(",
"statistics",
"=",
"=",
"null",
")",
"{",
"this",
"statistics",
"=",
"null",
";",
"return",
";",
"}",
"this",
"statistics",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"key",
"value",
"pair",
">",
"(",
"statistics",
")",
";"
] |
[
"<",
"p",
">",
"additional",
"information",
"about",
"your",
"clusters",
"that",
"are",
"separated",
"by",
"launch",
"type",
"including",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"statistics",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"statistics",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"statistics",
"=",
"=",
"null",
")",
"{",
"set",
"statistics",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"key",
"value",
"pair",
">",
"(",
"statistics",
"length",
")",
")",
";",
"}",
"for",
"(",
"key",
"value",
"pair",
"ele",
":",
"statistics",
")",
"{",
"this",
"statistics",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"additional",
"information",
"about",
"your",
"clusters",
"that",
"are",
"separated",
"by",
"launch",
"type",
"including",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"running",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"e",
"c",
"2",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"pending",
"fargate",
"tasks",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"active",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"e",
"c",
"2",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"draining",
"fargate",
"service",
"count",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"statistics",
"(",
"statistics",
")",
";",
"return",
"this",
";"
] |
[
"called",
"when",
"a",
"node",
"was",
"requested",
"to",
"be",
"enqueued",
"but",
"wasn",
"t",
"because",
"either",
"an",
"interrupt",
"or",
"an",
"error",
"(",
"in",
"nokeep",
"going",
"mode",
")",
"had",
"occurred"
] | [
"enqueueing",
"(",
"sky",
"key",
",",
"true",
")",
";"
] |
[
"returns",
"if",
"the",
"key",
"is",
"enqueued",
"for",
"evaluation"
] | [
"return",
"inflight",
"keys",
"contains",
"(",
"sky",
"key",
")",
";"
] |
[
"returns",
"the",
"set",
"of",
"all",
"keys",
"that",
"are",
"enqueued",
"for",
"evaluation",
"and",
"resets",
"the",
"set",
"to",
"empty"
] | [
"set",
"<",
"sky",
"key",
">",
"keys",
"=",
"inflight",
"keys",
";",
"inflight",
"keys",
"=",
"sets",
"new",
"concurrent",
"hash",
"set",
"(",
")",
";",
"return",
"keys",
";"
] |
[
"returns",
"the",
"set",
"of",
"all",
"dirty",
"keys",
"that",
"have",
"not",
"been",
"enqueued",
"this",
"is",
"useful",
"for",
"garbage",
"collection",
"where",
"we",
"would",
"not",
"want",
"to",
"remove",
"dirty",
"nodes",
"that",
"are",
"needed",
"for",
"evaluation",
"(",
"in",
"the",
"downward",
"transitive",
"closure",
"of",
"the",
"set",
"of",
"the",
"evaluation",
"s",
"top",
"level",
"nodes",
")"
] | [
"return",
"immutable",
"set",
"copy",
"of",
"(",
"dirty",
"keys",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"log",
"group",
"<",
"/",
"p",
">"
] | [
"set",
"log",
"group",
"name",
"(",
"log",
"group",
"name",
")",
";",
"return",
"this",
";"
] |
[
"return",
"the",
"track",
"number",
"as",
"a",
"string"
] | [
"return",
"string",
"value",
"of",
"(",
"track",
"&",
"byte",
"to",
"unsigned",
")",
";"
] |
[
"delete",
"any",
"instance",
"of",
"tag",
"fields",
"with",
"this",
"key"
] | [
"if",
"(",
"generic",
"key",
"=",
"=",
"field",
"key",
"track",
")",
"{",
"track",
"=",
"0",
";",
"}",
"else",
"{",
"super",
"delete",
"field",
"(",
"generic",
"key",
")",
";",
"}"
] |
[
"compares",
"object",
"with",
"this",
"only",
"returns",
"true",
"if",
"both",
"v",
"1",
"1",
"tags",
"with",
"all",
"fields",
"set",
"to",
"same",
"value"
] | [
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"i",
"d",
"3v",
"1",
"1",
"tag",
")",
")",
"{",
"return",
"false",
";",
"}",
"i",
"d",
"3v",
"1",
"1",
"tag",
"object",
"=",
"(",
"i",
"d",
"3v",
"1",
"1",
"tag",
")",
"obj",
";",
"return",
"this",
"track",
"=",
"=",
"object",
"track",
"&",
"&",
"super",
"equals",
"(",
"obj",
")",
";"
] |
[
"send",
"the",
"intent",
"with",
"a",
"custom",
"request",
"code"
] | [
"fragment",
"start",
"activity",
"for",
"result",
"(",
"get",
"intent",
"(",
"context",
")",
",",
"request",
"code",
")",
";"
] |
[
"send",
"the",
"crop",
"intent",
"from",
"an",
"activity"
] | [
"start",
"(",
"activity",
",",
"request",
"code",
")",
";"
] |
[
"get",
"intent",
"to",
"start",
"{",
"@",
"link",
"photo",
"picker",
"activity",
"}"
] | [
"m",
"preview",
"intent",
"set",
"class",
"(",
"context",
",",
"photo",
"pager",
"activity",
"class",
")",
";",
"m",
"preview",
"intent",
"put",
"extras",
"(",
"m",
"preview",
"options",
"bundle",
")",
";",
"return",
"m",
"preview",
"intent",
";"
] |
[
"<",
"p",
">",
"the",
"unique",
"identifier",
"for",
"this",
"stack",
"set",
"operation",
"<",
"/",
"p",
">"
] | [
"set",
"operation",
"id",
"(",
"operation",
"id",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"total",
"allocated",
"pages",
"add",
"(",
"delta",
")",
";",
"delegate",
"update",
"total",
"allocated",
"pages",
"(",
"delta",
")",
";"
] |
[
"{"
] | [
"return",
"ctx",
"group",
"id",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"ctx",
"name",
"(",
")",
";"
] |
[
"{"
] | [
"list",
"<",
"string",
">",
"caches",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"ctx",
"caches",
"(",
")",
"size",
"(",
")",
")",
";",
"for",
"(",
"grid",
"cache",
"context",
"cache",
":",
"ctx",
"caches",
"(",
")",
")",
"caches",
"add",
"(",
"cache",
"name",
"(",
")",
")",
";",
"collections",
"sort",
"(",
"caches",
")",
";",
"return",
"caches",
";"
] |
[
"{"
] | [
"return",
"ctx",
"config",
"(",
")",
"get",
"backups",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"ctx",
"topology",
"(",
")",
"partitions",
"(",
")",
";"
] |
[
"calculates",
"the",
"number",
"of",
"partition",
"copies",
"for",
"all",
"partitions",
"of",
"this",
"cache",
"group",
"and",
"filter",
"values",
"by",
"the",
"predicate"
] | [
"int",
"parts",
"=",
"ctx",
"topology",
"(",
")",
"partitions",
"(",
")",
";",
"grid",
"dht",
"partition",
"full",
"map",
"part",
"full",
"map",
"=",
"ctx",
"topology",
"(",
")",
"partition",
"map",
"(",
"false",
")",
";",
"int",
"res",
"=",
"-",
"1",
";",
"for",
"(",
"int",
"part",
"=",
"0",
";",
"part",
"<",
"parts",
";",
"part",
"+",
"+",
")",
"{",
"int",
"cnt",
"=",
"0",
";",
"for",
"(",
"map",
"entry",
"<",
"uuid",
",",
"grid",
"dht",
"partition",
"map",
">",
"entry",
":",
"part",
"full",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"entry",
"get",
"value",
"(",
")",
"get",
"(",
"part",
")",
"=",
"=",
"grid",
"dht",
"partition",
"state",
"owning",
")",
"cnt",
"+",
"+",
";",
"}",
"if",
"(",
"part",
"=",
"=",
"0",
"|",
"|",
"pred",
"apply",
"(",
"res",
",",
"cnt",
")",
")",
"res",
"=",
"cnt",
";",
"}",
"return",
"res",
";"
] |
[
"{"
] | [
"return",
"number",
"of",
"partition",
"copies",
"(",
"new",
"int",
"bi",
"predicate",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"int",
"target",
"val",
",",
"int",
"next",
"val",
")",
"{",
"return",
"next",
"val",
"<",
"target",
"val",
";",
"}",
"}",
")",
";"
] |
[
"{"
] | [
"return",
"number",
"of",
"partition",
"copies",
"(",
"new",
"int",
"bi",
"predicate",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"int",
"target",
"val",
",",
"int",
"next",
"val",
")",
"{",
"return",
"next",
"val",
">",
"target",
"val",
";",
"}",
"}",
")",
";"
] |
[
"count",
"of",
"partitions",
"with",
"a",
"given",
"state",
"on",
"the",
"node"
] | [
"int",
"parts",
"=",
"ctx",
"topology",
"(",
")",
"partitions",
"(",
")",
";",
"grid",
"dht",
"partition",
"map",
"part",
"map",
"=",
"ctx",
"topology",
"(",
")",
"partition",
"map",
"(",
"false",
")",
"get",
"(",
"node",
"id",
")",
";",
"int",
"cnt",
"=",
"0",
";",
"for",
"(",
"int",
"part",
"=",
"0",
";",
"part",
"<",
"parts",
";",
"part",
"+",
"+",
")",
"if",
"(",
"part",
"map",
"get",
"(",
"part",
")",
"=",
"=",
"state",
")",
"cnt",
"+",
"+",
";",
"return",
"cnt",
";"
] |
[
"count",
"of",
"partitions",
"with",
"a",
"given",
"state",
"in",
"the",
"entire",
"cluster"
] | [
"grid",
"dht",
"partition",
"full",
"map",
"part",
"full",
"map",
"=",
"ctx",
"topology",
"(",
")",
"partition",
"map",
"(",
"true",
")",
";",
"int",
"cnt",
"=",
"0",
";",
"for",
"(",
"uuid",
"node",
"id",
":",
"part",
"full",
"map",
"key",
"set",
"(",
")",
")",
"cnt",
"+",
"=",
"node",
"partitions",
"count",
"by",
"state",
"(",
"node",
"id",
",",
"state",
")",
";",
"return",
"cnt",
";"
] |
[
"count",
"of",
"partitions",
"with",
"a",
"given",
"state",
"on",
"the",
"local",
"node"
] | [
"int",
"cnt",
"=",
"0",
";",
"for",
"(",
"grid",
"dht",
"local",
"partition",
"part",
":",
"ctx",
"topology",
"(",
")",
"local",
"partitions",
"(",
")",
")",
"{",
"if",
"(",
"part",
"state",
"(",
")",
"=",
"=",
"state",
")",
"cnt",
"+",
"+",
";",
"}",
"return",
"cnt",
";"
] |
[
"{"
] | [
"return",
"local",
"node",
"partitions",
"count",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"owning",
")",
";"
] |
[
"{"
] | [
"return",
"local",
"node",
"partitions",
"count",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"moving",
")",
";"
] |
[
"{"
] | [
"return",
"local",
"node",
"partitions",
"count",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"renting",
")",
";"
] |
[
"{"
] | [
"long",
"entries",
"cnt",
"=",
"0",
";",
"for",
"(",
"grid",
"dht",
"local",
"partition",
"part",
":",
"ctx",
"topology",
"(",
")",
"local",
"partitions",
"(",
")",
")",
"{",
"if",
"(",
"part",
"state",
"(",
")",
"=",
"=",
"grid",
"dht",
"partition",
"state",
"renting",
")",
"entries",
"cnt",
"+",
"=",
"part",
"data",
"store",
"(",
")",
"full",
"size",
"(",
")",
";",
"}",
"return",
"entries",
"cnt",
";"
] |
[
"{"
] | [
"return",
"cluster",
"partitions",
"count",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"owning",
")",
";"
] |
[
"{"
] | [
"return",
"cluster",
"partitions",
"count",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"moving",
")",
";"
] |
[
"gets",
"partitions",
"allocation",
"map",
"with",
"a",
"given",
"state"
] | [
"int",
"parts",
"=",
"ctx",
"topology",
"(",
")",
"partitions",
"(",
")",
";",
"grid",
"dht",
"partition",
"full",
"map",
"part",
"full",
"map",
"=",
"ctx",
"topology",
"(",
")",
"partition",
"map",
"(",
"false",
")",
";",
"map",
"<",
"integer",
",",
"set",
"<",
"string",
">",
">",
"parts",
"map",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"part",
"=",
"0",
";",
"part",
"<",
"parts",
";",
"part",
"+",
"+",
")",
"{",
"set",
"<",
"string",
">",
"part",
"nodes",
"set",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"uuid",
",",
"grid",
"dht",
"partition",
"map",
">",
"entry",
":",
"part",
"full",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"entry",
"get",
"value",
"(",
")",
"get",
"(",
"part",
")",
"=",
"=",
"state",
")",
"part",
"nodes",
"set",
"add",
"(",
"entry",
"get",
"key",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"}",
"parts",
"map",
"put",
"(",
"part",
",",
"part",
"nodes",
"set",
")",
";",
"}",
"return",
"parts",
"map",
";"
] |
[
"{"
] | [
"return",
"cluster",
"partitions",
"map",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"owning",
")",
";"
] |
[
"{"
] | [
"return",
"cluster",
"partitions",
"map",
"by",
"state",
"(",
"grid",
"dht",
"partition",
"state",
"moving",
")",
";"
] |
[
"{"
] | [
"affinity",
"assignment",
"assignment",
"=",
"ctx",
"affinity",
"(",
")",
"cached",
"affinity",
"(",
"affinity",
"topology",
"version",
"none",
")",
";",
"int",
"part",
"=",
"0",
";",
"map",
"<",
"integer",
",",
"list",
"<",
"string",
">",
">",
"assignment",
"map",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"list",
"<",
"cluster",
"node",
">",
"part",
"assignment",
":",
"assignment",
"assignment",
"(",
")",
")",
"{",
"list",
"<",
"string",
">",
"part",
"node",
"ids",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"part",
"assignment",
"size",
"(",
")",
")",
";",
"for",
"(",
"cluster",
"node",
"node",
":",
"part",
"assignment",
")",
"part",
"node",
"ids",
"add",
"(",
"node",
"id",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"assignment",
"map",
"put",
"(",
"part",
",",
"part",
"node",
"ids",
")",
";",
"part",
"+",
"+",
";",
"}",
"return",
"assignment",
"map",
";"
] |
[
"{"
] | [
"cache",
"mode",
"type",
"=",
"ctx",
"config",
"(",
")",
"get",
"cache",
"mode",
"(",
")",
";",
"return",
"string",
"value",
"of",
"(",
"type",
")",
";"
] |
[
"{"
] | [
"list",
"<",
"grid",
"dht",
"local",
"partition",
">",
"parts",
"=",
"ctx",
"topology",
"(",
")",
"local",
"partitions",
"(",
")",
";",
"list",
"<",
"integer",
">",
"parts",
"res",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"parts",
"size",
"(",
")",
")",
";",
"for",
"(",
"grid",
"dht",
"local",
"partition",
"part",
":",
"parts",
")",
"parts",
"res",
"add",
"(",
"part",
"id",
"(",
")",
")",
";",
"return",
"parts",
"res",
";"
] |
[
"{"
] | [
"return",
"group",
"page",
"allocation",
"tracker",
"total",
"allocated",
"pages",
"long",
"value",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"get",
"total",
"allocated",
"pages",
"(",
")",
"*",
"ctx",
"data",
"region",
"(",
")",
"page",
"memory",
"(",
")",
"page",
"size",
"(",
")",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"filters",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"<",
"/",
"code",
">",
"-",
"the",
"primary",
"i",
"pv",
"4",
"cidr",
"block",
"of",
"the",
"vpc",
"the",
"cidr",
"block",
"you",
"specify",
"must",
"exactly",
"match",
"the",
"vpc",
"s",
"cidr",
"block",
"for",
"information",
"to",
"be",
"returned",
"for",
"the",
"vpc",
"must",
"contain",
"the",
"slash",
"followed",
"by",
"one",
"or",
"two",
"digits",
"(",
"for",
"example",
"<",
"code",
">",
"/",
"28",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"-",
"block",
"-",
"association",
"cidr",
"-",
"block",
"<",
"/",
"code",
">",
"-",
"an",
"i",
"pv",
"4",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"-",
"block",
"-",
"association",
"association",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"association",
"id",
"for",
"an",
"i",
"pv",
"4",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"-",
"block",
"-",
"association",
"state",
"<",
"/",
"code",
">",
"-",
"the",
"state",
"of",
"an",
"i",
"pv",
"4",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"dhcp",
"-",
"options",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"id",
"of",
"a",
"set",
"of",
"dhcp",
"options",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"-",
"association",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"<",
"/",
"code",
">",
"-",
"an",
"i",
"pv",
"6",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"-",
"association",
"association",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"association",
"id",
"for",
"an",
"i",
"pv",
"6",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"-",
"association",
"state",
"<",
"/",
"code",
">",
"-",
"the",
"state",
"of",
"an",
"i",
"pv",
"6",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"is",
"default",
"<",
"/",
"code",
">",
"-",
"indicates",
"whether",
"the",
"vpc",
"is",
"the",
"default",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"state",
"<",
"/",
"code",
">",
"-",
"the",
"state",
"of",
"the",
"vpc",
"(",
"<",
"code",
">",
"pending",
"<",
"/",
"code",
">",
"|",
"<",
"code",
">",
"available",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"tag",
"<",
"/",
"code",
">",
":",
"&",
"lt",
";",
"key",
"&",
"gt",
";",
"-",
"the",
"key",
"/",
"value",
"combination",
"of",
"a",
"tag",
"assigned",
"to",
"the",
"resource",
"use",
"the",
"tag",
"key",
"in",
"the",
"filter",
"name",
"and",
"the",
"tag",
"value",
"as",
"the",
"filter",
"value",
"for",
"example",
"to",
"find",
"all",
"resources",
"that",
"have",
"a",
"tag",
"with",
"the",
"key",
"<",
"code",
">",
"owner",
"<",
"/",
"code",
">",
"and",
"the",
"value",
"<",
"code",
">",
"team",
"a",
"<",
"/",
"code",
">",
"specify",
"<",
"code",
">",
"tag",
":",
"owner",
"<",
"/",
"code",
">",
"for",
"the",
"filter",
"name",
"and",
"<",
"code",
">",
"team",
"a",
"<",
"/",
"code",
">",
"for",
"the",
"filter",
"value",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"tag",
"-",
"key",
"<",
"/",
"code",
">",
"-",
"the",
"key",
"of",
"a",
"tag",
"assigned",
"to",
"the",
"resource",
"use",
"this",
"filter",
"to",
"find",
"all",
"resources",
"assigned",
"a",
"tag",
"with",
"a",
"specific",
"key",
"regardless",
"of",
"the",
"tag",
"value",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"vpc",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"id",
"of",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"filters",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"filters",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"filters",
"=",
"=",
"null",
")",
"{",
"set",
"filters",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"filter",
">",
"(",
"filters",
"length",
")",
")",
";",
"}",
"for",
"(",
"filter",
"ele",
":",
"filters",
")",
"{",
"this",
"filters",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"filters",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"<",
"/",
"code",
">",
"-",
"the",
"primary",
"i",
"pv",
"4",
"cidr",
"block",
"of",
"the",
"vpc",
"the",
"cidr",
"block",
"you",
"specify",
"must",
"exactly",
"match",
"the",
"vpc",
"s",
"cidr",
"block",
"for",
"information",
"to",
"be",
"returned",
"for",
"the",
"vpc",
"must",
"contain",
"the",
"slash",
"followed",
"by",
"one",
"or",
"two",
"digits",
"(",
"for",
"example",
"<",
"code",
">",
"/",
"28",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"-",
"block",
"-",
"association",
"cidr",
"-",
"block",
"<",
"/",
"code",
">",
"-",
"an",
"i",
"pv",
"4",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"-",
"block",
"-",
"association",
"association",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"association",
"id",
"for",
"an",
"i",
"pv",
"4",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"cidr",
"-",
"block",
"-",
"association",
"state",
"<",
"/",
"code",
">",
"-",
"the",
"state",
"of",
"an",
"i",
"pv",
"4",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"dhcp",
"-",
"options",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"id",
"of",
"a",
"set",
"of",
"dhcp",
"options",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"-",
"association",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"<",
"/",
"code",
">",
"-",
"an",
"i",
"pv",
"6",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"-",
"association",
"association",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"association",
"id",
"for",
"an",
"i",
"pv",
"6",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"ipv",
"6",
"-",
"cidr",
"-",
"block",
"-",
"association",
"state",
"<",
"/",
"code",
">",
"-",
"the",
"state",
"of",
"an",
"i",
"pv",
"6",
"cidr",
"block",
"associated",
"with",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"is",
"default",
"<",
"/",
"code",
">",
"-",
"indicates",
"whether",
"the",
"vpc",
"is",
"the",
"default",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"state",
"<",
"/",
"code",
">",
"-",
"the",
"state",
"of",
"the",
"vpc",
"(",
"<",
"code",
">",
"pending",
"<",
"/",
"code",
">",
"|",
"<",
"code",
">",
"available",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"tag",
"<",
"/",
"code",
">",
":",
"&",
"lt",
";",
"key",
"&",
"gt",
";",
"-",
"the",
"key",
"/",
"value",
"combination",
"of",
"a",
"tag",
"assigned",
"to",
"the",
"resource",
"use",
"the",
"tag",
"key",
"in",
"the",
"filter",
"name",
"and",
"the",
"tag",
"value",
"as",
"the",
"filter",
"value",
"for",
"example",
"to",
"find",
"all",
"resources",
"that",
"have",
"a",
"tag",
"with",
"the",
"key",
"<",
"code",
">",
"owner",
"<",
"/",
"code",
">",
"and",
"the",
"value",
"<",
"code",
">",
"team",
"a",
"<",
"/",
"code",
">",
"specify",
"<",
"code",
">",
"tag",
":",
"owner",
"<",
"/",
"code",
">",
"for",
"the",
"filter",
"name",
"and",
"<",
"code",
">",
"team",
"a",
"<",
"/",
"code",
">",
"for",
"the",
"filter",
"value",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"tag",
"-",
"key",
"<",
"/",
"code",
">",
"-",
"the",
"key",
"of",
"a",
"tag",
"assigned",
"to",
"the",
"resource",
"use",
"this",
"filter",
"to",
"find",
"all",
"resources",
"assigned",
"a",
"tag",
"with",
"a",
"specific",
"key",
"regardless",
"of",
"the",
"tag",
"value",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"vpc",
"-",
"id",
"<",
"/",
"code",
">",
"-",
"the",
"id",
"of",
"the",
"vpc",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"filters",
"(",
"filters",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"vpc",
"i",
"ds",
"<",
"/",
"p",
">",
"<",
"p",
">",
"default",
":",
"describes",
"all",
"your",
"v",
"p",
"cs",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"vpc",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"vpc",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"vpc",
"ids",
"=",
"=",
"null",
")",
"{",
"set",
"vpc",
"ids",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"vpc",
"ids",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"vpc",
"ids",
")",
"{",
"this",
"vpc",
"ids",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"vpc",
"i",
"ds",
"<",
"/",
"p",
">",
"<",
"p",
">",
"default",
":",
"describes",
"all",
"your",
"v",
"p",
"cs",
"<",
"/",
"p",
">"
] | [
"set",
"vpc",
"ids",
"(",
"vpc",
"ids",
")",
";",
"return",
"this",
";"
] |
[
"enqueues",
"an",
"object",
"into",
"the",
"queue",
"if",
"it",
"is",
"still",
"open"
] | [
"int",
"count",
";",
"while",
"(",
"(",
"count",
"=",
"count",
"get",
"(",
")",
")",
">",
"=",
"0",
")",
"{",
"if",
"(",
"count",
"compare",
"and",
"set",
"(",
"count",
",",
"count",
"+",
"1",
")",
")",
"{",
"queue",
"add",
"(",
"obj",
")",
";",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"return",
"true",
"iff",
"the",
"queue",
"is",
"already",
"closed"
] | [
"return",
"count",
"get",
"(",
")",
"=",
"=",
"-",
"1",
";"
] |
[
"get",
"the",
"sub",
"string",
"for",
"large",
"string"
] | [
"return",
"new",
"string",
"(",
"str",
"substring",
"(",
"start",
",",
"end",
")",
")",
";"
] |
[
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"entity",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"entity",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"entity",
"ids",
"=",
"=",
"null",
")",
"{",
"set",
"entity",
"ids",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"entity",
"ids",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"entity",
"ids",
")",
"{",
"this",
"entity",
"ids",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"key",
"associated",
"with",
"the",
"output",
"<",
"/",
"p",
">"
] | [
"set",
"output",
"key",
"(",
"output",
"key",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"value",
"associated",
"with",
"the",
"output",
"<",
"/",
"p",
">"
] | [
"set",
"output",
"value",
"(",
"output",
"value",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"user",
"defined",
"description",
"associated",
"with",
"the",
"output",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"exported",
"output",
"value",
"aws",
"cloud",
"formation",
"returns",
"the",
"stack",
"names",
"that",
"are",
"importing",
"this",
"value",
"<",
"/",
"p",
">"
] | [
"this",
"export",
"name",
"=",
"export",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"exported",
"output",
"value",
"aws",
"cloud",
"formation",
"returns",
"the",
"stack",
"names",
"that",
"are",
"importing",
"this",
"value",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"export",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"export",
"associated",
"with",
"the",
"output",
"<",
"/",
"p",
">"
] | [
"set",
"export",
"name",
"(",
"export",
"name",
")",
";",
"return",
"this",
";"
] |
[
"the",
"available",
"pivot",
"points",
"are",
"<",
"code",
">",
"pivot",
"center",
"<",
"/",
"code",
">",
"<",
"code",
">",
"pivot",
"top",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"pivot",
"bottom",
"<",
"/",
"code",
">"
] | [
"this",
"pivot",
"=",
"pivot",
";",
"return",
"this",
";"
] |
[
"the",
"available",
"flip",
"directions",
"are",
"<",
"code",
">",
"direction",
"up",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"direction",
"down",
"<",
"/",
"code",
">"
] | [
"this",
"direction",
"=",
"direction",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"path",
"that",
"is",
"the",
"immediate",
"parent",
"of",
"{"
] | [
"return",
"get",
"bin",
"path",
"(",
")",
";"
] |
[
"native",
"libraries",
"compiled",
"for",
"different",
"cpu",
"architectures",
"are",
"placed",
"in",
"the",
"respective",
"abi",
"subdirectories",
"such",
"as",
"armeabi",
"armeabi",
"-",
"v",
"7a",
"x",
"8",
"6",
"and",
"mips",
"this",
"looks",
"at",
"the",
"cpu",
"filter",
"and",
"returns",
"the",
"correct",
"subdirectory",
"if",
"cpu",
"filter",
"is",
"not",
"present",
"or",
"not",
"supported",
"returns",
"optional",
"empty",
"(",
")",
";"
] | [
"switch",
"(",
"cpu",
"type",
")",
"{",
"case",
"arm",
":",
"return",
"optional",
"of",
"(",
"sdk",
"constants",
"abi",
"armeabi",
")",
";",
"case",
"armv7",
":",
"return",
"optional",
"of",
"(",
"sdk",
"constants",
"abi",
"armeabi",
"v7a",
")",
";",
"case",
"arm64",
":",
"return",
"optional",
"of",
"(",
"sdk",
"constants",
"abi",
"arm64",
"v8a",
")",
";",
"case",
"x86",
":",
"return",
"optional",
"of",
"(",
"sdk",
"constants",
"abi",
"intel",
"atom",
")",
";",
"case",
"x86",
"64",
":",
"return",
"optional",
"of",
"(",
"sdk",
"constants",
"abi",
"intel",
"atom64",
")",
";",
"case",
"mips",
":",
"return",
"optional",
"of",
"(",
"sdk",
"constants",
"abi",
"mips",
")",
";",
"default",
":",
"return",
"optional",
"empty",
"(",
")",
";",
"}"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"try",
"{",
"ps",
"read",
"set",
"long",
"(",
"1",
",",
"tag",
"id",
")",
";",
"try",
"(",
"result",
"set",
"rs",
"=",
"ps",
"read",
"execute",
"query",
"(",
")",
")",
"{",
"record",
"tag",
"result",
"=",
"build",
"(",
"rs",
")",
";",
"return",
"result",
";",
"}",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"throw",
"new",
"database",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"try",
"{",
"ps",
"insert",
"tag",
"set",
"long",
"(",
"1",
",",
"history",
"id",
")",
";",
"ps",
"insert",
"tag",
"set",
"string",
"(",
"2",
",",
"tag",
")",
";",
"ps",
"insert",
"tag",
"execute",
"update",
"(",
")",
";",
"try",
"(",
"result",
"set",
"rs",
"=",
"ps",
"get",
"id",
"last",
"insert",
"execute",
"query",
"(",
")",
")",
"{",
"rs",
"next",
"(",
")",
";",
"long",
"id",
"=",
"rs",
"get",
"long",
"(",
"1",
")",
";",
"return",
"read",
"(",
"id",
")",
";",
"}",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"throw",
"new",
"database",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"try",
"{",
"ps",
"delete",
"tag",
"set",
"long",
"(",
"1",
",",
"history",
"id",
")",
";",
"ps",
"delete",
"tag",
"set",
"string",
"(",
"2",
",",
"tag",
")",
";",
"ps",
"delete",
"tag",
"execute",
"update",
"(",
")",
";",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"throw",
"new",
"database",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"try",
"{",
"list",
"<",
"record",
"tag",
">",
"result",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"ps",
"get",
"tags",
"for",
"history",
"id",
"set",
"long",
"(",
"1",
",",
"history",
"id",
")",
";",
"try",
"(",
"result",
"set",
"rs",
"=",
"ps",
"get",
"tags",
"for",
"history",
"id",
"execute",
"query",
"(",
")",
")",
"{",
"while",
"(",
"rs",
"next",
"(",
")",
")",
"{",
"result",
"add",
"(",
"new",
"record",
"tag",
"(",
"rs",
"get",
"long",
"(",
"tagid",
")",
",",
"rs",
"get",
"long",
"(",
"tagid",
")",
",",
"rs",
"get",
"string",
"(",
"tag",
")",
")",
")",
";",
"}",
"}",
"return",
"result",
";",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"throw",
"new",
"database",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"try",
"{",
"list",
"<",
"string",
">",
"result",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"try",
"(",
"result",
"set",
"rs",
"=",
"ps",
"get",
"all",
"tags",
"execute",
"query",
"(",
")",
")",
"{",
"while",
"(",
"rs",
"next",
"(",
")",
")",
"{",
"result",
"add",
"(",
"rs",
"get",
"string",
"(",
"tag",
")",
")",
";",
"}",
"}",
"return",
"result",
";",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"throw",
"new",
"database",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"try",
"{",
"ps",
"delete",
"tags",
"for",
"history",
"id",
"set",
"long",
"(",
"1",
",",
"history",
"id",
")",
";",
"ps",
"delete",
"tags",
"for",
"history",
"id",
"execute",
"(",
")",
";",
"}",
"catch",
"(",
"s",
"q",
"l",
"exception",
"e",
")",
"{",
"throw",
"new",
"database",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"creates",
"a",
"{",
"@",
"code",
"r",
"m",
"t",
"malloc",
"}",
"instance",
"from",
"the",
"specified",
"function",
"pointer"
] | [
"r",
"m",
"t",
"malloc",
"i",
"instance",
"=",
"callback",
"get",
"(",
"function",
"pointer",
")",
";",
"return",
"instance",
"instanceof",
"r",
"m",
"t",
"malloc",
"?",
"(",
"r",
"m",
"t",
"malloc",
")",
"instance",
":",
"new",
"container",
"(",
"function",
"pointer",
",",
"instance",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"function",
"pointer",
"=",
"=",
"null",
"?",
"null",
":",
"create",
"(",
"function",
"pointer",
")",
";"
] |
[
"creates",
"a",
"{"
] | [
"return",
"instance",
"instanceof",
"r",
"m",
"t",
"malloc",
"?",
"(",
"r",
"m",
"t",
"malloc",
")",
"instance",
":",
"new",
"container",
"(",
"instance",
"address",
"(",
")",
",",
"instance",
")",
";"
] |
[
"sets",
"the",
"given",
"{",
"@",
"code",
"contents",
"}",
"as",
"the",
"body",
"<",
"p",
">",
"if",
"the",
"{",
"@",
"code",
"contents",
"}",
"are",
"{",
"@",
"code",
"null",
"}",
"the",
"call",
"to",
"this",
"method",
"has",
"no",
"effect"
] | [
"if",
"(",
"contents",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"cached",
"string",
"=",
"null",
";",
"body",
"=",
"new",
"byte",
"[",
"contents",
"length",
"]",
";",
"system",
"arraycopy",
"(",
"contents",
",",
"0",
",",
"body",
",",
"0",
",",
"contents",
"length",
")",
";",
"pos",
"=",
"body",
"length",
";"
] |
[
"determines",
"the",
"{",
"@",
"code",
"charset",
"}",
"of",
"the",
"given",
"{",
"@",
"code",
"contents",
"}",
"that",
"are",
"being",
"set",
"to",
"the",
"body",
"<",
"p",
">",
"an",
"attempt",
"to",
"prevent",
"data",
"loss",
"when",
"{",
"@",
"link",
"#",
"set",
"body",
"(",
"string",
")",
"new",
"contents",
"}",
"are",
"set",
"without",
"a",
"{",
"@",
"code",
"charset",
"}",
"<",
"p",
">",
"by",
"default",
"returns",
"{",
"@",
"code",
"null",
"}"
] | [
"return",
"null",
";"
] |
[
"sets",
"whether",
"or",
"not",
"the",
"{",
"@",
"code",
"charset",
"}",
"of",
"the",
"response",
"should",
"be",
"determined",
"when",
"no",
"{",
"@",
"code",
"charset",
"}",
"is",
"set",
"<",
"p",
">",
"an",
"attempt",
"to",
"prevent",
"data",
"loss",
"when",
"{",
"@",
"link",
"#",
"set",
"body",
"(",
"string",
")",
"new",
"contents",
"}",
"are",
"set",
"without",
"a",
"{",
"@",
"code",
"charset",
"}"
] | [
"determine",
"charset",
"=",
"determine",
";"
] |
[
"tells",
"whether",
"or",
"not",
"the",
"{",
"@",
"code",
"charset",
"}",
"of",
"the",
"response",
"should",
"be",
"determined",
"when",
"no",
"{",
"@",
"code",
"charset",
"}",
"is",
"set",
"<",
"p",
">",
"an",
"attempt",
"to",
"prevent",
"data",
"loss",
"when",
"{",
"@",
"link",
"#",
"set",
"body",
"(",
"string",
")",
"new",
"contents",
"}",
"are",
"set",
"without",
"a",
"{",
"@",
"code",
"charset",
"}",
"<",
"p",
">",
"by",
"default",
"returns",
"{",
"@",
"code",
"true",
"}"
] | [
"return",
"determine",
"charset",
";"
] |
[
"gets",
"the",
"{",
"@",
"code",
"charset",
"}",
"that",
"should",
"be",
"used",
"internally",
"by",
"the",
"class",
"for",
"{",
"@",
"code",
"string",
"}",
"related",
"operations",
"<",
"p",
">",
"if",
"no",
"{",
"@",
"code",
"charset",
"}",
"was",
"set",
"(",
"that",
"is",
"is",
"{",
"@",
"code",
"null",
"}",
")",
"it",
"falls",
"back",
"to",
"{",
"@",
"code",
"iso",
"-",
"8859",
"-",
"1",
"}",
"otherwise",
"it",
"returns",
"the",
"{",
"@",
"code",
"charset",
"}",
"set"
] | [
"if",
"(",
"charset",
"!",
"=",
"null",
")",
"{",
"return",
"charset",
";",
"}",
"return",
"standard",
"charsets",
"iso",
"8859",
"1",
";"
] |
[
"appends",
"the",
"given",
"{",
"@",
"code",
"contents",
"}",
"to",
"the",
"body",
"up",
"to",
"a",
"certain",
"length",
"<",
"p",
">",
"if",
"the",
"{",
"@",
"code",
"contents",
"}",
"are",
"{",
"@",
"code",
"null",
"}",
"or",
"the",
"{",
"@",
"code",
"length",
"}",
"negative",
"or",
"zero",
"the",
"call",
"to",
"this",
"method",
"has",
"no",
"effect"
] | [
"if",
"(",
"contents",
"=",
"=",
"null",
"|",
"|",
"length",
"<",
"=",
"0",
")",
"{",
"return",
";",
"}",
"int",
"len",
"=",
"math",
"min",
"(",
"contents",
"length",
",",
"length",
")",
";",
"if",
"(",
"pos",
"+",
"len",
">",
"body",
"length",
")",
"{",
"byte",
"[",
"]",
"new",
"body",
"=",
"new",
"byte",
"[",
"pos",
"+",
"len",
"]",
";",
"system",
"arraycopy",
"(",
"body",
",",
"0",
",",
"new",
"body",
",",
"0",
",",
"pos",
")",
";",
"body",
"=",
"new",
"body",
";",
"}",
"system",
"arraycopy",
"(",
"contents",
",",
"0",
",",
"body",
",",
"pos",
",",
"len",
")",
";",
"pos",
"+",
"=",
"len",
";",
"cached",
"string",
"=",
"null",
";"
] |
[
"appends",
"the",
"given",
"{",
"@",
"code",
"contents",
"}",
"to",
"the",
"body",
"<",
"p",
">",
"if",
"the",
"{",
"@",
"code",
"contents",
"}",
"are",
"{",
"@",
"code",
"null",
"}",
"the",
"call",
"to",
"this",
"method",
"has",
"no",
"effect"
] | [
"if",
"(",
"contents",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"append",
"(",
"contents",
",",
"contents",
"length",
")",
";"
] |
[
"appends",
"the",
"given",
"{",
"@",
"code",
"contents",
"}",
"to",
"the",
"body",
"using",
"the",
"current",
"charset",
"<",
"p",
">",
"if",
"the",
"{",
"@",
"code",
"contents",
"}",
"are",
"{",
"@",
"code",
"null",
"}",
"the",
"call",
"to",
"this",
"method",
"has",
"no",
"effect",
"<",
"p",
">",
"<",
"strong",
">",
"note",
":",
"<",
"/",
"strong",
">",
"setting",
"the",
"contents",
"with",
"incorrect",
"charset",
"might",
"lead",
"to",
"data",
"loss"
] | [
"if",
"(",
"contents",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"append",
"(",
"contents",
"get",
"bytes",
"(",
"get",
"charset",
"impl",
"(",
")",
")",
")",
";"
] |
[
"gets",
"the",
"{",
"@",
"code",
"string",
"}",
"representation",
"of",
"the",
"body",
"using",
"the",
"current",
"charset",
"<",
"p",
">",
"the",
"{",
"@",
"code",
"string",
"}",
"representation",
"contains",
"only",
"the",
"contents",
"set",
"so",
"far",
"that",
"is",
"increasing",
"the",
"length",
"of",
"the",
"body",
"manually",
"(",
"with",
"{",
"@",
"link",
"#",
"http",
"body",
"(",
"int",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"set",
"length",
"(",
"int",
")",
"}",
")",
"does",
"not",
"affect",
"the",
"string",
"representation"
] | [
"if",
"(",
"cached",
"string",
"!",
"=",
"null",
")",
"{",
"return",
"cached",
"string",
";",
"}",
"cached",
"string",
"=",
"create",
"string",
"(",
"charset",
")",
";",
"return",
"cached",
"string",
";"
] |
[
"returns",
"the",
"{",
"@",
"code",
"string",
"}",
"representation",
"of",
"the",
"body",
"<",
"p",
">",
"called",
"when",
"the",
"cached",
"string",
"representation",
"is",
"no",
"longer",
"up",
"-",
"to",
"-",
"date"
] | [
"return",
"new",
"string",
"(",
"get",
"bytes",
"(",
")",
",",
"0",
",",
"get",
"pos",
"(",
")",
",",
"charset",
"!",
"=",
"null",
"?",
"charset",
":",
"get",
"charset",
"impl",
"(",
")",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.