docstring_tokens list | code_tokens list |
|---|---|
[
"unauthenticated",
"resource",
"that",
"tells",
"you",
"the",
"total",
"price",
"to",
"buy",
"some",
"quantity",
"of",
"bitcoin"
] | [
"return",
"coinbase",
"get",
"buy",
"price",
"(",
"quantity",
",",
"currency",
")",
";"
] |
[
"unauthenticated",
"resource",
"that",
"tells",
"you",
"the",
"total",
"amount",
"in",
"usd",
"you",
"can",
"get",
"if",
"you",
"sell",
"1",
"bitcoin"
] | [
"return",
"get",
"coinbase",
"sell",
"price",
"(",
"null",
",",
"null",
")",
";"
] |
[
"unauthenticated",
"resource",
"that",
"tells",
"you",
"the",
"total",
"amount",
"in",
"usd",
"you",
"can",
"get",
"if",
"you",
"sell",
"some",
"quantity",
"bitcoin"
] | [
"return",
"get",
"coinbase",
"sell",
"price",
"(",
"quantity",
",",
"null",
")",
";"
] |
[
"unauthenticated",
"resource",
"that",
"tells",
"you",
"the",
"total",
"amount",
"you",
"can",
"get",
"if",
"you",
"sell",
"some",
"quantity",
"bitcoin"
] | [
"return",
"coinbase",
"get",
"sell",
"price",
"(",
"quantity",
",",
"currency",
")",
";"
] |
[
"unauthenticated",
"resource",
"that",
"tells",
"you",
"the",
"current",
"price",
"of",
"bitcoin",
"this",
"is",
"usually",
"somewhere",
"in",
"between",
"the",
"buy",
"and",
"sell",
"price",
"current",
"to",
"within",
"a",
"few",
"minutes"
] | [
"return",
"coinbase",
"get",
"spot",
"rate",
"(",
"currency",
")",
";"
] |
[
"unauthenticated",
"resource",
"that",
"displays",
"historical",
"spot",
"rates",
"for",
"bitcoin",
"in",
"usd",
"this",
"is",
"a",
"paged",
"resource",
"and",
"will",
"return",
"the",
"first",
"page",
"by",
"default"
] | [
"return",
"get",
"coinbase",
"historical",
"spot",
"rates",
"(",
"null",
")",
";"
] |
[
"unauthenticated",
"resource",
"that",
"displays",
"historical",
"spot",
"rates",
"for",
"bitcoin",
"in",
"usd"
] | [
"return",
"coinbase",
"spot",
"price",
"history",
"from",
"raw",
"string",
"(",
"coinbase",
"get",
"historical",
"spot",
"rates",
"(",
"page",
")",
")",
";"
] |
[
"gets",
"the",
"prefix",
"parameter",
"originally",
"used",
"to",
"request",
"this",
"object",
"listing",
"or",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"if",
"no",
"prefix",
"was",
"specified",
"all",
"objects",
"and",
"common",
"prefixes",
"inclu... | [
"return",
"prefix",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"if",
"(",
"this",
"template",
"instanceof",
"single",
"input",
"node",
")",
"{",
"return",
"(",
"single",
"input",
"node",
")",
"this",
"template",
";",
"}",
"else",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
")",
";",
"}"
] |
[
"gets",
"the",
"input",
"channel",
"to",
"this",
"node"
] | [
"return",
"this",
"input",
";"
] |
[
"gets",
"the",
"predecessor",
"of",
"this",
"node",
"i",
"e",
"the",
"source",
"of",
"the",
"input",
"channel"
] | [
"return",
"this",
"input",
"get",
"source",
"(",
")",
";"
] |
[
"sets",
"the",
"key",
"field",
"indexes",
"for",
"the",
"specified",
"driver",
"comparator"
] | [
"this",
"set",
"driver",
"key",
"info",
"(",
"keys",
",",
"get",
"true",
"array",
"(",
"keys",
"size",
"(",
")",
")",
",",
"id",
")",
";"
] |
[
"gets",
"the",
"key",
"field",
"indexes",
"for",
"the",
"specified",
"driver",
"comparator"
] | [
"return",
"this",
"driver",
"keys",
"[",
"id",
"]",
";"
] |
[
"gets",
"the",
"sort",
"order",
"for",
"the",
"specified",
"driver",
"comparator"
] | [
"return",
"driver",
"sort",
"orders",
"[",
"id",
"]",
";"
] |
[
"gets",
"the",
"specified",
"comparator",
"from",
"this",
"plan",
"node"
] | [
"return",
"comparators",
"[",
"id",
"]",
";"
] |
[
"sets",
"the",
"specified",
"comparator",
"for",
"this",
"plan",
"node"
] | [
"this",
"comparators",
"[",
"id",
"]",
"=",
"comparator",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"if",
"(",
"visitor",
"pre",
"visit",
"(",
"this",
")",
")",
"{",
"this",
"input",
"get",
"source",
"(",
")",
"accept",
"(",
"visitor",
")",
";",
"for",
"(",
"channel",
"broadcast",
"input",
":",
"get",
"broadcast",
"inputs",
"(",
")",
")",
"{",
"b... |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"final",
"boolean",
"[",
"]",
"a",
"=",
"new",
"boolean",
"[",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"a",
"[",
"i",
"]",
"=",
"true",
";",
"}",
"return",
"a",
";"
] |
[
"if",
"{",
"@",
"link",
"#",
"overrides",
"item",
"visibility",
"(",
")",
"}",
"returns",
"true",
"the",
"return",
"value",
"of",
"this",
"method",
"will",
"help",
"determine",
"the",
"visibility",
"of",
"the",
"{",
"@",
"link",
"menu",
"item",
"}",
"t... | [
"return",
"true",
";"
] |
[
"getters"
] | [
"return",
"m",
"restriction",
"name",
";"
] |
[
"name",
"of",
"the",
"property"
] | [
"abstract",
"string",
"get",
"name",
"(",
")",
";"
] |
[
"override",
"this",
"if",
"not",
"overriding",
"the",
"compress",
"method"
] | [
"throw",
"new",
"unsupported",
"encoding",
"exception",
"(",
")",
";"
] |
[
"override",
"this",
"if",
"not",
"overriding",
"the",
"uncompress",
"method"
] | [
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
] |
[
"this",
"method",
"must",
"be",
"able",
"to",
"return",
"both",
"incompatible",
"types",
"select",
"select",
"step",
"&",
"lt",
";",
"record",
">",
"and",
"select",
"select",
"step",
"&",
"lt",
";",
"r",
">"
] | [
"get",
"query",
"(",
")",
"add",
"select",
"(",
"fields",
")",
";",
"return",
"this",
";"
] |
[
"this",
"method",
"must",
"be",
"able",
"to",
"return",
"both",
"incompatible",
"types",
"select",
"select",
"step",
"&",
"lt",
";",
"record",
">",
"and",
"select",
"select",
"step",
"&",
"lt",
";",
"r",
">"
] | [
"get",
"query",
"(",
")",
"add",
"select",
"(",
"fields",
")",
";",
"return",
"this",
";"
] |
[
"[",
"jooq",
"-",
"tools",
"]",
"start",
"[",
"order",
"-",
"by",
"-",
"orderfield",
"-",
"array",
"]"
] | [
"return",
"order",
"by",
"(",
"new",
"order",
"field",
"[",
"]",
"{",
"t",
"1",
"}",
")",
";"
] |
[
"[",
"jooq",
"-",
"tools",
"]",
"end",
"[",
"order",
"-",
"by",
"-",
"orderfield",
"-",
"array",
"]"
] | [
"get",
"query",
"(",
")",
"add",
"order",
"by",
"(",
"fields",
")",
";",
"return",
"this",
";"
] |
[
"[",
"jooq",
"-",
"tools",
"]",
"start",
"[",
"seek",
"]"
] | [
"return",
"seek",
"(",
"new",
"object",
"[",
"]",
"{",
"t",
"1",
"}",
")",
";"
] |
[
"[",
"jooq",
"-",
"tools",
"]",
"end",
"[",
"seek",
"]"
] | [
"if",
"(",
"get",
"query",
"(",
")",
"instanceof",
"select",
"query",
"impl",
")",
"{",
"select",
"query",
"impl",
"<",
"r",
">",
"query",
"=",
"(",
"select",
"query",
"impl",
"<",
"r",
">",
")",
"get",
"query",
"(",
")",
";",
"list",
"<",
"field... |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"null",
"run",
"as",
"manager",
"run",
"as",
"=",
"new",
"null",
"run",
"as",
"manager",
"(",
")",
";",
"assert",
"that",
"(",
"run",
"as",
"build",
"run",
"as",
"(",
"null",
",",
"null",
",",
"null",
")",
")",
"is",
"null",
"(",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"address",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"alloc",
"mem",
"alloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"fr... | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"check",
"malloc",
"(",
"capacity",
",",
"sizeof",
")",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"calloc",
"mem",
"calloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"... | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"buffer",
"utils",
"}"
] | [
"byte",
"buffer",
"container",
"=",
"create",
"(",
"capacity",
",",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"buffer",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"capacity",
",",
"container",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"malloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"calloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] | [
"return",
"wrap",
"(",
"o",
"v",
"r",
"detect",
"result",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
... | [
"return",
"calloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"o",
"v",
"r",
"detect",
"result",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"byte",
"(",
"null",
",",
"struct",
"+",
"o",
"v",
"r",
"detect",
"result",
"isoculusservicerunning",
")",
"!",
"=",
"0",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"byte",
"(",
"null",
",",
"struct",
"+",
"o",
"v",
"r",
"detect",
"result",
"isoculushmdconnected",
")",
"!",
"=",
"0",
";"
] |
[
"{"
] | [
"injector",
"inject",
"(",
"managed",
"reference",
"factory",
")",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"aws",
"account",
"that",
"you",
"want",
"to",
"associate",
"with",
"amazon",
"macie",
"as",
"a",
"member",
"account",
"<",
"/",
"p",
">"
] | [
"set",
"member",
"account",
"id",
"(",
"member",
"account",
"id",
")",
";",
"return",
"this",
";"
] |
[
"advance",
"a",
"phrase",
"position",
"and",
"update",
"end",
"return",
"false",
"if",
"exhausted"
] | [
"if",
"(",
"!",
"pp",
"next",
"position",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"pp",
"position",
">",
"end",
")",
"{",
"end",
"=",
"pp",
"position",
";",
"}",
"return",
"true",
";"
] |
[
"compare",
"two",
"pps",
"but",
"only",
"by",
"position",
"and",
"offset"
] | [
"if",
"(",
"pp",
"position",
"<",
"pp",
"2",
"position",
"|",
"|",
"(",
"pp",
"position",
"=",
"=",
"pp",
"2",
"position",
"&",
"&",
"pp",
"offset",
"<",
"pp",
"2",
"offset",
")",
")",
"{",
"return",
"pp",
";",
"}",
"return",
"pp",
"2",
";"
] |
[
"index",
"of",
"a",
"pp",
"2",
"colliding",
"with",
"pp",
"or",
"-",
"1",
"if",
"none"
] | [
"int",
"tp",
"pos",
"=",
"tp",
"pos",
"(",
"pp",
")",
";",
"phrase",
"positions",
"[",
"]",
"rg",
"=",
"rpt",
"groups",
"[",
"pp",
"rpt",
"group",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"rg",
"length",
";",
"i",
"+",
"+"... |
[
"move",
"all",
"p",
"ps",
"to",
"their",
"first",
"position"
] | [
"for",
"(",
"phrase",
"positions",
"pp",
":",
"phrase",
"positions",
")",
"{",
"pp",
"first",
"position",
"(",
")",
";",
"}"
] |
[
"actual",
"position",
"in",
"doc",
"of",
"a",
"phrase",
"position",
"relies",
"on",
"that",
"position",
"=",
"tp",
"pos",
"-",
"offset",
")"
] | [
"return",
"pp",
"position",
"+",
"pp",
"offset",
";"
] |
[
"find",
"repeating",
"terms",
"and",
"assign",
"them",
"ordinal",
"values"
] | [
"linked",
"hash",
"map",
"<",
"term",
",",
"integer",
">",
"tord",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
";",
"hash",
"map",
"<",
"term",
",",
"integer",
">",
"tcnt",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",... |
[
"find",
"repeating",
"pps",
"and",
"for",
"each",
"if",
"has",
"multi",
"-",
"terms",
"update",
"this",
"has",
"multi",
"term",
"rpts"
] | [
"array",
"list",
"<",
"phrase",
"positions",
">",
"rp",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"phrase",
"positions",
"pp",
":",
"phrase",
"positions",
")",
"{",
"for",
"(",
"term",
"t",
":",
"pp",
"terms",
")",
"{",
"i... |
[
"bit",
"-",
"sets",
"-",
"for",
"each",
"repeating",
"pp",
"for",
"each",
"of",
"its",
"repeating",
"terms",
"the",
"term",
"ordinal",
"values",
"is",
"set"
] | [
"array",
"list",
"<",
"fixed",
"bit",
"set",
">",
"bb",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"rpp",
"length",
")",
";",
"for",
"(",
"phrase",
"positions",
"pp",
":",
"rpp",
")",
"{",
"fixed",
"bit",
"set",
"b",
"=",
"new",
"fixed",
"bit",
... |
[
"union",
"(",
"term",
"group",
")",
"bit",
"-",
"sets",
"until",
"they",
"are",
"disjoint",
"(",
"o",
"(",
"n",
"^",
"^",
"2",
")",
")",
"and",
"each",
"group",
"have",
"different",
"terms"
] | [
"int",
"incr",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"bb",
"size",
"(",
")",
"-",
"1",
";",
"i",
"+",
"=",
"incr",
")",
"{",
"incr",
"=",
"1",
";",
"int",
"j",
"=",
"i",
"+",
"1",
";",
"while",
"(",
"j",
"<",
"bb",
"si... |
[
"{"
] | [
"return",
"global",
"rmv",
"id",
";"
] |
[
"{"
] | [
"this",
"ctx",
"=",
"ctx",
";",
"this",
"grp",
"=",
"grp",
";",
"this",
"log",
"=",
"ctx",
"logger",
"(",
"get",
"class",
"(",
")",
")",
";",
"update",
"val",
"size",
"threshold",
"=",
"ctx",
"database",
"(",
")",
"page",
"size",
"(",
")",
"/",
... |
[
"{"
] | [
"init",
"pending",
"tree",
"(",
"cctx",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"destroy",
"&",
"&",
"grp",
"affinity",
"node",
"(",
")",
")",
"remove",
"cache",
"data",
"(",
"cache",
"id",
")",
";"
] |
[
"{"
] | [
"try",
"{",
"for",
"(",
"cache",
"data",
"store",
"store",
":",
"cache",
"data",
"stores",
"(",
")",
")",
"destroy",
"cache",
"data",
"store",
"(",
"store",
")",
";",
"if",
"(",
"pending",
"entries",
"!",
"=",
"null",
")",
"pending",
"entries",
"dest... |
[
"{"
] | [
"busy",
"lock",
"block",
"(",
")",
";"
] |
[
"{"
] | [
"long",
"size",
"=",
"0",
";",
"for",
"(",
"cache",
"data",
"store",
"store",
":",
"cache",
"data",
"stores",
"(",
")",
")",
"size",
"+",
"=",
"store",
"cache",
"size",
"(",
"cache",
"id",
")",
";",
"return",
"size",
";"
] |
[
"{"
] | [
"if",
"(",
"grp",
"is",
"local",
"(",
")",
")",
"return",
"loc",
"cache",
"data",
"store",
"full",
"size",
"(",
")",
";",
"else",
"{",
"grid",
"dht",
"local",
"partition",
"part",
"=",
"grp",
"topology",
"(",
")",
"local",
"partition",
"(",
"p",
",... |
[
"{"
] | [
"if",
"(",
"grp",
"is",
"local",
"(",
")",
")",
"return",
"cache",
"entries",
"count",
"(",
"cache",
"id",
",",
"0",
")",
";",
"else",
"{",
"long",
"cnt",
"=",
"0",
";",
"iterator",
"<",
"cache",
"data",
"store",
">",
"it",
"=",
"cache",
"data",
... |
[
"{"
] | [
"cache",
"data",
"store",
"store",
"=",
"partition",
"data",
"(",
"part",
")",
";",
"return",
"store",
"=",
"=",
"null",
"?",
"0",
":",
"store",
"cache",
"size",
"(",
"cache",
"id",
")",
";"
] |
[
"{"
] | [
"data",
"store",
"(",
"part",
")",
"invoke",
"(",
"cctx",
",",
"key",
",",
"c",
")",
";"
] |
[
"{"
] | [
"assert",
"expire",
"time",
">",
"=",
"0",
";",
"data",
"store",
"(",
"part",
")",
"update",
"(",
"cctx",
",",
"key",
",",
"val",
",",
"ver",
",",
"expire",
"time",
",",
"old",
"row",
")",
";"
] |
[
"{"
] | [
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"(",
")",
")",
"mvcc",
"initial",
"value",
"(",
"entry",
"context",
"(",
")",
",",
"entry",
"key",
"(",
")",
",",
"val",
",",
"ver",
",",
"expire",
"time",
",",
"mvcc",
"ver",
",",
"new... |
[
"{"
] | [
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"(",
")",
")",
"mvcc",
"initial",
"value",
"if",
"absent",
"(",
"entry",
"context",
"(",
")",
",",
"entry",
"key",
"(",
")",
",",
"val",
",",
"ver",
",",
"expire",
"time",
",",
"mvcc",
... |
[
"{"
] | [
"assert",
"entry",
"locked",
"by",
"current",
"thread",
"(",
")",
";",
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"(",
")",
")",
"mvcc",
"update",
"row",
"with",
"preload",
"info",
"(",
"entry",
"context",
"(",
")",
",",
"entry",
"k... |
[
"{"
] | [
"if",
"(",
"entry",
"detached",
"(",
")",
"|",
"|",
"entry",
"is",
"near",
"(",
")",
")",
"return",
"null",
";",
"assert",
"entry",
"locked",
"by",
"current",
"thread",
"(",
")",
";",
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"("... |
[
"{"
] | [
"if",
"(",
"entry",
"detached",
"(",
")",
"|",
"|",
"entry",
"is",
"near",
"(",
")",
")",
"return",
"null",
";",
"assert",
"entry",
"locked",
"by",
"current",
"thread",
"(",
")",
";",
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"("... |
[
"{"
] | [
"if",
"(",
"entry",
"detached",
"(",
")",
"|",
"|",
"entry",
"is",
"near",
"(",
")",
")",
"return",
"null",
";",
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"(",
")",
")",
"mvcc",
"update",
"native",
"(",
"entry",
"context",
"(",
... |
[
"{"
] | [
"if",
"(",
"entry",
"detached",
"(",
")",
"|",
"|",
"entry",
"is",
"near",
"(",
")",
")",
"return",
"null",
";",
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"(",
")",
")",
"mvcc",
"remove",
"native",
"(",
"entry",
"context",
"(",
... |
[
"{"
] | [
"if",
"(",
"entry",
"detached",
"(",
")",
"|",
"|",
"entry",
"is",
"near",
"(",
")",
")",
"return",
";",
"data",
"store",
"(",
"entry",
"local",
"partition",
"(",
")",
")",
"mvcc",
"remove",
"all",
"(",
"entry",
"context",
"(",
")",
",",
"entry",
... |
[
"{"
] | [
"if",
"(",
"entry",
"detached",
"(",
")",
"|",
"|",
"entry",
"is",
"near",
"(",
")",
")",
"return",
"null",
";",
"assert",
"entry",
"locked",
"by",
"current",
"thread",
"(",
")",
";",
"return",
"data",
"store",
"(",
"entry",
"local",
"partition",
"("... |
[
"{"
] | [
"data",
"store",
"(",
"part",
")",
"remove",
"(",
"cctx",
",",
"key",
",",
"part",
"id",
")",
";"
] |
[
"{"
] | [
"cache",
"data",
"store",
"data",
"store",
"=",
"data",
"store",
"(",
"cctx",
",",
"key",
")",
";",
"cache",
"data",
"row",
"row",
"=",
"data",
"store",
"!",
"=",
"null",
"?",
"data",
"store",
"find",
"(",
"cctx",
",",
"key",
")",
":",
"null",
";... |
[
"{"
] | [
"assert",
"ver",
"!",
"=",
"null",
";",
"cache",
"data",
"store",
"data",
"store",
"=",
"data",
"store",
"(",
"cctx",
",",
"key",
")",
";",
"cache",
"data",
"row",
"row",
"=",
"data",
"store",
"!",
"=",
"null",
"?",
"data",
"store",
"mvcc",
"find",... |
[
"{"
] | [
"cache",
"data",
"store",
"data",
"store",
"=",
"data",
"store",
"(",
"cctx",
",",
"key",
")",
";",
"return",
"data",
"store",
"!",
"=",
"null",
"?",
"data",
"store",
"mvcc",
"find",
"all",
"versions",
"(",
"cctx",
",",
"key",
")",
":",
"collections"... |
[
"{"
] | [
"cache",
"data",
"store",
"data",
"store",
"=",
"data",
"store",
"(",
"cctx",
",",
"key",
")",
";",
"return",
"data",
"store",
"!",
"=",
"null",
"?",
"data",
"store",
"mvcc",
"all",
"versions",
"cursor",
"(",
"cctx",
",",
"key",
",",
"x",
")",
":",... |
[
"{"
] | [
"return",
"0",
";"
] |
[
"{"
] | [
"return",
"iterator",
"(",
"cache",
"id",
",",
"cache",
"data",
"(",
"primary",
",",
"backups",
",",
"top",
"ver",
")",
",",
"mvcc",
"snapshot",
")",
";"
] |
[
"{"
] | [
"cache",
"data",
"store",
"data",
"=",
"partition",
"data",
"(",
"part",
")",
";",
"if",
"(",
"data",
"=",
"=",
"null",
")",
"return",
"new",
"grid",
"empty",
"closeable",
"iterator",
"<",
">",
"(",
")",
";",
"return",
"iterator",
"(",
"cache",
"id",... |
[
"{"
] | [
"cache",
"data",
"store",
"data",
"=",
"partition",
"data",
"(",
"part",
")",
";",
"if",
"(",
"data",
"=",
"=",
"null",
")",
"return",
"new",
"grid",
"empty",
"closeable",
"iterator",
"<",
">",
"(",
")",
";",
"return",
"iterator",
"(",
"cu",
"undefin... |
[
"{"
] | [
"long",
"page",
"id",
"=",
"allocate",
"for",
"tree",
"(",
")",
";",
"return",
"new",
"root",
"page",
"(",
"new",
"full",
"page",
"id",
"(",
"page",
"id",
",",
"grp",
"group",
"id",
"(",
")",
")",
",",
"true",
")",
";"
] |
[
"{"
] | [
"return",
"grp",
"reuse",
"list",
"(",
")",
";"
] |
[
"{"
] | [
"final",
"tree",
"map",
"<",
"integer",
",",
"grid",
"closeable",
"iterator",
"<",
"cache",
"data",
"row",
">",
">",
"iterators",
"=",
"new",
"tree",
"map",
"<",
">",
"(",
")",
";",
"set",
"<",
"integer",
">",
"missing",
"=",
"new",
"hash",
"set",
... |
[
"{"
] | [
"cache",
"data",
"store",
"data",
"store",
";",
"part",
"store",
"lock",
"lock",
"(",
"p",
")",
";",
"try",
"{",
"assert",
"!",
"part",
"data",
"stores",
"contains",
"key",
"(",
"p",
")",
";",
"data",
"store",
"=",
"create",
"cache",
"data",
"store",... |
[
"{"
] | [
"if",
"(",
"grp",
"is",
"local",
"(",
")",
")",
"return",
"collections",
"singleton",
"(",
"loc",
"cache",
"data",
"store",
")",
";",
"return",
"new",
"iterable",
"<",
"cache",
"data",
"store",
">",
"(",
")",
"{",
"@",
"override",
"public",
"iterator",... |
[
"{"
] | [
"int",
"p",
"=",
"store",
"part",
"id",
"(",
")",
";",
"part",
"store",
"lock",
"lock",
"(",
"p",
")",
";",
"try",
"{",
"boolean",
"removed",
"=",
"part",
"data",
"stores",
"remove",
"(",
"p",
",",
"store",
")",
";",
"assert",
"removed",
";",
"de... |
[
"{"
] | [
"return",
"pending",
"entries",
"!",
"=",
"null",
"?",
"pending",
"entries",
"size",
"(",
")",
":",
"0",
";"
] |
[
"{"
] | [
"return",
"part",
"id",
";"
] |
[
"{"
] | [
"if",
"(",
"grp",
"shared",
"group",
"(",
")",
")",
"{",
"atomic",
"long",
"size",
"=",
"cache",
"sizes",
"get",
"(",
"cache",
"id",
")",
";",
"return",
"size",
"!",
"=",
"null",
"?",
"(",
"int",
")",
"size",
"get",
"(",
")",
":",
"0",
";",
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.