docstring_tokens
list | code_tokens
list |
|---|---|
[
"@",
"hide",
"vector",
"subtraction"
] |
[
"this",
"x",
"-",
"=",
"a",
"x",
";",
"this",
"y",
"-",
"=",
"a",
"y",
";",
"this",
"z",
"-",
"=",
"a",
"z",
";"
] |
[
"@",
"hide",
"vector",
"subtraction"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"-",
"b",
"x",
";",
"result",
"y",
"=",
"a",
"y",
"-",
"b",
"y",
";",
"result",
"z",
"=",
"a",
"z",
"-",
"b",
"z",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"subtraction"
] |
[
"x",
"-",
"=",
"value",
";",
"y",
"-",
"=",
"value",
";",
"z",
"-",
"=",
"value",
";"
] |
[
"@",
"hide",
"vector",
"subtraction"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"-",
"b",
";",
"result",
"y",
"=",
"a",
"y",
"-",
"b",
";",
"result",
"z",
"=",
"a",
"z",
"-",
"b",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"multiplication"
] |
[
"this",
"x",
"*",
"=",
"a",
"x",
";",
"this",
"y",
"*",
"=",
"a",
"y",
";",
"this",
"z",
"*",
"=",
"a",
"z",
";"
] |
[
"@",
"hide",
"vector",
"multiplication"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"*",
"b",
"x",
";",
"result",
"y",
"=",
"a",
"y",
"*",
"b",
"y",
";",
"result",
"z",
"=",
"a",
"z",
"*",
"b",
"z",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"multiplication"
] |
[
"x",
"*",
"=",
"value",
";",
"y",
"*",
"=",
"value",
";",
"z",
"*",
"=",
"value",
";"
] |
[
"@",
"hide",
"vector",
"multiplication"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"*",
"b",
";",
"result",
"y",
"=",
"a",
"y",
"*",
"b",
";",
"result",
"z",
"=",
"a",
"z",
"*",
"b",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"division"
] |
[
"this",
"x",
"/",
"=",
"a",
"x",
";",
"this",
"y",
"/",
"=",
"a",
"y",
";",
"this",
"z",
"/",
"=",
"a",
"z",
";"
] |
[
"@",
"hide",
"vector",
"division"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"/",
"b",
"x",
";",
"result",
"y",
"=",
"a",
"y",
"/",
"b",
"y",
";",
"result",
"z",
"=",
"a",
"z",
"/",
"b",
"z",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"division"
] |
[
"x",
"/",
"=",
"value",
";",
"y",
"/",
"=",
"value",
";",
"z",
"/",
"=",
"value",
";"
] |
[
"@",
"hide",
"vector",
"division"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"/",
"b",
";",
"result",
"y",
"=",
"a",
"y",
"/",
"b",
";",
"result",
"z",
"=",
"a",
"z",
"/",
"b",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"modulo"
] |
[
"this",
"x",
"%",
"=",
"a",
"x",
";",
"this",
"y",
"%",
"=",
"a",
"y",
";",
"this",
"z",
"%",
"=",
"a",
"z",
";"
] |
[
"@",
"hide",
"vector",
"modulo"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"%",
"b",
"x",
";",
"result",
"y",
"=",
"a",
"y",
"%",
"b",
"y",
";",
"result",
"z",
"=",
"a",
"z",
"%",
"b",
"z",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"vector",
"modulo"
] |
[
"x",
"%",
"=",
"value",
";",
"y",
"%",
"=",
"value",
";",
"z",
"%",
"=",
"value",
";"
] |
[
"@",
"hide",
"vector",
"modulo"
] |
[
"long",
"3",
"result",
"=",
"new",
"long",
"3",
"(",
")",
";",
"result",
"x",
"=",
"a",
"x",
"%",
"b",
";",
"result",
"y",
"=",
"a",
"y",
"%",
"b",
";",
"result",
"z",
"=",
"a",
"z",
"%",
"b",
";",
"return",
"result",
";"
] |
[
"@",
"hide",
"get",
"vector",
"length"
] |
[
"return",
"3",
";"
] |
[
"@",
"hide",
"vector",
"dot",
"product"
] |
[
"return",
"(",
"long",
")",
"(",
"(",
"x",
"*",
"a",
"x",
")",
"+",
"(",
"y",
"*",
"a",
"y",
")",
"+",
"(",
"z",
"*",
"a",
"z",
")",
")",
";"
] |
[
"@",
"hide",
"vector",
"dot",
"product"
] |
[
"return",
"(",
"long",
")",
"(",
"(",
"b",
"x",
"*",
"a",
"x",
")",
"+",
"(",
"b",
"y",
"*",
"a",
"y",
")",
"+",
"(",
"b",
"z",
"*",
"a",
"z",
")",
")",
";"
] |
[
"@",
"hide",
"vector",
"add",
"multiple"
] |
[
"x",
"+",
"=",
"a",
"x",
"*",
"factor",
";",
"y",
"+",
"=",
"a",
"y",
"*",
"factor",
";",
"z",
"+",
"=",
"a",
"z",
"*",
"factor",
";"
] |
[
"@",
"hide",
"set",
"vector",
"value",
"by",
"long",
"3"
] |
[
"this",
"x",
"=",
"a",
"x",
";",
"this",
"y",
"=",
"a",
"y",
";",
"this",
"z",
"=",
"a",
"z",
";"
] |
[
"@",
"hide",
"set",
"the",
"vector",
"field",
"value",
"by",
"long"
] |
[
"this",
"x",
"=",
"a",
";",
"this",
"y",
"=",
"b",
";",
"this",
"z",
"=",
"c",
";"
] |
[
"@",
"hide",
"return",
"the",
"element",
"sum",
"of",
"vector"
] |
[
"return",
"(",
"long",
")",
"(",
"x",
"+",
"y",
"+",
"z",
")",
";"
] |
[
"@",
"hide",
"copy",
"the",
"vector",
"to",
"long",
"array"
] |
[
"data",
"[",
"offset",
"]",
"=",
"(",
"long",
")",
"(",
"x",
")",
";",
"data",
"[",
"offset",
"+",
"1",
"]",
"=",
"(",
"long",
")",
"(",
"y",
")",
";",
"data",
"[",
"offset",
"+",
"2",
"]",
"=",
"(",
"long",
")",
"(",
"z",
")",
";"
] |
[
"creates",
"specified",
"config",
"map"
] |
[
"put",
"label",
"(",
"config",
"map",
",",
"che",
"workspace",
"id",
"label",
",",
"workspace",
"id",
")",
";",
"try",
"{",
"client",
"factory",
"create",
"(",
"workspace",
"id",
")",
"config",
"maps",
"(",
")",
"in",
"namespace",
"(",
"namespace",
")",
"create",
"(",
"config",
"map",
")",
";",
"}",
"catch",
"(",
"kubernetes",
"client",
"exception",
"e",
")",
"{",
"throw",
"new",
"kubernetes",
"infrastructure",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"deletes",
"all",
"existing",
"config",
"maps"
] |
[
"try",
"{",
"client",
"factory",
"create",
"(",
"workspace",
"id",
")",
"config",
"maps",
"(",
")",
"in",
"namespace",
"(",
"namespace",
")",
"with",
"label",
"(",
"che",
"workspace",
"id",
"label",
",",
"workspace",
"id",
")",
"delete",
"(",
")",
";",
"}",
"catch",
"(",
"kubernetes",
"client",
"exception",
"e",
")",
"{",
"throw",
"new",
"kubernetes",
"infrastructure",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"{"
] |
[
"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",
")",
";",
"cfg",
"set",
"cache",
"configuration",
"(",
"cache",
"configuration",
"(",
")",
")",
";",
"return",
"cfg",
";"
] |
[
"{"
] |
[
"ignite",
"1",
"=",
"start",
"grid",
"(",
"1",
")",
";",
"ignite",
"2",
"=",
"start",
"grid",
"(",
"2",
")",
";",
"cache",
"1",
"=",
"ignite",
"1",
"cache",
"(",
"default",
"cache",
"name",
")",
";",
"cache",
"2",
"=",
"ignite",
"2",
"cache",
"(",
"default",
"cache",
"name",
")",
";"
] |
[
"{"
] |
[
"return",
"get",
"type",
"(",
")",
";"
] |
[
"{"
] |
[
"handler",
"on",
"close",
"non",
"pinned",
"editors",
"(",
"this",
")",
";"
] |
[
"example",
"value",
":",
"au",
"-",
"tpxc",
"a",
"-",
"i",
"u",
"5",
"ovu",
"d",
"2",
"f",
"l",
"1"
] |
[
"this",
"analysis",
"id",
"=",
"analysis",
"id",
";",
"return",
"this",
";"
] |
[
"example",
"value",
":",
"au",
"-",
"tpxb",
"-",
"-",
"i",
"u",
"5",
"ovu",
"d",
"2",
"f",
"ly"
] |
[
"this",
"project",
"id",
"=",
"project",
"id",
";",
"return",
"this",
";"
] |
[
"example",
"value",
":",
"my",
"project"
] |
[
"this",
"project",
"key",
"=",
"project",
"key",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"simple",
"name",
"of",
"the",
"underlying",
"class",
"as",
"supplied",
"in",
"the",
"source",
"code"
] |
[
"return",
"c",
"get",
"simple",
"name",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"object",
"is",
"assignment",
"-",
"compatible",
"with",
"the",
"object",
"represented",
"by",
"supplied",
"class"
] |
[
"return",
"obj",
"!",
"=",
"null",
"&",
"&",
"is",
"assignable",
"from",
"(",
"c",
",",
"obj",
"get",
"class",
"(",
")",
")",
";"
] |
[
"determines",
"if",
"the",
"class",
"or",
"interface",
"represented",
"by",
"first",
"class",
"parameter",
"is",
"either",
"the",
"same",
"as",
"or",
"is",
"a",
"superclass",
"or",
"superinterface",
"of",
"the",
"class",
"or",
"interface",
"represented",
"by",
"the",
"second",
"class",
"parameter"
] |
[
"type",
"c",
"1",
"type",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
"1",
")",
";",
"type",
"c",
"2",
"type",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
"2",
")",
";",
"return",
"c",
"1",
"type",
"is",
"assignable",
"from",
"(",
"c",
"2",
"type",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"class",
"or",
"interface",
"represented",
"by",
"the",
"supplied",
"class",
"is",
"a",
"member",
"class"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"member",
"class",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"class",
"or",
"interface",
"represented",
"by",
"the",
"supplied",
"class",
"is",
"a",
"static",
"class"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"static",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"class",
"object",
"represents",
"an",
"array",
"class"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"array",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"class",
"object",
"represents",
"a",
"primitive",
"type"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"primitive",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"class",
"object",
"represents",
"an",
"enum",
"type"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"enum",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"class",
"object",
"represents",
"an",
"annotation",
"type"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"annotation",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"class",
"object",
"represents",
"an",
"interface",
"type"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"interface",
"(",
")",
";"
] |
[
"determines",
"if",
"the",
"supplied",
"class",
"object",
"represents",
"an",
"abstract",
"type"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"is",
"abstract",
"(",
")",
";"
] |
[
"returns",
"the",
"class",
"representing",
"the",
"component",
"type",
"of",
"an",
"array",
"if",
"this",
"class",
"does",
"not",
"represent",
"an",
"array",
"class",
"this",
"method",
"returns",
"null"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"component",
"type",
"(",
")",
";"
] |
[
"returns",
"an",
"array",
"of",
"{"
] |
[
"com",
"badlogic",
"gwtref",
"client",
"constructor",
"[",
"]",
"constructors",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"constructors",
"(",
")",
";",
"constructor",
"[",
"]",
"result",
"=",
"new",
"constructor",
"[",
"constructors",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"j",
"=",
"constructors",
"length",
";",
"i",
"<",
"j",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"new",
"constructor",
"(",
"constructors",
"[",
"i",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"the",
"elements",
"of",
"this",
"enum",
"class",
"or",
"null",
"if",
"this",
"class",
"object",
"does",
"not",
"represent",
"an",
"enum",
"type"
] |
[
"return",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"enum",
"constants",
"(",
")",
";"
] |
[
"returns",
"an",
"array",
"of",
"{"
] |
[
"com",
"badlogic",
"gwtref",
"client",
"method",
"[",
"]",
"methods",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"methods",
"(",
")",
";",
"method",
"[",
"]",
"result",
"=",
"new",
"method",
"[",
"methods",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"j",
"=",
"methods",
"length",
";",
"i",
"<",
"j",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"new",
"method",
"(",
"methods",
"[",
"i",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"an",
"array",
"of",
"{"
] |
[
"com",
"badlogic",
"gwtref",
"client",
"method",
"[",
"]",
"methods",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"declared",
"methods",
"(",
")",
";",
"method",
"[",
"]",
"result",
"=",
"new",
"method",
"[",
"methods",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"j",
"=",
"methods",
"length",
";",
"i",
"<",
"j",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"new",
"method",
"(",
"methods",
"[",
"i",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"an",
"array",
"of",
"{"
] |
[
"com",
"badlogic",
"gwtref",
"client",
"field",
"[",
"]",
"fields",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"fields",
"(",
")",
";",
"field",
"[",
"]",
"result",
"=",
"new",
"field",
"[",
"fields",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"j",
"=",
"fields",
"length",
";",
"i",
"<",
"j",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"new",
"field",
"(",
"fields",
"[",
"i",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"an",
"array",
"of",
"{"
] |
[
"com",
"badlogic",
"gwtref",
"client",
"field",
"[",
"]",
"fields",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"declared",
"fields",
"(",
")",
";",
"field",
"[",
"]",
"result",
"=",
"new",
"field",
"[",
"fields",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"j",
"=",
"fields",
"length",
";",
"i",
"<",
"j",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"new",
"field",
"(",
"fields",
"[",
"i",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"true",
"if",
"the",
"supplied",
"class",
"has",
"an",
"annotation",
"of",
"the",
"given",
"type"
] |
[
"annotation",
"[",
"]",
"annotations",
"=",
"get",
"annotations",
"(",
"c",
")",
";",
"for",
"(",
"annotation",
"annotation",
":",
"annotations",
")",
"{",
"if",
"(",
"annotation",
"get",
"annotation",
"type",
"(",
")",
"equals",
"(",
"annotation",
"type",
")",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"returns",
"an",
"{"
] |
[
"annotation",
"[",
"]",
"annotations",
"=",
"get",
"annotations",
"(",
"c",
")",
";",
"for",
"(",
"annotation",
"annotation",
":",
"annotations",
")",
"{",
"if",
"(",
"annotation",
"get",
"annotation",
"type",
"(",
")",
"equals",
"(",
"annotation",
"type",
")",
")",
"return",
"annotation",
";",
"}",
"return",
"null",
";"
] |
[
"returns",
"an",
"array",
"of",
"{"
] |
[
"java",
"lang",
"annotation",
"annotation",
"[",
"]",
"annotations",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"declared",
"annotations",
"(",
")",
";",
"annotation",
"[",
"]",
"result",
"=",
"new",
"annotation",
"[",
"annotations",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"annotations",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"new",
"annotation",
"(",
"annotations",
"[",
"i",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"an",
"{"
] |
[
"java",
"lang",
"annotation",
"annotation",
"annotation",
"=",
"reflection",
"cache",
"get",
"type",
"(",
"c",
")",
"get",
"declared",
"annotation",
"(",
"annotation",
"type",
")",
";",
"if",
"(",
"annotation",
"!",
"=",
"null",
")",
"return",
"new",
"annotation",
"(",
"annotation",
")",
";",
"return",
"null",
";"
] |
[
"returns",
"the",
"bootstrap",
"s",
"{"
] |
[
"return",
"application",
";"
] |
[
"returns",
"the",
"bootstrap",
"s",
"{"
] |
[
"return",
"configuration",
"source",
"provider",
";"
] |
[
"sets",
"the",
"bootstrap",
"s",
"{"
] |
[
"this",
"configuration",
"source",
"provider",
"=",
"require",
"non",
"null",
"(",
"provider",
")",
";"
] |
[
"returns",
"specified",
"classloader",
"for",
"loading",
"created",
"classes",
"if",
"classloader",
"is",
"not",
"specified",
"returns",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">"
] |
[
"return",
"class",
"loader",
";"
] |
[
"adds",
"the",
"given",
"bundle",
"to",
"the",
"bootstrap"
] |
[
"bundle",
"initialize",
"(",
"this",
")",
";",
"configured",
"bundles",
"add",
"(",
"bundle",
")",
";"
] |
[
"adds",
"the",
"given",
"command",
"to",
"the",
"bootstrap"
] |
[
"commands",
"add",
"(",
"command",
")",
";"
] |
[
"runs",
"the",
"bootstrap",
"s",
"bundles",
"with",
"the",
"given",
"configuration",
"and",
"environment"
] |
[
"for",
"(",
"configured",
"bundle",
"<",
"?",
"super",
"t",
">",
"bundle",
":",
"configured",
"bundles",
")",
"{",
"bundle",
"run",
"(",
"configuration",
",",
"environment",
")",
";",
"}"
] |
[
"returns",
"the",
"application",
"s",
"commands"
] |
[
"return",
"new",
"array",
"list",
"<",
">",
"(",
"commands",
")",
";"
] |
[
"to",
"use",
"a",
"custom",
"configured",
"metric",
"registry"
] |
[
"this",
"metric",
"registry",
"=",
"metric",
"registry",
";"
] |
[
"returns",
"the",
"health",
"check",
"registry"
] |
[
"return",
"health",
"check",
"registry",
";"
] |
[
"resets",
"the",
"check",
"for",
"testing"
] |
[
"called",
"=",
"false",
";"
] |
[
"sets",
"the",
"image",
"creation",
"time"
] |
[
"this",
"creation",
"time",
"=",
"creation",
"time",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"commandline",
"arguments",
"for",
"main"
] |
[
"if",
"(",
"program",
"arguments",
"=",
"=",
"null",
")",
"{",
"this",
"program",
"arguments",
"=",
"null",
";",
"}",
"else",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"program",
"arguments",
"contains",
"(",
"null",
")",
")",
";",
"this",
"program",
"arguments",
"=",
"immutable",
"list",
"copy",
"of",
"(",
"program",
"arguments",
")",
";",
"}",
"return",
"this",
";"
] |
[
"sets",
"the",
"container",
"s",
"environment",
"variables",
"mapping",
"variable",
"name",
"to",
"value"
] |
[
"if",
"(",
"environment",
"map",
"=",
"=",
"null",
")",
"{",
"this",
"environment",
"map",
"=",
"null",
";",
"}",
"else",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"iterables",
"any",
"(",
"environment",
"map",
"key",
"set",
"(",
")",
",",
"objects",
":",
":",
"is",
"null",
")",
")",
";",
"preconditions",
"check",
"argument",
"(",
"!",
"iterables",
"any",
"(",
"environment",
"map",
"values",
"(",
")",
",",
"objects",
":",
":",
"is",
"null",
")",
")",
";",
"this",
"environment",
"map",
"=",
"immutable",
"map",
"copy",
"of",
"(",
"environment",
"map",
")",
";",
"}",
"return",
"this",
";"
] |
[
"sets",
"the",
"container",
"s",
"exposed",
"ports"
] |
[
"if",
"(",
"exposed",
"ports",
"=",
"=",
"null",
")",
"{",
"this",
"exposed",
"ports",
"=",
"null",
";",
"}",
"else",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"exposed",
"ports",
"contains",
"(",
"null",
")",
")",
";",
"this",
"exposed",
"ports",
"=",
"immutable",
"list",
"copy",
"of",
"(",
"exposed",
"ports",
")",
";",
"}",
"return",
"this",
";"
] |
[
"sets",
"the",
"container",
"s",
"labels"
] |
[
"if",
"(",
"labels",
"=",
"=",
"null",
")",
"{",
"this",
"labels",
"=",
"null",
";",
"}",
"else",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"iterables",
"any",
"(",
"labels",
"key",
"set",
"(",
")",
",",
"objects",
":",
":",
"is",
"null",
")",
")",
";",
"preconditions",
"check",
"argument",
"(",
"!",
"iterables",
"any",
"(",
"labels",
"values",
"(",
")",
",",
"objects",
":",
":",
"is",
"null",
")",
")",
";",
"this",
"labels",
"=",
"immutable",
"map",
"copy",
"of",
"(",
"labels",
")",
";",
"}",
"return",
"this",
";"
] |
[
"sets",
"the",
"container",
"entrypoint"
] |
[
"if",
"(",
"entrypoint",
"=",
"=",
"null",
")",
"{",
"this",
"entrypoint",
"=",
"null",
";",
"}",
"else",
"{",
"preconditions",
"check",
"argument",
"(",
"!",
"entrypoint",
"contains",
"(",
"null",
")",
")",
";",
"this",
"entrypoint",
"=",
"immutable",
"list",
"copy",
"of",
"(",
"entrypoint",
")",
";",
"}",
"return",
"this",
";"
] |
[
"sets",
"the",
"user",
"and",
"group",
"to",
"run",
"the",
"container",
"as",
"{",
"@",
"code",
"user",
"}",
"can",
"be",
"a",
"username",
"or",
"uid",
"along",
"with",
"an",
"optional",
"groupname",
"or",
"gid",
"the",
"following",
"are",
"all",
"valid",
":",
"{",
"@",
"code",
"user",
"}",
"{",
"@",
"code",
"uid",
"}",
"{",
"@",
"code",
"user",
":",
"group",
"}",
"{",
"@",
"code",
"uid",
":",
"gid",
"}",
"{",
"@",
"code",
"uid",
":",
"group",
"}",
"{",
"@",
"code",
"user",
":",
"gid",
"}"
] |
[
"this",
"user",
"=",
"user",
";",
"return",
"this",
";"
] |
[
"builds",
"the",
"{",
"@",
"link",
"container",
"configuration",
"}"
] |
[
"return",
"new",
"container",
"configuration",
"(",
"creation",
"time",
",",
"entrypoint",
",",
"program",
"arguments",
",",
"environment",
"map",
",",
"exposed",
"ports",
",",
"labels",
",",
"user",
")",
";"
] |
[
"set",
"the",
"value",
"of",
"this",
"short",
"writable"
] |
[
"this",
"value",
"=",
"value",
";"
] |
[
"returns",
"mutable",
"value"
] |
[
"return",
"value",
";"
] |
[
"compare",
"the",
"buffers",
"in",
"serialized",
"form"
] |
[
"int",
"a",
"1",
"=",
"(",
"short",
")",
"(",
"read",
"unsigned",
"short",
"(",
"b",
"1",
",",
"s",
"1",
")",
")",
";",
"int",
"a",
"2",
"=",
"(",
"short",
")",
"(",
"read",
"unsigned",
"short",
"(",
"b",
"2",
",",
"s",
"2",
")",
")",
";",
"return",
"a",
"1",
"-",
"a",
"2",
";"
] |
[
"helper",
"method",
"to",
"update",
"key",
"/",
"index",
"mappings"
] |
[
"key",
"to",
"index",
"map",
"put",
"(",
"key",
",",
"position",
")",
";",
"index",
"to",
"key",
"map",
"put",
"(",
"position",
",",
"key",
")",
";"
] |
[
"helper",
"method",
"to",
"swap",
"keys",
"for",
"the",
"specified",
"indices"
] |
[
"int",
"key",
"1",
"=",
"index",
"to",
"key",
"map",
"get",
"(",
"index",
"1",
")",
";",
"int",
"key",
"2",
"=",
"index",
"to",
"key",
"map",
"get",
"(",
"index",
"2",
")",
";",
"update",
"key",
"index",
"map",
"(",
"key",
"1",
",",
"index",
"2",
")",
";",
"update",
"key",
"index",
"map",
"(",
"key",
"2",
",",
"index",
"1",
")",
";"
] |
[
"returns",
"index",
"of",
"left",
"child",
"of",
"the",
"specified",
"index",
"does",
"not",
"check",
"for",
"actual",
"existence",
"of",
"the",
"child",
"in",
"the",
"priority",
"queue"
] |
[
"return",
"(",
"(",
"2",
"*",
"(",
"index",
"+",
"1",
")",
")",
"-",
"1",
")",
";"
] |
[
"returns",
"index",
"of",
"right",
"child",
"of",
"the",
"specified",
"index",
"does",
"not",
"check",
"for",
"actual",
"existence",
"of",
"the",
"child",
"in",
"the",
"priority",
"queue"
] |
[
"return",
"(",
"2",
"*",
"(",
"index",
"+",
"1",
")",
")",
";"
] |
[
"returns",
"the",
"index",
"of",
"parent",
"for",
"the",
"specified",
"node",
"returns",
"-",
"1",
"for",
"root"
] |
[
"return",
"(",
"(",
"(",
"index",
"+",
"1",
")",
"/",
"2",
")",
"-",
"1",
")",
";"
] |
[
"returns",
"java",
"util",
"optional",
"empty",
"(",
")",
"if",
"the",
"parameter",
"is",
"null",
"calls",
"{"
] |
[
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"java",
"optional",
"empty",
";",
"}",
"return",
"invoke",
"java",
"optional",
"of",
"(",
"o",
")",
";"
] |
[
"invokes",
"java",
"util",
"optional",
"of"
] |
[
"try",
"{",
"return",
"java",
"optional",
"of",
"method",
"invoke",
"(",
"null",
",",
"o",
")",
";",
"}",
"catch",
"(",
"illegal",
"access",
"exception",
"e",
")",
"{",
"throw",
"new",
"security",
"exception",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"e",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"invocation",
"target",
"exception",
"e",
")",
"{",
"throw",
"throwables",
"propagate",
"(",
"e",
"get",
"cause",
"(",
")",
")",
";",
"}"
] |
[
"adds",
"a",
"binding",
"for",
"t",
"multiple",
"calls",
"to",
"this",
"are",
"safe",
"and",
"will",
"be",
"collapsed",
"as",
"duplicate",
"bindings"
] |
[
"binder",
"bind",
"(",
"binding",
"selection",
"get",
"direct",
"key",
"(",
")",
")",
"to",
"provider",
"(",
"new",
"real",
"direct",
"type",
"provider",
"<",
"t",
">",
"(",
"binding",
"selection",
")",
")",
";"
] |
[
"returns",
"the",
"key",
"to",
"use",
"for",
"the",
"default",
"binding"
] |
[
"binding",
"selection",
"check",
"not",
"initialized",
"(",
")",
";",
"add",
"direct",
"type",
"binding",
"(",
"binder",
")",
";",
"return",
"binding",
"selection",
"get",
"key",
"for",
"default",
"binding",
"(",
")",
";"
] |
[
"returns",
"the",
"key",
"to",
"use",
"for",
"the",
"actual",
"binding",
"overrides",
"the",
"default",
"if",
"set"
] |
[
"binding",
"selection",
"check",
"not",
"initialized",
"(",
")",
";",
"add",
"direct",
"type",
"binding",
"(",
"binder",
")",
";",
"return",
"binding",
"selection",
"get",
"key",
"for",
"actual",
"binding",
"(",
")",
";"
] |
[
"provide",
"default",
"implementations",
"for",
"most",
"of",
"the",
"optional",
"binder",
"binding",
"interface"
] |
[
"return",
"default",
"binding",
";"
] |
[
"returns",
"the",
"dependency",
"for",
"the",
"target",
"binding",
"throws",
"no",
"such",
"element",
"exception",
"if",
"no",
"target",
"exists"
] |
[
"return",
"iterables",
"get",
"only",
"element",
"(",
"dependencies",
")",
";"
] |
[
"initialize",
"the",
"factory",
"binding",
"selection",
"is",
"guaranteed",
"to",
"be",
"initialized",
"at",
"this",
"point",
"and",
"this",
"will",
"be",
"called",
"prior",
"to",
"any",
"provisioning"
] |
[
"abstract",
"void",
"do",
"initialize",
"(",
")",
";"
] |
[
"determines",
"whether",
"a",
"message",
"with",
"the",
"given",
"pattern",
"was",
"logged"
] |
[
"for",
"(",
"logging",
"event",
"e",
":",
"m",
"events",
")",
"{",
"if",
"(",
"pattern",
"matcher",
"(",
"e",
"get",
"rendered",
"message",
"(",
")",
")",
"matches",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"{"
] |
[
"return",
"false",
";"
] |
[
"returns",
"the",
"number",
"of",
"checkpoints",
"that",
"were",
"loaded"
] |
[
"return",
"checkpoints",
"size",
"(",
")",
";"
] |
[
"returns",
"a",
"hash",
"of",
"the",
"concatenated",
"checkpoint",
"data"
] |
[
"return",
"data",
"hash",
";"
] |
[
"{"
] |
[
"connection",
"mark",
"commit",
"state",
"dirty",
"(",
")",
";",
"return",
"(",
"(",
"prepared",
"statement",
")",
"delegate",
")",
"execute",
"(",
")",
";"
] |
[
"{"
] |
[
"connection",
"mark",
"commit",
"state",
"dirty",
"(",
")",
";",
"result",
"set",
"result",
"set",
"=",
"(",
"(",
"prepared",
"statement",
")",
"delegate",
")",
"execute",
"query",
"(",
")",
";",
"return",
"proxy",
"factory",
"get",
"proxy",
"result",
"set",
"(",
"connection",
",",
"this",
",",
"result",
"set",
")",
";"
] |
[
"{"
] |
[
"connection",
"mark",
"commit",
"state",
"dirty",
"(",
")",
";",
"return",
"(",
"(",
"prepared",
"statement",
")",
"delegate",
")",
"execute",
"update",
"(",
")",
";"
] |
[
"{"
] |
[
"connection",
"mark",
"commit",
"state",
"dirty",
"(",
")",
";",
"return",
"(",
"(",
"prepared",
"statement",
")",
"delegate",
")",
"execute",
"large",
"update",
"(",
")",
";"
] |
[
"guarded",
"by",
"{"
] |
[
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"=",
"last",
";",
"j",
"+",
"+",
")",
"{",
"check",
"(",
"inodes",
"[",
"j",
"]",
",",
"path",
",",
"fs",
"action",
"execute",
")",
";",
"}"
] |
[
"guarded",
"by",
"{"
] |
[
"check",
"(",
"i",
">",
"=",
"0",
"?",
"inodes",
"[",
"i",
"]",
":",
"null",
",",
"path",
",",
"access",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.