docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"creates",
"and",
"returns",
"a",
"configured",
"scratch",
"rule",
"and",
"its",
"data"
] | [
"target",
"rule",
"=",
"scratch",
"rule",
"(",
"package",
"name",
",",
"rule",
"name",
",",
"lines",
")",
";",
"return",
"view",
"get",
"configured",
"target",
"and",
"data",
"for",
"testing",
"(",
"reporter",
",",
"rule",
"get",
"label",
"(",
")",
",",
"config",
")",
";"
] |
[
"given",
"a",
"collection",
"of",
"artifacts",
"returns",
"a",
"corresponding",
"set",
"of",
"strings",
"of",
"the",
"form",
"[",
"root",
"]",
"[",
"relpath",
"]",
"such",
"as",
"bin",
"x",
"/",
"libx",
"a",
"such",
"strings",
"make",
"assertions",
"easier",
"to",
"write"
] | [
"return",
"analysis",
"test",
"util",
"artifacts",
"to",
"strings",
"(",
"master",
"config",
",",
"artifacts",
")",
";"
] |
[
"asserts",
"that",
"there",
"exists",
"a",
"configured",
"target",
"file",
"for",
"the",
"given",
"label"
] | [
"assert",
"that",
"(",
"get",
"file",
"configured",
"target",
"(",
"label",
")",
")",
"is",
"not",
"null",
"(",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"creating",
"it",
"if",
"necessary",
"{"
] | [
"return",
"view",
"get",
"artifact",
"factory",
"(",
")",
"get",
"derived",
"artifact",
"(",
"root",
"relative",
"path",
",",
"root",
",",
"owner",
")",
";"
] |
[
"gets",
"a",
"tree",
"artifact",
"creating",
"it",
"if",
"necessary",
"{"
] | [
"return",
"view",
"get",
"artifact",
"factory",
"(",
")",
"get",
"tree",
"artifact",
"(",
"root",
"relative",
"path",
",",
"root",
",",
"owner",
")",
";"
] |
[
"gets",
"a",
"tree",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"package",
"relative",
"tree",
"artifact",
"(",
"package",
"relative",
"path",
",",
"get",
"configuration",
"(",
"owner",
")",
"get",
"bin",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"configured",
"target",
"key",
"of",
"(",
"owner",
",",
"skyframe",
"executor",
"get",
"configuration",
"(",
"reporter",
",",
"owner",
"get",
"configuration",
"key",
"(",
")",
")",
")",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"with",
"path",
"of",
"the",
"form",
"root",
"/",
"owner",
"get",
"package",
"fragment",
"(",
")",
"/",
"package",
"relative",
"path"
] | [
"return",
"get",
"derived",
"artifact",
"(",
"owner",
"get",
"label",
"(",
")",
"get",
"package",
"fragment",
"(",
")",
"get",
"relative",
"(",
"package",
"relative",
"path",
")",
",",
"root",
",",
"owner",
")",
";"
] |
[
"gets",
"a",
"tree",
"artifact",
"for",
"testing",
"with",
"path",
"of",
"the",
"form",
"root",
"/",
"owner",
"get",
"package",
"fragment",
"(",
")",
"/",
"package",
"relative",
"path"
] | [
"return",
"get",
"tree",
"artifact",
"(",
"owner",
"get",
"label",
"(",
")",
"get",
"package",
"fragment",
"(",
")",
"get",
"relative",
"(",
"package",
"relative",
"path",
")",
",",
"root",
",",
"owner",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"{"
] | [
"return",
"get",
"derived",
"artifact",
"(",
"path",
"fragment",
"create",
"(",
"root",
"relative",
"path",
")",
",",
"target",
"config",
"get",
"bin",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"actions",
"test",
"util",
"null",
"artifact",
"owner",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"package",
"relative",
"derived",
"artifact",
"(",
"package",
"relative",
"path",
",",
"get",
"configuration",
"(",
"owner",
")",
"get",
"bin",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"configured",
"target",
"key",
"of",
"(",
"owner",
",",
"skyframe",
"executor",
"get",
"configuration",
"(",
"reporter",
",",
"owner",
"get",
"configuration",
"key",
"(",
")",
")",
")",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"bin",
"artifact",
"(",
"package",
"relative",
"path",
",",
"owner",
",",
"creating",
"aspect",
"factory",
",",
"aspect",
"parameters",
"empty",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"package",
"relative",
"derived",
"artifact",
"(",
"package",
"relative",
"path",
",",
"get",
"configuration",
"(",
"owner",
")",
"get",
"bin",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"(",
"aspect",
"value",
"aspect",
"key",
")",
"aspect",
"value",
"create",
"aspect",
"key",
"(",
"owner",
"get",
"label",
"(",
")",
",",
"get",
"configuration",
"(",
"owner",
")",
",",
"new",
"aspect",
"descriptor",
"(",
"creating",
"aspect",
"factory",
",",
"parameters",
")",
",",
"get",
"configuration",
"(",
"owner",
")",
")",
"argument",
"(",
")",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"{"
] | [
"return",
"get",
"derived",
"artifact",
"(",
"path",
"fragment",
"create",
"(",
"root",
"relative",
"path",
")",
",",
"target",
"config",
"get",
"genfiles",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"actions",
"test",
"util",
"null",
"artifact",
"owner",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"build",
"configuration",
"config",
"=",
"get",
"configuration",
"(",
"owner",
")",
";",
"return",
"get",
"genfiles",
"artifact",
"(",
"package",
"relative",
"path",
",",
"configured",
"target",
"key",
"of",
"(",
"make",
"label",
"(",
"owner",
")",
",",
"config",
")",
",",
"config",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"build",
"configuration",
"configuration",
"=",
"skyframe",
"executor",
"get",
"configuration",
"(",
"reporter",
",",
"owner",
"get",
"configuration",
"key",
"(",
")",
")",
";",
"configured",
"target",
"key",
"config",
"key",
"=",
"configured",
"target",
"key",
"of",
"(",
"owner",
",",
"configuration",
")",
";",
"return",
"get",
"genfiles",
"artifact",
"(",
"package",
"relative",
"path",
",",
"config",
"key",
",",
"configuration",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"genfiles",
"artifact",
"(",
"package",
"relative",
"path",
",",
"owner",
",",
"creating",
"aspect",
"factory",
",",
"aspect",
"parameters",
"empty",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"package",
"relative",
"derived",
"artifact",
"(",
"package",
"relative",
"path",
",",
"config",
"get",
"genfiles",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"owner",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"include",
"artifact",
"(",
"package",
"relative",
"path",
",",
"make",
"configured",
"target",
"key",
"(",
"owner",
")",
")",
";"
] |
[
"gets",
"a",
"derived",
"artifact",
"for",
"testing",
"in",
"the",
"subdirectory",
"of",
"the",
"{"
] | [
"return",
"get",
"package",
"relative",
"derived",
"artifact",
"(",
"package",
"relative",
"path",
",",
"target",
"config",
"get",
"include",
"directory",
"(",
"owner",
"get",
"label",
"(",
")",
"get",
"package",
"identifier",
"(",
")",
"get",
"repository",
"(",
")",
")",
",",
"owner",
")",
";"
] |
[
"@",
"return",
"a",
"shared",
"artifact",
"at",
"the",
"binary",
"-",
"root",
"relative",
"path",
"{",
"@",
"code",
"root",
"relative",
"path",
"}",
"owned",
"by",
"{",
"@",
"code",
"owner",
"}"
] | [
"return",
"get",
"derived",
"artifact",
"(",
"path",
"fragment",
"create",
"(",
"root",
"relative",
"path",
")",
",",
"target",
"config",
"get",
"bin",
"directory",
"(",
"repository",
"name",
"main",
")",
",",
"configured",
"target",
"key",
"of",
"(",
"owner",
",",
"skyframe",
"executor",
"get",
"configuration",
"(",
"reporter",
",",
"owner",
"get",
"configuration",
"key",
"(",
")",
")",
")",
")",
";"
] |
[
"strips",
"the",
"c",
"+",
"+",
"-",
"contributed",
"prefix",
"out",
"of",
"an",
"output",
"path",
"when",
"tests",
"are",
"run",
"with",
"trimmed",
"configurations",
"e",
"g",
"turns",
"bazel",
"-",
"out",
"/",
"gcc",
"-",
"x",
"-",
"glibc",
"-",
"y",
"-",
"k",
"8",
"-",
"fastbuild",
"/",
"to",
"bazel",
"-",
"out",
"/",
"fastbuild",
"/"
] | [
"return",
"target",
"config",
"trim",
"configurations",
"(",
")",
"?",
"analysis",
"test",
"util",
"output",
"path",
"cpp",
"prefix",
"pattern",
"matcher",
"(",
"output",
"path",
")",
"replace",
"first",
"(",
"\"",
"\"",
")",
":",
"output",
"path",
";"
] |
[
"utility",
"method",
"for",
"asserting",
"that",
"the",
"contents",
"of",
"one",
"collection",
"are",
"the",
"same",
"as",
"those",
"in",
"a",
"second",
"plus",
"some",
"set",
"of",
"common",
"elements"
] | [
"assert",
"that",
"(",
"iterables",
"concat",
"(",
"lists",
"new",
"array",
"list",
"(",
"expected",
"inputs",
")",
",",
"common",
")",
")",
"contains",
"exactly",
"elements",
"in",
"(",
"artifacts",
")",
";"
] |
[
"utility",
"method",
"for",
"asserting",
"that",
"a",
"list",
"contains",
"the",
"elements",
"of",
"a",
"sublist",
"this",
"is",
"useful",
"for",
"checking",
"that",
"a",
"list",
"of",
"arguments",
"contains",
"a",
"particular",
"set",
"of",
"arguments"
] | [
"assert",
"contains",
"sublist",
"(",
"null",
",",
"list",
",",
"sublist",
")",
";"
] |
[
"returns",
"all",
"extra",
"actions",
"for",
"that",
"target",
"(",
"no",
"transitive",
"actions",
")",
"no",
"duplicate",
"actions"
] | [
"linked",
"hash",
"set",
"<",
"action",
">",
"result",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"artifact",
"artifact",
":",
"get",
"extra",
"action",
"artifacts",
"(",
"target",
")",
")",
"{",
"result",
"add",
"(",
"get",
"generating",
"action",
"(",
"artifact",
")",
")",
";",
"}",
"return",
"immutable",
"list",
"copy",
"of",
"(",
"result",
")",
";"
] |
[
"returns",
"all",
"extra",
"actions",
"for",
"that",
"target",
"(",
"including",
"transitive",
"actions",
")"
] | [
"immutable",
"list",
"builder",
"<",
"extra",
"action",
">",
"result",
"=",
"new",
"immutable",
"list",
"builder",
"<",
">",
"(",
")",
";",
"for",
"(",
"artifact",
"artifact",
":",
"target",
"get",
"provider",
"(",
"extra",
"action",
"artifacts",
"provider",
"class",
")",
"get",
"transitive",
"extra",
"action",
"artifacts",
"(",
")",
")",
"{",
"action",
"action",
"=",
"get",
"generating",
"action",
"(",
"artifact",
")",
";",
"if",
"(",
"action",
"instanceof",
"extra",
"action",
")",
"{",
"result",
"add",
"(",
"(",
"extra",
"action",
")",
"action",
")",
";",
"}",
"}",
"return",
"result",
"build",
"(",
")",
";"
] |
[
"returns",
"the",
"configuration",
"created",
"by",
"applying",
"the",
"given",
"transition",
"to",
"the",
"source",
"configuration"
] | [
"if",
"(",
"transition",
"=",
"=",
"no",
"transition",
"instance",
")",
"{",
"return",
"from",
"config",
";",
"}",
"else",
"if",
"(",
"transition",
"=",
"=",
"null",
"transition",
"instance",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"return",
"skyframe",
"executor",
"get",
"configuration",
"for",
"testing",
"(",
"reporter",
",",
"from",
"config",
"fragment",
"classes",
"(",
")",
",",
"transition",
"patch",
"(",
"from",
"config",
"get",
"options",
"(",
")",
")",
")",
";",
"}"
] |
[
"returns",
"an",
"attribute",
"value",
"retriever",
"for",
"the",
"given",
"rule",
"for",
"the",
"target",
"configuration"
] | [
"configured",
"target",
"and",
"data",
"ctad",
";",
"try",
"{",
"ctad",
"=",
"get",
"configured",
"target",
"and",
"data",
"(",
"ct",
"get",
"label",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"}",
"catch",
"(",
"label",
"syntax",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"e",
")",
";",
"}",
"return",
"get",
"mapper",
"from",
"configured",
"target",
"and",
"target",
"(",
"ctad",
")",
";"
] |
[
"utility",
"method",
"for",
"tests",
"converts",
"an",
"array",
"of",
"strings",
"into",
"a",
"set",
"of",
"labels"
] | [
"return",
"as",
"label",
"set",
"(",
"immutable",
"list",
"copy",
"of",
"(",
"strings",
")",
")",
";"
] |
[
"utility",
"method",
"for",
"tests",
"converts",
"an",
"array",
"of",
"strings",
"into",
"a",
"set",
"of",
"labels"
] | [
"set",
"<",
"label",
">",
"result",
"=",
"sets",
"new",
"tree",
"set",
"(",
")",
";",
"for",
"(",
"string",
"s",
":",
"strings",
")",
"{",
"result",
"add",
"(",
"label",
"parse",
"absolute",
"(",
"s",
",",
"immutable",
"map",
"of",
"(",
")",
")",
")",
";",
"}",
"return",
"result",
";"
] |
[
"converts",
"the",
"given",
"label",
"to",
"an",
"output",
"path",
"where",
"double",
"slashes",
"and",
"colons",
"are",
"replaced",
"with",
"single",
"slashes"
] | [
"return",
"label",
"replace",
"(",
"'",
":",
"'",
",",
"'",
"/",
"'",
")",
"substring",
"(",
"1",
")",
";"
] |
[
"returns",
"true",
"iff",
"command",
"line",
"contains",
"the",
"option",
"-",
"-",
"flag",
"name",
"followed",
"by",
"arg"
] | [
"iterator",
"<",
"string",
">",
"iterator",
"=",
"command",
"line",
"iterator",
"(",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"if",
"(",
"flag",
"name",
"equals",
"(",
"iterator",
"next",
"(",
")",
")",
"&",
"&",
"iterator",
"has",
"next",
"(",
")",
"&",
"&",
"arg",
"equals",
"(",
"iterator",
"next",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"used",
"to",
"package",
"this",
"object",
"into",
"a",
"{",
"@",
"link",
"parcel",
"}"
] | [
"dest",
"write",
"int",
"(",
"m",
"hash",
"code",
")",
";",
"dest",
"write",
"int",
"(",
"m",
"selection",
"start",
")",
";",
"dest",
"write",
"int",
"(",
"m",
"selection",
"end",
")",
";",
"dest",
"write",
"int",
"(",
"m",
"composing",
"text",
"start",
")",
";",
"text",
"utils",
"write",
"to",
"parcel",
"(",
"m",
"composing",
"text",
",",
"dest",
",",
"flags",
")",
";",
"dest",
"write",
"int",
"(",
"m",
"insertion",
"marker",
"flags",
")",
";",
"dest",
"write",
"float",
"(",
"m",
"insertion",
"marker",
"horizontal",
")",
";",
"dest",
"write",
"float",
"(",
"m",
"insertion",
"marker",
"top",
")",
";",
"dest",
"write",
"float",
"(",
"m",
"insertion",
"marker",
"baseline",
")",
";",
"dest",
"write",
"float",
"(",
"m",
"insertion",
"marker",
"bottom",
")",
";",
"dest",
"write",
"parcelable",
"(",
"m",
"character",
"bounds",
"array",
",",
"flags",
")",
";",
"dest",
"write",
"float",
"array",
"(",
"m",
"matrix",
"values",
")",
";"
] |
[
"compares",
"two",
"float",
"values",
"returns",
"{"
] | [
"if",
"(",
"float",
"is",
"na",
"n",
"(",
"a",
")",
"&",
"&",
"float",
"is",
"na",
"n",
"(",
"b",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"a",
"=",
"=",
"b",
";"
] |
[
"sets",
"the",
"text",
"range",
"of",
"the",
"selection",
"calling",
"this",
"can",
"be",
"skipped",
"if",
"there",
"is",
"no",
"selection"
] | [
"m",
"selection",
"start",
"=",
"new",
"start",
";",
"m",
"selection",
"end",
"=",
"new",
"end",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"location",
"of",
"the",
"text",
"insertion",
"point",
"(",
"zero",
"width",
"cursor",
")",
"as",
"a",
"rectangle",
"in",
"local",
"coordinates",
"calling",
"this",
"can",
"be",
"skipped",
"when",
"there",
"is",
"no",
"text",
"insertion",
"point",
";",
"however",
"if",
"there",
"is",
"an",
"insertion",
"point",
"editors",
"must",
"call",
"this",
"method"
] | [
"m",
"insertion",
"marker",
"horizontal",
"=",
"horizontal",
"position",
";",
"m",
"insertion",
"marker",
"top",
"=",
"line",
"top",
";",
"m",
"insertion",
"marker",
"baseline",
"=",
"line",
"baseline",
";",
"m",
"insertion",
"marker",
"bottom",
"=",
"line",
"bottom",
";",
"m",
"insertion",
"marker",
"flags",
"=",
"flags",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"matrix",
"that",
"transforms",
"local",
"coordinates",
"into",
"screen",
"coordinates"
] | [
"if",
"(",
"m",
"matrix",
"values",
"=",
"=",
"null",
")",
"{",
"m",
"matrix",
"values",
"=",
"new",
"float",
"[",
"9",
"]",
";",
"}",
"(",
"matrix",
"!",
"=",
"null",
"?",
"matrix",
":",
"matrix",
"identity",
"matrix",
")",
"get",
"values",
"(",
"m",
"matrix",
"values",
")",
";",
"m",
"matrix",
"initialized",
"=",
"true",
";",
"return",
"this",
";"
] |
[
"resets",
"the",
"internal",
"state",
"so",
"that",
"this",
"instance",
"can",
"be",
"reused",
"to",
"build",
"another",
"instance",
"of",
"{"
] | [
"m",
"selection",
"start",
"=",
"-",
"1",
";",
"m",
"selection",
"end",
"=",
"-",
"1",
";",
"m",
"composing",
"text",
"start",
"=",
"-",
"1",
";",
"m",
"composing",
"text",
"=",
"null",
";",
"m",
"insertion",
"marker",
"flags",
"=",
"0",
";",
"m",
"insertion",
"marker",
"horizontal",
"=",
"float",
"na",
"n",
";",
"m",
"insertion",
"marker",
"top",
"=",
"float",
"na",
"n",
";",
"m",
"insertion",
"marker",
"baseline",
"=",
"float",
"na",
"n",
";",
"m",
"insertion",
"marker",
"bottom",
"=",
"float",
"na",
"n",
";",
"m",
"matrix",
"initialized",
"=",
"false",
";",
"if",
"(",
"m",
"character",
"bounds",
"array",
"builder",
"!",
"=",
"null",
")",
"{",
"m",
"character",
"bounds",
"array",
"builder",
"reset",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"index",
"where",
"the",
"selection",
"starts"
] | [
"return",
"m",
"selection",
"start",
";"
] |
[
"returns",
"the",
"index",
"where",
"the",
"selection",
"ends"
] | [
"return",
"m",
"selection",
"end",
";"
] |
[
"returns",
"the",
"index",
"where",
"the",
"composing",
"text",
"starts"
] | [
"return",
"m",
"composing",
"text",
"start",
";"
] |
[
"returns",
"the",
"entire",
"composing",
"text"
] | [
"return",
"m",
"composing",
"text",
";"
] |
[
"returns",
"the",
"flag",
"of",
"the",
"insertion",
"marker"
] | [
"return",
"m",
"insertion",
"marker",
"flags",
";"
] |
[
"returns",
"the",
"horizontal",
"start",
"of",
"the",
"insertion",
"marker",
"in",
"the",
"local",
"coordinates",
"that",
"will",
"be",
"transformed",
"with",
"{"
] | [
"return",
"m",
"insertion",
"marker",
"horizontal",
";"
] |
[
"returns",
"the",
"vertical",
"top",
"position",
"of",
"the",
"insertion",
"marker",
"in",
"the",
"local",
"coordinates",
"that",
"will",
"be",
"transformed",
"with",
"{"
] | [
"return",
"m",
"insertion",
"marker",
"top",
";"
] |
[
"returns",
"the",
"vertical",
"baseline",
"position",
"of",
"the",
"insertion",
"marker",
"in",
"the",
"local",
"coordinates",
"that",
"will",
"be",
"transformed",
"with",
"{"
] | [
"return",
"m",
"insertion",
"marker",
"baseline",
";"
] |
[
"returns",
"the",
"vertical",
"bottom",
"position",
"of",
"the",
"insertion",
"marker",
"in",
"the",
"local",
"coordinates",
"that",
"will",
"be",
"transformed",
"with",
"{"
] | [
"return",
"m",
"insertion",
"marker",
"bottom",
";"
] |
[
"returns",
"a",
"new",
"instance",
"of",
"{"
] | [
"if",
"(",
"m",
"character",
"bounds",
"array",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"m",
"character",
"bounds",
"array",
"get",
"(",
"index",
")",
";"
] |
[
"returns",
"the",
"flags",
"associated",
"with",
"the",
"character",
"bounds",
"specified",
"with",
"the",
"index"
] | [
"if",
"(",
"m",
"character",
"bounds",
"array",
"=",
"=",
"null",
")",
"{",
"return",
"0",
";",
"}",
"return",
"m",
"character",
"bounds",
"array",
"get",
"flags",
"(",
"index",
",",
"0",
")",
";"
] |
[
"returns",
"a",
"new",
"instance",
"of",
"{"
] | [
"final",
"matrix",
"matrix",
"=",
"new",
"matrix",
"(",
")",
";",
"matrix",
"set",
"values",
"(",
"m",
"matrix",
"values",
")",
";",
"return",
"matrix",
";"
] |
[
"returns",
"the",
"current",
"value",
"of",
"this",
"counter"
] | [
"return",
"count",
";"
] |
[
"returns",
"a",
"string",
"representation",
"of",
"this",
"counter"
] | [
"return",
"count",
"+",
"\"",
"\"",
"+",
"name",
";"
] |
[
"compares",
"this",
"counter",
"to",
"the",
"specified",
"counter"
] | [
"if",
"(",
"this",
"count",
"<",
"that",
"count",
")",
"return",
"-",
"1",
";",
"else",
"if",
"(",
"this",
"count",
">",
"that",
"count",
")",
"return",
"+",
"1",
";",
"else",
"return",
"0",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"device",
"registry",
"enrich",
"activity",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"attribute",
"that",
"is",
"added",
"to",
"the",
"message",
"<",
"/",
"p",
">"
] | [
"set",
"attribute",
"(",
"attribute",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"io",
"t",
"device",
"whose",
"registry",
"information",
"is",
"added",
"to",
"the",
"message",
"<",
"/",
"p",
">"
] | [
"set",
"thing",
"name",
"(",
"thing",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"role",
"that",
"allows",
"access",
"to",
"the",
"device",
"s",
"registry",
"information",
"<",
"/",
"p",
">"
] | [
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"next",
"activity",
"in",
"the",
"pipeline",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"(",
"next",
")",
";",
"return",
"this",
";"
] |
[
"creates",
"a",
"feature",
"vector"
] | [
"return",
"nd",
"4j",
"create",
"(",
"num",
"rows",
",",
"input",
"columns",
")",
";"
] |
[
"creates",
"an",
"output",
"label",
"matrix"
] | [
"return",
"feature",
"util",
"to",
"outcome",
"vector",
"(",
"outcome",
"label",
",",
"num",
"outcomes",
")",
";"
] |
[
"meant",
"to",
"be",
"called",
"only",
"by",
"the",
"supervisor",
"for",
"stormjar",
"/",
"stormconf",
"/",
"stormcode",
"files"
] | [
"final",
"int",
"max",
"retry",
"attempts",
"=",
"2",
";",
"final",
"int",
"attempts",
"interval",
"time",
"=",
"100",
";",
"for",
"(",
"int",
"retry",
"attempts",
"=",
"0",
";",
"retry",
"attempts",
"<",
"max",
"retry",
"attempts",
";",
"retry",
"attempts",
"+",
"+",
")",
"{",
"if",
"(",
"download",
"resources",
"as",
"supervisor",
"attempt",
"(",
"cb",
",",
"key",
",",
"local",
"file",
")",
")",
"{",
"break",
";",
"}",
"utils",
"sleep",
"(",
"attempts",
"interval",
"time",
")",
";",
"}"
] |
[
"filters",
"keys",
"based",
"on",
"the",
"key",
"filter",
"passed",
"as",
"the",
"argument"
] | [
"set",
"<",
"r",
">",
"ret",
"=",
"new",
"hash",
"set",
"<",
"r",
">",
"(",
")",
";",
"while",
"(",
"keys",
"has",
"next",
"(",
")",
")",
"{",
"r",
"key",
"=",
"keys",
"next",
"(",
")",
";",
"r",
"filtered",
"=",
"filter",
"filter",
"(",
"key",
")",
";",
"if",
"(",
"filtered",
"!",
"=",
"null",
")",
"{",
"ret",
"add",
"(",
"filtered",
")",
";",
"}",
"}",
"return",
"ret",
";"
] |
[
"topology",
"ids",
"in",
"blobstore"
] | [
"return",
"code",
"ids",
"(",
"blob",
"store",
"list",
"keys",
"(",
")",
")",
";"
] |
[
"<",
"p",
">",
"one",
"of",
"the",
"following",
"metrics",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"min",
"size",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"max",
"size",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"desired",
"capacity",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"in",
"service",
"instances",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"pending",
"instances",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"standby",
"instances",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"terminating",
"instances",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"group",
"total",
"instances",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"metric",
"(",
"metric",
")",
";",
"return",
"this",
";"
] |
[
"build",
"the",
"string",
"for",
"declaring",
"the",
"variable",
"holding",
"the",
"array",
"-",
"like",
"-",
"object",
"to",
"test",
"so",
"{"
] | [
"protected",
"abstract",
"string",
"decl",
"type",
"(",
"string",
"value",
"type",
")",
";"
] |
[
"build",
"the",
"string",
"for",
"calling",
"the",
"constructor",
"for",
"the",
"array",
"-",
"like",
"-",
"object",
"to",
"test",
"so",
"{"
] | [
"protected",
"abstract",
"string",
"value",
"ctor",
"call",
"(",
"string",
"value",
"type",
",",
"int",
"size",
")",
";"
] |
[
"matcher",
"for",
"the",
"message",
"of",
"the",
"out",
"of",
"bounds",
"exceptions",
"thrown",
"for",
"too",
"negative",
"or",
"too",
"positive",
"offsets"
] | [
"protected",
"abstract",
"matcher",
"<",
"string",
">",
"out",
"of",
"bounds",
"exception",
"message",
"matcher",
"(",
"int",
"index",
",",
"int",
"size",
")",
";"
] |
[
"given",
"tree",
"rooted",
"at",
"{"
] | [
"public",
"abstract",
"collection",
"<",
"parse",
"tree",
">",
"evaluate",
"(",
"parse",
"tree",
"t",
")",
";"
] |
[
"<",
"p",
">",
"the",
"language",
"code",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"en",
"<",
"/",
"code",
">",
"-",
"english",
"(",
"default",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"jp",
"<",
"/",
"code",
">",
"-",
"japanese",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"zh",
"<",
"/",
"code",
">",
"-",
"chinese",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"accept",
"language",
"(",
"accept",
"language",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"to",
"use",
"for",
"display",
"purposes",
"<",
"/",
"p",
">"
] | [
"set",
"display",
"name",
"(",
"display",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"description",
"of",
"the",
"portfolio",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"portfolio",
"provider",
"<",
"/",
"p",
">"
] | [
"set",
"provider",
"name",
"(",
"provider",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"tags",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"tags",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"tags",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"tags",
"=",
"=",
"null",
")",
"{",
"set",
"tags",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"tag",
">",
"(",
"tags",
"length",
")",
")",
";",
"}",
"for",
"(",
"tag",
"ele",
":",
"tags",
")",
"{",
"this",
"tags",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"tags",
"<",
"/",
"p",
">"
] | [
"set",
"tags",
"(",
"tags",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"unique",
"identifier",
"that",
"you",
"provide",
"to",
"ensure",
"idempotency",
"if",
"multiple",
"requests",
"differ",
"only",
"by",
"the",
"idempotency",
"token",
"the",
"same",
"response",
"is",
"returned",
"for",
"each",
"repeated",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"idempotency",
"token",
"(",
"idempotency",
"token",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"list",
"of",
"command",
"-",
"line",
"options",
"to",
"pass",
"to",
"javac",
"these",
"options",
"reflect",
"the",
"configuration",
"of",
"this",
"javac",
"command"
] | [
"return",
"get",
"options",
"(",
"filesystem",
",",
"output",
"directory",
",",
"build",
"classpath",
"entries",
")",
";"
] |
[
"oracle",
"doesn",
"t",
"support",
"options",
"in",
"the",
"url",
"we",
"need",
"to",
"put",
"these",
"in",
"a",
"properties",
"object",
"at",
"connection",
"time"
] | [
"return",
"false",
";"
] |
[
"inits",
"the",
"udp",
"stream",
"receiver"
] | [
"this",
"output",
"stream",
"=",
"output",
"stream",
";",
"if",
"(",
"socket",
"!",
"=",
"null",
")",
"udp",
"socket",
"=",
"socket",
";"
] |
[
"is",
"this",
"query",
"running",
"in",
"streaming",
"mode",
"?"
] | [
"return",
"options",
"is",
"streaming",
"(",
")",
";"
] |
[
"return",
"maximum",
"number",
"of",
"workers"
] | [
"return",
"5",
";"
] |
[
"/",
"*",
"package"
] | [
"return",
"m",
"nano",
"app",
"hash",
"values",
"(",
")",
";"
] |
[
"/",
"*",
"package"
] | [
"for",
"(",
"nano",
"app",
"instance",
"info",
"info",
":",
"m",
"nano",
"app",
"hash",
"values",
"(",
")",
")",
"{",
"if",
"(",
"info",
"get",
"contexthub",
"id",
"(",
")",
"=",
"=",
"context",
"hub",
"id",
"&",
"&",
"info",
"get",
"app",
"id",
"(",
")",
"=",
"=",
"nano",
"app",
"id",
")",
"{",
"return",
"info",
"get",
"handle",
"(",
")",
";",
"}",
"}",
"return",
"-",
"1",
";"
] |
[
"/",
"*",
"package"
] | [
"int",
"nano",
"app",
"handle",
"=",
"get",
"nano",
"app",
"handle",
"(",
"context",
"hub",
"id",
",",
"nano",
"app",
"id",
")",
";",
"m",
"nano",
"app",
"hash",
"remove",
"(",
"nano",
"app",
"handle",
")",
";"
] |
[
"/",
"*",
"package"
] | [
"hash",
"set",
"<",
"long",
">",
"nano",
"app",
"id",
"set",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"hub",
"app",
"info",
"app",
"info",
":",
"nano",
"app",
"info",
"list",
")",
"{",
"handle",
"query",
"app",
"entry",
"(",
"context",
"hub",
"id",
",",
"app",
"info",
"app",
"id",
",",
"app",
"info",
"version",
")",
";",
"nano",
"app",
"id",
"set",
"add",
"(",
"app",
"info",
"app",
"id",
")",
";",
"}",
"iterator",
"<",
"nano",
"app",
"instance",
"info",
">",
"iterator",
"=",
"m",
"nano",
"app",
"hash",
"values",
"(",
")",
"iterator",
"(",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"nano",
"app",
"instance",
"info",
"info",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"info",
"get",
"contexthub",
"id",
"(",
")",
"=",
"=",
"context",
"hub",
"id",
"&",
"&",
"!",
"nano",
"app",
"id",
"set",
"contains",
"(",
"info",
"get",
"app",
"id",
"(",
")",
")",
")",
"{",
"iterator",
"remove",
"(",
")",
";",
"}",
"}"
] |
[
"assigns",
"the",
"supplied",
"call",
"id",
"to",
"the",
"supplied",
"operation",
"thereby",
"activating",
"it",
"refer",
"to",
"operation",
"#",
"set",
"call",
"id",
"(",
"long",
")",
"and",
"operation",
"#",
"get",
"call",
"id",
"(",
")",
"for",
"detailed",
"semantics"
] | [
"op",
"set",
"call",
"id",
"(",
"call",
"id",
")",
";"
] |
[
"marks",
"the",
"supplied",
"operation",
"as",
"not",
"active",
"refer",
"to",
"{"
] | [
"return",
"op",
"deactivate",
"(",
")",
";"
] |
[
"sets",
"the",
"invocation",
"time",
"for",
"the",
"operation"
] | [
"op",
"set",
"invocation",
"time",
"(",
"invocation",
"time",
")",
";"
] |
[
"sets",
"the",
"call",
"timeout",
"in",
"milliseconds",
"for",
"the",
"operation"
] | [
"op",
"set",
"call",
"timeout",
"(",
"call",
"timeout",
")",
";"
] |
[
"changes",
"error",
"message",
"mode",
"nothing",
"will",
"be",
"shown",
"until",
"error",
"text",
"is",
"set",
"can",
"be",
"set",
"from",
"xml",
"using",
"carbon",
"error",
"mode"
] | [
"this",
"error",
"mode",
"=",
"error",
"mode",
";",
"error",
"text",
"view",
"set",
"visibility",
"(",
"error",
"mode",
"=",
"=",
"error",
"mode",
"when",
"invalid",
"?",
"invisible",
":",
"error",
"mode",
"=",
"=",
"error",
"mode",
"always",
"?",
"visible",
":",
"gone",
")",
";"
] |
[
"deprecated",
"use",
"{",
"@",
"link",
"carbon",
"widget",
"input",
"layout",
"set",
"error",
"mode",
"}",
"instead"
] | [
"set",
"error",
"mode",
"(",
"error",
"visible",
"?",
"error",
"mode",
"when",
"invalid",
":",
"error",
"mode",
"never",
")",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"http",
"servlet",
"request",
"#",
"get",
"local",
"addr",
"(",
")",
"}"
] | [
"return",
"request",
"get",
"local",
"addr",
"(",
")",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"http",
"servlet",
"request",
"#",
"get",
"locale",
"(",
")",
"}"
] | [
"return",
"request",
"get",
"locale",
"(",
")",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"http",
"servlet",
"request",
"#",
"get",
"locales",
"(",
")",
"}"
] | [
"return",
"request",
"get",
"locales",
"(",
")",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"http",
"servlet",
"request",
"#",
"get",
"local",
"name",
"(",
")",
"}"
] | [
"return",
"request",
"get",
"local",
"name",
"(",
")",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"http",
"servlet",
"request",
"#",
"get",
"local",
"port",
"(",
")",
"}"
] | [
"return",
"request",
"get",
"local",
"port",
"(",
")",
";"
] |
[
"return",
"a",
"{",
"@",
"link",
"inet",
"socket",
"address",
"}",
"for",
"the",
"local",
"socket",
"<",
"p",
">",
"warning",
":",
"this",
"can",
"cause",
"a",
"dns",
"lookup"
] | [
"return",
"new",
"inet",
"socket",
"address",
"(",
"get",
"local",
"address",
"(",
")",
",",
"get",
"local",
"port",
"(",
")",
")",
";"
] |
[
"{"
] | [
"return",
"request",
"get",
"remote",
"addr",
"(",
")",
";"
] |
[
"equivalent",
"to",
"{",
"@",
"link",
"http",
"servlet",
"request",
"#",
"get",
"remote",
"host",
"(",
")",
"}"
] | [
"return",
"request",
"get",
"remote",
"host",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"request",
"get",
"remote",
"port",
"(",
")",
";"
] |
[
"return",
"a",
"{",
"@",
"link",
"inet",
"socket",
"address",
"}",
"for",
"the",
"remote",
"socket",
"<",
"p",
">",
"warning",
":",
"this",
"can",
"cause",
"a",
"dns",
"lookup"
] | [
"return",
"new",
"inet",
"socket",
"address",
"(",
"get",
"remote",
"address",
"(",
")",
",",
"get",
"remote",
"port",
"(",
")",
")",
";"
] |
[
"return",
"the",
"http",
"session",
"if",
"it",
"exists",
"<",
"p",
">",
"note",
":",
"this",
"is",
"equivalent",
"to",
"{"
] | [
"return",
"request",
"get",
"session",
"(",
"false",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.