docstring_tokens
list | code_tokens
list |
---|---|
[
"acquire",
"the",
"read",
"lock",
"when",
"using",
"get",
"mappings",
"and",
"get",
"mappings",
"by",
"url"
] |
[
"public",
"void",
"acquire",
"read",
"lock",
"(",
")",
"{",
"this",
"read",
"write",
"lock",
"read",
"lock",
"(",
")",
"lock",
"(",
")",
";",
"}"
] |
[
"method",
"to",
"take",
"a",
"{",
"@",
"link",
"user",
"}",
"to",
"determine",
"if",
"the",
"user",
"is",
"in",
"the",
"{",
"@",
"link",
"user",
"group",
"#",
"paid",
"group",
"}"
] |
[
"public",
"static",
"boolean",
"is",
"paid",
"(",
"user",
"user",
")",
"{",
"return",
"paid",
"group",
"contains",
"(",
"user",
")",
";",
"}"
] |
[
"called",
"when",
"the",
"item",
"has",
"been",
"dismissed",
"by",
"swiping",
"to",
"the",
"left"
] |
[
"void",
"on",
"dismissed",
"by",
"swipe",
"left",
"(",
"recycler",
"view",
"recycler",
"view",
",",
"int",
"[",
"]",
"reverse",
"sorted",
"positions",
")",
";"
] |
[
"returns",
"whether",
"the",
"data",
"is",
"bounded",
"or",
"not"
] |
[
"boolean",
"is",
"bounded",
"(",
")",
";"
] |
[
"verify",
"that",
"reconfiguration",
"in",
"standalone",
"mode",
"fails",
"with",
"keeper",
"exception",
"unimplemented",
"exception"
] |
[
"public",
"void",
"test",
"standalone",
"reconfig",
"fails",
"(",
")",
"throws",
"exception",
"{",
"client",
"base",
"setup",
"test",
"env",
"(",
")",
";",
"final",
"int",
"client",
"port",
"=",
"port",
"assignment",
"unique",
"(",
")",
";",
"final",
"string",
"hostport",
"=",
"\"",
"127",
"0",
"0",
"1",
":",
"\"",
"+",
"client",
"port",
";",
"file",
"tmp",
"dir",
"=",
"client",
"base",
"create",
"tmp",
"dir",
"(",
")",
";",
"zoo",
"keeper",
"server",
"zks",
"=",
"new",
"zoo",
"keeper",
"server",
"(",
"tmp",
"dir",
",",
"tmp",
"dir",
",",
"3000",
")",
";",
"server",
"cnxn",
"factory",
"f",
"=",
"server",
"cnxn",
"factory",
"create",
"factory",
"(",
"client",
"port",
",",
"-",
"1",
")",
";",
"f",
"startup",
"(",
"zks",
")",
";",
"assert",
"true",
"(",
"client",
"base",
"wait",
"for",
"server",
"up",
"(",
"hostport",
",",
"connection",
"timeout",
")",
",",
"\"",
"waiting",
"for",
"server",
"being",
"up",
"\"",
")",
";",
"countdown",
"watcher",
"watcher",
"=",
"new",
"countdown",
"watcher",
"(",
")",
";",
"zoo",
"keeper",
"zk",
"=",
"new",
"zoo",
"keeper",
"(",
"hostport",
",",
"connection",
"timeout",
",",
"watcher",
")",
";",
"zoo",
"keeper",
"admin",
"zk",
"admin",
"=",
"new",
"zoo",
"keeper",
"admin",
"(",
"hostport",
",",
"connection",
"timeout",
",",
"watcher",
")",
";",
"watcher",
"wait",
"for",
"connected",
"(",
"connection",
"timeout",
")",
";",
"list",
"<",
"string",
">",
"joiners",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"joiners",
"add",
"(",
"\"",
"server",
"2",
"=",
"localhost",
":",
"1234",
":",
"1235",
";",
"1236",
"\"",
")",
";",
"/",
"/",
"generate",
"some",
"transactions",
"that",
"will",
"get",
"logged",
"try",
"{",
"zk",
"admin",
"add",
"auth",
"info",
"(",
"\"",
"digest",
"\"",
",",
"\"",
"super",
":",
"test",
"\"",
"get",
"bytes",
"(",
")",
")",
";",
"zk",
"admin",
"reconfigure",
"(",
"joiners",
",",
"null",
",",
"null",
",",
"-",
"1",
",",
"new",
"stat",
"(",
")",
")",
";",
"fail",
"(",
"\"",
"reconfiguration",
"in",
"standalone",
"should",
"trigger",
"\"",
"+",
"\"",
"unimplemented",
"exception",
"\"",
")",
";",
"}",
"catch",
"(",
"keeper",
"exception",
"unimplemented",
"exception",
"ex",
")",
"{",
"/",
"/",
"expected",
"}",
"zk",
"close",
"(",
")",
";",
"zks",
"shutdown",
"(",
")",
";",
"f",
"shutdown",
"(",
")",
";",
"assert",
"true",
"(",
"client",
"base",
"wait",
"for",
"server",
"down",
"(",
"hostport",
",",
"connection",
"timeout",
")",
",",
"\"",
"waiting",
"for",
"server",
"being",
"down",
"\"",
")",
";",
"}"
] |
[
"get",
"the",
"value",
"of",
"the",
"{",
"@",
"code",
"host",
"}",
"header",
",",
"if",
"available",
"if",
"the",
"header",
"value",
"does",
"not",
"contain",
"a",
"port",
",",
"the",
"{",
"@",
"linkplain",
"inet",
"socket",
"address",
"#",
"get",
"port",
"(",
")",
"port",
"}",
"in",
"the",
"returned",
"address",
"will",
"be",
"{",
"@",
"code",
"0",
"}"
] |
[
"inet",
"socket",
"address",
"host",
"(",
")",
";"
] |
[
"additional",
"settings",
"to",
"add",
"when",
"creating",
"the",
"node",
"also",
"allows",
"overriding",
"the",
"default",
"settings"
] |
[
"protected",
"settings",
"node",
"settings",
"(",
")",
"{",
"return",
"settings",
"empty",
";",
"}"
] |
[
"set",
"this",
"items",
"parent",
",",
"name",
"and",
"storage",
"name",
"and",
"add",
"the",
"modified",
"item",
"to",
"the",
"specified",
"parent",
"'",
"s",
"item",
"map"
] |
[
"void",
"set",
"(",
"folder",
"new",
"parent",
",",
"string",
"new",
"name",
",",
"string",
"new",
"file",
"id",
")",
"{",
"if",
"(",
"parent",
"!",
"=",
"null",
"&",
"&",
"item",
"storage",
"!",
"=",
"null",
")",
"{",
"parent",
"items",
"remove",
"(",
"item",
"storage",
"item",
"name",
")",
";",
"}",
"parent",
"=",
"new",
"parent",
";",
"item",
"storage",
"=",
"new",
"indexed",
"item",
"storage",
"(",
"get",
"storage",
"dir",
"(",
"storage",
"name",
")",
",",
"storage",
"name",
",",
"parent",
"get",
"pathname",
"(",
")",
",",
"new",
"name",
")",
";",
"parent",
"items",
"put",
"(",
"new",
"name",
",",
"this",
")",
";",
"set",
"file",
"i",
"d",
"(",
"new",
"file",
"id",
")",
";",
"}"
] |
[
"converts",
"from",
"a",
"map",
"to",
"features",
"<",
"finalized",
"version",
"range",
">"
] |
[
"public",
"static",
"features",
"<",
"finalized",
"version",
"range",
">",
"from",
"finalized",
"features",
"map",
"(",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"short",
">",
">",
"features",
"map",
")",
"{",
"return",
"from",
"features",
"map",
"(",
"features",
"map",
",",
"finalized",
"version",
"range",
":",
":",
"from",
"map",
")",
";",
"}"
] |
[
"see",
"{",
"@",
"link",
"file",
"status",
"#",
"set",
"symlink",
"(",
"path",
"sym",
")",
"}"
] |
[
"void",
"set",
"symlink",
"(",
"path",
"sym",
")",
";"
] |
[
"syncs",
"the",
"current",
"retention",
"leases",
"to",
"all",
"replicas"
] |
[
"public",
"void",
"sync",
"retention",
"leases",
"(",
")",
"{",
"assert",
"assert",
"primary",
"mode",
"(",
")",
";",
"verify",
"not",
"closed",
"(",
")",
";",
"replication",
"tracker",
"renew",
"peer",
"recovery",
"retention",
"leases",
"(",
")",
";",
"final",
"tuple",
"<",
"boolean",
",",
"retention",
"leases",
">",
"retention",
"leases",
"=",
"get",
"retention",
"leases",
"(",
"true",
")",
";",
"if",
"(",
"retention",
"leases",
"v",
"1",
"(",
")",
")",
"{",
"logger",
"trace",
"(",
"\"",
"syncing",
"retention",
"leases",
"[",
"{",
"}",
"]",
"after",
"expiration",
"check",
"\"",
",",
"retention",
"leases",
"v",
"2",
"(",
")",
")",
";",
"retention",
"lease",
"syncer",
"sync",
"(",
"shard",
"id",
",",
"shard",
"routing",
"allocation",
"id",
"(",
")",
"get",
"id",
"(",
")",
",",
"get",
"pending",
"primary",
"term",
"(",
")",
",",
"retention",
"leases",
"v",
"2",
"(",
")",
",",
"action",
"listener",
"wrap",
"(",
"r",
"-",
">",
"{",
"}",
",",
"e",
"-",
">",
"logger",
"warn",
"(",
"new",
"parameterized",
"message",
"(",
"\"",
"failed",
"to",
"sync",
"retention",
"leases",
"[",
"{",
"}",
"]",
"after",
"expiration",
"check",
"\"",
",",
"retention",
"leases",
")",
",",
"e",
")",
")",
")",
";",
"}",
"else",
"{",
"logger",
"trace",
"(",
"\"",
"background",
"syncing",
"retention",
"leases",
"[",
"{",
"}",
"]",
"after",
"expiration",
"check",
"\"",
",",
"retention",
"leases",
"v",
"2",
"(",
")",
")",
";",
"retention",
"lease",
"syncer",
"background",
"sync",
"(",
"shard",
"id",
",",
"shard",
"routing",
"allocation",
"id",
"(",
")",
"get",
"id",
"(",
")",
",",
"get",
"pending",
"primary",
"term",
"(",
")",
",",
"retention",
"leases",
"v",
"2",
"(",
")",
")",
";",
"}",
"}"
] |
[
"frees",
"all",
"index",
"values"
] |
[
"public",
"void",
"clear",
"(",
")",
"{",
"next",
"index",
"=",
"0",
";",
"free",
"list",
"clear",
"(",
")",
";",
"}"
] |
[
"model",
"tests",
"for",
"class",
"model"
] |
[
"public",
"void",
"test",
"class",
"model",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"class",
"model",
"}"
] |
[
"regular",
"immutable",
"as",
"list",
"should",
"assume",
"its",
"input",
"is",
"null",
"-",
"free",
"without",
"checking",
",",
"because",
"it",
"only",
"gets",
"invoked",
"from",
"other",
"immutable",
"collections"
] |
[
"public",
"void",
"test",
"doesnt",
"check",
"for",
"null",
"(",
")",
"{",
"immutable",
"set",
"<",
"integer",
">",
"set",
"=",
"immutable",
"set",
"of",
"(",
"1",
",",
"2",
",",
"3",
")",
";",
"new",
"regular",
"immutable",
"as",
"list",
"<",
"integer",
">",
"(",
"set",
",",
"new",
"object",
"[",
"]",
"{",
"null",
",",
"null",
",",
"null",
"}",
")",
";",
"/",
"/",
"shouldn",
"'",
"t",
"throw",
"!",
"}"
] |
[
"control",
"whether",
"the",
"alignment",
"of",
"bit",
"-",
"field",
"types",
"is",
"respected",
"when",
"laying",
"out",
"structures",
"corresponds",
"to",
"pcc",
"bitfield",
"type",
"matters",
"in",
"gcc"
] |
[
"public",
"void",
"set",
"type",
"alignment",
"enabled",
"(",
"boolean",
"type",
"alignment",
"enabled",
")",
"{",
"this",
"type",
"alignment",
"enabled",
"=",
"type",
"alignment",
"enabled",
";",
"}"
] |
[
"check",
"if",
"the",
"status",
"is",
"legal"
] |
[
"protected",
"boolean",
"check",
"status",
"(",
"state",
"machine",
"instance",
"state",
"machine",
"instance",
",",
"execution",
"status",
"[",
"]",
"accept",
"status",
",",
"execution",
"status",
"[",
"]",
"deny",
"status",
",",
"execution",
"status",
"status",
",",
"execution",
"status",
"compen",
"status",
",",
"string",
"operation",
")",
"{",
"if",
"(",
"status",
"!",
"=",
"null",
"&",
"&",
"compen",
"status",
"!",
"=",
"null",
")",
"{",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"\"",
"status",
"and",
"compensation",
"status",
"are",
"not",
"supported",
"at",
"the",
"same",
"time",
"\"",
",",
"framework",
"error",
"code",
"invalid",
"parameter",
")",
";",
"}",
"if",
"(",
"status",
"=",
"=",
"null",
"&",
"&",
"compen",
"status",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"\"",
"status",
"and",
"compensation",
"status",
"must",
"input",
"at",
"least",
"one",
"\"",
",",
"framework",
"error",
"code",
"invalid",
"parameter",
")",
";",
"}",
"if",
"(",
"execution",
"status",
"su",
"equals",
"(",
"compen",
"status",
")",
")",
"{",
"string",
"message",
"=",
"build",
"exception",
"message",
"(",
"state",
"machine",
"instance",
",",
"null",
",",
"null",
",",
"null",
",",
"execution",
"status",
"su",
",",
"operation",
")",
";",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"message",
",",
"framework",
"error",
"code",
"operation",
"denied",
")",
";",
"}",
"if",
"(",
"state",
"machine",
"instance",
"is",
"running",
"(",
")",
"&",
"&",
"!",
"engine",
"utils",
"is",
"timeout",
"(",
"state",
"machine",
"instance",
"get",
"gmt",
"updated",
"(",
")",
",",
"state",
"machine",
"config",
"get",
"trans",
"operation",
"timeout",
"(",
")",
")",
")",
"{",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"\"",
"state",
"machine",
"instance",
"[",
"id",
":",
"\"",
"+",
"state",
"machine",
"instance",
"get",
"id",
"(",
")",
"+",
"\"",
"]",
"is",
"running",
",",
"operation",
"[",
"\"",
"+",
"operation",
"+",
"\"",
"]",
"denied",
"\"",
",",
"framework",
"error",
"code",
"operation",
"denied",
")",
";",
"}",
"if",
"(",
"(",
"deny",
"status",
"=",
"=",
"null",
"|",
"|",
"deny",
"status",
"length",
"=",
"=",
"0",
")",
"&",
"&",
"(",
"accept",
"status",
"=",
"=",
"null",
"|",
"|",
"accept",
"status",
"length",
"=",
"=",
"0",
")",
")",
"{",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"\"",
"state",
"machine",
"instance",
"[",
"id",
":",
"\"",
"+",
"state",
"machine",
"instance",
"get",
"id",
"(",
")",
"+",
"\"",
"]",
",",
"acceptable",
"status",
"and",
"deny",
"status",
"must",
"input",
"at",
"least",
"one",
"\"",
",",
"framework",
"error",
"code",
"invalid",
"parameter",
")",
";",
"}",
"execution",
"status",
"current",
"status",
"=",
"(",
"status",
"!",
"=",
"null",
")",
"?",
"status",
":",
"compen",
"status",
";",
"if",
"(",
"!",
"(",
"deny",
"status",
"=",
"=",
"null",
"|",
"|",
"deny",
"status",
"length",
"=",
"=",
"0",
")",
")",
"{",
"for",
"(",
"execution",
"status",
"temp",
"deny",
"status",
":",
"deny",
"status",
")",
"{",
"if",
"(",
"temp",
"deny",
"status",
"compare",
"to",
"(",
"current",
"status",
")",
"=",
"=",
"0",
")",
"{",
"string",
"message",
"=",
"build",
"exception",
"message",
"(",
"state",
"machine",
"instance",
",",
"accept",
"status",
",",
"deny",
"status",
",",
"status",
",",
"compen",
"status",
",",
"operation",
")",
";",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"message",
",",
"framework",
"error",
"code",
"operation",
"denied",
")",
";",
"}",
"}",
"}",
"if",
"(",
"accept",
"status",
"=",
"=",
"null",
"|",
"|",
"accept",
"status",
"length",
"=",
"=",
"0",
")",
"{",
"return",
"true",
";",
"}",
"else",
"{",
"for",
"(",
"execution",
"status",
"temp",
"status",
":",
"accept",
"status",
")",
"{",
"if",
"(",
"temp",
"status",
"compare",
"to",
"(",
"current",
"status",
")",
"=",
"=",
"0",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"string",
"message",
"=",
"build",
"exception",
"message",
"(",
"state",
"machine",
"instance",
",",
"accept",
"status",
",",
"deny",
"status",
",",
"status",
",",
"compen",
"status",
",",
"operation",
")",
";",
"throw",
"new",
"engine",
"execution",
"exception",
"(",
"message",
",",
"framework",
"error",
"code",
"operation",
"denied",
")",
";",
"}"
] |
[
"helper",
"method",
"used",
"by",
"all",
"the",
"visitor",
"methods",
"that",
"deal",
"with",
"opcodes",
"that",
"possibly",
"throw",
"this",
"method",
"should",
"be",
"called",
"after",
"calling",
"{",
"@",
"link",
"#",
"visit",
"common",
"}"
] |
[
"private",
"void",
"visit",
"throwing",
"(",
"int",
"offset",
",",
"int",
"length",
",",
"boolean",
"next",
"is",
"live",
")",
"{",
"int",
"next",
"=",
"offset",
"+",
"length",
";",
"if",
"(",
"next",
"is",
"live",
")",
"{",
"add",
"work",
"if",
"necessary",
"(",
"next",
",",
"true",
")",
";",
"}",
"byte",
"catch",
"list",
"catches",
"=",
"method",
"get",
"catches",
"(",
")",
"list",
"for",
"(",
"offset",
")",
";",
"catch",
"lists",
"[",
"offset",
"]",
"=",
"catches",
";",
"target",
"lists",
"[",
"offset",
"]",
"=",
"catches",
"to",
"target",
"list",
"(",
"next",
"is",
"live",
"?",
"next",
":",
"-",
"1",
")",
";",
"}"
] |
[
"compares",
"its",
"two",
"arguments",
"for",
"order",
"returns",
"a",
"negative",
"integer",
",",
"zero",
",",
"or",
"a",
"positive",
"integer",
"as",
"the",
"first",
"argument",
"is",
"less",
"than",
",",
"equal",
"to",
",",
"or",
"greater",
"than",
"the",
"second"
] |
[
"public",
"int",
"compare",
"(",
"data",
"type",
"d",
"1",
",",
"data",
"type",
"d",
"2",
")",
"{",
"int",
"c",
"=",
"d",
"1",
"get",
"name",
"(",
")",
"compare",
"to",
"(",
"d",
"2",
"get",
"name",
"(",
")",
")",
";",
"if",
"(",
"c",
"=",
"=",
"0",
")",
"{",
"return",
"d",
"1",
"get",
"category",
"path",
"(",
")",
"compare",
"to",
"(",
"d",
"2",
"get",
"category",
"path",
"(",
")",
")",
";",
"}",
"return",
"c",
";",
"}"
] |
[
"add",
"a",
"masked",
"argument"
] |
[
"public",
"void",
"add",
"masked",
"(",
"string",
"string",
")",
"{",
"add",
"(",
"string",
",",
"true",
")",
";",
"}"
] |
[
"returns",
"whether",
"or",
"not",
"this",
"instance",
"ends",
"with",
"a",
"\"",
"catch",
"-",
"all",
"\"",
"handler"
] |
[
"public",
"boolean",
"catches",
"all",
"(",
")",
"{",
"int",
"size",
"=",
"size",
"(",
")",
";",
"if",
"(",
"size",
"=",
"=",
"0",
")",
"{",
"return",
"false",
";",
"}",
"entry",
"last",
"=",
"get",
"(",
"size",
"-",
"1",
")",
";",
"return",
"last",
"get",
"exception",
"type",
"(",
")",
"equals",
"(",
"cst",
"type",
"object",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"my",
"boolean",
"'"
] |
[
"public",
"void",
"my",
"boolean",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"my",
"boolean",
"}"
] |
[
"set",
"up",
"directories",
"for",
"tests",
"each",
"rolled",
"file",
"is",
"10",
"txns",
"long",
"a",
"failed",
"file",
"is",
"2",
"txns",
"long"
] |
[
"public",
"static",
"n",
"n",
"storage",
"setup",
"edits",
"(",
"list",
"<",
"uri",
">",
"edit",
"uris",
",",
"int",
"numrolls",
",",
"abort",
"spec",
"abort",
"at",
"rolls",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"setup",
"edits",
"(",
"edit",
"uris",
",",
"numrolls",
",",
"true",
",",
"abort",
"at",
"rolls",
")",
";",
"}"
] |
[
"uses",
"a",
"naturally",
"-",
"ordered",
"{",
"@",
"link",
"tree",
"set",
"}",
"to",
"store",
"value",
"collections"
] |
[
"public",
"sorted",
"set",
"multimap",
"builder",
"<",
"k0",
",",
"comparable",
">",
"tree",
"set",
"values",
"(",
")",
"{",
"return",
"tree",
"set",
"values",
"(",
"ordering",
"natural",
"(",
")",
")",
";",
"}"
] |
[
"get",
"cache",
"archives",
"set",
"in",
"the",
"configuration",
"used",
"by",
"internal",
"distributed",
"cache",
"and",
"map",
"reduce",
"code"
] |
[
"public",
"static",
"uri",
"[",
"]",
"get",
"cache",
"archives",
"(",
"configuration",
"conf",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"string",
"utils",
"string",
"to",
"u",
"r",
"i",
"(",
"conf",
"get",
"strings",
"(",
"m",
"r",
"job",
"config",
"cache",
"archives",
")",
")",
";",
"}"
] |
[
"writes",
"the",
"specified",
"bytes",
"to",
"the",
"file",
"parent",
"directories",
"will",
"be",
"created",
"if",
"necessary"
] |
[
"public",
"void",
"write",
"bytes",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
",",
"int",
"length",
",",
"boolean",
"append",
")",
"{",
"output",
"stream",
"output",
"=",
"write",
"(",
"append",
")",
";",
"try",
"{",
"output",
"write",
"(",
"bytes",
",",
"offset",
",",
"length",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ex",
")",
"{",
"throw",
"new",
"gdx",
"runtime",
"exception",
"(",
"\"",
"error",
"writing",
"file",
":",
"\"",
"+",
"file",
"+",
"\"",
"(",
"\"",
"+",
"type",
"+",
"\"",
")",
"\"",
",",
"ex",
")",
";",
"}",
"finally",
"{",
"try",
"{",
"output",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ignored",
")",
"{",
"}",
"}",
"}"
] |
[
"copies",
"playback",
"info",
"with",
"a",
"playback",
"error"
] |
[
"public",
"playback",
"info",
"copy",
"with",
"playback",
"error",
"(",
"@",
"nullable",
"exo",
"playback",
"exception",
"playback",
"error",
")",
"{",
"return",
"new",
"playback",
"info",
"(",
"timeline",
",",
"period",
"id",
",",
"requested",
"content",
"position",
"us",
",",
"playback",
"state",
",",
"playback",
"error",
",",
"is",
"loading",
",",
"track",
"groups",
",",
"track",
"selector",
"result",
",",
"loading",
"media",
"period",
"id",
",",
"play",
"when",
"ready",
",",
"playback",
"suppression",
"reason",
",",
"playback",
"parameters",
",",
"buffered",
"position",
"us",
",",
"total",
"buffered",
"duration",
"us",
",",
"position",
"us",
",",
"offload",
"scheduling",
"enabled",
")",
";",
"}"
] |
[
"returns",
"the",
"lowest",
"x",
"-",
"index",
"(",
"value",
"on",
"the",
"x",
"-",
"axis",
")",
"that",
"is",
"still",
"visible",
"on",
"the",
"chart"
] |
[
"public",
"float",
"get",
"lowest",
"visible",
"x",
"(",
")",
"{",
"get",
"transformer",
"(",
"axis",
"dependency",
"left",
")",
"get",
"values",
"by",
"touch",
"point",
"(",
"m",
"view",
"port",
"handler",
"content",
"left",
"(",
")",
",",
"m",
"view",
"port",
"handler",
"content",
"bottom",
"(",
")",
",",
"pos",
"for",
"get",
"lowest",
"visible",
"x",
")",
";",
"float",
"result",
"=",
"(",
"float",
")",
"math",
"max",
"(",
"m",
"x",
"axis",
"m",
"axis",
"minimum",
",",
"pos",
"for",
"get",
"lowest",
"visible",
"x",
"x",
")",
";",
"return",
"result",
";",
"}"
] |
[
"shuts",
"down",
"the",
"whole",
"job",
"executor"
] |
[
"public",
"synchronized",
"void",
"shutdown",
"(",
")",
"{",
"if",
"(",
"!",
"is",
"active",
")",
"{",
"return",
";",
"}",
"log",
"info",
"(",
"\"",
"shutting",
"down",
"the",
"default",
"async",
"job",
"executor",
"[",
"{",
"}",
"]",
"\"",
",",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"if",
"(",
"timer",
"job",
"runnable",
"!",
"=",
"null",
")",
"{",
"timer",
"job",
"runnable",
"stop",
"(",
")",
";",
"}",
"if",
"(",
"async",
"jobs",
"due",
"runnable",
"!",
"=",
"null",
")",
"{",
"async",
"jobs",
"due",
"runnable",
"stop",
"(",
")",
";",
"}",
"if",
"(",
"reset",
"expired",
"jobs",
"runnable",
"!",
"=",
"null",
")",
"{",
"reset",
"expired",
"jobs",
"runnable",
"stop",
"(",
")",
";",
"}",
"stop",
"reset",
"expired",
"jobs",
"thread",
"(",
")",
";",
"stop",
"timer",
"acquisition",
"thread",
"(",
")",
";",
"stop",
"job",
"acquisition",
"thread",
"(",
")",
";",
"stop",
"executing",
"async",
"jobs",
"(",
")",
";",
"timer",
"job",
"runnable",
"=",
"null",
";",
"async",
"jobs",
"due",
"runnable",
"=",
"null",
";",
"reset",
"expired",
"jobs",
"runnable",
"=",
"null",
";",
"is",
"active",
"=",
"false",
";",
"}"
] |
[
"get",
"integer",
"minimum",
":",
"10",
"maximum",
":",
"100"
] |
[
"public",
"integer",
"get",
"integer",
"(",
")",
"{",
"return",
"integer",
";",
"}"
] |
[
"gets",
"cached",
"metadata",
"object"
] |
[
"public",
"map",
"<",
"string",
",",
"object",
">",
"get",
"cached",
"metadata",
"object",
"(",
"final",
"string",
"service",
"id",
",",
"@",
"nullable",
"final",
"string",
"entity",
"id",
")",
"{",
"try",
"{",
"val",
"registered",
"service",
"=",
"find",
"registered",
"service",
"(",
"service",
"id",
")",
";",
"val",
"issuer",
"=",
"string",
"utils",
"default",
"if",
"blank",
"(",
"entity",
"id",
",",
"registered",
"service",
"get",
"service",
"id",
"(",
")",
")",
";",
"val",
"criteria",
"set",
"=",
"new",
"criteria",
"set",
"(",
")",
";",
"criteria",
"set",
"add",
"(",
"new",
"entity",
"id",
"criterion",
"(",
"issuer",
")",
")",
";",
"criteria",
"set",
"add",
"(",
"new",
"entity",
"role",
"criterion",
"(",
"s",
"p",
"s",
"s",
"o",
"descriptor",
"default",
"element",
"name",
")",
")",
";",
"val",
"metadata",
"resolver",
"=",
"caching",
"metadata",
"resolver",
"resolve",
"(",
"registered",
"service",
",",
"criteria",
"set",
")",
";",
"val",
"iteration",
"=",
"metadata",
"resolver",
"resolve",
"(",
"criteria",
"set",
")",
"spliterator",
"(",
")",
";",
"return",
"stream",
"support",
"stream",
"(",
"iteration",
",",
"false",
")",
"map",
"(",
"entity",
"-",
">",
"pair",
"of",
"(",
"entity",
"get",
"entity",
"i",
"d",
"(",
")",
",",
"saml",
"utils",
"transform",
"saml",
"object",
"(",
"open",
"saml",
"config",
"bean",
",",
"entity",
")",
"to",
"string",
"(",
")",
")",
")",
"collect",
"(",
"collectors",
"to",
"map",
"(",
"pair",
":",
":",
"get",
"left",
",",
"pair",
":",
":",
"get",
"right",
")",
")",
";",
"}",
"catch",
"(",
"final",
"exception",
"e",
")",
"{",
"logging",
"utils",
"error",
"(",
"logger",
",",
"e",
")",
";",
"return",
"collection",
"utils",
"wrap",
"(",
"\"",
"error",
"\"",
",",
"e",
"get",
"message",
"(",
")",
")",
";",
"}",
"}"
] |
[
"copies",
"the",
"files",
"from",
"{",
"@",
"code",
"tmp",
"config",
"dir",
"}",
"into",
"{",
"@",
"code",
"dest",
"config",
"dir",
"}",
"any",
"files",
"existing",
"in",
"both",
"the",
"source",
"and",
"destination",
"will",
"be",
"skipped"
] |
[
"private",
"void",
"install",
"config",
"(",
"plugin",
"info",
"info",
",",
"path",
"tmp",
"config",
"dir",
",",
"path",
"dest",
"config",
"dir",
")",
"throws",
"exception",
"{",
"if",
"(",
"files",
"is",
"directory",
"(",
"tmp",
"config",
"dir",
")",
"=",
"=",
"false",
")",
"{",
"throw",
"new",
"user",
"exception",
"(",
"plugin",
"malformed",
",",
"\"",
"config",
"in",
"plugin",
"\"",
"+",
"info",
"get",
"name",
"(",
")",
"+",
"\"",
"is",
"not",
"a",
"directory",
"\"",
")",
";",
"}",
"files",
"create",
"directories",
"(",
"dest",
"config",
"dir",
")",
";",
"set",
"file",
"attributes",
"(",
"dest",
"config",
"dir",
",",
"config",
"dir",
"perms",
")",
";",
"final",
"posix",
"file",
"attribute",
"view",
"dest",
"config",
"dir",
"attributes",
"view",
"=",
"files",
"get",
"file",
"attribute",
"view",
"(",
"dest",
"config",
"dir",
"get",
"parent",
"(",
")",
",",
"posix",
"file",
"attribute",
"view",
"class",
")",
";",
"final",
"posix",
"file",
"attributes",
"dest",
"config",
"dir",
"attributes",
"=",
"dest",
"config",
"dir",
"attributes",
"view",
"!",
"=",
"null",
"?",
"dest",
"config",
"dir",
"attributes",
"view",
"read",
"attributes",
"(",
")",
":",
"null",
";",
"if",
"(",
"dest",
"config",
"dir",
"attributes",
"!",
"=",
"null",
")",
"{",
"set",
"owner",
"group",
"(",
"dest",
"config",
"dir",
",",
"dest",
"config",
"dir",
"attributes",
")",
";",
"}",
"try",
"(",
"directory",
"stream",
"<",
"path",
">",
"stream",
"=",
"files",
"new",
"directory",
"stream",
"(",
"tmp",
"config",
"dir",
")",
")",
"{",
"for",
"(",
"path",
"src",
"file",
":",
"stream",
")",
"{",
"if",
"(",
"files",
"is",
"directory",
"(",
"src",
"file",
")",
")",
"{",
"throw",
"new",
"user",
"exception",
"(",
"plugin",
"malformed",
",",
"\"",
"directories",
"not",
"allowed",
"in",
"config",
"dir",
"for",
"plugin",
"\"",
"+",
"info",
"get",
"name",
"(",
")",
")",
";",
"}",
"path",
"dest",
"file",
"=",
"dest",
"config",
"dir",
"resolve",
"(",
"tmp",
"config",
"dir",
"relativize",
"(",
"src",
"file",
")",
")",
";",
"if",
"(",
"files",
"exists",
"(",
"dest",
"file",
")",
"=",
"=",
"false",
")",
"{",
"files",
"copy",
"(",
"src",
"file",
",",
"dest",
"file",
")",
";",
"set",
"file",
"attributes",
"(",
"dest",
"file",
",",
"config",
"files",
"perms",
")",
";",
"if",
"(",
"dest",
"config",
"dir",
"attributes",
"!",
"=",
"null",
")",
"{",
"set",
"owner",
"group",
"(",
"dest",
"file",
",",
"dest",
"config",
"dir",
"attributes",
")",
";",
"}",
"}",
"}",
"}",
"i",
"o",
"utils",
"rm",
"(",
"tmp",
"config",
"dir",
")",
";",
"/",
"/",
"clean",
"up",
"what",
"we",
"just",
"copied",
"}"
] |
[
"reset",
"the",
"current",
"used",
"data",
"amount",
"this",
"should",
"be",
"called",
"when",
"the",
"cached",
"value",
"is",
"re",
"-",
"computed"
] |
[
"protected",
"void",
"set",
"used",
"(",
"long",
"used",
"value",
")",
"{",
"this",
"used",
"set",
"(",
"used",
"value",
")",
";",
"}"
] |
[
"ensure",
"the",
"tmp",
"file",
"is",
"cleaned",
"up",
"and",
"dst",
"file",
"is",
"not",
"created",
"when",
"aborting",
"a",
"new",
"file"
] |
[
"public",
"void",
"test",
"abort",
"new",
"file",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"atomic",
"file",
"output",
"stream",
"fos",
"=",
"new",
"atomic",
"file",
"output",
"stream",
"(",
"dst",
"file",
")",
";",
"fos",
"abort",
"(",
")",
";",
"assert",
"equals",
"(",
"0",
",",
"test",
"dir",
"list",
"(",
")",
"length",
")",
";",
"}"
] |
[
"returns",
"whether",
"the",
"renderer",
"at",
"the",
"specified",
"index",
"is",
"enabled"
] |
[
"public",
"boolean",
"is",
"renderer",
"enabled",
"(",
"int",
"index",
")",
"{",
"return",
"renderer",
"configurations",
"[",
"index",
"]",
"!",
"=",
"null",
";",
"}"
] |
[
"returns",
"true",
"if",
"extended",
"sanity",
"checks",
"should",
"be",
"enabled"
] |
[
"public",
"boolean",
"extended",
"sanity",
"checks",
"(",
")",
"{",
"return",
"options",
"extended",
"sanity",
"checks",
";",
"}"
] |
[
"returns",
"a",
"rough",
"estimate",
"of",
"whether",
"it",
"is",
"worth",
"converting",
"to",
"a",
"sarg",
"examples",
":",
"{",
"@",
"code",
"x",
"=",
"1",
"}",
",",
"{",
"@",
"code",
"x",
"<",
">",
"1",
"}",
",",
"{",
"@",
"code",
"x",
">",
"1",
"}",
"have",
"complexity",
"1",
"{",
"@",
"code",
"x",
">",
"1",
"or",
"x",
"is",
"null",
"}",
"has",
"complexity",
"2",
"{",
"@",
"code",
"x",
"in",
"(",
"2",
",",
"4",
",",
"6",
")",
"or",
"x",
">",
"20",
"}",
"has",
"complexity",
"4"
] |
[
"int",
"complexity",
"(",
")",
"{",
"int",
"complexity",
"=",
"0",
";",
"if",
"(",
"range",
"set",
"as",
"ranges",
"(",
")",
"size",
"(",
")",
"=",
"=",
"2",
"&",
"&",
"range",
"set",
"complement",
"(",
")",
"as",
"ranges",
"(",
")",
"size",
"(",
")",
"=",
"=",
"1",
"&",
"&",
"range",
"sets",
"is",
"point",
"(",
"iterables",
"get",
"only",
"element",
"(",
"range",
"set",
"complement",
"(",
")",
"as",
"ranges",
"(",
")",
")",
")",
")",
"{",
"complexity",
"+",
"+",
";",
"}",
"else",
"{",
"complexity",
"+",
"=",
"range",
"set",
"as",
"ranges",
"(",
")",
"size",
"(",
")",
";",
"}",
"if",
"(",
"contains",
"null",
")",
"{",
"+",
"+",
"complexity",
";",
"}",
"return",
"complexity",
";",
"}"
] |
[
",",
",",
",",
"(",
")",
",",
"(",
")",
";"
] |
[
"public",
"static",
"field",
"get",
"field",
"(",
"final",
"class",
"clazz",
",",
"final",
"string",
"field",
"name",
")",
"{",
"validate",
"not",
"null",
"(",
"clazz",
",",
"\"",
"clazz",
"can",
"'",
"t",
"be",
"null",
"\"",
")",
";",
"validate",
"not",
"empty",
"(",
"field",
"name",
",",
"\"",
"field",
"name",
"can",
"'",
"t",
"be",
"blank",
"\"",
")",
";",
"for",
"(",
"class",
"<",
"?",
">",
"super",
"class",
"=",
"clazz",
";",
"super",
"class",
"!",
"=",
"object",
"class",
";",
"super",
"class",
"=",
"super",
"class",
"get",
"superclass",
"(",
")",
")",
"{",
"try",
"{",
"field",
"field",
"=",
"super",
"class",
"get",
"declared",
"field",
"(",
"field",
"name",
")",
";",
"make",
"accessible",
"(",
"field",
")",
";",
"return",
"field",
";",
"}",
"catch",
"(",
"no",
"such",
"field",
"exception",
"e",
")",
"{",
"/",
"/",
"nosonar",
"/",
"/",
",",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"when",
"true",
"the",
"text",
"will",
"be",
"truncated",
"\"",
"\"",
"if",
"it",
"does",
"not",
"fit",
"within",
"the",
"width",
"of",
"the",
"label",
"wrapping",
"will",
"not",
"occur",
"when",
"ellipsis",
"is",
"true",
"default",
"is",
"false"
] |
[
"public",
"void",
"set",
"ellipsis",
"(",
"boolean",
"ellipsis",
")",
"{",
"if",
"(",
"ellipsis",
")",
"this",
"ellipsis",
"=",
"\"",
"\"",
";",
"else",
"this",
"ellipsis",
"=",
"null",
";",
"}"
] |
[
"set",
"whether",
"to",
"expose",
"the",
"listener",
"jms",
"session",
"to",
"a",
"registered",
"{",
"@",
"link",
"session",
"aware",
"message",
"listener",
"}",
"as",
"well",
"as",
"to",
"{",
"@",
"link",
"org",
"springframework",
"jms",
"core",
"jms",
"template",
"}",
"calls",
"default",
"is",
"\"",
"true",
"\"",
",",
"reusing",
"the",
"listener",
"'",
"s",
"{",
"@",
"link",
"session",
"}",
"turn",
"this",
"off",
"to",
"expose",
"a",
"fresh",
"jms",
"session",
"fetched",
"from",
"the",
"same",
"underlying",
"jms",
"{",
"@",
"link",
"connection",
"}",
"instead",
",",
"which",
"might",
"be",
"necessary",
"on",
"some",
"jms",
"providers",
"note",
"that",
"sessions",
"managed",
"by",
"an",
"external",
"transaction",
"manager",
"will",
"always",
"get",
"exposed",
"to",
"{",
"@",
"link",
"org",
"springframework",
"jms",
"core",
"jms",
"template",
"}",
"calls",
"so",
"in",
"terms",
"of",
"jms",
"template",
"exposure",
",",
"this",
"setting",
"only",
"affects",
"locally",
"transacted",
"sessions"
] |
[
"public",
"void",
"set",
"expose",
"listener",
"session",
"(",
"boolean",
"expose",
"listener",
"session",
")",
"{",
"this",
"expose",
"listener",
"session",
"=",
"expose",
"listener",
"session",
";",
"}"
] |
[
"build",
"command",
"-",
"line",
"options",
"and",
"descriptions"
] |
[
"public",
"static",
"options",
"build",
"options",
"(",
")",
"{",
"options",
"options",
"=",
"new",
"options",
"(",
")",
";",
"/",
"/",
"build",
"in",
"/",
"output",
"file",
"arguments",
",",
"which",
"are",
"required",
",",
"but",
"there",
"is",
"no",
"/",
"/",
"add",
"option",
"method",
"that",
"can",
"specify",
"this",
"option",
"builder",
"is",
"required",
"(",
")",
";",
"option",
"builder",
"has",
"args",
"(",
")",
";",
"option",
"builder",
"with",
"long",
"opt",
"(",
"\"",
"output",
"filename",
"\"",
")",
";",
"options",
"add",
"option",
"(",
"option",
"builder",
"create",
"(",
"\"",
"o",
"\"",
")",
")",
";",
"option",
"builder",
"is",
"required",
"(",
")",
";",
"option",
"builder",
"has",
"args",
"(",
")",
";",
"option",
"builder",
"with",
"long",
"opt",
"(",
"\"",
"input",
"filename",
"\"",
")",
";",
"options",
"add",
"option",
"(",
"option",
"builder",
"create",
"(",
"\"",
"i",
"\"",
")",
")",
";",
"options",
"add",
"option",
"(",
"\"",
"p",
"\"",
",",
"\"",
"processor",
"\"",
",",
"true",
",",
"\"",
"\"",
")",
";",
"options",
"add",
"option",
"(",
"\"",
"v",
"\"",
",",
"\"",
"verbose",
"\"",
",",
"false",
",",
"\"",
"\"",
")",
";",
"options",
"add",
"option",
"(",
"\"",
"f",
"\"",
",",
"\"",
"fix",
"-",
"txids",
"\"",
",",
"false",
",",
"\"",
"\"",
")",
";",
"options",
"add",
"option",
"(",
"\"",
"r",
"\"",
",",
"\"",
"recover",
"\"",
",",
"false",
",",
"\"",
"\"",
")",
";",
"options",
"add",
"option",
"(",
"\"",
"h",
"\"",
",",
"\"",
"help",
"\"",
",",
"false",
",",
"\"",
"\"",
")",
";",
"return",
"options",
";",
"}"
] |
[
"returns",
"the",
"neareset",
"damaged",
"tile"
] |
[
"public",
"static",
"building",
"find",
"damaged",
"tile",
"(",
"team",
"team",
",",
"float",
"x",
",",
"float",
"y",
")",
"{",
"return",
"geometry",
"find",
"closest",
"(",
"x",
",",
"y",
",",
"indexer",
"get",
"damaged",
"(",
"team",
")",
")",
";",
"}"
] |
[
"return",
"the",
"size",
"of",
"directory"
] |
[
"private",
"static",
"string",
"get",
"dir",
"size",
"(",
"final",
"file",
"dir",
")",
"{",
"long",
"len",
"=",
"get",
"dir",
"length",
"(",
"dir",
")",
";",
"return",
"len",
"=",
"=",
"-",
"1",
"?",
"\"",
"\"",
":",
"utils",
"bridge",
"byte",
"2",
"fit",
"memory",
"size",
"(",
"len",
")",
";",
"}"
] |
[
"get",
"namespace",
"integer"
] |
[
"public",
"integer",
"get",
"namespace",
"integer",
"(",
")",
"{",
"return",
"namespace",
"integer",
";",
"}"
] |
[
"read",
"once",
"from",
"the",
"input",
",",
"if",
"possible"
] |
[
"protected",
"abstract",
"t",
"read",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"weakens",
"a",
"term",
"so",
"that",
"it",
"checks",
"only",
"what",
"is",
"not",
"implied",
"by",
"predicates",
"the",
"term",
"is",
"broken",
"into",
"\"",
"ref",
"comparison",
"constant",
"\"",
",",
"for",
"example",
"\"",
"$",
"0",
"&",
"lt",
";",
"5",
"\"",
"examples",
":",
"{",
"@",
"code",
"residue",
"(",
"$",
"0",
"<",
"10",
",",
"[",
"$",
"0",
"<",
"5",
"]",
")",
"}",
"returns",
"{",
"@",
"code",
"true",
"}",
"{",
"@",
"code",
"residue",
"(",
"$",
"0",
"<",
"10",
",",
"[",
"$",
"0",
"<",
"20",
",",
"$",
"0",
">",
"0",
"]",
")",
"}",
"returns",
"{",
"@",
"code",
"$",
"0",
"<",
"10",
"}"
] |
[
"private",
"<",
"c",
"extends",
"comparable",
"<",
"c",
">",
">",
"range",
"set",
"<",
"c",
">",
"residue",
"(",
"rex",
"node",
"ref",
",",
"range",
"set",
"<",
"c",
">",
"r",
"0",
",",
"list",
"<",
"rex",
"node",
">",
"predicates",
",",
"class",
"<",
"c",
">",
"clazz",
")",
"{",
"range",
"set",
"<",
"c",
">",
"result",
"=",
"r",
"0",
";",
"for",
"(",
"rex",
"node",
"predicate",
":",
"predicates",
")",
"{",
"switch",
"(",
"predicate",
"get",
"kind",
"(",
")",
")",
"{",
"case",
"equals",
":",
"case",
"not",
"equals",
":",
"case",
"less",
"than",
":",
"case",
"less",
"than",
"or",
"equal",
":",
"case",
"greater",
"than",
":",
"case",
"greater",
"than",
"or",
"equal",
":",
"final",
"rex",
"call",
"call",
"=",
"(",
"rex",
"call",
")",
"predicate",
";",
"if",
"(",
"call",
"operands",
"get",
"(",
"0",
")",
"equals",
"(",
"ref",
")",
"&",
"&",
"call",
"operands",
"get",
"(",
"1",
")",
"instanceof",
"rex",
"literal",
")",
"{",
"final",
"rex",
"literal",
"literal",
"=",
"(",
"rex",
"literal",
")",
"call",
"operands",
"get",
"(",
"1",
")",
";",
"final",
"c",
"c",
"1",
"=",
"literal",
"get",
"value",
"as",
"(",
"clazz",
")",
";",
"switch",
"(",
"predicate",
"get",
"kind",
"(",
")",
")",
"{",
"case",
"not",
"equals",
":",
"/",
"/",
"we",
"want",
"to",
"intersect",
"result",
"with",
"the",
"range",
"set",
"of",
"everything",
"but",
"/",
"/",
"c",
"1",
"we",
"subtract",
"the",
"point",
"c",
"1",
"from",
"result",
",",
"which",
"is",
"equivalent",
"final",
"range",
"<",
"c",
">",
"point",
"range",
"=",
"range",
"(",
"sql",
"kind",
"equals",
",",
"c",
"1",
")",
";",
"final",
"range",
"set",
"<",
"c",
">",
"not",
"equals",
"range",
"set",
"=",
"immutable",
"range",
"set",
"of",
"(",
"point",
"range",
")",
"complement",
"(",
")",
";",
"if",
"(",
"result",
"encloses",
"all",
"(",
"not",
"equals",
"range",
"set",
")",
")",
"{",
"result",
"=",
"range",
"sets",
"range",
"set",
"all",
"(",
")",
";",
"continue",
";",
"}",
"result",
"=",
"range",
"sets",
"minus",
"(",
"result",
",",
"point",
"range",
")",
";",
"break",
";",
"default",
":",
"final",
"range",
"<",
"c",
">",
"r",
"1",
"=",
"range",
"(",
"predicate",
"get",
"kind",
"(",
")",
",",
"c",
"1",
")",
";",
"if",
"(",
"result",
"encloses",
"(",
"r",
"1",
")",
")",
"{",
"/",
"/",
"given",
"these",
"predicates",
",",
"term",
"is",
"always",
"satisfied",
"/",
"/",
"e",
"g",
"r",
"0",
"is",
"\"",
"$",
"0",
"<",
"10",
"\"",
",",
"r",
"1",
"is",
"\"",
"$",
"0",
"<",
"5",
"\"",
"result",
"=",
"range",
"sets",
"range",
"set",
"all",
"(",
")",
";",
"continue",
";",
"}",
"result",
"=",
"result",
"sub",
"range",
"set",
"(",
"r",
"1",
")",
";",
"}",
"if",
"(",
"result",
"is",
"empty",
"(",
")",
")",
"{",
"break",
";",
"/",
"/",
"short",
"-",
"cut",
"}",
"}",
"}",
"}",
"return",
"result",
";",
"}"
] |
[
"encodes",
"cases",
"where",
"\"",
"-",
"ch",
"-",
"\"",
"is",
"not",
"pronounced"
] |
[
"boolean",
"encode",
"silent",
"ch",
"(",
")",
"{",
"/",
"/",
"'",
"-",
"ch",
"-",
"'",
"not",
"pronounced",
"if",
"(",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"2",
")",
",",
"7",
",",
"\"",
"fuchsia",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"2",
")",
",",
"5",
",",
"\"",
"yacht",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"8",
",",
"\"",
"strachan",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"string",
"at",
"(",
"0",
",",
"8",
",",
"\"",
"crichton",
"\"",
",",
"\"",
"\"",
")",
"|",
"|",
"(",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"3",
")",
",",
"6",
",",
"\"",
"drachm",
"\"",
",",
"\"",
"\"",
")",
")",
"&",
"&",
"!",
"string",
"at",
"(",
"(",
"m",
"current",
"-",
"3",
")",
",",
"7",
",",
"\"",
"drachma",
"\"",
",",
"\"",
"\"",
")",
")",
"{",
"m",
"current",
"+",
"=",
"2",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
] |
[
"read",
"a",
"record",
"from",
"a",
"{",
"@",
"link",
"readable",
"}",
"input"
] |
[
"t",
"read",
"(",
"readable",
"input",
",",
"int",
"size",
")",
";"
] |
[
"returns",
"the",
"user",
"supplied",
"default",
"value",
"for",
"this",
"key"
] |
[
"public",
"t",
"get",
"default",
"(",
")",
"{",
"return",
"default",
"value",
";",
"}"
] |
[
"test",
"serialization",
"of",
"outer",
"boolean",
"types"
] |
[
"public",
"void",
"fake",
"outer",
"boolean",
"serialize",
"test",
"(",
")",
"{",
"boolean",
"body",
"=",
"null",
";",
"boolean",
"response",
"=",
"api",
"fake",
"outer",
"boolean",
"serialize",
"(",
"body",
")",
"block",
"(",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
] |
[
"sets",
"the",
"shard",
"size",
"-",
"indicating",
"the",
"number",
"of",
"term",
"buckets",
"each",
"shard",
"will",
"return",
"to",
"the",
"coordinating",
"node",
"(",
"the",
"node",
"that",
"coordinates",
"the",
"search",
"execution",
")",
"the",
"higher",
"the",
"shard",
"size",
"is",
",",
"the",
"more",
"accurate",
"the",
"results",
"are"
] |
[
"public",
"significant",
"text",
"aggregation",
"builder",
"shard",
"size",
"(",
"int",
"shard",
"size",
")",
"{",
"if",
"(",
"shard",
"size",
"<",
"=",
"0",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"[",
"shard",
"size",
"]",
"must",
"be",
"greater",
"than",
"0",
"found",
"[",
"\"",
"+",
"shard",
"size",
"+",
"\"",
"]",
"in",
"[",
"\"",
"+",
"name",
"+",
"\"",
"]",
"\"",
")",
";",
"}",
"bucket",
"count",
"thresholds",
"set",
"shard",
"size",
"(",
"shard",
"size",
")",
";",
"return",
"this",
";",
"}"
] |
[
"called",
"once",
"during",
"intialization"
] |
[
"public",
"void",
"init",
"(",
")",
"{",
"}"
] |
[
"return",
"the",
"list",
"of",
"init",
"values"
] |
[
"public",
"array",
"list",
"<",
"constant",
">",
"get",
"init",
"values",
"(",
")",
"{",
"return",
"init",
"values",
";",
"}"
] |
[
"manipulate",
"this",
"request",
"'",
"s",
"cookies",
"with",
"the",
"given",
"consumer",
"the",
"map",
"provided",
"to",
"the",
"consumer",
"is",
"\"",
"live",
"\"",
",",
"so",
"that",
"the",
"consumer",
"can",
"be",
"used",
"to",
"{",
"@",
"linkplain",
"multi",
"value",
"map",
"#",
"set",
"(",
"object",
",",
"object",
")",
"overwrite",
"}",
"existing",
"cookies",
",",
"{",
"@",
"linkplain",
"multi",
"value",
"map",
"#",
"remove",
"(",
"object",
")",
"remove",
"}",
"cookies",
",",
"or",
"use",
"any",
"of",
"the",
"other",
"{",
"@",
"link",
"multi",
"value",
"map",
"}",
"methods"
] |
[
"builder",
"cookies",
"(",
"consumer",
"<",
"multi",
"value",
"map",
"<",
"string",
",",
"cookie",
">",
">",
"cookies",
"consumer",
")",
";"
] |
[
"set",
"the",
"list",
"of",
"custom",
"{",
"@",
"code",
"handler",
"method",
"argument",
"resolver",
"}",
"s",
"that",
"will",
"be",
"used",
"after",
"resolvers",
"for",
"supported",
"argument",
"type"
] |
[
"public",
"void",
"set",
"custom",
"argument",
"resolvers",
"(",
"list",
"<",
"handler",
"method",
"argument",
"resolver",
">",
"custom",
"argument",
"resolvers",
")",
"{",
"this",
"custom",
"argument",
"resolvers",
"=",
"custom",
"argument",
"resolvers",
";",
"}"
] |
[
"create",
"tables",
"based",
"on",
"the",
"class",
"models",
"defined",
"in",
"the",
"litepal",
"xml",
"file",
"after",
"the",
"tables",
"are",
"created",
",",
"add",
"association",
"to",
"these",
"tables",
"based",
"on",
"the",
"associations",
"between",
"class",
"models"
] |
[
"static",
"void",
"create",
"(",
"s",
"q",
"lite",
"database",
"db",
")",
"{",
"create",
"(",
"db",
",",
"true",
")",
";",
"add",
"association",
"(",
"db",
",",
"true",
")",
";",
"}"
] |
[
"evaluates",
"an",
"expression",
"and",
"compares",
"its",
"result",
"to",
"the",
"expected",
"object"
] |
[
"public",
"scenario",
"test",
"expression",
"(",
"string",
"src",
",",
"object",
"expected",
")",
"throws",
"exception",
"{",
"run",
"test",
"(",
"create",
"comparison",
"testable",
"(",
"src",
",",
"expected",
",",
"false",
")",
")",
";",
"return",
"this",
";",
"}"
] |
[
"@",
"inherit",
"doc"
] |
[
"public",
"decoded",
"instruction",
"with",
"index",
"(",
"int",
"new",
"index",
")",
"{",
"return",
"new",
"two",
"register",
"decoded",
"instruction",
"(",
"get",
"format",
"(",
")",
",",
"get",
"opcode",
"(",
")",
",",
"new",
"index",
",",
"get",
"index",
"type",
"(",
")",
",",
"get",
"target",
"(",
")",
",",
"get",
"literal",
"(",
")",
",",
"a",
",",
"b",
")",
";",
"}"
] |
[
"fill",
"the",
"column",
"vector",
"with",
"the",
"provided",
"value"
] |
[
"void",
"fill",
"(",
"byte",
"[",
"]",
"value",
")",
";"
] |
[
"create",
"a",
"jaxp",
"1",
"4",
"{",
"@",
"link",
"st",
"a",
"x",
"source",
"}",
"for",
"the",
"given",
"{",
"@",
"link",
"x",
"m",
"l",
"event",
"reader",
"}"
] |
[
"public",
"static",
"source",
"create",
"stax",
"source",
"(",
"x",
"m",
"l",
"event",
"reader",
"event",
"reader",
")",
"throws",
"x",
"m",
"l",
"stream",
"exception",
"{",
"return",
"new",
"st",
"a",
"x",
"source",
"(",
"event",
"reader",
")",
";",
"}"
] |
[
"writes",
"a",
"log",
"message",
"before",
"the",
"invocation",
"based",
"on",
"the",
"value",
"of",
"{",
"@",
"code",
"enter",
"message",
"}",
"if",
"the",
"invocation",
"succeeds",
",",
"then",
"a",
"log",
"message",
"is",
"written",
"on",
"exit",
"based",
"on",
"the",
"value",
"{",
"@",
"code",
"exit",
"message",
"}",
"if",
"an",
"exception",
"occurs",
"during",
"invocation",
",",
"then",
"a",
"message",
"is",
"written",
"based",
"on",
"the",
"value",
"of",
"{",
"@",
"code",
"exception",
"message",
"}"
] |
[
"protected",
"object",
"invoke",
"under",
"trace",
"(",
"method",
"invocation",
"invocation",
",",
"log",
"logger",
")",
"throws",
"throwable",
"{",
"string",
"name",
"=",
"class",
"utils",
"get",
"qualified",
"method",
"name",
"(",
"invocation",
"get",
"method",
"(",
")",
")",
";",
"stop",
"watch",
"stop",
"watch",
"=",
"new",
"stop",
"watch",
"(",
"name",
")",
";",
"object",
"return",
"value",
"=",
"null",
";",
"boolean",
"exit",
"through",
"exception",
"=",
"false",
";",
"try",
"{",
"stop",
"watch",
"start",
"(",
"name",
")",
";",
"write",
"to",
"log",
"(",
"logger",
",",
"replace",
"placeholders",
"(",
"this",
"enter",
"message",
",",
"invocation",
",",
"null",
",",
"null",
",",
"-",
"1",
")",
")",
";",
"return",
"value",
"=",
"invocation",
"proceed",
"(",
")",
";",
"return",
"return",
"value",
";",
"}",
"catch",
"(",
"throwable",
"ex",
")",
"{",
"if",
"(",
"stop",
"watch",
"is",
"running",
"(",
")",
")",
"{",
"stop",
"watch",
"stop",
"(",
")",
";",
"}",
"exit",
"through",
"exception",
"=",
"true",
";",
"write",
"to",
"log",
"(",
"logger",
",",
"replace",
"placeholders",
"(",
"this",
"exception",
"message",
",",
"invocation",
",",
"null",
",",
"ex",
",",
"stop",
"watch",
"get",
"total",
"time",
"millis",
"(",
")",
")",
",",
"ex",
")",
";",
"throw",
"ex",
";",
"}",
"finally",
"{",
"if",
"(",
"!",
"exit",
"through",
"exception",
")",
"{",
"if",
"(",
"stop",
"watch",
"is",
"running",
"(",
")",
")",
"{",
"stop",
"watch",
"stop",
"(",
")",
";",
"}",
"write",
"to",
"log",
"(",
"logger",
",",
"replace",
"placeholders",
"(",
"this",
"exit",
"message",
",",
"invocation",
",",
"return",
"value",
",",
"null",
",",
"stop",
"watch",
"get",
"total",
"time",
"millis",
"(",
")",
")",
")",
";",
"}",
"}",
"}"
] |
[
"fullscreen",
"the",
"current",
"window",
"if",
"it",
"is",
"not",
"already",
"fullscreen",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"w",
"3c",
"github",
"iowebdriver",
"#",
"fullscreen",
"-",
"window",
"\"",
">",
"w3c",
"web",
"driver",
"specification",
"for",
"more",
"details"
] |
[
"void",
"fullscreen",
"(",
")",
";"
] |
[
"gets",
"the",
"serializer",
"for",
"the",
"elements",
"contained",
"in",
"the",
"list"
] |
[
"public",
"type",
"serializer",
"<",
"t",
">",
"get",
"element",
"serializer",
"(",
")",
"{",
"/",
"/",
"call",
"get",
"serializer",
"(",
")",
"here",
"to",
"get",
"the",
"initialization",
"check",
"and",
"proper",
"error",
"message",
"final",
"type",
"serializer",
"<",
"list",
"<",
"t",
">",
">",
"raw",
"serializer",
"=",
"get",
"serializer",
"(",
")",
";",
"if",
"(",
"!",
"(",
"raw",
"serializer",
"instanceof",
"list",
"serializer",
")",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}",
"return",
"(",
"(",
"list",
"serializer",
"<",
"t",
">",
")",
"raw",
"serializer",
")",
"get",
"element",
"serializer",
"(",
")",
";",
"}"
] |
[
"writes",
"the",
"given",
"double",
"-",
"precision",
"floating",
"-",
"point",
"value",
"(",
"6",
"4bit",
",",
"8",
"bytes",
")",
"to",
"the",
"given",
"position",
"in",
"the",
"system",
"'",
"s",
"native",
"byte",
"order",
"this",
"method",
"offers",
"the",
"best",
"speed",
"for",
"double",
"writing",
"and",
"should",
"be",
"used",
"unless",
"a",
"specific",
"byte",
"order",
"is",
"required",
"in",
"most",
"cases",
",",
"it",
"suffices",
"to",
"know",
"that",
"the",
"byte",
"order",
"in",
"which",
"the",
"value",
"is",
"written",
"is",
"the",
"same",
"as",
"the",
"one",
"in",
"which",
"it",
"is",
"read",
"(",
"such",
"as",
"transient",
"storage",
"in",
"memory",
",",
"or",
"serialization",
"for",
"io",
"and",
"network",
")",
",",
"making",
"this",
"method",
"the",
"preferable",
"choice"
] |
[
"public",
"final",
"void",
"put",
"double",
"(",
"int",
"index",
",",
"double",
"value",
")",
"{",
"put",
"long",
"(",
"index",
",",
"double",
"double",
"to",
"raw",
"long",
"bits",
"(",
"value",
")",
")",
";",
"}"
] |
[
"gets",
"mode",
"by",
"name"
] |
[
"public",
"static",
"work",
"thread",
"mode",
"get",
"mode",
"by",
"name",
"(",
"string",
"name",
")",
"{",
"for",
"(",
"work",
"thread",
"mode",
"mode",
":",
"values",
"(",
")",
")",
"{",
"if",
"(",
"mode",
"name",
"(",
")",
"equals",
"ignore",
"case",
"(",
"name",
")",
")",
"{",
"return",
"mode",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"rotates",
"the",
"vector",
"2",
"by",
"the",
"given",
"angle",
",",
"counter",
"-",
"clockwise",
"assuming",
"the",
"y",
"-",
"axis",
"points",
"up"
] |
[
"public",
"vector",
"2",
"rotate",
"rad",
"(",
"float",
"radians",
")",
"{",
"float",
"cos",
"=",
"(",
"float",
")",
"math",
"cos",
"(",
"radians",
")",
";",
"float",
"sin",
"=",
"(",
"float",
")",
"math",
"sin",
"(",
"radians",
")",
";",
"float",
"new",
"x",
"=",
"this",
"x",
"*",
"cos",
"-",
"this",
"y",
"*",
"sin",
";",
"float",
"new",
"y",
"=",
"this",
"x",
"*",
"sin",
"+",
"this",
"y",
"*",
"cos",
";",
"this",
"x",
"=",
"new",
"x",
";",
"this",
"y",
"=",
"new",
"y",
";",
"return",
"this",
";",
"}"
] |
[
"is",
"merging",
"enabled",
"for",
"this",
"particular",
"instance",
"?"
] |
[
"boolean",
"is",
"merge",
"enabled",
"(",
")",
";"
] |
[
"returns",
"the",
"original",
"class",
"name"
] |
[
"private",
"string",
"original",
"class",
"name",
"(",
"string",
"obfuscated",
"class",
"name",
")",
"{",
"string",
"original",
"class",
"name",
"=",
"class",
"map",
"get",
"(",
"obfuscated",
"class",
"name",
")",
";",
"return",
"original",
"class",
"name",
"!",
"=",
"null",
"?",
"original",
"class",
"name",
":",
"obfuscated",
"class",
"name",
";",
"}"
] |
[
"subclasses",
"should",
"invoke",
"this",
"method",
"to",
"set",
"the",
"result",
"of",
"the",
"computation",
"to",
"an",
"error",
",",
"{",
"@",
"code",
"throwable",
"}",
"this",
"will",
"set",
"the",
"state",
"of",
"the",
"future",
"to",
"{",
"@",
"link",
"base",
"future",
"sync",
"#",
"completed",
"}",
"and",
"call",
"{",
"@",
"link",
"#",
"done",
"(",
"boolean",
")",
"}",
"if",
"the",
"state",
"was",
"successfully",
"changed"
] |
[
"protected",
"boolean",
"set",
"exception",
"(",
"throwable",
"throwable",
")",
"{",
"boolean",
"result",
"=",
"sync",
"set",
"exception",
"(",
"objects",
"require",
"non",
"null",
"(",
"throwable",
")",
")",
";",
"if",
"(",
"result",
")",
"{",
"done",
"(",
"false",
")",
";",
"}",
"/",
"/",
"if",
"it",
"'",
"s",
"an",
"error",
",",
"we",
"want",
"to",
"make",
"sure",
"it",
"reaches",
"the",
"top",
"of",
"the",
"/",
"/",
"call",
"stack",
",",
"so",
"we",
"rethrow",
"it",
"/",
"/",
"we",
"want",
"to",
"notify",
"the",
"listeners",
"we",
"have",
"with",
"errors",
"as",
"well",
",",
"as",
"it",
"breaks",
"/",
"/",
"how",
"we",
"work",
"in",
"es",
"in",
"terms",
"of",
"using",
"assertions",
"/",
"/",
"if",
"(",
"throwable",
"instanceof",
"error",
")",
"{",
"/",
"/",
"throw",
"(",
"error",
")",
"throwable",
";",
"/",
"/",
"}",
"return",
"result",
";",
"}"
] |
[
"see",
"{",
"@",
"link",
"kafka",
"producer",
"#",
"partitions",
"for",
"(",
"string",
")",
"}"
] |
[
"list",
"<",
"partition",
"info",
">",
"partitions",
"for",
"(",
"string",
"topic",
")",
";"
] |
[
"test",
"of",
"a",
"setup",
"request",
",",
"with",
"no",
"body"
] |
[
"public",
"void",
"test",
"send",
"setup",
"request",
"(",
")",
"{",
"string",
"expected",
"=",
"\"",
"setup",
"rtsp",
":",
"/",
"/",
"172",
"10",
"20",
"30",
":",
"554",
"/",
"d",
"3abaaa",
"7",
"-",
"6",
"5f",
"2",
"-",
"4",
"2b",
"4",
"-",
"\"",
"+",
"\"",
"8d",
"6b",
"-",
"3",
"7",
"9f",
"4",
"9",
"2fcf",
"0f",
"rtsp",
"/",
"1",
"0",
"\\",
"r",
"\\",
"n",
"\"",
"+",
"\"",
"transport",
":",
"mp2t",
"/",
"dvbc",
"/",
"udp",
";",
"unicast",
";",
"client",
"=",
"01234567",
";",
"\"",
"+",
"\"",
"source",
"=",
"172",
"10",
"20",
"30",
";",
"\"",
"+",
"\"",
"destination",
"=",
"1",
"1",
"1",
"1",
";",
"client",
"port",
"=",
"6922",
"\\",
"r",
"\\",
"n",
"\"",
"+",
"\"",
"cseq",
":",
"1",
"\\",
"r",
"\\",
"n",
"\"",
"+",
"\"",
"\\",
"r",
"\\",
"n",
"\"",
";",
"http",
"request",
"request",
"=",
"new",
"default",
"http",
"request",
"(",
"rtsp",
"versions",
"rtsp",
"1",
"0",
",",
"rtsp",
"methods",
"setup",
",",
"\"",
"rtsp",
":",
"/",
"/",
"172",
"10",
"20",
"30",
":",
"554",
"/",
"d",
"3abaaa",
"7",
"-",
"6",
"5f",
"2",
"-",
"4",
"2b",
"4",
"-",
"8d",
"6b",
"-",
"3",
"7",
"9f",
"4",
"9",
"2fcf",
"0f",
"\"",
")",
";",
"request",
"headers",
"(",
")",
"add",
"(",
"rtsp",
"header",
"names",
"transport",
",",
"\"",
"mp2t",
"/",
"dvbc",
"/",
"udp",
";",
"unicast",
";",
"client",
"=",
"01234567",
";",
"source",
"=",
"172",
"10",
"20",
"30",
";",
"\"",
"+",
"\"",
"destination",
"=",
"1",
"1",
"1",
"1",
";",
"client",
"port",
"=",
"6922",
"\"",
")",
";",
"request",
"headers",
"(",
")",
"add",
"(",
"rtsp",
"header",
"names",
"cseq",
",",
"\"",
"1",
"\"",
")",
";",
"embedded",
"channel",
"ch",
"=",
"new",
"embedded",
"channel",
"(",
"new",
"rtsp",
"encoder",
"(",
")",
")",
";",
"ch",
"write",
"outbound",
"(",
"request",
")",
";",
"byte",
"buf",
"buf",
"=",
"ch",
"read",
"outbound",
"(",
")",
";",
"string",
"actual",
"=",
"buf",
"to",
"string",
"(",
"charset",
"util",
"utf",
"8",
")",
";",
"buf",
"release",
"(",
")",
";",
"assert",
"equals",
"(",
"expected",
",",
"actual",
")",
";",
"}"
] |
[
"this",
"get",
"method",
"returns",
"the",
"first",
"interface",
"http",
"data",
"with",
"the",
"given",
"name",
"from",
"body",
"<",
"br",
">",
"if",
"chunked",
",",
"all",
"chunks",
"must",
"have",
"been",
"offered",
"using",
"offer",
"(",
")",
"get",
"method",
"if",
"not",
",",
"not",
"enough",
"data",
"decoder",
"exception",
"will",
"be",
"raised"
] |
[
"public",
"interface",
"http",
"data",
"get",
"body",
"http",
"data",
"(",
"string",
"name",
")",
"{",
"check",
"destroyed",
"(",
")",
";",
"if",
"(",
"!",
"is",
"last",
"chunk",
")",
"{",
"throw",
"new",
"not",
"enough",
"data",
"decoder",
"exception",
"(",
")",
";",
"}",
"list",
"<",
"interface",
"http",
"data",
">",
"list",
"=",
"body",
"map",
"http",
"data",
"get",
"(",
"name",
")",
";",
"if",
"(",
"list",
"!",
"=",
"null",
")",
"{",
"return",
"list",
"get",
"(",
"0",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
[
"filters",
"for",
"records",
"of",
"the",
"rank",
"relation",
"where",
"the",
"rank",
"is",
"greater",
"than",
"the",
"given",
"threshold",
"output",
"format",
":",
"0",
":",
"rank",
"1",
":",
"url",
"2",
":",
"avg",
"duration"
] |
[
"public",
"boolean",
"filter",
"(",
"tuple",
"3",
"<",
"integer",
",",
"string",
",",
"integer",
">",
"value",
")",
"throws",
"exception",
"{",
"return",
"(",
"value",
"f",
"0",
">",
"rankfilter",
")",
";",
"}"
] |
[
"given",
"'",
"path",
"'",
",",
"returns",
"the",
"existing",
"inode",
"it",
"designates",
",",
"optionally",
"following",
"symbolic",
"links",
"analogous",
"to",
"unix",
"stat",
"(",
"2",
")",
"lstat",
"(",
"2",
")",
",",
"except",
"that",
"it",
"returns",
"a",
"mutable",
"inode",
"we",
"can",
"modify",
"directly"
] |
[
"public",
"file",
"status",
"stat",
"(",
"path",
"path",
",",
"boolean",
"follow",
"symlinks",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"inode",
"stat",
"errno",
"(",
"path",
",",
"follow",
"symlinks",
")",
"value",
"or",
"throw",
"(",
"path",
")",
";",
"}"
] |
[
"create",
"a",
"list",
"of",
"nested",
"record",
"with",
"the",
"nested",
"schema"
] |
[
"public",
"static",
"list",
"<",
"indexed",
"record",
">",
"create",
"record",
"list",
"(",
"long",
"number",
"of",
"rows",
")",
"{",
"list",
"<",
"indexed",
"record",
">",
"records",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"0",
")",
";",
"for",
"(",
"long",
"i",
"=",
"0",
";",
"i",
"<",
"number",
"of",
"rows",
";",
"i",
"+",
"+",
")",
"{",
"final",
"bar",
"bar",
"=",
"bar",
"new",
"builder",
"(",
")",
"set",
"spam",
"(",
"i",
")",
"build",
"(",
")",
";",
"final",
"array",
"item",
"array",
"item",
"=",
"array",
"item",
"new",
"builder",
"(",
")",
"set",
"type",
"(",
"\"",
"color",
"\"",
")",
"set",
"value",
"(",
"i",
")",
"build",
"(",
")",
";",
"final",
"map",
"item",
"map",
"item",
"=",
"map",
"item",
"new",
"builder",
"(",
")",
"set",
"type",
"(",
"\"",
"map",
"\"",
")",
"set",
"value",
"(",
"\"",
"hash",
"map",
"\"",
")",
"build",
"(",
")",
";",
"list",
"<",
"array",
"item",
">",
"nested",
"array",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"nested",
"array",
"add",
"(",
"array",
"item",
")",
";",
"map",
"<",
"char",
"sequence",
",",
"map",
"item",
">",
"nested",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"nested",
"map",
"put",
"(",
"\"",
"map",
"item",
"\"",
",",
"map",
"item",
")",
";",
"list",
"<",
"long",
">",
"long",
"array",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"long",
"array",
"add",
"(",
"i",
")",
";",
"list",
"<",
"char",
"sequence",
">",
"string",
"array",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"string",
"array",
"add",
"(",
"\"",
"string",
"\"",
")",
";",
"final",
"nested",
"record",
"nested",
"record",
"=",
"nested",
"record",
"new",
"builder",
"(",
")",
"set",
"foo",
"(",
"1l",
")",
"set",
"bar",
"(",
"bar",
")",
"set",
"nested",
"array",
"(",
"nested",
"array",
")",
"set",
"str",
"array",
"(",
"string",
"array",
")",
"set",
"nested",
"map",
"(",
"nested",
"map",
")",
"set",
"arr",
"(",
"long",
"array",
")",
"build",
"(",
")",
";",
"records",
"add",
"(",
"nested",
"record",
")",
";",
"}",
"return",
"records",
";",
"}"
] |
[
"initializes",
"the",
"update",
"center",
"this",
"has",
"to",
"wait",
"until",
"after",
"all",
"plugins",
"load",
",",
"to",
"let",
"custom",
"update",
"center",
"configuration",
"take",
"effect",
"first"
] |
[
"public",
"static",
"void",
"init",
"(",
"jenkins",
"h",
")",
"throws",
"i",
"o",
"exception",
"{",
"h",
"get",
"update",
"center",
"(",
")",
"load",
"(",
")",
";",
"}"
] |
[
"test",
"for",
"b",
"6",
"2",
"0",
"4",
"7",
"4",
"3",
"2",
"when",
"desugaring",
"a",
"functional",
"interface",
"with",
"an",
"executable",
"clinit",
"and",
"default",
"methods",
",",
"we",
"erase",
"the",
"body",
"of",
"clinit",
"to",
"avoid",
"executing",
"it",
"during",
"desugaring",
"this",
"test",
"makes",
"sure",
"that",
"all",
"the",
"constants",
"defined",
"in",
"the",
"interface",
"are",
"still",
"there",
"after",
"desugaring"
] |
[
"public",
"void",
"test",
"functional",
"interface",
"with",
"executable",
"clinit",
"still",
"work",
"after",
"desugar",
"(",
")",
"{",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"constant",
"length",
"(",
"\"",
"\"",
")",
"convert",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"constant",
"length",
"(",
"\"",
"1",
"\"",
")",
"convert",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"1",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"boolean",
")",
"is",
"false",
"(",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"char",
")",
"is",
"equal",
"to",
"(",
"'",
"h",
"'",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"byte",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"short",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"int",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"float",
")",
"is",
"equal",
"to",
"(",
"0f",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"long",
")",
"is",
"equal",
"to",
"(",
"0",
")",
";",
"assert",
"that",
"(",
"functional",
"interface",
"with",
"initializer",
"and",
"default",
"methods",
"double",
")",
"is",
"equal",
"to",
"(",
"0d",
")",
";",
"}"
] |
[
"returns",
"the",
"class",
"representing",
"the",
"component",
"type",
"of",
"an",
"array",
"if",
"this",
"class",
"does",
"not",
"represent",
"an",
"array",
"class",
"this",
"method",
"returns",
"null"
] |
[
"static",
"public",
"class",
"get",
"component",
"type",
"(",
"class",
"c",
")",
"{",
"return",
"c",
"get",
"component",
"type",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"new",
"nested",
"set",
"containing",
"the",
"same",
"elements",
",",
"but",
"represented",
"using",
"a",
"graph",
"node",
"whose",
"out",
"-",
"degree",
"does",
"not",
"exceed",
"{",
"@",
"code",
"max",
"degree",
"}",
",",
"which",
"must",
"be",
"at",
"least",
"2",
"the",
"operation",
"is",
"shallow",
",",
"not",
"deeply",
"recursive",
"the",
"resulting",
"set",
"'",
"s",
"iteration",
"order",
"is",
"undefined"
] |
[
"public",
"nested",
"set",
"<",
"e",
">",
"split",
"if",
"exceeds",
"maximum",
"size",
"(",
"int",
"max",
"degree",
")",
"{",
"preconditions",
"check",
"argument",
"(",
"max",
"degree",
">",
"=",
"2",
",",
"\"",
"max",
"degree",
"must",
"be",
"at",
"least",
"2",
"\"",
")",
";",
"object",
"children",
"=",
"get",
"children",
"(",
")",
";",
"/",
"/",
"may",
"wait",
"for",
"a",
"future",
"if",
"(",
"!",
"(",
"children",
"instanceof",
"object",
"[",
"]",
")",
")",
"{",
"return",
"this",
";",
"}",
"object",
"[",
"]",
"succs",
"=",
"(",
"object",
"[",
"]",
")",
"children",
";",
"int",
"nsuccs",
"=",
"succs",
"length",
";",
"if",
"(",
"nsuccs",
"<",
"=",
"max",
"degree",
")",
"{",
"return",
"this",
";",
"}",
"object",
"[",
"]",
"[",
"]",
"pieces",
"=",
"new",
"object",
"[",
"ceildiv",
"(",
"nsuccs",
",",
"max",
"degree",
")",
"]",
"[",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pieces",
"length",
";",
"i",
"+",
"+",
")",
"{",
"int",
"max",
"=",
"math",
"min",
"(",
"(",
"i",
"+",
"1",
")",
"*",
"max",
"degree",
",",
"succs",
"length",
")",
";",
"pieces",
"[",
"i",
"]",
"=",
"arrays",
"copy",
"of",
"range",
"(",
"succs",
",",
"i",
"*",
"max",
"degree",
",",
"max",
")",
";",
"}",
"int",
"depth",
"=",
"get",
"approx",
"depth",
"(",
")",
"+",
"1",
";",
"/",
"/",
"may",
"be",
"an",
"overapproximation",
"/",
"/",
"todo",
"(",
"adonovan",
")",
":",
"(",
"preexisting",
")",
":",
"if",
"the",
"last",
"piece",
"is",
"a",
"singleton",
",",
"it",
"must",
"be",
"inlined",
"/",
"/",
"each",
"piece",
"is",
"now",
"smaller",
"than",
"max",
"degree",
",",
"but",
"there",
"may",
"be",
"many",
"pieces",
"/",
"/",
"recursively",
"split",
"pieces",
"(",
"the",
"recursion",
"affects",
"only",
"the",
"root",
";",
"it",
"/",
"/",
"does",
"not",
"traverse",
"into",
"successors",
")",
"in",
"practice",
",",
"max",
"degree",
"is",
"large",
"/",
"/",
"enough",
"that",
"the",
"recursion",
"rarely",
"does",
"any",
"work",
"return",
"new",
"nested",
"set",
"<",
"e",
">",
"(",
"get",
"order",
"(",
")",
",",
"depth",
",",
"pieces",
",",
"null",
")",
"split",
"if",
"exceeds",
"maximum",
"size",
"(",
"max",
"degree",
")",
";",
"}"
] |
[
"get",
"int",
"6",
"4"
] |
[
"public",
"long",
"get",
"int",
"6",
"4",
"(",
")",
"{",
"return",
"int",
"6",
"4",
";",
"}"
] |
[
"test",
"serialization",
"of",
"outer",
"string",
"types",
"<",
"b",
">",
"200",
"<",
"b",
">",
"-",
"output",
"string"
] |
[
"public",
"string",
"fake",
"outer",
"string",
"serialize",
"(",
"string",
"body",
")",
"throws",
"rest",
"client",
"exception",
"{",
"return",
"fake",
"outer",
"string",
"serialize",
"with",
"http",
"info",
"(",
"body",
")",
"get",
"body",
"(",
")",
";",
"}"
] |
[
"reads",
"all",
"lines",
"of",
"text",
"from",
"this",
"source",
",",
"running",
"the",
"given",
"{",
"@",
"code",
"action",
"}",
"for",
"each",
"line",
"as",
"it",
"is",
"read",
"like",
"{",
"@",
"link",
"buffered",
"reader",
"#",
"read",
"line",
"(",
")",
"}",
",",
"this",
"method",
"considers",
"a",
"line",
"to",
"be",
"a",
"sequence",
"of",
"text",
"that",
"is",
"terminated",
"by",
"(",
"but",
"does",
"not",
"include",
")",
"one",
"of",
"{",
"@",
"code",
"\\",
"r",
"\\",
"n",
"}",
",",
"{",
"@",
"code",
"\\",
"r",
"}",
"or",
"{",
"@",
"code",
"\\",
"n",
"}",
"if",
"the",
"source",
"'",
"s",
"content",
"does",
"not",
"end",
"in",
"a",
"line",
"termination",
"sequence",
",",
"it",
"is",
"treated",
"as",
"if",
"it",
"does"
] |
[
"public",
"void",
"for",
"each",
"line",
"(",
"consumer",
"<",
"?",
"super",
"string",
">",
"action",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"(",
"stream",
"<",
"string",
">",
"lines",
"=",
"lines",
"(",
")",
")",
"{",
"/",
"/",
"the",
"lines",
"should",
"be",
"ordered",
"regardless",
"in",
"most",
"cases",
",",
"but",
"use",
"for",
"each",
"ordered",
"to",
"be",
"sure",
"lines",
"for",
"each",
"ordered",
"(",
"action",
")",
";",
"}",
"catch",
"(",
"unchecked",
"i",
"o",
"exception",
"e",
")",
"{",
"throw",
"e",
"get",
"cause",
"(",
")",
";",
"}",
"}"
] |
[
"in",
"reflection",
",",
"{",
"@",
"code",
"foo",
"<",
"?",
">",
"get",
"upper",
"bounds",
"(",
")",
"[",
"0",
"]",
"}",
"is",
"always",
"{",
"@",
"code",
"object",
"class",
"}",
",",
"even",
"when",
"foo",
"is",
"defined",
"as",
"{",
"@",
"code",
"foo",
"<",
"t",
"extends",
"string",
">",
"}",
"thus",
"directly",
"calling",
"{",
"@",
"code",
"<",
"?",
">",
"is",
"(",
"string",
"class",
")",
"}",
"will",
"return",
"false",
"to",
"mitigate",
",",
"we",
"canonicalize",
"wildcards",
"by",
"enforcing",
"the",
"following",
"invariants",
":",
"{",
"@",
"code",
"canonicalize",
"(",
"t",
")",
"}",
"always",
"produces",
"the",
"equal",
"result",
"for",
"equivalent",
"types",
"for",
"example",
"both",
"{",
"@",
"code",
"enum",
"<",
"?",
">",
"}",
"and",
"{",
"@",
"code",
"enum",
"<",
"?",
"extends",
"enum",
"<",
"?",
">",
">",
"}",
"canonicalize",
"to",
"{",
"@",
"code",
"enum",
"<",
"?",
"extends",
"enum",
"<",
"e",
">",
"}",
"{",
"@",
"code",
"canonicalize",
"(",
"t",
")",
"}",
"produces",
"a",
"\"",
"literal",
"\"",
"supertype",
"of",
"t",
"for",
"example",
":",
"{",
"@",
"code",
"enum",
"<",
"?",
"extends",
"enum",
"<",
"?",
">",
">",
"}",
"canonicalizes",
"to",
"{",
"@",
"code",
"enum",
"<",
"?",
">",
"}",
",",
"which",
"is",
"a",
"supertype",
"(",
"if",
"we",
"disregard",
"the",
"upper",
"bound",
"is",
"implicitly",
"an",
"enum",
"too",
")",
"if",
"{",
"@",
"code",
"canonicalize",
"(",
"a",
")",
"=",
"=",
"canonicalize",
"(",
"b",
")",
"}",
",",
"then",
"{",
"@",
"code",
"foo",
"<",
"a",
">",
"is",
"subtype",
"of",
"(",
"foo",
"<",
"b",
">",
")",
"}",
"and",
"vice",
"versa",
"i",
"e",
"{",
"@",
"code",
"a",
"is",
"(",
"b",
")",
"}",
"and",
"{",
"@",
"code",
"b",
"is",
"(",
"a",
")",
"}",
"{",
"@",
"code",
"canonicalize",
"(",
"canonicalize",
"(",
"a",
")",
")",
"=",
"=",
"canonicalize",
"(",
"a",
")",
"}"
] |
[
"private",
"static",
"type",
"canonicalize",
"type",
"arg",
"(",
"type",
"variable",
"<",
"?",
">",
"declaration",
",",
"type",
"type",
"arg",
")",
"{",
"return",
"type",
"arg",
"instanceof",
"wildcard",
"type",
"?",
"canonicalize",
"wildcard",
"type",
"(",
"declaration",
",",
"(",
"(",
"wildcard",
"type",
")",
"type",
"arg",
")",
")",
":",
"canonicalize",
"wildcards",
"in",
"type",
"(",
"type",
"arg",
")",
";",
"}"
] |
[
"get",
"fakejson",
"form",
"data"
] |
[
"public",
"<",
"t",
">",
"t",
"execute",
"(",
"function",
"<",
"response",
",",
"t",
">",
"handler",
")",
"{",
"return",
"handler",
"apply",
"(",
"rest",
"assured",
"given",
"(",
")",
"spec",
"(",
"req",
"spec",
"build",
"(",
")",
")",
"expect",
"(",
")",
"spec",
"(",
"resp",
"spec",
"build",
"(",
")",
")",
"when",
"(",
")",
"request",
"(",
"req",
"method",
",",
"req",
"uri",
")",
")",
";",
"}"
] |
[
"schedules",
"an",
"action"
] |
[
"public",
"builder",
"apply",
"(",
"action",
"action",
")",
"{",
"return",
"append",
"action",
"node",
"(",
"new",
"action",
"node",
"(",
"action",
",",
"current",
"delay",
"ms",
")",
")",
";",
"}"
] |
[
"parses",
"the",
"given",
"string",
"as",
"as",
"memory",
"size"
] |
[
"public",
"static",
"memory",
"size",
"parse",
"(",
"string",
"text",
")",
"throws",
"illegal",
"argument",
"exception",
"{",
"return",
"new",
"memory",
"size",
"(",
"parse",
"bytes",
"(",
"text",
")",
")",
";",
"}"
] |
[
"set",
"the",
"screen",
"to",
"portrait"
] |
[
"public",
"static",
"void",
"set",
"portrait",
"(",
"@",
"non",
"null",
"final",
"activity",
"activity",
")",
"{",
"activity",
"set",
"requested",
"orientation",
"(",
"activity",
"info",
"screen",
"orientation",
"portrait",
")",
";",
"}"
] |
[
"returns",
"the",
"shard",
"size",
"for",
"the",
"given",
"shard",
"routing",
"or",
"<",
"code",
">",
"null",
"<",
"code",
">",
"it",
"that",
"metric",
"is",
"not",
"available"
] |
[
"public",
"long",
"get",
"shard",
"size",
"(",
"shard",
"routing",
"shard",
"routing",
")",
"{",
"return",
"shard",
"sizes",
"get",
"(",
"shard",
"identifier",
"from",
"routing",
"(",
"shard",
"routing",
")",
")",
";",
"}"
] |
[
"get",
"the",
"io",
"statistics",
"of",
"the",
"nested",
"stream",
",",
"falling",
"back",
"to",
"null",
"if",
"the",
"stream",
"does",
"not",
"implement",
"the",
"interface",
"{",
"@",
"link",
"i",
"o",
"statistics",
"source",
"}"
] |
[
"public",
"i",
"o",
"statistics",
"get",
"i",
"o",
"statistics",
"(",
")",
"{",
"return",
"i",
"o",
"statistics",
"support",
"retrieve",
"i",
"o",
"statistics",
"(",
"in",
")",
";",
"}"
] |
[
"assert",
"that",
"a",
"file",
"exists",
"and",
"whose",
"{",
"@",
"link",
"file",
"status",
"}",
"entry",
"declares",
"that",
"this",
"is",
"a",
"file",
"and",
"not",
"a",
"symlink",
"or",
"directory"
] |
[
"protected",
"void",
"mkdirs",
"(",
"path",
"path",
")",
"throws",
"i",
"o",
"exception",
"{",
"assert",
"true",
"(",
"\"",
"failed",
"to",
"mkdir",
"\"",
"+",
"path",
",",
"file",
"system",
"mkdirs",
"(",
"path",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"component",
"to",
"display",
"in",
"the",
"completion",
"list"
] |
[
"public",
"j",
"component",
"get",
"component",
"(",
")",
"{",
"return",
"component",
";",
"}"
] |
[
"return",
"a",
"direct",
"execution",
"context",
"the",
"direct",
"execution",
"context",
"executes",
"the",
"runnable",
"directly",
"in",
"the",
"calling",
"thread"
] |
[
"public",
"static",
"execution",
"context",
"direct",
"execution",
"context",
"(",
")",
"{",
"return",
"direct",
"execution",
"context",
"instance",
";",
"}"
] |
[
"retrieve",
"instance",
"of",
"{",
"@",
"link",
"hystrix",
"properties",
"strategy",
"}",
"to",
"use",
"based",
"on",
"order",
"of",
"precedence",
"as",
"defined",
"in",
"{",
"@",
"link",
"hystrix",
"plugins",
"}",
"class",
"header",
"override",
"default",
"by",
"using",
"{",
"@",
"link",
"#",
"register",
"properties",
"strategy",
"(",
"hystrix",
"properties",
"strategy",
")",
"}",
"or",
"setting",
"property",
"(",
"via",
"archaius",
")",
":",
"<",
"code",
">",
"hystrix",
"plugin",
"hystrix",
"properties",
"strategy",
"implementation",
"<",
"code",
">",
"with",
"the",
"full",
"classname",
"to",
"load"
] |
[
"public",
"hystrix",
"properties",
"strategy",
"get",
"properties",
"strategy",
"(",
")",
"{",
"if",
"(",
"properties",
"factory",
"get",
"(",
")",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"check",
"for",
"an",
"implementation",
"from",
"archaius",
"first",
"object",
"impl",
"=",
"get",
"plugin",
"implementation",
"(",
"hystrix",
"properties",
"strategy",
"class",
")",
";",
"if",
"(",
"impl",
"=",
"=",
"null",
")",
"{",
"/",
"/",
"nothing",
"set",
"via",
"archaius",
"so",
"initialize",
"with",
"default",
"properties",
"factory",
"compare",
"and",
"set",
"(",
"null",
",",
"hystrix",
"properties",
"strategy",
"default",
"get",
"instance",
"(",
")",
")",
";",
"/",
"/",
"we",
"don",
"'",
"t",
"return",
"from",
"here",
"but",
"call",
"get",
"(",
")",
"again",
"in",
"case",
"of",
"thread",
"-",
"race",
"so",
"the",
"winner",
"will",
"always",
"get",
"returned",
"}",
"else",
"{",
"/",
"/",
"we",
"received",
"an",
"implementation",
"from",
"archaius",
"so",
"use",
"it",
"properties",
"factory",
"compare",
"and",
"set",
"(",
"null",
",",
"(",
"hystrix",
"properties",
"strategy",
")",
"impl",
")",
";",
"}",
"}",
"return",
"properties",
"factory",
"get",
"(",
")",
";",
"}"
] |
[
"if",
"{",
"@",
"code",
"applies",
"(",
"key",
")",
"}",
",",
"returns",
"the",
"result",
"of",
"checking",
"whether",
"this",
"key",
"'",
"s",
"value",
"is",
"up",
"to",
"date"
] |
[
"public",
"dirty",
"result",
"check",
"(",
"sky",
"key",
"key",
",",
"@",
"nullable",
"sky",
"value",
"old",
"value",
",",
"@",
"nullable",
"timestamp",
"granularity",
"monitor",
"tsgm",
")",
"{",
"sky",
"value",
"new",
"value",
"=",
"create",
"new",
"value",
"(",
"key",
",",
"tsgm",
")",
";",
"if",
"(",
"new",
"value",
"=",
"=",
"null",
")",
"{",
"return",
"dirty",
"result",
"dirty",
"(",
"old",
"value",
")",
";",
"}",
"return",
"new",
"value",
"equals",
"(",
"old",
"value",
")",
"?",
"dirty",
"result",
"not",
"dirty",
"(",
"old",
"value",
")",
":",
"dirty",
"result",
"dirty",
"with",
"new",
"value",
"(",
"old",
"value",
",",
"new",
"value",
")",
";",
"}"
] |
[
"adds",
"a",
"constructor",
"parameter",
"value",
"of",
"literal",
"type",
"the",
"type",
"is",
"explicitly",
"defined",
"using",
"type",
"information",
"the",
"value",
"is",
"parsed",
"accordingly",
"expression",
"values",
"are",
"not",
"allowed"
] |
[
"public",
"class",
"instance",
"parameter",
"(",
"type",
"information",
"<",
"?",
">",
"type",
"info",
",",
"string",
"value",
"string",
")",
"{",
"constructor",
"add",
"(",
"left",
"(",
"new",
"literal",
"value",
"(",
")",
"of",
"(",
"type",
"info",
")",
"value",
"(",
"value",
"string",
")",
")",
")",
";",
"return",
"this",
";",
"}"
] |
[
"workaround",
":",
"zero",
"breaks",
"gwt",
"web",
"app"
] |
[
"private",
"static",
"double",
"filter",
"(",
"final",
"double",
"value",
")",
"{",
"if",
"(",
"value",
"<",
"=",
"0",
"0",
")",
"{",
"return",
"1",
"0",
";",
"}",
"else",
"{",
"return",
"value",
";",
"}",
"}"
] |
[
"add",
"the",
"scanned",
"and",
"prepared",
"mock",
"instance",
"to",
"the",
"given",
"collection",
"the",
"preparation",
"of",
"mocks",
"consists",
"only",
"in",
"defining",
"a",
"mock",
"name",
"if",
"not",
"already",
"set"
] |
[
"public",
"void",
"add",
"prepared",
"mocks",
"(",
"set",
"<",
"object",
">",
"mocks",
")",
"{",
"mocks",
"add",
"all",
"(",
"scan",
"(",
")",
")",
";",
"}"
] |
[
"create",
"a",
"{",
"@",
"link",
"statement",
"set",
"}",
"instance",
"which",
"accepts",
"dml",
"statements",
"or",
"tables",
",",
"the",
"planner",
"can",
"optimize",
"all",
"added",
"statements",
"and",
"tables",
"together",
"and",
"then",
"submit",
"as",
"one",
"job"
] |
[
"statement",
"set",
"create",
"statement",
"set",
"(",
")",
";"
] |
[
"determine",
"whether",
"this",
"listener",
"actually",
"supports",
"the",
"given",
"event",
"type"
] |
[
"boolean",
"supports",
"event",
"type",
"(",
"class",
"<",
"?",
"extends",
"application",
"event",
">",
"event",
"type",
")",
";"
] |
[
"notify",
"changes",
"from",
"the",
"provider",
"side"
] |
[
"protected",
"void",
"notify",
"(",
"url",
"url",
",",
"notify",
"listener",
"listener",
",",
"list",
"<",
"url",
">",
"urls",
")",
"{",
"if",
"(",
"url",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"notify",
"url",
"=",
"=",
"null",
"\"",
")",
";",
"}",
"if",
"(",
"listener",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"notify",
"listener",
"=",
"=",
"null",
"\"",
")",
";",
"}",
"if",
"(",
"(",
"collection",
"utils",
"is",
"empty",
"(",
"urls",
")",
")",
"&",
"&",
"!",
"any",
"value",
"equals",
"(",
"url",
"get",
"service",
"interface",
"(",
")",
")",
")",
"{",
"logger",
"warn",
"(",
"\"",
"ignore",
"empty",
"notify",
"urls",
"for",
"subscribe",
"url",
"\"",
"+",
"url",
")",
";",
"return",
";",
"}",
"if",
"(",
"logger",
"is",
"info",
"enabled",
"(",
")",
")",
"{",
"logger",
"info",
"(",
"\"",
"notify",
"urls",
"for",
"subscribe",
"url",
"\"",
"+",
"url",
"+",
"\"",
",",
"urls",
":",
"\"",
"+",
"urls",
")",
";",
"}",
"/",
"/",
"keep",
"every",
"provider",
"'",
"s",
"category",
"map",
"<",
"string",
",",
"list",
"<",
"url",
">",
">",
"result",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"url",
"u",
":",
"urls",
")",
"{",
"if",
"(",
"url",
"utils",
"is",
"match",
"(",
"url",
",",
"u",
")",
")",
"{",
"string",
"category",
"=",
"u",
"get",
"parameter",
"(",
"category",
"key",
",",
"default",
"category",
")",
";",
"list",
"<",
"url",
">",
"category",
"list",
"=",
"result",
"compute",
"if",
"absent",
"(",
"category",
",",
"k",
"-",
">",
"new",
"array",
"list",
"<",
">",
"(",
")",
")",
";",
"category",
"list",
"add",
"(",
"u",
")",
";",
"}",
"}",
"if",
"(",
"result",
"size",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
";",
"}",
"map",
"<",
"string",
",",
"list",
"<",
"url",
">",
">",
"category",
"notified",
"=",
"notified",
"compute",
"if",
"absent",
"(",
"url",
",",
"u",
"-",
">",
"new",
"concurrent",
"hash",
"map",
"<",
">",
"(",
")",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"list",
"<",
"url",
">",
">",
"entry",
":",
"result",
"entry",
"set",
"(",
")",
")",
"{",
"string",
"category",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"list",
"<",
"url",
">",
"category",
"list",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"category",
"notified",
"put",
"(",
"category",
",",
"category",
"list",
")",
";",
"listener",
"notify",
"(",
"category",
"list",
")",
";",
"/",
"/",
"we",
"will",
"update",
"our",
"cache",
"file",
"after",
"each",
"notification",
"/",
"/",
"when",
"our",
"registry",
"has",
"a",
"subscribe",
"failure",
"due",
"to",
"network",
"jitter",
",",
"we",
"can",
"return",
"at",
"least",
"the",
"existing",
"cache",
"url",
"save",
"properties",
"(",
"url",
")",
";",
"}",
"}"
] |
[
"sets",
"whether",
"format",
"based",
"failures",
"will",
"be",
"ignored"
] |
[
"public",
"multi",
"match",
"query",
"builder",
"lenient",
"(",
"boolean",
"lenient",
")",
"{",
"this",
"lenient",
"=",
"lenient",
";",
"return",
"this",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.