docstring_tokens list | code_tokens list |
|---|---|
[
"<",
"p",
">",
"the",
"timestamp",
"when",
"the",
"key",
"pair",
"was",
"created",
"(",
"e",
"g",
"<",
"code",
">",
"1479816991",
"349",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
] | [
"set",
"created",
"at",
"(",
"created",
"at",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"aws",
"region",
"where",
"your",
"load",
"balancer",
"was",
"created",
"(",
"e",
"g",
"<",
"code",
">",
"us",
"-",
"east",
"-",
"2a",
"<",
"/",
"code",
">",
")",
"lightsail",
"automatically",
"creates",
"your",
"load",
"balance... | [
"this",
"location",
"=",
"location",
";"
] |
[
"<",
"p",
">",
"the",
"aws",
"region",
"where",
"your",
"load",
"balancer",
"was",
"created",
"(",
"e",
"g",
"<",
"code",
">",
"us",
"-",
"east",
"-",
"2a",
"<",
"/",
"code",
">",
")",
"lightsail",
"automatically",
"creates",
"your",
"load",
"balance... | [
"return",
"this",
"location",
";"
] |
[
"<",
"p",
">",
"the",
"region",
"name",
"and",
"availability",
"zone",
"where",
"the",
"key",
"pair",
"was",
"created",
"<",
"/",
"p",
">"
] | [
"set",
"location",
"(",
"location",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"type",
"<",
"/",
"p",
">"
] | [
"this",
"resource",
"type",
"=",
"resource",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"type",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"resource",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"type",
"(",
"usually",
"<",
"code",
">",
"key",
"pair",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
] | [
"set",
"resource",
"type",
"(",
"resource",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"aws",
"resource",
"<",
"/",
"p",
">"
] | [
"with",
"resource",
"type",
"(",
"resource",
"type",
")",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"type",
"(",
"usually",
"<",
"code",
">",
"key",
"pair",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
] | [
"this",
"resource",
"type",
"=",
"resource",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"rsa",
"fingerprint",
"of",
"the",
"key",
"pair",
"<",
"/",
"p",
">"
] | [
"set",
"fingerprint",
"(",
"fingerprint",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"up",
"the",
"listeners",
"for",
"a",
"given",
"address",
"space"
] | [
"address",
"space",
"add",
"listener",
"(",
"m",
"address",
"space",
"listener",
")",
";",
"address",
"space",
"get",
"configuration",
"(",
")",
"add",
"listener",
"(",
"m",
"address",
"space",
"configuration",
"listener",
")",
";",
"final",
"list",
"<",
"... |
[
"sets",
"up",
"the",
"listeners",
"for",
"a",
"given",
"module"
] | [
"module",
"add",
"listener",
"(",
"m",
"module",
"listener",
")",
";",
"if",
"(",
"module",
"is",
"loaded",
"(",
")",
")",
"{",
"notify",
"module",
"views",
"(",
"module",
")",
";",
"}"
] |
[
"removes",
"all",
"listeners",
"from",
"an",
"address",
"space"
] | [
"if",
"(",
"address",
"space",
"is",
"loaded",
"(",
")",
")",
"{",
"for",
"(",
"final",
"i",
"navi",
"module",
"module",
":",
"address",
"space",
"get",
"content",
"(",
")",
"get",
"modules",
"(",
")",
")",
"{",
"module",
"remove",
"listener",
"(",
... |
[
"rebuilds",
"the",
"active",
"debuggers",
"from",
"information",
"from",
"the",
"address",
"spaces"
] | [
"for",
"(",
"final",
"i",
"navi",
"address",
"space",
"address",
"space",
":",
"m",
"project",
"get",
"content",
"(",
")",
"get",
"address",
"spaces",
"(",
")",
")",
"{",
"final",
"i",
"debugger",
"debugger",
"=",
"address",
"space",
"get",
"configuratio... |
[
"retrieves",
"the",
"number",
"of",
"vertices",
"in",
"the",
"graph"
] | [
"return",
"number",
"of",
"vertices",
";"
] |
[
"this",
"method",
"is",
"invoked",
"once",
"per",
"superstep",
"for",
"each",
"{",
"@",
"link",
"neighbor",
"}",
"of",
"each",
"vertex",
"in",
"the",
"beginning",
"of",
"each",
"superstep",
"in",
"a",
"{",
"@",
"link",
"gather",
"sum",
"apply",
"iteratio... | [
"public",
"abstract",
"m",
"gather",
"(",
"neighbor",
"<",
"vv",
",",
"ev",
">",
"neighbor",
")",
";"
] |
[
"this",
"method",
"is",
"executed",
"once",
"per",
"superstep",
"before",
"the",
"vertex",
"update",
"function",
"is",
"invoked",
"for",
"each",
"vertex"
] | [] |
[
"this",
"method",
"is",
"executed",
"once",
"per",
"superstep",
"after",
"the",
"vertex",
"update",
"function",
"has",
"been",
"invoked",
"for",
"each",
"vertex"
] | [] |
[
"gets",
"the",
"number",
"of",
"the",
"superstep",
"starting",
"at",
"<",
"tt",
">",
"1",
"<",
"/",
"tt",
">"
] | [
"return",
"this",
"runtime",
"context",
"get",
"superstep",
"number",
"(",
")",
";"
] |
[
"gets",
"the",
"iteration",
"aggregator",
"registered",
"under",
"the",
"given",
"name",
"the",
"iteration",
"aggregator",
"combines",
"all",
"aggregates",
"globally",
"once",
"per",
"superstep",
"and",
"makes",
"them",
"available",
"in",
"the",
"next",
"superstep... | [
"return",
"this",
"runtime",
"context",
"get",
"iteration",
"aggregator",
"(",
"name",
")",
";"
] |
[
"get",
"the",
"aggregated",
"value",
"that",
"an",
"aggregator",
"computed",
"in",
"the",
"previous",
"iteration"
] | [
"return",
"this",
"runtime",
"context",
"get",
"previous",
"iteration",
"aggregate",
"(",
"name",
")",
";"
] |
[
"gets",
"the",
"broadcast",
"data",
"set",
"registered",
"under",
"the",
"given",
"name",
"broadcast",
"data",
"sets",
"are",
"available",
"on",
"all",
"parallel",
"instances",
"of",
"a",
"function",
"they",
"can",
"be",
"registered",
"via",
"{",
"@",
"link"... | [
"return",
"this",
"runtime",
"context",
"get",
"broadcast",
"variable",
"(",
"name",
")",
";"
] |
[
"<",
"p",
">",
"the",
"identifier",
"for",
"the",
"authorizer",
"resource",
"<",
"/",
"p",
">"
] | [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"[",
"required",
"]",
"the",
"name",
"of",
"the",
"authorizer",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"authorizer",
"type",
"valid",
"values",
"are",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"for",
"a",
"lambda",
"function",
"using",
"a",
"single",
"authorization",
"token",
"submitted",
"in",
"a",
"custom",
"header",
"<",
... | [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"authorizer",
"type",
"valid",
"values",
"are",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"for",
"a",
"lambda",
"function",
"using",
"a",
"single",
"authorization",
"token",
"submitted",
"in",
"a",
"custom",
"header",
"<",
... | [
"with",
"type",
"(",
"type",
")",
";"
] |
[
"<",
"p",
">",
"the",
"authorizer",
"type",
"valid",
"values",
"are",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"for",
"a",
"lambda",
"function",
"using",
"a",
"single",
"authorization",
"token",
"submitted",
"in",
"a",
"custom",
"header",
"<",
... | [
"this",
"type",
"=",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"amazon",
"cognito",
"user",
"pool",
"a",
"r",
"ns",
"for",
"the",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
"/",
"code",
">",
"authorizer",
"each",
"element",
"is",
"of",
"this",
"format",
":",
"<"... | [
"return",
"provider",
"a",
"r",
"ns",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"amazon",
"cognito",
"user",
"pool",
"a",
"r",
"ns",
"for",
"the",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
"/",
"code",
">",
"authorizer",
"each",
"element",
"is",
"of",
"this",
"format",
":",
"<"... | [
"if",
"(",
"provider",
"a",
"r",
"ns",
"=",
"=",
"null",
")",
"{",
"this",
"provider",
"a",
"r",
"ns",
"=",
"null",
";",
"return",
";",
"}",
"this",
"provider",
"a",
"r",
"ns",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(... |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"amazon",
"cognito",
"user",
"pool",
"a",
"r",
"ns",
"for",
"the",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
"/",
"code",
">",
"authorizer",
"each",
"element",
"is",
"of",
"this",
"format",
":",
"<"... | [
"if",
"(",
"this",
"provider",
"a",
"r",
"ns",
"=",
"=",
"null",
")",
"{",
"set",
"provider",
"a",
"r",
"ns",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"provider",
"a",
"r",
"ns",
"length",
")",
")",
";",
"}",
"for",... |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"amazon",
"cognito",
"user",
"pool",
"a",
"r",
"ns",
"for",
"the",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
"/",
"code",
">",
"authorizer",
"each",
"element",
"is",
"of",
"this",
"format",
":",
"<"... | [
"set",
"provider",
"a",
"r",
"ns",
"(",
"provider",
"a",
"r",
"ns",
")",
";",
"return",
"this",
";"
] |
[
"getter",
"for",
"the",
"auth",
"type"
] | [
"return",
"this",
"auth",
"type",
";"
] |
[
"<",
"p",
">",
"optional",
"customer",
"-",
"defined",
"field",
"used",
"in",
"open",
"a",
"p",
"i",
"imports",
"and",
"exports",
"without",
"functional",
"impact",
"<",
"/",
"p",
">"
] | [
"set",
"auth",
"type",
"(",
"auth",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"authorizer",
"s",
"uniform",
"resource",
"identifier",
"(",
"uri",
")",
"for",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"request",
"<",
"/",
"code",
">",
"authorizers",
"this",
"mus... | [
"this",
"authorizer",
"uri",
"=",
"authorizer",
"uri",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"authorizer",
"s",
"uniform",
"resource",
"identifier",
"(",
"uri",
")",
"for",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"request",
"<",
"/",
"code",
">",
"authorizers",
"this",
"mus... | [
"return",
"this",
"authorizer",
"uri",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"authorizer",
"s",
"uniform",
"resource",
"identifier",
"(",
"uri",
")",
"for",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"request",
"<",
"/",
"code",
">",
"authorizers",
"this",
"mus... | [
"set",
"authorizer",
"uri",
"(",
"authorizer",
"uri",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"required",
"credentials",
"as",
"an",
"iam",
"role",
"for",
"api",
"gateway",
"to",
"invoke",
"the",
"authorizer",
"to",
"specify",
"an",
"iam",
"role",
"for",
"api",
"gateway",
"to",
"assume",
"use",
"the",
"role",
"s... | [
"this",
"authorizer",
"credentials",
"=",
"authorizer",
"credentials",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"required",
"credentials",
"as",
"an",
"iam",
"role",
"for",
"api",
"gateway",
"to",
"invoke",
"the",
"authorizer",
"to",
"specify",
"an",
"iam",
"role",
"for",
"api",
"gateway",
"to",
"assume",
"use",
"the",
"role",
"s... | [
"return",
"this",
"authorizer",
"credentials",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"required",
"credentials",
"as",
"an",
"iam",
"role",
"for",
"api",
"gateway",
"to",
"invoke",
"the",
"authorizer",
"to",
"specify",
"an",
"iam",
"role",
"for",
"api",
"gateway",
"to",
"assume",
"use",
"the",
"role",
"s... | [
"set",
"authorizer",
"credentials",
"(",
"authorizer",
"credentials",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"identity",
"source",
"for",
"which",
"authorization",
"is",
"requested",
"<",
"ul",
">",
"<",
"li",
">",
"for",
"a",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
... | [
"this",
"identity",
"source",
"=",
"identity",
"source",
";"
] |
[
"<",
"p",
">",
"the",
"identity",
"source",
"for",
"which",
"authorization",
"is",
"requested",
"<",
"ul",
">",
"<",
"li",
">",
"for",
"a",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
... | [
"return",
"this",
"identity",
"source",
";"
] |
[
"<",
"p",
">",
"the",
"identity",
"source",
"for",
"which",
"authorization",
"is",
"requested",
"<",
"ul",
">",
"<",
"li",
">",
"for",
"a",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"cognito",
"user",
"pools",
"<",
... | [
"set",
"identity",
"source",
"(",
"identity",
"source",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"validation",
"expression",
"for",
"the",
"incoming",
"identity",
"token",
"for",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"authorizers",
"this",
"value",
"is",
"a",
"regular",
"expression",
"api",
"gateway",
"will",
"match",
... | [
"this",
"identity",
"validation",
"expression",
"=",
"identity",
"validation",
"expression",
";"
] |
[
"<",
"p",
">",
"a",
"validation",
"expression",
"for",
"the",
"incoming",
"identity",
"token",
"for",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"authorizers",
"this",
"value",
"is",
"a",
"regular",
"expression",
"api",
"gateway",
"will",
"match",
... | [
"return",
"this",
"identity",
"validation",
"expression",
";"
] |
[
"<",
"p",
">",
"a",
"validation",
"expression",
"for",
"the",
"incoming",
"identity",
"token",
"for",
"<",
"code",
">",
"token",
"<",
"/",
"code",
">",
"authorizers",
"this",
"value",
"is",
"a",
"regular",
"expression",
"api",
"gateway",
"will",
"match",
... | [
"set",
"identity",
"validation",
"expression",
"(",
"identity",
"validation",
"expression",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"ttl",
"in",
"seconds",
"of",
"cached",
"authorizer",
"results",
"if",
"it",
"equals",
"0",
"authorization",
"caching",
"is",
"disabled",
"if",
"it",
"is",
"greater",
"than",
"0",
"api",
"gateway",
"will",
"cache",
"authorizer",
"resp... | [
"this",
"authorizer",
"result",
"ttl",
"in",
"seconds",
"=",
"authorizer",
"result",
"ttl",
"in",
"seconds",
";"
] |
[
"<",
"p",
">",
"the",
"ttl",
"in",
"seconds",
"of",
"cached",
"authorizer",
"results",
"if",
"it",
"equals",
"0",
"authorization",
"caching",
"is",
"disabled",
"if",
"it",
"is",
"greater",
"than",
"0",
"api",
"gateway",
"will",
"cache",
"authorizer",
"resp... | [
"return",
"this",
"authorizer",
"result",
"ttl",
"in",
"seconds",
";"
] |
[
"<",
"p",
">",
"the",
"ttl",
"in",
"seconds",
"of",
"cached",
"authorizer",
"results",
"if",
"it",
"equals",
"0",
"authorization",
"caching",
"is",
"disabled",
"if",
"it",
"is",
"greater",
"than",
"0",
"api",
"gateway",
"will",
"cache",
"authorizer",
"resp... | [
"set",
"authorizer",
"result",
"ttl",
"in",
"seconds",
"(",
"authorizer",
"result",
"ttl",
"in",
"seconds",
")",
";",
"return",
"this",
";"
] |
[
"retrieve",
"the",
"ftp",
"protocol",
"command",
"string",
"corresponding",
"to",
"a",
"specified",
"command",
"code"
] | [
"return",
"commands",
"[",
"command",
"]",
";"
] |
[
"this",
"method",
"is",
"called",
"by",
"the",
"application",
"server",
"during",
"crash",
"recovery"
] | [
"return",
"null",
";"
] |
[
"returns",
"target",
"object",
"containing",
"the",
"value"
] | [
"return",
"target",
";"
] |
[
"sets",
"the",
"text",
"size",
"which",
"in",
"turn",
"sets",
"the",
"number",
"of",
"rows",
"and",
"columns"
] | [
"m",
"renderer",
"=",
"new",
"terminal",
"renderer",
"(",
"text",
"size",
",",
"m",
"renderer",
"=",
"=",
"null",
"?",
"typeface",
"monospace",
":",
"m",
"renderer",
"m",
"typeface",
")",
";",
"update",
"size",
"(",
")",
";"
] |
[
"send",
"a",
"single",
"mouse",
"event",
"code",
"to",
"the",
"terminal"
] | [
"int",
"x",
"=",
"(",
"int",
")",
"(",
"e",
"get",
"x",
"(",
")",
"/",
"m",
"renderer",
"m",
"font",
"width",
")",
"+",
"1",
";",
"int",
"y",
"=",
"(",
"int",
")",
"(",
"(",
"e",
"get",
"y",
"(",
")",
"-",
"m",
"renderer",
"m",
"font",
... |
[
"input",
"the",
"specified",
"key",
"code",
"if",
"applicable",
"and",
"return",
"if",
"the",
"input",
"was",
"consumed"
] | [
"terminal",
"emulator",
"term",
"=",
"m",
"term",
"session",
"get",
"emulator",
"(",
")",
";",
"string",
"code",
"=",
"key",
"handler",
"get",
"code",
"(",
"key",
"code",
",",
"key",
"mod",
",",
"term",
"is",
"cursor",
"keys",
"application",
"mode",
"(... |
[
"this",
"is",
"called",
"during",
"layout",
"when",
"the",
"size",
"of",
"this",
"view",
"has",
"changed",
"if",
"you",
"were",
"just",
"added",
"to",
"the",
"view",
"hierarchy",
"you",
"re",
"called",
"with",
"the",
"old",
"values",
"of",
"0"
] | [
"update",
"size",
"(",
")",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"a",
"usage",
"plan",
"key",
"<",
"/",
"p",
">"
] | [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"a",
"usage",
"plan",
"key",
"currently",
"the",
"valid",
"key",
"type",
"is",
"<",
"code",
">",
"api",
"key",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"value",
"of",
"a",
"usage",
"plan",
"key",
"<",
"/",
"p",
">"
] | [
"set",
"value",
"(",
"value",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"a",
"usage",
"plan",
"key",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"below",
"native",
"methods",
"don",
"t",
"do",
"unconstrained",
"work",
"so",
"are",
"fast",
"native",
"for",
"performance"
] | [
"@",
"fast",
"native",
"private",
"static",
"native",
"void",
"native",
"clear",
"(",
"long",
"window",
"ptr",
")",
";"
] |
[
"clears",
"out",
"the",
"existing",
"contents",
"of",
"the",
"window",
"making",
"it",
"safe",
"to",
"reuse",
"for",
"new",
"data",
"<",
"p",
">",
"the",
"start",
"position",
"(",
"{"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"m",
"start",
"pos",
"=",
"0",
";",
"native",
"clear",
"(",
"m",
"window",
"ptr",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"starting",
"position",
"of",
"this",
"window",
"within",
"the",
"entire",
"cursor",
"s",
"result",
"set"
] | [
"return",
"m",
"start",
"pos",
";"
] |
[
"set",
"the",
"start",
"position",
"of",
"cursor",
"window"
] | [
"m",
"start",
"pos",
"=",
"pos",
";"
] |
[
"gets",
"the",
"number",
"of",
"rows",
"in",
"this",
"window"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"get",
"num",
"rows",
"(",
"m",
"window",
"ptr",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"number",
"of",
"columns",
"in",
"this",
"window",
"<",
"p",
">",
"this",
"method",
"must",
"be",
"called",
"before",
"any",
"rows",
"are",
"added",
"to",
"the",
"window",
"otherwise",
"it",
"will",
"fail",
"to",
"set",
"the",
"number",
... | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"set",
"num",
"columns",
"(",
"m",
"window",
"ptr",
",",
"column",
"num",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"allocates",
"a",
"new",
"row",
"at",
"the",
"end",
"of",
"this",
"cursor",
"window"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"alloc",
"row",
"(",
"m",
"window",
"ptr",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"frees",
"the",
"last",
"row",
"in",
"this",
"cursor",
"window"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"native",
"free",
"last",
"row",
"(",
"m",
"window",
"ptr",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"has",
"type",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"null",
"}"
] | [
"return",
"get",
"type",
"(",
"row",
",",
"column",
")",
"=",
"=",
"cursor",
"field",
"type",
"null",
";"
] |
[
"returns",
"true",
"if",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"has",
"type",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"blob",
"}",
"or",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"null",
"}"
] | [
"int",
"type",
"=",
"get",
"type",
"(",
"row",
",",
"column",
")",
";",
"return",
"type",
"=",
"=",
"cursor",
"field",
"type",
"blob",
"|",
"|",
"type",
"=",
"=",
"cursor",
"field",
"type",
"null",
";"
] |
[
"returns",
"true",
"if",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"has",
"type",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"integer",
"}"
] | [
"return",
"get",
"type",
"(",
"row",
",",
"column",
")",
"=",
"=",
"cursor",
"field",
"type",
"integer",
";"
] |
[
"returns",
"true",
"if",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"has",
"type",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"float",
"}"
] | [
"return",
"get",
"type",
"(",
"row",
",",
"column",
")",
"=",
"=",
"cursor",
"field",
"type",
"float",
";"
] |
[
"returns",
"true",
"if",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"has",
"type",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"string",
"}",
"or",
"{",
"@",
"link",
"cursor",
"#",
"field",
"type",
"null",
"}"
] | [
"int",
"type",
"=",
"get",
"type",
"(",
"row",
",",
"column",
")",
";",
"return",
"type",
"=",
"=",
"cursor",
"field",
"type",
"string",
"|",
"|",
"type",
"=",
"=",
"cursor",
"field",
"type",
"null",
";"
] |
[
"returns",
"the",
"type",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"<",
"p",
">",
"the",
"returned",
"field",
"types",
"are",
":",
"<",
"ul",
">",
"<",
"li",
">",
"{",
"@",
"link",
"cursor",
"#",
"field",
"ty... | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"get",
"type",
"(",
"m",
"window",
"ptr",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"a",
"byte",
"array",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"as",
"follows",
":",
"<",
"ul",
">",
"<",
"li",
">",
"if",
"th... | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"get",
"blob",
"(",
"m",
"window",
"ptr",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"a",
"string",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"as",
"follows",
":",
"<",
"ul",
">",
"<",
"li",
">",
"if",
"the",
"fi... | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"get",
"string",
"(",
"m",
"window",
"ptr",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"a",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"as",
"follows",
":",
"<",
"ul"... | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"get",
"long",
"(",
"m",
"window",
"ptr",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"a",
"<",
"code",
">",
"double",
"<",
"/",
"code",
">",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"as",
"follows",
":",
"<",
"u... | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"get",
"double",
"(",
"m",
"window",
"ptr",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"a",
"<",
"code",
">",
"short",
"<",
"/",
"code",
">",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"by",
"invoking",
"{",
"@",
"l... | [
"return",
"(",
"short",
")",
"get",
"long",
"(",
"row",
",",
"column",
")",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"an",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"by",
"invoking",
"{",
"@",
"li... | [
"return",
"(",
"int",
")",
"get",
"long",
"(",
"row",
",",
"column",
")",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index",
"as",
"a",
"<",
"code",
">",
"float",
"<",
"/",
"code",
">",
"<",
"p",
">",
"the",
"result",
"is",
"determined",
"by",
"invoking",
"{",
"@",
"l... | [
"return",
"(",
"float",
")",
"get",
"double",
"(",
"row",
",",
"column",
")",
";"
] |
[
"copies",
"a",
"byte",
"array",
"into",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"put",
"blob",
"(",
"m",
"window",
"ptr",
",",
"value",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";"... |
[
"copies",
"a",
"string",
"into",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"put",
"string",
"(",
"m",
"window",
"ptr",
",",
"value",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
"... |
[
"puts",
"a",
"long",
"integer",
"into",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"put",
"long",
"(",
"m",
"window",
"ptr",
",",
"value",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";"... |
[
"puts",
"a",
"double",
"-",
"precision",
"floating",
"point",
"value",
"into",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"put",
"double",
"(",
"m",
"window",
"ptr",
",",
"value",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
"... |
[
"puts",
"a",
"null",
"value",
"into",
"the",
"field",
"at",
"the",
"specified",
"row",
"and",
"column",
"index"
] | [
"acquire",
"reference",
"(",
")",
";",
"try",
"{",
"return",
"native",
"put",
"null",
"(",
"m",
"window",
"ptr",
",",
"row",
"-",
"m",
"start",
"pos",
",",
"column",
")",
";",
"}",
"finally",
"{",
"release",
"reference",
"(",
")",
";",
"}"
] |
[
"main",
"method"
] | [
"int",
"[",
"]",
"[",
"]",
"grid",
"=",
"{",
"{",
"1",
",",
"1",
",",
"0",
",",
"0",
",",
"0",
"}",
",",
"{",
"1",
",",
"0",
",",
"0",
",",
"0",
",",
"0",
"}",
",",
"{",
"0",
",",
"0",
",",
"0",
",",
"0",
",",
"1",
"}",
",",
"{"... |
[
"rotate",
"and",
"reflect",
"a",
"given",
"shape",
"to",
"8",
"possible",
"shapes"
] | [
"map",
"<",
"integer",
",",
"list",
"<",
"point",
">",
">",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"8",
";",
"i",
"+",
"+",
")",
"{",
"map",
"put",
"(",
"i",
",",
"new... |
[
"returns",
"the",
"number",
"of",
"times",
"{"
] | [
"return",
"hit",
"count",
";"
] |
[
"returns",
"the",
"number",
"of",
"times",
"{"
] | [
"return",
"miss",
"count",
";"
] |
[
"returns",
"the",
"number",
"of",
"times",
"an",
"entry",
"has",
"been",
"evicted",
"this",
"count",
"does",
"not",
"include",
"manual",
"{"
] | [
"return",
"eviction",
"count",
";"
] |
[
"returns",
"the",
"number",
"of",
"times",
"{"
] | [
"return",
"hit",
"count",
"+",
"miss",
"count",
";"
] |
[
"returns",
"the",
"ratio",
"of",
"cache",
"requests",
"which",
"were",
"hits",
"this",
"is",
"defined",
"as",
"{"
] | [
"long",
"request",
"count",
"=",
"request",
"count",
"(",
")",
";",
"return",
"(",
"request",
"count",
"=",
"=",
"0",
")",
"?",
"1",
"0",
":",
"(",
"double",
")",
"hit",
"count",
"/",
"request",
"count",
";"
] |
[
"returns",
"the",
"ratio",
"of",
"cache",
"requests",
"which",
"were",
"misses",
"this",
"is",
"defined",
"as",
"{"
] | [
"long",
"request",
"count",
"=",
"request",
"count",
"(",
")",
";",
"return",
"(",
"request",
"count",
"=",
"=",
"0",
")",
"?",
"0",
"0",
":",
"(",
"double",
")",
"miss",
"count",
"/",
"request",
"count",
";"
] |
[
"convert",
"the",
"value",
"to",
"a",
"bcd",
"value"
] | [
"return",
"(",
"byte",
")",
"(",
"(",
"data",
">",
">",
"4",
")",
"*",
"10",
"+",
"(",
"data",
"&",
"(",
"byte",
")",
"0x",
"0",
"f",
")",
")",
";"
] |
[
"convert",
"e",
"bus",
"type",
"char"
] | [
"return",
"data",
";"
] |
[
"convert",
"e",
"bus",
"type",
"data1b"
] | [
"return",
"decode",
"char",
"(",
"data",
")",
";"
] |
[
"convert",
"e",
"bus",
"type",
"data1c"
] | [
"return",
"decode",
"u",
"char",
"(",
"data",
")",
"/",
"2",
";"
] |
[
"convert",
"e",
"bus",
"type",
"d",
"a",
"t",
"a",
"2b"
] | [
"return",
"decode",
"int",
"(",
"data",
")",
"/",
"2",
"5",
"6f",
";"
] |
[
"convert",
"e",
"bus",
"type",
"d",
"a",
"t",
"a",
"2c"
] | [
"return",
"decode",
"int",
"(",
"data",
")",
"/",
"1",
"6f",
";"
] |
[
"convert",
"e",
"bus",
"type",
"int"
] | [
"return",
"(",
"short",
")",
"(",
"data",
"[",
"0",
"]",
"<",
"<",
"8",
"|",
"data",
"[",
"1",
"]",
"&",
"0x",
"f",
"f",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.