docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"a",
"friendly",
"name",
"for",
"the",
"bundle",
"(",
"e",
"g",
"<",
"code",
">",
"micro",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"numeric",
"value",
"that",
"represents",
"the",
"power",
"of",
"the",
"bundle",
"(",
"e",
"g",
"<",
"code",
">",
"500",
"<",
"/",
"code",
">",
")",
"you",
"can",
"use",
"the",
"bundle",
"s",
"power",
"value",
"in",
"conjunction",
"with",
"a",
"blueprint",
"s",
"minimum",
"power",
"value",
"to",
"determine",
"whether",
"the",
"blueprint",
"will",
"run",
"on",
"the",
"bundle",
"for",
"example",
"you",
"need",
"a",
"bundle",
"with",
"a",
"power",
"value",
"of",
"500",
"or",
"more",
"to",
"create",
"an",
"instance",
"that",
"uses",
"a",
"blueprint",
"with",
"a",
"minimum",
"power",
"value",
"of",
"500",
"<",
"/",
"p",
">"
]
| [
"this",
"power",
"=",
"power",
";"
]
|
[
"<",
"p",
">",
"a",
"numeric",
"value",
"that",
"represents",
"the",
"power",
"of",
"the",
"bundle",
"(",
"e",
"g",
"<",
"code",
">",
"500",
"<",
"/",
"code",
">",
")",
"you",
"can",
"use",
"the",
"bundle",
"s",
"power",
"value",
"in",
"conjunction",
"with",
"a",
"blueprint",
"s",
"minimum",
"power",
"value",
"to",
"determine",
"whether",
"the",
"blueprint",
"will",
"run",
"on",
"the",
"bundle",
"for",
"example",
"you",
"need",
"a",
"bundle",
"with",
"a",
"power",
"value",
"of",
"500",
"or",
"more",
"to",
"create",
"an",
"instance",
"that",
"uses",
"a",
"blueprint",
"with",
"a",
"minimum",
"power",
"value",
"of",
"500",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"power",
";"
]
|
[
"<",
"p",
">",
"a",
"numeric",
"value",
"that",
"represents",
"the",
"power",
"of",
"the",
"bundle",
"(",
"e",
"g",
"<",
"code",
">",
"500",
"<",
"/",
"code",
">",
")",
"you",
"can",
"use",
"the",
"bundle",
"s",
"power",
"value",
"in",
"conjunction",
"with",
"a",
"blueprint",
"s",
"minimum",
"power",
"value",
"to",
"determine",
"whether",
"the",
"blueprint",
"will",
"run",
"on",
"the",
"bundle",
"for",
"example",
"you",
"need",
"a",
"bundle",
"with",
"a",
"power",
"value",
"of",
"500",
"or",
"more",
"to",
"create",
"an",
"instance",
"that",
"uses",
"a",
"blueprint",
"with",
"a",
"minimum",
"power",
"value",
"of",
"500",
"<",
"/",
"p",
">"
]
| [
"set",
"power",
"(",
"power",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"amount",
"of",
"ram",
"in",
"gb",
"(",
"e",
"g",
"<",
"code",
">",
"2",
"0",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"ram",
"size",
"in",
"gb",
"(",
"ram",
"size",
"in",
"gb",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"data",
"transfer",
"rate",
"per",
"month",
"in",
"gb",
"(",
"e",
"g",
"<",
"code",
">",
"2000",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"transfer",
"per",
"month",
"in",
"gb",
"(",
"transfer",
"per",
"month",
"in",
"gb",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"operating",
"system",
"platform",
"(",
"linux",
"/",
"unix",
"-",
"based",
"or",
"windows",
"server",
"-",
"based",
")",
"that",
"the",
"bundle",
"supports",
"you",
"can",
"only",
"launch",
"a",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"bundle",
"on",
"a",
"blueprint",
"that",
"supports",
"the",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"platform",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"blueprints",
"require",
"a",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"bundle",
"<",
"/",
"p",
">"
]
| [
"return",
"supported",
"platforms",
";"
]
|
[
"<",
"p",
">",
"the",
"operating",
"system",
"platform",
"(",
"linux",
"/",
"unix",
"-",
"based",
"or",
"windows",
"server",
"-",
"based",
")",
"that",
"the",
"bundle",
"supports",
"you",
"can",
"only",
"launch",
"a",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"bundle",
"on",
"a",
"blueprint",
"that",
"supports",
"the",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"platform",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"blueprints",
"require",
"a",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"bundle",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"supported",
"platforms",
"=",
"=",
"null",
")",
"{",
"this",
"supported",
"platforms",
"=",
"null",
";",
"return",
";",
"}",
"this",
"supported",
"platforms",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"supported",
"platforms",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"operating",
"system",
"platform",
"(",
"linux",
"/",
"unix",
"-",
"based",
"or",
"windows",
"server",
"-",
"based",
")",
"that",
"the",
"bundle",
"supports",
"you",
"can",
"only",
"launch",
"a",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"bundle",
"on",
"a",
"blueprint",
"that",
"supports",
"the",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"platform",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"blueprints",
"require",
"a",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"bundle",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"supported",
"platforms",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"supported",
"platforms",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"supported",
"platforms",
"=",
"=",
"null",
")",
"{",
"set",
"supported",
"platforms",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"supported",
"platforms",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"supported",
"platforms",
")",
"{",
"this",
"supported",
"platforms",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"operating",
"system",
"platform",
"(",
"linux",
"/",
"unix",
"-",
"based",
"or",
"windows",
"server",
"-",
"based",
")",
"that",
"the",
"bundle",
"supports",
"you",
"can",
"only",
"launch",
"a",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"bundle",
"on",
"a",
"blueprint",
"that",
"supports",
"the",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"platform",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"blueprints",
"require",
"a",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"bundle",
"<",
"/",
"p",
">"
]
| [
"set",
"supported",
"platforms",
"(",
"supported",
"platforms",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"operating",
"system",
"platform",
"(",
"linux",
"/",
"unix",
"-",
"based",
"or",
"windows",
"server",
"-",
"based",
")",
"that",
"the",
"bundle",
"supports",
"you",
"can",
"only",
"launch",
"a",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"bundle",
"on",
"a",
"blueprint",
"that",
"supports",
"the",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"platform",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"blueprints",
"require",
"a",
"<",
"code",
">",
"linux",
"unix",
"<",
"/",
"code",
">",
"bundle",
"<",
"/",
"p",
">"
]
| [
"java",
"util",
"array",
"list",
"<",
"string",
">",
"supported",
"platforms",
"copy",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"supported",
"platforms",
"length",
")",
";",
"for",
"(",
"instance",
"platform",
"value",
":",
"supported",
"platforms",
")",
"{",
"supported",
"platforms",
"copy",
"add",
"(",
"value",
"to",
"string",
"(",
")",
")",
";",
"}",
"if",
"(",
"get",
"supported",
"platforms",
"(",
")",
"=",
"=",
"null",
")",
"{",
"set",
"supported",
"platforms",
"(",
"supported",
"platforms",
"copy",
")",
";",
"}",
"else",
"{",
"get",
"supported",
"platforms",
"(",
")",
"add",
"all",
"(",
"supported",
"platforms",
"copy",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"verifies",
"threads",
"number",
"cli",
"parameter",
"value"
]
| [
"if",
"(",
"cmd",
"line",
"has",
"option",
"(",
"cli",
"parameter",
"name",
")",
")",
"{",
"final",
"string",
"checker",
"threads",
"number",
"str",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"cli",
"parameter",
"name",
")",
";",
"if",
"(",
"common",
"util",
"is",
"int",
"(",
"checker",
"threads",
"number",
"str",
")",
")",
"{",
"final",
"int",
"checker",
"threads",
"number",
"=",
"integer",
"parse",
"int",
"(",
"checker",
"threads",
"number",
"str",
")",
";",
"if",
"(",
"checker",
"threads",
"number",
"<",
"1",
")",
"{",
"result",
"add",
"(",
"must",
"be",
"greater",
"than",
"zero",
"message",
")",
";",
"}",
"}",
"else",
"{",
"result",
"add",
"(",
"invalid",
"number",
"message",
")",
";",
"}",
"}"
]
|
[
"util",
"method",
"to",
"convert",
"command",
"line",
"type",
"to",
"pojo",
"object"
]
| [
"final",
"cli",
"options",
"conf",
"=",
"new",
"cli",
"options",
"(",
")",
";",
"conf",
"format",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"f",
"name",
")",
";",
"if",
"(",
"conf",
"format",
"=",
"=",
"null",
")",
"{",
"conf",
"format",
"=",
"plain",
"format",
"name",
";",
"}",
"conf",
"output",
"location",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"o",
"name",
")",
";",
"conf",
"config",
"location",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"c",
"name",
")",
";",
"conf",
"properties",
"location",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"p",
"name",
")",
";",
"conf",
"suppression",
"line",
"column",
"number",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"s",
"name",
")",
";",
"conf",
"files",
"=",
"files",
"to",
"process",
";",
"conf",
"execute",
"ignored",
"modules",
"=",
"cmd",
"line",
"has",
"option",
"(",
"option",
"execute",
"ignored",
"modules",
"name",
")",
";",
"final",
"string",
"checker",
"threads",
"number",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"capital",
"c",
"name",
",",
"one",
"string",
"value",
")",
";",
"conf",
"checker",
"threads",
"number",
"=",
"integer",
"parse",
"int",
"(",
"checker",
"threads",
"number",
")",
";",
"final",
"string",
"tree",
"walker",
"threads",
"number",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"capital",
"w",
"name",
",",
"one",
"string",
"value",
")",
";",
"conf",
"tree",
"walker",
"threads",
"number",
"=",
"integer",
"parse",
"int",
"(",
"tree",
"walker",
"threads",
"number",
")",
";",
"final",
"string",
"tab",
"width",
"=",
"cmd",
"line",
"get",
"option",
"value",
"(",
"option",
"tab",
"width",
"name",
",",
"default",
"tab",
"width",
")",
";",
"conf",
"tab",
"width",
"=",
"integer",
"parse",
"int",
"(",
"tab",
"width",
")",
";",
"conf",
"generate",
"xpath",
"suppressions",
"file",
"=",
"cmd",
"line",
"has",
"option",
"(",
"option",
"generate",
"xpath",
"suppression",
"name",
")",
";",
"return",
"conf",
";"
]
|
[
"creates",
"a",
"new",
"instance",
"of",
"the",
"root",
"module",
"that",
"will",
"control",
"and",
"run",
"checkstyle"
]
| [
"final",
"module",
"factory",
"factory",
"=",
"new",
"package",
"object",
"factory",
"(",
"checker",
"class",
"get",
"package",
"(",
")",
"get",
"name",
"(",
")",
",",
"module",
"class",
"loader",
")",
";",
"return",
"(",
"root",
"module",
")",
"factory",
"create",
"module",
"(",
"name",
")",
";"
]
|
[
"loads",
"properties",
"from",
"a",
"file"
]
| [
"final",
"properties",
"properties",
"=",
"new",
"properties",
"(",
")",
";",
"try",
"(",
"input",
"stream",
"stream",
"=",
"files",
"new",
"input",
"stream",
"(",
"file",
"to",
"path",
"(",
")",
")",
")",
"{",
"properties",
"load",
"(",
"stream",
")",
";",
"}",
"catch",
"(",
"final",
"i",
"o",
"exception",
"ex",
")",
"{",
"final",
"localized",
"message",
"load",
"properties",
"exception",
"message",
"=",
"new",
"localized",
"message",
"(",
"1",
",",
"definitions",
"checkstyle",
"bundle",
",",
"load",
"properties",
"exception",
",",
"new",
"string",
"[",
"]",
"{",
"file",
"get",
"absolute",
"path",
"(",
")",
"}",
",",
"null",
",",
"main",
"class",
",",
"null",
")",
";",
"throw",
"new",
"checkstyle",
"exception",
"(",
"load",
"properties",
"exception",
"message",
"get",
"message",
"(",
")",
",",
"ex",
")",
";",
"}",
"return",
"properties",
";"
]
|
[
"this",
"method",
"creates",
"in",
"audit",
"listener",
"an",
"open",
"stream",
"for",
"validation",
"data",
"it",
"must",
"be",
"closed",
"by",
"{"
]
| [
"final",
"audit",
"listener",
"listener",
";",
"if",
"(",
"xml",
"format",
"name",
"equals",
"(",
"format",
")",
")",
"{",
"final",
"output",
"stream",
"out",
"=",
"get",
"output",
"stream",
"(",
"output",
"location",
")",
";",
"final",
"automatic",
"bean",
"output",
"stream",
"options",
"close",
"output",
"stream",
"option",
"=",
"get",
"output",
"stream",
"options",
"(",
"output",
"location",
")",
";",
"listener",
"=",
"new",
"x",
"m",
"l",
"logger",
"(",
"out",
",",
"close",
"output",
"stream",
"option",
")",
";",
"}",
"else",
"if",
"(",
"plain",
"format",
"name",
"equals",
"(",
"format",
")",
")",
"{",
"final",
"output",
"stream",
"out",
"=",
"get",
"output",
"stream",
"(",
"output",
"location",
")",
";",
"final",
"automatic",
"bean",
"output",
"stream",
"options",
"close",
"output",
"stream",
"option",
"=",
"get",
"output",
"stream",
"options",
"(",
"output",
"location",
")",
";",
"listener",
"=",
"new",
"default",
"logger",
"(",
"out",
",",
"close",
"output",
"stream",
"option",
")",
";",
"}",
"else",
"{",
"final",
"localized",
"message",
"output",
"format",
"exception",
"message",
"=",
"new",
"localized",
"message",
"(",
"1",
",",
"definitions",
"checkstyle",
"bundle",
",",
"create",
"listener",
"exception",
",",
"new",
"string",
"[",
"]",
"{",
"format",
",",
"plain",
"format",
"name",
",",
"xml",
"format",
"name",
"}",
",",
"null",
",",
"main",
"class",
",",
"null",
")",
";",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"output",
"format",
"exception",
"message",
"get",
"message",
"(",
")",
")",
";",
"}",
"return",
"listener",
";"
]
|
[
"create",
"{"
]
| [
"final",
"automatic",
"bean",
"output",
"stream",
"options",
"result",
";",
"if",
"(",
"output",
"location",
"=",
"=",
"null",
")",
"{",
"result",
"=",
"automatic",
"bean",
"output",
"stream",
"options",
"none",
";",
"}",
"else",
"{",
"result",
"=",
"automatic",
"bean",
"output",
"stream",
"options",
"close",
";",
"}",
"return",
"result",
";"
]
|
[
"determines",
"the",
"files",
"to",
"process"
]
| [
"final",
"list",
"<",
"file",
">",
"files",
"=",
"new",
"linked",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"element",
":",
"files",
"to",
"process",
")",
"{",
"files",
"add",
"all",
"(",
"list",
"files",
"(",
"new",
"file",
"(",
"element",
")",
",",
"patterns",
"to",
"exclude",
")",
")",
";",
"}",
"return",
"files",
";"
]
|
[
"checks",
"if",
"a",
"directory",
"{"
]
| [
"boolean",
"result",
"=",
"false",
";",
"for",
"(",
"pattern",
"pattern",
":",
"patterns",
"to",
"exclude",
")",
"{",
"if",
"(",
"pattern",
"matcher",
"(",
"path",
")",
"find",
"(",
")",
")",
"{",
"result",
"=",
"true",
";",
"break",
";",
"}",
"}",
"return",
"result",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"long",
"function",
"address",
"=",
"gl",
"get",
"capabilities",
"w",
"g",
"l",
"(",
")",
"wgl",
"create",
"pbuffer",
"a",
"r",
"b",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"hdc",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"(",
"function",
"address",
",",
"hdc",
",",
"pixel",
"format",
",",
"width",
",",
"height",
",",
"attrib",
"list",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"long",
"function",
"address",
"=",
"gl",
"get",
"capabilities",
"w",
"g",
"l",
"(",
")",
"wgl",
"query",
"pbuffer",
"a",
"r",
"b",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"pbuffer",
")",
";",
"}",
"return",
"call",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"pbuffer",
",",
"attribute",
",",
"value",
")",
";"
]
|
[
"locates",
"last",
"dot",
"after",
"the",
"last",
"slash",
"or",
"just",
"slash"
]
| [
"int",
"slash",
"ndx",
"=",
"str",
"last",
"index",
"of",
"(",
"'",
"/",
"'",
")",
";",
"int",
"dot",
"ndx",
"=",
"string",
"util",
"last",
"index",
"of",
"(",
"str",
",",
"'",
"'",
",",
"str",
"length",
"(",
")",
",",
"slash",
"ndx",
")",
";",
"if",
"(",
"dot",
"ndx",
"=",
"=",
"-",
"1",
")",
"{",
"if",
"(",
"slash",
"ndx",
"=",
"=",
"-",
"1",
")",
"{",
"return",
"-",
"1",
";",
"}",
"slash",
"ndx",
"+",
"+",
";",
"if",
"(",
"slash",
"ndx",
"<",
"str",
"length",
"(",
")",
"-",
"1",
")",
"{",
"dot",
"ndx",
"=",
"slash",
"ndx",
";",
"}",
"else",
"{",
"dot",
"ndx",
"=",
"-",
"1",
";",
"}",
"}",
"return",
"dot",
"ndx",
";"
]
|
[
"locates",
"last",
"index",
"of",
"dot",
"after",
"the",
"optional",
"last",
"slash"
]
| [
"int",
"slash",
"ndx",
"=",
"str",
"last",
"index",
"of",
"(",
"'",
"/",
"'",
")",
";",
"slash",
"ndx",
"+",
"+",
";",
"return",
"string",
"util",
"last",
"index",
"of",
"(",
"str",
",",
"'",
"'",
",",
"str",
"length",
"(",
")",
",",
"slash",
"ndx",
")",
";"
]
|
[
"locates",
"first",
"dot",
"after",
"the",
"last",
"slash"
]
| [
"int",
"slash",
"ndx",
"=",
"str",
"last",
"index",
"of",
"(",
"'",
"/",
"'",
")",
";",
"if",
"(",
"slash",
"ndx",
"=",
"=",
"-",
"1",
")",
"{",
"slash",
"ndx",
"=",
"0",
";",
"}",
"return",
"str",
"index",
"of",
"(",
"'",
"'",
",",
"slash",
"ndx",
")",
";"
]
|
[
"removes",
"last",
"camel",
"word"
]
| [
"int",
"ndx",
"=",
"name",
"length",
"(",
")",
"-",
"1",
";",
"while",
"(",
"ndx",
">",
"=",
"0",
")",
"{",
"if",
"(",
"char",
"util",
"is",
"uppercase",
"alpha",
"(",
"name",
"char",
"at",
"(",
"ndx",
")",
")",
")",
"{",
"break",
";",
"}",
"ndx",
"-",
"-",
";",
"}",
"if",
"(",
"ndx",
">",
"=",
"0",
")",
"{",
"name",
"=",
"name",
"substring",
"(",
"0",
",",
"ndx",
")",
";",
"}",
"return",
"name",
";"
]
|
[
"splits",
"action",
"path",
"to",
"chunks"
]
| [
"return",
"string",
"util",
"splitc",
"(",
"action",
"path",
"substring",
"(",
"1",
")",
",",
"'",
"/",
"'",
")",
";"
]
|
[
"factory",
"for",
"labels",
"from",
"separate",
"components"
]
| [
"return",
"create",
"(",
"validate",
"package",
"name",
"(",
"package",
"name",
",",
"target",
"name",
")",
",",
"target",
"name",
")",
";"
]
|
[
"similar",
"factory",
"to",
"above",
"but",
"takes",
"a",
"package",
"identifier",
"to",
"allow",
"external",
"repository",
"labels",
"to",
"be",
"created"
]
| [
"return",
"create",
"unvalidated",
"(",
"package",
"id",
",",
"validate",
"target",
"name",
"(",
"package",
"id",
",",
"target",
"name",
")",
")",
";"
]
|
[
"similar",
"factory",
"to",
"above",
"but",
"does",
"not",
"perform",
"target",
"name",
"validation"
]
| [
"return",
"label",
"interner",
"intern",
"(",
"new",
"label",
"(",
"package",
"identifier",
",",
"name",
")",
")",
";"
]
|
[
"returns",
"the",
"path",
"fragment",
"of",
"the",
"package",
"in",
"which",
"this",
"rule",
"was",
"declared",
"(",
"e",
"g",
"{",
"@",
"code",
"/",
"/",
"file",
"/",
"base",
":",
"fileutils",
"test",
"}",
"returns",
"{",
"@",
"code",
"file",
"/",
"base",
"}",
")"
]
| [
"return",
"package",
"identifier",
"get",
"package",
"fragment",
"(",
")",
";"
]
|
[
"renders",
"this",
"label",
"in",
"canonical",
"form"
]
| [
"return",
"get",
"canonical",
"form",
"(",
")",
";"
]
|
[
"renders",
"this",
"label",
"in",
"canonical",
"form"
]
| [
"return",
"get",
"default",
"canonical",
"form",
"(",
")",
";"
]
|
[
"returns",
"a",
"label",
"in",
"the",
"same",
"package",
"as",
"this",
"label",
"with",
"the",
"given",
"target",
"name"
]
| [
"return",
"create",
"(",
"package",
"identifier",
",",
"target",
"name",
")",
";"
]
|
[
"defines",
"the",
"order",
"between",
"labels"
]
| [
"return",
"comparison",
"chain",
"start",
"(",
")",
"compare",
"(",
"package",
"identifier",
",",
"other",
"package",
"identifier",
")",
"compare",
"(",
"name",
",",
"other",
"name",
")",
"result",
"(",
")",
";"
]
|
[
"specialization",
"of",
"{"
]
| [
"int",
"result",
"=",
"31",
"+",
"(",
"obj",
"1",
"=",
"=",
"null",
"?",
"0",
":",
"obj",
"1",
"hash",
"code",
"(",
")",
")",
";",
"return",
"31",
"*",
"result",
"+",
"(",
"obj",
"2",
"=",
"=",
"null",
"?",
"0",
":",
"obj",
"2",
"hash",
"code",
"(",
")",
")",
";"
]
|
[
"see",
"that",
"calls",
"to",
"it",
"fail"
]
| [
"protocol",
"proxy",
"<",
"?",
">",
"proxy",
";",
"proxy",
"=",
"rpc",
"get",
"protocol",
"proxy",
"(",
"foo",
"unimplemented",
"class",
",",
"foo",
"unimplemented",
"version",
"i",
"d",
",",
"addr",
",",
"conf",
")",
";",
"foo",
"unimplemented",
"foo",
"=",
"(",
"foo",
"unimplemented",
")",
"proxy",
"get",
"proxy",
"(",
")",
";",
"foo",
"ping",
"(",
")",
";"
]
|
[
"get",
"protocol",
"version",
"of",
"an",
"unimplemented",
"version",
"should",
"return",
"highest",
"version",
"similarly",
"get",
"protocol",
"signature",
"should",
"work"
]
| [
"protocol",
"proxy",
"<",
"?",
">",
"proxy",
";",
"proxy",
"=",
"rpc",
"get",
"protocol",
"proxy",
"(",
"foo",
"unimplemented",
"class",
",",
"foo",
"unimplemented",
"version",
"i",
"d",
",",
"addr",
",",
"conf",
")",
";",
"foo",
"unimplemented",
"foo",
"=",
"(",
"foo",
"unimplemented",
")",
"proxy",
"get",
"proxy",
"(",
")",
";",
"assert",
"assert",
"equals",
"(",
"foo",
"1",
"version",
"i",
"d",
",",
"foo",
"get",
"protocol",
"version",
"(",
"rpc",
"get",
"protocol",
"name",
"(",
"foo",
"unimplemented",
"class",
")",
",",
"foo",
"unimplemented",
"version",
"i",
"d",
")",
")",
";",
"foo",
"get",
"protocol",
"signature",
"(",
"rpc",
"get",
"protocol",
"name",
"(",
"foo",
"unimplemented",
"class",
")",
",",
"foo",
"unimplemented",
"version",
"i",
"d",
",",
"0",
")",
";"
]
|
[
"ensure",
"the",
"given",
"directories",
"exist",
"and",
"are",
"empty"
]
| [
"for",
"(",
"file",
"dir",
":",
"dirs",
")",
"{",
"file",
"utils",
"delete",
"directory",
"(",
"dir",
")",
";",
"assert",
"assert",
"true",
"(",
"dir",
"mkdirs",
"(",
")",
")",
";",
"}"
]
|
[
"an",
"optional",
"method",
"to",
"add",
"a",
"{",
"@",
"link",
"snackbar",
"}",
"of",
"your",
"own",
"with",
"custom",
"styling",
"note",
"that",
"using",
"this",
"method",
"will",
"override",
"your",
"custom",
"action"
]
| [
"m",
"snack",
"bar",
"=",
"snack",
"bar",
";",
"m",
"snackbar",
"action",
"text",
"=",
"action",
"text",
";",
"m",
"snack",
"bar",
"add",
"callback",
"(",
"m",
"snackbar",
"callback",
")",
"set",
"action",
"(",
"action",
"text",
",",
"new",
"view",
"on",
"click",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"click",
"(",
"view",
"v",
")",
"{",
"undo",
"change",
"(",
")",
";",
"}",
"}",
")",
";"
]
|
[
"convenience",
"method",
"to",
"be",
"used",
"if",
"you",
"have",
"previously",
"set",
"a",
"{",
"@",
"link",
"snackbar",
"}",
"with",
"{",
"@",
"link",
"#",
"with",
"snack",
"bar",
"(",
"snackbar",
"string",
")",
"}"
]
| [
"if",
"(",
"m",
"snack",
"bar",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"view",
"snackbar",
"view",
"=",
"m",
"snack",
"bar",
"get",
"view",
"(",
")",
";",
"text",
"view",
"snackbar",
"text",
"=",
"(",
"text",
"view",
")",
"snackbar",
"view",
"find",
"view",
"by",
"id",
"(",
"com",
"google",
"android",
"material",
"r",
"id",
"snackbar",
"text",
")",
";",
"return",
"remove",
"(",
"snackbar",
"view",
",",
"snackbar",
"text",
"get",
"text",
"(",
")",
"to",
"string",
"(",
")",
",",
"m",
"snackbar",
"action",
"text",
",",
"m",
"snack",
"bar",
"get",
"duration",
"(",
")",
",",
"positions",
")",
";"
]
|
[
"{"
]
| [
"stack",
"trace",
"=",
"sanitize",
"string",
"(",
"stack",
"trace",
"+",
"tr",
")",
";"
]
|
[
"save",
"an",
"anr",
"info",
"instance",
"to",
"a",
"parcel"
]
| [
"dest",
"write",
"string",
"(",
"activity",
")",
";",
"dest",
"write",
"string",
"(",
"cause",
")",
";",
"dest",
"write",
"string",
"(",
"info",
")",
";"
]
|
[
"save",
"a",
"battery",
"info",
"instance",
"to",
"a",
"parcel"
]
| [
"dest",
"write",
"int",
"(",
"usage",
"percent",
")",
";",
"dest",
"write",
"long",
"(",
"duration",
"micros",
")",
";",
"dest",
"write",
"string",
"(",
"usage",
"details",
")",
";",
"dest",
"write",
"string",
"(",
"checkin",
"details",
")",
";"
]
|
[
"save",
"a",
"running",
"service",
"info",
"instance",
"to",
"a",
"parcel"
]
| [
"dest",
"write",
"long",
"(",
"duration",
"millis",
")",
";",
"dest",
"write",
"string",
"(",
"service",
"details",
")",
";"
]
|
[
"solves",
"0",
"/",
"1",
"knapsack",
"in",
"bottom",
"up",
"dynamic",
"programming"
]
| [
"int",
"k",
"[",
"]",
"[",
"]",
"=",
"new",
"int",
"[",
"val",
"length",
"+",
"1",
"]",
"[",
"w",
"+",
"1",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"=",
"val",
"length",
";",
"i",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"=",
"w",
";",
"j",
"+",
"+",
")",
"{",
"if",
"(",
"i",
"=",
"=",
"0",
"|",
"|",
"j",
"=",
"=",
"0",
")",
"{",
"k",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"0",
";",
"continue",
";",
"}",
"if",
"(",
"j",
"-",
"wt",
"[",
"i",
"-",
"1",
"]",
">",
"=",
"0",
")",
"{",
"k",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"math",
"max",
"(",
"k",
"[",
"i",
"-",
"1",
"]",
"[",
"j",
"]",
",",
"k",
"[",
"i",
"-",
"1",
"]",
"[",
"j",
"-",
"wt",
"[",
"i",
"-",
"1",
"]",
"]",
"+",
"val",
"[",
"i",
"-",
"1",
"]",
")",
";",
"}",
"else",
"{",
"k",
"[",
"i",
"]",
"[",
"j",
"]",
"=",
"k",
"[",
"i",
"-",
"1",
"]",
"[",
"j",
"]",
";",
"}",
"}",
"}",
"return",
"k",
"[",
"val",
"length",
"]",
"[",
"w",
"]",
";"
]
|
[
"<",
"p",
">",
"sends",
"messages",
"to",
"a",
"channel",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"batch",
"put",
"message",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"cancels",
"the",
"reprocessing",
"of",
"data",
"through",
"the",
"pipeline",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"cancel",
"pipeline",
"reprocessing",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"creates",
"a",
"data",
"set",
"a",
"data",
"set",
"stores",
"data",
"retrieved",
"from",
"a",
"data",
"store",
"by",
"applying",
"a",
"query",
"action",
"(",
"a",
"sql",
"query",
")",
"or",
"a",
"container",
"action",
"(",
"executing",
"a",
"containerized",
"application",
")",
"this",
"operation",
"creates",
"the",
"skeleton",
"of",
"a",
"data",
"set",
"the",
"data",
"set",
"can",
"be",
"populated",
"manually",
"by",
"calling",
"create",
"dataset",
"content",
"or",
"automatically",
"according",
"to",
"a",
"trigger",
"you",
"specify",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"create",
"dataset",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"creates",
"the",
"content",
"of",
"a",
"data",
"set",
"by",
"applying",
"a",
"sql",
"action",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"create",
"dataset",
"content",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"creates",
"a",
"data",
"store",
"which",
"is",
"a",
"repository",
"for",
"messages",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"create",
"datastore",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"deletes",
"the",
"content",
"of",
"the",
"specified",
"data",
"set",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"delete",
"dataset",
"content",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"deletes",
"the",
"specified",
"data",
"store",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"delete",
"datastore",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"retrieves",
"information",
"about",
"a",
"data",
"store",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"describe",
"datastore",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"retrieves",
"the",
"current",
"settings",
"of",
"the",
"aws",
"io",
"t",
"analytics",
"logging",
"options",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"describe",
"logging",
"options",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"retrieves",
"information",
"about",
"a",
"pipeline",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"describe",
"pipeline",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"retrieves",
"the",
"contents",
"of",
"a",
"data",
"set",
"as",
"pre",
"-",
"signed",
"u",
"r",
"is",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"get",
"dataset",
"content",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"lists",
"information",
"about",
"data",
"set",
"contents",
"that",
"have",
"been",
"created",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"list",
"dataset",
"contents",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"retrieves",
"a",
"list",
"of",
"data",
"stores",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"list",
"datastores",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"sets",
"or",
"updates",
"the",
"aws",
"io",
"t",
"analytics",
"logging",
"options",
"<",
"/",
"p",
">",
"<",
"p",
">",
"note",
"that",
"if",
"you",
"update",
"the",
"value",
"of",
"any",
"<",
"code",
">",
"logging",
"options",
"<",
"/",
"code",
">",
"field",
"it",
"takes",
"up",
"to",
"one",
"minute",
"for",
"the",
"change",
"to",
"take",
"effect",
"also",
"if",
"you",
"change",
"the",
"policy",
"attached",
"to",
"the",
"role",
"you",
"specified",
"in",
"the",
"role",
"arn",
"field",
"(",
"for",
"example",
"to",
"correct",
"an",
"invalid",
"policy",
")",
"it",
"takes",
"up",
"to",
"5",
"minutes",
"for",
"that",
"change",
"to",
"take",
"effect",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"put",
"logging",
"options",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"simulates",
"the",
"results",
"of",
"running",
"a",
"pipeline",
"activity",
"on",
"a",
"message",
"payload",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"run",
"pipeline",
"activity",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"retrieves",
"a",
"sample",
"of",
"messages",
"from",
"the",
"specified",
"channel",
"ingested",
"during",
"the",
"specified",
"timeframe",
"up",
"to",
"10",
"messages",
"can",
"be",
"retrieved",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"sample",
"channel",
"data",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"starts",
"the",
"reprocessing",
"of",
"raw",
"message",
"data",
"through",
"the",
"pipeline",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"start",
"pipeline",
"reprocessing",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"updates",
"the",
"settings",
"of",
"a",
"data",
"set",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"update",
"dataset",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"updates",
"the",
"settings",
"of",
"a",
"data",
"store",
"<",
"/",
"p",
">"
]
| [
"request",
"=",
"before",
"client",
"execution",
"(",
"request",
")",
";",
"return",
"execute",
"update",
"datastore",
"(",
"request",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"version",
"of",
"the",
"platform",
"<",
"/",
"p",
">"
]
| [
"set",
"platform",
"arn",
"(",
"platform",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
]
| [
"final",
"string",
"key",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"final",
"string",
"val",
"1",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"final",
"string",
"val",
"2",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"message",
"result",
";",
"result",
"=",
"fluent",
"clear",
"all",
"(",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
",",
"atomix",
"multi",
"map",
"action",
"put",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"key",
",",
"key",
")",
"with",
"body",
"(",
"val",
"1",
")",
"request",
"(",
"message",
"class",
")",
";",
"assert",
"true",
"(",
"result",
"get",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
"has",
"result",
",",
"boolean",
"class",
")",
")",
";",
"assert",
"true",
"(",
"result",
"get",
"body",
"(",
"boolean",
"class",
")",
")",
";",
"assert",
"equals",
"(",
"arrays",
"as",
"list",
"(",
"val",
"1",
")",
",",
"map",
"get",
"(",
"key",
")",
"join",
"(",
")",
")",
";",
"result",
"=",
"fluent",
"clear",
"all",
"(",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
",",
"atomix",
"multi",
"map",
"action",
"put",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"key",
",",
"key",
")",
"with",
"body",
"(",
"val",
"2",
")",
"request",
"(",
"message",
"class",
")",
";",
"assert",
"true",
"(",
"result",
"get",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
"has",
"result",
",",
"boolean",
"class",
")",
")",
";",
"assert",
"true",
"(",
"result",
"get",
"body",
"(",
"boolean",
"class",
")",
")",
";",
"assert",
"equals",
"(",
"arrays",
"as",
"list",
"(",
"val",
"1",
",",
"val",
"2",
")",
",",
"map",
"get",
"(",
"key",
")",
"join",
"(",
")",
")",
";"
]
|
[
"}"
]
| [
"final",
"string",
"key",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"final",
"string",
"val",
"1",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"final",
"string",
"val",
"2",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"final",
"string",
"val",
"3",
"=",
"context",
"(",
")",
"get",
"uuid",
"generator",
"(",
")",
"generate",
"uuid",
"(",
")",
";",
"map",
"put",
"(",
"key",
",",
"val",
"1",
")",
"join",
"(",
")",
";",
"map",
"put",
"(",
"key",
",",
"val",
"2",
")",
"join",
"(",
")",
";",
"map",
"put",
"(",
"key",
",",
"val",
"3",
")",
"join",
"(",
")",
";",
"message",
"result",
";",
"result",
"=",
"fluent",
"clear",
"all",
"(",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
",",
"atomix",
"multi",
"map",
"action",
"remove",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"key",
",",
"key",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"value",
",",
"val",
"1",
")",
"request",
"(",
"message",
"class",
")",
";",
"assert",
"true",
"(",
"result",
"get",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
"has",
"result",
",",
"boolean",
"class",
")",
")",
";",
"assert",
"equals",
"(",
"arrays",
"as",
"list",
"(",
"val",
"2",
",",
"val",
"3",
")",
",",
"map",
"get",
"(",
"key",
")",
"join",
"(",
")",
")",
";",
"result",
"=",
"fluent",
"clear",
"all",
"(",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
",",
"atomix",
"multi",
"map",
"action",
"remove",
"value",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"value",
",",
"val",
"2",
")",
"request",
"(",
"message",
"class",
")",
";",
"assert",
"false",
"(",
"result",
"get",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
"has",
"result",
",",
"boolean",
"class",
")",
")",
";",
"assert",
"equals",
"(",
"arrays",
"as",
"list",
"(",
"val",
"3",
")",
",",
"map",
"get",
"(",
"key",
")",
"join",
"(",
")",
")",
";",
"assert",
"true",
"(",
"map",
"contains",
"key",
"(",
"key",
")",
"join",
"(",
")",
")",
";",
"result",
"=",
"fluent",
"clear",
"all",
"(",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
",",
"atomix",
"multi",
"map",
"action",
"remove",
")",
"with",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"key",
",",
"key",
")",
"request",
"(",
"message",
"class",
")",
";",
"assert",
"true",
"(",
"result",
"get",
"header",
"(",
"atomix",
"client",
"constants",
"resource",
"action",
"has",
"result",
",",
"boolean",
"class",
")",
")",
";",
"assert",
"false",
"(",
"map",
"contains",
"key",
"(",
"key",
")",
"join",
"(",
")",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"unique",
"id",
"of",
"a",
"field",
"-",
"level",
"encryption",
"item",
"<",
"/",
"p",
">"
]
| [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"last",
"time",
"that",
"the",
"summary",
"of",
"field",
"-",
"level",
"encryption",
"items",
"was",
"modified",
"<",
"/",
"p",
">"
]
| [
"set",
"last",
"modified",
"time",
"(",
"last",
"modified",
"time",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"optional",
"comment",
"about",
"the",
"field",
"-",
"level",
"encryption",
"item",
"<",
"/",
"p",
">"
]
| [
"set",
"comment",
"(",
"comment",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"summary",
"of",
"a",
"query",
"argument",
"-",
"profile",
"mapping",
"<",
"/",
"p",
">"
]
| [
"set",
"query",
"arg",
"profile",
"config",
"(",
"query",
"arg",
"profile",
"config",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"summary",
"of",
"a",
"content",
"type",
"-",
"profile",
"mapping",
"<",
"/",
"p",
">"
]
| [
"set",
"content",
"type",
"profile",
"config",
"(",
"content",
"type",
"profile",
"config",
")",
";",
"return",
"this",
";"
]
|
[
"set",
"the",
"overall",
"size",
"for",
"the",
"progress",
"spinner",
"this",
"updates",
"the",
"radius",
"and",
"stroke",
"width",
"of",
"the",
"ring"
]
| [
"if",
"(",
"size",
"=",
"=",
"large",
")",
"{",
"set",
"size",
"parameters",
"(",
"circle",
"diameter",
"large",
",",
"circle",
"diameter",
"large",
",",
"center",
"radius",
"large",
",",
"stroke",
"width",
"large",
",",
"arrow",
"width",
"large",
",",
"arrow",
"height",
"large",
")",
";",
"}",
"else",
"{",
"set",
"size",
"parameters",
"(",
"circle",
"diameter",
",",
"circle",
"diameter",
",",
"center",
"radius",
",",
"stroke",
"width",
",",
"arrow",
"width",
",",
"arrow",
"height",
")",
";",
"}"
]
|
[
"update",
"the",
"background",
"color",
"of",
"the",
"circle",
"image",
"view"
]
| [
"m",
"background",
"color",
"=",
"color",
";",
"m",
"ring",
"set",
"background",
"color",
"(",
"color",
")",
";"
]
|
[
"draw",
"the",
"progress",
"spinner"
]
| [
"m",
"circle",
"paint",
"set",
"color",
"(",
"m",
"background",
"color",
")",
";",
"m",
"circle",
"paint",
"set",
"alpha",
"(",
"m",
"alpha",
")",
";",
"c",
"draw",
"circle",
"(",
"bounds",
"exact",
"center",
"x",
"(",
")",
",",
"bounds",
"exact",
"center",
"y",
"(",
")",
",",
"bounds",
"width",
"(",
")",
"/",
"2",
",",
"m",
"circle",
"paint",
")",
";",
"final",
"rect",
"f",
"arc",
"bounds",
"=",
"m",
"temp",
"bounds",
";",
"arc",
"bounds",
"set",
"(",
"bounds",
")",
";",
"arc",
"bounds",
"inset",
"(",
"m",
"stroke",
"inset",
",",
"m",
"stroke",
"inset",
")",
";",
"final",
"float",
"start",
"angle",
"=",
"(",
"m",
"start",
"trim",
"+",
"m",
"rotation",
")",
"*",
"360",
";",
"final",
"float",
"end",
"angle",
"=",
"(",
"m",
"end",
"trim",
"+",
"m",
"rotation",
")",
"*",
"360",
";",
"float",
"sweep",
"angle",
"=",
"end",
"angle",
"-",
"start",
"angle",
";",
"m",
"arc",
"paint",
"set",
"color",
"(",
"m",
"colors",
"[",
"m",
"color",
"index",
"]",
")",
";",
"m",
"arc",
"paint",
"set",
"alpha",
"(",
"m",
"alpha",
")",
";",
"c",
"draw",
"arc",
"(",
"arc",
"bounds",
",",
"start",
"angle",
",",
"sweep",
"angle",
",",
"false",
",",
"m",
"arc",
"paint",
")",
";",
"draw",
"triangle",
"(",
"c",
",",
"start",
"angle",
",",
"sweep",
"angle",
",",
"bounds",
")",
";"
]
|
[
"gets",
"whether",
"any",
"encoding",
"transformers",
"have",
"been",
"registered",
"for",
"any",
"classes"
]
| [
"return",
"encode",
"hooks",
";"
]
|
[
"gets",
"whether",
"any",
"decoding",
"transformers",
"have",
"been",
"registered",
"for",
"any",
"classes"
]
| [
"return",
"decode",
"hooks",
";"
]
|
[
"registers",
"a",
"{",
"@",
"code",
"transformer",
"}",
"to",
"use",
"to",
"encode",
"a",
"specific",
"class",
"into",
"bson"
]
| [
"encode",
"hooks",
"=",
"true",
";",
"list",
"<",
"transformer",
">",
"transformers",
"for",
"class",
"=",
"encoding",
"hooks",
"get",
"(",
"clazz",
")",
";",
"if",
"(",
"transformers",
"for",
"class",
"=",
"=",
"null",
")",
"{",
"transformers",
"for",
"class",
"=",
"new",
"copy",
"on",
"write",
"array",
"list",
"<",
"transformer",
">",
"(",
")",
";",
"encoding",
"hooks",
"put",
"(",
"clazz",
",",
"transformers",
"for",
"class",
")",
";",
"}",
"transformers",
"for",
"class",
"add",
"(",
"transformer",
")",
";"
]
|
[
"registers",
"a",
"{",
"@",
"code",
"transformer",
"}",
"to",
"use",
"when",
"decoding",
"a",
"specific",
"class",
"from",
"bson",
"this",
"class",
"will",
"be",
"one",
"of",
"the",
"basic",
"types",
"supported",
"by",
"bson"
]
| [
"decode",
"hooks",
"=",
"true",
";",
"list",
"<",
"transformer",
">",
"transformers",
"for",
"class",
"=",
"decoding",
"hooks",
"get",
"(",
"clazz",
")",
";",
"if",
"(",
"transformers",
"for",
"class",
"=",
"=",
"null",
")",
"{",
"transformers",
"for",
"class",
"=",
"new",
"copy",
"on",
"write",
"array",
"list",
"<",
"transformer",
">",
"(",
")",
";",
"decoding",
"hooks",
"put",
"(",
"clazz",
",",
"transformers",
"for",
"class",
")",
";",
"}",
"transformers",
"for",
"class",
"add",
"(",
"transformer",
")",
";"
]
|
[
"transforms",
"the",
"{",
"@",
"code",
"object",
"to",
"encode",
"}",
"using",
"all",
"transformers",
"registered",
"for",
"the",
"class",
"of",
"this",
"object"
]
| [
"object",
"transformed",
"object",
"=",
"object",
"to",
"encode",
";",
"if",
"(",
"!",
"has",
"encode",
"hooks",
"(",
")",
"|",
"|",
"object",
"to",
"encode",
"=",
"=",
"null",
"|",
"|",
"encoding",
"hooks",
"size",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"transformed",
"object",
";",
"}",
"list",
"<",
"transformer",
">",
"transformers",
"for",
"object",
"=",
"encoding",
"hooks",
"get",
"(",
"object",
"to",
"encode",
"get",
"class",
"(",
")",
")",
";",
"if",
"(",
"transformers",
"for",
"object",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"final",
"transformer",
"transformer",
":",
"transformers",
"for",
"object",
")",
"{",
"transformed",
"object",
"=",
"transformer",
"transform",
"(",
"object",
"to",
"encode",
")",
";",
"}",
"}",
"return",
"transformed",
"object",
";"
]
|
[
"transforms",
"the",
"{",
"@",
"code",
"object",
"to",
"decode",
"}",
"using",
"all",
"transformers",
"registered",
"for",
"the",
"class",
"of",
"this",
"object"
]
| [
"object",
"transformed",
"object",
"=",
"object",
"to",
"decode",
";",
"if",
"(",
"!",
"has",
"decode",
"hooks",
"(",
")",
"|",
"|",
"object",
"to",
"decode",
"=",
"=",
"null",
"|",
"|",
"decoding",
"hooks",
"size",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"transformed",
"object",
";",
"}",
"list",
"<",
"transformer",
">",
"transformers",
"for",
"object",
"=",
"decoding",
"hooks",
"get",
"(",
"object",
"to",
"decode",
"get",
"class",
"(",
")",
")",
";",
"if",
"(",
"transformers",
"for",
"object",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"final",
"transformer",
"transformer",
":",
"transformers",
"for",
"object",
")",
"{",
"transformed",
"object",
"=",
"transformer",
"transform",
"(",
"object",
"to",
"decode",
")",
";",
"}",
"}",
"return",
"transformed",
"object",
";"
]
|
[
"returns",
"the",
"encoding",
"hook",
"(",
"s",
")",
"associated",
"with",
"the",
"specified",
"class"
]
| [
"return",
"encoding",
"hooks",
"get",
"(",
"clazz",
")",
";"
]
|
[
"clears",
"<",
"em",
">",
"all",
"<",
"/",
"em",
">",
"encoding",
"hooks"
]
| [
"encode",
"hooks",
"=",
"false",
";",
"encoding",
"hooks",
"clear",
"(",
")",
";"
]
|
[
"remove",
"all",
"encoding",
"hooks",
"for",
"a",
"specific",
"class"
]
| [
"encoding",
"hooks",
"remove",
"(",
"clazz",
")",
";"
]
|
[
"remove",
"a",
"specific",
"encoding",
"hook",
"for",
"a",
"specific",
"class",
"the",
"{",
"@",
"code",
"transformer",
"}",
"passed",
"as",
"the",
"parameter",
"must",
"be",
"{",
"@",
"code",
"equals",
"}",
"to",
"the",
"transformer",
"to",
"remove"
]
| [
"get",
"encoding",
"hooks",
"(",
"clazz",
")",
"remove",
"(",
"transformer",
")",
";"
]
|
[
"returns",
"the",
"decoding",
"hook",
"(",
"s",
")",
"associated",
"with",
"the",
"specific",
"class"
]
| [
"return",
"decoding",
"hooks",
"get",
"(",
"clazz",
")",
";"
]
|
[
"clears",
"<",
"em",
">",
"all",
"<",
"/",
"em",
">",
"decoding",
"hooks"
]
| [
"decode",
"hooks",
"=",
"false",
";",
"decoding",
"hooks",
"clear",
"(",
")",
";"
]
|
[
"remove",
"all",
"decoding",
"hooks",
"for",
"a",
"specific",
"class"
]
| [
"decoding",
"hooks",
"remove",
"(",
"clazz",
")",
";"
]
|
[
"remove",
"a",
"specific",
"encoding",
"hook",
"for",
"a",
"specific",
"class",
"the",
"{",
"@",
"code",
"transformer",
"}",
"passed",
"as",
"the",
"parameter",
"must",
"be",
"{",
"@",
"code",
"equals",
"}",
"to",
"the",
"transformer",
"to",
"remove"
]
| [
"get",
"decoding",
"hooks",
"(",
"clazz",
")",
"remove",
"(",
"transformer",
")",
";"
]
|
[
"remove",
"all",
"decoding",
"and",
"encoding",
"hooks",
"for",
"all",
"classes"
]
| [
"clear",
"encoding",
"hooks",
"(",
")",
";",
"clear",
"decoding",
"hooks",
"(",
")",
";"
]
|
[
"encodes",
"a",
"d",
"b",
"object",
"as",
"a",
"bson",
"byte",
"array"
]
| [
"return",
"new",
"basic",
"b",
"s",
"o",
"n",
"encoder",
"(",
")",
"encode",
"(",
"doc",
")",
";"
]
|
[
"decodes",
"a",
"bson",
"byte",
"array",
"into",
"a",
"d",
"b",
"object",
"instance"
]
| [
"return",
"new",
"basic",
"b",
"s",
"o",
"n",
"decoder",
"(",
")",
"read",
"object",
"(",
"bytes",
")",
";"
]
|
[
"converts",
"a",
"sequence",
"of",
"regular",
"expression",
"modifiers",
"from",
"the",
"database",
"into",
"java",
"regular",
"expression",
"flags"
]
| [
"int",
"flags",
"=",
"0",
";",
"if",
"(",
"s",
"=",
"=",
"null",
")",
"{",
"return",
"flags",
";",
"}",
"for",
"(",
"final",
"char",
"f",
":",
"s",
"to",
"lower",
"case",
"(",
")",
"to",
"char",
"array",
"(",
")",
")",
"{",
"flags",
"|",
"=",
"regex",
"flag",
"(",
"f",
")",
";",
"}",
"return",
"flags",
";"
]
|
[
"object",
"payload",
"contained",
"in",
"exchange",
"exchange",
"header",
"and",
"body",
"contains",
"the",
"moved",
"path"
]
| [
"string",
"moved",
"path",
"=",
"(",
"string",
")",
"result",
"entries",
";",
"exchange",
"get",
"in",
"(",
")",
"set",
"header",
"(",
"atmos",
"result",
"header",
"moved",
"path",
"name",
"(",
")",
",",
"moved",
"path",
")",
";",
"exchange",
"get",
"in",
"(",
")",
"set",
"body",
"(",
"moved",
"path",
")",
";"
]
|
[
"all",
"uses",
"of",
"10",
"should",
"be",
"combined",
"except",
"the",
"local",
"assignment"
]
| [
"int",
"foo",
"=",
"10",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"10",
";",
"i",
"+",
"+",
")",
"{",
"foo",
"+",
"=",
"i",
"*",
"10",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"10",
";",
"i",
"+",
"+",
")",
"{",
"foo",
"+",
"=",
"i",
"+",
"10",
";",
"}"
]
|
[
"local",
"variables",
"cannot",
"be",
"intermingled"
]
| [
"int",
"i",
"=",
"10",
";",
"int",
"j",
"=",
"10",
";",
"int",
"k",
"=",
"10",
";",
"int",
"a",
"=",
"10",
";",
"int",
"b",
"=",
"10",
";",
"int",
"c",
"=",
"10",
";",
"i",
"*",
"=",
"10",
";"
]
|
[
"use",
"dataset",
"config",
"d",
"t",
"o",
"bucket",
"time",
"granularity",
"instead",
"of",
"this",
"method",
"for",
"considering",
"the",
"additives",
"of",
"the",
"dataset"
]
| [
"return",
"time",
"unit",
";"
]
|
[
"use",
"dataset",
"config",
"d",
"t",
"o",
"bucket",
"time",
"granularity",
"instead",
"of",
"this",
"method",
"for",
"considering",
"the",
"additives",
"of",
"the",
"dataset"
]
| [
"return",
"time",
"duration",
";"
]
|
[
"/",
"*"
]
| [
"return",
"owners",
";"
]
|
[
"sets",
"node",
"this",
"event",
"is",
"referring",
"to"
]
| [
"this",
"evt",
"node",
"=",
"evt",
"node",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.