docstring_tokens list | code_tokens list |
|---|---|
[
"notify",
"this",
"reader",
"that",
"a",
"local",
"core",
"is",
"a",
"member",
"of",
"a",
"collection",
"and",
"so",
"that",
"collection",
"state",
"should",
"be",
"watched"
] | [
"atomic",
"boolean",
"reconstruct",
"state",
"=",
"new",
"atomic",
"boolean",
"(",
"false",
")",
";",
"collection",
"watches",
"compute",
"(",
"collection",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"{",
"if",
"(",
"v",
"=",
"=",
"null",
")",
"{",
"r... |
[
"notify",
"this",
"reader",
"that",
"a",
"local",
"core",
"that",
"is",
"a",
"member",
"of",
"a",
"collection",
"has",
"been",
"closed"
] | [
"atomic",
"boolean",
"reconstruct",
"state",
"=",
"new",
"atomic",
"boolean",
"(",
"false",
")",
";",
"collection",
"watches",
"compute",
"(",
"collection",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"{",
"if",
"(",
"v",
"=",
"=",
"null",
")",
"return",... |
[
"register",
"a",
"collection",
"state",
"watcher",
"to",
"be",
"called",
"when",
"the",
"state",
"of",
"a",
"collection",
"changes"
] | [
"atomic",
"boolean",
"watch",
"set",
"=",
"new",
"atomic",
"boolean",
"(",
"false",
")",
";",
"collection",
"watches",
"compute",
"(",
"collection",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"{",
"if",
"(",
"v",
"=",
"=",
"null",
")",
"{",
"v",
"="... |
[
"remove",
"a",
"watcher",
"from",
"a",
"collection",
"s",
"watch",
"list"
] | [
"atomic",
"boolean",
"reconstruct",
"state",
"=",
"new",
"atomic",
"boolean",
"(",
"false",
")",
";",
"collection",
"watches",
"compute",
"(",
"collection",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"{",
"if",
"(",
"v",
"=",
"=",
"null",
")",
"return",... |
[
"/",
"*",
"package",
"-",
"private",
"for",
"testing"
] | [
"final",
"set",
"<",
"collection",
"state",
"watcher",
">",
"watchers",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"collection",
"watches",
"compute",
"(",
"collection",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"{",
"if",
"(",
"v",
"!",
"... |
[
"get",
"an",
"immutable",
"copy",
"of",
"the",
"present",
"state",
"of",
"the",
"aliases",
"references",
"to",
"this",
"object",
"should",
"not",
"be",
"retained",
"in",
"any",
"context",
"where",
"it",
"will",
"be",
"important",
"to",
"know",
"if",
"alias... | [
"return",
"aliases",
"manager",
"get",
"aliases",
"(",
")",
";"
] |
[
"called",
"by",
"create",
"cluster",
"state",
"watchers",
"and",
"update",
"(",
")"
] | [
"synchronized",
"(",
"get",
"update",
"lock",
"(",
")",
")",
"{",
"construct",
"state",
"(",
"collections",
"empty",
"set",
"(",
")",
")",
";",
"zk",
"client",
"exists",
"(",
"aliases",
",",
"watcher",
",",
"true",
")",
";",
"}",
"aliases",
"manager",
... |
[
"compute",
"the",
"ration",
"between",
"the",
"gauss",
"-",
"normalized",
"associated",
"legendre",
"functions",
"and",
"the",
"schmidt",
"quasi",
"-",
"normalized",
"version",
"this",
"is",
"equivalent",
"to",
"sqrt",
"(",
"(",
"m",
"=",
"=",
"0",
"?",
"1... | [
"float",
"[",
"]",
"[",
"]",
"schmidt",
"quasi",
"norm",
"=",
"new",
"float",
"[",
"max",
"n",
"+",
"1",
"]",
"[",
"]",
";",
"schmidt",
"quasi",
"norm",
"[",
"0",
"]",
"=",
"new",
"float",
"[",
"]",
"{",
"1",
"0f",
"}",
";",
"for",
"(",
"in... |
[
"report",
"the",
"location",
"of",
"a",
"single",
"line",
"comment"
] | [
"final",
"string",
"line",
"=",
"line",
"(",
"start",
"line",
"no",
"-",
"1",
")",
";",
"final",
"string",
"[",
"]",
"txt",
"=",
"{",
"line",
"substring",
"(",
"start",
"col",
"no",
")",
"}",
";",
"final",
"comment",
"comment",
"=",
"new",
"comment... |
[
"report",
"the",
"location",
"of",
"a",
"c",
"+",
"+",
"style",
"comment"
] | [
"report",
"single",
"line",
"comment",
"(",
"start",
"line",
"no",
",",
"start",
"col",
"no",
")",
";"
] |
[
"returns",
"a",
"map",
"of",
"all",
"the",
"c",
"+",
"+",
"style",
"comments",
"the",
"key",
"is",
"a",
"line",
"number",
"the",
"value",
"is",
"the",
"comment",
"{"
] | [
"return",
"get",
"single",
"line",
"comments",
"(",
")",
";"
] |
[
"returns",
"a",
"map",
"of",
"all",
"the",
"single",
"line",
"comments",
"the",
"key",
"is",
"a",
"line",
"number",
"the",
"value",
"is",
"the",
"comment",
"{"
] | [
"return",
"collections",
"unmodifiable",
"map",
"(",
"cpp",
"comments",
")",
";"
] |
[
"-"
] | [
"report",
"block",
"comment",
"(",
"start",
"line",
"no",
",",
"start",
"col",
"no",
",",
"end",
"line",
"no",
",",
"end",
"col",
"no",
")",
";"
] |
[
"-"
] | [
"return",
"get",
"block",
"comments",
"(",
")",
";"
] |
[
"returns",
"a",
"map",
"of",
"all",
"block",
"comments",
"the",
"key",
"is",
"the",
"line",
"number",
"the",
"value",
"is",
"a",
"{"
] | [
"return",
"collections",
"unmodifiable",
"map",
"(",
"clang",
"comments",
")",
";"
] |
[
"returns",
"the",
"specified",
"block",
"comment",
"as",
"a",
"string",
"array"
] | [
"final",
"string",
"[",
"]",
"return",
"value",
";",
"if",
"(",
"start",
"line",
"no",
"=",
"=",
"end",
"line",
"no",
")",
"{",
"return",
"value",
"=",
"new",
"string",
"[",
"1",
"]",
";",
"return",
"value",
"[",
"0",
"]",
"=",
"line",
"(",
"st... |
[
"get",
"a",
"single",
"line",
"for",
"internal",
"use",
"only",
"as",
"get",
"text",
"(",
")",
"get",
"(",
"line",
"no",
")",
"is",
"just",
"as",
"suitable",
"for",
"external",
"use",
"and",
"avoids",
"method",
"duplication"
] | [
"return",
"text",
"get",
"(",
"line",
"no",
")",
";"
] |
[
"get",
"the",
"full",
"text",
"of",
"the",
"file"
] | [
"return",
"new",
"file",
"text",
"(",
"text",
")",
";"
] |
[
"gets",
"the",
"lines",
"in",
"the",
"file"
] | [
"return",
"text",
"to",
"lines",
"array",
"(",
")",
";"
] |
[
"get",
"the",
"line",
"from",
"text",
"of",
"the",
"file"
] | [
"return",
"text",
"get",
"(",
"index",
")",
";"
] |
[
"checks",
"if",
"the",
"specified",
"line",
"is",
"blank"
] | [
"return",
"common",
"util",
"is",
"blank",
"(",
"line",
"(",
"line",
"no",
")",
")",
";"
] |
[
"checks",
"if",
"the",
"specified",
"line",
"is",
"a",
"single",
"-",
"line",
"comment",
"without",
"code"
] | [
"return",
"match",
"singleline",
"comment",
"matcher",
"(",
"line",
"(",
"line",
"no",
")",
")",
"matches",
"(",
")",
";"
] |
[
"checks",
"if",
"the",
"specified",
"position",
"intersects",
"with",
"a",
"comment"
] | [
"return",
"has",
"intersection",
"with",
"block",
"comment",
"(",
"start",
"line",
"no",
",",
"start",
"col",
"no",
",",
"end",
"line",
"no",
",",
"end",
"col",
"no",
")",
"|",
"|",
"has",
"intersection",
"with",
"single",
"line",
"comment",
"(",
"star... |
[
"create",
"common",
"node",
"configuration"
] | [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"get",
"test",
"ignite",
"instance",
"name",
"(",
"idx",
")",
")",
";",
"cfg",
"set",
"discovery",
"spi",
"(",
"new",
"tcp",
"discovery",
"spi",
"(",
")",
"set",
"ip",
"finder",... |
[
"get",
"type",
"on",
"the",
"given",
"node",
"for",
"the",
"given",
"cache",
"and",
"table",
"name",
"type",
"must",
"exist"
] | [
"query",
"type",
"descriptor",
"impl",
"res",
"=",
"type",
"(",
"node",
",",
"cache",
"name",
",",
"tbl",
"name",
")",
";",
"assert",
"not",
"null",
"(",
"res",
")",
";",
"return",
"res",
";"
] |
[
"get",
"type",
"on",
"the",
"given",
"node",
"for",
"the",
"given",
"cache",
"and",
"table",
"name"
] | [
"return",
"types",
"(",
"node",
",",
"cache",
"name",
")",
"get",
"(",
"tbl",
"name",
")",
";"
] |
[
"get",
"available",
"types",
"on",
"the",
"given",
"node",
"for",
"the",
"given",
"cache"
] | [
"map",
"<",
"string",
",",
"query",
"type",
"descriptor",
"impl",
">",
"res",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"collection",
"<",
"grid",
"query",
"type",
"descriptor",
">",
"descs",
"=",
"node",
"context",
"(",
")",
"query",
"(",
... |
[
"assert",
"index",
"state",
"on",
"all",
"<",
"b",
">",
"affinity",
"<",
"/",
"b",
">",
"nodes"
] | [
"for",
"(",
"ignite",
"node",
":",
"ignition",
"all",
"grids",
"(",
")",
")",
"assert",
"index",
"(",
"node",
",",
"cache",
"name",
",",
"tbl",
"name",
",",
"idx",
"name",
",",
"inline",
"size",
",",
"fields",
")",
";"
] |
[
"assert",
"index",
"details",
"not",
"available",
"via",
"jdbc"
] | [
"query",
"index",
"descriptor",
"impl",
"idx",
"desc",
"=",
"type",
"desc",
"index",
"(",
"idx",
"name",
")",
";",
"assert",
"not",
"null",
"(",
"idx",
"desc",
")",
";",
"assert",
"equals",
"(",
"idx",
"name",
",",
"idx",
"desc",
"name",
"(",
")",
... |
[
"assert",
"index",
"doesn",
"t",
"exist",
"on",
"all",
"nodes"
] | [
"for",
"(",
"ignite",
"node",
":",
"ignition",
"all",
"grids",
"(",
")",
")",
"assert",
"no",
"index",
"(",
"node",
",",
"cache",
"name",
",",
"tbl",
"name",
",",
"idx",
"name",
")",
";"
] |
[
"await",
"completion",
"(",
"hopefully",
")",
"of",
"pending",
"operations"
] | [
"try",
"{",
"u",
"sleep",
"(",
"100",
")",
";",
"}",
"catch",
"(",
"ignite",
"interrupted",
"checked",
"exception",
"e",
")",
"{",
"fail",
"(",
")",
";",
"}"
] |
[
"get",
"table",
"name",
"for",
"class"
] | [
"return",
"cls",
"get",
"simple",
"name",
"(",
")",
";"
] |
[
"get",
"table",
"name",
"for",
"class"
] | [
"return",
"query",
"utils",
"normalize",
"object",
"name",
"(",
"type",
"name",
"(",
"cls",
")",
",",
"true",
")",
";"
] |
[
"convenient",
"method",
"for",
"index",
"creation"
] | [
"query",
"index",
"idx",
"=",
"new",
"query",
"index",
"(",
")",
";",
"idx",
"set",
"name",
"(",
"name",
")",
";",
"linked",
"hash",
"map",
"<",
"string",
",",
"boolean",
">",
"fields",
"0",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")"... |
[
"get",
"query",
"processor"
] | [
"return",
"query",
"processor",
"(",
"(",
"ignite",
"ex",
")",
"node",
")",
";"
] |
[
"get",
"query",
"processor"
] | [
"return",
"node",
"context",
"(",
")",
"query",
"(",
")",
";"
] |
[
"field",
"for",
"index",
"state",
"check",
"(",
"ascending",
")"
] | [
"return",
"field",
"(",
"name",
",",
"true",
")",
";"
] |
[
"field",
"for",
"index",
"state",
"check"
] | [
"return",
"f",
"t",
"(",
"name",
"to",
"upper",
"case",
"(",
")",
",",
"asc",
")",
";"
] |
[
"start",
"sql",
"cache",
"on",
"given",
"node"
] | [
"(",
"(",
"ignite",
"ex",
")",
"node",
")",
"context",
"(",
")",
"cache",
"(",
")",
"dynamic",
"start",
"sql",
"cache",
"(",
"ccfg",
")",
"get",
"(",
")",
";",
"ignite",
"cache",
"<",
"?",
",",
"?",
">",
"res",
"=",
"node",
"cache",
"(",
"cache... |
[
"destroy",
"sql",
"cache",
"on",
"given",
"node"
] | [
"(",
"(",
"ignite",
"ex",
")",
"node",
")",
"context",
"(",
")",
"cache",
"(",
")",
"dynamic",
"destroy",
"cache",
"(",
"cache",
"name",
",",
"true",
",",
"true",
",",
"false",
")",
"get",
"(",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"return",
"false",
";",
"key",
"class",
"key",
"class",
"=",
"... |
[
"determines",
"whether",
"there",
"exists",
"a",
"trace",
"with",
"the",
"given",
"name"
] | [
"return",
"!",
"collections",
"2",
"filter",
"(",
"traces",
",",
"new",
"predicate",
"<",
"trace",
"list",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"final",
"trace",
"list",
"trace",
")",
"{",
"return",
"trace",
"get",
"n... |
[
"returns",
"a",
"{"
] | [
"return",
"binary",
"info",
"provider",
";"
] |
[
"returns",
"a",
"{"
] | [
"return",
"debug",
"outputs",
"provider",
";"
] |
[
"<",
"p",
">",
"the",
"zero",
"-",
"based",
"index",
"of",
"the",
"document",
"in",
"the",
"input",
"list",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"index",
";"
] |
[
"<",
"p",
">",
"the",
"zero",
"-",
"based",
"index",
"of",
"the",
"document",
"in",
"the",
"input",
"list",
"<",
"/",
"p",
">"
] | [
"set",
"index",
"(",
"index",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"languages",
"that",
"amazon",
"comprehend",
"detected",
"in",
"the",
"input",
"text",
"for",
"each",
"language",
"the",
"response",
"returns",
"the",
"rfc",
"5646",
"language",
"code",
"and",
"the",
"level",
"of",
"confidence",
"that",... | [
"return",
"languages",
";"
] |
[
"<",
"p",
">",
"the",
"languages",
"that",
"amazon",
"comprehend",
"detected",
"in",
"the",
"input",
"text",
"for",
"each",
"language",
"the",
"response",
"returns",
"the",
"rfc",
"5646",
"language",
"code",
"and",
"the",
"level",
"of",
"confidence",
"that",... | [
"if",
"(",
"languages",
"=",
"=",
"null",
")",
"{",
"this",
"languages",
"=",
"null",
";",
"return",
";",
"}",
"this",
"languages",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"dominant",
"language",
">",
"(",
"languages",
")",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"<",
"a",
">",
"dominant",
"language",
"<",
"/",
"a",
">",
"objects",
"describing",
"the",
"dominant",
"languages",
"in",
"the",
"document",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
... | [
"if",
"(",
"this",
"languages",
"=",
"=",
"null",
")",
"{",
"set",
"languages",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"dominant",
"language",
">",
"(",
"languages",
"length",
")",
")",
";",
"}",
"for",
"(",
"dominant",
"language",
"ele",
... |
[
"<",
"p",
">",
"one",
"or",
"more",
"<",
"a",
">",
"dominant",
"language",
"<",
"/",
"a",
">",
"objects",
"describing",
"the",
"dominant",
"languages",
"in",
"the",
"document",
"<",
"/",
"p",
">"
] | [
"set",
"languages",
"(",
"languages",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"if",
"(",
"cli",
"proto",
"instanceof",
"hadoop",
"client",
"protocol",
")",
"{",
"map",
"reduce",
"client",
"cli",
"=",
"(",
"(",
"hadoop",
"client",
"protocol",
")",
"cli",
"proto",
")",
"client",
"(",
")",
";",
"if",
"(",
"cli",
"release",
"(",
"... |
[
"internal",
"protocol",
"creation",
"routine"
] | [
"return",
"new",
"hadoop",
"client",
"protocol",
"(",
"conf",
",",
"client",
"(",
"addr",
",",
"collections",
"singleton",
"list",
"(",
"addr",
")",
")",
")",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"(",
"a",
"single",
"line",
"border",
"to",
"separate",
"a",
"group",
"of",
"methods",
")"
... | [] |
[
"temporary",
"workaround",
"for",
"the",
"{",
"@",
"link",
"test",
"image",
"spec",
"}",
"s",
"drawable",
"res",
"matcher",
"problem",
"with",
"robolectric"
] | [
"return",
"new",
"condition",
"<",
"inspectable",
"component",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"matches",
"(",
"inspectable",
"component",
"value",
")",
"{",
"if",
"(",
"value",
"get",
"component",
"class",
"(",
")",
"!",
"=",
"... |
[
"increases",
"the",
"capacity",
"if",
"necessary",
"to",
"ensure",
"that",
"it",
"can",
"hold",
"at",
"least",
"the",
"number",
"of",
"values",
"specified",
"by",
"the",
"minimum",
"capacity",
"argument"
] | [
"if",
"(",
"capacity",
">",
"data",
"length",
")",
"{",
"int",
"new",
"cap",
"=",
"math",
"max",
"(",
"data",
"length",
"<",
"<",
"1",
",",
"capacity",
")",
";",
"double",
"[",
"]",
"tmp",
"=",
"new",
"double",
"[",
"new",
"cap",
"]",
";",
"sys... |
[
"trims",
"the",
"capacity",
"to",
"be",
"the",
"list",
"s",
"current",
"size"
] | [
"if",
"(",
"data",
"length",
">",
"size",
"(",
")",
")",
"{",
"double",
"[",
"]",
"tmp",
"=",
"to",
"array",
"(",
")",
";",
"data",
"=",
"tmp",
";",
"}"
] |
[
"appends",
"the",
"specified",
"value",
"to",
"the",
"end",
"of",
"this",
"list"
] | [
"ensure",
"capacity",
"(",
"size",
"+",
"1",
")",
";",
"data",
"[",
"size",
"+",
"+",
"]",
"=",
"val",
";"
] |
[
"appends",
"an",
"array",
"to",
"the",
"end",
"of",
"this",
"list"
] | [
"ensure",
"capacity",
"(",
"size",
"+",
"vals",
"length",
")",
";",
"system",
"arraycopy",
"(",
"vals",
",",
"0",
",",
"data",
",",
"size",
",",
"vals",
"length",
")",
";",
"size",
"+",
"=",
"vals",
"length",
";"
] |
[
"returns",
"the",
"value",
"at",
"the",
"specified",
"position",
"in",
"this",
"list"
] | [
"return",
"data",
"[",
"index",
"]",
";"
] |
[
"replaces",
"the",
"value",
"at",
"the",
"specified",
"position",
"in",
"this",
"list",
"with",
"the",
"specified",
"value"
] | [
"if",
"(",
"index",
"<",
"0",
"|",
"|",
"index",
">",
"=",
"size",
")",
"{",
"throw",
"new",
"index",
"out",
"of",
"bounds",
"exception",
"(",
"string",
"value",
"of",
"(",
"index",
")",
")",
";",
"}",
"data",
"[",
"index",
"]",
"=",
"val",
";"... |
[
"returns",
"an",
"array",
"containing",
"all",
"of",
"the",
"values",
"in",
"this",
"list",
"in",
"proper",
"sequence",
"(",
"from",
"first",
"to",
"last",
"value",
")",
"the",
"caller",
"is",
"thus",
"free",
"to",
"modify",
"the",
"returned",
"array"
] | [
"return",
"to",
"array",
"(",
"null",
")",
";"
] |
[
"returns",
"an",
"array",
"containing",
"all",
"of",
"the",
"values",
"in",
"this",
"list",
"in",
"proper",
"sequence",
"(",
"from",
"first",
"to",
"last",
"value",
")",
"if",
"the",
"list",
"fits",
"in",
"the",
"specified",
"array",
"it",
"is",
"returne... | [
"if",
"(",
"dest",
"=",
"=",
"null",
"|",
"|",
"dest",
"length",
"<",
"size",
"(",
")",
")",
"{",
"dest",
"=",
"new",
"double",
"[",
"size",
"]",
";",
"}",
"system",
"arraycopy",
"(",
"data",
",",
"0",
",",
"dest",
",",
"0",
",",
"size",
")",... |
[
"sets",
"up",
"a",
"blaze",
"java",
"compiler",
"with",
"the",
"given",
"plugins",
"within",
"the",
"given",
"context"
] | [
"for",
"(",
"blaze",
"java",
"compiler",
"plugin",
"plugin",
":",
"plugins",
")",
"{",
"plugin",
"initialize",
"context",
"(",
"context",
")",
";",
"}",
"blaze",
"java",
"compiler",
"pre",
"register",
"(",
"context",
",",
"plugins",
")",
";"
] |
[
"processes",
"plugin",
"-",
"specific",
"arguments",
"and",
"removes",
"them",
"from",
"the",
"args",
"array"
] | [
"list",
"<",
"string",
">",
"processed",
"args",
"=",
"args",
";",
"for",
"(",
"blaze",
"java",
"compiler",
"plugin",
"plugin",
":",
"plugins",
")",
"{",
"processed",
"args",
"=",
"plugin",
"process",
"args",
"(",
"processed",
"args",
")",
";",
"}",
"r... |
[
"the",
"perform",
"the",
"command",
"returns",
"true",
"if",
"the",
"command",
"handled",
"the",
"line",
"and",
"false",
"otherwise"
] | [
"protected",
"abstract",
"boolean",
"do",
"handle",
"(",
"cli",
"terminal",
"terminal",
",",
"cli",
"session",
"cli",
"session",
",",
"matcher",
"m",
",",
"string",
"line",
")",
";"
] |
[
"{"
] | [
"assert",
"clo",
"!",
"=",
"null",
";",
"list",
"<",
"grid",
"dht",
"local",
"partition",
">",
"parts",
"=",
"cctx",
"topology",
"(",
")",
"local",
"partitions",
"(",
")",
";",
"if",
"(",
"parts",
"is",
"empty",
"(",
")",
")",
"return",
";",
"grid"... |
[
"process",
"partitions",
"asynchronously"
] | [
"grid",
"future",
"adapter",
"<",
"void",
">",
"fut",
"=",
"new",
"grid",
"future",
"adapter",
"<",
">",
"(",
")",
";",
"async",
"worker",
"worker",
"=",
"new",
"async",
"worker",
"(",
"parts",
",",
"clo",
",",
"remainder",
",",
"fut",
")",
";",
"n... |
[
"process",
"partitions"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
",",
"size",
"=",
"parts",
"size",
"(",
")",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"stop",
")",
"break",
";",
"if",
"(",
"(",
"i",
"%",
"parallelism",
")",
"=",
"=",
"remainder",
... |
[
"process",
"partition"
] | [
"check",
"cancelled",
"(",
")",
";",
"boolean",
"reserved",
"=",
"false",
";",
"if",
"(",
"part",
"!",
"=",
"null",
"&",
"&",
"part",
"state",
"(",
")",
"!",
"=",
"evicted",
")",
"reserved",
"=",
"(",
"part",
"state",
"(",
")",
"=",
"=",
"owning"... |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"schema",
"index",
"cache",
"visitor",
"impl",
"class",
",",
"this",
")",
";"
] |
[
"tests",
"that",
"the",
"settings",
"are",
"actually",
"serializable"
] | [
"job",
"checkpointing",
"settings",
"settings",
"=",
"new",
"job",
"checkpointing",
"settings",
"(",
"arrays",
"as",
"list",
"(",
"new",
"job",
"vertex",
"i",
"d",
"(",
")",
",",
"new",
"job",
"vertex",
"i",
"d",
"(",
")",
")",
",",
"arrays",
"as",
"... |
[
"whether",
"this",
"slider",
"is",
"inverted",
"or",
"not"
] | [
"return",
"inverted",
";"
] |
[
"we",
"use",
"two",
"pointers",
"low",
"and",
"high",
"if",
"middle",
"element",
"is",
"peak",
"we",
"return",
"it",
"we",
"continue",
"searching",
"right",
"half",
"if",
"middle",
"element",
"is",
"smaller",
"than",
"middle",
"+",
"1",
"element",
"else",
... | [
"int",
"lo",
"=",
"0",
";",
"int",
"hi",
"=",
"a",
"length",
"-",
"1",
";",
"while",
"(",
"lo",
"<",
"=",
"hi",
")",
"{",
"int",
"mid",
"=",
"lo",
"+",
"(",
"hi",
"-",
"lo",
")",
"/",
"2",
";",
"if",
"(",
"mid",
">",
"0",
"&",
"&",
"m... |
[
"{"
] | [
"if",
"(",
"metrics",
"!",
"=",
"null",
")",
"{",
"metrics",
"start",
"event",
"(",
"field",
"http",
"socket",
"read",
"time",
")",
";",
"}",
"try",
"{",
"return",
"in",
"read",
"(",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"metrics",
"!",
"=",
... |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"if",
"(",
"metrics",
"!",
"=",
"null",
")",
"{",
"metrics",
"start",
"event",
"(",
"field",
"http",
"socket",
"read",
"time",
")",
";",
"}",
"try",
"{",
"return",
"in",
"read",
"(",
"b",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"metrics",
"!",
... |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"if",
"(",
"metrics",
"!",
"=",
"null",
")",
"{",
"metrics",
"start",
"event",
"(",
"field",
"http",
"socket",
"read",
"time",
")",
";",
"}",
"try",
"{",
"return",
"in",
"read",
"(",
"b",
",",
"off",
",",
"len",
")",
";",
"}",
"finally",
"{",
"... |
[
"return",
"the",
"frame",
"identifier"
] | [
"return",
"identifier",
";"
] |
[
"setup",
"the",
"object",
"list",
"a",
"byte",
"array",
"which",
"will",
"be",
"read",
"upto",
"frame",
"size",
"bytes"
] | [
"object",
"list",
"add",
"(",
"new",
"byte",
"array",
"size",
"terminated",
"(",
"data",
"types",
"obj",
"data",
",",
"this",
")",
")",
";"
] |
[
"calls",
"crop",
"task",
"execute",
"(",
")",
"once",
"the",
"user",
"has",
"selected",
"which",
"wallpaper",
"to",
"set",
"on",
"pre",
"-",
"n",
"devices",
"the",
"prompt",
"is",
"not",
"displayed",
"since",
"there",
"is",
"no",
"api",
"to",
"set",
"t... | [
"if",
"(",
"utilities",
"is",
"nyc",
"or",
"above",
"(",
")",
")",
"{",
"new",
"alert",
"dialog",
"builder",
"(",
"context",
")",
"set",
"title",
"(",
"r",
"string",
"wallpaper",
"instructions",
")",
"set",
"items",
"(",
"r",
"array",
"which",
"wallpap... |
[
"determines",
"if",
"the",
"specific",
"{"
] | [
"return",
"attached",
"property",
"source",
"name",
"equals",
"(",
"property",
"source",
"get",
"name",
"(",
")",
")",
";"
] |
[
"attach",
"a",
"{"
] | [
"assert",
"is",
"instance",
"of",
"(",
"configurable",
"environment",
"class",
",",
"environment",
")",
";",
"mutable",
"property",
"sources",
"sources",
"=",
"(",
"(",
"configurable",
"environment",
")",
"environment",
")",
"get",
"property",
"sources",
"(",
... |
[
"return",
"a",
"set",
"of",
"{"
] | [
"assert",
"is",
"instance",
"of",
"(",
"configurable",
"environment",
"class",
",",
"environment",
")",
";",
"mutable",
"property",
"sources",
"sources",
"=",
"(",
"(",
"configurable",
"environment",
")",
"environment",
")",
"get",
"property",
"sources",
"(",
... |
[
"return",
"{"
] | [
"return",
"collections",
"singleton",
"(",
"spring",
"configuration",
"property",
"source",
"from",
"(",
"source",
")",
")",
";"
] |
[
"return",
"{"
] | [
"return",
"new",
"spring",
"configuration",
"property",
"sources",
"(",
"sources",
")",
";"
] |
[
"counts",
"{",
"@",
"link",
"connectivity",
"manager",
"#",
"type",
"mobile",
"}",
"networks",
"as",
"metered",
"other",
"types",
"will",
"be",
"considered",
"unmetered"
] | [
"if",
"(",
"default",
"network",
"active",
"&",
"&",
"active",
"network",
"info",
"!",
"=",
"null",
")",
"{",
"return",
"active",
"network",
"info",
"get",
"type",
"(",
")",
"=",
"=",
"connectivity",
"manager",
"type",
"mobile",
";",
"}",
"else",
"{",
... |
[
"returns",
"the",
"captive",
"portal",
"url",
"previously",
"set",
"with",
"{"
] | [
"return",
"captive",
"portal",
"server",
"url",
";"
] |
[
"sets",
"the",
"captive",
"portal",
"url",
"which",
"will",
"be",
"returned",
"in",
"{",
"@",
"link",
"#",
"get",
"captive",
"portal",
"server",
"url",
"}"
] | [
"this",
"captive",
"portal",
"server",
"url",
"=",
"captive",
"portal",
"server",
"url",
";"
] |
[
"adds",
"new",
"{",
"@",
"code",
"network",
"}",
"to",
"the",
"list",
"of",
"all",
"{",
"@",
"link",
"android",
"net",
"network",
"}",
"s"
] | [
"shadow",
"network",
"shadow",
"network",
"=",
"shadow",
"extract",
"(",
"network",
")",
";",
"int",
"net",
"id",
"=",
"shadow",
"network",
"get",
"net",
"id",
"(",
")",
";",
"net",
"id",
"to",
"network",
"put",
"(",
"net",
"id",
",",
"network",
")",... |
[
"removes",
"the",
"{"
] | [
"shadow",
"network",
"shadow",
"network",
"=",
"shadow",
"extract",
"(",
"network",
")",
";",
"int",
"net",
"id",
"=",
"shadow",
"network",
"get",
"net",
"id",
"(",
")",
";",
"net",
"id",
"to",
"network",
"remove",
"(",
"net",
"id",
")",
";",
"net",
... |
[
"clears",
"the",
"list",
"of",
"all",
"{"
] | [
"net",
"id",
"to",
"network",
"clear",
"(",
")",
";",
"net",
"id",
"to",
"network",
"info",
"clear",
"(",
")",
";"
] |
[
"sets",
"the",
"active",
"state",
"of",
"the",
"default",
"network"
] | [
"default",
"network",
"active",
"=",
"is",
"active",
";",
"if",
"(",
"default",
"network",
"active",
")",
"{",
"for",
"(",
"connectivity",
"manager",
"on",
"network",
"active",
"listener",
"l",
":",
"on",
"network",
"active",
"listeners",
")",
"{",
"if",
... |
[
"gets",
"the",
"network",
"capabilities",
"of",
"a",
"given",
"{",
"@",
"link",
"network",
"}"
] | [
"return",
"network",
"capabilities",
"map",
"get",
"(",
"network",
")",
";"
] |
[
"set",
"network",
"capability",
"and",
"affects",
"the",
"result",
"of",
"{",
"@",
"link",
"connectivity",
"manager",
"#",
"get",
"network",
"capabilities",
"(",
"network",
")",
"}"
] | [
"network",
"capabilities",
"map",
"put",
"(",
"network",
",",
"network",
"capabilities",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"v",
"r",
"event",
"overlay",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"v",
"r",
"event",
"overlay",
"class",
",",
"address",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"link",
"v",
"r",
"event",
"overlay",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"long",
"(",
"null",
",",
"struct",
"+",
"v",
"r",
"event",
"overlay",
"overlayhandle",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"long",
"(",
"null",
",",
"struct",
"+",
"v",
"r",
"event",
"overlay",
"devicepath",
")",
";"
] |
[
"callback",
"for",
"each",
"new",
"entry",
"drawn",
"with",
"the",
"finger"
] | [
"log",
"i",
"(",
"chart",
"log",
"tag",
",",
"entry",
"to",
"string",
"(",
")",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.