docstring_tokens list | code_tokens list |
|---|---|
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"container",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"disk",
"container",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"container",
"<",
"/",
"p",
">"
] | [
"set",
"disk",
"container",
"(",
"disk",
"container",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"role",
"to",
"use",
"when",
"not",
"using",
"the",
"default",
"role",
"vmimport",
"<",
"/",
"p",
">"
] | [
"set",
"role",
"name",
"(",
"role",
"name",
")",
";",
"return",
"this",
";"
] |
[
"this",
"method",
"initiates",
"the",
"bottom",
"navigation",
"bar",
"properties",
"tries",
"to",
"get",
"them",
"form",
"xml",
"if",
"not",
"preset",
"sets",
"them",
"to",
"their",
"default",
"values"
] | [
"if",
"(",
"attrs",
"!",
"=",
"null",
")",
"{",
"typed",
"array",
"typed",
"array",
"=",
"context",
"get",
"theme",
"(",
")",
"obtain",
"styled",
"attributes",
"(",
"attrs",
",",
"r",
"styleable",
"bottom",
"navigation",
"bar",
",",
"0",
",",
"0",
")... |
[
"used",
"to",
"add",
"a",
"new",
"tab"
] | [
"m",
"bottom",
"navigation",
"items",
"add",
"(",
"item",
")",
";",
"return",
"this",
";"
] |
[
"used",
"to",
"remove",
"a",
"tab",
"you",
"should",
"call",
"initialise",
"(",
")",
"after",
"this",
"to",
"see",
"the",
"results",
"effected"
] | [
"m",
"bottom",
"navigation",
"items",
"remove",
"(",
"item",
")",
";",
"return",
"this",
";"
] |
[
"will",
"be",
"public",
"once",
"all",
"bugs",
"are",
"ressolved"
] | [
"m",
"scrollable",
"=",
"scrollable",
";",
"return",
"this",
";"
] |
[
"this",
"method",
"should",
"be",
"called",
"at",
"the",
"end",
"of",
"all",
"customisation",
"method",
"this",
"method",
"will",
"take",
"all",
"changes",
"in",
"to",
"consideration",
"and",
"redraws",
"tabs"
] | [
"m",
"selected",
"position",
"=",
"default",
"selected",
"position",
";",
"m",
"bottom",
"navigation",
"tabs",
"clear",
"(",
")",
";",
"if",
"(",
"!",
"m",
"bottom",
"navigation",
"items",
"is",
"empty",
"(",
")",
")",
"{",
"m",
"tab",
"container",
"re... |
[
"ripple",
"animation",
"will",
"be",
"2",
"5",
"times",
"this",
"animation",
"duration"
] | [
"this",
"m",
"animation",
"duration",
"=",
"animation",
"duration",
";",
"this",
"m",
"ripple",
"animation",
"duration",
"=",
"(",
"int",
")",
"(",
"animation",
"duration",
"*",
"2",
"5",
")",
";",
"return",
"this",
";"
] |
[
"clears",
"all",
"stored",
"data",
"and",
"this",
"helps",
"to",
"re",
"-",
"initialise",
"tabs",
"from",
"scratch"
] | [
"m",
"tab",
"container",
"remove",
"all",
"views",
"(",
")",
";",
"m",
"bottom",
"navigation",
"tabs",
"clear",
"(",
")",
";",
"m",
"bottom",
"navigation",
"items",
"clear",
"(",
")",
";",
"m",
"background",
"overlay",
"set",
"visibility",
"(",
"view",
... |
[
"should",
"be",
"called",
"only",
"after",
"initialization",
"of",
"bottom",
"bar",
"(",
"i",
"e",
"after",
"calling",
"initialize",
"method",
")"
] | [
"select",
"tab",
"(",
"new",
"position",
",",
"true",
")",
";"
] |
[
"should",
"be",
"called",
"only",
"after",
"initialization",
"of",
"bottom",
"bar",
"(",
"i",
"e",
"after",
"calling",
"initialize",
"method",
")"
] | [
"select",
"tab",
"internal",
"(",
"new",
"position",
",",
"false",
",",
"call",
"listener",
",",
"call",
"listener",
")",
";"
] |
[
"internal",
"method",
"to",
"setup",
"tabs"
] | [
"bottom",
"navigation",
"tab",
"set",
"inactive",
"width",
"(",
"item",
"width",
")",
";",
"bottom",
"navigation",
"tab",
"set",
"active",
"width",
"(",
"item",
"active",
"width",
")",
";",
"bottom",
"navigation",
"tab",
"set",
"position",
"(",
"m",
"botto... |
[
"show",
"bottom",
"navigation",
"bar",
"if",
"it",
"is",
"hidden",
"and",
"hide",
"if",
"it",
"is",
"shown"
] | [
"if",
"(",
"m",
"is",
"hidden",
")",
"{",
"show",
"(",
"animate",
")",
";",
"}",
"else",
"{",
"hide",
"(",
"animate",
")",
";",
"}"
] |
[
"internal",
"method",
"<",
"p",
">",
"used",
"to",
"set",
"animation",
"and",
"takes",
"care",
"of",
"cancelling",
"current",
"animation",
"and",
"sets",
"duration",
"and",
"interpolator",
"for",
"animation"
] | [
"if",
"(",
"m",
"translation",
"animator",
"=",
"=",
"null",
")",
"{",
"m",
"translation",
"animator",
"=",
"view",
"compat",
"animate",
"(",
"this",
")",
";",
"m",
"translation",
"animator",
"set",
"duration",
"(",
"m",
"ripple",
"animation",
"duration",
... |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"... | [
"return",
"m",
"auto",
"hide",
"enabled",
";"
] |
[
"scheduled",
"for",
"next"
] | [
"view",
"group",
"layout",
"params",
"layout",
"params",
"=",
"fab",
"get",
"layout",
"params",
"(",
")",
";",
"if",
"(",
"layout",
"params",
"!",
"=",
"null",
"&",
"&",
"layout",
"params",
"instanceof",
"coordinator",
"layout",
"layout",
"params",
")",
... |
[
"prompts",
"if",
"existing",
"resources",
"should",
"be",
"overwritten",
"recursively",
"collects",
"existing",
"read",
"-",
"only",
"files",
"to",
"overwrite",
"and",
"resources",
"that",
"should",
"not",
"be",
"overwritten"
] | [
"i",
"workspace",
"root",
"workspace",
"root",
"=",
"resources",
"plugin",
"get",
"workspace",
"(",
")",
"get",
"root",
"(",
")",
";",
"iterator",
"source",
"iter",
"=",
"sources",
"iterator",
"(",
")",
";",
"i",
"path",
"source",
"root",
"path",
"=",
... |
[
"deletes",
"the",
"given",
"resource",
"if",
"the",
"resource",
"fails",
"to",
"be",
"deleted",
"adds",
"a",
"status",
"object",
"to",
"the",
"list",
"to",
"be",
"returned",
"by",
"<",
"code",
">",
"get",
"result",
"<",
"/",
"code",
">"
] | [
"try",
"{",
"resource",
"delete",
"(",
"i",
"resource",
"keep",
"history",
",",
"null",
")",
";",
"}",
"catch",
"(",
"core",
"exception",
"e",
")",
"{",
"error",
"table",
"add",
"(",
"e",
"get",
"status",
"(",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"container",
"resource",
"that",
"the",
"passed",
"file",
"system",
"object",
"should",
"be",
"imported",
"into"
] | [
"i",
"path",
"pathname",
"=",
"new",
"path",
"(",
"provider",
"get",
"full",
"path",
"(",
"file",
"system",
"object",
")",
")",
";",
"if",
"(",
"create",
"container",
"structure",
")",
"{",
"return",
"create",
"containers",
"for",
"(",
"pathname",
"remov... |
[
"returns",
"the",
"resource",
"either",
"casted",
"to",
"or",
"adapted",
"to",
"an",
"i",
"file"
] | [
"if",
"(",
"resource",
"instanceof",
"i",
"file",
")",
"{",
"return",
"(",
"i",
"file",
")",
"resource",
";",
"}",
"object",
"adapted",
"=",
"(",
"(",
"i",
"adaptable",
")",
"resource",
")",
"get",
"adapter",
"(",
"i",
"file",
"class",
")",
";",
"i... |
[
"returns",
"the",
"resource",
"either",
"casted",
"to",
"or",
"adapted",
"to",
"an",
"i",
"folder"
] | [
"if",
"(",
"resource",
"instanceof",
"i",
"folder",
")",
"{",
"return",
"(",
"i",
"folder",
")",
"resource",
";",
"}",
"object",
"adapted",
"=",
"(",
"(",
"i",
"adaptable",
")",
"resource",
")",
"get",
"adapter",
"(",
"i",
"folder",
"class",
")",
";"... |
[
"returns",
"the",
"rejected",
"files",
"based",
"on",
"the",
"given",
"multi",
"status"
] | [
"array",
"list",
"filtered",
"files",
"=",
"new",
"array",
"list",
"(",
")",
";",
"i",
"status",
"[",
"]",
"status",
"=",
"multi",
"status",
"get",
"children",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"status",
"length",
";... |
[
"transform",
"an",
"absolute",
"path",
"uri",
"to",
"a",
"relative",
"path",
"one",
"(",
"i",
"e",
"from",
"c",
":",
"\\",
"foo",
"\\",
"bar",
"\\",
"file",
"txt",
"to",
"var",
"\\",
"file",
"txt",
"granted",
"that",
"the",
"relative",
"variable",
"i... | [
"if",
"(",
"relative",
"variable",
"=",
"=",
"null",
")",
"return",
"location",
";",
"if",
"(",
"relative",
"variable",
"equals",
"(",
"absolute",
"path",
")",
")",
"return",
"location",
";",
"i",
"path",
"variable",
"manager",
"path",
"variable",
"manager... |
[
"imports",
"the",
"specified",
"file",
"system",
"object",
"recursively",
"into",
"the",
"workspace",
"if",
"the",
"import",
"fails",
"adds",
"a",
"status",
"object",
"to",
"the",
"list",
"to",
"be",
"returned",
"by",
"<",
"code",
">",
"get",
"status",
"<"... | [
"if",
"(",
"monitor",
"is",
"canceled",
"(",
")",
")",
"{",
"throw",
"new",
"operation",
"canceled",
"exception",
"(",
")",
";",
"}",
"if",
"(",
"!",
"provider",
"is",
"folder",
"(",
"file",
"system",
"object",
")",
")",
"{",
"import",
"file",
"(",
... |
[
"sets",
"whether",
"the",
"containment",
"structures",
"that",
"are",
"implied",
"from",
"the",
"full",
"paths",
"of",
"file",
"system",
"objects",
"being",
"imported",
"should",
"be",
"duplicated",
"in",
"the",
"workbench"
] | [
"create",
"container",
"structure",
"=",
"value",
";"
] |
[
"sets",
"the",
"file",
"system",
"objects",
"to",
"import"
] | [
"this",
"selected",
"files",
"=",
"files",
"to",
"import",
";"
] |
[
"sets",
"whether",
"imported",
"file",
"system",
"objects",
"should",
"automatically",
"overwrite",
"existing",
"workbench",
"resources",
"when",
"a",
"conflict",
"occurs"
] | [
"if",
"(",
"value",
")",
"{",
"this",
"overwrite",
"state",
"=",
"overwrite",
"all",
";",
"}"
] |
[
"validates",
"the",
"given",
"file",
"system",
"objects",
"the",
"user",
"is",
"prompted",
"to",
"overwrite",
"existing",
"files",
"existing",
"read",
"-",
"only",
"files",
"are",
"validated",
"with",
"the",
"vcm",
"provider"
] | [
"array",
"list",
"no",
"overwrite",
"=",
"new",
"array",
"list",
"(",
")",
";",
"array",
"list",
"overwrite",
"readonly",
"=",
"new",
"array",
"list",
"(",
")",
";",
"collect",
"existing",
"readonly",
"files",
"(",
"destination",
"path",
",",
"source",
"... |
[
"set",
"whether",
"groups",
"and",
"links",
"will",
"be",
"created",
"instead",
"of",
"files",
"and",
"folders"
] | [
"create",
"virtual",
"folder",
"=",
"virtual",
"folders",
";"
] |
[
"set",
"whether",
"links",
"will",
"be",
"created",
"instead",
"of",
"files",
"and",
"folders"
] | [
"create",
"links",
"=",
"links",
";"
] |
[
"set",
"a",
"variable",
"relative",
"to",
"which",
"the",
"links",
"are",
"created"
] | [
"relative",
"variable",
"=",
"variable",
";"
] |
[
"resolves",
"subpath",
"in",
"safer",
"way",
"for",
"some",
"reason",
"if",
"child",
"starts",
"with",
"a",
"separator",
"it",
"gets",
"resolved",
"as",
"a",
"full",
"path",
"ignoring",
"the",
"base",
"this",
"method",
"acts",
"different"
] | [
"if",
"(",
"string",
"util",
"starts",
"with",
"char",
"(",
"child",
",",
"file",
"separator",
"char",
")",
")",
"{",
"child",
"=",
"child",
"substring",
"(",
"1",
")",
";",
"}",
"return",
"base",
"resolve",
"(",
"child",
")",
";"
] |
[
"deletes",
"a",
"directory",
"recursively"
] | [
"files",
"walk",
"file",
"tree",
"(",
"directory",
",",
"new",
"simple",
"file",
"visitor",
"<",
"path",
">",
"(",
")",
"{",
"@",
"override",
"public",
"file",
"visit",
"result",
"visit",
"file",
"(",
"final",
"path",
"file",
",",
"final",
"basic",
"fi... |
[
"construct",
"an",
"asynchronous",
"implementation",
"of",
"a",
"w",
"s",
"code",
"commit",
"async",
"using",
"the",
"current",
"builder",
"configuration"
] | [
"return",
"new",
"a",
"w",
"s",
"code",
"commit",
"async",
"client",
"(",
"params",
")",
";"
] |
[
"set",
"storage"
] | [
"this",
"sto",
"=",
"sto",
";"
] |
[
"{"
] | [
"return",
"sto",
"size",
"(",
")",
";"
] |
[
"check",
"index",
"bounds"
] | [
"if",
"(",
"idx",
"<",
"0",
"|",
"|",
"idx",
">",
"=",
"sto",
"size",
"(",
")",
")",
"throw",
"new",
"index",
"exception",
"(",
"idx",
")",
";"
] |
[
"{"
] | [
"check",
"index",
"(",
"idx",
")",
";",
"return",
"storage",
"get",
"(",
"idx",
")",
";"
] |
[
"{"
] | [
"return",
"storage",
"get",
"(",
"idx",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"is",
"array",
"based",
"(",
")",
")",
"arrays",
"parallel",
"sort",
"(",
"sto",
"data",
"(",
")",
")",
";",
"else",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"if",
"(",
"sto",
"is",
"array",
"based",
"(",
")",
")",
"{",
"double",
"[",
"]",
"data",
"=",
"sto",
"data",
"(",
")",
";",
"arrays",
"set",
"all",
"(",
"data",
",",
"(",
"idx",
")",
"-",
">",
"fun",
"apply",
"(",
"data",
"[",
"idx",
"]",
... |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"storage",
"set",
"(",
"i",
",",
"fun",
"apply",
"(",
"storage",
"get",
... |
[
"{"
] | [
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"storage",
"set",
"(",
"i",
",",
"fun",
"apply",
"(",
"storage",
"get",
"(",
"i",
")",
",",
"y",
")",
")",
";",
"... |
[
"{"
] | [
"if",
"(",
"min",
"elm",
"=",
"=",
"null",
")",
"{",
"int",
"min",
"idx",
"=",
"0",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"if",
"(",
"storage",
"g... |
[
"{"
] | [
"if",
"(",
"max",
"elm",
"=",
"=",
"null",
")",
"{",
"int",
"max",
"idx",
"=",
"0",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"if",
"(",
"storage",
"g... |
[
"{"
] | [
"check",
"index",
"(",
"idx",
")",
";",
"storage",
"set",
"(",
"idx",
",",
"val",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"storage",
"set",
"(",
"idx",
",",
"val",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"check",
"index",
"(",
"idx",
")",
";",
"storage",
"set",
"(",
"idx",
",",
"storage",
"get",
"(",
"idx",
")",
"+",
"val",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"storage",
"set",
"(",
"idx",
",",
"storage",
"get",
"(",
"idx",
")",
"+",
"val",
")",
";",
"return",
"this",
";"
] |
[
"tests",
"if",
"given",
"value",
"is",
"considered",
"a",
"zero",
"value"
] | [
"return",
"val",
"=",
"=",
"0",
"0",
";"
] |
[
"{"
] | [
"double",
"sum",
"=",
"0",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"sum",
"+",
"=",
"storage",
"get",
"(",
"i",
")",
";",
"return",
"sum",
";"
] |
[
"{"
] | [
"int",
"cnt",
"=",
"0",
";",
"for",
"(",
"element",
"ignored",
":",
"non",
"zeroes",
"(",
")",
")",
"cnt",
"+",
"+",
";",
"return",
"cnt",
";"
] |
[
"{"
] | [
"t",
"res",
"=",
"zero",
"val",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"res",
"=",
"fold",
"fun",
"apply",
"(",
"res",
",",
"map",
"fun",
"apply",
"(... |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"t",
"res",
"=",
"zero",
"val",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"res",
"=",
"fold",
"fun",
"apply"... |
[
"{"
] | [
"if",
"(",
"sto",
"is",
"array",
"based",
"(",
")",
")",
"{",
"ensure",
"read",
"only",
"(",
")",
";",
"arrays",
"fill",
"(",
"sto",
"data",
"(",
")",
",",
"val",
")",
";",
"}",
"else",
"{",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
... |
[
"{"
] | [
"check",
"cardinality",
"(",
"vals",
")",
";",
"if",
"(",
"sto",
"is",
"array",
"based",
"(",
")",
")",
"{",
"ensure",
"read",
"only",
"(",
")",
";",
"system",
"arraycopy",
"(",
"vals",
",",
"0",
",",
"sto",
"data",
"(",
")",
",",
"0",
",",
"va... |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"for",
"(",
"vector",
"element",
"x",
":",
"vec",
"all",
"(",
")",
")",
"storage",
"set",
"(",
"x",
"index",
"(",
")",
",",
"x",
"get",
"(",
")",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"assert",
"fun",
"!",
"=",
"null",
";",
"if",
"(",
"sto",
"is",
"array",
"based",
"(",
")",
")",
"{",
"ensure",
"read",
"only",
"(",
")",
";",
"arrays",
"set",
"all",
"(",
"sto",
"data",
"(",
")",
",",
"fun",
")",
";",
"}",
"else",
"{",
"int"... |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"double",
"sum",
"=",
"0",
"0",
";",
"int",
"len",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"sum",
"+",
"=",
"storage",
"get",... |
[
"{"
] | [
"if",
"(",
"len",
"sq",
"=",
"=",
"0",
"0",
")",
"len",
"sq",
"=",
"dot",
"self",
"(",
")",
";",
"return",
"len",
"sq",
";"
] |
[
"{"
] | [
"return",
"sto",
";"
] |
[
"{"
] | [
"return",
"new",
"vector",
"view",
"(",
"this",
",",
"off",
",",
"len",
")",
";"
] |
[
"{"
] | [
"matrix",
"res",
"=",
"like",
"matrix",
"(",
"size",
"(",
")",
",",
"vec",
"size",
"(",
")",
")",
";",
"if",
"(",
"res",
"=",
"=",
"null",
")",
"return",
"null",
";",
"for",
"(",
"element",
"e",
":",
"non",
"zeroes",
"(",
")",
")",
"{",
"int"... |
[
"{"
] | [
"matrix",
"res",
"=",
"like",
"matrix",
"(",
"row",
"like",
"?",
"1",
":",
"size",
"(",
")",
",",
"row",
"like",
"?",
"size",
"(",
")",
":",
"1",
")",
";",
"if",
"(",
"res",
"=",
"=",
"null",
")",
"return",
"null",
";",
"if",
"(",
"row",
"l... |
[
"{"
] | [
"matrix",
"res",
"=",
"like",
"matrix",
"(",
"row",
"like",
"?",
"1",
":",
"size",
"(",
")",
"+",
"1",
",",
"row",
"like",
"?",
"size",
"(",
")",
"+",
"1",
":",
"1",
")",
";",
"if",
"(",
"res",
"=",
"=",
"null",
")",
"return",
"null",
";",
... |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"vector",
"cp",
"=",
"copy",
"(",
")",
";",
"return",
"cp",
"map",
"(",
"vec",
",",
"functions",
"minus",
")",
";"
] |
[
"{"
] | [
"vector",
"cp",
"=",
"copy",
"(",
")",
";",
"return",
"x",
"!",
"=",
"0",
"0",
"?",
"cp",
"map",
"(",
"functions",
"plus",
"(",
"x",
")",
")",
":",
"cp",
";"
] |
[
"{"
] | [
"vector",
"cp",
"=",
"copy",
"(",
")",
";",
"if",
"(",
"x",
"!",
"=",
"1",
"0",
")",
"for",
"(",
"element",
"element",
":",
"cp",
"all",
"(",
")",
")",
"element",
"set",
"(",
"element",
"get",
"(",
")",
"/",
"x",
")",
";",
"return",
"cp",
"... |
[
"{"
] | [
"if",
"(",
"x",
"=",
"=",
"0",
"0",
")",
"return",
"like",
"(",
"size",
"(",
")",
")",
";",
"else",
"return",
"copy",
"(",
")",
"map",
"(",
"functions",
"mult",
"(",
"x",
")",
")",
";"
] |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"return",
"copy",
"(",
")",
"map",
"(",
"vec",
",",
"functions",
"mult",
")",
";"
] |
[
"{"
] | [
"check",
"cardinality",
"(",
"vec",
")",
";",
"vector",
"cp",
"=",
"copy",
"(",
")",
";",
"return",
"cp",
"map",
"(",
"vec",
",",
"functions",
"plus",
")",
";"
] |
[
"{"
] | [
"return",
"log",
"normalize",
"(",
"2",
"0",
",",
"math",
"sqrt",
"(",
"get",
"length",
"squared",
"(",
")",
")",
")",
";"
] |
[
"{"
] | [
"return",
"log",
"normalize",
"(",
"power",
",",
"k",
"norm",
"(",
"power",
")",
")",
";"
] |
[
"{"
] | [
"return",
"divide",
"(",
"math",
"sqrt",
"(",
"get",
"length",
"squared",
"(",
")",
")",
")",
";"
] |
[
"{"
] | [
"return",
"divide",
"(",
"k",
"norm",
"(",
"power",
")",
")",
";"
] |
[
"{"
] | [
"return",
"like",
"(",
"size",
"(",
")",
")",
"assign",
"(",
"this",
")",
";"
] |
[
"{"
] | [
"return",
"make",
"element",
"(",
"idx",
")",
";"
] |
[
"{"
] | [
"out",
"write",
"object",
"(",
"sto",
")",
";",
"out",
"write",
"object",
"(",
"meta",
")",
";",
"out",
"write",
"object",
"(",
"guid",
")",
";",
"out",
"write",
"boolean",
"(",
"read",
"only",
")",
";"
] |
[
"{"
] | [
"sto",
"destroy",
"(",
")",
";"
] |
[
"{"
] | [
"int",
"res",
"=",
"1",
";",
"res",
"+",
"=",
"res",
"*",
"37",
"+",
"guid",
"hash",
"code",
"(",
")",
";",
"res",
"+",
"=",
"sto",
"=",
"=",
"null",
"?",
"0",
":",
"res",
"*",
"37",
"+",
"sto",
"hash",
"code",
"(",
")",
";",
"return",
"r... |
[
"{"
] | [
"if",
"(",
"this",
"=",
"=",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"obj",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"obj",
"get",
"class",
"(",
")",
")",
"return",
"false",
";",
"abstract",
"vector",
"that",
"=",
... |
[
"{"
] | [
"storage",
"set",
"(",
"idx",
",",
"f",
"apply",
"(",
"idx",
",",
"storage",
"get",
"(",
"idx",
")",
")",
")",
";",
"len",
"sq",
"=",
"0",
"0",
";",
"max",
"elm",
"=",
"min",
"elm",
"=",
"null",
";"
] |
[
"release",
"cached",
"r",
"d",
"ds",
"as",
"soon",
"as",
"the",
"job",
"is",
"done",
"this",
"is",
"different",
"from",
"local",
"spark",
"client",
"so",
"as",
"to",
"save",
"a",
"rpc",
"call",
"/",
"trip",
"avoid",
"passing",
"cached",
"rdd",
"id",
... | [
"if",
"(",
"cached",
"r",
"d",
"d",
"ids",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"integer",
"cached",
"r",
"d",
"d",
"id",
":",
"cached",
"r",
"d",
"d",
"ids",
")",
"{",
"jc",
"sc",
"(",
")",
"sc",
"(",
")",
"unpersist",
"r",
"d",
"d",
... |
[
"returns",
"the",
"client",
"job",
"id",
"for",
"the",
"given",
"spark",
"job",
"id"
] | [
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"job",
"wrapper",
"<",
"?",
">",
">",
"e",
":",
"active",
"jobs",
"entry",
"set",
"(",
")",
")",
"{",
"for",
"(",
"java",
"future",
"action",
"<",
"?",
">",
"future",
":",
"e",
"get",
"value",
"("... |
[
"get",
"the",
"default",
"scheduler",
"for",
"the",
"provided",
"camel",
"context"
] | [
"return",
"get",
"quartz",
"component",
"(",
"context",
")",
"get",
"factory",
"(",
")",
"get",
"scheduler",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"double",
"double",
"=",
"1",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"double",
";"
] |
[
"<",
"code",
">",
"repeated",
"double",
"double",
"=",
"1",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"double",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"double",
"double",
"=",
"1",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"double",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"float",
"float",
"=",
"2",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"float",
";"
] |
[
"<",
"code",
">",
"repeated",
"float",
"float",
"=",
"2",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"float",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"float",
"float",
"=",
"2",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"float",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"3",
"2",
"integer",
"=",
"3",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"integer",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"3",
"2",
"integer",
"=",
"3",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"integer",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"3",
"2",
"integer",
"=",
"3",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"integer",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"6",
"4",
"long",
"=",
"4",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"long",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"6",
"4",
"long",
"=",
"4",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"long",
"size",
"(",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"sint",
"6",
"4",
"long",
"=",
"4",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"long",
"get",
"(",
"index",
")",
";"
] |
[
"<",
"code",
">",
"repeated",
"bool",
"boolean",
"=",
"5",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"boolean",
";"
] |
[
"<",
"code",
">",
"repeated",
"bool",
"boolean",
"=",
"5",
"[",
"packed",
"=",
"true",
"]",
";",
"<",
"/",
"code",
">"
] | [
"return",
"boolean",
"size",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.