docstring_tokens
list | code_tokens
list |
---|---|
[
"assert",
"the",
"number",
"of",
"model",
"attributes"
]
| [
"public",
"result",
"matcher",
"size",
"(",
"int",
"size",
")",
"{",
"return",
"result",
"-",
">",
"{",
"model",
"and",
"view",
"mav",
"=",
"get",
"model",
"and",
"view",
"(",
"result",
")",
";",
"int",
"actual",
"=",
"0",
";",
"for",
"(",
"string",
"key",
":",
"mav",
"get",
"model",
"(",
")",
"key",
"set",
"(",
")",
")",
"{",
"if",
"(",
"!",
"key",
"starts",
"with",
"(",
"binding",
"result",
"model",
"key",
"prefix",
")",
")",
"{",
"actual",
"+",
"+",
";",
"}",
"}",
"assert",
"equals",
"(",
"\"",
"model",
"size",
"\"",
",",
"size",
",",
"actual",
")",
";",
"}",
";",
"}"
]
|
[
"make",
"sure",
"that",
"we",
"starting",
"reading",
"the",
"correct",
"op",
"when",
"we",
"request",
"a",
"stream",
"with",
"a",
"txid",
"in",
"the",
"middle",
"of",
"an",
"edit",
"log",
"file"
]
| [
"public",
"void",
"test",
"read",
"from",
"middle",
"of",
"edit",
"log",
"(",
")",
"throws",
"corruption",
"exception",
",",
"i",
"o",
"exception",
"{",
"file",
"f",
"=",
"new",
"file",
"(",
"test",
"edit",
"log",
"test",
"dir",
"+",
"\"",
"/",
"readfrommiddleofeditlog",
"\"",
")",
";",
"n",
"n",
"storage",
"storage",
"=",
"setup",
"edits",
"(",
"collections",
"<",
"uri",
">",
"singleton",
"list",
"(",
"f",
"to",
"u",
"r",
"i",
"(",
")",
")",
",",
"10",
")",
";",
"storage",
"directory",
"sd",
"=",
"storage",
"dir",
"iterator",
"(",
"name",
"node",
"dir",
"type",
"edits",
")",
"next",
"(",
")",
";",
"file",
"journal",
"manager",
"jm",
"=",
"new",
"file",
"journal",
"manager",
"(",
"conf",
",",
"sd",
",",
"storage",
")",
";",
"edit",
"log",
"input",
"stream",
"elis",
"=",
"get",
"journal",
"input",
"stream",
"(",
"jm",
",",
"5",
",",
"true",
")",
";",
"try",
"{",
"f",
"s",
"edit",
"log",
"op",
"op",
"=",
"elis",
"read",
"op",
"(",
")",
";",
"assert",
"equals",
"(",
"\"",
"read",
"unexpected",
"op",
"\"",
",",
"op",
"get",
"transaction",
"id",
"(",
")",
",",
"5",
")",
";",
"}",
"finally",
"{",
"i",
"o",
"utils",
"cleanup",
"with",
"logger",
"(",
"log",
",",
"elis",
")",
";",
"}",
"}"
]
|
[
"optional",
":",
"default",
"value",
"is",
"0"
]
| [
"public",
"prop",
"groups",
"view",
"model",
"something",
"(",
"int",
"something",
")",
"{",
"assigned",
"attributes",
"epoxy",
"generated",
"model",
"set",
"(",
"1",
")",
";",
"assigned",
"attributes",
"epoxy",
"generated",
"model",
"clear",
"(",
"0",
")",
";",
"this",
"something",
"char",
"sequence",
"=",
"(",
"char",
"sequence",
")",
"null",
";",
"on",
"mutation",
"(",
")",
";",
"this",
"something",
"int",
"=",
"something",
";",
"return",
"this",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"final",
"boolean",
"equals",
"(",
"object",
"other",
")",
"{",
"return",
"(",
"other",
"!",
"=",
"null",
")",
"&",
"&",
"(",
"get",
"class",
"(",
")",
"=",
"=",
"other",
"get",
"class",
"(",
")",
")",
"&",
"&",
"bits",
"=",
"=",
"(",
"(",
"cst",
"literal",
"6",
"4",
")",
"other",
")",
"bits",
";",
"}"
]
|
[
"returns",
"the",
"setting",
"value",
"associated",
"with",
"the",
"setting",
"key"
]
| [
"public",
"string",
"get",
"(",
"string",
"setting",
")",
"{",
"return",
"to",
"string",
"(",
"settings",
"get",
"(",
"setting",
")",
")",
";",
"}"
]
|
[
"create",
"a",
"new",
"{",
"@",
"link",
"time",
"windowed",
"k",
"stream",
"}",
"instance",
"that",
"can",
"be",
"used",
"to",
"perform",
"sliding",
"windowed",
"aggregations"
]
| [
"time",
"windowed",
"k",
"stream",
"<",
"k",
",",
"v",
">",
"windowed",
"by",
"(",
"final",
"sliding",
"windows",
"windows",
")",
";"
]
|
[
"ssl",
"exceptions",
"are",
"propagated",
"as",
"authentication",
"failures",
"so",
"that",
"clients",
"can",
"avoid",
"retries",
"and",
"report",
"the",
"failure",
"if",
"`",
"flush",
"`",
"is",
"true",
",",
"exceptions",
"are",
"propagated",
"after",
"any",
"pending",
"outgoing",
"bytes",
"are",
"flushed",
"to",
"ensure",
"that",
"the",
"peer",
"is",
"notified",
"of",
"the",
"failure"
]
| [
"private",
"void",
"handshake",
"failure",
"(",
"s",
"s",
"l",
"exception",
"ssl",
"exception",
",",
"boolean",
"flush",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"release",
"all",
"resources",
"such",
"as",
"internal",
"buffers",
"that",
"s",
"s",
"l",
"engine",
"is",
"managing",
"ssl",
"engine",
"close",
"outbound",
"(",
")",
";",
"try",
"{",
"ssl",
"engine",
"close",
"inbound",
"(",
")",
";",
"}",
"catch",
"(",
"s",
"s",
"l",
"exception",
"e",
")",
"{",
"log",
"debug",
"(",
"\"",
"s",
"s",
"l",
"engine",
"close",
"in",
"bound",
"(",
")",
"raised",
"an",
"exception",
"\"",
",",
"e",
")",
";",
"}",
"state",
"=",
"state",
"handshake",
"failed",
";",
"handshake",
"exception",
"=",
"new",
"ssl",
"authentication",
"exception",
"(",
"\"",
"ssl",
"handshake",
"failed",
"\"",
",",
"ssl",
"exception",
")",
";",
"/",
"/",
"attempt",
"to",
"flush",
"any",
"outgoing",
"bytes",
"if",
"flush",
"doesn",
"'",
"t",
"complete",
",",
"delay",
"exception",
"handling",
"until",
"outgoing",
"bytes",
"/",
"/",
"are",
"flushed",
"if",
"write",
"fails",
"because",
"remote",
"end",
"has",
"closed",
"the",
"channel",
",",
"log",
"the",
"i",
"/",
"o",
"exception",
"and",
"continue",
"to",
"/",
"/",
"handle",
"the",
"handshake",
"failure",
"as",
"an",
"authentication",
"exception",
"try",
"{",
"if",
"(",
"!",
"flush",
"|",
"|",
"flush",
"(",
"net",
"write",
"buffer",
")",
")",
"throw",
"handshake",
"exception",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"log",
"debug",
"(",
"\"",
"failed",
"to",
"flush",
"all",
"bytes",
"before",
"closing",
"channel",
"\"",
",",
"e",
")",
";",
"throw",
"handshake",
"exception",
";",
"}",
"}"
]
|
[
"test",
"equality",
"and",
"hash",
"code",
"properties"
]
| [
"public",
"void",
"test",
"equals",
"and",
"hashcode",
"(",
")",
"{",
"for",
"(",
"int",
"runs",
"=",
"0",
";",
"runs",
"<",
"number",
"of",
"testbuilders",
";",
"runs",
"+",
"+",
")",
"{",
"check",
"equals",
"and",
"hash",
"code",
"(",
"random",
"test",
"builder",
"(",
")",
",",
"this",
":",
":",
"copy",
",",
"this",
":",
":",
"mutate",
")",
";",
"}",
"}"
]
|
[
"indicates",
"whether",
"the",
"contents",
"of",
"the",
"given",
"character",
"sequences",
"{",
"@",
"code",
"s",
"1",
"}",
"and",
"{",
"@",
"code",
"s",
"2",
"}",
"are",
"equal",
",",
"ignoring",
"the",
"case",
"of",
"any",
"ascii",
"alphabetic",
"characters",
"between",
"{",
"@",
"code",
"'",
"a",
"'",
"}",
"and",
"{",
"@",
"code",
"'",
"z",
"'",
"}",
"or",
"{",
"@",
"code",
"'",
"a",
"'",
"}",
"and",
"{",
"@",
"code",
"'",
"z",
"'",
"}",
"inclusive",
"this",
"method",
"is",
"significantly",
"faster",
"than",
"{",
"@",
"link",
"string",
"#",
"equals",
"ignore",
"case",
"}",
"and",
"should",
"be",
"used",
"in",
"preference",
"if",
"at",
"least",
"one",
"of",
"the",
"parameters",
"is",
"known",
"to",
"contain",
"only",
"ascii",
"characters",
"note",
"however",
"that",
"this",
"method",
"does",
"not",
"always",
"behave",
"identically",
"to",
"expressions",
"such",
"as",
":",
"{",
"@",
"code",
"string",
"to",
"upper",
"case",
"(",
")",
"equals",
"(",
"\"",
"upper",
"case",
"ascii",
"\"",
")",
"}",
"{",
"@",
"code",
"string",
"to",
"lower",
"case",
"(",
")",
"equals",
"(",
"\"",
"lower",
"case",
"ascii",
"\"",
")",
"}",
"due",
"to",
"case",
"-",
"folding",
"of",
"some",
"non",
"-",
"ascii",
"characters",
"(",
"which",
"does",
"not",
"occur",
"in",
"{",
"@",
"link",
"string",
"#",
"equals",
"ignore",
"case",
"}",
")",
"however",
"in",
"almost",
"all",
"cases",
"that",
"ascii",
"strings",
"are",
"used",
",",
"the",
"author",
"probably",
"wanted",
"the",
"behavior",
"provided",
"by",
"this",
"method",
"rather",
"than",
"the",
"subtle",
"and",
"sometimes",
"surprising",
"behavior",
"of",
"{",
"@",
"code",
"to",
"upper",
"case",
"(",
")",
"}",
"and",
"{",
"@",
"code",
"to",
"lower",
"case",
"(",
")",
"}"
]
| [
"public",
"static",
"boolean",
"equals",
"ignore",
"case",
"(",
"char",
"sequence",
"s",
"1",
",",
"char",
"sequence",
"s",
"2",
")",
"{",
"/",
"/",
"calling",
"length",
"(",
")",
"is",
"the",
"null",
"pointer",
"check",
"(",
"so",
"do",
"it",
"before",
"we",
"can",
"exit",
"early",
")",
"int",
"length",
"=",
"s",
"1",
"length",
"(",
")",
";",
"if",
"(",
"s",
"1",
"=",
"=",
"s",
"2",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"length",
"!",
"=",
"s",
"2",
"length",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"char",
"c",
"1",
"=",
"s",
"1",
"char",
"at",
"(",
"i",
")",
";",
"char",
"c",
"2",
"=",
"s",
"2",
"char",
"at",
"(",
"i",
")",
";",
"if",
"(",
"c",
"1",
"=",
"=",
"c",
"2",
")",
"{",
"continue",
";",
"}",
"int",
"alpha",
"index",
"=",
"get",
"alpha",
"index",
"(",
"c",
"1",
")",
";",
"/",
"/",
"this",
"was",
"also",
"benchmarked",
"using",
"'",
"&",
"'",
"to",
"avoid",
"branching",
"(",
"but",
"always",
"evaluate",
"the",
"rhs",
")",
",",
"/",
"/",
"however",
"this",
"showed",
"no",
"obvious",
"improvement",
"if",
"(",
"alpha",
"index",
"<",
"26",
"&",
"&",
"alpha",
"index",
"=",
"=",
"get",
"alpha",
"index",
"(",
"c",
"2",
")",
")",
"{",
"continue",
";",
"}",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
]
|
[
"the",
"code",
"array",
"gives",
"the",
"actual",
"bytes",
"of",
"java",
"virtual",
"machine",
"code",
"that",
"implement",
"the",
"method",
"when",
"the",
"code",
"array",
"is",
"read",
"into",
"memory",
"on",
"a",
"byte",
"-",
"addressable",
"machine",
",",
"if",
"the",
"first",
"byte",
"of",
"the",
"array",
"is",
"aligned",
"on",
"a",
"4",
"-",
"byte",
"boundary",
",",
"the",
"tableswitch",
"and",
"lookupswitch",
"32",
"-",
"bit",
"offsets",
"will",
"be",
"4",
"-",
"byte",
"aligned",
"(",
"refer",
"to",
"the",
"descriptions",
"of",
"those",
"instructions",
"for",
"more",
"information",
"on",
"the",
"consequences",
"of",
"code",
"array",
"alignment",
")",
"the",
"detailed",
"constraints",
"on",
"the",
"contents",
"of",
"the",
"code",
"array",
"are",
"extensive",
"and",
"are",
"given",
"in",
"a",
"separate",
"section"
]
| [
"public",
"byte",
"[",
"]",
"get",
"code",
"(",
")",
"{",
"return",
"code",
";",
"}"
]
|
[
"destroy",
"(",
"shutdown",
")",
"the",
"housekeeping",
"service",
"executor",
",",
"if",
"it",
"was",
"the",
"one",
"that",
"we",
"created"
]
| [
"private",
"void",
"destroy",
"house",
"keeping",
"executor",
"service",
"(",
")",
"{",
"if",
"(",
"config",
"get",
"scheduled",
"executor",
"(",
")",
"=",
"=",
"null",
")",
"{",
"house",
"keeping",
"executor",
"service",
"shutdown",
"now",
"(",
")",
";",
"}",
"}"
]
|
[
"adds",
"the",
"given",
"global",
"action",
"to",
"the",
"menu",
"andor",
"toolbar"
]
| [
"void",
"add",
"tool",
"action",
"(",
"docking",
"action",
"if",
"action",
")",
"{",
"if",
"(",
"global",
"actions",
"add",
"(",
"action",
")",
")",
"{",
"popup",
"action",
"manager",
"add",
"action",
"(",
"action",
")",
";",
"menu",
"and",
"tool",
"bar",
"manager",
"add",
"action",
"(",
"action",
")",
";",
"}",
"}"
]
|
[
"creates",
"a",
"crosstool",
"release",
"proto",
"for",
"the",
"android",
"ndk",
",",
"given",
"the",
"api",
"level",
"to",
"use",
"and",
"the",
"release",
"revision",
"the",
"crosstools",
"are",
"generated",
"through",
"code",
"rather",
"than",
"checked",
"in",
"as",
"a",
"flat",
"file",
"to",
"reduce",
"the",
"amount",
"of",
"templating",
"needed",
"(",
"for",
"parameters",
"like",
"the",
"release",
"name",
"and",
"certain",
"paths",
")",
",",
"to",
"reduce",
"duplication",
",",
"and",
"to",
"make",
"it",
"easier",
"to",
"support",
"future",
"versions",
"of",
"the",
"ndk",
"todo",
"(",
"bazel",
"-",
"team",
")",
":",
"eventually",
"we",
"should",
"move",
"this",
"into",
"starlark",
"so",
"the",
"crosstools",
"can",
"be",
"updated",
"independently",
"of",
"bazel",
"itself"
]
| [
"public",
"static",
"crosstool",
"release",
"create",
"(",
"ndk",
"paths",
"ndk",
"paths",
",",
"stl",
"impl",
"stl",
"impl",
",",
"string",
"host",
"platform",
")",
"{",
"return",
"crosstool",
"release",
"new",
"builder",
"(",
")",
"set",
"major",
"version",
"(",
"\"",
"android",
"\"",
")",
"set",
"minor",
"version",
"(",
"\"",
"\"",
")",
"set",
"default",
"target",
"cpu",
"(",
"\"",
"armeabi",
"\"",
")",
"add",
"all",
"toolchain",
"(",
"create",
"toolchains",
"(",
"ndk",
"paths",
",",
"stl",
"impl",
",",
"host",
"platform",
")",
")",
"build",
"(",
")",
";",
"}"
]
|
[
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"openssl",
"orgdocsman",
"1",
"0",
"2ssl",
"s",
"s",
"l",
"set",
"verify",
"html",
"\"",
">",
"ssl",
"set",
"verify",
"and",
"{",
"@",
"link",
"ssl",
"#",
"set",
"verify",
"(",
"long",
",",
"int",
",",
"int",
")",
"}"
]
| [
"public",
"final",
"synchronized",
"void",
"set",
"verify",
"(",
"int",
"verify",
"mode",
",",
"int",
"depth",
")",
"{",
"if",
"(",
"!",
"is",
"destroyed",
"(",
")",
")",
"{",
"ssl",
"set",
"verify",
"(",
"ssl",
",",
"verify",
"mode",
",",
"depth",
")",
";",
"}",
"}"
]
|
[
"setup",
"federation",
"name",
"service",
"ids",
"in",
"the",
"configuration"
]
| [
"private",
"void",
"setup",
"name",
"services",
"(",
"hdfs",
"configuration",
"conf",
",",
"int",
"name",
"service",
"id",
"count",
")",
"{",
"string",
"builder",
"ns",
"list",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"name",
"service",
"id",
"count",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"ns",
"list",
"length",
"(",
")",
">",
"0",
")",
"{",
"ns",
"list",
"append",
"(",
"\"",
",",
"\"",
")",
";",
"}",
"ns",
"list",
"append",
"(",
"get",
"name",
"service",
"id",
"(",
"i",
")",
")",
";",
"}",
"conf",
"set",
"(",
"dfs",
"nameservices",
",",
"ns",
"list",
"to",
"string",
"(",
")",
")",
";",
"}"
]
|
[
"tests",
"that",
"we",
"can",
"still",
"run",
"commands",
"via",
"the",
"main",
"thread",
"executor",
"when",
"the",
"on",
"stop",
"method",
"is",
"called"
]
| [
"public",
"void",
"test",
"main",
"thread",
"execution",
"on",
"stop",
"(",
")",
"throws",
"exception",
"{",
"final",
"main",
"thread",
"executor",
"on",
"stop",
"endpoint",
"endpoint",
"=",
"new",
"main",
"thread",
"executor",
"on",
"stop",
"endpoint",
"(",
"akka",
"rpc",
"service",
")",
";",
"try",
"{",
"endpoint",
"start",
"(",
")",
";",
"completable",
"future",
"<",
"void",
">",
"termination",
"future",
"=",
"endpoint",
"close",
"async",
"(",
")",
";",
"termination",
"future",
"get",
"(",
")",
";",
"}",
"finally",
"{",
"rpc",
"utils",
"terminate",
"rpc",
"endpoint",
"(",
"endpoint",
",",
"timeout",
")",
";",
"}",
"}"
]
|
[
"creates",
"an",
"id",
"for",
"a",
"provider",
"with",
"a",
"given",
"name"
]
| [
"public",
"static",
"starlark",
"provider",
"identifier",
"for",
"legacy",
"(",
"string",
"legacy",
"id",
")",
"{",
"return",
"interner",
"intern",
"(",
"new",
"starlark",
"provider",
"identifier",
"(",
"legacy",
"id",
")",
")",
";",
"}"
]
|
[
"guarded",
"by",
"{",
"@",
"link",
"f",
"s",
"namesystem",
"#",
"read",
"lock",
"(",
")",
"}"
]
| [
"private",
"void",
"check",
"sub",
"access",
"(",
"byte",
"[",
"]",
"[",
"]",
"components",
",",
"int",
"path",
"idx",
",",
"i",
"node",
"inode",
",",
"int",
"snapshot",
"id",
",",
"fs",
"action",
"access",
",",
"boolean",
"ignore",
"empty",
"dir",
")",
"throws",
"access",
"control",
"exception",
"{",
"if",
"(",
"inode",
"=",
"=",
"null",
"|",
"|",
"!",
"inode",
"is",
"directory",
"(",
")",
")",
"{",
"return",
";",
"}",
"/",
"/",
"each",
"inode",
"in",
"the",
"subtree",
"has",
"a",
"level",
"the",
"root",
"inode",
"has",
"level",
"0",
"/",
"/",
"list",
"sub",
"i",
"node",
"path",
"tracks",
"the",
"inode",
"path",
"in",
"the",
"subtree",
"during",
"/",
"/",
"traversal",
"the",
"root",
"inode",
"is",
"not",
"stored",
"because",
"it",
"is",
"already",
"in",
"array",
"/",
"/",
"components",
"the",
"list",
"index",
"is",
"(",
"level",
"-",
"1",
")",
"array",
"list",
"<",
"i",
"node",
"directory",
">",
"sub",
"i",
"node",
"path",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"/",
"/",
"the",
"stack",
"of",
"levels",
"matches",
"the",
"stack",
"of",
"directory",
"inodes",
"stack",
"<",
"integer",
">",
"levels",
"=",
"new",
"stack",
"<",
">",
"(",
")",
";",
"levels",
"push",
"(",
"0",
")",
";",
"/",
"/",
"level",
"0",
"is",
"the",
"root",
"stack",
"<",
"i",
"node",
"directory",
">",
"directories",
"=",
"new",
"stack",
"<",
"i",
"node",
"directory",
">",
"(",
")",
";",
"for",
"(",
"directories",
"push",
"(",
"inode",
"as",
"directory",
"(",
")",
")",
";",
"!",
"directories",
"is",
"empty",
"(",
")",
";",
")",
"{",
"i",
"node",
"directory",
"d",
"=",
"directories",
"pop",
"(",
")",
";",
"int",
"level",
"=",
"levels",
"pop",
"(",
")",
";",
"read",
"only",
"list",
"<",
"i",
"node",
">",
"c",
"list",
"=",
"d",
"get",
"children",
"list",
"(",
"snapshot",
"id",
")",
";",
"if",
"(",
"!",
"(",
"c",
"list",
"is",
"empty",
"(",
")",
"&",
"&",
"ignore",
"empty",
"dir",
")",
")",
"{",
"/",
"/",
"todo",
"have",
"to",
"figure",
"this",
"out",
"with",
"inodeattribute",
"provider",
"i",
"node",
"attributes",
"inode",
"attr",
"=",
"get",
"i",
"node",
"attrs",
"(",
"d",
",",
"snapshot",
"id",
")",
";",
"if",
"(",
"!",
"has",
"permission",
"(",
"inode",
"attr",
",",
"access",
")",
")",
"{",
"throw",
"new",
"access",
"control",
"exception",
"(",
"to",
"access",
"control",
"string",
"(",
"inode",
"attr",
",",
"d",
"get",
"full",
"path",
"name",
"(",
")",
",",
"access",
")",
")",
";",
"}",
"if",
"(",
"level",
">",
"0",
")",
"{",
"if",
"(",
"level",
"-",
"1",
"<",
"sub",
"i",
"node",
"path",
"size",
"(",
")",
")",
"{",
"sub",
"i",
"node",
"path",
"set",
"(",
"level",
"-",
"1",
",",
"d",
")",
";",
"}",
"else",
"{",
"preconditions",
"check",
"state",
"(",
"level",
"-",
"1",
"=",
"=",
"sub",
"i",
"node",
"path",
"size",
"(",
")",
")",
";",
"sub",
"i",
"node",
"path",
"add",
"(",
"d",
")",
";",
"}",
"}",
"if",
"(",
"inode",
"attr",
"get",
"fs",
"permission",
"(",
")",
"get",
"sticky",
"bit",
"(",
")",
")",
"{",
"for",
"(",
"i",
"node",
"child",
":",
"c",
"list",
")",
"{",
"i",
"node",
"attributes",
"child",
"inode",
"attr",
"=",
"get",
"i",
"node",
"attrs",
"(",
"child",
",",
"snapshot",
"id",
")",
";",
"if",
"(",
"is",
"sticky",
"bit",
"violated",
"(",
"inode",
"attr",
",",
"child",
"inode",
"attr",
")",
")",
"{",
"list",
"<",
"byte",
"[",
"]",
">",
"all",
"component",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"=",
"path",
"idx",
";",
"+",
"+",
"i",
")",
"{",
"all",
"component",
"list",
"add",
"(",
"components",
"[",
"i",
"]",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"level",
";",
"+",
"+",
"i",
")",
"{",
"all",
"component",
"list",
"add",
"(",
"sub",
"i",
"node",
"path",
"get",
"(",
"i",
")",
"get",
"local",
"name",
"bytes",
"(",
")",
")",
";",
"}",
"all",
"component",
"list",
"add",
"(",
"child",
"get",
"local",
"name",
"bytes",
"(",
")",
")",
";",
"int",
"index",
"=",
"path",
"idx",
"+",
"level",
";",
"byte",
"[",
"]",
"[",
"]",
"all",
"components",
"=",
"all",
"component",
"list",
"to",
"array",
"(",
"new",
"byte",
"[",
"]",
"[",
"]",
"{",
"}",
")",
";",
"throw",
"sticky",
"bit",
"exception",
"(",
"get",
"path",
"(",
"all",
"components",
",",
"0",
",",
"index",
"+",
"1",
")",
",",
"child",
",",
"get",
"path",
"(",
"all",
"components",
",",
"0",
",",
"index",
")",
",",
"inode",
")",
";",
"}",
"}",
"}",
"}",
"for",
"(",
"i",
"node",
"child",
":",
"c",
"list",
")",
"{",
"if",
"(",
"child",
"is",
"directory",
"(",
")",
")",
"{",
"directories",
"push",
"(",
"child",
"as",
"directory",
"(",
")",
")",
";",
"levels",
"push",
"(",
"level",
"+",
"1",
")",
";",
"}",
"}",
"}",
"}"
]
|
[
"destroy",
"session",
"manager"
]
| [
"public",
"static",
"void",
"destroy",
"session",
"manager",
"(",
")",
"{",
"session",
"holder",
"destroy",
"(",
")",
";",
"}"
]
|
[
"sets",
"the",
"order",
"in",
"which",
"the",
"provided",
"data",
"objects",
"should",
"be",
"drawn",
"the",
"earlier",
"you",
"place",
"them",
"in",
"the",
"provided",
"array",
",",
"the",
"further",
"they",
"will",
"be",
"in",
"the",
"background",
"e",
"g",
"if",
"you",
"provide",
"new",
"draw",
"orer",
"[",
"]",
"{",
"draw",
"order",
"bar",
",",
"draw",
"order",
"line",
"}",
",",
"the",
"bars",
"will",
"be",
"drawn",
"behind",
"the",
"lines"
]
| [
"public",
"void",
"set",
"draw",
"order",
"(",
"draw",
"order",
"[",
"]",
"order",
")",
"{",
"if",
"(",
"order",
"=",
"=",
"null",
"|",
"|",
"order",
"length",
"<",
"=",
"0",
")",
"return",
";",
"m",
"draw",
"order",
"=",
"order",
";",
"}"
]
|
[
"return",
"the",
"internal",
"bean",
"factory",
"of",
"this",
"application",
"context",
"can",
"be",
"used",
"to",
"access",
"specific",
"functionality",
"of",
"the",
"underlying",
"factory",
"note",
":",
"do",
"not",
"use",
"this",
"to",
"post",
"-",
"process",
"the",
"bean",
"factory",
";",
"singletons",
"will",
"already",
"have",
"been",
"instantiated",
"before",
"use",
"a",
"bean",
"factory",
"post",
"processor",
"to",
"intercept",
"the",
"bean",
"factory",
"setup",
"process",
"before",
"beans",
"get",
"touched",
"generally",
",",
"this",
"internal",
"factory",
"will",
"only",
"be",
"accessible",
"while",
"the",
"context",
"is",
"active",
",",
"that",
"is",
",",
"in",
"-",
"between",
"{",
"@",
"link",
"#",
"refresh",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"close",
"(",
")",
"}",
"the",
"{",
"@",
"link",
"#",
"is",
"active",
"(",
")",
"}",
"flag",
"can",
"be",
"used",
"to",
"check",
"whether",
"the",
"context",
"is",
"in",
"an",
"appropriate",
"state"
]
| [
"configurable",
"listable",
"bean",
"factory",
"get",
"bean",
"factory",
"(",
")",
"throws",
"illegal",
"state",
"exception",
";"
]
|
[
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"each",
"element",
"in",
"{",
"@",
"code",
"iterable",
"}",
"after",
"the",
"first",
"is",
"greater",
"than",
"or",
"equal",
"to",
"the",
"element",
"that",
"preceded",
"it",
",",
"according",
"to",
"this",
"ordering",
"note",
"that",
"this",
"is",
"always",
"true",
"when",
"the",
"iterable",
"has",
"fewer",
"than",
"two",
"elements",
"<",
"b",
">",
"java",
"8",
"users",
":",
"<",
"b",
">",
"use",
"the",
"equivalent",
"{",
"@",
"link",
"comparators",
"#",
"is",
"in",
"order",
"(",
"iterable",
",",
"comparator",
")",
"}",
"instead",
",",
"since",
"the",
"rest",
"of",
"{",
"@",
"code",
"ordering",
"}",
"is",
"mostly",
"obsolete",
"(",
"as",
"explained",
"in",
"the",
"class",
"documentation",
")"
]
| [
"public",
"boolean",
"is",
"ordered",
"(",
"iterable",
"<",
"?",
"extends",
"t",
">",
"iterable",
")",
"{",
"iterator",
"<",
"?",
"extends",
"t",
">",
"it",
"=",
"iterable",
"iterator",
"(",
")",
";",
"if",
"(",
"it",
"has",
"next",
"(",
")",
")",
"{",
"t",
"prev",
"=",
"it",
"next",
"(",
")",
";",
"while",
"(",
"it",
"has",
"next",
"(",
")",
")",
"{",
"t",
"next",
"=",
"it",
"next",
"(",
")",
";",
"if",
"(",
"compare",
"(",
"prev",
",",
"next",
")",
">",
"0",
")",
"{",
"return",
"false",
";",
"}",
"prev",
"=",
"next",
";",
"}",
"}",
"return",
"true",
";",
"}"
]
|
[
"switch",
"namenodes",
"of",
"all",
"hdfs",
"name",
"services",
"to",
"standby"
]
| [
"public",
"static",
"void",
"transition",
"cluster",
"n",
"s",
"to",
"standby",
"(",
"state",
"store",
"d",
"f",
"s",
"cluster",
"cluster",
")",
"{",
"/",
"/",
"name",
"services",
"of",
"the",
"cluster",
"list",
"<",
"string",
">",
"name",
"service",
"list",
"=",
"cluster",
"get",
"nameservices",
"(",
")",
";",
"/",
"/",
"change",
"namenodes",
"of",
"each",
"name",
"service",
"to",
"standby",
"for",
"(",
"string",
"name",
"service",
":",
"name",
"service",
"list",
")",
"{",
"list",
"<",
"namenode",
"context",
">",
"nn",
"list",
"=",
"cluster",
"get",
"namenodes",
"(",
"name",
"service",
")",
";",
"for",
"(",
"namenode",
"context",
"namenode",
"context",
":",
"nn",
"list",
")",
"{",
"cluster",
"switch",
"to",
"standby",
"(",
"name",
"service",
",",
"namenode",
"context",
"get",
"namenode",
"id",
"(",
")",
")",
";",
"}",
"}",
"}"
]
|
[
"verifies",
"that",
"the",
"environment",
"and",
"expression",
"are",
"compatible",
"with",
"this",
"formatter",
",",
"throws",
"a",
"{",
"@",
"link",
"query",
"exception",
"}",
"if",
"not"
]
| [
"public",
"void",
"verify",
"compatible",
"(",
"query",
"environment",
"<",
"?",
">",
"env",
",",
"query",
"expression",
"expr",
")",
"throws",
"query",
"exception",
"{",
"}"
]
|
[
"write",
"lenenc",
"integer",
"to",
"byte",
"buffers"
]
| [
"public",
"void",
"write",
"int",
"lenenc",
"(",
"final",
"long",
"value",
")",
"{",
"if",
"(",
"value",
"<",
"0xfb",
")",
"{",
"byte",
"buf",
"write",
"byte",
"(",
"(",
"int",
")",
"value",
")",
";",
"return",
";",
"}",
"if",
"(",
"value",
"<",
"math",
"pow",
"(",
"2",
",",
"16",
")",
")",
"{",
"byte",
"buf",
"write",
"byte",
"(",
"0xfc",
")",
";",
"byte",
"buf",
"write",
"short",
"l",
"e",
"(",
"(",
"int",
")",
"value",
")",
";",
"return",
";",
"}",
"if",
"(",
"value",
"<",
"math",
"pow",
"(",
"2",
",",
"24",
")",
")",
"{",
"byte",
"buf",
"write",
"byte",
"(",
"0xfd",
")",
";",
"byte",
"buf",
"write",
"medium",
"l",
"e",
"(",
"(",
"int",
")",
"value",
")",
";",
"return",
";",
"}",
"byte",
"buf",
"write",
"byte",
"(",
"0xfe",
")",
";",
"byte",
"buf",
"write",
"long",
"l",
"e",
"(",
"value",
")",
";",
"}"
]
|
[
"convert",
"a",
"byte",
"to",
"a",
"character",
"for",
"printing",
"if",
"the",
"byte",
"value",
"is",
"<",
"32",
"-",
"and",
"hence",
"unprintable",
"-",
"the",
"byte",
"is",
"returned",
"as",
"a",
"two",
"digit",
"hex",
"value"
]
| [
"protected",
"string",
"to",
"char",
"(",
"byte",
"b",
")",
"{",
"if",
"(",
"b",
">",
"=",
"0x",
"2",
"0",
")",
"{",
"return",
"character",
"to",
"string",
"(",
"(",
"char",
")",
"b",
")",
";",
"}",
"else",
"{",
"return",
"string",
"format",
"(",
"\"",
"%",
"0",
"2x",
"\"",
",",
"b",
")",
";",
"}",
"}"
]
|
[
"sets",
"the",
"angle",
"of",
"the",
"vector",
"in",
"radians",
"relative",
"to",
"the",
"x",
"-",
"axis",
",",
"towards",
"the",
"positive",
"y",
"-",
"axis",
"(",
"typically",
"counter",
"-",
"clockwise",
")"
]
| [
"public",
"vector",
"2",
"set",
"angle",
"rad",
"(",
"float",
"radians",
")",
"{",
"this",
"set",
"(",
"len",
"(",
")",
",",
"0f",
")",
";",
"this",
"rotate",
"rad",
"(",
"radians",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"get",
"static",
"instance",
"of",
"the",
"specified",
"ref",
"type",
"flow",
"type"
]
| [
"public",
"static",
"ref",
"type",
"get",
"(",
"byte",
"type",
")",
"{",
"ref",
"type",
"rt",
"=",
"reftype",
"lookup",
"by",
"type",
"map",
"get",
"(",
"type",
")",
";",
"if",
"(",
"rt",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"no",
"such",
"element",
"exception",
"(",
"\"",
"ref",
"type",
"not",
"defined",
":",
"\"",
"+",
"type",
")",
";",
"}",
"return",
"rt",
";",
"}"
]
|
[
"the",
"current",
"length"
]
| [
"public",
"int",
"length",
"(",
")",
"{",
"return",
"length",
";",
"}"
]
|
[
"return",
"the",
"replicas",
"of",
"the",
"partition",
"in",
"the",
"same",
"order",
"as",
"the",
"replica",
"assignment",
"the",
"preferred",
"replica",
"is",
"the",
"head",
"of",
"the",
"list",
"brokers",
"with",
"version",
"lower",
"than",
"0",
"11",
"0",
"0",
"return",
"the",
"replicas",
"in",
"unspecified",
"order",
"due",
"to",
"a",
"bug"
]
| [
"public",
"list",
"<",
"node",
">",
"replicas",
"(",
")",
"{",
"return",
"replicas",
";",
"}"
]
|
[
"get",
"the",
"count",
"of",
"pending",
"requests",
"to",
"the",
"given",
"node",
"this",
"includes",
"both",
"request",
"that",
"have",
"been",
"transmitted",
"(",
"i",
"e",
"in",
"-",
"flight",
"requests",
")",
"and",
"those",
"which",
"are",
"awaiting",
"transmission"
]
| [
"public",
"int",
"pending",
"request",
"count",
"(",
"node",
"node",
")",
"{",
"lock",
"lock",
"(",
")",
";",
"try",
"{",
"return",
"unsent",
"request",
"count",
"(",
"node",
")",
"+",
"client",
"in",
"flight",
"request",
"count",
"(",
"node",
"id",
"string",
"(",
")",
")",
";",
"}",
"finally",
"{",
"lock",
"unlock",
"(",
")",
";",
"}",
"}"
]
|
[
"called",
"when",
"it",
"is",
"time",
"to",
"save",
"the",
"tool",
"handles",
"auto",
"-",
"saving",
"logic"
]
| [
"protected",
"boolean",
"do",
"save",
"tool",
"(",
")",
"{",
"if",
"(",
"tool",
"services",
"can",
"auto",
"save",
"(",
"this",
")",
")",
"{",
"save",
"tool",
"(",
")",
";",
"}",
"else",
"{",
"if",
"(",
"config",
"changed",
"flag",
")",
"{",
"int",
"result",
"=",
"option",
"dialog",
"show",
"option",
"dialog",
"(",
"get",
"tool",
"frame",
"(",
")",
",",
"save",
"dialog",
"title",
",",
"\"",
"this",
"tool",
"has",
"changed",
"there",
"are",
"/",
"were",
"multiple",
"instances",
"of",
"this",
"tool",
"\\",
"n",
"\"",
"+",
"\"",
"running",
"and",
"ghidra",
"cannot",
"determine",
"if",
"this",
"tool",
"instance",
"should",
"\\",
"n",
"\"",
"+",
"\"",
"automatically",
"be",
"saved",
"do",
"you",
"want",
"to",
"save",
"the",
"configuration",
"of",
"this",
"tool",
"\\",
"n",
"\"",
"+",
"\"",
"instance",
"?",
"\"",
",",
"\"",
"save",
"\"",
",",
"\"",
"save",
"as",
"\"",
",",
"\"",
"don",
"'",
"t",
"save",
"\"",
",",
"option",
"dialog",
"warning",
"message",
")",
";",
"if",
"(",
"result",
"=",
"=",
"option",
"dialog",
"cancel",
"option",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"result",
"=",
"=",
"option",
"dialog",
"option",
"one",
")",
"{",
"save",
"tool",
"(",
")",
";",
"}",
"else",
"if",
"(",
"result",
"=",
"=",
"option",
"dialog",
"option",
"two",
")",
"{",
"boolean",
"did",
"save",
"=",
"save",
"tool",
"as",
"(",
")",
";",
"if",
"(",
"!",
"did",
"save",
")",
"{",
"return",
"do",
"save",
"tool",
"(",
")",
";",
"}",
"}",
"/",
"/",
"option",
"3",
"is",
"don",
"'",
"t",
"save",
";",
"just",
"exit",
"}",
"}",
"return",
"true",
";",
"}"
]
|
[
"get",
"fake",
":",
"to",
"test",
"enum",
"parameters",
"to",
"test",
"enum",
"parameters"
]
| [
"default",
"response",
"entity",
"<",
"void",
">",
"test",
"enum",
"parameters",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"header",
"parameter",
"enum",
"test",
"(",
"string",
"array",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
">",
",",
"$",
"\"",
")",
"@",
"request",
"header",
"(",
"value",
"=",
"\"",
"enum",
"header",
"string",
"array",
"\"",
",",
"required",
"=",
"false",
")",
"list",
"<",
"string",
">",
"enum",
"header",
"string",
"array",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"header",
"parameter",
"enum",
"test",
"(",
"string",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
"abc",
",",
"-",
"efg",
",",
"(",
"xyz",
")",
"\"",
",",
"default",
"value",
"=",
"\"",
"-",
"efg",
"\"",
")",
"@",
"request",
"header",
"(",
"value",
"=",
"\"",
"enum",
"header",
"string",
"\"",
",",
"required",
"=",
"false",
")",
"string",
"enum",
"header",
"string",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"query",
"parameter",
"enum",
"test",
"(",
"string",
"array",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
">",
",",
"$",
"\"",
")",
"@",
"valid",
"@",
"request",
"param",
"(",
"value",
"=",
"\"",
"enum",
"query",
"string",
"array",
"\"",
",",
"required",
"=",
"false",
")",
"list",
"<",
"string",
">",
"enum",
"query",
"string",
"array",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"query",
"parameter",
"enum",
"test",
"(",
"string",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
"abc",
",",
"-",
"efg",
",",
"(",
"xyz",
")",
"\"",
",",
"default",
"value",
"=",
"\"",
"-",
"efg",
"\"",
")",
"@",
"valid",
"@",
"request",
"param",
"(",
"value",
"=",
"\"",
"enum",
"query",
"string",
"\"",
",",
"required",
"=",
"false",
",",
"default",
"value",
"=",
"\"",
"-",
"efg",
"\"",
")",
"string",
"enum",
"query",
"string",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"query",
"parameter",
"enum",
"test",
"(",
"double",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
"1",
",",
"-",
"2",
"\"",
")",
"@",
"valid",
"@",
"request",
"param",
"(",
"value",
"=",
"\"",
"enum",
"query",
"integer",
"\"",
",",
"required",
"=",
"false",
")",
"integer",
"enum",
"query",
"integer",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"query",
"parameter",
"enum",
"test",
"(",
"double",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
"1",
"1",
",",
"-",
"1",
"2",
"\"",
")",
"@",
"valid",
"@",
"request",
"param",
"(",
"value",
"=",
"\"",
"enum",
"query",
"double",
"\"",
",",
"required",
"=",
"false",
")",
"double",
"enum",
"query",
"double",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"form",
"parameter",
"enum",
"test",
"(",
"string",
"array",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
">",
",",
"$",
"\"",
")",
"@",
"valid",
"@",
"request",
"part",
"(",
"value",
"=",
"\"",
"enum",
"form",
"string",
"array",
"\"",
",",
"required",
"=",
"false",
")",
"list",
"<",
"string",
">",
"enum",
"form",
"string",
"array",
",",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"form",
"parameter",
"enum",
"test",
"(",
"string",
")",
"\"",
",",
"allowable",
"values",
"=",
"\"",
"abc",
",",
"-",
"efg",
",",
"(",
"xyz",
")",
"\"",
",",
"default",
"value",
"=",
"\"",
"-",
"efg",
"\"",
")",
"@",
"valid",
"@",
"request",
"part",
"(",
"value",
"=",
"\"",
"enum",
"form",
"string",
"\"",
",",
"required",
"=",
"false",
")",
"string",
"enum",
"form",
"string",
")",
"{",
"return",
"get",
"delegate",
"(",
")",
"test",
"enum",
"parameters",
"(",
"enum",
"header",
"string",
"array",
",",
"enum",
"header",
"string",
",",
"enum",
"query",
"string",
"array",
",",
"enum",
"query",
"string",
",",
"enum",
"query",
"integer",
",",
"enum",
"query",
"double",
",",
"enum",
"form",
"string",
"array",
",",
"enum",
"form",
"string",
")",
";",
"}"
]
|
[
"clear",
"the",
"list",
"of",
"the",
"adapter"
]
| [
"public",
"final",
"<",
"t",
">",
"void",
"clear",
"internal",
"(",
"list",
"<",
"t",
">",
"list",
")",
"{",
"int",
"data",
"size",
"before",
"remove",
"=",
"list",
"size",
"(",
")",
";",
"final",
"int",
"display",
"size",
"before",
"remove",
"=",
"get",
"item",
"count",
"(",
")",
";",
"synchronized",
"(",
"m",
"lock",
")",
"{",
"list",
"clear",
"(",
")",
";",
"}",
"notify",
"after",
"remove",
"all",
"data",
"(",
"data",
"size",
"before",
"remove",
",",
"display",
"size",
"before",
"remove",
")",
";",
"}"
]
|
[
"increment",
"the",
"bucket",
"it",
"assumes",
"that",
"staleness",
"check",
"is",
"already",
"performed",
"we",
"do",
"not",
"need",
"to",
"update",
"the",
"{",
"@",
"link",
"#",
"update",
"time",
"}",
"because",
"as",
"long",
"as",
"the",
"{",
"@",
"link",
"#",
"update",
"time",
"}",
"belongs",
"to",
"the",
"current",
"view",
"of",
"the",
"rolling",
"window",
",",
"the",
"algorithm",
"works",
"fine"
]
| [
"void",
"inc",
"(",
"long",
"delta",
")",
"{",
"value",
"add",
"and",
"get",
"(",
"delta",
")",
";",
"}"
]
|
[
"returns",
"a",
"sequence",
"that",
"can",
"be",
"used",
"for",
"a",
"request",
"for",
"an",
"encoded",
"image",
"from",
"a",
"local",
"file"
]
| [
"public",
"producer",
"<",
"closeable",
"reference",
"<",
"pooled",
"byte",
"buffer",
">",
">",
"get",
"local",
"file",
"fetch",
"encoded",
"image",
"producer",
"sequence",
"(",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"fresco",
"systrace",
"is",
"tracing",
"(",
")",
")",
"{",
"fresco",
"systrace",
"begin",
"section",
"(",
"\"",
"producer",
"sequence",
"factory",
"#",
"get",
"local",
"file",
"fetch",
"encoded",
"image",
"producer",
"sequence",
"\"",
")",
";",
"}",
"if",
"(",
"m",
"local",
"file",
"encoded",
"image",
"producer",
"sequence",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"fresco",
"systrace",
"is",
"tracing",
"(",
")",
")",
"{",
"fresco",
"systrace",
"begin",
"section",
"(",
"\"",
"producer",
"sequence",
"factory",
"#",
"get",
"local",
"file",
"fetch",
"encoded",
"image",
"producer",
"sequence",
":",
"init",
"\"",
")",
";",
"}",
"m",
"local",
"file",
"encoded",
"image",
"producer",
"sequence",
"=",
"new",
"remove",
"image",
"transform",
"meta",
"data",
"producer",
"(",
"get",
"background",
"local",
"file",
"fetch",
"to",
"encode",
"memory",
"sequence",
"(",
")",
")",
";",
"if",
"(",
"fresco",
"systrace",
"is",
"tracing",
"(",
")",
")",
"{",
"fresco",
"systrace",
"end",
"section",
"(",
")",
";",
"}",
"}",
"if",
"(",
"fresco",
"systrace",
"is",
"tracing",
"(",
")",
")",
"{",
"fresco",
"systrace",
"end",
"section",
"(",
")",
";",
"}",
"}",
"return",
"m",
"local",
"file",
"encoded",
"image",
"producer",
"sequence",
";",
"}"
]
|
[
"utility",
"function",
"to",
"compare",
"two",
"shard",
"ids"
]
| [
"private",
"static",
"int",
"compare",
"shard",
"ids",
"(",
"string",
"first",
"shard",
"id",
",",
"string",
"second",
"shard",
"id",
")",
"{",
"if",
"(",
"!",
"is",
"valid",
"shard",
"id",
"(",
"first",
"shard",
"id",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"the",
"first",
"shard",
"id",
"has",
"invalid",
"format",
"\"",
")",
";",
"}",
"if",
"(",
"!",
"is",
"valid",
"shard",
"id",
"(",
"second",
"shard",
"id",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"the",
"second",
"shard",
"id",
"has",
"invalid",
"format",
"\"",
")",
";",
"}",
"/",
"/",
"digit",
"segment",
"of",
"the",
"shard",
"id",
"starts",
"at",
"index",
"8",
"return",
"long",
"compare",
"(",
"long",
"parse",
"long",
"(",
"first",
"shard",
"id",
"substring",
"(",
"8",
")",
")",
",",
"long",
"parse",
"long",
"(",
"second",
"shard",
"id",
"substring",
"(",
"8",
")",
")",
")",
";",
"}"
]
|
[
"returns",
"true",
"to",
"allow",
"values",
"to",
"be",
"changed"
]
| [
"public",
"boolean",
"is",
"editable",
"(",
")",
"{",
"return",
"true",
";",
"}"
]
|
[
"get",
"data",
"source",
"proxy"
]
| [
"public",
"data",
"source",
"proxy",
"get",
"(",
"string",
"resource",
"id",
")",
"{",
"return",
"(",
"data",
"source",
"proxy",
")",
"data",
"source",
"cache",
"get",
"(",
"resource",
"id",
")",
";",
"}"
]
|
[
"get",
"the",
"message",
"channel",
"to",
"use",
"for",
"sending",
"messages",
"to",
"clients",
",",
"possibly",
"a",
"per",
"-",
"session",
"wrapper",
"when",
"{",
"@",
"code",
"preserve",
"publish",
"order",
"=",
"true",
"}"
]
| [
"protected",
"message",
"channel",
"get",
"client",
"outbound",
"channel",
"for",
"session",
"(",
"string",
"session",
"id",
")",
"{",
"return",
"this",
"preserve",
"publish",
"order",
"?",
"new",
"ordered",
"message",
"channel",
"decorator",
"(",
"get",
"client",
"outbound",
"channel",
"(",
")",
",",
"logger",
")",
":",
"get",
"client",
"outbound",
"channel",
"(",
")",
";",
"}"
]
|
[
"test",
"that",
"ignore",
"malformed",
"parameter",
"correctly",
"parses"
]
| [
"public",
"void",
"test",
"ignore",
"malformed",
"parsing",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"document",
"mapper",
"mapper",
"=",
"create",
"document",
"mapper",
"(",
"field",
"mapping",
"(",
"b",
"-",
">",
"b",
"field",
"(",
"\"",
"type",
"\"",
",",
"\"",
"geo",
"shape",
"\"",
")",
"field",
"(",
"\"",
"tree",
"\"",
",",
"\"",
"quadtree",
"\"",
")",
"field",
"(",
"\"",
"ignore",
"malformed",
"\"",
",",
"true",
")",
")",
")",
";",
"mapper",
"field",
"mapper",
"=",
"mapper",
"mappers",
"(",
")",
"get",
"mapper",
"(",
"\"",
"field",
"\"",
")",
";",
"assert",
"that",
"(",
"field",
"mapper",
",",
"instance",
"of",
"(",
"legacy",
"geo",
"shape",
"field",
"mapper",
"class",
")",
")",
";",
"boolean",
"ignore",
"malformed",
"=",
"(",
"(",
"legacy",
"geo",
"shape",
"field",
"mapper",
")",
"field",
"mapper",
")",
"ignore",
"malformed",
"(",
")",
";",
"assert",
"that",
"(",
"ignore",
"malformed",
",",
"equal",
"to",
"(",
"true",
")",
")",
";",
"/",
"/",
"explicit",
"false",
"ignore",
"malformed",
"test",
"mapper",
"=",
"create",
"document",
"mapper",
"(",
"field",
"mapping",
"(",
"b",
"-",
">",
"b",
"field",
"(",
"\"",
"type",
"\"",
",",
"\"",
"geo",
"shape",
"\"",
")",
"field",
"(",
"\"",
"tree",
"\"",
",",
"\"",
"quadtree",
"\"",
")",
"field",
"(",
"\"",
"ignore",
"malformed",
"\"",
",",
"false",
")",
")",
")",
";",
"field",
"mapper",
"=",
"mapper",
"mappers",
"(",
")",
"get",
"mapper",
"(",
"\"",
"field",
"\"",
")",
";",
"assert",
"that",
"(",
"field",
"mapper",
",",
"instance",
"of",
"(",
"legacy",
"geo",
"shape",
"field",
"mapper",
"class",
")",
")",
";",
"ignore",
"malformed",
"=",
"(",
"(",
"legacy",
"geo",
"shape",
"field",
"mapper",
")",
"field",
"mapper",
")",
"ignore",
"malformed",
"(",
")",
";",
"assert",
"that",
"(",
"ignore",
"malformed",
",",
"equal",
"to",
"(",
"false",
")",
")",
";",
"assert",
"field",
"warnings",
"(",
"\"",
"tree",
"\"",
",",
"\"",
"strategy",
"\"",
")",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"enum",
"number",
"'"
]
| [
"public",
"void",
"enum",
"number",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"enum",
"number",
"}"
]
|
[
"recalculates",
"the",
"total",
"combined",
"width",
"of",
"all",
"columns",
"updates",
"the",
"<",
"code",
">",
"total",
"column",
"width",
"<",
"code",
">",
"property"
]
| [
"private",
"void",
"recalc",
"width",
"cache",
"(",
")",
"{",
"total",
"column",
"width",
"=",
"0",
";",
"for",
"(",
"table",
"column",
"table",
"column",
":",
"visible",
"columns",
"get",
"columns",
"(",
")",
")",
"{",
"total",
"column",
"width",
"+",
"=",
"table",
"column",
"get",
"width",
"(",
")",
";",
"}",
"}"
]
|
[
"test",
"basic",
"single",
"threaded",
"list",
"status",
"scenario"
]
| [
"public",
"void",
"test",
"single",
"threaded",
"page",
"blob",
"rename",
"scenario",
"(",
")",
"throws",
"throwable",
"{",
"create",
"empty",
"file",
"(",
"get",
"page",
"blob",
"test",
"storage",
"account",
"(",
")",
",",
"test",
"path",
")",
";",
"path",
"dst",
"path",
"=",
"new",
"path",
"(",
"\"",
"dst",
"file",
"dat",
"\"",
")",
";",
"fs",
"delete",
"(",
"test",
"path",
",",
"true",
")",
";",
"boolean",
"rename",
"result",
"=",
"fs",
"rename",
"(",
"test",
"path",
",",
"dst",
"path",
")",
";",
"assert",
"false",
"(",
"rename",
"result",
")",
";",
"}"
]
|
[
"<",
"code",
">",
"optional",
"bytes",
"data",
"=",
"1",
";",
"<",
"code",
">"
]
| [
"private",
"void",
"set",
"data",
"(",
"com",
"google",
"protobuf",
"byte",
"string",
"value",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"bit",
"field",
"0",
"|",
"=",
"0x",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
";",
"data",
"=",
"value",
";",
"}"
]
|
[
"test",
"the",
"bootstrapstandby",
"while",
"the",
"other",
"namenode",
"is",
"in",
"upgrade",
"state",
"make",
"sure",
"a",
"previous",
"directory",
"can",
"be",
"created"
]
| [
"public",
"void",
"test",
"upgrade",
"(",
")",
"throws",
"exception",
"{",
"test",
"upgrade",
"(",
"upgrade",
"state",
"normal",
")",
";",
"}"
]
|
[
"find",
"objects",
"in",
"a",
"location"
]
| [
"private",
"byte",
"[",
"]",
"find",
"objects",
"(",
"string",
"location",
",",
"final",
"header",
"[",
"]",
"request",
"headers",
")",
"throws",
"i",
"o",
"exception",
"{",
"uri",
"uri",
";",
"pre",
"remote",
"command",
"(",
"\"",
"find",
"objects",
"\"",
")",
";",
"try",
"{",
"uri",
"=",
"new",
"uri",
"(",
"location",
")",
";",
"}",
"catch",
"(",
"u",
"r",
"i",
"syntax",
"exception",
"e",
")",
"{",
"throw",
"new",
"swift",
"exception",
"(",
"\"",
"bad",
"uri",
":",
"\"",
"+",
"location",
",",
"e",
")",
";",
"}",
"return",
"perform",
"(",
"\"",
"find",
"objects",
"\"",
",",
"uri",
",",
"new",
"get",
"request",
"processor",
"<",
"byte",
"[",
"]",
">",
"(",
")",
"{",
"@",
"override",
"public",
"byte",
"[",
"]",
"extract",
"result",
"(",
"http",
"get",
"req",
",",
"http",
"response",
"resp",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"resp",
"get",
"status",
"line",
"(",
")",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"sc",
"not",
"found",
")",
"{",
"/",
"/",
"no",
"result",
"throw",
"new",
"file",
"not",
"found",
"exception",
"(",
"\"",
"not",
"found",
"\"",
"+",
"req",
"get",
"u",
"r",
"i",
"(",
")",
")",
";",
"}",
"return",
"http",
"response",
"utils",
"get",
"response",
"body",
"(",
"resp",
")",
";",
"}",
"@",
"override",
"protected",
"int",
"[",
"]",
"get",
"allowed",
"status",
"codes",
"(",
")",
"{",
"return",
"new",
"int",
"[",
"]",
"{",
"sc",
"ok",
",",
"sc",
"not",
"found",
"}",
";",
"}",
"@",
"override",
"protected",
"void",
"setup",
"(",
"http",
"get",
"req",
")",
"throws",
"swift",
"internal",
"state",
"exception",
"{",
"set",
"headers",
"(",
"req",
",",
"request",
"headers",
")",
";",
"}",
"}",
")",
";",
"}"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"media",
"source",
"}",
"for",
"the",
"given",
"{",
"@",
"link",
"media",
"description",
"compat",
"}"
]
| [
"@",
"nullable",
"media",
"source",
"create",
"media",
"source",
"(",
"media",
"description",
"compat",
"description",
")",
";"
]
|
[
"add",
"a",
"sequence",
"variable",
"that",
"expands",
"{",
"@",
"code",
"name",
"}",
"to",
"{",
"@",
"code",
"values",
"}",
"accepts",
"values",
"as",
"iterable",
"the",
"iterable",
"is",
"stored",
"directly",
",",
"not",
"cloned",
",",
"not",
"iterated",
"be",
"mindful",
"of",
"memory",
"consumption",
"of",
"the",
"particular",
"iterable",
"prefer",
"immutable",
"list",
",",
"or",
"be",
"sure",
"that",
"the",
"iterable",
"always",
"returns",
"the",
"same",
"elements",
"in",
"the",
"same",
"order",
",",
"without",
"any",
"side",
"effects"
]
| [
"public",
"builder",
"add",
"string",
"sequence",
"variable",
"(",
"string",
"name",
",",
"iterable",
"<",
"string",
">",
"values",
")",
"{",
"check",
"variable",
"not",
"present",
"already",
"(",
"name",
")",
";",
"preconditions",
"check",
"not",
"null",
"(",
"values",
",",
"\"",
"cannot",
"set",
"null",
"as",
"a",
"value",
"for",
"variable",
"'",
"%",
"s",
"'",
"\"",
",",
"name",
")",
";",
"variables",
"map",
"put",
"(",
"name",
",",
"new",
"string",
"sequence",
"(",
"values",
")",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"declare",
"that",
"this",
"table",
"is",
"owned",
"by",
"the",
"specific",
"s3a",
"fs",
"instance",
"this",
"will",
"bind",
"some",
"fields",
"to",
"the",
"values",
"provided",
"by",
"the",
"owner",
",",
"including",
"wiring",
"up",
"the",
"instrumentation"
]
| [
"void",
"bind",
"to",
"owner",
"filesystem",
"(",
"final",
"s",
"3",
"a",
"file",
"system",
"fs",
")",
"{",
"owner",
"=",
"fs",
";",
"conf",
"=",
"owner",
"get",
"conf",
"(",
")",
";",
"store",
"context",
"context",
"=",
"owner",
"create",
"store",
"context",
"(",
")",
";",
"instrumentation",
"=",
"context",
"get",
"instrumentation",
"(",
")",
"get",
"s",
"3",
"guard",
"instrumentation",
"(",
")",
";",
"username",
"=",
"context",
"get",
"username",
"(",
")",
";",
"executor",
"=",
"context",
"create",
"throttled",
"executor",
"(",
")",
";",
"ttl",
"time",
"provider",
"=",
"preconditions",
"check",
"not",
"null",
"(",
"context",
"get",
"time",
"provider",
"(",
")",
",",
"\"",
"ttl",
"time",
"provider",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"}"
]
|
[
"initialize",
"the",
"theme",
"capability"
]
| [
"protected",
"void",
"on",
"refresh",
"(",
")",
"{",
"this",
"theme",
"source",
"=",
"ui",
"application",
"context",
"utils",
"init",
"theme",
"source",
"(",
"this",
")",
";",
"}"
]
|
[
"given",
"a",
"symbol",
"for",
"a",
"specified",
"program",
",",
"get",
"the",
"corresponding",
"symbol",
"from",
"the",
"specified",
"other",
"program"
]
| [
"public",
"static",
"symbol",
"get",
"symbol",
"(",
"symbol",
"symbol",
",",
"program",
"other",
"program",
")",
"{",
"if",
"(",
"symbol",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"symbol",
"type",
"symbol",
"type",
"=",
"symbol",
"get",
"symbol",
"type",
"(",
")",
";",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"global",
")",
"{",
"return",
"other",
"program",
"get",
"global",
"namespace",
"(",
")",
"get",
"symbol",
"(",
")",
";",
"}",
"string",
"name",
"=",
"symbol",
"get",
"name",
"(",
")",
";",
"symbol",
"other",
"parent",
"=",
"get",
"symbol",
"(",
"symbol",
"get",
"parent",
"symbol",
"(",
")",
",",
"other",
"program",
")",
";",
"namespace",
"other",
"namespace",
"=",
"other",
"parent",
"=",
"=",
"null",
"?",
"null",
":",
"(",
"namespace",
")",
"other",
"parent",
"get",
"object",
"(",
")",
";",
"if",
"(",
"other",
"namespace",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"library",
")",
"{",
"return",
"other",
"program",
"get",
"symbol",
"table",
"(",
")",
"get",
"library",
"symbol",
"(",
"name",
")",
";",
"}",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"class",
")",
"{",
"return",
"other",
"program",
"get",
"symbol",
"table",
"(",
")",
"get",
"class",
"symbol",
"(",
"name",
",",
"other",
"namespace",
")",
";",
"}",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"namespace",
")",
"{",
"return",
"other",
"program",
"get",
"symbol",
"table",
"(",
")",
"get",
"namespace",
"symbol",
"(",
"name",
",",
"other",
"namespace",
")",
";",
"}",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"parameter",
"|",
"|",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"local",
"var",
")",
"{",
"return",
"get",
"variable",
"symbol",
"(",
"symbol",
",",
"other",
"program",
",",
"other",
"namespace",
")",
";",
"}",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"function",
")",
"{",
"return",
"get",
"other",
"function",
"symbol",
"(",
"symbol",
",",
"other",
"program",
",",
"other",
"namespace",
")",
";",
"}",
"if",
"(",
"symbol",
"type",
"=",
"=",
"symbol",
"type",
"label",
")",
"{",
"return",
"get",
"other",
"code",
"symbol",
"(",
"symbol",
",",
"other",
"program",
",",
"other",
"namespace",
")",
";",
"}",
"/",
"/",
"in",
"case",
"any",
"new",
"symbol",
"types",
"get",
"added",
"throw",
"new",
"assert",
"exception",
"(",
"\"",
"got",
"unexpected",
"symbol",
"type",
":",
"\"",
"+",
"symbol",
"type",
")",
";",
"}"
]
|
[
"converts",
"the",
"list",
"of",
"acls",
"to",
"a",
"long",
"increments",
"the",
"reference",
"counter",
"for",
"this",
"acl"
]
| [
"public",
"synchronized",
"long",
"convert",
"acls",
"(",
"list",
"<",
"acl",
">",
"acls",
")",
"{",
"if",
"(",
"acls",
"=",
"=",
"null",
")",
"{",
"return",
"open",
"unsafe",
"acl",
"id",
";",
"}",
"/",
"/",
"get",
"the",
"value",
"from",
"the",
"map",
"long",
"ret",
"=",
"acl",
"key",
"map",
"get",
"(",
"acls",
")",
";",
"if",
"(",
"ret",
"=",
"=",
"null",
")",
"{",
"ret",
"=",
"increment",
"index",
"(",
")",
";",
"long",
"key",
"map",
"put",
"(",
"ret",
",",
"acls",
")",
";",
"acl",
"key",
"map",
"put",
"(",
"acls",
",",
"ret",
")",
";",
"}",
"add",
"usage",
"(",
"ret",
")",
";",
"return",
"ret",
";",
"}"
]
|
[
"a",
"sensible",
"definition",
"of",
"{",
"@",
"link",
"#",
"first",
"entry",
"}",
"in",
"terms",
"of",
"the",
"{",
"@",
"code",
"iterator",
"(",
")",
"}",
"of",
"{",
"@",
"link",
"#",
"entry",
"set",
"}",
"if",
"you",
"override",
"{",
"@",
"code",
"entry",
"set",
"}",
",",
"you",
"may",
"wish",
"to",
"override",
"{",
"@",
"code",
"first",
"entry",
"}",
"to",
"forward",
"to",
"this",
"implementation"
]
| [
"protected",
"entry",
"<",
"k",
",",
"v",
">",
"standard",
"first",
"entry",
"(",
")",
"{",
"return",
"iterables",
"get",
"first",
"(",
"entry",
"set",
"(",
")",
",",
"null",
")",
";",
"}"
]
|
[
"returns",
"an",
"immutable",
"map",
"containing",
"the",
"specified",
"entries",
"the",
"returned",
"map",
"iterates",
"over",
"entries",
"in",
"the",
"same",
"order",
"as",
"the",
"original",
"iterable"
]
| [
"public",
"static",
"<",
"k",
",",
"v",
">",
"immutable",
"map",
"<",
"k",
",",
"v",
">",
"copy",
"of",
"(",
"iterable",
"<",
"?",
"extends",
"entry",
"<",
"?",
"extends",
"k",
",",
"?",
"extends",
"v",
">",
">",
"entries",
")",
"{",
"int",
"initial",
"capacity",
"=",
"(",
"entries",
"instanceof",
"collection",
")",
"?",
"(",
"(",
"collection",
"<",
"?",
">",
")",
"entries",
")",
"size",
"(",
")",
":",
"immutable",
"collection",
"builder",
"default",
"initial",
"capacity",
";",
"immutable",
"map",
"builder",
"<",
"k",
",",
"v",
">",
"builder",
"=",
"new",
"immutable",
"map",
"builder",
"<",
"k",
",",
"v",
">",
"(",
"initial",
"capacity",
")",
";",
"builder",
"put",
"all",
"(",
"entries",
")",
";",
"return",
"builder",
"build",
"(",
")",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"string",
"to",
"string",
"(",
")",
"{",
"return",
"get",
"value",
"(",
")",
"?",
"\"",
"boolean",
"{",
"true",
"}",
"\"",
":",
"\"",
"boolean",
"{",
"false",
"}",
"\"",
";",
"}"
]
|
[
"test",
"that",
"a",
"very",
"slow",
"peer",
"is",
"detected",
"as",
"an",
"outlier"
]
| [
"public",
"void",
"test",
"outlier",
"is",
"detected",
"(",
")",
"throws",
"exception",
"{",
"final",
"string",
"slow",
"node",
"name",
"=",
"\"",
"slow",
"node",
"\"",
";",
"data",
"node",
"peer",
"metrics",
"peer",
"metrics",
"=",
"new",
"data",
"node",
"peer",
"metrics",
"(",
"\"",
"peer",
"metrics",
"-",
"for",
"-",
"test",
"\"",
",",
"conf",
")",
";",
"metrics",
"test",
"helper",
"replace",
"rolling",
"averages",
"scheduler",
"(",
"peer",
"metrics",
"get",
"send",
"packet",
"downstream",
"rolling",
"averages",
"(",
")",
",",
"rolling",
"average",
"windows",
",",
"window",
"interval",
"seconds",
",",
"time",
"unit",
"seconds",
")",
";",
"inject",
"fast",
"nodes",
"samples",
"(",
"peer",
"metrics",
")",
";",
"inject",
"slow",
"node",
"samples",
"(",
"peer",
"metrics",
",",
"slow",
"node",
"name",
")",
";",
"/",
"/",
"trigger",
"a",
"snapshot",
"peer",
"metrics",
"dump",
"send",
"packet",
"downstream",
"avg",
"info",
"as",
"json",
"(",
")",
";",
"generic",
"test",
"utils",
"wait",
"for",
"(",
"new",
"supplier",
"<",
"boolean",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"get",
"(",
")",
"{",
"return",
"peer",
"metrics",
"get",
"outliers",
"(",
")",
"size",
"(",
")",
">",
"0",
";",
"}",
"}",
",",
"500",
",",
"100",
"000",
")",
";",
"final",
"map",
"<",
"string",
",",
"double",
">",
"outliers",
"=",
"peer",
"metrics",
"get",
"outliers",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"got",
"back",
"outlier",
"nodes",
":",
"{",
"}",
"\"",
",",
"outliers",
")",
";",
"assert",
"that",
"(",
"outliers",
"size",
"(",
")",
",",
"is",
"(",
"1",
")",
")",
";",
"assert",
"true",
"(",
"outliers",
"contains",
"key",
"(",
"slow",
"node",
"name",
")",
")",
";",
"}"
]
|
[
"returns",
"{",
"@",
"code",
"as",
"ranges",
"(",
")",
"hash",
"code",
"(",
")",
"}"
]
| [
"int",
"hash",
"code",
"(",
")",
";"
]
|
[
"ensure",
"session",
"replication",
"is",
"auto",
"-",
"configured",
"if",
"needed"
]
| [
"protected",
"void",
"ensure",
"session",
"replication",
"is",
"autoconfigured",
"if",
"need",
"be",
"(",
"final",
"http",
"servlet",
"request",
"request",
")",
"{",
"val",
"cas",
"properties",
"=",
"get",
"o",
"auth",
"configuration",
"context",
"(",
")",
"get",
"cas",
"properties",
"(",
")",
";",
"val",
"replication",
"requested",
"=",
"cas",
"properties",
"get",
"authn",
"(",
")",
"get",
"oauth",
"(",
")",
"is",
"replicate",
"sessions",
"(",
")",
";",
"val",
"cookie",
"autoconfigured",
"=",
"cas",
"properties",
"get",
"session",
"replication",
"(",
")",
"get",
"cookie",
"(",
")",
"is",
"auto",
"configure",
"cookie",
"path",
"(",
")",
";",
"if",
"(",
"replication",
"requested",
"&",
"&",
"cookie",
"autoconfigured",
")",
"{",
"val",
"context",
"path",
"=",
"request",
"get",
"context",
"path",
"(",
")",
";",
"val",
"cookie",
"path",
"=",
"string",
"utils",
"is",
"not",
"blank",
"(",
"context",
"path",
")",
"?",
"context",
"path",
"+",
"'",
"/",
"'",
":",
"\"",
"/",
"\"",
";",
"val",
"path",
"=",
"get",
"o",
"auth",
"configuration",
"context",
"(",
")",
"get",
"oauth",
"distributed",
"session",
"cookie",
"generator",
"(",
")",
"get",
"cookie",
"path",
"(",
")",
";",
"if",
"(",
"string",
"utils",
"is",
"blank",
"(",
"path",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"setting",
"path",
"for",
"cookies",
"for",
"o",
"auth",
"distributed",
"session",
"cookie",
"generator",
"to",
":",
"[",
"{",
"}",
"]",
"\"",
",",
"cookie",
"path",
")",
";",
"get",
"o",
"auth",
"configuration",
"context",
"(",
")",
"get",
"oauth",
"distributed",
"session",
"cookie",
"generator",
"(",
")",
"set",
"cookie",
"path",
"(",
"cookie",
"path",
")",
";",
"}",
"else",
"{",
"logger",
"trace",
"(",
"\"",
"o",
"auth",
"distributed",
"cookie",
"domain",
"is",
"[",
"{",
"}",
"]",
"with",
"path",
"[",
"{",
"}",
"]",
"\"",
",",
"get",
"o",
"auth",
"configuration",
"context",
"(",
")",
"get",
"oauth",
"distributed",
"session",
"cookie",
"generator",
"(",
")",
"get",
"cookie",
"domain",
"(",
")",
",",
"path",
")",
";",
"}",
"}",
"}"
]
|
[
"retrieve",
"the",
"errors",
"instance",
"for",
"the",
"given",
"bind",
"object"
]
| [
"public",
"errors",
"get",
"errors",
"(",
"string",
"name",
",",
"boolean",
"html",
"escape",
")",
"{",
"if",
"(",
"this",
"errors",
"map",
"=",
"=",
"null",
")",
"{",
"this",
"errors",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"}",
"errors",
"errors",
"=",
"this",
"errors",
"map",
"get",
"(",
"name",
")",
";",
"boolean",
"put",
"=",
"false",
";",
"if",
"(",
"errors",
"=",
"=",
"null",
")",
"{",
"errors",
"=",
"(",
"errors",
")",
"get",
"model",
"object",
"(",
"binding",
"result",
"model",
"key",
"prefix",
"+",
"name",
")",
";",
"/",
"/",
"check",
"old",
"bind",
"exception",
"prefix",
"for",
"backwards",
"compatibility",
"if",
"(",
"errors",
"instanceof",
"bind",
"exception",
")",
"{",
"errors",
"=",
"(",
"(",
"bind",
"exception",
")",
"errors",
")",
"get",
"binding",
"result",
"(",
")",
";",
"}",
"if",
"(",
"errors",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"put",
"=",
"true",
";",
"}",
"if",
"(",
"html",
"escape",
"&",
"&",
"!",
"(",
"errors",
"instanceof",
"escaped",
"errors",
")",
")",
"{",
"errors",
"=",
"new",
"escaped",
"errors",
"(",
"errors",
")",
";",
"put",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"html",
"escape",
"&",
"&",
"errors",
"instanceof",
"escaped",
"errors",
")",
"{",
"errors",
"=",
"(",
"(",
"escaped",
"errors",
")",
"errors",
")",
"get",
"source",
"(",
")",
";",
"put",
"=",
"true",
";",
"}",
"if",
"(",
"put",
")",
"{",
"this",
"errors",
"map",
"put",
"(",
"name",
",",
"errors",
")",
";",
"}",
"return",
"errors",
";",
"}"
]
|
[
"converts",
"the",
"given",
"internal",
"structure",
"into",
"an",
"external",
"object"
]
| [
"object",
"to",
"external",
"(",
"@",
"nullable",
"object",
"internal",
"structure",
")",
";"
]
|
[
"replacement",
"for",
"{",
"@",
"code",
"class",
"for",
"name",
"(",
")",
"}",
"that",
"also",
"returns",
"class",
"instances",
"for",
"primitives",
"(",
"e",
"g",
"\"",
"int",
"\"",
")",
"and",
"array",
"class",
"names",
"(",
"e",
"g",
"\"",
"string",
"[",
"]",
"\"",
")",
"furthermore",
",",
"it",
"is",
"also",
"capable",
"of",
"resolving",
"inner",
"class",
"names",
"in",
"java",
"source",
"style",
"(",
"e",
"g",
"\"",
"java",
"lang",
"thread",
"state",
"\"",
"instead",
"of",
"\"",
"java",
"lang",
"thread",
"$",
"state",
"\"",
")"
]
| [
"public",
"static",
"class",
"<",
"?",
">",
"for",
"name",
"(",
"string",
"name",
",",
"@",
"nullable",
"class",
"loader",
"class",
"loader",
")",
"throws",
"class",
"not",
"found",
"exception",
",",
"linkage",
"error",
"{",
"assert",
"not",
"null",
"(",
"name",
",",
"\"",
"name",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"class",
"<",
"?",
">",
"clazz",
"=",
"resolve",
"primitive",
"class",
"name",
"(",
"name",
")",
";",
"if",
"(",
"clazz",
"=",
"=",
"null",
")",
"{",
"clazz",
"=",
"common",
"class",
"cache",
"get",
"(",
"name",
")",
";",
"}",
"if",
"(",
"clazz",
"!",
"=",
"null",
")",
"{",
"return",
"clazz",
";",
"}",
"/",
"/",
"\"",
"java",
"lang",
"string",
"[",
"]",
"\"",
"style",
"arrays",
"if",
"(",
"name",
"ends",
"with",
"(",
"array",
"suffix",
")",
")",
"{",
"string",
"element",
"class",
"name",
"=",
"name",
"substring",
"(",
"0",
",",
"name",
"length",
"(",
")",
"-",
"array",
"suffix",
"length",
"(",
")",
")",
";",
"class",
"<",
"?",
">",
"element",
"class",
"=",
"for",
"name",
"(",
"element",
"class",
"name",
",",
"class",
"loader",
")",
";",
"return",
"array",
"new",
"instance",
"(",
"element",
"class",
",",
"0",
")",
"get",
"class",
"(",
")",
";",
"}",
"/",
"/",
"\"",
"[",
"ljava",
"lang",
"string",
";",
"\"",
"style",
"arrays",
"if",
"(",
"name",
"starts",
"with",
"(",
"non",
"primitive",
"array",
"prefix",
")",
"&",
"&",
"name",
"ends",
"with",
"(",
"\"",
";",
"\"",
")",
")",
"{",
"string",
"element",
"name",
"=",
"name",
"substring",
"(",
"non",
"primitive",
"array",
"prefix",
"length",
"(",
")",
",",
"name",
"length",
"(",
")",
"-",
"1",
")",
";",
"class",
"<",
"?",
">",
"element",
"class",
"=",
"for",
"name",
"(",
"element",
"name",
",",
"class",
"loader",
")",
";",
"return",
"array",
"new",
"instance",
"(",
"element",
"class",
",",
"0",
")",
"get",
"class",
"(",
")",
";",
"}",
"/",
"/",
"\"",
"[",
"[",
"i",
"\"",
"or",
"\"",
"[",
"[",
"ljava",
"lang",
"string",
";",
"\"",
"style",
"arrays",
"if",
"(",
"name",
"starts",
"with",
"(",
"internal",
"array",
"prefix",
")",
")",
"{",
"string",
"element",
"name",
"=",
"name",
"substring",
"(",
"internal",
"array",
"prefix",
"length",
"(",
")",
")",
";",
"class",
"<",
"?",
">",
"element",
"class",
"=",
"for",
"name",
"(",
"element",
"name",
",",
"class",
"loader",
")",
";",
"return",
"array",
"new",
"instance",
"(",
"element",
"class",
",",
"0",
")",
"get",
"class",
"(",
")",
";",
"}",
"class",
"loader",
"cl",
"to",
"use",
"=",
"class",
"loader",
";",
"if",
"(",
"cl",
"to",
"use",
"=",
"=",
"null",
")",
"{",
"cl",
"to",
"use",
"=",
"get",
"default",
"class",
"loader",
"(",
")",
";",
"}",
"try",
"{",
"return",
"class",
"for",
"name",
"(",
"name",
",",
"false",
",",
"cl",
"to",
"use",
")",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"ex",
")",
"{",
"int",
"last",
"dot",
"index",
"=",
"name",
"last",
"index",
"of",
"(",
"package",
"separator",
")",
";",
"if",
"(",
"last",
"dot",
"index",
"!",
"=",
"-",
"1",
")",
"{",
"string",
"inner",
"class",
"name",
"=",
"name",
"substring",
"(",
"0",
",",
"last",
"dot",
"index",
")",
"+",
"inner",
"class",
"separator",
"+",
"name",
"substring",
"(",
"last",
"dot",
"index",
"+",
"1",
")",
";",
"try",
"{",
"return",
"class",
"for",
"name",
"(",
"inner",
"class",
"name",
",",
"false",
",",
"cl",
"to",
"use",
")",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"ex",
"2",
")",
"{",
"/",
"/",
"swallow",
"-",
"let",
"original",
"exception",
"get",
"through",
"}",
"}",
"throw",
"ex",
";",
"}",
"}"
]
|
[
"find",
"pet",
"by",
"id",
"returns",
"a",
"single",
"pet"
]
| [
"public",
"void",
"get",
"pet",
"by",
"id",
"(",
"long",
"pet",
"id",
",",
"final",
"response",
"listener",
"<",
"pet",
">",
"response",
"listener",
",",
"final",
"response",
"error",
"listener",
"error",
"listener",
")",
"{",
"object",
"post",
"body",
"=",
"null",
";",
"/",
"/",
"verify",
"the",
"required",
"parameter",
"'",
"pet",
"id",
"'",
"is",
"set",
"if",
"(",
"pet",
"id",
"=",
"=",
"null",
")",
"{",
"volley",
"error",
"error",
"=",
"new",
"volley",
"error",
"(",
"\"",
"missing",
"the",
"required",
"parameter",
"'",
"pet",
"id",
"'",
"when",
"calling",
"get",
"pet",
"by",
"id",
"\"",
",",
"new",
"api",
"exception",
"(",
"400",
",",
"\"",
"missing",
"the",
"required",
"parameter",
"'",
"pet",
"id",
"'",
"when",
"calling",
"get",
"pet",
"by",
"id",
"\"",
")",
")",
";",
"}",
"/",
"/",
"create",
"path",
"and",
"map",
"variables",
"string",
"path",
"=",
"\"",
"/",
"pet",
"/",
"{",
"pet",
"id",
"}",
"\"",
"replace",
"all",
"(",
"\"",
"\\",
"\\",
"{",
"format",
"\\",
"\\",
"}",
"\"",
",",
"\"",
"json",
"\"",
")",
"replace",
"all",
"(",
"\"",
"\\",
"\\",
"{",
"\"",
"+",
"\"",
"pet",
"id",
"\"",
"+",
"\"",
"\\",
"\\",
"}",
"\"",
",",
"api",
"invoker",
"escape",
"string",
"(",
"pet",
"id",
"to",
"string",
"(",
")",
")",
")",
";",
"/",
"/",
"query",
"params",
"list",
"<",
"pair",
">",
"query",
"params",
"=",
"new",
"array",
"list",
"<",
"pair",
">",
"(",
")",
";",
"/",
"/",
"header",
"params",
"map",
"<",
"string",
",",
"string",
">",
"header",
"params",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"/",
"/",
"form",
"params",
"map",
"<",
"string",
",",
"string",
">",
"form",
"params",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"string",
"[",
"]",
"content",
"types",
"=",
"{",
"}",
";",
"string",
"content",
"type",
"=",
"content",
"types",
"length",
">",
"0",
"?",
"content",
"types",
"[",
"0",
"]",
":",
"\"",
"application",
"/",
"json",
"\"",
";",
"if",
"(",
"content",
"type",
"starts",
"with",
"(",
"\"",
"multipart",
"/",
"form",
"-",
"data",
"\"",
")",
")",
"{",
"/",
"/",
"file",
"uploading",
"multipart",
"entity",
"builder",
"local",
"var",
"builder",
"=",
"multipart",
"entity",
"builder",
"create",
"(",
")",
";",
"http",
"entity",
"http",
"entity",
"=",
"local",
"var",
"builder",
"build",
"(",
")",
";",
"post",
"body",
"=",
"http",
"entity",
";",
"}",
"else",
"{",
"/",
"/",
"normal",
"form",
"params",
"}",
"string",
"[",
"]",
"auth",
"names",
"=",
"new",
"string",
"[",
"]",
"{",
"\"",
"api",
"key",
"\"",
"}",
";",
"try",
"{",
"api",
"invoker",
"invoke",
"a",
"p",
"i",
"(",
"base",
"path",
",",
"path",
",",
"\"",
"get",
"\"",
",",
"query",
"params",
",",
"post",
"body",
",",
"header",
"params",
",",
"form",
"params",
",",
"content",
"type",
",",
"auth",
"names",
",",
"new",
"response",
"listener",
"<",
"string",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"response",
"(",
"string",
"local",
"var",
"response",
")",
"{",
"try",
"{",
"response",
"listener",
"on",
"response",
"(",
"(",
"pet",
")",
"api",
"invoker",
"deserialize",
"(",
"local",
"var",
"response",
",",
"\"",
"\"",
",",
"pet",
"class",
")",
")",
";",
"}",
"catch",
"(",
"api",
"exception",
"exception",
")",
"{",
"error",
"listener",
"on",
"error",
"response",
"(",
"new",
"volley",
"error",
"(",
"exception",
")",
")",
";",
"}",
"}",
"}",
",",
"new",
"response",
"error",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"error",
"response",
"(",
"volley",
"error",
"error",
")",
"{",
"error",
"listener",
"on",
"error",
"response",
"(",
"error",
")",
";",
"}",
"}",
")",
";",
"}",
"catch",
"(",
"api",
"exception",
"ex",
")",
"{",
"error",
"listener",
"on",
"error",
"response",
"(",
"new",
"volley",
"error",
"(",
"ex",
")",
")",
";",
"}",
"}"
]
|
[
"returns",
"an",
"immutable",
"map",
"containing",
"the",
"given",
"entries",
",",
"in",
"order"
]
| [
"public",
"static",
"<",
"k",
",",
"v",
">",
"immutable",
"bi",
"map",
"<",
"k",
",",
"v",
">",
"of",
"(",
"k",
"k",
"1",
",",
"v",
"v",
"1",
",",
"k",
"k",
"2",
",",
"v",
"v",
"2",
",",
"k",
"k",
"3",
",",
"v",
"v",
"3",
",",
"k",
"k",
"4",
",",
"v",
"v",
"4",
",",
"k",
"k",
"5",
",",
"v",
"v",
"5",
")",
"{",
"return",
"regular",
"immutable",
"bi",
"map",
"from",
"entries",
"(",
"entry",
"of",
"(",
"k",
"1",
",",
"v",
"1",
")",
",",
"entry",
"of",
"(",
"k",
"2",
",",
"v",
"2",
")",
",",
"entry",
"of",
"(",
"k",
"3",
",",
"v",
"3",
")",
",",
"entry",
"of",
"(",
"k",
"4",
",",
"v",
"4",
")",
",",
"entry",
"of",
"(",
"k",
"5",
",",
"v",
"5",
")",
")",
";",
"}",
"/",
"/",
"looking",
"for",
"of",
"(",
")",
"with",
">",
"5",
"entries",
"?",
"use",
"the",
"builder",
"instead"
]
|
[
"starts",
"the",
"scheduler",
"for",
"the",
"rollover",
"to",
"run",
"at",
"an",
"interval"
]
| [
"protected",
"synchronized",
"void",
"start",
"scheduler",
"(",
"long",
"initial",
"delay",
",",
"long",
"period",
")",
"{",
"if",
"(",
"!",
"scheduler",
"running",
")",
"{",
"scheduler",
"running",
"=",
"true",
";",
"scheduler",
"=",
"executors",
"new",
"single",
"thread",
"scheduled",
"executor",
"(",
")",
";",
"scheduler",
"schedule",
"at",
"fixed",
"rate",
"(",
"new",
"runnable",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"roll",
"secret",
"(",
")",
";",
"}",
"}",
",",
"initial",
"delay",
",",
"period",
",",
"time",
"unit",
"milliseconds",
")",
";",
"}",
"}"
]
|
[
"sets",
"the",
"optional",
"size",
"in",
"bytes",
"associated",
"with",
"the",
"specified",
"phase",
"for",
"example",
",",
"this",
"can",
"be",
"used",
"while",
"loading",
"fsimage",
"to",
"indicate",
"the",
"size",
"of",
"the",
"fsimage",
"file"
]
| [
"public",
"void",
"set",
"size",
"(",
"phase",
"phase",
",",
"long",
"size",
")",
"{",
"if",
"(",
"!",
"is",
"complete",
"(",
")",
")",
"{",
"phases",
"get",
"(",
"phase",
")",
"size",
"=",
"size",
";",
"}",
"}"
]
|
[
"create",
"a",
"commit",
"packet",
"and",
"send",
"it",
"to",
"all",
"the",
"members",
"of",
"the",
"quorum"
]
| [
"public",
"void",
"commit",
"(",
"long",
"zxid",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"last",
"committed",
"=",
"zxid",
";",
"}",
"quorum",
"packet",
"qp",
"=",
"new",
"quorum",
"packet",
"(",
"leader",
"commit",
",",
"zxid",
",",
"null",
",",
"null",
")",
";",
"send",
"packet",
"(",
"qp",
")",
";",
"server",
"metrics",
"get",
"metrics",
"(",
")",
"commit",
"count",
"add",
"(",
"1",
")",
";",
"}"
]
|
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
]
| [
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
]
|
[
"decommissioning",
"using",
"a",
"post",
"-",
"configured",
"include",
"hosts",
"file"
]
| [
"public",
"void",
"test",
"add",
"new",
"include",
"path",
"to",
"configuration",
"(",
")",
"throws",
"exception",
"{",
"configuration",
"conf",
"=",
"new",
"configuration",
"(",
")",
";",
"rm",
"=",
"new",
"mock",
"r",
"m",
"(",
"conf",
")",
";",
"rm",
"start",
"(",
")",
";",
"mock",
"n",
"m",
"nm",
"1",
"=",
"rm",
"register",
"node",
"(",
"\"",
"host",
"1",
":",
"1234",
"\"",
",",
"5120",
")",
";",
"mock",
"n",
"m",
"nm",
"2",
"=",
"rm",
"register",
"node",
"(",
"\"",
"host",
"2",
":",
"5678",
"\"",
",",
"10240",
")",
";",
"cluster",
"metrics",
"metrics",
"=",
"cluster",
"metrics",
"get",
"metrics",
"(",
")",
";",
"assert",
"(",
"metrics",
"!",
"=",
"null",
")",
";",
"int",
"initial",
"metric",
"count",
"=",
"metrics",
"get",
"num",
"shutdown",
"n",
"ms",
"(",
")",
";",
"node",
"heartbeat",
"response",
"node",
"heartbeat",
"=",
"nm",
"1",
"node",
"heartbeat",
"(",
"true",
")",
";",
"assert",
"assert",
"equals",
"(",
"node",
"action",
"normal",
",",
"node",
"heartbeat",
"get",
"node",
"action",
"(",
")",
")",
";",
"node",
"heartbeat",
"=",
"nm",
"2",
"node",
"heartbeat",
"(",
"true",
")",
";",
"assert",
"assert",
"equals",
"(",
"node",
"action",
"normal",
",",
"node",
"heartbeat",
"get",
"node",
"action",
"(",
")",
")",
";",
"write",
"to",
"hosts",
"file",
"(",
"\"",
"host",
"1",
"\"",
")",
";",
"conf",
"set",
"(",
"yarn",
"configuration",
"rm",
"nodes",
"include",
"file",
"path",
",",
"host",
"file",
"get",
"absolute",
"path",
"(",
")",
")",
";",
"rm",
"get",
"nodes",
"list",
"manager",
"(",
")",
"refresh",
"nodes",
"(",
"conf",
")",
";",
"check",
"shutdown",
"n",
"m",
"count",
"(",
"rm",
",",
"+",
"+",
"initial",
"metric",
"count",
")",
";",
"node",
"heartbeat",
"=",
"nm",
"1",
"node",
"heartbeat",
"(",
"true",
")",
";",
"assert",
"assert",
"equals",
"(",
"\"",
"node",
"should",
"not",
"have",
"been",
"shutdown",
"\"",
",",
"node",
"action",
"normal",
",",
"node",
"heartbeat",
"get",
"node",
"action",
"(",
")",
")",
";",
"node",
"state",
"node",
"state",
"=",
"rm",
"get",
"r",
"m",
"context",
"(",
")",
"get",
"inactive",
"r",
"m",
"nodes",
"(",
")",
"get",
"(",
"nm",
"2",
"get",
"node",
"id",
"(",
")",
")",
"get",
"state",
"(",
")",
";",
"assert",
"assert",
"equals",
"(",
"\"",
"node",
"should",
"have",
"been",
"shutdown",
"but",
"is",
"in",
"state",
"\"",
"+",
"node",
"state",
",",
"node",
"state",
"shutdown",
",",
"node",
"state",
")",
";",
"}"
]
|
[
"return",
"true",
"if",
"this",
"dog",
"object",
"is",
"equal",
"to",
"o"
]
| [
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"this",
"=",
"=",
"o",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"dog",
"dog",
"=",
"(",
"dog",
")",
"o",
";",
"return",
"objects",
"equals",
"(",
"this",
"breed",
",",
"dog",
"breed",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"additional",
"properties",
",",
"dog",
"additional",
"properties",
")",
"&",
"&",
"super",
"equals",
"(",
"o",
")",
";",
"}"
]
|
[
"returns",
"a",
"shared",
"list",
"of",
"received",
"{",
"@",
"code",
"on",
"next",
"}",
"values",
"or",
"the",
"single",
"{",
"@",
"code",
"on",
"success",
"}",
"value",
"note",
"that",
"accessing",
"the",
"items",
"via",
"certain",
"methods",
"of",
"the",
"{",
"@",
"link",
"list",
"}",
"interface",
"while",
"the",
"upstream",
"is",
"still",
"actively",
"emitting",
"more",
"items",
"may",
"result",
"in",
"a",
"{",
"@",
"code",
"concurrent",
"modification",
"exception",
"}",
"the",
"{",
"@",
"link",
"list",
"#",
"size",
"(",
")",
"}",
"method",
"will",
"return",
"the",
"number",
"of",
"items",
"already",
"received",
"by",
"this",
"{",
"@",
"code",
"test",
"observer",
"}",
"{",
"@",
"code",
"test",
"subscriber",
"}",
"in",
"a",
"thread",
"-",
"safe",
"manner",
"that",
"can",
"be",
"read",
"via",
"{",
"@",
"link",
"list",
"#",
"get",
"(",
"int",
")",
"}",
")",
"method",
"(",
"index",
"range",
"of",
"0",
"to",
"{",
"@",
"code",
"list",
"size",
"(",
")",
"-",
"1",
"}",
")",
"a",
"view",
"of",
"the",
"returned",
"list",
"can",
"be",
"created",
"via",
"{",
"@",
"link",
"list",
"#",
"sub",
"list",
"(",
"int",
",",
"int",
")",
"}",
"by",
"using",
"the",
"bounds",
"0",
"(",
"inclusive",
")",
"to",
"{",
"@",
"link",
"list",
"#",
"size",
"(",
")",
"}",
"(",
"exclusive",
")",
"which",
",",
"when",
"accessed",
"in",
"a",
"read",
"-",
"only",
"fashion",
",",
"should",
"be",
"also",
"thread",
"-",
"safe",
"and",
"not",
"throw",
"any",
"{",
"@",
"code",
"concurrent",
"modification",
"exception",
"}"
]
| [
"public",
"final",
"list",
"<",
"t",
">",
"values",
"(",
")",
"{",
"return",
"values",
";",
"}"
]
|
[
"get",
"user",
"{",
"username",
"}",
":",
"get",
"user",
"by",
"user",
"name"
]
| [
"completable",
"future",
"<",
"response",
"entity",
"<",
"user",
">",
">",
"get",
"user",
"by",
"name",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"the",
"name",
"that",
"needs",
"to",
"be",
"fetched",
"use",
"user",
"1",
"for",
"testing",
"\"",
",",
"required",
"=",
"true",
")",
"@",
"path",
"variable",
"(",
"\"",
"username",
"\"",
")",
"string",
"username",
")",
";"
]
|
[
"callback",
"for",
"rollback",
"of",
"last",
"re",
"-",
"initialization"
]
| [
"public",
"void",
"on",
"rollback",
"last",
"re",
"initialization",
"(",
"container",
"id",
"container",
"id",
")",
"{",
"}"
]
|
[
"reset",
"the",
"counters"
]
| [
"public",
"synchronized",
"void",
"reset",
"(",
")",
"{",
"write",
"throttle",
"event",
"orig",
"=",
"ddbms",
"get",
"write",
"throttle",
"event",
"count",
"(",
")",
";",
"read",
"throttle",
"event",
"orig",
"=",
"ddbms",
"get",
"read",
"throttle",
"event",
"count",
"(",
")",
";",
"batch",
"write",
"throttle",
"count",
"orig",
"=",
"ddbms",
"get",
"batch",
"write",
"capacity",
"exceeded",
"count",
"(",
")",
";",
"scan",
"throttle",
"count",
"orig",
"=",
"ddbms",
"get",
"scan",
"throttle",
"event",
"count",
"(",
")",
";",
"}"
]
|
[
"return",
"true",
"if",
"this",
"additional",
"properties",
"string",
"object",
"is",
"equal",
"to",
"o"
]
| [
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"this",
"=",
"=",
"o",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"additional",
"properties",
"string",
"additional",
"properties",
"string",
"=",
"(",
"additional",
"properties",
"string",
")",
"o",
";",
"return",
"objects",
"equals",
"(",
"this",
"name",
",",
"additional",
"properties",
"string",
"name",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"additional",
"properties",
",",
"additional",
"properties",
"string",
"additional",
"properties",
")",
"&",
"&",
"super",
"equals",
"(",
"o",
")",
";",
"}"
]
|
[
"called",
"before",
"the",
"interceptors",
"and",
"the",
"call",
"handlers",
"and",
"make",
"changes",
"to",
"the",
"context",
"object",
"if",
"needed"
]
| [
"public",
"context",
"filter",
"context",
"(",
"context",
"context",
")",
"{",
"return",
"context",
";",
"}"
]
|
[
"converts",
"a",
"byte",
"array",
"to",
"a",
"string",
"using",
"utf8",
"encoding"
]
| [
"public",
"static",
"string",
"bytes",
"2",
"string",
"(",
"byte",
"[",
"]",
"bytes",
")",
"{",
"return",
"bytes",
"2",
"string",
"(",
"bytes",
",",
"0",
",",
"bytes",
"length",
")",
";",
"}"
]
|
[
"delete",
"user",
"this",
"can",
"only",
"be",
"done",
"by",
"the",
"logged",
"in",
"user"
]
| [
"public",
"void",
"delete",
"user",
"test",
"(",
")",
"throws",
"api",
"exception",
"{",
"string",
"username",
"=",
"null",
";",
"api",
"delete",
"user",
"(",
"username",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
]
|
[
"convert",
"unmarshal",
"exception",
"into",
"unsupported",
"operation",
"exception"
]
| [
"private",
"void",
"check",
"unmarshal",
"exception",
"(",
"i",
"o",
"exception",
"e",
",",
"string",
"operation",
")",
"throws",
"unsupported",
"operation",
"exception",
"{",
"throwable",
"t",
"=",
"e",
"get",
"cause",
"(",
")",
";",
"if",
"(",
"t",
"instanceof",
"unmarshal",
"exception",
")",
"{",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
"operation",
")",
";",
"}",
"}"
]
|
[
"set",
"the",
"context",
"for",
"this",
"script"
]
| [
"public",
"final",
"void",
"set",
"(",
"ghidra",
"state",
"state",
",",
"task",
"monitor",
"monitor",
",",
"print",
"writer",
"writer",
")",
"{",
"this",
"state",
"=",
"state",
";",
"this",
"monitor",
"=",
"monitor",
";",
"this",
"writer",
"=",
"writer",
";",
"load",
"variables",
"from",
"state",
"(",
")",
";",
"}"
]
|
[
"checks",
"that",
"the",
"parent",
"key",
"is",
"an",
"ancestor",
"of",
"the",
"child",
"key"
]
| [
"private",
"boolean",
"is",
"descendant",
"(",
"string",
"parent",
",",
"string",
"child",
",",
"boolean",
"recursive",
")",
"{",
"if",
"(",
"recursive",
")",
"{",
"if",
"(",
"!",
"parent",
"ends",
"with",
"(",
"\"",
"/",
"\"",
")",
")",
"{",
"parent",
"=",
"parent",
"+",
"\"",
"/",
"\"",
";",
"}",
"return",
"child",
"starts",
"with",
"(",
"parent",
")",
";",
"}",
"else",
"{",
"path",
"actual",
"parent",
"path",
"=",
"new",
"path",
"(",
"child",
")",
"get",
"parent",
"(",
")",
";",
"path",
"expected",
"parent",
"path",
"=",
"new",
"path",
"(",
"parent",
")",
";",
"/",
"/",
"children",
"which",
"are",
"directory",
"markers",
"are",
"excluded",
"here",
"return",
"actual",
"parent",
"path",
"equals",
"(",
"expected",
"parent",
"path",
")",
"&",
"&",
"!",
"child",
"ends",
"with",
"(",
"\"",
"/",
"\"",
")",
";",
"}",
"}"
]
|
[
"returns",
"an",
"iterator",
"over",
"the",
"lines",
"in",
"the",
"string",
"if",
"the",
"string",
"ends",
"in",
"a",
"newline",
",",
"a",
"final",
"empty",
"string",
"is",
"not",
"included",
",",
"to",
"match",
"the",
"behavior",
"of",
"buffered",
"reader",
"line",
"reader",
"read",
"line",
"(",
")"
]
| [
"private",
"iterator",
"<",
"string",
">",
"lines",
"iterator",
"(",
")",
"{",
"return",
"new",
"abstract",
"iterator",
"<",
"string",
">",
"(",
")",
"{",
"iterator",
"<",
"string",
">",
"lines",
"=",
"line",
"splitter",
"split",
"(",
"seq",
")",
"iterator",
"(",
")",
";",
"@",
"override",
"protected",
"string",
"compute",
"next",
"(",
")",
"{",
"if",
"(",
"lines",
"has",
"next",
"(",
")",
")",
"{",
"string",
"next",
"=",
"lines",
"next",
"(",
")",
";",
"/",
"/",
"skip",
"last",
"line",
"if",
"it",
"'",
"s",
"empty",
"if",
"(",
"lines",
"has",
"next",
"(",
")",
"|",
"|",
"!",
"next",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"next",
";",
"}",
"}",
"return",
"end",
"of",
"data",
"(",
")",
";",
"}",
"}",
";",
"}"
]
|
[
"executes",
"the",
"given",
"supplier",
"using",
"the",
"execution",
"context",
"'",
"s",
"classloader",
"as",
"thread",
"classloader"
]
| [
"public",
"<",
"r",
">",
"r",
"wrap",
"class",
"loader",
"(",
"supplier",
"<",
"r",
">",
"supplier",
")",
"{",
"try",
"(",
"temporary",
"class",
"loader",
"context",
"ignored",
"=",
"temporary",
"class",
"loader",
"context",
"of",
"(",
"class",
"loader",
")",
")",
"{",
"return",
"supplier",
"get",
"(",
")",
";",
"}",
"}"
]
|
[
"returns",
"a",
"mutable",
"hash",
"map",
"presized",
"to",
"hold",
"the",
"given",
"number",
"of",
"elements",
"without",
"needing",
"to",
"resize"
]
| [
"public",
"static",
"map",
"get",
"presized",
"mutable",
"map",
"(",
"int",
"element",
"count",
")",
"{",
"return",
"new",
"hash",
"map",
"(",
"preallocated",
"hashmap",
"capacity",
"(",
"element",
"count",
")",
")",
";",
"}"
]
|
[
"the",
"configuration",
"for",
"which",
"the",
"resource",
"is",
"defined",
"<",
"code",
">",
"optional",
"aapt",
"pb",
"config",
"description",
"config",
"=",
"2",
";",
"<",
"code",
">"
]
| [
"public",
"com",
"android",
"aapt",
"resources",
"config",
"description",
"get",
"config",
"(",
")",
"{",
"return",
"config",
"=",
"=",
"null",
"?",
"com",
"android",
"aapt",
"resources",
"config",
"description",
"get",
"default",
"instance",
"(",
")",
":",
"config",
";",
"}"
]
|
[
"create",
"a",
"builder",
"for",
"a",
"globber",
",",
"bonded",
"to",
"the",
"specific",
"file",
"context"
]
| [
"public",
"static",
"glob",
"builder",
"create",
"globber",
"(",
"file",
"context",
"file",
"context",
")",
"{",
"return",
"new",
"glob",
"builder",
"(",
"file",
"context",
")",
";",
"}"
]
|
[
"removes",
"the",
"edge",
"connecting",
"{",
"@",
"code",
"endpoints",
"}",
",",
"if",
"it",
"is",
"present",
"if",
"this",
"graph",
"is",
"directed",
",",
"{",
"@",
"code",
"endpoints",
"}",
"must",
"be",
"ordered"
]
| [
"v",
"remove",
"edge",
"(",
"endpoint",
"pair",
"<",
"n",
">",
"endpoints",
")",
";"
]
|
[
"grows",
"the",
"map",
"size",
"after",
"an",
"insertion",
"if",
"necessary",
",",
"performs",
"a",
"rehash",
"of",
"the",
"map"
]
| [
"private",
"void",
"grow",
"size",
"(",
")",
"{",
"size",
"+",
"+",
";",
"if",
"(",
"size",
">",
"max",
"size",
")",
"{",
"if",
"(",
"keys",
"length",
"=",
"=",
"integer",
"max",
"value",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"max",
"capacity",
"reached",
"at",
"size",
"=",
"\"",
"+",
"size",
")",
";",
"}",
"/",
"/",
"double",
"the",
"capacity",
"rehash",
"(",
"keys",
"length",
"<",
"<",
"1",
")",
";",
"}",
"}"
]
|
[
"client",
"tries",
"to",
"write",
"lazy",
"persist",
"to",
"same",
"dn",
"with",
"no",
"ram",
"disk",
"configured",
"write",
"should",
"default",
"to",
"disk",
"no",
"error"
]
| [
"public",
"void",
"test",
"fallback",
"to",
"disk",
"(",
")",
"throws",
"i",
"o",
"exception",
",",
"timeout",
"exception",
",",
"interrupted",
"exception",
"{",
"get",
"cluster",
"builder",
"(",
")",
"set",
"has",
"transient",
"storage",
"(",
"false",
")",
"build",
"(",
")",
";",
"final",
"string",
"method",
"name",
"=",
"generic",
"test",
"utils",
"get",
"method",
"name",
"(",
")",
";",
"path",
"path",
"=",
"new",
"path",
"(",
"\"",
"/",
"\"",
"+",
"method",
"name",
"+",
"\"",
"dat",
"\"",
")",
";",
"make",
"test",
"file",
"(",
"path",
",",
"block",
"size",
",",
"true",
")",
";",
"ensure",
"file",
"replicas",
"on",
"storage",
"type",
"(",
"path",
",",
"default",
")",
";",
"}"
]
|
[
"processes",
"the",
"event",
"and",
"logs",
"if",
"an",
"exception",
"is",
"thrown"
]
| [
"public",
"void",
"dispatch",
"(",
"@",
"non",
"null",
"j",
"cache",
"entry",
"event",
"<",
"k",
",",
"v",
">",
"event",
")",
"{",
"try",
"{",
"if",
"(",
"event",
"get",
"source",
"(",
")",
"is",
"closed",
"(",
")",
")",
"{",
"return",
";",
"}",
"switch",
"(",
"event",
"get",
"event",
"type",
"(",
")",
")",
"{",
"case",
"created",
":",
"on",
"created",
"(",
"event",
")",
";",
"return",
";",
"case",
"updated",
":",
"on",
"updated",
"(",
"event",
")",
";",
"return",
";",
"case",
"removed",
":",
"on",
"removed",
"(",
"event",
")",
";",
"return",
";",
"case",
"expired",
":",
"on",
"expired",
"(",
"event",
")",
";",
"return",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"unknown",
"event",
"type",
":",
"\"",
"+",
"event",
"get",
"event",
"type",
"(",
")",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"logger",
"log",
"(",
"level",
"warning",
",",
"null",
",",
"e",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"logger",
"log",
"(",
"level",
"severe",
",",
"null",
",",
"t",
")",
";",
"}",
"}"
]
|
[
"returns",
"the",
"fully",
"qualified",
"hostname",
"under",
"which",
"the",
"associated",
"rpc",
"endpoint",
"is",
"reachable"
]
| [
"string",
"get",
"hostname",
"(",
")",
";"
]
|
[
"test",
"the",
"property",
"'",
"pet",
"id",
"'"
]
| [
"public",
"void",
"pet",
"id",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"pet",
"id",
"}"
]
|
[
"sends",
"the",
"element",
"to",
"input",
"gate",
"0",
"on",
"channel",
"0"
]
| [
"public",
"void",
"process",
"element",
"(",
"object",
"element",
")",
"{",
"input",
"gates",
"[",
"0",
"]",
"send",
"element",
"(",
"element",
",",
"0",
")",
";",
"}"
]
|
[
"return",
"the",
"version",
"of",
"java",
"under",
"which",
"this",
"library",
"is",
"used"
]
| [
"public",
"static",
"int",
"java",
"version",
"(",
")",
"{",
"return",
"platform",
"dependent",
"0",
"java",
"version",
"(",
")",
";",
"}"
]
|
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
]
| [
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
]
|
[
"starts",
"the",
"service",
"if",
"not",
"started",
"already",
"and",
"adds",
"a",
"new",
"download"
]
| [
"public",
"static",
"void",
"send",
"add",
"download",
"(",
"context",
"context",
",",
"class",
"<",
"?",
"extends",
"download",
"service",
">",
"clazz",
",",
"download",
"request",
"download",
"request",
",",
"boolean",
"foreground",
")",
"{",
"intent",
"intent",
"=",
"build",
"add",
"download",
"intent",
"(",
"context",
",",
"clazz",
",",
"download",
"request",
",",
"foreground",
")",
";",
"start",
"service",
"(",
"context",
",",
"intent",
",",
"foreground",
")",
";",
"}"
]
|
[
"tests",
"get",
"value",
"(",
")",
"directly",
"tests",
"the",
"parse",
"methods",
"too",
"(",
"indirectly",
"-",
"yeah",
",",
"a",
"purest",
"would",
"have",
"tests",
"for",
"each",
")"
]
| [
"public",
"void",
"test",
"get",
"value",
"(",
")",
"throws",
"x",
"path",
"expression",
"exception",
",",
"s",
"a",
"x",
"exception",
",",
"i",
"o",
"exception",
"{",
"url",
"config",
"url",
"=",
"get",
"class",
"(",
")",
"get",
"resource",
"(",
"\"",
"/",
"jenkins",
"/",
"xml",
"/",
"config",
"xml",
"\"",
")",
";",
"file",
"config",
"file",
"=",
"new",
"file",
"(",
"config",
"url",
"get",
"file",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"\"",
"1",
"480",
"1",
"\"",
",",
"x",
"m",
"l",
"utils",
"get",
"value",
"(",
"\"",
"/",
"hudson",
"/",
"version",
"\"",
",",
"config",
"file",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"\"",
"\"",
",",
"x",
"m",
"l",
"utils",
"get",
"value",
"(",
"\"",
"/",
"hudson",
"/",
"unknown",
"-",
"element",
"\"",
",",
"config",
"file",
")",
")",
";",
"}"
]
|
[
"set",
"the",
"number",
"of",
"dots",
"which",
"must",
"appear",
"in",
"a",
"name",
"before",
"an",
"initial",
"absolute",
"query",
"is",
"made",
"the",
"default",
"value",
"is",
"{",
"@",
"code",
"1",
"}"
]
| [
"public",
"dns",
"name",
"resolver",
"builder",
"ndots",
"(",
"int",
"ndots",
")",
"{",
"this",
"ndots",
"=",
"ndots",
";",
"return",
"this",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"name",
"boolean",
"'"
]
| [
"public",
"void",
"name",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"boolean",
"}"
]
|
[
"purge",
"the",
"markers"
]
| [
"private",
"marker",
"purge",
"summary",
"purge",
"markers",
"(",
"final",
"dir",
"marker",
"tracker",
"tracker",
",",
"final",
"int",
"delete",
"page",
"size",
")",
"throws",
"multi",
"object",
"delete",
"exception",
",",
"amazon",
"client",
"exception",
",",
"i",
"o",
"exception",
"{",
"marker",
"purge",
"summary",
"summary",
"=",
"new",
"marker",
"purge",
"summary",
"(",
")",
";",
"/",
"/",
"we",
"get",
"a",
"map",
"of",
"surplus",
"markers",
"to",
"delete",
"map",
"<",
"path",
",",
"dir",
"marker",
"tracker",
"marker",
">",
"markers",
"=",
"tracker",
"get",
"surplus",
"markers",
"(",
")",
";",
"int",
"size",
"=",
"markers",
"size",
"(",
")",
";",
"/",
"/",
"build",
"a",
"list",
"from",
"the",
"strings",
"in",
"the",
"map",
"list",
"<",
"delete",
"objects",
"request",
"key",
"version",
">",
"collect",
"=",
"markers",
"values",
"(",
")",
"stream",
"(",
")",
"map",
"(",
"p",
"-",
">",
"new",
"delete",
"objects",
"request",
"key",
"version",
"(",
"p",
"get",
"key",
"(",
")",
")",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"/",
"/",
"build",
"an",
"array",
"list",
"for",
"ease",
"of",
"creating",
"the",
"lists",
"of",
"/",
"/",
"keys",
"in",
"each",
"page",
"through",
"the",
"sub",
"list",
"(",
")",
"method",
"list",
"<",
"delete",
"objects",
"request",
"key",
"version",
">",
"marker",
"keys",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"collect",
")",
";",
"/",
"/",
"now",
"randomize",
"why",
"so",
"?",
"if",
"the",
"list",
"spans",
"multiple",
"s3",
"partitions",
",",
"/",
"/",
"it",
"should",
"reduce",
"the",
"io",
"load",
"on",
"each",
"part",
"collections",
"shuffle",
"(",
"marker",
"keys",
")",
";",
"int",
"pages",
"=",
"size",
"/",
"delete",
"page",
"size",
";",
"if",
"(",
"size",
"%",
"delete",
"page",
"size",
">",
"0",
")",
"{",
"pages",
"+",
"=",
"1",
";",
"}",
"if",
"(",
"verbose",
")",
"{",
"println",
"(",
"out",
",",
"\"",
"%",
"n",
"%",
"d",
"marker",
"%",
"s",
"to",
"delete",
"in",
"%",
"d",
"page",
"%",
"s",
"of",
"%",
"d",
"keys",
"/",
"page",
"\"",
",",
"size",
",",
"suffix",
"(",
"size",
")",
",",
"pages",
",",
"suffix",
"(",
"pages",
")",
",",
"delete",
"page",
"size",
")",
";",
"}",
"duration",
"info",
"duration",
"info",
"=",
"new",
"duration",
"info",
"(",
"log",
",",
"\"",
"deleting",
"markers",
"\"",
")",
";",
"int",
"start",
"=",
"0",
";",
"while",
"(",
"start",
"<",
"size",
")",
"{",
"/",
"/",
"end",
"is",
"one",
"past",
"the",
"end",
"of",
"the",
"page",
"int",
"end",
"=",
"math",
"min",
"(",
"start",
"+",
"delete",
"page",
"size",
",",
"size",
")",
";",
"list",
"<",
"delete",
"objects",
"request",
"key",
"version",
">",
"page",
"=",
"marker",
"keys",
"sub",
"list",
"(",
"start",
",",
"end",
")",
";",
"list",
"<",
"path",
">",
"undeleted",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"once",
"(",
"\"",
"remove",
"s3",
"keys",
"\"",
",",
"tracker",
"get",
"base",
"path",
"(",
")",
"to",
"string",
"(",
")",
",",
"(",
")",
"-",
">",
"operations",
"remove",
"keys",
"(",
"page",
",",
"true",
",",
"undeleted",
",",
"null",
",",
"false",
")",
")",
";",
"summary",
"delete",
"requests",
"+",
"+",
";",
"/",
"/",
"and",
"move",
"to",
"the",
"start",
"of",
"the",
"next",
"page",
"start",
"=",
"end",
";",
"}",
"duration",
"info",
"close",
"(",
")",
";",
"summary",
"total",
"delete",
"request",
"duration",
"=",
"duration",
"info",
"value",
"(",
")",
";",
"summary",
"markers",
"deleted",
"=",
"size",
";",
"return",
"summary",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.