docstring_tokens
list | code_tokens
list |
---|---|
[
"use",
"binary",
"search",
"to",
"find",
"the",
"index",
"where",
"the",
"value",
"is",
"(",
"or",
"should",
"be",
",",
"in",
"case",
"of",
"add",
")"
] |
[
"private",
"int",
"find",
"index",
"(",
"byte",
"value",
")",
"{",
"if",
"(",
"children",
"length",
"=",
"=",
"0",
")",
"{",
"return",
"0",
";",
"}",
"int",
"left",
"=",
"0",
";",
"int",
"right",
"=",
"children",
"length",
";",
"while",
"(",
"right",
">",
"=",
"left",
")",
"{",
"int",
"mid",
"=",
"(",
"left",
"+",
"right",
")",
"/",
"2",
";",
"if",
"(",
"mid",
">",
"=",
"children",
"length",
")",
"{",
"return",
"mid",
";",
"}",
"byte",
"trie",
"node",
"<",
"t",
">",
"child",
"=",
"children",
"[",
"mid",
"]",
";",
"byte",
"id",
"=",
"transform",
"byte",
"(",
"child",
"get",
"id",
"(",
")",
")",
";",
"if",
"(",
"id",
"=",
"=",
"value",
")",
"{",
"return",
"mid",
";",
"}",
"else",
"if",
"(",
"id",
"<",
"value",
")",
"{",
"left",
"=",
"mid",
"+",
"1",
";",
"}",
"else",
"{",
"right",
"=",
"mid",
"-",
"1",
";",
"}",
"}",
"return",
"left",
";",
"}"
] |
[
"get",
"small",
"snake"
] |
[
"public",
"string",
"get",
"small",
"snake",
"(",
")",
"{",
"return",
"small",
"snake",
";",
"}"
] |
[
"get",
"the",
"current",
"health",
"report",
"for",
"a",
"job"
] |
[
"public",
"health",
"report",
"get",
"build",
"health",
"(",
")",
"{",
"list",
"<",
"health",
"report",
">",
"reports",
"=",
"get",
"build",
"health",
"reports",
"(",
")",
";",
"return",
"reports",
"is",
"empty",
"(",
")",
"?",
"new",
"health",
"report",
"(",
")",
":",
"reports",
"get",
"(",
"0",
")",
";",
"}"
] |
[
"iteratively",
"looks",
"through",
"the",
"causality",
"chain",
"for",
"the",
"given",
"exception",
"and",
"returns",
"the",
"first",
"{",
"@",
"link",
"http",
"2",
"exception",
"}",
"or",
"{",
"@",
"code",
"null",
"}",
"if",
"none"
] |
[
"public",
"static",
"http",
"2",
"exception",
"get",
"embedded",
"http",
"2",
"exception",
"(",
"throwable",
"cause",
")",
"{",
"while",
"(",
"cause",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"cause",
"instanceof",
"http",
"2",
"exception",
")",
"{",
"return",
"(",
"http",
"2",
"exception",
")",
"cause",
";",
"}",
"cause",
"=",
"cause",
"get",
"cause",
"(",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
[
"called",
"when",
"the",
"keys",
"in",
"a",
"session",
"change",
"status",
",",
"such",
"as",
"when",
"the",
"license",
"is",
"renewed",
"or",
"expires"
] |
[
"void",
"on",
"key",
"status",
"change",
"(",
"exo",
"media",
"drm",
"media",
"drm",
",",
"byte",
"[",
"]",
"session",
"id",
",",
"list",
"<",
"key",
"status",
">",
"exo",
"key",
"information",
",",
"boolean",
"has",
"new",
"usable",
"key",
")",
";"
] |
[
"set",
"the",
"angular",
"damping",
"of",
"the",
"body"
] |
[
"public",
"final",
"void",
"set",
"angular",
"damping",
"(",
"float",
"angular",
"damping",
")",
"{",
"m",
"angular",
"damping",
"=",
"angular",
"damping",
";",
"}"
] |
[
"add",
"one",
"or",
"more",
"populators",
"to",
"the",
"list",
"of",
"delegates"
] |
[
"public",
"void",
"add",
"populators",
"(",
"database",
"populator",
"populators",
")",
"{",
"this",
"populators",
"add",
"all",
"(",
"arrays",
"as",
"list",
"(",
"populators",
")",
")",
";",
"}"
] |
[
"searches",
"all",
"bitmaps",
"in",
"memory",
"cache",
"which",
"are",
"corresponded",
"to",
"incoming",
"uri",
"<",
"br",
">",
"<",
"b",
">",
"note",
":",
"<",
"b",
">",
"memory",
"cache",
"can",
"contain",
"multiple",
"sizes",
"of",
"the",
"same",
"image",
"if",
"only",
"you",
"didn",
"'",
"t",
"set",
"{",
"@",
"link",
"image",
"loader",
"configuration",
"builder",
"#",
"deny",
"cache",
"image",
"multiple",
"sizes",
"in",
"memory",
"(",
")",
"deny",
"cache",
"image",
"multiple",
"sizes",
"in",
"memory",
"(",
")",
"}",
"option",
"in",
"{",
"@",
"linkplain",
"image",
"loader",
"configuration",
"configuration",
"}"
] |
[
"public",
"static",
"list",
"<",
"bitmap",
">",
"find",
"cached",
"bitmaps",
"for",
"image",
"uri",
"(",
"string",
"image",
"uri",
",",
"memory",
"cache",
"memory",
"cache",
")",
"{",
"list",
"<",
"bitmap",
">",
"values",
"=",
"new",
"array",
"list",
"<",
"bitmap",
">",
"(",
")",
";",
"for",
"(",
"string",
"key",
":",
"memory",
"cache",
"keys",
"(",
")",
")",
"{",
"if",
"(",
"key",
"starts",
"with",
"(",
"image",
"uri",
")",
")",
"{",
"values",
"add",
"(",
"memory",
"cache",
"get",
"(",
"key",
")",
")",
";",
"}",
"}",
"return",
"values",
";",
"}"
] |
[
"where",
"the",
"value",
"was",
"defined",
"<",
"code",
">",
"optional",
"aapt",
"pb",
"source",
"source",
"=",
"1",
";",
"<",
"code",
">"
] |
[
"private",
"void",
"set",
"source",
"(",
"com",
"android",
"aapt",
"resources",
"source",
"builder",
"builder",
"for",
"value",
")",
"{",
"source",
"=",
"builder",
"for",
"value",
"build",
"(",
")",
";",
"bit",
"field",
"0",
"|",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
";",
"}"
] |
[
"the",
"test",
"calls",
"{",
"@",
"link",
"#",
"do",
"the",
"job",
"(",
"configuration",
",",
"string",
",",
"long",
",",
"short",
",",
"boolean",
",",
"enum",
"set",
")",
"}",
"while",
"requiring",
"the",
"semantic",
"of",
"{",
"@",
"link",
"sync",
"flag",
"#",
"update",
"length",
"}"
] |
[
"public",
"void",
"h",
"sync",
"update",
"length",
"01",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"do",
"the",
"job",
"(",
"new",
"hdfs",
"configuration",
"(",
")",
",",
"f",
"name",
",",
"append",
"test",
"util",
"block",
"size",
",",
"(",
"short",
")",
"2",
",",
"true",
",",
"enum",
"set",
"of",
"(",
"sync",
"flag",
"update",
"length",
")",
")",
";",
"}"
] |
[
"merge",
"the",
"statistics",
"into",
"the",
"filesystem",
"'",
"s",
"instrumentation",
"instance",
"if",
"the",
"merge",
"is",
"invoked",
"because",
"the",
"stream",
"has",
"been",
"closed",
",",
"then",
"all",
"statistics",
"are",
"merged",
",",
"and",
"the",
"filesystem",
"statistics",
"of",
"{",
"@",
"link",
"#",
"filesystem",
"statistics",
"}",
"updated",
"with",
"the",
"bytes",
"read",
"values",
"whichever",
"thread",
"close",
"(",
")",
"d",
"the",
"stream",
"will",
"have",
"its",
"counters",
"updated",
"if",
"the",
"merge",
"is",
"due",
"to",
"an",
"unbuffer",
"(",
")",
"call",
",",
"the",
"change",
"in",
"all",
"counters",
"since",
"the",
"last",
"merge",
"will",
"be",
"pushed",
"to",
"the",
"instrumentation",
"'",
"s",
"counters"
] |
[
"private",
"void",
"merge",
"(",
"boolean",
"is",
"closed",
")",
"{",
"i",
"o",
"statistics",
"store",
"io",
"statistics",
"=",
"local",
"i",
"o",
"statistics",
"(",
")",
";",
"log",
"debug",
"(",
"\"",
"merging",
"statistics",
"into",
"fs",
"statistics",
"in",
"{",
"}",
":",
"{",
"}",
"\"",
",",
"(",
"is",
"closed",
"?",
"\"",
"close",
"(",
")",
"\"",
":",
"\"",
"unbuffer",
"(",
")",
"\"",
")",
",",
"demand",
"stringify",
"i",
"o",
"statistics",
"(",
"io",
"statistics",
")",
")",
";",
"promote",
"input",
"stream",
"counters",
"to",
"metrics",
"(",
")",
";",
"merged",
"stats",
"=",
"snapshot",
"i",
"o",
"statistics",
"(",
"local",
"i",
"o",
"statistics",
"(",
")",
")",
";",
"if",
"(",
"is",
"closed",
")",
"{",
"/",
"/",
"stream",
"is",
"being",
"closed",
"/",
"/",
"merge",
"in",
"all",
"the",
"i",
"o",
"statistics",
"s",
"3",
"a",
"instrumentation",
"this",
"get",
"i",
"o",
"statistics",
"(",
")",
"aggregate",
"(",
"io",
"statistics",
")",
";",
"/",
"/",
"increment",
"the",
"filesystem",
"statistics",
"for",
"this",
"thread",
"if",
"(",
"filesystem",
"statistics",
"!",
"=",
"null",
")",
"{",
"long",
"t",
"=",
"get",
"total",
"bytes",
"read",
"(",
")",
";",
"filesystem",
"statistics",
"increment",
"bytes",
"read",
"(",
"t",
")",
";",
"filesystem",
"statistics",
"increment",
"bytes",
"read",
"by",
"distance",
"(",
"distance",
",",
"t",
")",
";",
"}",
"}",
"}"
] |
[
"creates",
"a",
"new",
"{",
"@",
"link",
"object",
"output",
"stream",
"}",
"which",
"wraps",
"the",
"specified",
"{",
"@",
"link",
"output",
"stream",
"}",
"override",
"this",
"method",
"to",
"use",
"a",
"subclass",
"of",
"the",
"{",
"@",
"link",
"object",
"output",
"stream",
"}"
] |
[
"protected",
"object",
"output",
"stream",
"new",
"object",
"output",
"stream",
"(",
"output",
"stream",
"out",
")",
"throws",
"exception",
"{",
"return",
"new",
"object",
"output",
"stream",
"(",
"out",
")",
";",
"}"
] |
[
"get",
"the",
"resources",
"allocated",
"in",
"the",
"last",
"scheduler",
"run"
] |
[
"public",
"resource",
"get",
"resources",
"allocated",
"(",
")",
"{",
"return",
"get",
"resource",
"details",
"(",
"operation",
"allocation",
")",
";",
"}"
] |
[
"create",
"a",
"loop",
"this",
"automatically",
"adjusts",
"connectivity"
] |
[
"public",
"void",
"create",
"loop",
"(",
"float",
"[",
"]",
"vertices",
")",
"{",
"jni",
"create",
"loop",
"(",
"addr",
",",
"vertices",
",",
"0",
",",
"vertices",
"length",
"/",
"2",
")",
";",
"is",
"looped",
"=",
"true",
";",
"}"
] |
[
"get",
"the",
"string",
"to",
"use",
"as",
"the",
"tool",
"tip",
"for",
"the",
"specified",
"node"
] |
[
"protected",
"string",
"get",
"tool",
"tip",
"text",
"(",
"program",
"node",
"node",
")",
"{",
"if",
"(",
"!",
"node",
"is",
"fragment",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"program",
"fragment",
"f",
"=",
"node",
"get",
"fragment",
"(",
")",
";",
"if",
"(",
"f",
"get",
"num",
"addresses",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"\"",
"[",
"empty",
"]",
"\"",
";",
"}",
"address",
"range",
"iterator",
"iter",
"=",
"f",
"get",
"address",
"ranges",
"(",
")",
";",
"string",
"buffer",
"sb",
"=",
"new",
"string",
"buffer",
"(",
")",
";",
"int",
"count",
"=",
"0",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"address",
"range",
"range",
"=",
"iter",
"next",
"(",
")",
";",
"sb",
"append",
"(",
"range",
"to",
"string",
"(",
")",
")",
";",
"if",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"sb",
"append",
"(",
"\"",
"\"",
")",
";",
"}",
"+",
"+",
"count",
";",
"if",
"(",
"count",
">",
"4",
")",
"{",
"sb",
"append",
"(",
"\"",
"\"",
")",
";",
"break",
";",
"}",
"}",
"return",
"sb",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"specify",
"the",
"buffer",
"-",
"size",
"limit",
"(",
"number",
"of",
"bytes",
")"
] |
[
"public",
"void",
"set",
"send",
"buffer",
"size",
"limit",
"(",
"int",
"send",
"buffer",
"size",
"limit",
")",
"{",
"this",
"send",
"buffer",
"size",
"limit",
"=",
"send",
"buffer",
"size",
"limit",
";",
"}"
] |
[
"creates",
"a",
"builder",
"object",
"for",
"build",
"options"
] |
[
"public",
"static",
"builder",
"builder",
"(",
")",
"{",
"return",
"new",
"builder",
"(",
")",
";",
"}"
] |
[
"removes",
"the",
"job",
"associated",
"with",
"the",
"given",
"name",
"from",
"this",
"trigger",
"service"
] |
[
"public",
"boolean",
"remove",
"(",
"string",
"job",
"name",
")",
"{",
"per",
"watch",
"stats",
"remove",
"(",
"job",
"name",
")",
";",
"for",
"(",
"trigger",
"engine",
"engine",
":",
"engines",
"values",
"(",
")",
")",
"{",
"if",
"(",
"engine",
"remove",
"(",
"job",
"name",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
] |
[
"returns",
"the",
"sdk",
"frameworks",
"to",
"link",
"against"
] |
[
"public",
"nested",
"set",
"<",
"sdk",
"framework",
">",
"sdk",
"frameworks",
"(",
")",
"{",
"return",
"this",
"sdk",
"frameworks",
";",
"}"
] |
[
"sets",
"the",
"size",
"-",
"indicating",
"how",
"many",
"term",
"buckets",
"should",
"be",
"returned",
"(",
"defaults",
"to",
"10",
")"
] |
[
"public",
"terms",
"aggregation",
"builder",
"size",
"(",
"int",
"size",
")",
"{",
"if",
"(",
"size",
"<",
"=",
"0",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"[",
"size",
"]",
"must",
"be",
"greater",
"than",
"0",
"found",
"[",
"\"",
"+",
"size",
"+",
"\"",
"]",
"in",
"[",
"\"",
"+",
"name",
"+",
"\"",
"]",
"\"",
")",
";",
"}",
"bucket",
"count",
"thresholds",
"set",
"required",
"size",
"(",
"size",
")",
";",
"return",
"this",
";",
"}"
] |
[
"determines",
"whether",
"to",
"show",
"this",
"action",
"right",
"now",
"can",
"always",
"return",
"false",
",",
"for",
"an",
"action",
"which",
"should",
"never",
"be",
"in",
"the",
"context",
"menu",
";",
"or",
"could",
"examine",
"{",
"@",
"link",
"stapler",
"#",
"get",
"current",
"request",
"}"
] |
[
"boolean",
"is",
"visible",
"(",
")",
";"
] |
[
"checks",
"whether",
"an",
"x",
"6",
"4",
"instruction",
"is",
"a",
"system",
"call"
] |
[
"private",
"static",
"boolean",
"check",
"x",
"6",
"4",
"instruction",
"(",
"instruction",
"inst",
")",
"{",
"boolean",
"ret",
"val",
"=",
"false",
";",
"for",
"(",
"pcode",
"op",
"op",
":",
"inst",
"get",
"pcode",
"(",
")",
")",
"{",
"if",
"(",
"op",
"get",
"opcode",
"(",
")",
"=",
"=",
"pcode",
"op",
"callother",
")",
"{",
"int",
"index",
"=",
"(",
"int",
")",
"op",
"get",
"input",
"(",
"0",
")",
"get",
"offset",
"(",
")",
";",
"if",
"(",
"inst",
"get",
"program",
"(",
")",
"get",
"language",
"(",
")",
"get",
"user",
"defined",
"op",
"name",
"(",
"index",
")",
"equals",
"(",
"syscall",
"x64",
"callother",
")",
")",
"{",
"ret",
"val",
"=",
"true",
";",
"}",
"}",
"}",
"return",
"ret",
"val",
";",
"}"
] |
[
"gets",
"default",
"settings",
"for",
"the",
"disabled",
"work",
"directory"
] |
[
"public",
"static",
"remoting",
"work",
"dir",
"settings",
"get",
"disabled",
"defaults",
"(",
")",
"{",
"return",
"legacy",
"default",
";",
"}"
] |
[
"set",
"the",
"attributes",
"in",
"the",
"model",
"that",
"should",
"be",
"rendered",
"by",
"this",
"view",
"when",
"set",
",",
"all",
"other",
"model",
"attributes",
"will",
"be",
"ignored"
] |
[
"public",
"void",
"set",
"model",
"keys",
"(",
"@",
"nullable",
"set",
"<",
"string",
">",
"model",
"keys",
")",
"{",
"this",
"model",
"keys",
"=",
"model",
"keys",
";",
"}"
] |
[
"creates",
"a",
"new",
"tuple",
"and",
"assigns",
"the",
"given",
"values",
"to",
"the",
"tuple",
"'",
"s",
"fields",
"this",
"is",
"more",
"convenient",
"than",
"using",
"the",
"constructor",
",",
"because",
"the",
"compiler",
"can",
"infer",
"the",
"generic",
"type",
"arguments",
"implicitly",
"for",
"example",
":",
"{",
"@",
"code",
"tuple",
"3",
"of",
"(",
"n",
",",
"x",
",",
"s",
")",
"}",
"instead",
"of",
"{",
"@",
"code",
"new",
"tuple",
"3",
"<",
"integer",
",",
"double",
",",
"string",
">",
"(",
"n",
",",
"x",
",",
"s",
")",
"}"
] |
[
"public",
"static",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
"tuple",
"3",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
"of",
"(",
"t0",
"value",
"0",
",",
"t1",
"value",
"1",
",",
"t2",
"value",
"2",
")",
"{",
"return",
"new",
"tuple",
"3",
"<",
">",
"(",
"value",
"0",
",",
"value",
"1",
",",
"value",
"2",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"integer",
"item",
"'"
] |
[
"public",
"void",
"integer",
"item",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"integer",
"item",
"}"
] |
[
"returns",
"the",
"file",
"length",
"of",
"this",
"resource"
] |
[
"public",
"short",
"get",
"file",
"length",
"(",
")",
"{",
"return",
"file",
"length",
";",
"}"
] |
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"field",
"id",
",",
"throwing",
"an",
"exception",
"if",
"it",
"is",
"not",
"found"
] |
[
"public",
"static",
"fields",
"find",
"by",
"thrift",
"id",
"or",
"throw",
"(",
"int",
"field",
"id",
")",
"{",
"fields",
"fields",
"=",
"find",
"by",
"thrift",
"id",
"(",
"field",
"id",
")",
";",
"if",
"(",
"fields",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"field",
"\"",
"+",
"field",
"id",
"+",
"\"",
"doesn",
"'",
"t",
"exist",
"!",
"\"",
")",
";",
"return",
"fields",
";",
"}"
] |
[
"returns",
"the",
"target",
"architecture",
"using",
"blaze",
"-",
"specific",
"constants",
"(",
"e",
"g",
"\"",
"piii",
"\"",
")"
] |
[
"public",
"string",
"get",
"target",
"cpu",
"(",
")",
"{",
"return",
"target",
"cpu",
";",
"}"
] |
[
"get",
"the",
"computed",
"table",
"offset",
"which",
"corresponds",
"to",
"the",
"specified",
"input",
"varnode",
"v",
"no",
"qualification",
"is",
"performed"
] |
[
"static",
"computed",
"table",
"offset",
"get",
"computed",
"table",
"offset",
"(",
"varnode",
"v",
")",
"{",
"long",
"factor",
";",
"varnode",
"index",
"value",
"=",
"null",
";",
"if",
"(",
"v",
"instanceof",
"varnode",
"operation",
")",
"{",
"varnode",
"operation",
"computed",
"table",
"offset",
"operation",
"=",
"(",
"varnode",
"operation",
")",
"v",
";",
"int",
"opcode",
"=",
"computed",
"table",
"offset",
"operation",
"get",
"p",
"code",
"op",
"(",
")",
"get",
"opcode",
"(",
")",
";",
"if",
"(",
"opcode",
"!",
"=",
"pcode",
"op",
"int",
"mult",
"&",
"&",
"opcode",
"!",
"=",
"pcode",
"op",
"int",
"left",
")",
"{",
"return",
"null",
";",
"}",
"varnode",
"[",
"]",
"input",
"values",
"=",
"computed",
"table",
"offset",
"operation",
"get",
"input",
"values",
"(",
")",
";",
"if",
"(",
"input",
"values",
"[",
"1",
"]",
"is",
"constant",
"(",
")",
")",
"{",
"factor",
"=",
"input",
"values",
"[",
"1",
"]",
"get",
"offset",
"(",
")",
";",
"if",
"(",
"opcode",
"=",
"=",
"pcode",
"op",
"int",
"left",
")",
"{",
"factor",
"=",
"1l",
"<",
"<",
"factor",
";",
"}",
"index",
"value",
"=",
"input",
"values",
"[",
"0",
"]",
";",
"}",
"else",
"if",
"(",
"opcode",
"=",
"=",
"pcode",
"op",
"int",
"mult",
"&",
"&",
"input",
"values",
"[",
"0",
"]",
"is",
"constant",
"(",
")",
")",
"{",
"factor",
"=",
"input",
"values",
"[",
"0",
"]",
"get",
"offset",
"(",
")",
";",
"index",
"value",
"=",
"input",
"values",
"[",
"1",
"]",
";",
"}",
"else",
"{",
"factor",
"=",
"1",
";",
"index",
"value",
"=",
"v",
";",
"}",
"if",
"(",
"factor",
"<",
"=",
"0",
"|",
"|",
"factor",
">",
"8",
")",
"{",
"/",
"/",
"unsupported",
"factor",
"return",
"null",
";",
"}",
"}",
"else",
"{",
"factor",
"=",
"1",
";",
"index",
"value",
"=",
"v",
";",
"}",
"if",
"(",
"index",
"value",
"instanceof",
"varnode",
"operation",
")",
"{",
"/",
"/",
"ignore",
"zero",
"-",
"extend",
"operation",
"which",
"is",
"stored",
"in",
"unique",
"variable",
"/",
"/",
"and",
"can",
"not",
"be",
"used",
"by",
"a",
"subsequent",
"instruction",
"varnode",
"operation",
"op",
"=",
"(",
"varnode",
"operation",
")",
"index",
"value",
";",
"if",
"(",
"op",
"get",
"p",
"code",
"op",
"(",
")",
"get",
"output",
"(",
")",
"is",
"unique",
"(",
")",
"&",
"&",
"op",
"get",
"p",
"code",
"op",
"(",
")",
"get",
"opcode",
"(",
")",
"=",
"=",
"pcode",
"op",
"int",
"zext",
")",
"{",
"index",
"value",
"=",
"op",
"get",
"input",
"values",
"(",
")",
"[",
"0",
"]",
";",
"}",
"}",
"return",
"new",
"computed",
"table",
"offset",
"(",
"index",
"value",
",",
"(",
"int",
")",
"factor",
")",
";",
"}"
] |
[
"validates",
"the",
"option",
"{",
"@",
"code",
"option",
"}",
"value",
"must",
"be",
"a",
"character"
] |
[
"private",
"static",
"void",
"validate",
"character",
"val",
"(",
"readable",
"config",
"table",
"options",
",",
"config",
"option",
"<",
"string",
">",
"option",
",",
"boolean",
"unescape",
")",
"{",
"if",
"(",
"table",
"options",
"get",
"optional",
"(",
"option",
")",
"is",
"present",
"(",
")",
")",
"{",
"final",
"string",
"value",
"=",
"unescape",
"?",
"string",
"escape",
"utils",
"unescape",
"java",
"(",
"table",
"options",
"get",
"(",
"option",
")",
")",
":",
"table",
"options",
"get",
"(",
"option",
")",
";",
"if",
"(",
"value",
"length",
"(",
")",
"!",
"=",
"1",
")",
"{",
"throw",
"new",
"validation",
"exception",
"(",
"string",
"format",
"(",
"\"",
"option",
"'",
"%",
"s",
"%",
"s",
"'",
"must",
"be",
"a",
"string",
"with",
"single",
"character",
",",
"but",
"was",
":",
"%",
"s",
"\"",
",",
"identifier",
",",
"option",
"key",
"(",
")",
",",
"table",
"options",
"get",
"(",
"option",
")",
")",
")",
";",
"}",
"}",
"}"
] |
[
"gets",
"a",
"new",
"set",
"of",
"extensions",
"and",
"reloads",
"the",
"table"
] |
[
"public",
"void",
"refresh",
"table",
"(",
")",
"{",
"try",
"{",
"set",
"model",
"data",
"(",
"new",
"array",
"list",
"<",
"extension",
"details",
">",
"(",
"extension",
"utils",
"get",
"extensions",
"(",
")",
")",
")",
";",
"}",
"catch",
"(",
"extension",
"exception",
"e",
")",
"{",
"msg",
"error",
"(",
"this",
",",
"\"",
"error",
"loading",
"extensions",
"\"",
",",
"e",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"test",
"status",
"artifacts",
"for",
"a",
"specified",
"configured",
"target"
] |
[
"public",
"static",
"immutable",
"list",
"<",
"artifact",
"derived",
"artifact",
">",
"get",
"test",
"status",
"artifacts",
"(",
"transitive",
"info",
"collection",
"target",
")",
"{",
"return",
"target",
"get",
"provider",
"(",
"test",
"provider",
"class",
")",
"get",
"test",
"params",
"(",
")",
"get",
"test",
"status",
"artifacts",
"(",
")",
";",
"}"
] |
[
"removes",
"the",
"given",
"listener",
"from",
"this",
"service",
"provider",
"this",
"method",
"does",
"nothing",
"if",
"the",
"given",
"listener",
"is",
"not",
"contained",
"by",
"this",
"service",
"provider"
] |
[
"public",
"void",
"remove",
"service",
"listener",
"(",
"service",
"listener",
"listener",
")",
";"
] |
[
"declare",
"a",
"parameter",
"parameters",
"declared",
"as",
"{",
"@",
"code",
"sql",
"parameter",
"}",
"and",
"{",
"@",
"code",
"sql",
"in",
"out",
"parameter",
"}",
"will",
"always",
"be",
"used",
"to",
"provide",
"input",
"values",
"in",
"addition",
"to",
"this",
",",
"any",
"parameter",
"declared",
"as",
"{",
"@",
"code",
"sql",
"out",
"parameter",
"}",
"where",
"a",
"non",
"-",
"null",
"input",
"value",
"is",
"provided",
"will",
"also",
"be",
"used",
"as",
"an",
"input",
"parameter",
"<",
"b",
">",
"note",
":",
"calls",
"to",
"declare",
"parameter",
"must",
"be",
"made",
"in",
"the",
"same",
"order",
"as",
"they",
"appear",
"in",
"the",
"database",
"'",
"s",
"stored",
"procedure",
"parameter",
"list",
"<",
"b",
">",
"names",
"are",
"purely",
"used",
"to",
"help",
"mapping"
] |
[
"public",
"void",
"declare",
"parameter",
"(",
"sql",
"parameter",
"param",
")",
"throws",
"invalid",
"data",
"access",
"api",
"usage",
"exception",
"{",
"if",
"(",
"param",
"get",
"name",
"(",
")",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"invalid",
"data",
"access",
"api",
"usage",
"exception",
"(",
"\"",
"parameters",
"to",
"stored",
"procedures",
"must",
"have",
"names",
"as",
"well",
"as",
"types",
"\"",
")",
";",
"}",
"super",
"declare",
"parameter",
"(",
"param",
")",
";",
"}"
] |
[
"add",
"a",
"new",
"double",
"attribute"
] |
[
"public",
"void",
"add",
"attribute",
"(",
"string",
"name",
",",
"double",
"value",
")",
"{",
"add",
"attribute",
"(",
"name",
",",
"double",
"to",
"string",
"(",
"value",
")",
")",
";",
"}"
] |
[
"sets",
"repository",
"name"
] |
[
"public",
"snapshots",
"status",
"request",
"repository",
"(",
"string",
"repository",
")",
"{",
"this",
"repository",
"=",
"repository",
";",
"return",
"this",
";",
"}"
] |
[
"test",
"variable",
"events",
"when",
"done",
"within",
"a",
"process",
"(",
"eg",
"execution",
"-",
"listener",
")"
] |
[
"public",
"void",
"activiti",
"event",
"type",
"(",
")",
"throws",
"exception",
"{",
"process",
"instance",
"process",
"instance",
"=",
"runtime",
"service",
"start",
"process",
"instance",
"by",
"key",
"(",
"\"",
"variable",
"process",
"\"",
")",
";",
"assert",
"that",
"(",
"process",
"instance",
")",
"is",
"not",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"listener",
"get",
"events",
"received",
"(",
")",
")",
"has",
"size",
"(",
"3",
")",
";",
"/",
"/",
"check",
"create",
"event",
"activiti",
"variable",
"event",
"event",
"=",
"(",
"activiti",
"variable",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"variable",
"created",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"task",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"name",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"variable",
"\"",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"value",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"123",
")",
";",
"/",
"/",
"check",
"update",
"event",
"event",
"=",
"(",
"activiti",
"variable",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"1",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"variable",
"updated",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"task",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"name",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"variable",
"\"",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"value",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"456",
")",
";",
"/",
"/",
"check",
"delete",
"event",
"event",
"=",
"(",
"activiti",
"variable",
"event",
")",
"listener",
"get",
"events",
"received",
"(",
")",
"get",
"(",
"2",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"type",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"activiti",
"event",
"type",
"variable",
"deleted",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"definition",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"process",
"definition",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"execution",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"process",
"instance",
"id",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"process",
"instance",
"get",
"id",
"(",
")",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"task",
"id",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"name",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"variable",
"\"",
")",
";",
"assert",
"that",
"(",
"event",
"get",
"variable",
"value",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"456",
")",
";",
"}"
] |
[
"returns",
"an",
"immutable",
"list",
"with",
"all",
"alternative",
"snapshots",
"to",
"restore",
"the",
"raw",
"keyed",
"state",
",",
"in",
"the",
"order",
"in",
"which",
"we",
"should",
"attempt",
"to",
"restore"
] |
[
"public",
"list",
"<",
"state",
"object",
"collection",
"<",
"keyed",
"state",
"handle",
">",
">",
"get",
"prioritized",
"raw",
"keyed",
"state",
"(",
")",
"{",
"return",
"prioritized",
"raw",
"keyed",
"state",
";",
"}"
] |
[
"signal",
"that",
"an",
"automatic",
"sync",
"scheduling",
"is",
"done",
"if",
"it",
"is",
"scheduled"
] |
[
"synchronized",
"void",
"done",
"with",
"auto",
"sync",
"scheduling",
"(",
")",
"{",
"if",
"(",
"is",
"auto",
"sync",
"scheduled",
")",
"{",
"is",
"auto",
"sync",
"scheduled",
"=",
"false",
";",
"notify",
"all",
"(",
")",
";",
"}",
"}"
] |
[
"create",
"a",
"credential",
"using",
"netty",
"'",
"s",
"ssl",
"context",
"as",
"configuration",
"it",
"must",
"have",
"been",
"configured",
"with",
"{",
"@",
"link",
"grpc",
"ssl",
"contexts",
"}",
",",
"but",
"options",
"could",
"have",
"been",
"overridden"
] |
[
"public",
"static",
"channel",
"credentials",
"create",
"(",
"ssl",
"context",
"ssl",
"context",
")",
"{",
"preconditions",
"check",
"argument",
"(",
"ssl",
"context",
"is",
"client",
"(",
")",
",",
"\"",
"server",
"ssl",
"context",
"can",
"not",
"be",
"used",
"for",
"client",
"channel",
"\"",
")",
";",
"grpc",
"ssl",
"contexts",
"ensure",
"alpn",
"and",
"h",
"2",
"enabled",
"(",
"ssl",
"context",
"application",
"protocol",
"negotiator",
"(",
")",
")",
";",
"return",
"netty",
"channel",
"credentials",
"create",
"(",
"protocol",
"negotiators",
"tls",
"client",
"factory",
"(",
"ssl",
"context",
")",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"a",
"new",
"exe",
"header",
"exists"
] |
[
"public",
"boolean",
"has",
"new",
"exe",
"header",
"(",
")",
"{",
"if",
"(",
"e",
"lfanew",
">",
"=",
"0",
"&",
"&",
"e",
"lfanew",
"<",
"=",
"0x",
"1",
"0",
"0",
"0",
"0",
")",
"{",
"if",
"(",
"e",
"lfarlc",
"=",
"=",
"0x",
"4",
"0",
")",
"{",
"/",
"/",
"there",
"are",
"some",
"non",
"-",
"ne",
"files",
"out",
"there",
"than",
"may",
"have",
"e",
"lfarlc",
"=",
"=",
"0x",
"4",
"0",
",",
"so",
"we",
"need",
"/",
"/",
"to",
"actually",
"read",
"the",
"bytes",
"at",
"e",
"lfanew",
"and",
"check",
"for",
"the",
"required",
"ne",
"signature",
"try",
"{",
"new",
"windows",
"header",
"(",
"reader",
",",
"null",
",",
"(",
"short",
")",
"e",
"lfanew",
")",
";",
"return",
"true",
";",
"}",
"catch",
"(",
"invalid",
"windows",
"header",
"exception",
"|",
"i",
"o",
"exception",
"e",
")",
"{",
"return",
"false",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}"
] |
[
"applies",
"the",
"current",
"isolation",
"level",
"value",
"and",
"read",
"-",
"only",
"flag",
"to",
"the",
"returned",
"connection"
] |
[
"protected",
"connection",
"do",
"get",
"connection",
"(",
"@",
"nullable",
"string",
"username",
",",
"@",
"nullable",
"string",
"password",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"connection",
"con",
"=",
"super",
"do",
"get",
"connection",
"(",
"username",
",",
"password",
")",
";",
"boolean",
"read",
"only",
"to",
"use",
"=",
"get",
"current",
"read",
"only",
"flag",
"(",
")",
";",
"if",
"(",
"read",
"only",
"to",
"use",
"!",
"=",
"null",
")",
"{",
"con",
"set",
"read",
"only",
"(",
"read",
"only",
"to",
"use",
")",
";",
"}",
"integer",
"isolation",
"level",
"to",
"use",
"=",
"get",
"current",
"isolation",
"level",
"(",
")",
";",
"if",
"(",
"isolation",
"level",
"to",
"use",
"!",
"=",
"null",
")",
"{",
"con",
"set",
"transaction",
"isolation",
"(",
"isolation",
"level",
"to",
"use",
")",
";",
"}",
"return",
"con",
";",
"}"
] |
[
"use",
"the",
"given",
"{",
"@",
"link",
"service",
"unavailable",
"retry",
"strategy",
"}",
"instance"
] |
[
"public",
"http",
"client",
"builder",
"using",
"(",
"service",
"unavailable",
"retry",
"strategy",
"service",
"unavailable",
"retry",
"strategy",
")",
"{",
"this",
"service",
"unavailable",
"retry",
"strategy",
"=",
"service",
"unavailable",
"retry",
"strategy",
";",
"return",
"this",
";",
"}"
] |
[
"return",
"the",
"in",
"-",
"degree",
"of",
"all",
"vertices",
"in",
"the",
"graph"
] |
[
"public",
"data",
"set",
"<",
"tuple",
"2",
"<",
"k",
",",
"long",
"value",
">",
">",
"in",
"degrees",
"(",
")",
"{",
"return",
"vertices",
"co",
"group",
"(",
"edges",
")",
"where",
"(",
"0",
")",
"equal",
"to",
"(",
"1",
")",
"with",
"(",
"new",
"count",
"neighbors",
"co",
"group",
"<",
">",
"(",
")",
")",
"name",
"(",
"\"",
"in",
"-",
"degree",
"\"",
")",
";",
"}"
] |
[
"retrieve",
"the",
"storage",
"policy",
"for",
"a",
"given",
"file",
"or",
"directory"
] |
[
"public",
"block",
"storage",
"policy",
"spi",
"get",
"storage",
"policy",
"(",
"final",
"path",
"src",
")",
"throws",
"i",
"o",
"exception",
"{",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
"get",
"class",
"(",
")",
"get",
"simple",
"name",
"(",
")",
"+",
"\"",
"doesn",
"'",
"t",
"support",
"get",
"storage",
"policy",
"\"",
")",
";",
"}"
] |
[
"convert",
"a",
"buffer",
"to",
"a",
"string",
",",
"character",
"by",
"character"
] |
[
"public",
"static",
"string",
"to",
"char",
"(",
"byte",
"[",
"]",
"buffer",
")",
"{",
"string",
"builder",
"builder",
"=",
"new",
"string",
"builder",
"(",
"buffer",
"length",
")",
";",
"for",
"(",
"byte",
"b",
":",
"buffer",
")",
"{",
"builder",
"append",
"(",
"to",
"char",
"(",
"b",
")",
")",
";",
"}",
"return",
"builder",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"variant",
"of",
"{",
"@",
"link",
"#",
"retrieve",
"flux",
"(",
"class",
")",
"}",
"for",
"when",
"the",
"data",
"type",
"has",
"to",
"have",
"a",
"generic",
"type",
"see",
"{",
"@",
"link",
"parameterized",
"type",
"reference",
"}"
] |
[
"<",
"t",
">",
"flux",
"<",
"t",
">",
"retrieve",
"flux",
"(",
"parameterized",
"type",
"reference",
"<",
"t",
">",
"data",
"type",
"ref",
")",
";"
] |
[
"no",
"further",
"gesture",
"events",
"will",
"be",
"triggered",
"for",
"the",
"current",
"touch",
",",
"if",
"any"
] |
[
"public",
"void",
"cancel",
"(",
")",
"{",
"long",
"press",
"task",
"cancel",
"(",
")",
";",
"long",
"press",
"fired",
"=",
"true",
";",
"}"
] |
[
"get",
"small",
"snake"
] |
[
"public",
"string",
"get",
"small",
"snake",
"(",
")",
"{",
"return",
"small",
"snake",
";",
"}"
] |
[
"auto",
"-",
"detects",
"a",
"filesystem",
"in",
"the",
"container",
"file",
"pointed",
"to",
"by",
"the",
"fsrl",
"returns",
"a",
"filesystem",
"instance",
"for",
"the",
"requested",
"container",
"file",
",",
"either",
"from",
"an",
"already",
"loaded",
"instance",
"in",
"the",
"global",
"fs",
"cache",
",",
"or",
"by",
"probing",
"for",
"a",
"filesystem",
"in",
"the",
"container",
"file",
"using",
"the",
"{",
"@",
"link",
"file",
"system",
"factory",
"mgr",
"}",
"returns",
"null",
"if",
"no",
"filesystem",
"implementation",
"was",
"found",
"that",
"could",
"handle",
"the",
"container",
"file"
] |
[
"public",
"file",
"system",
"ref",
"probe",
"file",
"for",
"filesystem",
"(",
"fsrl",
"container",
"f",
"s",
"r",
"l",
",",
"task",
"monitor",
"monitor",
",",
"file",
"system",
"probe",
"conflict",
"resolver",
"conflict",
"resolver",
")",
"throws",
"cancelled",
"exception",
",",
"i",
"o",
"exception",
"{",
"return",
"probe",
"file",
"for",
"filesystem",
"(",
"container",
"f",
"s",
"r",
"l",
",",
"monitor",
",",
"conflict",
"resolver",
",",
"file",
"system",
"info",
"priority",
"lowest",
")",
";",
"}"
] |
[
"connect",
"to",
"database",
"with",
"default",
"parameters"
] |
[
"public",
"void",
"connect",
"(",
")",
"{",
"connect",
"(",
"default",
"db",
",",
"default",
"accounts",
"collection",
")",
";",
"}"
] |
[
"set",
"a",
"key",
":",
"value",
"tag",
"on",
"the",
"span",
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"abstract",
"tracing",
"span",
"tag",
"(",
"string",
"key",
",",
"string",
"value",
")",
"{",
"return",
"tag",
"(",
"tags",
"of",
"key",
"(",
"key",
")",
",",
"value",
")",
";",
"}"
] |
[
"sets",
"the",
"input",
"data",
"that",
"will",
"be",
"made",
"availabe",
"to",
"the",
"job",
"when",
"it",
"is",
"run",
"should",
"only",
"be",
"set",
"by",
"{",
"@",
"link",
"job",
"controller",
"}"
] |
[
"@",
"non",
"null",
"builder",
"set",
"input",
"data",
"(",
"@",
"nullable",
"data",
"input",
"data",
")",
"{",
"this",
"input",
"data",
"=",
"input",
"data",
";",
"return",
"this",
";",
"}"
] |
[
"set",
"this",
"items",
"parent",
",",
"name",
"and",
"storage",
"name",
"and",
"add",
"the",
"modified",
"item",
"to",
"the",
"specified",
"parent",
"'",
"s",
"item",
"map",
"the",
"file",
"i",
"d",
"will",
"be",
"read",
"from",
"the",
"existing",
"property",
"file"
] |
[
"void",
"set",
"(",
"folder",
"new",
"parent",
",",
"string",
"new",
"name",
")",
"{",
"if",
"(",
"parent",
"!",
"=",
"null",
"&",
"&",
"item",
"storage",
"!",
"=",
"null",
")",
"{",
"parent",
"items",
"remove",
"(",
"item",
"storage",
"item",
"name",
")",
";",
"}",
"parent",
"=",
"new",
"parent",
";",
"item",
"storage",
"=",
"new",
"indexed",
"item",
"storage",
"(",
"get",
"storage",
"dir",
"(",
"storage",
"name",
")",
",",
"storage",
"name",
",",
"parent",
"get",
"pathname",
"(",
")",
",",
"new",
"name",
")",
";",
"parent",
"items",
"put",
"(",
"new",
"name",
",",
"this",
")",
";",
"try",
"{",
"set",
"file",
"i",
"d",
"(",
"item",
"storage",
"get",
"property",
"file",
"(",
")",
"get",
"file",
"i",
"d",
"(",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"set",
"file",
"i",
"d",
"(",
"null",
")",
";",
"}",
"}"
] |
[
"if",
"there",
"is",
"a",
"folder",
"to",
"be",
"renamed",
"inside",
"a",
"parent",
"folder",
",",
"then",
"when",
"you",
"list",
"the",
"parent",
"folder",
",",
"you",
"should",
"only",
"see",
"the",
"final",
"result",
",",
"after",
"the",
"rename"
] |
[
"public",
"void",
"test",
"redo",
"rename",
"folder",
"in",
"folder",
"listing",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"create",
"original",
"folder",
"string",
"parent",
"=",
"\"",
"parent",
"\"",
";",
"path",
"parent",
"folder",
"=",
"new",
"path",
"(",
"parent",
")",
";",
"assert",
"true",
"(",
"fs",
"mkdirs",
"(",
"parent",
"folder",
")",
")",
";",
"path",
"inner",
"=",
"new",
"path",
"(",
"parent",
"folder",
",",
"\"",
"inner",
"folder",
"\"",
")",
";",
"assert",
"true",
"(",
"fs",
"mkdirs",
"(",
"inner",
")",
")",
";",
"path",
"inner",
"2",
"=",
"new",
"path",
"(",
"parent",
"folder",
",",
"\"",
"inner",
"folder",
"2",
"\"",
")",
";",
"assert",
"true",
"(",
"fs",
"mkdirs",
"(",
"inner",
"2",
")",
")",
";",
"path",
"inner",
"file",
"=",
"new",
"path",
"(",
"inner",
"2",
",",
"\"",
"file",
"\"",
")",
";",
"assert",
"true",
"(",
"fs",
"create",
"new",
"file",
"(",
"inner",
"file",
")",
")",
";",
"path",
"inner",
"2renamed",
"=",
"new",
"path",
"(",
"parent",
"folder",
",",
"\"",
"inner",
"folder",
"2",
"renamed",
"\"",
")",
";",
"/",
"/",
"propose",
"(",
"but",
"don",
"'",
"t",
"do",
")",
"the",
"rename",
"of",
"inner",
"folder",
"2",
"path",
"home",
"=",
"fs",
"get",
"home",
"directory",
"(",
")",
";",
"string",
"relative",
"home",
"dir",
"=",
"get",
"relative",
"path",
"(",
"home",
"to",
"string",
"(",
")",
")",
";",
"native",
"azure",
"file",
"system",
"folder",
"rename",
"pending",
"pending",
"=",
"new",
"native",
"azure",
"file",
"system",
"folder",
"rename",
"pending",
"(",
"relative",
"home",
"dir",
"+",
"\"",
"/",
"\"",
"+",
"inner",
"2",
",",
"relative",
"home",
"dir",
"+",
"\"",
"/",
"\"",
"+",
"inner",
"2renamed",
",",
"null",
",",
"(",
"native",
"azure",
"file",
"system",
")",
"fs",
")",
";",
"/",
"/",
"create",
"a",
"rename",
"-",
"pending",
"file",
"and",
"write",
"rename",
"information",
"to",
"it",
"final",
"string",
"rename",
"pending",
"str",
"=",
"inner",
"2",
"+",
"folder",
"rename",
"pending",
"suffix",
";",
"path",
"rename",
"pending",
"file",
"=",
"new",
"path",
"(",
"rename",
"pending",
"str",
")",
";",
"f",
"s",
"data",
"output",
"stream",
"out",
"=",
"fs",
"create",
"(",
"rename",
"pending",
"file",
",",
"true",
")",
";",
"assert",
"true",
"(",
"out",
"!",
"=",
"null",
")",
";",
"write",
"string",
"to",
"stream",
"(",
"out",
",",
"pending",
"make",
"rename",
"pending",
"file",
"contents",
"(",
")",
")",
";",
"/",
"/",
"redo",
"the",
"rename",
"operation",
"based",
"on",
"the",
"contents",
"of",
"the",
"/",
"/",
"-",
"rename",
"pending",
"json",
"file",
"trigger",
"the",
"redo",
"by",
"checking",
"for",
"existence",
"of",
"/",
"/",
"the",
"original",
"folder",
"it",
"must",
"appear",
"to",
"not",
"exist",
"file",
"status",
"[",
"]",
"listed",
"=",
"fs",
"list",
"status",
"(",
"parent",
"folder",
")",
";",
"assert",
"equals",
"(",
"2",
",",
"listed",
"length",
")",
";",
"assert",
"true",
"(",
"listed",
"[",
"0",
"]",
"is",
"directory",
"(",
")",
")",
";",
"assert",
"true",
"(",
"listed",
"[",
"1",
"]",
"is",
"directory",
"(",
")",
")",
";",
"/",
"/",
"the",
"rename",
"pending",
"file",
"is",
"not",
"a",
"directory",
",",
"so",
"at",
"this",
"point",
"we",
"know",
"the",
"/",
"/",
"redo",
"has",
"been",
"done",
"assert",
"false",
"(",
"fs",
"exists",
"(",
"inner",
"2",
")",
")",
";",
"/",
"/",
"verify",
"original",
"folder",
"is",
"gone",
"assert",
"true",
"(",
"fs",
"exists",
"(",
"inner",
"2renamed",
")",
")",
";",
"/",
"/",
"verify",
"the",
"target",
"is",
"there",
"assert",
"true",
"(",
"fs",
"exists",
"(",
"new",
"path",
"(",
"inner",
"2renamed",
",",
"\"",
"file",
"\"",
")",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"index",
"of",
"the",
"data",
"set",
"the",
"highlighted",
"value",
"is",
"in"
] |
[
"public",
"int",
"get",
"data",
"set",
"index",
"(",
")",
"{",
"return",
"m",
"data",
"set",
"index",
";",
"}"
] |
[
"sets",
"the",
"timeout",
"in",
"milliseconds",
"for",
"fast",
"forward",
"and",
"rewind",
"operations",
",",
"or",
"{",
"@",
"code",
"0",
"}",
"for",
"no",
"timeout",
"if",
"a",
"timeout",
"is",
"set",
",",
"controllers",
"will",
"receive",
"an",
"error",
"if",
"the",
"session",
"'",
"s",
"call",
"to",
"{",
"@",
"link",
"session",
"player",
"#",
"seek",
"to",
"}",
"takes",
"longer",
"than",
"this",
"amount",
"of",
"time"
] |
[
"public",
"session",
"callback",
"builder",
"set",
"seek",
"timeout",
"ms",
"(",
"int",
"seek",
"timeout",
"ms",
")",
"{",
"this",
"seek",
"timeout",
"ms",
"=",
"seek",
"timeout",
"ms",
";",
"return",
"this",
";",
"}"
] |
[
"model",
"tests",
"for",
"special",
"model",
"name"
] |
[
"public",
"void",
"test",
"special",
"model",
"name",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"special",
"model",
"name",
"}"
] |
[
"set",
"the",
"additional",
"(",
"undeclared",
")",
"property",
"with",
"the",
"specified",
"name",
"and",
"value",
"if",
"the",
"property",
"does",
"not",
"already",
"exist",
",",
"create",
"it",
"otherwise",
"replace",
"it"
] |
[
"public",
"triangle",
"put",
"additional",
"property",
"(",
"string",
"key",
",",
"object",
"value",
")",
"{",
"if",
"(",
"this",
"additional",
"properties",
"=",
"=",
"null",
")",
"{",
"this",
"additional",
"properties",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"object",
">",
"(",
")",
";",
"}",
"this",
"additional",
"properties",
"put",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"testing",
"bytes",
"received",
"counter",
"value",
"when",
"a",
"response",
"failure",
"occurs"
] |
[
"public",
"void",
"test",
"abfs",
"http",
"response",
"failure",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"describe",
"(",
"\"",
"test",
"to",
"check",
"the",
"values",
"of",
"bytes",
"received",
"counter",
"when",
"a",
"\"",
"+",
"\"",
"response",
"is",
"failed",
"\"",
")",
";",
"azure",
"blob",
"file",
"system",
"fs",
"=",
"get",
"file",
"system",
"(",
")",
";",
"path",
"response",
"failure",
"path",
"=",
"path",
"(",
"get",
"method",
"name",
"(",
")",
")",
";",
"map",
"<",
"string",
",",
"long",
">",
"metric",
"map",
";",
"f",
"s",
"data",
"output",
"stream",
"out",
"=",
"null",
";",
"try",
"{",
"/",
"/",
"create",
"an",
"empty",
"file",
"out",
"=",
"fs",
"create",
"(",
"response",
"failure",
"path",
")",
";",
"/",
"/",
"re",
"-",
"creating",
"the",
"file",
"again",
"on",
"same",
"path",
"with",
"false",
"overwrite",
",",
"this",
"/",
"/",
"would",
"cause",
"a",
"response",
"failure",
"with",
"status",
"code",
"409",
"out",
"=",
"fs",
"create",
"(",
"response",
"failure",
"path",
",",
"false",
")",
";",
"}",
"catch",
"(",
"file",
"already",
"exists",
"exception",
"faee",
")",
"{",
"metric",
"map",
"=",
"fs",
"get",
"instrumentation",
"map",
"(",
")",
";",
"/",
"/",
"assert",
"after",
"catching",
"the",
"409",
"error",
"to",
"check",
"the",
"counter",
"values",
"assert",
"abfs",
"statistics",
"(",
"abfs",
"statistic",
"bytes",
"received",
",",
"0",
",",
"metric",
"map",
")",
";",
"}",
"finally",
"{",
"i",
"o",
"utils",
"cleanup",
"with",
"logger",
"(",
"log",
",",
"out",
")",
";",
"}",
"}"
] |
[
"loads",
"the",
"named",
"selenium",
"script",
"and",
"returns",
"it",
"wrapped",
"in",
"an",
"anonymous",
"function"
] |
[
"public",
"string",
"get",
"selenium",
"script",
"(",
"string",
"name",
")",
"{",
"string",
"raw",
"function",
"=",
"read",
"script",
"(",
"prefix",
"+",
"name",
")",
";",
"return",
"string",
"format",
"(",
"\"",
"function",
"(",
")",
"{",
"return",
"(",
"%",
"s",
")",
"apply",
"(",
"null",
",",
"arguments",
")",
";",
"}",
"\"",
",",
"raw",
"function",
")",
";",
"}"
] |
[
"start",
"the",
"activity",
"for",
"result"
] |
[
"public",
"static",
"void",
"start",
"activity",
"for",
"result",
"(",
"@",
"non",
"null",
"final",
"activity",
"activity",
",",
"@",
"non",
"null",
"final",
"intent",
"intent",
",",
"final",
"int",
"request",
"code",
",",
"@",
"anim",
"res",
"final",
"int",
"enter",
"anim",
",",
"@",
"anim",
"res",
"final",
"int",
"exit",
"anim",
")",
"{",
"start",
"activity",
"for",
"result",
"(",
"intent",
",",
"activity",
",",
"request",
"code",
",",
"get",
"options",
"bundle",
"(",
"activity",
",",
"enter",
"anim",
",",
"exit",
"anim",
")",
")",
";",
"if",
"(",
"build",
"version",
"sdk",
"int",
"<",
"build",
"version",
"codes",
"jelly",
"bean",
")",
"{",
"activity",
"override",
"pending",
"transition",
"(",
"enter",
"anim",
",",
"exit",
"anim",
")",
";",
"}",
"}"
] |
[
"return",
"the",
"default",
"content",
"type",
"for",
"the",
"payload",
"called",
"when",
"{",
"@",
"link",
"#",
"to",
"message",
"(",
"object",
",",
"message",
"headers",
")",
"}",
"is",
"invoked",
"without",
"message",
"headers",
"or",
"without",
"a",
"content",
"type",
"header",
"by",
"default",
",",
"this",
"returns",
"the",
"first",
"element",
"of",
"the",
"{",
"@",
"link",
"#",
"get",
"supported",
"mime",
"types",
"(",
")",
"supported",
"mime",
"types",
"}",
",",
"if",
"any",
"can",
"be",
"overridden",
"in",
"subclasses"
] |
[
"protected",
"mime",
"type",
"get",
"default",
"content",
"type",
"(",
"object",
"payload",
")",
"{",
"list",
"<",
"mime",
"type",
">",
"mime",
"types",
"=",
"get",
"supported",
"mime",
"types",
"(",
")",
";",
"return",
"(",
"!",
"mime",
"types",
"is",
"empty",
"(",
")",
"?",
"mime",
"types",
"get",
"(",
"0",
")",
":",
"null",
")",
";",
"}"
] |
[
"marks",
"a",
"list",
"of",
"directories",
"as",
"having",
"experienced",
"an",
"error"
] |
[
"void",
"report",
"errors",
"on",
"directories",
"(",
"list",
"<",
"storage",
"directory",
">",
"sds",
")",
"{",
"for",
"(",
"storage",
"directory",
"sd",
":",
"sds",
")",
"{",
"report",
"errors",
"on",
"directory",
"(",
"sd",
")",
";",
"}",
"}"
] |
[
"gets",
"the",
"asset",
"file",
"descriptor",
"for",
"a",
"local",
"file",
"this",
"offers",
"an",
"alternative",
"solution",
"for",
"opening",
"content",
":",
"scheme",
"files"
] |
[
"public",
"static",
"asset",
"file",
"descriptor",
"get",
"asset",
"file",
"descriptor",
"(",
"content",
"resolver",
"content",
"resolver",
",",
"final",
"uri",
"src",
"uri",
")",
"{",
"if",
"(",
"is",
"local",
"content",
"uri",
"(",
"src",
"uri",
")",
")",
"{",
"try",
"{",
"return",
"content",
"resolver",
"open",
"asset",
"file",
"descriptor",
"(",
"src",
"uri",
",",
"\"",
"r",
"\"",
")",
";",
"}",
"catch",
"(",
"file",
"not",
"found",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"void",
"update",
"(",
"long",
"value",
")",
"{",
"/",
"/",
"nop",
"}"
] |
[
"parses",
"a",
"timestamp",
"into",
"a",
"wikibase",
"{",
"@",
"link",
"time",
"value",
"}",
"the",
"precision",
"is",
"automatically",
"inferred",
"from",
"the",
"format"
] |
[
"public",
"static",
"time",
"value",
"parse",
"(",
"string",
"datestamp",
")",
"throws",
"parse",
"exception",
"{",
"date",
"best",
"date",
"=",
"null",
";",
"int",
"precision",
"=",
"0",
";",
"/",
"/",
"default",
"precision",
"(",
"will",
"be",
"overridden",
"if",
"successfully",
"parsed",
")",
"int",
"max",
"length",
"=",
"0",
";",
"/",
"/",
"the",
"maximum",
"length",
"parsed",
"string",
"calendar",
"iri",
"=",
"time",
"value",
"cm",
"gregorian",
"pro",
";",
"/",
"/",
"gregorian",
"calendar",
"is",
"assumed",
"by",
"default",
"string",
"trimmed",
"datestamp",
"=",
"datestamp",
"trim",
"(",
")",
";",
"if",
"(",
"\"",
"today",
"\"",
"equals",
"(",
"trimmed",
"datestamp",
")",
")",
"{",
"calendar",
"calendar",
"=",
"calendar",
"get",
"instance",
"(",
")",
";",
"time",
"value",
"todays",
"date",
"=",
"datamodel",
"make",
"time",
"value",
"(",
"calendar",
"get",
"(",
"calendar",
"year",
")",
",",
"(",
"byte",
")",
"(",
"calendar",
"get",
"(",
"calendar",
"month",
")",
"+",
"1",
")",
",",
"(",
"byte",
")",
"calendar",
"get",
"(",
"calendar",
"day",
"of",
"month",
")",
",",
"(",
"byte",
")",
"0",
",",
"(",
"byte",
")",
"0",
",",
"(",
"byte",
")",
"0",
",",
"(",
"byte",
")",
"11",
",",
"0",
",",
"0",
",",
"0",
",",
"time",
"value",
"cm",
"gregorian",
"pro",
")",
";",
"return",
"todays",
"date",
";",
"}",
"for",
"(",
"entry",
"<",
"simple",
"date",
"format",
",",
"integer",
">",
"entry",
":",
"accepted",
"formats",
"entry",
"set",
"(",
")",
")",
"{",
"parse",
"position",
"position",
"=",
"new",
"parse",
"position",
"(",
"0",
")",
";",
"date",
"date",
"=",
"entry",
"get",
"key",
"(",
")",
"parse",
"(",
"trimmed",
"datestamp",
",",
"position",
")",
";",
"if",
"(",
"date",
"=",
"=",
"null",
")",
"{",
"continue",
";",
"}",
"/",
"/",
"potentially",
"parse",
"the",
"calendar",
"qid",
"after",
"the",
"date",
"int",
"consumed",
"until",
"=",
"position",
"get",
"index",
"(",
")",
";",
"if",
"(",
"consumed",
"until",
"<",
"trimmed",
"datestamp",
"length",
"(",
")",
")",
"{",
"matcher",
"matcher",
"=",
"calendar",
"suffix",
"pattern",
"matcher",
"(",
"trimmed",
"datestamp",
"sub",
"sequence",
"(",
"position",
"get",
"index",
"(",
")",
",",
"trimmed",
"datestamp",
"length",
"(",
")",
")",
")",
";",
"if",
"(",
"matcher",
"find",
"(",
")",
")",
"{",
"string",
"calendar",
"qid",
"=",
"matcher",
"group",
"(",
"1",
")",
";",
"calendar",
"iri",
"=",
"datamodel",
"site",
"wikidata",
"+",
"calendar",
"qid",
";",
"consumed",
"until",
"=",
"trimmed",
"datestamp",
"length",
"(",
")",
";",
"}",
"}",
"/",
"/",
"ignore",
"parses",
"which",
"failed",
"or",
"do",
"not",
"consume",
"all",
"the",
"input",
"if",
"(",
"date",
"!",
"=",
"null",
"&",
"&",
"position",
"get",
"index",
"(",
")",
">",
"max",
"length",
"/",
"/",
"only",
"allow",
"to",
"partially",
"consume",
"the",
"input",
"if",
"the",
"precision",
"is",
"day",
"and",
"followed",
"by",
"a",
"t",
"(",
"as",
"in",
"iso",
")",
"&",
"&",
"(",
"consumed",
"until",
"=",
"=",
"trimmed",
"datestamp",
"length",
"(",
")",
"|",
"|",
"(",
"entry",
"get",
"value",
"(",
")",
"=",
"=",
"11",
"&",
"&",
"trimmed",
"datestamp",
"char",
"at",
"(",
"consumed",
"until",
")",
"=",
"=",
"'",
"t",
"'",
")",
")",
")",
"{",
"precision",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"best",
"date",
"=",
"date",
";",
"max",
"length",
"=",
"position",
"get",
"index",
"(",
")",
";",
"}",
"}",
"if",
"(",
"best",
"date",
"=",
"=",
"null",
"|",
"|",
"precision",
"=",
"=",
"0",
")",
"{",
"throw",
"new",
"parse",
"exception",
"(",
"\"",
"invalid",
"date",
"\"",
",",
"0",
")",
";",
"}",
"else",
"{",
"calendar",
"calendar",
"=",
"calendar",
"get",
"instance",
"(",
")",
";",
"calendar",
"=",
"calendar",
"get",
"instance",
"(",
")",
";",
"calendar",
"set",
"time",
"(",
"best",
"date",
")",
";",
"return",
"datamodel",
"make",
"time",
"value",
"(",
"calendar",
"get",
"(",
"calendar",
"year",
")",
",",
"(",
"byte",
")",
"(",
"calendar",
"get",
"(",
"calendar",
"month",
")",
"+",
"1",
")",
",",
"(",
"byte",
")",
"calendar",
"get",
"(",
"calendar",
"day",
"of",
"month",
")",
",",
"(",
"byte",
")",
"calendar",
"get",
"(",
"calendar",
"hour",
"of",
"day",
")",
",",
"(",
"byte",
")",
"calendar",
"get",
"(",
"calendar",
"minute",
")",
",",
"(",
"byte",
")",
"calendar",
"get",
"(",
"calendar",
"second",
")",
",",
"(",
"byte",
")",
"precision",
",",
"0",
",",
"0",
",",
"0",
",",
"calendar",
"iri",
")",
";",
"}",
"}"
] |
[
"create",
"a",
"{",
"@",
"link",
"d",
"i",
"e",
"aggregate",
"}",
"from",
"a",
"single",
"{",
"@",
"link",
"debug",
"info",
"entry",
"die",
"}",
"mainly",
"useful",
"early",
"in",
"the",
"{",
"@",
"link",
"d",
"w",
"a",
"r",
"f",
"compilation",
"unit",
"}",
"'",
"s",
"bootstrapping",
"process",
"when",
"it",
"needs",
"to",
"read",
"values",
"from",
"d",
"i",
"es"
] |
[
"public",
"static",
"d",
"i",
"e",
"aggregate",
"create",
"single",
"(",
"debug",
"info",
"entry",
"die",
")",
"{",
"d",
"i",
"e",
"aggregate",
"result",
"=",
"new",
"d",
"i",
"e",
"aggregate",
"(",
"new",
"debug",
"info",
"entry",
"[",
"]",
"{",
"die",
"}",
")",
";",
"return",
"result",
";",
"}"
] |
[
"returns",
"a",
"copy",
"of",
"the",
"input",
"string",
"in",
"which",
"all",
"{",
"@",
"linkplain",
"#",
"is",
"lower",
"case",
"(",
"char",
")",
"lowercase",
"ascii",
"characters",
"}",
"have",
"been",
"converted",
"to",
"uppercase",
"all",
"other",
"characters",
"are",
"copied",
"without",
"modification"
] |
[
"public",
"static",
"string",
"to",
"upper",
"case",
"(",
"string",
"string",
")",
"{",
"int",
"length",
"=",
"string",
"length",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"is",
"lower",
"case",
"(",
"string",
"char",
"at",
"(",
"i",
")",
")",
")",
"{",
"char",
"[",
"]",
"chars",
"=",
"string",
"to",
"char",
"array",
"(",
")",
";",
"for",
"(",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"char",
"c",
"=",
"chars",
"[",
"i",
"]",
";",
"if",
"(",
"is",
"lower",
"case",
"(",
"c",
")",
")",
"{",
"chars",
"[",
"i",
"]",
"=",
"(",
"char",
")",
"(",
"c",
"^",
"case",
"mask",
")",
";",
"}",
"}",
"return",
"string",
"value",
"of",
"(",
"chars",
")",
";",
"}",
"}",
"return",
"string",
";",
"}"
] |
[
"create",
"a",
"{",
"@",
"code",
"simple",
"evaluation",
"context",
"}",
"for",
"read",
"-",
"only",
"access",
"to",
"public",
"properties",
"via",
"{",
"@",
"link",
"data",
"binding",
"property",
"accessor",
"}"
] |
[
"public",
"static",
"builder",
"for",
"read",
"only",
"data",
"binding",
"(",
")",
"{",
"return",
"new",
"builder",
"(",
"data",
"binding",
"property",
"accessor",
"for",
"read",
"only",
"access",
"(",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"cumulative",
"time",
"taken",
"by",
"a",
"series",
"of",
"{",
"@",
"link",
"spawn",
"result",
"}",
"s"
] |
[
"private",
"optional",
"<",
"duration",
">",
"get",
"cumulative",
"time",
"(",
"function",
"<",
"spawn",
"result",
",",
"optional",
"<",
"duration",
">",
">",
"get",
"spawn",
"result",
"execution",
"time",
")",
"{",
"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",
"quotient",
"of",
"this",
"long",
"value",
"and",
"the",
"given",
"particular",
"long",
"value"
] |
[
"public",
"long",
"value",
"divide",
"(",
"particular",
"long",
"value",
"other",
")",
"{",
"return",
"divide",
"(",
"(",
"specific",
"long",
"value",
")",
"other",
")",
";",
"}"
] |
[
"return",
"the",
"next",
"of",
"the",
"given",
"node",
"at",
"the",
"given",
"level"
] |
[
"static",
"long",
"help",
"get",
"next",
"node",
"(",
"long",
"node",
",",
"int",
"level",
",",
"level",
"index",
"header",
"level",
"index",
"header",
",",
"allocator",
"space",
"allocator",
")",
"{",
"if",
"(",
"node",
"=",
"=",
"head",
"node",
")",
"{",
"return",
"level",
"index",
"header",
"get",
"next",
"node",
"(",
"level",
")",
";",
"}",
"chunk",
"chunk",
"=",
"space",
"allocator",
"get",
"chunk",
"by",
"id",
"(",
"space",
"utils",
"get",
"chunk",
"id",
"by",
"address",
"(",
"node",
")",
")",
";",
"int",
"offset",
"in",
"chunk",
"=",
"space",
"utils",
"get",
"chunk",
"offset",
"by",
"address",
"(",
"node",
")",
";",
"memory",
"segment",
"segment",
"=",
"chunk",
"get",
"memory",
"segment",
"(",
"offset",
"in",
"chunk",
")",
";",
"int",
"offset",
"in",
"byte",
"buffer",
"=",
"chunk",
"get",
"offset",
"in",
"segment",
"(",
"offset",
"in",
"chunk",
")",
";",
"return",
"level",
"=",
"=",
"0",
"?",
"get",
"next",
"key",
"pointer",
"(",
"segment",
",",
"offset",
"in",
"byte",
"buffer",
")",
":",
"get",
"next",
"index",
"node",
"(",
"segment",
",",
"offset",
"in",
"byte",
"buffer",
",",
"level",
")",
";",
"}"
] |
[
"works",
"in",
"conjunction",
"with",
"{",
"@",
"link",
"pattern",
"#",
"one",
"or",
"more",
"(",
")",
"}",
"or",
"{",
"@",
"link",
"pattern",
"#",
"times",
"(",
"int",
")",
"}",
"specifies",
"that",
"any",
"not",
"matching",
"element",
"breaks",
"the",
"loop",
"e",
"g",
"a",
"pattern",
"like",
":",
"{",
"@",
"code",
"pattern",
"<",
"event",
">",
"begin",
"(",
"\"",
"start",
"\"",
")",
"where",
"(",
"new",
"simple",
"condition",
"<",
"event",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"filter",
"(",
"event",
"value",
")",
"throws",
"exception",
"{",
"return",
"value",
"get",
"name",
"(",
")",
"equals",
"(",
"\"",
"c",
"\"",
")",
";",
"}",
"}",
")",
"followed",
"by",
"(",
"\"",
"middle",
"\"",
")",
"where",
"(",
"new",
"simple",
"condition",
"<",
"event",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"filter",
"(",
"event",
"value",
")",
"throws",
"exception",
"{",
"return",
"value",
"get",
"name",
"(",
")",
"equals",
"(",
"\"",
"a",
"\"",
")",
";",
"}",
"}",
")",
"one",
"or",
"more",
"(",
")",
"consecutive",
"(",
")",
"followed",
"by",
"(",
"\"",
"end",
"1",
"\"",
")",
"where",
"(",
"new",
"simple",
"condition",
"<",
"event",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"filter",
"(",
"event",
"value",
")",
"throws",
"exception",
"{",
"return",
"value",
"get",
"name",
"(",
")",
"equals",
"(",
"\"",
"b",
"\"",
")",
";",
"}",
"}",
")",
";",
"}",
"for",
"a",
"sequence",
":",
"c",
"d",
"a1",
"a2",
"a3",
"d",
"a4",
"b",
"will",
"generate",
"matches",
":",
"{",
"c",
"a1",
"b",
"}",
",",
"{",
"c",
"a1",
"a2",
"b",
"}",
",",
"{",
"c",
"a1",
"a2",
"a3",
"b",
"}",
"by",
"default",
"a",
"relaxed",
"continuity",
"is",
"applied"
] |
[
"public",
"pattern",
"<",
"t",
",",
"f",
">",
"consecutive",
"(",
")",
"{",
"quantifier",
"consecutive",
"(",
")",
";",
"return",
"this",
";",
"}"
] |
[
"put",
"or",
"replace",
"an",
"int",
"value",
"if",
"the",
"index",
"is",
"greater",
"than",
"the",
"length",
"of",
"the",
"j",
"s",
"o",
"n",
"array",
",",
"then",
"null",
"elements",
"will",
"be",
"added",
"as",
"necessary",
"to",
"pad",
"it",
"out"
] |
[
"public",
"j",
"s",
"o",
"n",
"array",
"put",
"(",
"int",
"index",
",",
"int",
"value",
")",
"throws",
"j",
"s",
"o",
"n",
"exception",
"{",
"put",
"(",
"index",
",",
"new",
"integer",
"(",
"value",
")",
")",
";",
"return",
"this",
";",
"}"
] |
[
"check",
"that",
"some",
"simple",
"strings",
"that",
"we",
"expect",
"to",
"find",
"are",
"found",
",",
"at",
"the",
"correct",
"addresses"
] |
[
"public",
"void",
"test",
"find",
"valid",
"strings",
"(",
")",
"throws",
"exception",
"{",
"program",
"test",
"program",
"=",
"build",
"program",
"(",
"\"",
"notepad",
"exe",
"\"",
",",
"false",
")",
";",
"listing",
"listing",
"=",
"test",
"program",
"get",
"listing",
"(",
")",
";",
"address",
"space",
"space",
"=",
"test",
"program",
"get",
"language",
"(",
")",
"get",
"address",
"factory",
"(",
")",
"get",
"default",
"address",
"space",
"(",
")",
";",
"/",
"/",
"these",
"are",
"the",
"strings",
"that",
"we",
"expect",
"to",
"find",
",",
"with",
"their",
"corresponding",
"offsets",
"string",
"[",
"]",
"strings",
"=",
"new",
"string",
"[",
"]",
"{",
"\"",
"notepad",
"\"",
",",
"\"",
"now",
"printing",
"\"",
",",
"\"",
"paper",
"\"",
",",
"\"",
"np",
"save",
"dialog",
"\"",
",",
"\"",
"preview",
"\"",
"}",
";",
"int",
"[",
"]",
"offsets",
"=",
"new",
"int",
"[",
"]",
"{",
"0x",
"1",
"0",
"0",
"8",
"0",
"1",
"8",
",",
"0x",
"1",
"0",
"0d",
"6",
"1",
"2",
",",
"0x",
"1",
"0",
"0d",
"7",
"2e",
",",
"0x",
"1",
"0",
"0",
"1",
"3b",
"0",
",",
"0x",
"1",
"0",
"0daaa",
"}",
";",
"hash",
"map",
"<",
"address",
",",
"string",
">",
"address",
"to",
"value",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"/",
"/",
"translate",
"offsets",
"to",
"addresses",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"offsets",
"length",
";",
"i",
"+",
"+",
")",
"{",
"address",
"to",
"value",
"map",
"put",
"(",
"addr",
"(",
"space",
",",
"offsets",
"[",
"i",
"]",
")",
",",
"strings",
"[",
"i",
"]",
")",
";",
"}",
"data",
"data",
";",
"/",
"/",
"verify",
"these",
"strings",
"aren",
"'",
"t",
"already",
"there",
"for",
"(",
"address",
"str",
"addr",
":",
"address",
"to",
"value",
"map",
"key",
"set",
"(",
")",
")",
"{",
"data",
"=",
"listing",
"get",
"defined",
"data",
"at",
"(",
"str",
"addr",
")",
";",
"assert",
"null",
"(",
"data",
")",
";",
"}",
"auto",
"analysis",
"manager",
"manager",
"=",
"auto",
"analysis",
"manager",
"get",
"analysis",
"manager",
"(",
"test",
"program",
")",
";",
"strings",
"analyzer",
"analyzer",
"=",
"new",
"strings",
"analyzer",
"(",
")",
";",
"analyzer",
"set",
"string",
"end",
"alignment",
"(",
"1",
")",
";",
"analyzer",
"added",
"(",
"test",
"program",
",",
"null",
",",
"monitor",
",",
"manager",
"get",
"message",
"log",
"(",
")",
")",
";",
"string",
"type",
",",
"actual",
"value",
",",
"to",
"match",
";",
"/",
"/",
"verify",
"that",
"each",
"expected",
"string",
"is",
"there",
"for",
"(",
"address",
"str",
"addr",
":",
"address",
"to",
"value",
"map",
"key",
"set",
"(",
")",
")",
"{",
"to",
"match",
"=",
"\"",
"u",
"\\",
"\"",
"\"",
"+",
"address",
"to",
"value",
"map",
"get",
"(",
"str",
"addr",
")",
"+",
"\"",
"\\",
"\"",
"\"",
";",
"data",
"=",
"listing",
"get",
"defined",
"data",
"at",
"(",
"str",
"addr",
")",
";",
"assert",
"not",
"null",
"(",
"data",
")",
";",
"type",
"=",
"data",
"get",
"data",
"type",
"(",
")",
"get",
"name",
"(",
")",
"to",
"lower",
"case",
"(",
")",
";",
"assert",
"true",
"(",
"\"",
"data",
"at",
"address",
"\"",
"+",
"str",
"addr",
"+",
"\"",
"should",
"be",
"a",
"type",
"of",
"string",
"!",
"\"",
",",
"(",
"type",
"contains",
"(",
"\"",
"unicode",
"\"",
")",
"|",
"|",
"type",
"contains",
"(",
"\"",
"string",
"\"",
")",
")",
")",
";",
"actual",
"value",
"=",
"data",
"get",
"default",
"value",
"representation",
"(",
")",
";",
"assert",
"equals",
"(",
"to",
"match",
",",
"actual",
"value",
")",
";",
"}",
"}"
] |
[
"sets",
"interface",
"class"
] |
[
"public",
"void",
"set",
"interface",
"class",
"(",
"class",
"<",
"?",
">",
"interface",
"class",
")",
"{",
"this",
"interface",
"class",
"=",
"interface",
"class",
";",
"}"
] |
[
"suspend",
"this",
"synchronization",
"supposed",
"to",
"unbind",
"resources",
"from",
"transaction",
"synchronization",
"manager",
"if",
"managing",
"any"
] |
[
"default",
"void",
"suspend",
"(",
")",
"{",
"}"
] |
[
"get",
"the",
"http",
"response",
"headers"
] |
[
"public",
"multi",
"map",
"get",
"response",
"headers",
"(",
")",
"{",
"return",
"response",
"headers",
";",
"}"
] |
[
"return",
"a",
"host",
":",
"port",
"format",
"string",
"corresponds",
"to",
"an",
"auxiliary",
"port",
"configured",
"on",
"name",
"node",
"if",
"there",
"are",
"multiple",
"auxiliary",
"ports",
",",
"an",
"arbitrary",
"one",
"is",
"returned",
"if",
"there",
"is",
"no",
"auxiliary",
"listener",
",",
"returns",
"null"
] |
[
"public",
"string",
"get",
"n",
"n",
"auxiliary",
"rpc",
"address",
"(",
")",
"{",
"set",
"<",
"inet",
"socket",
"address",
">",
"auxiliary",
"addrs",
"=",
"get",
"auxiliary",
"name",
"node",
"addresses",
"(",
")",
";",
"if",
"(",
"auxiliary",
"addrs",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"/",
"/",
"since",
"set",
"has",
"no",
"particular",
"order",
",",
"returning",
"the",
"first",
"element",
"of",
"/",
"/",
"from",
"the",
"iterator",
"is",
"effectively",
"arbitrary",
"inet",
"socket",
"address",
"addr",
"=",
"auxiliary",
"addrs",
"iterator",
"(",
")",
"next",
"(",
")",
";",
"return",
"net",
"utils",
"get",
"host",
"port",
"string",
"(",
"addr",
")",
";",
"}"
] |
[
"return",
"whether",
"xml",
"external",
"entities",
"are",
"allowed"
] |
[
"public",
"boolean",
"is",
"process",
"external",
"entities",
"(",
")",
"{",
"return",
"this",
"process",
"external",
"entities",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"void",
"debug",
"print",
"(",
"print",
"writer",
"out",
",",
"boolean",
"verbose",
")",
"{",
"if",
"(",
"code",
"=",
"=",
"null",
")",
"{",
"out",
"println",
"(",
"get",
"ref",
"(",
")",
"to",
"human",
"(",
")",
"+",
"\"",
":",
"abstract",
"or",
"native",
"\"",
")",
";",
"}",
"else",
"{",
"code",
"debug",
"print",
"(",
"out",
",",
"\"",
"\"",
",",
"verbose",
")",
";",
"}",
"}"
] |
[
"loads",
"and",
"decodes",
"image",
"synchronously",
"<",
"br",
">",
"default",
"display",
"image",
"options",
"{",
"@",
"linkplain",
"image",
"loader",
"configuration",
"builder",
"#",
"default",
"display",
"image",
"options",
"(",
"display",
"image",
"options",
")",
"from",
"configuration",
"}",
"will",
"be",
"used",
"<",
"br",
">",
"<",
"b",
">",
"note",
":",
"<",
"b",
">",
"{",
"@",
"link",
"#",
"init",
"(",
"image",
"loader",
"configuration",
")",
"}",
"method",
"must",
"be",
"called",
"before",
"this",
"method",
"call"
] |
[
"public",
"bitmap",
"load",
"image",
"sync",
"(",
"string",
"uri",
",",
"image",
"size",
"target",
"image",
"size",
")",
"{",
"return",
"load",
"image",
"sync",
"(",
"uri",
",",
"target",
"image",
"size",
",",
"null",
")",
";",
"}"
] |
[
"print",
"a",
"usage",
"message"
] |
[
"private",
"int",
"usage",
"(",
"string",
"[",
"]",
"args",
")",
"{",
"err",
"(",
"\"",
"usage",
":",
"[",
"load",
"|",
"create",
"]",
"<",
"classname",
">",
"\"",
")",
";",
"err",
"(",
"\"",
"[",
"locate",
"|",
"print",
"]",
"<",
"resourcename",
">",
"]",
"\"",
")",
";",
"err",
"(",
"\"",
"the",
"return",
"codes",
"are",
":",
"\"",
")",
";",
"explain",
"result",
"(",
"success",
",",
"\"",
"the",
"operation",
"was",
"successful",
"\"",
")",
";",
"explain",
"result",
"(",
"e",
"generic",
",",
"\"",
"something",
"went",
"wrong",
"\"",
")",
";",
"explain",
"result",
"(",
"e",
"usage",
",",
"\"",
"this",
"usage",
"message",
"was",
"printed",
"\"",
")",
";",
"explain",
"result",
"(",
"e",
"not",
"found",
",",
"\"",
"the",
"class",
"or",
"resource",
"was",
"not",
"found",
"\"",
")",
";",
"explain",
"result",
"(",
"e",
"load",
"failed",
",",
"\"",
"the",
"class",
"was",
"found",
"but",
"could",
"not",
"be",
"loaded",
"\"",
")",
";",
"explain",
"result",
"(",
"e",
"create",
"failed",
",",
"\"",
"the",
"class",
"was",
"loaded",
",",
"but",
"an",
"instance",
"of",
"it",
"could",
"not",
"be",
"created",
"\"",
")",
";",
"return",
"e",
"usage",
";",
"}"
] |
[
"add",
"a",
"listener",
"to",
"the",
"list",
"of",
"listeners"
] |
[
"public",
"void",
"add",
"listener",
"(",
"state",
"transition",
"listener",
"<",
"operand",
",",
"event",
",",
"state",
">",
"listener",
")",
"{",
"listeners",
"add",
"(",
"listener",
")",
";",
"}"
] |
[
"optional",
"-",
"open",
"a",
"p",
"i",
"type",
"conversion",
"this",
"is",
"used",
"to",
"map",
"open",
"a",
"p",
"i",
"types",
"in",
"a",
"`",
"schema",
"`",
"into",
"either",
"language",
"specific",
"types",
"via",
"`",
"type",
"mapping",
"`",
"or",
"into",
"complex",
"models",
"if",
"there",
"is",
"not",
"a",
"mapping"
] |
[
"public",
"string",
"get",
"schema",
"type",
"(",
"schema",
"p",
")",
"{",
"string",
"open",
"a",
"p",
"i",
"type",
"=",
"super",
"get",
"schema",
"type",
"(",
"p",
")",
";",
"string",
"type",
"=",
"null",
";",
"if",
"(",
"type",
"mapping",
"contains",
"key",
"(",
"open",
"a",
"p",
"i",
"type",
")",
")",
"{",
"type",
"=",
"type",
"mapping",
"get",
"(",
"open",
"a",
"p",
"i",
"type",
")",
";",
"if",
"(",
"language",
"specific",
"primitives",
"contains",
"(",
"type",
")",
")",
"return",
"to",
"model",
"name",
"(",
"type",
")",
";",
"}",
"else",
"type",
"=",
"open",
"a",
"p",
"i",
"type",
";",
"return",
"to",
"model",
"name",
"(",
"type",
")",
";",
"}"
] |
[
"associate",
"the",
"given",
"message",
"with",
"the",
"given",
"code"
] |
[
"public",
"void",
"add",
"message",
"(",
"string",
"code",
",",
"locale",
"locale",
",",
"string",
"default",
"message",
")",
"{",
"get",
"static",
"message",
"source",
"(",
")",
"add",
"message",
"(",
"code",
",",
"locale",
",",
"default",
"message",
")",
";",
"}"
] |
[
"adds",
"and",
"retrieves",
"the",
"stats",
"object",
"for",
"tracking",
"loads",
"for",
"the",
"given",
"cluster",
":",
"cluster",
"service",
"the",
"returned",
"{",
"@",
"link",
"load",
"stats",
"store",
"}",
"is",
"reference",
"-",
"counted",
",",
"caller",
"should",
"use",
"{",
"@",
"link",
"#",
"remove",
"load",
"stats",
"}",
"to",
"release",
"the",
"reference",
"when",
"it",
"is",
"no",
"longer",
"used"
] |
[
"load",
"stats",
"store",
"add",
"load",
"stats",
"(",
"string",
"cluster",
",",
"@",
"nullable",
"string",
"cluster",
"service",
")",
"{",
"if",
"(",
"!",
"load",
"stats",
"stores",
"contains",
"key",
"(",
"cluster",
")",
")",
"{",
"load",
"stats",
"stores",
"put",
"(",
"cluster",
",",
"new",
"hash",
"map",
"<",
"string",
",",
"reference",
"counted",
"<",
"load",
"stats",
"store",
">",
">",
"(",
")",
")",
";",
"}",
"map",
"<",
"string",
",",
"reference",
"counted",
"<",
"load",
"stats",
"store",
">",
">",
"cluster",
"load",
"stats",
"stores",
"=",
"load",
"stats",
"stores",
"get",
"(",
"cluster",
")",
";",
"if",
"(",
"!",
"cluster",
"load",
"stats",
"stores",
"contains",
"key",
"(",
"cluster",
"service",
")",
")",
"{",
"cluster",
"load",
"stats",
"stores",
"put",
"(",
"cluster",
"service",
",",
"reference",
"counted",
"wrap",
"(",
"load",
"stats",
"store",
"factory",
"new",
"load",
"stats",
"store",
"(",
"cluster",
",",
"cluster",
"service",
")",
")",
")",
";",
"}",
"reference",
"counted",
"<",
"load",
"stats",
"store",
">",
"ref",
"=",
"cluster",
"load",
"stats",
"stores",
"get",
"(",
"cluster",
"service",
")",
";",
"ref",
"retain",
"(",
")",
";",
"return",
"ref",
"get",
"(",
")",
";",
"}"
] |
[
"build",
"a",
"qualified",
"temporary",
"path",
"for",
"the",
"multipart",
"upload",
"commit",
"information",
"in",
"the",
"cluster",
"filesystem",
"path",
"is",
"built",
"by",
"{",
"@",
"link",
"#",
"get",
"multipart",
"upload",
"commits",
"directory",
"(",
"file",
"system",
",",
"configuration",
",",
"string",
")",
"}"
] |
[
"public",
"static",
"path",
"get",
"multipart",
"upload",
"commits",
"directory",
"(",
"configuration",
"conf",
",",
"string",
"uuid",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"get",
"multipart",
"upload",
"commits",
"directory",
"(",
"file",
"system",
"get",
"(",
"conf",
")",
",",
"conf",
",",
"uuid",
")",
";",
"}"
] |
[
"use",
"the",
"given",
"{",
"@",
"link",
"credentials",
"provider",
"}",
"instance"
] |
[
"public",
"http",
"client",
"builder",
"using",
"(",
"credentials",
"provider",
"credentials",
"provider",
")",
"{",
"this",
"credentials",
"provider",
"=",
"credentials",
"provider",
";",
"return",
"this",
";",
"}"
] |
[
"aborts",
"this",
"edit",
"this",
"releases",
"the",
"edit",
"lock",
"so",
"another",
"edit",
"may",
"be",
"started",
"on",
"the",
"same",
"key"
] |
[
"public",
"void",
"abort",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"complete",
"edit",
"(",
"this",
",",
"false",
")",
";",
"}"
] |
[
"check",
"if",
"this",
"node",
"yields",
"a",
"numeric",
"value"
] |
[
"public",
"boolean",
"is",
"numeric",
"(",
")",
"{",
"return",
"false",
";",
"}"
] |
[
"creates",
"a",
"decoder",
"for",
"the",
"given",
"format"
] |
[
"protected",
"abstract",
"decoder",
"<",
"video",
"decoder",
"input",
"buffer",
",",
"?",
"extends",
"video",
"decoder",
"output",
"buffer",
",",
"?",
"extends",
"decoder",
"exception",
">",
"create",
"decoder",
"(",
"format",
"format",
",",
"@",
"nullable",
"exo",
"media",
"crypto",
"media",
"crypto",
")",
"throws",
"decoder",
"exception",
";"
] |
[
"returns",
"the",
"validation",
"errors",
"accumulated"
] |
[
"public",
"final",
"list",
"<",
"string",
">",
"validation",
"errors",
"(",
")",
"{",
"return",
"validation",
"errors",
";",
"}"
] |
[
"can",
"be",
"used",
"to",
"collect",
"objects",
"from",
"the",
"iterable",
"is",
"a",
"terminating",
"operation",
"this",
"operation",
"is",
"memory",
"intensive",
",",
"because",
"the",
"contents",
"of",
"this",
"iterable",
"are",
"collected",
"into",
"a",
"list",
",",
"when",
"the",
"next",
"object",
"is",
"requested"
] |
[
"public",
"fluent",
"iterable",
"<",
"e",
">",
"last",
"(",
"int",
"count",
")",
"{",
"return",
"new",
"lazy",
"fluent",
"iterable",
"<",
">",
"(",
")",
"{",
"@",
"override",
"public",
"iterator",
"<",
"e",
">",
"iterator",
"(",
")",
"{",
"return",
"new",
"decorating",
"iterator",
"<",
">",
"(",
"iterable",
"iterator",
"(",
")",
")",
"{",
"private",
"int",
"stop",
"index",
";",
"private",
"int",
"total",
"elements",
"count",
";",
"private",
"list",
"<",
"e",
">",
"list",
";",
"private",
"int",
"current",
"index",
";",
"@",
"override",
"public",
"e",
"compute",
"next",
"(",
")",
"{",
"initialize",
"(",
")",
";",
"while",
"(",
"current",
"index",
"<",
"stop",
"index",
"&",
"&",
"from",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"current",
"index",
"+",
"+",
";",
"from",
"iterator",
"next",
"(",
")",
";",
"}",
"if",
"(",
"current",
"index",
">",
"=",
"stop",
"index",
"&",
"&",
"from",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"return",
"from",
"iterator",
"next",
"(",
")",
";",
"}",
"return",
"null",
";",
"}",
"private",
"void",
"initialize",
"(",
")",
"{",
"if",
"(",
"list",
"=",
"=",
"null",
")",
"{",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"iterable",
"for",
"each",
"(",
"list",
":",
":",
"add",
")",
";",
"total",
"elements",
"count",
"=",
"list",
"size",
"(",
")",
";",
"stop",
"index",
"=",
"total",
"elements",
"count",
"-",
"count",
";",
"}",
"}",
"}",
";",
"}",
"}",
";",
"}"
] |
[
"creates",
"a",
"<",
"code",
">",
"note",
"<",
"code",
">",
"bookmark",
"at",
"the",
"specified",
"address",
"<",
"br",
">",
"note",
":",
"if",
"a",
"<",
"code",
">",
"note",
"<",
"code",
">",
"bookmark",
"already",
"exists",
"at",
"the",
"address",
",",
"it",
"will",
"be",
"replaced",
"this",
"is",
"intentional",
"and",
"is",
"done",
"to",
"match",
"the",
"behavior",
"of",
"setting",
"bookmarks",
"from",
"the",
"ui"
] |
[
"public",
"final",
"bookmark",
"create",
"bookmark",
"(",
"address",
"address",
",",
"string",
"category",
",",
"string",
"note",
")",
"{",
"/",
"/",
"enforce",
"one",
"bookmark",
"per",
"address",
",",
"as",
"this",
"is",
"what",
"the",
"ui",
"does",
"bookmark",
"[",
"]",
"existing",
"bookmarks",
"=",
"get",
"bookmarks",
"(",
"address",
")",
";",
"if",
"(",
"existing",
"bookmarks",
"!",
"=",
"null",
"&",
"&",
"existing",
"bookmarks",
"length",
">",
"0",
")",
"{",
"existing",
"bookmarks",
"[",
"0",
"]",
"set",
"(",
"category",
",",
"note",
")",
";",
"return",
"existing",
"bookmarks",
"[",
"0",
"]",
";",
"}",
"bookmark",
"manager",
"bkm",
"=",
"current",
"program",
"get",
"bookmark",
"manager",
"(",
")",
";",
"return",
"bkm",
"set",
"bookmark",
"(",
"address",
",",
"bookmark",
"type",
"note",
",",
"category",
",",
"note",
")",
";",
"}"
] |
[
"notifies",
"the",
"event",
"handler",
"immediately",
"prior",
"to",
"this",
"processor",
"shutting",
"down"
] |
[
"private",
"void",
"notify",
"shutdown",
"(",
")",
"{",
"if",
"(",
"event",
"handler",
"instanceof",
"lifecycle",
"aware",
")",
"{",
"try",
"{",
"(",
"(",
"lifecycle",
"aware",
")",
"event",
"handler",
")",
"on",
"shutdown",
"(",
")",
";",
"}",
"catch",
"(",
"final",
"throwable",
"ex",
")",
"{",
"exception",
"handler",
"handle",
"on",
"shutdown",
"exception",
"(",
"ex",
")",
";",
"}",
"}",
"}"
] |
[
"mark",
"that",
"we",
"want",
"data",
"from",
"this",
"partition",
"in",
"the",
"upcoming",
"fetch"
] |
[
"public",
"void",
"add",
"(",
"topic",
"partition",
"topic",
"partition",
",",
"partition",
"data",
"data",
")",
"{",
"next",
"put",
"(",
"topic",
"partition",
",",
"data",
")",
";",
"}"
] |
[
"get",
"integer",
"item"
] |
[
"public",
"integer",
"get",
"integer",
"item",
"(",
")",
"{",
"return",
"integer",
"item",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.