docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"sets",
"the",
"partition",
"id"
] | [
"this",
"partition",
"id",
"=",
"partition",
"id",
";",
"set",
"flag",
"(",
"partition",
"id",
">",
"short",
"max",
"value",
",",
"bitmask",
"partition",
"id",
"32",
"bit",
")",
";",
"return",
"this",
";"
] |
[
"gets",
"the",
"call",
"id",
"of",
"this",
"operation",
"the",
"call",
"id",
"is",
"used",
"to",
"associate",
"the",
"invocation",
"of",
"an",
"operation",
"on",
"a",
"remote",
"system",
"with",
"the",
"response",
"from",
"the",
"execution",
"of",
"that",
"operation",
"<",
"ul",
">",
"<",
"li",
">",
"initially",
"the",
"call",
"id",
"is",
"zero",
"<",
"/",
"li",
">",
"<",
"li",
">",
"when",
"an",
"invocation",
"of",
"the",
"operation",
"is",
"created",
"a",
"positive",
"call",
"id",
"is",
"assigned",
"<",
"/",
"li",
">",
"<",
"li",
">",
"when",
"the",
"invocation",
"ends",
"the",
"operation",
"is",
"{",
"@",
"link",
"#",
"deactivate",
"}",
"d",
"and",
"the",
"call",
"id",
"is",
"negated",
"<",
"/",
"li",
">",
"<",
"li",
">",
"the",
"same",
"operation",
"may",
"be",
"involved",
"in",
"a",
"further",
"invocation",
"(",
"retrying",
")",
";",
"this",
"will",
"assign",
"a",
"new",
"call",
"id",
"and",
"reactivate",
"the",
"operation",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"return",
"math",
"abs",
"(",
"call",
"id",
")",
";"
] |
[
"tells",
"whether",
"this",
"operation",
"is",
"involved",
"in",
"an",
"ongoing",
"invocation",
"such",
"an",
"operation",
"always",
"has",
"a",
"positive",
"call",
"id"
] | [
"return",
"call",
"id",
">",
"0",
";"
] |
[
"called",
"every",
"time",
"a",
"new",
"<",
"tt",
">",
"call",
"id",
"<",
"/",
"tt",
">",
"is",
"set",
"on",
"the",
"operation",
"a",
"new",
"<",
"tt",
">",
"call",
"id",
"<",
"/",
"tt",
">",
"is",
"set",
"before",
"initial",
"invocation",
"and",
"before",
"every",
"invocation",
"retry",
"<",
"p",
">",
"by",
"default",
"this",
"is",
"a",
"no",
"-",
"op",
"method",
"operation",
"implementations",
"which",
"want",
"to",
"get",
"notified",
"on",
"<",
"tt",
">",
"call",
"id",
"<",
"/",
"tt",
">",
"changes",
"can",
"override",
"it",
"<",
"p",
">",
"for",
"example",
"an",
"operation",
"can",
"distinguish",
"the",
"first",
"invocation",
"and",
"invocation",
"retries",
"by",
"keeping",
"the",
"initial",
"<",
"tt",
">",
"call",
"id",
"<",
"/",
"tt",
">"
] | [] |
[
"accessed",
"using",
"operation",
"accessor"
] | [
"this",
"caller",
"address",
"=",
"caller",
"address",
";",
"return",
"this",
";"
] |
[
"accessed",
"using",
"operation",
"accessor"
] | [
"this",
"connection",
"=",
"connection",
";",
"return",
"this",
";"
] |
[
"gets",
"the",
"{",
"@",
"link",
"operation",
"response",
"handler",
"}",
"tied",
"to",
"this",
"operation",
"the",
"returned",
"value",
"can",
"be",
"null"
] | [
"return",
"response",
"handler",
";"
] |
[
"sets",
"the",
"{",
"@",
"link",
"operation",
"response",
"handler",
"}",
"value",
"is",
"allowed",
"to",
"be",
"null"
] | [
"this",
"response",
"handler",
"=",
"response",
"handler",
";",
"return",
"this",
";"
] |
[
"gets",
"the",
"time",
"in",
"milliseconds",
"when",
"this",
"invocation",
"started"
] | [
"return",
"invocation",
"time",
";"
] |
[
"accessed",
"using",
"operation",
"accessor"
] | [
"this",
"invocation",
"time",
"=",
"invocation",
"time",
";",
"return",
"this",
";"
] |
[
"gets",
"the",
"call",
"timeout",
"in",
"milliseconds",
"for",
"example",
"if",
"a",
"call",
"should",
"start",
"execution",
"within",
"60",
"seconds",
"or",
"it",
"should",
"be",
"aborted",
"otherwise",
"then",
"the",
"call",
"timeout",
"is",
"60000",
"milliseconds",
"once",
"the",
"operation",
"execution",
"starts",
"the",
"call",
"timeout",
"is",
"no",
"longer",
"relevant",
"even",
"if",
"the",
"execution",
"takes",
"a",
"long",
"time"
] | [
"return",
"call",
"timeout",
";"
] |
[
"accessed",
"using",
"operation",
"accessor"
] | [
"this",
"call",
"timeout",
"=",
"call",
"timeout",
";",
"set",
"flag",
"(",
"call",
"timeout",
">",
"integer",
"max",
"value",
",",
"bitmask",
"call",
"timeout",
"64",
"bit",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"wait",
"timeout",
"in",
"millis",
"-",
"1",
"means",
"infinite",
"wait",
"and",
"0",
"means",
"no",
"waiting",
"at",
"all"
] | [
"return",
"wait",
"timeout",
";"
] |
[
"sets",
"the",
"wait",
"timeout",
"in",
"millis"
] | [
"this",
"wait",
"timeout",
"=",
"timeout",
";",
"set",
"flag",
"(",
"timeout",
"!",
"=",
"-",
"1",
",",
"bitmask",
"wait",
"timeout",
"set",
")",
";"
] |
[
"called",
"when",
"an",
"<",
"tt",
">",
"exception",
"<",
"/",
"tt",
">",
"/",
"<",
"tt",
">",
"error",
"<",
"/",
"tt",
">",
"is",
"thrown",
"during",
"an",
"invocation",
"invocation",
"process",
"will",
"continue",
"it",
"will",
"retry",
"or",
"fail",
"according",
"to",
"returned",
"<",
"tt",
">",
"exception",
"action",
"<",
"/",
"tt",
">",
"<",
"p",
"/",
">",
"this",
"method",
"is",
"called",
"on",
"caller",
"side",
"of",
"the",
"invocation"
] | [
"return",
"throwable",
"instanceof",
"retryable",
"exception",
"?",
"retry",
"invocation",
":",
"throw",
"exception",
";"
] |
[
"called",
"when",
"an",
"<",
"tt",
">",
"exception",
"<",
"/",
"tt",
">",
"/",
"<",
"tt",
">",
"error",
"<",
"/",
"tt",
">",
"is",
"thrown",
"during",
"operation",
"execution",
"<",
"p",
"/",
">",
"by",
"default",
"this",
"method",
"does",
"nothing",
"operation",
"implementations",
"can",
"override",
"this",
"behaviour",
"according",
"to",
"their",
"needs",
"<",
"p",
"/",
">",
"this",
"method",
"is",
"called",
"on",
"node",
"&",
"thread",
"that",
"s",
"executing",
"the",
"operation"
] | [] |
[
"returns",
"{"
] | [
"return",
"false",
";"
] |
[
"a",
"template",
"method",
"allows",
"for",
"additional",
"information",
"to",
"be",
"passed",
"into",
"the",
"{",
"@",
"link",
"#",
"to",
"string",
"(",
")",
"}",
"method",
"so",
"an",
"operation",
"subclass",
"can",
"override",
"this",
"method",
"and",
"add",
"additional",
"debugging",
"content",
"the",
"default",
"implementation",
"does",
"nothing",
"so",
"one",
"is",
"not",
"forced",
"to",
"provide",
"an",
"empty",
"implementation"
] | [] |
[
"gets",
"the",
"cursor"
] | [
"return",
"cursor",
"id",
"=",
"=",
"0",
"?",
"null",
":",
"new",
"server",
"cursor",
"(",
"cursor",
"id",
",",
"server",
"address",
")",
";"
] |
[
"gets",
"the",
"server",
"address"
] | [
"return",
"server",
"address",
";"
] |
[
"unit",
"test",
"that",
"verifies",
"that",
"we",
"can",
"(",
"re",
")",
"parse",
"sample",
"document",
"from",
"json",
"specification"
] | [
"object",
"mapper",
"m",
"=",
"new",
"object",
"mapper",
"(",
")",
";",
"json",
"node",
"tree",
"=",
"m",
"read",
"tree",
"(",
"sample",
"doc",
"json",
"spec",
")",
";",
"json",
"parser",
"p",
"=",
"tree",
"traverse",
"(",
"object",
"read",
"context",
"empty",
"(",
")",
")",
";",
"verify",
"json",
"spec",
"sample",
"doc",
"(",
"p",
",",
"true",
")",
";",
"p",
"close",
"(",
")",
";"
] |
[
"gets",
"the",
"popup",
"menu",
"items",
"used",
"for",
"the",
"whole",
"workbench"
] | [
"return",
"popup",
"menu",
"list",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"file",
"menu",
"@",
"param",
"menu",
"item",
"the",
"file",
"menu",
"item"
] | [
"get",
"file",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"edit",
"menu",
"@",
"param",
"menu",
"item",
"the",
"edit",
"menu",
"item"
] | [
"get",
"edit",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"view",
"menu",
"@",
"param",
"menu",
"item",
"the",
"view",
"menu",
"item"
] | [
"get",
"view",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"analyse",
"menu",
"@",
"param",
"menu",
"item",
"the",
"analyse",
"menu",
"item"
] | [
"get",
"analyse",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"tools",
"menu",
"@",
"param",
"menu",
"item",
"the",
"tools",
"menu",
"item"
] | [
"get",
"tools",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"add",
"a",
"popup",
"menu",
"item",
"used",
"for",
"the",
"whole",
"workbench",
"conditions",
"can",
"be",
"set",
"in",
"plugin",
"menu",
"when",
"the",
"popup",
"menu",
"can",
"be",
"used"
] | [
"get",
"popup",
"menus",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"zap",
":",
"added",
"the",
"method"
] | [
"get",
"popup",
"menus",
"(",
")",
"add",
"(",
"menu",
")",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"help",
"menu",
"@",
"param",
"menu",
"item",
"the",
"help",
"menu",
"item"
] | [
"get",
"help",
"menus",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"add",
"a",
"menu",
"item",
"to",
"the",
"report",
"menu",
"@",
"param",
"menu",
"item",
"the",
"report",
"menu",
"item"
] | [
"get",
"report",
"menus",
"(",
")",
"add",
"(",
"menu",
"item",
")",
";"
] |
[
"horizon",
"we",
"re",
"looking",
"at",
"and",
"provides",
"a",
"non",
"-",
"linear",
"weighting",
"for",
"light",
"samples"
] | [
"return",
"x",
"*",
"(",
"x",
"*",
"0",
"5f",
"+",
"m",
"weighting",
"intercept",
")",
";"
] |
[
"when",
"an",
"<",
"code",
">",
"out",
"of",
"memory",
"error",
"<",
"/",
"code",
">",
"is",
"caught",
"by",
"hazelcast",
"threads",
"this",
"method",
"is",
"called",
"for",
"all",
"<",
"code",
">",
"hazelcast",
"instance",
"<",
"/",
"code",
">",
"s",
"knows",
"by",
"current",
"jvm",
"(",
"actually",
"class",
"loader",
")"
] | [
"public",
"abstract",
"void",
"on",
"out",
"of",
"memory",
"(",
"out",
"of",
"memory",
"error",
"oome",
",",
"hazelcast",
"instance",
"[",
"]",
"hazelcast",
"instances",
")",
";"
] |
[
"decides",
"if",
"the",
"out",
"of",
"memory",
"error",
"thrown",
"will",
"be",
"handled",
"by",
"this",
"out",
"of",
"memory",
"handler",
"or",
"not",
"if",
"<",
"tt",
">",
"true",
"<",
"/",
"tt",
">",
"is",
"return",
"{",
"@",
"link",
"#",
"on",
"out",
"of",
"memory",
"(",
"out",
"of",
"memory",
"error",
"hazelcast",
"instance",
"[",
"]",
")",
"}",
"will",
"be",
"called",
"to",
"handle",
"error",
"otherwise",
"out",
"of",
"memory",
"error",
"will",
"be",
"ignored"
] | [
"return",
"true",
";"
] |
[
"tries",
"to",
"close",
"the",
"server",
"socket",
"and",
"connections",
"to",
"other",
"<",
"tt",
">",
"hazelcast",
"instance",
"<",
"/",
"tt",
">",
"s"
] | [
"out",
"of",
"memory",
"handler",
"helper",
"try",
"close",
"connections",
"(",
"hazelcast",
"instance",
")",
";"
] |
[
"tries",
"to",
"shutdown",
"<",
"tt",
">",
"hazelcast",
"instance",
"<",
"/",
"tt",
">",
"forcefully",
";",
"including",
"closing",
"sockets",
"and",
"connections",
"stopping",
"threads",
"etc"
] | [
"out",
"of",
"memory",
"handler",
"helper",
"try",
"shutdown",
"(",
"hazelcast",
"instance",
")",
";"
] |
[
"retrieves",
"the",
"singleton",
"instance",
"of",
"the",
"{",
"@",
"link",
"environment",
"edge",
"}",
"that",
"is",
"being",
"managed"
] | [
"return",
"delegate",
";"
] |
[
"resets",
"the",
"managed",
"instance",
"to",
"the",
"default",
"instance",
":",
"{"
] | [
"inject",
"edge",
"(",
"new",
"default",
"environment",
"edge",
"(",
")",
")",
";"
] |
[
"injects",
"the",
"given",
"edge",
"such",
"that",
"it",
"becomes",
"the",
"managed",
"entity",
"if",
"null",
"is",
"passed",
"to",
"this",
"method",
"the",
"default",
"type",
"is",
"assigned",
"to",
"the",
"delegate"
] | [
"if",
"(",
"edge",
"=",
"=",
"null",
")",
"{",
"reset",
"(",
")",
";",
"}",
"else",
"{",
"delegate",
"=",
"edge",
";",
"}"
] |
[
"defers",
"to",
"the",
"delegate",
"and",
"calls",
"the",
"{",
"@",
"link",
"environment",
"edge",
"#",
"current",
"time",
"(",
")",
"}",
"method"
] | [
"return",
"get",
"delegate",
"(",
")",
"current",
"time",
"(",
")",
";"
] |
[
"adds",
"a",
"new",
"seed",
"for",
"the",
"spider"
] | [
"uri",
"uri",
"=",
"msg",
"get",
"request",
"header",
"(",
")",
"get",
"u",
"r",
"i",
"(",
")",
";",
"add",
"seed",
"(",
"uri",
")",
";"
] |
[
"adds",
"a",
"new",
"fetch",
"filter",
"to",
"the",
"spider"
] | [
"controller",
"add",
"fetch",
"filter",
"(",
"filter",
")",
";"
] |
[
"adds",
"a",
"new",
"parse",
"filter",
"to",
"the",
"spider"
] | [
"controller",
"add",
"parse",
"filter",
"(",
"filter",
")",
";"
] |
[
"gets",
"the",
"http",
"sender",
"can",
"be",
"called",
"from",
"the",
"spider",
"task"
] | [
"return",
"http",
"sender",
";"
] |
[
"gets",
"the",
"spider",
"parameters",
"can",
"be",
"called",
"from",
"the",
"spider",
"task"
] | [
"return",
"spider",
"param",
";"
] |
[
"gets",
"the",
"controller"
] | [
"return",
"controller",
";"
] |
[
"gets",
"the",
"model"
] | [
"return",
"this",
"model",
";"
] |
[
"gets",
"the",
"extension"
] | [
"return",
"this",
"extension",
";"
] |
[
"pauses",
"the",
"spider",
"crawling"
] | [
"pause",
"lock",
"lock",
"(",
")",
";",
"try",
"{",
"paused",
"=",
"true",
";",
"}",
"finally",
"{",
"pause",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"spider",
"so",
"it",
"will",
"scan",
"from",
"the",
"point",
"of",
"view",
"of",
"a",
"user"
] | [
"this",
"scan",
"user",
"=",
"user",
";"
] |
[
"gets",
"the",
"user",
"that",
"will",
"be",
"used",
"in",
"the",
"scanning"
] | [
"return",
"this",
"scan",
"user",
";"
] |
[
"this",
"method",
"is",
"run",
"by",
"each",
"thread",
"in",
"the",
"thread",
"pool",
"before",
"the",
"task",
"execution",
"particularly",
"it",
"checks",
"if",
"the",
"spidering",
"process",
"is",
"paused",
"and",
"if",
"it",
"is",
"it",
"waits",
"on",
"the",
"corresponding",
"condition",
"for",
"the",
"process",
"to",
"be",
"resumed",
"called",
"from",
"the",
"spider",
"task"
] | [
"check",
"pause",
"and",
"wait",
"(",
")",
";"
] |
[
"this",
"method",
"is",
"run",
"by",
"threads",
"in",
"the",
"thread",
"pool",
"and",
"checks",
"if",
"the",
"scan",
"is",
"paused",
"and",
"if",
"it",
"is",
"waits",
"until",
"it",
"s",
"unpaused"
] | [
"pause",
"lock",
"lock",
"(",
")",
";",
"try",
"{",
"while",
"(",
"paused",
"&",
"&",
"!",
"stopped",
")",
"{",
"paused",
"condition",
"await",
"(",
")",
";",
"}",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"}",
"finally",
"{",
"pause",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"checks",
"if",
"is",
"paused"
] | [
"return",
"this",
"paused",
";"
] |
[
"checks",
"if",
"is",
"terminated"
] | [
"return",
"thread",
"pool",
"is",
"terminated",
"(",
")",
";"
] |
[
"adds",
"a",
"new",
"spider",
"listener"
] | [
"this",
"listeners",
"add",
"(",
"listener",
")",
";"
] |
[
"removes",
"a",
"spider",
"listener"
] | [
"this",
"listeners",
"remove",
"(",
"listener",
")",
";"
] |
[
"notifies",
"all",
"the",
"listeners",
"regarding",
"the",
"spider",
"progress"
] | [
"for",
"(",
"spider",
"listener",
"l",
":",
"listeners",
")",
"{",
"l",
"spider",
"progress",
"(",
"percentage",
"complete",
",",
"number",
"crawled",
",",
"number",
"to",
"crawl",
")",
";",
"}"
] |
[
"notifies",
"the",
"listeners",
"regarding",
"a",
"found",
"uri"
] | [
"for",
"(",
"spider",
"listener",
"l",
":",
"listeners",
")",
"{",
"l",
"found",
"u",
"r",
"i",
"(",
"uri",
",",
"method",
",",
"status",
")",
";",
"}"
] |
[
"notifies",
"the",
"listeners",
"of",
"a",
"{",
"@",
"link",
"spider",
"task",
"}",
"s",
"result"
] | [
"for",
"(",
"spider",
"listener",
"l",
":",
"listeners",
")",
"{",
"l",
"notify",
"spider",
"task",
"result",
"(",
"result",
")",
";",
"}"
] |
[
"notifies",
"the",
"listeners",
"that",
"the",
"spider",
"is",
"complete"
] | [
"for",
"(",
"spider",
"listener",
"l",
":",
"listeners",
")",
"{",
"l",
"spider",
"complete",
"(",
"successful",
")",
";",
"}"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"vk",
"bind",
"buffer",
"memory",
"2",
"k",
"h",
"r",
"bind",
"buffer",
"memory",
"2",
"k",
"h",
"r",
"}"
] | [
"long",
"function",
"address",
"=",
"device",
"get",
"capabilities",
"(",
")",
"vk",
"bind",
"buffer",
"memory",
"2",
"k",
"h",
"r",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"}",
"return",
"call",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"device",
"address",
"(",
")",
",",
"bind",
"info",
"count",
",",
"p",
"bind",
"infos",
")",
";"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"vk",
"bind",
"image",
"memory",
"2",
"k",
"h",
"r",
"bind",
"image",
"memory",
"2",
"k",
"h",
"r",
"}"
] | [
"long",
"function",
"address",
"=",
"device",
"get",
"capabilities",
"(",
")",
"vk",
"bind",
"image",
"memory",
"2",
"k",
"h",
"r",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"}",
"return",
"call",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"device",
"address",
"(",
")",
",",
"bind",
"info",
"count",
",",
"p",
"bind",
"infos",
")",
";"
] |
[
"uploads",
"the",
"file",
"to",
"the",
"shared",
"cache",
"under",
"a",
"temporary",
"name",
"and",
"returns",
"the",
"result"
] | [
"return",
"file",
"util",
"copy",
"(",
"local",
"fs",
",",
"source",
"path",
",",
"fs",
",",
"temp",
"path",
",",
"false",
",",
"conf",
")",
";"
] |
[
"get",
"a",
"list",
"of",
"all",
"available",
"repository",
"handlers"
] | [
"array",
"list",
"<",
"class",
"<",
"?",
"extends",
"repository",
">",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"repositories",
"length",
")",
";",
"for",
"(",
"int",
"i",
"=",
"repositories",
"length",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"list",
"add",
"(",
"repositories",
"[",
"i",
"]",
"get",
"class",
"(",
")",
")",
";",
"}",
"return",
"list",
";"
] |
[
"returns",
"a",
"repository",
"for",
"the",
"given",
"file",
"or",
"null",
"if",
"no",
"repository",
"was",
"found"
] | [
"return",
"get",
"repository",
"(",
"new",
"file",
"(",
"info",
"get",
"directory",
"name",
"(",
")",
")",
",",
"interactive",
")",
";"
] |
[
"removes",
"keys",
"from",
"the",
"provided",
"collection",
"which",
"are",
"contained",
"in",
"the",
"partition",
"record",
"store"
] | [
"if",
"(",
"keys",
"=",
"=",
"null",
"|",
"|",
"keys",
"is",
"empty",
"(",
")",
")",
"{",
"return",
";",
"}",
"storage",
"storage",
"=",
"record",
"store",
"get",
"storage",
"(",
")",
";",
"iterator",
"<",
"data",
">",
"iterator",
"=",
"keys",
"iterator",
"(",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"data",
"key",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"storage",
"contains",
"key",
"(",
"key",
")",
")",
"{",
"iterator",
"remove",
"(",
")",
";",
"}",
"}"
] |
[
"init",
"partition"
] | [
"if",
"(",
"partition",
"key",
"!",
"=",
"null",
")",
"{",
"init",
"rows",
"(",
"partition",
"key",
",",
"row",
"type",
",",
"est",
"sparsity",
")",
";",
"}"
] |
[
"direct",
"plus",
"to",
"rows",
"in",
"this",
"partition"
] | [
"start",
"update",
"(",
")",
";",
"try",
"{",
"int",
"row",
"num",
"=",
"buf",
"read",
"int",
"(",
")",
";",
"int",
"row",
"id",
";",
"row",
"type",
"row",
"type",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"row",
"num",
";",
"i",
"+",
"+",
")",
"{",
"row",
"id",
"=",
"buf",
"read",
"int",
"(",
")",
";",
"row",
"type",
"=",
"row",
"type",
"value",
"of",
"(",
"buf",
"read",
"int",
"(",
")",
")",
";",
"server",
"row",
"row",
"=",
"get",
"row",
"(",
"row",
"id",
")",
";",
"row",
"update",
"(",
"row",
"type",
",",
"buf",
",",
"op",
")",
";",
"}",
"}",
"finally",
"{",
"end",
"update",
"(",
")",
";",
"}"
] |
[
"update",
"the",
"partition",
"use",
"psf"
] | [
"start",
"update",
"(",
")",
";",
"try",
"{",
"func",
"partition",
"update",
"(",
"part",
"param",
")",
";",
"}",
"finally",
"{",
"end",
"update",
"(",
")",
";",
"}"
] |
[
"replace",
"the",
"row",
"in",
"the",
"partition"
] | [
"server",
"row",
"old",
"row",
"split",
"=",
"rows",
"get",
"row",
"(",
"row",
"split",
"get",
"row",
"id",
"(",
")",
")",
";",
"if",
"(",
"old",
"row",
"split",
"=",
"=",
"null",
"|",
"|",
"row",
"split",
"get",
"clock",
"(",
")",
">",
"old",
"row",
"split",
"get",
"clock",
"(",
")",
"|",
"|",
"row",
"split",
"get",
"row",
"version",
"(",
")",
">",
"old",
"row",
"split",
"get",
"row",
"version",
"(",
")",
")",
"{",
"rows",
"put",
"row",
"(",
"row",
"split",
"get",
"row",
"id",
"(",
")",
",",
"row",
"split",
")",
";",
"}"
] |
[
"gets",
"specified",
"row",
"by",
"row",
"index"
] | [
"return",
"rows",
"get",
"row",
"(",
"row",
"index",
")",
";"
] |
[
"get",
"a",
"batch",
"rows"
] | [
"if",
"(",
"row",
"indexes",
"=",
"=",
"null",
"|",
"|",
"row",
"indexes",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"}",
"int",
"size",
"=",
"row",
"indexes",
"size",
"(",
")",
";",
"list",
"<",
"server",
"row",
">",
"rows",
"=",
"new",
"array",
"list",
"<",
"server",
"row",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"rows",
"add",
"(",
"this",
"rows",
"get",
"row",
"(",
"i",
")",
")",
";",
"}",
"return",
"rows",
";"
] |
[
"reset",
"rows"
] | [
"iterator",
"<",
"map",
"entry",
"<",
"integer",
",",
"server",
"row",
">",
">",
"iter",
"=",
"rows",
"iterator",
"(",
")",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"server",
"row",
"row",
"=",
"iter",
"next",
"(",
")",
"get",
"value",
"(",
")",
";",
"row",
"reset",
"(",
")",
";",
"}"
] |
[
"save",
"a",
"matrix",
"partition",
"to",
"file"
] | [
"save",
"(",
"output",
",",
"null",
")",
";"
] |
[
"save",
"a",
"matrix",
"partition",
"to",
"file"
] | [
"save",
"(",
"output",
",",
"partition",
"meta",
",",
"null",
")",
";"
] |
[
"save",
"a",
"matrix",
"partition",
"to",
"file"
] | [
"if",
"(",
"row",
"indexes",
"=",
"=",
"null",
"|",
"|",
"row",
"indexes",
"is",
"empty",
"(",
")",
")",
"{",
"iterator",
"<",
"map",
"entry",
"<",
"integer",
",",
"server",
"row",
">",
">",
"iter",
"=",
"rows",
"iterator",
"(",
")",
";",
"row",
"indexes",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"row",
"indexes",
"add",
"(",
"iter",
"next",
"(",
")",
"get",
"key",
"(",
")",
")",
";",
"}",
"}",
"else",
"{",
"row",
"indexes",
"=",
"filter",
"(",
"row",
"indexes",
")",
";",
"}",
"f",
"s",
"data",
"output",
"stream",
"data",
"output",
"stream",
"=",
"new",
"f",
"s",
"data",
"output",
"stream",
"(",
"output",
",",
"null",
",",
"partition",
"meta",
"!",
"=",
"null",
"?",
"partition",
"meta",
"get",
"offset",
"(",
")",
":",
"0",
")",
";",
"data",
"output",
"stream",
"write",
"int",
"(",
"row",
"indexes",
"size",
"(",
")",
")",
";",
"long",
"offset",
";",
"for",
"(",
"int",
"row",
"index",
":",
"row",
"indexes",
")",
"{",
"offset",
"=",
"data",
"output",
"stream",
"get",
"pos",
"(",
")",
";",
"data",
"output",
"stream",
"write",
"int",
"(",
"row",
"index",
")",
";",
"server",
"row",
"row",
"=",
"rows",
"get",
"row",
"(",
"row",
"index",
")",
";",
"row",
"write",
"to",
"(",
"data",
"output",
"stream",
")",
";",
"if",
"(",
"partition",
"meta",
"!",
"=",
"null",
")",
"{",
"partition",
"meta",
"set",
"row",
"meta",
"(",
"new",
"model",
"partition",
"meta",
"row",
"offset",
"(",
"row",
"index",
",",
"offset",
")",
")",
";",
"}",
"}"
] |
[
"load",
"partition",
"from",
"model",
"file"
] | [
"try",
"{",
"int",
"size",
"=",
"input",
"read",
"int",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"{",
"int",
"row",
"id",
"=",
"input",
"read",
"int",
"(",
")",
";",
"server",
"row",
"server",
"row",
"=",
"rows",
"get",
"row",
"(",
"row",
"id",
")",
";",
"server",
"row",
"read",
"from",
"(",
"input",
")",
";",
"}",
"}",
"finally",
"{",
"set",
"state",
"(",
"partition",
"state",
"read",
"and",
"write",
")",
";",
"}"
] |
[
"todo",
":",
"dynamic",
"add",
"/",
"delete",
"row"
] | [
"if",
"(",
"partition",
"key",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"partition",
"key",
"serialize",
"(",
"buf",
")",
";",
"buf",
"write",
"int",
"(",
"row",
"type",
"get",
"number",
"(",
")",
")",
";",
"buf",
"write",
"int",
"(",
"rows",
"row",
"num",
"(",
")",
")",
";",
"iterator",
"<",
"map",
"entry",
"<",
"integer",
",",
"server",
"row",
">",
">",
"iter",
"=",
"rows",
"iterator",
"(",
")",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"server",
"row",
"row",
"=",
"iter",
"next",
"(",
")",
"get",
"value",
"(",
")",
";",
"buf",
"write",
"int",
"(",
"row",
"get",
"row",
"type",
"(",
")",
"get",
"number",
"(",
")",
")",
";",
"row",
"serialize",
"(",
"buf",
")",
";",
"}"
] |
[
"the",
"unique",
"id",
"of",
"your",
"amazon",
"pinpoint",
"application"
] | [
"set",
"application",
"id",
"(",
"application",
"id",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"final",
"resource",
"[",
"]",
"resources",
"=",
"app",
"context",
"get",
"resources",
"(",
")",
";",
"event",
"get",
"presentation",
"(",
")",
"set",
"visible",
"(",
"true",
")",
";",
"event",
"get",
"presentation",
"(",
")",
"set",
"enabled",
"(",
"resources",
"!",
"=",
"null",
"&",
"&",
"resources",
"length",
"=",
"=",
"1",
")",
";"
] |
[
"we",
"keep",
"track",
"of",
"first",
"char",
"of",
"the",
"chain",
"and",
"the",
"end",
"compare",
"that",
"with",
"last",
"char",
"of",
"last",
"element",
"of",
"the",
"chain"
] | [
"if",
"(",
"input",
"length",
"=",
"=",
"result",
"size",
"(",
")",
")",
"{",
"string",
"str",
"=",
"result",
"get",
"(",
"result",
"size",
"(",
")",
"-",
"1",
")",
";",
"if",
"(",
"first",
"char",
"=",
"=",
"str",
"char",
"at",
"(",
"str",
"length",
"(",
")",
"-",
"1",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"string",
"str",
"=",
"result",
"get",
"(",
"result",
"size",
"(",
")",
"-",
"1",
")",
";",
"char",
"last",
"char",
"=",
"str",
"char",
"at",
"(",
"str",
"length",
"(",
")",
"-",
"1",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"input",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"used",
"[",
"i",
"]",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"last",
"char",
"=",
"=",
"input",
"[",
"i",
"]",
"char",
"at",
"(",
"0",
")",
")",
"{",
"used",
"[",
"i",
"]",
"=",
"true",
";",
"result",
"add",
"(",
"input",
"[",
"i",
"]",
")",
";",
"boolean",
"r",
"=",
"form",
"circle",
"(",
"input",
",",
"result",
",",
"used",
",",
"first",
"char",
")",
";",
"if",
"(",
"r",
")",
"{",
"return",
"true",
";",
"}",
"used",
"[",
"i",
"]",
"=",
"false",
";",
"result",
"remove",
"(",
"result",
"size",
"(",
")",
"-",
"1",
")",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"request",
"the",
"triangles",
"(",
"in",
"world",
"coord",
"space",
")",
"of",
"a",
"terrain",
"block",
"that",
"correspond",
"to",
"the",
"given",
"grid",
"location",
"the",
"triangles",
"are",
"stored",
"in",
"the",
"class",
"fields",
"grid",
"tri",
"a",
"and",
"grid",
"tri",
"b"
] | [
"calc",
"vec",
"1",
"set",
"(",
"grid",
"x",
",",
"0",
",",
"grid",
"y",
")",
";",
"int",
"index",
"=",
"find",
"closest",
"height",
"index",
"(",
"calc",
"vec",
"1",
",",
"patch",
")",
";",
"if",
"(",
"index",
"=",
"=",
"-",
"1",
")",
"return",
"false",
";",
"triangle",
"[",
"]",
"t",
"=",
"patch",
"get",
"grid",
"triangles",
"(",
"grid",
"x",
",",
"grid",
"y",
")",
";",
"if",
"(",
"t",
"=",
"=",
"null",
"|",
"|",
"t",
"length",
"=",
"=",
"0",
")",
"return",
"false",
";",
"grid",
"tri",
"a",
"set",
"1",
"(",
"t",
"[",
"0",
"]",
"get",
"1",
"(",
")",
")",
";",
"grid",
"tri",
"a",
"set",
"2",
"(",
"t",
"[",
"0",
"]",
"get",
"2",
"(",
")",
")",
";",
"grid",
"tri",
"a",
"set",
"3",
"(",
"t",
"[",
"0",
"]",
"get",
"3",
"(",
")",
")",
";",
"grid",
"tri",
"b",
"set",
"1",
"(",
"t",
"[",
"1",
"]",
"get",
"1",
"(",
")",
")",
";",
"grid",
"tri",
"b",
"set",
"2",
"(",
"t",
"[",
"1",
"]",
"get",
"2",
"(",
")",
")",
";",
"grid",
"tri",
"b",
"set",
"3",
"(",
"t",
"[",
"1",
"]",
"get",
"3",
"(",
")",
")",
";",
"return",
"true",
";"
] |
[
"finds",
"the",
"closest",
"height",
"point",
"to",
"a",
"position",
"will",
"always",
"be",
"left",
"/",
"above",
"that",
"position"
] | [
"int",
"x",
"=",
"(",
"int",
")",
"position",
"x",
";",
"int",
"z",
"=",
"(",
"int",
")",
"position",
"z",
";",
"if",
"(",
"x",
"<",
"0",
"|",
"|",
"x",
">",
"=",
"patch",
"get",
"size",
"(",
")",
"-",
"1",
")",
"{",
"return",
"-",
"1",
";",
"}",
"if",
"(",
"z",
"<",
"0",
"|",
"|",
"z",
">",
"=",
"patch",
"get",
"size",
"(",
")",
"-",
"1",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"z",
"*",
"patch",
"get",
"size",
"(",
")",
"+",
"x",
";"
] |
[
"replace",
"the",
"comparator",
"at",
"the",
"given",
"index",
"using",
"the",
"given",
"sort",
"order"
] | [
"this",
"comparators",
"set",
"(",
"index",
",",
"new",
"invertible",
"comparator",
"<",
">",
"(",
"comparator",
",",
"ascending",
")",
")",
";"
] |
[
"invert",
"the",
"sort",
"order",
"of",
"each",
"sort",
"definition",
"contained",
"by",
"this",
"compound",
"comparator"
] | [
"for",
"(",
"invertible",
"comparator",
"comparator",
":",
"this",
"comparators",
")",
"{",
"comparator",
"invert",
"order",
"(",
")",
";",
"}"
] |
[
"invert",
"the",
"sort",
"order",
"of",
"the",
"sort",
"definition",
"at",
"the",
"specified",
"index"
] | [
"this",
"comparators",
"get",
"(",
"index",
")",
"invert",
"order",
"(",
")",
";"
] |
[
"change",
"the",
"sort",
"order",
"at",
"the",
"given",
"index",
"to",
"ascending"
] | [
"this",
"comparators",
"get",
"(",
"index",
")",
"set",
"ascending",
"(",
"true",
")",
";"
] |
[
"change",
"the",
"sort",
"order",
"at",
"the",
"given",
"index",
"to",
"descending",
"sort"
] | [
"this",
"comparators",
"get",
"(",
"index",
")",
"set",
"ascending",
"(",
"false",
")",
";"
] |
[
"returns",
"the",
"number",
"of",
"aggregated",
"comparators"
] | [
"return",
"this",
"comparators",
"size",
"(",
")",
";"
] |
[
"{"
] | [
"event",
"get",
"presentation",
"(",
")",
"set",
"enabled",
"and",
"visible",
"(",
"editor",
"agent",
"get",
"active",
"editor",
"(",
")",
"!",
"=",
"null",
")",
";"
] |
[
"{"
] | [
"editor",
"agent",
"close",
"editor",
"(",
"editor",
"agent",
"get",
"active",
"editor",
"(",
")",
")",
";"
] |
[
"{"
] | [
"return",
"format",
"format",
"(",
"(",
"big",
"decimal",
")",
"an",
"object",
")",
";"
] |
[
"returns",
"the",
"{",
"@",
"link",
"term",
"states",
"}",
"passed",
"to",
"the",
"constructor",
"or",
"null",
"if",
"it",
"was",
"not",
"passed"
] | [
"return",
"per",
"reader",
"term",
"state",
";"
] |
[
"returns",
"true",
"iff",
"<",
"code",
">",
"other",
"<",
"/",
"code",
">",
"is",
"equal",
"to",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">"
] | [
"return",
"same",
"class",
"as",
"(",
"other",
")",
"&",
"&",
"term",
"equals",
"(",
"(",
"(",
"term",
"query",
")",
"other",
")",
"term",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"locales",
"that",
"the",
"intent",
"supports",
"<",
"/",
"p",
">"
] | [
"set",
"locale",
"(",
"locale",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"locales",
"that",
"the",
"intent",
"supports",
"<",
"/",
"p",
">"
] | [
"this",
"locale",
"=",
"locale",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"substring",
"to",
"match",
"in",
"built",
"-",
"in",
"intent",
"signatures",
"an",
"intent",
"will",
"be",
"returned",
"if",
"any",
"part",
"of",
"its",
"signature",
"matches",
"the",
"substring",
"for",
"example",
"xyz",
"matches",
"both",
"xyzabc",
"and",
"abcxyz",
"to",
"find",
"the",
"signature",
"for",
"an",
"intent",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"developer",
"amazon",
"com",
"/",
"public",
"/",
"solutions",
"/",
"alexa",
"/",
"alexa",
"-",
"skills",
"-",
"kit",
"/",
"docs",
"/",
"built",
"-",
"in",
"-",
"intent",
"-",
"ref",
"/",
"standard",
"-",
"intents",
">",
"standard",
"built",
"-",
"in",
"intents",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"alexa",
"skills",
"kit",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
] | [
"set",
"signature",
"contains",
"(",
"signature",
"contains",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"pagination",
"token",
"that",
"fetches",
"the",
"next",
"page",
"of",
"intents",
"if",
"this",
"api",
"call",
"is",
"truncated",
"amazon",
"lex",
"returns",
"a",
"pagination",
"token",
"in",
"the",
"response",
"to",
"fetch",
"the",
"next",
"page",
"of",
"intents",
"use",
"the",
"pagination",
"token",
"in",
"the",
"next",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"intents",
"to",
"return",
"in",
"the",
"response",
"the",
"default",
"is",
"10",
"<",
"/",
"p",
">"
] | [
"set",
"max",
"results",
"(",
"max",
"results",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.