docstring_tokens list | code_tokens list |
|---|---|
[
"it",
"s",
"difficult",
"to",
"use",
"mocking",
"to",
"get",
"the",
"number",
"of",
"calls",
"to",
"{"
] | [
"boolean",
"message",
"logged",
"=",
"super",
"log",
"status",
"(",
"total",
"records",
")",
";",
"if",
"(",
"message",
"logged",
")",
"{",
"+",
"+",
"log",
"status",
"call",
"count",
";",
"}",
"return",
"message",
"logged",
";"
] |
[
"obtain",
"the",
"underlying",
"{"
] | [
"@",
"nullable",
"protected",
"abstract",
"j",
"cache",
"operation",
"source",
"get",
"cache",
"operation",
"source",
"(",
")",
";"
] |
[
"get",
"zeppelin",
"version"
] | [
"return",
"string",
"utils",
"default",
"if",
"empty",
"(",
"project",
"properties",
"get",
"property",
"(",
"project",
"properties",
"version",
"key",
")",
",",
"string",
"utils",
"empty",
")",
";"
] |
[
"get",
"zeppelin",
"git",
"latest",
"commit",
"id"
] | [
"return",
"string",
"utils",
"default",
"if",
"empty",
"(",
"git",
"properties",
"get",
"property",
"(",
"git",
"properties",
"commit",
"id",
"key",
")",
",",
"string",
"utils",
"empty",
")",
";"
] |
[
"get",
"zeppelin",
"git",
"latest",
"commit",
"timestamp"
] | [
"return",
"string",
"utils",
"default",
"if",
"empty",
"(",
"git",
"properties",
"get",
"property",
"(",
"git",
"properties",
"commit",
"ts",
"key",
")",
",",
"string",
"utils",
"empty",
")",
";"
] |
[
"set",
"the",
"maximum",
"motor",
"torque",
"usually",
"in",
"n",
"-",
"m"
] | [
"jni",
"set",
"max",
"motor",
"torque",
"(",
"addr",
",",
"torque",
")",
";"
] |
[
"/",
"*",
"b",
"2",
"revolute",
"joint",
"*",
"joint",
"=",
"(",
"b",
"2",
"revolute",
"joint",
"*",
")",
"addr",
";",
"return",
"joint",
"-",
">",
"get",
"reference",
"angle",
"(",
")",
";"
] | [
"return",
"jni",
"get",
"max",
"motor",
"torque",
"(",
"addr",
")",
";"
] |
[
"get",
"the",
"current",
"motor",
"torque",
"usually",
"in",
"n",
"-",
"m"
] | [
"return",
"jni",
"get",
"motor",
"torque",
"(",
"addr",
",",
"inv",
"dt",
")",
";"
] |
[
"set",
"/",
"get",
"the",
"spring",
"frequency",
"in",
"hertz",
"setting",
"the",
"frequency",
"to",
"zero",
"disables",
"the",
"spring"
] | [
"jni",
"set",
"spring",
"frequency",
"hz",
"(",
"addr",
",",
"hz",
")",
";"
] |
[
"/",
"*",
"b",
"2",
"wheel",
"joint",
"*",
"joint",
"=",
"(",
"b",
"2",
"wheel",
"joint",
"*",
")",
"addr",
";",
"joint",
"-",
">",
"set",
"spring",
"frequency",
"hz",
"(",
"hz",
")",
";"
] | [
"return",
"jni",
"get",
"spring",
"frequency",
"hz",
"(",
"addr",
")",
";"
] |
[
"set",
"/",
"get",
"the",
"spring",
"damping",
"ratio"
] | [
"jni",
"set",
"spring",
"damping",
"ratio",
"(",
"addr",
",",
"ratio",
")",
";"
] |
[
"/",
"*",
"b",
"2",
"wheel",
"joint",
"*",
"joint",
"=",
"(",
"b",
"2",
"wheel",
"joint",
"*",
")",
"addr",
";",
"joint",
"-",
">",
"set",
"spring",
"damping",
"ratio",
"(",
"ratio",
")",
";"
] | [
"return",
"jni",
"get",
"spring",
"damping",
"ratio",
"(",
"addr",
")",
";"
] |
[
"returns",
"the",
"z",
"component",
"of",
"the",
"cross",
"product",
"between",
"vectors",
"bc",
"and",
"ba"
] | [
"float",
"b",
"x",
"=",
"point",
"b",
"x",
";",
"float",
"b",
"y",
"=",
"point",
"b",
"y",
";",
"return",
"(",
"(",
"point",
"c",
"x",
"-",
"b",
"x",
")",
"*",
"(",
"point",
"a",
"y",
"-",
"b",
"y",
")",
")",
"-",
"(",
"(",
"point",
"c"... |
[
"this",
"is",
"part",
"of",
"the",
"internal",
"api",
"example",
"value",
":",
"my",
"-",
"org"
] | [
"this",
"organization",
"=",
"organization",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"aappleby",
"/",
"smhasher",
"/",
"blob",
"/",
"master",
"/",
"src",
"/",
"murmur",
"hash",
"3",
"cpp",
">",
"32",
"-",
... | [
"return",
"new",
"murmur",
"3",
"3",
"2",
"hash",
"function",
"(",
"seed",
")",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"aappleby",
"/",
"smhasher",
"/",
"blob",
"/",
"master",
"/",
"src",
"/",
"murmur",
"hash",
"3",
"cpp",
">",
"32",
"-",
... | [
"return",
"murmur",
"3",
"3",
"2",
"hash",
"function",
"murmur3",
"32",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"aappleby",
"/",
"smhasher",
"/",
"blob",
"/",
"master",
"/",
"src",
"/",
"murmur",
"hash",
"3",
"cpp",
">",
"128",
"-",
... | [
"return",
"new",
"murmur",
"3",
"1",
"2",
"8",
"hash",
"function",
"(",
"seed",
")",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"aappleby",
"/",
"smhasher",
"/",
"blob",
"/",
"master",
"/",
"src",
"/",
"murmur",
"hash",
"3",
"cpp",
">",
"128",
"-",
... | [
"return",
"murmur",
"3",
"1",
"2",
"8",
"hash",
"function",
"murmur3",
"128",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"131002",
"net",
"/",
"siphash",
"/",
">",
"64",
"-",
"bit",
"sip",
"hash",
"-",
"2",
"-",
"4",
"algorithm",
"<",
"/",
"a",
">",
"using",
"a... | [
"return",
"sip",
"hash",
"function",
"sip",
"hash",
"24",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"131002",
"net",
"/",
"siphash",
"/",
">",
"64",
"-",
"bit",
"sip",
"hash",
"-",
"2",
"-",
"4",
"algorithm",
"<",
"/",
"a",
">",
"using",
"t... | [
"return",
"new",
"sip",
"hash",
"function",
"(",
"2",
",",
"4",
",",
"k",
"0",
",",
"k",
"1",
")",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"md5",
"hash",
"algorithm",
"(",
"128",
"hash",
"bits",
")"
] | [
"return",
"md",
"5",
"holder",
"md5",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"sha",
"-",
"1",
"algorithm",
"(",
"160",
"hash",
"bits",
")"
] | [
"return",
"sha",
"1",
"holder",
"sha",
"1",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"sha",
"-",
"256",
"algorithm",
"(",
"256",
"hash",
"bits",
")"
] | [
"return",
"sha",
"2",
"5",
"6",
"holder",
"sha",
"256",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"sha",
"-",
"384",
"algorithm",
"(",
"384",
"hash",
"bits",
")"
] | [
"return",
"sha",
"3",
"8",
"4",
"holder",
"sha",
"384",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"sha",
"-",
"512",
"algorithm",
"(",
"512",
"hash",
"bits",
")"
] | [
"return",
"sha",
"5",
"1",
"2",
"holder",
"sha",
"512",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"crc32c",
"checksum",
"algorithm",
"(",
"32",
"hash",
"bits",
")",
"as",
"described",
"by",
"rfc",
"3720",
"section",
"12",
"1"
] | [
"return",
"crc",
"3",
"2c",
"hash",
"function",
"crc",
"32",
"c",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"crc",
"-",
"32",
"checksum",
"algorithm",
"(",
"32",
"hash",
"bits",
")"
] | [
"return",
"checksum",
"type",
"crc",
"32",
"hash",
"function",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"the",
"adler",
"-",
"32",
"checksum",
"algorithm",
"(",
"32",
"hash",
"bits",
")"
] | [
"return",
"checksum",
"type",
"adler",
"32",
"hash",
"function",
";"
] |
[
"returns",
"a",
"hash",
"function",
"implementing",
"farm",
"hash",
"s",
"fingerprint",
"6",
"4",
"an",
"open",
"-",
"source",
"algorithm"
] | [
"return",
"farm",
"hash",
"fingerprint",
"6",
"4",
"farmhash",
"fingerprint",
"64",
";"
] |
[
"assigns",
"to",
"{",
"@",
"code",
"hash",
"code",
"}",
"a",
"bucket",
"in",
"the",
"range",
"{",
"@",
"code",
"[",
"0",
"buckets",
")",
"}",
"in",
"a",
"uniform",
"manner",
"that",
"minimizes",
"the",
"need",
"for",
"remapping",
"as",
"{",
"@",
"c... | [
"return",
"consistent",
"hash",
"(",
"hash",
"code",
"pad",
"to",
"long",
"(",
")",
",",
"buckets",
")",
";"
] |
[
"log",
"the",
"stack",
"trace"
] | [
"log",
"(",
"log",
"get",
"stack",
"trace",
"string",
"(",
"t",
")",
")",
";"
] |
[
"removes",
"the",
"callback",
"for",
"a",
"hooked",
"method"
] | [
"copy",
"on",
"write",
"sorted",
"set",
"<",
"xc",
"method",
"hook",
">",
"callbacks",
";",
"synchronized",
"(",
"hooked",
"method",
"callbacks",
")",
"{",
"callbacks",
"=",
"hooked",
"method",
"callbacks",
"get",
"(",
"hook",
"method",
")",
";",
"if",
"... |
[
"intercept",
"every",
"call",
"to",
"the",
"specified",
"method",
"and",
"call",
"a",
"handler",
"function",
"instead"
] | [
"private",
"native",
"synchronized",
"static",
"void",
"hook",
"method",
"native",
"(",
"member",
"method",
",",
"class",
"<",
"?",
">",
"declaring",
"class",
",",
"int",
"slot",
",",
"object",
"additional",
"info",
")",
";"
] |
[
"<",
"p",
">",
"an",
"arn",
"of",
"a",
"cloud",
"front",
"resource",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"resource",
";"
] |
[
"<",
"p",
">",
"the",
"database",
"that",
"the",
"database",
"event",
"relates",
"to",
"<",
"/",
"p",
">"
] | [
"set",
"resource",
"(",
"resource",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"at",
"which",
"resource",
"group",
"is",
"created",
"<",
"/",
"p",
">"
] | [
"this",
"created",
"at",
"=",
"created",
"at",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"at",
"which",
"resource",
"group",
"is",
"created",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"created",
"at",
";"
] |
[
"<",
"p",
">",
"the",
"timestamp",
"when",
"the",
"database",
"event",
"was",
"created",
"<",
"/",
"p",
">"
] | [
"set",
"created",
"at",
"(",
"created",
"at",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"message",
"of",
"the",
"database",
"event",
"<",
"/",
"p",
">"
] | [
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"category",
"for",
"the",
"event",
"<",
"/",
"p",
">"
] | [
"return",
"event",
"categories",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"category",
"for",
"the",
"event",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"event",
"categories",
"=",
"=",
"null",
")",
"{",
"this",
"event",
"categories",
"=",
"null",
";",
"return",
";",
"}",
"this",
"event",
"categories",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"event",
"categories... |
[
"<",
"p",
">",
"the",
"category",
"that",
"the",
"database",
"event",
"belongs",
"to",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list... | [
"if",
"(",
"this",
"event",
"categories",
"=",
"=",
"null",
")",
"{",
"set",
"event",
"categories",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"event",
"categories",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele"... |
[
"<",
"p",
">",
"the",
"category",
"that",
"the",
"database",
"event",
"belongs",
"to",
"<",
"/",
"p",
">"
] | [
"set",
"event",
"categories",
"(",
"event",
"categories",
")",
";",
"return",
"this",
";"
] |
[
"accept",
"the",
"visitor"
] | [
"return",
"visitor",
"visit",
"(",
"this",
",",
"data",
")",
";"
] |
[
"override",
"this",
"method",
"to",
"provide",
"additional",
"cluster",
"settings"
] | [
"return",
"empty",
"cluster",
"settings",
";"
] |
[
"{"
] | [
"return",
"delegate",
"partitions",
"(",
")",
";"
] |
[
"returns",
"key",
"as",
"a",
"partition",
"index"
] | [
"return",
"(",
"integer",
")",
"key",
";"
] |
[
"{"
] | [
"return",
"delegate",
"assign",
"partitions",
"(",
"aff",
"ctx",
")",
";"
] |
[
"{"
] | [
"delegate",
"remove",
"node",
"(",
"node",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"value",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"value",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"value",
":",
"return",
"is",
"set",
"value",
"(",
")",
";",
"}",
"throw",
"new",
"i... |
[
"{"
] | [
"return",
"1",
";"
] |
[
"{"
] | [
"return",
"local",
";"
] |
[
"/",
"*",
"functions"
] | [
"function",
"<",
"integer",
",",
"integer",
">",
"square",
"=",
"(",
"num",
")",
"-",
">",
"num",
"*",
"num",
";",
"int",
"result",
"=",
"square",
"apply",
"(",
"2",
")",
";",
"assert",
"equals",
"(",
"4",
",",
"result",
")",
";"
] |
[
"try"
] | [
"int",
"i",
"=",
"1",
"/",
"0",
";"
] |
[
"lazy"
] | [
"lazy",
"<",
"double",
">",
"lazy",
"=",
"lazy",
"of",
"(",
"math",
":",
":",
"random",
")",
";",
"assert",
"false",
"(",
"lazy",
"is",
"evaluated",
"(",
")",
")",
";",
"double",
"val",
"1",
"=",
"lazy",
"get",
"(",
")",
";",
"assert",
"true",
... |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"connection",
"to",
"use",
"to",
"connect",
"to",
"the",
"jdbc",
"target",
"<",
"/",
"p",
">"
] | [
"set",
"connection",
"name",
"(",
"connection",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"path",
"of",
"the",
"jdbc",
"target",
"<",
"/",
"p",
">"
] | [
"set",
"path",
"(",
"path",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"glob",
"patterns",
"used",
"to",
"exclude",
"from",
"the",
"crawl",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"latest",
"/... | [
"return",
"exclusions",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"glob",
"patterns",
"used",
"to",
"exclude",
"from",
"the",
"crawl",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"latest",
"/... | [
"if",
"(",
"exclusions",
"=",
"=",
"null",
")",
"{",
"this",
"exclusions",
"=",
"null",
";",
"return",
";",
"}",
"this",
"exclusions",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"exclusions",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"glob",
"patterns",
"used",
"to",
"exclude",
"from",
"the",
"crawl",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"latest",
"/... | [
"if",
"(",
"this",
"exclusions",
"=",
"=",
"null",
")",
"{",
"set",
"exclusions",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"exclusions",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"exclusions",
")",
... |
[
"<",
"p",
">",
"a",
"list",
"of",
"glob",
"patterns",
"used",
"to",
"exclude",
"from",
"the",
"crawl",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"latest",
"/... | [
"set",
"exclusions",
"(",
"exclusions",
")",
";",
"return",
"this",
";"
] |
[
"notify",
"to",
"the",
"error",
"listener",
"that",
"an",
"error",
"happened",
"if",
"you",
"don",
"t",
"declare",
"an",
"specific",
"error",
"handler",
"for",
"your",
"use",
"case",
"this",
"error",
"will",
"be",
"managed",
"by",
"the",
"generic",
"error"... | [
"on",
"error",
"callback",
"error",
"callback",
"=",
"on",
"error",
"callback",
"get",
"(",
")",
";",
"if",
"(",
"error",
"callback",
"!",
"=",
"null",
")",
"{",
"error",
"callback",
"on",
"error",
"(",
"error",
")",
";",
"}"
] |
[
"the",
"on",
"success",
"callback",
"passed",
"as",
"argument",
"in",
"this",
"method",
"will",
"be",
"referenced",
"as",
"a",
"weak",
"reference",
"inside",
"rosie",
"use",
"case",
"and",
"use",
"case",
"params",
"to",
"avoid",
"memory",
"leaks",
"during",
... | [
"if",
"(",
"on",
"success",
"callback",
"!",
"=",
"null",
")",
"{",
"this",
"on",
"success",
"callback",
"=",
"new",
"weak",
"reference",
"<",
">",
"(",
"on",
"success",
"callback",
")",
";",
"}"
] |
[
"the",
"on",
"error",
"callback",
"passed",
"as",
"argument",
"in",
"this",
"method",
"will",
"be",
"referenced",
"as",
"a",
"weak",
"reference",
"inside",
"rosie",
"use",
"case",
"and",
"use",
"case",
"params",
"to",
"avoid",
"memory",
"leaks",
"during",
... | [
"if",
"(",
"on",
"error",
"callback",
"!",
"=",
"null",
")",
"{",
"this",
"on",
"error",
"callback",
"=",
"new",
"weak",
"reference",
"<",
">",
"(",
"on",
"error",
"callback",
")",
";",
"}"
] |
[
"converts",
"the",
"numerical",
"value",
"of",
"a",
"configuration",
"file",
"mouse",
"wheel",
"action",
"to",
"an",
"enumeration",
"value"
] | [
"try",
"{",
"return",
"mouse",
"wheel",
"action",
"parse",
"int",
"(",
"type",
"get",
"mouse",
"wheel",
"action",
"(",
")",
")",
";",
"}",
"catch",
"(",
"final",
"parse",
"exception",
"e",
")",
"{",
"c",
"utility",
"functions",
"log",
"exception",
"(",... |
[
"appends",
"the",
"given",
"instruction",
"without",
"defined",
"offsets"
] | [
"for",
"(",
"int",
"index",
"=",
"0",
";",
"index",
"<",
"instructions",
"length",
";",
"index",
"+",
"+",
")",
"{",
"append",
"instruction",
"(",
"instructions",
"[",
"index",
"]",
")",
";",
"}"
] |
[
"inserts",
"the",
"given",
"line",
"number",
"at",
"the",
"appropriate",
"position",
"in",
"the",
"line",
"number",
"table"
] | [
"return",
"insert",
"line",
"number",
"(",
"0",
",",
"line",
"number",
"info",
")",
";"
] |
[
"implementations",
"for",
"instruction",
"visitor"
] | [] |
[
"implementations",
"for",
"verification",
"type",
"visitor"
] | [] |
[
"adjusts",
"the",
"given",
"jump",
"offsets",
"for",
"the",
"instruction",
"at",
"the",
"given",
"offset"
] | [
"for",
"(",
"int",
"index",
"=",
"0",
";",
"index",
"<",
"jump",
"offsets",
"length",
";",
"index",
"+",
"+",
")",
"{",
"jump",
"offsets",
"[",
"index",
"]",
"=",
"new",
"branch",
"offset",
"(",
"offset",
",",
"jump",
"offsets",
"[",
"index",
"]",
... |
[
"returns",
"if",
"the",
"event",
"journal",
"is",
"enabled"
] | [
"return",
"enabled",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"hadoop",
"task",
"status",
"class",
",",
"this",
")",
";"
] |
[
"{"
] | [
"out",
"write",
"object",
"(",
"state",
")",
";",
"out",
"write",
"object",
"(",
"fail",
"cause",
")",
";",
"out",
"write",
"object",
"(",
"cntrs",
")",
";"
] |
[
"{"
] | [
"state",
"=",
"(",
"hadoop",
"task",
"state",
")",
"in",
"read",
"object",
"(",
")",
";",
"fail",
"cause",
"=",
"(",
"throwable",
")",
"in",
"read",
"object",
"(",
")",
";",
"cntrs",
"=",
"(",
"hadoop",
"counters",
")",
"in",
"read",
"object",
"(",... |
[
"it",
"may",
"be",
"useful",
"to",
"extend",
"the",
"commands",
"understood",
"by",
"this",
"{",
"@",
"code",
"http",
"command",
"executor",
"}",
"at",
"run",
"time",
"and",
"this",
"can",
"be",
"achieved",
"via",
"this",
"method",
"note",
"this",
"is",
... | [
"check",
"not",
"null",
"(",
"command",
"name",
")",
";",
"check",
"not",
"null",
"(",
"info",
")",
";",
"command",
"codec",
"define",
"command",
"(",
"command",
"name",
",",
"info",
"get",
"method",
"(",
")",
",",
"info",
"get",
"url",
"(",
")",
"... |
[
"returns",
"true",
"if",
"the",
"gl",
"timing",
"methods",
"will",
"work",
"false",
"otherwise"
] | [
"return",
"native",
"query",
"support",
"(",
")",
";"
] |
[
"start",
"a",
"gpu",
"/",
"cpu",
"timing",
"measurement"
] | [
"native",
"start",
"gl",
"timer",
"(",
"m",
"native",
"context",
")",
";",
"m",
"start",
"time",
"ns",
"=",
"system",
"clock",
"elapsed",
"realtime",
"nanos",
"(",
")",
";"
] |
[
"add",
"a",
"timestamp",
"to",
"a",
"timing",
"measurement",
"these",
"are",
"queued",
"up",
"and",
"matched",
"to",
"completed",
"workload",
"measurements",
"as",
"they",
"become",
"available"
] | [
"m",
"timestamp",
"queue",
"add",
"(",
"timestamp",
")",
";"
] |
[
"get",
"the",
"next",
"available",
"gpu",
"timing",
"measurement"
] | [
"long",
"duration",
"=",
"native",
"get",
"next",
"gl",
"duration",
"(",
"m",
"native",
"context",
")",
";",
"if",
"(",
"duration",
">",
"0",
")",
"{",
"m",
"completed",
"query",
"count",
"+",
"+",
";",
"}",
"return",
"duration",
";"
] |
[
"returns",
"the",
"number",
"of",
"measurements",
"so",
"far",
"that",
"returned",
"a",
"valid",
"duration",
"measurement"
] | [
"return",
"m",
"completed",
"query",
"count",
";"
] |
[
"create",
"a",
"native",
"performance",
"measurement",
"context"
] | [
"private",
"static",
"native",
"long",
"native",
"create",
"context",
"(",
"int",
"max",
"query",
"count",
")",
";"
] |
[
"delete",
"the",
"native",
"context"
] | [
"private",
"static",
"native",
"void",
"native",
"delete",
"context",
"(",
"long",
"context",
"handle",
")",
";"
] |
[
"query",
"whether",
"the",
"relevant",
"gl",
"extensions",
"are",
"available",
"for",
"gl",
"timing"
] | [
"private",
"static",
"native",
"boolean",
"native",
"query",
"support",
"(",
")",
";"
] |
[
"start",
"a",
"gl",
"timing",
"section"
] | [
"protected",
"static",
"native",
"void",
"native",
"start",
"gl",
"timer",
"(",
"long",
"context",
"handle",
")",
";"
] |
[
"finish",
"a",
"gl",
"timing",
"section"
] | [
"protected",
"static",
"native",
"void",
"native",
"stop",
"gl",
"timer",
"(",
"long",
"context",
"handle",
")",
";"
] |
[
"get",
"the",
"next",
"available",
"gl",
"duration",
"measurement",
"in",
"nanoseconds"
] | [
"protected",
"static",
"native",
"long",
"native",
"get",
"next",
"gl",
"duration",
"(",
"long",
"context",
"handle",
")",
";"
] |
[
"sets",
"the",
"timeout",
"to",
"use",
"when",
"making",
"requests",
"to",
"the",
"storage",
"service",
"<",
"p",
">",
"the",
"server",
"timeout",
"interval",
"begins",
"at",
"the",
"time",
"that",
"the",
"complete",
"request",
"has",
"been",
"received",
"... | [
"public",
"abstract",
"void",
"set",
"timeout",
"in",
"ms",
"(",
"int",
"timeout",
"in",
"ms",
")",
";"
] |
[
"sets",
"the",
"retry",
"policy",
"factory",
"object",
"to",
"use",
"when",
"making",
"service",
"requests"
] | [
"public",
"abstract",
"void",
"set",
"retry",
"policy",
"factory",
"(",
"final",
"retry",
"policy",
"factory",
"retry",
"policy",
"factory",
")",
";"
] |
[
"creates",
"a",
"new",
"blob",
"service",
"client"
] | [
"public",
"abstract",
"void",
"create",
"blob",
"client",
"(",
"cloud",
"storage",
"account",
"account",
")",
";"
] |
[
"creates",
"an",
"instance",
"of",
"the",
"<",
"code",
">",
"cloud",
"blob",
"client",
"<",
"/",
"code",
">",
"class",
"using",
"the",
"specified",
"blob",
"service",
"endpoint"
] | [
"public",
"abstract",
"void",
"create",
"blob",
"client",
"(",
"uri",
"base",
"uri",
")",
";"
] |
[
"creates",
"an",
"instance",
"of",
"the",
"<",
"code",
">",
"cloud",
"blob",
"client",
"<",
"/",
"code",
">",
"class",
"using",
"the",
"specified",
"blob",
"service",
"endpoint",
"and",
"account",
"credentials"
] | [
"public",
"abstract",
"void",
"create",
"blob",
"client",
"(",
"uri",
"base",
"uri",
",",
"storage",
"credentials",
"credentials",
")",
";"
] |
[
"returns",
"the",
"credentials",
"for",
"the",
"blob",
"service",
"as",
"configured",
"for",
"the",
"storage",
"account"
] | [
"public",
"abstract",
"storage",
"credentials",
"get",
"credentials",
"(",
")",
";"
] |
[
"returns",
"a",
"reference",
"to",
"a",
"{",
"@",
"link",
"cloud",
"blob",
"container",
"wrapper",
"}",
"object",
"that",
"represents",
"the",
"cloud",
"blob",
"container",
"for",
"the",
"specified",
"address"
] | [
"public",
"abstract",
"cloud",
"blob",
"container",
"wrapper",
"get",
"container",
"reference",
"(",
"string",
"name",
")",
"throws",
"u",
"r",
"i",
"syntax",
"exception",
",",
"storage",
"exception",
";"
] |
[
"returns",
"a",
"uri",
"whose",
"scheme",
"and",
"authority",
"identify",
"this",
"file",
"system"
] | [
"public",
"abstract",
"uri",
"get",
"uri",
"(",
")",
";"
] |
[
"returns",
"an",
"enumerable",
"collection",
"of",
"blob",
"items",
"whose",
"names",
"begin",
"with",
"the",
"specified",
"prefix",
"using",
"the",
"specified",
"flat",
"or",
"hierarchical",
"option",
"listing",
"details",
"options",
"request",
"options",
"and",
... | [
"public",
"abstract",
"iterable",
"<",
"list",
"blob",
"item",
">",
"list",
"blobs",
"(",
"string",
"prefix",
",",
"boolean",
"use",
"flat",
"blob",
"listing",
",",
"enum",
"set",
"<",
"blob",
"listing",
"details",
">",
"listing",
"details",
",",
"blob",
... |
[
"returns",
"a",
"value",
"that",
"indicates",
"whether",
"the",
"container",
"exists",
"using",
"the",
"specified",
"operation",
"context"
] | [
"public",
"abstract",
"boolean",
"exists",
"(",
"operation",
"context",
"op",
"context",
")",
"throws",
"storage",
"exception",
";"
] |
[
"returns",
"the",
"metadata",
"for",
"the",
"container"
] | [
"public",
"abstract",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"get",
"metadata",
"(",
")",
";"
] |
[
"sets",
"the",
"metadata",
"for",
"the",
"container"
] | [
"public",
"abstract",
"void",
"set",
"metadata",
"(",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"metadata",
")",
";"
] |
[
"downloads",
"the",
"container",
"s",
"attributes",
"which",
"consist",
"of",
"metadata",
"and",
"properties",
"using",
"the",
"specified",
"operation",
"context"
] | [
"public",
"abstract",
"void",
"download",
"attributes",
"(",
"operation",
"context",
"op",
"context",
")",
"throws",
"storage",
"exception",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.