docstring_tokens
list | code_tokens
list |
---|---|
[
"creates",
"a",
"new",
"minimal",
"{"
]
| [
"return",
"new",
"object",
"mapper",
"(",
")",
"register",
"module",
"(",
"new",
"guava",
"module",
"(",
")",
")",
"set",
"subtype",
"resolver",
"(",
"new",
"discoverable",
"subtype",
"resolver",
"(",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"request",
"-",
">",
"true",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"new",
"http",
"method",
"predicate",
"(",
"http",
"method",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"new",
"http",
"method",
"predicate",
"(",
"http",
"methods",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"new",
"headers",
"predicate",
"(",
"headers",
"predicate",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"get",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"head",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"post",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"put",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"patch",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"delete",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"method",
"(",
"http",
"method",
"options",
")",
"and",
"(",
"path",
"(",
"pattern",
")",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"new",
"path",
"extension",
"predicate",
"(",
"extension",
"predicate",
")",
";"
]
|
[
"return",
"a",
"{"
]
| [
"return",
"new",
"query",
"param",
"predicate",
"(",
"name",
",",
"predicate",
")",
";"
]
|
[
"@",
"param",
"path",
"@",
"param",
"watcher"
]
| [
"byte",
"[",
"]",
"data",
"=",
"zk",
"get",
"data",
"(",
"path",
",",
"watcher",
",",
"stat",
")",
";",
"return",
"new",
"string",
"(",
"data",
",",
"charset",
")",
";"
]
|
[
"draws",
"the",
"limit",
"lines",
"associated",
"with",
"this",
"axis",
"to",
"the",
"screen"
]
| [
"list",
"<",
"limit",
"line",
">",
"limit",
"lines",
"=",
"m",
"x",
"axis",
"get",
"limit",
"lines",
"(",
")",
";",
"if",
"(",
"limit",
"lines",
"=",
"=",
"null",
"|",
"|",
"limit",
"lines",
"size",
"(",
")",
"<",
"=",
"0",
")",
"return",
";",
"float",
"[",
"]",
"position",
"=",
"m",
"render",
"limit",
"lines",
"buffer",
";",
"position",
"[",
"0",
"]",
"=",
"0",
";",
"position",
"[",
"1",
"]",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"limit",
"lines",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"limit",
"line",
"l",
"=",
"limit",
"lines",
"get",
"(",
"i",
")",
";",
"if",
"(",
"!",
"l",
"is",
"enabled",
"(",
")",
")",
"continue",
";",
"int",
"clip",
"restore",
"count",
"=",
"c",
"save",
"(",
")",
";",
"m",
"limit",
"line",
"clipping",
"rect",
"set",
"(",
"m",
"view",
"port",
"handler",
"get",
"content",
"rect",
"(",
")",
")",
";",
"m",
"limit",
"line",
"clipping",
"rect",
"inset",
"(",
"-",
"l",
"get",
"line",
"width",
"(",
")",
",",
"0",
"f",
")",
";",
"c",
"clip",
"rect",
"(",
"m",
"limit",
"line",
"clipping",
"rect",
")",
";",
"position",
"[",
"0",
"]",
"=",
"l",
"get",
"limit",
"(",
")",
";",
"position",
"[",
"1",
"]",
"=",
"0",
"f",
";",
"m",
"trans",
"point",
"values",
"to",
"pixel",
"(",
"position",
")",
";",
"render",
"limit",
"line",
"line",
"(",
"c",
",",
"l",
",",
"position",
")",
";",
"render",
"limit",
"line",
"label",
"(",
"c",
",",
"l",
",",
"position",
",",
"2",
"f",
"+",
"l",
"get",
"y",
"offset",
"(",
")",
")",
";",
"c",
"restore",
"to",
"count",
"(",
"clip",
"restore",
"count",
")",
";",
"}"
]
|
[
"<",
"p",
">",
"the",
"a",
"r",
"ns",
"and",
"resource",
"types",
"of",
"resources",
"that",
"are",
"members",
"of",
"the",
"group",
"that",
"you",
"specified",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"resource",
"identifiers",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"resource",
"identifiers",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"resource",
"identifiers",
"=",
"=",
"null",
")",
"{",
"set",
"resource",
"identifiers",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"resource",
"identifier",
">",
"(",
"resource",
"identifiers",
"length",
")",
")",
";",
"}",
"for",
"(",
"resource",
"identifier",
"ele",
":",
"resource",
"identifiers",
")",
"{",
"this",
"resource",
"identifiers",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"a",
"r",
"ns",
"and",
"resource",
"types",
"of",
"resources",
"that",
"are",
"members",
"of",
"the",
"group",
"that",
"you",
"specified",
"<",
"/",
"p",
">"
]
| [
"set",
"resource",
"identifiers",
"(",
"resource",
"identifiers",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"next",
"token",
"value",
"to",
"include",
"in",
"a",
"subsequent",
"<",
"code",
">",
"list",
"group",
"resources",
"<",
"/",
"code",
">",
"request",
"to",
"get",
"more",
"results",
"<",
"/",
"p",
">"
]
| [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"copies",
"the",
"content",
"of",
"the",
"given",
"{",
"@",
"link",
"term",
"state",
"}",
"to",
"this",
"instance"
]
| [
"public",
"abstract",
"void",
"copy",
"from",
"(",
"term",
"state",
"other",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"kernel",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"we",
"recommend",
"that",
"you",
"use",
"pv",
"-",
"grub",
"instead",
"of",
"kernels",
"and",
"ram",
"disks",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"user",
"providedkernels",
"html",
">",
"user",
"provided",
"kernels",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">"
]
| [
"set",
"kernel",
"id",
"(",
"kernel",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"indicates",
"whether",
"the",
"instance",
"is",
"optimized",
"for",
"amazon",
"ebs",
"i",
"/",
"o",
"this",
"optimization",
"provides",
"dedicated",
"throughput",
"to",
"amazon",
"ebs",
"and",
"an",
"optimized",
"configuration",
"stack",
"to",
"provide",
"optimal",
"amazon",
"ebs",
"i",
"/",
"o",
"performance",
"this",
"optimization",
"isn",
"t",
"available",
"with",
"all",
"instance",
"types",
"additional",
"usage",
"charges",
"apply",
"when",
"using",
"an",
"ebs",
"-",
"optimized",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"ebs",
"optimized",
"(",
"ebs",
"optimized",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"iam",
"instance",
"profile",
"<",
"/",
"p",
">"
]
| [
"this",
"iam",
"instance",
"profile",
"=",
"iam",
"instance",
"profile",
";"
]
|
[
"<",
"p",
">",
"the",
"iam",
"instance",
"profile",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"iam",
"instance",
"profile",
";"
]
|
[
"<",
"p",
">",
"the",
"iam",
"instance",
"profile",
"<",
"/",
"p",
">"
]
| [
"set",
"iam",
"instance",
"profile",
"(",
"iam",
"instance",
"profile",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"block",
"device",
"mapping",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"supplying",
"both",
"a",
"snapshot",
"id",
"and",
"an",
"encryption",
"value",
"as",
"arguments",
"for",
"block",
"-",
"device",
"mapping",
"results",
"in",
"an",
"error",
"this",
"is",
"because",
"only",
"blank",
"volumes",
"can",
"be",
"encrypted",
"on",
"start",
"and",
"these",
"are",
"not",
"created",
"from",
"a",
"snapshot",
"if",
"a",
"snapshot",
"is",
"the",
"basis",
"for",
"the",
"volume",
"it",
"contains",
"data",
"by",
"definition",
"and",
"its",
"encryption",
"status",
"cannot",
"be",
"changed",
"using",
"this",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">"
]
| [
"if",
"(",
"block",
"device",
"mappings",
"=",
"=",
"null",
")",
"{",
"block",
"device",
"mappings",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"block",
"device",
"mapping",
"request",
">",
"(",
")",
";",
"}",
"return",
"block",
"device",
"mappings",
";"
]
|
[
"<",
"p",
">",
"the",
"block",
"device",
"mapping",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"supplying",
"both",
"a",
"snapshot",
"id",
"and",
"an",
"encryption",
"value",
"as",
"arguments",
"for",
"block",
"-",
"device",
"mapping",
"results",
"in",
"an",
"error",
"this",
"is",
"because",
"only",
"blank",
"volumes",
"can",
"be",
"encrypted",
"on",
"start",
"and",
"these",
"are",
"not",
"created",
"from",
"a",
"snapshot",
"if",
"a",
"snapshot",
"is",
"the",
"basis",
"for",
"the",
"volume",
"it",
"contains",
"data",
"by",
"definition",
"and",
"its",
"encryption",
"status",
"cannot",
"be",
"changed",
"using",
"this",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">"
]
| [
"if",
"(",
"block",
"device",
"mappings",
"=",
"=",
"null",
")",
"{",
"this",
"block",
"device",
"mappings",
"=",
"null",
";",
"return",
";",
"}",
"this",
"block",
"device",
"mappings",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"block",
"device",
"mapping",
"request",
">",
"(",
"block",
"device",
"mappings",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"block",
"device",
"mapping",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"supplying",
"both",
"a",
"snapshot",
"id",
"and",
"an",
"encryption",
"value",
"as",
"arguments",
"for",
"block",
"-",
"device",
"mapping",
"results",
"in",
"an",
"error",
"this",
"is",
"because",
"only",
"blank",
"volumes",
"can",
"be",
"encrypted",
"on",
"start",
"and",
"these",
"are",
"not",
"created",
"from",
"a",
"snapshot",
"if",
"a",
"snapshot",
"is",
"the",
"basis",
"for",
"the",
"volume",
"it",
"contains",
"data",
"by",
"definition",
"and",
"its",
"encryption",
"status",
"cannot",
"be",
"changed",
"using",
"this",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"block",
"device",
"mappings",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"block",
"device",
"mappings",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"block",
"device",
"mappings",
"=",
"=",
"null",
")",
"{",
"set",
"block",
"device",
"mappings",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"block",
"device",
"mapping",
"request",
">",
"(",
"block",
"device",
"mappings",
"length",
")",
")",
";",
"}",
"for",
"(",
"launch",
"template",
"block",
"device",
"mapping",
"request",
"ele",
":",
"block",
"device",
"mappings",
")",
"{",
"this",
"block",
"device",
"mappings",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"block",
"device",
"mapping",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"supplying",
"both",
"a",
"snapshot",
"id",
"and",
"an",
"encryption",
"value",
"as",
"arguments",
"for",
"block",
"-",
"device",
"mapping",
"results",
"in",
"an",
"error",
"this",
"is",
"because",
"only",
"blank",
"volumes",
"can",
"be",
"encrypted",
"on",
"start",
"and",
"these",
"are",
"not",
"created",
"from",
"a",
"snapshot",
"if",
"a",
"snapshot",
"is",
"the",
"basis",
"for",
"the",
"volume",
"it",
"contains",
"data",
"by",
"definition",
"and",
"its",
"encryption",
"status",
"cannot",
"be",
"changed",
"using",
"this",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">"
]
| [
"set",
"block",
"device",
"mappings",
"(",
"block",
"device",
"mappings",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"network",
"interfaces",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"network",
"interfaces",
"=",
"=",
"null",
")",
"{",
"network",
"interfaces",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"instance",
"network",
"interface",
"specification",
"request",
">",
"(",
")",
";",
"}",
"return",
"network",
"interfaces",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"network",
"interfaces",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"network",
"interfaces",
"=",
"=",
"null",
")",
"{",
"this",
"network",
"interfaces",
"=",
"null",
";",
"return",
";",
"}",
"this",
"network",
"interfaces",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"instance",
"network",
"interface",
"specification",
"request",
">",
"(",
"network",
"interfaces",
")",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"network",
"interfaces",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"network",
"interfaces",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"network",
"interfaces",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"network",
"interfaces",
"=",
"=",
"null",
")",
"{",
"set",
"network",
"interfaces",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"instance",
"network",
"interface",
"specification",
"request",
">",
"(",
"network",
"interfaces",
"length",
")",
")",
";",
"}",
"for",
"(",
"launch",
"template",
"instance",
"network",
"interface",
"specification",
"request",
"ele",
":",
"network",
"interfaces",
")",
"{",
"this",
"network",
"interfaces",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"network",
"interfaces",
"<",
"/",
"p",
">"
]
| [
"set",
"network",
"interfaces",
"(",
"network",
"interfaces",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"ami",
"which",
"you",
"can",
"get",
"by",
"using",
"<",
"a",
">",
"describe",
"images",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"image",
"id",
"(",
"image",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"instance",
"type",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"instance",
"-",
"types",
"html",
">",
"instance",
"types",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"instance",
"type",
"(",
"instance",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"instance",
"type",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"instance",
"-",
"types",
"html",
">",
"instance",
"types",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"instance",
"type",
"=",
"instance",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"key",
"pair",
"you",
"can",
"create",
"a",
"key",
"pair",
"using",
"<",
"a",
">",
"create",
"key",
"pair",
"<",
"/",
"a",
">",
"or",
"<",
"a",
">",
"import",
"key",
"pair",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"if",
"you",
"do",
"not",
"specify",
"a",
"key",
"pair",
"you",
"can",
"t",
"connect",
"to",
"the",
"instance",
"unless",
"you",
"choose",
"an",
"ami",
"that",
"is",
"configured",
"to",
"allow",
"users",
"another",
"way",
"to",
"log",
"in",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">"
]
| [
"set",
"key",
"name",
"(",
"key",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"monitoring",
"for",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"this",
"monitoring",
"=",
"monitoring",
";"
]
|
[
"<",
"p",
">",
"the",
"monitoring",
"for",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"monitoring",
";"
]
|
[
"<",
"p",
">",
"the",
"monitoring",
"for",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"monitoring",
"(",
"monitoring",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"placement",
"for",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"this",
"placement",
"=",
"placement",
";"
]
|
[
"<",
"p",
">",
"the",
"placement",
"for",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"placement",
";"
]
|
[
"<",
"p",
">",
"the",
"placement",
"for",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"placement",
"(",
"placement",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"ram",
"disk",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"we",
"recommend",
"that",
"you",
"use",
"pv",
"-",
"grub",
"instead",
"of",
"kernels",
"and",
"ram",
"disks",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"user",
"providedkernels",
"html",
">",
"user",
"provided",
"kernels",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">"
]
| [
"set",
"ram",
"disk",
"id",
"(",
"ram",
"disk",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"if",
"set",
"to",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"you",
"can",
"t",
"terminate",
"the",
"instance",
"using",
"the",
"amazon",
"ec2",
"console",
"cli",
"or",
"api",
"to",
"change",
"this",
"attribute",
"to",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"after",
"launch",
"use",
"<",
"a",
">",
"modify",
"instance",
"attribute",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"disable",
"api",
"termination",
"(",
"disable",
"api",
"termination",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"indicates",
"whether",
"an",
"instance",
"stops",
"or",
"terminates",
"when",
"you",
"initiate",
"shutdown",
"from",
"the",
"instance",
"(",
"using",
"the",
"operating",
"system",
"command",
"for",
"system",
"shutdown",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"default",
":",
"<",
"code",
">",
"stop",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"instance",
"initiated",
"shutdown",
"behavior",
"(",
"instance",
"initiated",
"shutdown",
"behavior",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"indicates",
"whether",
"an",
"instance",
"stops",
"or",
"terminates",
"when",
"you",
"initiate",
"shutdown",
"from",
"the",
"instance",
"(",
"using",
"the",
"operating",
"system",
"command",
"for",
"system",
"shutdown",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"default",
":",
"<",
"code",
">",
"stop",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"instance",
"initiated",
"shutdown",
"behavior",
"=",
"instance",
"initiated",
"shutdown",
"behavior",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"base",
"6",
"4",
"-",
"encoded",
"user",
"data",
"to",
"make",
"available",
"to",
"the",
"instance",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"user",
"-",
"data",
"html",
">",
"running",
"commands",
"on",
"your",
"linux",
"instance",
"at",
"launch",
"<",
"/",
"a",
">",
"(",
"linux",
")",
"and",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"windows",
"guide",
"/",
"ec",
"2",
"-",
"instance",
"-",
"metadata",
"html",
"#",
"instancedata",
"-",
"add",
"-",
"user",
"-",
"data",
">",
"adding",
"user",
"data",
"<",
"/",
"a",
">",
"(",
"windows",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"data",
"(",
"user",
"data",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"tags",
"to",
"apply",
"to",
"the",
"resources",
"during",
"launch",
"you",
"can",
"only",
"tag",
"instances",
"and",
"volumes",
"on",
"launch",
"the",
"specified",
"tags",
"are",
"applied",
"to",
"all",
"instances",
"or",
"volumes",
"that",
"are",
"created",
"during",
"launch",
"to",
"tag",
"a",
"resource",
"after",
"it",
"has",
"been",
"created",
"see",
"<",
"a",
">",
"create",
"tags",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"tag",
"specifications",
"=",
"=",
"null",
")",
"{",
"tag",
"specifications",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"tag",
"specification",
"request",
">",
"(",
")",
";",
"}",
"return",
"tag",
"specifications",
";"
]
|
[
"<",
"p",
">",
"the",
"tags",
"to",
"apply",
"to",
"the",
"resources",
"during",
"launch",
"you",
"can",
"only",
"tag",
"instances",
"and",
"volumes",
"on",
"launch",
"the",
"specified",
"tags",
"are",
"applied",
"to",
"all",
"instances",
"or",
"volumes",
"that",
"are",
"created",
"during",
"launch",
"to",
"tag",
"a",
"resource",
"after",
"it",
"has",
"been",
"created",
"see",
"<",
"a",
">",
"create",
"tags",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"tag",
"specifications",
"=",
"=",
"null",
")",
"{",
"this",
"tag",
"specifications",
"=",
"null",
";",
"return",
";",
"}",
"this",
"tag",
"specifications",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"tag",
"specification",
"request",
">",
"(",
"tag",
"specifications",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"tags",
"to",
"apply",
"to",
"the",
"resources",
"during",
"launch",
"you",
"can",
"only",
"tag",
"instances",
"and",
"volumes",
"on",
"launch",
"the",
"specified",
"tags",
"are",
"applied",
"to",
"all",
"instances",
"or",
"volumes",
"that",
"are",
"created",
"during",
"launch",
"to",
"tag",
"a",
"resource",
"after",
"it",
"has",
"been",
"created",
"see",
"<",
"a",
">",
"create",
"tags",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"tag",
"specifications",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"tag",
"specifications",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"tag",
"specifications",
"=",
"=",
"null",
")",
"{",
"set",
"tag",
"specifications",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"template",
"tag",
"specification",
"request",
">",
"(",
"tag",
"specifications",
"length",
")",
")",
";",
"}",
"for",
"(",
"launch",
"template",
"tag",
"specification",
"request",
"ele",
":",
"tag",
"specifications",
")",
"{",
"this",
"tag",
"specifications",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"tags",
"to",
"apply",
"to",
"the",
"resources",
"during",
"launch",
"you",
"can",
"only",
"tag",
"instances",
"and",
"volumes",
"on",
"launch",
"the",
"specified",
"tags",
"are",
"applied",
"to",
"all",
"instances",
"or",
"volumes",
"that",
"are",
"created",
"during",
"launch",
"to",
"tag",
"a",
"resource",
"after",
"it",
"has",
"been",
"created",
"see",
"<",
"a",
">",
"create",
"tags",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"tag",
"specifications",
"(",
"tag",
"specifications",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"elastic",
"gpu",
"to",
"associate",
"with",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"elastic",
"gpu",
"specifications",
"=",
"=",
"null",
")",
"{",
"elastic",
"gpu",
"specifications",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"elastic",
"gpu",
"specification",
">",
"(",
")",
";",
"}",
"return",
"elastic",
"gpu",
"specifications",
";"
]
|
[
"<",
"p",
">",
"an",
"elastic",
"gpu",
"to",
"associate",
"with",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"elastic",
"gpu",
"specifications",
"=",
"=",
"null",
")",
"{",
"this",
"elastic",
"gpu",
"specifications",
"=",
"null",
";",
"return",
";",
"}",
"this",
"elastic",
"gpu",
"specifications",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"elastic",
"gpu",
"specification",
">",
"(",
"elastic",
"gpu",
"specifications",
")",
";"
]
|
[
"<",
"p",
">",
"an",
"elastic",
"gpu",
"to",
"associate",
"with",
"the",
"instance",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"elastic",
"gpu",
"specifications",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"elastic",
"gpu",
"specifications",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"elastic",
"gpu",
"specifications",
"=",
"=",
"null",
")",
"{",
"set",
"elastic",
"gpu",
"specifications",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"elastic",
"gpu",
"specification",
">",
"(",
"elastic",
"gpu",
"specifications",
"length",
")",
")",
";",
"}",
"for",
"(",
"elastic",
"gpu",
"specification",
"ele",
":",
"elastic",
"gpu",
"specifications",
")",
"{",
"this",
"elastic",
"gpu",
"specifications",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"elastic",
"gpu",
"to",
"associate",
"with",
"the",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"elastic",
"gpu",
"specifications",
"(",
"elastic",
"gpu",
"specifications",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"security",
"group",
"i",
"ds",
"you",
"can",
"create",
"a",
"security",
"group",
"using",
"<",
"a",
">",
"create",
"security",
"group",
"<",
"/",
"a",
">",
"you",
"cannot",
"specify",
"both",
"a",
"security",
"group",
"id",
"and",
"security",
"name",
"in",
"the",
"same",
"request",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"security",
"group",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"security",
"group",
"ids",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"security",
"group",
"ids",
"=",
"=",
"null",
")",
"{",
"set",
"security",
"group",
"ids",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"security",
"group",
"ids",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"security",
"group",
"ids",
")",
"{",
"this",
"security",
"group",
"ids",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"one",
"or",
"more",
"security",
"group",
"i",
"ds",
"you",
"can",
"create",
"a",
"security",
"group",
"using",
"<",
"a",
">",
"create",
"security",
"group",
"<",
"/",
"a",
">",
"you",
"cannot",
"specify",
"both",
"a",
"security",
"group",
"id",
"and",
"security",
"name",
"in",
"the",
"same",
"request",
"<",
"/",
"p",
">"
]
| [
"set",
"security",
"group",
"ids",
"(",
"security",
"group",
"ids",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"[",
"ec2",
"-",
"classic",
"default",
"vpc",
"]",
"one",
"or",
"more",
"security",
"group",
"names",
"for",
"a",
"nondefault",
"vpc",
"you",
"must",
"use",
"security",
"group",
"i",
"ds",
"instead",
"you",
"cannot",
"specify",
"both",
"a",
"security",
"group",
"id",
"and",
"security",
"name",
"in",
"the",
"same",
"request",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"security",
"groups",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"security",
"groups",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"security",
"groups",
"=",
"=",
"null",
")",
"{",
"set",
"security",
"groups",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"security",
"groups",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"security",
"groups",
")",
"{",
"this",
"security",
"groups",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"[",
"ec2",
"-",
"classic",
"default",
"vpc",
"]",
"one",
"or",
"more",
"security",
"group",
"names",
"for",
"a",
"nondefault",
"vpc",
"you",
"must",
"use",
"security",
"group",
"i",
"ds",
"instead",
"you",
"cannot",
"specify",
"both",
"a",
"security",
"group",
"id",
"and",
"security",
"name",
"in",
"the",
"same",
"request",
"<",
"/",
"p",
">"
]
| [
"set",
"security",
"groups",
"(",
"security",
"groups",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"market",
"(",
"purchasing",
")",
"option",
"for",
"the",
"instances",
"<",
"/",
"p",
">"
]
| [
"this",
"instance",
"market",
"options",
"=",
"instance",
"market",
"options",
";"
]
|
[
"<",
"p",
">",
"the",
"market",
"(",
"purchasing",
")",
"option",
"for",
"the",
"instances",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"instance",
"market",
"options",
";"
]
|
[
"<",
"p",
">",
"the",
"market",
"(",
"purchasing",
")",
"option",
"for",
"the",
"instances",
"<",
"/",
"p",
">"
]
| [
"set",
"instance",
"market",
"options",
"(",
"instance",
"market",
"options",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"credit",
"option",
"for",
"cpu",
"usage",
"of",
"the",
"instance",
"valid",
"for",
"t2",
"or",
"t3",
"instances",
"only",
"<",
"/",
"p",
">"
]
| [
"set",
"credit",
"specification",
"(",
"credit",
"specification",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"cpu",
"options",
"for",
"the",
"instance",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"instance",
"-",
"optimize",
"-",
"cpu",
"html",
">",
"optimizing",
"cpu",
"options",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"cpu",
"options",
"=",
"cpu",
"options",
";"
]
|
[
"<",
"p",
">",
"the",
"cpu",
"options",
"for",
"the",
"instance",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"instance",
"-",
"optimize",
"-",
"cpu",
"html",
">",
"optimizing",
"cpu",
"options",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"cpu",
"options",
";"
]
|
[
"<",
"p",
">",
"the",
"cpu",
"options",
"for",
"the",
"instance",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"instance",
"-",
"optimize",
"-",
"cpu",
"html",
">",
"optimizing",
"cpu",
"options",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"cpu",
"options",
"(",
"cpu",
"options",
")",
";",
"return",
"this",
";"
]
|
[
"create",
"rpc",
"client",
"lookout",
"model"
]
| [
"rpc",
"client",
"lookout",
"model",
"client",
"metrics",
"model",
"=",
"new",
"rpc",
"client",
"lookout",
"model",
"(",
")",
";",
"rpc",
"internal",
"context",
"context",
"=",
"rpc",
"internal",
"context",
"get",
"context",
"(",
")",
";",
"string",
"app",
"=",
"get",
"string",
"avoid",
"null",
"(",
"context",
"get",
"attachment",
"(",
"rpc",
"constants",
"internal",
"key",
"app",
"name",
")",
")",
";",
"string",
"service",
"=",
"request",
"get",
"target",
"service",
"unique",
"name",
"(",
")",
";",
"string",
"method",
"=",
"request",
"get",
"method",
"name",
"(",
")",
";",
"string",
"protocol",
"=",
"get",
"string",
"avoid",
"null",
"(",
"context",
"get",
"attachment",
"(",
"rpc",
"constants",
"internal",
"key",
"protocol",
"name",
")",
")",
";",
"string",
"invoke",
"type",
"=",
"request",
"get",
"invoke",
"type",
"(",
")",
";",
"string",
"target",
"app",
"=",
"request",
"get",
"target",
"app",
"name",
"(",
")",
";",
"long",
"request",
"size",
"=",
"get",
"long",
"avoid",
"null",
"(",
"context",
"get",
"attachment",
"(",
"rpc",
"constants",
"internal",
"key",
"req",
"size",
")",
")",
";",
"long",
"response",
"size",
"=",
"get",
"long",
"avoid",
"null",
"(",
"context",
"get",
"attachment",
"(",
"rpc",
"constants",
"internal",
"key",
"resp",
"size",
")",
")",
";",
"long",
"elapsed",
"time",
"=",
"get",
"long",
"avoid",
"null",
"(",
"context",
"get",
"attachment",
"(",
"rpc",
"constants",
"internal",
"key",
"client",
"elapse",
")",
")",
";",
"boolean",
"success",
"=",
"response",
"!",
"=",
"null",
"&",
"&",
"!",
"response",
"is",
"error",
"(",
")",
"&",
"&",
"response",
"get",
"error",
"msg",
"(",
")",
"=",
"=",
"null",
"&",
"&",
"(",
"!",
"(",
"response",
"get",
"app",
"response",
"(",
")",
"instanceof",
"throwable",
")",
")",
";",
"client",
"metrics",
"model",
"set",
"app",
"(",
"app",
")",
";",
"client",
"metrics",
"model",
"set",
"service",
"(",
"service",
")",
";",
"client",
"metrics",
"model",
"set",
"method",
"(",
"method",
")",
";",
"client",
"metrics",
"model",
"set",
"protocol",
"(",
"protocol",
")",
";",
"client",
"metrics",
"model",
"set",
"invoke",
"type",
"(",
"invoke",
"type",
")",
";",
"client",
"metrics",
"model",
"set",
"target",
"app",
"(",
"target",
"app",
")",
";",
"client",
"metrics",
"model",
"set",
"request",
"size",
"(",
"request",
"size",
")",
";",
"client",
"metrics",
"model",
"set",
"response",
"size",
"(",
"response",
"size",
")",
";",
"client",
"metrics",
"model",
"set",
"elapsed",
"time",
"(",
"elapsed",
"time",
")",
";",
"client",
"metrics",
"model",
"set",
"success",
"(",
"success",
")",
";",
"return",
"client",
"metrics",
"model",
";"
]
|
[
"create",
"rpc",
"server",
"lookout",
"model"
]
| [
"rpc",
"server",
"lookout",
"model",
"rpc",
"server",
"metrics",
"model",
"=",
"new",
"rpc",
"server",
"lookout",
"model",
"(",
")",
";",
"rpc",
"internal",
"context",
"context",
"=",
"rpc",
"internal",
"context",
"get",
"context",
"(",
")",
";",
"string",
"app",
"=",
"request",
"get",
"target",
"app",
"name",
"(",
")",
";",
"string",
"service",
"=",
"request",
"get",
"target",
"service",
"unique",
"name",
"(",
")",
";",
"string",
"method",
"=",
"request",
"get",
"method",
"name",
"(",
")",
";",
"string",
"protocol",
"=",
"get",
"string",
"avoid",
"null",
"(",
"request",
"get",
"request",
"prop",
"(",
"remoting",
"constants",
"head",
"protocol",
")",
")",
";",
"string",
"invoke",
"type",
"=",
"request",
"get",
"invoke",
"type",
"(",
")",
";",
"string",
"caller",
"app",
"=",
"get",
"string",
"avoid",
"null",
"(",
"request",
"get",
"request",
"prop",
"(",
"remoting",
"constants",
"head",
"app",
"name",
")",
")",
";",
"long",
"elapsed",
"time",
"=",
"get",
"long",
"avoid",
"null",
"(",
"context",
"get",
"attachment",
"(",
"rpc",
"constants",
"internal",
"key",
"impl",
"elapse",
")",
")",
";",
"boolean",
"success",
"=",
"response",
"!",
"=",
"null",
"&",
"&",
"!",
"response",
"is",
"error",
"(",
")",
"&",
"&",
"response",
"get",
"error",
"msg",
"(",
")",
"=",
"=",
"null",
"&",
"&",
"(",
"!",
"(",
"response",
"get",
"app",
"response",
"(",
")",
"instanceof",
"throwable",
")",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"app",
"(",
"app",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"service",
"(",
"service",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"method",
"(",
"method",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"protocol",
"(",
"protocol",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"invoke",
"type",
"(",
"invoke",
"type",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"caller",
"app",
"(",
"caller",
"app",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"elapsed",
"time",
"(",
"elapsed",
"time",
")",
";",
"rpc",
"server",
"metrics",
"model",
"set",
"success",
"(",
"success",
")",
";",
"return",
"rpc",
"server",
"metrics",
"model",
";"
]
|
[
"{"
]
| [
"cache",
"configuration",
"ccfg",
"=",
"new",
"cache",
"configuration",
"(",
"cache",
"name",
")",
";",
"ccfg",
"set",
"atomicity",
"mode",
"(",
"cache",
"atomicity",
"mode",
"transactional",
")",
";",
"ccfg",
"set",
"cache",
"mode",
"(",
"cache",
"mode",
"partitioned",
")",
";",
"ccfg",
"set",
"write",
"synchronization",
"mode",
"(",
"cache",
"write",
"synchronization",
"mode",
"full",
"sync",
")",
";",
"ccfg",
"set",
"backups",
"(",
"1",
")",
";",
"return",
"ccfg",
";"
]
|
[
"take",
"note",
"of",
"a",
"boot",
"event",
"if",
"we",
"notice",
"too",
"many",
"of",
"these",
"events",
"happening",
"in",
"rapid",
"succession",
"we",
"ll",
"send",
"out",
"a",
"rescue",
"party"
]
| [
"if",
"(",
"is",
"disabled",
"(",
")",
")",
"return",
";",
"if",
"(",
"s",
"boot",
"increment",
"and",
"test",
"(",
")",
")",
"{",
"s",
"boot",
"reset",
"(",
")",
";",
"increment",
"rescue",
"level",
"(",
"s",
"boot",
"uid",
")",
";",
"execute",
"rescue",
"level",
"(",
"context",
")",
";",
"}"
]
|
[
"take",
"note",
"of",
"a",
"persistent",
"app",
"crash",
"if",
"we",
"notice",
"too",
"many",
"of",
"these",
"events",
"happening",
"in",
"rapid",
"succession",
"we",
"ll",
"send",
"out",
"a",
"rescue",
"party"
]
| [
"if",
"(",
"is",
"disabled",
"(",
")",
")",
"return",
";",
"threshold",
"t",
"=",
"s",
"apps",
"get",
"(",
"uid",
")",
";",
"if",
"(",
"t",
"=",
"=",
"null",
")",
"{",
"t",
"=",
"new",
"app",
"threshold",
"(",
"uid",
")",
";",
"s",
"apps",
"put",
"(",
"uid",
",",
"t",
")",
";",
"}",
"if",
"(",
"t",
"increment",
"and",
"test",
"(",
")",
")",
"{",
"t",
"reset",
"(",
")",
";",
"increment",
"rescue",
"level",
"(",
"t",
"uid",
")",
";",
"execute",
"rescue",
"level",
"(",
"context",
")",
";",
"}"
]
|
[
"check",
"if",
"we",
"re",
"currently",
"attempting",
"to",
"reboot",
"for",
"a",
"factory",
"reset"
]
| [
"return",
"system",
"properties",
"get",
"int",
"(",
"prop",
"rescue",
"level",
",",
"level",
"none",
")",
"=",
"=",
"level",
"factory",
"reset",
";"
]
|
[
"called",
"when",
"{"
]
| [
"execute",
"rescue",
"level",
"(",
"context",
")",
";"
]
|
[
"{"
]
| [
"grid",
"cnt",
"=",
"1",
";",
"cache",
"mode",
"=",
"replicated",
";",
"super",
"before",
"test",
"(",
")",
";"
]
|
[
"setters"
]
| [
"background",
"color",
"=",
"color",
";",
"if",
"(",
"is",
"enabled",
"(",
")",
")",
"before",
"background",
"=",
"background",
"color",
";"
]
|
[
"make",
"a",
"dark",
"color",
"to",
"press",
"effect"
]
| [
"int",
"r",
"=",
"(",
"this",
"background",
"color",
">",
">",
"16",
")",
"&",
"0x",
"f",
"f",
";",
"int",
"g",
"=",
"(",
"this",
"background",
"color",
">",
">",
"8",
")",
"&",
"0x",
"f",
"f",
";",
"int",
"b",
"=",
"(",
"this",
"background",
"color",
">",
">",
"0",
")",
"&",
"0x",
"f",
"f",
";",
"r",
"=",
"(",
"r",
"-",
"30",
"<",
"0",
")",
"?",
"0",
":",
"r",
"-",
"30",
";",
"g",
"=",
"(",
"g",
"-",
"30",
"<",
"0",
")",
"?",
"0",
":",
"g",
"-",
"30",
";",
"b",
"=",
"(",
"b",
"-",
"30",
"<",
"0",
")",
"?",
"0",
":",
"b",
"-",
"30",
";",
"return",
"color",
"argb",
"(",
"70",
",",
"r",
",",
"g",
",",
"b",
")",
";"
]
|
[
"sets",
"the",
"state",
"province",
"prefecture",
"or",
"region"
]
| [
"this",
"region",
"=",
"region",
";",
"return",
"this",
";"
]
|
[
"see",
"{"
]
| [
"g",
"l",
"frame",
"buffer",
"unbind",
"(",
")",
";"
]
|
[
"computes",
"hex",
"encoded",
"sha512",
"digest"
]
| [
"return",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"512",
",",
"data",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
")",
";"
]
|
[
"computes",
"hex",
"encoded",
"sha256",
"digest"
]
| [
"return",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"256",
",",
"data",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
")",
";"
]
|
[
"computes",
"hex",
"encoded",
"sha",
"digest"
]
| [
"return",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"1",
",",
"data",
")",
";"
]
|
[
"computes",
"sha",
"digest"
]
| [
"return",
"raw",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"1",
",",
"data",
")",
";"
]
|
[
"sha",
"base",
"64",
"string"
]
| [
"return",
"sha",
"base",
"6",
"4",
"(",
"salt",
",",
"data",
",",
"null",
")",
";"
]
|
[
"sha",
"base",
"64",
"string"
]
| [
"val",
"result",
"=",
"raw",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"1",
",",
"salt",
",",
"separator",
"=",
"=",
"null",
"?",
"data",
":",
"data",
"+",
"separator",
")",
";",
"return",
"encoding",
"utils",
"encode",
"base",
"6",
"4",
"(",
"result",
",",
"chunked",
")",
";"
]
|
[
"sha",
"base",
"64",
"string"
]
| [
"val",
"result",
"=",
"raw",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"1",
",",
"salt",
",",
"separator",
"=",
"=",
"null",
"?",
"data",
":",
"data",
"+",
"separator",
")",
";",
"return",
"encoding",
"utils",
"encode",
"base",
"6",
"4",
"(",
"result",
")",
";"
]
|
[
"sha",
"base",
"32",
"string"
]
| [
"val",
"result",
"=",
"raw",
"digest",
"(",
"message",
"digest",
"algorithms",
"sha",
"1",
",",
"salt",
",",
"separator",
"=",
"=",
"null",
"?",
"data",
":",
"data",
"+",
"separator",
")",
";",
"return",
"encoding",
"utils",
"encode",
"base",
"3",
"2",
"(",
"result",
",",
"chunked",
")",
";"
]
|
[
"computes",
"hex",
"encoded",
"digest"
]
| [
"return",
"digest",
"(",
"alg",
",",
"data",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
")",
";"
]
|
[
"computes",
"hex",
"encoded",
"digest"
]
| [
"return",
"encoding",
"utils",
"hex",
"encode",
"(",
"raw",
"digest",
"(",
"alg",
",",
"data",
")",
")",
";"
]
|
[
"computes",
"digest"
]
| [
"try",
"{",
"val",
"digest",
"=",
"get",
"message",
"digest",
"instance",
"(",
"alg",
")",
";",
"return",
"digest",
"digest",
"(",
"data",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"cause",
")",
"{",
"throw",
"new",
"security",
"exception",
"(",
"cause",
")",
";",
"}"
]
|
[
"raw",
"digest",
"byte",
"[",
"]"
]
| [
"try",
"{",
"val",
"digest",
"=",
"get",
"message",
"digest",
"instance",
"(",
"alg",
")",
";",
"arrays",
"stream",
"(",
"data",
")",
"for",
"each",
"(",
"d",
"-",
">",
"digest",
"update",
"(",
"d",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
")",
")",
";",
"return",
"digest",
"digest",
"(",
"salt",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"cause",
")",
"{",
"throw",
"new",
"security",
"exception",
"(",
"cause",
")",
";",
"}"
]
|
[
"abbreviate",
"string"
]
| [
"return",
"string",
"utils",
"abbreviate",
"(",
"str",
",",
"abbreviate",
"max",
"width",
")",
";"
]
|
[
"searches",
"an",
"unstructured",
"or",
"(",
"semi",
")",
"structured",
"knowledge",
"source",
"and",
"returns",
"an",
"array",
"of",
"search",
"results"
]
| [
"protected",
"abstract",
"result",
"[",
"]",
"do",
"search",
"(",
")",
";"
]
|
[
"given",
"a",
"type",
"and",
"an",
"object",
"asserts",
"that",
"the",
"object",
"is",
"non",
"-",
"null",
"and",
"an",
"instance",
"of",
"the",
"specified",
"type",
"the",
"object",
"is",
"then",
"cast",
"to",
"that",
"type",
"and",
"returned"
]
| [
"assert",
"not",
"null",
"(",
"clazz",
")",
";",
"assert",
"not",
"null",
"(",
"o",
")",
";",
"assert",
"true",
"(",
"clazz",
"is",
"instance",
"(",
"o",
")",
")",
";",
"return",
"clazz",
"cast",
"(",
"o",
")",
";"
]
|
[
"given",
"an",
"solr",
"core",
"asserts",
"that",
"the",
"number",
"of",
"leave",
"segments",
"in",
"the",
"index",
"reader",
"matches",
"the",
"expected",
"value"
]
| [
"ref",
"counted",
"<",
"solr",
"index",
"searcher",
">",
"searcher",
"ref",
"=",
"core",
"get",
"registered",
"searcher",
"(",
")",
";",
"try",
"{",
"assert",
"equals",
"(",
"expected",
",",
"searcher",
"ref",
"get",
"(",
")",
"get",
"index",
"reader",
"(",
")",
"leaves",
"(",
")",
"size",
"(",
")",
")",
";",
"}",
"finally",
"{",
"searcher",
"ref",
"decref",
"(",
")",
";",
"}"
]
|
[
"given",
"an",
"solr",
"core",
"asserts",
"that",
"each",
"segment",
"in",
"the",
"(",
"searchable",
")",
"index",
"has",
"a",
"compound",
"file",
"status",
"that",
"matches",
"the",
"expected",
"input"
]
| [
"ref",
"counted",
"<",
"solr",
"index",
"searcher",
">",
"searcher",
"ref",
"=",
"core",
"get",
"registered",
"searcher",
"(",
")",
";",
"try",
"{",
"assert",
"compound",
"segments",
"(",
"searcher",
"ref",
"get",
"(",
")",
"get",
"raw",
"reader",
"(",
")",
",",
"compound",
")",
";",
"}",
"finally",
"{",
"searcher",
"ref",
"decref",
"(",
")",
";",
"}"
]
|
[
"{"
]
| [
"return",
"zipkin",
"zipkin",
";"
]
|
[
"{"
]
| [
"return",
"arrays",
"<",
"index",
">",
"as",
"list",
"(",
"indexes",
"zipkin",
"spans",
"name",
",",
"indexes",
"zipkin",
"spans",
"start",
"ts",
",",
"indexes",
"zipkin",
"spans",
"trace",
"id",
"high",
",",
"indexes",
"zipkin",
"spans",
"trace",
"id",
"high",
"2",
",",
"indexes",
"zipkin",
"spans",
"trace",
"id",
"high",
"3",
")",
";"
]
|
[
"{"
]
| [
"return",
"arrays",
"<",
"unique",
"key",
"<",
"record",
">",
">",
"as",
"list",
"(",
"keys",
"key",
"zipkin",
"spans",
"trace",
"id",
"high",
")",
";"
]
|
[
"{"
]
| [
"return",
"new",
"zipkin",
"spans",
"(",
"dsl",
"name",
"(",
"alias",
")",
",",
"this",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.