docstring_tokens list | code_tokens list |
|---|---|
[
"returns",
"the",
"index",
"of",
"the",
"most",
"recently",
"created",
"constant",
"in",
"the",
"constant",
"pool",
"of",
"the",
"target",
"class"
] | [
"return",
"constant",
"index",
";"
] |
[
"implementations",
"for",
"constant",
"visitor"
] | [
"constant",
"index",
"=",
"constant",
"pool",
"editor",
"add",
"integer",
"constant",
"(",
"integer",
"constant",
"get",
"value",
"(",
")",
")",
";"
] |
[
"gets",
"the",
"output",
"stream",
"to",
"write",
"to",
"the",
"file"
] | [
"if",
"(",
"gz",
"exists",
"(",
")",
")",
"gz",
"delete",
"(",
")",
";",
"try",
"{",
"return",
"files",
"new",
"output",
"stream",
"(",
"file",
"to",
"path",
"(",
")",
")",
";",
"}",
"catch",
"(",
"invalid",
"path",
"exception",
"e",
")",
"{",
... |
[
"loads",
"the",
"file",
"content",
"as",
"a",
"string"
] | [
"long",
"size",
"guess",
";",
"if",
"(",
"file",
"exists",
"(",
")",
")",
"size",
"guess",
"=",
"file",
"length",
"(",
")",
";",
"else",
"if",
"(",
"gz",
"exists",
"(",
")",
")",
"size",
"guess",
"=",
"gz",
"length",
"(",
")",
"*",
"2",
";",
... |
[
"/",
"*"
] | [] |
[
"copy",
"characters"
] | [
"if",
"(",
"c",
"=",
"=",
"0",
"|",
"|",
"num",
"<",
"1",
")",
"return",
"\"",
"\"",
";",
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
"num",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
";",
"i",
... |
[
"fill",
"a",
"certain",
"number",
"of",
"special",
"characters",
"on",
"the",
"left",
"side",
"of",
"the",
"string"
] | [
"if",
"(",
"null",
"=",
"=",
"o",
")",
"return",
"null",
";",
"string",
"s",
"=",
"o",
"to",
"string",
"(",
")",
";",
"int",
"len",
"=",
"s",
"length",
"(",
")",
";",
"if",
"(",
"len",
">",
"=",
"width",
")",
"return",
"s",
";",
"return",
"... |
[
"the",
"x",
"-",
"coordinate",
"value",
"for",
"this",
"point"
] | [
"if",
"(",
"x",
"=",
"=",
"null",
")",
"{",
"x",
"=",
"expressions",
"number",
"operation",
"(",
"double",
"class",
",",
"spatial",
"ops",
"x",
",",
"mixin",
")",
";",
"}",
"return",
"x",
";"
] |
[
"the",
"y",
"-",
"coordinate",
"value",
"for",
"this",
"point"
] | [
"if",
"(",
"y",
"=",
"=",
"null",
")",
"{",
"y",
"=",
"expressions",
"number",
"operation",
"(",
"double",
"class",
",",
"spatial",
"ops",
"y",
",",
"mixin",
")",
";",
"}",
"return",
"y",
";"
] |
[
"the",
"z",
"-",
"coordinate",
"value",
"for",
"this",
"point",
"if",
"it",
"has",
"one",
"returns",
"nil",
"otherwise"
] | [
"if",
"(",
"z",
"=",
"=",
"null",
")",
"{",
"z",
"=",
"expressions",
"number",
"operation",
"(",
"double",
"class",
",",
"spatial",
"ops",
"z",
",",
"mixin",
")",
";",
"}",
"return",
"z",
";"
] |
[
"the",
"m",
"-",
"coordinate",
"value",
"for",
"this",
"point",
"if",
"it",
"has",
"one",
"returns",
"nil",
"otherwise"
] | [
"if",
"(",
"m",
"=",
"=",
"null",
")",
"{",
"m",
"=",
"expressions",
"number",
"operation",
"(",
"double",
"class",
",",
"spatial",
"ops",
"m",
",",
"mixin",
")",
";",
"}",
"return",
"m",
";"
] |
[
"/",
"*",
"this",
"is",
"the",
"one",
"overriden",
"in",
"property",
"descriptor"
] | [
"list",
"<",
"v",
">",
"real",
"values",
"=",
"rule",
"get",
"property",
"(",
"this",
")",
";",
"return",
"real",
"values",
"=",
"=",
"null",
"?",
"null",
":",
"error",
"for",
"(",
"real",
"values",
")",
";"
] |
[
"returns",
"a",
"string",
"representation",
"of",
"the",
"default",
"value"
] | [
"return",
"as",
"delimited",
"string",
"(",
"default",
"value",
"(",
")",
",",
"multi",
"value",
"delimiter",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"string",
"representation",
"of",
"the",
"value",
"even",
"if",
"it",
"s",
"null"
] | [
"return",
"value",
"=",
"=",
"null",
"?",
"\"",
"\"",
":",
"value",
"to",
"string",
"(",
")",
";"
] |
[
"parse",
"a",
"string",
"and",
"returns",
"an",
"instance",
"of",
"a",
"single",
"value",
"(",
"not",
"a",
"list",
")"
] | [
"protected",
"abstract",
"v",
"create",
"from",
"(",
"string",
"to",
"parse",
")",
";"
] |
[
"returns",
"the",
"{"
] | [
"return",
"highlighters",
";"
] |
[
"the",
"registry",
"of",
"{"
] | [
"return",
"significance",
"heuristic",
"parser",
"registry",
";"
] |
[
"the",
"registry",
"of",
"{"
] | [
"return",
"moving",
"average",
"model",
"parser",
"registry",
";"
] |
[
"register",
"a",
"new",
"value",
"format"
] | [
"named",
"writeables",
"add",
"(",
"new",
"named",
"writeable",
"registry",
"entry",
"(",
"doc",
"value",
"format",
"class",
",",
"name",
",",
"reader",
")",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"new",
"comp",
"int",
"double",
"vector",
"(",
"matrix",
"id",
",",
"row",
"id",
",",
"clock",
",",
"dim",
",",
"partitions",
",",
"sub",
"dim",
")",
";"
] |
[
"returns",
"the",
"{",
"@",
"link",
"phone",
"account",
"handle",
"}",
"associated",
"with",
"this",
"connection"
] | [
"return",
"m",
"phone",
"account",
"handle",
";"
] |
[
"the",
"key",
"-",
"value",
"pairs",
"sent",
"by",
"the",
"sms",
"or",
"{"
] | [
"return",
"m",
"fields",
";"
] |
[
"raw",
"message",
"body",
"of",
"the",
"received",
"sms"
] | [
"return",
"m",
"message",
"body",
";"
] |
[
"{"
] | [
"return",
"type",
";"
] |
[
"{"
] | [
"handler",
"on",
"editor",
"dirty",
"state",
"changed",
"(",
"this",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"following",
"conditions",
"hold",
":",
"1",
"anomaly",
"detection",
"context",
"is",
"not",
"null",
"2",
"anomaly",
"detection",
"function",
"is",
"not",
"null",
"3",
"current",
"time",
"series",
"is",
"not",
"null"
] | [
"return",
"anomaly",
"detection",
"context",
"!",
"=",
"null",
"&",
"&",
"anomaly",
"detection",
"context",
"get",
"anomaly",
"detection",
"function",
"(",
")",
"!",
"=",
"null",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"wrapper",
"methods",
"for",
"backward",
"compatibility",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"... | [
"list",
"<",
"interval",
">",
"time",
"series",
"intervals",
"=",
"this",
"get",
"time",
"series",
"intervals",
"(",
"monitoring",
"window",
"start",
"time",
",",
"monitoring",
"window",
"end",
"time",
")",
";",
"return",
"backward",
"anomaly",
"function",
"... |
[
"todo",
":",
"generate",
"time",
"series",
"view",
"using",
"view",
"model"
] | [
"anomaly",
"detection",
"context",
"anomaly",
"detection",
"context",
"=",
"backward",
"anomaly",
"function",
"utils",
"build",
"anomaly",
"detection",
"context",
"(",
"this",
",",
"time",
"series",
",",
"spec",
"get",
"topic",
"metric",
"(",
")",
",",
"null",... |
[
"get",
"the",
"data",
"model",
"that",
"defines",
"the",
"time",
"ranges",
"of",
"the",
"input",
"time",
"series"
] | [
"return",
"this",
"data",
"model",
";"
] |
[
"get",
"the",
"transformation",
"models",
"to",
"transform",
"the",
"current",
"/",
"monitoring",
"time",
"series"
] | [
"return",
"this",
"current",
"time",
"series",
"transformation",
"chain",
";"
] |
[
"get",
"the",
"transformation",
"models",
"to",
"transform",
"the",
"baseline",
"time",
"series"
] | [
"return",
"this",
"baseline",
"time",
"series",
"transformation",
"chain",
";"
] |
[
"get",
"the",
"prediction",
"model",
"of",
"the",
"anomaly",
"function"
] | [
"return",
"this",
"prediction",
"model",
";"
] |
[
"get",
"the",
"detection",
"model",
"of",
"the",
"anomaly",
"function"
] | [
"return",
"this",
"detection",
"model",
";"
] |
[
"get",
"the",
"merge",
"model",
"of",
"the",
"anomaly",
"function"
] | [
"return",
"this",
"merge",
"model",
";"
] |
[
"determine",
"if",
"the",
"history",
"anomalies",
"are",
"used",
"in",
"the",
"anomaly",
"function",
"todo",
":",
"remove",
"this",
"flag",
"after",
"the",
"migration",
"to",
"modularized",
"functions",
"is",
"done",
"the",
"pipeline",
"itself",
"has",
"the",
... | [
"return",
"true",
";"
] |
[
"serialize",
"the",
"cookies",
"to",
"json",
"from",
"the",
"given",
"cookie",
"manager",
"to",
"a",
"file",
"at",
"the",
"specified",
"path",
"output",
"file",
"will",
"have",
"660",
"permissions",
"(",
"owner",
"-",
"read",
"owner",
"-",
"write",
")"
] | [
"list",
"<",
"http",
"cookie",
">",
"cookies",
"=",
"cookie",
"manager",
"get",
"cookie",
"store",
"(",
")",
"get",
"cookies",
"(",
")",
";",
"list",
"<",
"json",
"cookie",
">",
"json",
"cookies",
"=",
"cookies",
"stream",
"(",
")",
"map",
"(",
"json... |
[
"load",
"cookies",
"from",
"the",
"specified",
"file",
"from",
"json",
"to",
"a",
"name",
"to",
"value",
"mapping"
] | [
"type",
"reference",
"cookies",
"type",
"=",
"new",
"type",
"reference",
"<",
"list",
"<",
"json",
"cookie",
">",
">",
"(",
")",
"{",
"}",
";",
"try",
"(",
"buffered",
"reader",
"reader",
"=",
"files",
"new",
"buffered",
"reader",
"(",
"path",
")",
"... |
[
"returns",
"true",
"if",
"field",
"id",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"id",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"address",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"address",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"last",
"contact",
"sec",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"lastcontactsec",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"state",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"state",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"capacity",
"bytes",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"capacitybytes",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"used",
"bytes",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"usedbytes",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"start",
"time",
"ms",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"starttimems",
"isset",
"id",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"capacity",
"bytes",
"on",
"tiers",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"capacity",
"bytes",
"on",
"tiers",
"!",
"=",
"null",
";"
] |
[
"the",
"map",
"of",
"used",
"bytes",
"on",
"each",
"tier"
] | [
"return",
"this",
"used",
"bytes",
"on",
"tiers",
";"
] |
[
"returns",
"true",
"if",
"field",
"used",
"bytes",
"on",
"tiers",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"used",
"bytes",
"on",
"tiers",
"!",
"=",
"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",
"id",
":",
"return",
"is",
"set",
"id",
"(",
")",
";",
"case",
"address",
":",
"retu... |
[
"returns",
"a",
"map",
"of",
"tables",
"and",
"their",
"respective",
"keys",
"that",
"were",
"not",
"processed",
"during",
"the",
"operation"
] | [
"return",
"unprocessed",
"keys",
";"
] |
[
"returns",
"true",
"if",
"field",
"all",
"raw",
"nodes",
"jsons",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"all",
"raw",
"nodes",
"jsons",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"build",
"file",
"dependents",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"build",
"file",
"dependents",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"build",
"file",
"env",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"build",
"file",
"env",
"!",
"=",
"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",
"all",
"raw",
"nodes",
"jsons",
":",
"return",
"is",
"set",
"all",
"ra... |
[
"we",
"are",
"trading",
"off",
"duplication",
"for",
"padding",
"efficiency"
] | [
"if",
"(",
"next",
"=",
"=",
"null",
")",
"{",
"next",
"=",
"extra",
"state",
";",
"}",
"else",
"{",
"next",
"add",
"extra",
"state",
"(",
"extra",
"state",
")",
";",
"}"
] |
[
"retrieves",
"the",
"persistence",
"context",
"to",
"which",
"this",
"is",
"bound"
] | [
"return",
"persistence",
"context",
";"
] |
[
"saves",
"the",
"value",
"for",
"the",
"given",
"boolean",
"flag"
] | [
"compressed",
"state",
"&",
"=",
"state",
"get",
"unset",
"mask",
"(",
")",
";",
"compressed",
"state",
"|",
"=",
"(",
"state",
"get",
"value",
"(",
"value",
")",
"<",
"<",
"state",
"get",
"offset",
"(",
")",
")",
";"
] |
[
"gets",
"the",
"current",
"value",
"of",
"the",
"given",
"boolean",
"flag"
] | [
"return",
"(",
"(",
"compressed",
"state",
"&",
"state",
"get",
"mask",
"(",
")",
")",
">",
">",
"state",
"get",
"offset",
"(",
")",
")",
"=",
"=",
"1",
";"
] |
[
"returns",
"the",
"numeric",
"value",
"to",
"be",
"stored",
"for",
"the",
"given",
"enum",
"value"
] | [
"return",
"value",
"!",
"=",
"null",
"?",
"value",
"ordinal",
"(",
")",
"+",
"1",
":",
"0",
";"
] |
[
"returns",
"the",
"offset",
"within",
"the",
"number",
"value",
"at",
"which",
"this",
"enum",
"value",
"is",
"stored"
] | [
"return",
"offset",
";"
] |
[
"returns",
"the",
"bit",
"mask",
"for",
"reading",
"this",
"enum",
"value",
"from",
"the",
"number",
"value",
"storing",
"it"
] | [
"return",
"mask",
";"
] |
[
"returns",
"the",
"bit",
"mask",
"for",
"resetting",
"this",
"enum",
"value",
"from",
"the",
"number",
"value",
"storing",
"it"
] | [
"return",
"unset",
"mask",
";"
] |
[
"returns",
"the",
"constants",
"of",
"the",
"represented",
"enum",
"which",
"is",
"cached",
"for",
"performance",
"reasons"
] | [
"return",
"enum",
"constants",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"new",
"saml",
"provider",
"resource",
"in",
"iam",
"<",
"/",
"p",
">"
] | [
"this",
"s",
"a",
"m",
"l",
"provider",
"arn",
"=",
"s",
"a",
"m",
"l",
"provider",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"new",
"saml",
"provider",
"resource",
"in",
"iam",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"s",
"a",
"m",
"l",
"provider",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"saml",
"provider",
"to",
"delete",
"<",
"/",
"p",
">"
] | [
"set",
"s",
"a",
"m",
"l",
"provider",
"arn",
"(",
"s",
"a",
"m",
"l",
"provider",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"get",
"a",
"resource",
"string",
"with",
"instructions",
"for",
"importing",
"subscriptions",
"for",
"each",
"service"
] | [
"switch",
"(",
"service",
"id",
")",
"{",
"case",
"0",
":",
"return",
"r",
"string",
"import",
"youtube",
"instructions",
";",
"case",
"1",
":",
"return",
"r",
"string",
"import",
"soundcloud",
"instructions",
";",
"default",
":",
"return",
"-",
"1",
";"... |
[
"for",
"services",
"that",
"support",
"importing",
"from",
"a",
"channel",
"url",
"return",
"a",
"hint",
"that",
"will",
"be",
"used",
"in",
"the",
"edit",
"text",
"that",
"the",
"user",
"will",
"type",
"in",
"his",
"channel",
"url"
] | [
"switch",
"(",
"service",
"id",
")",
"{",
"case",
"1",
":",
"return",
"r",
"string",
"import",
"soundcloud",
"instructions",
"hint",
";",
"default",
":",
"return",
"-",
"1",
";",
"}"
] |
[
"given",
":",
"simon",
"wants",
"to",
"receive",
"notifications",
"by",
"email",
"on",
"comments",
"for",
"reviews",
"assigned",
"to",
"him",
"or",
"created",
"by",
"him",
"<",
"p",
"/",
">",
"when",
":",
"freddy",
"adds",
"comment",
"to",
"review",
"cre... | [
"set",
"up",
"mocks",
"(",
")",
";",
"do",
"answer",
"(",
"add",
"user",
"(",
"assignee",
"simon",
",",
"email",
"channel",
")",
")",
"when",
"(",
"comment",
"on",
"issue",
"assigned",
"to",
"me",
")",
"dispatch",
"(",
"same",
"(",
"notification",
")... |
[
"given",
":",
"evgeny",
"wants",
"to",
"receive",
"notification",
"by",
"g",
"talk",
"on",
"comments",
"for",
"reviews",
"created",
"by",
"him",
"simon",
"wants",
"to",
"receive",
"notification",
"by",
"email",
"on",
"comments",
"for",
"reviews",
"assigned",
... | [
"set",
"up",
"mocks",
"(",
")",
";",
"do",
"answer",
"(",
"add",
"user",
"(",
"assignee",
"simon",
",",
"email",
"channel",
")",
")",
"when",
"(",
"comment",
"on",
"issue",
"assigned",
"to",
"me",
")",
"dispatch",
"(",
"same",
"(",
"notification",
")... |
[
"given",
":",
"simon",
"wants",
"to",
"receive",
"notifications",
"by",
"email",
"and",
"g",
"t",
"lak",
"on",
"comments",
"for",
"reviews",
"assigned",
"to",
"him",
"<",
"p",
"/",
">",
"when",
":",
"freddy",
"adds",
"comment",
"to",
"review",
"created",... | [
"set",
"up",
"mocks",
"(",
")",
";",
"do",
"answer",
"(",
"add",
"user",
"(",
"assignee",
"simon",
",",
"new",
"notification",
"channel",
"[",
"]",
"{",
"email",
"channel",
",",
"gtalk",
"channel",
"}",
")",
")",
"when",
"(",
"comment",
"on",
"issue"... |
[
"given",
":",
"nobody",
"wants",
"to",
"receive",
"notifications",
"<",
"p",
"/",
">",
"when",
":",
"freddy",
"adds",
"comment",
"to",
"review",
"created",
"by",
"evgeny",
"and",
"assigned",
"to",
"simon",
"<",
"p",
"/",
">",
"then",
":",
"no",
"notifi... | [
"set",
"up",
"mocks",
"(",
")",
";",
"under",
"test",
"start",
"(",
")",
";",
"under",
"test",
"stop",
"(",
")",
";",
"verify",
"(",
"email",
"channel",
",",
"never",
"(",
")",
")",
"deliver",
"(",
"any",
"(",
"notification",
"class",
")",
",",
"... |
[
"select",
"the",
"columns",
"from",
"the",
"parquet",
"schema",
"that",
"are",
"used",
"in",
"the",
"schema",
"of",
"the",
"ingestion",
"job"
] | [
"message",
"type",
"full",
"schema",
"=",
"context",
"get",
"file",
"schema",
"(",
")",
";",
"string",
"name",
"=",
"full",
"schema",
"get",
"name",
"(",
")",
";",
"hadoop",
"druid",
"indexer",
"config",
"config",
"=",
"hadoop",
"druid",
"indexer",
"conf... |
[
"<",
"p",
">",
"indicates",
"whether",
"detailed",
"monitoring",
"is",
"enabled",
"otherwise",
"basic",
"monitoring",
"is",
"enabled",
"<",
"/",
"p",
">"
] | [
"set",
"enabled",
"(",
"enabled",
")",
";",
"return",
"this",
";"
] |
[
"turning",
"off",
"checks",
"just",
"means",
"we",
"suppress",
"exceptions",
"from",
"them"
] | [
"if",
"(",
"enable",
"checks",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"message",
")",
";",
"}"
] |
[
"toggle",
"consumer",
"workflow",
"checking",
":",
"if",
"your",
"test",
"consumes",
"tokenstreams",
"normally",
"you",
"should",
"leave",
"this",
"enabled"
] | [
"this",
"enable",
"checks",
"=",
"enable",
"checks",
";"
] |
[
"takes",
"the",
"result",
"and",
"determines",
"whether",
"the",
"state",
"of",
"the",
"resource",
"matches",
"the",
"expected",
"state",
"to",
"determine",
"the",
"current",
"state",
"of",
"the",
"resource",
"jmes",
"path",
"expression",
"is",
"evaluated",
"a... | [
"json",
"node",
"query",
"node",
"=",
"object",
"mapper",
"singleton",
"get",
"object",
"mapper",
"(",
")",
"value",
"to",
"tree",
"(",
"result",
")",
";",
"json",
"node",
"final",
"result",
"=",
"ast",
"accept",
"(",
"new",
"jmes",
"path",
"evaluation",... |
[
"represents",
"the",
"current",
"waiter",
"state",
"in",
"the",
"case",
"where",
"resource",
"state",
"matches",
"the",
"expected",
"state"
] | [
"return",
"waiter",
"state",
"success",
";"
] |
[
"takes",
"the",
"result",
"and",
"determines",
"whether",
"the",
"state",
"of",
"the",
"resource",
"matches",
"the",
"expected",
"state",
"to",
"determine",
"the",
"current",
"state",
"of",
"the",
"resource",
"jmes",
"path",
"expression",
"is",
"evaluated",
"a... | [
"json",
"node",
"query",
"node",
"=",
"object",
"mapper",
"singleton",
"get",
"object",
"mapper",
"(",
")",
"value",
"to",
"tree",
"(",
"result",
")",
";",
"json",
"node",
"final",
"result",
"=",
"ast",
"accept",
"(",
"new",
"jmes",
"path",
"evaluation",... |
[
"represents",
"the",
"current",
"waiter",
"state",
"in",
"the",
"case",
"where",
"resource",
"state",
"matches",
"the",
"expected",
"state"
] | [
"return",
"waiter",
"state",
"failure",
";"
] |
[
"binds",
"items",
"to",
"the",
"layout"
] | [
"array",
"list",
"<",
"view",
">",
"icons",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"shortcut",
"info",
"item",
":",
"items",
")",
"{",
"icons",
"add",
"(",
"create",
"new",
"view",
"(",
"item",
")",
")",
";",
"}",
"ar... |
[
"create",
"space",
"for",
"a",
"new",
"item",
"at",
"the",
"end",
"and",
"returns",
"the",
"rank",
"for",
"that",
"item",
"also",
"sets",
"the",
"current",
"page",
"to",
"the",
"last",
"page"
] | [
"int",
"rank",
"=",
"get",
"item",
"count",
"(",
")",
";",
"array",
"list",
"<",
"view",
">",
"views",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"m",
"folder",
"get",
"items",
"in",
"reading",
"order",
"(",
")",
")",
";",
"views",
"add",
"(",
... |
[
"adds",
"the",
"{"
] | [
"int",
"page",
"pos",
"=",
"rank",
"%",
"m",
"max",
"items",
"per",
"page",
";",
"int",
"page",
"no",
"=",
"rank",
"/",
"m",
"max",
"items",
"per",
"page",
";",
"item",
"rank",
"=",
"rank",
";",
"item",
"cell",
"x",
"=",
"page",
"pos",
"%",
"m"... |
[
"updates",
"position",
"and",
"rank",
"of",
"all",
"the",
"children",
"in",
"the",
"view",
"it",
"essentially",
"removes",
"all",
"views",
"from",
"all",
"the",
"pages",
"and",
"then",
"adds",
"them",
"again",
"in",
"appropriate",
"page"
] | [
"arrange",
"children",
"(",
"list",
",",
"item",
"count",
",",
"true",
")",
";"
] |
[
"iterates",
"over",
"all",
"its",
"items",
"in",
"a",
"reading",
"order"
] | [
"for",
"(",
"int",
"k",
"=",
"0",
";",
"k",
"<",
"get",
"child",
"count",
"(",
")",
";",
"k",
"+",
"+",
")",
"{",
"cell",
"layout",
"page",
"=",
"get",
"page",
"at",
"(",
"k",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"... |
[
"sets",
"the",
"focus",
"on",
"the",
"first",
"visible",
"child"
] | [
"view",
"first",
"child",
"=",
"get",
"current",
"cell",
"layout",
"(",
")",
"get",
"child",
"at",
"(",
"0",
",",
"0",
")",
";",
"if",
"(",
"first",
"child",
"!",
"=",
"null",
")",
"{",
"first",
"child",
"request",
"focus",
"(",
")",
";",
"}"
] |
[
"scrolls",
"the",
"current",
"view",
"by",
"a",
"fraction"
] | [
"float",
"fraction",
"=",
"(",
"direction",
"=",
"=",
"drag",
"controller",
"scroll",
"left",
")",
"^",
"m",
"is",
"rtl",
"?",
"-",
"scroll",
"hint",
"fraction",
":",
"scroll",
"hint",
"fraction",
";",
"int",
"hint",
"=",
"(",
"int",
")",
"(",
"fract... |
[
"finish",
"animation",
"all",
"the",
"views",
"which",
"are",
"animating",
"across",
"pages"
] | [
"if",
"(",
"!",
"m",
"pending",
"animations",
"is",
"empty",
"(",
")",
")",
"{",
"hash",
"map",
"<",
"view",
",",
"runnable",
">",
"pending",
"views",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
"m",
"pending",
"animations",
")",
";",
"for",
"(",
"... |
[
"ensures",
"that",
"all",
"the",
"icons",
"on",
"the",
"given",
"page",
"are",
"of",
"high",
"-",
"res"
] | [
"cell",
"layout",
"page",
"=",
"get",
"page",
"at",
"(",
"page",
"no",
")",
";",
"if",
"(",
"page",
"!",
"=",
"null",
")",
"{",
"shortcut",
"and",
"widget",
"container",
"parent",
"=",
"page",
"get",
"shortcuts",
"and",
"widgets",
"(",
")",
";",
"f... |
[
"bfs"
] | [
"queue",
"offer",
"(",
"begin",
"word",
")",
";",
"min",
"distance",
"put",
"(",
"begin",
"word",
",",
"0",
")",
";",
"while",
"(",
"!",
"queue",
"is",
"empty",
"(",
")",
")",
"{",
"string",
"curr",
"word",
"=",
"queue",
"poll",
"(",
")",
";",
... |
[
"add",
"child"
] | [
"set",
"<",
"string",
">",
"children",
"=",
"graph",
"get",
"(",
"parent",
")",
";",
"if",
"(",
"children",
"=",
"=",
"null",
")",
"children",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"children",
"add",
"(",
"child",
")",
";",
"graph",... |
[
"dfs",
"to",
"build",
"path"
] | [
"if",
"(",
"curr",
"word",
"equals",
"(",
"end",
"word",
")",
")",
"{",
"result",
"add",
"(",
"new",
"array",
"list",
"<",
">",
"(",
"path",
")",
")",
";",
"}",
"else",
"{",
"set",
"<",
"string",
">",
"children",
"=",
"graph",
"get",
"(",
"curr... |
[
"post",
"event",
"to",
"the",
"event",
"bus",
"using",
"the",
"timestamp",
"given",
"by",
"at",
"time"
] | [
"event",
"configure",
"(",
"at",
"time",
"get",
"timestamp",
"(",
")",
",",
"at",
"time",
"get",
"nano",
"time",
"(",
")",
",",
"at",
"time",
"get",
"thread",
"user",
"nano",
"time",
"(",
")",
",",
"thread",
"id",
"supplier",
"get",
"(",
")",
",",
... |
[
"an",
"id",
"that",
"every",
"event",
"posted",
"to",
"this",
"event",
"bus",
"will",
"share",
"for",
"long",
"-",
"running",
"processes",
"like",
"the",
"daemon",
"the",
"build",
"id",
"makes",
"it",
"possible",
"to",
"distinguish",
"when",
"events",
"com... | [
"return",
"build",
"id",
";"
] |
[
"timestamp",
"event",
"a",
"timestamped",
"event",
"cannot",
"subsequently",
"being",
"posted",
"and",
"is",
"useful",
"only",
"to",
"pass",
"its",
"timestamp",
"on",
"to",
"another",
"posted",
"event"
] | [
"long",
"thread",
"id",
"=",
"thread",
"id",
"supplier",
"get",
"(",
")",
";",
"event",
"configure",
"(",
"clock",
"current",
"time",
"millis",
"(",
")",
",",
"clock",
"nano",
"time",
"(",
")",
",",
"clock",
"thread",
"user",
"nano",
"time",
"(",
"th... |
[
"initializes",
"the",
"components",
"of",
"the",
"test",
"case"
] | [
"this",
"stub",
"=",
"new",
"file",
"selector",
"stub",
"(",
")",
";",
"this",
"loader",
"=",
"new",
"file",
"loader",
"(",
")",
";",
"presenter",
"=",
"new",
"file",
"selector",
"presenter",
"(",
"this",
"stub",
")",
";",
"presenter",
"set",
"loader",... |
[
"tests",
"if",
"the",
"presenter",
"was",
"successfully",
"connected",
"with",
"the",
"view"
] | [
"presenter",
"start",
"(",
")",
";",
"assert",
"not",
"null",
"(",
"stub",
"get",
"presenter",
"(",
")",
")",
";",
"assert",
"true",
"(",
"stub",
"is",
"opened",
"(",
")",
")",
";"
] |
[
"tests",
"if",
"we",
"receive",
"a",
"confirmation",
"when",
"we",
"attempt",
"to",
"open",
"a",
"file",
"that",
"it",
"s",
"name",
"is",
"null",
"or",
"an",
"empty",
"string"
] | [
"stub",
"set",
"file",
"name",
"(",
"null",
")",
";",
"presenter",
"start",
"(",
")",
";",
"presenter",
"file",
"name",
"changed",
"(",
")",
";",
"presenter",
"confirmed",
"(",
")",
";",
"assert",
"false",
"(",
"loader",
"is",
"loaded",
"(",
")",
")"... |
[
"tests",
"if",
"the",
"view",
"closes",
"after",
"cancellation"
] | [
"presenter",
"start",
"(",
")",
";",
"presenter",
"cancelled",
"(",
")",
";",
"assert",
"false",
"(",
"stub",
"is",
"opened",
"(",
")",
")",
";"
] |
[
"{"
] | [
"return",
"-",
"53",
";"
] |
[
"{"
] | [
"return",
"2",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.