docstring_tokens list | code_tokens list |
|---|---|
[
"set",
"a",
"click",
"listener",
"that",
"will",
"provide",
"the",
"parent",
"view",
"model",
"and",
"adapter",
"position",
"of",
"the",
"clicked",
"view",
"this",
"will",
"clear",
"the",
"normal",
"view",
"on",
"click",
"listener",
"if",
"one",
"has",
"be... | [
"assigned",
"attributes",
"epoxy",
"generated",
"model",
"set",
"(",
"0",
")",
";",
"on",
"mutation",
"(",
")",
";",
"if",
"(",
"click",
"listener",
"=",
"=",
"null",
")",
"{",
"this",
"click",
"listener",
"on",
"click",
"listener",
"=",
"null",
";",
... |
[
"{"
] | [
"return",
"item",
"type",
"type",
"class",
"def",
"item",
";"
] |
[
"{"
] | [
"return",
"size",
"of",
"class",
"def",
"item",
";"
] |
[
"{"
] | [
"type",
"ids",
"section",
"type",
"ids",
"=",
"file",
"get",
"type",
"ids",
"(",
")",
";",
"mixed",
"item",
"section",
"byte",
"data",
"=",
"file",
"get",
"byte",
"data",
"(",
")",
";",
"mixed",
"item",
"section",
"word",
"data",
"=",
"file",
"get",
... |
[
"gets",
"the",
"constant",
"corresponding",
"to",
"this",
"class"
] | [
"return",
"this",
"class",
";"
] |
[
"gets",
"the",
"superclass"
] | [
"return",
"superclass",
";"
] |
[
"gets",
"the",
"list",
"of",
"interfaces",
"implemented"
] | [
"if",
"(",
"interfaces",
"=",
"=",
"null",
")",
"{",
"return",
"std",
"type",
"list",
"empty",
";",
"}",
"return",
"interfaces",
"get",
"list",
"(",
")",
";"
] |
[
"gets",
"the",
"source",
"file",
"if",
"known"
] | [
"return",
"source",
"file",
";"
] |
[
"adds",
"a",
"static",
"field"
] | [
"class",
"data",
"add",
"static",
"field",
"(",
"field",
",",
"value",
")",
";"
] |
[
"adds",
"an",
"instance",
"field"
] | [
"class",
"data",
"add",
"instance",
"field",
"(",
"field",
")",
";"
] |
[
"adds",
"a",
"direct",
"(",
"{",
"@",
"code",
"static",
"}",
"and",
"/",
"or",
"{",
"@",
"code",
"private",
"}",
")",
"method"
] | [
"class",
"data",
"add",
"direct",
"method",
"(",
"method",
")",
";"
] |
[
"adds",
"a",
"virtual",
"method"
] | [
"class",
"data",
"add",
"virtual",
"method",
"(",
"method",
")",
";"
] |
[
"gets",
"all",
"the",
"methods",
"in",
"this",
"class",
"the",
"returned",
"list",
"is",
"not",
"linked",
"in",
"any",
"way",
"to",
"the",
"underlying",
"lists",
"contained",
"in",
"this",
"instance",
"but",
"the",
"objects",
"contained",
"in",
"the",
"lis... | [
"return",
"class",
"data",
"get",
"methods",
"(",
")",
";"
] |
[
"sets",
"the",
"direct",
"annotations",
"on",
"this",
"class",
"these",
"are",
"annotations",
"made",
"on",
"the",
"class",
"per",
"se",
"as",
"opposed",
"to",
"on",
"one",
"of",
"its",
"members",
"it",
"is",
"only",
"valid",
"to",
"call",
"this",
"metho... | [
"annotations",
"directory",
"set",
"class",
"annotations",
"(",
"annotations",
",",
"dex",
"file",
")",
";"
] |
[
"adds",
"a",
"field",
"annotations",
"item",
"to",
"this",
"class"
] | [
"annotations",
"directory",
"add",
"field",
"annotations",
"(",
"field",
",",
"annotations",
",",
"dex",
"file",
")",
";"
] |
[
"adds",
"a",
"method",
"annotations",
"item",
"to",
"this",
"class"
] | [
"annotations",
"directory",
"add",
"method",
"annotations",
"(",
"method",
",",
"annotations",
",",
"dex",
"file",
")",
";"
] |
[
"adds",
"a",
"parameter",
"annotations",
"item",
"to",
"this",
"class"
] | [
"annotations",
"directory",
"add",
"parameter",
"annotations",
"(",
"method",
",",
"list",
",",
"dex",
"file",
")",
";"
] |
[
"gets",
"the",
"method",
"annotations",
"for",
"a",
"given",
"method",
"if",
"any",
"this",
"is",
"meant",
"for",
"use",
"by",
"debugging",
"/",
"dumping",
"code"
] | [
"return",
"annotations",
"directory",
"get",
"method",
"annotations",
"(",
"method",
")",
";"
] |
[
"gets",
"the",
"parameter",
"annotations",
"for",
"a",
"given",
"method",
"if",
"any",
"this",
"is",
"meant",
"for",
"use",
"by",
"debugging",
"/",
"dumping",
"code"
] | [
"return",
"annotations",
"directory",
"get",
"parameter",
"annotations",
"(",
"method",
")",
";"
] |
[
"<",
"p",
">",
"if",
"you",
"specify",
"a",
"value",
"for",
"<",
"code",
">",
"max",
"results",
"<",
"/",
"code",
">",
"and",
"you",
"have",
"more",
"account",
"i",
"ds",
"than",
"the",
"number",
"that",
"you",
"specify",
"for",
"<",
"code",
">",
... | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"specifies",
"the",
"number",
"of",
"member",
"account",
"i",
"ds",
"that",
"you",
"want",
"aws",
"firewall",
"manager",
"to",
"return",
"for",
"this",
"request",
"if",
"you",
"have",
"more",
"i",
"ds",
"than",
"the",
"number",
"that",
"... | [
"set",
"max",
"results",
"(",
"max",
"results",
")",
";",
"return",
"this",
";"
] |
[
"the",
"available",
"matrices",
"are",
"<",
"code",
">",
"matrix",
"1x2",
"<",
"/",
"code",
">",
"<",
"code",
">",
"matrix",
"1x3",
"<",
"/",
"code",
">",
"<",
"code",
">",
"matrix",
"2x1",
"<",
"/",
"code",
">",
"<",
"code",
">",
"matrix",
"2x2"... | [
"return",
"matrix",
";"
] |
[
"the",
"available",
"matrices",
"are",
"<",
"code",
">",
"matrix",
"1x2",
"<",
"/",
"code",
">",
"<",
"code",
">",
"matrix",
"1x3",
"<",
"/",
"code",
">",
"<",
"code",
">",
"matrix",
"2x1",
"<",
"/",
"code",
">",
"<",
"code",
">",
"matrix",
"2x2"... | [
"this",
"matrix",
"=",
"matrix",
";",
"x",
"parts",
"=",
"matrix",
"/",
"10",
";",
"y",
"parts",
"=",
"matrix",
"%",
"10",
";",
"return",
"this",
";"
] |
[
"given",
"a",
"topology",
"definition",
"resolve",
"and",
"instantiate",
"all",
"components",
"found",
"and",
"return",
"a",
"map",
"keyed",
"by",
"the",
"component",
"id"
] | [
"collection",
"<",
"bean",
"def",
">",
"c",
"defs",
"=",
"context",
"get",
"topology",
"def",
"(",
")",
"get",
"components",
"(",
")",
";",
"if",
"(",
"c",
"defs",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"bean",
"def",
"bean",
":",
"c",
"defs",
... |
[
"given",
"a",
"spout",
"definition",
"return",
"a",
"storm",
"spout",
"implementation",
"by",
"attempting",
"to",
"find",
"a",
"matching",
"constructor",
"in",
"the",
"given",
"spout",
"class",
"perform",
"list",
"to",
"array",
"conversion",
"as",
"necessary"
] | [
"return",
"(",
"i",
"rich",
"spout",
")",
"build",
"object",
"(",
"def",
",",
"context",
")",
";"
] |
[
"given",
"a",
"list",
"of",
"bolt",
"definitions",
"build",
"a",
"map",
"of",
"storm",
"bolts",
"with",
"the",
"bolt",
"definition",
"id",
"as",
"the",
"key",
"attempt",
"to",
"coerce",
"the",
"given",
"constructor",
"arguments",
"to",
"a",
"matching",
"bo... | [
"for",
"(",
"bolt",
"def",
"def",
":",
"context",
"get",
"topology",
"def",
"(",
")",
"get",
"bolts",
"(",
")",
")",
"{",
"class",
"clazz",
"=",
"class",
"for",
"name",
"(",
"def",
"get",
"class",
"name",
"(",
")",
")",
";",
"object",
"bolt",
"="... |
[
"determines",
"whether",
"or",
"not",
"a",
"character",
"is",
"considered",
"a",
"space",
"a",
"character",
"is",
"considered",
"a",
"space",
"in",
"kettle",
"if",
"it",
"is",
"a",
"space",
"a",
"tab",
"a",
"newline",
"or",
"a",
"cariage",
"return"
] | [
"return",
"const",
"is",
"space",
"(",
"c",
")",
";"
] |
[
"trims",
"a",
"string",
":",
"removes",
"the",
"leading",
"and",
"trailing",
"spaces",
"of",
"a",
"string"
] | [
"return",
"const",
"trim",
"(",
"string",
")",
";"
] |
[
"levenshtein",
"distance",
"(",
"ld",
")",
"is",
"a",
"measure",
"of",
"the",
"similarity",
"between",
"two",
"strings",
"which",
"we",
"will",
"refer",
"to",
"as",
"the",
"source",
"string",
"(",
"s",
")",
"and",
"the",
"target",
"string",
"(",
"t",
"... | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
"|",
"|",
"data",
"b",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"new",
"long",
"(",
"string",
"utils",
"get",
"levenshtein",
"distance",
"(",
"data",
"a",
"to",
"string",
"(",
")"... |
[
"damerau",
"levenshtein",
"distance",
"is",
"a",
"measure",
"of",
"the",
"similarity",
"between",
"two",
"strings",
"which",
"we",
"will",
"refer",
"to",
"as",
"the",
"source",
"string",
"(",
"s",
")",
"and",
"the",
"target",
"string",
"(",
"t",
")",
"th... | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
"|",
"|",
"data",
"b",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"new",
"long",
"(",
"utils",
"get",
"damerau",
"levenshtein",
"distance",
"(",
"data",
"a",
"to",
"string",
"(",
")... |
[
"needleman",
"wunsch",
"distance",
"is",
"a",
"measure",
"of",
"the",
"similarity",
"between",
"two",
"strings",
"which",
"we",
"will",
"refer",
"to",
"as",
"the",
"source",
"string",
"(",
"s",
")",
"and",
"the",
"target",
"string",
"(",
"t",
")",
"the",... | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
"|",
"|",
"data",
"b",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"new",
"long",
"(",
"(",
"int",
")",
"new",
"needleman",
"wunsch",
"(",
")",
"score",
"(",
"data",
"a",
"to",
"... |
[
"jaro",
"similitude",
"is",
"a",
"measure",
"of",
"the",
"similarity",
"between",
"two",
"strings",
"which",
"we",
"will",
"refer",
"to",
"as",
"the",
"source",
"string",
"(",
"s",
")",
"and",
"the",
"target",
"string",
"(",
"t",
")"
] | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
"|",
"|",
"data",
"b",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"pentaho",
"jaro",
"winkler",
"distance",
"pjwd",
"=",
"new",
"pentaho",
"jaro",
"winkler",
"distance",
"(",
")",
";",
"pjwd",
... |
[
"jaro",
"winkler",
"similitude",
"is",
"a",
"measure",
"of",
"the",
"similarity",
"between",
"two",
"strings",
"which",
"we",
"will",
"refer",
"to",
"as",
"the",
"source",
"string",
"(",
"s",
")",
"and",
"the",
"target",
"string",
"(",
"t",
")"
] | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
"|",
"|",
"data",
"b",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"pentaho",
"jaro",
"winkler",
"distance",
"pjwd",
"=",
"new",
"pentaho",
"jaro",
"winkler",
"distance",
"(",
")",
";",
"pjwd",
... |
[
"get",
"big",
"number",
"size",
"to",
"be",
"considered",
"in",
"mathematical",
"operations"
] | [
"return",
"a",
"precision",
"(",
")",
">",
"=",
"b",
"precision",
"(",
")",
"?",
"a",
"precision",
"(",
")",
":",
"b",
"precision",
"(",
")",
";"
] |
[
"get",
"big",
"number",
"max",
"scale",
"(",
"length",
"of",
"decimal",
"part",
")"
] | [
"return",
"a",
"scale",
"(",
")",
">",
"=",
"b",
"scale",
"(",
")",
"?",
"a",
"scale",
"(",
")",
":",
"b",
"scale",
"(",
")",
";"
] |
[
"if",
"decimal",
"part",
"has",
"only",
"zeros",
"remove",
"it",
"otherwise",
"scale",
"it",
"to",
"max",
"scale"
] | [
"if",
"(",
"a",
"remainder",
"(",
"big",
"decimal",
"one",
")",
"compare",
"to",
"(",
"big",
"decimal",
"zero",
")",
"=",
"=",
"0",
")",
"{",
"return",
"a",
"set",
"scale",
"(",
"0",
")",
";",
"}",
"return",
"a",
"set",
"scale",
"(",
"max",
"sc... |
[
"rounding",
"with",
"decimal",
"places",
"(",
"using",
"default",
"rounding",
"method",
"round",
"half",
"even",
")"
] | [
"final",
"object",
"r",
"=",
"round",
"(",
"meta",
"a",
",",
"data",
"a",
",",
"meta",
"b",
",",
"data",
"b",
",",
"round",
"2",
"mode",
")",
";",
"return",
"r",
";"
] |
[
"right",
"pad",
"a",
"string",
":",
"adds",
"spaces",
"to",
"a",
"string",
"until",
"a",
"certain",
"length",
"if",
"the",
"length",
"is",
"smaller",
"then",
"the",
"limit",
"specified",
"the",
"string",
"is",
"truncated"
] | [
"return",
"const",
"right",
"pad",
"(",
"ret",
",",
"limit",
")",
";"
] |
[
"right",
"pad",
"a",
"string",
"buffer",
":",
"adds",
"spaces",
"to",
"a",
"string",
"until",
"a",
"certain",
"length",
"if",
"the",
"length",
"is",
"smaller",
"then",
"the",
"limit",
"specified",
"the",
"string",
"is",
"truncated"
] | [
"return",
"const",
"right",
"pad",
"(",
"ret",
",",
"limit",
")",
";"
] |
[
"replace",
"value",
"occurances",
"in",
"a",
"string",
"with",
"another",
"value"
] | [
"string",
"buffer",
"str",
"=",
"new",
"string",
"buffer",
"(",
"string",
")",
";",
"for",
"(",
"int",
"i",
"=",
"str",
"length",
"(",
")",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"if",
"(",
"str",
"substring",
"(",
... |
[
"count",
"the",
"number",
"of",
"spaces",
"to",
"the",
"left",
"of",
"a",
"text",
"(",
"leading",
")"
] | [
"int",
"nr",
"=",
"0",
";",
"int",
"len",
"=",
"field",
"length",
"(",
")",
";",
"while",
"(",
"nr",
"<",
"len",
"&",
"&",
"field",
"char",
"at",
"(",
"nr",
")",
"=",
"=",
"'",
"'",
")",
"{",
"nr",
"+",
"+",
";",
"}",
"return",
"nr",
";"
... |
[
"count",
"the",
"number",
"of",
"spaces",
"to",
"the",
"right",
"of",
"a",
"text",
"(",
"trailing",
")"
] | [
"int",
"nr",
"=",
"0",
";",
"int",
"len",
"=",
"field",
"length",
"(",
")",
";",
"while",
"(",
"nr",
"<",
"len",
"&",
"&",
"field",
"char",
"at",
"(",
"field",
"length",
"(",
")",
"-",
"1",
"-",
"nr",
")",
"=",
"=",
"'",
"'",
")",
"{",
"n... |
[
"checks",
"whether",
"or",
"not",
"a",
"string",
"consists",
"only",
"of",
"spaces"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"str",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"!",
"is",
"space",
"(",
"str",
"char",
"at",
"(",
"i",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
... |
[
"checks",
"an",
"xml",
"file",
"is",
"well",
"formed"
] | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"string",
"filename",
"=",
"data",
"a",
"to",
"string",
"(",
")",
";",
"file",
"object",
"file",
"=",
"null",
";",
"try",
"{",
"file",
"=",
"kettle",
"v",
"f",
"s"... |
[
"checks",
"an",
"xml",
"string",
"is",
"well",
"formed"
] | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"try",
"{",
"return",
"x",
"m",
"l",
"check",
"is",
"x",
"m",
"l",
"well",
"formed",
"(",
"new",
"byte",
"array",
"input",
"stream",
"(",
"meta",
"a",
"get",
"bina... |
[
"get",
"file",
"encoding"
] | [
"string",
"encoding",
"=",
"null",
";",
"try",
"{",
"encoding",
"=",
"get",
"file",
"encoding",
"(",
"meta",
"a",
",",
"data",
"a",
",",
"true",
")",
";",
"}",
"catch",
"(",
"kettle",
"file",
"not",
"found",
"exception",
"e",
")",
"{",
"throw",
"ne... |
[
"get",
"file",
"encoding"
] | [
"if",
"(",
"data",
"a",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"string",
"encoding",
"=",
"null",
";",
"file",
"object",
"file",
"=",
"null",
";",
"try",
"{",
"file",
"=",
"kettle",
"v",
"f",
"s",
"get",
"file",
"object",
"(",
... |
[
"<",
"p",
">",
"the",
"architecture",
"of",
"the",
"instance",
"<",
"/",
"p",
">"
] | [
"this",
"architecture",
"=",
"architecture",
";"
] |
[
"<",
"p",
">",
"the",
"architecture",
"of",
"the",
"instance",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"architecture",
";"
] |
[
"<",
"p",
">",
"the",
"architecture",
"of",
"the",
"virtual",
"machine",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
":",
"<",
"code",
">",
"i",
"3",
"8",
"6",
"<",
"/",
"code",
">",
"|",
"<",
"code",
">",
"x",
"8",
"6",
"64",
"<"... | [
"set",
"architecture",
"(",
"architecture",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"client",
"-",
"specific",
"data",
"<",
"/",
"p",
">"
] | [
"this",
"client",
"data",
"=",
"client",
"data",
";"
] |
[
"<",
"p",
">",
"the",
"client",
"-",
"specific",
"data",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"client",
"data",
";"
] |
[
"<",
"p",
">",
"the",
"client",
"-",
"specific",
"data",
"<",
"/",
"p",
">"
] | [
"set",
"client",
"data",
"(",
"client",
"data",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"client",
"token",
"portion",
"of",
"the",
"client",
"id",
"and",
"client",
"token",
"pair",
"used",
"to",
"verify",
"that",
"the",
"calling",
"entity",
"is",
"allowed",
"access",
"to",
"the",
"job",
"and",
"its",
"details",
"<",
... | [
"this",
"client",
"token",
"=",
"client",
"token",
";"
] |
[
"<",
"p",
">",
"the",
"client",
"token",
"portion",
"of",
"the",
"client",
"id",
"and",
"client",
"token",
"pair",
"used",
"to",
"verify",
"that",
"the",
"calling",
"entity",
"is",
"allowed",
"access",
"to",
"the",
"job",
"and",
"its",
"details",
"<",
... | [
"return",
"this",
"client",
"token",
";"
] |
[
"<",
"p",
">",
"the",
"token",
"to",
"enable",
"idempotency",
"for",
"vm",
"import",
"requests",
"<",
"/",
"p",
">"
] | [
"set",
"client",
"token",
"(",
"client",
"token",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"description",
"string",
"for",
"the",
"import",
"image",
"task",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"containers",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"disk",
"containers",
"=",
"=",
"null",
")",
"{",
"disk",
"containers",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"image",
"disk",
"container",
">",
"(",
")",
";",
"}",
"return",
"disk",
"containers",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"containers",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"disk",
"containers",
"=",
"=",
"null",
")",
"{",
"this",
"disk",
"containers",
"=",
"null",
";",
"return",
";",
"}",
"this",
"disk",
"containers",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"image",
"disk",
... |
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"containers",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any"... | [
"if",
"(",
"this",
"disk",
"containers",
"=",
"=",
"null",
")",
"{",
"set",
"disk",
"containers",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"image",
"disk",
"container",
">",
"(",
"disk",
"containers",
"length",
")",
")"... |
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"containers",
"<",
"/",
"p",
">"
] | [
"set",
"disk",
"containers",
"(",
"disk",
"containers",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"target",
"hypervisor",
"for",
"the",
"import",
"task",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
":",
"<",
"code",
">",
"xen",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"this",
"hypervisor",
"=",
"hypervisor",
";"
] |
[
"<",
"p",
">",
"the",
"target",
"hypervisor",
"for",
"the",
"import",
"task",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
":",
"<",
"code",
">",
"xen",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"hypervisor",
";"
] |
[
"<",
"p",
">",
"the",
"target",
"hypervisor",
"platform",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
":",
"<",
"code",
">",
"xen",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"hypervisor",
"(",
"hypervisor",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"license",
"type",
"to",
"be",
"used",
"for",
"the",
"amazon",
"machine",
"image",
"(",
"ami",
")",
"after",
"importing",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"you",
"may",
"... | [
"set",
"license",
"type",
"(",
"license",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"operating",
"system",
"of",
"the",
"virtual",
"machine",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"values",
":",
"<",
"code",
">",
"windows",
"<",
"/",
"code",
">",
"|",
"<",
"code",
">",
"linux",
"<",
"/",
"code",
">"... | [
"set",
"platform",
"(",
"platform",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"role",
"to",
"use",
"when",
"not",
"using",
"the",
"default",
"role",
"vmimport",
"<",
"/",
"p",
">"
] | [
"set",
"role",
"name",
"(",
"role",
"name",
")",
";",
"return",
"this",
";"
] |
[
"scan",
"for",
"entities",
"with",
"the",
"specified",
"annotations"
] | [
"list",
"<",
"string",
">",
"packages",
"=",
"get",
"packages",
"(",
")",
";",
"if",
"(",
"packages",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"collections",
"empty",
"set",
"(",
")",
";",
"}",
"class",
"path",
"scanning",
"candidate",
"component",... |
[
"register",
"embedded",
"h2o",
"configuration",
"object",
"with",
"h2o",
"instance"
] | [
"embedded",
"h",
"2",
"o",
"config",
"=",
"c",
";"
] |
[
"tell",
"the",
"embedding",
"software",
"that",
"this",
"h2o",
"instance",
"belongs",
"to",
"a",
"cloud",
"of",
"a",
"certain",
"size",
"this",
"may",
"be",
"nonblocking"
] | [
"if",
"(",
"embedded",
"h",
"2",
"o",
"config",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"embedded",
"h",
"2",
"o",
"config",
"notify",
"about",
"cloud",
"size",
"(",
"ip",
",",
"port",
",",
"size",
")",
";"
] |
[
"shutdown",
"itself",
"by",
"sending",
"a",
"shutdown",
"udp",
"packet"
] | [
"u",
"d",
"p",
"rebooted",
"t",
"shutdown",
"send",
"(",
"h2o",
"self",
")",
";",
"h2o",
"exit",
"(",
"0",
")",
";"
] |
[
"to",
"tell",
"the",
"order",
"of",
"clouds",
"appearing"
] | [
"assert",
"(",
"0",
"<",
"=",
"nnn",
"&",
"&",
"nnn",
"<",
"=",
"255",
")",
";",
"assert",
"(",
"0",
"<",
"=",
"old",
"&",
"&",
"old",
"<",
"=",
"255",
")",
";",
"return",
"(",
"(",
"nnn",
"-",
"old",
")",
"&",
"0x",
"f",
"f",
")",
"<",... |
[
"find",
"the",
"node",
"index",
"for",
"this",
"h",
"2",
"o",
"node",
"or",
"a",
"negative",
"number",
"on",
"a",
"miss"
] | [
"return",
"arrays",
"binary",
"search",
"(",
"memary",
",",
"h",
"2o",
")",
";"
] |
[
"big",
"warning",
":",
"do",
"you",
"not",
"change",
"this",
"to",
"string",
"(",
")",
"method",
"since",
"cloud",
"hash",
"value",
"depends",
"on",
"it"
] | [
"return",
"arrays",
"to",
"string",
"(",
"memary",
")",
";"
] |
[
"initial",
"keys",
"from",
"local",
"storage",
"or",
"to",
"intern",
"keys"
] | [
"value",
"res",
"=",
"store",
"put",
"if",
"match",
"unlocked",
"(",
"key",
",",
"val",
",",
"null",
")",
";",
"assert",
"res",
"=",
"=",
"null",
";",
"return",
"res",
";"
] |
[
"get",
"the",
"value",
"from",
"the",
"store"
] | [
"return",
"store",
"get",
"(",
"key",
")",
";"
] |
[
"easy",
"peeks",
"at",
"the",
"fj",
"queues"
] | [
"return",
"fjps",
"[",
"i",
"]",
"=",
"=",
"null",
"?",
"-",
"1",
":",
"fjps",
"[",
"i",
"]",
"get",
"queued",
"submission",
"count",
"(",
")",
";"
] |
[
"do",
"the",
"actually",
"intended",
"work"
] | [
"public",
"abstract",
"void",
"compute",
"2",
"(",
")",
";"
] |
[
"than",
"themselves",
"this",
"field",
"tracks",
"the",
"required",
"priority"
] | [
"return",
"min",
"priority",
";"
] |
[
"initializes",
"a",
"watchdog",
"thread",
"to",
"make",
"sure",
"the",
"api",
"ip",
":",
"port",
"is",
"reachable"
] | [
"api",
"ip",
"port",
"watchdog",
"=",
"new",
"api",
"ip",
"port",
"watchdog",
"thread",
"(",
")",
";",
"api",
"ip",
"port",
"watchdog",
"start",
"(",
")",
";"
] |
[
"disabled",
")"
] | [
"try",
"{",
"multicast",
"2",
"(",
"bb",
")",
";",
"}",
"catch",
"(",
"exception",
"xe",
")",
"{",
"}"
] |
[
"exposed",
"for",
"testing",
"only"
] | [
"dirty",
"store",
"(",
"system",
"current",
"time",
"millis",
"(",
")",
")",
";"
] |
[
"get",
"the",
"user",
"keys",
"from",
"this",
"node",
"only",
"includes",
"non",
"-",
"local",
"keys",
"which",
"are",
"cached",
"locally"
] | [
"return",
"local",
"snapshot",
"(",
"false",
")",
";"
] |
[
"exit",
"this",
"watchdog",
"thread"
] | [
"graceful",
"shutdown",
"initiated",
"=",
"true",
";"
] |
[
"sleep",
"method"
] | [
"try",
"{",
"thread",
"sleep",
"(",
"sleep",
"millis",
")",
";",
"}",
"catch",
"(",
"exception",
"xe",
")",
"{",
"}"
] |
[
"reset",
"the",
"failure",
"counting",
"when",
"a",
"successful",
"check",
"(",
")",
"occurs"
] | [
"consecutive",
"failures",
"=",
"0",
";",
"failure",
"start",
"timestamp",
"millis",
"=",
"0",
";"
] |
[
"returns",
"label",
"for",
"kth",
"order",
"statistic",
"for",
"target",
"feature"
] | [
"return",
"labels",
"[",
"idx",
"[",
"k",
"]",
"[",
"feature",
"id",
"]",
"]",
";"
] |
[
"returns",
"vector",
"of",
"original",
"features",
"for",
"kth",
"order",
"statistic",
"for",
"target",
"feature"
] | [
"return",
"features",
"[",
"idx",
"[",
"k",
"]",
"[",
"feature",
"id",
"]",
"]",
";"
] |
[
"returns",
"feature",
"value",
"for",
"kth",
"order",
"statistic",
"for",
"target",
"feature"
] | [
"return",
"features",
"in",
"sorted",
"order",
"(",
"k",
",",
"feature",
"id",
")",
"[",
"feature",
"id",
"]",
";"
] |
[
"creates",
"projection",
"of",
"current",
"index",
"in",
"according",
"to",
"{",
"@",
"link",
"tree",
"filter",
"}"
] | [
"int",
"proj",
"size",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"rows",
"count",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"filter",
"test",
"(",
"features",
"in",
"sorted",
"order",
"(",
"i",
",",
"0",
")",
... |
[
"constructs",
"index",
"structure",
"in",
"according",
"to",
"features",
"table"
] | [
"if",
"(",
"from",
"<",
"to",
")",
"{",
"double",
"pivot",
"=",
"features",
"[",
"(",
"from",
"+",
"to",
")",
"/",
"2",
"]",
"[",
"col",
"]",
";",
"int",
"i",
"=",
"from",
",",
"j",
"=",
"to",
";",
"while",
"(",
"i",
"<",
"=",
"j",
")",
... |
[
"just",
"to",
"prettify",
"things",
"a",
"bit"
] | [
"secure",
"random",
"rgen",
"=",
"new",
"secure",
"random",
"(",
")",
";",
"return",
"color",
"h",
"s",
"v",
"to",
"color",
"(",
"150",
",",
"new",
"float",
"[",
"]",
"{",
"rgen",
"next",
"int",
"(",
"359",
")",
",",
"1",
",",
"1",
"}",
")",
... |
[
"this",
"method",
"does",
"not",
"keep",
"order",
"of",
"list"
] | [
"return",
"values",
"stream",
"(",
")",
"collect",
"(",
"unique",
"index",
"(",
"key",
"long",
"value",
":",
":",
"get",
"key",
",",
"key",
"long",
"value",
":",
":",
"get",
"value",
",",
"values",
"size",
"(",
")",
")",
")",
";"
] |
[
"updates",
"the",
"register",
"headers",
"if",
"the",
"name",
"of",
"a",
"view",
"changed"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"get",
"tab",
"count",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"final",
"i",
"graph",
"panel",
"component",
"=",
"(",
"i",
"graph",
"panel",
")",
"get",
"component",
"at",
"(",
"i",
")",
";",
... |
[
"abstract",
"template",
"method",
"to",
"create",
"a",
"{"
] | [
"protected",
"abstract",
"processor",
"<",
"?",
"super",
"publisher",
"<",
"?",
"extends",
"data",
"buffer",
">",
",",
"void",
">",
"create",
"body",
"flush",
"processor",
"(",
")",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"port",
"states",
"resulting",
"from",
"your",
"request",
"<",
"/",
"p",
">"
] | [
"return",
"port",
"states",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"port",
"states",
"resulting",
"from",
"your",
"request",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"port",
"states",
"=",
"=",
"null",
")",
"{",
"this",
"port",
"states",
"=",
"null",
";",
"return",
";",
"}",
"this",
"port",
"states",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"instance",
"port",
"state",
">",
"(",
"port",
"sta... |
[
"<",
"p",
">",
"information",
"about",
"the",
"port",
"states",
"resulting",
"from",
"your",
"request",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
... | [
"if",
"(",
"this",
"port",
"states",
"=",
"=",
"null",
")",
"{",
"set",
"port",
"states",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"instance",
"port",
"state",
">",
"(",
"port",
"states",
"length",
")",
")",
";",
"}",
"for",
"(",
"instance... |
[
"<",
"p",
">",
"information",
"about",
"the",
"port",
"states",
"resulting",
"from",
"your",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"port",
"states",
"(",
"port",
"states",
")",
";",
"return",
"this",
";"
] |
[
"specify",
"the",
"duck",
"typed",
"object",
"to",
"coerce"
] | [
"return",
"new",
"duck",
"type",
"(",
"object",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.