docstring_tokens list | code_tokens list |
|---|---|
[
"replace",
"the",
"second",
"element",
"of",
"the",
"pair"
] | [
"this",
"second",
"=",
"b",
";"
] |
[
"get",
"the",
"parameters",
"from",
"the",
"dialog"
] | [
"map",
"<",
"string",
",",
"string",
">",
"map",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"int",
"nr",
"non",
"empty",
"variables",
"=",
"w",
"params",
"nr",
"non",
"empty",
"(",
")",
";",
"for",
"(",
"int",
... |
[
"override",
"to",
"provide",
"specific",
"behavior",
"other",
"than",
"just",
"disposing",
"the",
"dialog"
] | [
"dispose",
"(",
")",
";"
] |
[
"check",
"if",
"the",
"given",
"text",
"contains",
"a",
"url"
] | [
"list",
"<",
"string",
">",
"urls",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"matcher",
"m",
"=",
"patterns",
"web",
"url",
"matcher",
"(",
"text",
")",
";",
"while",
"(",
"m",
"find",
"(",
")",
")",
"{",
"string",
"url",
"=",
"m",... |
[
"init",
"drop",
"down",
"style",
"only",
"init",
"once"
] | [
"if",
"(",
"header",
"layout",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"is",
"drop",
"down",
"style",
")",
"{",
"add",
"header",
"view",
"(",
"header",
"layout",
")",
";",
"}",
"else",
"{",
"remove",
"header",
"view",
"(",
"header",
"layout",
")",
... |
[
"init",
"on",
"bottom",
"style",
"only",
"init",
"once"
] | [
"if",
"(",
"footer",
"layout",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"is",
"on",
"bottom",
"style",
")",
"{",
"add",
"footer",
"view",
"(",
"footer",
"layout",
")",
";",
"}",
"else",
"{",
"remove",
"footer",
"view",
"(",
"footer",
"layout",
")",
... |
[
"set",
"whether",
"auto",
"load",
"when",
"on",
"bottom"
] | [
"this",
"is",
"auto",
"load",
"on",
"bottom",
"=",
"is",
"auto",
"load",
"on",
"bottom",
";"
] |
[
"get",
"whether",
"show",
"footer",
"loading",
"progress",
"bar",
"when",
"loading"
] | [
"return",
"is",
"show",
"footer",
"progress",
"bar",
";"
] |
[
"set",
"whether",
"show",
"footer",
"loading",
"progress",
"bar",
"when",
"loading"
] | [
"this",
"is",
"show",
"footer",
"progress",
"bar",
"=",
"is",
"show",
"footer",
"progress",
"bar",
";"
] |
[
"get",
"is",
"show",
"footer",
"when",
"no",
"more"
] | [
"return",
"is",
"show",
"footer",
"when",
"no",
"more",
";"
] |
[
"set",
"is",
"show",
"footer",
"when",
"no",
"more"
] | [
"this",
"is",
"show",
"footer",
"when",
"no",
"more",
"=",
"is",
"show",
"footer",
"when",
"no",
"more",
";"
] |
[
"get",
"footer",
"button"
] | [
"return",
"footer",
"button",
";"
] |
[
"drop",
"down",
"begin",
"adjust",
"view",
"status"
] | [
"if",
"(",
"is",
"drop",
"down",
"style",
")",
"{",
"set",
"header",
"status",
"loading",
"(",
")",
";",
"}"
] |
[
"on",
"drop",
"down",
"loading",
"you",
"can",
"call",
"it",
"by",
"manual",
"but",
"you",
"should",
"manual",
"call",
"on",
"bottom",
"complete",
"at",
"the",
"same",
"time"
] | [
"if",
"(",
"current",
"header",
"status",
"!",
"=",
"header",
"status",
"loading",
"&",
"&",
"is",
"drop",
"down",
"style",
"&",
"&",
"on",
"drop",
"down",
"listener",
"!",
"=",
"null",
")",
"{",
"on",
"drop",
"down",
"begin",
"(",
")",
";",
"on",
... |
[
"drop",
"down",
"complete",
"restore",
"view",
"status"
] | [
"if",
"(",
"is",
"drop",
"down",
"style",
")",
"{",
"set",
"header",
"second",
"text",
"(",
"second",
"text",
")",
";",
"on",
"drop",
"down",
"complete",
"(",
")",
";",
"}"
] |
[
"set",
"header",
"second",
"text"
] | [
"if",
"(",
"is",
"drop",
"down",
"style",
")",
"{",
"if",
"(",
"second",
"text",
"=",
"=",
"null",
")",
"{",
"header",
"second",
"text",
"set",
"visibility",
"(",
"view",
"gone",
")",
";",
"}",
"else",
"{",
"header",
"second",
"text",
"set",
"visib... |
[
"drop",
"down",
"complete",
"restore",
"view",
"status"
] | [
"if",
"(",
"is",
"drop",
"down",
"style",
")",
"{",
"set",
"header",
"status",
"click",
"to",
"load",
"(",
")",
";",
"if",
"(",
"header",
"layout",
"get",
"bottom",
"(",
")",
">",
"0",
")",
"{",
"invalidate",
"views",
"(",
")",
";",
"set",
"secon... |
[
"on",
"bottom",
"begin",
"adjust",
"view",
"status"
] | [
"if",
"(",
"is",
"on",
"bottom",
"style",
")",
"{",
"if",
"(",
"is",
"show",
"footer",
"progress",
"bar",
")",
"{",
"footer",
"progress",
"bar",
"set",
"visibility",
"(",
"view",
"visible",
")",
";",
"}",
"footer",
"button",
"set",
"text",
"(",
"foot... |
[
"on",
"bottom",
"loading",
"you",
"can",
"call",
"it",
"by",
"manual",
"but",
"you",
"should",
"manual",
"call",
"on",
"bottom",
"complete",
"at",
"the",
"same",
"time"
] | [
"if",
"(",
"is",
"on",
"bottom",
"style",
"&",
"&",
"!",
"is",
"on",
"bottom",
"loading",
")",
"{",
"is",
"on",
"bottom",
"loading",
"=",
"true",
";",
"on",
"bottom",
"begin",
"(",
")",
";",
"footer",
"button",
"perform",
"click",
"(",
")",
";",
... |
[
"on",
"bottom",
"load",
"complete",
"restore",
"view",
"status"
] | [
"if",
"(",
"is",
"on",
"bottom",
"style",
")",
"{",
"if",
"(",
"is",
"show",
"footer",
"progress",
"bar",
")",
"{",
"footer",
"progress",
"bar",
"set",
"visibility",
"(",
"view",
"gone",
")",
";",
"}",
"if",
"(",
"!",
"has",
"more",
")",
"{",
"fo... |
[
"set",
"second",
"position",
"visible",
"(",
"index",
"is",
"1",
")",
"because",
"first",
"position",
"is",
"header",
"layout"
] | [
"if",
"(",
"get",
"adapter",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"get",
"adapter",
"(",
")",
"get",
"count",
"(",
")",
">",
"0",
"&",
"&",
"get",
"first",
"visible",
"position",
"(",
")",
"=",
"=",
"0",
")",
"{",
"set",
"selection",
"(",
"1... |
[
"set",
"whether",
"has",
"more",
"if",
"has",
"more",
"is",
"false",
"on",
"bottm",
"will",
"not",
"be",
"called",
"when",
"list",
"view",
"scroll",
"to",
"bottom"
] | [
"this",
"has",
"more",
"=",
"has",
"more",
";"
] |
[
"get",
"whether",
"has",
"more"
] | [
"return",
"has",
"more",
";"
] |
[
"get",
"header",
"layout",
"view"
] | [
"return",
"header",
"layout",
";"
] |
[
"get",
"footer",
"layout",
"view"
] | [
"return",
"footer",
"layout",
";"
] |
[
"get",
"rate",
"about",
"drop",
"down",
"distance",
"and",
"header",
"padding",
"top",
"when",
"drop",
"down"
] | [
"return",
"header",
"padding",
"top",
"rate",
";"
] |
[
"set",
"rate",
"about",
"drop",
"down",
"distance",
"and",
"header",
"padding",
"top",
"when",
"drop",
"down"
] | [
"this",
"header",
"padding",
"top",
"rate",
"=",
"header",
"padding",
"top",
"rate",
";"
] |
[
"get",
"min",
"distance",
"which",
"header",
"can",
"release",
"to",
"loading"
] | [
"return",
"header",
"release",
"min",
"distance",
";"
] |
[
"set",
"min",
"distance",
"which",
"header",
"can",
"release",
"to",
"loading"
] | [
"this",
"header",
"release",
"min",
"distance",
"=",
"header",
"release",
"min",
"distance",
";"
] |
[
"*",
"get",
"header",
"default",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"default",
"text"
] | [
"return",
"header",
"default",
"text",
";"
] |
[
"set",
"header",
"default",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"default",
"text"
] | [
"this",
"header",
"default",
"text",
"=",
"header",
"default",
"text",
";",
"if",
"(",
"header",
"text",
"!",
"=",
"null",
"&",
"&",
"current",
"header",
"status",
"=",
"=",
"header",
"status",
"click",
"to",
"load",
")",
"{",
"header",
"text",
"set",
... |
[
"get",
"header",
"pull",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"pull",
"text"
] | [
"return",
"header",
"pull",
"text",
";"
] |
[
"set",
"header",
"pull",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"pull",
"text"
] | [
"this",
"header",
"pull",
"text",
"=",
"header",
"pull",
"text",
";"
] |
[
"get",
"header",
"release",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"release",
"text"
] | [
"return",
"header",
"release",
"text",
";"
] |
[
"set",
"header",
"release",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"release",
"text"
] | [
"this",
"header",
"release",
"text",
"=",
"header",
"release",
"text",
";"
] |
[
"get",
"header",
"loading",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"loading",
"text"
] | [
"return",
"header",
"loading",
"text",
";"
] |
[
"set",
"header",
"loading",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"header",
"loading",
"text"
] | [
"this",
"header",
"loading",
"text",
"=",
"header",
"loading",
"text",
";"
] |
[
"get",
"footer",
"default",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"footer",
"default",
"text"
] | [
"return",
"footer",
"default",
"text",
";"
] |
[
"set",
"footer",
"default",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"footer",
"default",
"text"
] | [
"this",
"footer",
"default",
"text",
"=",
"footer",
"default",
"text",
";",
"if",
"(",
"footer",
"button",
"!",
"=",
"null",
"&",
"&",
"footer",
"button",
"is",
"enabled",
"(",
")",
")",
"{",
"footer",
"button",
"set",
"text",
"(",
"footer",
"default",... |
[
"get",
"footer",
"loading",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"footer",
"loading",
"text"
] | [
"return",
"footer",
"loading",
"text",
";"
] |
[
"set",
"footer",
"loading",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"footer",
"loading",
"text"
] | [
"this",
"footer",
"loading",
"text",
"=",
"footer",
"loading",
"text",
";"
] |
[
"get",
"footer",
"no",
"more",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"footer",
"no",
"more",
"text"
] | [
"return",
"footer",
"no",
"more",
"text",
";"
] |
[
"set",
"footer",
"no",
"more",
"text",
"default",
"is",
"r",
"string",
"drop",
"down",
"list",
"footer",
"no",
"more",
"text"
] | [
"this",
"footer",
"no",
"more",
"text",
"=",
"footer",
"no",
"more",
"text",
";"
] |
[
"set",
"header",
"status",
"to",
"{"
] | [
"if",
"(",
"current",
"header",
"status",
"!",
"=",
"header",
"status",
"click",
"to",
"load",
")",
"{",
"reset",
"header",
"padding",
"(",
")",
";",
"header",
"image",
"clear",
"animation",
"(",
")",
";",
"header",
"image",
"set",
"visibility",
"(",
"... |
[
"set",
"header",
"status",
"to",
"{"
] | [
"if",
"(",
"current",
"header",
"status",
"!",
"=",
"header",
"status",
"drop",
"down",
"to",
"load",
")",
"{",
"header",
"image",
"set",
"visibility",
"(",
"view",
"visible",
")",
";",
"if",
"(",
"current",
"header",
"status",
"!",
"=",
"header",
"sta... |
[
"set",
"header",
"status",
"to",
"{"
] | [
"if",
"(",
"current",
"header",
"status",
"!",
"=",
"header",
"status",
"release",
"to",
"load",
")",
"{",
"header",
"image",
"set",
"visibility",
"(",
"view",
"visible",
")",
";",
"header",
"image",
"clear",
"animation",
"(",
")",
";",
"header",
"image"... |
[
"set",
"header",
"status",
"to",
"{"
] | [
"if",
"(",
"current",
"header",
"status",
"!",
"=",
"header",
"status",
"loading",
")",
"{",
"reset",
"header",
"padding",
"(",
")",
";",
"header",
"image",
"set",
"visibility",
"(",
"view",
"gone",
")",
";",
"header",
"image",
"clear",
"animation",
"(",... |
[
"reset",
"header",
"padding"
] | [
"header",
"layout",
"set",
"padding",
"(",
"header",
"layout",
"get",
"padding",
"left",
"(",
")",
",",
"header",
"original",
"top",
"padding",
",",
"header",
"layout",
"get",
"padding",
"right",
"(",
")",
",",
"header",
"layout",
"get",
"padding",
"bottom... |
[
"measure",
"header",
"layout"
] | [
"view",
"group",
"layout",
"params",
"p",
"=",
"child",
"get",
"layout",
"params",
"(",
")",
";",
"if",
"(",
"p",
"=",
"=",
"null",
")",
"{",
"p",
"=",
"new",
"view",
"group",
"layout",
"params",
"(",
"view",
"group",
"layout",
"params",
"match",
"... |
[
"get",
"attrs"
] | [
"typed",
"array",
"ta",
"=",
"context",
"obtain",
"styled",
"attributes",
"(",
"attrs",
",",
"r",
"styleable",
"drop",
"down",
"list",
"attr",
")",
";",
"is",
"drop",
"down",
"style",
"=",
"ta",
"get",
"boolean",
"(",
"r",
"styleable",
"drop",
"down",
... |
[
"<",
"p",
">",
"the",
"arn",
"(",
"amazon",
"resource",
"name",
")",
"of",
"the",
"resource",
"for",
"which",
"to",
"get",
"the",
"web",
"acl",
"<",
"/",
"p",
">"
] | [
"this",
"resource",
"arn",
"=",
"resource",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"(",
"amazon",
"resource",
"name",
")",
"of",
"the",
"resource",
"for",
"which",
"to",
"get",
"the",
"web",
"acl",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"resource",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"resource",
"that",
"you",
"want",
"to",
"tag",
"<",
"/",
"p",
">"
] | [
"set",
"resource",
"arn",
"(",
"resource",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"tags",
"associated",
"with",
"the",
"portfolio",
"<",
"/",
"p",
">"
] | [
"return",
"tags",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"tags",
"associated",
"with",
"the",
"portfolio",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"tags",
"=",
"=",
"null",
")",
"{",
"this",
"tags",
"=",
"null",
";",
"return",
";",
"}",
"this",
"tags",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"tag",
">",
"(",
"tags",
")",
";"
] |
[
"<",
"p",
">",
"the",
"tags",
"each",
"resource",
"can",
"have",
"a",
"maximum",
"of",
"10",
"tags",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
... | [
"if",
"(",
"this",
"tags",
"=",
"=",
"null",
")",
"{",
"set",
"tags",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"tag",
">",
"(",
"tags",
"length",
")",
")",
";",
"}",
"for",
"(",
"tag",
"ele",
":",
"tags",
")",
"{",
"this",
"tags",
"a... |
[
"<",
"p",
">",
"the",
"tags",
"to",
"add",
"as",
"key",
"/",
"value",
"pairs",
"<",
"/",
"p",
">"
] | [
"set",
"tags",
"(",
"tags",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"alias",
"for",
"an",
"organization",
"<",
"/",
"p",
">"
] | [
"this",
"alias",
"=",
"alias",
";"
] |
[
"/",
"*",
"package"
] | [
"return",
"new",
"standalone",
"package",
"type",
"(",
"element",
")",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"one",
"or",
"more",
"block",
"device",
"mappings",
"this",
"parameter",
"cannot",
"be",
"used",
"to",
"modify",
"the",
"encryption",
"status",
"of",
"existing",
"volumes",
"or",
"snapshots",
"to",
"create",
"an",
"ami"... | [
"if",
"(",
"block",
"device",
"mappings",
"=",
"=",
"null",
")",
"{",
"block",
"device",
"mappings",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"block",
"device",
"mapping",
">",
"(",
")",
";",
"}",
"return",
"block",
"... |
[
"<",
"p",
">",
"information",
"about",
"one",
"or",
"more",
"block",
"device",
"mappings",
"this",
"parameter",
"cannot",
"be",
"used",
"to",
"modify",
"the",
"encryption",
"status",
"of",
"existing",
"volumes",
"or",
"snapshots",
"to",
"create",
"an",
"ami"... | [
"if",
"(",
"block",
"device",
"mappings",
"=",
"=",
"null",
")",
"{",
"this",
"block",
"device",
"mappings",
"=",
"null",
";",
"return",
";",
"}",
"this",
"block",
"device",
"mappings",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list... |
[
"<",
"p",
">",
"one",
"or",
"more",
"block",
"device",
"mapping",
"entries",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
... | [
"if",
"(",
"this",
"block",
"device",
"mappings",
"=",
"=",
"null",
")",
"{",
"set",
"block",
"device",
"mappings",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"block",
"device",
"mapping",
">",
"(",
"block",
"device",
"ma... |
[
"<",
"p",
">",
"one",
"or",
"more",
"block",
"device",
"mapping",
"entries",
"<",
"/",
"p",
">"
] | [
"set",
"block",
"device",
"mappings",
"(",
"block",
"device",
"mappings",
")",
";",
"return",
"this",
";"
] |
[
"the",
"image",
"id",
"of",
"the",
"ec2",
"instance"
] | [
"this",
"image",
"id",
"=",
"image",
"id",
";"
] |
[
"the",
"image",
"id",
"of",
"the",
"ec2",
"instance"
] | [
"return",
"this",
"image",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"ami",
"<",
"/",
"p",
">"
] | [
"set",
"image",
"id",
"(",
"image",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"launch",
"permissions",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"launch",
"permissions",
"=",
"=",
"null",
")",
"{",
"launch",
"permissions",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"permission",
">",
"(",
")",
";",
"}",
"return",
"launch",
"permissions",
";"
] |
[
"<",
"p",
">",
"one",
"or",
"more",
"launch",
"permissions",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"launch",
"permissions",
"=",
"=",
"null",
")",
"{",
"this",
"launch",
"permissions",
"=",
"null",
";",
"return",
";",
"}",
"this",
"launch",
"permissions",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
... |
[
"<",
"p",
">",
"one",
"or",
"more",
"launch",
"permissions",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")"... | [
"if",
"(",
"this",
"launch",
"permissions",
"=",
"=",
"null",
")",
"{",
"set",
"launch",
"permissions",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"launch",
"permission",
">",
"(",
"launch",
"permissions",
"length",
")",
")... |
[
"<",
"p",
">",
"one",
"or",
"more",
"launch",
"permissions",
"<",
"/",
"p",
">"
] | [
"set",
"launch",
"permissions",
"(",
"launch",
"permissions",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"product",
"codes",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"product",
"codes",
"=",
"=",
"null",
")",
"{",
"product",
"codes",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"product",
"code",
">",
"(",
")",
";",
"}",
"return",
"product",
"codes",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"product",
"codes",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"product",
"codes",
"=",
"=",
"null",
")",
"{",
"this",
"product",
"codes",
"=",
"null",
";",
"return",
";",
"}",
"this",
"product",
"codes",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"product",
"code",
">",... |
[
"<",
"p",
">",
"one",
"or",
"more",
"product",
"codes",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"... | [
"if",
"(",
"this",
"product",
"codes",
"=",
"=",
"null",
")",
"{",
"set",
"product",
"codes",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"product",
"code",
">",
"(",
"product",
"codes",
"length",
")",
")",
";",
"}",
"... |
[
"<",
"p",
">",
"one",
"or",
"more",
"product",
"codes",
"<",
"/",
"p",
">"
] | [
"set",
"product",
"codes",
"(",
"product",
"codes",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"description",
"for",
"the",
"ami",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"kernel",
"<",
"/",
"p",
">"
] | [
"this",
"kernel",
"id",
"=",
"kernel",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"kernel",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"kernel",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"kernel",
"id",
"<",
"/",
"p",
">"
] | [
"set",
"kernel",
"id",
"(",
"kernel",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"ram",
"disk",
"<",
"/",
"p",
">"
] | [
"this",
"ramdisk",
"id",
"=",
"ramdisk",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"ram",
"disk",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"ramdisk",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"ram",
"disk",
"id",
"<",
"/",
"p",
">"
] | [
"set",
"ramdisk",
"id",
"(",
"ramdisk",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"set",
"to",
"<",
"code",
">",
"simple",
"<",
"/",
"code",
">",
"to",
"enable",
"enhanced",
"networking",
"with",
"the",
"intel",
"82599",
"virtual",
"function",
"interface",
"for",
"the",
"ami",
"and",
"any",
"instances",
"that",
"you",
... | [
"this",
"sriov",
"net",
"support",
"=",
"sriov",
"net",
"support",
";"
] |
[
"<",
"p",
">",
"set",
"to",
"<",
"code",
">",
"simple",
"<",
"/",
"code",
">",
"to",
"enable",
"enhanced",
"networking",
"with",
"the",
"intel",
"82599",
"virtual",
"function",
"interface",
"for",
"the",
"ami",
"and",
"any",
"instances",
"that",
"you",
... | [
"return",
"this",
"sriov",
"net",
"support",
";"
] |
[
"<",
"p",
">",
"indicates",
"whether",
"enhanced",
"networking",
"with",
"the",
"intel",
"82599",
"virtual",
"function",
"interface",
"is",
"enabled",
"<",
"/",
"p",
">"
] | [
"set",
"sriov",
"net",
"support",
"(",
"sriov",
"net",
"support",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"if",
"(",
"processed",
"contains",
"(",
"seq",
"num",
")",
")",
"return",
";",
"process",
"(",
"row",
")",
";",
"processed",
"add",
"(",
"seq",
"num",
")",
";"
] |
[
"{"
] | [
"return",
"null",
";"
] |
[
"processes",
"particular",
"row",
"inside",
"batch",
"operation"
] | [] |
[
"algorithms",
"are",
"identified",
"by",
"name",
"rather",
"than",
"by",
"class",
"to",
"allow",
"subclassing"
] | [
"return",
"this",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
";"
] |
[
"first",
"test",
"whether",
"the",
"algorithm",
"configurations",
"can",
"be",
"merged",
"before",
"the",
"call",
"to",
"{",
"@",
"link",
"#",
"merge",
"configuration",
"}"
] | [
"preconditions",
"check",
"not",
"null",
"(",
"other",
")",
";",
"return",
"this",
"get",
"class",
"(",
")",
"equals",
"(",
"other",
"get",
"class",
"(",
")",
")",
";"
] |
[
"merge",
"the",
"other",
"configuration",
"into",
"this",
"algorithm",
"s",
"after",
"the",
"call",
"to",
"{",
"@",
"link",
"#",
"can",
"merge",
"configuration",
"with",
"}",
"has",
"checked",
"that",
"the",
"configurations",
"can",
"be",
"merged"
] | [
"preconditions",
"check",
"not",
"null",
"(",
"other",
")",
";",
"parallelism",
"=",
"(",
"parallelism",
"=",
"=",
"parallelism",
"default",
")",
"?",
"other",
"parallelism",
":",
"(",
"(",
"other",
"parallelism",
"=",
"=",
"parallelism",
"default",
")",
"... |
[
"asserts",
"that",
"{"
] | [
"assert",
"that",
"(",
"bf",
"approximate",
"element",
"count",
"(",
")",
")",
"is",
"at",
"least",
"(",
"(",
"long",
")",
"(",
"size",
"guess",
"*",
"0",
"99",
")",
")",
";",
"assert",
"that",
"(",
"bf",
"approximate",
"element",
"count",
"(",
")"... |
[
"sanity",
"checking",
"with",
"many",
"combinations",
"of",
"false",
"positive",
"rates",
"and",
"expected",
"insertions"
] | [
"for",
"(",
"double",
"fpr",
"=",
"0",
"0000001",
";",
"fpr",
"<",
"0",
"1",
";",
"fpr",
"*",
"=",
"10",
")",
"{",
"for",
"(",
"int",
"expected",
"insertions",
"=",
"1",
";",
"expected",
"insertions",
"<",
"=",
"10000",
";",
"expected",
"insertions... |
[
"tests",
"that",
"we",
"never",
"get",
"an",
"optimal",
"hashes",
"number",
"of",
"zero"
] | [
"for",
"(",
"int",
"n",
"=",
"1",
";",
"n",
"<",
"1000",
";",
"n",
"+",
"+",
")",
"{",
"for",
"(",
"int",
"m",
"=",
"0",
";",
"m",
"<",
"1000",
";",
"m",
"+",
"+",
")",
"{",
"assert",
"true",
"(",
"bloom",
"filter",
"optimal",
"num",
"of"... |
[
"https",
":",
"/",
"/",
"code",
"google",
"com",
"/",
"p",
"/",
"guava",
"-",
"libraries",
"/",
"issues",
"/",
"detail",
"?",
"id",
"=",
"1781"
] | [
"assert",
"equals",
"(",
"7",
",",
"bloom",
"filter",
"optimal",
"num",
"of",
"hash",
"functions",
"(",
"319",
",",
"3072",
")",
")",
";"
] |
[
"this",
"test",
"will",
"fail",
"whenever",
"someone",
"updates",
"/",
"reorders",
"the",
"bloom",
"filter",
"strategies",
"constants",
"only",
"appending",
"a",
"new",
"constant",
"is",
"allowed"
] | [
"assert",
"that",
"(",
"bloom",
"filter",
"strategies",
"values",
"(",
")",
")",
"has",
"length",
"(",
"2",
")",
";",
"assert",
"equals",
"(",
"bloom",
"filter",
"strategies",
"murmur128",
"mitz",
"32",
",",
"bloom",
"filter",
"strategies",
"values",
"(",
... |
[
"/",
"*",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"read",
"and",
"write",
"positive",
"longs",
"#",
"#... | [
"long",
"value",
"=",
"read",
"unsigned",
"(",
"in",
")",
";",
"assert",
"value",
">",
"=",
"0",
";",
"return",
"value",
";"
] |
[
"/",
"*",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"read",
"and",
"write",
"arbitrary",
"longs",
"#",
"... | [
"assert",
"value",
">",
"=",
"0",
"|",
"|",
"value",
">",
"long",
"min",
"value",
";",
"return",
"math",
"abs",
"(",
"value",
")",
"<",
"<",
"1",
"|",
"(",
"value",
"<",
"0",
"?",
"1",
":",
"0",
")",
";"
] |
[
"/",
"*",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"write",
"positive",
"longs",
"so",
"that",
"they",
... | [
"assert",
"value",
">",
"=",
"0",
";",
"write",
"unsigned",
"backward",
"(",
"out",
",",
"value",
")",
";"
] |
[
"/",
"*",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"write",
"arbitrary",
"longs",
"so",
"that",
"they",
... | [
"write",
"unsigned",
"backward",
"(",
"out",
",",
"convert",
"2",
"unsigned",
"(",
"value",
")",
")",
";"
] |
[
"takes",
"the",
"result",
"and",
"determines",
"whether",
"the",
"state",
"of",
"the",
"resource",
"matches",
"the",
"expected",
"state",
"to",
"determine",
"the",
"current",
"state",
"of",
"the",
"resource",
"jmes",
"path",
"expression",
"is",
"evaluated",
"a... | [
"json",
"node",
"query",
"node",
"=",
"object",
"mapper",
"singleton",
"get",
"object",
"mapper",
"(",
")",
"value",
"to",
"tree",
"(",
"result",
")",
";",
"json",
"node",
"final",
"result",
"=",
"ast",
"accept",
"(",
"new",
"jmes",
"path",
"evaluation",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.