docstring_tokens
list | code_tokens
list |
---|---|
[
"make",
"the",
"replica",
"unanchorable",
"normally",
"this",
"can",
"only",
"be",
"done",
"by",
"the",
"data",
"node",
"this",
"method",
"is",
"only",
"for",
"testing"
] |
[
"replica",
"get",
"slot",
"(",
")",
"make",
"unanchorable",
"(",
")",
";"
] |
[
"returns",
"a",
"new",
"instance",
"with",
"a",
"union",
"of",
"the",
"http",
"request",
"methods",
"from",
"this",
"and",
"the",
"other",
"instance"
] |
[
"set",
"<",
"request",
"method",
">",
"set",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
"this",
"methods",
")",
";",
"set",
"add",
"all",
"(",
"other",
"methods",
")",
";",
"return",
"new",
"request",
"methods",
"request",
"condition",
"(",
"set",
")",
";"
] |
[
"on",
"a",
"pre",
"-",
"flight",
"request",
"match",
"to",
"the",
"would",
"-",
"be",
"actual",
"request",
"hence",
"empty",
"conditions",
"is",
"a",
"match",
"otherwise",
"try",
"to",
"match",
"to",
"the",
"http",
"method",
"in",
"the",
"access",
"-",
"control",
"-",
"request",
"-",
"method",
"header"
] |
[
"if",
"(",
"get",
"methods",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"this",
";",
"}",
"http",
"method",
"expected",
"method",
"=",
"request",
"get",
"headers",
"(",
")",
"get",
"access",
"control",
"request",
"method",
"(",
")",
";",
"return",
"match",
"request",
"method",
"(",
"expected",
"method",
")",
";"
] |
[
"returns",
":",
"<",
"ul",
">",
"<",
"li",
">",
"0",
"if",
"the",
"two",
"conditions",
"contain",
"the",
"same",
"number",
"of",
"http",
"request",
"methods",
"<",
"li",
">",
"less",
"than",
"0",
"if",
"this",
"instance",
"has",
"an",
"http",
"request",
"method",
"but",
"other",
"doesn",
"t",
"<",
"li",
">",
"greater",
"than",
"0",
"other",
"has",
"an",
"http",
"request",
"method",
"but",
"this",
"doesn",
"t",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"it",
"is",
"assumed",
"that",
"both",
"instances",
"have",
"been",
"obtained",
"via",
"{"
] |
[
"return",
"(",
"other",
"methods",
"size",
"(",
")",
"-",
"this",
"methods",
"size",
"(",
")",
")",
";"
] |
[
"<",
"p",
">",
"the",
"topic",
"you",
"want",
"to",
"publish",
"to",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"specify",
"a",
"value",
"for",
"the",
"<",
"code",
">",
"topic",
"arn",
"<",
"/",
"code",
">",
"parameter",
"you",
"must",
"specify",
"a",
"value",
"for",
"the",
"<",
"code",
">",
"phone",
"number",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"target",
"arn",
"<",
"/",
"code",
">",
"parameters",
"<",
"/",
"p",
">"
] |
[
"set",
"topic",
"arn",
"(",
"topic",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"either",
"topic",
"arn",
"or",
"endpoint",
"arn",
"but",
"not",
"both",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"specify",
"a",
"value",
"for",
"the",
"<",
"code",
">",
"target",
"arn",
"<",
"/",
"code",
">",
"parameter",
"you",
"must",
"specify",
"a",
"value",
"for",
"the",
"<",
"code",
">",
"phone",
"number",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"topic",
"arn",
"<",
"/",
"code",
">",
"parameters",
"<",
"/",
"p",
">"
] |
[
"set",
"target",
"arn",
"(",
"target",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"phone",
"number",
"to",
"which",
"you",
"want",
"to",
"deliver",
"an",
"sms",
"message",
"use",
"e",
"164",
"format",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"specify",
"a",
"value",
"for",
"the",
"<",
"code",
">",
"phone",
"number",
"<",
"/",
"code",
">",
"parameter",
"you",
"must",
"specify",
"a",
"value",
"for",
"the",
"<",
"code",
">",
"target",
"arn",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"topic",
"arn",
"<",
"/",
"code",
">",
"parameters",
"<",
"/",
"p",
">"
] |
[
"set",
"phone",
"number",
"(",
"phone",
"number",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"message",
"you",
"want",
"to",
"send",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"are",
"publishing",
"to",
"a",
"topic",
"and",
"you",
"want",
"to",
"send",
"the",
"same",
"message",
"to",
"all",
"transport",
"protocols",
"include",
"the",
"text",
"of",
"the",
"message",
"as",
"a",
"string",
"value",
"if",
"you",
"want",
"to",
"send",
"different",
"messages",
"for",
"each",
"transport",
"protocol",
"set",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"message",
"structure",
"<",
"/",
"code",
">",
"parameter",
"to",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"and",
"use",
"a",
"json",
"object",
"for",
"the",
"<",
"code",
">",
"message",
"<",
"/",
"code",
">",
"parameter",
"<",
"/",
"p",
">",
"<",
"p",
"/",
">",
"<",
"p",
">",
"constraints",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"with",
"the",
"exception",
"of",
"sms",
"messages",
"must",
"be",
"utf",
"-",
"8",
"encoded",
"strings",
"and",
"at",
"most",
"256",
"kb",
"in",
"size",
"(",
"262144",
"bytes",
"not",
"262144",
"characters",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"sms",
"each",
"message",
"can",
"contain",
"up",
"to",
"140",
"bytes",
"and",
"the",
"character",
"limit",
"depends",
"on",
"the",
"encoding",
"scheme",
"for",
"example",
"an",
"sms",
"message",
"can",
"contain",
"160",
"gsm",
"characters",
"140",
"ascii",
"characters",
"or",
"70",
"ucs",
"-",
"2",
"characters",
"if",
"you",
"publish",
"a",
"message",
"that",
"exceeds",
"the",
"size",
"limit",
"amazon",
"sns",
"sends",
"it",
"as",
"multiple",
"messages",
"each",
"fitting",
"within",
"the",
"size",
"limit",
"messages",
"are",
"not",
"cut",
"off",
"in",
"the",
"middle",
"of",
"a",
"word",
"but",
"on",
"whole",
"-",
"word",
"boundaries",
"the",
"total",
"size",
"limit",
"for",
"a",
"single",
"sms",
"publish",
"action",
"is",
"1600",
"bytes",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"json",
"-",
"specific",
"constraints",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"keys",
"in",
"the",
"json",
"object",
"that",
"correspond",
"to",
"supported",
"transport",
"protocols",
"must",
"have",
"simple",
"json",
"string",
"values",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"values",
"will",
"be",
"parsed",
"(",
"unescaped",
")",
"before",
"they",
"are",
"used",
"in",
"outgoing",
"messages",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"outbound",
"notifications",
"are",
"json",
"encoded",
"(",
"meaning",
"that",
"the",
"characters",
"will",
"be",
"reescaped",
"for",
"sending",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"values",
"have",
"a",
"minimum",
"length",
"of",
"0",
"(",
"the",
"empty",
"string",
"is",
"allowed",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"values",
"have",
"a",
"maximum",
"length",
"bounded",
"by",
"the",
"overall",
"message",
"size",
"(",
"so",
"including",
"multiple",
"protocols",
"may",
"limit",
"message",
"sizes",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"non",
"-",
"string",
"values",
"will",
"cause",
"the",
"key",
"to",
"be",
"ignored",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"keys",
"that",
"do",
"not",
"correspond",
"to",
"supported",
"transport",
"protocols",
"are",
"ignored",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"duplicate",
"keys",
"are",
"not",
"allowed",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"failure",
"to",
"parse",
"or",
"validate",
"any",
"key",
"or",
"value",
"in",
"the",
"message",
"will",
"cause",
"the",
"<",
"code",
">",
"publish",
"<",
"/",
"code",
">",
"call",
"to",
"return",
"an",
"error",
"(",
"no",
"partial",
"delivery",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] |
[
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"optional",
"parameter",
"to",
"be",
"used",
"as",
"the",
"subject",
"line",
"when",
"the",
"message",
"is",
"delivered",
"to",
"email",
"endpoints",
"this",
"field",
"will",
"also",
"be",
"included",
"if",
"present",
"in",
"the",
"standard",
"json",
"messages",
"delivered",
"to",
"other",
"endpoints",
"<",
"/",
"p",
">",
"<",
"p",
">",
"constraints",
":",
"subjects",
"must",
"be",
"ascii",
"text",
"that",
"begins",
"with",
"a",
"letter",
"number",
"or",
"punctuation",
"mark",
";",
"must",
"not",
"include",
"line",
"breaks",
"or",
"control",
"characters",
";",
"and",
"must",
"be",
"less",
"than",
"100",
"characters",
"long",
"<",
"/",
"p",
">"
] |
[
"set",
"subject",
"(",
"subject",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"set",
"<",
"code",
">",
"message",
"structure",
"<",
"/",
"code",
">",
"to",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"if",
"you",
"want",
"to",
"send",
"a",
"different",
"message",
"for",
"each",
"protocol",
"for",
"example",
"using",
"one",
"publish",
"action",
"you",
"can",
"send",
"a",
"short",
"message",
"to",
"your",
"sms",
"subscribers",
"and",
"a",
"longer",
"message",
"to",
"your",
"email",
"subscribers",
"if",
"you",
"set",
"<",
"code",
">",
"message",
"structure",
"<",
"/",
"code",
">",
"to",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"message",
"<",
"/",
"code",
">",
"parameter",
"must",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"be",
"a",
"syntactically",
"valid",
"json",
"object",
";",
"and",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"contain",
"at",
"least",
"a",
"top",
"-",
"level",
"json",
"key",
"of",
"default",
"with",
"a",
"value",
"that",
"is",
"a",
"string",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"you",
"can",
"define",
"other",
"top",
"-",
"level",
"keys",
"that",
"define",
"the",
"message",
"you",
"want",
"to",
"send",
"to",
"a",
"specific",
"transport",
"protocol",
"(",
"e",
"g",
"http",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"information",
"about",
"sending",
"different",
"messages",
"for",
"each",
"protocol",
"using",
"the",
"aws",
"management",
"console",
"go",
"to",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"sns",
"/",
"latest",
"/",
"gsg",
"/",
"publish",
"html",
"#",
"sns",
"-",
"message",
"-",
"formatting",
"-",
"by",
"-",
"protocol",
">",
"create",
"different",
"messages",
"for",
"each",
"protocol",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"notification",
"service",
"getting",
"started",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"value",
":",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"message",
"structure",
";"
] |
[
"<",
"p",
">",
"set",
"<",
"code",
">",
"message",
"structure",
"<",
"/",
"code",
">",
"to",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"if",
"you",
"want",
"to",
"send",
"a",
"different",
"message",
"for",
"each",
"protocol",
"for",
"example",
"using",
"one",
"publish",
"action",
"you",
"can",
"send",
"a",
"short",
"message",
"to",
"your",
"sms",
"subscribers",
"and",
"a",
"longer",
"message",
"to",
"your",
"email",
"subscribers",
"if",
"you",
"set",
"<",
"code",
">",
"message",
"structure",
"<",
"/",
"code",
">",
"to",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"message",
"<",
"/",
"code",
">",
"parameter",
"must",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"be",
"a",
"syntactically",
"valid",
"json",
"object",
";",
"and",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"contain",
"at",
"least",
"a",
"top",
"-",
"level",
"json",
"key",
"of",
"default",
"with",
"a",
"value",
"that",
"is",
"a",
"string",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"you",
"can",
"define",
"other",
"top",
"-",
"level",
"keys",
"that",
"define",
"the",
"message",
"you",
"want",
"to",
"send",
"to",
"a",
"specific",
"transport",
"protocol",
"(",
"e",
"g",
"http",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"information",
"about",
"sending",
"different",
"messages",
"for",
"each",
"protocol",
"using",
"the",
"aws",
"management",
"console",
"go",
"to",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"sns",
"/",
"latest",
"/",
"gsg",
"/",
"publish",
"html",
"#",
"sns",
"-",
"message",
"-",
"formatting",
"-",
"by",
"-",
"protocol",
">",
"create",
"different",
"messages",
"for",
"each",
"protocol",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"notification",
"service",
"getting",
"started",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"valid",
"value",
":",
"<",
"code",
">",
"json",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] |
[
"set",
"message",
"structure",
"(",
"message",
"structure",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"message",
"attributes",
"for",
"publish",
"action",
"<",
"/",
"p",
">"
] |
[
"set",
"message",
"attributes",
"(",
"message",
"attributes",
")",
";",
"return",
"this",
";"
] |
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"message",
"attributes"
] |
[
"this",
"message",
"attributes",
"=",
"null",
";",
"return",
"this",
";"
] |
[
"set",
"extra",
"attributes",
"on",
"this",
"database",
"connection"
] |
[
"this",
"attributes",
"=",
"attributes",
";"
] |
[
"see",
"if",
"this",
"database",
"supports",
"the",
"set",
"character",
"stream",
"(",
")",
"method",
"on",
"a",
"prepared",
"statement"
] |
[
"return",
"true",
";"
] |
[
"get",
"the",
"sql",
"to",
"get",
"the",
"next",
"value",
"of",
"a",
"sequence",
"(",
"oracle",
"/",
"pgsql",
"only",
")"
] |
[
"return",
"\"",
"\"",
";"
] |
[
"get",
"the",
"current",
"value",
"of",
"a",
"database",
"sequence"
] |
[
"return",
"\"",
"\"",
";"
] |
[
"check",
"if",
"a",
"sequence",
"exists"
] |
[
"return",
"\"",
"\"",
";"
] |
[
"indicates",
"the",
"need",
"to",
"insert",
"a",
"placeholder",
"(",
"0",
")",
"for",
"auto",
"increment",
"fields"
] |
[
"return",
"false",
";"
] |
[
"checks",
"for",
"quotes",
"before",
"quoting",
"table",
"many",
"dialects",
"had",
"hardcoded",
"quotes",
"they",
"probably",
"didn",
"t",
"get",
"updated",
"properly",
"when",
"quote",
"fields",
"(",
")",
"was",
"introduced",
"to",
"database",
"meta"
] |
[
"if",
"(",
"table",
"part",
"!",
"=",
"null",
"&",
"&",
"(",
"table",
"part",
"contains",
"(",
"get",
"start",
"quote",
"(",
")",
")",
"|",
"|",
"table",
"part",
"contains",
"(",
"get",
"end",
"quote",
"(",
")",
")",
")",
")",
"{",
"return",
"table",
"part",
";",
"}",
"else",
"{",
"return",
"get",
"start",
"quote",
"(",
")",
"+",
"table",
"part",
"+",
"get",
"end",
"quote",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"maximum",
"length",
"of",
"a",
"text",
"field",
"for",
"this",
"database",
"connection",
"this",
"includes",
"optional",
"clob",
"memo",
"and",
"text",
"fields",
"(",
"the",
"maximum",
"!",
")"
] |
[
"return",
"database",
"meta",
"clob",
"length",
";"
] |
[
"get",
"the",
"maximum",
"length",
"of",
"a",
"text",
"field",
"(",
"varchar",
")",
"for",
"this",
"database",
"connection",
"if",
"this",
"size",
"is",
"exceeded",
"use",
"a",
"clob"
] |
[
"return",
"database",
"meta",
"clob",
"length",
";"
] |
[
"most",
"databases",
"round",
"number",
"(",
"7",
"2",
")",
"17",
"29999999",
"to",
"17",
"30",
"but",
"some",
"don",
"t"
] |
[
"return",
"true",
";"
] |
[
"neoview",
"supports",
"options",
"in",
"the",
"url"
] |
[
"return",
"true",
";"
] |
[
"you",
"can",
"use",
"this",
"method",
"to",
"supply",
"an",
"alternate",
"factory",
"for",
"the",
"test",
"method",
"in",
"the",
"dialogs",
"this",
"is",
"useful",
"for",
"plugins",
"like",
"sap",
"/",
"r3",
"and",
"palo"
] |
[
"return",
"database",
"factory",
"class",
"get",
"name",
"(",
")",
";"
] |
[
"@",
"return",
"true",
"if",
"the",
"database",
"requires",
"you",
"to",
"cast",
"a",
"parameter",
"to",
"varchar",
"before",
"comparing",
"to",
"null",
"only",
"required",
"for",
"db2",
"and",
"vertica"
] |
[
"return",
"false",
";"
] |
[
"@",
"return",
"handles",
"the",
"special",
"case",
"of",
"db2",
"where",
"the",
"display",
"size",
"returned",
"is",
"twice",
"the",
"precision",
"in",
"that",
"case",
"the",
"length",
"is",
"the",
"precision"
] |
[
"return",
"false",
";"
] |
[
"most",
"databases",
"allow",
"you",
"to",
"retrieve",
"result",
"metadata",
"by",
"preparing",
"a",
"select",
"statement"
] |
[
"return",
"true",
";"
] |
[
"build",
"the",
"sql",
"to",
"count",
"the",
"number",
"of",
"rows",
"in",
"the",
"passed",
"table"
] |
[
"return",
"select",
"count",
"statement",
"+",
"\"",
"\"",
"+",
"table",
"name",
";"
] |
[
"parse",
"all",
"possible",
"statements",
"from",
"the",
"provided",
"sql",
"script"
] |
[
"list",
"<",
"sql",
"script",
"statement",
">",
"script",
"statements",
"=",
"get",
"sql",
"script",
"statements",
"(",
"sql",
"script",
")",
";",
"list",
"<",
"string",
">",
"statements",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"for",
"(",
"sql",
"script",
"statement",
"script",
"statement",
":",
"script",
"statements",
")",
"{",
"statements",
"add",
"(",
"script",
"statement",
"get",
"statement",
"(",
")",
")",
";",
"}",
"return",
"statements",
";"
] |
[
"returns",
"a",
"true",
"of",
"savepoints",
"can",
"be",
"released",
"false",
"if",
"not"
] |
[
"return",
"release",
"savepoint",
";"
] |
[
"returns",
"the",
"tablespace",
"ddl",
"fragment",
"for",
"a",
"data",
"tablespace",
"in",
"most",
"databases",
"that",
"use",
"tablespaces",
"this",
"is",
"where",
"the",
"tables",
"are",
"to",
"be",
"created"
] |
[
"return",
"get",
"tablespace",
"d",
"d",
"l",
"(",
"variables",
",",
"database",
"meta",
",",
"database",
"meta",
"get",
"database",
"interface",
"(",
")",
"get",
"data",
"tablespace",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"tablespace",
"ddl",
"fragment",
"for",
"a",
"index",
"tablespace"
] |
[
"return",
"get",
"tablespace",
"d",
"d",
"l",
"(",
"variables",
",",
"database",
"meta",
",",
"database",
"meta",
"get",
"database",
"interface",
"(",
")",
"get",
"index",
"tablespace",
"(",
")",
")",
";"
] |
[
"returns",
"an",
"empty",
"string",
"as",
"most",
"databases",
"do",
"not",
"support",
"tablespaces",
"subclasses",
"can",
"override",
"this",
"method",
"to",
"generate",
"the",
"ddl"
] |
[
"return",
"\"",
"\"",
";"
] |
[
"this",
"method",
"allows",
"a",
"database",
"dialect",
"to",
"convert",
"database",
"specific",
"data",
"types",
"to",
"kettle",
"data",
"types"
] |
[
"return",
"val",
"get",
"value",
"from",
"result",
"set",
"(",
"this",
",",
"rs",
",",
"i",
")",
";"
] |
[
"customizes",
"the",
"value",
"meta",
"interface",
"defined",
"in",
"the",
"base"
] |
[
"return",
"null",
";"
] |
[
"helper",
"method",
"to",
"extract",
"a",
"claim",
"from",
"the",
"given",
"json",
"node",
"tree"
] |
[
"json",
"node",
"node",
"=",
"tree",
"get",
"(",
"claim",
"name",
")",
";",
"return",
"claim",
"from",
"node",
"(",
"node",
")",
";"
] |
[
"helper",
"method",
"to",
"create",
"a",
"claim",
"representation",
"from",
"the",
"given",
"json",
"node"
] |
[
"if",
"(",
"node",
"=",
"=",
"null",
"|",
"|",
"node",
"is",
"null",
"(",
")",
"|",
"|",
"node",
"is",
"missing",
"node",
"(",
")",
")",
"{",
"return",
"new",
"null",
"claim",
"(",
")",
";",
"}",
"return",
"new",
"json",
"node",
"claim",
"(",
"node",
")",
";"
] |
[
"visible",
"for",
"testing"
] |
[
"return",
"new",
"object",
"mapper",
"(",
")",
";"
] |
[
"throws",
"an",
"elasticsearch",
"security",
"exception",
"if",
"the",
"specified",
"mode",
"is",
"not",
"allowed"
] |
[
"check",
"if",
"sql",
"allowed",
"accept",
"(",
"mode",
")",
";"
] |
[
"}"
] |
[
"return",
"internal",
"name",
";"
] |
[
"gets",
"the",
"script",
"engine",
"wrapper",
"might",
"be",
"{",
"@",
"code",
"null",
"}",
"if",
"the",
"engine",
"is",
"not",
"installed",
"or",
"was",
"not",
"yet",
"set"
] |
[
"return",
"engine",
";"
] |
[
"sets",
"if",
"this",
"script",
"is",
"enabled",
"<",
"p",
">",
"it",
"s",
"not",
"possible",
"to",
"enable",
"scripts",
"without",
"engine"
] |
[
"if",
"(",
"enabled",
"&",
"&",
"engine",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"this",
"enabled",
"!",
"=",
"enabled",
")",
"{",
"this",
"enabled",
"=",
"enabled",
";",
"this",
"changed",
"=",
"true",
";",
"}"
] |
[
"sets",
"whether",
"or",
"not",
"this",
"script",
"was",
"enabled",
"before",
"setting",
"the",
"engine",
"to",
"{",
"@",
"code",
"null",
"}"
] |
[
"previously",
"enabled",
"=",
"enabled",
";"
] |
[
"tells",
"whether",
"or",
"not",
"the",
"wrapper",
"script",
"was",
"enabled",
"before",
"setting",
"its",
"script",
"engine",
"to",
"{",
"@",
"code",
"null",
"}",
"<",
"p",
">",
"allows",
"to",
"restore",
"the",
"enabled",
"state",
"of",
"the",
"script",
"after",
"restoring",
"the",
"engine"
] |
[
"return",
"previously",
"enabled",
";"
] |
[
"{"
] |
[
"handler",
"on",
"focus",
"(",
"this",
")",
";"
] |
[
"detach",
"from",
"list",
"view"
] |
[
"m",
"handler",
"remove",
"callbacks",
"(",
"m",
"request",
"focus",
")",
";",
"m",
"list",
"=",
"null",
";",
"m",
"list",
"shown",
"=",
"false",
";",
"m",
"empty",
"view",
"=",
"m",
"progress",
"view",
"=",
"m",
"list",
"container",
"=",
"null",
";",
"m",
"standard",
"empty",
"view",
"=",
"null",
";",
"super",
"on",
"destroy",
"view",
"(",
")",
";"
] |
[
"this",
"method",
"will",
"be",
"called",
"when",
"an",
"item",
"in",
"the",
"list",
"is",
"selected",
"subclasses",
"should",
"override",
"subclasses",
"can",
"call",
"get",
"list",
"view",
"(",
")",
"get",
"item",
"at",
"position",
"(",
"position",
")",
"if",
"they",
"need",
"to",
"access",
"the",
"data",
"associated",
"with",
"the",
"selected",
"item"
] |
[] |
[
"get",
"the",
"activity",
"s",
"list",
"view",
"widget"
] |
[
"ensure",
"list",
"(",
")",
";",
"return",
"m",
"list",
";"
] |
[
"unregister",
"lazy",
"worker"
] |
[
"lazy",
"workers",
"remove",
"(",
"worker",
"key",
"(",
")",
",",
"worker",
")",
";"
] |
[
"puts",
"an",
"object",
"into",
"its",
"box"
] |
[
"long",
"assigned",
"id",
"=",
"collect",
"3",
"1",
"3",
"3",
"1",
"1",
"(",
"cursor",
",",
"entity",
"get",
"id",
"(",
")",
",",
"put",
"flag",
"first",
"|",
"put",
"flag",
"complete",
",",
"9",
",",
"entity",
"get",
"simple",
"string",
"(",
")",
",",
"0",
",",
"null",
",",
"0",
",",
"null",
",",
"10",
",",
"entity",
"get",
"simple",
"byte",
"array",
"(",
")",
",",
"0",
",",
"0",
",",
"6",
",",
"entity",
"get",
"simple",
"long",
"(",
")",
",",
"int",
"null",
"hack",
"?",
"0",
":",
"5",
",",
"entity",
"get",
"simple",
"int",
"(",
")",
",",
"4",
",",
"entity",
"get",
"simple",
"short",
"(",
")",
",",
"3",
",",
"entity",
"get",
"simple",
"byte",
"(",
")",
",",
"2",
",",
"entity",
"get",
"simple",
"boolean",
"(",
")",
"?",
"1",
":",
"0",
",",
"7",
",",
"entity",
"get",
"simple",
"float",
"(",
")",
",",
"8",
",",
"entity",
"get",
"simple",
"double",
"(",
")",
")",
";",
"entity",
"set",
"id",
"(",
"assigned",
"id",
")",
";",
"return",
"assigned",
"id",
";"
] |
[
"process",
"a",
"row",
"by",
"outputting",
"the",
"result",
"of",
"the",
"window",
"function"
] |
[
"public",
"abstract",
"void",
"process",
"row",
"(",
"block",
"builder",
"output",
",",
"int",
"frame",
"start",
",",
"int",
"frame",
"end",
",",
"int",
"current",
"position",
")",
";"
] |
[
"creates",
"a",
"{",
"@",
"code",
"a",
"i",
"file",
"read",
"proc",
"}",
"instance",
"from",
"the",
"specified",
"function",
"pointer"
] |
[
"a",
"i",
"file",
"read",
"proc",
"i",
"instance",
"=",
"callback",
"get",
"(",
"function",
"pointer",
")",
";",
"return",
"instance",
"instanceof",
"a",
"i",
"file",
"read",
"proc",
"?",
"(",
"a",
"i",
"file",
"read",
"proc",
")",
"instance",
":",
"new",
"container",
"(",
"function",
"pointer",
",",
"instance",
")",
";"
] |
[
"like",
"{"
] |
[
"return",
"function",
"pointer",
"=",
"=",
"null",
"?",
"null",
":",
"create",
"(",
"function",
"pointer",
")",
";"
] |
[
"creates",
"a",
"{"
] |
[
"return",
"instance",
"instanceof",
"a",
"i",
"file",
"read",
"proc",
"?",
"(",
"a",
"i",
"file",
"read",
"proc",
")",
"instance",
":",
"new",
"container",
"(",
"instance",
"address",
"(",
")",
",",
"instance",
")",
";"
] |
[
"gets",
"the",
"next",
"task",
"to",
"execute"
] |
[
"int",
"partition",
"id",
"=",
"next",
"partition",
"id",
"(",
")",
";",
"return",
"partition",
"id",
"=",
"=",
"-",
"1",
"?",
"null",
":",
"task",
"factory",
"create",
"(",
"partition",
"id",
")",
";"
] |
[
"return",
"checkpoints",
"from",
"partitions"
] |
[
"hash",
"map",
"<",
"integer",
",",
"checkpoint",
">",
"list",
"=",
"new",
"hash",
"map",
"<",
"integer",
",",
"checkpoint",
">",
"(",
"partitions",
"size",
"(",
")",
")",
";",
"try",
"{",
"for",
"(",
"int",
"p",
":",
"partitions",
")",
"{",
"cluster",
"checkpoint",
"persistence",
"provider",
"cp",
"provider",
"=",
"new",
"cluster",
"checkpoint",
"persistence",
"provider",
"(",
"p",
",",
"cluster",
"config",
")",
";",
"if",
"(",
"is",
"legacy",
"ckpt",
"location",
")",
"{",
"list",
"put",
"(",
"p",
",",
"cp",
"provider",
"load",
"checkpoint",
"legacy",
"(",
"sources",
")",
")",
";",
"}",
"else",
"{",
"list",
"put",
"(",
"p",
",",
"cp",
"provider",
"load",
"checkpoint",
"(",
"sources",
")",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"invalid",
"config",
"exception",
"e",
")",
"{",
"throw",
"new",
"databus",
"cluster",
"util",
"exception",
"(",
"e",
"to",
"string",
"(",
")",
")",
";",
"}",
"catch",
"(",
"cluster",
"checkpoint",
"exception",
"e",
")",
"{",
"throw",
"new",
"databus",
"cluster",
"util",
"exception",
"(",
"e",
"to",
"string",
"(",
")",
")",
";",
"}",
"return",
"list",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"(",
"key",
"value",
")",
"in",
"this",
"}",
"expression"
] |
[
"return",
"get",
"(",
"key",
")",
"eq",
"(",
"value",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"key",
"in",
"keys",
"(",
"this",
")",
"}",
"expression"
] |
[
"return",
"expressions",
"boolean",
"operation",
"(",
"ops",
"contains",
"key",
",",
"mixin",
",",
"key",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"key",
"in",
"keys",
"(",
"this",
")",
"}",
"expression"
] |
[
"return",
"expressions",
"boolean",
"operation",
"(",
"ops",
"contains",
"key",
",",
"mixin",
",",
"constant",
"impl",
"create",
"(",
"key",
")",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"value",
"in",
"values",
"(",
"this",
")",
"}",
"expression"
] |
[
"return",
"expressions",
"boolean",
"operation",
"(",
"ops",
"contains",
"value",
",",
"mixin",
",",
"value",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"value",
"in",
"values",
"(",
"this",
")",
"}",
"expression"
] |
[
"return",
"expressions",
"boolean",
"operation",
"(",
"ops",
"contains",
"value",
",",
"mixin",
",",
"constant",
"impl",
"create",
"(",
"value",
")",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"this",
"get",
"(",
"key",
")",
"}",
"expression"
] |
[
"public",
"abstract",
"q",
"get",
"(",
"expression",
"<",
"k",
">",
"key",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"this",
"get",
"(",
"key",
")",
"}",
"expression"
] |
[
"public",
"abstract",
"q",
"get",
"(",
"k",
"key",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"this",
"is",
"empty",
"(",
")",
"}",
"expression"
] |
[
"if",
"(",
"empty",
"=",
"=",
"null",
")",
"{",
"empty",
"=",
"expressions",
"boolean",
"operation",
"(",
"ops",
"map",
"is",
"empty",
",",
"mixin",
")",
";",
"}",
"return",
"empty",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"this",
"size",
"(",
")",
"}",
"expression"
] |
[
"if",
"(",
"size",
"=",
"=",
"null",
")",
"{",
"size",
"=",
"expressions",
"number",
"operation",
"(",
"integer",
"class",
",",
"ops",
"map",
"size",
",",
"mixin",
")",
";",
"}",
"return",
"size",
";"
] |
[
"invoked",
"when",
"the",
"user",
"wants",
"to",
"highlight",
"/",
"unhighlight",
"a",
"line"
] |
[
"if",
"(",
"node",
"get",
"raw",
"node",
"(",
")",
"instanceof",
"i",
"navi",
"code",
"node",
")",
"{",
"highlight",
"line",
"(",
"node",
",",
"(",
"i",
"navi",
"code",
"node",
")",
"node",
"get",
"raw",
"node",
"(",
")",
",",
"y",
")",
";",
"}"
] |
[
"this",
"method",
"returns",
"empty",
"when",
"the",
"table",
"has",
"not",
"been",
"created",
"yet",
"(",
"i",
"e",
"for",
"create",
"table",
"as",
"select",
"queries",
")"
] |
[
"return",
"table",
";"
] |
[
"/",
"*",
"converted",
"to",
"java",
"from",
"original",
"js"
] |
[
"if",
"(",
"condition",
"code",
"<",
"300",
")",
"{",
"return",
"7",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"<",
"400",
")",
"{",
"return",
"6",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"=",
"=",
"511",
")",
"{",
"return",
"8",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"<",
"600",
")",
"{",
"return",
"6",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"<",
"700",
")",
"{",
"return",
"8",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"<",
"800",
")",
"{",
"return",
"10",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"=",
"=",
"800",
")",
"{",
"return",
"1",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"=",
"=",
"801",
")",
"{",
"return",
"2",
";",
"}",
"else",
"if",
"(",
"condition",
"code",
"<",
"900",
")",
"{",
"return",
"5",
";",
"}",
"else",
"{",
"return",
"0",
";",
"}"
] |
[
"returns",
"true",
"if",
"field",
"metric",
"window",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"metric",
"window",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"metric",
"window",
":",
"return",
"is",
"set",
"metric",
"window",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"/",
"*",
"state",
"verification",
"methods"
] |
[
"verify",
"state",
"(",
"not",
"finished",
",",
"without",
"result",
",",
"null",
",",
"not",
"failed",
",",
"null",
")",
";",
"verify",
"no",
"more",
"interactions",
"and",
"reset",
"(",
")",
";"
] |
[
"/",
"*",
"event",
"testing",
"helpers"
] |
[
"m",
"data",
"source",
"subscribe",
"(",
"m",
"data",
"subscriber",
"2",
",",
"caller",
"thread",
"executor",
"get",
"instance",
"(",
")",
")",
";",
"switch",
"(",
"expected",
")",
"{",
"case",
"no",
"interactions",
":",
"break",
";",
"case",
"on",
"new",
"result",
":",
"verify",
"(",
"m",
"data",
"subscriber",
"2",
")",
"on",
"new",
"result",
"(",
"m",
"data",
"source",
")",
";",
"break",
";",
"case",
"on",
"failure",
":",
"verify",
"(",
"m",
"data",
"subscriber",
"2",
")",
"on",
"failure",
"(",
"m",
"data",
"source",
")",
";",
"break",
";",
"}",
"verify",
"no",
"more",
"interactions",
"and",
"reset",
"(",
")",
";"
] |
[
"specifies",
"the",
"parameters",
"to",
"the",
"query"
] |
[
"return",
"parameters",
"(",
"arrays",
"as",
"list",
"(",
"parameters",
")",
")",
";"
] |
[
"replaces",
"action",
"path",
"macros",
"in",
"the",
"path",
"if",
"one",
"of",
"the",
"provided",
"paths",
"is",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"it",
"will",
"not",
"be",
"replaced",
"-",
"so",
"to",
"emphasize",
"the",
"problem"
] |
[
"final",
"string",
"package",
"name",
"=",
"action",
"names",
"package",
"name",
"(",
")",
";",
"final",
"string",
"class",
"name",
"=",
"action",
"names",
"class",
"name",
"(",
")",
";",
"final",
"string",
"method",
"name",
"=",
"action",
"names",
"method",
"name",
"(",
")",
";",
"final",
"string",
"http",
"method",
"=",
"action",
"names",
"http",
"method",
"(",
")",
";",
"if",
"(",
"package",
"name",
"!",
"=",
"null",
")",
"{",
"path",
"=",
"string",
"util",
"replace",
"(",
"path",
",",
"package",
"macro",
",",
"package",
"name",
")",
";",
"}",
"if",
"(",
"class",
"name",
"!",
"=",
"null",
")",
"{",
"path",
"=",
"string",
"util",
"replace",
"(",
"path",
",",
"class",
"macro",
",",
"class",
"name",
")",
";",
"}",
"if",
"(",
"method",
"name",
"!",
"=",
"null",
")",
"{",
"path",
"=",
"string",
"util",
"replace",
"(",
"path",
",",
"method",
"macro",
",",
"method",
"name",
")",
";",
"}",
"if",
"(",
"http",
"method",
"!",
"=",
"null",
")",
"{",
"path",
"=",
"string",
"util",
"replace",
"(",
"path",
",",
"httpmethod",
"macro",
",",
"http",
"method",
")",
";",
"}",
"return",
"path",
";"
] |
[
"single",
"point",
"of",
"{"
] |
[
"path",
"=",
"replace",
"action",
"name",
"macros",
"(",
"path",
",",
"action",
"names",
")",
";",
"if",
"(",
"http",
"method",
"!",
"=",
"null",
")",
"{",
"http",
"method",
"=",
"replace",
"action",
"name",
"macros",
"(",
"http",
"method",
",",
"action",
"names",
")",
";",
"}",
"if",
"(",
"result",
"base",
"path",
"!",
"=",
"null",
")",
"{",
"result",
"base",
"path",
"=",
"replace",
"action",
"name",
"macros",
"(",
"result",
"base",
"path",
",",
"action",
"names",
")",
";",
"}",
"return",
"new",
"action",
"definition",
"(",
"path",
",",
"http",
"method",
",",
"result",
"base",
"path",
")",
";"
] |
[
"returns",
"{"
] |
[
"if",
"(",
"path",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"return",
"path",
"starts",
"with",
"(",
"string",
"pool",
"slash",
")",
";"
] |
[
"returns",
"the",
"first",
"data",
"type",
"that",
"is",
"not",
"{"
] |
[
"return",
"iterables",
"find",
"(",
"data",
"types",
",",
"input",
"-",
">",
"input",
"!",
"=",
"undefined",
",",
"undefined",
")",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"time",
"that",
"you",
"utilized",
"your",
"r",
"is",
"<",
"/",
"p",
">"
] |
[
"return",
"utilizations",
"by",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"time",
"that",
"you",
"utilized",
"your",
"r",
"is",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"utilizations",
"by",
"time",
"=",
"=",
"null",
")",
"{",
"this",
"utilizations",
"by",
"time",
"=",
"null",
";",
"return",
";",
"}",
"this",
"utilizations",
"by",
"time",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"utilization",
"by",
"time",
">",
"(",
"utilizations",
"by",
"time",
")",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"time",
"that",
"you",
"utilized",
"your",
"r",
"is",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"utilizations",
"by",
"time",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"utilizations",
"by",
"time",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"utilizations",
"by",
"time",
"=",
"=",
"null",
")",
"{",
"set",
"utilizations",
"by",
"time",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"utilization",
"by",
"time",
">",
"(",
"utilizations",
"by",
"time",
"length",
")",
")",
";",
"}",
"for",
"(",
"utilization",
"by",
"time",
"ele",
":",
"utilizations",
"by",
"time",
")",
"{",
"this",
"utilizations",
"by",
"time",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"amount",
"of",
"time",
"that",
"you",
"utilized",
"your",
"r",
"is",
"<",
"/",
"p",
">"
] |
[
"set",
"utilizations",
"by",
"time",
"(",
"utilizations",
"by",
"time",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"total",
"number",
"of",
"ri",
"hours",
"that",
"were",
"used",
"<",
"/",
"p",
">"
] |
[
"this",
"total",
"=",
"total",
";"
] |
[
"<",
"p",
">",
"the",
"total",
"number",
"of",
"ri",
"hours",
"that",
"were",
"used",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"total",
";"
] |
[
"<",
"p",
">",
"the",
"total",
"amount",
"of",
"time",
"that",
"you",
"utilized",
"your",
"r",
"is",
"<",
"/",
"p",
">"
] |
[
"set",
"total",
"(",
"total",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"token",
"for",
"the",
"next",
"set",
"of",
"retrievable",
"results",
"aws",
"provides",
"the",
"token",
"when",
"the",
"response",
"from",
"a",
"previous",
"call",
"has",
"more",
"results",
"than",
"the",
"maximum",
"page",
"size",
"<",
"/",
"p",
">"
] |
[
"set",
"next",
"page",
"token",
"(",
"next",
"page",
"token",
")",
";",
"return",
"this",
";"
] |
[
"tests",
"{"
] |
[
"map",
"<",
"integer",
",",
"vector",
">",
"data",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"data",
"put",
"(",
"1",
",",
"vector",
"utils",
"of",
"(",
"2",
",",
"4",
",",
"1",
")",
")",
";",
"data",
"put",
"(",
"2",
",",
"vector",
"utils",
"of",
"(",
"1",
",",
"8",
",",
"22",
")",
")",
";",
"data",
"put",
"(",
"3",
",",
"vector",
"utils",
"of",
"(",
"4",
",",
"10",
",",
"100",
")",
")",
";",
"data",
"put",
"(",
"4",
",",
"vector",
"utils",
"of",
"(",
"0",
",",
"22",
",",
"300",
")",
")",
";",
"dataset",
"builder",
"<",
"integer",
",",
"vector",
">",
"dataset",
"builder",
"=",
"new",
"local",
"dataset",
"builder",
"<",
">",
"(",
"data",
",",
"parts",
")",
";",
"min",
"max",
"scaler",
"trainer",
"<",
"integer",
",",
"vector",
">",
"standardization",
"trainer",
"=",
"new",
"min",
"max",
"scaler",
"trainer",
"<",
">",
"(",
")",
";",
"min",
"max",
"scaler",
"preprocessor",
"<",
"integer",
",",
"vector",
">",
"preprocessor",
"=",
"standardization",
"trainer",
"fit",
"(",
"dataset",
"builder",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"v",
")",
";",
"assert",
"array",
"equals",
"(",
"new",
"double",
"[",
"]",
"{",
"0",
",",
"4",
",",
"1",
"}",
",",
"preprocessor",
"get",
"min",
"(",
")",
",",
"1e",
"-",
"8",
")",
";",
"assert",
"array",
"equals",
"(",
"new",
"double",
"[",
"]",
"{",
"4",
",",
"22",
",",
"300",
"}",
",",
"preprocessor",
"get",
"max",
"(",
")",
",",
"1e",
"-",
"8",
")",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"task",
"the",
"task",
"runner",
"is",
"configured",
"to",
"accept",
"and",
"process",
"the",
"worker",
"group",
"is",
"set",
"as",
"a",
"field",
"on",
"objects",
"in",
"the",
"pipeline",
"when",
"they",
"are",
"created",
"you",
"can",
"only",
"specify",
"a",
"single",
"value",
"for",
"<",
"code",
">",
"worker",
"group",
"<",
"/",
"code",
">",
"there",
"are",
"no",
"wildcard",
"values",
"permitted",
"in",
"<",
"code",
">",
"worker",
"group",
"<",
"/",
"code",
">",
";",
"the",
"string",
"must",
"be",
"an",
"exact",
"case",
"-",
"sensitive",
"match",
"<",
"/",
"p",
">"
] |
[
"this",
"worker",
"group",
"=",
"worker",
"group",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"task",
"the",
"task",
"runner",
"is",
"configured",
"to",
"accept",
"and",
"process",
"the",
"worker",
"group",
"is",
"set",
"as",
"a",
"field",
"on",
"objects",
"in",
"the",
"pipeline",
"when",
"they",
"are",
"created",
"you",
"can",
"only",
"specify",
"a",
"single",
"value",
"for",
"<",
"code",
">",
"worker",
"group",
"<",
"/",
"code",
">",
"there",
"are",
"no",
"wildcard",
"values",
"permitted",
"in",
"<",
"code",
">",
"worker",
"group",
"<",
"/",
"code",
">",
";",
"the",
"string",
"must",
"be",
"an",
"exact",
"case",
"-",
"sensitive",
"match",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"worker",
"group",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"task",
"the",
"task",
"runner",
"is",
"configured",
"to",
"accept",
"and",
"process",
"the",
"worker",
"group",
"is",
"set",
"as",
"a",
"field",
"on",
"objects",
"in",
"the",
"pipeline",
"when",
"they",
"are",
"created",
"you",
"can",
"only",
"specify",
"a",
"single",
"value",
"for",
"<",
"code",
">",
"worker",
"group",
"<",
"/",
"code",
">",
"in",
"the",
"call",
"to",
"<",
"code",
">",
"poll",
"for",
"task",
"<",
"/",
"code",
">",
"there",
"are",
"no",
"wildcard",
"values",
"permitted",
"in",
"<",
"code",
">",
"worker",
"group",
"<",
"/",
"code",
">",
";",
"the",
"string",
"must",
"be",
"an",
"exact",
"case",
"-",
"sensitive",
"match",
"<",
"/",
"p",
">"
] |
[
"set",
"worker",
"group",
"(",
"worker",
"group",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"public",
"dns",
"name",
"of",
"the",
"calling",
"task",
"runner",
"<",
"/",
"p",
">"
] |
[
"set",
"hostname",
"(",
"hostname",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"identity",
"information",
"for",
"the",
"ec2",
"instance",
"that",
"is",
"hosting",
"the",
"task",
"runner",
"you",
"can",
"get",
"this",
"value",
"from",
"the",
"instance",
"using",
"<",
"code",
">",
"http",
":",
"/",
"/",
"169",
"254",
"169",
"254",
"/",
"latest",
"/",
"meta",
"-",
"data",
"/",
"instance",
"-",
"id",
"<",
"/",
"code",
">",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"awsec2",
"/",
"latest",
"/",
"user",
"guide",
"/",
"aesdg",
"-",
"chapter",
"-",
"instancedata",
"html",
">",
"instance",
"metadata",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"elastic",
"compute",
"cloud",
"user",
"guide",
"<",
"/",
"i",
">",
"passing",
"in",
"this",
"value",
"proves",
"that",
"your",
"task",
"runner",
"is",
"running",
"on",
"an",
"ec2",
"instance",
"and",
"ensures",
"the",
"proper",
"aws",
"data",
"pipeline",
"service",
"charges",
"are",
"applied",
"to",
"your",
"pipeline",
"<",
"/",
"p",
">"
] |
[
"set",
"instance",
"identity",
"(",
"instance",
"identity",
")",
";",
"return",
"this",
";"
] |
[
"tag",
":",
":",
"test",
"-",
"user",
"-",
"config",
"[",
"]"
] |
[
"this",
"context",
"runner",
"with",
"user",
"configuration",
"(",
"user",
"configuration",
"class",
")",
"run",
"(",
"(",
"context",
")",
"-",
">",
"{",
"assert",
"that",
"(",
"context",
")",
"has",
"single",
"bean",
"(",
"user",
"service",
"class",
")",
";",
"assert",
"that",
"(",
"context",
"get",
"bean",
"(",
"user",
"service",
"class",
")",
")",
"is",
"same",
"as",
"(",
"context",
"get",
"bean",
"(",
"user",
"configuration",
"class",
")",
"my",
"user",
"service",
"(",
")",
")",
";",
"}",
")",
";"
] |
[
"returns",
"a",
"{",
"@",
"link",
"state",
"request",
"handler",
"}",
"which",
"delegates",
"to",
"the",
"supplied",
"handler",
"depending",
"on",
"the",
"{",
"@",
"link",
"state",
"request",
"}",
"s",
"{",
"@",
"link",
"state",
"key",
"type",
"case",
"type",
"}"
] |
[
"return",
"new",
"state",
"key",
"type",
"delegating",
"state",
"request",
"handler",
"(",
"handlers",
")",
";"
] |
[
"returns",
"an",
"adapter",
"which",
"converts",
"a",
"{",
"@",
"link",
"side",
"input",
"handler",
"factory",
"}",
"to",
"a",
"{",
"@",
"link",
"state",
"request",
"handler",
"}"
] |
[
"return",
"new",
"state",
"request",
"handler",
"to",
"side",
"input",
"handler",
"factory",
"adapter",
"(",
"side",
"input",
"specs",
",",
"side",
"input",
"handler",
"factory",
")",
";"
] |
[
"returns",
"an",
"adapter",
"which",
"converts",
"a",
"{",
"@",
"link",
"bag",
"user",
"state",
"handler",
"factory",
"}",
"to",
"a",
"{",
"@",
"link",
"state",
"request",
"handler",
"}"
] |
[
"return",
"new",
"byte",
"string",
"state",
"request",
"handler",
"to",
"bag",
"user",
"state",
"handler",
"factory",
"adapter",
"(",
"process",
"bundle",
"descriptor",
",",
"bag",
"user",
"state",
"handler",
"factory",
")",
";"
] |
[
"checks",
"that",
"an",
"object",
"is",
"not",
"null"
] |
[
"check",
"(",
"object",
"!",
"=",
"null",
",",
"error",
"msg",
")",
";"
] |
[
"checks",
"that",
"a",
"string",
"is",
"not",
"null",
"or",
"empty"
] |
[
"check",
"(",
"has",
"text",
"(",
"string",
")",
",",
"error",
"msg",
")",
";"
] |
[
"run",
"initial",
"connection",
"attempt",
"to",
"plex",
"in",
"this",
"separate",
"thread"
] |
[
"connect",
"(",
")",
";"
] |
[
"attempts",
"to",
"create",
"a",
"web",
"socket",
"connection",
"to",
"the",
"plex",
"server",
"and",
"begins",
"listening",
"for",
"updates"
] |
[
"close",
"(",
")",
";",
"web",
"socket",
"=",
"client",
"prepare",
"get",
"(",
"add",
"default",
"query",
"parameters",
"(",
"ws",
"uri",
")",
")",
"execute",
"(",
"handler",
")",
"get",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.