docstring_tokens list | code_tokens list |
|---|---|
[
"assert",
"that",
"a",
"delete",
"succeeded"
] | [
"contract",
"test",
"utils",
"assert",
"deleted",
"(",
"file",
"system",
",",
"path",
",",
"recursive",
")",
";"
] |
[
"returns",
"the",
"flags",
"for",
"the",
"nanoapp",
"as",
"defined",
"in",
"context",
"hub",
"h"
] | [
"return",
"m",
"flags",
";"
] |
[
"creates",
"a",
"rest",
"dsl"
] | [
"rest",
"definition",
"rest",
"=",
"create",
"rest",
"(",
")",
";",
"return",
"rest",
"(",
"rest",
")",
";"
] |
[
"creates",
"a",
"rest",
"dsl"
] | [
"rest",
"definition",
"rest",
"=",
"create",
"rest",
"(",
")",
";",
"rest",
"set",
"path",
"(",
"uri",
")",
";",
"return",
"rest",
"(",
"rest",
")",
";"
] |
[
"adds",
"the",
"{"
] | [
"get",
"rests",
"(",
")",
"add",
"(",
"rest",
")",
";",
"return",
"rest",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"rest",
"definition",
"rest",
"=",
"new",
"rest",
"definition",
"(",
")",
";",
"return",
"rest",
";"
] |
[
"convert",
"an",
"rest",
"request",
"method",
"array",
"to",
"a",
"string",
"array",
"so",
"it",
"can",
"be",
"compared",
"with",
"the",
"expected",
"allow",
"header",
"string",
"array"
] | [
"return",
"method",
"array",
"stream",
"(",
")",
"map",
"(",
"method",
"-",
">",
"method",
"to",
"string",
"(",
")",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";"
] |
[
"compares",
"a",
"not",
"overloaded",
"method",
"in",
"the",
"new",
"api",
"and",
"original",
"api",
"to",
"notify",
"parameter",
"type",
"return",
"type",
"or",
"exception",
"type",
"changes"
] | [
"check",
"(",
"method",
"1",
"get",
"return",
"type",
"(",
")",
",",
"method",
"2",
"get",
"return",
"type",
"(",
")",
",",
"method",
"1",
"get",
"name",
"(",
")",
",",
"method",
"1",
"get",
"class",
"name",
"(",
")",
")",
";",
"check",
"(",
"m... |
[
"tries",
"to",
"find",
"a",
"method",
"with",
"the",
"same",
"name",
"and",
"parameter",
"type",
"as",
"method",
"in",
"a",
"collection",
"of",
"methods"
] | [
"for",
"(",
"api",
"method",
"m",
":",
"methods",
")",
"{",
"if",
"(",
"m",
"get",
"name",
"(",
")",
"equals",
"(",
"method",
"get",
"name",
"(",
")",
")",
"&",
"&",
"m",
"get",
"parameters",
"type",
"(",
")",
"equals",
"(",
"method",
"get",
"p... |
[
"<",
"p",
">",
"blob",
"of",
"image",
"bytes",
"up",
"to",
"5",
"m",
"bs",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"aws",
"sdk",
"for",
"java",
"performs",
"a",
"base",
"6",
"4",
"encoding",
"on",
"this",
"field",
"before",
"sending",
"this",
... | [
"this",
"bytes",
"=",
"bytes",
";"
] |
[
"<",
"p",
">",
"blob",
"of",
"image",
"bytes",
"up",
"to",
"5",
"m",
"bs",
"<",
"/",
"p",
">",
"<",
"p",
">",
"{",
"@",
"code",
"byte",
"buffer",
"}",
"s",
"are",
"stateful",
"calling",
"their",
"{",
"@",
"code",
"get",
"}",
"methods",
"changes... | [
"return",
"this",
"bytes",
";"
] |
[
"<",
"p",
">",
"blob",
"of",
"image",
"bytes",
"up",
"to",
"5",
"m",
"bs",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"aws",
"sdk",
"for",
"java",
"performs",
"a",
"base",
"6",
"4",
"encoding",
"on",
"this",
"field",
"before",
"sending",
"this",
... | [
"set",
"bytes",
"(",
"bytes",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"s3",
"bucket",
"name",
"and",
"file",
"name",
"for",
"the",
"video",
"<",
"/",
"p",
">"
] | [
"this",
"s",
"3",
"object",
"=",
"s",
"3",
"object",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"s3",
"bucket",
"name",
"and",
"file",
"name",
"for",
"the",
"video",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"s",
"3",
"object",
";"
] |
[
"<",
"p",
">",
"identifies",
"an",
"s3",
"object",
"as",
"the",
"image",
"source",
"<",
"/",
"p",
">"
] | [
"set",
"s",
"3",
"object",
"(",
"s",
"3",
"object",
")",
";",
"return",
"this",
";"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"gl",
"delete",
"transform",
"feedbacks",
"delete",
"transform",
"feedbacks",
"}"
] | [
"gl40c",
"ngl",
"delete",
"transform",
"feedbacks",
"(",
"n",
",",
"ids",
")",
";"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"gl",
"gen",
"transform",
"feedbacks",
"gen",
"transform",
"feedbacks",
"}"
] | [
"gl40c",
"ngl",
"gen",
"transform",
"feedbacks",
"(",
"n",
",",
"ids",
")",
";"
] |
[
"pauses",
"transform",
"feedback",
"operations",
"for",
"the",
"currently",
"bound",
"transform",
"feedback",
"object"
] | [
"gl40c",
"gl",
"pause",
"transform",
"feedback",
"(",
")",
";"
] |
[
"resumes",
"transform",
"feedback",
"operations",
"for",
"the",
"currently",
"bound",
"transform",
"feedback",
"object"
] | [
"gl40c",
"gl",
"resume",
"transform",
"feedback",
"(",
")",
";"
] |
[
"{"
] | [
"super",
"encode",
"(",
"writer",
")",
";",
"writer",
"write",
"object",
"(",
"val",
")",
";"
] |
[
"<",
"p",
">",
"the",
"data",
"path",
"related",
"to",
"the",
"message",
"<",
"/",
"p",
">"
] | [
"set",
"data",
"path",
"(",
"data",
"path",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"message",
"describing",
"the",
"error",
"or",
"warning",
"<",
"/",
"p",
">"
] | [
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"checks",
"if",
"an",
"array",
"of",
"classes",
"can",
"be",
"assigned",
"to",
"another",
"array",
"of",
"classes",
"<",
"/",
"p",
">"
] | [
"return",
"is",
"assignable",
"(",
"cls",
",",
"to",
"class",
",",
"true",
")",
";"
] |
[
"<",
"p",
">",
"converts",
"the",
"specified",
"primitive",
"class",
"object",
"to",
"its",
"corresponding",
"wrapper",
"class",
"object",
"<",
"/",
"p",
">"
] | [
"class",
"converted",
"class",
"=",
"cls",
";",
"if",
"(",
"cls",
"!",
"=",
"null",
"&",
"&",
"cls",
"is",
"primitive",
"(",
")",
")",
"{",
"converted",
"class",
"=",
"primitive",
"wrapper",
"map",
"get",
"(",
"cls",
")",
";",
"}",
"return",
"conve... |
[
"<",
"p",
">",
"converts",
"the",
"specified",
"array",
"of",
"primitive",
"class",
"objects",
"to",
"an",
"array",
"of",
"its",
"corresponding",
"wrapper",
"class",
"objects",
"<",
"/",
"p",
">"
] | [
"return",
"wrapper",
"primitive",
"map",
"get",
"(",
"cls",
")",
";"
] |
[
"gets",
"the",
"choreographer",
"for",
"the",
"calling",
"thread",
"must",
"be",
"called",
"from",
"a",
"thread",
"that",
"already",
"has",
"a",
"{",
"@",
"link",
"android",
"os",
"looper",
"}",
"associated",
"with",
"it"
] | [
"return",
"s",
"thread",
"instance",
"get",
"(",
")",
";"
] |
[
"destroys",
"the",
"calling",
"thread",
"s",
"choreographer"
] | [
"choreographer",
"old",
"=",
"s",
"thread",
"instance",
"get",
"(",
")",
";",
"s",
"thread",
"instance",
"remove",
"(",
")",
";",
"old",
"dispose",
"(",
")",
";"
] |
[
"the",
"amount",
"of",
"time",
"in",
"milliseconds",
"between",
"each",
"frame",
"of",
"the",
"animation",
"<",
"p",
">",
"this",
"is",
"a",
"requested",
"time",
"that",
"the",
"animation",
"will",
"attempt",
"to",
"honor",
"but",
"the",
"actual",
"delay",... | [
"return",
"s",
"frame",
"delay",
";"
] |
[
"the",
"amount",
"of",
"time",
"in",
"milliseconds",
"between",
"each",
"frame",
"of",
"the",
"animation",
"<",
"p",
">",
"this",
"is",
"a",
"requested",
"time",
"that",
"the",
"animation",
"will",
"attempt",
"to",
"honor",
"but",
"the",
"actual",
"delay",... | [
"s",
"frame",
"delay",
"=",
"frame",
"delay",
";"
] |
[
"subtracts",
"typical",
"frame",
"delay",
"time",
"from",
"a",
"delay",
"interval",
"in",
"milliseconds",
"<",
"p",
">",
"this",
"method",
"can",
"be",
"used",
"to",
"compensate",
"for",
"animation",
"delay",
"times",
"that",
"have",
"baked",
"in",
"assumpti... | [
"final",
"long",
"frame",
"delay",
"=",
"s",
"frame",
"delay",
";",
"return",
"delay",
"millis",
"<",
"=",
"frame",
"delay",
"?",
"0",
":",
"delay",
"millis",
"-",
"frame",
"delay",
";"
] |
[
"posts",
"a",
"callback",
"to",
"run",
"on",
"the",
"next",
"frame",
"<",
"p",
">",
"the",
"callback",
"runs",
"once",
"then",
"is",
"automatically",
"removed",
"<",
"/",
"p",
">"
] | [
"post",
"callback",
"delayed",
"(",
"callback",
"type",
",",
"action",
",",
"token",
",",
"0",
")",
";"
] |
[
"posts",
"a",
"frame",
"callback",
"to",
"run",
"on",
"the",
"next",
"frame",
"<",
"p",
">",
"the",
"callback",
"runs",
"once",
"then",
"is",
"automatically",
"removed",
"<",
"/",
"p",
">"
] | [
"post",
"frame",
"callback",
"delayed",
"(",
"callback",
",",
"0",
")",
";"
] |
[
"gets",
"the",
"time",
"when",
"the",
"current",
"frame",
"started",
"<",
"p",
">",
"this",
"method",
"provides",
"the",
"time",
"in",
"milliseconds",
"when",
"the",
"frame",
"started",
"being",
"rendered",
"the",
"frame",
"time",
"provides",
"a",
"stable",
... | [
"return",
"get",
"frame",
"time",
"nanos",
"(",
")",
"/",
"time",
"utils",
"nanos",
"per",
"ms",
";"
] |
[
"like",
"{"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"return",
"use",
"frame",
"time",
"?",
"m",
"last",
"frame",
"time",
"nanos",
":",
"system",
"nano",
"time",
"(",
")",
";",
"}"
] |
[
"whether",
"this",
"process",
"is",
"named",
"with",
"process",
"name"
] | [
"if",
"(",
"context",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"int",
"pid",
"=",
"android",
"os",
"process",
"my",
"pid",
"(",
")",
";",
"activity",
"manager",
"manager",
"=",
"(",
"activity",
"manager",
")",
"context",
"get",
"syste... |
[
"whether",
"application",
"is",
"in",
"background",
"<",
"ul",
">",
"<",
"li",
">",
"need",
"use",
"permission",
"android",
"permission",
"get",
"tasks",
"in",
"manifest",
"xml",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"activity",
"manager",
"am",
"=",
"(",
"activity",
"manager",
")",
"context",
"get",
"system",
"service",
"(",
"context",
"activity",
"service",
")",
";",
"list",
"<",
"running",
"task",
"info",
">",
"task",
"list",
"=",
"am",
"get",
"running",
"tasks",
... |
[
"<",
"p",
">",
"the",
"skill",
"group",
"arn",
"of",
"a",
"skill",
"group",
"<",
"/",
"p",
">"
] | [
"set",
"skill",
"group",
"arn",
"(",
"skill",
"group",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"skill",
"group",
"name",
"of",
"a",
"skill",
"group",
"<",
"/",
"p",
">"
] | [
"set",
"skill",
"group",
"name",
"(",
"skill",
"group",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"description",
"of",
"a",
"skill",
"group",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"set",
"the",
"{",
"@",
"link",
"metrics",
"container",
"}",
"for",
"the",
"current",
"thread"
] | [
"metrics",
"container",
"previous",
"=",
"container",
"for",
"thread",
"get",
"(",
")",
";",
"if",
"(",
"container",
"=",
"=",
"null",
")",
"{",
"container",
"for",
"thread",
"remove",
"(",
")",
";",
"}",
"else",
"{",
"container",
"for",
"thread",
"set... |
[
"called",
"by",
"the",
"run",
"to",
"indicate",
"whether",
"metrics",
"reporting",
"is",
"supported"
] | [
"metrics",
"supported",
"set",
"(",
"supported",
")",
";"
] |
[
"indicates",
"whether",
"metrics",
"reporting",
"is",
"supported"
] | [
"return",
"metrics",
"supported",
"get",
"(",
")",
";"
] |
[
"set",
"the",
"{",
"@",
"link",
"metrics",
"container",
"}",
"for",
"the",
"current",
"thread"
] | [
"return",
"new",
"scoped",
"container",
"(",
"container",
")",
";"
] |
[
"must",
"be",
"set",
"before",
"startup",
"(",
")",
"is",
"called"
] | [
"hazelcast",
"config",
"=",
"config",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"client",
"node",
"<",
"/",
"p",
">"
] | [
"this",
"node",
"name",
"=",
"node",
"name",
";"
] |
[
"get",
"the",
"exception",
"which",
"includes",
"more",
"information",
"on",
"the",
"unsupported",
"encoding"
] | [
"return",
"encoding",
"exception",
";"
] |
[
"returns",
"rectangle",
"that",
"will",
"constraint",
"pie",
"chart",
"area"
] | [
"return",
"pie",
"chart",
"renderer",
"get",
"circle",
"oval",
"(",
")",
";"
] |
[
"use",
"this",
"to",
"change",
"pie",
"chart",
"area",
"because",
"by",
"default",
"circle",
"oval",
"is",
"calculated",
"on",
"size",
"changed",
"(",
")",
"you",
"must",
"call",
"this",
"method",
"after",
"size",
"of",
"pie",
"chart",
"view",
"is",
"cal... | [
"pie",
"chart",
"renderer",
"set",
"circle",
"oval",
"(",
"orgin",
"circle",
"oval",
")",
";",
"view",
"compat",
"post",
"invalidate",
"on",
"animation",
"(",
"this",
")",
";"
] |
[
"returns",
"pie",
"chart",
"rotation",
"0",
"rotation",
"means",
"that",
"0",
"degrees",
"is",
"at",
"3",
"o",
"clock",
"don",
"t",
"confuse",
"with",
"{",
"@",
"link",
"view",
"#",
"get",
"rotation",
"(",
")",
"}"
] | [
"return",
"pie",
"chart",
"renderer",
"get",
"chart",
"rotation",
"(",
")",
";"
] |
[
"set",
"pie",
"chart",
"rotation",
"don",
"t",
"confuse",
"with",
"{",
"@",
"link",
"view",
"#",
"get",
"rotation",
"(",
")",
"}"
] | [
"if",
"(",
"is",
"animated",
")",
"{",
"rotation",
"animator",
"cancel",
"animation",
"(",
")",
";",
"rotation",
"animator",
"start",
"animation",
"(",
"pie",
"chart",
"renderer",
"get",
"chart",
"rotation",
"(",
")",
",",
"rotation",
")",
";",
"}",
"els... |
[
"set",
"false",
"if",
"you",
"don",
"t",
"wont",
"the",
"chart",
"to",
"be",
"rotated",
"by",
"touch",
"gesture",
"rotating",
"programmatically",
"will",
"still",
"work"
] | [
"if",
"(",
"touch",
"handler",
"instanceof",
"pie",
"chart",
"touch",
"handler",
")",
"{",
"(",
"(",
"pie",
"chart",
"touch",
"handler",
")",
"touch",
"handler",
")",
"set",
"rotation",
"enabled",
"(",
"is",
"rotation",
"enabled",
")",
";",
"}"
] |
[
"returns",
"slice",
"value",
"that",
"is",
"under",
"given",
"angle",
"selected",
"value",
"(",
"if",
"not",
"null",
")",
"will",
"be",
"hold",
"slice",
"index"
] | [
"return",
"pie",
"chart",
"renderer",
"get",
"value",
"for",
"angle",
"(",
"angle",
",",
"selected",
"value",
")",
";"
] |
[
"set",
"how",
"much",
"of",
"view",
"area",
"should",
"be",
"taken",
"by",
"chart",
"circle",
"value",
"should",
"be",
"between",
"0",
"and",
"1",
"default",
"is",
"1",
"so",
"circle",
"will",
"have",
"radius",
"equals",
"min",
"(",
"view",
"width",
"v... | [
"pie",
"chart",
"renderer",
"set",
"circle",
"fill",
"ratio",
"(",
"fill",
"ratio",
")",
";",
"view",
"compat",
"post",
"invalidate",
"on",
"animation",
"(",
"this",
")",
";"
] |
[
"{"
] | [
"start",
"grids",
"(",
"2",
")",
";"
] |
[
"{"
] | [
"ignite",
"(",
"0",
")",
"cache",
"(",
"default",
"cache",
"name",
")",
"clear",
"(",
")",
";",
"super",
"after",
"test",
"(",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"progress",
"update",
"stream",
"<",
"/",
"p",
">"
] | [
"this",
"progress",
"update",
"stream",
"name",
"=",
"progress",
"update",
"stream",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"progress",
"update",
"stream",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"progress",
"update",
"stream",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"progress",
"update",
"stream",
"<",
"/",
"p",
">"
] | [
"set",
"progress",
"update",
"stream",
"name",
"(",
"progress",
"update",
"stream",
"name",
")",
";",
"return",
"this",
";"
] |
[
"creates",
"a",
"copy"
] | [
"return",
"new",
"container",
"statistics",
"collector",
"(",
"server",
"container",
",",
"client",
",",
"true",
",",
"false",
",",
"client",
",",
"null",
")",
";"
] |
[
"registers",
"a",
"closing",
"of",
"an",
"http",
"connection",
"from",
"a",
"client"
] | [
"if",
"(",
"!",
"enabled",
"get",
"(",
")",
")",
"return",
";",
"outbound",
"traffic",
"total",
"stats",
"m",
"bean",
"register",
"connection",
"close",
"(",
")",
";",
"if",
"(",
"no",
"peer",
"!",
"=",
"cur",
"client",
")",
"{",
"container",
"traffi... |
[
"registers",
"a",
"new",
"http",
"connection",
"from",
"a",
"client"
] | [
"if",
"(",
"!",
"enabled",
"get",
"(",
")",
")",
"return",
";",
"outbound",
"traffic",
"total",
"stats",
"m",
"bean",
"register",
"connection",
"open",
"(",
"cur",
"client",
")",
";",
"lock",
"write",
"lock",
"=",
"acquire",
"write",
"lock",
"(",
")",
... |
[
"registers",
"the",
"data",
"about",
"a",
"response",
"size",
"for",
"a",
"connection",
"originating",
"from",
"a",
"remote",
"client"
] | [
"if",
"(",
"!",
"enabled",
"get",
"(",
")",
")",
"return",
";",
"outbound",
"traffic",
"total",
"stats",
"m",
"bean",
"add",
"response",
"size",
"(",
"bytes",
"sent",
")",
";",
"if",
"(",
"no",
"peer",
"!",
"=",
"cur",
"client",
")",
"{",
"containe... |
[
"fetches",
"the",
"byte",
"at",
"the",
"given",
"index",
"does",
"not",
"change",
"position",
"of",
"the",
"underlying",
"byte",
"buffers"
] | [
"int",
"item",
"index",
"=",
"get",
"item",
"index",
"(",
"index",
")",
";",
"return",
"byte",
"buffer",
"utils",
"to",
"byte",
"(",
"this",
"items",
"[",
"item",
"index",
"]",
",",
"index",
"-",
"this",
"item",
"begin",
"pos",
"[",
"item",
"index",
... |
[
"/",
"*",
"returns",
"in",
"which",
"sub",
"byte",
"buffer",
"the",
"given",
"element",
"index",
"will",
"be",
"available"
] | [
"int",
"index",
"=",
"1",
";",
"while",
"(",
"elem",
"index",
">",
"=",
"this",
"item",
"begin",
"pos",
"[",
"index",
"]",
")",
"{",
"index",
"+",
"+",
";",
"if",
"(",
"index",
"=",
"=",
"this",
"item",
"begin",
"pos",
"length",
")",
"{",
"thro... |
[
"/",
"*",
"returns",
"in",
"which",
"sub",
"byte",
"buffer",
"the",
"given",
"element",
"index",
"will",
"be",
"available",
"in",
"this",
"case",
"we",
"are",
"sure",
"that",
"the",
"item",
"will",
"be",
"after",
"mbb",
"s",
"current",
"position"
] | [
"int",
"index",
"=",
"this",
"cur",
"item",
"index",
";",
"while",
"(",
"elem",
"index",
">",
"=",
"this",
"item",
"begin",
"pos",
"[",
"index",
"]",
")",
"{",
"index",
"+",
"+",
";",
"if",
"(",
"index",
"=",
"=",
"this",
"item",
"begin",
"pos",
... |
[
"rewinds",
"this",
"mbb",
"and",
"the",
"position",
"is",
"set",
"to",
"0"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
"items",
"length",
";",
"i",
"+",
"+",
")",
"{",
"this",
"items",
"[",
"i",
"]",
"rewind",
"(",
")",
";",
"}",
"this",
"cur",
"item",
"index",
"=",
"0",
";",
"this",
"cur",
"item",
"=... |
[
"marks",
"the",
"current",
"position",
"of",
"the",
"mbb"
] | [
"this",
"marked",
"item",
"index",
"=",
"this",
"cur",
"item",
"index",
";",
"this",
"cur",
"item",
"mark",
"(",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"number",
"of",
"elements",
"between",
"the",
"current",
"position",
"and",
"the",
"limit"
] | [
"int",
"remain",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"cur",
"item",
"index",
";",
"i",
"<",
"items",
"length",
";",
"i",
"+",
"+",
")",
"{",
"remain",
"+",
"=",
"items",
"[",
"i",
"]",
"remaining",
"(",
")",
";",
"}",
"return",
"remai... |
[
"returns",
"true",
"if",
"there",
"are",
"elements",
"between",
"the",
"current",
"position",
"and",
"the",
"limt"
] | [
"return",
"this",
"cur",
"item",
"has",
"remaining",
"(",
")",
"|",
"|",
"(",
"this",
"cur",
"item",
"index",
"<",
"this",
"limited",
"item",
"index",
"&",
"&",
"this",
"items",
"[",
"this",
"cur",
"item",
"index",
"+",
"1",
"]",
"has",
"remaining",
... |
[
"returns",
"the",
"short",
"value",
"at",
"the",
"current",
"position",
"also",
"advances",
"the",
"position",
"by",
"the",
"size",
"of",
"short"
] | [
"int",
"remaining",
"=",
"this",
"cur",
"item",
"remaining",
"(",
")",
";",
"if",
"(",
"remaining",
">",
"=",
"bytes",
"sizeof",
"short",
")",
"{",
"return",
"this",
"cur",
"item",
"get",
"short",
"(",
")",
";",
"}",
"short",
"n",
"=",
"0",
";",
... |
[
"returns",
"the",
"int",
"value",
"at",
"the",
"current",
"position",
"also",
"advances",
"the",
"position",
"by",
"the",
"size",
"of",
"int"
] | [
"int",
"remaining",
"=",
"this",
"cur",
"item",
"remaining",
"(",
")",
";",
"if",
"(",
"remaining",
">",
"=",
"bytes",
"sizeof",
"int",
")",
"{",
"return",
"this",
"cur",
"item",
"get",
"int",
"(",
")",
";",
"}",
"int",
"n",
"=",
"0",
";",
"for",... |
[
"returns",
"the",
"long",
"value",
"at",
"the",
"current",
"position",
"also",
"advances",
"the",
"position",
"by",
"the",
"size",
"of",
"long"
] | [
"int",
"remaining",
"=",
"this",
"cur",
"item",
"remaining",
"(",
")",
";",
"if",
"(",
"remaining",
">",
"=",
"bytes",
"sizeof",
"long",
")",
"{",
"return",
"this",
"cur",
"item",
"get",
"long",
"(",
")",
";",
"}",
"long",
"l",
"=",
"0",
";",
"fo... |
[
"copies",
"the",
"specified",
"number",
"of",
"bytes",
"from",
"this",
"mbb",
"s",
"current",
"position",
"to",
"the",
"byte",
"[",
"]",
"s",
"offset",
"also",
"advances",
"the",
"position",
"of",
"the",
"mbb",
"by",
"the",
"given",
"length"
] | [
"while",
"(",
"length",
">",
"0",
")",
"{",
"int",
"to",
"read",
"=",
"math",
"min",
"(",
"length",
",",
"this",
"cur",
"item",
"remaining",
"(",
")",
")",
";",
"byte",
"buffer",
"utils",
"copy",
"from",
"buffer",
"to",
"array",
"(",
"dst",
",",
... |
[
"returns",
"the",
"limit",
"of",
"this",
"mbb"
] | [
"return",
"this",
"limit",
";"
] |
[
"returns",
"an",
"mbb",
"which",
"is",
"a",
"sliced",
"version",
"of",
"this",
"mbb",
"the",
"position",
"limit",
"and",
"mark",
"of",
"the",
"new",
"mbb",
"will",
"be",
"independent",
"than",
"that",
"of",
"the",
"original",
"mbb",
"the",
"content",
"of... | [
"byte",
"buffer",
"[",
"]",
"copy",
"=",
"new",
"byte",
"buffer",
"[",
"this",
"limited",
"item",
"index",
"-",
"this",
"cur",
"item",
"index",
"+",
"1",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"cur",
"item",
"index",
",",
"j",
"=",
"0",
";",
"i... |
[
"returns",
"an",
"mbb",
"which",
"is",
"a",
"duplicate",
"version",
"of",
"this",
"mbb",
"the",
"position",
"limit",
"and",
"mark",
"of",
"the",
"new",
"mbb",
"will",
"be",
"independent",
"than",
"that",
"of",
"the",
"original",
"mbb",
"the",
"content",
... | [
"byte",
"buffer",
"[",
"]",
"items",
"copy",
"=",
"new",
"byte",
"buffer",
"[",
"this",
"items",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
"items",
"length",
";",
"i",
"+",
"+",
")",
"{",
"items",
"copy",
"[",... |
[
"writes",
"a",
"byte",
"to",
"this",
"mbb",
"at",
"the",
"current",
"position",
"and",
"increments",
"the",
"position"
] | [
"if",
"(",
"this",
"cur",
"item",
"remaining",
"(",
")",
"=",
"=",
"0",
")",
"{",
"if",
"(",
"this",
"cur",
"item",
"index",
"=",
"=",
"this",
"items",
"length",
"-",
"1",
")",
"{",
"throw",
"new",
"buffer",
"overflow",
"exception",
"(",
")",
";"... |
[
"writes",
"a",
"byte",
"to",
"this",
"mbb",
"at",
"the",
"given",
"index"
] | [
"int",
"item",
"index",
"=",
"get",
"item",
"index",
"(",
"limit",
")",
";",
"byte",
"buffer",
"item",
"=",
"items",
"[",
"item",
"index",
"]",
";",
"item",
"put",
"(",
"index",
"-",
"item",
"begin",
"pos",
"[",
"item",
"index",
"]",
",",
"b",
")... |
[
"copies",
"from",
"the",
"given",
"byte",
"[",
"]",
"to",
"this",
"mbb"
] | [
"return",
"put",
"(",
"src",
",",
"0",
",",
"src",
"length",
")",
";"
] |
[
"copies",
"from",
"the",
"given",
"byte",
"[",
"]",
"to",
"this",
"mbb"
] | [
"if",
"(",
"this",
"cur",
"item",
"remaining",
"(",
")",
">",
"=",
"length",
")",
"{",
"byte",
"buffer",
"utils",
"copy",
"from",
"array",
"to",
"buffer",
"(",
"this",
"cur",
"item",
",",
"src",
",",
"offset",
",",
"length",
")",
";",
"return",
"th... |
[
"jumps",
"back",
"the",
"current",
"position",
"of",
"this",
"mbb",
"by",
"specified",
"length"
] | [
"while",
"(",
"length",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"length",
">",
"cur",
"item",
"position",
"(",
")",
")",
"{",
"length",
"-",
"=",
"cur",
"item",
"position",
"(",
")",
";",
"this",
"cur",
"item",
"position",
"(",
"0",
")",
";",
"this... |
[
"returns",
"bytes",
"from",
"current",
"position",
"till",
"length",
"specified",
"as",
"a",
"single",
"byte",
"buffer",
"when",
"all",
"these",
"bytes",
"happen",
"to",
"be",
"in",
"a",
"single",
"byte",
"buffer",
"which",
"this",
"object",
"wraps",
"that",... | [
"if",
"(",
"this",
"cur",
"item",
"remaining",
"(",
")",
">",
"=",
"length",
")",
"{",
"return",
"this",
"cur",
"item",
";",
"}",
"int",
"offset",
"=",
"0",
";",
"byte",
"[",
"]",
"dup",
"b",
"=",
"new",
"byte",
"[",
"length",
"]",
";",
"int",
... |
[
"returns",
"bytes",
"from",
"given",
"offset",
"till",
"length",
"specified",
"as",
"a",
"single",
"byte",
"buffer",
"when",
"all",
"these",
"bytes",
"happen",
"to",
"be",
"in",
"a",
"single",
"byte",
"buffer",
"which",
"this",
"object",
"wraps",
"that",
"... | [
"if",
"(",
"this",
"item",
"begin",
"pos",
"[",
"this",
"cur",
"item",
"index",
"]",
"<",
"=",
"offset",
")",
"{",
"int",
"rel",
"offset",
"in",
"cur",
"item",
"=",
"offset",
"-",
"this",
"item",
"begin",
"pos",
"[",
"this",
"cur",
"item",
"index",... |
[
"copy",
"the",
"content",
"from",
"this",
"mbb",
"to",
"a",
"byte",
"[",
"]",
"based",
"on",
"the",
"given",
"offset",
"and",
"length"
] | [
"byte",
"[",
"]",
"output",
"=",
"new",
"byte",
"[",
"length",
"]",
";",
"this",
"get",
"(",
"offset",
",",
"output",
",",
"0",
",",
"length",
")",
";",
"return",
"output",
";"
] |
[
"if",
"an",
"{",
"@",
"code",
"entry",
"event",
"data",
"}",
"is",
"already",
"mapped",
"to",
"the",
"given",
"{",
"@",
"code",
"event",
"type",
"}",
"in",
"{",
"@",
"code",
"map",
"event",
"data",
"per",
"event",
"type",
"}",
"then",
"return",
"th... | [
"if",
"(",
"event",
"data",
"per",
"event",
"type",
"contains",
"key",
"(",
"event",
"type",
")",
")",
"{",
"return",
"event",
"data",
"per",
"event",
"type",
"get",
"(",
"event",
"type",
")",
";",
"}",
"else",
"{",
"data",
"data",
"old",
"value",
... |
[
"helper"
] | [
"score",
"keeper",
"[",
"]",
"sk",
"=",
"new",
"score",
"keeper",
"[",
"values",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"values",
"length",
";",
"+",
"+",
"i",
")",
"{",
"sk",
"[",
"i",
"]",
"=",
"new",
"score",
... |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"hosted",
"zone",
"that",
"you",
"want",
"to",
"get",
"a",
"limit",
"for",
"<",
"/",
"p",
">"
] | [
"this",
"hosted",
"zone",
"id",
"=",
"hosted",
"zone",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"hosted",
"zone",
"that",
"you",
"want",
"to",
"get",
"a",
"limit",
"for",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"hosted",
"zone",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"hosted",
"zone",
"that",
"contains",
"the",
"resource",
"record",
"sets",
"that",
"you",
"want",
"to",
"list",
"<",
"/",
"p",
">"
] | [
"set",
"hosted",
"zone",
"id",
"(",
"hosted",
"zone",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"first",
"name",
"in",
"the",
"lexicographic",
"ordering",
"of",
"resource",
"record",
"sets",
"that",
"you",
"want",
"to",
"list",
"<",
"/",
"p",
">"
] | [
"this",
"start",
"record",
"name",
"=",
"start",
"record",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"first",
"name",
"in",
"the",
"lexicographic",
"ordering",
"of",
"resource",
"record",
"sets",
"that",
"you",
"want",
"to",
"list",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"start",
"record",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"first",
"name",
"in",
"the",
"lexicographic",
"ordering",
"of",
"resource",
"record",
"sets",
"that",
"you",
"want",
"to",
"list",
"<",
"/",
"p",
">"
] | [
"set",
"start",
"record",
"name",
"(",
"start",
"record",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"resource",
"record",
"set",
"to",
"begin",
"the",
"record",
"listing",
"from",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
"for",
"basic",
"resource",
"record",
"sets",
":",
"<",
"code",
">",
"a",
"<",... | [
"this",
"start",
"record",
"type",
"=",
"start",
"record",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"resource",
"record",
"set",
"to",
"begin",
"the",
"record",
"listing",
"from",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
"for",
"basic",
"resource",
"record",
"sets",
":",
"<",
"code",
">",
"a",
"<",... | [
"return",
"this",
"start",
"record",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"resource",
"record",
"set",
"to",
"begin",
"the",
"record",
"listing",
"from",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
"for",
"basic",
"resource",
"record",
"sets",
":",
"<",
"code",
">",
"a",
"<",... | [
"set",
"start",
"record",
"type",
"(",
"start",
"record",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"resource",
"record",
"set",
"to",
"begin",
"the",
"record",
"listing",
"from",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
"for",
"basic",
"resource",
"record",
"sets",
":",
"<",
"code",
">",
"a",
"<",... | [
"with",
"start",
"record",
"type",
"(",
"start",
"record",
"type",
")",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"resource",
"record",
"set",
"to",
"begin",
"the",
"record",
"listing",
"from",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
"for",
"basic",
"resource",
"record",
"sets",
":",
"<",
"code",
">",
"a",
"<",... | [
"this",
"start",
"record",
"type",
"=",
"start",
"record",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"<",
"i",
">",
"weighted",
"resource",
"record",
"sets",
"only",
":",
"<",
"/",
"i",
">",
"if",
"results",
"were",
"truncated",
"for",
"a",
"given",
"dns",
"name",
"and",
"type",
"specify",
"the",
"value",
"of",
"<",
"code",
">",
"ne... | [
"this",
"start",
"record",
"identifier",
"=",
"start",
"record",
"identifier",
";"
] |
[
"<",
"p",
">",
"<",
"i",
">",
"weighted",
"resource",
"record",
"sets",
"only",
":",
"<",
"/",
"i",
">",
"if",
"results",
"were",
"truncated",
"for",
"a",
"given",
"dns",
"name",
"and",
"type",
"specify",
"the",
"value",
"of",
"<",
"code",
">",
"ne... | [
"return",
"this",
"start",
"record",
"identifier",
";"
] |
[
"<",
"p",
">",
"<",
"i",
">",
"weighted",
"resource",
"record",
"sets",
"only",
":",
"<",
"/",
"i",
">",
"if",
"results",
"were",
"truncated",
"for",
"a",
"given",
"dns",
"name",
"and",
"type",
"specify",
"the",
"value",
"of",
"<",
"code",
">",
"ne... | [
"set",
"start",
"record",
"identifier",
"(",
"start",
"record",
"identifier",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.