docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"a",
"i",
"file",
"tell",
"proc",
"create",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"filesizeproc",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"a",
"i",
"file",
"seek",
"create",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"seekproc",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"a",
"i",
"file",
"flush",
"proc",
"create",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"flushproc",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"userdata",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"readproc",
",",
"value",
"address",
"(",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"writeproc",
",",
"value",
"address",
"(",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"tellproc",
",",
"value",
"address",
"(",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"filesizeproc",
",",
"value",
"address",
"(",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"seekproc",
",",
"value",
"address",
"(",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"flushproc",
",",
"value",
"address",
"(",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"userdata",
",",
"value",
")",
";"
] |
[
"validates",
"pointer",
"members",
"that",
"should",
"not",
"be",
"{",
"@",
"code",
"null",
"}"
] | [
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"readproc",
")",
")",
";",
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"writeproc",
")",
")",
";",
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"tellproc",
")",
")",
";",
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"filesizeproc",
")",
")",
";",
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"seekproc",
")",
")",
";",
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"a",
"i",
"file",
"flushproc",
")",
")",
";"
] |
[
"zip",
"the",
"contents",
"of",
"directory",
"into",
"the",
"file",
"indicated",
"by",
"output",
"zip",
"file",
"sub",
"directories",
"are",
"skipped"
] | [
"return",
"zip",
"(",
"directory",
",",
"output",
"zip",
"file",
",",
"false",
")",
";"
] |
[
"unzip",
"the",
"byte",
"source",
"to",
"the",
"output",
"directory",
"if",
"cache",
"locally",
"is",
"true",
"the",
"byte",
"source",
"is",
"cached",
"to",
"local",
"disk",
"before",
"unzipping",
"this",
"may",
"cause",
"more",
"predictable",
"behavior",
"than",
"trying",
"to",
"unzip",
"a",
"large",
"file",
"directly",
"off",
"a",
"network",
"stream",
"for",
"example"
] | [
"return",
"unzip",
"(",
"byte",
"source",
",",
"out",
"dir",
",",
"file",
"utils",
"is",
"exception",
",",
"cache",
"locally",
")",
";"
] |
[
"unzip",
"from",
"the",
"input",
"stream",
"to",
"the",
"output",
"directory",
"using",
"the",
"entry",
"s",
"file",
"name",
"as",
"the",
"file",
"name",
"in",
"the",
"output",
"directory",
"the",
"behavior",
"of",
"directories",
"in",
"the",
"input",
"stream",
"s",
"zip",
"is",
"undefined",
"if",
"possible",
"it",
"is",
"recommended",
"to",
"use",
"unzip",
"(",
"byte",
"stream",
"file",
")",
"instead"
] | [
"try",
"(",
"final",
"zip",
"input",
"stream",
"zip",
"in",
"=",
"new",
"zip",
"input",
"stream",
"(",
"in",
")",
")",
"{",
"final",
"file",
"utils",
"file",
"copy",
"result",
"result",
"=",
"new",
"file",
"utils",
"file",
"copy",
"result",
"(",
")",
";",
"zip",
"entry",
"entry",
";",
"while",
"(",
"(",
"entry",
"=",
"zip",
"in",
"get",
"next",
"entry",
"(",
")",
")",
"!",
"=",
"null",
")",
"{",
"final",
"file",
"file",
"=",
"new",
"file",
"(",
"out",
"dir",
",",
"entry",
"get",
"name",
"(",
")",
")",
";",
"validate",
"zip",
"output",
"file",
"(",
"\"",
"\"",
",",
"file",
",",
"out",
"dir",
")",
";",
"native",
"i",
"o",
"chunked",
"copy",
"(",
"zip",
"in",
",",
"file",
")",
";",
"result",
"add",
"file",
"(",
"file",
")",
";",
"zip",
"in",
"close",
"entry",
"(",
")",
";",
"}",
"return",
"result",
";",
"}"
] |
[
"gunzip",
"the",
"file",
"to",
"the",
"output",
"file"
] | [
"return",
"gunzip",
"(",
"files",
"as",
"byte",
"source",
"(",
"pulled",
"file",
")",
",",
"out",
"file",
")",
";"
] |
[
"unzips",
"the",
"input",
"stream",
"via",
"a",
"gzip",
"filter",
"use",
"gunzip",
"(",
"byte",
"source",
"file",
"predicate",
")",
"if",
"possible"
] | [
"try",
"(",
"g",
"z",
"i",
"p",
"input",
"stream",
"gzip",
"input",
"stream",
"=",
"gzip",
"input",
"stream",
"(",
"in",
")",
")",
"{",
"native",
"i",
"o",
"chunked",
"copy",
"(",
"gzip",
"input",
"stream",
",",
"out",
"file",
")",
";",
"return",
"new",
"file",
"utils",
"file",
"copy",
"result",
"(",
"out",
"file",
")",
";",
"}"
] |
[
"gunzip",
"from",
"the",
"source",
"stream",
"to",
"the",
"destination",
"stream"
] | [
"try",
"(",
"g",
"z",
"i",
"p",
"input",
"stream",
"gzip",
"input",
"stream",
"=",
"gzip",
"input",
"stream",
"(",
"in",
")",
")",
"{",
"final",
"long",
"result",
"=",
"byte",
"streams",
"copy",
"(",
"gzip",
"input",
"stream",
",",
"out",
")",
";",
"out",
"flush",
"(",
")",
";",
"return",
"result",
";",
"}",
"finally",
"{",
"out",
"close",
"(",
")",
";",
"}"
] |
[
"a",
"gunzip",
"function",
"to",
"store",
"locally"
] | [
"return",
"file",
"utils",
"retry",
"copy",
"(",
"new",
"byte",
"source",
"(",
")",
"{",
"@",
"override",
"public",
"input",
"stream",
"open",
"stream",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"gzip",
"input",
"stream",
"(",
"in",
"open",
"stream",
"(",
")",
")",
";",
"}",
"}",
",",
"out",
"file",
",",
"should",
"retry",
",",
"default",
"retry",
"count",
")",
";"
] |
[
"gunzip",
"from",
"the",
"input",
"stream",
"to",
"the",
"output",
"file"
] | [
"return",
"gunzip",
"(",
"in",
",",
"out",
"file",
",",
"file",
"utils",
"is",
"exception",
")",
";"
] |
[
"copy",
"input",
"stream",
"to",
"out",
"while",
"wrapping",
"out",
"in",
"a",
"g",
"z",
"i",
"p",
"output",
"stream",
"closes",
"both",
"input",
"and",
"output"
] | [
"try",
"(",
"g",
"z",
"i",
"p",
"output",
"stream",
"output",
"stream",
"=",
"new",
"g",
"z",
"i",
"p",
"output",
"stream",
"(",
"out",
")",
")",
"{",
"final",
"long",
"result",
"=",
"byte",
"streams",
"copy",
"(",
"input",
"stream",
",",
"output",
"stream",
")",
";",
"out",
"flush",
"(",
")",
";",
"return",
"result",
";",
"}",
"finally",
"{",
"input",
"stream",
"close",
"(",
")",
";",
"}"
] |
[
"gzips",
"the",
"input",
"file",
"to",
"the",
"output"
] | [
"gzip",
"(",
"files",
"as",
"byte",
"source",
"(",
"in",
"file",
")",
",",
"files",
"as",
"byte",
"sink",
"(",
"out",
"file",
")",
",",
"should",
"retry",
")",
";",
"return",
"new",
"file",
"utils",
"file",
"copy",
"result",
"(",
"out",
"file",
")",
";"
] |
[
"g",
"zip",
"compress",
"the",
"contents",
"of",
"in",
"file",
"into",
"out",
"file"
] | [
"return",
"gzip",
"(",
"in",
"file",
",",
"out",
"file",
",",
"file",
"utils",
"is",
"exception",
")",
";"
] |
[
"checks",
"to",
"see",
"if",
"f",
"name",
"is",
"a",
"valid",
"name",
"for",
"a",
"*",
"gz",
"file"
] | [
"if",
"(",
"strings",
"is",
"null",
"or",
"empty",
"(",
"f",
"name",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"f",
"name",
"ends",
"with",
"(",
"gz",
"suffix",
")",
"&",
"&",
"f",
"name",
"length",
"(",
")",
">",
"gz",
"suffix",
"length",
"(",
")",
";"
] |
[
"returns",
"a",
"mapping",
"of",
"the",
"final",
"component",
"of",
"each",
"path",
"to",
"the",
"corresponding",
"path",
"instance",
"this",
"assumes",
"that",
"every",
"given",
"path",
"has",
"a",
"unique",
"string",
"in",
"the",
"final",
"path",
"component",
"which",
"is",
"true",
"for",
"these",
"tests"
] | [
"map",
"<",
"string",
",",
"path",
">",
"map",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"path",
">",
"(",
")",
";",
"for",
"(",
"path",
"path",
":",
"paths",
")",
"{",
"map",
"put",
"(",
"path",
"get",
"name",
"(",
")",
",",
"path",
")",
";",
"}",
"return",
"map",
";"
] |
[
"/",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"/",
"*",
"actual",
"deserializer",
"implementations",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"return",
"null",
"node",
"get",
"instance",
"(",
")",
";"
] |
[
"implementation",
"that",
"will",
"produce",
"types",
"of",
"any",
"json",
"nodes",
";",
"not",
"just",
"one",
"deserializer",
"is",
"registered",
"to",
"handle",
"(",
"in",
"case",
"of",
"more",
"specialized",
"handler",
")",
"overridden",
"by",
"typed",
"sub",
"-",
"classes",
"for",
"more",
"thorough",
"checking"
] | [
"json",
"token",
"t",
"=",
"p",
"current",
"token",
"(",
")",
";",
"if",
"(",
"t",
"=",
"=",
"json",
"token",
"start",
"object",
")",
"{",
"return",
"deserialize",
"object",
"(",
"p",
",",
"ctxt",
",",
"ctxt",
"get",
"node",
"factory",
"(",
")",
")",
";",
"}",
"if",
"(",
"t",
"=",
"=",
"json",
"token",
"start",
"array",
")",
"{",
"return",
"deserialize",
"array",
"(",
"p",
",",
"ctxt",
",",
"ctxt",
"get",
"node",
"factory",
"(",
")",
")",
";",
"}",
"return",
"deserialize",
"any",
"(",
"p",
",",
"ctxt",
",",
"ctxt",
"get",
"node",
"factory",
"(",
")",
")",
";"
] |
[
"variant",
"needed",
"to",
"support",
"both",
"root",
"-",
"level",
"update",
"value",
"(",
")",
"and",
"merging"
] | [
"if",
"(",
"p",
"is",
"expected",
"start",
"object",
"token",
"(",
")",
"|",
"|",
"p",
"has",
"token",
"(",
"json",
"token",
"field",
"name",
")",
")",
"{",
"return",
"(",
"object",
"node",
")",
"update",
"object",
"(",
"p",
",",
"ctxt",
",",
"(",
"object",
"node",
")",
"node",
")",
";",
"}",
"return",
"(",
"object",
"node",
")",
"ctxt",
"handle",
"unexpected",
"token",
"(",
"object",
"node",
"class",
",",
"p",
")",
";"
] |
[
"variant",
"needed",
"to",
"support",
"both",
"root",
"-",
"level",
"update",
"value",
"(",
")",
"and",
"merging"
] | [
"if",
"(",
"p",
"is",
"expected",
"start",
"array",
"token",
"(",
")",
")",
"{",
"return",
"(",
"array",
"node",
")",
"update",
"array",
"(",
"p",
",",
"ctxt",
",",
"(",
"array",
"node",
")",
"node",
")",
";",
"}",
"return",
"(",
"array",
"node",
")",
"ctxt",
"handle",
"unexpected",
"token",
"(",
"array",
"node",
"class",
",",
"p",
")",
";"
] |
[
"alternate",
"deserialization",
"method",
"that",
"is",
"to",
"update",
"existing",
"{"
] | [
"final",
"json",
"node",
"factory",
"node",
"factory",
"=",
"ctxt",
"get",
"node",
"factory",
"(",
")",
";",
"while",
"(",
"true",
")",
"{",
"json",
"token",
"t",
"=",
"p",
"next",
"token",
"(",
")",
";",
"switch",
"(",
"t",
"id",
"(",
")",
")",
"{",
"case",
"json",
"token",
"id",
"id",
"start",
"object",
":",
"node",
"add",
"(",
"deserialize",
"object",
"(",
"p",
",",
"ctxt",
",",
"node",
"factory",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"start",
"array",
":",
"node",
"add",
"(",
"deserialize",
"array",
"(",
"p",
",",
"ctxt",
",",
"node",
"factory",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"end",
"array",
":",
"return",
"node",
";",
"case",
"json",
"token",
"id",
"id",
"embedded",
"object",
":",
"node",
"add",
"(",
"from",
"embedded",
"(",
"p",
",",
"ctxt",
",",
"node",
"factory",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"string",
":",
"node",
"add",
"(",
"node",
"factory",
"text",
"node",
"(",
"p",
"get",
"text",
"(",
")",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"number",
"int",
":",
"node",
"add",
"(",
"from",
"int",
"(",
"p",
",",
"ctxt",
",",
"node",
"factory",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"true",
":",
"node",
"add",
"(",
"node",
"factory",
"boolean",
"node",
"(",
"true",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"false",
":",
"node",
"add",
"(",
"node",
"factory",
"boolean",
"node",
"(",
"false",
")",
")",
";",
"break",
";",
"case",
"json",
"token",
"id",
"id",
"null",
":",
"node",
"add",
"(",
"node",
"factory",
"null",
"node",
"(",
")",
")",
";",
"break",
";",
"default",
":",
"node",
"add",
"(",
"deserialize",
"any",
"(",
"p",
",",
"ctxt",
",",
"node",
"factory",
")",
")",
";",
"break",
";",
"}",
"}"
] |
[
"converts",
"map",
"s",
"value",
"set",
"to",
"an",
"array",
"{",
"@",
"code",
"keys",
"}",
"parameter",
"specifies",
"requested",
"elements",
"and",
"their",
"order"
] | [
"final",
"object",
"[",
"]",
"ret",
"=",
"new",
"object",
"[",
"keys",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"keys",
"length",
";",
"+",
"+",
"i",
")",
"{",
"ret",
"[",
"i",
"]",
"=",
"data",
"get",
"(",
"keys",
"[",
"i",
"]",
")",
";",
"}",
"return",
"ret",
";"
] |
[
"returns",
"a",
"copy",
"of",
"the",
"output",
"deps",
"using",
"the",
"same",
"key",
"and",
"value",
"ordering",
"as",
"the",
"input",
"deps"
] | [
"iterator",
"<",
"attribute",
"and",
"label",
">",
"iterator",
"=",
"attributes",
"and",
"labels",
"iterator",
"(",
")",
";",
"ordered",
"set",
"multimap",
"<",
"attribute",
",",
"dependency",
">",
"result",
"=",
"ordered",
"set",
"multimap",
"create",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"attribute",
",",
"dependency",
">",
"deps",
"entry",
":",
"original",
"deps",
"entries",
"(",
")",
")",
"{",
"attribute",
"and",
"label",
"attr",
"and",
"label",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"deps",
"entry",
"get",
"value",
"(",
")",
"has",
"explicit",
"configuration",
"(",
")",
")",
"{",
"result",
"put",
"(",
"attr",
"and",
"label",
"attribute",
",",
"deps",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}",
"else",
"{",
"collection",
"<",
"dependency",
">",
"resolved",
"dep",
"with",
"split",
"=",
"resolved",
"deps",
"get",
"(",
"attr",
"and",
"label",
")",
";",
"verify",
"verify",
"(",
"!",
"resolved",
"dep",
"with",
"split",
"is",
"empty",
"(",
")",
")",
";",
"if",
"(",
"resolved",
"dep",
"with",
"split",
"size",
"(",
")",
">",
"1",
")",
"{",
"list",
"<",
"dependency",
">",
"sorted",
"split",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"resolved",
"dep",
"with",
"split",
")",
";",
"collections",
"sort",
"(",
"sorted",
"split",
"list",
",",
"split",
"dep",
"ordering",
")",
";",
"resolved",
"dep",
"with",
"split",
"=",
"sorted",
"split",
"list",
";",
"}",
"result",
"put",
"all",
"(",
"deps",
"entry",
"get",
"key",
"(",
")",
",",
"resolved",
"dep",
"with",
"split",
")",
";",
"}",
"}",
"return",
"result",
";"
] |
[
"specifies",
"the",
"solver",
"id",
"to",
"user",
"for",
"the",
"solver",
"instance",
"key"
] | [
"this",
"solver",
"id",
"=",
"solver",
"id",
";"
] |
[
"creates",
"a",
"symlink",
"using",
"platform",
"specific",
"implementations",
"if",
"there",
"are",
"some"
] | [
"more",
"paths",
"create",
"sym",
"link",
"(",
"win",
"f",
"s",
",",
"sym",
"link",
",",
"real",
"file",
")",
";"
] |
[
"we",
"need",
"to",
"delete",
"all",
"metrics",
"from",
"accumulator",
"before",
"running",
"another",
"test"
] | [
"acc",
"factory",
"clear",
"(",
")",
";"
] |
[
"get",
"the",
"job",
"name"
] | [
"return",
"datum",
"get",
"job",
"name",
"(",
")",
"to",
"string",
"(",
")",
";"
] |
[
"get",
"the",
"job",
"queue",
"name"
] | [
"if",
"(",
"datum",
"get",
"job",
"queue",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"datum",
"get",
"job",
"queue",
"name",
"(",
")",
"to",
"string",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"user",
"name"
] | [
"return",
"datum",
"get",
"user",
"name",
"(",
")",
"to",
"string",
"(",
")",
";"
] |
[
"get",
"the",
"path",
"for",
"the",
"job",
"configuration",
"file"
] | [
"return",
"datum",
"get",
"job",
"conf",
"path",
"(",
")",
"to",
"string",
"(",
")",
";"
] |
[
"get",
"the",
"acls",
"configured",
"for",
"the",
"job",
"*"
] | [
"map",
"<",
"job",
"a",
"c",
"l",
",",
"access",
"control",
"list",
">",
"job",
"acls",
"=",
"new",
"hash",
"map",
"<",
"job",
"a",
"c",
"l",
",",
"access",
"control",
"list",
">",
"(",
")",
";",
"for",
"(",
"job",
"a",
"c",
"l",
"job",
"a",
"c",
"l",
":",
"job",
"a",
"c",
"l",
"values",
"(",
")",
")",
"{",
"utf",
"8",
"job",
"a",
"c",
"ls",
"utf",
"8",
"=",
"new",
"utf",
"8",
"(",
"job",
"a",
"c",
"l",
"get",
"acl",
"name",
"(",
")",
")",
";",
"if",
"(",
"datum",
"get",
"acls",
"(",
")",
"contains",
"key",
"(",
"job",
"a",
"c",
"ls",
"utf",
"8",
")",
")",
"{",
"job",
"acls",
"put",
"(",
"job",
"a",
"c",
"l",
",",
"new",
"access",
"control",
"list",
"(",
"datum",
"get",
"acls",
"(",
")",
"get",
"(",
"job",
"a",
"c",
"ls",
"utf",
"8",
")",
"to",
"string",
"(",
")",
")",
")",
";",
"}",
"}",
"return",
"job",
"acls",
";"
] |
[
"get",
"the",
"id",
"of",
"the",
"workflow"
] | [
"if",
"(",
"datum",
"get",
"workflow",
"id",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"datum",
"get",
"workflow",
"id",
"(",
")",
"to",
"string",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"name",
"of",
"the",
"workflow"
] | [
"if",
"(",
"datum",
"get",
"workflow",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"datum",
"get",
"workflow",
"name",
"(",
")",
"to",
"string",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"node",
"name",
"of",
"the",
"workflow"
] | [
"if",
"(",
"datum",
"get",
"workflow",
"node",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"datum",
"get",
"workflow",
"node",
"name",
"(",
")",
"to",
"string",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"adjacencies",
"of",
"the",
"workflow"
] | [
"if",
"(",
"datum",
"get",
"workflow",
"adjacencies",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"datum",
"get",
"workflow",
"adjacencies",
"(",
")",
"to",
"string",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"workflow",
"tags"
] | [
"if",
"(",
"datum",
"get",
"workflow",
"tags",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"datum",
"get",
"workflow",
"tags",
"(",
")",
"to",
"string",
"(",
")",
";",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"event",
"type"
] | [
"return",
"event",
"type",
"job",
"submitted",
";"
] |
[
"the",
"time",
"zone",
"specified",
"by",
"the",
"request",
"or",
"utc",
"if",
"none",
"was",
"specified"
] | [
"if",
"(",
"tz",
"=",
"=",
"null",
")",
"{",
"tz",
"=",
"time",
"zone",
"utils",
"parse",
"timezone",
"(",
"req",
"get",
"params",
"(",
")",
"get",
"(",
"common",
"params",
"tz",
")",
")",
";",
"}",
"return",
"tz",
";"
] |
[
"returns",
"all",
"members",
"with",
"their",
"offset",
"in",
"[",
"start",
"offset",
"end",
"offset",
")"
] | [
"final",
"array",
"list",
"<",
"type",
"member",
">",
"result",
"=",
"lists",
"new",
"array",
"list",
"(",
")",
";",
"for",
"(",
"final",
"type",
"member",
"member",
":",
"members",
")",
"{",
"if",
"(",
"member",
"get",
"bit",
"offset",
"(",
")",
"get",
"(",
")",
">",
"=",
"start",
"offset",
"&",
"&",
"member",
"get",
"bit",
"offset",
"(",
")",
"get",
"(",
")",
"<",
"end",
"offset",
")",
"{",
"result",
"add",
"(",
"member",
")",
";",
"}",
"}",
"return",
"result",
";"
] |
[
"marks",
"the",
"base",
"type",
"as",
"being",
"a",
"stack",
"frame"
] | [
"this",
"is",
"stack",
"frame",
"=",
"is",
"stack",
"frame",
";"
] |
[
"specifies",
"whether",
"this",
"type",
"is",
"able",
"to",
"represent",
"signed",
"numbers"
] | [
"this",
"signed",
"=",
"signed",
";"
] |
[
"returns",
"the",
"size",
"of",
"this",
"type",
"in",
"bytes",
"rounded",
"up",
"to",
"the",
"next",
"byte",
"boundary",
"if",
"necessary"
] | [
"return",
"(",
"get",
"bit",
"size",
"(",
")",
"+",
"7",
")",
"/",
"8",
";"
] |
[
"returns",
"whether",
"this",
"type",
"is",
"a",
"function",
"prototype"
] | [
"return",
"category",
"=",
"=",
"base",
"type",
"category",
"function",
"prototype",
";"
] |
[
"returns",
"the",
"member",
"with",
"the",
"largest",
"offset",
"or",
"null",
"if",
"this",
"type",
"has",
"no",
"members"
] | [
"return",
"members",
"is",
"empty",
"(",
")",
"?",
"null",
":",
"members",
"last",
"(",
")",
";"
] |
[
"returns",
"the",
"number",
"of",
"members",
"this",
"type",
"has"
] | [
"return",
"members",
"size",
"(",
")",
";"
] |
[
"returns",
"the",
"position",
"in",
"the",
"hierarchy",
"of",
"pointer",
"types",
"i",
"e",
"the",
"number",
"of",
"*",
"in",
"a",
"corresponding",
"c",
"type"
] | [
"return",
"computer",
"pointer",
"level",
"(",
"this",
")",
";"
] |
[
"returns",
"true",
"iff",
"this",
"type",
"has",
"any",
"members"
] | [
"return",
"members",
"size",
"(",
")",
">",
"0",
";"
] |
[
"returns",
"true",
"if",
"this",
"{",
"@",
"link",
"base",
"type",
"base",
"type",
"}",
"is",
"used",
"in",
"a",
"{",
"@",
"link",
"i",
"navi",
"function",
"function",
"}",
"as",
"a",
"stack",
"frame"
] | [
"return",
"is",
"stack",
"frame",
";"
] |
[
"returns",
"the",
"next",
"pointer",
"type",
"in",
"the",
"hierarchy",
"of",
"pointer",
"types",
"i",
"e",
"the",
"type",
"returned",
"has",
"one",
"more",
"level",
"of",
"indirection"
] | [
"return",
"pointed",
"to",
"by",
";"
] |
[
"returns",
"the",
"type",
"whose",
"level",
"of",
"pointer",
"indirection",
"is",
"one",
"less",
"than",
"the",
"current",
"type",
"e",
"g",
"if",
"the",
"current",
"type",
"is",
"int",
"*",
"we",
"return",
"int"
] | [
"return",
"points",
"to",
";"
] |
[
"repository",
"implementation",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"local",
"contained",
"c",
"=",
"lookup",
"id",
"(",
"search",
"id",
")",
";",
"if",
"(",
"c",
"=",
"=",
"null",
")",
"return",
"null",
";",
"return",
"contained",
"helper",
"narrow",
"(",
"c",
"get",
"reference",
"(",
")",
")",
";"
] |
[
"return",
"the",
"poa",
"object",
"id",
"of",
"this",
"ir",
"object"
] | [
"return",
"(",
"byte",
"[",
"]",
")",
"oid",
"clone",
"(",
")",
";"
] |
[
"generate",
"the",
"id",
"of",
"the",
"n",
"-",
"th",
"anonymous",
"object",
"created",
"in",
"this",
"ir"
] | [
"string",
"s",
"=",
"anon",
"oid",
"prefix",
"+",
"long",
"to",
"string",
"(",
"n",
")",
";",
"return",
"s",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
";"
] |
[
"the",
"next",
"anonymous",
"poa",
"object",
"id",
"while",
"contained",
"ir",
"objects",
"can",
"generate",
"a",
"sensible",
"id",
"from",
"their",
"repository",
"id",
"non",
"-",
"contained",
"objects",
"use",
"this",
"method",
"to",
"get",
"an",
"id",
"that",
"is",
"unique",
"within",
"the",
"ir"
] | [
"return",
"get",
"anonymous",
"object",
"id",
"(",
"next",
"p",
"o",
"a",
"id",
"+",
"+",
")",
";"
] |
[
"<",
"p",
">",
"the",
"input",
"image",
"as",
"base",
"6",
"4",
"-",
"encoded",
"bytes",
"or",
"an",
"s3",
"object",
"if",
"you",
"use",
"the",
"aws",
"cli",
"to",
"call",
"amazon",
"rekognition",
"operations",
"passing",
"base",
"6",
"4",
"-",
"encoded",
"image",
"bytes",
"is",
"not",
"supported",
"<",
"/",
"p",
">"
] | [
"this",
"source",
"image",
"=",
"source",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"input",
"image",
"as",
"base",
"6",
"4",
"-",
"encoded",
"bytes",
"or",
"an",
"s3",
"object",
"if",
"you",
"use",
"the",
"aws",
"cli",
"to",
"call",
"amazon",
"rekognition",
"operations",
"passing",
"base",
"6",
"4",
"-",
"encoded",
"image",
"bytes",
"is",
"not",
"supported",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"source",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"input",
"image",
"as",
"base",
"6",
"4",
"-",
"encoded",
"bytes",
"or",
"an",
"s3",
"object",
"if",
"you",
"use",
"the",
"aws",
"cli",
"to",
"call",
"amazon",
"rekognition",
"operations",
"passing",
"base",
"6",
"4",
"-",
"encoded",
"image",
"bytes",
"is",
"not",
"supported",
"<",
"/",
"p",
">"
] | [
"set",
"source",
"image",
"(",
"source",
"image",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"target",
"image",
"as",
"base",
"6",
"4",
"-",
"encoded",
"bytes",
"or",
"an",
"s3",
"object",
"if",
"you",
"use",
"the",
"aws",
"cli",
"to",
"call",
"amazon",
"rekognition",
"operations",
"passing",
"base",
"6",
"4",
"-",
"encoded",
"image",
"bytes",
"is",
"not",
"supported",
"<",
"/",
"p",
">"
] | [
"this",
"target",
"image",
"=",
"target",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"target",
"image",
"as",
"base",
"6",
"4",
"-",
"encoded",
"bytes",
"or",
"an",
"s3",
"object",
"if",
"you",
"use",
"the",
"aws",
"cli",
"to",
"call",
"amazon",
"rekognition",
"operations",
"passing",
"base",
"6",
"4",
"-",
"encoded",
"image",
"bytes",
"is",
"not",
"supported",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"target",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"target",
"image",
"as",
"base",
"6",
"4",
"-",
"encoded",
"bytes",
"or",
"an",
"s3",
"object",
"if",
"you",
"use",
"the",
"aws",
"cli",
"to",
"call",
"amazon",
"rekognition",
"operations",
"passing",
"base",
"6",
"4",
"-",
"encoded",
"image",
"bytes",
"is",
"not",
"supported",
"<",
"/",
"p",
">"
] | [
"set",
"target",
"image",
"(",
"target",
"image",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"minimum",
"level",
"of",
"confidence",
"in",
"the",
"face",
"matches",
"that",
"a",
"match",
"must",
"meet",
"to",
"be",
"included",
"in",
"the",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"array",
"<",
"/",
"p",
">"
] | [
"this",
"similarity",
"threshold",
"=",
"similarity",
"threshold",
";"
] |
[
"<",
"p",
">",
"the",
"minimum",
"level",
"of",
"confidence",
"in",
"the",
"face",
"matches",
"that",
"a",
"match",
"must",
"meet",
"to",
"be",
"included",
"in",
"the",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"array",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"similarity",
"threshold",
";"
] |
[
"<",
"p",
">",
"the",
"minimum",
"level",
"of",
"confidence",
"in",
"the",
"face",
"matches",
"that",
"a",
"match",
"must",
"meet",
"to",
"be",
"included",
"in",
"the",
"<",
"code",
">",
"face",
"matches",
"<",
"/",
"code",
">",
"array",
"<",
"/",
"p",
">"
] | [
"set",
"similarity",
"threshold",
"(",
"similarity",
"threshold",
")",
";",
"return",
"this",
";"
] |
[
"auto",
"-",
"generate",
"the",
"avro",
"struct",
"from",
"schema"
] | [
"schema",
"schema",
"=",
"schema",
"parse",
"(",
"schema",
"literal",
")",
";",
"generate",
"avro",
"struct",
"from",
"schema",
"(",
"schema",
",",
"sb",
")",
";"
] |
[
"trims",
"by",
"removing",
"the",
"trailing",
"if",
"any"
] | [
"if",
"(",
"sb",
"char",
"at",
"(",
"sb",
"length",
"(",
")",
"-",
"1",
")",
"=",
"=",
"string",
"utils",
"comma",
")",
"{",
"return",
"sb",
"delete",
"char",
"at",
"(",
"sb",
"length",
"(",
")",
"-",
"1",
")",
";",
"}",
"return",
"sb",
";"
] |
[
"resolve",
"multifactor",
"authentication",
"provider",
"set"
] | [
"val",
"provider",
"map",
"=",
"multifactor",
"authentication",
"utils",
"get",
"available",
"multifactor",
"authentication",
"providers",
"(",
"this",
"application",
"context",
")",
";",
"val",
"providers",
"=",
"provider",
"map",
"values",
"(",
")",
";",
"if",
"(",
"providers",
"size",
"(",
")",
"=",
"=",
"1",
"&",
"&",
"string",
"utils",
"is",
"not",
"blank",
"(",
"global",
"principal",
"attribute",
"value",
"regex",
")",
")",
"{",
"return",
"resolve",
"single",
"multifactor",
"provider",
"(",
"context",
",",
"service",
",",
"principal",
",",
"providers",
")",
";",
"}",
"return",
"resolve",
"multifactor",
"provider",
"via",
"predicate",
"(",
"context",
",",
"service",
",",
"principal",
",",
"providers",
")",
";"
] |
[
"resolve",
"multifactor",
"provider",
"by",
"regex",
"predicate",
"set"
] | [
"return",
"resolve",
"event",
"via",
"principal",
"attribute",
"(",
"principal",
",",
"attribute",
"names",
",",
"service",
",",
"context",
",",
"providers",
",",
"input",
"-",
">",
"providers",
"stream",
"(",
")",
"any",
"match",
"(",
"provider",
"-",
">",
"input",
"!",
"=",
"null",
"&",
"&",
"provider",
"matches",
"(",
"input",
")",
")",
")",
";"
] |
[
"load",
"the",
"given",
"min",
"and",
"max"
] | [
"set",
"feature",
"stats",
"(",
"new",
"min",
"max",
"stats",
"(",
"nd",
"4j",
"read",
"binary",
"(",
"statistics",
"[",
"0",
"]",
")",
",",
"nd",
"4j",
"read",
"binary",
"(",
"statistics",
"[",
"1",
"]",
")",
")",
")",
";",
"if",
"(",
"is",
"fit",
"label",
"(",
")",
")",
"{",
"set",
"label",
"stats",
"(",
"new",
"min",
"max",
"stats",
"(",
"nd",
"4j",
"read",
"binary",
"(",
"statistics",
"[",
"2",
"]",
")",
",",
"nd",
"4j",
"read",
"binary",
"(",
"statistics",
"[",
"3",
"]",
")",
")",
")",
";",
"}"
] |
[
"save",
"the",
"current",
"min",
"and",
"max"
] | [
"nd",
"4j",
"save",
"binary",
"(",
"get",
"min",
"(",
")",
",",
"files",
"[",
"0",
"]",
")",
";",
"nd",
"4j",
"save",
"binary",
"(",
"get",
"max",
"(",
")",
",",
"files",
"[",
"1",
"]",
")",
";",
"if",
"(",
"is",
"fit",
"label",
"(",
")",
")",
"{",
"nd",
"4j",
"save",
"binary",
"(",
"get",
"label",
"min",
"(",
")",
",",
"files",
"[",
"2",
"]",
")",
";",
"nd",
"4j",
"save",
"binary",
"(",
"get",
"label",
"max",
"(",
")",
",",
"files",
"[",
"3",
"]",
")",
";",
"}"
] |
[
"writes",
"the",
"closing",
"of",
"an",
"open",
"span",
"tag",
"-",
"-",
"if",
"{"
] | [
"if",
"(",
"current",
"disjoint",
"span",
"name",
"!",
"=",
"null",
")",
"{",
"out",
"write",
"(",
"html",
"consts",
"zspan",
")",
";",
"}",
"if",
"(",
"class",
"name",
"!",
"=",
"null",
")",
"{",
"out",
"write",
"(",
"string",
"format",
"(",
"html",
"consts",
"span",
"fmt",
",",
"class",
"name",
")",
")",
";",
"}",
"return",
"class",
"name",
";"
] |
[
"arn",
"of",
"the",
"resource",
"definition",
"version"
] | [
"set",
"arn",
"(",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"the",
"time",
"in",
"milliseconds",
"since",
"the",
"epoch",
"when",
"the",
"resource",
"definition",
"version",
"was",
"created"
] | [
"set",
"creation",
"timestamp",
"(",
"creation",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"information",
"about",
"the",
"definition"
] | [
"this",
"definition",
"=",
"definition",
";"
] |
[
"information",
"about",
"the",
"definition"
] | [
"return",
"this",
"definition",
";"
] |
[
"information",
"about",
"the",
"definition"
] | [
"set",
"definition",
"(",
"definition",
")",
";",
"return",
"this",
";"
] |
[
"the",
"id",
"of",
"the",
"resource",
"definition",
"version"
] | [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
] |
[
"the",
"version",
"of",
"the",
"resource",
"definition",
"version"
] | [
"set",
"version",
"(",
"version",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"for",
"a",
"specific",
"time",
"period",
"retrieve",
"the",
"top",
"<",
"code",
">",
"n",
"<",
"/",
"code",
">",
"dimension",
"keys",
"for",
"a",
"metric",
"<",
"/",
"p",
">"
] | [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"describe",
"dimension",
"keys",
"(",
"request",
")",
";"
] |
[
"<",
"p",
">",
"retrieve",
"performance",
"insights",
"metrics",
"for",
"a",
"set",
"of",
"data",
"sources",
"over",
"a",
"time",
"period",
"you",
"can",
"provide",
"specific",
"dimension",
"groups",
"and",
"dimensions",
"and",
"provide",
"aggregation",
"and",
"filtering",
"criteria",
"for",
"each",
"group",
"<",
"/",
"p",
">"
] | [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"get",
"resource",
"metrics",
"(",
"request",
")",
";"
] |
[
"get",
"long",
"selection",
"start",
"and",
"end",
"points",
"helper",
"method",
"for",
"long",
"selection",
"listeners",
"the",
"start",
"point",
"is",
"formed",
"by",
"event",
"width",
"as",
"the",
"most",
"significant",
"int",
"and",
"event",
"x",
"as",
"the",
"least",
"significant",
"int",
"the",
"end",
"point",
"is",
"similarly",
"formed",
"by",
"event",
"height",
"and",
"event",
"y"
] | [
"return",
"new",
"long",
"[",
"]",
"{",
"(",
"(",
"long",
")",
"event",
"width",
")",
"<",
"<",
"32",
"|",
"(",
"event",
"x",
"&",
"0x",
"0ffffffff",
"l",
")",
",",
"(",
"(",
"long",
")",
"event",
"height",
")",
"<",
"<",
"32",
"|",
"(",
"event",
"y",
"&",
"0x",
"0ffffffff",
"l",
")",
"}",
";"
] |
[
"adds",
"a",
"long",
"selection",
"listener",
"events",
"sent",
"to",
"the",
"listener",
"have",
"long",
"start",
"and",
"end",
"points",
"the",
"start",
"point",
"is",
"formed",
"by",
"event",
"width",
"as",
"the",
"most",
"significant",
"int",
"and",
"event",
"x",
"as",
"the",
"least",
"significant",
"int",
"the",
"end",
"point",
"is",
"similarly",
"formed",
"by",
"event",
"height",
"and",
"event",
"y",
"a",
"listener",
"can",
"obtain",
"the",
"long",
"selection",
"with",
"this",
"code",
":",
"get",
"long",
"selection",
"(",
"selection",
"event",
")",
"long",
"start",
"=",
"(",
"(",
"long",
")",
"event",
"width",
")",
"<",
"<",
"32",
"|",
"(",
"event",
"x",
"&",
"0x",
"0ffffffff",
"l",
")",
"similarly",
"for",
"the",
"end",
"point",
":",
"long",
"end",
"=",
"(",
"(",
"long",
")",
"event",
"height",
")",
"<",
"<",
"32",
"|",
"(",
"event",
"y",
"&",
"0x",
"0ffffffff",
"l",
")"
] | [
"if",
"(",
"listener",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"if",
"(",
"!",
"long",
"selection",
"listeners",
"contains",
"(",
"listener",
")",
")",
"long",
"selection",
"listeners",
"add",
"(",
"listener",
")",
";"
] |
[
"tells",
"whether",
"the",
"last",
"action",
"can",
"be",
"redone"
] | [
"return",
"content",
"!",
"=",
"null",
"&",
"&",
"content",
"can",
"redo",
"(",
")",
";"
] |
[
"tells",
"whether",
"the",
"last",
"action",
"can",
"be",
"undone"
] | [
"return",
"content",
"!",
"=",
"null",
"&",
"&",
"content",
"can",
"undo",
"(",
")",
";"
] |
[
"copies",
"the",
"selection",
"into",
"the",
"clipboard",
"if",
"nothing",
"is",
"selected",
"leaves",
"the",
"clipboard",
"with",
"its",
"current",
"contents",
"the",
"clipboard",
"will",
"hold",
"text",
"data",
"(",
"for",
"pasting",
"into",
"a",
"text",
"editor",
")",
"and",
"binary",
"data",
"(",
"internal",
"for",
"hex",
"text",
")",
"text",
"data",
"is",
"limited",
"to",
"4",
"mbytes",
"binary",
"data",
"is",
"limited",
"by",
"disk",
"space"
] | [
"if",
"(",
"start",
"position",
">",
"=",
"end",
"position",
")",
"return",
";",
"my",
"clipboard",
"set",
"contents",
"(",
"content",
",",
"start",
"position",
",",
"end",
"position",
"-",
"start",
"position",
")",
";"
] |
[
"calls",
"copy",
"(",
")",
";",
"delete",
"selected",
"(",
")",
";"
] | [
"copy",
"(",
")",
";",
"delete",
"selected",
"(",
")",
";"
] |
[
"while",
"in",
"insert",
"mode",
"deletes",
"the",
"selection"
] | [
"if",
"(",
"!",
"handle",
"selected",
"pre",
"modify",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"up",
"a",
"nibble",
"=",
"0",
";",
"ensure",
"whole",
"screen",
"is",
"visible",
"(",
")",
";",
"restore",
"state",
"after",
"modify",
"(",
")",
";",
"return",
"true",
";"
] |
[
"performs",
"a",
"find",
"on",
"the",
"text",
"and",
"sets",
"the",
"selection",
"accordingly",
"the",
"find",
"starts",
"at",
"the",
"current",
"caret",
"position"
] | [
"return",
"find",
"and",
"select",
"internal",
"(",
"find",
"string",
",",
"is",
"hex",
"string",
",",
"search",
"forward",
",",
"ignore",
"case",
",",
"true",
")",
";"
] |
[
"get",
"caret",
"position",
"in",
"file",
"which",
"can",
"be",
"out",
"of",
"view"
] | [
"if",
"(",
"caret",
"stick",
"to",
"start",
")",
"return",
"start",
"position",
";",
"else",
"return",
"end",
"position",
";"
] |
[
"gets",
"the",
"selection",
"start",
"and",
"end",
"points",
"as",
"long",
"values"
] | [
"return",
"new",
"long",
"[",
"]",
"{",
"start",
"position",
",",
"end",
"position",
"}",
";"
] |
[
"tells",
"whether",
"the",
"input",
"is",
"in",
"overwrite",
"or",
"insert",
"mode"
] | [
"return",
"!",
"is",
"inserting",
";"
] |
[
"merge",
"ranges",
"of",
"changes",
"in",
"file",
"with",
"ranges",
"of",
"highlighted",
"elements",
"finds",
"lowest",
"range",
"border",
"finds",
"next",
"lowest",
"range",
"border",
"that",
"s",
"the",
"first",
"result",
"keeps",
"going",
"until",
"last",
"range",
"border"
] | [
"if",
"(",
"!",
"merger",
"init",
"(",
"change",
"ranges",
",",
"highlight",
"ranges",
")",
")",
"{",
"return",
"null",
";",
"}",
"list",
"<",
"style",
"range",
">",
"result",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"merger",
"next",
"(",
")",
";",
"int",
"start",
"=",
"merge",
"ranges",
"position",
";",
"boolean",
"blue",
"=",
"merge",
"ranges",
"is",
"blue",
";",
"boolean",
"highlight",
"=",
"merge",
"ranges",
"is",
"highlight",
";",
"while",
"(",
"merger",
"next",
"(",
")",
")",
"{",
"if",
"(",
"blue",
"|",
"|",
"highlight",
")",
"{",
"result",
"add",
"(",
"new",
"style",
"range",
"(",
"start",
",",
"merge",
"ranges",
"position",
"-",
"start",
",",
"blue",
"?",
"color",
"blue",
":",
"null",
",",
"highlight",
"?",
"color",
"highlight",
":",
"null",
")",
")",
";",
"}",
"start",
"=",
"merge",
"ranges",
"position",
";",
"blue",
"=",
"merge",
"ranges",
"is",
"blue",
";",
"highlight",
"=",
"merge",
"ranges",
"is",
"highlight",
";",
"}",
"return",
"result",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.