docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"a",
"unique",
"identifier",
"for",
"a",
"<",
"code",
">",
"size",
"constraint",
"set",
"<",
"/",
"code",
">",
"you",
"use",
"<",
"code",
">",
"size",
"constraint",
"set",
"id",
"<",
"/",
"code",
">",
"to",
"get",
"information",
"about",
"a",
"<",
"code",
">",
"size",
"constraint",
"set",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"get",
"size",
"constraint",
"set",
"<",
"/",
"a",
">",
")",
"update",
"a",
"<",
"code",
">",
"size",
"constraint",
"set",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"update",
"size",
"constraint",
"set",
"<",
"/",
"a",
">",
")",
"insert",
"a",
"<",
"code",
">",
"size",
"constraint",
"set",
"<",
"/",
"code",
">",
"into",
"a",
"<",
"code",
">",
"rule",
"<",
"/",
"code",
">",
"or",
"delete",
"one",
"from",
"a",
"<",
"code",
">",
"rule",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"update",
"rule",
"<",
"/",
"a",
">",
")",
"and",
"delete",
"a",
"<",
"code",
">",
"size",
"constraint",
"set",
"<",
"/",
"code",
">",
"from",
"aws",
"waf",
"(",
"see",
"<",
"a",
">",
"delete",
"size",
"constraint",
"set",
"<",
"/",
"a",
">",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"code",
">",
"size",
"constraint",
"set",
"id",
"<",
"/",
"code",
">",
"is",
"returned",
"by",
"<",
"a",
">",
"create",
"size",
"constraint",
"set",
"<",
"/",
"a",
">",
"and",
"by",
"<",
"a",
">",
"list",
"size",
"constraint",
"sets",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"set",
"size",
"constraint",
"set",
"id",
"(",
"size",
"constraint",
"set",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"<",
"code",
">",
"size",
"constraint",
"set",
"<",
"/",
"code",
">",
"if",
"any",
"<",
"/",
"p",
">"
] |
[
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"{"
] |
[
"return",
"dataset",
"compute",
"with",
"ctx",
"(",
"(",
"ctx",
",",
"data",
")",
"-",
">",
"{",
"ctx",
"set",
"u",
"(",
"arrays",
"copy",
"of",
"(",
"data",
"get",
"labels",
"(",
")",
",",
"data",
"get",
"labels",
"(",
")",
"length",
")",
")",
";",
"return",
"blas",
"get",
"instance",
"(",
")",
"dnrm",
"2",
"(",
"data",
"get",
"labels",
"(",
")",
"length",
",",
"data",
"get",
"labels",
"(",
")",
",",
"1",
")",
";",
"}",
",",
"(",
"a",
",",
"b",
")",
"-",
">",
"a",
"=",
"=",
"null",
"?",
"b",
":",
"b",
"=",
"=",
"null",
"?",
"a",
":",
"math",
"sqrt",
"(",
"a",
"*",
"a",
"+",
"b",
"*",
"b",
")",
")",
";"
] |
[
"returns",
"number",
"of",
"columns",
"in",
"dataset"
] |
[
"return",
"dataset",
"compute",
"(",
"data",
"-",
">",
"data",
"get",
"features",
"(",
")",
"=",
"=",
"null",
"?",
"null",
":",
"data",
"get",
"features",
"(",
")",
"length",
"/",
"data",
"get",
"rows",
"(",
")",
",",
"(",
"a",
",",
"b",
")",
"-",
">",
"{",
"if",
"(",
"a",
"=",
"=",
"null",
")",
"return",
"b",
"=",
"=",
"null",
"?",
"0",
":",
"b",
";",
"if",
"(",
"b",
"=",
"=",
"null",
")",
"return",
"a",
";",
"return",
"b",
";",
"}",
")",
";"
] |
[
"{"
] |
[
"dataset",
"close",
"(",
")",
";"
] |
[
"execute",
"the",
"logout",
"action",
"after",
"invalidating",
"the",
"cache"
] |
[
"protected",
"abstract",
"event",
"do",
"internal",
"execute",
"(",
"http",
"servlet",
"request",
"request",
",",
"http",
"servlet",
"response",
"response",
",",
"request",
"context",
"context",
")",
";"
] |
[
"get",
"message",
"prefix",
"to",
"identify",
"the",
"concrete",
"aggregator"
] |
[
"protected",
"abstract",
"string",
"get",
"prefix",
"(",
")",
";"
] |
[
"comparison",
"using",
"default",
"delta"
] |
[
"return",
"match",
"(",
"input",
",",
"path",
"and",
"expected",
",",
"default",
"delta",
")",
";"
] |
[
"comparison",
"using",
"default",
"delta"
] |
[
"return",
"match",
"(",
"path",
",",
"input",
",",
"expected",
",",
"default",
"delta",
")",
";"
] |
[
"comparison",
"using",
"default",
"delta"
] |
[
"return",
"match",
"obj",
"(",
"path",
",",
"input",
",",
"expected",
",",
"default",
"delta",
")",
";"
] |
[
"<",
"p",
">",
"the",
"total",
"contributions",
"made",
"to",
"this",
"attack",
"by",
"all",
"contributors",
"not",
"just",
"the",
"five",
"listed",
"in",
"the",
"<",
"code",
">",
"top",
"contributors",
"<",
"/",
"code",
">",
"list",
"<",
"/",
"p",
">"
] |
[
"this",
"total",
"=",
"total",
";"
] |
[
"return",
"the",
"current",
"time",
"in",
"the",
"internal",
"time",
"unit",
"call",
"it",
"before",
"an",
"event",
"happens",
"and",
"give",
"it",
"back",
"to",
"the",
"{"
] |
[
"return",
"system",
"clock",
"elapsed",
"realtime",
"nanos",
"(",
")",
"/",
"1000",
";"
] |
[
"sets",
"the",
"compilation",
"s",
"annotation",
"processors"
] |
[
"class",
"loader",
"processor",
"loader",
"=",
"file",
"manager",
"get",
"class",
"loader",
"(",
"standard",
"location",
"annotation",
"processor",
"path",
")",
";",
"immutable",
"list",
"builder",
"<",
"processor",
">",
"processors",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"for",
"(",
"string",
"processor",
":",
"options",
"parser",
"get",
"processor",
"names",
"(",
")",
")",
"{",
"try",
"{",
"processors",
"add",
"(",
"(",
"processor",
")",
"processor",
"loader",
"load",
"class",
"(",
"processor",
")",
"get",
"constructor",
"(",
")",
"new",
"instance",
"(",
")",
")",
";",
"}",
"catch",
"(",
"reflective",
"operation",
"exception",
"e",
")",
"{",
"throw",
"new",
"linkage",
"error",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"}",
"}",
"task",
"set",
"processors",
"(",
"processors",
"build",
"(",
")",
")",
";"
] |
[
"writes",
"a",
"jar",
"containing",
"any",
"sources",
"generated",
"by",
"annotation",
"processors"
] |
[
"if",
"(",
"options",
"parser",
"get",
"generated",
"sources",
"output",
"jar",
"(",
")",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"jar",
"creator",
"jar",
"=",
"new",
"jar",
"creator",
"(",
"options",
"parser",
"get",
"generated",
"sources",
"output",
"jar",
"(",
")",
")",
";",
"jar",
"set",
"normalize",
"(",
"true",
")",
";",
"jar",
"set",
"compression",
"(",
"options",
"parser",
"compress",
"jar",
"(",
")",
")",
";",
"jar",
"add",
"directory",
"(",
"options",
"parser",
"get",
"source",
"gen",
"dir",
"(",
")",
")",
";",
"jar",
"execute",
"(",
")",
";"
] |
[
"writes",
"the",
"class",
"output",
"jar",
"including",
"any",
"resource",
"entries"
] |
[
"jar",
"creator",
"jar",
"=",
"new",
"jar",
"creator",
"(",
"options",
"parser",
"get",
"output",
"jar",
"(",
")",
")",
";",
"jar",
"set",
"normalize",
"(",
"true",
")",
";",
"jar",
"set",
"compression",
"(",
"options",
"parser",
"compress",
"jar",
"(",
")",
")",
";",
"jar",
"add",
"directory",
"(",
"options",
"parser",
"get",
"class",
"dir",
"(",
")",
")",
";",
"jar",
"execute",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"thread",
"name",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"thread",
"name",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"thread",
"id",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"threadid",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"blocked",
"time",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"blockedtime",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"blocked",
"count",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"blockedcount",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"waited",
"time",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"waitedtime",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"waited",
"count",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"waitedcount",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"lock",
"name",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"lock",
"name",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"lock",
"owner",
"id",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"lockownerid",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"lock",
"owner",
"name",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"lock",
"owner",
"name",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"in",
"native",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"innative",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"suspended",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"org",
"apache",
"thrift",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"suspended",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"thread",
"state",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"thread",
"state",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"stack",
"trace",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"stack",
"trace",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"locked",
"monitors",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"locked",
"monitors",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"locked",
"synchronizers",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] |
[
"return",
"this",
"locked",
"synchronizers",
"!",
"=",
"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",
"java",
"lang",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"thread",
"name",
":",
"return",
"is",
"set",
"thread",
"name",
"(",
")",
";",
"case",
"thread",
"id",
":",
"return",
"is",
"set",
"thread",
"id",
"(",
")",
";",
"case",
"blocked",
"time",
":",
"return",
"is",
"set",
"blocked",
"time",
"(",
")",
";",
"case",
"blocked",
"count",
":",
"return",
"is",
"set",
"blocked",
"count",
"(",
")",
";",
"case",
"waited",
"time",
":",
"return",
"is",
"set",
"waited",
"time",
"(",
")",
";",
"case",
"waited",
"count",
":",
"return",
"is",
"set",
"waited",
"count",
"(",
")",
";",
"case",
"lock",
"name",
":",
"return",
"is",
"set",
"lock",
"name",
"(",
")",
";",
"case",
"lock",
"owner",
"id",
":",
"return",
"is",
"set",
"lock",
"owner",
"id",
"(",
")",
";",
"case",
"lock",
"owner",
"name",
":",
"return",
"is",
"set",
"lock",
"owner",
"name",
"(",
")",
";",
"case",
"in",
"native",
":",
"return",
"is",
"set",
"in",
"native",
"(",
")",
";",
"case",
"suspended",
":",
"return",
"is",
"set",
"suspended",
"(",
")",
";",
"case",
"thread",
"state",
":",
"return",
"is",
"set",
"thread",
"state",
"(",
")",
";",
"case",
"stack",
"trace",
":",
"return",
"is",
"set",
"stack",
"trace",
"(",
")",
";",
"case",
"locked",
"monitors",
":",
"return",
"is",
"set",
"locked",
"monitors",
"(",
")",
";",
"case",
"locked",
"synchronizers",
":",
"return",
"is",
"set",
"locked",
"synchronizers",
"(",
")",
";",
"}",
"throw",
"new",
"java",
"lang",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"this",
"implements",
"only",
"the",
"most",
"basic",
"checking",
"for",
"an",
"email",
"address",
"s",
"validity",
"-",
"-",
"that",
"it",
"contains",
"an"
] |
[
"return",
"email",
"!",
"=",
"null",
"&",
"&",
"atext",
"alphanumeric",
"matcher",
"(",
"email",
")",
"matches",
"(",
")",
"&",
"&",
"email",
"index",
"of",
"(",
"'",
"@",
"'",
")",
">",
"=",
"0",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"that",
"contains",
"a",
"list",
"of",
"errors",
"along",
"with",
"information",
"to",
"help",
"you",
"identify",
"the",
"self",
"-",
"service",
"action",
"<",
"/",
"p",
">"
] |
[
"return",
"failed",
"service",
"action",
"associations",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"that",
"contains",
"a",
"list",
"of",
"errors",
"along",
"with",
"information",
"to",
"help",
"you",
"identify",
"the",
"self",
"-",
"service",
"action",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"failed",
"service",
"action",
"associations",
"=",
"=",
"null",
")",
"{",
"this",
"failed",
"service",
"action",
"associations",
"=",
"null",
";",
"return",
";",
"}",
"this",
"failed",
"service",
"action",
"associations",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"failed",
"service",
"action",
"association",
">",
"(",
"failed",
"service",
"action",
"associations",
")",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"that",
"contains",
"a",
"list",
"of",
"errors",
"along",
"with",
"information",
"to",
"help",
"you",
"identify",
"the",
"self",
"-",
"service",
"action",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"failed",
"service",
"action",
"associations",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"failed",
"service",
"action",
"associations",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"failed",
"service",
"action",
"associations",
"=",
"=",
"null",
")",
"{",
"set",
"failed",
"service",
"action",
"associations",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"failed",
"service",
"action",
"association",
">",
"(",
"failed",
"service",
"action",
"associations",
"length",
")",
")",
";",
"}",
"for",
"(",
"failed",
"service",
"action",
"association",
"ele",
":",
"failed",
"service",
"action",
"associations",
")",
"{",
"this",
"failed",
"service",
"action",
"associations",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"that",
"contains",
"a",
"list",
"of",
"errors",
"along",
"with",
"information",
"to",
"help",
"you",
"identify",
"the",
"self",
"-",
"service",
"action",
"<",
"/",
"p",
">"
] |
[
"set",
"failed",
"service",
"action",
"associations",
"(",
"failed",
"service",
"action",
"associations",
")",
";",
"return",
"this",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] |
[
"return",
"file",
"to",
"string",
"(",
")",
";"
] |
[
"[",
"databind",
"#",
"1385",
"]"
] |
[
"final",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"]",
"{",
"1",
",",
"2",
",",
"3",
",",
"4",
",",
"5",
"}",
";",
"object",
"mapper",
"mapper",
"=",
"json",
"mapper",
"builder",
"(",
")",
"enable",
"default",
"typing",
"(",
")",
"build",
"(",
")",
";",
"string",
"json",
"=",
"mapper",
"write",
"value",
"as",
"string",
"(",
"new",
"bean",
"1",
"3",
"8",
"5",
"wrapper",
"(",
"new",
"bean",
"1",
"3",
"8",
"5",
"(",
"bytes",
")",
")",
")",
";",
"bean",
"1",
"3",
"8",
"5",
"wrapper",
"result",
"=",
"mapper",
"read",
"value",
"(",
"json",
",",
"bean",
"1",
"3",
"8",
"5",
"wrapper",
"class",
")",
";",
"assert",
"not",
"null",
"(",
"result",
")",
";",
"assert",
"not",
"null",
"(",
"result",
"value",
")",
";",
"assert",
"equals",
"(",
"bean",
"1",
"3",
"8",
"5",
"class",
",",
"result",
"value",
"get",
"class",
"(",
")",
")",
";",
"bean",
"1",
"3",
"8",
"5",
"b",
"=",
"(",
"bean",
"1",
"3",
"8",
"5",
")",
"result",
"value",
";",
"assert",
"assert",
"array",
"equals",
"(",
"bytes",
",",
"b",
"raw",
")",
";"
] |
[
"sets",
"the",
"configuration",
"options",
"for",
"server",
"-",
"side",
"client",
"-",
"authentication",
"requirements",
"the",
"value",
"must",
"be",
"one",
"of",
"none",
"want",
"require",
"as",
"defined",
"in",
"{",
"@",
"link",
"client",
"authentication",
"}"
] |
[
"this",
"client",
"authentication",
"=",
"value",
";"
] |
[
"this",
"class",
"has",
"no",
"bearing",
"on",
"{"
] |
[
"return",
"collections",
"empty",
"list",
"(",
")",
";"
] |
[
"migration",
"related",
"methods"
] |
[
"if",
"(",
"event",
"get",
"replica",
"index",
"(",
")",
">",
"1",
")",
"{",
"return",
"null",
";",
"}",
"list",
"<",
"x",
"a",
"transaction",
"d",
"t",
"o",
">",
"migration",
"data",
"=",
"new",
"array",
"list",
"<",
"x",
"a",
"transaction",
"d",
"t",
"o",
">",
"(",
")",
";",
"internal",
"partition",
"service",
"partition",
"service",
"=",
"node",
"engine",
"get",
"partition",
"service",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"serializable",
"x",
"i",
"d",
",",
"list",
"<",
"x",
"a",
"transaction",
">",
">",
"entry",
":",
"transactions",
"entry",
"set",
"(",
")",
")",
"{",
"serializable",
"x",
"i",
"d",
"xid",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"int",
"partition",
"id",
"=",
"partition",
"service",
"get",
"partition",
"id",
"(",
"xid",
")",
";",
"list",
"<",
"x",
"a",
"transaction",
">",
"xa",
"transaction",
"list",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"for",
"(",
"x",
"a",
"transaction",
"xa",
"transaction",
":",
"xa",
"transaction",
"list",
")",
"{",
"if",
"(",
"partition",
"id",
"=",
"=",
"event",
"get",
"partition",
"id",
"(",
")",
")",
"{",
"migration",
"data",
"add",
"(",
"new",
"x",
"a",
"transaction",
"d",
"t",
"o",
"(",
"xa",
"transaction",
")",
")",
";",
"}",
"}",
"}",
"if",
"(",
"migration",
"data",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"return",
"new",
"xa",
"replication",
"operation",
"(",
"migration",
"data",
",",
"event",
"get",
"partition",
"id",
"(",
")",
",",
"event",
"get",
"replica",
"index",
"(",
")",
")",
";",
"}"
] |
[
"runs",
"header",
"validation",
"and",
"returns",
"its",
"result"
] |
[
"abstract",
"public",
"boolean",
"validate",
"(",
"block",
"header",
"header",
",",
"block",
"header",
"dependency",
")",
";"
] |
[
"-",
"-",
"loader",
"overrides",
"-",
"-"
] |
[
"return",
"has",
"subselect",
"loadable",
"collections",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"new",
"future",
"wrapper",
"<",
">",
"(",
"pool",
"submit",
"(",
"task",
":",
":",
"get",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"f",
"cancel",
"(",
"may",
"interrupt",
"if",
"running",
")",
";"
] |
[
"{"
] |
[
"return",
"f",
"is",
"cancelled",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"f",
"is",
"done",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"f",
"get",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"f",
"get",
"(",
"timeout",
",",
"unit",
")",
";"
] |
[
"gets",
"the",
"user",
"i",
"ds",
"or",
"user",
"names",
"the",
"request",
"will",
"be",
"sent",
"to"
] |
[
"return",
"recipients",
";"
] |
[
"<",
"p",
">",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"name",
"i",
"d",
"<",
"/",
"code",
">",
"element",
"in",
"the",
"<",
"code",
">",
"subject",
"<",
"/",
"code",
">",
"element",
"of",
"the",
"saml",
"assertion",
"<",
"/",
"p",
">"
] |
[
"this",
"subject",
"=",
"subject",
";"
] |
[
"the",
"sms",
"text",
"body"
] |
[
"this",
"body",
"=",
"body",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] |
[
"return",
"this",
"m",
"global",
"tile",
"i",
"d",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] |
[
"return",
"this",
"m",
"tile",
"column",
";"
] |
[
"note",
"this",
"will",
"also",
"set",
"the",
"{"
] |
[
"this",
"m",
"global",
"tile",
"i",
"d",
"=",
"p",
"global",
"tile",
"i",
"d",
";",
"this",
"m",
"texture",
"region",
"=",
"p",
"t",
"m",
"x",
"tiled",
"map",
"get",
"texture",
"region",
"from",
"global",
"tile",
"i",
"d",
"(",
"p",
"global",
"tile",
"i",
"d",
")",
";"
] |
[
"you",
"d",
"probably",
"want",
"to",
"call",
"{"
] |
[
"this",
"m",
"texture",
"region",
"=",
"p",
"texture",
"region",
";"
] |
[
"kibana",
"special",
"only"
] |
[
"set",
"<",
"string",
">",
"ret",
"val",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"sg",
"role",
"sgr",
":",
"roles",
")",
"{",
"ret",
"val",
"add",
"all",
"(",
"sgr",
"get",
"all",
"resolved",
"permitted",
"indices",
"(",
"resolved",
"all",
",",
"user",
",",
"actions",
",",
"resolver",
",",
"cs",
")",
")",
";",
"}",
"return",
"collections",
"unmodifiable",
"set",
"(",
"ret",
"val",
")",
";"
] |
[
"return",
"true",
"on",
"success"
] |
[
"for",
"(",
"sg",
"role",
"sgr",
":",
"roles",
")",
"{",
"if",
"(",
"config",
"model",
"implies",
"type",
"perm",
"(",
"sgr",
"get",
"ipatterns",
"(",
")",
",",
"resolved",
",",
"user",
",",
"actions",
",",
"resolver",
",",
"cs",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"rolespan"
] |
[
"set",
"<",
"index",
"pattern",
">",
"ipatterns",
"=",
"new",
"hash",
"set",
"<",
"config",
"model",
"index",
"pattern",
">",
"(",
")",
";",
"roles",
"stream",
"(",
")",
"for",
"each",
"(",
"p",
"-",
">",
"ipatterns",
"add",
"all",
"(",
"p",
"get",
"ipatterns",
"(",
")",
")",
")",
";",
"return",
"config",
"model",
"implies",
"type",
"perm",
"(",
"ipatterns",
",",
"resolved",
",",
"user",
",",
"actions",
",",
"resolver",
",",
"cs",
")",
";"
] |
[
"constructs",
"a",
"label",
"to",
"show",
"in",
"the",
"editor",
"this",
"can",
"be",
"for",
"example",
"description",
"of",
"a",
"server",
"credit",
"card",
"and",
"its",
"icon",
"layout",
":"
] |
[
"assert",
"top",
"label",
"!",
"=",
"null",
";",
"assert",
"mid",
"label",
"!",
"=",
"null",
";",
"assert",
"bottom",
"label",
"!",
"=",
"null",
";",
"editor",
"field",
"model",
"result",
"=",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
"label",
")",
";",
"result",
"m",
"label",
"=",
"top",
"label",
";",
"result",
"m",
"mid",
"label",
"=",
"mid",
"label",
";",
"result",
"m",
"bottom",
"label",
"=",
"bottom",
"label",
";",
"result",
"m",
"label",
"icon",
"resource",
"id",
"=",
"icon",
"id",
";",
"return",
"result",
";"
] |
[
"constructs",
"a",
"checkbox",
"to",
"show",
"in",
"the",
"editor",
"it",
"s",
"checked",
"by",
"default"
] |
[
"assert",
"checkbox",
"label",
"!",
"=",
"null",
";",
"assert",
"checkbox",
"preference",
"!",
"=",
"null",
";",
"editor",
"field",
"model",
"result",
"=",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
"checkbox",
")",
";",
"result",
"m",
"label",
"=",
"checkbox",
"label",
";",
"result",
"m",
"value",
"=",
"checkbox",
"preference",
";",
"return",
"result",
";"
] |
[
"constructs",
"a",
"list",
"of",
"icons",
"to",
"show",
"in",
"the",
"editor",
"this",
"can",
"be",
"for",
"example",
"the",
"list",
"of",
"accepted",
"credit",
"cards"
] |
[
"assert",
"label",
"!",
"=",
"null",
";",
"assert",
"icon",
"ids",
"!",
"=",
"null",
";",
"assert",
"desc",
"ids",
"!",
"=",
"null",
";",
"editor",
"field",
"model",
"result",
"=",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
"icons",
")",
";",
"result",
"m",
"label",
"=",
"label",
";",
"result",
"m",
"icon",
"resource",
"ids",
"=",
"icon",
"ids",
";",
"result",
"m",
"icon",
"descriptions",
"for",
"accessibility",
"=",
"desc",
"ids",
";",
"return",
"result",
";"
] |
[
"constructs",
"a",
"dropdown",
"field",
"model"
] |
[
"assert",
"dropdown",
"key",
"values",
"!",
"=",
"null",
";",
"editor",
"field",
"model",
"result",
"=",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
"dropdown",
")",
";",
"result",
"m",
"label",
"=",
"label",
";",
"result",
"m",
"dropdown",
"key",
"values",
"=",
"dropdown",
"key",
"values",
";",
"result",
"m",
"hint",
"=",
"hint",
";",
"result",
"m",
"dropdown",
"keys",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"result",
"m",
"dropdown",
"key",
"values",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"result",
"m",
"dropdown",
"keys",
"add",
"(",
"result",
"m",
"dropdown",
"key",
"values",
"get",
"(",
"i",
")",
"get",
"key",
"(",
")",
")",
";",
"}",
"return",
"result",
";"
] |
[
"constructs",
"a",
"text",
"input",
"field",
"model",
"without",
"any",
"special",
"text",
"formatting",
"hints"
] |
[
"return",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
"none",
")",
";"
] |
[
"constructs",
"a",
"text",
"input",
"field",
"model"
] |
[
"editor",
"field",
"model",
"result",
"=",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
")",
";",
"assert",
"result",
"is",
"text",
"field",
"(",
")",
";",
"return",
"result",
";"
] |
[
"constructs",
"a",
"text",
"input",
"field",
"model"
] |
[
"assert",
"label",
"!",
"=",
"null",
";",
"editor",
"field",
"model",
"result",
"=",
"new",
"editor",
"field",
"model",
"(",
"input",
"type",
"hint",
")",
";",
"assert",
"result",
"is",
"text",
"field",
"(",
")",
";",
"result",
"m",
"suggestions",
"=",
"suggestions",
"=",
"=",
"null",
"?",
"null",
":",
"new",
"array",
"list",
"<",
"char",
"sequence",
">",
"(",
"suggestions",
")",
";",
"result",
"m",
"validator",
"=",
"validator",
";",
"result",
"m",
"value",
"icon",
"generator",
"=",
"value",
"icon",
"generator",
";",
"result",
"m",
"invalid",
"error",
"message",
"=",
"invalid",
"error",
"message",
";",
"result",
"m",
"required",
"error",
"message",
"=",
"required",
"error",
"message",
";",
"result",
"m",
"label",
"=",
"label",
";",
"result",
"m",
"value",
"=",
"value",
";",
"return",
"result",
";"
] |
[
"adds",
"an",
"icon",
"to",
"a",
"text",
"input",
"field",
"the",
"icon",
"can",
"be",
"tapped",
"to",
"perform",
"an",
"action",
"e",
"g",
"launch",
"a",
"credit",
"card",
"scanner"
] |
[
"assert",
"is",
"text",
"field",
"(",
")",
";",
"m",
"action",
"icon",
"resource",
"id",
"=",
"icon",
";",
"m",
"action",
"icon",
"description",
"for",
"accessibility",
"=",
"description",
";",
"m",
"action",
"icon",
"action",
"=",
"action",
";"
] |
[
"sets",
"the",
"checkbox",
"state"
] |
[
"assert",
"m",
"input",
"type",
"hint",
"=",
"=",
"input",
"type",
"hint",
"checkbox",
";",
"context",
"utils",
"get",
"app",
"shared",
"preferences",
"(",
")",
"edit",
"(",
")",
"put",
"boolean",
"(",
"m",
"value",
"to",
"string",
"(",
")",
",",
"is",
"checked",
")",
"apply",
"(",
")",
";"
] |
[
"updates",
"the",
"dropdown",
"key",
"values"
] |
[
"assert",
"m",
"input",
"type",
"hint",
"=",
"=",
"input",
"type",
"hint",
"dropdown",
";",
"m",
"dropdown",
"key",
"values",
"=",
"dropdown",
"key",
"values",
";"
] |
[
"a",
"short",
"label",
"describing",
"a",
"{",
"@",
"code",
"phone",
"account",
"}"
] |
[
"return",
"m",
"label",
";"
] |
[
"updates",
"the",
"label"
] |
[
"m",
"label",
"=",
"label",
";"
] |
[
"updates",
"the",
"value",
"of",
"this",
"field",
"does",
"not",
"trigger",
"validation",
"or",
"update",
"the",
"last",
"error",
"message",
"can",
"be",
"called",
"on",
"a",
"dropdown",
"to",
"initialize",
"it",
"but",
"will",
"not",
"fire",
"the",
"dropdown",
"callback"
] |
[
"m",
"value",
"=",
"user",
"typed",
"value",
"or",
"initial",
"dropdown",
"key",
";"
] |
[
"updates",
"the",
"dropdown",
"selection",
"and",
"fires",
"the",
"dropdown",
"callback"
] |
[
"assert",
"m",
"input",
"type",
"hint",
"=",
"=",
"input",
"type",
"hint",
"dropdown",
";",
"m",
"value",
"=",
"key",
";",
"if",
"(",
"m",
"dropdown",
"callback",
"!",
"=",
"null",
")",
"{",
"m",
"dropdown",
"callback",
"on",
"result",
"(",
"new",
"pair",
"<",
"string",
",",
"runnable",
">",
"(",
"key",
",",
"callback",
")",
")",
";",
"}"
] |
[
"updates",
"the",
"required",
"error",
"message"
] |
[
"m",
"required",
"error",
"message",
"=",
"message",
";"
] |
[
"returns",
"true",
"if",
"the",
"field",
"value",
"is",
"valid",
"also",
"updates",
"the",
"error",
"message"
] |
[
"if",
"(",
"is",
"required",
"(",
")",
"&",
"&",
"(",
"text",
"utils",
"is",
"empty",
"(",
"m",
"value",
")",
"|",
"|",
"text",
"utils",
"get",
"trimmed",
"length",
"(",
"m",
"value",
")",
"=",
"=",
"0",
")",
")",
"{",
"m",
"error",
"message",
"=",
"m",
"required",
"error",
"message",
";",
"return",
"false",
";",
"}",
"if",
"(",
"m",
"validator",
"!",
"=",
"null",
"&",
"&",
"!",
"m",
"validator",
"is",
"valid",
"(",
"m",
"value",
")",
")",
"{",
"m",
"error",
"message",
"=",
"m",
"invalid",
"error",
"message",
";",
"return",
"false",
";",
"}",
"m",
"error",
"message",
"=",
"null",
";",
"return",
"true",
";"
] |
[
"sets",
"the",
"dropdown",
"callback"
] |
[
"assert",
"m",
"input",
"type",
"hint",
"=",
"=",
"input",
"type",
"hint",
"dropdown",
";",
"m",
"dropdown",
"callback",
"=",
"callback",
";"
] |
[
"sets",
"whether",
"this",
"input",
"field",
"should",
"take",
"up",
"the",
"full",
"line",
"all",
"fields",
"take",
"up",
"the",
"full",
"line",
"by",
"default"
] |
[
"m",
"is",
"full",
"line",
"=",
"is",
"full",
"line",
";"
] |
[
"compute",
"the",
"score"
] |
[
"public",
"abstract",
"double",
"execute",
"(",
"double",
"weight",
",",
"scripted",
"similarity",
"query",
"query",
",",
"scripted",
"similarity",
"field",
"field",
",",
"scripted",
"similarity",
"term",
"term",
",",
"scripted",
"similarity",
"doc",
"doc",
")",
";"
] |
[
"{"
] |
[
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"cfg",
"set",
"class",
"loader",
"(",
"new",
"users",
"class",
"loader",
"(",
")",
")",
";",
"return",
"cfg",
";"
] |
[
"{"
] |
[
"cache",
"configuration",
"cache",
"configuration",
"=",
"super",
"cache",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"cache",
"configuration",
"set",
"backups",
"(",
"1",
")",
";",
"return",
"cache",
"configuration",
";"
] |
[
"{"
] |
[
"return",
"2",
";"
] |
[
"returns",
"the",
"number",
"of",
"vertex",
"points"
] |
[
"return",
"lats",
"length",
";"
] |
[
"returns",
"latitude",
"value",
"at",
"given",
"index"
] |
[
"return",
"lats",
"[",
"vertex",
"]",
";"
] |
[
"returns",
"longitude",
"value",
"at",
"given",
"index"
] |
[
"return",
"lons",
"[",
"vertex",
"]",
";"
] |
[
"default",
"frequency"
] |
[
"return",
"60",
";"
] |
[
"handles",
"the",
"http",
"<",
"code",
">",
"get",
"<",
"/",
"code",
">",
"method"
] |
[
"process",
"request",
"(",
"request",
",",
"response",
")",
";"
] |
[
"handles",
"the",
"http",
"<",
"code",
">",
"post",
"<",
"/",
"code",
">",
"method"
] |
[
"process",
"request",
"(",
"request",
",",
"response",
")",
";"
] |
[
"just",
"need",
"to",
"sort",
"by",
"name",
"ok",
"to",
"collide",
"(",
"unless",
"used",
"in",
"tree",
"map",
"/",
"set",
"!",
")"
] |
[
"return",
"class",
"name",
"compare",
"to",
"(",
"other",
"class",
"name",
")",
";"
] |
[
"/",
"*",
"package"
] |
[
"for",
"(",
"bluetooth",
"gatt",
"service",
"svc",
":",
"m",
"services",
")",
"{",
"if",
"(",
"svc",
"get",
"device",
"(",
")",
"equals",
"(",
"device",
")",
"&",
"&",
"svc",
"get",
"instance",
"id",
"(",
")",
"=",
"=",
"instance",
"id",
"&",
"&",
"svc",
"get",
"uuid",
"(",
")",
"equals",
"(",
"uuid",
")",
")",
"{",
"return",
"svc",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"/",
"*",
"package"
] |
[
"for",
"(",
"bluetooth",
"gatt",
"service",
"svc",
":",
"m",
"services",
")",
"{",
"for",
"(",
"bluetooth",
"gatt",
"characteristic",
"charac",
":",
"svc",
"get",
"characteristics",
"(",
")",
")",
"{",
"if",
"(",
"charac",
"get",
"instance",
"id",
"(",
")",
"=",
"=",
"instance",
"id",
")",
"{",
"return",
"charac",
";",
"}",
"}",
"}",
"return",
"null",
";"
] |
[
"/",
"*",
"package"
] |
[
"for",
"(",
"bluetooth",
"gatt",
"service",
"svc",
":",
"m",
"services",
")",
"{",
"for",
"(",
"bluetooth",
"gatt",
"characteristic",
"charac",
":",
"svc",
"get",
"characteristics",
"(",
")",
")",
"{",
"for",
"(",
"bluetooth",
"gatt",
"descriptor",
"desc",
":",
"charac",
"get",
"descriptors",
"(",
")",
")",
"{",
"if",
"(",
"desc",
"get",
"instance",
"id",
"(",
")",
"=",
"=",
"instance",
"id",
")",
"{",
"return",
"desc",
";",
"}",
"}",
"}",
"}",
"return",
"null",
";"
] |
[
"set",
"the",
"preferred",
"connection",
"phy",
"for",
"this",
"app",
"please",
"note",
"that",
"this",
"is",
"just",
"a",
"recommendation",
"whether",
"the",
"phy",
"change",
"will",
"happen",
"depends",
"on",
"other",
"applications",
"preferences",
"local",
"and",
"remote",
"controller",
"capabilities",
"controller",
"can",
"override",
"these",
"settings",
"<",
"p",
">",
"{",
"@",
"link",
"bluetooth",
"gatt",
"callback",
"#",
"on",
"phy",
"update",
"}",
"will",
"be",
"triggered",
"as",
"a",
"result",
"of",
"this",
"call",
"even",
"if",
"no",
"phy",
"change",
"happens",
"it",
"is",
"also",
"triggered",
"when",
"remote",
"device",
"updates",
"the",
"phy"
] |
[
"try",
"{",
"m",
"service",
"client",
"set",
"preferred",
"phy",
"(",
"m",
"client",
"if",
",",
"m",
"device",
"get",
"address",
"(",
")",
",",
"tx",
"phy",
",",
"rx",
"phy",
",",
"phy",
"options",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"log",
"e",
"(",
"tag",
",",
"\"",
"\"",
",",
"e",
")",
";",
"}"
] |
[
"read",
"the",
"current",
"transmitter",
"phy",
"and",
"receiver",
"phy",
"of",
"the",
"connection",
"the",
"values",
"are",
"returned",
"in",
"{"
] |
[
"try",
"{",
"m",
"service",
"client",
"read",
"phy",
"(",
"m",
"client",
"if",
",",
"m",
"device",
"get",
"address",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"log",
"e",
"(",
"tag",
",",
"\"",
"\"",
",",
"e",
")",
";",
"}"
] |
[
"gets",
"call",
"s",
"device"
] |
[
"return",
"m",
"device",
";"
] |
[
"returns",
"a",
"list",
"of",
"gatt",
"services",
"offered",
"by",
"the",
"remote",
"device"
] |
[
"list",
"<",
"bluetooth",
"gatt",
"service",
">",
"result",
"=",
"new",
"array",
"list",
"<",
"bluetooth",
"gatt",
"service",
">",
"(",
")",
";",
"for",
"(",
"bluetooth",
"gatt",
"service",
"service",
":",
"m",
"services",
")",
"{",
"if",
"(",
"service",
"get",
"device",
"(",
")",
"equals",
"(",
"m",
"device",
")",
")",
"{",
"result",
"add",
"(",
"service",
")",
";",
"}",
"}",
"return",
"result",
";"
] |
[
"returns",
"a",
"{",
"@",
"link",
"bluetooth",
"gatt",
"service",
"}",
"if",
"the",
"requested",
"uuid",
"is",
"supported",
"by",
"the",
"remote",
"device"
] |
[
"for",
"(",
"bluetooth",
"gatt",
"service",
"service",
":",
"m",
"services",
")",
"{",
"if",
"(",
"service",
"get",
"device",
"(",
")",
"equals",
"(",
"m",
"device",
")",
"&",
"&",
"service",
"get",
"uuid",
"(",
")",
"equals",
"(",
"uuid",
")",
")",
"{",
"return",
"service",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"returns",
"the",
"current",
"{"
] |
[
"return",
"config",
";"
] |
[
"sets",
"the",
"{",
"@",
"link",
"android",
"graphics",
"bitmap",
"config",
"}",
"for",
"the",
"bitmaps",
"to",
"pre",
"-",
"fill"
] |
[
"this",
"config",
"=",
"config",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"new",
"pre",
"fill",
"type",
"(",
"width",
",",
"height",
",",
"config",
",",
"weight",
")",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"element",
"property"
] |
[
"return",
"element",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.