docstring_tokens
list | code_tokens
list |
---|---|
[
"asynchronous",
"version",
"of",
"{",
"@",
"link",
"abstract",
"dao",
"session",
"#",
"call",
"in",
"tx",
"(",
"callable",
")",
"}"
]
| [
"public",
"async",
"operation",
"call",
"in",
"tx",
"(",
"callable",
"<",
"?",
">",
"callable",
")",
"{",
"return",
"call",
"in",
"tx",
"(",
"callable",
",",
"0",
")",
";",
"}"
]
|
[
"generate",
"the",
"config",
"option",
"key",
"for",
"the",
"factory",
"class",
"name",
"of",
"{",
"@",
"link",
"org",
"apache",
"flink",
"api",
"common",
"externalresource",
"external",
"resource",
"driver",
"}"
]
| [
"public",
"static",
"string",
"get",
"external",
"resource",
"driver",
"factory",
"config",
"option",
"for",
"resource",
"(",
"string",
"resource",
"name",
")",
"{",
"return",
"key",
"with",
"resource",
"name",
"and",
"suffix",
"(",
"resource",
"name",
",",
"external",
"resource",
"driver",
"factory",
"suffix",
")",
";",
"}"
]
|
[
"stop",
"the",
"service"
]
| [
"public",
"static",
"boolean",
"stop",
"service",
"(",
"@",
"non",
"null",
"final",
"string",
"class",
"name",
")",
"{",
"try",
"{",
"return",
"stop",
"service",
"(",
"class",
"for",
"name",
"(",
"class",
"name",
")",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"return",
"false",
";",
"}",
"}"
]
|
[
"returns",
"true",
"if",
"the",
"selection",
"is",
"a",
"single",
"row"
]
| [
"public",
"boolean",
"is",
"single",
"row",
"selection",
"(",
")",
"{",
"if",
"(",
"selection",
"get",
"num",
"ranges",
"(",
")",
"!",
"=",
"1",
")",
"{",
"return",
"false",
";",
"}",
"field",
"range",
"range",
"=",
"selection",
"get",
"field",
"range",
"(",
"0",
")",
";",
"return",
"(",
"range",
"get",
"start",
"(",
")",
"get",
"index",
"(",
")",
"int",
"value",
"(",
")",
"=",
"=",
"range",
"get",
"end",
"(",
")",
"get",
"index",
"(",
")",
"int",
"value",
"(",
")",
"-",
"1",
")",
";",
"}"
]
|
[
"updates",
"{",
"@",
"code",
"stored",
"permits",
"}",
"and",
"{",
"@",
"code",
"next",
"free",
"ticket",
"micros",
"}",
"based",
"on",
"the",
"current",
"time"
]
| [
"void",
"resync",
"(",
"long",
"now",
"micros",
")",
"{",
"/",
"/",
"if",
"next",
"free",
"ticket",
"is",
"in",
"the",
"past",
",",
"resync",
"to",
"now",
"if",
"(",
"now",
"micros",
">",
"next",
"free",
"ticket",
"micros",
")",
"{",
"double",
"new",
"permits",
"=",
"(",
"now",
"micros",
"-",
"next",
"free",
"ticket",
"micros",
")",
"/",
"cool",
"down",
"interval",
"micros",
"(",
")",
";",
"stored",
"permits",
"=",
"min",
"(",
"max",
"permits",
",",
"stored",
"permits",
"+",
"new",
"permits",
")",
";",
"next",
"free",
"ticket",
"micros",
"=",
"now",
"micros",
";",
"}",
"}"
]
|
[
"clean",
"up",
"the",
"transaction",
"via",
"the",
"given",
"transaction",
"data",
"called",
"by",
"jpa",
"transaction",
"manager",
"and",
"entity",
"manager",
"factory",
"utils",
"on",
"transaction",
"cleanup",
"an",
"implementation",
"can",
",",
"for",
"example",
",",
"reset",
"read",
"-",
"only",
"flag",
"and",
"isolation",
"level",
"of",
"the",
"underlying",
"jdbc",
"connection",
"furthermore",
",",
"an",
"exposed",
"data",
"access",
"use",
"case",
"can",
"be",
"reset",
"here"
]
| [
"void",
"cleanup",
"transaction",
"(",
"@",
"nullable",
"object",
"transaction",
"data",
")",
";"
]
|
[
"fills",
"specified",
"buffer",
"with",
"compressed",
"data",
"returns",
"actual",
"number",
"of",
"bytes",
"of",
"compressed",
"data",
"a",
"return",
"value",
"of",
"0",
"indicates",
"that",
"needs",
"input",
"(",
")",
"should",
"be",
"called",
"in",
"order",
"to",
"determine",
"if",
"more",
"input",
"data",
"is",
"required"
]
| [
"public",
"synchronized",
"int",
"compress",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"b",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"if",
"(",
"off",
"<",
"0",
"|",
"|",
"len",
"<",
"0",
"|",
"|",
"off",
">",
"b",
"length",
"-",
"len",
")",
"{",
"throw",
"new",
"array",
"index",
"out",
"of",
"bounds",
"exception",
"(",
")",
";",
"}",
"/",
"/",
"check",
"if",
"there",
"is",
"compressed",
"data",
"int",
"n",
"=",
"compressed",
"direct",
"buf",
"remaining",
"(",
")",
";",
"if",
"(",
"n",
">",
"0",
")",
"{",
"n",
"=",
"math",
"min",
"(",
"n",
",",
"len",
")",
";",
"(",
"(",
"byte",
"buffer",
")",
"compressed",
"direct",
"buf",
")",
"get",
"(",
"b",
",",
"off",
",",
"n",
")",
";",
"bytes",
"written",
"+",
"=",
"n",
";",
"return",
"n",
";",
"}",
"/",
"/",
"re",
"-",
"initialize",
"the",
"lz",
"4",
"'",
"s",
"output",
"direct",
"-",
"buffer",
"compressed",
"direct",
"buf",
"clear",
"(",
")",
";",
"compressed",
"direct",
"buf",
"limit",
"(",
"0",
")",
";",
"if",
"(",
"0",
"=",
"=",
"uncompressed",
"direct",
"buf",
"position",
"(",
")",
")",
"{",
"/",
"/",
"no",
"compressed",
"data",
",",
"so",
"we",
"should",
"have",
"!",
"needs",
"input",
"or",
"!",
"finished",
"set",
"input",
"from",
"saved",
"data",
"(",
")",
";",
"if",
"(",
"0",
"=",
"=",
"uncompressed",
"direct",
"buf",
"position",
"(",
")",
")",
"{",
"/",
"/",
"called",
"without",
"data",
";",
"write",
"nothing",
"finished",
"=",
"true",
";",
"return",
"0",
";",
"}",
"}",
"/",
"/",
"compress",
"data",
"n",
"=",
"compress",
"direct",
"buf",
"(",
")",
";",
"compressed",
"direct",
"buf",
"limit",
"(",
"n",
")",
";",
"uncompressed",
"direct",
"buf",
"clear",
"(",
")",
";",
"/",
"/",
"lz",
"4",
"consumes",
"all",
"buffer",
"input",
"/",
"/",
"set",
"'",
"finished",
"'",
"if",
"snapy",
"has",
"consumed",
"all",
"user",
"-",
"data",
"if",
"(",
"0",
"=",
"=",
"user",
"buf",
"len",
")",
"{",
"finished",
"=",
"true",
";",
"}",
"/",
"/",
"get",
"atmost",
"'",
"len",
"'",
"bytes",
"n",
"=",
"math",
"min",
"(",
"n",
",",
"len",
")",
";",
"bytes",
"written",
"+",
"=",
"n",
";",
"(",
"(",
"byte",
"buffer",
")",
"compressed",
"direct",
"buf",
")",
"get",
"(",
"b",
",",
"off",
",",
"n",
")",
";",
"return",
"n",
";",
"}"
]
|
[
"creates",
"an",
"injector",
"for",
"the",
"given",
"set",
"of",
"modules"
]
| [
"public",
"static",
"injector",
"create",
"injector",
"(",
"iterable",
"<",
"?",
"extends",
"module",
">",
"modules",
")",
"{",
"return",
"create",
"injector",
"(",
"stage",
"development",
",",
"modules",
")",
";",
"}"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"format",
"}",
"instance",
"containing",
"all",
"information",
"contained",
"in",
"the",
"given",
"{",
"@",
"link",
"media",
"track",
"}",
"object"
]
| [
"public",
"static",
"format",
"media",
"track",
"to",
"format",
"(",
"media",
"track",
"media",
"track",
")",
"{",
"return",
"new",
"format",
"builder",
"(",
")",
"set",
"id",
"(",
"media",
"track",
"get",
"content",
"id",
"(",
")",
")",
"set",
"container",
"mime",
"type",
"(",
"media",
"track",
"get",
"content",
"type",
"(",
")",
")",
"set",
"language",
"(",
"media",
"track",
"get",
"language",
"(",
")",
")",
"build",
"(",
")",
";",
"}"
]
|
[
"performs",
"creation",
"-",
"time",
"injections",
"on",
"all",
"objects",
"that",
"require",
"it",
"whenever",
"fulfilling",
"an",
"injection",
"depends",
"on",
"another",
"object",
"that",
"requires",
"injection",
",",
"we",
"inject",
"it",
"first",
"if",
"the",
"two",
"instances",
"are",
"codependent",
"(",
"directly",
"or",
"transitively",
")",
",",
"ordering",
"of",
"injection",
"is",
"arbitrary"
]
| [
"void",
"inject",
"all",
"(",
"final",
"errors",
"errors",
")",
"{",
"/",
"/",
"loop",
"over",
"a",
"defensive",
"copy",
"since",
"ensure",
"injected",
"(",
")",
"mutates",
"the",
"set",
"unfortunately",
",",
"that",
"copy",
"/",
"/",
"is",
"made",
"complicated",
"by",
"a",
"bug",
"in",
"ibm",
"'",
"s",
"jdk",
",",
"wherein",
"entry",
"set",
"(",
")",
"to",
"array",
"(",
"object",
"[",
"]",
")",
"doesn",
"'",
"t",
"work",
"for",
"(",
"injectable",
"reference",
"<",
"?",
">",
"reference",
":",
"new",
"array",
"list",
"<",
">",
"(",
"pending",
"injection",
"values",
"(",
")",
")",
")",
"{",
"try",
"{",
"reference",
"get",
"(",
"errors",
")",
";",
"}",
"catch",
"(",
"errors",
"exception",
"e",
")",
"{",
"errors",
"merge",
"(",
"e",
"get",
"errors",
"(",
")",
")",
";",
"}",
"}",
"if",
"(",
"!",
"pending",
"injection",
"is",
"empty",
"(",
")",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
"\"",
"failed",
"to",
"satisfy",
"\"",
"+",
"pending",
"injection",
")",
";",
"}",
"ready",
"count",
"down",
"(",
")",
";",
"}"
]
|
[
"returns",
"the",
"id",
"of",
"the",
"extra",
"data",
"record"
]
| [
"public",
"short",
"get",
"id",
"(",
")",
"{",
"return",
"zip",
"util",
"get",
"1",
"6",
"(",
"buffer",
",",
"index",
"+",
"id",
"offset",
")",
";",
"}"
]
|
[
"adds",
"an",
"array",
"of",
"false",
"positive",
"information",
"to",
"this",
"retouched",
"bloom",
"filter"
]
| [
"public",
"void",
"add",
"false",
"positive",
"(",
"key",
"[",
"]",
"keys",
")",
"{",
"if",
"(",
"keys",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
"\"",
"key",
"[",
"]",
"can",
"not",
"be",
"null",
"\"",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"keys",
"length",
";",
"i",
"+",
"+",
")",
"{",
"add",
"false",
"positive",
"(",
"keys",
"[",
"i",
"]",
")",
";",
"}",
"}"
]
|
[
"creates",
"a",
"queue",
":",
"spsc",
"-",
"array",
"if",
"capacity",
"hint",
"is",
"positive",
"and",
"spsc",
"-",
"linked",
"-",
"array",
"if",
"capacity",
"hint",
"is",
"negative",
";",
"in",
"both",
"cases",
",",
"the",
"capacity",
"is",
"the",
"absolute",
"value",
"of",
"prefetch"
]
| [
"public",
"static",
"<",
"t",
">",
"simple",
"queue",
"<",
"t",
">",
"create",
"queue",
"(",
"int",
"capacity",
"hint",
")",
"{",
"if",
"(",
"capacity",
"hint",
"<",
"0",
")",
"{",
"return",
"new",
"spsc",
"linked",
"array",
"queue",
"<",
">",
"(",
"-",
"capacity",
"hint",
")",
";",
"}",
"return",
"new",
"spsc",
"array",
"queue",
"<",
">",
"(",
"capacity",
"hint",
")",
";",
"}"
]
|
[
"returns",
"the",
"size",
"of",
"the",
"major",
"stride",
"of",
"the",
"matrix",
"type"
]
| [
"public",
"long",
"get",
"major",
"stride",
"(",
")",
"{",
"return",
"major",
"stride",
";",
"}"
]
|
[
"called",
"right",
"before",
"a",
"job",
"is",
"going",
"to",
"be",
"deleted",
"at",
"this",
"point",
"the",
"data",
"files",
"of",
"the",
"job",
"is",
"already",
"gone"
]
| [
"public",
"void",
"on",
"deleted",
"(",
"item",
"item",
")",
"{",
"}"
]
|
[
"closes",
"the",
"test",
"env",
"'",
"s",
"default",
"tool",
"this",
"method",
"is",
"asynchronous",
",",
"so",
"you",
"must",
"wait",
"for",
"the",
"swing",
"thread",
"to",
"perform",
"the",
"work",
"yourself",
"watch",
"out",
"for",
"modal",
"dialogs"
]
| [
"public",
"void",
"close",
"tool",
"(",
")",
"{",
"if",
"(",
"tool",
"=",
"=",
"null",
")",
"{",
"msg",
"info",
"(",
"this",
",",
"\"",
"test",
"env",
"tool",
"does",
"not",
"exist",
";",
"cannot",
"close",
"\"",
")",
";",
"return",
";",
"}",
"close",
"all",
"programs",
"for",
"(",
"tool",
")",
";",
"/",
"/",
"don",
"'",
"t",
"want",
"to",
"prompt",
"for",
"saving",
"abstract",
"generic",
"test",
"run",
"swing",
"(",
"(",
")",
"-",
">",
"{",
"tool",
"set",
"config",
"changed",
"(",
"false",
")",
";",
"}",
")",
";",
"abstract",
"generic",
"test",
"run",
"swing",
"(",
"(",
")",
"-",
">",
"tool",
"close",
"(",
")",
",",
"false",
")",
";",
"abstract",
"generic",
"test",
"wait",
"for",
"swing",
"(",
")",
";",
"tool",
"=",
"null",
";",
"}"
]
|
[
"returns",
"true",
"if",
"there",
"are",
"any",
"lto",
"bitcode",
"inputs",
"to",
"this",
"link",
",",
"either",
"directly",
"transitively",
"via",
"library",
"inputs"
]
| [
"public",
"boolean",
"has",
"lto",
"bitcode",
"inputs",
"(",
")",
"{",
"if",
"(",
"!",
"lto",
"compilation",
"context",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"for",
"(",
"linker",
"inputs",
"library",
"to",
"link",
"lib",
":",
"libraries",
"build",
"(",
")",
"to",
"list",
"(",
")",
")",
"{",
"if",
"(",
"!",
"lib",
"get",
"lto",
"compilation",
"context",
"(",
")",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
]
|
[
"health",
"check",
"pass"
]
| [
"public",
"void",
"check",
"o",
"k",
"(",
"instance",
"ip",
",",
"health",
"check",
"task",
"task",
",",
"string",
"msg",
")",
"{",
"cluster",
"cluster",
"=",
"task",
"get",
"cluster",
"(",
")",
";",
"try",
"{",
"if",
"(",
"!",
"ip",
"is",
"healthy",
"(",
")",
"|",
"|",
"!",
"ip",
"is",
"mock",
"valid",
"(",
")",
")",
"{",
"if",
"(",
"ip",
"get",
"ok",
"count",
"(",
")",
"increment",
"and",
"get",
"(",
")",
">",
"=",
"switch",
"domain",
"get",
"check",
"times",
"(",
")",
")",
"{",
"if",
"(",
"distro",
"mapper",
"responsible",
"(",
"cluster",
",",
"ip",
")",
")",
"{",
"ip",
"set",
"healthy",
"(",
"true",
")",
";",
"ip",
"set",
"mock",
"valid",
"(",
"true",
")",
";",
"service",
"service",
"=",
"cluster",
"get",
"service",
"(",
")",
";",
"service",
"set",
"last",
"modified",
"millis",
"(",
"system",
"current",
"time",
"millis",
"(",
")",
")",
";",
"push",
"service",
"service",
"changed",
"(",
"service",
")",
";",
"add",
"result",
"(",
"new",
"health",
"check",
"result",
"(",
"service",
"get",
"name",
"(",
")",
",",
"ip",
")",
")",
";",
"loggers",
"evt",
"log",
"info",
"(",
"\"",
"service",
"name",
":",
"{",
"}",
"{",
"pos",
"}",
"{",
"ip",
"-",
"enabled",
"}",
"valid",
":",
"{",
"}",
":",
"{",
"}",
"@",
"{",
"}",
",",
"region",
":",
"{",
"}",
",",
"msg",
":",
"{",
"}",
"\"",
",",
"cluster",
"get",
"service",
"(",
")",
"get",
"name",
"(",
")",
",",
"ip",
"get",
"ip",
"(",
")",
",",
"ip",
"get",
"port",
"(",
")",
",",
"cluster",
"get",
"name",
"(",
")",
",",
"utils",
"and",
"commons",
"localhost",
"site",
",",
"msg",
")",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"ip",
"is",
"mock",
"valid",
"(",
")",
")",
"{",
"ip",
"set",
"mock",
"valid",
"(",
"true",
")",
";",
"loggers",
"evt",
"log",
"info",
"(",
"\"",
"service",
"name",
":",
"{",
"}",
"{",
"probe",
"}",
"{",
"ip",
"-",
"enabled",
"}",
"valid",
":",
"{",
"}",
":",
"{",
"}",
"@",
"{",
"}",
",",
"region",
":",
"{",
"}",
",",
"msg",
":",
"{",
"}",
"\"",
",",
"cluster",
"get",
"service",
"(",
")",
"get",
"name",
"(",
")",
",",
"ip",
"get",
"ip",
"(",
")",
",",
"ip",
"get",
"port",
"(",
")",
",",
"cluster",
"get",
"name",
"(",
")",
",",
"utils",
"and",
"commons",
"localhost",
"site",
",",
"msg",
")",
";",
"}",
"}",
"}",
"else",
"{",
"loggers",
"evt",
"log",
"info",
"(",
"\"",
"service",
"name",
":",
"{",
"}",
"{",
"other",
"}",
"{",
"ip",
"-",
"enabled",
"}",
"pre",
"-",
"valid",
":",
"{",
"}",
":",
"{",
"}",
"@",
"{",
"}",
"in",
"{",
"}",
",",
"msg",
":",
"{",
"}",
"\"",
",",
"cluster",
"get",
"service",
"(",
")",
"get",
"name",
"(",
")",
",",
"ip",
"get",
"ip",
"(",
")",
",",
"ip",
"get",
"port",
"(",
")",
",",
"cluster",
"get",
"name",
"(",
")",
",",
"ip",
"get",
"ok",
"count",
"(",
")",
",",
"msg",
")",
";",
"}",
"}",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"loggers",
"srv",
"log",
"error",
"(",
"\"",
"[",
"check",
"-",
"ok",
"]",
"error",
"when",
"close",
"check",
"task",
"\"",
",",
"t",
")",
";",
"}",
"ip",
"get",
"fail",
"count",
"(",
")",
"set",
"(",
"0",
")",
";",
"ip",
"set",
"being",
"checked",
"(",
"false",
")",
";",
"}"
]
|
[
"gets",
"the",
"managed",
"native",
"header",
"directory"
]
| [
"public",
"default",
"data",
"directory",
"get",
"managed",
"native",
"header",
"(",
")",
"{",
"return",
"managed",
"native",
"header",
";",
"}"
]
|
[
"destroy",
"arouter",
",",
"it",
"can",
"be",
"used",
"only",
"in",
"debug",
"mode"
]
| [
"static",
"synchronized",
"void",
"destroy",
"(",
")",
"{",
"if",
"(",
"debuggable",
"(",
")",
")",
"{",
"has",
"init",
"=",
"false",
";",
"logistics",
"center",
"suspend",
"(",
")",
";",
"logger",
"info",
"(",
"consts",
"tag",
",",
"\"",
"a",
"router",
"destroy",
"success",
"!",
"\"",
")",
";",
"}",
"else",
"{",
"logger",
"error",
"(",
"consts",
"tag",
",",
"\"",
"destroy",
"can",
"be",
"used",
"in",
"debug",
"mode",
"only",
"!",
"\"",
")",
";",
"}",
"}"
]
|
[
"creates",
"list",
"of",
"users",
"with",
"given",
"input",
"array",
"<",
"b",
">",
"0",
"<",
"b",
">",
"-",
"successful",
"operation"
]
| [
"public",
"void",
"create",
"users",
"with",
"array",
"input",
"(",
"list",
"<",
"user",
">",
"body",
")",
"throws",
"rest",
"client",
"exception",
"{",
"create",
"users",
"with",
"array",
"input",
"with",
"http",
"info",
"(",
"body",
")",
";",
"}"
]
|
[
"subclasses",
"can",
"override",
"to",
"provide",
"different",
"return",
"value",
"for",
"proxied",
"interface",
"methods"
]
| [
"object",
"interface",
"method",
"called",
"(",
"class",
"<",
"?",
">",
"interface",
"type",
",",
"method",
"method",
")",
"{",
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"namespace",
"integer",
"'"
]
| [
"public",
"void",
"namespace",
"integer",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"namespace",
"integer",
"}"
]
|
[
"convert",
"a",
"{",
"@",
"link",
"com",
"google",
"rpc",
"status",
"}",
"instance",
"to",
"a",
"{",
"@",
"link",
"status",
"exception",
"}",
"with",
"additional",
"metadata",
"the",
"returned",
"{",
"@",
"link",
"status",
"exception",
"}",
"will",
"wrap",
"a",
"{",
"@",
"link",
"status",
"}",
"whose",
"code",
"and",
"description",
"are",
"set",
"from",
"the",
"code",
"and",
"message",
"in",
"{",
"@",
"code",
"status",
"proto",
"}",
"{",
"@",
"code",
"status",
"proto",
"}",
"will",
"be",
"serialized",
"and",
"added",
"to",
"{",
"@",
"code",
"metadata",
"}",
"{",
"@",
"code",
"metadata",
"}",
"will",
"be",
"set",
"as",
"the",
"metadata",
"of",
"the",
"returned",
"{",
"@",
"link",
"status",
"exception",
"}"
]
| [
"public",
"static",
"status",
"exception",
"to",
"status",
"exception",
"(",
"com",
"google",
"rpc",
"status",
"status",
"proto",
",",
"metadata",
"metadata",
")",
"{",
"return",
"to",
"status",
"(",
"status",
"proto",
")",
"as",
"exception",
"(",
"to",
"metadata",
"(",
"status",
"proto",
",",
"metadata",
")",
")",
";",
"}"
]
|
[
"create",
"the",
"{",
"@",
"link",
"exchange",
"result",
"}",
"for",
"the",
"given",
"\"",
"request",
"-",
"id",
"\"",
"header",
"value"
]
| [
"exchange",
"result",
"get",
"exchange",
"result",
"(",
"string",
"request",
"id",
",",
"@",
"nullable",
"string",
"uri",
"template",
",",
"duration",
"timeout",
")",
"{",
"client",
"exchange",
"info",
"client",
"info",
"=",
"this",
"exchanges",
"remove",
"(",
"request",
"id",
")",
";",
"assert",
"state",
"(",
"client",
"info",
"!",
"=",
"null",
",",
"(",
")",
"-",
">",
"{",
"string",
"header",
"=",
"web",
"test",
"client",
"webtestclient",
"request",
"id",
";",
"return",
"\"",
"no",
"match",
"for",
"\"",
"+",
"header",
"+",
"\"",
"=",
"\"",
"+",
"request",
"id",
";",
"}",
")",
";",
"return",
"new",
"exchange",
"result",
"(",
"client",
"info",
"get",
"request",
"(",
")",
",",
"client",
"info",
"get",
"response",
"(",
")",
",",
"client",
"info",
"get",
"request",
"(",
")",
"get",
"recorder",
"(",
")",
"get",
"content",
"(",
")",
",",
"client",
"info",
"get",
"response",
"(",
")",
"get",
"recorder",
"(",
")",
"get",
"content",
"(",
")",
",",
"timeout",
",",
"uri",
"template",
",",
"client",
"info",
"get",
"response",
"(",
")",
"get",
"mock",
"server",
"result",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"a",
"key",
"that",
"uniquely",
"identifies",
"this",
"rule",
"or",
"aspect"
]
| [
"public",
"string",
"get",
"key",
"(",
")",
"{",
"return",
"key",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"long",
"get",
"cpu",
"frequency",
"(",
")",
"{",
"refresh",
"if",
"needed",
"(",
")",
";",
"return",
"cpu",
"frequency",
"khz",
";",
"}"
]
|
[
"creates",
"a",
"new",
"blocking",
"-",
"style",
"stub",
"that",
"supports",
"unary",
"and",
"streaming",
"output",
"calls",
"on",
"the",
"service"
]
| [
"public",
"static",
"xds",
"update",
"client",
"configure",
"service",
"blocking",
"stub",
"new",
"blocking",
"stub",
"(",
"io",
"grpc",
"channel",
"channel",
")",
"{",
"io",
"grpc",
"stub",
"abstract",
"stub",
"stub",
"factory",
"<",
"xds",
"update",
"client",
"configure",
"service",
"blocking",
"stub",
">",
"factory",
"=",
"new",
"io",
"grpc",
"stub",
"abstract",
"stub",
"stub",
"factory",
"<",
"xds",
"update",
"client",
"configure",
"service",
"blocking",
"stub",
">",
"(",
")",
"{",
"@",
"java",
"lang",
"override",
"public",
"xds",
"update",
"client",
"configure",
"service",
"blocking",
"stub",
"new",
"stub",
"(",
"io",
"grpc",
"channel",
"channel",
",",
"io",
"grpc",
"call",
"options",
"call",
"options",
")",
"{",
"return",
"new",
"xds",
"update",
"client",
"configure",
"service",
"blocking",
"stub",
"(",
"channel",
",",
"call",
"options",
")",
";",
"}",
"}",
";",
"return",
"xds",
"update",
"client",
"configure",
"service",
"blocking",
"stub",
"new",
"stub",
"(",
"factory",
",",
"channel",
")",
";",
"}"
]
|
[
"create",
"a",
"module",
"with",
"the",
"name",
"as",
"the",
"name",
"specified",
";",
"append",
"a",
"one",
"-",
"up",
"number",
"if",
"we",
"get",
"a",
"duplicate",
"name",
"exception"
]
| [
"private",
"program",
"module",
"create",
"module",
"(",
"program",
"module",
"module",
",",
"string",
"new",
"name",
")",
"{",
"boolean",
"done",
"=",
"false",
";",
"int",
"index",
"=",
"0",
";",
"string",
"base",
"name",
"=",
"new",
"string",
"(",
"new",
"name",
")",
";",
"string",
"name",
"=",
"base",
"name",
";",
"while",
"(",
"!",
"done",
")",
"{",
"try",
"{",
"return",
"module",
"create",
"module",
"(",
"name",
")",
";",
"}",
"catch",
"(",
"duplicate",
"name",
"exception",
"e",
")",
"{",
"+",
"+",
"index",
";",
"name",
"=",
"base",
"name",
"+",
"\"",
"(",
"\"",
"+",
"index",
"+",
"\"",
")",
"\"",
";",
"}",
"}",
"return",
"null",
";",
"}"
]
|
[
"build",
"table",
"attribute",
"values",
"map"
]
| [
"private",
"static",
"map",
"<",
"string",
",",
"attribute",
"value",
">",
"build",
"table",
"attribute",
"values",
"map",
"(",
"final",
"yubi",
"key",
"account",
"record",
")",
"{",
"val",
"values",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"attribute",
"value",
">",
"(",
")",
";",
"values",
"put",
"(",
"column",
"names",
"id",
"get",
"column",
"name",
"(",
")",
",",
"attribute",
"value",
"builder",
"(",
")",
"n",
"(",
"string",
"value",
"of",
"(",
"record",
"get",
"id",
"(",
")",
")",
")",
"build",
"(",
")",
")",
";",
"values",
"put",
"(",
"column",
"names",
"username",
"get",
"column",
"name",
"(",
")",
",",
"attribute",
"value",
"builder",
"(",
")",
"s",
"(",
"string",
"value",
"of",
"(",
"record",
"get",
"username",
"(",
")",
")",
")",
"build",
"(",
")",
")",
";",
"values",
"put",
"(",
"column",
"names",
"device",
"identifiers",
"get",
"column",
"name",
"(",
")",
",",
"to",
"attribute",
"value",
"(",
"record",
")",
")",
";",
"logger",
"debug",
"(",
"\"",
"created",
"attribute",
"values",
"[",
"{",
"}",
"]",
"based",
"on",
"[",
"{",
"}",
"]",
"\"",
",",
"values",
",",
"record",
")",
";",
"return",
"values",
";",
"}"
]
|
[
"returns",
"whether",
"there",
"are",
"any",
"entities",
"on",
"this",
"tile"
]
| [
"public",
"static",
"boolean",
"any",
"entities",
"(",
"tile",
"tile",
")",
"{",
"return",
"any",
"entities",
"(",
"tile",
",",
"true",
")",
";",
"}"
]
|
[
"guards",
"against",
"errors",
"that",
"leak",
"from",
"storage",
",",
"such",
"as",
"invalid",
"query",
"exception"
]
| [
"@",
"test",
"void",
"skips",
"on",
"span",
"storage",
"exception",
"(",
")",
"throws",
"exception",
"{",
"atomic",
"integer",
"counter",
"=",
"new",
"atomic",
"integer",
"(",
")",
";",
"consumer",
"=",
"(",
"input",
")",
"-",
">",
"new",
"call",
"base",
"<",
"void",
">",
"(",
")",
"{",
"@",
"override",
"protected",
"void",
"do",
"execute",
"(",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
")",
";",
"}",
"@",
"override",
"protected",
"void",
"do",
"enqueue",
"(",
"callback",
"<",
"void",
">",
"callback",
")",
"{",
"if",
"(",
"counter",
"get",
"and",
"increment",
"(",
")",
"=",
"=",
"1",
")",
"{",
"callback",
"on",
"error",
"(",
"new",
"runtime",
"exception",
"(",
"\"",
"storage",
"fell",
"over",
"\"",
")",
")",
";",
"}",
"else",
"{",
"received",
"spans",
"add",
"(",
"spans",
")",
";",
"callback",
"on",
"success",
"(",
"null",
")",
";",
"}",
"}",
"@",
"override",
"public",
"call",
"<",
"void",
">",
"clone",
"(",
")",
"{",
"throw",
"new",
"assertion",
"error",
"(",
")",
";",
"}",
"}",
";",
"final",
"storage",
"component",
"storage",
"=",
"build",
"storage",
"(",
"consumer",
")",
";",
"kafka",
"collector",
"builder",
"builder",
"=",
"builder",
"(",
"\"",
"storage",
"exception",
"\"",
")",
"storage",
"(",
"storage",
")",
";",
"produce",
"spans",
"(",
"thrift",
"encode",
"list",
"(",
"spans",
")",
",",
"builder",
"topic",
")",
";",
"produce",
"spans",
"(",
"thrift",
"encode",
"list",
"(",
"spans",
")",
",",
"builder",
"topic",
")",
";",
"/",
"/",
"tossed",
"on",
"error",
"produce",
"spans",
"(",
"thrift",
"encode",
"list",
"(",
"spans",
")",
",",
"builder",
"topic",
")",
";",
"try",
"(",
"kafka",
"collector",
"collector",
"=",
"builder",
"build",
"(",
")",
")",
"{",
"collector",
"start",
"(",
")",
";",
"assert",
"that",
"(",
"received",
"spans",
"take",
"(",
")",
")",
"contains",
"exactly",
"elements",
"of",
"(",
"spans",
")",
";",
"/",
"/",
"the",
"only",
"way",
"we",
"could",
"read",
"this",
",",
"is",
"if",
"the",
"malformed",
"span",
"was",
"skipped",
"assert",
"that",
"(",
"received",
"spans",
"take",
"(",
")",
")",
"contains",
"exactly",
"elements",
"of",
"(",
"spans",
")",
";",
"}",
"assert",
"that",
"(",
"kafka",
"metrics",
"messages",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"3",
")",
";",
"assert",
"that",
"(",
"kafka",
"metrics",
"messages",
"dropped",
"(",
")",
")",
"is",
"zero",
"(",
")",
";",
"/",
"/",
"storage",
"failure",
"isn",
"'",
"t",
"a",
"message",
"failure",
"assert",
"that",
"(",
"kafka",
"metrics",
"bytes",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"thrift",
"encode",
"list",
"(",
"spans",
")",
"length",
"*",
"3",
")",
";",
"assert",
"that",
"(",
"kafka",
"metrics",
"spans",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"spans",
"size",
"(",
")",
"*",
"3",
")",
";",
"assert",
"that",
"(",
"kafka",
"metrics",
"spans",
"dropped",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"spans",
"size",
"(",
")",
")",
";",
"/",
"/",
"only",
"one",
"dropped",
"}"
]
|
[
"gets",
"the",
"primary",
"name",
"of",
"the",
"processor",
"architecture",
"the",
"primary",
"name",
"would",
"for",
"example",
"be",
"\"",
"x",
"8",
"6",
"\"",
"or",
"\"",
"amd",
"6",
"4",
"\""
]
| [
"public",
"string",
"get",
"architecture",
"name",
"(",
")",
"{",
"return",
"name",
";",
"}"
]
|
[
"updates",
"the",
"specified",
"entry",
"to",
"point",
"to",
"the",
"new",
"value",
":",
"removes",
"the",
"old",
"value",
"from",
"the",
"v",
"-",
"to",
"-",
"k",
"mapping",
"and",
"puts",
"the",
"new",
"one",
"in",
"the",
"entry",
"is",
"moved",
"to",
"the",
"end",
"of",
"the",
"insertion",
"order",
",",
"or",
"to",
"the",
"position",
"of",
"the",
"new",
"key",
"if",
"it",
"was",
"previously",
"present"
]
| [
"private",
"void",
"replace",
"key",
"in",
"entry",
"(",
"int",
"entry",
",",
"@",
"nullable",
"decl",
"k",
"new",
"key",
",",
"boolean",
"force",
")",
"{",
"check",
"argument",
"(",
"entry",
"!",
"=",
"absent",
")",
";",
"int",
"new",
"key",
"hash",
"=",
"hashing",
"smeared",
"hash",
"(",
"new",
"key",
")",
";",
"int",
"new",
"key",
"index",
"=",
"find",
"entry",
"by",
"key",
"(",
"new",
"key",
",",
"new",
"key",
"hash",
")",
";",
"int",
"new",
"predecessor",
"=",
"last",
"in",
"insertion",
"order",
";",
"int",
"new",
"successor",
"=",
"endpoint",
";",
"if",
"(",
"new",
"key",
"index",
"!",
"=",
"absent",
")",
"{",
"if",
"(",
"force",
")",
"{",
"new",
"predecessor",
"=",
"prev",
"in",
"insertion",
"order",
"[",
"new",
"key",
"index",
"]",
";",
"new",
"successor",
"=",
"next",
"in",
"insertion",
"order",
"[",
"new",
"key",
"index",
"]",
";",
"remove",
"entry",
"key",
"hash",
"known",
"(",
"new",
"key",
"index",
",",
"new",
"key",
"hash",
")",
";",
"if",
"(",
"entry",
"=",
"=",
"size",
")",
"{",
"/",
"/",
"this",
"entry",
"got",
"moved",
"to",
"new",
"key",
"index",
"entry",
"=",
"new",
"key",
"index",
";",
"}",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"key",
"already",
"present",
"in",
"map",
":",
"\"",
"+",
"new",
"key",
")",
";",
"}",
"}",
"if",
"(",
"new",
"predecessor",
"=",
"=",
"entry",
")",
"{",
"new",
"predecessor",
"=",
"prev",
"in",
"insertion",
"order",
"[",
"entry",
"]",
";",
"}",
"else",
"if",
"(",
"new",
"predecessor",
"=",
"=",
"size",
")",
"{",
"new",
"predecessor",
"=",
"new",
"key",
"index",
";",
"}",
"if",
"(",
"new",
"successor",
"=",
"=",
"entry",
")",
"{",
"new",
"successor",
"=",
"next",
"in",
"insertion",
"order",
"[",
"entry",
"]",
";",
"}",
"else",
"if",
"(",
"new",
"successor",
"=",
"=",
"size",
")",
"{",
"new",
"successor",
"=",
"new",
"key",
"index",
";",
"}",
"int",
"old",
"predecessor",
"=",
"prev",
"in",
"insertion",
"order",
"[",
"entry",
"]",
";",
"int",
"old",
"successor",
"=",
"next",
"in",
"insertion",
"order",
"[",
"entry",
"]",
";",
"set",
"succeeds",
"(",
"old",
"predecessor",
",",
"old",
"successor",
")",
";",
"/",
"/",
"remove",
"from",
"insertion",
"order",
"linked",
"list",
"delete",
"from",
"table",
"k",
"to",
"v",
"(",
"entry",
",",
"hashing",
"smeared",
"hash",
"(",
"keys",
"[",
"entry",
"]",
")",
")",
";",
"keys",
"[",
"entry",
"]",
"=",
"new",
"key",
";",
"insert",
"into",
"table",
"k",
"to",
"v",
"(",
"entry",
",",
"hashing",
"smeared",
"hash",
"(",
"new",
"key",
")",
")",
";",
"/",
"/",
"insert",
"into",
"insertion",
"order",
"linked",
"list",
",",
"usually",
"at",
"the",
"end",
"set",
"succeeds",
"(",
"new",
"predecessor",
",",
"entry",
")",
";",
"set",
"succeeds",
"(",
"entry",
",",
"new",
"successor",
")",
";",
"}"
]
|
[
"remembers",
"to",
"place",
"the",
"given",
"instructions",
"right",
"after",
"the",
"instruction",
"at",
"the",
"given",
"offset"
]
| [
"public",
"void",
"insert",
"after",
"instruction",
"(",
"int",
"instruction",
"offset",
",",
"instruction",
"[",
"]",
"instructions",
")",
"{",
"if",
"(",
"instruction",
"offset",
"<",
"0",
"|",
"|",
"instruction",
"offset",
">",
"=",
"code",
"length",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"instruction",
"offset",
"[",
"\"",
"+",
"instruction",
"offset",
"+",
"\"",
"]",
"in",
"code",
"with",
"length",
"[",
"\"",
"+",
"code",
"length",
"+",
"\"",
"]",
"\"",
")",
";",
"}",
"composite",
"instruction",
"instruction",
"=",
"new",
"composite",
"instruction",
"(",
"instructions",
")",
";",
"post",
"insertions",
"[",
"instruction",
"offset",
"]",
"=",
"shrink",
"instructions",
"?",
"instruction",
"shrink",
"(",
")",
":",
"instruction",
";",
"modified",
"=",
"true",
";",
"simple",
"=",
"false",
";",
"}"
]
|
[
"gets",
"address",
"referred",
"to",
"by",
"the",
"rtti",
"1",
"pointer",
"at",
"the",
"specified",
"index",
"in",
"the",
"rtti2",
"'",
"s",
"array",
"that",
"is",
"at",
"the",
"rtti",
"2",
"address"
]
| [
"public",
"address",
"get",
"rtti",
"1",
"address",
"(",
"memory",
"memory",
",",
"address",
"rtti",
"2",
"address",
",",
"int",
"rtti",
"1",
"index",
")",
"{",
"return",
"get",
"rtti",
"1",
"address",
"(",
"memory",
"get",
"program",
"(",
")",
",",
"rtti",
"2",
"address",
",",
"rtti",
"1",
"index",
")",
";",
"}"
]
|
[
"return",
"whether",
"to",
"inhibit",
"the",
"delivery",
"of",
"messages",
"published",
"by",
"its",
"own",
"connection"
]
| [
"public",
"boolean",
"is",
"pub",
"sub",
"no",
"local",
"(",
")",
"{",
"return",
"this",
"pub",
"sub",
"no",
"local",
";",
"}"
]
|
[
"invoked",
"by",
"the",
"containing",
"{",
"@",
"code",
"bean",
"factory",
"}",
"on",
"destruction",
"of",
"a",
"bean"
]
| [
"void",
"destroy",
"(",
")",
"throws",
"exception",
";"
]
|
[
"processes",
"any",
"pending",
"batch",
"of",
"buffers",
"without",
"using",
"a",
"decoder",
",",
"and",
"drains",
"a",
"new",
"batch",
"of",
"buffers",
"from",
"the",
"source"
]
| [
"private",
"boolean",
"bypass",
"render",
"(",
"long",
"position",
"us",
",",
"long",
"elapsed",
"realtime",
"us",
")",
"throws",
"exo",
"playback",
"exception",
"{",
"batch",
"buffer",
"batch",
"buffer",
"=",
"bypass",
"batch",
"buffer",
";",
"/",
"/",
"process",
"any",
"data",
"in",
"the",
"batch",
"buffer",
"check",
"state",
"(",
"!",
"output",
"stream",
"ended",
")",
";",
"if",
"(",
"!",
"batch",
"buffer",
"is",
"empty",
"(",
")",
")",
"{",
"/",
"/",
"optimisation",
":",
"do",
"not",
"process",
"buffer",
"if",
"empty",
"if",
"(",
"process",
"output",
"buffer",
"(",
"position",
"us",
",",
"elapsed",
"realtime",
"us",
",",
"/",
"*",
"codec",
"=",
"*",
"/",
"null",
",",
"batch",
"buffer",
"data",
",",
"output",
"index",
",",
"/",
"*",
"buffer",
"flags",
"=",
"*",
"/",
"0",
",",
"batch",
"buffer",
"get",
"access",
"unit",
"count",
"(",
")",
",",
"batch",
"buffer",
"get",
"first",
"access",
"unit",
"time",
"us",
"(",
")",
",",
"batch",
"buffer",
"is",
"decode",
"only",
"(",
")",
",",
"batch",
"buffer",
"is",
"end",
"of",
"stream",
"(",
")",
",",
"output",
"format",
")",
")",
"{",
"on",
"processed",
"output",
"buffer",
"(",
"batch",
"buffer",
"get",
"last",
"access",
"unit",
"time",
"us",
"(",
")",
")",
";",
"}",
"else",
"{",
"/",
"/",
"could",
"not",
"process",
"the",
"whole",
"buffer",
"try",
"again",
"later",
"return",
"false",
";",
"}",
"}",
"/",
"/",
"process",
"the",
"end",
"of",
"stream",
",",
"if",
"it",
"has",
"been",
"reached",
"if",
"(",
"batch",
"buffer",
"is",
"end",
"of",
"stream",
"(",
")",
")",
"{",
"output",
"stream",
"ended",
"=",
"true",
";",
"return",
"false",
";",
"}",
"batch",
"buffer",
"batch",
"was",
"consumed",
"(",
")",
";",
"if",
"(",
"bypass",
"drain",
"and",
"reinitialize",
")",
"{",
"if",
"(",
"!",
"batch",
"buffer",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"true",
";",
"/",
"/",
"drain",
"the",
"batch",
"buffer",
"before",
"propagating",
"the",
"format",
"change",
"}",
"disable",
"bypass",
"(",
")",
";",
"/",
"/",
"the",
"new",
"format",
"might",
"require",
"a",
"codec",
"bypass",
"drain",
"and",
"reinitialize",
"=",
"false",
";",
"maybe",
"init",
"codec",
"or",
"bypass",
"(",
")",
";",
"if",
"(",
"!",
"bypass",
"enabled",
")",
"{",
"return",
"false",
";",
"/",
"/",
"the",
"new",
"format",
"is",
"not",
"supported",
"in",
"codec",
"bypass",
"}",
"}",
"/",
"/",
"now",
"refill",
"the",
"empty",
"buffer",
"for",
"the",
"next",
"iteration",
"check",
"state",
"(",
"!",
"input",
"stream",
"ended",
")",
";",
"format",
"holder",
"format",
"holder",
"=",
"get",
"format",
"holder",
"(",
")",
";",
"boolean",
"format",
"change",
"=",
"read",
"batch",
"from",
"source",
"(",
"format",
"holder",
",",
"batch",
"buffer",
")",
";",
"if",
"(",
"!",
"batch",
"buffer",
"is",
"empty",
"(",
")",
"&",
"&",
"waiting",
"for",
"first",
"sample",
"in",
"format",
")",
"{",
"/",
"/",
"this",
"is",
"the",
"first",
"buffer",
"in",
"a",
"new",
"format",
",",
"the",
"output",
"format",
"must",
"be",
"updated",
"output",
"format",
"=",
"assertions",
"check",
"not",
"null",
"(",
"input",
"format",
")",
";",
"on",
"output",
"format",
"changed",
"(",
"output",
"format",
",",
"/",
"*",
"media",
"format",
"=",
"*",
"/",
"null",
")",
";",
"waiting",
"for",
"first",
"sample",
"in",
"format",
"=",
"false",
";",
"}",
"if",
"(",
"format",
"change",
")",
"{",
"on",
"input",
"format",
"changed",
"(",
"format",
"holder",
")",
";",
"}",
"boolean",
"have",
"data",
"to",
"process",
"=",
"false",
";",
"if",
"(",
"batch",
"buffer",
"is",
"end",
"of",
"stream",
"(",
")",
")",
"{",
"input",
"stream",
"ended",
"=",
"true",
";",
"have",
"data",
"to",
"process",
"=",
"true",
";",
"}",
"if",
"(",
"!",
"batch",
"buffer",
"is",
"empty",
"(",
")",
")",
"{",
"batch",
"buffer",
"flip",
"(",
")",
";",
"have",
"data",
"to",
"process",
"=",
"true",
";",
"}",
"return",
"have",
"data",
"to",
"process",
";",
"}"
]
|
[
"attempts",
"to",
"locate",
"an",
"alignment",
"pattern",
"in",
"a",
"limited",
"region",
"of",
"the",
"image",
",",
"which",
"is",
"guessed",
"to",
"contain",
"it",
"this",
"method",
"uses",
"{",
"@",
"link",
"alignment",
"pattern",
"}"
]
| [
"protected",
"final",
"alignment",
"pattern",
"find",
"alignment",
"in",
"region",
"(",
"float",
"overall",
"est",
"module",
"size",
",",
"int",
"est",
"alignment",
"x",
",",
"int",
"est",
"alignment",
"y",
",",
"float",
"allowance",
"factor",
")",
"throws",
"not",
"found",
"exception",
"{",
"/",
"/",
"look",
"for",
"an",
"alignment",
"pattern",
"(",
"3",
"modules",
"in",
"size",
")",
"around",
"where",
"it",
"/",
"/",
"should",
"be",
"int",
"allowance",
"=",
"(",
"int",
")",
"(",
"allowance",
"factor",
"*",
"overall",
"est",
"module",
"size",
")",
";",
"int",
"alignment",
"area",
"left",
"x",
"=",
"math",
"max",
"(",
"0",
",",
"est",
"alignment",
"x",
"-",
"allowance",
")",
";",
"int",
"alignment",
"area",
"right",
"x",
"=",
"math",
"min",
"(",
"image",
"get",
"width",
"(",
")",
"-",
"1",
",",
"est",
"alignment",
"x",
"+",
"allowance",
")",
";",
"if",
"(",
"alignment",
"area",
"right",
"x",
"-",
"alignment",
"area",
"left",
"x",
"<",
"overall",
"est",
"module",
"size",
"*",
"3",
")",
"{",
"throw",
"not",
"found",
"exception",
"get",
"not",
"found",
"instance",
"(",
")",
";",
"}",
"int",
"alignment",
"area",
"top",
"y",
"=",
"math",
"max",
"(",
"0",
",",
"est",
"alignment",
"y",
"-",
"allowance",
")",
";",
"int",
"alignment",
"area",
"bottom",
"y",
"=",
"math",
"min",
"(",
"image",
"get",
"height",
"(",
")",
"-",
"1",
",",
"est",
"alignment",
"y",
"+",
"allowance",
")",
";",
"if",
"(",
"alignment",
"area",
"bottom",
"y",
"-",
"alignment",
"area",
"top",
"y",
"<",
"overall",
"est",
"module",
"size",
"*",
"3",
")",
"{",
"throw",
"not",
"found",
"exception",
"get",
"not",
"found",
"instance",
"(",
")",
";",
"}",
"alignment",
"pattern",
"finder",
"alignment",
"finder",
"=",
"new",
"alignment",
"pattern",
"finder",
"(",
"image",
",",
"alignment",
"area",
"left",
"x",
",",
"alignment",
"area",
"top",
"y",
",",
"alignment",
"area",
"right",
"x",
"-",
"alignment",
"area",
"left",
"x",
",",
"alignment",
"area",
"bottom",
"y",
"-",
"alignment",
"area",
"top",
"y",
",",
"overall",
"est",
"module",
"size",
",",
"result",
"point",
"callback",
")",
";",
"return",
"alignment",
"finder",
"find",
"(",
")",
";",
"}"
]
|
[
"creates",
"the",
"log",
"file",
"absolute",
"base",
"path",
"according",
"to",
"the",
"given",
"pattern"
]
| [
"private",
"static",
"path",
"get",
"base",
"file",
"path",
"(",
"string",
"prefix",
",",
"string",
"pattern",
")",
"{",
"check",
"not",
"null",
"(",
"prefix",
",",
"\"",
"prefix",
"\"",
")",
";",
"check",
"not",
"null",
"(",
"pattern",
",",
"\"",
"pattern",
"\"",
")",
";",
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
"100",
")",
";",
"/",
"/",
"typical",
"name",
"is",
"<",
"100",
"bytes",
"boolean",
"in",
"var",
"=",
"false",
";",
"string",
"username",
"=",
"system",
"get",
"property",
"(",
"\"",
"user",
"name",
"\"",
")",
";",
"if",
"(",
"strings",
"is",
"null",
"or",
"empty",
"(",
"username",
")",
")",
"{",
"username",
"=",
"\"",
"unknown",
"user",
"\"",
";",
"}",
"sb",
"append",
"(",
"prefix",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pattern",
"length",
"(",
")",
";",
"+",
"+",
"i",
")",
"{",
"char",
"c",
"=",
"pattern",
"char",
"at",
"(",
"i",
")",
";",
"if",
"(",
"in",
"var",
")",
"{",
"in",
"var",
"=",
"false",
";",
"switch",
"(",
"c",
")",
"{",
"case",
"'",
"%",
"'",
":",
"sb",
"append",
"(",
"'",
"%",
"'",
")",
";",
"break",
";",
"case",
"'",
"h",
"'",
":",
"sb",
"append",
"(",
"get",
"local",
"hostname",
"first",
"component",
"(",
")",
")",
";",
"break",
";",
"case",
"'",
"u",
"'",
":",
"sb",
"append",
"(",
"username",
")",
";",
"break",
";",
"default",
":",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"unknown",
"variable",
"\"",
"+",
"c",
"+",
"\"",
"in",
"\"",
"+",
"pattern",
")",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"c",
"=",
"=",
"'",
"%",
"'",
")",
"{",
"in",
"var",
"=",
"true",
";",
"}",
"else",
"{",
"sb",
"append",
"(",
"c",
")",
";",
"}",
"}",
"}",
"return",
"new",
"file",
"(",
"sb",
"to",
"string",
"(",
")",
")",
"get",
"absolute",
"file",
"(",
")",
"to",
"path",
"(",
")",
";",
"}"
]
|
[
"get",
"the",
"high",
"-",
"level",
"function",
"structure",
"associated",
"with",
"these",
"decompilation",
"results",
",",
"or",
"null",
"if",
"there",
"was",
"an",
"error",
"during",
"decompilation"
]
| [
"public",
"high",
"param",
"i",
"d",
"get",
"high",
"param",
"i",
"d",
"(",
")",
"{",
"return",
"hparamid",
";",
"}"
]
|
[
"encodes",
"a",
"byte",
"array",
"into",
"base",
"6",
"4",
"format",
"and",
"breaks",
"the",
"output",
"into",
"lines",
"of",
"76",
"characters",
"this",
"method",
"is",
"compatible",
"with",
"<",
"code",
">",
"sun",
"misc",
"b",
"a",
"s",
"e",
"6",
"4",
"encoder",
"encode",
"buffer",
"(",
"byte",
"[",
"]",
")",
"<",
"code",
">"
]
| [
"public",
"static",
"string",
"encode",
"lines",
"(",
"byte",
"[",
"]",
"in",
")",
"{",
"return",
"encode",
"lines",
"(",
"in",
",",
"0",
",",
"in",
"length",
",",
"76",
",",
"system",
"line",
"separator",
",",
"regular",
"map",
"encoding",
"map",
")",
";",
"}"
]
|
[
"test",
"the",
"property",
"'",
"attribute",
"string",
"'"
]
| [
"public",
"void",
"attribute",
"string",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"attribute",
"string",
"}"
]
|
[
"wrap",
"the",
"{",
"@",
"link",
"statement",
"}",
"returned",
"by",
"the",
"parent",
"implementation",
"with",
"a",
"{",
"@",
"code",
"run",
"after",
"test",
"class",
"callbacks",
"}",
"statement",
",",
"thus",
"preserving",
"the",
"default",
"j",
"unit",
"functionality",
"while",
"adding",
"support",
"for",
"the",
"spring",
"test",
"context",
"framework"
]
| [
"protected",
"statement",
"with",
"after",
"classes",
"(",
"statement",
"statement",
")",
"{",
"statement",
"junit",
"after",
"classes",
"=",
"super",
"with",
"after",
"classes",
"(",
"statement",
")",
";",
"return",
"new",
"run",
"after",
"test",
"class",
"callbacks",
"(",
"junit",
"after",
"classes",
",",
"get",
"test",
"context",
"manager",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"map",
"from",
"bep",
"transports",
"to",
"their",
"corresponding",
"closing",
"future",
"if",
"this",
"method",
"is",
"called",
"before",
"calling",
"{",
"@",
"link",
"#",
"close",
"(",
")",
"}",
"then",
"it",
"will",
"return",
"an",
"empty",
"map"
]
| [
"public",
"synchronized",
"immutable",
"map",
"<",
"build",
"event",
"transport",
",",
"listenable",
"future",
"<",
"void",
">",
">",
"get",
"close",
"futures",
"map",
"(",
")",
"{",
"return",
"close",
"futures",
"map",
";",
"}"
]
|
[
"recursive",
"list",
"of",
"files",
"and",
"empty",
"directories",
",",
"force",
"metadatastore",
"to",
"act",
"like",
"it",
"is",
"non",
"-",
"authoritative"
]
| [
"public",
"remote",
"iterator",
"<",
"s",
"3",
"a",
"located",
"file",
"status",
">",
"list",
"files",
"and",
"empty",
"directories",
"force",
"non",
"auth",
"(",
"path",
"f",
",",
"boolean",
"recursive",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"inner",
"list",
"files",
"(",
"f",
",",
"recursive",
",",
"listing",
"accept",
"all",
"but",
"s3n",
",",
"null",
",",
"true",
",",
"true",
")",
";",
"}"
]
|
[
"returns",
"the",
"list",
"of",
"symbol",
"offsets",
"in",
"the",
"order",
"they",
"were",
"seen"
]
| [
"list",
"<",
"long",
">",
"get",
"ordered",
"offsets",
"(",
")",
"{",
"return",
"new",
"array",
"list",
"<",
">",
"(",
"symbols",
"by",
"offset",
"key",
"set",
"(",
")",
")",
";",
"}"
]
|
[
"returns",
"an",
"{",
"@",
"link",
"endpoint",
"pair",
"}",
"representing",
"the",
"endpoints",
"of",
"a",
"directed",
"edge"
]
| [
"public",
"static",
"<",
"n",
">",
"endpoint",
"pair",
"<",
"n",
">",
"ordered",
"(",
"n",
"source",
",",
"n",
"target",
")",
"{",
"return",
"new",
"ordered",
"<",
"n",
">",
"(",
"source",
",",
"target",
")",
";",
"}"
]
|
[
"inform",
"the",
"node",
"that",
"a",
"container",
"has",
"launched"
]
| [
"public",
"synchronized",
"void",
"container",
"started",
"(",
"container",
"id",
"container",
"id",
")",
"{",
"container",
"info",
"info",
"=",
"launched",
"containers",
"get",
"(",
"container",
"id",
")",
";",
"if",
"(",
"info",
"!",
"=",
"null",
")",
"{",
"info",
"launched",
"on",
"node",
"=",
"true",
";",
"}",
"}"
]
|
[
"sets",
"the",
"id",
"of",
"the",
"audio",
"session",
"to",
"attach",
"to",
"the",
"underlying",
"{",
"@",
"link",
"android",
"media",
"audio",
"track",
"}",
"the",
"audio",
"session",
"id",
"can",
"be",
"generated",
"using",
"{",
"@",
"link",
"c",
"#",
"generate",
"audio",
"session",
"id",
"v",
"2",
"1",
"(",
"context",
")",
"}",
"for",
"api",
"21",
"+"
]
| [
"void",
"set",
"audio",
"session",
"id",
"(",
"int",
"audio",
"session",
"id",
")",
";"
]
|
[
"declaring",
"to",
"query",
"which",
"columns",
"in",
"table",
"lite",
"pal",
"select",
"(",
"&",
"quot",
";",
"name",
"&",
"quot",
";",
",",
"&",
"quot",
";",
"age",
"&",
"quot",
";",
")",
"find",
"(",
"person",
"class",
")",
";",
"this",
"will",
"find",
"all",
"rows",
"with",
"name",
"and",
"age",
"columns",
"in",
"person",
"table"
]
| [
"public",
"static",
"fluent",
"query",
"select",
"(",
"string",
"columns",
")",
"{",
"fluent",
"query",
"c",
"query",
"=",
"new",
"fluent",
"query",
"(",
")",
";",
"c",
"query",
"m",
"columns",
"=",
"columns",
";",
"return",
"c",
"query",
";",
"}"
]
|
[
"find",
"pet",
"by",
"id",
"returns",
"a",
"single",
"pet"
]
| [
"public",
"void",
"get",
"pet",
"by",
"id",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"validations",
"long",
"pet",
"id",
"=",
"null",
";",
"/",
"/",
"pet",
"response",
"=",
"api",
"get",
"pet",
"by",
"id",
"(",
"pet",
"id",
")",
";",
"/",
"/",
"assert",
"not",
"null",
"(",
"response",
")",
";",
"}"
]
|
[
"calculates",
"a",
"scissor",
"rectangle",
"in",
"open",
"g",
"l",
"es",
"window",
"coordinates",
"from",
"a",
"{",
"@",
"link",
"camera",
"}",
",",
"a",
"transformation",
"{",
"@",
"link",
"matrix",
"4",
"}",
"and",
"an",
"axis",
"aligned",
"{",
"@",
"link",
"rectangle",
"}",
"the",
"rectangle",
"will",
"get",
"transformed",
"by",
"the",
"camera",
"and",
"transform",
"matrices",
"and",
"is",
"then",
"projected",
"to",
"screen",
"coordinates",
"note",
"that",
"only",
"axis",
"aligned",
"rectangles",
"will",
"work",
"with",
"this",
"method",
"if",
"either",
"the",
"camera",
"or",
"the",
"matrix",
"4",
"have",
"rotational",
"components",
",",
"the",
"output",
"of",
"this",
"method",
"will",
"not",
"be",
"suitable",
"for",
"{",
"@",
"link",
"gl20",
"#",
"gl",
"scissor",
"(",
"int",
",",
"int",
",",
"int",
",",
"int",
")",
"}"
]
| [
"public",
"static",
"void",
"calculate",
"scissors",
"(",
"camera",
"camera",
",",
"float",
"viewport",
"x",
",",
"float",
"viewport",
"y",
",",
"float",
"viewport",
"width",
",",
"float",
"viewport",
"height",
",",
"matrix",
"4",
"batch",
"transform",
",",
"rectangle",
"area",
",",
"rectangle",
"scissor",
")",
"{",
"tmp",
"set",
"(",
"area",
"x",
",",
"area",
"y",
",",
"0",
")",
";",
"tmp",
"mul",
"(",
"batch",
"transform",
")",
";",
"camera",
"project",
"(",
"tmp",
",",
"viewport",
"x",
",",
"viewport",
"y",
",",
"viewport",
"width",
",",
"viewport",
"height",
")",
";",
"scissor",
"x",
"=",
"tmp",
"x",
";",
"scissor",
"y",
"=",
"tmp",
"y",
";",
"tmp",
"set",
"(",
"area",
"x",
"+",
"area",
"width",
",",
"area",
"y",
"+",
"area",
"height",
",",
"0",
")",
";",
"tmp",
"mul",
"(",
"batch",
"transform",
")",
";",
"camera",
"project",
"(",
"tmp",
",",
"viewport",
"x",
",",
"viewport",
"y",
",",
"viewport",
"width",
",",
"viewport",
"height",
")",
";",
"scissor",
"width",
"=",
"tmp",
"x",
"-",
"scissor",
"x",
";",
"scissor",
"height",
"=",
"tmp",
"y",
"-",
"scissor",
"y",
";",
"}"
]
|
[
"check",
"whether",
"the",
"given",
"array",
"contains",
"the",
"given",
"element"
]
| [
"public",
"static",
"boolean",
"contains",
"element",
"(",
"@",
"nullable",
"object",
"[",
"]",
"array",
",",
"object",
"element",
")",
"{",
"if",
"(",
"array",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"for",
"(",
"object",
"array",
"ele",
":",
"array",
")",
"{",
"if",
"(",
"null",
"safe",
"equals",
"(",
"array",
"ele",
",",
"element",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
]
|
[
"get",
"$",
"special",
"property",
"name"
]
| [
"public",
"long",
"get",
"$",
"special",
"property",
"name",
"(",
")",
"{",
"return",
"$",
"special",
"property",
"name",
";",
"}"
]
|
[
"gets",
"all",
"the",
"direct",
"and",
"indirect",
"upstream",
"dependencies",
"of",
"the",
"given",
"project"
]
| [
"public",
"set",
"<",
"abstract",
"project",
">",
"get",
"transitive",
"upstream",
"(",
"abstract",
"project",
"src",
")",
"{",
"return",
"get",
"transitive",
"(",
"backward",
",",
"src",
",",
"true",
")",
";",
"}"
]
|
[
"succeeds",
"fast",
"but",
"leaves",
"behind",
"a",
"devious",
"shutdown",
"hook",
"designed",
"to",
"wreak",
"havoc"
]
| [
"public",
"void",
"test",
"sneaky",
"shutdown",
"hook",
"(",
")",
"throws",
"exception",
"{",
"runtime",
"get",
"runtime",
"(",
")",
"add",
"shutdown",
"hook",
"(",
"new",
"thread",
"(",
")",
"{",
"public",
"void",
"run",
"(",
")",
"{",
"handle",
"hook",
"(",
")",
";",
"}",
"}",
")",
";",
"}"
]
|
[
"gets",
"cluster",
"url"
]
| [
"public",
"uri",
"get",
"cluster",
"u",
"r",
"i",
"(",
")",
"{",
"return",
"cluster",
"u",
"r",
"i",
";",
"}"
]
|
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"name",
",",
"or",
"null",
"if",
"its",
"not",
"found"
]
| [
"public",
"static",
"fields",
"find",
"by",
"name",
"(",
"string",
"name",
")",
"{",
"return",
"by",
"name",
"get",
"(",
"name",
")",
";",
"}"
]
|
[
"to",
"be",
"called",
"before",
"using",
"{",
"@",
"link",
"#",
"set",
"custom",
"action",
"(",
"stream",
"dialog",
"entry",
"action",
")",
"}"
]
| [
"public",
"static",
"void",
"set",
"enabled",
"entries",
"(",
"final",
"stream",
"dialog",
"entry",
"entries",
")",
"{",
"/",
"/",
"cleanup",
"from",
"last",
"time",
"stream",
"dialog",
"entry",
"was",
"used",
"for",
"(",
"final",
"stream",
"dialog",
"entry",
"stream",
"dialog",
"entry",
":",
"values",
"(",
")",
")",
"{",
"stream",
"dialog",
"entry",
"custom",
"action",
"=",
"null",
";",
"}",
"enabled",
"entries",
"=",
"entries",
";",
"}"
]
|
[
"adds",
"a",
"new",
"header",
"to",
"this",
"headers",
"object"
]
| [
"void",
"add",
"(",
"string",
"name",
",",
"string",
"value",
")",
"{",
"this",
"headers",
"compute",
"(",
"name",
",",
"(",
"k",
",",
"v",
")",
"-",
">",
"{",
"if",
"(",
"v",
"=",
"=",
"null",
")",
"{",
"return",
"collections",
"singleton",
"list",
"(",
"value",
")",
";",
"}",
"else",
"{",
"list",
"<",
"string",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"list",
"add",
"all",
"(",
"v",
")",
";",
"list",
"add",
"(",
"value",
")",
";",
"return",
"list",
";",
"}",
"}",
")",
";",
"}"
]
|
[
"a",
"main",
"method",
"for",
"testing",
"name",
"matching"
]
| [
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"{",
"try",
"{",
"system",
"out",
"println",
"(",
"\"",
"regular",
"expression",
"[",
"\"",
"+",
"args",
"[",
"0",
"]",
"+",
"\"",
"]",
"\"",
")",
";",
"name",
"parser",
"parser",
"=",
"new",
"name",
"parser",
"(",
")",
";",
"string",
"matcher",
"matcher",
"=",
"parser",
"parse",
"(",
"args",
"[",
"0",
"]",
")",
";",
"for",
"(",
"int",
"index",
"=",
"1",
";",
"index",
"<",
"args",
"length",
";",
"index",
"+",
"+",
")",
"{",
"string",
"string",
"=",
"args",
"[",
"index",
"]",
";",
"system",
"out",
"print",
"(",
"\"",
"string",
"[",
"\"",
"+",
"string",
"+",
"\"",
"]",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"-",
">",
"match",
"=",
"\"",
"+",
"matcher",
"matches",
"(",
"args",
"[",
"index",
"]",
")",
")",
";",
"}",
"}",
"catch",
"(",
"exception",
"ex",
")",
"{",
"ex",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"}"
]
|
[
"set",
"quota",
"for",
"the",
"federation",
"path"
]
| [
"void",
"set",
"quota",
"internal",
"(",
"string",
"path",
",",
"list",
"<",
"remote",
"location",
">",
"locations",
",",
"long",
"namespace",
"quota",
",",
"long",
"storagespace",
"quota",
",",
"storage",
"type",
"type",
")",
"throws",
"i",
"o",
"exception",
"{",
"rpc",
"server",
"check",
"operation",
"(",
"operation",
"category",
"write",
")",
";",
"if",
"(",
"!",
"router",
"is",
"quota",
"enabled",
"(",
")",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"\"",
"the",
"quota",
"system",
"is",
"disabled",
"in",
"router",
"\"",
")",
";",
"}",
"/",
"/",
"set",
"quota",
"for",
"current",
"path",
"and",
"its",
"children",
"mount",
"table",
"path",
"if",
"(",
"locations",
"=",
"=",
"null",
")",
"{",
"locations",
"=",
"get",
"quota",
"remote",
"locations",
"(",
"path",
")",
";",
"}",
"if",
"(",
"log",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"for",
"(",
"remote",
"location",
"loc",
":",
"locations",
")",
"{",
"log",
"debug",
"(",
"\"",
"set",
"quota",
"for",
"path",
":",
"ns",
"id",
":",
"{",
"}",
",",
"dest",
":",
"{",
"}",
"\"",
",",
"loc",
"get",
"nameservice",
"id",
"(",
")",
",",
"loc",
"get",
"dest",
"(",
")",
")",
";",
"}",
"}",
"remote",
"method",
"method",
"=",
"new",
"remote",
"method",
"(",
"\"",
"set",
"quota",
"\"",
",",
"new",
"class",
"<",
"?",
">",
"[",
"]",
"{",
"string",
"class",
",",
"long",
"class",
",",
"long",
"class",
",",
"storage",
"type",
"class",
"}",
",",
"new",
"remote",
"param",
"(",
")",
",",
"namespace",
"quota",
",",
"storagespace",
"quota",
",",
"type",
")",
";",
"rpc",
"client",
"invoke",
"concurrent",
"(",
"locations",
",",
"method",
",",
"false",
",",
"false",
")",
";",
"}"
]
|
[
"return",
"a",
"random",
"level",
"for",
"new",
"node",
"the",
"implementation",
"refers",
"to",
"the",
"{",
"@",
"code",
"random",
"level",
"}",
"method",
"of",
"jdk7",
"'",
"s",
"concurrent",
"skip",
"list",
"map",
"see",
"https",
":",
"github",
"comopenjdk",
"-",
"mirrorjdk",
"7u",
"-",
"jdkblobmastersrcshareclassesjavautilconcurrent",
"concurrent",
"skip",
"list",
"map",
"java",
"#",
"l899"
]
| [
"private",
"int",
"get",
"random",
"index",
"level",
"(",
")",
"{",
"int",
"x",
"=",
"random",
"seed",
";",
"x",
"^",
"=",
"x",
"<",
"<",
"13",
";",
"x",
"^",
"=",
"x",
">",
">",
">",
"17",
";",
"x",
"^",
"=",
"x",
"<",
"<",
"5",
";",
"random",
"seed",
"=",
"x",
";",
"/",
"/",
"test",
"highest",
"and",
"lowest",
"bits",
"if",
"(",
"(",
"x",
"&",
"0x",
"8",
"0",
"0",
"1",
")",
"!",
"=",
"0",
")",
"{",
"return",
"0",
";",
"}",
"int",
"level",
"=",
"1",
";",
"int",
"cur",
"max",
"=",
"level",
"index",
"header",
"get",
"level",
"(",
")",
";",
"x",
">",
">",
">",
"=",
"1",
";",
"while",
"(",
"(",
"x",
"&",
"1",
")",
"!",
"=",
"0",
")",
"{",
"+",
"+",
"level",
";",
"x",
">",
">",
">",
"=",
"1",
";",
"/",
"/",
"the",
"level",
"only",
"be",
"increased",
"by",
"step",
"if",
"(",
"level",
">",
"cur",
"max",
")",
"{",
"break",
";",
"}",
"}",
"return",
"level",
";",
"}"
]
|
[
"used",
"to",
"run",
"simple",
"g",
"tree",
"tasks",
"that",
"can",
"be",
"expressed",
"as",
"a",
"{",
"@",
"link",
"monitored",
"runnable",
"}",
"(",
"or",
"a",
"lambda",
"taking",
"a",
"{",
"@",
"link",
"task",
"monitor",
"}",
")"
]
| [
"public",
"void",
"run",
"task",
"(",
"monitored",
"runnable",
"runnable",
"task",
")",
"{",
"worker",
"schedule",
"(",
"new",
"g",
"tree",
"task",
"(",
"this",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"task",
"monitor",
"local",
"monitor",
")",
"throws",
"cancelled",
"exception",
"{",
"runnable",
"task",
"monitored",
"run",
"(",
"local",
"monitor",
")",
";",
"}",
"}",
")",
";",
"}"
]
|
[
"model",
"tests",
"for",
"additional",
"properties",
"integer"
]
| [
"public",
"void",
"test",
"additional",
"properties",
"integer",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"additional",
"properties",
"integer",
"}"
]
|
[
"returns",
"the",
"effective",
"default",
"value",
"of",
"this",
"parameter",
",",
"or",
"null",
"if",
"mandatory"
]
| [
"object",
"get",
"default",
"value",
"(",
")",
"{",
"return",
"default",
"value",
";",
"}"
]
|
[
"calculates",
"the",
"sum",
"of",
"values",
"on",
"a",
"given",
"column",
"the",
"value",
"is",
"returned",
"with",
"the",
"same",
"data",
"type",
"of",
"the",
"column",
"lite",
"pal",
"sum",
"(",
"person",
"class",
",",
"&",
"quot",
";",
"age",
"&",
"quot",
";",
",",
"int",
"class",
")",
";",
"you",
"can",
"also",
"specify",
"a",
"where",
"clause",
"when",
"calculating",
"lite",
"pal",
"where",
"(",
"&",
"quot",
";",
"age",
"&",
"gt",
";",
"?",
"&",
"quot",
";",
",",
"&",
"quot",
";",
"15",
"&",
"quot",
";",
")",
"sum",
"(",
"person",
"class",
",",
"&",
"quot",
";",
"age",
"&",
"quot",
";",
",",
"integer",
"type",
")",
";"
]
| [
"public",
"static",
"<",
"t",
">",
"t",
"sum",
"(",
"class",
"<",
"?",
">",
"model",
"class",
",",
"string",
"column",
"name",
",",
"class",
"<",
"t",
">",
"column",
"type",
")",
"{",
"return",
"sum",
"(",
"base",
"utility",
"change",
"case",
"(",
"d",
"b",
"utility",
"get",
"table",
"name",
"by",
"class",
"name",
"(",
"model",
"class",
"get",
"name",
"(",
")",
")",
")",
",",
"column",
"name",
",",
"column",
"type",
")",
";",
"}"
]
|
[
"infers",
"the",
"format",
"and",
"version",
"of",
"the",
"passed",
"in",
"{",
"@",
"code",
"refresh",
"token",
"}",
"delegates",
"the",
"actual",
"search",
"of",
"the",
"token",
"document",
"to",
"{",
"@",
"code",
"#",
"find",
"token",
"from",
"refresh",
"token",
"(",
"string",
",",
"security",
"index",
"manager",
",",
"iterator",
",",
"action",
"listener",
")",
"}"
]
| [
"private",
"void",
"find",
"token",
"from",
"refresh",
"token",
"(",
"string",
"refresh",
"token",
",",
"iterator",
"<",
"time",
"value",
">",
"backoff",
",",
"action",
"listener",
"<",
"search",
"hits",
">",
"listener",
")",
"{",
"if",
"(",
"refresh",
"token",
"length",
"(",
")",
"=",
"=",
"token",
"length",
")",
"{",
"/",
"/",
"first",
"check",
"if",
"token",
"has",
"the",
"old",
"format",
"before",
"the",
"new",
"version",
"-",
"prepended",
"one",
"logger",
"debug",
"(",
"\"",
"assuming",
"an",
"unversioned",
"refresh",
"token",
"[",
"{",
"}",
"]",
",",
"generated",
"for",
"node",
"versions",
"\"",
"+",
"\"",
"prior",
"to",
"the",
"introduction",
"of",
"the",
"version",
"-",
"header",
"format",
"\"",
",",
"refresh",
"token",
")",
";",
"find",
"token",
"from",
"refresh",
"token",
"(",
"refresh",
"token",
",",
"security",
"main",
"index",
",",
"backoff",
",",
"listener",
")",
";",
"}",
"else",
"{",
"if",
"(",
"refresh",
"token",
"length",
"(",
")",
"=",
"=",
"hashed",
"token",
"length",
")",
"{",
"logger",
"debug",
"(",
"\"",
"assuming",
"a",
"hashed",
"refresh",
"token",
"[",
"{",
"}",
"]",
"retrieved",
"from",
"the",
"tokens",
"index",
"\"",
",",
"refresh",
"token",
")",
";",
"find",
"token",
"from",
"refresh",
"token",
"(",
"refresh",
"token",
",",
"security",
"tokens",
"index",
",",
"backoff",
",",
"listener",
")",
";",
"}",
"else",
"{",
"logger",
"debug",
"(",
"\"",
"assuming",
"a",
"refresh",
"token",
"[",
"{",
"}",
"]",
"provided",
"from",
"a",
"client",
"\"",
",",
"refresh",
"token",
")",
";",
"final",
"version",
"refresh",
"token",
"version",
";",
"final",
"string",
"unencoded",
"refresh",
"token",
";",
"final",
"tuple",
"<",
"version",
",",
"string",
">",
"version",
"and",
"refresh",
"token",
"tuple",
";",
"try",
"{",
"version",
"and",
"refresh",
"token",
"tuple",
"=",
"unpack",
"version",
"and",
"payload",
"(",
"refresh",
"token",
")",
";",
"refresh",
"token",
"version",
"=",
"version",
"and",
"refresh",
"token",
"tuple",
"v",
"1",
"(",
")",
";",
"unencoded",
"refresh",
"token",
"=",
"version",
"and",
"refresh",
"token",
"tuple",
"v",
"2",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"logger",
"debug",
"(",
"(",
")",
"-",
">",
"new",
"parameterized",
"message",
"(",
"\"",
"could",
"not",
"decode",
"refresh",
"token",
"[",
"{",
"}",
"]",
"\"",
",",
"refresh",
"token",
")",
",",
"e",
")",
";",
"listener",
"on",
"response",
"(",
"search",
"hits",
"empty",
"(",
")",
")",
";",
"return",
";",
"}",
"if",
"(",
"refresh",
"token",
"version",
"before",
"(",
"version",
"tokens",
"index",
"introduced",
")",
"|",
"|",
"unencoded",
"refresh",
"token",
"length",
"(",
")",
"!",
"=",
"token",
"length",
")",
"{",
"logger",
"debug",
"(",
"\"",
"decoded",
"refresh",
"token",
"[",
"{",
"}",
"]",
"with",
"version",
"[",
"{",
"}",
"]",
"is",
"invalid",
"\"",
",",
"unencoded",
"refresh",
"token",
",",
"refresh",
"token",
"version",
")",
";",
"listener",
"on",
"response",
"(",
"search",
"hits",
"empty",
"(",
")",
")",
";",
"}",
"else",
"{",
"/",
"/",
"todo",
"remove",
"this",
"conditional",
"after",
"backporting",
"to",
"7",
"x",
"if",
"(",
"refresh",
"token",
"version",
"on",
"or",
"after",
"(",
"version",
"hashed",
"tokens",
")",
")",
"{",
"final",
"string",
"hashed",
"refresh",
"token",
"=",
"hash",
"token",
"string",
"(",
"unencoded",
"refresh",
"token",
")",
";",
"find",
"token",
"from",
"refresh",
"token",
"(",
"hashed",
"refresh",
"token",
",",
"security",
"tokens",
"index",
",",
"backoff",
",",
"listener",
")",
";",
"}",
"else",
"{",
"find",
"token",
"from",
"refresh",
"token",
"(",
"unencoded",
"refresh",
"token",
",",
"security",
"tokens",
"index",
",",
"backoff",
",",
"listener",
")",
";",
"}",
"}",
"}",
"}",
"}"
]
|
[
"find",
"the",
"fields",
"constant",
"that",
"matches",
"name",
",",
"or",
"null",
"if",
"its",
"not",
"found"
]
| [
"public",
"static",
"fields",
"find",
"by",
"name",
"(",
"string",
"name",
")",
"{",
"return",
"by",
"name",
"get",
"(",
"name",
")",
";",
"}"
]
|
[
"the",
"open",
"interface",
"for",
"other",
"classes",
"in",
"crud",
"package",
"to",
"query",
"a",
"record",
"based",
"on",
"id",
"if",
"the",
"result",
"set",
"is",
"empty",
",",
"gives",
"null",
"back"
]
| [
"public",
"<",
"t",
">",
"t",
"on",
"find",
"(",
"class",
"<",
"t",
">",
"model",
"class",
",",
"long",
"id",
",",
"boolean",
"is",
"eager",
")",
"{",
"list",
"<",
"t",
">",
"data",
"list",
"=",
"query",
"(",
"model",
"class",
",",
"null",
",",
"\"",
"id",
"=",
"?",
"\"",
",",
"new",
"string",
"[",
"]",
"{",
"string",
"value",
"of",
"(",
"id",
")",
"}",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"get",
"foreign",
"key",
"associations",
"(",
"model",
"class",
"get",
"name",
"(",
")",
",",
"is",
"eager",
")",
")",
";",
"if",
"(",
"data",
"list",
"size",
"(",
")",
">",
"0",
")",
"{",
"return",
"data",
"list",
"get",
"(",
"0",
")",
";",
"}",
"return",
"null",
";",
"}"
]
|
[
"returns",
"the",
"total",
"number",
"of",
"times",
"that",
"{",
"@",
"link",
"cache",
"}",
"lookup",
"methods",
"attempted",
"to",
"load",
"new",
"values",
"this",
"includes",
"both",
"successful",
"load",
"operations",
",",
"as",
"well",
"as",
"those",
"that",
"threw",
"exceptions",
"this",
"is",
"defined",
"as",
"{",
"@",
"code",
"load",
"success",
"count",
"+",
"load",
"failure",
"count",
"}",
"<",
"b",
">",
"note",
":",
"<",
"b",
">",
"the",
"values",
"of",
"the",
"metrics",
"are",
"undefined",
"in",
"case",
"of",
"overflow",
"(",
"though",
"it",
"is",
"guaranteed",
"not",
"to",
"throw",
"an",
"exception",
")",
"if",
"you",
"require",
"specific",
"handling",
",",
"we",
"recommend",
"implementing",
"your",
"own",
"stats",
"collector"
]
| [
"public",
"long",
"load",
"count",
"(",
")",
"{",
"return",
"saturated",
"add",
"(",
"load",
"success",
"count",
",",
"load",
"failure",
"count",
")",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}",
"it",
"is",
"recommended",
",",
"though",
"not",
"mandatory",
",",
"that",
"this",
"method",
"return",
"the",
"result",
"of",
"invoking",
"{",
"@",
"link",
"#",
"to",
"string",
"}",
"on",
"the",
"{",
"@",
"link",
"#",
"entry",
"set",
"}",
",",
"yielding",
"a",
"result",
"such",
"as",
"{",
"@",
"code",
"[",
"a",
"x",
"3",
",",
"c",
",",
"d",
"x",
"2",
",",
"e",
"]",
"}"
]
| [
"string",
"to",
"string",
"(",
")",
";",
"/",
"/",
"refined",
"collection",
"methods"
]
|
[
"find",
"the",
"nodes",
"containing",
"the",
"given",
"group",
"name",
";",
"this",
"method",
"is",
"called",
"when",
"a",
"group",
"has",
"been",
"renamed",
",",
"and",
"we",
"have",
"to",
"find",
"the",
"node",
"according",
"to",
"name",
"(",
"and",
"not",
"by",
"group",
")"
]
| [
"program",
"node",
"[",
"]",
"find",
"nodes",
"(",
"string",
"group",
"name",
")",
"{",
"array",
"list",
"<",
"program",
"node",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"node",
"list",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"program",
"node",
"node",
"=",
"node",
"list",
"get",
"(",
"i",
")",
";",
"if",
"(",
"node",
"get",
"name",
"(",
")",
"equals",
"(",
"group",
"name",
")",
")",
"{",
"list",
"add",
"(",
"node",
")",
";",
"}",
"}",
"program",
"node",
"[",
"]",
"nodes",
"=",
"new",
"program",
"node",
"[",
"list",
"size",
"(",
")",
"]",
";",
"return",
"list",
"to",
"array",
"(",
"nodes",
")",
";",
"}"
]
|
[
"a",
"callback",
"to",
"receive",
"where",
"the",
"user",
"flings",
"on",
"a",
"image",
"view",
"you",
"will",
"receive",
"a",
"callback",
"if",
"the",
"user",
"flings",
"anywhere",
"on",
"the",
"view"
]
| [
"boolean",
"on",
"fling",
"(",
"motion",
"event",
"e",
"1",
",",
"motion",
"event",
"e",
"2",
",",
"float",
"velocity",
"x",
",",
"float",
"velocity",
"y",
")",
";"
]
|
[
"returns",
"the",
"resource",
"that",
"the",
"container",
"will",
"finally",
"be",
"assigned",
"with",
"at",
"the",
"end",
"of",
"the",
"update",
"operation"
]
| [
"private",
"resource",
"create",
"updated",
"resource",
"(",
"container",
"temp",
"container",
",",
"container",
"existing",
"container",
",",
"container",
"update",
"type",
"update",
"type",
")",
"{",
"if",
"(",
"container",
"update",
"type",
"increase",
"resource",
"=",
"=",
"update",
"type",
")",
"{",
"return",
"resources",
"add",
"(",
"existing",
"container",
"get",
"resource",
"(",
")",
",",
"temp",
"container",
"get",
"resource",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"container",
"update",
"type",
"decrease",
"resource",
"=",
"=",
"update",
"type",
")",
"{",
"return",
"outstanding",
"decreases",
"get",
"(",
"existing",
"container",
"get",
"id",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"existing",
"container",
"get",
"resource",
"(",
")",
";",
"}",
"}"
]
|
[
"get",
"date",
"time"
]
| [
"public",
"offset",
"date",
"time",
"get",
"date",
"time",
"(",
")",
"{",
"return",
"date",
"time",
";",
"}"
]
|
[
"return",
"the",
"position",
"in",
"the",
"collector",
"this",
"class",
"occupies"
]
| [
"public",
"int",
"id",
"(",
")",
"{",
"return",
"id",
";",
"}"
]
|
[
"gets",
"the",
"return",
"flow",
"guard",
"verify",
"stack",
"pointer",
"function",
"pointer",
"address"
]
| [
"public",
"long",
"get",
"rfg",
"verify",
"stack",
"pointer",
"function",
"pointer",
"(",
")",
"{",
"return",
"guard",
"rf",
"verify",
"stack",
"pointer",
"function",
"pointer",
";",
"}"
]
|
[
"atomically",
"disposes",
"the",
"disposable",
"in",
"the",
"field",
"if",
"not",
"already",
"disposed"
]
| [
"public",
"static",
"boolean",
"dispose",
"(",
"atomic",
"reference",
"<",
"disposable",
">",
"field",
")",
"{",
"disposable",
"current",
"=",
"field",
"get",
"(",
")",
";",
"disposable",
"d",
"=",
"disposed",
";",
"if",
"(",
"current",
"!",
"=",
"d",
")",
"{",
"current",
"=",
"field",
"get",
"and",
"set",
"(",
"d",
")",
";",
"if",
"(",
"current",
"!",
"=",
"d",
")",
"{",
"if",
"(",
"current",
"!",
"=",
"null",
")",
"{",
"current",
"dispose",
"(",
")",
";",
"}",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
]
|
[
"trims",
"a",
"{",
"@",
"link",
"char",
"sequence",
"}",
"of",
"starting",
"and",
"trailing",
"whitespace",
"behavior",
"matches",
"{",
"@",
"link",
"string",
"#",
"trim",
"(",
")",
"}",
"to",
"preserve",
"expectations",
"around",
"results"
]
| [
"public",
"static",
"char",
"sequence",
"trim",
"sequence",
"(",
"char",
"sequence",
"text",
")",
"{",
"int",
"length",
"=",
"text",
"length",
"(",
")",
";",
"int",
"start",
"index",
"=",
"0",
";",
"while",
"(",
"(",
"start",
"index",
"<",
"length",
")",
"&",
"&",
"(",
"text",
"char",
"at",
"(",
"start",
"index",
")",
"<",
"=",
"'",
"'",
")",
")",
"{",
"start",
"index",
"+",
"+",
";",
"}",
"while",
"(",
"(",
"start",
"index",
"<",
"length",
")",
"&",
"&",
"(",
"text",
"char",
"at",
"(",
"length",
"-",
"1",
")",
"<",
"=",
"'",
"'",
")",
")",
"{",
"length",
"-",
"-",
";",
"}",
"return",
"(",
"start",
"index",
">",
"0",
"|",
"|",
"length",
"<",
"text",
"length",
"(",
")",
")",
"?",
"text",
"sub",
"sequence",
"(",
"start",
"index",
",",
"length",
")",
":",
"text",
";",
"}"
]
|
[
"gets",
"the",
"register",
"set",
"associated",
"with",
"the",
"start",
"of",
"the",
"block",
"with",
"the",
"given",
"label",
"this",
"returns",
"an",
"empty",
"set",
"with",
"the",
"appropriate",
"max",
"size",
"if",
"no",
"set",
"was",
"associated",
"with",
"the",
"block",
"in",
"question"
]
| [
"public",
"register",
"spec",
"set",
"get",
"starts",
"(",
"int",
"label",
")",
"{",
"register",
"spec",
"set",
"result",
"=",
"get",
"starts",
"0",
"(",
"label",
")",
";",
"return",
"(",
"result",
"!",
"=",
"null",
")",
"?",
"result",
":",
"empty",
"set",
";",
"}"
]
|
[
"check",
"if",
"a",
"mapping",
"matches",
"the",
"current",
"message",
"and",
"return",
"a",
"possibly",
"new",
"mapping",
"with",
"conditions",
"relevant",
"to",
"the",
"current",
"request"
]
| [
"protected",
"abstract",
"t",
"get",
"matching",
"mapping",
"(",
"t",
"mapping",
",",
"message",
"<",
"?",
">",
"message",
")",
";"
]
|
[
"creates",
"a",
"new",
"dex",
"from",
"the",
"contents",
"of",
"{",
"@",
"code",
"bytes",
"}",
"this",
"api",
"supports",
"both",
"{",
"@",
"code",
"dex",
"}",
"and",
"{",
"@",
"code",
"odex",
"}",
"input",
"calling",
"this",
"constructor",
"transfers",
"ownership",
"of",
"{",
"@",
"code",
"bytes",
"}",
"to",
"the",
"returned",
"dex",
":",
"it",
"is",
"an",
"error",
"to",
"access",
"the",
"buffer",
"after",
"calling",
"this",
"method"
]
| [
"public",
"static",
"dex",
"create",
"(",
"byte",
"buffer",
"data",
")",
"throws",
"i",
"o",
"exception",
"{",
"data",
"order",
"(",
"byte",
"order",
"little",
"endian",
")",
";",
"/",
"/",
"if",
"it",
"'",
"s",
"an",
"odex",
"file",
",",
"set",
"position",
"and",
"limit",
"to",
"the",
"dex",
"section",
"if",
"(",
"data",
"get",
"(",
"0",
")",
"=",
"=",
"'",
"d",
"'",
"&",
"&",
"data",
"get",
"(",
"1",
")",
"=",
"=",
"'",
"e",
"'",
"&",
"&",
"data",
"get",
"(",
"2",
")",
"=",
"=",
"'",
"y",
"'",
"&",
"&",
"data",
"get",
"(",
"3",
")",
"=",
"=",
"'",
"\\",
"n",
"'",
")",
"{",
"data",
"position",
"(",
"8",
")",
";",
"int",
"offset",
"=",
"data",
"get",
"int",
"(",
")",
";",
"int",
"length",
"=",
"data",
"get",
"int",
"(",
")",
";",
"data",
"position",
"(",
"offset",
")",
";",
"data",
"limit",
"(",
"offset",
"+",
"length",
")",
";",
"data",
"=",
"data",
"slice",
"(",
")",
";",
"}",
"return",
"new",
"dex",
"(",
"data",
")",
";",
"}"
]
|
[
"posts",
"executions",
"to",
"the",
"main",
"thread"
]
| [
"public",
"static",
"executor",
"main",
"thread",
"executor",
"(",
")",
"{",
"return",
"main",
"thread",
"executor",
";",
"}"
]
|
[
"post",
"usercreate",
"with",
"array",
":",
"creates",
"list",
"of",
"users",
"with",
"given",
"input",
"array"
]
| [
"default",
"response",
"entity",
"<",
"void",
">",
"create",
"users",
"with",
"array",
"input",
"(",
"list",
"<",
"user",
">",
"body",
")",
"{",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"http",
"status",
"not",
"implemented",
")",
";",
"}"
]
|
[
"to",
"test",
"class",
"name",
"in",
"snake",
"case",
"to",
"test",
"class",
"name",
"in",
"snake",
"case"
]
| [
"public",
"void",
"test",
"classname",
"test",
"(",
")",
"throws",
"api",
"exception",
"{",
"/",
"/",
"client",
"client",
"=",
"null",
";",
"/",
"/",
"client",
"response",
"=",
"api",
"test",
"classname",
"(",
"client",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
]
|
[
"return",
"undertow",
"'",
"s",
"native",
"http",
"client"
]
| [
"public",
"undertow",
"client",
"get",
"http",
"client",
"(",
")",
"{",
"return",
"this",
"http",
"client",
";",
"}"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"public",
"completable",
"future",
"<",
"integer",
">",
"abort",
"uploads",
"under",
"path",
"(",
"path",
"path",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"path",
"(",
"path",
")",
";",
"completable",
"future",
"<",
"integer",
">",
"f",
"=",
"new",
"completable",
"future",
"<",
">",
"(",
")",
";",
"f",
"complete",
"(",
"-",
"1",
")",
";",
"return",
"f",
";",
"}"
]
|
[
"paint",
"each",
"of",
"the",
"given",
"records",
"that",
"is",
"inside",
"of",
"the",
"clips"
]
| [
"private",
"void",
"paint",
"records",
"(",
"list",
"<",
"domain",
"file",
"info",
">",
"records",
",",
"graphics",
"g",
")",
"{",
"cell",
"renderer",
"pane",
"renderer",
"pane",
"=",
"new",
"cell",
"renderer",
"pane",
"(",
")",
";",
"paint",
"cells",
"(",
"records",
",",
"renderer",
"pane",
",",
"g",
")",
";",
"}"
]
|
[
"applies",
"a",
"flat",
"select",
"function",
"to",
"the",
"detected",
"pattern",
"sequence",
"for",
"each",
"pattern",
"sequence",
"the",
"provided",
"{",
"@",
"link",
"pattern",
"flat",
"select",
"function",
"}",
"is",
"called",
"the",
"pattern",
"flat",
"select",
"function",
"can",
"produce",
"an",
"arbitrary",
"number",
"of",
"resulting",
"elements"
]
| [
"public",
"<",
"r",
">",
"single",
"output",
"stream",
"operator",
"<",
"r",
">",
"flat",
"select",
"(",
"final",
"pattern",
"flat",
"select",
"function",
"<",
"t",
",",
"r",
">",
"pattern",
"flat",
"select",
"function",
",",
"final",
"type",
"information",
"<",
"r",
">",
"out",
"type",
"info",
")",
"{",
"final",
"pattern",
"process",
"function",
"<",
"t",
",",
"r",
">",
"process",
"function",
"=",
"from",
"flat",
"select",
"(",
"builder",
"clean",
"(",
"pattern",
"flat",
"select",
"function",
")",
")",
"build",
"(",
")",
";",
"return",
"process",
"(",
"process",
"function",
",",
"out",
"type",
"info",
")",
";",
"}"
]
|
[
"conditional",
"create",
"overwrite",
"flow",
"ensures",
"that",
"create",
"overwrites",
"is",
"done",
"only",
"if",
"there",
"is",
"match",
"for",
"e",
"tag",
"of",
"existing",
"file"
]
| [
"private",
"abfs",
"rest",
"operation",
"conditional",
"create",
"overwrite",
"file",
"(",
"final",
"string",
"relative",
"path",
",",
"final",
"file",
"system",
"statistics",
"statistics",
",",
"final",
"string",
"permission",
",",
"final",
"string",
"umask",
",",
"final",
"boolean",
"is",
"append",
"blob",
")",
"throws",
"azure",
"blob",
"file",
"system",
"exception",
"{",
"abfs",
"rest",
"operation",
"op",
";",
"try",
"{",
"/",
"/",
"trigger",
"a",
"create",
"with",
"overwrite",
"=",
"false",
"first",
"so",
"that",
"e",
"tag",
"fetch",
"can",
"be",
"/",
"/",
"avoided",
"for",
"cases",
"when",
"no",
"pre",
"-",
"existing",
"file",
"is",
"present",
"(",
"major",
"portion",
"/",
"/",
"of",
"create",
"file",
"traffic",
"falls",
"into",
"the",
"case",
"of",
"no",
"pre",
"-",
"existing",
"file",
")",
"op",
"=",
"client",
"create",
"path",
"(",
"relative",
"path",
",",
"true",
",",
"false",
",",
"permission",
",",
"umask",
",",
"is",
"append",
"blob",
",",
"null",
")",
";",
"}",
"catch",
"(",
"abfs",
"rest",
"operation",
"exception",
"e",
")",
"{",
"if",
"(",
"e",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"http",
"u",
"r",
"l",
"connection",
"http",
"conflict",
")",
"{",
"/",
"/",
"file",
"pre",
"-",
"exists",
",",
"fetch",
"e",
"tag",
"try",
"{",
"op",
"=",
"client",
"get",
"path",
"status",
"(",
"relative",
"path",
",",
"false",
")",
";",
"}",
"catch",
"(",
"abfs",
"rest",
"operation",
"exception",
"ex",
")",
"{",
"if",
"(",
"ex",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"http",
"u",
"r",
"l",
"connection",
"http",
"not",
"found",
")",
"{",
"/",
"/",
"is",
"a",
"parallel",
"access",
"case",
",",
"as",
"file",
"which",
"was",
"found",
"to",
"be",
"/",
"/",
"present",
"went",
"missing",
"by",
"this",
"request",
"throw",
"new",
"concurrent",
"write",
"operation",
"detected",
"exception",
"(",
"\"",
"parallel",
"access",
"to",
"the",
"create",
"path",
"detected",
"failing",
"request",
"\"",
"+",
"\"",
"to",
"honor",
"single",
"writer",
"semantics",
"\"",
")",
";",
"}",
"else",
"{",
"throw",
"ex",
";",
"}",
"}",
"string",
"e",
"tag",
"=",
"op",
"get",
"result",
"(",
")",
"get",
"response",
"header",
"(",
"http",
"header",
"configurations",
"etag",
")",
";",
"try",
"{",
"/",
"/",
"overwrite",
"only",
"if",
"e",
"tag",
"matches",
"with",
"the",
"file",
"properties",
"fetched",
"befpre",
"op",
"=",
"client",
"create",
"path",
"(",
"relative",
"path",
",",
"true",
",",
"true",
",",
"permission",
",",
"umask",
",",
"is",
"append",
"blob",
",",
"e",
"tag",
")",
";",
"}",
"catch",
"(",
"abfs",
"rest",
"operation",
"exception",
"ex",
")",
"{",
"if",
"(",
"ex",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"http",
"u",
"r",
"l",
"connection",
"http",
"precon",
"failed",
")",
"{",
"/",
"/",
"is",
"a",
"parallel",
"access",
"case",
",",
"as",
"file",
"with",
"e",
"tag",
"was",
"just",
"queried",
"/",
"/",
"and",
"precondition",
"failure",
"can",
"happen",
"only",
"when",
"another",
"file",
"with",
"/",
"/",
"different",
"etag",
"got",
"created",
"throw",
"new",
"concurrent",
"write",
"operation",
"detected",
"exception",
"(",
"\"",
"parallel",
"access",
"to",
"the",
"create",
"path",
"detected",
"failing",
"request",
"\"",
"+",
"\"",
"to",
"honor",
"single",
"writer",
"semantics",
"\"",
")",
";",
"}",
"else",
"{",
"throw",
"ex",
";",
"}",
"}",
"}",
"else",
"{",
"throw",
"e",
";",
"}",
"}",
"return",
"op",
";",
"}"
]
|
[
"insert",
"a",
"mockito",
"spy",
"object",
"between",
"the",
"given",
"data",
"node",
"and",
"the",
"given",
"name",
"node",
"this",
"can",
"be",
"used",
"to",
"delay",
"or",
"wait",
"for",
"rpc",
"calls",
"on",
"the",
"datanode",
"-",
">",
"nn",
"path"
]
| [
"public",
"static",
"datanode",
"protocol",
"client",
"side",
"translator",
"p",
"b",
"spy",
"on",
"bpos",
"to",
"n",
"n",
"(",
"data",
"node",
"dn",
",",
"name",
"node",
"nn",
")",
"{",
"string",
"bpid",
"=",
"nn",
"get",
"namesystem",
"(",
")",
"get",
"block",
"pool",
"id",
"(",
")",
";",
"b",
"p",
"offer",
"service",
"bpos",
"=",
"null",
";",
"for",
"(",
"b",
"p",
"offer",
"service",
"this",
"bpos",
":",
"dn",
"get",
"all",
"bp",
"os",
"(",
")",
")",
"{",
"if",
"(",
"this",
"bpos",
"get",
"block",
"pool",
"id",
"(",
")",
"equals",
"(",
"bpid",
")",
")",
"{",
"bpos",
"=",
"this",
"bpos",
";",
"break",
";",
"}",
"}",
"preconditions",
"check",
"argument",
"(",
"bpos",
"!",
"=",
"null",
",",
"\"",
"no",
"such",
"bpid",
":",
"%",
"s",
"\"",
",",
"bpid",
")",
";",
"b",
"p",
"service",
"actor",
"bpsa",
"=",
"null",
";",
"for",
"(",
"b",
"p",
"service",
"actor",
"this",
"bpsa",
":",
"bpos",
"get",
"b",
"p",
"service",
"actors",
"(",
")",
")",
"{",
"if",
"(",
"this",
"bpsa",
"get",
"n",
"n",
"socket",
"address",
"(",
")",
"equals",
"(",
"nn",
"get",
"service",
"rpc",
"address",
"(",
")",
")",
")",
"{",
"bpsa",
"=",
"this",
"bpsa",
";",
"break",
";",
"}",
"}",
"preconditions",
"check",
"argument",
"(",
"bpsa",
"!",
"=",
"null",
",",
"\"",
"no",
"service",
"actor",
"to",
"nn",
"at",
"%",
"s",
"\"",
",",
"nn",
"get",
"service",
"rpc",
"address",
"(",
")",
")",
";",
"datanode",
"protocol",
"client",
"side",
"translator",
"p",
"b",
"orig",
"n",
"n",
"=",
"bpsa",
"get",
"name",
"node",
"proxy",
"(",
")",
";",
"datanode",
"protocol",
"client",
"side",
"translator",
"p",
"b",
"spy",
"=",
"mockito",
"spy",
"(",
"orig",
"n",
"n",
")",
";",
"bpsa",
"set",
"name",
"node",
"(",
"spy",
")",
";",
"return",
"spy",
";",
"}"
]
|
[
"creates",
"a",
"new",
"aggregated",
"message",
"from",
"the",
"specified",
"start",
"message",
"and",
"the",
"specified",
"content",
"if",
"the",
"start",
"message",
"implements",
"{",
"@",
"link",
"byte",
"buf",
"holder",
"}",
",",
"its",
"content",
"is",
"appended",
"to",
"the",
"specified",
"{",
"@",
"code",
"content",
"}",
"this",
"aggregator",
"will",
"continue",
"to",
"append",
"the",
"received",
"content",
"to",
"the",
"specified",
"{",
"@",
"code",
"content",
"}"
]
| [
"protected",
"abstract",
"o",
"begin",
"aggregation",
"(",
"s",
"start",
",",
"byte",
"buf",
"content",
")",
"throws",
"exception",
";"
]
|
[
"this",
"method",
"is",
"used",
"by",
"all",
"code",
"generators",
"to",
"create",
"new",
"output",
"files",
"if",
"the",
"output",
"dir",
"set",
"by",
"-",
"o",
"is",
"not",
"present",
"it",
"will",
"be",
"created",
"the",
"final",
"filename",
"is",
"sensitive",
"to",
"the",
"output",
"directory",
"and",
"the",
"directory",
"where",
"the",
"grammar",
"file",
"was",
"found",
"if",
"-",
"o",
"is",
"tmp",
"and",
"the",
"original",
"grammar",
"file",
"was",
"foot",
"g",
"4",
"then",
"output",
"files",
"go",
"in",
"tmpfoo",
"the",
"output",
"dir",
"-",
"o",
"spec",
"takes",
"precedence",
"if",
"it",
"'",
"s",
"absolute",
"e",
"g",
",",
"if",
"the",
"grammar",
"file",
"dir",
"is",
"absolute",
"the",
"output",
"dir",
"is",
"given",
"precedence",
"\"",
"-",
"o",
"tmp",
"usrlibt",
"g",
"4",
"\"",
"results",
"in",
"\"",
"tmp",
"t",
"java",
"\"",
"as",
"output",
"(",
"assuming",
"t",
"g",
"4",
"holds",
"t",
"java",
")",
"if",
"no",
"-",
"o",
"is",
"specified",
",",
"then",
"just",
"write",
"to",
"the",
"directory",
"where",
"the",
"grammar",
"file",
"was",
"found",
"if",
"output",
"directory",
"=",
"=",
"null",
"then",
"write",
"a",
"string"
]
| [
"public",
"writer",
"get",
"output",
"file",
"writer",
"(",
"grammar",
"g",
",",
"string",
"file",
"name",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"output",
"directory",
"=",
"=",
"null",
")",
"{",
"return",
"new",
"string",
"writer",
"(",
")",
";",
"}",
"/",
"/",
"output",
"directory",
"is",
"a",
"function",
"of",
"where",
"the",
"grammar",
"file",
"lives",
"/",
"/",
"for",
"subdir",
"/",
"t",
"g",
"4",
",",
"you",
"get",
"subdir",
"here",
"well",
",",
"depends",
"on",
"-",
"o",
"etc",
"file",
"output",
"dir",
"=",
"get",
"output",
"directory",
"(",
"g",
"file",
"name",
")",
";",
"file",
"output",
"file",
"=",
"new",
"file",
"(",
"output",
"dir",
",",
"file",
"name",
")",
";",
"if",
"(",
"!",
"output",
"dir",
"exists",
"(",
")",
")",
"{",
"output",
"dir",
"mkdirs",
"(",
")",
";",
"}",
"file",
"output",
"stream",
"fos",
"=",
"new",
"file",
"output",
"stream",
"(",
"output",
"file",
")",
";",
"output",
"stream",
"writer",
"osw",
";",
"if",
"(",
"grammar",
"encoding",
"!",
"=",
"null",
")",
"{",
"osw",
"=",
"new",
"output",
"stream",
"writer",
"(",
"fos",
",",
"grammar",
"encoding",
")",
";",
"}",
"else",
"{",
"osw",
"=",
"new",
"output",
"stream",
"writer",
"(",
"fos",
")",
";",
"}",
"return",
"new",
"buffered",
"writer",
"(",
"osw",
")",
";",
"}"
]
|
[
"transforms",
"an",
"object",
"into",
"a",
"different",
"object"
]
| [
"protected",
"abstract",
"object",
"prim",
"transform",
"(",
"object",
"an",
"object",
")",
"throws",
"exception",
";"
]
|
[
"special",
"test",
"for",
"dst",
"switch",
"from",
"#",
"9491"
]
| [
"public",
"void",
"test",
"ambiguous",
"hours",
"after",
"d",
"s",
"t",
"switch",
"(",
")",
"{",
"rounding",
"tz",
"rounding",
";",
"final",
"zone",
"id",
"tz",
"=",
"zone",
"id",
"of",
"(",
"\"",
"asia",
"/",
"jerusalem",
"\"",
")",
";",
"tz",
"rounding",
"=",
"rounding",
"builder",
"(",
"rounding",
"date",
"time",
"unit",
"hour",
"of",
"day",
")",
"time",
"zone",
"(",
"tz",
")",
"build",
"(",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t00",
":",
"30",
":",
"00",
"+",
"03",
":",
"00",
"\"",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t00",
":",
"00",
":",
"00",
"+",
"03",
":",
"00",
"\"",
")",
",",
"tz",
")",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t01",
":",
"30",
":",
"00",
"+",
"03",
":",
"00",
"\"",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t01",
":",
"00",
":",
"00",
"+",
"03",
":",
"00",
"\"",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"the",
"utc",
"date",
"for",
"\"",
"2014",
"-",
"10",
"-",
"25t03",
":",
"00",
":",
"00",
"+",
"03",
":",
"00",
"\"",
"and",
"\"",
"2014",
"-",
"10",
"-",
"25t03",
":",
"00",
":",
"00",
"+",
"02",
":",
"00",
"\"",
"is",
"the",
"same",
",",
"local",
"time",
"turns",
"back",
"1h",
"here",
"assert",
"that",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t03",
":",
"00",
":",
"00",
"+",
"03",
":",
"00",
"\"",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t02",
":",
"00",
":",
"00",
"+",
"02",
":",
"00",
"\"",
")",
",",
"tz",
")",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t01",
":",
"30",
":",
"00",
"+",
"02",
":",
"00",
"\"",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t01",
":",
"00",
":",
"00",
"+",
"02",
":",
"00",
"\"",
")",
",",
"tz",
")",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t02",
":",
"30",
":",
"00",
"+",
"02",
":",
"00",
"\"",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t02",
":",
"00",
":",
"00",
"+",
"02",
":",
"00",
"\"",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"day",
"interval",
"tz",
"rounding",
"=",
"rounding",
"builder",
"(",
"rounding",
"date",
"time",
"unit",
"day",
"of",
"month",
")",
"time",
"zone",
"(",
"tz",
")",
"build",
"(",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"11",
"-",
"11t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"11",
"-",
"11t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"dst",
"on",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"08",
"-",
"11t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"08",
"-",
"11t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"day",
"of",
"switching",
"dst",
"on",
"-",
">",
"off",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"26t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"day",
"of",
"switching",
"dst",
"off",
"-",
">",
"on",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2015",
"-",
"03",
"-",
"27t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2015",
"-",
"03",
"-",
"27t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"month",
"interval",
"tz",
"rounding",
"=",
"rounding",
"builder",
"(",
"rounding",
"date",
"time",
"unit",
"month",
"of",
"year",
")",
"time",
"zone",
"(",
"tz",
")",
"build",
"(",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"11",
"-",
"11t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"11",
"-",
"01t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"dst",
"on",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"10t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"10",
"-",
"01t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"year",
"interval",
"tz",
"rounding",
"=",
"rounding",
"builder",
"(",
"rounding",
"date",
"time",
"unit",
"year",
"of",
"century",
")",
"time",
"zone",
"(",
"tz",
")",
"build",
"(",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"11",
"-",
"11t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"time",
"(",
"\"",
"2014",
"-",
"01",
"-",
"01t00",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
",",
"tz",
")",
")",
";",
"/",
"/",
"two",
"timestamps",
"in",
"same",
"year",
"and",
"different",
"timezone",
"offset",
"(",
"\"",
"double",
"buckets",
"\"",
"issue",
"-",
"#",
"9491",
")",
"tz",
"rounding",
"=",
"rounding",
"builder",
"(",
"rounding",
"date",
"time",
"unit",
"year",
"of",
"century",
")",
"time",
"zone",
"(",
"tz",
")",
"build",
"(",
")",
";",
"assert",
"that",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"11",
"-",
"11t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"is",
"date",
"(",
"tz",
"rounding",
"round",
"(",
"time",
"(",
"\"",
"2014",
"-",
"08",
"-",
"11t17",
":",
"00",
":",
"00",
"\"",
",",
"tz",
")",
")",
",",
"tz",
")",
")",
";",
"}"
]
|
[
"gets",
"the",
"{",
"@",
"link",
"standard",
"socket",
"options",
"#",
"so",
"sndbuf",
"}",
"option"
]
| [
"int",
"get",
"send",
"buffer",
"size",
"(",
")",
";"
]
|
[
"get",
"my",
"string"
]
| [
"public",
"string",
"get",
"my",
"string",
"(",
")",
"{",
"return",
"my",
"string",
";",
"}"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.