docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"gets",
"the",
"actual",
"(",
"end",
")",
"position",
"of",
"the",
"contents",
"in",
"the",
"byte",
"array",
"(",
"different",
"if",
"the",
"array",
"was",
"expanded",
"either",
"by",
"setting",
"the",
"initial",
"capacity",
"or",
"its",
"length",
")",
"should",
"be",
"used",
"when",
"creating",
"the",
"string",
"representation",
"of",
"the",
"body",
"to",
"only",
"return",
"the",
"actual",
"contents",
"set",
"so",
"far"
] | [
"return",
"pos",
";"
] |
[
"gets",
"the",
"contents",
"of",
"the",
"body",
"as",
"an",
"array",
"of",
"bytes",
"<",
"p",
">",
"the",
"returned",
"array",
"of",
"bytes",
"mustn",
"t",
"be",
"modified",
"is",
"returned",
"a",
"reference",
"instead",
"of",
"a",
"copy",
"to",
"avoid",
"more",
"memory",
"allocations"
] | [
"return",
"body",
";"
] |
[
"gets",
"the",
"current",
"length",
"of",
"the",
"body"
] | [
"return",
"body",
"length",
";"
] |
[
"sets",
"the",
"current",
"length",
"of",
"the",
"body",
"if",
"the",
"current",
"content",
"is",
"longer",
"the",
"excessive",
"data",
"will",
"be",
"truncated"
] | [
"if",
"(",
"length",
"<",
"0",
"|",
"|",
"body",
"length",
"=",
"=",
"length",
")",
"{",
"return",
";",
"}",
"int",
"old",
"pos",
"=",
"pos",
";",
"pos",
"=",
"math",
"min",
"(",
"pos",
",",
"length",
")",
";",
"byte",
"[",
"]",
"new",
"body",
"=",
"new",
"byte",
"[",
"length",
"]",
";",
"system",
"arraycopy",
"(",
"body",
",",
"0",
",",
"new",
"body",
",",
"0",
",",
"pos",
")",
";",
"body",
"=",
"new",
"body",
";",
"if",
"(",
"old",
"pos",
">",
"pos",
")",
"{",
"cached",
"string",
"=",
"null",
";",
"}"
] |
[
"gets",
"the",
"name",
"of",
"the",
"charset",
"used",
"for",
"{",
"@",
"code",
"string",
"}",
"related",
"operations",
"<",
"p",
">",
"if",
"no",
"charset",
"was",
"set",
"it",
"returns",
"the",
"default"
] | [
"if",
"(",
"charset",
"!",
"=",
"null",
")",
"{",
"return",
"charset",
"name",
"(",
")",
";",
"}",
"return",
"default",
"charset",
";"
] |
[
"sets",
"the",
"charset",
"to",
"the",
"given",
"value",
"and",
"resets",
"the",
"cached",
"string",
"(",
"that",
"is",
"is",
"set",
"to",
"{",
"@",
"code",
"null",
"}",
")"
] | [
"this",
"charset",
"=",
"new",
"charset",
";",
"this",
"cached",
"string",
"=",
"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",
"owner",
":",
"return",
"is",
"set",
"owner",
"(",
")",
";",
"case",
"group",
":",
"return",
"is",
"set",
"group",
"(",
")",
";",
"case",
"mode",
":",
"return",
"is",
"set",
"mode",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"returns",
"a",
"builder",
"that",
"can",
"be",
"used",
"to",
"construct",
"a",
"{"
] | [
"return",
"new",
"auto",
"value",
"action",
"result",
"builder",
"(",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"time",
"taken",
"by",
"a",
"series",
"of",
"{",
"@",
"link",
"spawn",
"result",
"}",
"s"
] | [
"long",
"total",
"millis",
"=",
"null",
";",
"for",
"(",
"spawn",
"result",
"spawn",
"result",
":",
"spawn",
"results",
"(",
")",
")",
"{",
"optional",
"<",
"duration",
">",
"execution",
"time",
"=",
"get",
"spawn",
"result",
"execution",
"time",
"apply",
"(",
"spawn",
"result",
")",
";",
"if",
"(",
"execution",
"time",
"is",
"present",
"(",
")",
")",
"{",
"if",
"(",
"total",
"millis",
"=",
"=",
"null",
")",
"{",
"total",
"millis",
"=",
"execution",
"time",
"get",
"(",
")",
"to",
"millis",
"(",
")",
";",
"}",
"else",
"{",
"total",
"millis",
"+",
"=",
"execution",
"time",
"get",
"(",
")",
"to",
"millis",
"(",
")",
";",
"}",
"}",
"}",
"if",
"(",
"total",
"millis",
"=",
"=",
"null",
")",
"{",
"return",
"optional",
"empty",
"(",
")",
";",
"}",
"else",
"{",
"return",
"optional",
"of",
"(",
"duration",
"of",
"millis",
"(",
"total",
"millis",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"cumulative",
"total",
"of",
"long",
"values",
"taken",
"from",
"a",
"series",
"of",
"{",
"@",
"link",
"spawn",
"result",
"}",
"s"
] | [
"long",
"long",
"total",
"=",
"null",
";",
"for",
"(",
"spawn",
"result",
"spawn",
"result",
":",
"spawn",
"results",
"(",
")",
")",
"{",
"optional",
"<",
"long",
">",
"long",
"value",
"=",
"get",
"spawn",
"result",
"long",
"value",
"apply",
"(",
"spawn",
"result",
")",
";",
"if",
"(",
"long",
"value",
"is",
"present",
"(",
")",
")",
"{",
"if",
"(",
"long",
"total",
"=",
"=",
"null",
")",
"{",
"long",
"total",
"=",
"long",
"value",
"get",
"(",
")",
";",
"}",
"else",
"{",
"long",
"total",
"+",
"=",
"long",
"value",
"get",
"(",
")",
";",
"}",
"}",
"}",
"if",
"(",
"long",
"total",
"=",
"=",
"null",
")",
"{",
"return",
"optional",
"empty",
"(",
")",
";",
"}",
"else",
"{",
"return",
"optional",
"of",
"(",
"long",
"total",
")",
";",
"}"
] |
[
"returns",
"the",
"cumulative",
"command",
"execution",
"wall",
"time",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"return",
"get",
"cumulative",
"time",
"(",
"spawn",
"result",
"-",
">",
"spawn",
"result",
"get",
"wall",
"time",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"command",
"execution",
"user",
"time",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"return",
"get",
"cumulative",
"time",
"(",
"spawn",
"result",
"-",
">",
"spawn",
"result",
"get",
"user",
"time",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"command",
"execution",
"system",
"time",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"return",
"get",
"cumulative",
"time",
"(",
"spawn",
"result",
"-",
">",
"spawn",
"result",
"get",
"system",
"time",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"number",
"of",
"block",
"input",
"operations",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"return",
"get",
"cumulative",
"long",
"(",
"spawn",
"result",
"-",
">",
"spawn",
"result",
"get",
"num",
"block",
"input",
"operations",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"number",
"of",
"block",
"output",
"operations",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"return",
"get",
"cumulative",
"long",
"(",
"spawn",
"result",
"-",
">",
"spawn",
"result",
"get",
"num",
"block",
"output",
"operations",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"number",
"of",
"involuntary",
"context",
"switches",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"return",
"get",
"cumulative",
"long",
"(",
"spawn",
"result",
"-",
">",
"spawn",
"result",
"get",
"num",
"involuntary",
"context",
"switches",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"cumulative",
"command",
"execution",
"cpu",
"time",
"for",
"the",
"{",
"@",
"link",
"action",
"}"
] | [
"optional",
"<",
"duration",
">",
"user",
"time",
"=",
"cumulative",
"command",
"execution",
"user",
"time",
"(",
")",
";",
"optional",
"<",
"duration",
">",
"system",
"time",
"=",
"cumulative",
"command",
"execution",
"system",
"time",
"(",
")",
";",
"if",
"(",
"!",
"user",
"time",
"is",
"present",
"(",
")",
"&",
"&",
"!",
"system",
"time",
"is",
"present",
"(",
")",
")",
"{",
"return",
"optional",
"empty",
"(",
")",
";",
"}",
"else",
"if",
"(",
"user",
"time",
"is",
"present",
"(",
")",
"&",
"&",
"!",
"system",
"time",
"is",
"present",
"(",
")",
")",
"{",
"return",
"user",
"time",
";",
"}",
"else",
"if",
"(",
"!",
"user",
"time",
"is",
"present",
"(",
")",
"&",
"&",
"system",
"time",
"is",
"present",
"(",
")",
")",
"{",
"return",
"system",
"time",
";",
"}",
"else",
"{",
"check",
"state",
"(",
"user",
"time",
"is",
"present",
"(",
")",
"&",
"&",
"system",
"time",
"is",
"present",
"(",
")",
")",
";",
"return",
"optional",
"of",
"(",
"user",
"time",
"get",
"(",
")",
"plus",
"(",
"system",
"time",
"get",
"(",
")",
")",
")",
";",
"}"
] |
[
"creates",
"an",
"action",
"result",
"given",
"a",
"list",
"of",
"spawn",
"results"
] | [
"if",
"(",
"spawn",
"results",
"=",
"=",
"null",
")",
"{",
"return",
"empty",
";",
"}",
"else",
"{",
"return",
"builder",
"(",
")",
"set",
"spawn",
"results",
"(",
"spawn",
"results",
")",
"build",
"(",
")",
";",
"}"
] |
[
"builds",
"and",
"returns",
"an",
"action",
"result",
"object"
] | [
"public",
"abstract",
"action",
"result",
"build",
"(",
")",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"if",
"(",
"super",
"get",
"child",
"count",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"null",
";",
"}",
"array",
"list",
"<",
"node",
">",
"ret",
"vec",
"=",
"new",
"array",
"list",
"<",
"node",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"super",
"get",
"child",
"count",
"(",
")",
";",
"+",
"+",
"i",
")",
"{",
"ret",
"vec",
"add",
"(",
"(",
"node",
")",
"super",
"get",
"child",
"(",
"i",
")",
")",
";",
"}",
"return",
"ret",
"vec",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"return",
"string",
"value",
"of",
"(",
"super",
"get",
"token",
"(",
")",
"get",
"type",
"(",
")",
")",
";"
] |
[
"for",
"every",
"node",
"in",
"this",
"subtree",
"make",
"sure",
"it",
"s",
"start",
"/",
"stop",
"token",
"s",
"are",
"set",
"walk",
"depth",
"first",
"visit",
"bottom",
"up",
"only",
"updates",
"nodes",
"with",
"at",
"least",
"one",
"token",
"index",
"<",
"0"
] | [
"deque",
"<",
"a",
"s",
"t",
"node",
">",
"stack",
"1",
"=",
"new",
"array",
"deque",
"<",
"a",
"s",
"t",
"node",
">",
"(",
")",
";",
"deque",
"<",
"a",
"s",
"t",
"node",
">",
"stack",
"2",
"=",
"new",
"array",
"deque",
"<",
"a",
"s",
"t",
"node",
">",
"(",
")",
";",
"stack",
"1",
"push",
"(",
"this",
")",
";",
"while",
"(",
"!",
"stack",
"1",
"is",
"empty",
"(",
")",
")",
"{",
"a",
"s",
"t",
"node",
"next",
"=",
"stack",
"1",
"pop",
"(",
")",
";",
"stack",
"2",
"push",
"(",
"next",
")",
";",
"if",
"(",
"next",
"children",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"next",
"children",
"size",
"(",
")",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"stack",
"1",
"push",
"(",
"(",
"a",
"s",
"t",
"node",
")",
"next",
"children",
"get",
"(",
"i",
")",
")",
";",
"}",
"}",
"}",
"while",
"(",
"!",
"stack",
"2",
"is",
"empty",
"(",
")",
")",
"{",
"a",
"s",
"t",
"node",
"next",
"=",
"stack",
"2",
"pop",
"(",
")",
";",
"if",
"(",
"next",
"children",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"next",
"start",
"index",
"<",
"0",
"|",
"|",
"next",
"stop",
"index",
"<",
"0",
")",
"{",
"next",
"start",
"index",
"=",
"next",
"stop",
"index",
"=",
"next",
"token",
"get",
"token",
"index",
"(",
")",
";",
"}",
"}",
"else",
"if",
"(",
"next",
"start",
"index",
">",
"=",
"0",
"&",
"&",
"next",
"stop",
"index",
">",
"=",
"0",
")",
"{",
"continue",
";",
"}",
"else",
"if",
"(",
"next",
"children",
"size",
"(",
")",
">",
"0",
")",
"{",
"a",
"s",
"t",
"node",
"first",
"child",
"=",
"(",
"a",
"s",
"t",
"node",
")",
"next",
"children",
"get",
"(",
"0",
")",
";",
"a",
"s",
"t",
"node",
"last",
"child",
"=",
"(",
"a",
"s",
"t",
"node",
")",
"next",
"children",
"get",
"(",
"next",
"children",
"size",
"(",
")",
"-",
"1",
")",
";",
"next",
"start",
"index",
"=",
"first",
"child",
"get",
"token",
"start",
"index",
"(",
")",
";",
"next",
"stop",
"index",
"=",
"last",
"child",
"get",
"token",
"stop",
"index",
"(",
")",
";",
"}",
"}"
] |
[
"tag",
"this",
"a",
"s",
"t",
"node",
"with",
"information",
"about",
"the",
"object",
"from",
"which",
"this",
"node",
"originated"
] | [
"this",
"origin",
"=",
"origin",
";"
] |
[
"starts",
"local",
"build",
"in",
"a",
"separate",
"thread"
] | [
"run",
"local",
"build",
"future",
"=",
"executor",
"submit",
"(",
"this",
":",
":",
"safe",
"execute",
"local",
"build",
")",
";"
] |
[
"define",
"whether",
"this",
"entry",
"will",
"be",
"drawn",
"or",
"not"
] | [
"is",
"visible",
"=",
"visible",
";"
] |
[
"animate",
"entry",
"color"
] | [
"final",
"value",
"animator",
"animator",
"=",
"value",
"animator",
"of",
"argb",
"(",
"color",
"0",
",",
"color",
"1",
")",
";",
"animator",
"add",
"update",
"listener",
"(",
"new",
"value",
"animator",
"animator",
"update",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"animation",
"update",
"(",
"value",
"animator",
"animation",
")",
"{",
"m",
"color",
"=",
"(",
"int",
")",
"animation",
"get",
"animated",
"value",
"(",
")",
";",
"}",
"}",
")",
";",
"m",
"color",
"=",
"color",
"0",
";",
"return",
"animator",
";"
] |
[
"define",
"the",
"color",
"of",
"the",
"entry"
] | [
"is",
"visible",
"=",
"true",
";",
"m",
"color",
"=",
"color",
";"
] |
[
"set",
"the",
"parsed",
"display",
"coordinates"
] | [
"m",
"x",
"=",
"x",
";",
"m",
"y",
"=",
"y",
";"
] |
[
"define",
"entry",
"shadow"
] | [
"m",
"shadow",
"radius",
"=",
"radius",
";",
"m",
"shadow",
"dx",
"=",
"dx",
";",
"m",
"shadow",
"dy",
"=",
"dy",
";",
"m",
"shadow",
"color",
"[",
"0",
"]",
"=",
"color",
"alpha",
"(",
"color",
")",
";",
"m",
"shadow",
"color",
"[",
"1",
"]",
"=",
"color",
"red",
"(",
"color",
")",
";",
"m",
"shadow",
"color",
"[",
"2",
"]",
"=",
"color",
"blue",
"(",
"color",
")",
";",
"m",
"shadow",
"color",
"[",
"3",
"]",
"=",
"color",
"green",
"(",
"color",
")",
";"
] |
[
"compare",
"given",
"entry",
"with",
"itself"
] | [
"check",
"not",
"null",
"(",
"other",
")",
";",
"return",
"float",
"compare",
"(",
"this",
"get",
"value",
"(",
")",
",",
"other",
"get",
"value",
"(",
")",
")",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"mocks",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] | [
"return",
"mock",
"(",
"data",
"manager",
"class",
")",
";"
] |
[
"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",
"file",
"id",
":",
"return",
"is",
"set",
"file",
"id",
"(",
")",
";",
"case",
"block",
"ids",
":",
"return",
"is",
"set",
"block",
"ids",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"ordered",
"by",
"ascending",
"id",
":",
"oldest",
"to",
"newest"
] | [
"return",
"mapper",
"(",
"session",
")",
"select",
"all",
"in",
"asc",
"order",
"(",
")",
";"
] |
[
"ordered",
"by",
"ascending",
"id",
":",
"oldest",
"to",
"newest"
] | [
"return",
"mapper",
"(",
"session",
")",
"select",
"by",
"main",
"component",
"uuid",
"(",
"project",
"uuid",
")",
";"
] |
[
"update",
"all",
"tasks",
"for",
"the",
"specified",
"worker",
"uuid",
"which",
"are",
"not",
"pending",
"to",
":",
"status",
"=",
"pending",
"started",
"at",
"=",
"null",
"updated",
"at",
"=",
"{",
"now",
"}"
] | [
"return",
"mapper",
"(",
"session",
")",
"reset",
"to",
"pending",
"for",
"worker",
"(",
"worker",
"uuid",
",",
"system",
"2",
"now",
"(",
")",
")",
";"
] |
[
"counts",
"entries",
"in",
"the",
"queue",
"with",
"the",
"specified",
"status",
"for",
"each",
"specified",
"main",
"component",
"uuid"
] | [
"if",
"(",
"project",
"uuids",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"empty",
"map",
"(",
")",
";",
"}",
"immutable",
"map",
"builder",
"<",
"string",
",",
"integer",
">",
"builder",
"=",
"immutable",
"map",
"builder",
"(",
")",
";",
"execute",
"large",
"updates",
"(",
"project",
"uuids",
",",
"uuids",
"-",
">",
"{",
"list",
"<",
"queue",
"count",
">",
"i",
"=",
"mapper",
"(",
"db",
"session",
")",
"count",
"by",
"status",
"and",
"main",
"component",
"uuids",
"(",
"status",
",",
"project",
"uuids",
")",
";",
"i",
"for",
"each",
"(",
"o",
"-",
">",
"builder",
"put",
"(",
"o",
"get",
"main",
"component",
"uuid",
"(",
")",
",",
"o",
"get",
"total",
"(",
")",
")",
")",
";",
"}",
")",
";",
"return",
"builder",
"build",
"(",
")",
";"
] |
[
"creates",
"a",
"reil",
"graph",
"from",
"a",
"pair",
"that",
"contains",
"reil",
"blocks",
"and",
"reil",
"edges"
] | [
"final",
"pair",
"<",
"list",
"<",
"reil",
"block",
">",
",",
"list",
"<",
"reil",
"edge",
">",
">",
"pair",
"=",
"create",
"graph",
"elements",
"(",
"instruction",
"list",
",",
"native",
"jump",
"targets",
")",
";",
"return",
"new",
"reil",
"graph",
"(",
"pair",
"first",
"(",
")",
",",
"pair",
"second",
"(",
")",
")",
";"
] |
[
"build",
"a",
"multi",
"layer",
"network",
"from",
"this",
"keras",
"sequential",
"model",
"configuration"
] | [
"return",
"get",
"multi",
"layer",
"network",
"(",
"true",
")",
";"
] |
[
"build",
"a",
"multi",
"layer",
"network",
"from",
"this",
"keras",
"sequential",
"model",
"configuration",
"and",
"import",
"weights"
] | [
"multi",
"layer",
"network",
"model",
"=",
"new",
"multi",
"layer",
"network",
"(",
"get",
"multi",
"layer",
"configuration",
"(",
")",
")",
";",
"model",
"init",
"(",
")",
";",
"if",
"(",
"import",
"weights",
")",
"model",
"=",
"(",
"multi",
"layer",
"network",
")",
"keras",
"model",
"utils",
"copy",
"weights",
"to",
"model",
"(",
"model",
",",
"this",
"layers",
")",
";",
"return",
"model",
";"
] |
[
"calculate",
"the",
"new",
"output",
"value",
"of",
"the",
"channel"
] | [
"protected",
"abstract",
"int",
"calculate",
"new",
"value",
"(",
"dmx",
"channel",
"channel",
",",
"long",
"current",
"time",
")",
";"
] |
[
"get",
"the",
"new",
"output",
"value",
"of",
"the",
"channel",
"which",
"has",
"the",
"outputlevel",
"applied"
] | [
"return",
"dmx",
"util",
"get",
"output",
"value",
"(",
"calculate",
"new",
"value",
"(",
"channel",
",",
"current",
"time",
")",
",",
"output",
"level",
")",
";"
] |
[
"tests",
"whether",
"or",
"not",
"the",
"asynchronous",
"operation",
"represented",
"by",
"this",
"fiber",
"asyc",
"has",
"completed"
] | [
"return",
"completed",
";"
] |
[
"reset",
"the",
"action",
"to",
"start",
"from",
"the",
"beginning"
] | [
"start",
"time",
"=",
"0",
";",
"completed",
"=",
"false",
";"
] |
[
"decrease",
"the",
"output",
"level",
"with",
"specified",
"decrement"
] | [
"if",
"(",
"output",
"level",
"-",
"decrement",
"<",
"min",
"output",
"level",
")",
"{",
"output",
"level",
"=",
"min",
"output",
"level",
";",
"}",
"else",
"{",
"output",
"level",
"-",
"=",
"decrement",
";",
"}"
] |
[
"decrease",
"the",
"output",
"level",
"with",
"specified",
"increment"
] | [
"if",
"(",
"output",
"level",
"+",
"increment",
">",
"max",
"output",
"level",
")",
"{",
"output",
"level",
"=",
"max",
"output",
"level",
";",
"}",
"else",
"{",
"output",
"level",
"+",
"=",
"increment",
";",
"}"
] |
[
"set",
"action",
"fade",
"output",
"level"
] | [
"output",
"level",
"=",
"int",
"value",
";"
] |
[
"{"
] | [
"return",
"super",
"get",
"configuration",
"(",
"grid",
"name",
")",
"set",
"communication",
"spi",
"(",
"new",
"test",
"tcp",
"communication",
"spi",
"(",
")",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"filter",
"!",
"=",
"null",
")",
"filter",
"apply",
"(",
"msg",
")",
";",
"super",
"send",
"message",
"(",
"node",
",",
"msg",
",",
"ack",
"c",
")",
";"
] |
[
"helper",
"to",
"hide",
"the",
"keyboard"
] | [
"if",
"(",
"act",
"!",
"=",
"null",
"&",
"&",
"act",
"get",
"current",
"focus",
"(",
")",
"!",
"=",
"null",
")",
"{",
"input",
"method",
"manager",
"input",
"method",
"manager",
"=",
"(",
"input",
"method",
"manager",
")",
"act",
"get",
"system",
"service",
"(",
"activity",
"input",
"method",
"service",
")",
";",
"input",
"method",
"manager",
"hide",
"soft",
"input",
"from",
"window",
"(",
"act",
"get",
"current",
"focus",
"(",
")",
"get",
"window",
"token",
"(",
")",
",",
"0",
")",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"maximum",
"hourly",
"price",
"you",
"re",
"willing",
"to",
"pay",
"for",
"the",
"spot",
"instances",
"<",
"/",
"p",
">"
] | [
"set",
"max",
"price",
"(",
"max",
"price",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"spot",
"instance",
"request",
"type",
"<",
"/",
"p",
">"
] | [
"set",
"spot",
"instance",
"type",
"(",
"spot",
"instance",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"spot",
"instance",
"request",
"type",
"<",
"/",
"p",
">"
] | [
"this",
"spot",
"instance",
"type",
"=",
"spot",
"instance",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"required",
"duration",
"for",
"the",
"spot",
"instances",
"(",
"also",
"known",
"as",
"spot",
"blocks",
")",
"in",
"minutes",
"this",
"value",
"must",
"be",
"a",
"multiple",
"of",
"60",
"(",
"60",
"120",
"180",
"240",
"300",
"or",
"360",
")",
"<",
"/",
"p",
">"
] | [
"set",
"block",
"duration",
"minutes",
"(",
"block",
"duration",
"minutes",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"end",
"date",
"of",
"the",
"request",
"for",
"a",
"one",
"-",
"time",
"request",
"the",
"request",
"remains",
"active",
"until",
"all",
"instances",
"launch",
"the",
"request",
"is",
"canceled",
"or",
"this",
"date",
"is",
"reached",
"if",
"the",
"request",
"is",
"persistent",
"it",
"remains",
"active",
"until",
"it",
"is",
"canceled",
"or",
"this",
"date",
"and",
"time",
"is",
"reached",
"<",
"/",
"p",
">"
] | [
"set",
"valid",
"until",
"(",
"valid",
"until",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"behavior",
"when",
"a",
"spot",
"instance",
"is",
"interrupted",
"<",
"/",
"p",
">"
] | [
"set",
"instance",
"interruption",
"behavior",
"(",
"instance",
"interruption",
"behavior",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"behavior",
"when",
"a",
"spot",
"instance",
"is",
"interrupted",
"<",
"/",
"p",
">"
] | [
"this",
"instance",
"interruption",
"behavior",
"=",
"instance",
"interruption",
"behavior",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"segment",
"s",
"id",
"<",
"/",
"p",
">"
] | [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"error",
"that",
"caused",
"processing",
"to",
"fail",
"<",
"/",
"p",
">"
] | [
"set",
"error",
"code",
"(",
"error",
"code",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"error",
"message",
"<",
"/",
"p",
">"
] | [
"set",
"message",
"(",
"message",
")",
";",
"return",
"this",
";"
] |
[
"loads",
"a",
"set",
"of",
"region",
"metadata",
"by",
"downloading",
"an",
"xml",
"file",
"from",
"the",
"given",
"uri",
"and",
"parsing",
"it"
] | [
"return",
"region",
"metadata",
"parser",
"parse",
"(",
"runtime",
"http",
"utils",
"fetch",
"file",
"(",
"uri",
",",
"config",
")",
")",
";"
] |
[
"loads",
"a",
"set",
"of",
"region",
"metadata",
"by",
"parsing",
"the",
"given",
"file"
] | [
"return",
"region",
"metadata",
"parser",
"parse",
"(",
"new",
"buffered",
"input",
"stream",
"(",
"new",
"file",
"input",
"stream",
"(",
"file",
")",
")",
")",
";"
] |
[
"loads",
"a",
"set",
"of",
"region",
"metadata",
"from",
"an",
"arbitrary",
"{",
"@",
"code",
"input",
"stream",
"}",
"containing",
"an",
"xml",
"file"
] | [
"return",
"region",
"metadata",
"parser",
"parse",
"(",
"stream",
")",
";"
] |
[
"{"
] | [
"ignite",
"configuration",
"c",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"c",
"set",
"marshal",
"local",
"jobs",
"(",
"loc",
"marsh",
")",
";",
"c",
"set",
"peer",
"class",
"loading",
"enabled",
"(",
"false",
")",
";",
"return",
"c",
";"
] |
[
"fails",
"index",
"if",
"any",
"source",
"node",
"is",
"left"
] | [
"for",
"(",
"uuid",
"node",
"id",
":",
"sources",
"(",
")",
")",
"{",
"if",
"(",
"!",
"ctx",
"discovery",
"(",
")",
"alive",
"(",
"node",
"id",
")",
")",
"{",
"fail",
"(",
"node",
"id",
",",
"null",
")",
";",
"return",
";",
"}",
"}"
] |
[
"{"
] | [
"cursor",
"c",
"=",
"find",
"(",
"ses",
",",
"null",
",",
"null",
")",
";",
"long",
"cnt",
"=",
"0",
";",
"while",
"(",
"c",
"next",
"(",
")",
")",
"cnt",
"+",
"+",
";",
"return",
"cnt",
";"
] |
[
"{"
] | [
"return",
"10",
"000",
";"
] |
[
"set",
"source",
"nodes"
] | [
"assert",
"sources",
"=",
"=",
"null",
";",
"sources",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"cluster",
"node",
"node",
":",
"nodes",
")",
"{",
"if",
"(",
"!",
"sources",
"add",
"(",
"node",
"id",
"(",
")",
")",
")",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}"
] |
[
"{"
] | [
"check",
"bounds",
"(",
"last",
"evicted",
"row",
",",
"first",
",",
"last",
")",
";",
"if",
"(",
"fetched",
"all",
"(",
")",
")",
"return",
"find",
"all",
"fetched",
"(",
"fetched",
",",
"first",
",",
"last",
")",
";",
"return",
"find",
"in",
"stream",
"(",
"first",
",",
"last",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"+",
"+",
"cur",
"=",
"=",
"rows",
"size",
"(",
")",
")",
"fetch",
"rows",
"(",
")",
";",
"return",
"cur",
"<",
"last",
"found",
";"
] |
[
"{"
] | [
"return",
"rows",
"get",
"(",
"cur",
")",
";"
] |
[
"{"
] | [
"size",
"+",
"+",
";",
"list",
"<",
"z",
">",
"last",
"block",
"=",
"last",
"block",
"(",
")",
";",
"last",
"block",
"add",
"(",
"z",
")",
";",
"if",
"(",
"last",
"block",
"size",
"(",
")",
"=",
"=",
"max",
"block",
"size",
")",
"blocks",
"add",
"(",
"new",
"array",
"list",
"<",
"z",
">",
"(",
")",
")",
";",
"return",
"true",
";"
] |
[
"{"
] | [
"return",
"blocks",
"get",
"(",
"idx",
">",
">",
">",
"shift",
")",
"get",
"(",
"idx",
"&",
"mask",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"return",
"false",
";",
"source",
"key",
"source",
"key",
"=",
"(",
"source",
"key",
")",
"o",
";",
"if",
"(",
"segment",
"!",
"=",
"source",
"key",
"segment",
")",
"return",
"false",
";",
"return",
"node",
"id",
"equals",
"(",
"source",
"key",
"node",
"id",
")",
";"
] |
[
"{"
] | [
"int",
"result",
"=",
"node",
"id",
"hash",
"code",
"(",
")",
";",
"result",
"=",
"31",
"*",
"result",
"+",
"segment",
";",
"return",
"result",
";"
] |
[
"return",
"the",
"configured",
"content",
"negotiation",
"strategies"
] | [
"return",
"this",
"strategies",
";"
] |
[
"register",
"more",
"{"
] | [
"collections",
"add",
"all",
"(",
"this",
"resolvers",
",",
"resolvers",
")",
";"
] |
[
"{"
] | [
"set",
"<",
"string",
">",
"result",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"media",
"type",
"file",
"extension",
"resolver",
"resolver",
":",
"this",
"resolvers",
")",
"{",
"result",
"add",
"all",
"(",
"resolver",
"get",
"all",
"file",
"extensions",
"(",
")",
")",
";",
"}",
"return",
"new",
"array",
"list",
"<",
">",
"(",
"result",
")",
";"
] |
[
"{"
] | [
"return",
"obj",
"instanceof",
"request",
"key",
"&",
"&",
"key",
"equals",
"(",
"(",
"(",
"request",
"key",
")",
"obj",
")",
"key",
")",
";"
] |
[
"clears",
"all",
"the",
"registered",
"rules"
] | [
"transport",
"(",
")",
"clear",
"behaviors",
"(",
")",
";",
"connection",
"manager",
"(",
")",
"clear",
"behaviors",
"(",
")",
";"
] |
[
"clears",
"the",
"rule",
"associated",
"with",
"the",
"provided",
"delegate",
"service"
] | [
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"clear",
"rule",
"(",
"transport",
"address",
")",
";",
"}"
] |
[
"clears",
"the",
"rule",
"associated",
"with",
"the",
"provided",
"delegate",
"address"
] | [
"transport",
"(",
")",
"clear",
"behavior",
"(",
"transport",
"address",
")",
";",
"connection",
"manager",
"(",
")",
"clear",
"behavior",
"(",
"transport",
"address",
")",
";"
] |
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"every",
"send",
"request",
"to",
"fail",
"and",
"each",
"new",
"connect",
"since",
"the",
"rule",
"is",
"added",
"to",
"fail",
"as",
"well"
] | [
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"add",
"fail",
"to",
"send",
"no",
"connect",
"rule",
"(",
"transport",
"address",
")",
";",
"}"
] |
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"matching",
"operations",
"to",
"throw",
"connect",
"transport",
"exceptions"
] | [
"add",
"fail",
"to",
"send",
"no",
"connect",
"rule",
"(",
"transport",
"service",
",",
"new",
"hash",
"set",
"<",
">",
"(",
"arrays",
"as",
"list",
"(",
"blocked",
"actions",
")",
")",
")",
";"
] |
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"matching",
"operations",
"to",
"throw",
"connect",
"transport",
"exceptions"
] | [
"add",
"fail",
"to",
"send",
"no",
"connect",
"rule",
"(",
"transport",
"address",
",",
"new",
"hash",
"set",
"<",
">",
"(",
"arrays",
"as",
"list",
"(",
"blocked",
"actions",
")",
")",
")",
";"
] |
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"matching",
"operations",
"to",
"throw",
"connect",
"transport",
"exceptions"
] | [
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"add",
"fail",
"to",
"send",
"no",
"connect",
"rule",
"(",
"transport",
"address",
",",
"blocked",
"actions",
")",
";",
"}"
] |
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"ignores",
"each",
"send",
"request",
"simulating",
"an",
"unresponsive",
"node",
"and",
"failing",
"to",
"connect",
"once",
"the",
"rule",
"was",
"added"
] | [
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"add",
"unresponsive",
"rule",
"(",
"transport",
"address",
")",
";",
"}"
] |
[
"adds",
"a",
"rule",
"that",
"will",
"cause",
"ignores",
"each",
"send",
"request",
"simulating",
"an",
"unresponsive",
"node",
"and",
"failing",
"to",
"connect",
"once",
"the",
"rule",
"was",
"added"
] | [
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"add",
"unresponsive",
"rule",
"(",
"transport",
"address",
",",
"duration",
")",
";",
"}"
] |
[
"adds",
"a",
"new",
"send",
"behavior",
"that",
"is",
"used",
"for",
"communication",
"with",
"the",
"given",
"delegate",
"service"
] | [
"boolean",
"no",
"registered",
"=",
"true",
";",
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"no",
"registered",
"&",
"=",
"add",
"send",
"behavior",
"(",
"transport",
"address",
",",
"send",
"behavior",
")",
";",
"}",
"return",
"no",
"registered",
";"
] |
[
"adds",
"a",
"new",
"send",
"behavior",
"that",
"is",
"used",
"for",
"communication",
"with",
"the",
"given",
"delegate",
"address"
] | [
"return",
"transport",
"(",
")",
"add",
"send",
"behavior",
"(",
"transport",
"address",
",",
"send",
"behavior",
")",
";"
] |
[
"adds",
"a",
"send",
"behavior",
"that",
"is",
"the",
"default",
"send",
"behavior"
] | [
"return",
"transport",
"(",
")",
"set",
"default",
"send",
"behavior",
"(",
"behavior",
")",
";"
] |
[
"adds",
"a",
"new",
"connect",
"behavior",
"that",
"is",
"used",
"for",
"creating",
"connections",
"with",
"the",
"given",
"delegate",
"service"
] | [
"boolean",
"no",
"registered",
"=",
"true",
";",
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"no",
"registered",
"&",
"=",
"add",
"connect",
"behavior",
"(",
"transport",
"address",
",",
"connect",
"behavior",
")",
";",
"}",
"return",
"no",
"registered",
";"
] |
[
"adds",
"a",
"new",
"connect",
"behavior",
"that",
"is",
"used",
"for",
"creating",
"connections",
"with",
"the",
"given",
"delegate",
"address"
] | [
"return",
"transport",
"(",
")",
"add",
"connect",
"behavior",
"(",
"transport",
"address",
",",
"connect",
"behavior",
")",
";"
] |
[
"adds",
"a",
"new",
"get",
"connection",
"behavior",
"that",
"is",
"used",
"for",
"communication",
"with",
"the",
"given",
"delegate",
"service"
] | [
"boolean",
"no",
"registered",
"=",
"true",
";",
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"no",
"registered",
"&",
"=",
"add",
"get",
"connection",
"behavior",
"(",
"transport",
"address",
",",
"behavior",
")",
";",
"}",
"return",
"no",
"registered",
";"
] |
[
"adds",
"a",
"get",
"connection",
"behavior",
"that",
"is",
"used",
"for",
"communication",
"with",
"the",
"given",
"delegate",
"address"
] | [
"return",
"connection",
"manager",
"(",
")",
"add",
"connect",
"behavior",
"(",
"transport",
"address",
",",
"behavior",
")",
";"
] |
[
"adds",
"a",
"get",
"connection",
"behavior",
"that",
"is",
"the",
"default",
"get",
"connection",
"behavior"
] | [
"return",
"connection",
"manager",
"(",
")",
"set",
"default",
"connect",
"behavior",
"(",
"behavior",
")",
";"
] |
[
"adds",
"a",
"node",
"connected",
"behavior",
"that",
"is",
"used",
"for",
"the",
"given",
"delegate",
"service"
] | [
"boolean",
"no",
"registered",
"=",
"true",
";",
"for",
"(",
"transport",
"address",
"transport",
"address",
":",
"extract",
"transport",
"addresses",
"(",
"transport",
"service",
")",
")",
"{",
"no",
"registered",
"&",
"=",
"add",
"node",
"connected",
"behavior",
"(",
"transport",
"address",
",",
"behavior",
")",
";",
"}",
"return",
"no",
"registered",
";"
] |
[
"adds",
"a",
"node",
"connected",
"behavior",
"that",
"is",
"used",
"for",
"the",
"given",
"delegate",
"address"
] | [
"return",
"connection",
"manager",
"(",
")",
"add",
"node",
"connected",
"behavior",
"(",
"transport",
"address",
",",
"behavior",
")",
";"
] |
[
"adds",
"a",
"node",
"connected",
"behavior",
"that",
"is",
"the",
"default",
"node",
"connected",
"behavior"
] | [
"return",
"connection",
"manager",
"(",
")",
"set",
"default",
"node",
"connected",
"behavior",
"(",
"behavior",
")",
";"
] |
[
"(",
"e",
"g",
"some",
"index",
"tasks",
"may",
"have",
"a",
"cache",
"others",
"may",
"not",
")"
] | [
"this",
"cache",
"=",
"cache",
";"
] |
[
"this",
"method",
"notifies",
"timer",
"about",
"event"
] | [
"timer",
"set",
"(",
"system",
"current",
"time",
"millis",
"(",
")",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.