docstring_tokens
list | code_tokens
list |
---|---|
[
"five",
"buffer",
"dirs",
",",
"on",
"read",
"-",
"write",
"disk",
"try",
"to",
"create",
"a",
"whole",
"bunch",
"of",
"files",
"verify",
"that",
"each",
"successive",
"creation",
"uses",
"a",
"different",
"disk",
"than",
"the",
"previous",
"one",
"(",
"for",
"sized",
"requests",
")",
"would",
"ideally",
"check",
"statistical",
"properties",
"of",
"distribution",
",",
"but",
"we",
"don",
"'",
"t",
"have",
"the",
"nerve",
"to",
"risk",
"false",
"-",
"positives",
"here"
]
| [
"public",
"void",
"test",
"create",
"many",
"files",
"random",
"(",
")",
"throws",
"exception",
"{",
"assume",
"not",
"windows",
"(",
")",
";",
"final",
"int",
"num",
"dirs",
"=",
"5",
";",
"final",
"int",
"num",
"tries",
"=",
"100",
";",
"string",
"[",
"]",
"dirs",
"=",
"new",
"string",
"[",
"num",
"dirs",
"]",
";",
"for",
"(",
"int",
"d",
"=",
"0",
";",
"d",
"<",
"num",
"dirs",
";",
"+",
"+",
"d",
")",
"{",
"dirs",
"[",
"d",
"]",
"=",
"build",
"buffer",
"dir",
"(",
"root",
",",
"d",
")",
";",
"}",
"boolean",
"next",
"dir",
"not",
"selected",
"at",
"least",
"once",
"=",
"false",
";",
"try",
"{",
"conf",
"set",
"(",
"context",
",",
"dirs",
"[",
"0",
"]",
"+",
"\"",
",",
"\"",
"+",
"dirs",
"[",
"1",
"]",
"+",
"\"",
",",
"\"",
"+",
"dirs",
"[",
"2",
"]",
"+",
"\"",
",",
"\"",
"+",
"dirs",
"[",
"3",
"]",
"+",
"\"",
",",
"\"",
"+",
"dirs",
"[",
"4",
"]",
")",
";",
"path",
"[",
"]",
"paths",
"=",
"new",
"path",
"[",
"5",
"]",
";",
"for",
"(",
"int",
"d",
"=",
"0",
";",
"d",
"<",
"num",
"dirs",
";",
"+",
"+",
"d",
")",
"{",
"paths",
"[",
"d",
"]",
"=",
"new",
"path",
"(",
"dirs",
"[",
"d",
"]",
")",
";",
"assert",
"true",
"(",
"local",
"fs",
"mkdirs",
"(",
"paths",
"[",
"d",
"]",
")",
")",
";",
"}",
"int",
"in",
"dir",
"=",
"0",
";",
"int",
"prev",
"dir",
"=",
"-",
"1",
";",
"int",
"[",
"]",
"counts",
"=",
"new",
"int",
"[",
"5",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"tries",
";",
"+",
"+",
"i",
")",
"{",
"file",
"result",
"=",
"create",
"temp",
"file",
"(",
"small",
"file",
"size",
")",
";",
"for",
"(",
"int",
"d",
"=",
"0",
";",
"d",
"<",
"num",
"dirs",
";",
"+",
"+",
"d",
")",
"{",
"if",
"(",
"result",
"get",
"path",
"(",
")",
"starts",
"with",
"(",
"paths",
"[",
"d",
"]",
"to",
"uri",
"(",
")",
"get",
"path",
"(",
")",
")",
")",
"{",
"in",
"dir",
"=",
"d",
";",
"break",
";",
"}",
"}",
"/",
"/",
"verify",
"we",
"always",
"select",
"a",
"different",
"dir",
"assert",
"not",
"equals",
"(",
"prev",
"dir",
",",
"in",
"dir",
")",
";",
"/",
"/",
"verify",
"we",
"are",
"not",
"always",
"selecting",
"the",
"next",
"dir",
"-",
"that",
"was",
"the",
"old",
"/",
"/",
"algorithm",
"if",
"(",
"(",
"prev",
"dir",
"!",
"=",
"-",
"1",
")",
"&",
"&",
"(",
"in",
"dir",
"!",
"=",
"(",
"(",
"prev",
"dir",
"+",
"1",
")",
"%",
"num",
"dirs",
")",
")",
")",
"{",
"next",
"dir",
"not",
"selected",
"at",
"least",
"once",
"=",
"true",
";",
"}",
"prev",
"dir",
"=",
"in",
"dir",
";",
"counts",
"[",
"in",
"dir",
"]",
"+",
"+",
";",
"result",
"delete",
"(",
")",
";",
"}",
"}",
"finally",
"{",
"rm",
"buffer",
"dirs",
"(",
")",
";",
"}",
"assert",
"true",
"(",
"next",
"dir",
"not",
"selected",
"at",
"least",
"once",
")",
";",
"}"
]
|
[
"stops",
"the",
"artifact",
"server"
]
| [
"void",
"stop",
"(",
")",
"throws",
"exception",
";"
]
|
[
"model",
"tests",
"for",
"big",
"cat",
"all",
"of"
]
| [
"public",
"void",
"test",
"big",
"cat",
"all",
"of",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"big",
"cat",
"all",
"of",
"}"
]
|
[
"called",
"by",
"the",
"{",
"@",
"link",
"transport",
"}",
"implementation",
"once",
"a",
"request",
"has",
"been",
"sent"
]
| [
"public",
"void",
"on",
"request",
"sent",
"(",
"discovery",
"node",
"node",
",",
"long",
"request",
"id",
",",
"string",
"action",
",",
"transport",
"request",
"request",
",",
"transport",
"request",
"options",
"options",
")",
"{",
"if",
"(",
"tracer",
"log",
"is",
"trace",
"enabled",
"(",
")",
"&",
"&",
"should",
"trace",
"action",
"(",
"action",
")",
")",
"{",
"tracer",
"log",
"trace",
"(",
"\"",
"[",
"{",
"}",
"]",
"[",
"{",
"}",
"]",
"sent",
"to",
"[",
"{",
"}",
"]",
"(",
"timeout",
":",
"[",
"{",
"}",
"]",
")",
"\"",
",",
"request",
"id",
",",
"action",
",",
"node",
",",
"options",
"timeout",
"(",
")",
")",
";",
"}",
"message",
"listener",
"on",
"request",
"sent",
"(",
"node",
",",
"request",
"id",
",",
"action",
",",
"request",
",",
"options",
")",
";",
"}"
]
|
[
"read",
"a",
"line"
]
| [
"public",
"synchronized",
"boolean",
"next",
"(",
"long",
"writable",
"key",
",",
"text",
"value",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"we",
"always",
"read",
"one",
"extra",
"line",
",",
"which",
"lies",
"outside",
"the",
"upper",
"/",
"/",
"split",
"limit",
"i",
"e",
"(",
"end",
"-",
"1",
")",
"while",
"(",
"get",
"file",
"position",
"(",
")",
"<",
"=",
"end",
"|",
"|",
"in",
"need",
"additional",
"record",
"after",
"split",
"(",
")",
")",
"{",
"key",
"set",
"(",
"pos",
")",
";",
"int",
"new",
"size",
"=",
"0",
";",
"if",
"(",
"pos",
"=",
"=",
"0",
")",
"{",
"new",
"size",
"=",
"skip",
"utf",
"byte",
"order",
"mark",
"(",
"value",
")",
";",
"}",
"else",
"{",
"new",
"size",
"=",
"in",
"read",
"line",
"(",
"value",
",",
"max",
"line",
"length",
",",
"max",
"bytes",
"to",
"consume",
"(",
"pos",
")",
")",
";",
"pos",
"+",
"=",
"new",
"size",
";",
"}",
"if",
"(",
"new",
"size",
"=",
"=",
"0",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"new",
"size",
"<",
"max",
"line",
"length",
")",
"{",
"return",
"true",
";",
"}",
"/",
"/",
"line",
"too",
"long",
"try",
"again",
"log",
"info",
"(",
"\"",
"skipped",
"line",
"of",
"size",
"\"",
"+",
"new",
"size",
"+",
"\"",
"at",
"pos",
"\"",
"+",
"(",
"pos",
"-",
"new",
"size",
")",
")",
";",
"}",
"return",
"false",
";",
"}"
]
|
[
"notepad",
"pdb",
"does",
"not",
"exist",
"notepad",
"pdb",
"xml",
"is",
"here",
":",
"<",
"tepdb",
"xml",
"repo",
"location",
"set",
"to",
"<",
"tepdb",
"xml",
"on",
"windows",
",",
"pdb",
"xml",
"file",
"should",
"be",
"found",
"on",
"non",
"-",
"windows",
",",
"pdb",
"xml",
"file",
"should",
"be",
"found"
]
| [
"public",
"void",
"test",
"find",
"pdb",
"2",
"6",
"(",
")",
"throws",
"exception",
"{",
"created",
"files",
"=",
"create",
"files",
"(",
"pdb",
"location",
"none",
",",
"pdb",
"xml",
"location",
"own",
"dir",
")",
";",
"file",
"pdb",
"=",
"pdb",
"parser",
"find",
"p",
"d",
"b",
"(",
"test",
"program",
",",
"false",
",",
"pdb",
"xml",
"dir",
")",
";",
"assert",
"not",
"null",
"(",
"pdb",
")",
";",
"if",
"(",
"pdb",
"parser",
"on",
"windows",
")",
"{",
"assert",
"equals",
"(",
"pdb",
"xml",
"file",
",",
"pdb",
")",
";",
"}",
"else",
"{",
"assert",
"equals",
"(",
"pdb",
"xml",
"file",
",",
"pdb",
")",
";",
"}",
"}"
]
|
[
"checks",
"if",
"the",
"string",
"is",
"null",
",",
"empty",
",",
"or",
"contains",
"only",
"whitespace",
"characters",
"a",
"whitespace",
"character",
"is",
"defined",
"via",
"{",
"@",
"link",
"character",
"#",
"is",
"whitespace",
"(",
"char",
")",
"}"
]
| [
"public",
"static",
"boolean",
"is",
"null",
"or",
"whitespace",
"only",
"(",
"string",
"str",
")",
"{",
"if",
"(",
"str",
"=",
"=",
"null",
"|",
"|",
"str",
"length",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"true",
";",
"}",
"final",
"int",
"len",
"=",
"str",
"length",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"!",
"character",
"is",
"whitespace",
"(",
"str",
"char",
"at",
"(",
"i",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"returns",
"all",
"the",
"registered",
"{",
"@",
"link",
"user",
"avatar",
"resolver",
"}",
"descriptors"
]
| [
"public",
"static",
"extension",
"list",
"<",
"user",
"avatar",
"resolver",
">",
"all",
"(",
")",
"{",
"return",
"extension",
"list",
"lookup",
"(",
"user",
"avatar",
"resolver",
"class",
")",
";",
"}"
]
|
[
"create",
"and",
"initialize",
"a",
"registry",
"operations",
"instance",
"access",
"writes",
"will",
"be",
"determined",
"from",
"the",
"configuration"
]
| [
"public",
"static",
"registry",
"operations",
"create",
"instance",
"(",
"configuration",
"conf",
")",
"{",
"return",
"create",
"instance",
"(",
"\"",
"registry",
"operations",
"\"",
",",
"conf",
")",
";",
"}"
]
|
[
"gets",
"the",
"large",
"icon",
"for",
"the",
"current",
"media",
"item",
"when",
"a",
"bitmap",
"needs",
"to",
"be",
"loaded",
"asynchronously",
",",
"a",
"placeholder",
"bitmap",
"(",
"or",
"null",
")",
"should",
"be",
"returned",
"the",
"actual",
"bitmap",
"should",
"be",
"passed",
"to",
"the",
"{",
"@",
"link",
"bitmap",
"callback",
"}",
"once",
"it",
"has",
"been",
"loaded",
"because",
"the",
"adapter",
"may",
"be",
"called",
"multiple",
"times",
"for",
"the",
"same",
"media",
"item",
",",
"bitmaps",
"should",
"be",
"cached",
"by",
"the",
"app",
"and",
"returned",
"synchronously",
"when",
"possible",
"see",
"{",
"@",
"link",
"notification",
"compat",
"builder",
"#",
"set",
"large",
"icon",
"(",
"bitmap",
")",
"}"
]
| [
"bitmap",
"get",
"current",
"large",
"icon",
"(",
"player",
"player",
",",
"bitmap",
"callback",
"callback",
")",
";"
]
|
[
"adds",
"a",
"field",
"range",
"to",
"this",
"selection"
]
| [
"public",
"void",
"add",
"range",
"(",
"field",
"location",
"start",
",",
"field",
"location",
"end",
")",
"{",
"if",
"(",
"start",
"equals",
"(",
"end",
")",
")",
"{",
"return",
";",
"}",
"field",
"range",
"new",
"range",
"=",
"new",
"field",
"range",
"(",
"start",
",",
"end",
")",
";",
"int",
"insert",
"index",
"=",
"collections",
"binary",
"search",
"(",
"ranges",
",",
"new",
"range",
")",
";",
"if",
"(",
"insert",
"index",
">",
"=",
"0",
")",
"{",
"return",
";",
"/",
"/",
"already",
"contains",
"range",
"}",
"insert",
"index",
"=",
"-",
"insert",
"index",
"-",
"2",
";",
"if",
"(",
"insert",
"index",
">",
"=",
"0",
"&",
"&",
"ranges",
"get",
"(",
"insert",
"index",
")",
"can",
"merge",
"(",
"new",
"range",
")",
")",
"{",
"ranges",
"get",
"(",
"insert",
"index",
")",
"merge",
"(",
"new",
"range",
")",
";",
"}",
"else",
"{",
"insert",
"index",
"+",
"+",
";",
"ranges",
"add",
"(",
"insert",
"index",
",",
"new",
"range",
")",
";",
"}",
"field",
"range",
"current",
"range",
"=",
"ranges",
"get",
"(",
"insert",
"index",
")",
";",
"int",
"check",
"index",
"=",
"insert",
"index",
"+",
"1",
";",
"while",
"(",
"check",
"index",
"<",
"ranges",
"size",
"(",
")",
")",
"{",
"if",
"(",
"!",
"current",
"range",
"can",
"merge",
"(",
"ranges",
"get",
"(",
"check",
"index",
")",
")",
")",
"{",
"break",
";",
"}",
"current",
"range",
"merge",
"(",
"ranges",
"get",
"(",
"check",
"index",
")",
")",
";",
"ranges",
"remove",
"(",
"check",
"index",
")",
";",
"}",
"}"
]
|
[
"used",
"to",
"close",
"and",
"delete",
"the",
"failed",
"{",
"@",
"link",
"partitioned",
"file",
"}",
"when",
"any",
"exception",
"occurs"
]
| [
"public",
"void",
"release",
"quietly",
"(",
")",
"{",
"i",
"o",
"utils",
"close",
"quietly",
"(",
"this",
")",
";",
"i",
"o",
"utils",
"delete",
"file",
"quietly",
"(",
"data",
"file",
"path",
")",
";",
"i",
"o",
"utils",
"delete",
"file",
"quietly",
"(",
"index",
"file",
"path",
")",
";",
"}"
]
|
[
"returns",
"the",
"offset",
"of",
"the",
"'",
"new",
"'",
"instruction",
"that",
"corresponds",
"to",
"the",
"invocation",
"of",
"the",
"instance",
"initializer",
"at",
"the",
"given",
"offset",
",",
"or",
"<",
"code",
">",
"at",
"method",
"entry",
"<",
"code",
">",
"if",
"the",
"invocation",
"is",
"calling",
"the",
"\"",
"super",
"\"",
"or",
"\"",
"this",
"\"",
"initializer",
"method",
",",
",",
"or",
"<",
"code",
">",
"none",
"<",
"code",
">",
"if",
"it",
"is",
"not",
"a",
"'",
"new",
"'",
"instruction"
]
| [
"public",
"int",
"creation",
"offset",
"(",
"int",
"offset",
")",
"{",
"return",
"branch",
"target",
"finder",
"creation",
"offset",
"(",
"offset",
")",
";",
"}"
]
|
[
"sets",
"repository",
"name"
]
| [
"public",
"restore",
"snapshot",
"request",
"builder",
"set",
"repository",
"(",
"string",
"repository",
")",
"{",
"request",
"repository",
"(",
"repository",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"returns",
"the",
"label",
"of",
"the",
"xcode",
"config",
"rule",
"to",
"use",
"for",
"resolving",
"the",
"host",
"system",
"xcode",
"version"
]
| [
"public",
"label",
"get",
"xcode",
"config",
"label",
"(",
")",
"{",
"return",
"xcode",
"config",
"label",
";",
"}"
]
|
[
"assert",
"that",
"this",
"{",
"@",
"code",
"test",
"observer",
"}",
"{",
"@",
"code",
"test",
"subscriber",
"}",
"received",
"exactly",
"one",
"{",
"@",
"code",
"on",
"next",
"}",
"value",
"which",
"is",
"equal",
"to",
"the",
"given",
"value",
"with",
"respect",
"to",
"{",
"@",
"link",
"objects",
"#",
"equals",
"(",
"object",
",",
"object",
")",
"}"
]
| [
"public",
"final",
"u",
"assert",
"value",
"(",
"@",
"non",
"null",
"t",
"value",
")",
"{",
"int",
"s",
"=",
"values",
"size",
"(",
")",
";",
"if",
"(",
"s",
"!",
"=",
"1",
")",
"{",
"throw",
"fail",
"(",
"\"",
"expected",
":",
"\"",
"+",
"value",
"and",
"class",
"(",
"value",
")",
"+",
"\"",
"but",
"was",
":",
"\"",
"+",
"values",
")",
";",
"}",
"t",
"v",
"=",
"values",
"get",
"(",
"0",
")",
";",
"if",
"(",
"!",
"objects",
"equals",
"(",
"value",
",",
"v",
")",
")",
"{",
"throw",
"fail",
"(",
"\"",
"expected",
":",
"\"",
"+",
"value",
"and",
"class",
"(",
"value",
")",
"+",
"\"",
"but",
"was",
":",
"\"",
"+",
"value",
"and",
"class",
"(",
"v",
")",
")",
";",
"}",
"return",
"(",
"u",
")",
"this",
";",
"}"
]
|
[
"sets",
"the",
"aspects",
"that",
"are",
"propagating",
"to",
"the",
"target",
"this",
"dependency",
"points",
"to"
]
| [
"builder",
"set",
"aspects",
"(",
"aspect",
"collection",
"aspect",
"collection",
")",
";"
]
|
[
"returns",
"a",
"{",
"@",
"link",
"sorted",
"docs",
"producer",
"}",
"or",
"null",
"if",
"this",
"source",
"cannot",
"produce",
"sorted",
"docs"
]
| [
"abstract",
"sorted",
"docs",
"producer",
"create",
"sorted",
"docs",
"producer",
"or",
"null",
"(",
"index",
"reader",
"reader",
",",
"query",
"query",
")",
";"
]
|
[
"returns",
"an",
"error",
"{",
"@",
"link",
"event",
"}",
"with",
"{",
"@",
"link",
"location",
"}",
"and",
"{",
"@",
"link",
"detailed",
"exit",
"code",
"}",
"properties"
]
| [
"public",
"static",
"event",
"error",
"(",
"location",
"location",
",",
"string",
"message",
",",
"code",
"code",
")",
"{",
"event",
"error",
"=",
"event",
"error",
"(",
"location",
",",
"message",
")",
";",
"/",
"/",
"the",
"detailed",
"exit",
"code",
"'",
"s",
"message",
"is",
"the",
"base",
"event",
"'",
"s",
"to",
"string",
"because",
"that",
"string",
"nicely",
"/",
"/",
"includes",
"the",
"location",
"value",
"return",
"error",
"with",
"property",
"(",
"detailed",
"exit",
"code",
"class",
",",
"create",
"detailed",
"code",
"(",
"error",
"to",
"string",
"(",
")",
",",
"code",
")",
")",
";",
"}"
]
|
[
"returns",
"an",
"{",
"@",
"code",
"immutable",
"list",
"}",
"containing",
"all",
"of",
"the",
"elements",
"from",
"this",
"fluent",
"iterable",
"in",
"proper",
"sequence",
"<",
"b",
">",
"{",
"@",
"code",
"stream",
"}",
"equivalent",
":",
"<",
"b",
">",
"pass",
"{",
"@",
"link",
"immutable",
"list",
"#",
"to",
"immutable",
"list",
"}",
"to",
"{",
"@",
"code",
"stream",
"collect",
"(",
")",
"}"
]
| [
"public",
"final",
"immutable",
"list",
"<",
"e",
">",
"to",
"list",
"(",
")",
"{",
"return",
"immutable",
"list",
"copy",
"of",
"(",
"get",
"delegate",
"(",
")",
")",
";",
"}"
]
|
[
"updates",
"a",
"block",
"in",
"needed",
"reconstruction",
"queue"
]
| [
"private",
"void",
"update",
"needed",
"reconstructions",
"(",
"final",
"block",
"info",
"block",
",",
"final",
"int",
"cur",
"replicas",
"delta",
",",
"int",
"expected",
"replicas",
"delta",
")",
"{",
"namesystem",
"write",
"lock",
"(",
")",
";",
"try",
"{",
"if",
"(",
"!",
"is",
"populating",
"repl",
"queues",
"(",
")",
"|",
"|",
"!",
"block",
"is",
"complete",
"(",
")",
")",
"{",
"return",
";",
"}",
"number",
"replicas",
"repl",
"=",
"count",
"nodes",
"(",
"block",
")",
";",
"int",
"pending",
"num",
"=",
"pending",
"reconstruction",
"get",
"num",
"replicas",
"(",
"block",
")",
";",
"int",
"cur",
"expected",
"replicas",
"=",
"get",
"expected",
"redundancy",
"num",
"(",
"block",
")",
";",
"if",
"(",
"!",
"has",
"enough",
"effective",
"replicas",
"(",
"block",
",",
"repl",
",",
"pending",
"num",
")",
")",
"{",
"needed",
"reconstruction",
"update",
"(",
"block",
",",
"repl",
"live",
"replicas",
"(",
")",
"+",
"pending",
"num",
",",
"repl",
"read",
"only",
"replicas",
"(",
")",
",",
"repl",
"out",
"of",
"service",
"replicas",
"(",
")",
",",
"cur",
"expected",
"replicas",
",",
"cur",
"replicas",
"delta",
",",
"expected",
"replicas",
"delta",
")",
";",
"}",
"else",
"{",
"int",
"old",
"replicas",
"=",
"repl",
"live",
"replicas",
"(",
")",
"+",
"pending",
"num",
"-",
"cur",
"replicas",
"delta",
";",
"int",
"old",
"expected",
"replicas",
"=",
"cur",
"expected",
"replicas",
"-",
"expected",
"replicas",
"delta",
";",
"needed",
"reconstruction",
"remove",
"(",
"block",
",",
"old",
"replicas",
",",
"repl",
"read",
"only",
"replicas",
"(",
")",
",",
"repl",
"out",
"of",
"service",
"replicas",
"(",
")",
",",
"old",
"expected",
"replicas",
")",
";",
"}",
"}",
"finally",
"{",
"namesystem",
"write",
"unlock",
"(",
")",
";",
"}",
"}"
]
|
[
"same",
"as",
"{",
"@",
"link",
"#",
"visit",
"labels",
"(",
")",
"}",
"but",
"for",
"a",
"single",
"attribute"
]
| [
"collection",
"<",
"dep",
"edge",
">",
"visit",
"labels",
"(",
"attribute",
"attribute",
")",
"throws",
"interrupted",
"exception",
";"
]
|
[
"finds",
"pets",
"by",
"tags",
"multiple",
"tags",
"can",
"be",
"provided",
"with",
"comma",
"separated",
"strings",
"use",
"tag",
"1",
",",
"tag",
"2",
",",
"tag",
"3",
"for",
"testing"
]
| [
"public",
"list",
"<",
"pet",
">",
"find",
"pets",
"by",
"tags",
"(",
"@",
"query",
"param",
"(",
"\"",
"tags",
"\"",
")",
"list",
"<",
"string",
">",
"tags",
")",
";"
]
|
[
"this",
"is",
"populated",
"when",
"the",
"previously",
"received",
"resources",
"could",
"not",
"be",
"applied",
"the",
"message",
"field",
"in",
"error",
"details",
"provides",
"the",
"source",
"internal",
"error",
"related",
"to",
"the",
"failure",
"<",
"code",
">",
"google",
"rpc",
"status",
"error",
"detail",
"=",
"5",
";",
"<",
"code",
">"
]
| [
"public",
"com",
"google",
"rpc",
"status",
"builder",
"get",
"error",
"detail",
"builder",
"(",
")",
"{",
"on",
"changed",
"(",
")",
";",
"return",
"get",
"error",
"detail",
"field",
"builder",
"(",
")",
"get",
"builder",
"(",
")",
";",
"}"
]
|
[
"state",
"that",
"the",
"aspect",
"being",
"built",
"provides",
"given",
"providers"
]
| [
"public",
"builder",
"advertise",
"provider",
"(",
"immutable",
"list",
"<",
"starlark",
"provider",
"identifier",
">",
"providers",
")",
"{",
"for",
"(",
"starlark",
"provider",
"identifier",
"provider",
":",
"providers",
")",
"{",
"advertised",
"providers",
"add",
"starlark",
"(",
"provider",
")",
";",
"}",
"return",
"this",
";",
"}"
]
|
[
"gets",
"the",
"value",
"of",
"the",
"code",
"alignment",
"factor",
"for",
"this",
"cie",
"record"
]
| [
"public",
"int",
"get",
"code",
"alignment",
"(",
")",
"{",
"return",
"code",
"align",
"factor",
";",
"}"
]
|
[
"load",
"a",
"lottie",
"animation",
"from",
"a",
"url",
"the",
"url",
"can",
"be",
"a",
"json",
"file",
"or",
"a",
"zip",
"file",
"use",
"a",
"zip",
"file",
"if",
"you",
"have",
"images",
"simply",
"zip",
"them",
"together",
"and",
"lottie",
"will",
"unzip",
"and",
"link",
"the",
"images",
"automatically",
"under",
"the",
"hood",
",",
"lottie",
"uses",
"java",
"http",
"u",
"r",
"l",
"connection",
"because",
"it",
"doesn",
"'",
"t",
"require",
"any",
"transitive",
"networking",
"dependencies",
"it",
"will",
"download",
"the",
"file",
"to",
"the",
"application",
"cache",
"under",
"a",
"temporary",
"name",
"if",
"the",
"file",
"successfully",
"parses",
"to",
"a",
"composition",
",",
"it",
"will",
"rename",
"the",
"temporary",
"file",
"to",
"one",
"that",
"can",
"be",
"accessed",
"immediately",
"for",
"subsequent",
"requests",
"if",
"the",
"file",
"does",
"not",
"parse",
"to",
"a",
"composition",
",",
"the",
"temporary",
"file",
"will",
"be",
"deleted",
"you",
"can",
"replace",
"the",
"default",
"network",
"stack",
"or",
"cache",
"handling",
"with",
"a",
"global",
"{",
"@",
"link",
"lottie",
"config",
"}"
]
| [
"public",
"void",
"set",
"animation",
"from",
"url",
"(",
"string",
"url",
")",
"{",
"lottie",
"task",
"<",
"lottie",
"composition",
">",
"task",
"=",
"cache",
"composition",
"?",
"lottie",
"composition",
"factory",
"from",
"url",
"(",
"get",
"context",
"(",
")",
",",
"url",
")",
":",
"lottie",
"composition",
"factory",
"from",
"url",
"(",
"get",
"context",
"(",
")",
",",
"url",
",",
"null",
")",
";",
"set",
"composition",
"task",
"(",
"task",
")",
";",
"}"
]
|
[
"same",
"as",
"{",
"@",
"link",
"#",
"add",
"range",
"(",
"string",
",",
"zoned",
"date",
"time",
",",
"zoned",
"date",
"time",
")",
"}",
"but",
"the",
"key",
"will",
"be",
"automatically",
"generated",
"based",
"on",
"<",
"code",
">",
"from",
"<",
"code",
">",
"and",
"<",
"code",
">",
"to",
"<",
"code",
">"
]
| [
"public",
"date",
"range",
"aggregation",
"builder",
"add",
"range",
"(",
"zoned",
"date",
"time",
"from",
",",
"zoned",
"date",
"time",
"to",
")",
"{",
"return",
"add",
"range",
"(",
"null",
",",
"from",
",",
"to",
")",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"add",
"the",
"given",
"mock",
"multipart",
"file"
]
| [
"public",
"mock",
"multipart",
"http",
"servlet",
"request",
"builder",
"file",
"(",
"mock",
"multipart",
"file",
"file",
")",
"{",
"this",
"files",
"add",
"(",
"file",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"verify",
"that",
"virtual",
"machine",
"error",
"errors",
"are",
"immediately",
"rethrown"
]
| [
"public",
"void",
"test",
"intercept",
"eventually",
"throws",
"v",
"m",
"errors",
"(",
")",
"throws",
"throwable",
"{",
"intercept",
"(",
"out",
"of",
"memory",
"error",
"class",
",",
"\"",
"oom",
"\"",
",",
"(",
")",
"-",
">",
"eventually",
"(",
"timeout",
",",
"(",
")",
"-",
">",
"r",
"(",
"new",
"out",
"of",
"memory",
"error",
"(",
"\"",
"oom",
"\"",
")",
")",
",",
"retry",
")",
")",
";",
"assert",
"retry",
"count",
"(",
"0",
")",
";",
"}"
]
|
[
"create",
"a",
"new",
"{",
"@",
"link",
"annotation",
"filter",
"}",
"that",
"matches",
"annotations",
"in",
"the",
"specified",
"packages"
]
| [
"static",
"annotation",
"filter",
"packages",
"(",
"string",
"packages",
")",
"{",
"return",
"new",
"packages",
"annotation",
"filter",
"(",
"packages",
")",
";",
"}"
]
|
[
"return",
"the",
"list",
"of",
"supported",
"content",
"types",
"in",
"cases",
"when",
"the",
"accept",
"header",
"is",
"parsed",
"but",
"not",
"supported",
",",
"or",
"an",
"empty",
"list",
"otherwise"
]
| [
"public",
"list",
"<",
"media",
"type",
">",
"get",
"supported",
"media",
"types",
"(",
")",
"{",
"return",
"this",
"supported",
"media",
"types",
";",
"}"
]
|
[
"handles",
"the",
"server",
"-",
"side",
"(",
"cleartext",
")",
"upgrade",
"from",
"http",
"to",
"http2"
]
| [
"public",
"void",
"on",
"http",
"server",
"upgrade",
"(",
"http",
"2",
"settings",
"settings",
")",
"throws",
"http",
"2",
"exception",
"{",
"if",
"(",
"!",
"connection",
"(",
")",
"is",
"server",
"(",
")",
")",
"{",
"throw",
"connection",
"error",
"(",
"protocol",
"error",
",",
"\"",
"server",
"-",
"side",
"http",
"upgrade",
"requested",
"for",
"a",
"client",
"\"",
")",
";",
"}",
"if",
"(",
"!",
"preface",
"sent",
"(",
")",
")",
"{",
"/",
"/",
"if",
"the",
"preface",
"was",
"not",
"sent",
"yet",
"it",
"most",
"likely",
"means",
"the",
"handler",
"was",
"not",
"added",
"to",
"the",
"pipeline",
"before",
"/",
"/",
"calling",
"this",
"method",
"throw",
"connection",
"error",
"(",
"internal",
"error",
",",
"\"",
"http",
"upgrade",
"must",
"occur",
"after",
"preface",
"was",
"sent",
"\"",
")",
";",
"}",
"if",
"(",
"decoder",
"preface",
"received",
"(",
")",
")",
"{",
"throw",
"connection",
"error",
"(",
"protocol",
"error",
",",
"\"",
"http",
"upgrade",
"must",
"occur",
"before",
"http",
"/",
"2",
"preface",
"is",
"received",
"\"",
")",
";",
"}",
"/",
"/",
"apply",
"the",
"settings",
"but",
"no",
"ack",
"is",
"necessary",
"encoder",
"remote",
"settings",
"(",
"settings",
")",
";",
"/",
"/",
"create",
"a",
"stream",
"in",
"the",
"half",
"-",
"closed",
"state",
"connection",
"(",
")",
"remote",
"(",
")",
"create",
"stream",
"(",
"http",
"upgrade",
"stream",
"id",
",",
"true",
")",
";",
"}"
]
|
[
"set",
"if",
"the",
"file",
"is",
"in",
"zip",
"6",
"4",
"mode",
"this",
"is",
"true",
"if",
"any",
"of",
"a",
"number",
"of",
"fields",
"exceed",
"the",
"maximum",
"value",
"see",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"www",
"pkware",
"comdocumentscasestudies",
"a",
"p",
"p",
"n",
"o",
"t",
"e",
"txt",
"\"",
">",
"zip",
"format",
"for",
"details"
]
| [
"public",
"void",
"set",
"zip",
"6",
"4",
"(",
"boolean",
"is",
"zip",
"6",
"4",
")",
"{",
"this",
"is",
"zip",
"6",
"4",
"=",
"is",
"zip",
"6",
"4",
";",
"set",
"maybe",
"zip",
"6",
"4",
"(",
"true",
")",
";",
"}"
]
|
[
"checkpoint",
"on",
"the",
"state",
"of",
"the",
"source"
]
| [
"list",
"<",
"split",
"t",
">",
"snapshot",
"state",
"(",
"long",
"checkpoint",
"id",
")",
";"
]
|
[
"sets",
"the",
"name",
"of",
"the",
"index",
"to",
"be",
"created"
]
| [
"public",
"create",
"index",
"request",
"builder",
"set",
"index",
"(",
"string",
"index",
")",
"{",
"request",
"index",
"(",
"index",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"a",
"hack",
"to",
"add",
"a",
"number",
"of",
"global",
"symbols",
"which",
"are",
"part",
"of",
"the",
"build",
"api",
"but",
"are",
"otherwise",
"added",
"by",
"bazel"
]
| [
"private",
"static",
"void",
"add",
"non",
"bootstrap",
"globals",
"(",
"immutable",
"map",
"builder",
"<",
"string",
",",
"object",
">",
"env",
"builder",
")",
"{",
"for",
"(",
"string",
"global",
":",
"non",
"bootstrap",
"globals",
")",
"{",
"env",
"builder",
"put",
"(",
"global",
",",
"global",
")",
";",
"}",
"}"
]
|
[
"model",
"tests",
"for",
"additional",
"properties",
"any",
"type"
]
| [
"public",
"void",
"test",
"additional",
"properties",
"any",
"type",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"additional",
"properties",
"any",
"type",
"}"
]
|
[
"constructs",
"an",
"{",
"@",
"link",
"configured",
"aspect",
"}",
"returns",
"null",
"if",
"an",
"error",
"occurs",
";",
"in",
"that",
"case",
",",
"{",
"@",
"code",
"aspect",
"factory",
"}",
"should",
"call",
"one",
"of",
"the",
"error",
"reporting",
"methods",
"of",
"{",
"@",
"link",
"rule",
"context",
"}"
]
| [
"public",
"configured",
"aspect",
"create",
"aspect",
"(",
"analysis",
"environment",
"env",
",",
"configured",
"target",
"and",
"data",
"associated",
"target",
",",
"immutable",
"list",
"<",
"aspect",
">",
"aspect",
"path",
",",
"configured",
"aspect",
"factory",
"aspect",
"factory",
",",
"aspect",
"aspect",
",",
"ordered",
"set",
"multimap",
"<",
"dependency",
"kind",
",",
"configured",
"target",
"and",
"data",
">",
"prerequisite",
"map",
",",
"immutable",
"map",
"<",
"label",
",",
"config",
"matching",
"provider",
">",
"config",
"conditions",
",",
"@",
"nullable",
"resolved",
"toolchain",
"context",
"toolchain",
"context",
",",
"build",
"configuration",
"aspect",
"configuration",
",",
"build",
"configuration",
"host",
"configuration",
",",
"aspect",
"value",
"key",
"aspect",
"key",
"aspect",
"key",
")",
"throws",
"interrupted",
"exception",
",",
"action",
"conflict",
"exception",
",",
"invalid",
"exec",
"group",
"exception",
"{",
"rule",
"context",
"builder",
"builder",
"=",
"new",
"rule",
"context",
"builder",
"(",
"env",
",",
"associated",
"target",
"get",
"target",
"(",
")",
",",
"aspect",
"path",
",",
"aspect",
"configuration",
",",
"host",
"configuration",
",",
"rule",
"class",
"provider",
"get",
"prerequisite",
"validator",
"(",
")",
",",
"aspect",
"get",
"definition",
"(",
")",
"get",
"configuration",
"fragment",
"policy",
"(",
")",
",",
"aspect",
"key",
")",
";",
"map",
"<",
"string",
",",
"attribute",
">",
"aspect",
"attributes",
"=",
"merge",
"aspect",
"attributes",
"(",
"aspect",
"path",
")",
";",
"rule",
"context",
"rule",
"context",
"=",
"builder",
"set",
"tools",
"repository",
"(",
"rule",
"class",
"provider",
"get",
"tools",
"repository",
"(",
")",
")",
"set",
"starlark",
"semantics",
"(",
"env",
"get",
"starlark",
"semantics",
"(",
")",
")",
"set",
"mutability",
"(",
"mutability",
"create",
"(",
"\"",
"aspect",
"\"",
")",
")",
"set",
"visibility",
"(",
"convert",
"visibility",
"(",
"prerequisite",
"map",
",",
"env",
"get",
"event",
"handler",
"(",
")",
",",
"associated",
"target",
"get",
"target",
"(",
")",
",",
"null",
")",
")",
"set",
"prerequisites",
"(",
"transform",
"prerequisite",
"map",
"(",
"prerequisite",
"map",
",",
"associated",
"target",
"get",
"target",
"(",
")",
")",
")",
"set",
"aspect",
"attributes",
"(",
"aspect",
"attributes",
")",
"set",
"config",
"conditions",
"(",
"config",
"conditions",
")",
"set",
"universal",
"fragments",
"(",
"rule",
"class",
"provider",
"get",
"universal",
"fragments",
"(",
")",
")",
"set",
"toolchain",
"context",
"(",
"toolchain",
"context",
")",
"/",
"/",
"todo",
"(",
"b",
"/",
"161222568",
")",
":",
"implement",
"the",
"exec",
"properties",
"attr",
"for",
"aspects",
"and",
"read",
"its",
"value",
"/",
"/",
"here",
"set",
"exec",
"properties",
"(",
"immutable",
"map",
"of",
"(",
")",
")",
"set",
"constraint",
"semantics",
"(",
"rule",
"class",
"provider",
"get",
"constraint",
"semantics",
"(",
")",
")",
"set",
"required",
"config",
"fragments",
"(",
"required",
"fragments",
"util",
"get",
"required",
"fragments",
"(",
"aspect",
",",
"associated",
"target",
"get",
"target",
"(",
")",
"get",
"associated",
"rule",
"(",
")",
",",
"aspect",
"configuration",
",",
"rule",
"class",
"provider",
"get",
"universal",
"fragments",
"(",
")",
",",
"aspect",
"get",
"definition",
"(",
")",
"get",
"configuration",
"fragment",
"policy",
"(",
")",
",",
"config",
"conditions",
",",
"prerequisite",
"map",
"values",
"(",
")",
")",
")",
"build",
"(",
")",
";",
"/",
"/",
"if",
"allowing",
"analysis",
"failures",
",",
"targets",
"should",
"be",
"created",
"as",
"normal",
"as",
"possible",
",",
"and",
"errors",
"/",
"/",
"will",
"be",
"propagated",
"via",
"a",
"hook",
"elsewhere",
"as",
"analysis",
"failure",
"info",
"boolean",
"allow",
"analysis",
"failures",
"=",
"rule",
"context",
"get",
"configuration",
"(",
")",
"allow",
"analysis",
"failures",
"(",
")",
";",
"if",
"(",
"rule",
"context",
"has",
"errors",
"(",
")",
"&",
"&",
"!",
"allow",
"analysis",
"failures",
")",
"{",
"return",
"null",
";",
"}",
"configured",
"aspect",
"configured",
"aspect",
";",
"try",
"{",
"/",
"/",
"freezes",
"starlark",
"state",
"when",
"done",
"configured",
"aspect",
"=",
"aspect",
"factory",
"create",
"(",
"associated",
"target",
",",
"rule",
"context",
",",
"aspect",
"get",
"parameters",
"(",
")",
",",
"rule",
"class",
"provider",
"get",
"tools",
"repository",
"(",
")",
")",
";",
"}",
"finally",
"{",
"rule",
"context",
"close",
"(",
")",
";",
"}",
"if",
"(",
"configured",
"aspect",
"!",
"=",
"null",
")",
"{",
"validate",
"advertised",
"providers",
"(",
"configured",
"aspect",
",",
"aspect",
"key",
",",
"aspect",
"get",
"definition",
"(",
")",
"get",
"advertised",
"providers",
"(",
")",
",",
"associated",
"target",
"get",
"target",
"(",
")",
",",
"env",
"get",
"event",
"handler",
"(",
")",
")",
";",
"}",
"return",
"configured",
"aspect",
";",
"}"
]
|
[
"adds",
"{",
"@",
"code",
"equality",
"group",
"}",
"with",
"objects",
"that",
"are",
"supposed",
"to",
"be",
"equal",
"to",
"each",
"other",
"and",
"not",
"equal",
"to",
"any",
"other",
"equality",
"groups",
"added",
"to",
"this",
"tester"
]
| [
"public",
"equals",
"tester",
"add",
"equality",
"group",
"(",
"object",
"equality",
"group",
")",
"{",
"check",
"not",
"null",
"(",
"equality",
"group",
")",
";",
"equality",
"groups",
"add",
"(",
"immutable",
"list",
"copy",
"of",
"(",
"equality",
"group",
")",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"must",
"be",
"invoked",
"when",
"the",
"user",
"is",
"done",
"with",
"mocking",
"for",
"given",
"session",
"(",
"test",
"method",
")",
"when",
"a",
"{",
"@",
"linkplain",
"throwable",
"failure",
"}",
"is",
"specified",
",",
"certain",
"checks",
"are",
"disabled",
"to",
"avoid",
"confusion",
"that",
"may",
"arise",
"because",
"there",
"are",
"multiple",
"competing",
"failures",
"other",
"than",
"that",
",",
"this",
"method",
"behaves",
"exactly",
"like",
"{",
"@",
"link",
"#",
"finish",
"mocking",
"(",
")",
"}",
"this",
"method",
"is",
"intended",
"to",
"be",
"used",
"by",
"framework",
"integrations",
"when",
"using",
"mockito",
"session",
"directly",
",",
"most",
"users",
"should",
"rather",
"use",
"{",
"@",
"link",
"#",
"finish",
"mocking",
"(",
")",
"}",
"{",
"@",
"link",
"mockito",
"rule",
"}",
"uses",
"this",
"method",
"behind",
"the",
"hood"
]
| [
"void",
"finish",
"mocking",
"(",
"throwable",
"failure",
")",
";"
]
|
[
"returns",
"recovery",
"source",
"for",
"the",
"given",
"shard",
"replica",
"shards",
"always",
"recover",
"from",
"the",
"primary",
"{",
"@",
"link",
"peer",
"recovery",
"source",
"}"
]
| [
"public",
"recovery",
"source",
"recovery",
"source",
"(",
")",
"{",
"return",
"recovery",
"source",
";",
"}"
]
|
[
"the",
"ephemeral",
"id",
"of",
"the",
"node"
]
| [
"public",
"string",
"get",
"ephemeral",
"id",
"(",
")",
"{",
"return",
"ephemeral",
"id",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"returns",
"a",
"new",
"instance",
"of",
"the",
"default",
"shader",
"used",
"by",
"sprite",
"batch",
"for",
"gl2",
"when",
"no",
"shader",
"is",
"specified"
]
| [
"static",
"public",
"shader",
"program",
"create",
"default",
"shader",
"(",
")",
"{",
"string",
"vertex",
"shader",
"=",
"\"",
"attribute",
"vec",
"4",
"\"",
"+",
"shader",
"program",
"position",
"attribute",
"+",
"\"",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"attribute",
"vec",
"4",
"\"",
"+",
"shader",
"program",
"color",
"attribute",
"+",
"\"",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"attribute",
"vec",
"2",
"\"",
"+",
"shader",
"program",
"texcoord",
"attribute",
"+",
"\"",
"0",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"uniform",
"mat",
"4",
"u",
"proj",
"trans",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"varying",
"vec",
"4",
"v",
"color",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"varying",
"vec",
"2",
"v",
"tex",
"coords",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"void",
"main",
"(",
")",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"{",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"v",
"color",
"=",
"\"",
"+",
"shader",
"program",
"color",
"attribute",
"+",
"\"",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"v",
"color",
"a",
"=",
"v",
"color",
"a",
"*",
"(",
"255",
"0",
"/",
"254",
"0",
")",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"v",
"tex",
"coords",
"=",
"\"",
"+",
"shader",
"program",
"texcoord",
"attribute",
"+",
"\"",
"0",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"gl",
"position",
"=",
"u",
"proj",
"trans",
"*",
"\"",
"+",
"shader",
"program",
"position",
"attribute",
"+",
"\"",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"}",
"\\",
"n",
"\"",
";",
"string",
"fragment",
"shader",
"=",
"\"",
"#",
"ifdef",
"gl",
"es",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"#",
"define",
"lowp",
"lowp",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"precision",
"mediump",
"float",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"#",
"else",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"#",
"define",
"lowp",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"#",
"endif",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"varying",
"lowp",
"vec",
"4",
"v",
"color",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"varying",
"vec",
"2",
"v",
"tex",
"coords",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"uniform",
"sampler",
"2",
"d",
"u",
"texture",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"void",
"main",
"(",
")",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"{",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"gl",
"frag",
"color",
"=",
"v",
"color",
"*",
"texture",
"2",
"d",
"(",
"u",
"texture",
",",
"v",
"tex",
"coords",
")",
";",
"\\",
"n",
"\"",
"/",
"/",
"+",
"\"",
"}",
"\"",
";",
"shader",
"program",
"shader",
"=",
"new",
"shader",
"program",
"(",
"vertex",
"shader",
",",
"fragment",
"shader",
")",
";",
"if",
"(",
"!",
"shader",
"is",
"compiled",
"(",
")",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"error",
"compiling",
"shader",
":",
"\"",
"+",
"shader",
"get",
"log",
"(",
")",
")",
";",
"return",
"shader",
";",
"}"
]
|
[
"sets",
"the",
"maximum",
"size",
"of",
"metadata",
"allowed",
"to",
"be",
"received",
"this",
"is",
"cumulative",
"size",
"of",
"the",
"entries",
"with",
"some",
"overhead",
",",
"as",
"defined",
"for",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"httpwg",
"orgspecsrfc",
"7",
"5",
"4",
"0",
"html",
"#",
"rfc",
"section",
"6",
"5",
"2",
"\"",
">",
"http2",
"'",
"s",
"settings",
"max",
"header",
"list",
"size",
"the",
"default",
"is",
"8",
"ki",
"b"
]
| [
"public",
"netty",
"channel",
"builder",
"max",
"inbound",
"metadata",
"size",
"(",
"int",
"bytes",
")",
"{",
"check",
"argument",
"(",
"bytes",
">",
"0",
",",
"\"",
"max",
"inbound",
"metadata",
"size",
"must",
"be",
">",
"0",
"\"",
")",
";",
"this",
"max",
"header",
"list",
"size",
"=",
"bytes",
";",
"return",
"this",
";",
"}"
]
|
[
"the",
"element",
"lost",
"the",
"focus"
]
| [
"area",
"$",
"onblur",
"(",
"string",
"script",
")",
";"
]
|
[
"this",
"implementation",
"is",
"empty"
]
| [
"public",
"<",
"t",
">",
"void",
"before",
"concurrent",
"handling",
"(",
"native",
"web",
"request",
"request",
",",
"deferred",
"result",
"<",
"t",
">",
"deferred",
"result",
")",
"throws",
"exception",
"{",
"}"
]
|
[
"if",
"set",
"to",
"true",
",",
"pause",
"mounting",
"while",
"the",
"visibility",
"hint",
"is",
"set",
"to",
"false",
",",
"because",
"the",
"visible",
"rect",
"of",
"the",
"litho",
"view",
"is",
"not",
"consistent",
"with",
"what",
"'",
"s",
"currently",
"on",
"screen",
"override",
"for",
"the",
"global",
"components",
"configuration",
"skip",
"incremental",
"mount",
"on",
"set",
"visibility",
"hint",
"false"
]
| [
"public",
"void",
"set",
"skip",
"incremental",
"mount",
"on",
"set",
"visibility",
"hint",
"false",
"(",
"boolean",
"skip",
"incremental",
"mount",
")",
"{",
"m",
"skip",
"incremental",
"mount",
"on",
"set",
"visibility",
"hint",
"false",
"=",
"skip",
"incremental",
"mount",
";",
"}"
]
|
[
"returns",
"an",
"array",
"with",
"all",
"the",
"names",
"defined",
"by",
"this",
"enum"
]
| [
"public",
"static",
"string",
"[",
"]",
"get",
"names",
"(",
")",
"{",
"virtual",
"type",
"[",
"]",
"values",
"=",
"values",
"(",
")",
";",
"string",
"[",
"]",
"names",
"=",
"new",
"string",
"[",
"values",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"values",
"length",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"-",
"-",
"i",
")",
"{",
"names",
"[",
"i",
"]",
"=",
"values",
"[",
"i",
"]",
"get",
"name",
"(",
")",
";",
"}",
"return",
"names",
";",
"}"
]
|
[
"if",
"watcher",
"is",
"configured",
"not",
"to",
"use",
"ilm",
",",
"we",
"don",
"'",
"t",
"return",
"a",
"policy"
]
| [
"protected",
"list",
"<",
"lifecycle",
"policy",
"config",
">",
"get",
"policy",
"configs",
"(",
")",
"{",
"if",
"(",
"watcher",
"use",
"ilm",
"index",
"management",
"get",
"(",
"settings",
")",
"=",
"=",
"false",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}",
"return",
"collections",
"singleton",
"list",
"(",
"policy",
"watch",
"history",
")",
";",
"}"
]
|
[
"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",
"the",
"result",
"of",
"dividing",
"{",
"@",
"code",
"p",
"}",
"by",
"{",
"@",
"code",
"q",
"}",
",",
"rounding",
"using",
"the",
"specified",
"{",
"@",
"code",
"rounding",
"mode",
"}"
]
| [
"public",
"static",
"big",
"integer",
"divide",
"(",
"big",
"integer",
"p",
",",
"big",
"integer",
"q",
",",
"rounding",
"mode",
"mode",
")",
"{",
"big",
"decimal",
"p",
"dec",
"=",
"new",
"big",
"decimal",
"(",
"p",
")",
";",
"big",
"decimal",
"q",
"dec",
"=",
"new",
"big",
"decimal",
"(",
"q",
")",
";",
"return",
"p",
"dec",
"divide",
"(",
"q",
"dec",
",",
"0",
",",
"mode",
")",
"to",
"big",
"integer",
"exact",
"(",
")",
";",
"}"
]
|
[
"reads",
"a",
"jvms",
"'",
"verification",
"type",
"info",
"'",
"structure",
"and",
"stores",
"it",
"at",
"the",
"given",
"index",
"in",
"the",
"given",
"array"
]
| [
"private",
"int",
"read",
"verification",
"type",
"info",
"(",
"final",
"int",
"verification",
"type",
"info",
"offset",
",",
"final",
"object",
"[",
"]",
"frame",
",",
"final",
"int",
"index",
",",
"final",
"char",
"[",
"]",
"char",
"buffer",
",",
"final",
"label",
"[",
"]",
"labels",
")",
"{",
"int",
"current",
"offset",
"=",
"verification",
"type",
"info",
"offset",
";",
"int",
"tag",
"=",
"class",
"file",
"buffer",
"[",
"current",
"offset",
"+",
"+",
"]",
"&",
"0x",
"f",
"f",
";",
"switch",
"(",
"tag",
")",
"{",
"case",
"frame",
"item",
"top",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"top",
";",
"break",
";",
"case",
"frame",
"item",
"integer",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"integer",
";",
"break",
";",
"case",
"frame",
"item",
"float",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"float",
";",
"break",
";",
"case",
"frame",
"item",
"double",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"double",
";",
"break",
";",
"case",
"frame",
"item",
"long",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"long",
";",
"break",
";",
"case",
"frame",
"item",
"null",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"null",
";",
"break",
";",
"case",
"frame",
"item",
"uninitialized",
"this",
":",
"frame",
"[",
"index",
"]",
"=",
"opcodes",
"uninitialized",
"this",
";",
"break",
";",
"case",
"frame",
"item",
"object",
":",
"frame",
"[",
"index",
"]",
"=",
"read",
"class",
"(",
"current",
"offset",
",",
"char",
"buffer",
")",
";",
"current",
"offset",
"+",
"=",
"2",
";",
"break",
";",
"case",
"frame",
"item",
"uninitialized",
":",
"frame",
"[",
"index",
"]",
"=",
"create",
"label",
"(",
"read",
"unsigned",
"short",
"(",
"current",
"offset",
")",
",",
"labels",
")",
";",
"current",
"offset",
"+",
"=",
"2",
";",
"break",
";",
"default",
":",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"return",
"current",
"offset",
";",
"}",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"/",
"/",
"methods",
"to",
"parse",
"attributes",
"/",
"/",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
|
[
"create",
"a",
"new",
"writer",
"with",
"the",
"given",
"options"
]
| [
"public",
"static",
"writer",
"create",
"writer",
"(",
"configuration",
"conf",
",",
"writer",
"option",
"opts",
")",
"throws",
"i",
"o",
"exception",
"{",
"writer",
"compression",
"option",
"compression",
"option",
"=",
"options",
"get",
"option",
"(",
"writer",
"compression",
"option",
"class",
",",
"opts",
")",
";",
"compression",
"type",
"kind",
";",
"if",
"(",
"compression",
"option",
"!",
"=",
"null",
")",
"{",
"kind",
"=",
"compression",
"option",
"get",
"value",
"(",
")",
";",
"}",
"else",
"{",
"kind",
"=",
"get",
"default",
"compression",
"type",
"(",
"conf",
")",
";",
"opts",
"=",
"options",
"prepend",
"options",
"(",
"opts",
",",
"writer",
"compression",
"(",
"kind",
")",
")",
";",
"}",
"switch",
"(",
"kind",
")",
"{",
"default",
":",
"case",
"none",
":",
"return",
"new",
"writer",
"(",
"conf",
",",
"opts",
")",
";",
"case",
"record",
":",
"return",
"new",
"record",
"compress",
"writer",
"(",
"conf",
",",
"opts",
")",
";",
"case",
"block",
":",
"return",
"new",
"block",
"compress",
"writer",
"(",
"conf",
",",
"opts",
")",
";",
"}",
"}"
]
|
[
"test",
"what",
"happens",
"if",
"the",
"nn",
"crashes",
"when",
"it",
"has",
"has",
"started",
"but",
"had",
"no",
"transactions",
"written"
]
| [
"public",
"void",
"test",
"crash",
"recovery",
"no",
"transactions",
"(",
")",
"throws",
"exception",
"{",
"test",
"crash",
"recovery",
"(",
"0",
")",
";",
"}"
]
|
[
"the",
"set",
"of",
"values",
"defined",
"for",
"this",
"entry",
",",
"each",
"corresponding",
"to",
"a",
"different",
"configurationvariant",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"config",
"value",
"config",
"value",
"=",
"4",
";",
"<",
"code",
">"
]
| [
"public",
"builder",
"add",
"config",
"value",
"(",
"com",
"android",
"aapt",
"resources",
"config",
"value",
"builder",
"builder",
"for",
"value",
")",
"{",
"copy",
"on",
"write",
"(",
")",
";",
"instance",
"add",
"config",
"value",
"(",
"builder",
"for",
"value",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"the",
"last",
"value",
"the",
"measure",
"funcion",
"associated",
"with",
"this",
"node",
"{",
"@",
"link",
"component",
"}",
"returned",
"for",
"the",
"height",
"this",
"is",
"used",
"together",
"with",
"{",
"@",
"link",
"internal",
"node",
"#",
"get",
"last",
"height",
"spec",
"(",
")",
"}",
"to",
"implement",
"measure",
"caching"
]
| [
"float",
"get",
"last",
"measured",
"height",
"(",
")",
";"
]
|
[
"sets",
"up",
"thread",
"-",
"local",
"state",
"before",
"each",
"test",
"method",
"via",
"spring",
"web",
"'",
"s",
"{",
"@",
"link",
"request",
"context",
"holder",
"}",
",",
"but",
"only",
"if",
"the",
"{",
"@",
"linkplain",
"test",
"context",
"#",
"get",
"test",
"class",
"(",
")",
"test",
"class",
"}",
"is",
"annotated",
"with",
"{",
"@",
"link",
"web",
"app",
"configuration",
"@",
"web",
"app",
"configuration",
"}"
]
| [
"public",
"void",
"before",
"test",
"method",
"(",
"test",
"context",
"test",
"context",
")",
"throws",
"exception",
"{",
"set",
"up",
"request",
"context",
"if",
"necessary",
"(",
"test",
"context",
")",
";",
"}"
]
|
[
"returns",
"the",
"index",
"in",
"the",
"buffer",
"of",
"the",
"end",
"of",
"header",
"if",
"found",
"returns",
"-",
"1",
"if",
"no",
"end",
"of",
"header",
"was",
"found",
"in",
"the",
"buffer"
]
| [
"private",
"static",
"int",
"find",
"end",
"of",
"header",
"(",
"final",
"byte",
"buf",
"buffer",
")",
"{",
"final",
"int",
"n",
"=",
"buffer",
"readable",
"bytes",
"(",
")",
";",
"/",
"/",
"per",
"spec",
",",
"the",
"1",
"5th",
"and",
"1",
"6th",
"bytes",
"contain",
"the",
"address",
"length",
"in",
"bytes",
"if",
"(",
"n",
"<",
"16",
")",
"{",
"return",
"-",
"1",
";",
"}",
"int",
"offset",
"=",
"buffer",
"reader",
"index",
"(",
")",
"+",
"14",
";",
"/",
"/",
"the",
"total",
"header",
"length",
"will",
"be",
"a",
"fixed",
"16",
"byte",
"sequence",
"+",
"the",
"dynamic",
"address",
"information",
"block",
"int",
"total",
"header",
"bytes",
"=",
"16",
"+",
"buffer",
"get",
"unsigned",
"short",
"(",
"offset",
")",
";",
"/",
"/",
"ensure",
"we",
"actually",
"have",
"the",
"full",
"header",
"available",
"if",
"(",
"n",
">",
"=",
"total",
"header",
"bytes",
")",
"{",
"return",
"total",
"header",
"bytes",
";",
"}",
"else",
"{",
"return",
"-",
"1",
";",
"}",
"}"
]
|
[
"the",
"statistics",
"of",
"storage",
"types"
]
| [
"map",
"<",
"storage",
"type",
",",
"storage",
"type",
"stats",
">",
"get",
"storage",
"type",
"stats",
"(",
")",
";"
]
|
[
"return",
"a",
"future",
"which",
"succeeds",
"if",
"all",
"the",
"topic",
"creations",
"succeed"
]
| [
"public",
"kafka",
"future",
"<",
"void",
">",
"all",
"(",
")",
"{",
"return",
"kafka",
"future",
"all",
"of",
"(",
"futures",
"values",
"(",
")",
"to",
"array",
"(",
"new",
"kafka",
"future",
"[",
"0",
"]",
")",
")",
";",
"}"
]
|
[
"returns",
"a",
"serializable",
"converter",
"that",
"always",
"converts",
"or",
"reverses",
"an",
"object",
"to",
"itself"
]
| [
"public",
"static",
"<",
"t",
">",
"converter",
"<",
"t",
",",
"t",
">",
"identity",
"(",
")",
"{",
"return",
"(",
"identity",
"converter",
"<",
"t",
">",
")",
"identity",
"converter",
"instance",
";",
"}"
]
|
[
"sets",
"target",
"bean"
]
| [
"public",
"void",
"set",
"target",
"bean",
"(",
"object",
"target",
"bean",
")",
"{",
"this",
"target",
"bean",
"=",
"target",
"bean",
";",
"}"
]
|
[
"return",
"true",
"if",
"there",
"are",
"no",
"conditions",
"(",
"valid",
"or",
"invalid",
")",
"defined",
"for",
"this",
"filter",
"model"
]
| [
"public",
"boolean",
"is",
"empty",
"(",
")",
"{",
"return",
"filter",
"rows",
"is",
"empty",
"(",
")",
";",
"}"
]
|
[
"returns",
"an",
"array",
"of",
"names",
"of",
"all",
"views",
"(",
"both",
"temporary",
"and",
"permanent",
")",
"registered",
"in",
"the",
"namespace",
"of",
"the",
"current",
"catalog",
"and",
"database"
]
| [
"public",
"set",
"<",
"string",
">",
"list",
"views",
"(",
"string",
"catalog",
"name",
",",
"string",
"database",
"name",
")",
"{",
"catalog",
"current",
"catalog",
"=",
"catalogs",
"get",
"(",
"get",
"current",
"catalog",
"(",
")",
")",
";",
"try",
"{",
"return",
"stream",
"concat",
"(",
"current",
"catalog",
"list",
"views",
"(",
"get",
"current",
"database",
"(",
")",
")",
"stream",
"(",
")",
",",
"list",
"temporary",
"views",
"internal",
"(",
"catalog",
"name",
",",
"database",
"name",
")",
"map",
"(",
"e",
"-",
">",
"e",
"get",
"key",
"(",
")",
"get",
"object",
"name",
"(",
")",
")",
")",
"collect",
"(",
"collectors",
"to",
"set",
"(",
")",
")",
";",
"}",
"catch",
"(",
"database",
"not",
"exist",
"exception",
"e",
")",
"{",
"throw",
"new",
"validation",
"exception",
"(",
"\"",
"current",
"database",
"does",
"not",
"exist",
"\"",
",",
"e",
")",
";",
"}",
"}"
]
|
[
"get",
"outer",
"enum"
]
| [
"public",
"outer",
"enum",
"get",
"outer",
"enum",
"(",
")",
"{",
"return",
"outer",
"enum",
";",
"}"
]
|
[
"get",
"namespace",
"array"
]
| [
"public",
"list",
"<",
"integer",
">",
"get",
"namespace",
"array",
"(",
")",
"{",
"return",
"namespace",
"array",
";",
"}"
]
|
[
"load",
"the",
"specified",
"list",
"of",
"edit",
"files",
"into",
"the",
"image"
]
| [
"public",
"long",
"load",
"edits",
"(",
"iterable",
"<",
"edit",
"log",
"input",
"stream",
">",
"edit",
"streams",
",",
"f",
"s",
"namesystem",
"target",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"load",
"edits",
"(",
"edit",
"streams",
",",
"target",
",",
"long",
"max",
"value",
",",
"null",
",",
"null",
")",
";",
"}"
]
|
[
"generate",
"pending",
"uploads",
"to",
"commit",
"this",
"is",
"quite",
"complex",
"as",
"the",
"mock",
"pending",
"uploads",
"need",
"to",
"be",
"saved",
"to",
"a",
"filesystem",
"for",
"the",
"next",
"stage",
"of",
"the",
"commit",
"process",
"to",
"simulate",
"multiple",
"commit",
",",
"more",
"than",
"one",
"pendingset",
"file",
"is",
"created",
","
]
| [
"protected",
"active",
"commit",
"list",
"pending",
"uploads",
"to",
"commit",
"(",
"job",
"context",
"context",
")",
"throws",
"i",
"o",
"exception",
"{",
"local",
"file",
"system",
"local",
"f",
"s",
"=",
"file",
"system",
"get",
"local",
"(",
"get",
"conf",
"(",
")",
")",
";",
"active",
"commit",
"active",
"commit",
"=",
"new",
"active",
"commit",
"(",
"local",
"f",
"s",
",",
"new",
"array",
"list",
"<",
">",
"(",
"0",
")",
")",
";",
"/",
"/",
"need",
"to",
"create",
"some",
"pending",
"entries",
"for",
"(",
"string",
"dateint",
":",
"arrays",
"as",
"list",
"(",
"\"",
"20161115",
"\"",
",",
"\"",
"20161116",
"\"",
")",
")",
"{",
"pending",
"set",
"pending",
"set",
"=",
"new",
"pending",
"set",
"(",
")",
";",
"for",
"(",
"string",
"hour",
":",
"arrays",
"as",
"list",
"(",
"\"",
"13",
"\"",
",",
"\"",
"14",
"\"",
")",
")",
"{",
"string",
"upload",
"id",
"=",
"uuid",
"random",
"u",
"u",
"i",
"d",
"(",
")",
"to",
"string",
"(",
")",
";",
"string",
"key",
"=",
"output",
"prefix",
"+",
"\"",
"/",
"dateint",
"=",
"\"",
"+",
"dateint",
"+",
"\"",
"/",
"hour",
"=",
"\"",
"+",
"hour",
"+",
"\"",
"/",
"\"",
"+",
"upload",
"id",
"+",
"\"",
"parquet",
"\"",
";",
"single",
"pending",
"commit",
"commit",
"=",
"new",
"single",
"pending",
"commit",
"(",
")",
";",
"commit",
"set",
"bucket",
"(",
"bucket",
")",
";",
"commit",
"set",
"destination",
"key",
"(",
"key",
")",
";",
"commit",
"set",
"uri",
"(",
"\"",
"s",
"3a",
":",
"/",
"/",
"\"",
"+",
"bucket",
"+",
"\"",
"/",
"\"",
"+",
"key",
")",
";",
"commit",
"set",
"upload",
"id",
"(",
"upload",
"id",
")",
";",
"array",
"list",
"<",
"string",
">",
"etags",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"etags",
"add",
"(",
"\"",
"tag",
"1",
"\"",
")",
";",
"commit",
"set",
"etags",
"(",
"etags",
")",
";",
"pending",
"set",
"add",
"(",
"commit",
")",
";",
"/",
"/",
"register",
"the",
"upload",
"so",
"commit",
"operations",
"are",
"not",
"rejected",
"get",
"mock",
"results",
"(",
")",
"add",
"upload",
"(",
"upload",
"id",
",",
"key",
")",
";",
"}",
"file",
"file",
"=",
"file",
"create",
"temp",
"file",
"(",
"\"",
"staging",
"\"",
",",
"\"",
"pendingset",
"\"",
")",
";",
"file",
"delete",
"on",
"exit",
"(",
")",
";",
"path",
"path",
"=",
"new",
"path",
"(",
"file",
"to",
"u",
"r",
"i",
"(",
")",
")",
";",
"pending",
"set",
"save",
"(",
"local",
"f",
"s",
",",
"path",
",",
"true",
")",
";",
"active",
"commit",
"add",
"(",
"local",
"f",
"s",
"get",
"file",
"status",
"(",
"path",
")",
")",
";",
"}",
"return",
"active",
"commit",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"capital",
"camel",
"'"
]
| [
"public",
"void",
"capital",
"camel",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"capital",
"camel",
"}"
]
|
[
"gets",
"the",
"value",
"of",
"the",
"given",
"attribute",
"name"
]
| [
"public",
"string",
"get",
"attribute",
"(",
"string",
"key",
")",
"{",
"return",
"attributes",
"get",
"(",
"key",
")",
";",
"}"
]
|
[
"returns",
"{",
"@",
"code",
"true",
"}",
"iff",
"the",
"given",
"location",
"contains",
"an",
"index",
"an",
"the",
"index",
"can",
"be",
"successfully",
"opened",
"this",
"includes",
"reading",
"the",
"segment",
"infos",
"and",
"possible",
"corruption",
"markers"
]
| [
"public",
"static",
"boolean",
"can",
"open",
"index",
"(",
"logger",
"logger",
",",
"path",
"index",
"location",
",",
"shard",
"id",
"shard",
"id",
",",
"node",
"environment",
"shard",
"locker",
"shard",
"locker",
")",
"{",
"try",
"{",
"store",
"try",
"open",
"index",
"(",
"index",
"location",
",",
"shard",
"id",
",",
"shard",
"locker",
",",
"logger",
")",
";",
"}",
"catch",
"(",
"exception",
"ex",
")",
"{",
"logger",
"trace",
"(",
"(",
")",
"-",
">",
"new",
"parameterized",
"message",
"(",
"\"",
"can",
"'",
"t",
"open",
"index",
"for",
"path",
"[",
"{",
"}",
"]",
"\"",
",",
"index",
"location",
")",
",",
"ex",
")",
";",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
]
|
[
"is",
"the",
"concrete",
"service",
"name",
"or",
"not"
]
| [
"public",
"boolean",
"is",
"concrete",
"(",
")",
"{",
"return",
"is",
"concrete",
"(",
"service",
"interface",
")",
"&",
"&",
"is",
"concrete",
"(",
"version",
")",
"&",
"&",
"is",
"concrete",
"(",
"group",
")",
";",
"}"
]
|
[
"returns",
"the",
"list",
"of",
"string",
"diff",
"objects",
"that",
"if",
"applied",
"to",
"s",
"1",
"would",
"result",
"in",
"s",
"2",
";",
"the",
"given",
"text",
"will",
"look",
"only",
"for",
"whole",
"lines",
"using",
"'",
"\\",
"n",
"'"
]
| [
"static",
"string",
"diff",
"[",
"]",
"get",
"line",
"diffs",
"(",
"string",
"s",
"1",
",",
"string",
"s",
"2",
")",
"{",
"return",
"get",
"line",
"diffs",
"(",
"s",
"1",
",",
"s",
"2",
",",
"minimum",
"diff",
"size",
")",
";",
"}"
]
|
[
"sets",
"the",
"bootstrap",
"'",
"s",
"{",
"@",
"link",
"configuration",
"source",
"provider",
"}"
]
| [
"public",
"void",
"set",
"configuration",
"source",
"provider",
"(",
"configuration",
"source",
"provider",
"provider",
")",
"{",
"this",
"configuration",
"source",
"provider",
"=",
"require",
"non",
"null",
"(",
"provider",
")",
";",
"}"
]
|
[
"returns",
"final",
"redirected",
"url"
]
| [
"url",
"get",
"url",
"(",
")",
"{",
"return",
"url",
";",
"}"
]
|
[
"loads",
"a",
"composition",
"from",
"a",
"file",
"stored",
"in",
"assets"
]
| [
"public",
"static",
"cancellable",
"from",
"asset",
"file",
"name",
"(",
"context",
"context",
",",
"string",
"file",
"name",
",",
"on",
"composition",
"loaded",
"listener",
"loaded",
"listener",
")",
"{",
"input",
"stream",
"stream",
";",
"try",
"{",
"stream",
"=",
"context",
"get",
"assets",
"(",
")",
"open",
"(",
"file",
"name",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"unable",
"to",
"find",
"file",
"\"",
"+",
"file",
"name",
",",
"e",
")",
";",
"}",
"return",
"from",
"input",
"stream",
"(",
"context",
",",
"stream",
",",
"loaded",
"listener",
")",
";",
"}"
]
|
[
"get",
"prefix",
"ns",
"boolean"
]
| [
"public",
"boolean",
"get",
"prefix",
"ns",
"boolean",
"(",
")",
"{",
"return",
"prefix",
"ns",
"boolean",
";",
"}"
]
|
[
"check",
"if",
"the",
"given",
"class",
"represents",
"a",
"primitive",
"(",
"i",
"e",
"boolean",
",",
"byte",
",",
"char",
",",
"short",
",",
"int",
",",
"long",
",",
"float",
",",
"or",
"double",
")",
",",
"{",
"@",
"code",
"void",
"}",
",",
"or",
"a",
"wrapper",
"for",
"those",
"types",
"(",
"i",
"e",
"boolean",
",",
"byte",
",",
"character",
",",
"short",
",",
"integer",
",",
"long",
",",
"float",
",",
"double",
",",
"or",
"void",
")"
]
| [
"public",
"static",
"boolean",
"is",
"primitive",
"or",
"wrapper",
"(",
"class",
"<",
"?",
">",
"clazz",
")",
"{",
"assert",
"not",
"null",
"(",
"clazz",
",",
"\"",
"class",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"return",
"(",
"clazz",
"is",
"primitive",
"(",
")",
"|",
"|",
"is",
"primitive",
"wrapper",
"(",
"clazz",
")",
")",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"array",
"of",
"string",
"'"
]
| [
"public",
"void",
"array",
"of",
"string",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"array",
"of",
"string",
"}"
]
|
[
"is",
"the",
"job",
"output",
"compressed",
"?"
]
| [
"public",
"static",
"boolean",
"get",
"compress",
"output",
"(",
"job",
"conf",
"conf",
")",
"{",
"return",
"conf",
"get",
"boolean",
"(",
"org",
"apache",
"hadoop",
"mapreduce",
"lib",
"output",
"file",
"output",
"format",
"compress",
",",
"false",
")",
";",
"}"
]
|
[
"set",
"required",
"string",
"group"
]
| [
"public",
"a",
"p",
"itest",
"group",
"parameters",
"request",
"required",
"string",
"group",
"(",
"integer",
"required",
"string",
"group",
")",
"{",
"this",
"required",
"string",
"group",
"=",
"required",
"string",
"group",
";",
"return",
"this",
";",
"}"
]
|
[
"resets",
"the",
"locked",
"line",
"numbers",
"for",
"this",
"field",
"panel",
"coordinator",
"to",
"their",
"default",
"of",
"each",
"being",
"zero"
]
| [
"public",
"void",
"reset",
"locked",
"lines",
"(",
")",
"{",
"/",
"/",
"make",
"the",
"locked",
"line",
"numbers",
"default",
"to",
"0",
"locked",
"line",
"numbers",
"=",
"new",
"big",
"integer",
"[",
"panels",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"locked",
"line",
"numbers",
"length",
";",
"i",
"+",
"+",
")",
"{",
"this",
"locked",
"line",
"numbers",
"[",
"i",
"]",
"=",
"big",
"integer",
"zero",
";",
"}",
"}"
]
|
[
"patch",
"another",
"-",
"fakedummy",
":",
"to",
"test",
"special",
"tags",
"to",
"test",
"special",
"tags",
"and",
"operation",
"id",
"starting",
"with",
"number"
]
| [
"public",
"response",
"entity",
"<",
"client",
">",
"call",
"1",
"2",
"3test",
"special",
"tags",
"(",
"@",
"api",
"param",
"(",
"value",
"=",
"\"",
"client",
"model",
"\"",
",",
"required",
"=",
"true",
")",
"@",
"valid",
"@",
"request",
"body",
"client",
"body",
")",
"{",
"return",
"delegate",
"call",
"1",
"2",
"3test",
"special",
"tags",
"(",
"body",
")",
";",
"}"
]
|
[
"removes",
"the",
"object",
"bound",
"with",
"the",
"specified",
"name",
"from",
"this",
"session"
]
| [
"public",
"void",
"remove",
"attribute",
"(",
"string",
"name",
")",
"{",
"session",
"remove",
"attribute",
"(",
"name",
")",
";",
"}"
]
|
[
"return",
"a",
"newly",
"constructed",
"{",
"@",
"link",
"value",
"transformer",
"with",
"key",
"}",
"instance",
"the",
"supplier",
"should",
"always",
"generate",
"a",
"new",
"instance",
"each",
"time",
"{",
"@",
"link",
"value",
"transformer",
"with",
"key",
"supplier",
"#",
"get",
"(",
")",
"}",
"gets",
"called",
"creating",
"a",
"single",
"{",
"@",
"link",
"value",
"transformer",
"with",
"key",
"}",
"object",
"and",
"returning",
"the",
"same",
"object",
"reference",
"in",
"{",
"@",
"link",
"value",
"transformer",
"with",
"key",
"supplier",
"#",
"get",
"(",
")",
"}",
"is",
"a",
"violation",
"of",
"the",
"supplier",
"pattern",
"and",
"leads",
"to",
"runtime",
"exceptions"
]
| [
"value",
"transformer",
"with",
"key",
"<",
"k",
",",
"v",
",",
"vr",
">",
"get",
"(",
")",
";"
]
|
[
"called",
"by",
"iteration",
"tail",
"to",
"signal",
"that",
"all",
"input",
"of",
"a",
"superstep",
"has",
"been",
"processed",
"(",
"unblocks",
"iteration",
"head",
")"
]
| [
"public",
"void",
"notify",
"of",
"end",
"of",
"superstep",
"(",
")",
"{",
"queue",
"offer",
"(",
"buffer",
")",
";",
"}"
]
|
[
"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",
"\"",
")",
";",
"}"
]
|
[
"have",
"a",
"directory",
"with",
"full",
"rw",
"permissions",
",",
"but",
"then",
"remove",
"write",
"access",
"underneath",
",",
"and",
"try",
"to",
"delete",
"it"
]
| [
"public",
"void",
"test",
"partial",
"dir",
"delete",
"(",
")",
"throws",
"throwable",
"{",
"describe",
"(",
"\"",
"delete",
"with",
"part",
"of",
"the",
"child",
"tree",
"read",
"only",
";",
"\"",
"+",
"\"",
"multidelete",
"=",
"%",
"s",
"\"",
",",
"multi",
"delete",
")",
";",
"/",
"/",
"the",
"full",
"fs",
"s",
"3",
"a",
"file",
"system",
"fs",
"=",
"get",
"file",
"system",
"(",
")",
";",
"store",
"context",
"store",
"context",
"=",
"fs",
"create",
"store",
"context",
"(",
")",
";",
"list",
"<",
"path",
">",
"dirs",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"dir",
"count",
")",
";",
"list",
"<",
"path",
">",
"read",
"only",
"files",
"=",
"create",
"dirs",
"and",
"files",
"(",
"fs",
",",
"read",
"only",
"dir",
",",
"dir",
"depth",
",",
"file",
"count",
",",
"dir",
"count",
",",
"new",
"array",
"list",
"<",
">",
"(",
"file",
"count",
")",
",",
"dirs",
")",
";",
"list",
"<",
"path",
">",
"deletable",
"files",
"=",
"create",
"files",
"(",
"fs",
",",
"writable",
"dir",
",",
"dir",
"depth",
",",
"file",
"count",
",",
"dir",
"count",
")",
";",
"/",
"/",
"as",
"a",
"safety",
"check",
",",
"verify",
"that",
"one",
"of",
"the",
"deletable",
"files",
"can",
"be",
"deleted",
"path",
"head",
"=",
"deletable",
"files",
"remove",
"(",
"0",
")",
";",
"assert",
"true",
"(",
"\"",
"delete",
"\"",
"+",
"head",
"+",
"\"",
"failed",
"\"",
",",
"role",
"f",
"s",
"delete",
"(",
"head",
",",
"false",
")",
")",
";",
"list",
"<",
"path",
">",
"all",
"files",
"=",
"stream",
"concat",
"(",
"read",
"only",
"files",
"stream",
"(",
")",
",",
"deletable",
"files",
"stream",
"(",
")",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"list",
"<",
"multi",
"object",
"delete",
"support",
"key",
"path",
">",
"key",
"paths",
"=",
"all",
"files",
"stream",
"(",
")",
"map",
"(",
"path",
"-",
">",
"new",
"multi",
"object",
"delete",
"support",
"key",
"path",
"(",
"store",
"context",
"path",
"to",
"key",
"(",
"path",
")",
",",
"path",
",",
"false",
")",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"/",
"/",
"this",
"set",
"can",
"be",
"deleted",
"by",
"the",
"role",
"fs",
"metric",
"diff",
"rejection",
"count",
"=",
"new",
"metric",
"diff",
"(",
"role",
"f",
"s",
",",
"files",
"delete",
"rejected",
")",
";",
"metric",
"diff",
"delete",
"verb",
"count",
"=",
"new",
"metric",
"diff",
"(",
"role",
"f",
"s",
",",
"object",
"delete",
"request",
")",
";",
"metric",
"diff",
"bulk",
"delete",
"verb",
"count",
"=",
"new",
"metric",
"diff",
"(",
"role",
"f",
"s",
",",
"object",
"bulk",
"delete",
"request",
")",
";",
"metric",
"diff",
"delete",
"object",
"count",
"=",
"new",
"metric",
"diff",
"(",
"role",
"f",
"s",
",",
"object",
"delete",
"objects",
")",
";",
"describe",
"(",
"\"",
"trying",
"to",
"delete",
"read",
"only",
"directory",
"\"",
")",
";",
"access",
"denied",
"exception",
"ex",
"=",
"expect",
"delete",
"forbidden",
"(",
"read",
"only",
"dir",
")",
";",
"if",
"(",
"multi",
"delete",
")",
"{",
"/",
"/",
"multi",
"-",
"delete",
"status",
"checks",
"extract",
"cause",
"(",
"multi",
"object",
"delete",
"exception",
"class",
",",
"ex",
")",
";",
"delete",
"verb",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"delete",
"request",
"count",
"\"",
",",
"0",
")",
";",
"bulk",
"delete",
"verb",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"bulk",
"delete",
"request",
"count",
"\"",
",",
"1",
")",
";",
"delete",
"object",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"number",
"of",
"keys",
"in",
"delete",
"request",
"\"",
",",
"read",
"only",
"files",
"size",
"(",
")",
")",
";",
"rejection",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"rejection",
"count",
"\"",
",",
"read",
"only",
"files",
"size",
"(",
")",
")",
";",
"reset",
"(",
"rejection",
"count",
",",
"delete",
"verb",
"count",
",",
"delete",
"object",
"count",
",",
"bulk",
"delete",
"verb",
"count",
")",
";",
"}",
"/",
"/",
"all",
"the",
"files",
"are",
"still",
"there",
"?",
"(",
"avoid",
"in",
"scale",
"test",
"due",
"to",
"cost",
")",
"if",
"(",
"!",
"scale",
"test",
")",
"{",
"read",
"only",
"files",
"for",
"each",
"(",
"this",
":",
":",
"path",
"must",
"exist",
")",
";",
"}",
"describe",
"(",
"\"",
"trying",
"to",
"delete",
"upper",
"-",
"level",
"directory",
"\"",
")",
";",
"ex",
"=",
"expect",
"delete",
"forbidden",
"(",
"base",
"path",
")",
";",
"string",
"iostats",
"=",
"io",
"statistics",
"source",
"to",
"string",
"(",
"role",
"f",
"s",
")",
";",
"if",
"(",
"multi",
"delete",
")",
"{",
"/",
"/",
"multi",
"-",
"delete",
"status",
"checks",
"delete",
"verb",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"delete",
"request",
"count",
"\"",
",",
"0",
")",
";",
"bulk",
"delete",
"verb",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"count",
"of",
"delete",
"operations",
"in",
"\"",
"+",
"iostats",
",",
"1",
")",
";",
"multi",
"object",
"delete",
"exception",
"mde",
"=",
"extract",
"cause",
"(",
"multi",
"object",
"delete",
"exception",
"class",
",",
"ex",
")",
";",
"list",
"<",
"multi",
"object",
"delete",
"support",
"key",
"path",
">",
"undeleted",
"key",
"paths",
"=",
"remove",
"undeleted",
"paths",
"(",
"mde",
",",
"key",
"paths",
",",
"store",
"context",
":",
":",
"key",
"to",
"path",
")",
";",
"final",
"list",
"<",
"path",
">",
"undeleted",
"=",
"to",
"path",
"list",
"(",
"undeleted",
"key",
"paths",
")",
";",
"delete",
"object",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"count",
"of",
"objects",
"in",
"delete",
"request",
"\"",
",",
"all",
"files",
"size",
"(",
")",
")",
";",
"assertions",
"assert",
"that",
"(",
"undeleted",
")",
"as",
"(",
"\"",
"files",
"which",
"could",
"not",
"be",
"deleted",
"\"",
")",
"contains",
"exactly",
"in",
"any",
"order",
"elements",
"of",
"(",
"read",
"only",
"files",
")",
";",
"assertions",
"assert",
"that",
"(",
"to",
"path",
"list",
"(",
"key",
"paths",
")",
")",
"as",
"(",
"\"",
"files",
"which",
"were",
"deleted",
"\"",
")",
"contains",
"exactly",
"in",
"any",
"order",
"elements",
"of",
"(",
"deletable",
"files",
")",
";",
"rejection",
"count",
"assert",
"diff",
"equals",
"(",
"\"",
"wrong",
"rejection",
"count",
"\"",
",",
"read",
"only",
"files",
"size",
"(",
")",
")",
";",
"}",
"reset",
"(",
"rejection",
"count",
",",
"delete",
"verb",
"count",
")",
";",
"/",
"/",
"build",
"the",
"set",
"of",
"all",
"paths",
"under",
"the",
"directory",
"tree",
"through",
"/",
"/",
"a",
"directory",
"listing",
"(",
"i",
"e",
"not",
"get",
"file",
"status",
"(",
")",
")",
"/",
"/",
"small",
"risk",
"of",
"observed",
"inconsistency",
"here",
"on",
"unguarded",
"stores",
"final",
"set",
"<",
"path",
">",
"read",
"only",
"listing",
"=",
"list",
"files",
"under",
"path",
"(",
"read",
"only",
"dir",
",",
"true",
")",
";",
"string",
"directory",
"list",
"=",
"read",
"only",
"listing",
"stream",
"(",
")",
"map",
"(",
"path",
":",
":",
"to",
"string",
")",
"collect",
"(",
"collectors",
"joining",
"(",
"\"",
",",
"\"",
",",
"\"",
"[",
"\"",
",",
"\"",
"]",
"\"",
")",
")",
";",
"assertions",
"assert",
"that",
"(",
"read",
"only",
"listing",
")",
"as",
"(",
"\"",
"read",
"only",
"directory",
"\"",
"+",
"directory",
"list",
")",
"contains",
"exactly",
"in",
"any",
"order",
"elements",
"of",
"(",
"read",
"only",
"files",
")",
";",
"}"
]
|
[
"returns",
"the",
"closest",
"target",
"enemy",
"first",
",",
"units",
"are",
"checked",
",",
"then",
"tile",
"entities"
]
| [
"public",
"static",
"teamc",
"closest",
"target",
"(",
"team",
"team",
",",
"float",
"x",
",",
"float",
"y",
",",
"float",
"range",
")",
"{",
"return",
"closest",
"target",
"(",
"team",
",",
"x",
",",
"y",
",",
"range",
",",
"unit",
":",
":",
"is",
"valid",
")",
";",
"}"
]
|
[
"removes",
"the",
"edge",
"connecting",
"{",
"@",
"code",
"endpoints",
"}",
",",
"if",
"it",
"is",
"present",
"if",
"this",
"graph",
"is",
"directed",
",",
"{",
"@",
"code",
"endpoints",
"}",
"must",
"be",
"ordered"
]
| [
"boolean",
"remove",
"edge",
"(",
"endpoint",
"pair",
"<",
"n",
">",
"endpoints",
")",
";"
]
|
[
"does",
"the",
"dumping"
]
| [
"public",
"void",
"dump",
"(",
")",
"{",
"byte",
"[",
"]",
"bytes",
"=",
"get",
"bytes",
"(",
")",
";",
"byte",
"array",
"ba",
"=",
"new",
"byte",
"array",
"(",
"bytes",
")",
";",
"direct",
"class",
"file",
"cf",
"=",
"new",
"direct",
"class",
"file",
"(",
"ba",
",",
"get",
"file",
"path",
"(",
")",
",",
"get",
"strict",
"parse",
"(",
")",
")",
";",
"cf",
"set",
"attribute",
"factory",
"(",
"std",
"attribute",
"factory",
"the",
"one",
")",
";",
"cf",
"set",
"observer",
"(",
"this",
")",
";",
"cf",
"get",
"magic",
"(",
")",
";",
"/",
"/",
"force",
"parsing",
"to",
"happen",
"int",
"at",
"=",
"get",
"at",
"(",
")",
";",
"if",
"(",
"at",
"!",
"=",
"bytes",
"length",
")",
"{",
"parsed",
"(",
"ba",
",",
"at",
",",
"bytes",
"length",
"-",
"at",
",",
"\"",
"<",
"extra",
"data",
"at",
"end",
"of",
"file",
">",
"\"",
")",
";",
"}",
"}"
]
|
[
"browsers",
"honor",
"conditional",
"requests",
"such",
"as",
"e",
"tag",
"let",
"'",
"s",
"make",
"sure",
"the",
"server",
"does"
]
| [
"@",
"test",
"public",
"void",
"conditional",
"requests",
"(",
")",
"{",
"stream",
"of",
"(",
"\"",
"/",
"zipkin",
"/",
"config",
"json",
"\"",
",",
"\"",
"/",
"zipkin",
"/",
"index",
"html",
"\"",
",",
"\"",
"/",
"zipkin",
"/",
"test",
"txt",
"\"",
")",
"for",
"each",
"(",
"path",
"-",
">",
"{",
"try",
"{",
"string",
"etag",
"=",
"get",
"(",
"path",
")",
"header",
"(",
"\"",
"etag",
"\"",
")",
";",
"assert",
"that",
"(",
"conditional",
"get",
"(",
"path",
",",
"etag",
")",
"code",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"304",
")",
";",
"assert",
"that",
"(",
"conditional",
"get",
"(",
"path",
",",
"\"",
"aargh",
"\"",
")",
"code",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"200",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"new",
"unchecked",
"i",
"o",
"exception",
"(",
"e",
")",
";",
"}",
"}",
")",
";",
"}"
]
|
[
"return",
"the",
"port",
"{",
"@",
"code",
"-",
"1",
"}",
"if",
"no",
"port",
"has",
"been",
"set"
]
| [
"public",
"abstract",
"int",
"get",
"port",
"(",
")",
";"
]
|
[
"match",
"{",
"@",
"link",
"http",
"request",
"}",
"or",
"not"
]
| [
"boolean",
"match",
"(",
"http",
"request",
"request",
")",
";"
]
|
[
"the",
"resource",
"id",
"(",
"0x",
"p",
"p",
"t",
"t",
"e",
"e",
"e",
"e",
")",
"of",
"the",
"attribute",
"<",
"code",
">",
"optional",
"uint",
"3",
"2",
"resource",
"id",
"=",
"5",
";",
"<",
"code",
">"
]
| [
"public",
"builder",
"set",
"resource",
"id",
"(",
"int",
"value",
")",
"{",
"copy",
"on",
"write",
"(",
")",
";",
"instance",
"set",
"resource",
"id",
"(",
"value",
")",
";",
"return",
"this",
";",
"}"
]
|
[
"get",
"the",
"task",
"that",
"this",
"wraps"
]
| [
"public",
"task",
"info",
"get",
"task",
"(",
")",
"{",
"return",
"task",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.