docstring_tokens
list | code_tokens
list |
---|---|
[
"factor",
"in",
"the",
"properties",
"of",
"the",
"target",
"where",
"the",
"dependency",
"points",
"to",
"in",
"the",
"dependency",
"edge",
"calculation",
"the",
"target",
"of",
"the",
"dependency",
"edges",
"depends",
"on",
"two",
"things",
":",
"the",
"rule",
"that",
"depends",
"on",
"them",
"and",
"the",
"type",
"of",
"target",
"they",
"depend",
"on",
"this",
"function",
"takes",
"the",
"rule",
"into",
"account",
"accordingly",
",",
"it",
"should",
"<",
"b",
">",
"not",
"<",
"b",
">",
"get",
"the",
"{",
"@",
"link",
"rule",
"}",
"instance",
"representing",
"the",
"rule",
"whose",
"dependencies",
"are",
"being",
"calculated",
"as",
"an",
"argument",
"or",
"its",
"attributes",
"and",
"it",
"should",
"<",
"b",
">",
"not",
"<",
"b",
">",
"do",
"anything",
"with",
"the",
"keys",
"of",
"{",
"@",
"code",
"partially",
"resolved",
"deps",
"}",
"other",
"than",
"passing",
"them",
"on",
"to",
"the",
"output",
"map"
] |
[
"private",
"ordered",
"set",
"multimap",
"<",
"dependency",
"kind",
",",
"dependency",
"key",
">",
"fully",
"resolve",
"dependencies",
"(",
"ordered",
"set",
"multimap",
"<",
"dependency",
"kind",
",",
"partially",
"resolved",
"dependency",
">",
"partially",
"resolved",
"deps",
",",
"map",
"<",
"label",
",",
"target",
">",
"target",
"map",
",",
"build",
"configuration",
"original",
"configuration",
",",
"@",
"nullable",
"transition",
"factory",
"<",
"rule",
">",
"trimming",
"transition",
"factory",
")",
"throws",
"inconsistent",
"aspect",
"order",
"exception",
"{",
"ordered",
"set",
"multimap",
"<",
"dependency",
"kind",
",",
"dependency",
"key",
">",
"outgoing",
"edges",
"=",
"ordered",
"set",
"multimap",
"create",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"dependency",
"kind",
",",
"partially",
"resolved",
"dependency",
">",
"entry",
":",
"partially",
"resolved",
"deps",
"entries",
"(",
")",
")",
"{",
"partially",
"resolved",
"dependency",
"partially",
"resolved",
"dependency",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"target",
"to",
"target",
"=",
"target",
"map",
"get",
"(",
"partially",
"resolved",
"dependency",
"get",
"label",
"(",
")",
")",
";",
"if",
"(",
"to",
"target",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"dependency",
"pointing",
"to",
"non",
"-",
"existent",
"target",
"this",
"error",
"was",
"reported",
"in",
"get",
"targets",
"(",
")",
",",
"so",
"/",
"/",
"we",
"can",
"just",
"ignore",
"this",
"dependency",
"continue",
";",
"}",
"configuration",
"transition",
"transition",
"=",
"transition",
"resolver",
"evaluate",
"transition",
"(",
"original",
"configuration",
",",
"partially",
"resolved",
"dependency",
"get",
"transition",
"(",
")",
",",
"to",
"target",
",",
"trimming",
"transition",
"factory",
")",
";",
"aspect",
"collection",
"required",
"aspects",
"=",
"compute",
"aspect",
"collections",
"(",
"partially",
"resolved",
"dependency",
"get",
"propagating",
"aspects",
"(",
")",
",",
"to",
"target",
")",
";",
"dependency",
"key",
"builder",
"dependency",
"key",
"builder",
"=",
"partially",
"resolved",
"dependency",
"get",
"dependency",
"key",
"builder",
"(",
")",
";",
"outgoing",
"edges",
"put",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"dependency",
"key",
"builder",
"set",
"transition",
"(",
"transition",
")",
"set",
"aspects",
"(",
"required",
"aspects",
")",
"build",
"(",
")",
")",
";",
"}",
"return",
"outgoing",
"edges",
";",
"}"
] |
[
"test",
"rendering",
"for",
"tasks",
"block"
] |
[
"public",
"void",
"test",
"tasks",
"block",
"(",
")",
"throws",
"exception",
"{",
"application",
"id",
"app",
"id",
"=",
"application",
"id",
"p",
"b",
"impl",
"new",
"instance",
"(",
"0",
",",
"1",
")",
";",
"job",
"id",
"job",
"id",
"=",
"new",
"job",
"id",
"p",
"b",
"impl",
"(",
")",
";",
"job",
"id",
"set",
"id",
"(",
"0",
")",
";",
"job",
"id",
"set",
"app",
"id",
"(",
"app",
"id",
")",
";",
"task",
"id",
"task",
"id",
"=",
"new",
"task",
"id",
"p",
"b",
"impl",
"(",
")",
";",
"task",
"id",
"set",
"id",
"(",
"0",
")",
";",
"task",
"id",
"set",
"task",
"type",
"(",
"task",
"type",
"map",
")",
";",
"task",
"id",
"set",
"job",
"id",
"(",
"job",
"id",
")",
";",
"task",
"task",
"=",
"mock",
"(",
"task",
"class",
")",
";",
"when",
"(",
"task",
"get",
"i",
"d",
"(",
")",
")",
"then",
"return",
"(",
"task",
"id",
")",
";",
"task",
"report",
"report",
"=",
"mock",
"(",
"task",
"report",
"class",
")",
";",
"when",
"(",
"report",
"get",
"progress",
"(",
")",
")",
"then",
"return",
"(",
"0",
"7f",
")",
";",
"when",
"(",
"report",
"get",
"task",
"state",
"(",
")",
")",
"then",
"return",
"(",
"task",
"state",
"succeeded",
")",
";",
"when",
"(",
"report",
"get",
"start",
"time",
"(",
")",
")",
"then",
"return",
"(",
"100001l",
")",
";",
"when",
"(",
"report",
"get",
"finish",
"time",
"(",
")",
")",
"then",
"return",
"(",
"100011l",
")",
";",
"when",
"(",
"report",
"get",
"status",
"(",
")",
")",
"then",
"return",
"(",
"\"",
"dummy",
"status",
"\\",
"n",
"*",
"\"",
")",
";",
"when",
"(",
"task",
"get",
"report",
"(",
")",
")",
"then",
"return",
"(",
"report",
")",
";",
"when",
"(",
"task",
"get",
"type",
"(",
")",
")",
"then",
"return",
"(",
"task",
"type",
"map",
")",
";",
"map",
"<",
"task",
"id",
",",
"task",
">",
"tasks",
"=",
"new",
"hash",
"map",
"<",
"task",
"id",
",",
"task",
">",
"(",
")",
";",
"tasks",
"put",
"(",
"task",
"id",
",",
"task",
")",
";",
"app",
"context",
"ctx",
"=",
"mock",
"(",
"app",
"context",
"class",
")",
";",
"job",
"job",
"=",
"mock",
"(",
"job",
"class",
")",
";",
"when",
"(",
"job",
"get",
"tasks",
"(",
")",
")",
"then",
"return",
"(",
"tasks",
")",
";",
"app",
"app",
"=",
"new",
"app",
"(",
"ctx",
")",
";",
"app",
"set",
"job",
"(",
"job",
")",
";",
"tasks",
"block",
"for",
"test",
"task",
"block",
"=",
"new",
"tasks",
"block",
"for",
"test",
"(",
"app",
")",
";",
"task",
"block",
"add",
"parameter",
"(",
"a",
"m",
"params",
"task",
"type",
",",
"\"",
"m",
"\"",
")",
";",
"print",
"writer",
"p",
"writer",
"=",
"new",
"print",
"writer",
"(",
"data",
")",
";",
"block",
"html",
"=",
"new",
"block",
"for",
"test",
"(",
"new",
"html",
"block",
"for",
"test",
"(",
")",
",",
"p",
"writer",
",",
"0",
",",
"false",
")",
";",
"task",
"block",
"render",
"(",
"html",
")",
";",
"p",
"writer",
"flush",
"(",
")",
";",
"assert",
"true",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"task",
"0",
"0001",
"m",
"000000",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"70",
"00",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"succeeded",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"100001",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"100011",
"\"",
")",
")",
";",
"assert",
"false",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"dummy",
"status",
"\\",
"n",
"*",
"\"",
")",
")",
";",
"assert",
"true",
"(",
"data",
"to",
"string",
"(",
")",
"contains",
"(",
"\"",
"dummy",
"status",
"\\",
"\\",
"n",
"*",
"\"",
")",
")",
";",
"}"
] |
[
"creates",
"a",
"{",
"@",
"code",
"compact",
"linked",
"hash",
"map",
"}",
"instance",
",",
"with",
"a",
"high",
"enough",
"\"",
"initial",
"capacity",
"\"",
"that",
"it",
"should",
"hold",
"{",
"@",
"code",
"expected",
"size",
"}",
"elements",
"without",
"rebuilding",
"internal",
"data",
"structures"
] |
[
"public",
"static",
"<",
"k",
",",
"v",
">",
"compact",
"linked",
"hash",
"map",
"<",
"k",
",",
"v",
">",
"create",
"with",
"expected",
"size",
"(",
"int",
"expected",
"size",
")",
"{",
"return",
"new",
"compact",
"linked",
"hash",
"map",
"<",
">",
"(",
"expected",
"size",
")",
";",
"}"
] |
[
"asynchronously",
"stop",
"the",
"index",
"lifecycle",
"management",
"feature",
"see",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchclientjava",
"-",
"restcurrent",
"java",
"-",
"rest",
"-",
"high",
"-",
"ilm",
"-",
"ilm",
"-",
"stop",
"-",
"ilm",
"html",
"for",
"more"
] |
[
"public",
"cancellable",
"stop",
"i",
"l",
"m",
"async",
"(",
"stop",
"i",
"l",
"m",
"request",
"request",
",",
"request",
"options",
"options",
",",
"action",
"listener",
"<",
"acknowledged",
"response",
">",
"listener",
")",
"{",
"return",
"rest",
"high",
"level",
"client",
"perform",
"request",
"async",
"and",
"parse",
"entity",
"(",
"request",
",",
"index",
"lifecycle",
"request",
"converters",
":",
":",
"stop",
"i",
"l",
"m",
",",
"options",
",",
"acknowledged",
"response",
":",
":",
"from",
"x",
"content",
",",
"listener",
",",
"empty",
"set",
"(",
")",
")",
";",
"}"
] |
[
"finds",
"pets",
"by",
"tags",
"(",
"asynchronously",
")",
"multiple",
"tags",
"can",
"be",
"provided",
"with",
"comma",
"separated",
"strings",
"use",
"tag",
"1",
",",
"tag",
"2",
",",
"tag",
"3",
"for",
"testing"
] |
[
"public",
"okhttp",
"3",
"call",
"find",
"pets",
"by",
"tags",
"async",
"(",
"set",
"<",
"string",
">",
"tags",
",",
"final",
"api",
"callback",
"<",
"set",
"<",
"pet",
">",
">",
"callback",
")",
"throws",
"api",
"exception",
"{",
"okhttp",
"3",
"call",
"local",
"var",
"call",
"=",
"find",
"pets",
"by",
"tags",
"validate",
"before",
"call",
"(",
"tags",
",",
"callback",
")",
";",
"type",
"local",
"var",
"return",
"type",
"=",
"new",
"type",
"token",
"<",
"set",
"<",
"pet",
">",
">",
"(",
")",
"{",
"}",
"get",
"type",
"(",
")",
";",
"local",
"var",
"api",
"client",
"execute",
"async",
"(",
"local",
"var",
"call",
",",
"local",
"var",
"return",
"type",
",",
"callback",
")",
";",
"return",
"local",
"var",
"call",
";",
"}"
] |
[
"draws",
"the",
"x",
"-",
"labels",
"on",
"the",
"specified",
"y",
"-",
"position"
] |
[
"protected",
"void",
"draw",
"labels",
"(",
"canvas",
"c",
",",
"float",
"pos",
",",
"m",
"p",
"point",
"f",
"anchor",
")",
"{",
"final",
"float",
"label",
"rotation",
"angle",
"degrees",
"=",
"m",
"x",
"axis",
"get",
"label",
"rotation",
"angle",
"(",
")",
";",
"boolean",
"centering",
"enabled",
"=",
"m",
"x",
"axis",
"is",
"center",
"axis",
"labels",
"enabled",
"(",
")",
";",
"float",
"[",
"]",
"positions",
"=",
"new",
"float",
"[",
"m",
"x",
"axis",
"m",
"entry",
"count",
"*",
"2",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"positions",
"length",
";",
"i",
"+",
"=",
"2",
")",
"{",
"/",
"/",
"only",
"fill",
"x",
"values",
"if",
"(",
"centering",
"enabled",
")",
"{",
"positions",
"[",
"i",
"]",
"=",
"m",
"x",
"axis",
"m",
"centered",
"entries",
"[",
"i",
"/",
"2",
"]",
";",
"}",
"else",
"{",
"positions",
"[",
"i",
"]",
"=",
"m",
"x",
"axis",
"m",
"entries",
"[",
"i",
"/",
"2",
"]",
";",
"}",
"}",
"m",
"trans",
"point",
"values",
"to",
"pixel",
"(",
"positions",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"positions",
"length",
";",
"i",
"+",
"=",
"2",
")",
"{",
"float",
"x",
"=",
"positions",
"[",
"i",
"]",
";",
"if",
"(",
"m",
"view",
"port",
"handler",
"is",
"in",
"bounds",
"x",
"(",
"x",
")",
")",
"{",
"string",
"label",
"=",
"m",
"x",
"axis",
"get",
"value",
"formatter",
"(",
")",
"get",
"formatted",
"value",
"(",
"m",
"x",
"axis",
"m",
"entries",
"[",
"i",
"/",
"2",
"]",
",",
"m",
"x",
"axis",
")",
";",
"if",
"(",
"m",
"x",
"axis",
"is",
"avoid",
"first",
"last",
"clipping",
"enabled",
"(",
")",
")",
"{",
"/",
"/",
"avoid",
"clipping",
"of",
"the",
"last",
"if",
"(",
"i",
"/",
"2",
"=",
"=",
"m",
"x",
"axis",
"m",
"entry",
"count",
"-",
"1",
"&",
"&",
"m",
"x",
"axis",
"m",
"entry",
"count",
">",
"1",
")",
"{",
"float",
"width",
"=",
"utils",
"calc",
"text",
"width",
"(",
"m",
"axis",
"label",
"paint",
",",
"label",
")",
";",
"if",
"(",
"width",
">",
"m",
"view",
"port",
"handler",
"offset",
"right",
"(",
")",
"*",
"2",
"&",
"&",
"x",
"+",
"width",
">",
"m",
"view",
"port",
"handler",
"get",
"chart",
"width",
"(",
")",
")",
"x",
"-",
"=",
"width",
"/",
"2",
";",
"/",
"/",
"avoid",
"clipping",
"of",
"the",
"first",
"}",
"else",
"if",
"(",
"i",
"=",
"=",
"0",
")",
"{",
"float",
"width",
"=",
"utils",
"calc",
"text",
"width",
"(",
"m",
"axis",
"label",
"paint",
",",
"label",
")",
";",
"x",
"+",
"=",
"width",
"/",
"2",
";",
"}",
"}",
"draw",
"label",
"(",
"c",
",",
"label",
",",
"x",
",",
"pos",
",",
"anchor",
",",
"label",
"rotation",
"angle",
"degrees",
")",
";",
"}",
"}",
"}"
] |
[
"validation",
"method",
"used",
"by",
"{",
"@",
"code",
"from",
"}",
"to",
"ensure",
"that",
"the",
"domain",
"name",
"is",
"syntactically",
"valid",
"according",
"to",
"rfc",
"1035"
] |
[
"private",
"static",
"boolean",
"validate",
"syntax",
"(",
"list",
"<",
"string",
">",
"parts",
")",
"{",
"final",
"int",
"last",
"index",
"=",
"parts",
"size",
"(",
")",
"-",
"1",
";",
"/",
"/",
"validate",
"the",
"last",
"part",
"specially",
",",
"as",
"it",
"has",
"different",
"syntax",
"rules",
"if",
"(",
"!",
"validate",
"part",
"(",
"parts",
"get",
"(",
"last",
"index",
")",
",",
"true",
")",
")",
"{",
"return",
"false",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"last",
"index",
";",
"i",
"+",
"+",
")",
"{",
"string",
"part",
"=",
"parts",
"get",
"(",
"i",
")",
";",
"if",
"(",
"!",
"validate",
"part",
"(",
"part",
",",
"false",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}"
] |
[
"returns",
"the",
"index",
"of",
"the",
"first",
"event",
"that",
"occurs",
"after",
"a",
"given",
"time",
"(",
"exclusive",
")"
] |
[
"int",
"get",
"next",
"event",
"time",
"index",
"(",
"long",
"time",
"us",
")",
";"
] |
[
"get",
"the",
"high",
"-",
"level",
"function",
"structure",
"associated",
"with",
"these",
"decompilation",
"results",
",",
"or",
"null",
"if",
"there",
"was",
"an",
"error",
"during",
"decompilation"
] |
[
"public",
"high",
"function",
"get",
"high",
"function",
"(",
")",
"{",
"return",
"hfunc",
";",
"}"
] |
[
"enable",
"transient",
"commit",
"log",
"store",
"pool",
"only",
"if",
"transient",
"store",
"pool",
"enable",
"is",
"true",
"and",
"the",
"flush",
"disk",
"type",
"is",
"async",
"flush"
] |
[
"public",
"boolean",
"is",
"transient",
"store",
"pool",
"enable",
"(",
")",
"{",
"return",
"transient",
"store",
"pool",
"enable",
"&",
"&",
"flush",
"disk",
"type",
"async",
"flush",
"=",
"=",
"get",
"flush",
"disk",
"type",
"(",
")",
"&",
"&",
"broker",
"role",
"slave",
"!",
"=",
"get",
"broker",
"role",
"(",
")",
";",
"}"
] |
[
"this",
"method",
"can",
"be",
"overridden",
"to",
"add",
"a",
"(",
"non",
"-",
"blocking",
")",
"state",
"clearing",
"routine",
"to",
"the",
"resource",
"manager",
"that",
"will",
"be",
"called",
"when",
"leadership",
"is",
"revoked"
] |
[
"protected",
"completable",
"future",
"<",
"void",
">",
"clear",
"state",
"async",
"(",
")",
"{",
"return",
"completable",
"future",
"completed",
"future",
"(",
"null",
")",
";",
"}"
] |
[
"returns",
"the",
"engines",
"shard",
"id"
] |
[
"public",
"shard",
"id",
"get",
"shard",
"id",
"(",
")",
"{",
"return",
"shard",
"id",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"nullable",
"shape",
"'"
] |
[
"public",
"void",
"nullable",
"shape",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"nullable",
"shape",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"does",
"nothing"
] |
[
"@",
"override",
"public",
"void",
"enter",
"decimal",
"literal",
"(",
"sql",
"base",
"parser",
"decimal",
"literal",
"context",
"ctx",
")",
"{",
"}"
] |
[
"remove",
"apps",
"that",
"have",
"their",
"preemption",
"requests",
"fulfilled"
] |
[
"private",
"void",
"cleanup",
"preemption",
"list",
"(",
")",
"{",
"/",
"/",
"synchronize",
"separately",
"to",
"avoid",
"potential",
"deadlocks",
"/",
"/",
"this",
"may",
"cause",
"delayed",
"deletion",
"of",
"reservations",
"linked",
"list",
"<",
"f",
"s",
"app",
"attempt",
">",
"candidates",
";",
"synchronized",
"(",
"this",
")",
"{",
"candidates",
"=",
"lists",
"new",
"linked",
"list",
"(",
"resources",
"preempted",
"for",
"app",
"key",
"set",
"(",
")",
")",
";",
"}",
"for",
"(",
"f",
"s",
"app",
"attempt",
"app",
":",
"candidates",
")",
"{",
"if",
"(",
"app",
"is",
"stopped",
"(",
")",
"|",
"|",
"!",
"app",
"is",
"starved",
"(",
")",
"|",
"|",
"(",
"resources",
"is",
"none",
"(",
"app",
"get",
"fairshare",
"starvation",
"(",
")",
")",
"&",
"&",
"resources",
"is",
"none",
"(",
"app",
"get",
"minshare",
"starvation",
"(",
")",
")",
")",
")",
"{",
"/",
"/",
"app",
"does",
"not",
"need",
"more",
"resources",
"synchronized",
"(",
"this",
")",
"{",
"resource",
"removed",
"=",
"resources",
"preempted",
"for",
"app",
"remove",
"(",
"app",
")",
";",
"if",
"(",
"removed",
"!",
"=",
"null",
")",
"{",
"resources",
"subtract",
"from",
"(",
"total",
"resources",
"preempted",
",",
"removed",
")",
";",
"app",
"id",
"to",
"app",
"map",
"remove",
"(",
"app",
"get",
"application",
"attempt",
"id",
"(",
")",
")",
";",
"}",
"}",
"}",
"}",
"}"
] |
[
"set",
"the",
"tree",
"selection"
] |
[
"void",
"set",
"group",
"selection",
"(",
"group",
"path",
"[",
"]",
"paths",
")",
"{",
"tree",
"panel",
"set",
"group",
"selection",
"(",
"paths",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"attribute",
"boolean",
"'"
] |
[
"public",
"void",
"attribute",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"attribute",
"boolean",
"}"
] |
[
"returns",
"the",
"number",
"of",
"key",
"-",
"value",
"mappings",
"in",
"this",
"map"
] |
[
"public",
"int",
"size",
"(",
")",
"{",
"return",
"size",
";",
"}"
] |
[
"the",
"\"",
"bulk",
"\"",
"version",
"of",
"the",
"remainder",
",",
"using",
"byte",
"buffer",
"warning",
":",
"this",
"function",
"will",
"modify",
"the",
"\"",
"dividend",
"\"",
"inputs"
] |
[
"public",
"void",
"remainder",
"(",
"byte",
"buffer",
"[",
"]",
"dividend",
",",
"int",
"[",
"]",
"divisor",
")",
"{",
"int",
"idx",
"1",
",",
"idx",
"2",
";",
"byte",
"buffer",
"b",
"1",
",",
"b",
"2",
";",
"for",
"(",
"int",
"i",
"=",
"dividend",
"length",
"-",
"divisor",
"length",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"divisor",
"length",
";",
"j",
"+",
"+",
")",
"{",
"b",
"1",
"=",
"dividend",
"[",
"i",
"+",
"divisor",
"length",
"-",
"1",
"]",
";",
"b",
"2",
"=",
"dividend",
"[",
"j",
"+",
"i",
"]",
";",
"for",
"(",
"idx",
"1",
"=",
"b",
"1",
"position",
"(",
")",
",",
"idx",
"2",
"=",
"b",
"2",
"position",
"(",
")",
";",
"idx",
"1",
"<",
"b",
"1",
"limit",
"(",
")",
";",
"idx",
"1",
"+",
"+",
",",
"idx",
"2",
"+",
"+",
")",
"{",
"int",
"ratio",
"=",
"div",
"table",
"[",
"b",
"1",
"get",
"(",
"idx",
"1",
")",
"&",
"0x",
"0",
"0",
"f",
"f",
"]",
"[",
"divisor",
"[",
"divisor",
"length",
"-",
"1",
"]",
"]",
";",
"b",
"2",
"put",
"(",
"idx",
"2",
",",
"(",
"byte",
")",
"(",
"(",
"b",
"2",
"get",
"(",
"idx",
"2",
")",
"&",
"0x",
"0",
"0",
"f",
"f",
")",
"^",
"mul",
"table",
"[",
"ratio",
"]",
"[",
"divisor",
"[",
"j",
"]",
"]",
")",
")",
";",
"}",
"}",
"}",
"}"
] |
[
"returns",
"an",
"immutable",
"sorted",
"set",
"containing",
"the",
"given",
"elements",
"sorted",
"by",
"their",
"natural",
"ordering",
"when",
"multiple",
"elements",
"are",
"equivalent",
"according",
"to",
"{",
"@",
"link",
"comparable",
"#",
"compare",
"to",
"}",
",",
"only",
"the",
"first",
"one",
"specified",
"is",
"included"
] |
[
"public",
"static",
"<",
"e",
"extends",
"comparable",
"<",
"?",
"super",
"e",
">",
">",
"immutable",
"sorted",
"set",
"<",
"e",
">",
"of",
"(",
"e",
"e",
"1",
",",
"e",
"e",
"2",
",",
"e",
"e",
"3",
",",
"e",
"e",
"4",
",",
"e",
"e",
"5",
",",
"e",
"e",
"6",
",",
"e",
"remaining",
")",
"{",
"comparable",
"[",
"]",
"contents",
"=",
"new",
"comparable",
"[",
"6",
"+",
"remaining",
"length",
"]",
";",
"contents",
"[",
"0",
"]",
"=",
"e",
"1",
";",
"contents",
"[",
"1",
"]",
"=",
"e",
"2",
";",
"contents",
"[",
"2",
"]",
"=",
"e",
"3",
";",
"contents",
"[",
"3",
"]",
"=",
"e",
"4",
";",
"contents",
"[",
"4",
"]",
"=",
"e",
"5",
";",
"contents",
"[",
"5",
"]",
"=",
"e",
"6",
";",
"system",
"arraycopy",
"(",
"remaining",
",",
"0",
",",
"contents",
",",
"6",
",",
"remaining",
"length",
")",
";",
"return",
"construct",
"(",
"ordering",
"natural",
"(",
")",
",",
"contents",
"length",
",",
"(",
"e",
"[",
"]",
")",
"contents",
")",
";",
"}",
"/",
"/",
"todo",
"(",
"kevinb",
")",
":",
"consider",
"factory",
"methods",
"that",
"reject",
"duplicates"
] |
[
"get",
"the",
"value",
"for",
"a",
"custom",
"option",
"or",
"its",
"inherent",
"default"
] |
[
"public",
"<",
"t",
">",
"t",
"get",
"option",
"(",
"key",
"<",
"t",
">",
"key",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"key",
",",
"\"",
"key",
"\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"custom",
"options",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"key",
"equals",
"(",
"custom",
"options",
"[",
"i",
"]",
"[",
"0",
"]",
")",
")",
"{",
"return",
"(",
"t",
")",
"custom",
"options",
"[",
"i",
"]",
"[",
"1",
"]",
";",
"}",
"}",
"return",
"key",
"default",
"value",
";",
"}"
] |
[
"returns",
"the",
"{",
"@",
"link",
"channel",
"health",
"checker",
"}",
"that",
"will",
"be",
"used",
"to",
"check",
"if",
"a",
"{",
"@",
"link",
"channel",
"}",
"is",
"healthy"
] |
[
"protected",
"channel",
"health",
"checker",
"health",
"checker",
"(",
")",
"{",
"return",
"health",
"check",
";",
"}"
] |
[
"appends",
"a",
"character",
"sequence",
"to",
"this",
"writer"
] |
[
"public",
"writer",
"append",
"(",
"final",
"char",
"sequence",
"value",
")",
"{",
"builder",
"append",
"(",
"value",
")",
";",
"return",
"this",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"long",
"elapsed",
"millis",
"0",
"(",
"final",
"long",
"start",
"time",
",",
"final",
"long",
"end",
"time",
")",
"{",
"return",
"end",
"time",
"-",
"start",
"time",
";",
"}"
] |
[
"return",
"true",
"if",
"log",
"append",
"time",
"is",
"being",
"used",
"for",
"this",
"topic"
] |
[
"public",
"boolean",
"has",
"log",
"append",
"time",
"(",
")",
"{",
"return",
"log",
"append",
"time",
"!",
"=",
"record",
"batch",
"no",
"timestamp",
";",
"}"
] |
[
"if",
"there",
"'",
"s",
"a",
"bug",
"in",
"builder",
"growth",
",",
"we",
"wouldn",
"'",
"t",
"know",
"how",
"to",
"expose",
"it",
"so",
",",
"brute",
"force",
"the",
"hell",
"out",
"of",
"it",
"for",
"a",
"while",
"and",
"see",
"what",
"happens"
] |
[
"public",
"void",
"test",
"builder",
"brute",
"force",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"reduce",
"iterations",
"if",
"gwt",
"(",
"100",
")",
";",
"i",
"+",
"+",
")",
"{",
"immutable",
"long",
"array",
"builder",
"builder",
"=",
"immutable",
"long",
"array",
"builder",
"(",
"random",
"next",
"int",
"(",
"20",
")",
")",
";",
"atomic",
"long",
"counter",
"=",
"new",
"atomic",
"long",
"(",
"0",
")",
";",
"while",
"(",
"counter",
"get",
"(",
")",
"<",
"1000",
")",
"{",
"builder",
"op",
"op",
"=",
"builder",
"op",
"random",
"op",
"(",
")",
";",
"op",
"do",
"it",
"(",
"builder",
",",
"counter",
")",
";",
"}",
"immutable",
"long",
"array",
"iia",
"=",
"builder",
"build",
"(",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"iia",
"length",
"(",
")",
";",
"j",
"+",
"+",
")",
"{",
"assert",
"that",
"(",
"iia",
"get",
"(",
"j",
")",
")",
"is",
"equal",
"to",
"(",
"(",
"long",
")",
"j",
")",
";",
"}",
"}",
"}"
] |
[
"set",
"the",
"resource",
"information",
"object",
"for",
"a",
"particular",
"resource"
] |
[
"public",
"void",
"set",
"resource",
"information",
"(",
"int",
"index",
",",
"resource",
"information",
"resource",
"information",
")",
"throws",
"resource",
"not",
"found",
"exception",
"{",
"if",
"(",
"index",
"<",
"0",
"|",
"|",
"index",
">",
"=",
"resources",
"length",
")",
"{",
"throw",
"exception",
"when",
"array",
"out",
"of",
"bound",
"(",
"index",
")",
";",
"}",
"resource",
"information",
"copy",
"(",
"resource",
"information",
",",
"resources",
"[",
"index",
"]",
")",
";",
"}"
] |
[
"set",
"r",
"m",
"context",
"for",
"{",
"@",
"link",
"reservation",
"system",
"}",
"this",
"method",
"should",
"be",
"called",
"immediately",
"after",
"instantiating",
"a",
"reservation",
"system",
"once"
] |
[
"void",
"set",
"r",
"m",
"context",
"(",
"r",
"m",
"context",
"rm",
"context",
")",
";"
] |
[
"pushes",
"the",
"g",
"tree",
"nodes",
"in",
"the",
"specified",
"tree",
"path",
"array",
"to",
"the",
"clipboard"
] |
[
"public",
"static",
"void",
"set",
"clipboard",
"contents",
"(",
"data",
"tree",
"tree",
",",
"tree",
"path",
"[",
"]",
"paths",
")",
"{",
"clear",
"cuttables",
"(",
")",
";",
"clipboard",
"clipboard",
"=",
"g",
"clipboard",
"get",
"system",
"clipboard",
"(",
")",
";",
"list",
"<",
"g",
"tree",
"node",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"tree",
"path",
"element",
":",
"paths",
")",
"{",
"g",
"tree",
"node",
"node",
"=",
"(",
"g",
"tree",
"node",
")",
"element",
"get",
"last",
"path",
"component",
"(",
")",
";",
"list",
"add",
"(",
"node",
")",
";",
"}",
"g",
"tree",
"node",
"transferable",
"contents",
"=",
"new",
"g",
"tree",
"node",
"transferable",
"(",
"tree",
"get",
"drag",
"n",
"drop",
"handler",
"(",
")",
",",
"list",
")",
";",
"try",
"{",
"clipboard",
"set",
"contents",
"(",
"contents",
",",
"datatree",
"clipboard",
"owner",
")",
";",
"}",
"catch",
"(",
"illegal",
"state",
"exception",
"ise",
")",
"{",
"/",
"/",
"this",
"can",
"happen",
"when",
"other",
"applications",
"are",
"accessing",
"the",
"system",
"clipboard",
"msg",
"show",
"error",
"(",
"data",
"tree",
"clipboard",
"utils",
"class",
",",
"tree",
",",
"\"",
"unable",
"to",
"access",
"clipboard",
"\"",
",",
"\"",
"unable",
"to",
"perform",
"cut",
"/",
"copy",
"operation",
"on",
"the",
"system",
"clipboard",
"the",
"\"",
"+",
"\"",
"clipboard",
"may",
"just",
"be",
"busy",
"at",
"this",
"time",
"please",
"try",
"again",
"\"",
")",
";",
"}",
"}"
] |
[
"allows",
"checking",
"if",
"given",
"method",
"was",
"the",
"only",
"one",
"invoked",
"e",
"g",
":",
"<",
"pre",
"class",
"=",
"\"",
"code",
"\"",
">",
"<",
"code",
"class",
"=",
"\"",
"java",
"\"",
">",
"verify",
"(",
"mock",
",",
"only",
"(",
")",
")",
"some",
"method",
"(",
")",
";",
"above",
"is",
"a",
"shorthand",
"for",
"following",
"2",
"lines",
"of",
"code",
":",
"verify",
"(",
"mock",
")",
"some",
"method",
"(",
")",
";",
"verify",
"no",
"more",
"interactions",
"(",
"mock",
")",
";",
"<",
"code",
">",
"see",
"also",
"{",
"@",
"link",
"mockito",
"#",
"verify",
"no",
"more",
"interactions",
"(",
"object",
")",
"}",
"see",
"examples",
"in",
"javadoc",
"for",
"{",
"@",
"link",
"mockito",
"}",
"class"
] |
[
"public",
"static",
"verification",
"mode",
"only",
"(",
")",
"{",
"return",
"verification",
"mode",
"factory",
"only",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"file",
"system",
"access",
"<",
"code",
">",
"job",
"conf",
"<",
"code",
">",
"preconfigured",
"with",
"the",
"file",
"system",
"access",
"cluster",
"settings",
"for",
"testing",
"this",
"configuration",
"is",
"only",
"available",
"when",
"the",
"test",
"method",
"has",
"been",
"annotated",
"with",
"{",
"@",
"link",
"test",
"hdfs",
"}",
"refer",
"to",
"{",
"@",
"link",
"h",
"test",
"case",
"}",
"header",
"for",
"details",
")"
] |
[
"public",
"static",
"configuration",
"get",
"hdfs",
"conf",
"(",
")",
"{",
"configuration",
"conf",
"=",
"hdfs",
"conf",
"tl",
"get",
"(",
")",
";",
"if",
"(",
"conf",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"this",
"test",
"does",
"not",
"use",
"@",
"test",
"hdfs",
"\"",
")",
";",
"}",
"return",
"new",
"configuration",
"(",
"conf",
")",
";",
"}"
] |
[
"convert",
"a",
"os",
"-",
"native",
"filename",
"to",
"a",
"path",
"that",
"works",
"for",
"the",
"shell"
] |
[
"public",
"static",
"string",
"make",
"shell",
"path",
"(",
"string",
"filename",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"filename",
";",
"}"
] |
[
"gets",
"the",
"string",
"to",
"be",
"displayed",
"the",
"convention",
"is",
"to",
"capitalize",
"the",
"first",
"letter",
"of",
"each",
"word",
",",
"such",
"as",
"\"",
"test",
"result",
"\""
] |
[
"@",
"check",
"for",
"null",
"string",
"get",
"display",
"name",
"(",
")",
";"
] |
[
"with",
"a",
"specified",
"key",
",",
"route",
"the",
"nearest",
"node",
"instance",
"in",
"the",
"current",
"hash",
"ring"
] |
[
"public",
"t",
"route",
"node",
"(",
"string",
"object",
"key",
")",
"{",
"if",
"(",
"ring",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"long",
"hash",
"val",
"=",
"hash",
"function",
"hash",
"(",
"object",
"key",
")",
";",
"sorted",
"map",
"<",
"long",
",",
"virtual",
"node",
"<",
"t",
">",
">",
"tail",
"map",
"=",
"ring",
"tail",
"map",
"(",
"hash",
"val",
")",
";",
"long",
"node",
"hash",
"val",
"=",
"!",
"tail",
"map",
"is",
"empty",
"(",
")",
"?",
"tail",
"map",
"first",
"key",
"(",
")",
":",
"ring",
"first",
"key",
"(",
")",
";",
"return",
"ring",
"get",
"(",
"node",
"hash",
"val",
")",
"get",
"physical",
"node",
"(",
")",
";",
"}"
] |
[
"from",
"base",
"6",
"4",
"string"
] |
[
"public",
"static",
"byte",
"[",
"]",
"base",
"6",
"4",
"2bytes",
"(",
"string",
"str",
",",
"char",
"[",
"]",
"code",
")",
"{",
"return",
"base",
"6",
"4",
"2bytes",
"(",
"str",
",",
"0",
",",
"str",
"length",
"(",
")",
",",
"code",
")",
";",
"}"
] |
[
"extracts",
"the",
"throwable",
"from",
"the",
"notification",
"object"
] |
[
"public",
"static",
"throwable",
"get",
"error",
"(",
"object",
"o",
")",
"{",
"return",
"(",
"(",
"error",
"notification",
")",
"o",
")",
"e",
";",
"}"
] |
[
"creates",
"a",
"new",
"{",
"@",
"link",
"readable",
"buffer",
"}",
"that",
"is",
"backed",
"by",
"the",
"given",
"byte",
"array"
] |
[
"public",
"static",
"readable",
"buffer",
"wrap",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"return",
"new",
"byte",
"array",
"wrapper",
"(",
"bytes",
",",
"offset",
",",
"length",
")",
";",
"}"
] |
[
"loads",
"the",
"native",
"bullet",
"native",
"library",
"and",
"initializes",
"the",
"gdx",
"-",
"bullet",
"extension",
"must",
"be",
"called",
"before",
"any",
"of",
"the",
"bullet",
"classesmethods",
"can",
"be",
"used"
] |
[
"public",
"static",
"void",
"init",
"(",
")",
"{",
"init",
"(",
"false",
")",
";",
"}"
] |
[
"notfication",
"when",
"the",
"layout",
"algorithm",
"starts",
"and",
"stops"
] |
[
"private",
"void",
"layout",
"state",
"changed",
"(",
"event",
"e",
")",
"{",
"if",
"(",
"!",
"e",
"active",
")",
"{",
"/",
"/",
"algorithm",
"is",
"done",
",",
"release",
"the",
"latch",
"task",
"done",
"count",
"down",
"(",
")",
";",
"}",
"}"
] |
[
"convenient",
"call",
"for",
"{",
"@",
"link",
"org",
"greenrobot",
"greendao",
"abstract",
"dao",
"#",
"update",
"(",
"object",
")",
"}",
"entity",
"must",
"attached",
"to",
"an",
"entity",
"context"
] |
[
"public",
"void",
"update",
"(",
")",
"{",
"if",
"(",
"my",
"dao",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"dao",
"exception",
"(",
"\"",
"entity",
"is",
"detached",
"from",
"dao",
"context",
"\"",
")",
";",
"}",
"my",
"dao",
"update",
"(",
"this",
")",
";",
"}"
] |
[
"returns",
"the",
"version",
"child",
"size"
] |
[
"public",
"short",
"get",
"child",
"size",
"(",
")",
"{",
"return",
"child",
"size",
";",
"}"
] |
[
"returns",
"true",
"if",
"the",
"specified",
"{",
"@",
"link",
"data",
"type",
"}",
"(",
"or",
"if",
"its",
"a",
"pointer",
",",
"the",
"pointed",
"to",
"data",
"type",
")",
"is",
"a",
"data",
"type",
"that",
"did",
"not",
"have",
"a",
"name",
"and",
"was",
"assigned",
"an",
"name",
"in",
"the",
"form",
"\"",
"anon",
"datatype",
"\""
] |
[
"private",
"static",
"boolean",
"is",
"anon",
"data",
"type",
"(",
"d",
"w",
"a",
"r",
"f",
"data",
"type",
"ddt",
")",
"{",
"if",
"(",
"ddt",
"dni",
"!",
"=",
"null",
"&",
"&",
"ddt",
"dni",
"is",
"anon",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"data",
"type",
"named",
"type",
"=",
"data",
"type",
"utils",
"get",
"named",
"base",
"data",
"type",
"(",
"ddt",
"data",
"type",
")",
";",
"return",
"named",
"type",
"get",
"name",
"(",
")",
"starts",
"with",
"(",
"\"",
"anon",
"\"",
")",
";",
"}"
] |
[
"get",
"old",
"value",
"of",
"property",
"that",
"cannot",
"be",
"changed"
] |
[
"public",
"string",
"get",
"old",
"value",
"(",
")",
"{",
"return",
"old",
"val",
";",
"}"
] |
[
"called",
"if",
"exception",
"occurred",
"during",
"computation"
] |
[
"protected",
"void",
"on",
"failure",
"(",
"exception",
"e",
")",
"{",
"}"
] |
[
"return",
"a",
"{",
"@",
"link",
"comparable",
"}",
"adapter",
"which",
"accepts",
"null",
"values",
"and",
"sorts",
"them",
"lower",
"than",
"non",
"-",
"null",
"values"
] |
[
"public",
"static",
"<",
"t",
">",
"comparator",
"<",
"t",
">",
"nulls",
"low",
"(",
")",
"{",
"return",
"null",
"safe",
"comparator",
"nulls",
"low",
";",
"}"
] |
[
"registers",
"a",
"file",
"at",
"the",
"distributed",
"cache",
"under",
"the",
"given",
"name",
"the",
"file",
"will",
"be",
"accessible",
"from",
"any",
"user",
"-",
"defined",
"function",
"in",
"the",
"(",
"distributed",
")",
"runtime",
"under",
"a",
"local",
"path",
"files",
"may",
"be",
"local",
"files",
"(",
"which",
"will",
"be",
"distributed",
"via",
"blob",
"server",
")",
",",
"or",
"files",
"in",
"a",
"distributed",
"file",
"system",
"the",
"runtime",
"will",
"copy",
"the",
"files",
"temporarily",
"to",
"a",
"local",
"cache",
",",
"if",
"needed",
"the",
"{",
"@",
"link",
"org",
"apache",
"flink",
"api",
"common",
"functions",
"runtime",
"context",
"}",
"can",
"be",
"obtained",
"inside",
"u",
"d",
"fs",
"via",
"{",
"@",
"link",
"org",
"apache",
"flink",
"api",
"common",
"functions",
"rich",
"function",
"#",
"get",
"runtime",
"context",
"(",
")",
"}",
"and",
"provides",
"access",
"{",
"@",
"link",
"org",
"apache",
"flink",
"api",
"common",
"cache",
"distributed",
"cache",
"}",
"via",
"{",
"@",
"link",
"org",
"apache",
"flink",
"api",
"common",
"functions",
"runtime",
"context",
"#",
"get",
"distributed",
"cache",
"(",
")",
"}"
] |
[
"public",
"void",
"register",
"cached",
"file",
"(",
"string",
"file",
"path",
",",
"string",
"name",
")",
"{",
"register",
"cached",
"file",
"(",
"file",
"path",
",",
"name",
",",
"false",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"gets",
"available",
"authentication",
"handle",
"names"
] |
[
"public",
"static",
"collection",
"<",
"string",
">",
"get",
"available",
"authentication",
"handle",
"names",
"(",
"final",
"request",
"context",
"context",
")",
"{",
"return",
"context",
"get",
"flow",
"scope",
"(",
")",
"get",
"(",
"\"",
"available",
"authentication",
"handler",
"names",
"\"",
",",
"collection",
"class",
")",
";",
"}"
] |
[
"clean",
"up",
"resources",
"held",
"by",
"this",
"type",
"value",
",",
"for",
"example",
"the",
"lob",
"creator",
"in",
"case",
"of",
"an",
"sql",
"lob",
"value"
] |
[
"void",
"cleanup",
"(",
")",
";"
] |
[
"return",
"the",
"r2dbc",
"{",
"@",
"link",
"connection",
"factory",
"}",
"that",
"this",
"instance",
"manages",
"transactions",
"for"
] |
[
"public",
"connection",
"factory",
"get",
"connection",
"factory",
"(",
")",
"{",
"return",
"this",
"connection",
"factory",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"type",
"get",
"type",
"(",
")",
"{",
"return",
"type",
"return",
"address",
";",
"}"
] |
[
"displays",
"the",
"given",
"array",
"of",
"text",
",",
"each",
"on",
"its",
"own",
"line"
] |
[
"public",
"static",
"listing",
"text",
"field",
"create",
"multiline",
"text",
"field",
"(",
"field",
"factory",
"factory",
",",
"proxy",
"obj",
"proxy",
",",
"field",
"element",
"[",
"]",
"text",
"elements",
",",
"int",
"start",
"x",
",",
"int",
"width",
",",
"int",
"max",
"lines",
",",
"highlight",
"provider",
"provider",
")",
"{",
"highlight",
"factory",
"hl",
"factory",
"=",
"new",
"field",
"highlight",
"factory",
"(",
"provider",
",",
"factory",
"get",
"class",
"(",
")",
",",
"proxy",
"get",
"object",
"(",
")",
")",
";",
"text",
"field",
"field",
"=",
"new",
"vertical",
"layout",
"text",
"field",
"(",
"text",
"elements",
",",
"start",
"x",
",",
"width",
",",
"max",
"lines",
",",
"hl",
"factory",
")",
";",
"return",
"new",
"listing",
"text",
"field",
"(",
"factory",
",",
"proxy",
",",
"field",
")",
";",
"}"
] |
[
"override",
"the",
"names",
"of",
"the",
"vpx",
"native",
"libraries",
"if",
"an",
"application",
"wishes",
"to",
"call",
"this",
"method",
",",
"it",
"must",
"do",
"so",
"before",
"calling",
"any",
"other",
"method",
"defined",
"by",
"this",
"class",
",",
"and",
"before",
"instantiating",
"a",
"{",
"@",
"link",
"libvpx",
"video",
"renderer",
"}",
"instance"
] |
[
"public",
"static",
"void",
"set",
"libraries",
"(",
"class",
"<",
"?",
"extends",
"exo",
"media",
"crypto",
">",
"exo",
"media",
"crypto",
"type",
",",
"string",
"libraries",
")",
"{",
"loader",
"set",
"libraries",
"(",
"libraries",
")",
";",
"vpx",
"library",
"exo",
"media",
"crypto",
"type",
"=",
"exo",
"media",
"crypto",
"type",
";",
"}"
] |
[
"sets",
"the",
"tool",
"name",
"that",
"should",
"be",
"used",
"to",
"open",
"files",
"for",
"the",
"content",
"type",
"represented",
"by",
"this",
"tool",
"association"
] |
[
"public",
"void",
"set",
"current",
"tool",
"(",
"tool",
"template",
"tool",
"template",
")",
"{",
"this",
"current",
"template",
"=",
"tool",
"template",
";",
"this",
"associated",
"tool",
"name",
"=",
"tool",
"template",
"get",
"name",
"(",
")",
";",
"}"
] |
[
"creates",
"an",
"index",
"{",
"@",
"code",
"immutable",
"list",
"multimap",
"}",
"that",
"contains",
"the",
"results",
"of",
"applying",
"a",
"specified",
"function",
"to",
"each",
"item",
"in",
"this",
"{",
"@",
"code",
"fluent",
"iterable",
"}",
"of",
"values",
"each",
"element",
"of",
"this",
"iterable",
"will",
"be",
"stored",
"as",
"a",
"value",
"in",
"the",
"resulting",
"multimap",
",",
"yielding",
"a",
"multimap",
"with",
"the",
"same",
"size",
"as",
"this",
"iterable",
"the",
"key",
"used",
"to",
"store",
"that",
"value",
"in",
"the",
"multimap",
"will",
"be",
"the",
"result",
"of",
"calling",
"the",
"function",
"on",
"that",
"value",
"the",
"resulting",
"multimap",
"is",
"created",
"as",
"an",
"immutable",
"snapshot",
"in",
"the",
"returned",
"multimap",
",",
"keys",
"appear",
"in",
"the",
"order",
"they",
"are",
"first",
"encountered",
",",
"and",
"the",
"values",
"corresponding",
"to",
"each",
"key",
"appear",
"in",
"the",
"same",
"order",
"as",
"they",
"are",
"encountered",
"<",
"b",
">",
"{",
"@",
"code",
"stream",
"}",
"equivalent",
":",
"<",
"b",
">",
"{",
"@",
"code",
"stream",
"collect",
"(",
"collectors",
"grouping",
"by",
"(",
"key",
"function",
")",
")",
"}",
"behaves",
"similarly",
",",
"but",
"returns",
"a",
"mutable",
"{",
"@",
"code",
"map",
"<",
"k",
",",
"list",
"<",
"e",
">",
">",
"}",
"instead",
",",
"and",
"may",
"not",
"preserve",
"the",
"order",
"of",
"entries"
] |
[
"public",
"final",
"<",
"k",
">",
"immutable",
"list",
"multimap",
"<",
"k",
",",
"e",
">",
"index",
"(",
"function",
"<",
"?",
"super",
"e",
",",
"k",
">",
"key",
"function",
")",
"{",
"return",
"multimaps",
"index",
"(",
"get",
"delegate",
"(",
")",
",",
"key",
"function",
")",
";",
"}"
] |
[
"required",
"one",
"or",
"more",
"hosts",
"exposed",
"by",
"this",
"gateway",
"while",
"typically",
"applicable",
"to",
"http",
"services",
",",
"it",
"can",
"also",
"be",
"used",
"for",
"tcp",
"services",
"using",
"tls",
"with",
"sni",
"a",
"host",
"is",
"specified",
"as",
"a",
"`",
"dns",
"name",
"`",
"with",
"an",
"optional",
"`",
"namespace",
"`",
"prefix",
"the",
"`",
"dns",
"name",
"`",
"should",
"be",
"specified",
"using",
"fqdn",
"format",
",",
"optionally",
"including",
"a",
"wildcard",
"character",
"in",
"the",
"left",
"-",
"most",
"component",
"(",
"e",
"g",
",",
"`",
"prod",
"&",
"#",
"42",
";",
"example",
"com",
"`",
")",
"set",
"the",
"`",
"dns",
"name",
"`",
"to",
"`",
"`",
"to",
"select",
"all",
"`",
"virtual",
"service",
"`",
"hosts",
"from",
"the",
"specified",
"namespace",
"(",
"e",
"g",
",",
"`",
"prod",
"&",
"#",
"42",
";",
"`",
")",
"the",
"`",
"namespace",
"`",
"can",
"be",
"set",
"to",
"`",
"`",
"or",
"`",
"`",
",",
"representing",
"any",
"or",
"the",
"current",
"namespace",
",",
"respectively",
"for",
"example",
",",
"`",
"&",
"#",
"47",
";",
"foo",
"example",
"com",
"`",
"selects",
"the",
"service",
"from",
"any",
"available",
"namespace",
"while",
"`",
"foo",
"example",
"com",
"`",
"only",
"selects",
"the",
"service",
"from",
"the",
"namespace",
"of",
"the",
"sidecar",
"the",
"default",
",",
"if",
"no",
"`",
"namespace",
"`",
"is",
"specified",
",",
"is",
"`",
"&",
"#",
"47",
";",
"`",
",",
"that",
"is",
",",
"select",
"services",
"from",
"any",
"namespace",
"any",
"associated",
"`",
"destination",
"rule",
"`",
"in",
"the",
"selected",
"namespace",
"will",
"also",
"be",
"used",
"a",
"`",
"virtual",
"service",
"`",
"must",
"be",
"bound",
"to",
"the",
"gateway",
"and",
"must",
"have",
"one",
"or",
"more",
"hosts",
"that",
"match",
"the",
"hosts",
"specified",
"in",
"a",
"server",
"the",
"match",
"could",
"be",
"an",
"exact",
"match",
"or",
"a",
"suffix",
"match",
"with",
"the",
"server",
"'",
"s",
"hosts",
"for",
"example",
",",
"if",
"the",
"server",
"'",
"s",
"hosts",
"specifies",
"`",
"example",
"com",
"`",
",",
"a",
"`",
"virtual",
"service",
"`",
"with",
"hosts",
"`",
"dev",
"example",
"com",
"`",
"or",
"`",
"prod",
"example",
"com",
"`",
"will",
"match",
"however",
",",
"a",
"`",
"virtual",
"service",
"`",
"with",
"host",
"`",
"example",
"com",
"`",
"or",
"`",
"newexample",
"com",
"`",
"will",
"not",
"match",
"note",
":",
"only",
"virtual",
"services",
"exported",
"to",
"the",
"gateway",
"'",
"s",
"namespace",
"(",
"e",
"g",
",",
"`",
"export",
"to",
"`",
"value",
"of",
"`",
"`",
")",
"can",
"be",
"referenced",
"private",
"configurations",
"(",
"e",
"g",
",",
"`",
"export",
"to",
"`",
"set",
"to",
"`",
"`",
")",
"will",
"not",
"be",
"available",
"refer",
"to",
"the",
"`",
"export",
"to",
"`",
"setting",
"in",
"`",
"virtual",
"service",
"`",
",",
"`",
"destination",
"rule",
"`",
",",
"and",
"`",
"service",
"entry",
"`",
"configurations",
"for",
"details",
"<",
"code",
">",
"repeated",
"string",
"hosts",
"=",
"2",
";",
"<",
"code",
">"
] |
[
"public",
"int",
"get",
"hosts",
"count",
"(",
")",
"{",
"return",
"hosts",
"size",
"(",
")",
";",
"}"
] |
[
"parses",
"arguments",
"and",
"fills",
"out",
"the",
"member",
"variables"
] |
[
"private",
"boolean",
"parse",
"arguments",
"(",
"string",
"[",
"]",
"args",
")",
"{",
"options",
"options",
"=",
"make",
"options",
"(",
")",
";",
"command",
"line",
"cli",
";",
"try",
"{",
"command",
"line",
"parser",
"parser",
"=",
"new",
"gnu",
"parser",
"(",
")",
";",
"cli",
"=",
"parser",
"parse",
"(",
"options",
",",
"args",
")",
";",
"}",
"catch",
"(",
"parse",
"exception",
"e",
")",
"{",
"log",
"warn",
"(",
"\"",
"options",
"parsing",
"failed",
"\"",
",",
"e",
")",
";",
"new",
"help",
"formatter",
"(",
")",
"print",
"help",
"(",
"\"",
"\"",
",",
"options",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"cli",
"has",
"option",
"(",
"\"",
"help",
"\"",
")",
")",
"{",
"new",
"help",
"formatter",
"(",
")",
"print",
"help",
"(",
"\"",
"\"",
",",
"options",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"cli",
"get",
"args",
"(",
")",
"length",
">",
"0",
")",
"{",
"for",
"(",
"string",
"arg",
":",
"cli",
"get",
"args",
"(",
")",
")",
"{",
"log",
"error",
"(",
"\"",
"unrecognized",
"option",
":",
"{",
"}",
"\"",
",",
"arg",
")",
";",
"new",
"help",
"formatter",
"(",
")",
"print",
"help",
"(",
"\"",
"\"",
",",
"options",
")",
";",
"return",
"false",
";",
"}",
"}",
"/",
"/",
"hdfs",
"num",
"data",
"nodes",
"=",
"int",
"argument",
"(",
"cli",
",",
"\"",
"datanodes",
"\"",
",",
"1",
")",
";",
"name",
"node",
"port",
"=",
"int",
"argument",
"(",
"cli",
",",
"\"",
"nnport",
"\"",
",",
"0",
")",
";",
"name",
"node",
"http",
"port",
"=",
"int",
"argument",
"(",
"cli",
",",
"\"",
"httpport",
"\"",
",",
"0",
")",
";",
"if",
"(",
"cli",
"has",
"option",
"(",
"\"",
"format",
"\"",
")",
")",
"{",
"dfs",
"opts",
"=",
"startup",
"option",
"format",
";",
"format",
"=",
"true",
";",
"}",
"else",
"{",
"dfs",
"opts",
"=",
"startup",
"option",
"regular",
";",
"format",
"=",
"false",
";",
"}",
"/",
"/",
"runner",
"write",
"details",
"=",
"cli",
"get",
"option",
"value",
"(",
"\"",
"write",
"details",
"\"",
")",
";",
"write",
"config",
"=",
"cli",
"get",
"option",
"value",
"(",
"\"",
"write",
"config",
"\"",
")",
";",
"/",
"/",
"general",
"conf",
"=",
"new",
"hdfs",
"configuration",
"(",
")",
";",
"update",
"configuration",
"(",
"conf",
",",
"cli",
"get",
"option",
"values",
"(",
"\"",
"d",
"\"",
")",
")",
";",
"return",
"true",
";",
"}"
] |
[
"return",
"a",
"set",
"of",
"server",
"default",
"configuration",
"values"
] |
[
"public",
"fs",
"server",
"defaults",
"get",
"server",
"defaults",
"(",
"path",
"p",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"get",
"server",
"defaults",
"(",
")",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"because",
"a",
"{",
"@",
"code",
"tree",
"based",
"table",
"}",
"has",
"unique",
"sorted",
"values",
"for",
"a",
"given",
"row",
",",
"this",
"method",
"returns",
"a",
"{",
"@",
"link",
"sorted",
"map",
"}",
",",
"instead",
"of",
"the",
"{",
"@",
"link",
"map",
"}",
"specified",
"in",
"the",
"{",
"@",
"link",
"table",
"}",
"interface"
] |
[
"public",
"sorted",
"map",
"<",
"c",
",",
"v",
">",
"row",
"(",
"r",
"row",
"key",
")",
"{",
"return",
"new",
"tree",
"row",
"(",
"row",
"key",
")",
";",
"}"
] |
[
"returns",
"true",
"only",
"if",
"the",
"next",
"buffer",
"is",
"an",
"event",
"or",
"the",
"reader",
"has",
"both",
"available",
"credits",
"and",
"buffers",
"@",
"impl",
"spec",
"beware",
":",
"this",
"must",
"be",
"in",
"sync",
"with",
"{",
"@",
"link",
"#",
"get",
"next",
"data",
"type",
"(",
"buffer",
"and",
"backlog",
")",
"}",
",",
"such",
"that",
"{",
"@",
"code",
"get",
"next",
"data",
"type",
"(",
"buffer",
"and",
"backlog",
")",
"!",
"=",
"none",
"<",
"=",
">",
"is",
"available",
"(",
")",
"}",
"!"
] |
[
"public",
"boolean",
"is",
"available",
"(",
")",
"{",
"return",
"subpartition",
"view",
"is",
"available",
"(",
"num",
"credits",
"available",
")",
";",
"}"
] |
[
"set",
"the",
"an",
"option",
"under",
"the",
"configuration",
"via",
"the",
"{",
"@",
"link",
"credential",
"provider",
"factory",
"}",
"a",
"p",
"is"
] |
[
"void",
"set",
"provider",
"option",
"(",
"final",
"configuration",
"conf",
",",
"string",
"option",
",",
"string",
"value",
")",
"throws",
"exception",
"{",
"/",
"/",
"add",
"our",
"password",
"to",
"the",
"provider",
"final",
"credential",
"provider",
"provider",
"=",
"credential",
"provider",
"factory",
"get",
"providers",
"(",
"conf",
")",
"get",
"(",
"0",
")",
";",
"provider",
"create",
"credential",
"entry",
"(",
"option",
",",
"value",
"to",
"char",
"array",
"(",
")",
")",
";",
"provider",
"flush",
"(",
")",
";",
"}"
] |
[
"a",
"corollary",
"to",
"{",
"@",
"link",
"#",
"join",
"lines",
"(",
"string",
"[",
"]",
")",
"}",
"for",
"collections"
] |
[
"public",
"static",
"string",
"join",
"lines",
"(",
"collection",
"<",
"string",
">",
"lines",
")",
"{",
"return",
"newline",
"joiner",
"join",
"(",
"lines",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"request",
"builder",
"instance",
"with",
"the",
"same",
"parameters",
"as",
"the",
"image",
"request",
"passed",
"in"
] |
[
"public",
"static",
"image",
"request",
"builder",
"from",
"request",
"(",
"image",
"request",
"image",
"request",
")",
"{",
"return",
"image",
"request",
"builder",
"new",
"builder",
"with",
"source",
"(",
"image",
"request",
"get",
"source",
"uri",
"(",
")",
")",
"set",
"image",
"decode",
"options",
"(",
"image",
"request",
"get",
"image",
"decode",
"options",
"(",
")",
")",
"set",
"bytes",
"range",
"(",
"image",
"request",
"get",
"bytes",
"range",
"(",
")",
")",
"set",
"cache",
"choice",
"(",
"image",
"request",
"get",
"cache",
"choice",
"(",
")",
")",
"set",
"local",
"thumbnail",
"previews",
"enabled",
"(",
"image",
"request",
"get",
"local",
"thumbnail",
"previews",
"enabled",
"(",
")",
")",
"set",
"lowest",
"permitted",
"request",
"level",
"(",
"image",
"request",
"get",
"lowest",
"permitted",
"request",
"level",
"(",
")",
")",
"set",
"postprocessor",
"(",
"image",
"request",
"get",
"postprocessor",
"(",
")",
")",
"set",
"progressive",
"rendering",
"enabled",
"(",
"image",
"request",
"get",
"progressive",
"rendering",
"enabled",
"(",
")",
")",
"set",
"request",
"priority",
"(",
"image",
"request",
"get",
"priority",
"(",
")",
")",
"set",
"resize",
"options",
"(",
"image",
"request",
"get",
"resize",
"options",
"(",
")",
")",
"set",
"request",
"listener",
"(",
"image",
"request",
"get",
"request",
"listener",
"(",
")",
")",
"set",
"rotation",
"options",
"(",
"image",
"request",
"get",
"rotation",
"options",
"(",
")",
")",
"set",
"should",
"decode",
"prefetches",
"(",
"image",
"request",
"should",
"decode",
"prefetches",
"(",
")",
")",
"set",
"delay",
"ms",
"(",
"image",
"request",
"get",
"delay",
"ms",
"(",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"count",
"of",
"events",
"since",
"the",
"last",
"report"
] |
[
"public",
"number",
"get",
"metric",
"value",
"(",
")",
"{",
"long",
"current",
"count",
"=",
"counter",
"get",
"count",
"(",
")",
";",
"long",
"difference",
"=",
"current",
"count",
"-",
"last",
"report",
"count",
";",
"current",
"report",
"count",
"=",
"current",
"count",
";",
"return",
"difference",
";",
"}"
] |
[
"find",
"a",
"header",
"value",
"holder",
"by",
"name",
",",
"ignoring",
"casing"
] |
[
"public",
"static",
"header",
"value",
"holder",
"get",
"by",
"name",
"(",
"map",
"<",
"string",
",",
"header",
"value",
"holder",
">",
"headers",
",",
"string",
"name",
")",
"{",
"assert",
"not",
"null",
"(",
"name",
",",
"\"",
"header",
"name",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"for",
"(",
"string",
"header",
"name",
":",
"headers",
"key",
"set",
"(",
")",
")",
"{",
"if",
"(",
"header",
"name",
"equals",
"ignore",
"case",
"(",
"name",
")",
")",
"{",
"return",
"headers",
"get",
"(",
"header",
"name",
")",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"find",
"a",
"java",
"beans",
"property",
"editor",
"following",
"the",
"'",
"editor",
"'",
"suffix",
"convention",
"(",
"e",
"g",
"\"",
"mypackage",
"my",
"domain",
"class",
"\"",
"-",
">",
"\"",
"mypackage",
"my",
"domain",
"class",
"editor",
"\"",
")",
"compatible",
"to",
"the",
"standard",
"java",
"beans",
"convention",
"as",
"implemented",
"by",
"{",
"@",
"link",
"java",
"beans",
"property",
"editor",
"manager",
"}",
"but",
"isolated",
"from",
"the",
"latter",
"'",
"s",
"registered",
"default",
"editors",
"for",
"primitive",
"types"
] |
[
"public",
"static",
"property",
"editor",
"find",
"editor",
"by",
"convention",
"(",
"@",
"nullable",
"class",
"<",
"?",
">",
"target",
"type",
")",
"{",
"if",
"(",
"target",
"type",
"=",
"=",
"null",
"|",
"|",
"target",
"type",
"is",
"array",
"(",
")",
"|",
"|",
"unknown",
"editor",
"types",
"contains",
"(",
"target",
"type",
")",
")",
"{",
"return",
"null",
";",
"}",
"class",
"loader",
"cl",
"=",
"target",
"type",
"get",
"class",
"loader",
"(",
")",
";",
"if",
"(",
"cl",
"=",
"=",
"null",
")",
"{",
"try",
"{",
"cl",
"=",
"class",
"loader",
"get",
"system",
"class",
"loader",
"(",
")",
";",
"if",
"(",
"cl",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"}",
"catch",
"(",
"throwable",
"ex",
")",
"{",
"/",
"/",
"e",
"g",
"access",
"control",
"exception",
"on",
"google",
"app",
"engine",
"if",
"(",
"logger",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"could",
"not",
"access",
"system",
"class",
"loader",
":",
"\"",
"+",
"ex",
")",
";",
"}",
"return",
"null",
";",
"}",
"}",
"string",
"target",
"type",
"name",
"=",
"target",
"type",
"get",
"name",
"(",
")",
";",
"string",
"editor",
"name",
"=",
"target",
"type",
"name",
"+",
"\"",
"editor",
"\"",
";",
"try",
"{",
"class",
"<",
"?",
">",
"editor",
"class",
"=",
"cl",
"load",
"class",
"(",
"editor",
"name",
")",
";",
"if",
"(",
"editor",
"class",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"property",
"editor",
"class",
"is",
"assignable",
"from",
"(",
"editor",
"class",
")",
")",
"{",
"if",
"(",
"logger",
"is",
"info",
"enabled",
"(",
")",
")",
"{",
"logger",
"info",
"(",
"\"",
"editor",
"class",
"[",
"\"",
"+",
"editor",
"name",
"+",
"\"",
"]",
"does",
"not",
"implement",
"[",
"java",
"beans",
"property",
"editor",
"]",
"interface",
"\"",
")",
";",
"}",
"unknown",
"editor",
"types",
"add",
"(",
"target",
"type",
")",
";",
"return",
"null",
";",
"}",
"return",
"(",
"property",
"editor",
")",
"instantiate",
"class",
"(",
"editor",
"class",
")",
";",
"}",
"/",
"/",
"misbehaving",
"class",
"loader",
"returned",
"null",
"instead",
"of",
"class",
"not",
"found",
"exception",
"/",
"/",
"-",
"fall",
"back",
"to",
"unknown",
"editor",
"type",
"registration",
"below",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"ex",
")",
"{",
"/",
"/",
"ignore",
"-",
"fall",
"back",
"to",
"unknown",
"editor",
"type",
"registration",
"below",
"}",
"if",
"(",
"logger",
"is",
"trace",
"enabled",
"(",
")",
")",
"{",
"logger",
"trace",
"(",
"\"",
"no",
"property",
"editor",
"[",
"\"",
"+",
"editor",
"name",
"+",
"\"",
"]",
"found",
"for",
"type",
"\"",
"+",
"target",
"type",
"name",
"+",
"\"",
"according",
"to",
"'",
"editor",
"'",
"suffix",
"convention",
"\"",
")",
";",
"}",
"unknown",
"editor",
"types",
"add",
"(",
"target",
"type",
")",
";",
"return",
"null",
";",
"}"
] |
[
"suspend",
"the",
"given",
"transaction",
"suspends",
"transaction",
"synchronization",
"first",
",",
"then",
"delegates",
"to",
"the",
"{",
"@",
"code",
"do",
"suspend",
"}",
"template",
"method"
] |
[
"private",
"mono",
"<",
"suspended",
"resources",
"holder",
">",
"suspend",
"(",
"transaction",
"synchronization",
"manager",
"synchronization",
"manager",
",",
"@",
"nullable",
"object",
"transaction",
")",
"throws",
"transaction",
"exception",
"{",
"if",
"(",
"synchronization",
"manager",
"is",
"synchronization",
"active",
"(",
")",
")",
"{",
"mono",
"<",
"list",
"<",
"transaction",
"synchronization",
">",
">",
"suspended",
"synchronizations",
"=",
"do",
"suspend",
"synchronization",
"(",
"synchronization",
"manager",
")",
";",
"return",
"suspended",
"synchronizations",
"flat",
"map",
"(",
"synchronizations",
"-",
">",
"{",
"mono",
"<",
"optional",
"<",
"object",
">",
">",
"suspended",
"resources",
"=",
"(",
"transaction",
"!",
"=",
"null",
"?",
"do",
"suspend",
"(",
"synchronization",
"manager",
",",
"transaction",
")",
"map",
"(",
"optional",
":",
":",
"of",
")",
"default",
"if",
"empty",
"(",
"optional",
"empty",
"(",
")",
")",
":",
"mono",
"just",
"(",
"optional",
"empty",
"(",
")",
")",
")",
";",
"return",
"suspended",
"resources",
"map",
"(",
"it",
"-",
">",
"{",
"string",
"name",
"=",
"synchronization",
"manager",
"get",
"current",
"transaction",
"name",
"(",
")",
";",
"synchronization",
"manager",
"set",
"current",
"transaction",
"name",
"(",
"null",
")",
";",
"boolean",
"read",
"only",
"=",
"synchronization",
"manager",
"is",
"current",
"transaction",
"read",
"only",
"(",
")",
";",
"synchronization",
"manager",
"set",
"current",
"transaction",
"read",
"only",
"(",
"false",
")",
";",
"integer",
"isolation",
"level",
"=",
"synchronization",
"manager",
"get",
"current",
"transaction",
"isolation",
"level",
"(",
")",
";",
"synchronization",
"manager",
"set",
"current",
"transaction",
"isolation",
"level",
"(",
"null",
")",
";",
"boolean",
"was",
"active",
"=",
"synchronization",
"manager",
"is",
"actual",
"transaction",
"active",
"(",
")",
";",
"synchronization",
"manager",
"set",
"actual",
"transaction",
"active",
"(",
"false",
")",
";",
"return",
"new",
"suspended",
"resources",
"holder",
"(",
"it",
"or",
"else",
"(",
"null",
")",
",",
"synchronizations",
",",
"name",
",",
"read",
"only",
",",
"isolation",
"level",
",",
"was",
"active",
")",
";",
"}",
")",
"on",
"error",
"resume",
"(",
"error",
"predicates",
"runtime",
"or",
"error",
",",
"ex",
"-",
">",
"do",
"resume",
"synchronization",
"(",
"synchronization",
"manager",
",",
"synchronizations",
")",
"cast",
"(",
"suspended",
"resources",
"holder",
"class",
")",
")",
";",
"}",
")",
";",
"}",
"else",
"if",
"(",
"transaction",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"transaction",
"active",
"but",
"no",
"synchronization",
"active",
"mono",
"<",
"optional",
"<",
"object",
">",
">",
"suspended",
"resources",
"=",
"do",
"suspend",
"(",
"synchronization",
"manager",
",",
"transaction",
")",
"map",
"(",
"optional",
":",
":",
"of",
")",
"default",
"if",
"empty",
"(",
"optional",
"empty",
"(",
")",
")",
";",
"return",
"suspended",
"resources",
"map",
"(",
"it",
"-",
">",
"new",
"suspended",
"resources",
"holder",
"(",
"it",
"or",
"else",
"(",
"null",
")",
")",
")",
";",
"}",
"else",
"{",
"/",
"/",
"neither",
"transaction",
"nor",
"synchronization",
"active",
"return",
"mono",
"empty",
"(",
")",
";",
"}",
"}"
] |
[
"parse",
"a",
"path"
] |
[
"private",
"map",
"<",
"parameter",
",",
"list",
"<",
"task",
"result",
">",
">",
"parse",
"(",
"string",
"f",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"map",
"<",
"parameter",
",",
"list",
"<",
"task",
"result",
">",
">",
"m",
"=",
"new",
"tree",
"map",
"<",
"parameter",
",",
"list",
"<",
"task",
"result",
">",
">",
"(",
")",
";",
"for",
"(",
"parameter",
"p",
":",
"parameter",
"values",
"(",
")",
")",
"m",
"put",
"(",
"p",
",",
"new",
"array",
"list",
"<",
"task",
"result",
">",
"(",
")",
")",
";",
"parse",
"(",
"new",
"file",
"(",
"f",
")",
",",
"m",
")",
";",
"/",
"/",
"log",
"info",
"(",
"\"",
"m",
"=",
"\"",
"+",
"m",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
",",
"\"",
",",
"\"",
",",
"\\",
"n",
"\"",
")",
")",
";",
"for",
"(",
"parameter",
"p",
":",
"parameter",
"values",
"(",
")",
")",
"m",
"put",
"(",
"p",
",",
"m",
"get",
"(",
"p",
")",
")",
";",
"return",
"m",
";",
"}"
] |
[
"resolves",
"the",
"{",
"@",
"link",
"component",
"layout",
"}",
"for",
"the",
"given",
"{",
"@",
"link",
"component",
"}"
] |
[
"protected",
"component",
"layout",
"resolve",
"(",
"component",
"context",
"c",
")",
"{",
"return",
"layout",
"create",
"(",
"c",
",",
"(",
"component",
")",
"this",
",",
"false",
")",
";",
"}"
] |
[
"sets",
"this",
"global",
"properties",
"to",
"represent",
"a",
"hash",
"partitioning"
] |
[
"public",
"void",
"set",
"hash",
"partitioned",
"(",
"field",
"list",
"partitioned",
"fields",
")",
"{",
"if",
"(",
"partitioned",
"fields",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"this",
"partitioning",
"=",
"partitioning",
"property",
"hash",
"partitioned",
";",
"this",
"partitioning",
"fields",
"=",
"partitioned",
"fields",
";",
"this",
"ordering",
"=",
"null",
";",
"}"
] |
[
"creates",
"an",
"array",
"of",
"serializers",
"for",
"provided",
"list",
"of",
"registered",
"subclasses",
"order",
"of",
"returned",
"serializers",
"will",
"correspond",
"to",
"order",
"of",
"provided",
"subclasses"
] |
[
"private",
"static",
"type",
"serializer",
"<",
"?",
">",
"[",
"]",
"create",
"registered",
"subclass",
"serializers",
"(",
"linked",
"hash",
"set",
"<",
"class",
"<",
"?",
">",
">",
"registered",
"subclasses",
",",
"execution",
"config",
"execution",
"config",
")",
"{",
"final",
"type",
"serializer",
"<",
"?",
">",
"[",
"]",
"subclass",
"serializers",
"=",
"new",
"type",
"serializer",
"[",
"registered",
"subclasses",
"size",
"(",
")",
"]",
";",
"int",
"i",
"=",
"0",
";",
"for",
"(",
"class",
"<",
"?",
">",
"registered",
"class",
":",
"registered",
"subclasses",
")",
"{",
"subclass",
"serializers",
"[",
"i",
"]",
"=",
"type",
"extractor",
"create",
"type",
"info",
"(",
"registered",
"class",
")",
"create",
"serializer",
"(",
"execution",
"config",
")",
";",
"i",
"+",
"+",
";",
"}",
"return",
"subclass",
"serializers",
";",
"}"
] |
[
"get",
"the",
"time",
"in",
"nanoseconds",
"this",
"task",
"took"
] |
[
"public",
"long",
"get",
"time",
"nanos",
"(",
")",
"{",
"return",
"this",
"time",
"nanos",
";",
"}"
] |
[
"cast",
"this",
"inode",
"to",
"an",
"{",
"@",
"link",
"i",
"node",
"symlink",
"}"
] |
[
"public",
"i",
"node",
"symlink",
"as",
"symlink",
"(",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"current",
"inode",
"is",
"not",
"a",
"symlink",
":",
"\"",
"+",
"this",
"to",
"detail",
"string",
"(",
")",
")",
";",
"}"
] |
[
"set",
"ticket",
"id"
] |
[
"public",
"void",
"set",
"id",
"(",
"lottery",
"ticket",
"id",
"id",
")",
"{",
"this",
"id",
"=",
"id",
";",
"}"
] |
[
"removes",
"all",
"key",
"-",
"value",
"mappings",
"from",
"this",
"sparse",
"array"
] |
[
"public",
"void",
"clear",
"(",
")",
"{",
"int",
"n",
"=",
"m",
"size",
";",
"object",
"[",
"]",
"values",
"=",
"m",
"values",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"values",
"[",
"i",
"]",
"=",
"null",
";",
"}",
"m",
"size",
"=",
"0",
";",
"m",
"garbage",
"=",
"false",
";",
"}"
] |
[
"hold",
"in",
"identified",
"channels"
] |
[
"public",
"void",
"hold",
"in",
"identified",
"channels",
"(",
"concurrent",
"map",
"<",
"channel",
",",
"rpc",
"context",
">",
"client",
"i",
"d",
"holder",
"map",
")",
"{",
"if",
"(",
"this",
"client",
"i",
"d",
"holder",
"map",
"!",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}",
"this",
"client",
"i",
"d",
"holder",
"map",
"=",
"client",
"i",
"d",
"holder",
"map",
";",
"this",
"client",
"i",
"d",
"holder",
"map",
"put",
"(",
"channel",
",",
"this",
")",
";",
"}"
] |
[
"used",
"to",
"categorize",
"this",
"kind",
"of",
"item",
"type"
] |
[
"public",
"string",
"get",
"category",
"id",
"(",
")",
"{",
"return",
"item",
"category",
"uncategorized",
"category",
"id",
";",
"}"
] |
[
"fix",
"the",
"bug",
"of",
"5497",
"in",
"android",
"don",
"'",
"t",
"set",
"adjust",
"resize"
] |
[
"public",
"static",
"void",
"fix",
"android",
"bug",
"5",
"4",
"9",
"7",
"(",
"@",
"non",
"null",
"final",
"activity",
"activity",
")",
"{",
"fix",
"android",
"bug",
"5",
"4",
"9",
"7",
"(",
"activity",
"get",
"window",
"(",
")",
")",
";",
"}"
] |
[
"reads",
"a",
"literal",
"from",
"the",
"input",
"buffer",
"directly",
"to",
"the",
"output",
"buffer",
"a",
"\"",
"literal",
"\"",
"is",
"an",
"uncompressed",
"segment",
"of",
"data",
"stored",
"directly",
"in",
"the",
"byte",
"stream"
] |
[
"static",
"int",
"decode",
"literal",
"(",
"byte",
"tag",
",",
"byte",
"buf",
"in",
",",
"byte",
"buf",
"out",
")",
"{",
"in",
"mark",
"reader",
"index",
"(",
")",
";",
"int",
"length",
";",
"switch",
"(",
"tag",
">",
">",
"2",
"&",
"0x",
"3",
"f",
")",
"{",
"case",
"60",
":",
"if",
"(",
"!",
"in",
"is",
"readable",
"(",
")",
")",
"{",
"return",
"not",
"enough",
"input",
";",
"}",
"length",
"=",
"in",
"read",
"unsigned",
"byte",
"(",
")",
";",
"break",
";",
"case",
"61",
":",
"if",
"(",
"in",
"readable",
"bytes",
"(",
")",
"<",
"2",
")",
"{",
"return",
"not",
"enough",
"input",
";",
"}",
"length",
"=",
"in",
"read",
"unsigned",
"short",
"l",
"e",
"(",
")",
";",
"break",
";",
"case",
"62",
":",
"if",
"(",
"in",
"readable",
"bytes",
"(",
")",
"<",
"3",
")",
"{",
"return",
"not",
"enough",
"input",
";",
"}",
"length",
"=",
"in",
"read",
"unsigned",
"medium",
"l",
"e",
"(",
")",
";",
"break",
";",
"case",
"63",
":",
"if",
"(",
"in",
"readable",
"bytes",
"(",
")",
"<",
"4",
")",
"{",
"return",
"not",
"enough",
"input",
";",
"}",
"length",
"=",
"in",
"read",
"int",
"l",
"e",
"(",
")",
";",
"break",
";",
"default",
":",
"length",
"=",
"tag",
">",
">",
"2",
"&",
"0x",
"3",
"f",
";",
"}",
"length",
"+",
"=",
"1",
";",
"if",
"(",
"in",
"readable",
"bytes",
"(",
")",
"<",
"length",
")",
"{",
"in",
"reset",
"reader",
"index",
"(",
")",
";",
"return",
"not",
"enough",
"input",
";",
"}",
"out",
"write",
"bytes",
"(",
"in",
",",
"length",
")",
";",
"return",
"length",
";",
"}"
] |
[
"check",
"the",
"given",
"merged",
"bean",
"definition",
",",
"potentially",
"throwing",
"validation",
"exceptions"
] |
[
"protected",
"void",
"check",
"merged",
"bean",
"definition",
"(",
"root",
"bean",
"definition",
"mbd",
",",
"string",
"bean",
"name",
",",
"@",
"nullable",
"object",
"[",
"]",
"args",
")",
"throws",
"bean",
"definition",
"store",
"exception",
"{",
"if",
"(",
"mbd",
"is",
"abstract",
"(",
")",
")",
"{",
"throw",
"new",
"bean",
"is",
"abstract",
"exception",
"(",
"bean",
"name",
")",
";",
"}",
"}"
] |
[
"model",
"tests",
"for",
"name"
] |
[
"public",
"void",
"test",
"name",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"name",
"}"
] |
[
"replaces",
"aconst",
"null",
"producers",
"of",
"the",
"specified",
"stack",
"entry",
"by",
"iconst",
"0"
] |
[
"private",
"void",
"replace",
"null",
"stack",
"entry",
"producers",
"(",
"clazz",
"clazz",
",",
"method",
"method",
",",
"code",
"attribute",
"code",
"attribute",
",",
"int",
"consumer",
"offset",
",",
"int",
"stack",
"entry",
"index",
")",
"{",
"instruction",
"offset",
"value",
"producer",
"offsets",
"=",
"partial",
"evaluator",
"get",
"stack",
"before",
"(",
"consumer",
"offset",
")",
"get",
"top",
"actual",
"producer",
"value",
"(",
"stack",
"entry",
"index",
")",
"instruction",
"offset",
"value",
"(",
")",
";",
"for",
"(",
"int",
"index",
"=",
"0",
";",
"index",
"<",
"producer",
"offsets",
"instruction",
"offset",
"count",
"(",
")",
";",
"index",
"+",
"+",
")",
"{",
"int",
"producer",
"offset",
"=",
"producer",
"offsets",
"instruction",
"offset",
"(",
"index",
")",
";",
"/",
"/",
"todo",
":",
"a",
"method",
"might",
"be",
"pushing",
"the",
"null",
"constant",
"if",
"(",
"producer",
"offset",
">",
"=",
"0",
"&",
"&",
"code",
"attribute",
"code",
"[",
"producer",
"offset",
"]",
"=",
"=",
"instruction",
"constants",
"op",
"aconst",
"null",
")",
"{",
"/",
"/",
"replace",
"pushing",
"null",
"by",
"pushing",
"0",
"replace",
"instruction",
"(",
"clazz",
",",
"producer",
"offset",
",",
"new",
"simple",
"instruction",
"(",
"instruction",
"constants",
"op",
"aconst",
"null",
")",
",",
"new",
"simple",
"instruction",
"(",
"instruction",
"constants",
"op",
"iconst",
"0",
")",
")",
";",
"}",
"}",
"}"
] |
[
"test",
"the",
"property",
"'",
"email",
"'"
] |
[
"public",
"void",
"email",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"email",
"}"
] |
[
"adds",
"an",
"entry",
"point",
"at",
"the",
"specified",
"address"
] |
[
"public",
"final",
"void",
"add",
"entry",
"point",
"(",
"address",
"address",
")",
"{",
"current",
"program",
"get",
"symbol",
"table",
"(",
")",
"add",
"external",
"entry",
"point",
"(",
"address",
")",
";",
"}"
] |
[
"perform",
"an",
"action",
"on",
"the",
"given",
"result"
] |
[
"void",
"handle",
"(",
"mvc",
"result",
"result",
")",
"throws",
"exception",
";"
] |
[
"returns",
"a",
"tuple",
"containing",
"n",
"consecutive",
"repeats",
"of",
"this",
"tuple"
] |
[
"tuple",
"repeat",
"(",
"starlark",
"int",
"n",
")",
"throws",
"eval",
"exception",
"{",
"if",
"(",
"n",
"signum",
"(",
")",
"<",
"=",
"0",
"|",
"|",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"empty",
"(",
")",
";",
"}",
"/",
"/",
"todo",
"(",
"adonovan",
")",
":",
"reject",
"unreasonably",
"large",
"n",
"int",
"ni",
"=",
"n",
"to",
"int",
"(",
"\"",
"repeat",
"\"",
")",
";",
"object",
"[",
"]",
"res",
"=",
"new",
"object",
"[",
"ni",
"*",
"elems",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"ni",
";",
"i",
"+",
"+",
")",
"{",
"system",
"arraycopy",
"(",
"elems",
",",
"0",
",",
"res",
",",
"i",
"*",
"elems",
"length",
",",
"elems",
"length",
")",
";",
"}",
"return",
"wrap",
"(",
"res",
")",
";",
"}"
] |
[
"checks",
"if",
"the",
"java",
"home",
"is",
"a",
"valid",
"java",
"home",
"path"
] |
[
"@",
"override",
"protected",
"form",
"validation",
"check",
"home",
"directory",
"(",
"file",
"value",
")",
"{",
"return",
"form",
"validation",
"ok",
"(",
")",
";",
"}"
] |
[
"receive",
"a",
"message",
"from",
"this",
"channel",
",",
"blocking",
"until",
"either",
"a",
"message",
"is",
"available",
"or",
"the",
"specified",
"timeout",
"period",
"elapses"
] |
[
"message",
"<",
"?",
">",
"receive",
"(",
"long",
"timeout",
")",
";"
] |
[
"convenience",
"method",
"to",
"filter",
"the",
"files",
"to",
"build",
"for",
"a",
"certain",
"filetype"
] |
[
"public",
"static",
"list",
"<",
"artifact",
">",
"filter",
"files",
"(",
"iterable",
"<",
"artifact",
">",
"artifacts",
",",
"file",
"type",
"allowed",
"type",
")",
"{",
"list",
"<",
"artifact",
">",
"files",
"to",
"build",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"artifact",
"artifact",
":",
"artifacts",
")",
"{",
"if",
"(",
"allowed",
"type",
"matches",
"(",
"artifact",
"get",
"filename",
"(",
")",
")",
")",
"{",
"files",
"to",
"build",
"add",
"(",
"artifact",
")",
";",
"}",
"}",
"return",
"files",
"to",
"build",
";",
"}"
] |
[
"projects",
"a",
"{",
"@",
"link",
"tuple",
"}",
"{",
"@",
"link",
"data",
"stream",
"}",
"to",
"the",
"previously",
"selected",
"fields"
] |
[
"public",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
"single",
"output",
"stream",
"operator",
"<",
"tuple",
"3",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
">",
"project",
"tuple",
"3",
"(",
")",
"{",
"type",
"information",
"<",
"?",
">",
"[",
"]",
"f",
"types",
"=",
"extract",
"field",
"types",
"(",
"field",
"indexes",
",",
"data",
"stream",
"get",
"type",
"(",
")",
")",
";",
"tuple",
"type",
"info",
"<",
"tuple",
"3",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
">",
"t",
"type",
"=",
"new",
"tuple",
"type",
"info",
"<",
"tuple",
"3",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
">",
"(",
"f",
"types",
")",
";",
"return",
"data",
"stream",
"transform",
"(",
"\"",
"projection",
"\"",
",",
"t",
"type",
",",
"new",
"stream",
"project",
"<",
"in",
",",
"tuple",
"3",
"<",
"t0",
",",
"t1",
",",
"t2",
">",
">",
"(",
"field",
"indexes",
",",
"t",
"type",
"create",
"serializer",
"(",
"data",
"stream",
"get",
"execution",
"config",
"(",
")",
")",
")",
")",
";",
"}"
] |
[
"resets",
"the",
"provided",
"{",
"@",
"link",
"hit",
"context",
"}",
"with",
"information",
"on",
"the",
"current",
"nested",
"document",
"this",
"includes",
"the",
"following",
":",
"-",
"adding",
"an",
"initial",
"{",
"@",
"link",
"search",
"hit",
"}",
"instance",
"-",
"loading",
"the",
"document",
"source",
",",
"filtering",
"it",
"based",
"on",
"the",
"nested",
"document",
"id",
",",
"then",
"setting",
"it",
"on",
"{",
"@",
"link",
"hit",
"context",
"#",
"source",
"lookup",
"(",
")",
"}",
"this",
"allows",
"fetch",
"subphases",
"that",
"use",
"the",
"hit",
"context",
"to",
"access",
"the",
"preloaded",
"source"
] |
[
"private",
"hit",
"context",
"prepare",
"nested",
"hit",
"context",
"(",
"search",
"context",
"context",
",",
"int",
"top",
"doc",
"id",
",",
"leaf",
"nested",
"documents",
"nested",
"info",
",",
"predicate",
"<",
"string",
">",
"has",
"non",
"nested",
"parent",
",",
"map",
"<",
"string",
",",
"set",
"<",
"string",
">",
">",
"stored",
"to",
"requested",
"fields",
",",
"leaf",
"reader",
"context",
"sub",
"reader",
"context",
",",
"checked",
"bi",
"consumer",
"<",
"integer",
",",
"fields",
"visitor",
",",
"i",
"o",
"exception",
">",
"stored",
"field",
"reader",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"also",
"if",
"highlighting",
"is",
"requested",
"on",
"nested",
"documents",
"we",
"need",
"to",
"fetch",
"the",
"source",
"from",
"the",
"root",
"document",
",",
"/",
"/",
"otherwise",
"highlighting",
"will",
"attempt",
"to",
"fetch",
"the",
"source",
"from",
"the",
"nested",
"doc",
",",
"which",
"will",
"fail",
",",
"/",
"/",
"because",
"the",
"entire",
"source",
"is",
"only",
"stored",
"with",
"the",
"root",
"document",
"boolean",
"need",
"source",
"=",
"source",
"required",
"(",
"context",
")",
"|",
"|",
"context",
"highlight",
"(",
")",
"!",
"=",
"null",
";",
"string",
"root",
"id",
";",
"map",
"<",
"string",
",",
"object",
">",
"root",
"source",
"as",
"map",
"=",
"null",
";",
"x",
"content",
"type",
"root",
"source",
"content",
"type",
"=",
"null",
";",
"query",
"shard",
"context",
"query",
"shard",
"context",
"=",
"context",
"get",
"query",
"shard",
"context",
"(",
")",
";",
"if",
"(",
"context",
"instanceof",
"inner",
"hits",
"context",
"inner",
"hit",
"sub",
"context",
")",
"{",
"inner",
"hits",
"context",
"inner",
"hit",
"sub",
"context",
"inner",
"hits",
"context",
"=",
"(",
"inner",
"hits",
"context",
"inner",
"hit",
"sub",
"context",
")",
"context",
";",
"root",
"id",
"=",
"inner",
"hits",
"context",
"get",
"root",
"id",
"(",
")",
";",
"if",
"(",
"need",
"source",
")",
"{",
"source",
"lookup",
"root",
"lookup",
"=",
"inner",
"hits",
"context",
"get",
"root",
"lookup",
"(",
")",
";",
"root",
"source",
"as",
"map",
"=",
"root",
"lookup",
"load",
"source",
"if",
"needed",
"(",
")",
";",
"root",
"source",
"content",
"type",
"=",
"root",
"lookup",
"source",
"content",
"type",
"(",
")",
";",
"}",
"}",
"else",
"{",
"fields",
"visitor",
"root",
"fields",
"visitor",
"=",
"new",
"fields",
"visitor",
"(",
"need",
"source",
")",
";",
"load",
"stored",
"fields",
"(",
"query",
"shard",
"context",
":",
":",
"get",
"field",
"type",
",",
"stored",
"field",
"reader",
",",
"root",
"fields",
"visitor",
",",
"nested",
"info",
"root",
"doc",
"(",
")",
")",
";",
"root",
"id",
"=",
"root",
"fields",
"visitor",
"id",
"(",
")",
";",
"if",
"(",
"need",
"source",
")",
"{",
"if",
"(",
"root",
"fields",
"visitor",
"source",
"(",
")",
"!",
"=",
"null",
")",
"{",
"tuple",
"<",
"x",
"content",
"type",
",",
"map",
"<",
"string",
",",
"object",
">",
">",
"tuple",
"=",
"x",
"content",
"helper",
"convert",
"to",
"map",
"(",
"root",
"fields",
"visitor",
"source",
"(",
")",
",",
"false",
")",
";",
"root",
"source",
"as",
"map",
"=",
"tuple",
"v",
"2",
"(",
")",
";",
"root",
"source",
"content",
"type",
"=",
"tuple",
"v",
"1",
"(",
")",
";",
"}",
"else",
"{",
"root",
"source",
"as",
"map",
"=",
"collections",
"empty",
"map",
"(",
")",
";",
"}",
"}",
"}",
"map",
"<",
"string",
",",
"document",
"field",
">",
"doc",
"fields",
"=",
"empty",
"map",
"(",
")",
";",
"map",
"<",
"string",
",",
"document",
"field",
">",
"meta",
"fields",
"=",
"empty",
"map",
"(",
")",
";",
"if",
"(",
"context",
"has",
"stored",
"fields",
"(",
")",
"&",
"&",
"!",
"context",
"stored",
"fields",
"context",
"(",
")",
"field",
"names",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"fields",
"visitor",
"nested",
"fields",
"visitor",
"=",
"new",
"custom",
"fields",
"visitor",
"(",
"stored",
"to",
"requested",
"fields",
"key",
"set",
"(",
")",
",",
"false",
")",
";",
"load",
"stored",
"fields",
"(",
"query",
"shard",
"context",
":",
":",
"get",
"field",
"type",
",",
"stored",
"field",
"reader",
",",
"nested",
"fields",
"visitor",
",",
"nested",
"info",
"doc",
"(",
")",
")",
";",
"if",
"(",
"nested",
"fields",
"visitor",
"fields",
"(",
")",
"is",
"empty",
"(",
")",
"=",
"=",
"false",
")",
"{",
"doc",
"fields",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"meta",
"fields",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"fill",
"doc",
"and",
"meta",
"fields",
"(",
"context",
",",
"nested",
"fields",
"visitor",
",",
"stored",
"to",
"requested",
"fields",
",",
"doc",
"fields",
",",
"meta",
"fields",
")",
";",
"}",
"}",
"search",
"hit",
"nested",
"identity",
"nested",
"identity",
"=",
"nested",
"info",
"nested",
"identity",
"(",
")",
";",
"search",
"hit",
"hit",
"=",
"new",
"search",
"hit",
"(",
"top",
"doc",
"id",
",",
"root",
"id",
",",
"nested",
"identity",
",",
"doc",
"fields",
",",
"meta",
"fields",
")",
";",
"hit",
"context",
"hit",
"context",
"=",
"new",
"hit",
"context",
"(",
"hit",
",",
"sub",
"reader",
"context",
",",
"nested",
"info",
"doc",
"(",
")",
")",
";",
"if",
"(",
"root",
"source",
"as",
"map",
"!",
"=",
"null",
"&",
"&",
"root",
"source",
"as",
"map",
"is",
"empty",
"(",
")",
"=",
"=",
"false",
")",
"{",
"/",
"/",
"isolate",
"the",
"nested",
"json",
"array",
"object",
"that",
"matches",
"with",
"nested",
"hit",
"and",
"wrap",
"it",
"back",
"into",
"the",
"same",
"json",
"/",
"/",
"structure",
"with",
"the",
"nested",
"json",
"array",
"object",
"being",
"the",
"actual",
"content",
"the",
"latter",
"is",
"important",
",",
"so",
"that",
"/",
"/",
"features",
"like",
"source",
"filtering",
"and",
"highlighting",
"work",
"consistent",
"regardless",
"of",
"whether",
"the",
"field",
"points",
"/",
"/",
"to",
"a",
"json",
"object",
"array",
"for",
"consistency",
"reasons",
"on",
"how",
"we",
"refer",
"to",
"fields",
"map",
"<",
"string",
",",
"object",
">",
"nested",
"source",
"as",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"map",
"<",
"string",
",",
"object",
">",
"current",
"=",
"nested",
"source",
"as",
"map",
";",
"for",
"(",
"search",
"hit",
"nested",
"identity",
"nested",
"=",
"nested",
"identity",
";",
"nested",
"!",
"=",
"null",
";",
"nested",
"=",
"nested",
"get",
"child",
"(",
")",
")",
"{",
"string",
"nested",
"path",
"=",
"nested",
"get",
"field",
"(",
")",
"string",
"(",
")",
";",
"current",
"put",
"(",
"nested",
"path",
",",
"new",
"hash",
"map",
"<",
">",
"(",
")",
")",
";",
"object",
"extracted",
"value",
"=",
"x",
"content",
"map",
"values",
"extract",
"value",
"(",
"nested",
"path",
",",
"root",
"source",
"as",
"map",
")",
";",
"list",
"<",
"?",
">",
"nested",
"parsed",
"source",
";",
"if",
"(",
"extracted",
"value",
"instanceof",
"list",
")",
"{",
"/",
"/",
"nested",
"field",
"has",
"an",
"array",
"value",
"in",
"the",
"source",
"nested",
"parsed",
"source",
"=",
"(",
"list",
"<",
"?",
">",
")",
"extracted",
"value",
";",
"}",
"else",
"if",
"(",
"extracted",
"value",
"instanceof",
"map",
")",
"{",
"/",
"/",
"nested",
"field",
"has",
"an",
"object",
"value",
"in",
"the",
"source",
"this",
"just",
"means",
"the",
"nested",
"field",
"has",
"just",
"one",
"inner",
"object",
",",
"/",
"/",
"which",
"is",
"valid",
",",
"but",
"uncommon",
"nested",
"parsed",
"source",
"=",
"collections",
"singleton",
"list",
"(",
"extracted",
"value",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"extracted",
"source",
"isn",
"'",
"t",
"an",
"object",
"or",
"an",
"array",
"\"",
")",
";",
"}",
"if",
"(",
"(",
"nested",
"parsed",
"source",
"get",
"(",
"0",
")",
"instanceof",
"map",
")",
"=",
"=",
"false",
"&",
"&",
"has",
"non",
"nested",
"parent",
"test",
"(",
"nested",
"path",
")",
")",
"{",
"/",
"/",
"when",
"one",
"of",
"the",
"parent",
"objects",
"are",
"not",
"nested",
"then",
"x",
"content",
"map",
"values",
"extract",
"value",
"(",
")",
"extracts",
"the",
"values",
"/",
"/",
"from",
"two",
"or",
"more",
"layers",
"resulting",
"in",
"a",
"list",
"of",
"list",
"being",
"returned",
"this",
"is",
"because",
"nested",
"path",
"/",
"/",
"encapsulates",
"two",
"or",
"more",
"object",
"layers",
"in",
"the",
"source",
"/",
"/",
"/",
"/",
"this",
"is",
"why",
"only",
"the",
"first",
"element",
"of",
"nested",
"parsed",
"source",
"needs",
"to",
"be",
"checked",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"cannot",
"execute",
"inner",
"hits",
"one",
"or",
"more",
"parent",
"object",
"fields",
"of",
"nested",
"field",
"[",
"\"",
"+",
"nested",
"path",
"+",
"\"",
"]",
"are",
"not",
"nested",
"all",
"parent",
"fields",
"need",
"to",
"be",
"nested",
"fields",
"too",
"\"",
")",
";",
"}",
"root",
"source",
"as",
"map",
"=",
"(",
"map",
"<",
"string",
",",
"object",
">",
")",
"nested",
"parsed",
"source",
"get",
"(",
"nested",
"get",
"offset",
"(",
")",
")",
";",
"if",
"(",
"nested",
"get",
"child",
"(",
")",
"=",
"=",
"null",
")",
"{",
"current",
"put",
"(",
"nested",
"path",
",",
"root",
"source",
"as",
"map",
")",
";",
"}",
"else",
"{",
"map",
"<",
"string",
",",
"object",
">",
"next",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"current",
"put",
"(",
"nested",
"path",
",",
"next",
")",
";",
"current",
"=",
"next",
";",
"}",
"}",
"hit",
"context",
"source",
"lookup",
"(",
")",
"set",
"source",
"(",
"nested",
"source",
"as",
"map",
")",
";",
"hit",
"context",
"source",
"lookup",
"(",
")",
"set",
"source",
"content",
"type",
"(",
"root",
"source",
"content",
"type",
")",
";",
"}",
"return",
"hit",
"context",
";",
"}"
] |
[
"parses",
"the",
"preview",
"to",
"a",
"list",
"of",
"{",
"@",
"link",
"map",
"}",
"objects"
] |
[
"public",
"list",
"<",
"map",
"<",
"string",
",",
"object",
">",
">",
"get",
"data",
"list",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"(",
"stream",
"input",
"stream",
"input",
"=",
"preview",
"stream",
"input",
"(",
")",
";",
"x",
"content",
"parser",
"parser",
"=",
"x",
"content",
"type",
"json",
"x",
"content",
"(",
")",
"create",
"parser",
"(",
"named",
"x",
"content",
"registry",
"empty",
",",
"deprecation",
"handler",
"throw",
"unsupported",
"operation",
",",
"stream",
"input",
")",
")",
"{",
"x",
"content",
"parser",
"token",
"token",
"=",
"parser",
"next",
"token",
"(",
")",
";",
"if",
"(",
"token",
"=",
"=",
"x",
"content",
"parser",
"token",
"start",
"array",
")",
"{",
"return",
"parser",
"list",
"ordered",
"map",
"(",
")",
"stream",
"(",
")",
"map",
"(",
"obj",
"-",
">",
"(",
"map",
"<",
"string",
",",
"object",
">",
")",
"obj",
")",
"collect",
"(",
"collectors",
"to",
"list",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"collections",
"singleton",
"list",
"(",
"parser",
"map",
"ordered",
"(",
")",
")",
";",
"}",
"}",
"}"
] |
[
"changes",
"all",
"local",
"user",
"-",
"defined",
"labels",
"for",
"this",
"function",
"to",
"global",
"symbols",
"if",
"a",
"global",
"code",
"symbol",
"already",
"exists",
"with",
"the",
"same",
"name",
"at",
"the",
"symbols",
"address",
"the",
"symbol",
"will",
"be",
"removed"
] |
[
"public",
"void",
"promote",
"local",
"user",
"labels",
"to",
"global",
"(",
")",
";"
] |
[
"gets",
"the",
"short",
"identifier",
"for",
"this",
"instruction",
"this",
"is",
"its",
"address",
",",
"if",
"assigned",
",",
"or",
"its",
"identity",
"hashcode",
"if",
"not"
] |
[
"public",
"final",
"string",
"identifier",
"string",
"(",
")",
"{",
"if",
"(",
"address",
"!",
"=",
"-",
"1",
")",
"{",
"return",
"string",
"format",
"(",
"\"",
"%",
"0",
"4x",
"\"",
",",
"address",
")",
";",
"}",
"return",
"hex",
"u",
"4",
"(",
"system",
"identity",
"hash",
"code",
"(",
"this",
")",
")",
";",
"}"
] |
[
"creates",
"a",
"{",
"@",
"link",
"plugin",
"description",
"}",
"using",
"information",
"gathered",
"from",
"annotations",
"present",
"on",
"the",
"specified",
"{",
"@",
"link",
"plugin",
"}",
"'",
"s",
"class"
] |
[
"private",
"static",
"plugin",
"description",
"create",
"plugin",
"description",
"from",
"annotation",
"(",
"class",
"<",
"?",
"extends",
"plugin",
">",
"c",
")",
"{",
"plugin",
"info",
"pia",
"=",
"c",
"get",
"annotation",
"(",
"plugin",
"info",
"class",
")",
";",
"return",
"(",
"pia",
"!",
"=",
"null",
")",
"?",
"new",
"plugin",
"description",
"(",
"c",
",",
"pia",
"package",
"name",
"(",
")",
",",
"pia",
"category",
"(",
")",
",",
"pia",
"short",
"description",
"(",
")",
",",
"pia",
"description",
"(",
")",
",",
"pia",
"status",
"(",
")",
",",
"pia",
"is",
"slow",
"installation",
"(",
")",
",",
"arrays",
"as",
"list",
"(",
"pia",
"services",
"required",
"(",
")",
")",
",",
"arrays",
"as",
"list",
"(",
"pia",
"services",
"provided",
"(",
")",
")",
",",
"arrays",
"as",
"list",
"(",
"pia",
"events",
"consumed",
"(",
")",
")",
",",
"arrays",
"as",
"list",
"(",
"pia",
"events",
"produced",
"(",
")",
")",
")",
":",
"null",
";",
"}"
] |
[
"checks",
"to",
"see",
"if",
"a",
"value",
"is",
"in",
"the",
"set"
] |
[
"boolean",
"has",
"(",
"int",
"value",
")",
";"
] |
[
"returns",
"the",
"data",
"of",
"this",
"symbol",
"(",
"we",
"do",
"not",
"know",
"how",
"to",
"interpret",
"it",
"yet",
")"
] |
[
"public",
"byte",
"[",
"]",
"get",
"data",
"(",
")",
"{",
"return",
"data",
";",
"}"
] |
[
"returns",
"http",
"f",
"s",
"server",
"admin",
"group"
] |
[
"public",
"string",
"get",
"admin",
"group",
"(",
")",
"{",
"return",
"admin",
"group",
";",
"}"
] |
[
"get",
"the",
"list",
"of",
"sent",
"records",
"since",
"the",
"last",
"call",
"to",
"{",
"@",
"link",
"#",
"clear",
"(",
")",
"}"
] |
[
"public",
"synchronized",
"list",
"<",
"producer",
"record",
"<",
"k",
",",
"v",
">",
">",
"history",
"(",
")",
"{",
"return",
"new",
"array",
"list",
"<",
">",
"(",
"this",
"sent",
")",
";",
"}"
] |
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"field",
"id",
",",
"throwing",
"an",
"exception",
"if",
"it",
"is",
"not",
"found"
] |
[
"public",
"static",
"fields",
"find",
"by",
"thrift",
"id",
"or",
"throw",
"(",
"int",
"field",
"id",
")",
"{",
"fields",
"fields",
"=",
"find",
"by",
"thrift",
"id",
"(",
"field",
"id",
")",
";",
"if",
"(",
"fields",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"field",
"\"",
"+",
"field",
"id",
"+",
"\"",
"doesn",
"'",
"t",
"exist",
"!",
"\"",
")",
";",
"return",
"fields",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.