docstring_tokens list | code_tokens list |
|---|---|
[
"uploads",
"the",
"container",
"s",
"metadata",
"using",
"the",
"specified",
"operation",
"context"
] | [
"public",
"abstract",
"void",
"upload",
"metadata",
"(",
"operation",
"context",
"op",
"context",
")",
"throws",
"storage",
"exception",
";"
] |
[
"creates",
"the",
"container",
"using",
"the",
"specified",
"operation",
"context"
] | [
"public",
"abstract",
"void",
"create",
"(",
"operation",
"context",
"op",
"context",
")",
"throws",
"storage",
"exception",
";"
] |
[
"returns",
"a",
"wrapper",
"for",
"a",
"cloud",
"blob",
"directory"
] | [
"public",
"abstract",
"cloud",
"blob",
"directory",
"wrapper",
"get",
"directory",
"reference",
"(",
"string",
"relative",
"path",
")",
"throws",
"u",
"r",
"i",
"syntax",
"exception",
",",
"storage",
"exception",
";"
] |
[
"returns",
"a",
"wrapper",
"for",
"a",
"cloud",
"block",
"blob"
] | [
"public",
"abstract",
"cloud",
"blob",
"wrapper",
"get",
"block",
"blob",
"reference",
"(",
"string",
"relative",
"path",
")",
"throws",
"u",
"r",
"i",
"syntax",
"exception",
",",
"storage",
"exception",
";"
] |
[
"returns",
"a",
"wrapper",
"for",
"a",
"cloud",
"page",
"blob"
] | [
"public",
"abstract",
"cloud",
"blob",
"wrapper",
"get",
"page",
"blob",
"reference",
"(",
"string",
"relative",
"path",
")",
"throws",
"u",
"r",
"i",
"syntax",
"exception",
",",
"storage",
"exception",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"specific",
"task",
"in",
"the",
"maintenance",
"window",
"task",
"that",
"should",
"be",
"retrieved",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"task",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"task",
"id",
"<",
"/",
"p",
">"
] | [
"set",
"task",
"id",
"(",
"task",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"task",
"creation",
"date",
"<",
"/",
"p",
">"
] | [
"set",
"creation",
"date",
"(",
"creation",
"date",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"date",
"and",
"time",
"the",
"certificate",
"was",
"last",
"modified",
"<",
"/",
"p",
">"
] | [
"this",
"last",
"modified",
"date",
"=",
"last",
"modified",
"date",
";"
] |
[
"<",
"p",
">",
"the",
"date",
"and",
"time",
"the",
"certificate",
"was",
"last",
"modified",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"last",
"modified",
"date",
";"
] |
[
"<",
"p",
">",
"the",
"date",
"when",
"the",
"task",
"was",
"last",
"modified",
"<",
"/",
"p",
">"
] | [
"set",
"last",
"modified",
"date",
"(",
"last",
"modified",
"date",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"structure",
"containing",
"the",
"template",
"body",
"with",
"a",
"minimum",
"length",
"of",
"1",
"byte",
"and",
"a",
"maximum",
"length",
"of",
"51",
"200",
"bytes",
"(",
"for",
"more",
"information",
"go",
"to",
"<",
"a",
"href",
"=",... | [
"this",
"template",
"body",
"=",
"template",
"body",
";"
] |
[
"<",
"p",
">",
"structure",
"containing",
"the",
"template",
"body",
"with",
"a",
"minimum",
"length",
"of",
"1",
"byte",
"and",
"a",
"maximum",
"length",
"of",
"51",
"200",
"bytes",
"(",
"for",
"more",
"information",
"go",
"to",
"<",
"a",
"href",
"=",... | [
"return",
"this",
"template",
"body",
";"
] |
[
"<",
"p",
">",
"the",
"task",
"s",
"template",
"<",
"/",
"p",
">"
] | [
"set",
"template",
"body",
"(",
"template",
"body",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"s3",
"bucket",
"that",
"contains",
"the",
"input",
"file",
"<",
"/",
"p",
">"
] | [
"this",
"input",
"file",
"bucket",
"=",
"input",
"file",
"bucket",
";"
] |
[
"<",
"p",
">",
"the",
"s3",
"bucket",
"that",
"contains",
"the",
"input",
"file",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"input",
"file",
"bucket",
";"
] |
[
"<",
"p",
">",
"the",
"s3",
"bucket",
"that",
"contains",
"the",
"input",
"file",
"<",
"/",
"p",
">"
] | [
"set",
"input",
"file",
"bucket",
"(",
"input",
"file",
"bucket",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"input",
"file",
"within",
"the",
"s3",
"bucket",
"this",
"file",
"contains",
"a",
"newline",
"delimited",
"json",
"file",
"each",
"line",
"contains",
"the",
"parameter",
"values",
"to",
"provision",
"one",
"device",
"("... | [
"this",
"input",
"file",
"key",
"=",
"input",
"file",
"key",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"input",
"file",
"within",
"the",
"s3",
"bucket",
"this",
"file",
"contains",
"a",
"newline",
"delimited",
"json",
"file",
"each",
"line",
"contains",
"the",
"parameter",
"values",
"to",
"provision",
"one",
"device",
"("... | [
"return",
"this",
"input",
"file",
"key",
";"
] |
[
"<",
"p",
">",
"the",
"input",
"file",
"key",
"<",
"/",
"p",
">"
] | [
"set",
"input",
"file",
"key",
"(",
"input",
"file",
"key",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"role",
"that",
"grants",
"permission",
"to",
"send",
"notifications",
"to",
"the",
"target",
"<",
"/",
"p",
">"
] | [
"this",
"role",
"arn",
"=",
"role",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"role",
"that",
"grants",
"permission",
"to",
"send",
"notifications",
"to",
"the",
"target",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"role",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"role",
"arn",
"that",
"grants",
"access",
"to",
"the",
"input",
"file",
"bucket",
"<",
"/",
"p",
">"
] | [
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"bulk",
"thing",
"provisioning",
"task",
"<",
"/",
"p",
">"
] | [
"set",
"status",
"(",
"status",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"bulk",
"thing",
"provisioning",
"task",
"<",
"/",
"p",
">"
] | [
"this",
"status",
"=",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"message",
"<",
"/",
"p",
">"
] | [
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"things",
"successfully",
"provisioned",
"<",
"/",
"p",
">"
] | [
"this",
"success",
"count",
"=",
"success",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"things",
"successfully",
"provisioned",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"success",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"things",
"successfully",
"provisioned",
"<",
"/",
"p",
">"
] | [
"set",
"success",
"count",
"(",
"success",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"things",
"that",
"failed",
"to",
"be",
"provisioned",
"<",
"/",
"p",
">"
] | [
"this",
"failure",
"count",
"=",
"failure",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"things",
"that",
"failed",
"to",
"be",
"provisioned",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"failure",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"things",
"that",
"failed",
"to",
"be",
"provisioned",
"<",
"/",
"p",
">"
] | [
"set",
"failure",
"count",
"(",
"failure",
"count",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"progress",
"of",
"the",
"bulk",
"provisioning",
"task",
"expressed",
"as",
"a",
"percentage",
"<",
"/",
"p",
">"
] | [
"this",
"percentage",
"progress",
"=",
"percentage",
"progress",
";"
] |
[
"<",
"p",
">",
"the",
"progress",
"of",
"the",
"bulk",
"provisioning",
"task",
"expressed",
"as",
"a",
"percentage",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"percentage",
"progress",
";"
] |
[
"<",
"p",
">",
"the",
"progress",
"of",
"the",
"bulk",
"provisioning",
"task",
"expressed",
"as",
"a",
"percentage",
"<",
"/",
"p",
">"
] | [
"set",
"percentage",
"progress",
"(",
"percentage",
"progress",
")",
";",
"return",
"this",
";"
] |
[
"must",
"be",
"called",
"by",
"all",
"methods",
"which",
"access",
"fields",
"to",
"ensure",
"that",
"the",
"data",
"has",
"been",
"uncompressed"
] | [
"if",
"(",
"compressed",
"!",
"=",
"null",
")",
"{",
"try",
"{",
"byte",
"array",
"input",
"stream",
"deflated",
"=",
"new",
"byte",
"array",
"input",
"stream",
"(",
"compressed",
")",
";",
"data",
"input",
"inflater",
"=",
"new",
"data",
"input",
"str... |
[
"subclasses",
"implement",
"this",
"instead",
"of",
"{"
] | [
"protected",
"abstract",
"void",
"read",
"fields",
"compressed",
"(",
"data",
"input",
"in",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"subclasses",
"implement",
"this",
"instead",
"of",
"{"
] | [
"protected",
"abstract",
"void",
"write",
"compressed",
"(",
"data",
"output",
"out",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"gets",
"{",
"@",
"link",
"cache",
"key",
"}",
"for",
"the",
"parameter"
] | [
"return",
"cache",
"key",
"annotation",
";"
] |
[
"checks",
"whether",
"the",
"parameter",
"annotated",
"with",
"{",
"@",
"link",
"cache",
"key",
"}",
"or",
"not"
] | [
"return",
"cache",
"key",
"annotation",
"!",
"=",
"null",
";"
] |
[
"get",
"raw",
"type",
"information",
"for",
"the",
"parameter"
] | [
"return",
"raw",
"type",
";"
] |
[
"/",
"*",
"you",
"could",
"solve",
"this",
"using",
"many",
"different",
"approaches",
"if",
"you",
"work",
"with",
"list",
"interface",
"then",
"you",
"can",
"find",
"the",
"last",
"element",
"using",
"list",
"size",
"as",
"shown",
"below"
] | [
"int",
"number",
"of",
"elements",
"=",
"elements",
"size",
"(",
")",
";",
"return",
"elements",
"get",
"(",
"number",
"of",
"elements",
"-",
"1",
")",
";"
] |
[
"/",
"*",
"another",
"way",
"to",
"solve",
"this",
"is",
"by",
"using",
"linked",
"list",
"instead",
"of",
"a",
"list",
"linked",
"list",
"provides",
"a",
"builtin",
"get",
"last",
"method"
] | [
"return",
"elements",
"get",
"last",
"(",
")",
";"
] |
[
"/",
"*",
"a",
"functional",
"approach",
"could",
"be",
"to",
"use",
"recursion",
"we",
"call",
"the",
"function",
"recusively",
"with",
"a",
"sub",
"list",
"which",
"ignores",
"the",
"0th",
"element",
"when",
"we",
"reach",
"the",
"end",
"i",
"e",
"size... | [
"if",
"(",
"elements",
"=",
"=",
"null",
"|",
"|",
"elements",
"is",
"empty",
"(",
")",
")",
"{",
"throw",
"new",
"no",
"such",
"element",
"exception",
"(",
")",
";",
"}",
"if",
"(",
"elements",
"size",
"(",
")",
"=",
"=",
"1",
")",
"{",
"retur... |
[
"connection",
"factory",
"to",
"obtain",
"connection",
"to",
"bigquery",
"service",
"if",
"non",
"provided",
"the",
"default",
"will",
"be",
"used"
] | [
"return",
"connection",
"factory",
";"
] |
[
"finds",
"the",
"node",
"at",
"a",
"given",
"mouse",
"cursor",
"position"
] | [
"final",
"tree",
"path",
"sel",
"path",
"=",
"tree",
"get",
"path",
"for",
"location",
"(",
"x",
",",
"y",
")",
";",
"if",
"(",
"sel",
"path",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"sel",
"path",
"get",
"last",
"path",... |
[
"visible",
"for",
"testing"
] | [
"this",
"public",
"suffix",
"list",
"bytes",
"=",
"public",
"suffix",
"list",
"bytes",
";",
"this",
"public",
"suffix",
"exception",
"list",
"bytes",
"=",
"public",
"suffix",
"exception",
"list",
"bytes",
";",
"list",
"read",
"set",
"(",
"true",
")",
";",
... |
[
"returns",
"the",
"preferred",
"dimensions",
"for",
"this",
"layout",
"given",
"the",
"<",
"i",
">",
"visible",
"<",
"/",
"i",
">",
"components",
"in",
"the",
"specified",
"target",
"container"
] | [
"return",
"layout",
"size",
"(",
"target",
",",
"true",
")",
";"
] |
[
"returns",
"the",
"minimum",
"dimensions",
"needed",
"to",
"layout",
"the",
"<",
"i",
">",
"visible",
"<",
"/",
"i",
">",
"components",
"contained",
"in",
"the",
"specified",
"target",
"container"
] | [
"return",
"layout",
"size",
"(",
"target",
",",
"false",
")",
";"
] |
[
"/",
"*",
"a",
"new",
"row",
"has",
"been",
"completed",
"use",
"the",
"dimensions",
"of",
"this",
"row",
"to",
"update",
"the",
"preferred",
"size",
"for",
"the",
"container"
] | [
"dim",
"width",
"=",
"math",
"max",
"(",
"dim",
"width",
",",
"row",
"width",
")",
";",
"if",
"(",
"dim",
"height",
">",
"0",
")",
"{",
"dim",
"height",
"+",
"=",
"get",
"vgap",
"(",
")",
";",
"}",
"dim",
"height",
"+",
"=",
"row",
"height",
... |
[
"checks",
"whether",
"or",
"not",
"the",
"mac",
"is",
"present",
"and",
"valid",
"for",
"the",
"web",
"app",
"shortcut"
] | [
"return",
"mac",
"!",
"=",
"null",
"&",
"&",
"webapp",
"authenticator",
"is",
"url",
"valid",
"(",
"this",
",",
"url",
",",
"base",
"6",
"4",
"decode",
"(",
"mac",
",",
"base",
"6",
"4",
"default",
")",
")",
";"
] |
[
"brings",
"a",
"live",
"webapp",
"activity",
"back",
"to",
"the",
"foreground",
"if",
"one",
"exists",
"for",
"the",
"given",
"tab",
"id"
] | [
"if",
"(",
"tab",
"id",
"=",
"=",
"tab",
"invalid",
"tab",
"id",
")",
"return",
"false",
";",
"for",
"(",
"weak",
"reference",
"<",
"activity",
">",
"activity",
"ref",
":",
"application",
"status",
"get",
"running",
"activities",
"(",
")",
")",
"{",
... |
[
"returns",
"if",
"more",
"users",
"can",
"be",
"started",
"without",
"stopping",
"currently",
"running",
"users"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"return",
"get",
"running",
"users",
"l",
"u",
"(",
")",
"size",
"(",
")",
"<",
"m",
"max",
"running",
"users",
";",
"}"
] |
[
"called",
"on",
"handler",
"thread"
] | [
"m",
"injector",
"get",
"window",
"manager",
"(",
")",
"set",
"switching",
"user",
"(",
"false",
")",
";",
"final",
"int",
"observer",
"count",
"=",
"m",
"user",
"switch",
"observers",
"begin",
"broadcast",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
... |
[
"if",
"{",
"@",
"code",
"user",
"id",
"}",
"is",
"{",
"@",
"link",
"user",
"handle",
"#",
"user",
"all",
"}",
"then",
"return",
"an",
"array",
"with",
"all",
"running",
"user",
"i",
"ds",
"otherwise",
"return",
"an",
"array",
"whose",
"only",
"elemen... | [
"if",
"(",
"user",
"id",
"!",
"=",
"user",
"handle",
"user",
"all",
")",
"{",
"return",
"new",
"int",
"[",
"]",
"{",
"user",
"id",
"}",
";",
"}",
"else",
"{",
"return",
"get",
"users",
"(",
")",
";",
"}"
] |
[
"returns",
"whether",
"the",
"given",
"user",
"requires",
"credential",
"entry",
"at",
"this",
"time",
"this",
"is",
"used",
"to",
"intercept",
"activity",
"launches",
"for",
"work",
"apps",
"when",
"the",
"work",
"challenge",
"is",
"present"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"started",
"users",
"get",
"(",
"user",
"id",
")",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"}",
"if",
"(",
"!",
"m",
"lock",
"pattern",
"utils",
"is",
"separate",
"profi... |
[
"signals",
"that",
"a",
"package",
"has",
"started",
"requesting",
"locations"
] | [
"package",
"provider",
"key",
"key",
"=",
"new",
"package",
"provider",
"key",
"(",
"package",
"name",
",",
"provider",
"name",
")",
";",
"package",
"statistics",
"stats",
"=",
"statistics",
"get",
"(",
"key",
")",
";",
"if",
"(",
"stats",
"=",
"=",
"n... |
[
"signals",
"that",
"a",
"package",
"has",
"stopped",
"requesting",
"locations"
] | [
"package",
"provider",
"key",
"key",
"=",
"new",
"package",
"provider",
"key",
"(",
"package",
"name",
",",
"provider",
"name",
")",
";",
"package",
"statistics",
"stats",
"=",
"statistics",
"get",
"(",
"key",
")",
";",
"if",
"(",
"stats",
"!",
"=",
"n... |
[
"signals",
"that",
"a",
"package",
"possibly",
"switched",
"background",
"/",
"foreground"
] | [
"package",
"provider",
"key",
"key",
"=",
"new",
"package",
"provider",
"key",
"(",
"package",
"name",
",",
"provider",
"name",
")",
";",
"package",
"statistics",
"stats",
"=",
"statistics",
"get",
"(",
"key",
")",
";",
"if",
"(",
"stats",
"!",
"=",
"n... |
[
"returns",
"the",
"duration",
"that",
"this",
"request",
"has",
"been",
"active"
] | [
"long",
"current",
"duration",
"ms",
"=",
"m",
"total",
"duration",
"ms",
";",
"if",
"(",
"m",
"num",
"active",
"requests",
">",
"0",
")",
"{",
"current",
"duration",
"ms",
"+",
"=",
"system",
"clock",
"elapsed",
"realtime",
"(",
")",
"-",
"m",
"last... |
[
"returns",
"the",
"duration",
"that",
"this",
"request",
"has",
"been",
"active"
] | [
"long",
"current",
"duration",
"ms",
"=",
"m",
"foreground",
"duration",
"ms",
";",
"if",
"(",
"m",
"last",
"foreground",
"elapsed",
"time",
"ms",
"!",
"=",
"0",
")",
"{",
"current",
"duration",
"ms",
"+",
"=",
"system",
"clock",
"elapsed",
"realtime",
... |
[
"returns",
"the",
"time",
"since",
"the",
"initial",
"request",
"in",
"ms"
] | [
"return",
"system",
"clock",
"elapsed",
"realtime",
"(",
")",
"-",
"m",
"initial",
"elapsed",
"time",
"ms",
";"
] |
[
"returns",
"the",
"fastest",
"interval",
"that",
"has",
"been",
"tracked"
] | [
"return",
"m",
"fastest",
"interval",
"ms",
";"
] |
[
"returns",
"the",
"slowest",
"interval",
"that",
"has",
"been",
"tracked"
] | [
"return",
"m",
"slowest",
"interval",
"ms",
";"
] |
[
"returns",
"true",
"if",
"a",
"request",
"is",
"active",
"for",
"these",
"tracked",
"statistics"
] | [
"return",
"m",
"num",
"active",
"requests",
">",
"0",
";"
] |
[
"copy",
"information",
"from",
"the",
"meta",
"-",
"data",
"input",
"to",
"the",
"dialog",
"fields"
] | [
"shell",
"get",
"display",
"(",
")",
"async",
"exec",
"(",
"new",
"runnable",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"line",
"nr",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"buffer",
"size"... |
[
"create",
"a",
"new",
"{"
] | [
"return",
"create",
"(",
"context",
",",
"executor",
",",
"subscription",
"manager",
"get",
"default",
"subscription",
"id",
"(",
")",
",",
"callback",
")",
";"
] |
[
"retrieves",
"the",
"currently",
"configured",
"temp",
"file",
"root",
"directory",
"returns",
"the",
"file",
"that",
"was",
"configured",
"via",
"{",
"@",
"link",
"#",
"set",
"temp",
"file",
"root",
"directory",
"(",
"file",
")",
"}",
"or",
"the",
"defaul... | [
"shared",
"preferences",
"prefs",
"=",
"m",
"context",
"get",
"shared",
"preferences",
"(",
"mbms",
"temp",
"file",
"provider",
"temp",
"file",
"root",
"pref",
"file",
"name",
",",
"0",
")",
";",
"string",
"path",
"=",
"prefs",
"get",
"string",
"(",
"mbm... |
[
"marks",
"the",
"map",
"as",
"dirty",
"and",
"potentially",
"writes",
"updated",
"entries",
"to",
"the",
"journal"
] | [
"dirty",
"=",
"true",
";",
"if",
"(",
"update",
"journal",
"(",
")",
")",
"{",
"write",
"journal",
"(",
")",
";",
"}"
] |
[
"determines",
"if",
"the",
"journal",
"should",
"be",
"updated",
"the",
"default",
"implementation",
"always",
"returns",
"true",
"but",
"subclasses",
"are",
"free",
"to",
"override",
"this",
"to",
"implement",
"their",
"own",
"journal",
"updating",
"strategy",
... | [
"return",
"true",
";"
] |
[
"load",
"the",
"previous",
"written",
"map",
"entries",
"from",
"disk"
] | [
"load",
"(",
"/",
"*",
"fail",
"fast",
"=",
"*",
"/",
"false",
")",
";"
] |
[
"saves",
"all",
"the",
"entries",
"of",
"this",
"map",
"to",
"disk",
"and",
"deletes",
"the",
"journal",
"file"
] | [
"return",
"save",
"(",
"false",
")",
";"
] |
[
"if",
"true",
"keep",
"the",
"journal",
"during",
"the",
"save",
"(",
")",
"the",
"journal",
"is",
"flushed",
"but",
"the",
"map",
"file",
"is",
"not",
"touched",
"this",
"may",
"be",
"useful",
"in",
"cases",
"where",
"the",
"journal",
"is",
"much",
"s... | [
"return",
"false",
";"
] |
[
"saves",
"the",
"entries",
"in",
"the",
"specified",
"map",
"into",
"the",
"specified",
"file"
] | [
"try",
"(",
"data",
"output",
"stream",
"out",
"=",
"create",
"map",
"file",
"(",
"map",
"file",
")",
")",
"{",
"write",
"entries",
"(",
"out",
",",
"map",
")",
";",
"}"
] |
[
"creates",
"the",
"specified",
"file",
"and",
"returns",
"the",
"data",
"ouput",
"stream",
"suitable",
"for",
"writing",
"entries"
] | [
"file",
"system",
"utils",
"create",
"directory",
"and",
"parents",
"(",
"map",
"file",
"get",
"parent",
"directory",
"(",
")",
")",
";",
"data",
"output",
"stream",
"out",
"=",
"new",
"data",
"output",
"stream",
"(",
"new",
"buffered",
"output",
"stream",... |
[
"writes",
"the",
"map",
"entries",
"to",
"the",
"specified",
"data",
"output",
"stream"
] | [
"for",
"(",
"map",
"entry",
"<",
"k",
",",
"v",
">",
"entry",
":",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"out",
"write",
"byte",
"(",
"entry",
"magic",
")",
";",
"write",
"key",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"out",
")",
";",... |
[
"reads",
"the",
"map",
"entries",
"from",
"the",
"specified",
"data",
"input",
"stream"
] | [
"map",
"<",
"k",
",",
"v",
">",
"map",
"=",
"delegate",
"(",
")",
";",
"while",
"(",
"has",
"entries",
"(",
"in",
",",
"fail",
"fast",
")",
")",
"{",
"k",
"key",
"=",
"read",
"key",
"(",
"in",
")",
";",
"boolean",
"is",
"entry",
"=",
"in",
... |
[
"writes",
"a",
"key",
"of",
"this",
"map",
"into",
"the",
"specified",
"data",
"output",
"stream"
] | [
"protected",
"abstract",
"void",
"write",
"key",
"(",
"k",
"key",
",",
"data",
"output",
"stream",
"out",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"writes",
"a",
"value",
"of",
"this",
"map",
"into",
"the",
"specified",
"data",
"output",
"stream"
] | [
"protected",
"abstract",
"void",
"write",
"value",
"(",
"v",
"value",
",",
"data",
"output",
"stream",
"out",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"reads",
"an",
"entry",
"of",
"this",
"map",
"from",
"the",
"specified",
"data",
"input",
"stream"
] | [
"protected",
"abstract",
"k",
"read",
"key",
"(",
"data",
"input",
"stream",
"in",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"reads",
"an",
"entry",
"of",
"this",
"map",
"from",
"the",
"specified",
"data",
"input",
"stream"
] | [
"protected",
"abstract",
"v",
"read",
"value",
"(",
"data",
"input",
"stream",
"in",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"blacklists",
"{",
"@",
"code",
"track",
"selection",
"index",
"}",
"in",
"{",
"@",
"code",
"track",
"selection",
"}",
"for",
"{",
"@",
"link",
"#",
"default",
"track",
"blacklist",
"ms",
"}",
"if",
"{",
"@",
"code",
"e",
"}",
"is",
"an",
"{",
"@",... | [
"return",
"maybe",
"blacklist",
"track",
"(",
"track",
"selection",
",",
"track",
"selection",
"index",
",",
"e",
",",
"default",
"track",
"blacklist",
"ms",
")",
";"
] |
[
"returns",
"whether",
"a",
"loading",
"error",
"is",
"an",
"{",
"@",
"link",
"invalid",
"response",
"code",
"exception",
"}",
"with",
"{",
"@",
"link",
"invalid",
"response",
"code",
"exception",
"#",
"response",
"code",
"}",
"equal",
"to",
"404",
"or",
... | [
"if",
"(",
"e",
"instanceof",
"invalid",
"response",
"code",
"exception",
")",
"{",
"int",
"response",
"code",
"=",
"(",
"(",
"invalid",
"response",
"code",
"exception",
")",
"e",
")",
"response",
"code",
";",
"return",
"response",
"code",
"=",
"=",
"404... |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"kind",
";"
] |
[
"define",
"custom",
"strategy",
"to",
"use",
"for",
"vertex",
"attribute"
] | [
"vertex",
"props",
"strategy",
"put",
"(",
"i",
"attribute",
"name",
",",
"i",
"strategy",
")",
";",
"return",
"this",
";"
] |
[
"define",
"custom",
"strategy",
"to",
"use",
"for",
"edge",
"attribute"
] | [
"edge",
"props",
"strategy",
"put",
"(",
"i",
"attribute",
"name",
",",
"i",
"strategy",
")",
";",
"return",
"this",
";"
] |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"in",
"practice",
"usually",
"the",
"provided",
"graph",
"is",
"empty"
] | [
"input",
"graph",
"(",
"input",
"graph",
",",
"graph",
"m",
"l",
"input",
"stream",
",",
"batch",
"size",
",",
"vertex",
"id",
"key",
",",
"edge",
"id",
"key",
",",
"edge",
"label",
"key",
")",
";"
] |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"in",
"practice",
"usually",
"the",
"provided",
"graph",
"is",
"empty"
] | [
"input",
"graph",
"(",
"input",
"graph",
",",
"filename",
",",
"batch",
"size",
",",
"vertex",
"id",
"key",
",",
"edge",
"id",
"key",
",",
"edge",
"label",
"key",
")",
";"
] |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"more",
"control",
"over",
"how",
"data",
"is",
"streamed",
"is",
"provided",
"by",
"this",
"method"
] | [
"file",
"input",
"stream",
"fis",
"=",
"new",
"file",
"input",
"stream",
"(",
"filename",
")",
";",
"try",
"{",
"return",
"input",
"graph",
"(",
"input",
"graph",
",",
"fis",
",",
"buffer",
"size",
",",
"vertex",
"id",
"key",
",",
"edge",
"id",
"key"... |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"in",
"practice",
"usually",
"the",
"provided",
"graph",
"is",
"empty"
] | [
"return",
"input",
"graph",
"(",
"this",
"graph",
",",
"graph",
"m",
"l",
"input",
"stream",
",",
"batch",
"size",
",",
"this",
"vertex",
"id",
"key",
",",
"this",
"edge",
"id",
"key",
",",
"this",
"edge",
"label",
"key",
")",
";"
] |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"in",
"practice",
"usually",
"the",
"provided",
"graph",
"is",
"empty"
] | [
"return",
"input",
"graph",
"(",
"this",
"graph",
",",
"filename",
",",
"batch",
"size",
",",
"this",
"vertex",
"id",
"key",
",",
"this",
"edge",
"id",
"key",
",",
"this",
"edge",
"label",
"key",
")",
";"
] |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"in",
"practice",
"usually",
"the",
"provided",
"graph",
"is",
"empty"
] | [
"return",
"input",
"graph",
"(",
"this",
"graph",
",",
"graph",
"m",
"l",
"input",
"stream",
",",
"buffer",
"size",
",",
"this",
"vertex",
"id",
"key",
",",
"this",
"edge",
"id",
"key",
",",
"this",
"edge",
"label",
"key",
")",
";"
] |
[
"input",
"the",
"graph",
"m",
"l",
"stream",
"data",
"into",
"the",
"graph",
"in",
"practice",
"usually",
"the",
"provided",
"graph",
"is",
"empty"
] | [
"return",
"input",
"graph",
"(",
"this",
"graph",
",",
"filename",
",",
"buffer",
"size",
",",
"this",
"vertex",
"id",
"key",
",",
"this",
"edge",
"id",
"key",
",",
"this",
"edge",
"label",
"key",
")",
";"
] |
[
"gets",
"batch",
"check"
] | [
"return",
"batch",
"size",
";"
] |
[
"gets",
"flag",
"indicating",
"whether",
"event",
"happened",
"on",
"{",
"@",
"code",
"near",
"}",
"or",
"{",
"@",
"code",
"partitioned",
"}",
"cache"
] | [
"return",
"near",
";"
] |
[
"{"
] | [
"out",
"write",
"boolean",
"(",
"near",
")",
";",
"u",
"write",
"string",
"(",
"out",
",",
"name",
")",
";",
"u",
"write",
"string",
"(",
"out",
",",
"cfg",
")",
";"
] |
[
"{"
] | [
"near",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"name",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";",
"cfg",
"=",
"u",
"read",
"string",
"(",
"in",
")",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"visor",
"cache",
"start",
"task",
"arg",
"class",
",",
"this",
")",
";"
] |
[
"set",
"the",
"name",
"of",
"the",
"constructor",
"argument"
] | [
"this",
"name",
"=",
"name",
";"
] |
[
"return",
"the",
"value",
"of",
"the",
"{"
] | [
"return",
"this",
"name",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.