docstring_tokens list | code_tokens list |
|---|---|
[
"<",
"p",
">",
"the",
"time",
"at",
"which",
"aws",
"waf",
"received",
"the",
"request",
"from",
"your",
"aws",
"resource",
"in",
"unix",
"time",
"format",
"(",
"in",
"seconds",
")",
"<",
"/",
"p",
">"
] | [
"this",
"timestamp",
"=",
"timestamp",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"at",
"which",
"aws",
"waf",
"received",
"the",
"request",
"from",
"your",
"aws",
"resource",
"in",
"unix",
"time",
"format",
"(",
"in",
"seconds",
")",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"timestamp",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"in",
"epoch",
"format",
"associated",
"with",
"a",
"particular",
"<",
"code",
">",
"value",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"timestamp",
"(",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"value",
"of",
"the",
"metric",
"in",
"the",
"current",
"metric",
"data",
"object",
"<",
"/",
"p",
">"
] | [
"this",
"value",
"=",
"value",
";"
] |
[
"<",
"p",
">",
"the",
"value",
"of",
"the",
"metric",
"in",
"the",
"current",
"metric",
"data",
"object",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"value",
";"
] |
[
"<",
"p",
">",
"the",
"actual",
"value",
"associated",
"with",
"a",
"particular",
"<",
"code",
">",
"timestamp",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"value",
"(",
"value",
")",
";",
"return",
"this",
";"
] |
[
"determine",
"how",
"long",
"it",
"s",
"been",
"since",
"chrome",
"was",
"first",
"installed",
"note",
"that",
"this",
"may",
"not",
"accurate",
"for",
"various",
"reasons",
"but",
"it",
"shouldn",
"t",
"affect",
"stats",
"too",
"much"
] | [
"if",
"(",
"send",
"install",
"event",
")",
"{",
"return",
"install",
"age",
"immediately",
"after",
"installing",
";",
"}",
"else",
"{",
"return",
"math",
"max",
"(",
"0l",
",",
"(",
"current",
"timestamp",
"-",
"install",
"timestamp",
")",
"/",
"ms",
... |
[
"returns",
"the",
"application",
"context"
] | [
"return",
"m",
"application",
"context",
";"
] |
[
"appends",
"extra",
"attributes",
"to",
"the",
"xml",
"for",
"the",
"given",
"tag"
] | [] |
[
"returns",
"the",
"brand",
"code",
"if",
"one",
"can",
"t",
"be",
"retrieved",
"return"
] | [
"protected",
"abstract",
"string",
"get",
"brand",
"(",
")",
";"
] |
[
"returns",
"the",
"current",
"client",
"id"
] | [
"protected",
"abstract",
"string",
"get",
"client",
"(",
")",
";"
] |
[
"url",
"for",
"the",
"omaha",
"server"
] | [
"public",
"abstract",
"string",
"get",
"server",
"url",
"(",
")",
";"
] |
[
"prints",
"out",
"the",
"given",
"warning",
"and",
"increments",
"the",
"warning",
"count",
"if",
"the",
"given",
"class",
"name",
"passes",
"the",
"class",
"name",
"filter"
] | [
"if",
"(",
"accepts",
"(",
"class",
"name",
")",
")",
"{",
"print",
"(",
"warning",
")",
";",
"}"
] |
[
"returns",
"whether",
"the",
"given",
"class",
"name",
"passes",
"the",
"class",
"name",
"filter"
] | [
"return",
"class",
"filter",
"=",
"=",
"null",
"|",
"|",
"!",
"class",
"filter",
"matches",
"(",
"class",
"name",
")",
";"
] |
[
"prints",
"out",
"the",
"given",
"warning",
"and",
"increments",
"the",
"warning",
"count",
"if",
"the",
"given",
"class",
"names",
"pass",
"the",
"class",
"name",
"filter"
] | [
"if",
"(",
"accepts",
"(",
"class",
"name",
"1",
",",
"class",
"name",
"2",
")",
")",
"{",
"print",
"(",
"warning",
")",
";",
"}"
] |
[
"returns",
"whether",
"the",
"given",
"class",
"names",
"pass",
"the",
"class",
"name",
"filter"
] | [
"return",
"class",
"filter",
"=",
"=",
"null",
"|",
"|",
"!",
"(",
"class",
"filter",
"matches",
"(",
"class",
"name",
"1",
")",
"|",
"|",
"class",
"filter",
"matches",
"(",
"class",
"name",
"2",
")",
")",
";"
] |
[
"prints",
"out",
"the",
"given",
"warning",
"and",
"increments",
"the",
"warning",
"count"
] | [
"print",
"stream",
"println",
"(",
"warning",
")",
";",
"warning",
"count",
"+",
"+",
";"
] |
[
"return",
"the",
"protocol",
"scheme",
"for",
"the",
"file",
"system",
"<",
"p",
"/",
">"
] | [
"return",
"web",
"hdfs",
"constants",
"hsftp",
"scheme",
";"
] |
[
"although",
"we",
"may",
"not",
"have",
"intended",
"to",
"support",
"this",
"behaviour",
"this",
"test",
"passes",
"under",
"guice",
"1",
"0",
"the",
"workaround",
"is",
"to",
"add",
"an",
"explicit",
"binding",
"for",
"the",
"parameterized",
"type",
"see",... | [
"parameterized",
"<",
"string",
">",
"parameterized",
"=",
"guice",
"create",
"injector",
"(",
")",
"get",
"instance",
"(",
"key",
"get",
"(",
"new",
"type",
"literal",
"<",
"parameterized",
"<",
"string",
">",
">",
"(",
")",
"{",
"}",
")",
")",
";",
... |
[
"filter",
"the",
"given",
"iterable",
"of",
"objects",
"by",
"removing",
"any",
"object",
"whose",
"shard",
"spec",
"obtained",
"from",
"the",
"converter",
"function",
"does",
"not",
"fit",
"in",
"the",
"range",
"set",
"of",
"the",
"dim",
"filter",
"{",
"@... | [
"return",
"filter",
"shards",
"(",
"dim",
"filter",
",",
"input",
",",
"converter",
",",
"new",
"hash",
"map",
"<",
"string",
",",
"optional",
"<",
"range",
"set",
"<",
"string",
">",
">",
">",
"(",
")",
")",
";"
] |
[
"filter",
"the",
"given",
"iterable",
"of",
"objects",
"by",
"removing",
"any",
"object",
"whose",
"shard",
"spec",
"obtained",
"from",
"the",
"converter",
"function",
"does",
"not",
"fit",
"in",
"the",
"range",
"set",
"of",
"the",
"dim",
"filter",
"{",
"@... | [
"set",
"<",
"t",
">",
"ret",
"set",
"=",
"sets",
"new",
"linked",
"hash",
"set",
"(",
")",
";",
"for",
"(",
"t",
"obj",
":",
"input",
")",
"{",
"shard",
"spec",
"shard",
"=",
"converter",
"apply",
"(",
"obj",
")",
";",
"boolean",
"include",
"=",
... |
[
"/",
"alpha",
"controlled",
"slash",
"image",
"view",
"tests"
] | [
"testable",
"slash",
"image",
"view",
"iv",
"=",
"new",
"testable",
"slash",
"image",
"view",
"(",
"m",
"context",
")",
";",
"iv",
"ensure",
"slash",
"drawable",
"(",
")",
";",
"assert",
"true",
"(",
"iv",
"get",
"slash",
"drawable",
"(",
")",
"instanc... |
[
"/",
"alpha",
"controlled",
"slash",
"drawable",
"tests"
] | [
"drawable",
"mock",
"drawable",
"=",
"mock",
"(",
"drawable",
"class",
")",
";",
"alpha",
"controlled",
"slash",
"drawable",
"drawable",
"=",
"new",
"alpha",
"controlled",
"slash",
"drawable",
"(",
"mock",
"drawable",
")",
";",
"color",
"state",
"list",
"lis... |
[
"get",
"jini",
"transaction",
"returns",
"a",
"transaction",
"manager",
"proxy"
] | [
"if",
"(",
"null",
"=",
"=",
"tr",
"manager",
")",
"{",
"tr",
"manager",
"=",
"find",
"transaction",
"manager",
"(",
"uri",
")",
";",
"}",
"transaction",
"created",
"t",
"created",
"=",
"transaction",
"factory",
"create",
"(",
"tr",
"manager",
",",
"ti... |
[
"returns",
"an",
"array",
"of",
"wrappers"
] | [
"return",
"wrappers",
";"
] |
[
"set",
"the",
"number",
"of",
"nesting",
"indent",
"spaces",
"default",
"is",
"{"
] | [
"this",
"indent",
"=",
"indent",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"delay",
"time",
"property"
] | [
"return",
"delay",
"time",
";"
] |
[
"sets",
"the",
"value",
"of",
"the",
"delay",
"time",
"property"
] | [
"this",
"delay",
"time",
"=",
"value",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"shutter",
"position",
"is",
"up",
"property"
] | [
"return",
"shutter",
"position",
"is",
"up",
";"
] |
[
"sets",
"the",
"value",
"of",
"the",
"shutter",
"position",
"is",
"up",
"property"
] | [
"this",
"shutter",
"position",
"is",
"up",
"=",
"value",
";"
] |
[
"get",
"the",
"request",
"relative",
"path",
"this",
"is",
"the",
"path",
"which",
"should",
"be",
"evaluated",
"by",
"the",
"current",
"handler",
"<",
"p",
">",
"if",
"the",
"{",
"@",
"link",
"io",
"undertow",
"server",
"handlers",
"canonical",
"path",
... | [
"return",
"relative",
"path",
";"
] |
[
"sets",
"on",
"start",
"actions"
] | [
"this",
"flow",
"model",
"set",
"on",
"start",
"actions",
"(",
"new",
"linked",
"list",
"<",
">",
"(",
"vars",
")",
")",
";"
] |
[
"sets",
"start",
"state",
"id"
] | [
"this",
"flow",
"model",
"set",
"start",
"state",
"id",
"(",
"id",
")",
";"
] |
[
"sets",
"vars"
] | [
"this",
"flow",
"model",
"set",
"vars",
"(",
"new",
"linked",
"list",
"<",
">",
"(",
"vars",
")",
")",
";"
] |
[
"sets",
"global",
"transitions"
] | [
"this",
"flow",
"model",
"set",
"global",
"transitions",
"(",
"new",
"linked",
"list",
"<",
">",
"(",
"vars",
")",
")",
";"
] |
[
"sets",
"states"
] | [
"this",
"flow",
"model",
"set",
"states",
"(",
"new",
"linked",
"list",
"<",
">",
"(",
"states",
")",
")",
";"
] |
[
"add",
"or",
"subtract",
"interval",
"value",
"to",
"the",
"specified",
"date"
] | [
"calendar",
"c",
"=",
"calendar",
"get",
"instance",
"(",
")",
";",
"c",
"set",
"time",
"in",
"millis",
"(",
"in",
"get",
"time",
"(",
")",
")",
";",
"calendar",
"change",
"(",
"c",
",",
"add",
")",
";",
"return",
"new",
"date",
"(",
"c",
"get",
... |
[
"add",
"or",
"subtract",
"interval",
"value",
"to",
"the",
"specified",
"timestamp"
] | [
"calendar",
"c",
"=",
"calendar",
"get",
"instance",
"(",
")",
";",
"c",
"set",
"time",
"in",
"millis",
"(",
"in",
"get",
"time",
"(",
")",
")",
";",
"calendar",
"change",
"(",
"c",
",",
"add",
")",
";",
"return",
"new",
"timestamp",
"(",
"c",
"g... |
[
"add",
"interval",
"value",
"to",
"the",
"specified",
"calendar",
"value"
] | [
"int",
"a",
"=",
"1",
";",
"if",
"(",
"!",
"add",
")",
"{",
"a",
"=",
"-",
"1",
";",
"}",
"if",
"(",
"days",
"!",
"=",
"0",
")",
"{",
"c",
"add",
"(",
"calendar",
"day",
"of",
"month",
",",
"days",
"*",
"a",
")",
";",
"}",
"if",
"(",
... |
[
"set",
"interval",
"items"
] | [
"this",
"days",
"=",
"days",
";"
] |
[
"amazon",
"aws",
"access",
"key"
] | [
"configuration",
"set",
"access",
"key",
"(",
"access",
"key",
")",
";"
] |
[
"amazon",
"aws",
"secret",
"key"
] | [
"configuration",
"set",
"secret",
"key",
"(",
"secret",
"key",
")",
";"
] |
[
"amazon",
"aws",
"region"
] | [
"configuration",
"set",
"region",
"(",
"region",
")",
";"
] |
[
"returns",
"the",
"current",
"timeout"
] | [
"return",
"m",
"current",
"timeout",
"ms",
";"
] |
[
"returns",
"the",
"current",
"retry",
"count"
] | [
"return",
"m",
"current",
"retry",
"count",
";"
] |
[
"returns",
"the",
"backoff",
"multiplier",
"for",
"the",
"policy"
] | [
"return",
"m",
"backoff",
"multiplier",
";"
] |
[
"prepares",
"for",
"the",
"next",
"retry",
"by",
"applying",
"a",
"backoff",
"to",
"the",
"timeout"
] | [
"m",
"current",
"retry",
"count",
"+",
"+",
";",
"m",
"current",
"timeout",
"ms",
"+",
"=",
"(",
"int",
")",
"(",
"m",
"current",
"timeout",
"ms",
"*",
"m",
"backoff",
"multiplier",
")",
";",
"if",
"(",
"!",
"has",
"attempt",
"remaining",
"(",
")",... |
[
"returns",
"true",
"if",
"this",
"policy",
"has",
"attempts",
"remaining",
"false",
"otherwise"
] | [
"return",
"m",
"current",
"retry",
"count",
"<",
"=",
"m",
"max",
"num",
"retries",
";"
] |
[
"set",
"the",
"session",
"factory",
"that",
"this",
"instance",
"should",
"manage",
"transactions",
"for"
] | [
"this",
"session",
"factory",
"=",
"session",
"factory",
";"
] |
[
"return",
"the",
"session",
"factory",
"that",
"this",
"instance",
"should",
"manage",
"transactions",
"for"
] | [
"return",
"this",
"session",
"factory",
";"
] |
[
"set",
"one",
"or",
"more",
"names",
"of",
"hibernate",
"filters",
"to",
"be",
"activated",
"for",
"all",
"sessions",
"that",
"this",
"accessor",
"works",
"with",
"<",
"p",
">",
"each",
"of",
"those",
"filters",
"will",
"be",
"enabled",
"at",
"the",
"beg... | [
"this",
"filter",
"names",
"=",
"filter",
"names",
";"
] |
[
"return",
"the",
"names",
"of",
"hibernate",
"filters",
"to",
"be",
"activated",
"if",
"any"
] | [
"return",
"this",
"filter",
"names",
";"
] |
[
"set",
"whether",
"to",
"expose",
"the",
"native",
"hibernate",
"session",
"to",
"hibernate",
"callback",
"code",
"<",
"p",
">",
"default",
"is",
"false",
":",
"a",
"session",
"proxy",
"will",
"be",
"returned",
"suppressing",
"{"
] | [
"this",
"expose",
"native",
"session",
"=",
"expose",
"native",
"session",
";"
] |
[
"return",
"whether",
"to",
"expose",
"the",
"native",
"hibernate",
"session",
"to",
"hibernate",
"callback",
"code",
"or",
"rather",
"a",
"session",
"proxy"
] | [
"return",
"this",
"expose",
"native",
"session",
";"
] |
[
"set",
"whether",
"to",
"check",
"that",
"the",
"hibernate",
"session",
"is",
"not",
"in",
"read",
"-",
"only",
"mode",
"in",
"case",
"of",
"write",
"operations",
"(",
"save",
"/",
"update",
"/",
"delete",
")",
"<",
"p",
">",
"default",
"is",
"true",
... | [
"this",
"check",
"write",
"operations",
"=",
"check",
"write",
"operations",
";"
] |
[
"return",
"whether",
"to",
"check",
"that",
"the",
"hibernate",
"session",
"is",
"not",
"in",
"read",
"-",
"only",
"mode",
"in",
"case",
"of",
"write",
"operations",
"(",
"save",
"/",
"update",
"/",
"delete",
")"
] | [
"return",
"this",
"check",
"write",
"operations",
";"
] |
[
"set",
"whether",
"to",
"cache",
"all",
"queries",
"executed",
"by",
"this",
"template",
"<",
"p",
">",
"if",
"this",
"is",
"true",
"all",
"query",
"and",
"criteria",
"objects",
"created",
"by",
"this",
"template",
"will",
"be",
"marked",
"as",
"cacheable"... | [
"this",
"cache",
"queries",
"=",
"cache",
"queries",
";"
] |
[
"return",
"whether",
"to",
"cache",
"all",
"queries",
"executed",
"by",
"this",
"template"
] | [
"return",
"this",
"cache",
"queries",
";"
] |
[
"set",
"the",
"name",
"of",
"the",
"cache",
"region",
"for",
"queries",
"executed",
"by",
"this",
"template",
"<",
"p",
">",
"if",
"this",
"is",
"specified",
"it",
"will",
"be",
"applied",
"to",
"all",
"query",
"and",
"criteria",
"objects",
"created",
"b... | [
"this",
"query",
"cache",
"region",
"=",
"query",
"cache",
"region",
";"
] |
[
"return",
"the",
"name",
"of",
"the",
"cache",
"region",
"for",
"queries",
"executed",
"by",
"this",
"template"
] | [
"return",
"this",
"query",
"cache",
"region",
";"
] |
[
"set",
"the",
"fetch",
"size",
"for",
"this",
"jdbc",
"template",
"this",
"is",
"important",
"for",
"processing",
"large",
"result",
"sets",
":",
"setting",
"this",
"higher",
"than",
"the",
"default",
"value",
"will",
"increase",
"processing",
"speed",
"at",
... | [
"this",
"fetch",
"size",
"=",
"fetch",
"size",
";"
] |
[
"return",
"the",
"fetch",
"size",
"specified",
"for",
"this",
"jdbc",
"template"
] | [
"return",
"this",
"fetch",
"size",
";"
] |
[
"return",
"the",
"maximum",
"number",
"of",
"rows",
"specified",
"for",
"this",
"hibernate",
"template"
] | [
"return",
"this",
"max",
"results",
";"
] |
[
"execute",
"the",
"action",
"specified",
"by",
"the",
"given",
"action",
"object",
"within",
"a",
"native",
"{"
] | [
"return",
"do",
"execute",
"(",
"action",
",",
"true",
")",
";"
] |
[
"create",
"a",
"close",
"-",
"suppressing",
"proxy",
"for",
"the",
"given",
"hibernate",
"session",
"the",
"proxy",
"also",
"prepares",
"returned",
"query",
"and",
"criteria",
"objects"
] | [
"return",
"(",
"session",
")",
"proxy",
"new",
"proxy",
"instance",
"(",
"session",
"get",
"class",
"(",
")",
"get",
"class",
"loader",
"(",
")",
",",
"new",
"class",
"<",
"?",
">",
"[",
"]",
"{",
"session",
"class",
"}",
",",
"new",
"close",
"supp... |
[
"enable",
"the",
"specified",
"filters",
"on",
"the",
"given",
"session"
] | [
"string",
"[",
"]",
"filter",
"names",
"=",
"get",
"filter",
"names",
"(",
")",
";",
"if",
"(",
"filter",
"names",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"string",
"filter",
"name",
":",
"filter",
"names",
")",
"{",
"session",
"enable",
"filter",
... |
[
"disable",
"the",
"specified",
"filters",
"on",
"the",
"given",
"session"
] | [
"string",
"[",
"]",
"filter",
"names",
"=",
"get",
"filter",
"names",
"(",
")",
";",
"if",
"(",
"filter",
"names",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"string",
"filter",
"name",
":",
"filter",
"names",
")",
"{",
"session",
"disable",
"filter",
... |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"get",
"(",
"entity",
"class",
",",
"id",
",",
"null",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"execute",
"with",
"native",
"session",
"(",
"session",
"-",
">",
"{",
"session",
"build",
"lock",
"request",
"(",
"new",
"lock",
"options",
"(",
"lock",
"mode",
")",
")",
"lock",
"(",
"entity",
")",
";",
"return",
"null",
";",
"}",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"return",
"find",
"by",
"criteria",
"(",
"criteria",
",",
"-",
"1",
",",
"-",
"1",
")",
";"
] |
[
"prepare",
"the",
"given",
"criteria",
"object",
"applying",
"cache",
"settings",
"and",
"/",
"or",
"a",
"transaction",
"timeout"
] | [
"if",
"(",
"is",
"cache",
"queries",
"(",
")",
")",
"{",
"criteria",
"set",
"cacheable",
"(",
"true",
")",
";",
"if",
"(",
"get",
"query",
"cache",
"region",
"(",
")",
"!",
"=",
"null",
")",
"{",
"criteria",
"set",
"cache",
"region",
"(",
"get",
... |
[
"set",
"the",
"given",
"counter",
"to",
"the",
"given",
"value"
] | [
"this",
"long",
"counters",
"put",
"(",
"name",
",",
"long",
"value",
"of",
"(",
"value",
")",
")",
";"
] |
[
"set",
"the",
"given",
"counter",
"to",
"the",
"given",
"value"
] | [
"this",
"double",
"counters",
"put",
"(",
"name",
",",
"new",
"double",
"(",
"value",
")",
")",
";"
] |
[
"increment",
"the",
"given",
"counter",
"by",
"the",
"given",
"incremental",
"value",
"if",
"the",
"counter",
"does",
"not",
"exist",
"one",
"is",
"created",
"with",
"value",
"0"
] | [
"long",
"val",
"=",
"this",
"long",
"counters",
"get",
"(",
"name",
")",
";",
"long",
"retv",
"=",
"null",
";",
"if",
"(",
"val",
"=",
"=",
"null",
")",
"{",
"retv",
"=",
"long",
"value",
"of",
"(",
"inc",
")",
";",
"}",
"else",
"{",
"retv",
... |
[
"increment",
"the",
"given",
"counter",
"by",
"the",
"given",
"incremental",
"value",
"if",
"the",
"counter",
"does",
"not",
"exist",
"one",
"is",
"created",
"with",
"value",
"0"
] | [
"double",
"val",
"=",
"this",
"double",
"counters",
"get",
"(",
"name",
")",
";",
"double",
"retv",
"=",
"null",
";",
"if",
"(",
"val",
"=",
"=",
"null",
")",
"{",
"retv",
"=",
"new",
"double",
"(",
"inc",
")",
";",
"}",
"else",
"{",
"retv",
"=... |
[
"log",
"the",
"counters"
] | [
"log",
"info",
"(",
"get",
"report",
"(",
")",
")",
";"
] |
[
"initializes",
"a",
"new",
"instance",
"from",
"a",
"{",
"@",
"link",
"job",
"conf",
"}"
] | [
"this",
"long",
"counters",
"=",
"new",
"tree",
"map",
"<",
"object",
",",
"long",
">",
"(",
")",
";",
"this",
"double",
"counters",
"=",
"new",
"tree",
"map",
"<",
"object",
",",
"double",
">",
"(",
")",
";"
] |
[
"we",
"don",
"t",
"map",
"this",
"in",
"elasticsearch"
] | [] |
[
"the",
"current",
"implementation",
"does",
"not",
"include",
"dependency",
"aggregation",
"it",
"includes",
"retrieval",
"of",
"pre",
"-",
"aggregated",
"links",
"usually",
"made",
"via",
"zipkin",
"-",
"dependencies"
] | [
"aggregate",
"links",
"(",
"spans",
")",
"for",
"each",
"(",
"(",
"midnight",
",",
"links",
")",
"-",
">",
"internal",
"for",
"tests",
"write",
"dependency",
"links",
"(",
"storage",
",",
"links",
",",
"midnight",
")",
")",
";"
] |
[
"{"
] | [
"stop",
"all",
"grids",
"(",
")",
";",
"super",
"after",
"tests",
"stopped",
"(",
")",
";"
] |
[
"create",
"server",
"configuration"
] | [
"return",
"server",
"configuration",
"(",
"idx",
",",
"false",
")",
";"
] |
[
"create",
"server",
"configuration"
] | [
"ignite",
"configuration",
"cfg",
"=",
"common",
"configuration",
"(",
"idx",
")",
";",
"if",
"(",
"filter",
")",
"cfg",
"set",
"user",
"attributes",
"(",
"collections",
"singleton",
"map",
"(",
"attr",
"filtered",
",",
"true",
")",
")",
";",
"return",
"... |
[
"create",
"client",
"configuration"
] | [
"return",
"common",
"configuration",
"(",
"idx",
")",
"set",
"client",
"mode",
"(",
"true",
")",
";"
] |
[
"create",
"common",
"node",
"configuration"
] | [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"get",
"test",
"ignite",
"instance",
"name",
"(",
"idx",
")",
")",
";",
"cfg",
"set",
"failure",
"handler",
"(",
"new",
"stop",
"node",
"failure",
"handler",
"(",
")",
")",
";",... |
[
"ensure",
"index",
"is",
"used",
"in",
"plan"
] | [
"for",
"(",
"ignite",
"node",
":",
"ignition",
"all",
"grids",
"(",
")",
")",
"assert",
"index",
"used",
"(",
"(",
"ignite",
"ex",
")",
"node",
",",
"idx",
"name",
",",
"sql",
",",
"args",
")",
";"
] |
[
"ensure",
"index",
"is",
"not",
"used",
"in",
"plan"
] | [
"for",
"(",
"ignite",
"node",
":",
"ignition",
"all",
"grids",
"(",
")",
")",
"assert",
"index",
"not",
"used",
"(",
"(",
"ignite",
"ex",
")",
"node",
",",
"idx",
"name",
",",
"sql",
",",
"args",
")",
";"
] |
[
"create",
"key",
"object"
] | [
"return",
"ignite",
"binary",
"(",
")",
"builder",
"(",
"key",
"class",
"class",
"get",
"name",
"(",
")",
")",
"set",
"field",
"(",
"field",
"key",
",",
"id",
")",
"build",
"(",
")",
";"
] |
[
"create",
"value",
"object"
] | [
"return",
"ignite",
"binary",
"(",
")",
"builder",
"(",
"value",
"class",
"class",
"get",
"name",
"(",
")",
")",
"set",
"field",
"(",
"field",
"name",
"1",
"escaped",
",",
"id",
")",
"set",
"field",
"(",
"field",
"name",
"2",
"escaped",
",",
"id",
... |
[
"create",
"key",
"/",
"value",
"entry",
"for",
"the",
"given",
"key"
] | [
"return",
"new",
"t2",
"<",
">",
"(",
"key",
"(",
"ignite",
",",
"id",
")",
",",
"value",
"(",
"ignite",
",",
"id",
")",
")",
";"
] |
[
"get",
"common",
"cache"
] | [
"return",
"node",
"cache",
"(",
"cache",
"name",
")",
"with",
"keep",
"binary",
"(",
")",
";"
] |
[
"get",
"key"
] | [
"binary",
"object",
"key",
"=",
"key",
"(",
"node",
",",
"id",
")",
";",
"return",
"cache",
"(",
"node",
")",
"get",
"(",
"key",
")",
";"
] |
[
"put",
"key",
"range"
] | [
"try",
"(",
"ignite",
"data",
"streamer",
"streamer",
"=",
"node",
"data",
"streamer",
"(",
"cache",
"name",
")",
")",
"{",
"streamer",
"allow",
"overwrite",
"(",
"true",
")",
";",
"streamer",
"keep",
"binary",
"(",
"true",
")",
";",
"for",
"(",
"int",... |
[
"put",
"key",
"to",
"cache"
] | [
"binary",
"object",
"key",
"=",
"key",
"(",
"node",
",",
"id",
")",
";",
"binary",
"object",
"val",
"=",
"value",
"(",
"node",
",",
"id",
")",
";",
"cache",
"(",
"node",
")",
"put",
"(",
"key",
",",
"val",
")",
";"
] |
[
"remove",
"key",
"range"
] | [
"for",
"(",
"int",
"i",
"=",
"from",
";",
"i",
"<",
"to",
";",
"i",
"+",
"+",
")",
"remove",
"(",
"node",
",",
"i",
")",
";"
] |
[
"remove",
"key",
"form",
"cache"
] | [
"binary",
"object",
"key",
"=",
"key",
"(",
"node",
",",
"id",
")",
";",
"cache",
"(",
"node",
")",
"remove",
"(",
"key",
")",
";"
] |
[
"assert",
"sql",
"simple",
"data",
"state"
] | [
"for",
"(",
"ignite",
"node",
":",
"ignition",
"all",
"grids",
"(",
")",
")",
"assert",
"sql",
"simple",
"data",
"(",
"node",
",",
"sql",
",",
"exp",
"size",
")",
";"
] |
[
"{"
] | [
"return",
"node",
"attribute",
"(",
"attr",
"filtered",
")",
"=",
"=",
"null",
";"
] |
[
"factory",
"method",
"to",
"construct",
"a",
"new",
"wasb",
"{",
"@",
"link",
"under",
"file",
"system",
"}"
] | [
"configuration",
"wasb",
"conf",
"=",
"create",
"configuration",
"(",
"conf",
")",
";",
"return",
"new",
"wasb",
"under",
"file",
"system",
"(",
"uri",
",",
"conf",
",",
"wasb",
"conf",
")",
";"
] |
[
"adds",
"{",
"@",
"code",
"node",
"}",
"to",
"the",
"graph",
"and",
"returns",
"the",
"associated",
"{",
"@",
"link",
"network",
"connections",
"}"
] | [
"network",
"connections",
"<",
"n",
",",
"e",
">",
"connections",
"=",
"new",
"connections",
"(",
")",
";",
"check",
"state",
"(",
"node",
"connections",
"put",
"(",
"node",
",",
"connections",
")",
"=",
"=",
"null",
")",
";",
"return",
"connections",
... |
[
"todo",
"this",
"could",
"be",
"moved",
"to",
"a",
"separate",
"deployment",
"unit",
"processor",
"operating",
"on",
"endpoints",
"(",
"together",
"with",
"the",
"rest",
"of",
"the",
"config",
"resolution",
"mechanism",
")"
] | [
"w",
"s",
"endpoint",
"config",
"mapping",
"mapping",
"=",
"unit",
"get",
"attachment",
"(",
"w",
"s",
"attachment",
"keys",
"ws",
"endpoint",
"config",
"mapping",
"key",
")",
";",
"if",
"(",
"mapping",
"=",
"=",
"null",
")",
"{",
"mapping",
"=",
"new"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.