docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"the",
"interfaces",
"implemented",
"by",
"this",
"class",
"or",
"extended",
"by",
"this",
"interface",
"returns",
"an",
"empty",
"list",
"if",
"none",
"is",
"specified"
] | [
"iterable",
"<",
"a",
"s",
"t",
"class",
"or",
"interface",
"type",
">",
"it",
"=",
"is",
"interface",
"(",
")",
"?",
"get",
"first",
"child",
"of",
"type",
"(",
"a",
"s",
"t",
"extends",
"list",
"class",
")",
":",
"get",
"first",
"child",
"of",
"type",
"(",
"a",
"s",
"t",
"implements",
"list",
"class",
")",
";",
"return",
"it",
"=",
"=",
"null",
"?",
"collections",
"<",
"a",
"s",
"t",
"class",
"or",
"interface",
"type",
">",
"empty",
"list",
"(",
")",
":",
"collection",
"util",
"to",
"list",
"(",
"it",
"iterator",
"(",
")",
")",
";"
] |
[
"tests",
"ranges"
] | [
"do",
"test",
"(",
"go",
"redundant",
"blank",
"arg",
"in",
"range",
"inspection",
"delete",
"blank",
"argument",
"quick",
"fix",
"name",
",",
"true",
")",
";"
] |
[
"print",
"an",
"error",
"message",
"if",
"verbose",
"is",
"true"
] | [
"if",
"(",
"verbose",
")",
"{",
"print",
"error",
"(",
"message",
")",
";",
"}"
] |
[
"print",
"an",
"info",
"message",
"if",
"verbose",
"is",
"true"
] | [
"if",
"(",
"verbose",
")",
"{",
"print",
"info",
"(",
"message",
")",
";",
"}"
] |
[
"determine",
"whether",
"the",
"{",
"#",
"link",
"reporter",
"(",
")",
"}",
"created",
"by",
"this",
"apparatus",
"will",
"fail",
"fast",
"that",
"is",
"throw",
"an",
"exception",
"whenever",
"we",
"encounter",
"an",
"event",
"of",
"matching",
"{"
] | [
"this",
"fail",
"fast",
"=",
"fail",
"fast",
";",
"if",
"(",
"fail",
"fast",
")",
"{",
"reporter",
"add",
"handler",
"(",
"environment",
"fail",
"fast",
"handler",
")",
";",
"}",
"else",
"{",
"reporter",
"remove",
"handler",
"(",
"environment",
"fail",
"fast",
"handler",
")",
";",
"}"
] |
[
"redirects",
"all",
"output",
"to",
"the",
"specified",
"out",
"err",
"stream",
"pair",
"returns",
"the",
"previous",
"out",
"err"
] | [
"return",
"printing",
"event",
"handler",
"set",
"out",
"err",
"(",
"out",
"err",
")",
";"
] |
[
"utility",
"method",
":",
"asserts",
"that",
"the",
"{"
] | [
"more",
"asserts",
"assert",
"no",
"events",
"(",
"warnings",
"(",
")",
")",
";",
"more",
"asserts",
"assert",
"no",
"events",
"(",
"errors",
"(",
")",
")",
";"
] |
[
"utility",
"method",
":",
"assert",
"that",
"the",
"{"
] | [
"return",
"more",
"asserts",
"assert",
"contains",
"event",
"(",
"event",
"collector",
",",
"expected",
"message",
",",
"event",
"kind",
"info",
")",
";"
] |
[
"utility",
"method",
":",
"assert",
"that",
"the",
"{"
] | [
"return",
"more",
"asserts",
"assert",
"contains",
"event",
"(",
"event",
"collector",
",",
"expected",
"message",
",",
"event",
"kind",
"error",
")",
";"
] |
[
"utility",
"method",
":",
"assert",
"that",
"the",
"{"
] | [
"return",
"more",
"asserts",
"assert",
"contains",
"event",
"(",
"event",
"collector",
",",
"expected",
"message",
",",
"event",
"kind",
"warning",
")",
";"
] |
[
"utility",
"method",
":",
"assert",
"that",
"the",
"{"
] | [
"return",
"more",
"asserts",
"assert",
"contains",
"event",
"(",
"event",
"collector",
",",
"expected",
"message",
",",
"event",
"kind",
"debug",
")",
";"
] |
[
"utility",
"method",
":",
"assert",
"that",
"the",
"{"
] | [
"return",
"more",
"asserts",
"assert",
"contains",
"event",
"(",
"event",
"collector",
",",
"expected",
"message",
",",
"kind",
")",
";"
] |
[
"utility",
"method",
":",
"assert",
"that",
"the",
"{"
] | [
"return",
"more",
"asserts",
"assert",
"contains",
"event",
"with",
"words",
"in",
"quotes",
"(",
"event",
"collector",
",",
"words",
")",
";"
] |
[
"get",
"the",
"string",
"used",
"to",
"call",
"this",
"command"
] | [
"return",
"cmd",
"str",
";"
] |
[
"get",
"the",
"option",
"string"
] | [
"return",
"option",
"str",
";"
] |
[
"get",
"a",
"usage",
"string",
"contains",
"the",
"command",
"and",
"the",
"options"
] | [
"return",
"cmd",
"str",
"+",
"\"",
"\"",
"+",
"option",
"str",
";"
] |
[
"add",
"this",
"command",
"to",
"a",
"map",
"use",
"the",
"command",
"string",
"as",
"key"
] | [
"cmd",
"map",
"put",
"(",
"cmd",
"str",
",",
"this",
")",
";"
] |
[
"parse",
"the",
"command",
"arguments"
] | [
"abstract",
"public",
"cli",
"command",
"parse",
"(",
"string",
"cmd",
"args",
"[",
"]",
")",
"throws",
"cli",
"parse",
"exception",
";"
] |
[
"returns",
"the",
"joystick",
"button",
"that",
"triggered",
"this",
"event"
] | [
"return",
"button",
";"
] |
[
"the",
"button",
"index"
] | [
"return",
"button",
"get",
"button",
"id",
"(",
")",
";"
] |
[
"the",
"joystick",
"index"
] | [
"return",
"button",
"get",
"joystick",
"(",
")",
"get",
"joy",
"id",
"(",
")",
";"
] |
[
"{"
] | [
"long",
"link",
"=",
"get",
"link",
"(",
"page",
"addr",
",",
"idx",
")",
";",
"assert",
"link",
"!",
"=",
"0",
";",
"if",
"(",
"store",
"mvcc",
"info",
"(",
")",
")",
"{",
"long",
"mvcc",
"crd",
"ver",
"=",
"get",
"mvcc",
"coordinator",
"version",
"(",
"page",
"addr",
",",
"idx",
")",
";",
"long",
"mvcc",
"cntr",
"=",
"get",
"mvcc",
"counter",
"(",
"page",
"addr",
",",
"idx",
")",
";",
"int",
"mvcc",
"op",
"cntr",
"=",
"get",
"mvcc",
"operation",
"counter",
"(",
"page",
"addr",
",",
"idx",
")",
";",
"return",
"(",
"(",
"h",
"2",
"tree",
")",
"tree",
")",
"create",
"row",
"from",
"link",
"(",
"link",
",",
"mvcc",
"crd",
"ver",
",",
"mvcc",
"cntr",
",",
"mvcc",
"op",
"cntr",
")",
";",
"}",
"return",
"(",
"(",
"h",
"2",
"tree",
")",
"tree",
")",
"create",
"row",
"from",
"link",
"(",
"link",
")",
";"
] |
[
"if",
"given",
"context",
"is",
"an",
"instance",
"of",
"listenable",
"activity",
"then",
"creates",
"new",
"instance",
"of",
"weak",
"reference",
"activity",
"listener",
"adapter",
"and",
"adds",
"it",
"to",
"activity",
"s",
"listeners"
] | [
"listenable",
"activity",
"activity",
"=",
"get",
"listenable",
"activity",
"(",
"context",
")",
";",
"if",
"(",
"activity",
"!",
"=",
"null",
")",
"{",
"listener",
"listener",
"=",
"new",
"listener",
"(",
"activity",
"listener",
")",
";",
"activity",
"add",
"activity",
"listener",
"(",
"listener",
")",
";",
"}"
] |
[
"copies",
"the",
"{",
"@",
"code",
"float",
"}",
"value",
"to",
"the",
"i",
"-",
"th",
"element",
"of",
"a",
"native",
"array"
] | [
"public",
"native",
"float",
"pointer",
"put",
"(",
"long",
"i",
",",
"float",
"f",
")",
";"
] |
[
"reads",
"a",
"portion",
"of",
"the",
"native",
"array",
"into",
"a",
"java",
"array"
] | [
"public",
"native",
"float",
"pointer",
"get",
"(",
"float",
"[",
"]",
"array",
",",
"int",
"offset",
",",
"int",
"length",
")",
";"
] |
[
"writes",
"a",
"portion",
"of",
"a",
"java",
"array",
"into",
"the",
"native",
"array"
] | [
"public",
"native",
"float",
"pointer",
"put",
"(",
"float",
"[",
"]",
"array",
",",
"int",
"offset",
",",
"int",
"length",
")",
";"
] |
[
"{"
] | [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"tcp",
"discovery",
"spi",
"disco",
"=",
"new",
"tcp",
"discovery",
"spi",
"(",
")",
";",
"disco",
"set",
"ip",
"finder",
"(",
"ip",
"finder",
")",
";",
"cfg",
"set",
"discovery",
"spi",
"(",
"disco",
")",
";",
"cache",
"configuration",
"cache",
"cfg",
"=",
"default",
"cache",
"configuration",
"(",
")",
";",
"cache",
"cfg",
"set",
"cache",
"mode",
"(",
"partitioned",
")",
";",
"cache",
"cfg",
"set",
"write",
"synchronization",
"mode",
"(",
"cache",
"write",
"synchronization",
"mode",
"full",
"sync",
")",
";",
"cache",
"cfg",
"set",
"rebalance",
"mode",
"(",
"sync",
")",
";",
"cache",
"cfg",
"set",
"atomicity",
"mode",
"(",
"atomicity",
"mode",
"(",
")",
")",
";",
"cache",
"cfg",
"set",
"backups",
"(",
"1",
")",
";",
"fifo",
"eviction",
"policy",
"plc",
"=",
"new",
"fifo",
"eviction",
"policy",
"(",
")",
";",
"plc",
"set",
"max",
"size",
"(",
"10",
")",
";",
"cache",
"cfg",
"set",
"eviction",
"policy",
"(",
"plc",
")",
";",
"cache",
"cfg",
"set",
"onheap",
"cache",
"enabled",
"(",
"true",
")",
";",
"near",
"cache",
"configuration",
"near",
"cfg",
"=",
"new",
"near",
"cache",
"configuration",
"(",
")",
";",
"fifo",
"eviction",
"policy",
"near",
"plc",
"=",
"new",
"fifo",
"eviction",
"policy",
"(",
")",
";",
"near",
"plc",
"set",
"max",
"size",
"(",
"10",
")",
";",
"near",
"cfg",
"set",
"near",
"eviction",
"policy",
"(",
"near",
"plc",
")",
";",
"cache",
"cfg",
"set",
"near",
"configuration",
"(",
"near",
"cfg",
")",
";",
"cfg",
"set",
"cache",
"configuration",
"(",
"cache",
"cfg",
")",
";",
"return",
"cfg",
";"
] |
[
"for",
"internal",
"use",
"only"
] | [
"this",
"id",
"=",
"id",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"metric",
"is",
"qualitative"
] | [
"this",
"qualitative",
"=",
"qualitative",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"key"
] | [
"this",
"key",
"=",
"key",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"type"
] | [
"this",
"type",
"=",
"type",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"description"
] | [
"this",
"description",
"=",
"description",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"metric",
"is",
"managed",
"by",
"users",
"(",
"manual",
"metric",
")"
] | [
"this",
"user",
"managed",
"=",
"user",
"managed",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"metric",
"is",
"enabled"
] | [
"this",
"enabled",
"=",
"enabled",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"direction"
] | [
"this",
"direction",
"=",
"direction",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"domain",
"for",
"the",
"metric",
"(",
"general",
"complexity",
")"
] | [
"this",
"domain",
"=",
"domain",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"name"
] | [
"this",
"name",
"=",
"name",
";",
"return",
"this",
";"
] |
[
"merge",
"with",
"fields",
"from",
"other",
"metric",
"all",
"fields",
"are",
"copied",
"except",
"the",
"id"
] | [
"this",
"description",
"=",
"with",
"description",
";",
"this",
"domain",
"=",
"with",
"domain",
";",
"this",
"enabled",
"=",
"with",
"enabled",
";",
"this",
"qualitative",
"=",
"with",
"qualitative",
";",
"this",
"worst",
"value",
"=",
"with",
"worst",
"value",
";",
"this",
"best",
"value",
"=",
"with",
"best",
"value",
";",
"this",
"optimized",
"best",
"value",
"=",
"with",
"optimized",
"best",
"value",
";",
"this",
"direction",
"=",
"with",
"direction",
";",
"this",
"key",
"=",
"with",
"key",
";",
"this",
"type",
"=",
"with",
"type",
";",
"this",
"name",
"=",
"with",
"name",
";",
"this",
"user",
"managed",
"=",
"with",
"user",
"managed",
";",
"this",
"hidden",
"=",
"with",
"hidden",
";",
"this",
"delete",
"historical",
"data",
"=",
"with",
"delete",
"historical",
"data",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"description"
] | [
"this",
"description",
"=",
"d",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"metric",
"direction",
"(",
"used",
"for",
"numeric",
"values",
"only",
")",
"which",
"is",
"used",
"in",
"the",
"web",
"ui",
"to",
"show",
"if",
"the",
"trend",
"of",
"a",
"metric",
"is",
"good",
"or",
"not",
"<",
"ul",
">",
"<",
"li",
">",
"metric",
"direction",
"worst",
":",
"indicates",
"that",
"an",
"increase",
"of",
"the",
"metric",
"value",
"is",
"not",
"a",
"good",
"thing",
"(",
"example",
":",
"the",
"complexity",
"of",
"a",
"function",
")",
"<",
"/",
"li",
">",
"<",
"li",
">",
"metric",
"direction",
"better",
":",
"indicates",
"that",
"an",
"increase",
"of",
"the",
"metric",
"value",
"is",
"a",
"good",
"thing",
"(",
"example",
":",
"the",
"code",
"coverage",
"of",
"a",
"function",
")",
"<",
"/",
"li",
">",
"<",
"li",
">",
"metric",
"direction",
"none",
":",
"indicates",
"that",
"the",
"variation",
"of",
"the",
"metric",
"value",
"is",
"neither",
"good",
"nor",
"bad",
"(",
"example",
":",
"number",
"of",
"files",
")",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"metric",
"direction",
"none",
"is",
"the",
"default",
"value"
] | [
"this",
"direction",
"=",
"d",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"metric",
"is",
"qualitative",
"or",
"not",
"default",
"value",
"is",
"false",
"<",
"br",
">",
"if",
"set",
"to",
"true",
"then",
"variations",
"of",
"this",
"metric",
"will",
"be",
"highlighted",
"in",
"the",
"web",
"ui",
"(",
"for",
"instance",
"trend",
"icons",
"will",
"be",
"red",
"or",
"green",
"instead",
"of",
"default",
"grey",
")"
] | [
"this",
"qualitative",
"=",
"b",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"domain",
"for",
"the",
"metric",
"(",
"general",
"complexity",
")",
"this",
"is",
"used",
"to",
"group",
"metrics",
"in",
"the",
"web",
"ui",
"<",
"br",
">",
"by",
"default",
"the",
"metric",
"belongs",
"to",
"no",
"specific",
"domain"
] | [
"this",
"domain",
"=",
"d",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"worst",
"value",
"that",
"the",
"metric",
"can",
"get",
"(",
"example",
":",
"0",
"0",
"for",
"code",
"coverage",
")",
"no",
"worst",
"value",
"is",
"set",
"by",
"default"
] | [
"this",
"worst",
"value",
"=",
"d",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"best",
"value",
"that",
"the",
"metric",
"can",
"get",
"(",
"example",
":",
"100",
"0",
"for",
"code",
"coverage",
")",
"no",
"best",
"value",
"is",
"set",
"by",
"default",
"<",
"br",
">",
"resources",
"would",
"be",
"hidden",
"on",
"drilldown",
"page",
"if",
"the",
"value",
"of",
"measure",
"equals",
"to",
"best",
"value"
] | [
"this",
"best",
"value",
"=",
"d",
";",
"return",
"this",
";"
] |
[
"specifies",
"whether",
"file",
"-",
"level",
"measures",
"that",
"equal",
"to",
"the",
"defined",
"best",
"value",
"are",
"stored",
"or",
"not",
"default",
"is",
"false",
"<",
"br",
">",
"example",
"with",
"the",
"metric",
"that",
"stores",
"the",
"number",
"of",
"violation",
"(",
"{",
"@",
"link",
"core",
"metrics",
"#",
"violations",
"}",
")",
":",
"if",
"a",
"file",
"has",
"no",
"violation",
"then",
"the",
"value",
"0",
"won",
"t",
"be",
"stored",
"in",
"the",
"database"
] | [
"this",
"optimized",
"best",
"value",
"=",
"b",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"metric",
"should",
"be",
"hidden",
"in",
"web",
"ui",
"(",
"e",
"g",
"in",
"time",
"machine",
")",
"default",
"is",
"false"
] | [
"this",
"hidden",
"=",
"b",
";",
"return",
"this",
";"
] |
[
"specifies",
"whether",
"this",
"metric",
"can",
"be",
"edited",
"online",
"in",
"the",
"manual",
"measures",
"page",
"default",
"is",
"false"
] | [
"this",
"user",
"managed",
"=",
"b",
";",
"return",
"this",
";"
] |
[
"specifies",
"whether",
"measures",
"from",
"the",
"past",
"can",
"be",
"automatically",
"deleted",
"to",
"minimize",
"database",
"volume",
"<",
"br",
">",
"by",
"default",
"historical",
"data",
"are",
"kept"
] | [
"this",
"delete",
"historical",
"data",
"=",
"b",
";",
"return",
"this",
";"
] |
[
"creates",
"a",
"new",
"metric",
"definition",
"based",
"on",
"the",
"properties",
"set",
"on",
"this",
"metric",
"builder"
] | [
"if",
"(",
"value",
"type",
"percent",
"=",
"=",
"this",
"type",
")",
"{",
"this",
"best",
"value",
"=",
"(",
"direction",
"=",
"=",
"direction",
"better",
")",
"?",
"100",
"0",
":",
"0",
"0",
";",
"this",
"worst",
"value",
"=",
"(",
"direction",
"=",
"=",
"direction",
"better",
")",
"?",
"0",
"0",
":",
"100",
"0",
";",
"this",
"decimal",
"scale",
"=",
"first",
"non",
"null",
"(",
"decimal",
"scale",
",",
"default",
"decimal",
"scale",
")",
";",
"}",
"else",
"if",
"(",
"value",
"type",
"float",
"=",
"=",
"this",
"type",
")",
"{",
"this",
"decimal",
"scale",
"=",
"first",
"non",
"null",
"(",
"decimal",
"scale",
",",
"default",
"decimal",
"scale",
")",
";",
"}",
"return",
"new",
"metric",
"<",
">",
"(",
"this",
")",
";"
] |
[
"<",
"p",
">",
"the",
"service",
"code",
"for",
"the",
"service",
"whose",
"attributes",
"you",
"want",
"to",
"retrieve",
"for",
"example",
"if",
"you",
"want",
"the",
"retrieve",
"an",
"ec2",
"attribute",
"use",
"<",
"code",
">",
"amazon",
"e",
"c",
"2",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"service",
"code",
"(",
"service",
"code",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"attribute",
"that",
"you",
"want",
"to",
"retrieve",
"the",
"values",
"for",
"such",
"as",
"<",
"code",
">",
"volume",
"type",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"attribute",
"name",
"(",
"attribute",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"pagination",
"token",
"that",
"indicates",
"the",
"next",
"set",
"of",
"results",
"that",
"you",
"want",
"to",
"retrieve",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"results",
"to",
"return",
"in",
"response",
"<",
"/",
"p",
">"
] | [
"set",
"max",
"results",
"(",
"max",
"results",
")",
";",
"return",
"this",
";"
] |
[
"restarts",
"tensor",
"flow",
"cluster"
] | [
"stop",
"cluster",
"(",
"false",
")",
";",
"start",
"cluster",
"(",
")",
";"
] |
[
"stops",
"tensor",
"flow",
"cluster"
] | [
"cluster",
"mgr",
"stop",
"cluster",
"if",
"exists",
"(",
"cluster",
"id",
")",
";",
"if",
"(",
"terminate",
")",
"ignite",
"message",
"(",
")",
"send",
"(",
"topic",
"name",
",",
"optional",
"empty",
"(",
")",
")",
";"
] |
[
"checks",
"if",
"affinity",
"mapping",
"has",
"been",
"changed"
] | [
"affinity",
"<",
"?",
">",
"affinity",
"=",
"ignite",
"affinity",
"(",
"job",
"archive",
"get",
"upstream",
"cache",
"name",
"(",
")",
")",
";",
"int",
"parts",
"=",
"affinity",
"partitions",
"(",
")",
";",
"uuid",
"[",
"]",
"ids",
"=",
"new",
"uuid",
"[",
"parts",
"]",
";",
"for",
"(",
"int",
"part",
"=",
"0",
";",
"part",
"<",
"parts",
";",
"part",
"+",
"+",
")",
"{",
"cluster",
"node",
"node",
"=",
"affinity",
"map",
"partition",
"to",
"node",
"(",
"part",
")",
";",
"uuid",
"node",
"id",
"=",
"node",
"id",
"(",
")",
";",
"ids",
"[",
"part",
"]",
"=",
"node",
"id",
";",
"}",
"if",
"(",
"prev",
"=",
"=",
"null",
"|",
"|",
"!",
"arrays",
"equals",
"(",
"ids",
",",
"prev",
")",
")",
"{",
"prev",
"=",
"ids",
";",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"checks",
"if",
"chief",
"has",
"failed"
] | [
"return",
"cluster",
"mgr",
"get",
"chief",
"exception",
"(",
"cluster",
"id",
")",
"!",
"=",
"null",
";"
] |
[
"checks",
"if",
"user",
"script",
"failed"
] | [
"return",
"cluster",
"mgr",
"get",
"user",
"script",
"exception",
"(",
"cluster",
"id",
")",
"!",
"=",
"null",
";"
] |
[
"checks",
"if",
"user",
"script",
"has",
"completed",
"successfully"
] | [
"return",
"cluster",
"mgr",
"is",
"user",
"script",
"completed",
"(",
"cluster",
"id",
")",
"&",
"&",
"cluster",
"mgr",
"get",
"user",
"script",
"exception",
"(",
"cluster",
"id",
")",
"=",
"=",
"null",
";"
] |
[
"sets",
"the",
"snapshot",
"name"
] | [
"this",
"snapshot",
"=",
"snapshot",
";",
"return",
"this",
";"
] |
[
"sets",
"repository",
"name"
] | [
"this",
"repository",
"=",
"repository",
";",
"return",
"this",
";"
] |
[
"sets",
"a",
"list",
"of",
"indices",
"that",
"should",
"be",
"included",
"into",
"the",
"snapshot",
"<",
"p",
">",
"the",
"list",
"of",
"indices",
"supports",
"multi",
"-",
"index",
"syntax",
"for",
"example",
":",
"+",
"test",
"*",
"-",
"test",
"4",
"2",
"will",
"index",
"all",
"indices",
"with",
"prefix",
"test",
"except",
"index",
"test",
"4",
"2",
"aliases",
"are",
"supported",
"an",
"empty",
"list",
"or",
"{",
"all",
"}",
"will",
"snapshot",
"all",
"open",
"indices",
"in",
"the",
"cluster"
] | [
"this",
"indices",
"=",
"indices",
";",
"return",
"this",
";"
] |
[
"sets",
"a",
"list",
"of",
"indices",
"that",
"should",
"be",
"included",
"into",
"the",
"snapshot",
"<",
"p",
">",
"the",
"list",
"of",
"indices",
"supports",
"multi",
"-",
"index",
"syntax",
"for",
"example",
":",
"+",
"test",
"*",
"-",
"test",
"4",
"2",
"will",
"index",
"all",
"indices",
"with",
"prefix",
"test",
"except",
"index",
"test",
"4",
"2",
"aliases",
"are",
"supported",
"an",
"empty",
"list",
"or",
"{",
"all",
"}",
"will",
"snapshot",
"all",
"open",
"indices",
"in",
"the",
"cluster"
] | [
"this",
"indices",
"=",
"indices",
"to",
"array",
"(",
"new",
"string",
"[",
"indices",
"size",
"(",
")",
"]",
")",
";",
"return",
"this",
";"
] |
[
"specifies",
"the",
"indices",
"options",
"like",
"what",
"type",
"of",
"requested",
"indices",
"to",
"ignore",
"for",
"example",
"indices",
"that",
"don",
"t",
"exist"
] | [
"this",
"indices",
"options",
"=",
"indices",
"options",
";",
"return",
"this",
";"
] |
[
"set",
"to",
"true",
"to",
"allow",
"indices",
"with",
"unavailable",
"shards",
"to",
"be",
"partially",
"snapshotted"
] | [
"this",
"partial",
"=",
"partial",
";",
"return",
"this",
";"
] |
[
"if",
"set",
"to",
"true",
"the",
"operation",
"should",
"wait",
"for",
"the",
"snapshot",
"completion",
"before",
"returning"
] | [
"this",
"wait",
"for",
"completion",
"=",
"wait",
"for",
"completion",
";",
"return",
"this",
";"
] |
[
"sets",
"repository",
"-",
"specific",
"snapshot",
"settings",
"<",
"p",
">",
"see",
"repository",
"documentation",
"for",
"more",
"information"
] | [
"this",
"settings",
"=",
"settings",
";",
"return",
"this",
";"
] |
[
"sets",
"repository",
"-",
"specific",
"snapshot",
"settings",
"<",
"p",
">",
"see",
"repository",
"documentation",
"for",
"more",
"information"
] | [
"this",
"settings",
"=",
"settings",
"build",
"(",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"repository",
"-",
"specific",
"snapshot",
"settings",
"in",
"json",
"or",
"yaml",
"format",
"<",
"p",
">",
"see",
"repository",
"documentation",
"for",
"more",
"information"
] | [
"this",
"settings",
"=",
"settings",
"builder",
"(",
")",
"load",
"from",
"source",
"(",
"source",
",",
"x",
"content",
"type",
")",
"build",
"(",
")",
";",
"return",
"this",
";"
] |
[
"set",
"to",
"true",
"if",
"global",
"state",
"should",
"be",
"stored",
"as",
"part",
"of",
"the",
"snapshot"
] | [
"this",
"include",
"global",
"state",
"=",
"include",
"global",
"state",
";",
"return",
"this",
";"
] |
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
] | [
"s",
"type",
"(",
"s",
"type",
")",
";",
"p",
"next",
"(",
"p",
"next",
")",
";",
"acquire",
"count",
"(",
"acquire",
"count",
")",
";",
"p",
"acquire",
"syncs",
"(",
"p",
"acquire",
"syncs",
")",
";",
"p",
"acquire",
"keys",
"(",
"p",
"acquire",
"keys",
")",
";",
"p",
"acquire",
"timeouts",
"(",
"p",
"acquire",
"timeouts",
")",
";",
"release",
"count",
"(",
"release",
"count",
")",
";",
"p",
"release",
"syncs",
"(",
"p",
"release",
"syncs",
")",
";",
"p",
"release",
"keys",
"(",
"p",
"release",
"keys",
")",
";",
"return",
"this",
";"
] |
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
] | [
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"alloc",
"mem",
"alloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"check",
"malloc",
"(",
"capacity",
",",
"sizeof",
")",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"calloc",
"mem",
"calloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"buffer",
"utils",
"}"
] | [
"byte",
"buffer",
"container",
"=",
"create",
"(",
"capacity",
",",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"buffer",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"capacity",
",",
"container",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"malloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"calloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] | [
"return",
"wrap",
"(",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] | [
"return",
"calloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"stype",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"pnext",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"acquirecount",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"long",
"buffer",
"safe",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"pacquiresyncs",
")",
",",
"nacquire",
"count",
"(",
"struct",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"long",
"buffer",
"safe",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"pacquirekeys",
")",
",",
"nacquire",
"count",
"(",
"struct",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"int",
"buffer",
"safe",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"pacquiretimeouts",
")",
",",
"nacquire",
"count",
"(",
"struct",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"releasecount",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"long",
"buffer",
"safe",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"preleasesyncs",
")",
",",
"nrelease",
"count",
"(",
"struct",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"long",
"buffer",
"safe",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"preleasekeys",
")",
",",
"nrelease",
"count",
"(",
"struct",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"win",
"3",
"2",
"keyed",
"mutex",
"acquire",
"release",
"info",
"k",
"h",
"r",
"stype",
",",
"value",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.