docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"information",
"about",
"the",
"attribute",
"<",
"/",
"p",
">"
] |
[
"set",
"fpga",
"image",
"attribute",
"(",
"fpga",
"image",
"attribute",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"md5",
"in",
"base",
"6",
"4",
"for",
"the",
"data",
"from",
"the",
"given",
"input",
"stream",
"note",
"this",
"method",
"closes",
"the",
"given",
"input",
"stream",
"upon",
"completion"
] |
[
"return",
"base",
"6",
"4",
"encode",
"as",
"string",
"(",
"compute",
"m",
"d",
"5",
"hash",
"(",
"is",
")",
")",
";"
] |
[
"returns",
"the",
"md5",
"in",
"base",
"6",
"4",
"for",
"the",
"given",
"byte",
"array"
] |
[
"return",
"base",
"6",
"4",
"encode",
"as",
"string",
"(",
"compute",
"m",
"d",
"5",
"hash",
"(",
"input",
")",
")",
";"
] |
[
"computes",
"the",
"md5",
"of",
"the",
"given",
"file"
] |
[
"return",
"compute",
"m",
"d",
"5",
"hash",
"(",
"new",
"file",
"input",
"stream",
"(",
"file",
")",
")",
";"
] |
[
"returns",
"the",
"md5",
"in",
"base",
"6",
"4",
"for",
"the",
"given",
"file"
] |
[
"return",
"base",
"6",
"4",
"encode",
"as",
"string",
"(",
"compute",
"m",
"d",
"5",
"hash",
"(",
"file",
")",
")",
";"
] |
[
"retrieves",
"the",
"unique",
"session",
"identifier",
"associated",
"with",
"this",
"object"
] |
[
"return",
"m",
"unique",
"id",
";"
] |
[
"retrieves",
"the",
"attribute",
"associated",
"with",
"the",
"specified",
"key"
] |
[
"return",
"m",
"attributes",
"get",
"(",
"key",
")",
";"
] |
[
"constructs",
"a",
"new",
"{",
"@",
"code",
"thread",
"}",
"implementations",
"may",
"also",
"initialize",
"priority",
"name",
"daemon",
"status",
"{",
"@",
"code",
"thread",
"group",
"}",
"etc"
] |
[
"thread",
"thread",
"=",
"new",
"thread",
"(",
"this",
"group",
",",
"r",
",",
"name",
"prefix",
"+",
"this",
"thread",
"number",
"get",
"and",
"increment",
"(",
")",
",",
"0l",
")",
";",
"if",
"(",
"thread",
"is",
"daemon",
"(",
")",
")",
"{",
"thread",
"set",
"daemon",
"(",
"false",
")",
";",
"}",
"if",
"(",
"thread",
"get",
"priority",
"(",
")",
"!",
"=",
"5",
")",
"{",
"thread",
"set",
"priority",
"(",
"5",
")",
";",
"}",
"return",
"thread",
";"
] |
[
"post",
"an",
"runnable",
"to",
"the",
"pool",
"thread"
] |
[
"return",
"s",
"instance",
"execute",
"(",
"task",
")",
";"
] |
[
"parses",
"the",
"xml",
"date",
"string",
"and",
"creates",
"a",
"java",
"date",
"object",
"from",
"it",
"this",
"function",
"is",
"synchronized",
"as",
"simple",
"date",
"format",
"is",
"not",
"thread",
"-",
"safe"
] |
[
"try",
"{",
"return",
"sdf",
"default",
"parse",
"(",
"text",
"representation",
")",
";",
"}",
"catch",
"(",
"parse",
"exception",
"ex",
")",
"{",
"return",
"sdf",
"gnu",
"step",
"parse",
"(",
"text",
"representation",
")",
";",
"}"
] |
[
"generates",
"a",
"string",
"representation",
"of",
"a",
"java",
"date",
"object",
"the",
"string",
"is",
"formatted",
"according",
"to",
"the",
"specification",
"for",
"xml",
"property",
"list",
"dates"
] |
[
"return",
"sdf",
"default",
"format",
"(",
"date",
")",
";"
] |
[
"generates",
"a",
"string",
"representation",
"of",
"a",
"java",
"date",
"object",
"the",
"string",
"is",
"formatted",
"according",
"to",
"the",
"specification",
"for",
"gnu",
"step",
"ascii",
"property",
"list",
"dates"
] |
[
"return",
"sdf",
"gnu",
"step",
"format",
"(",
"date",
")",
";"
] |
[
"the",
"bitcoin",
"address",
"from",
"the",
"uri",
"if",
"one",
"was",
"present",
"it",
"s",
"possible",
"to",
"have",
"bitcoin",
"uri",
"s",
"with",
"no",
"address",
"if",
"a",
"r",
"=",
"payment",
"protocol",
"parameter",
"is",
"specified",
"though",
"this",
"form",
"is",
"not",
"recommended",
"as",
"older",
"wallets",
"can",
"t",
"understand",
"it"
] |
[
"return",
"(",
"address",
")",
"parameter",
"map",
"get",
"(",
"field",
"address",
")",
";"
] |
[
"returns",
"the",
"u",
"r",
"ls",
"where",
"a",
"payment",
"request",
"(",
"as",
"specified",
"in",
"bip",
"70",
")",
"may",
"be",
"fetched",
"the",
"first",
"url",
"is",
"the",
"main",
"url",
"all",
"subsequent",
"u",
"r",
"ls",
"are",
"fallbacks"
] |
[
"array",
"list",
"<",
"string",
">",
"urls",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"while",
"(",
"true",
")",
"{",
"int",
"i",
"=",
"urls",
"size",
"(",
")",
";",
"string",
"param",
"name",
"=",
"field",
"payment",
"request",
"url",
"+",
"(",
"i",
">",
"0",
"?",
"integer",
"to",
"string",
"(",
"i",
")",
":",
"\"",
"\"",
")",
";",
"string",
"url",
"=",
"(",
"string",
")",
"parameter",
"map",
"get",
"(",
"param",
"name",
")",
";",
"if",
"(",
"url",
"=",
"=",
"null",
")",
"break",
";",
"urls",
"add",
"(",
"url",
")",
";",
"}",
"collections",
"reverse",
"(",
"urls",
")",
";",
"return",
"urls",
";"
] |
[
"simple",
"bitcoin",
"uri",
"builder",
"using",
"known",
"good",
"fields"
] |
[
"return",
"convert",
"to",
"bitcoin",
"u",
"r",
"i",
"(",
"address",
"get",
"parameters",
"(",
")",
",",
"address",
"to",
"string",
"(",
")",
",",
"amount",
",",
"label",
",",
"message",
")",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"new",
"static",
"producer",
"<",
">",
"(",
"object",
")",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"new",
"function",
"to",
"supplier",
"converter",
"<",
">",
"(",
"function",
",",
"from",
")",
";"
] |
[
"returns",
"the",
"location",
"of",
"a",
"given",
"static",
"field"
] |
[
"try",
"{",
"return",
"unsafe",
"object",
"field",
"offset",
"(",
"clazz",
"get",
"declared",
"field",
"(",
"field",
"name",
")",
")",
";",
"}",
"catch",
"(",
"no",
"such",
"field",
"exception",
"|",
"security",
"exception",
"e",
")",
"{",
"throw",
"new",
"error",
"(",
"e",
")",
";",
"}"
] |
[
"<",
"p",
">",
"a",
"serializer",
"to",
"use",
"for",
"converting",
"data",
"to",
"the",
"parquet",
"format",
"before",
"storing",
"it",
"in",
"amazon",
"s3",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"parquet",
"apache",
"org",
"/",
"documentation",
"/",
"latest",
"/",
">",
"apache",
"parquet",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"this",
"parquet",
"ser",
"de",
"=",
"parquet",
"ser",
"de",
";"
] |
[
"<",
"p",
">",
"a",
"serializer",
"to",
"use",
"for",
"converting",
"data",
"to",
"the",
"parquet",
"format",
"before",
"storing",
"it",
"in",
"amazon",
"s3",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"parquet",
"apache",
"org",
"/",
"documentation",
"/",
"latest",
"/",
">",
"apache",
"parquet",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"parquet",
"ser",
"de",
";"
] |
[
"<",
"p",
">",
"a",
"serializer",
"to",
"use",
"for",
"converting",
"data",
"to",
"the",
"parquet",
"format",
"before",
"storing",
"it",
"in",
"amazon",
"s3",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"parquet",
"apache",
"org",
"/",
"documentation",
"/",
"latest",
"/",
">",
"apache",
"parquet",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"set",
"parquet",
"ser",
"de",
"(",
"parquet",
"ser",
"de",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"serializer",
"to",
"use",
"for",
"converting",
"data",
"to",
"the",
"orc",
"format",
"before",
"storing",
"it",
"in",
"amazon",
"s3",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"orc",
"apache",
"org",
"/",
"docs",
"/",
">",
"apache",
"orc",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"this",
"orc",
"ser",
"de",
"=",
"orc",
"ser",
"de",
";"
] |
[
"<",
"p",
">",
"a",
"serializer",
"to",
"use",
"for",
"converting",
"data",
"to",
"the",
"orc",
"format",
"before",
"storing",
"it",
"in",
"amazon",
"s3",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"orc",
"apache",
"org",
"/",
"docs",
"/",
">",
"apache",
"orc",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"orc",
"ser",
"de",
";"
] |
[
"<",
"p",
">",
"a",
"serializer",
"to",
"use",
"for",
"converting",
"data",
"to",
"the",
"orc",
"format",
"before",
"storing",
"it",
"in",
"amazon",
"s3",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"orc",
"apache",
"org",
"/",
"docs",
"/",
">",
"apache",
"orc",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"set",
"orc",
"ser",
"de",
"(",
"orc",
"ser",
"de",
")",
";",
"return",
"this",
";"
] |
[
"set",
"data",
"without",
"call",
"{",
"@",
"link",
"recycler",
"view",
"adapter",
"#",
"notify",
"data",
"set",
"changed",
"(",
")",
"}"
] |
[
"set",
"data",
"(",
"cards",
",",
"false",
")",
";"
] |
[
"get",
"correspond",
"items",
"for",
"card"
] |
[
"protected",
"abstract",
"list",
"<",
"c",
">",
"get",
"items",
"(",
"@",
"non",
"null",
"l",
"card",
")",
";"
] |
[
"{"
] |
[
"if",
"(",
"m",
"performance",
"monitor",
"!",
"=",
"null",
")",
"{",
"m",
"performance",
"monitor",
"record",
"start",
"(",
"phase",
"unbind",
",",
"holder",
"item",
"view",
")",
";",
"}",
"holder",
"unbind",
"(",
")",
";",
"if",
"(",
"m",
"performance",
"monitor",
"!",
"=",
"null",
")",
"{",
"m",
"performance",
"monitor",
"record",
"end",
"(",
"phase",
"unbind",
",",
"holder",
"item",
"view",
")",
";",
"}"
] |
[
"get",
"type",
"of",
"card"
] |
[
"@",
"deprecated",
"public",
"abstract",
"int",
"get",
"card",
"type",
"(",
"l",
"card",
")",
";"
] |
[
"get",
"card",
"range",
"by",
"id"
] |
[
"public",
"abstract",
"range",
"<",
"integer",
">",
"get",
"card",
"range",
"(",
"string",
"id",
")",
";"
] |
[
"get",
"type",
"of",
"card",
"in",
"string",
"type"
] |
[
"public",
"abstract",
"string",
"get",
"card",
"string",
"type",
"(",
"l",
"card",
")",
";"
] |
[
"get",
"tangram",
"cell",
"type",
"from",
"recycler",
"view",
"s",
"item",
"type"
] |
[
"public",
"abstract",
"string",
"get",
"cell",
"type",
"from",
"item",
"type",
"(",
"int",
"view",
"type",
")",
";"
] |
[
"find",
"item",
"type",
"for",
"cell"
] |
[
"public",
"abstract",
"int",
"get",
"item",
"type",
"(",
"c",
"item",
")",
";"
] |
[
"refresh",
"inner",
"data",
"structure",
"without",
"notify",
"data",
"set",
"change",
"must",
"be",
"followed",
"with",
"a",
"notify",
"data",
"set",
"changed",
"or",
"other",
"notify",
"methods"
] |
[
"set",
"data",
"(",
"get",
"groups",
"(",
")",
",",
"true",
")",
";"
] |
[
"insert",
"groups",
"after",
"position",
"inserted"
] |
[
"if",
"(",
"inserted",
"<",
"0",
"|",
"|",
"inserted",
">",
"=",
"m",
"cards",
"size",
"(",
")",
"|",
"|",
"groups",
"=",
"=",
"null",
"|",
"|",
"groups",
"size",
"(",
")",
"=",
"=",
"0",
")",
"return",
";",
"list",
"<",
"l",
">",
"cards",
"=",
"get",
"groups",
"(",
")",
";",
"boolean",
"changed",
"=",
"cards",
"add",
"all",
"(",
"inserted",
",",
"groups",
")",
";",
"if",
"(",
"changed",
")",
"set",
"data",
"(",
"cards",
")",
";"
] |
[
"remove",
"a",
"group"
] |
[
"if",
"(",
"group",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"list",
"<",
"l",
">",
"cards",
"=",
"get",
"groups",
"(",
")",
";",
"boolean",
"changed",
"=",
"cards",
"remove",
"(",
"group",
")",
";",
"if",
"(",
"changed",
")",
"{",
"set",
"data",
"(",
"cards",
")",
";",
"}"
] |
[
"remove",
"a",
"group"
] |
[
"list",
"<",
"l",
">",
"cards",
"=",
"get",
"groups",
"(",
")",
";",
"if",
"(",
"removed",
">",
"=",
"0",
"&",
"&",
"removed",
"<",
"cards",
"size",
"(",
")",
")",
"{",
"boolean",
"changed",
"=",
"cards",
"remove",
"(",
"removed",
")",
"!",
"=",
"null",
";",
"if",
"(",
"changed",
")",
"{",
"set",
"data",
"(",
"cards",
")",
";",
"}",
"}"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"remove",
"component",
"(",
"int",
"position",
")",
";"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"remove",
"component",
"(",
"c",
"component",
")",
";"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"remove",
"components",
"(",
"l",
"group",
")",
";"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"insert",
"components",
"(",
"int",
"pos",
",",
"list",
"<",
"c",
">",
"components",
")",
";"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"insert",
"batch",
"components",
"(",
"int",
"idx",
",",
"list",
"<",
"l",
">",
"group",
")",
";"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"replace",
"component",
"(",
"list",
"<",
"c",
">",
"old",
"component",
",",
"list",
"<",
"c",
">",
"new",
"component",
")",
";"
] |
[
"!",
"!",
"!",
"do",
"not",
"call",
"this",
"method",
"directly",
"it",
"s",
"not",
"designed",
"for",
"users"
] |
[
"abstract",
"public",
"void",
"replace",
"component",
"(",
"l",
"old",
"group",
",",
"l",
"new",
"group",
")",
";"
] |
[
"/",
"*",
"test",
"enqueue",
"method",
"happy",
"case"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"for",
"(",
"final",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
"pair",
":",
"data",
"list",
")",
"{",
"queue",
"enqueue",
"(",
"pair",
"get",
"second",
"(",
")",
",",
"pair",
"get",
"first",
"(",
")",
")",
";",
"}",
"assert",
"assert",
"true",
"(",
"queue",
"get",
"all",
"entries",
"(",
")",
"contains",
"all",
"(",
"data",
"list",
")",
")",
";",
"assert",
"assert",
"true",
"(",
"data",
"list",
"contains",
"all",
"(",
"queue",
"get",
"all",
"entries",
"(",
")",
")",
")",
";"
] |
[
"/",
"*",
"test",
"enqueue",
"all",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"assert",
"assert",
"true",
"(",
"queue",
"get",
"all",
"entries",
"(",
")",
"contains",
"all",
"(",
"data",
"list",
")",
")",
";",
"assert",
"assert",
"true",
"(",
"data",
"list",
"contains",
"all",
"(",
"queue",
"get",
"all",
"entries",
"(",
")",
")",
")",
";"
] |
[
"/",
"*",
"test",
"size",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"size",
"(",
")",
",",
"2",
")",
";"
] |
[
"/",
"*",
"test",
"dequeue",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"queue",
"dequeue",
"(",
"data",
"list",
"get",
"(",
"0",
")",
"get",
"first",
"(",
")",
"get",
"exec",
"id",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"size",
"(",
")",
",",
"1",
")",
";",
"assert",
"assert",
"true",
"(",
"queue",
"get",
"all",
"entries",
"(",
")",
"contains",
"(",
"data",
"list",
"get",
"(",
"1",
")",
")",
")",
";"
] |
[
"/",
"*",
"test",
"clear",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"size",
"(",
")",
",",
"2",
")",
";",
"queue",
"clear",
"(",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"size",
"(",
")",
",",
"0",
")",
";"
] |
[
"/",
"*",
"test",
"is",
"empty",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"assert",
"assert",
"true",
"(",
"queue",
"is",
"empty",
"(",
")",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"size",
"(",
")",
",",
"2",
")",
";",
"queue",
"clear",
"(",
")",
";",
"assert",
"assert",
"true",
"(",
"queue",
"is",
"empty",
"(",
")",
")",
";"
] |
[
"/",
"*",
"test",
"fetch",
"head",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"5",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"assert",
"assert",
"true",
"(",
"queue",
"is",
"empty",
"(",
")",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"fetch",
"head",
"(",
")",
",",
"data",
"list",
"get",
"(",
"0",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"queue",
"fetch",
"head",
"(",
")",
",",
"data",
"list",
"get",
"(",
"1",
")",
")",
";"
] |
[
"/",
"*",
"test",
"is",
"full",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"2",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"assert",
"assert",
"true",
"(",
"queue",
"is",
"full",
"(",
")",
")",
";"
] |
[
"/",
"*",
"test",
"has",
"execution",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"2",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"for",
"(",
"final",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
"pair",
":",
"data",
"list",
")",
"{",
"assert",
"assert",
"true",
"(",
"queue",
"has",
"execution",
"(",
"pair",
"get",
"first",
"(",
")",
"get",
"exec",
"id",
"(",
")",
")",
")",
";",
"}",
"assert",
"assert",
"false",
"(",
"queue",
"has",
"execution",
"(",
"5",
")",
")",
";",
"assert",
"assert",
"false",
"(",
"queue",
"has",
"execution",
"(",
"7",
")",
")",
";",
"assert",
"assert",
"false",
"(",
"queue",
"has",
"execution",
"(",
"15",
")",
")",
";"
] |
[
"/",
"*",
"test",
"get",
"flow",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"2",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"for",
"(",
"final",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
"pair",
":",
"data",
"list",
")",
"{",
"assert",
"assert",
"equals",
"(",
"pair",
"get",
"second",
"(",
")",
",",
"queue",
"get",
"flow",
"(",
"pair",
"get",
"first",
"(",
")",
"get",
"exec",
"id",
"(",
")",
")",
")",
";",
"}"
] |
[
"/",
"*",
"test",
"get",
"references",
"method"
] |
[
"final",
"queued",
"executions",
"queue",
"=",
"new",
"queued",
"executions",
"(",
"2",
")",
";",
"final",
"list",
"<",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
">",
"data",
"list",
"=",
"get",
"dummy",
"data",
"(",
")",
";",
"queue",
"enqueue",
"all",
"(",
"data",
"list",
")",
";",
"for",
"(",
"final",
"pair",
"<",
"execution",
"reference",
",",
"executable",
"flow",
">",
"pair",
":",
"data",
"list",
")",
"{",
"assert",
"assert",
"equals",
"(",
"pair",
"get",
"first",
"(",
")",
",",
"queue",
"get",
"reference",
"(",
"pair",
"get",
"first",
"(",
")",
"get",
"exec",
"id",
"(",
")",
")",
")",
";",
"}"
] |
[
"gets",
"the",
"read",
"concern",
"level"
] |
[
"return",
"level",
";"
] |
[
"{"
] |
[
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"(",
"(",
"tcp",
"discovery",
"spi",
")",
"cfg",
"get",
"discovery",
"spi",
"(",
")",
")",
"set",
"ip",
"finder",
"(",
"ip",
"finder",
")",
";",
"(",
"(",
"tcp",
"communication",
"spi",
")",
"cfg",
"get",
"communication",
"spi",
"(",
")",
")",
"set",
"shared",
"memory",
"port",
"(",
"-",
"1",
")",
";",
"cfg",
"set",
"client",
"mode",
"(",
"client",
")",
";",
"memory",
"event",
"storage",
"spi",
"store",
"spi",
"=",
"new",
"memory",
"event",
"storage",
"spi",
"(",
")",
";",
"store",
"spi",
"set",
"expire",
"count",
"(",
"100",
")",
";",
"cfg",
"set",
"event",
"storage",
"spi",
"(",
"store",
"spi",
")",
";",
"return",
"cfg",
";"
] |
[
"{"
] |
[
"super",
"before",
"test",
"(",
")",
";",
"fail",
"=",
"false",
";"
] |
[
"{"
] |
[
"return",
"time",
"unit",
"minutes",
"to",
"millis",
"(",
"8",
")",
";"
] |
[
"{"
] |
[
"if",
"(",
"affinity",
"(",
"ignite",
"cache",
"(",
"cache",
"name",
")",
")",
"is",
"primary",
"(",
"ignite",
"cluster",
"(",
")",
"local",
"node",
"(",
")",
",",
"e",
"get",
"key",
"(",
")",
")",
")",
"{",
"query",
"test",
"value",
"prev",
"val",
"=",
"prev",
"vals",
"put",
"(",
"e",
"get",
"key",
"(",
")",
",",
"e",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"prev",
"val",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"new",
"query",
"test",
"value",
"(",
"prev",
"val",
"val",
"1",
"+",
"1",
")",
"equals",
"(",
"e",
"get",
"value",
"(",
")",
")",
")",
"fail",
"=",
"true",
";",
"}",
"}",
"return",
"true",
";"
] |
[
"{"
] |
[
"for",
"(",
"cache",
"entry",
"event",
"<",
"?",
"extends",
"query",
"test",
"key",
",",
"?",
"extends",
"query",
"test",
"value",
">",
"e",
":",
"evts",
")",
"{",
"queue",
"add",
"(",
"(",
"cache",
"entry",
"event",
"<",
"query",
"test",
"key",
",",
"query",
"test",
"value",
">",
")",
"e",
")",
";",
"cntr",
"increment",
"and",
"get",
"(",
")",
";",
"}"
] |
[
"helpers"
] |
[
"try",
"{",
"return",
"properties",
"component",
"parse",
"uri",
"(",
"properties",
"component",
"get",
"prefix",
"token",
"(",
")",
"+",
"key",
"+",
"properties",
"component",
"get",
"suffix",
"token",
"(",
")",
")",
";",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"e",
")",
"{",
"return",
"default",
"value",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"{"
] |
[
"plc",
"init",
"(",
"cluster",
",",
"hosts",
")",
";"
] |
[
"{"
] |
[
"return",
"plc",
"distance",
"(",
"host",
")",
";"
] |
[
"{"
] |
[
"return",
"plc",
"new",
"query",
"plan",
"(",
"logged",
"keyspace",
",",
"statement",
")",
";"
] |
[
"{"
] |
[
"plc",
"on",
"add",
"(",
"host",
")",
";"
] |
[
"{"
] |
[
"plc",
"on",
"up",
"(",
"host",
")",
";"
] |
[
"{"
] |
[
"plc",
"on",
"down",
"(",
"host",
")",
";"
] |
[
"{"
] |
[
"plc",
"on",
"remove",
"(",
"host",
")",
";"
] |
[
"{"
] |
[
"plc",
"close",
"(",
")",
";"
] |
[
"do",
"if",
"function"
] |
[
"return",
"t",
"-",
">",
"{",
"try",
"{",
"if",
"(",
"condition",
"test",
"(",
"t",
")",
")",
"{",
"return",
"true",
"function",
"get",
"(",
")",
";",
"}",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"}",
";"
] |
[
"do",
"if",
"function"
] |
[
"return",
"(",
")",
"-",
">",
"{",
"try",
"{",
"if",
"(",
"condition",
")",
"{",
"return",
"true",
"function",
"get",
"(",
")",
";",
"}",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"}",
";"
] |
[
"conditional",
"function",
"function"
] |
[
"return",
"t",
"-",
">",
"{",
"try",
"{",
"if",
"(",
"condition",
"test",
"(",
"t",
")",
")",
"{",
"return",
"true",
"function",
"apply",
"(",
"t",
")",
";",
"}",
"return",
"false",
"function",
"apply",
"(",
"t",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"try",
"{",
"return",
"false",
"function",
"apply",
"(",
"t",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"ex",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"ex",
"get",
"message",
"(",
")",
")",
";",
"}",
"}",
"}",
";"
] |
[
"supply",
"if",
"not",
"null",
"supplier"
] |
[
"return",
"(",
")",
"-",
">",
"{",
"try",
"{",
"if",
"(",
"input",
"!",
"=",
"null",
")",
"{",
"return",
"true",
"function",
"get",
"(",
")",
";",
"}",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"}",
";"
] |
[
"supply",
"if",
"null",
"supplier"
] |
[
"return",
"(",
")",
"-",
">",
"{",
"try",
"{",
"if",
"(",
"input",
"=",
"=",
"null",
")",
"{",
"return",
"true",
"function",
"get",
"(",
")",
";",
"}",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"return",
"false",
"function",
"get",
"(",
")",
";",
"}",
"}",
";"
] |
[
"default",
"function",
"function"
] |
[
"return",
"t",
"-",
">",
"{",
"try",
"{",
"return",
"function",
"apply",
"(",
"t",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"try",
"{",
"return",
"error",
"handler",
"apply",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"ex",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"ex",
"get",
"message",
"(",
")",
")",
";",
"}",
"}",
"}",
";"
] |
[
"do",
"and",
"handle",
"supplier"
] |
[
"return",
"(",
")",
"-",
">",
"{",
"try",
"{",
"return",
"function",
"get",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"e",
")",
"{",
"logger",
"warn",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"try",
"{",
"return",
"error",
"handler",
"apply",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"ex",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"ex",
"get",
"message",
"(",
")",
")",
";",
"}",
"}",
"}",
";"
] |
[
"pattern"
] |
[
"return",
"pattern",
"compile",
"(",
"regex",
"(",
")",
")",
";"
] |
[
"determines",
"whether",
"the",
"given",
"{"
] |
[
"return",
"expressions",
"(",
")",
"stream",
"(",
")",
"any",
"match",
"(",
"expr",
"-",
">",
"expr",
"pattern",
"(",
")",
"matcher",
"(",
"mnemonic",
")",
"matches",
"(",
")",
")",
";"
] |
[
"modifies",
"the",
"given",
"map",
"of",
"{"
] |
[
"for",
"(",
"expression",
"expr",
":",
"expressions",
"(",
")",
")",
"{",
"if",
"(",
"expr",
"pattern",
"(",
")",
"matcher",
"(",
"mnemonic",
")",
"matches",
"(",
")",
")",
"{",
"if",
"(",
"expr",
"remove",
"(",
")",
")",
"{",
"execution",
"info",
"remove",
"(",
"expr",
"key",
"(",
")",
")",
";",
"}",
"else",
"{",
"execution",
"info",
"put",
"(",
"expr",
"key",
"(",
")",
",",
"\"",
"\"",
")",
";",
"}",
"}",
"}"
] |
[
"does",
"the",
"digraph",
"contain",
"the",
"vertex",
"named",
"{"
] |
[
"return",
"st",
"contains",
"(",
"s",
")",
";"
] |
[
"returns",
"the",
"integer",
"associated",
"with",
"the",
"vertex",
"named",
"{"
] |
[
"return",
"st",
"get",
"(",
"s",
")",
";"
] |
[
"returns",
"the",
"integer",
"associated",
"with",
"the",
"vertex",
"named",
"{"
] |
[
"return",
"st",
"get",
"(",
"s",
")",
";"
] |
[
"returns",
"the",
"name",
"of",
"the",
"vertex",
"associated",
"with",
"the",
"integer",
"{"
] |
[
"validate",
"vertex",
"(",
"v",
")",
";",
"return",
"keys",
"[",
"v",
"]",
";"
] |
[
"returns",
"the",
"name",
"of",
"the",
"vertex",
"associated",
"with",
"the",
"integer",
"{"
] |
[
"validate",
"vertex",
"(",
"v",
")",
";",
"return",
"keys",
"[",
"v",
"]",
";"
] |
[
"returns",
"the",
"graph",
"assoicated",
"with",
"the",
"symbol",
"graph",
"it",
"is",
"the",
"client",
"s",
"responsibility",
"not",
"to",
"mutate",
"the",
"graph"
] |
[
"return",
"graph",
";"
] |
[
"returns",
"the",
"graph",
"assoicated",
"with",
"the",
"symbol",
"graph",
"it",
"is",
"the",
"client",
"s",
"responsibility",
"not",
"to",
"mutate",
"the",
"graph"
] |
[
"return",
"graph",
";"
] |
[
"wait",
"until",
"the",
"shuffle",
"finishes",
"or",
"until",
"the",
"timeout"
] |
[
"if",
"(",
"remaining",
"maps",
">",
"0",
")",
"{",
"wait",
"(",
"millis",
")",
";",
"return",
"remaining",
"maps",
"=",
"=",
"0",
";",
"}",
"return",
"true",
";"
] |
[
"doesn",
"t",
"appear",
"to",
"be",
"called",
"(",
"but",
"must",
"be",
"implemented",
")"
] |
[
"write",
"(",
"new",
"byte",
"[",
"]",
"{",
"(",
"byte",
")",
"b",
"}",
",",
"0",
",",
"1",
")",
";"
] |
[
"updates",
"every",
"250",
"ms",
"when",
"an",
"app",
"isn",
"t",
"even",
"running",
"see",
"bug",
"180",
")"
] |
[
"return",
"elements",
"size",
"(",
")",
">",
"0",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"request",
"operation",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"operations",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"operations",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"operations",
"=",
"=",
"null",
")",
"{",
"set",
"operations",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"operation",
">",
"(",
"operations",
"length",
")",
")",
";",
"}",
"for",
"(",
"operation",
"ele",
":",
"operations",
")",
"{",
"this",
"operations",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"request",
"operation",
"<",
"/",
"p",
">"
] |
[
"set",
"operations",
"(",
"operations",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"selected",
"font",
"provider",
"s",
"authority",
"this",
"tells",
"the",
"system",
"what",
"font",
"provider",
"it",
"should",
"request",
"the",
"font",
"from"
] |
[
"return",
"m",
"provider",
"authority",
";"
] |
[
"returns",
"the",
"selected",
"font",
"provider",
"s",
"package",
"this",
"helps",
"the",
"system",
"verify",
"that",
"the",
"provider",
"identified",
"by",
"the",
"given",
"authority",
"is",
"the",
"one",
"requested"
] |
[
"return",
"m",
"provider",
"package",
";"
] |
[
"returns",
"the",
"list",
"of",
"certificate",
"sets",
"given",
"for",
"this",
"provider",
"this",
"helps",
"the",
"system",
"verify",
"that",
"the",
"provider",
"identified",
"by",
"the",
"given",
"authority",
"is",
"the",
"one",
"requested"
] |
[
"return",
"m",
"certificates",
";"
] |
[
"<",
"p",
">",
"the",
"role",
"alias",
"to",
"describe",
"<",
"/",
"p",
">"
] |
[
"set",
"role",
"alias",
"(",
"role",
"alias",
")",
";",
"return",
"this",
";"
] |
[
"create",
"mage"
] |
[
"try",
"{",
"return",
"mage",
"copy",
"(",
")",
";",
"}",
"catch",
"(",
"clone",
"not",
"supported",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"create",
"warlord"
] |
[
"try",
"{",
"return",
"warlord",
"copy",
"(",
")",
";",
"}",
"catch",
"(",
"clone",
"not",
"supported",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"create",
"beast"
] |
[
"try",
"{",
"return",
"beast",
"copy",
"(",
")",
";",
"}",
"catch",
"(",
"clone",
"not",
"supported",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"backlog",
"-",
"8520",
"check",
"that",
"method",
"call",
"does",
"t",
"throw",
"an",
"error",
"null",
"pointer",
"exception"
] |
[
"get",
"join",
"rows",
"(",
")",
"dispose",
"(",
"meta",
",",
"data",
")",
";"
] |
[
"return",
"whether",
"or",
"not",
"this",
"formatter",
"can",
"handle",
"formatting",
"the",
"given",
"file"
] |
[
"return",
"std",
"file",
"types",
"java",
"equals",
"(",
"file",
"get",
"file",
"type",
"(",
")",
")",
"&",
"&",
"google",
"java",
"format",
"settings",
"get",
"instance",
"(",
"get",
"project",
"(",
")",
")",
"is",
"enabled",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.