docstring_tokens
list | code_tokens
list |
---|---|
[
"move",
"a",
"file",
"or",
"directory",
"to",
"the",
"current",
"trash",
"directory"
] |
[
"public",
"boolean",
"move",
"to",
"trash",
"(",
"path",
"path",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"trash",
"policy",
"move",
"to",
"trash",
"(",
"path",
")",
";",
"}"
] |
[
"adds",
"the",
"given",
"items",
"as",
"info",
"items",
"to",
"the",
"info",
"command",
"it",
"is",
"an",
"error",
"to",
"add",
"info",
"items",
"with",
"the",
"same",
"name",
"to",
"the",
"same",
"builder",
",",
"regardless",
"of",
"whether",
"that",
"happens",
"within",
"the",
"same",
"module",
"or",
"across",
"modules"
] |
[
"public",
"server",
"builder",
"add",
"info",
"items",
"(",
"info",
"item",
"info",
"items",
")",
"{",
"for",
"(",
"info",
"item",
"item",
":",
"info",
"items",
")",
"{",
"this",
"info",
"items",
"put",
"(",
"item",
"get",
"name",
"(",
")",
",",
"item",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
[
"the",
"stats",
"groups",
"this",
"request",
"will",
"be",
"aggregated",
"under"
] |
[
"public",
"search",
"request",
"builder",
"set",
"stats",
"(",
"list",
"<",
"string",
">",
"stats",
"groups",
")",
"{",
"source",
"builder",
"(",
")",
"stats",
"(",
"stats",
"groups",
")",
";",
"return",
"this",
";",
"}"
] |
[
"create",
"and",
"return",
"a",
"wrapped",
"context",
"with",
"the",
"default",
"selected",
"theme",
"set"
] |
[
"public",
"static",
"context",
"get",
"themed",
"context",
"(",
"final",
"context",
"base",
"context",
")",
"{",
"return",
"new",
"context",
"theme",
"wrapper",
"(",
"base",
"context",
",",
"get",
"theme",
"for",
"service",
"(",
"base",
"context",
",",
"-",
"1",
")",
")",
";",
"}"
] |
[
"notifies",
"the",
"listener",
"that",
"the",
"given",
"stream",
"is",
"now",
"{",
"@",
"code",
"closed",
"}",
"in",
"both",
"directions",
"and",
"will",
"no",
"longer",
"be",
"accessible",
"via",
"{",
"@",
"link",
"#",
"for",
"each",
"active",
"stream",
"(",
"http",
"2",
"stream",
"visitor",
")",
"}",
"if",
"a",
"{",
"@",
"link",
"runtime",
"exception",
"}",
"is",
"thrown",
"it",
"will",
"be",
"logged",
"and",
"not",
"propagated",
"throwing",
"from",
"this",
"method",
"is",
"not",
"supported",
"and",
"is",
"considered",
"a",
"programming",
"error"
] |
[
"void",
"on",
"stream",
"closed",
"(",
"http",
"2",
"stream",
"stream",
")",
";"
] |
[
"set",
"the",
"symlink",
"resolution",
"policy"
] |
[
"public",
"glob",
"builder",
"with",
"resolve",
"symlinks",
"(",
"boolean",
"resolve",
")",
"{",
"resolve",
"symlinks",
"=",
"resolve",
";",
"return",
"this",
";",
"}"
] |
[
"undo",
"log",
"delete"
] |
[
"protected",
"void",
"undo",
"log",
"delete",
"(",
")",
"{",
"map",
"<",
"string",
",",
"channel",
">",
"rm",
"channels",
"=",
"channel",
"manager",
"get",
"rm",
"channels",
"(",
")",
";",
"if",
"(",
"rm",
"channels",
"=",
"=",
"null",
"|",
"|",
"rm",
"channels",
"is",
"empty",
"(",
")",
")",
"{",
"if",
"(",
"logger",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"no",
"active",
"rm",
"channels",
"to",
"delete",
"undo",
"log",
"\"",
")",
";",
"}",
"return",
";",
"}",
"short",
"save",
"days",
"=",
"config",
"get",
"short",
"(",
"configuration",
"keys",
"transaction",
"undo",
"log",
"save",
"days",
",",
"undo",
"log",
"delete",
"request",
"default",
"save",
"days",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"channel",
">",
"channel",
"entry",
":",
"rm",
"channels",
"entry",
"set",
"(",
")",
")",
"{",
"string",
"resource",
"id",
"=",
"channel",
"entry",
"get",
"key",
"(",
")",
";",
"undo",
"log",
"delete",
"request",
"delete",
"request",
"=",
"new",
"undo",
"log",
"delete",
"request",
"(",
")",
";",
"delete",
"request",
"set",
"resource",
"id",
"(",
"resource",
"id",
")",
";",
"delete",
"request",
"set",
"save",
"days",
"(",
"save",
"days",
">",
"0",
"?",
"save",
"days",
":",
"undo",
"log",
"delete",
"request",
"default",
"save",
"days",
")",
";",
"try",
"{",
"remoting",
"server",
"send",
"async",
"request",
"(",
"channel",
"entry",
"get",
"value",
"(",
")",
",",
"delete",
"request",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"logger",
"error",
"(",
"\"",
"failed",
"to",
"async",
"delete",
"undo",
"log",
"resource",
"id",
"=",
"{",
"}",
",",
"exception",
":",
"{",
"}",
"\"",
",",
"resource",
"id",
",",
"e",
"get",
"message",
"(",
")",
")",
";",
"}",
"}",
"}"
] |
[
"appends",
"the",
"given",
"{",
"@",
"link",
"resource",
"decoder",
"}",
"onto",
"the",
"list",
"of",
"all",
"available",
"{",
"@",
"link",
"resource",
"decoder",
"}",
"s",
"allowing",
"it",
"to",
"be",
"used",
"if",
"all",
"earlier",
"and",
"default",
"{",
"@",
"link",
"resource",
"decoder",
"}",
"s",
"for",
"the",
"given",
"types",
"fail",
"(",
"or",
"there",
"are",
"none",
")",
"if",
"you",
"'",
"re",
"attempting",
"to",
"replace",
"an",
"existing",
"{",
"@",
"link",
"resource",
"decoder",
"}",
"or",
"would",
"like",
"to",
"ensure",
"that",
"your",
"{",
"@",
"link",
"resource",
"decoder",
"}",
"gets",
"the",
"chance",
"to",
"run",
"before",
"an",
"existing",
"{",
"@",
"link",
"resource",
"decoder",
"}",
",",
"use",
"{",
"@",
"link",
"#",
"prepend",
"(",
"class",
",",
"class",
",",
"resource",
"decoder",
")",
"}",
"this",
"method",
"is",
"best",
"for",
"new",
"types",
"of",
"resources",
"and",
"data",
"or",
"as",
"a",
"way",
"to",
"add",
"an",
"additional",
"fallback",
"decoder",
"for",
"an",
"existing",
"type",
"of",
"data"
] |
[
"public",
"<",
"data",
",",
"t",
"resource",
">",
"registry",
"append",
"(",
"@",
"non",
"null",
"class",
"<",
"data",
">",
"data",
"class",
",",
"@",
"non",
"null",
"class",
"<",
"t",
"resource",
">",
"resource",
"class",
",",
"@",
"non",
"null",
"resource",
"decoder",
"<",
"data",
",",
"t",
"resource",
">",
"decoder",
")",
"{",
"append",
"(",
"bucket",
"append",
"all",
",",
"data",
"class",
",",
"resource",
"class",
",",
"decoder",
")",
";",
"return",
"this",
";",
"}"
] |
[
"invoke",
"registered",
"{",
"@",
"link",
"filter",
"filters",
"}",
"andor",
"{",
"@",
"link",
"servlet",
"}",
"also",
"saving",
"the",
"request",
"and",
"response"
] |
[
"public",
"void",
"do",
"filter",
"(",
"servlet",
"request",
"request",
",",
"servlet",
"response",
"response",
")",
"throws",
"i",
"o",
"exception",
",",
"servlet",
"exception",
"{",
"assert",
"not",
"null",
"(",
"request",
",",
"\"",
"request",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"assert",
"not",
"null",
"(",
"response",
",",
"\"",
"response",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"assert",
"state",
"(",
"this",
"request",
"=",
"=",
"null",
",",
"\"",
"this",
"filter",
"chain",
"has",
"already",
"been",
"called",
"!",
"\"",
")",
";",
"if",
"(",
"this",
"iterator",
"=",
"=",
"null",
")",
"{",
"this",
"iterator",
"=",
"this",
"filters",
"iterator",
"(",
")",
";",
"}",
"if",
"(",
"this",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"filter",
"next",
"filter",
"=",
"this",
"iterator",
"next",
"(",
")",
";",
"next",
"filter",
"do",
"filter",
"(",
"request",
",",
"response",
",",
"this",
")",
";",
"}",
"this",
"request",
"=",
"request",
";",
"this",
"response",
"=",
"response",
";",
"}"
] |
[
"jms",
"exception",
"listener",
"implementation",
",",
"invoked",
"by",
"the",
"jms",
"provider",
"in",
"case",
"of",
"connection",
"failures",
"re",
"-",
"initializes",
"this",
"listener",
"container",
"'",
"s",
"shared",
"connection",
"and",
"its",
"sessions",
"and",
"consumers",
",",
"if",
"necessary"
] |
[
"public",
"void",
"on",
"exception",
"(",
"j",
"m",
"s",
"exception",
"ex",
")",
"{",
"/",
"/",
"first",
"invoke",
"the",
"user",
"-",
"specific",
"exception",
"listener",
",",
"if",
"any",
"invoke",
"exception",
"listener",
"(",
"ex",
")",
";",
"/",
"/",
"now",
"try",
"to",
"recover",
"the",
"shared",
"connection",
"and",
"all",
"consumers",
"if",
"(",
"this",
"recover",
"on",
"exception",
")",
"{",
"if",
"(",
"logger",
"is",
"debug",
"enabled",
"(",
")",
")",
"{",
"logger",
"debug",
"(",
"\"",
"trying",
"to",
"recover",
"from",
"jms",
"connection",
"exception",
":",
"\"",
"+",
"ex",
")",
";",
"}",
"try",
"{",
"synchronized",
"(",
"this",
"consumers",
"monitor",
")",
"{",
"this",
"sessions",
"=",
"null",
";",
"this",
"consumers",
"=",
"null",
";",
"}",
"refresh",
"shared",
"connection",
"(",
")",
";",
"initialize",
"consumers",
"(",
")",
";",
"logger",
"debug",
"(",
"\"",
"successfully",
"refreshed",
"jms",
"connection",
"\"",
")",
";",
"}",
"catch",
"(",
"j",
"m",
"s",
"exception",
"recover",
"ex",
")",
"{",
"logger",
"debug",
"(",
"\"",
"failed",
"to",
"recover",
"jms",
"connection",
"\"",
",",
"recover",
"ex",
")",
";",
"logger",
"error",
"(",
"\"",
"encountered",
"non",
"-",
"recoverable",
"j",
"m",
"s",
"exception",
"\"",
",",
"ex",
")",
";",
"}",
"}",
"}"
] |
[
"parse",
"acl",
"permission",
"string",
",",
"partially",
"borrowed",
"from",
"zoo",
"keeper",
"main",
"private",
"method"
] |
[
"private",
"static",
"int",
"get",
"perm",
"from",
"string",
"(",
"string",
"perm",
"string",
")",
"{",
"int",
"perm",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"perm",
"string",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"char",
"c",
"=",
"perm",
"string",
"char",
"at",
"(",
"i",
")",
";",
"switch",
"(",
"c",
")",
"{",
"case",
"'",
"r",
"'",
":",
"perm",
"|",
"=",
"zoo",
"defs",
"perms",
"read",
";",
"break",
";",
"case",
"'",
"w",
"'",
":",
"perm",
"|",
"=",
"zoo",
"defs",
"perms",
"write",
";",
"break",
";",
"case",
"'",
"c",
"'",
":",
"perm",
"|",
"=",
"zoo",
"defs",
"perms",
"create",
";",
"break",
";",
"case",
"'",
"d",
"'",
":",
"perm",
"|",
"=",
"zoo",
"defs",
"perms",
"delete",
";",
"break",
";",
"case",
"'",
"a",
"'",
":",
"perm",
"|",
"=",
"zoo",
"defs",
"perms",
"admin",
";",
"break",
";",
"default",
":",
"throw",
"new",
"bad",
"acl",
"format",
"exception",
"(",
"\"",
"invalid",
"permission",
"'",
"\"",
"+",
"c",
"+",
"\"",
"'",
"in",
"permission",
"string",
"'",
"\"",
"+",
"perm",
"string",
"+",
"\"",
"'",
"\"",
")",
";",
"}",
"}",
"return",
"perm",
";",
"}"
] |
[
"get",
"array",
"array",
"of",
"model"
] |
[
"public",
"list",
"<",
"list",
"<",
"read",
"only",
"first",
">",
">",
"get",
"array",
"array",
"of",
"model",
"(",
")",
"{",
"return",
"array",
"array",
"of",
"model",
";",
"}"
] |
[
"sets",
"a",
"new",
"timeline",
"if",
"the",
"source",
"is",
"already",
"prepared",
",",
"this",
"triggers",
"a",
"source",
"info",
"refresh",
"message",
"being",
"sent",
"to",
"the",
"listener"
] |
[
"public",
"void",
"set",
"new",
"source",
"info",
"(",
"timeline",
"new",
"timeline",
")",
"{",
"set",
"new",
"source",
"info",
"(",
"new",
"timeline",
",",
"/",
"*",
"send",
"manifest",
"load",
"events",
"=",
"*",
"/",
"true",
")",
";",
"}"
] |
[
"for",
"writing",
"the",
"first",
"key",
"and",
"value",
"bytes",
"directly",
"from",
"the",
"value",
"iterators",
",",
"pass",
"the",
"current",
"underlying",
"output",
"stream"
] |
[
"public",
"data",
"output",
"stream",
"get",
"output",
"stream",
"(",
"int",
"length",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"mem",
"cache",
"reserve",
"space",
"(",
"length",
")",
")",
"{",
"return",
"mem",
"cache",
"data",
"out",
";",
"}",
"else",
"{",
"file",
"cache",
"activate",
"(",
")",
";",
"return",
"file",
"cache",
"writer",
"get",
"output",
"stream",
"(",
")",
";",
"}",
"}"
] |
[
"by",
"default",
"only",
"one",
"result",
"is",
"output",
"for",
"each",
"pair",
"of",
"vertices",
"when",
"mirroring",
"a",
"second",
"result",
"with",
"the",
"vertex",
"order",
"flipped",
"is",
"output",
"for",
"each",
"pair",
"of",
"vertices"
] |
[
"public",
"adamic",
"adar",
"<",
"k",
",",
"vv",
",",
"ev",
">",
"set",
"mirror",
"results",
"(",
"boolean",
"mirror",
"results",
")",
"{",
"this",
"mirror",
"results",
"=",
"mirror",
"results",
";",
"return",
"this",
";",
"}"
] |
[
"sets",
"the",
"distance",
"from",
"the",
"center",
"for",
"this",
"query"
] |
[
"public",
"geo",
"distance",
"query",
"builder",
"distance",
"(",
"string",
"distance",
",",
"distance",
"unit",
"unit",
")",
"{",
"if",
"(",
"strings",
"is",
"empty",
"(",
"distance",
")",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"distance",
"must",
"not",
"be",
"null",
"or",
"empty",
"\"",
")",
";",
"}",
"if",
"(",
"unit",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"distance",
"unit",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"}",
"double",
"new",
"distance",
"=",
"distance",
"unit",
"parse",
"(",
"distance",
",",
"unit",
",",
"distance",
"unit",
"default",
")",
";",
"if",
"(",
"new",
"distance",
"<",
"=",
"0",
"0",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"distance",
"must",
"be",
"greater",
"than",
"zero",
"\"",
")",
";",
"}",
"this",
"distance",
"=",
"new",
"distance",
";",
"return",
"this",
";",
"}"
] |
[
"helper",
"method",
"that",
"checks",
"that",
"a",
"dwp",
"has",
"the",
"expected",
"generating",
"action",
"structure"
] |
[
"private",
"void",
"validate",
"dwp",
"(",
"rule",
"context",
"rule",
"context",
",",
"artifact",
"dwp",
"file",
",",
"cc",
"toolchain",
"provider",
"toolchain",
",",
"list",
"<",
"string",
">",
"expected",
"inputs",
")",
"throws",
"exception",
"{",
"spawn",
"action",
"dwp",
"action",
"=",
"(",
"spawn",
"action",
")",
"get",
"generating",
"action",
"(",
"dwp",
"file",
")",
";",
"string",
"dwp",
"tool",
"path",
"=",
"toolchain",
"get",
"tool",
"path",
"fragment",
"(",
"tool",
"dwp",
",",
"rule",
"context",
")",
"get",
"path",
"string",
"(",
")",
";",
"assert",
"that",
"(",
"dwp",
"action",
"get",
"mnemonic",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"\"",
"cc",
"generate",
"dwp",
"\"",
")",
";",
"assert",
"that",
"(",
"dwp",
"tool",
"path",
")",
"is",
"equal",
"to",
"(",
"dwp",
"action",
"get",
"command",
"filename",
"(",
")",
")",
";",
"list",
"<",
"string",
">",
"command",
"args",
"=",
"dwp",
"action",
"get",
"arguments",
"(",
")",
";",
"/",
"/",
"the",
"first",
"argument",
"should",
"be",
"the",
"command",
"being",
"executed",
"assert",
"that",
"(",
"dwp",
"tool",
"path",
")",
"is",
"equal",
"to",
"(",
"command",
"args",
"get",
"(",
"0",
")",
")",
";",
"/",
"/",
"the",
"final",
"two",
"arguments",
"should",
"be",
"\"",
"-",
"o",
"dwp",
"output",
"file",
"\"",
"assert",
"that",
"(",
"command",
"args",
"sub",
"list",
"(",
"command",
"args",
"size",
"(",
")",
"-",
"2",
",",
"command",
"args",
"size",
"(",
")",
")",
")",
"contains",
"exactly",
"(",
"\"",
"-",
"o",
"\"",
",",
"dwp",
"file",
"get",
"exec",
"path",
"string",
"(",
")",
")",
"in",
"order",
"(",
")",
";",
"/",
"/",
"the",
"remaining",
"arguments",
"should",
"be",
"the",
"set",
"of",
"dwo",
"inputs",
"(",
"in",
"any",
"order",
")",
"assert",
"that",
"(",
"command",
"args",
"sub",
"list",
"(",
"1",
",",
"command",
"args",
"size",
"(",
")",
"-",
"2",
")",
")",
"contains",
"exactly",
"elements",
"in",
"(",
"expected",
"inputs",
")",
";",
"}"
] |
[
"returns",
"the",
"timestamp",
"formatted",
"in",
"xs",
":",
"date",
"time"
] |
[
"public",
"@",
"non",
"null",
"string",
"get",
"timestamp",
"string",
"2",
"(",
")",
"{",
"return",
"util",
"xs",
"datetime",
"formatter",
"format",
"(",
"new",
"date",
"(",
"timestamp",
")",
")",
";",
"}"
] |
[
"wrap",
"to",
"a",
"{",
"@",
"link",
"param",
"map",
"}",
"if",
"object",
"is",
"{",
"@",
"link",
"collection",
"}",
"or",
"array"
] |
[
"public",
"static",
"object",
"wrap",
"to",
"map",
"if",
"collection",
"(",
"object",
"object",
",",
"string",
"actual",
"param",
"name",
")",
"{",
"if",
"(",
"object",
"instanceof",
"collection",
")",
"{",
"param",
"map",
"<",
"object",
">",
"map",
"=",
"new",
"param",
"map",
"<",
">",
"(",
")",
";",
"map",
"put",
"(",
"\"",
"collection",
"\"",
",",
"object",
")",
";",
"if",
"(",
"object",
"instanceof",
"list",
")",
"{",
"map",
"put",
"(",
"\"",
"list",
"\"",
",",
"object",
")",
";",
"}",
"optional",
"of",
"nullable",
"(",
"actual",
"param",
"name",
")",
"if",
"present",
"(",
"name",
"-",
">",
"map",
"put",
"(",
"name",
",",
"object",
")",
")",
";",
"return",
"map",
";",
"}",
"else",
"if",
"(",
"object",
"!",
"=",
"null",
"&",
"&",
"object",
"get",
"class",
"(",
")",
"is",
"array",
"(",
")",
")",
"{",
"param",
"map",
"<",
"object",
">",
"map",
"=",
"new",
"param",
"map",
"<",
">",
"(",
")",
";",
"map",
"put",
"(",
"\"",
"array",
"\"",
",",
"object",
")",
";",
"optional",
"of",
"nullable",
"(",
"actual",
"param",
"name",
")",
"if",
"present",
"(",
"name",
"-",
">",
"map",
"put",
"(",
"name",
",",
"object",
")",
")",
";",
"return",
"map",
";",
"}",
"return",
"object",
";",
"}"
] |
[
"return",
"whether",
"this",
"method",
"indicates",
"a",
"parameter",
"which",
"is",
"not",
"required",
":",
"either",
"in",
"the",
"form",
"of",
"java",
"8",
"'",
"s",
"{",
"@",
"link",
"java",
"util",
"optional",
"}",
",",
"any",
"variant",
"of",
"a",
"parameter",
"-",
"level",
"{",
"@",
"code",
"nullable",
"}",
"annotation",
"(",
"such",
"as",
"from",
"jsr",
"-",
"305",
"or",
"the",
"find",
"bugs",
"set",
"of",
"annotations",
")",
",",
"or",
"a",
"language",
"-",
"level",
"nullable",
"type",
"declaration",
"or",
"{",
"@",
"code",
"continuation",
"}",
"parameter",
"in",
"kotlin"
] |
[
"public",
"boolean",
"is",
"optional",
"(",
")",
"{",
"return",
"(",
"get",
"parameter",
"type",
"(",
")",
"=",
"=",
"optional",
"class",
"|",
"|",
"has",
"nullable",
"annotation",
"(",
")",
"|",
"|",
"(",
"kotlin",
"detector",
"is",
"kotlin",
"reflect",
"present",
"(",
")",
"&",
"&",
"kotlin",
"detector",
"is",
"kotlin",
"type",
"(",
"get",
"containing",
"class",
"(",
")",
")",
"&",
"&",
"kotlin",
"delegate",
"is",
"optional",
"(",
"this",
")",
")",
")",
";",
"}"
] |
[
"check",
"that",
"each",
"model",
"for",
"the",
"views",
"can",
"support",
"the",
"given",
"bytes",
"per",
"line",
"value"
] |
[
"void",
"check",
"bytes",
"per",
"line",
"(",
"int",
"num",
"bytes",
"per",
"line",
")",
"throws",
"invalid",
"input",
"exception",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"view",
"list",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"byte",
"viewer",
"component",
"c",
"=",
"view",
"list",
"get",
"(",
"i",
")",
";",
"data",
"format",
"model",
"model",
"=",
"c",
"get",
"data",
"model",
"(",
")",
";",
"int",
"group",
"size",
"=",
"model",
"get",
"group",
"size",
"(",
")",
";",
"if",
"(",
"group",
"size",
">",
"0",
")",
"{",
"if",
"(",
"num",
"bytes",
"per",
"line",
"%",
"group",
"size",
"!",
"=",
"0",
")",
"{",
"throw",
"new",
"invalid",
"input",
"exception",
"(",
"\"",
"bytes",
"per",
"line",
"not",
"divisible",
"by",
"group",
"size",
"[",
"\"",
"+",
"group",
"size",
"+",
"\"",
"]",
"\"",
")",
";",
"}",
"}",
"}",
"}"
] |
[
"test",
"get",
"xid"
] |
[
"public",
"void",
"test",
"get",
"x",
"i",
"d",
"(",
")",
"{",
"root",
"context",
"bind",
"(",
"default",
"xid",
")",
";",
"assert",
"that",
"(",
"root",
"context",
"get",
"x",
"i",
"d",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"default",
"xid",
")",
";",
"assert",
"that",
"(",
"root",
"context",
"unbind",
"(",
")",
")",
"is",
"equal",
"to",
"(",
"default",
"xid",
")",
";",
"assert",
"that",
"(",
"root",
"context",
"get",
"x",
"i",
"d",
"(",
")",
")",
"is",
"null",
"(",
")",
";",
"}"
] |
[
"executes",
"a",
"unary",
"call",
"and",
"returns",
"a",
"{",
"@",
"link",
"listenable",
"future",
"}",
"to",
"the",
"response",
"the",
"{",
"@",
"code",
"call",
"}",
"should",
"not",
"be",
"already",
"started",
"after",
"calling",
"this",
"method",
",",
"{",
"@",
"code",
"call",
"}",
"should",
"no",
"longer",
"be",
"used"
] |
[
"public",
"static",
"<",
"req",
"t",
",",
"resp",
"t",
">",
"listenable",
"future",
"<",
"resp",
"t",
">",
"future",
"unary",
"call",
"(",
"client",
"call",
"<",
"req",
"t",
",",
"resp",
"t",
">",
"call",
",",
"req",
"t",
"req",
")",
"{",
"grpc",
"future",
"<",
"resp",
"t",
">",
"response",
"future",
"=",
"new",
"grpc",
"future",
"<",
">",
"(",
"call",
")",
";",
"async",
"unary",
"request",
"call",
"(",
"call",
",",
"req",
",",
"new",
"unary",
"stream",
"to",
"future",
"<",
">",
"(",
"response",
"future",
")",
")",
";",
"return",
"response",
"future",
";",
"}"
] |
[
"verify",
"that",
"paths",
"with",
"a",
"trailing",
"\"",
"\"",
"are",
"fixed",
"up"
] |
[
"public",
"void",
"test",
"path",
"double",
"slash",
"fixup",
"(",
")",
"throws",
"throwable",
"{",
"final",
"s",
"3",
"a",
"file",
"system",
"fs",
"=",
"get",
"file",
"system",
"(",
")",
";",
"path",
"path",
"=",
"fs",
"make",
"qualified",
"(",
"new",
"path",
"(",
"\"",
"path",
"\"",
")",
")",
";",
"string",
"trailing",
"2",
"=",
"path",
"to",
"uri",
"(",
")",
"to",
"string",
"(",
")",
"+",
"\"",
"/",
"/",
"\"",
";",
"verify",
"no",
"trailing",
"slash",
"(",
"\"",
"path",
"from",
"string",
"\"",
",",
"new",
"path",
"(",
"trailing",
"2",
")",
")",
";",
"/",
"/",
"here",
"the",
"problem",
":",
"the",
"uri",
"constructor",
"doesn",
"'",
"t",
"strip",
"trailing",
"\"",
"/",
"\"",
"chars",
"uri",
"trailing",
"u",
"r",
"i",
"=",
"new",
"uri",
"(",
"trailing",
"2",
")",
";",
"path",
"path",
"from",
"trailing",
"u",
"r",
"i",
"=",
"verify",
"trailing",
"slash",
"(",
"\"",
"path",
"from",
"trailing",
"u",
"r",
"i",
"\"",
",",
"new",
"path",
"(",
"trailing",
"u",
"r",
"i",
")",
")",
";",
"/",
"/",
"here",
"is",
"the",
"fixup",
"verify",
"no",
"trailing",
"slash",
"(",
"\"",
"path",
"from",
"fs",
"make",
"qualified",
"(",
")",
"\"",
",",
"fs",
"make",
"qualified",
"(",
"path",
"from",
"trailing",
"u",
"r",
"i",
")",
")",
";",
"}"
] |
[
"projects",
"a",
"pair",
"of",
"crossed",
"elements",
"to",
"a",
"{",
"@",
"link",
"tuple",
"}",
"with",
"the",
"previously",
"selected",
"fields"
] |
[
"public",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
">",
"project",
"cross",
"<",
"i1",
",",
"i2",
",",
"tuple",
"6",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
">",
">",
"project",
"tuple",
"6",
"(",
")",
"{",
"type",
"information",
"<",
"?",
">",
"[",
"]",
"f",
"types",
"=",
"extract",
"field",
"types",
"(",
"field",
"indexes",
")",
";",
"tuple",
"type",
"info",
"<",
"tuple",
"6",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
">",
">",
"t",
"type",
"=",
"new",
"tuple",
"type",
"info",
"<",
"tuple",
"6",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
">",
">",
"(",
"f",
"types",
")",
";",
"return",
"new",
"project",
"cross",
"<",
"i1",
",",
"i2",
",",
"tuple",
"6",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
">",
">",
"(",
"this",
"ds",
"1",
",",
"this",
"ds",
"2",
",",
"this",
"field",
"indexes",
",",
"this",
"is",
"field",
"in",
"first",
",",
"t",
"type",
",",
"this",
",",
"hint",
")",
";",
"}"
] |
[
"add",
"a",
"user"
] |
[
"public",
"void",
"add",
"user",
"(",
"string",
"username",
")",
"throws",
"duplicate",
"name",
"exception",
",",
"i",
"o",
"exception",
"{",
"add",
"user",
"(",
"username",
",",
"(",
"char",
"[",
"]",
")",
"null",
")",
";",
"}"
] |
[
"this",
"call",
"must",
"be",
"serialized",
"on",
"call",
"executor",
"to",
"avoid",
"races"
] |
[
"private",
"server",
"stream",
"listener",
"get",
"listener",
"(",
")",
"{",
"if",
"(",
"listener",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"listener",
"unset",
"\"",
")",
";",
"}",
"return",
"listener",
";",
"}"
] |
[
"a",
"mostly",
"accurate",
"check",
"of",
"whether",
"a",
"path",
"is",
"a",
"relative",
"path",
"or",
"not",
"this",
"is",
"designed",
"to",
"take",
"a",
"path",
"against",
"an",
"unknown",
"operating",
"system",
"so",
"may",
"give",
"invalid",
"results"
] |
[
"public",
"static",
"boolean",
"is",
"relative",
"path",
"(",
"string",
"path",
")",
"{",
"if",
"(",
"path",
"starts",
"with",
"(",
"\"",
"/",
"\"",
")",
")",
"return",
"false",
";",
"if",
"(",
"path",
"starts",
"with",
"(",
"\"",
"\\",
"\\",
"\\",
"\\",
"\"",
")",
"&",
"&",
"path",
"length",
"(",
")",
">",
"3",
"&",
"&",
"path",
"index",
"of",
"(",
"'",
"\\",
"\\",
"'",
",",
"3",
")",
"!",
"=",
"-",
"1",
")",
"return",
"false",
";",
"/",
"/",
"a",
"unc",
"path",
"which",
"is",
"the",
"most",
"absolute",
"you",
"can",
"get",
"on",
"windows",
"if",
"(",
"path",
"length",
"(",
")",
">",
"=",
"3",
"&",
"&",
"'",
":",
"'",
"=",
"=",
"path",
"char",
"at",
"(",
"1",
")",
")",
"{",
"/",
"/",
"never",
"mind",
"that",
"the",
"drive",
"mappings",
"can",
"be",
"changed",
"between",
"sessions",
",",
"we",
"just",
"want",
"to",
"/",
"/",
"know",
"if",
"the",
"3rd",
"character",
"is",
"a",
"`",
"\\",
"`",
"(",
"or",
"a",
"'",
"/",
"'",
"is",
"acceptable",
"too",
")",
"char",
"p",
"=",
"path",
"char",
"at",
"(",
"0",
")",
";",
"if",
"(",
"(",
"'",
"a",
"'",
"<",
"=",
"p",
"&",
"&",
"p",
"<",
"=",
"'",
"z",
"'",
")",
"|",
"|",
"(",
"'",
"a",
"'",
"<",
"=",
"p",
"&",
"&",
"p",
"<",
"=",
"'",
"z",
"'",
")",
")",
"{",
"return",
"path",
"char",
"at",
"(",
"2",
")",
"!",
"=",
"'",
"\\",
"\\",
"'",
"&",
"&",
"path",
"char",
"at",
"(",
"2",
")",
"!",
"=",
"'",
"/",
"'",
";",
"}",
"}",
"return",
"true",
";",
"}"
] |
[
"test",
"serialization",
"of",
"object",
"with",
"outer",
"number",
"type"
] |
[
"public",
"void",
"fake",
"outer",
"composite",
"serialize",
"test",
"(",
"test",
"context",
"test",
"context",
")",
"{",
"async",
"async",
"=",
"test",
"context",
"async",
"(",
")",
";",
"outer",
"composite",
"body",
"=",
"null",
";",
"api",
"fake",
"outer",
"composite",
"serialize",
"(",
"body",
",",
"result",
"-",
">",
"{",
"/",
"/",
"todo",
":",
"test",
"validations",
"async",
"complete",
"(",
")",
";",
"}",
")",
";",
"}"
] |
[
"it",
"is",
"not",
"recommend",
"to",
"throw",
"exception",
",",
"rather",
"than",
"returning",
"consume",
"concurrently",
"status",
"reconsume",
"later",
"if",
"consumption",
"failure"
] |
[
"consume",
"concurrently",
"status",
"consume",
"message",
"(",
"final",
"list",
"<",
"message",
"ext",
">",
"msgs",
",",
"final",
"consume",
"concurrently",
"context",
"context",
")",
";"
] |
[
"add",
"the",
"given",
"header",
"to",
"all",
"requests",
"that",
"haven",
"'",
"t",
"added",
"it"
] |
[
"builder",
"default",
"cookie",
"(",
"string",
"cookie",
"name",
",",
"string",
"cookie",
"values",
")",
";"
] |
[
"compute",
"the",
"path",
"where",
"the",
"output",
"of",
"a",
"given",
"job",
"attempt",
"will",
"be",
"placed"
] |
[
"protected",
"path",
"get",
"job",
"attempt",
"path",
"(",
"int",
"app",
"attempt",
"id",
")",
"{",
"return",
"get",
"job",
"attempt",
"path",
"(",
"app",
"attempt",
"id",
",",
"get",
"output",
"path",
"(",
")",
")",
";",
"}"
] |
[
"updates",
"the",
"underlying",
"controller",
"to",
"the",
"one",
"specified"
] |
[
"public",
"synchronized",
"void",
"set",
"(",
"@",
"nullable",
"paging",
"controller",
"bound",
")",
"{",
"this",
"proxied",
"=",
"bound",
";",
"}"
] |
[
"sets",
"the",
"value",
"as",
"the",
"last",
"result",
"see",
"{",
"@",
"link",
"#",
"set",
"result",
"(",
"t",
"value",
",",
"boolean",
"is",
"last",
")",
"}"
] |
[
"public",
"boolean",
"set",
"result",
"(",
"t",
"value",
")",
"{",
"return",
"super",
"set",
"result",
"(",
"preconditions",
"check",
"not",
"null",
"(",
"value",
")",
",",
"/",
"*",
"is",
"last",
"*",
"/",
"true",
",",
"null",
")",
";",
"}"
] |
[
"initializes",
"the",
"connection",
"to",
"kafka"
] |
[
"public",
"void",
"open",
"(",
"configuration",
"configuration",
")",
"throws",
"exception",
"{",
"if",
"(",
"log",
"failures",
"only",
")",
"{",
"callback",
"=",
"new",
"callback",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"completion",
"(",
"record",
"metadata",
"metadata",
",",
"exception",
"e",
")",
"{",
"if",
"(",
"e",
"!",
"=",
"null",
")",
"{",
"log",
"error",
"(",
"\"",
"error",
"while",
"sending",
"record",
"to",
"kafka",
":",
"\"",
"+",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"}",
"acknowledge",
"message",
"(",
")",
";",
"}",
"}",
";",
"}",
"else",
"{",
"callback",
"=",
"new",
"callback",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"completion",
"(",
"record",
"metadata",
"metadata",
",",
"exception",
"exception",
")",
"{",
"if",
"(",
"exception",
"!",
"=",
"null",
"&",
"&",
"async",
"exception",
"=",
"=",
"null",
")",
"{",
"async",
"exception",
"=",
"exception",
";",
"}",
"acknowledge",
"message",
"(",
")",
";",
"}",
"}",
";",
"}",
"runtime",
"context",
"ctx",
"=",
"get",
"runtime",
"context",
"(",
")",
";",
"if",
"(",
"flink",
"kafka",
"partitioner",
"!",
"=",
"null",
")",
"{",
"flink",
"kafka",
"partitioner",
"open",
"(",
"ctx",
"get",
"index",
"of",
"this",
"subtask",
"(",
")",
",",
"ctx",
"get",
"number",
"of",
"parallel",
"subtasks",
"(",
")",
")",
";",
"}",
"if",
"(",
"kafka",
"schema",
"instanceof",
"kafka",
"context",
"aware",
")",
"{",
"kafka",
"context",
"aware",
"<",
"in",
">",
"context",
"aware",
"schema",
"=",
"(",
"kafka",
"context",
"aware",
"<",
"in",
">",
")",
"kafka",
"schema",
";",
"context",
"aware",
"schema",
"set",
"parallel",
"instance",
"id",
"(",
"ctx",
"get",
"index",
"of",
"this",
"subtask",
"(",
")",
")",
";",
"context",
"aware",
"schema",
"set",
"num",
"parallel",
"instances",
"(",
"ctx",
"get",
"number",
"of",
"parallel",
"subtasks",
"(",
")",
")",
";",
"}",
"if",
"(",
"kafka",
"schema",
"!",
"=",
"null",
")",
"{",
"kafka",
"schema",
"open",
"(",
"runtime",
"context",
"initialization",
"context",
"adapters",
"serialization",
"adapter",
"(",
"get",
"runtime",
"context",
"(",
")",
",",
"metric",
"group",
"-",
">",
"metric",
"group",
"add",
"group",
"(",
"\"",
"user",
"\"",
")",
")",
")",
";",
"}",
"super",
"open",
"(",
"configuration",
")",
";",
"}"
] |
[
"returns",
"an",
"immutable",
"array",
"containing",
"the",
"given",
"values",
",",
"in",
"order"
] |
[
"public",
"static",
"immutable",
"int",
"array",
"of",
"(",
"int",
"e",
"0",
",",
"int",
"e",
"1",
")",
"{",
"return",
"new",
"immutable",
"int",
"array",
"(",
"new",
"int",
"[",
"]",
"{",
"e",
"0",
",",
"e",
"1",
"}",
")",
";",
"}"
] |
[
"create",
"a",
"{",
"@",
"code",
"string",
"decoder",
"}",
"that",
"supports",
"all",
"mime",
"types"
] |
[
"public",
"static",
"string",
"decoder",
"all",
"mime",
"types",
"(",
"boolean",
"strip",
"delimiter",
")",
"{",
"return",
"all",
"mime",
"types",
"(",
")",
";",
"}"
] |
[
"add",
"an",
"attribute",
"with",
"the",
"given",
"name",
"and",
"value"
] |
[
"builder",
"attribute",
"(",
"string",
"name",
",",
"object",
"value",
")",
";"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] |
[
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"reads",
"the",
"length",
"varint",
"(",
"a",
"series",
"of",
"bytes",
",",
"where",
"the",
"lower",
"7",
"bits",
"are",
"data",
"and",
"the",
"upper",
"bit",
"is",
"a",
"flag",
"to",
"indicate",
"more",
"bytes",
"to",
"be",
"read",
")"
] |
[
"private",
"static",
"int",
"read",
"preamble",
"(",
"byte",
"buf",
"in",
")",
"{",
"int",
"length",
"=",
"0",
";",
"int",
"byte",
"index",
"=",
"0",
";",
"while",
"(",
"in",
"is",
"readable",
"(",
")",
")",
"{",
"int",
"current",
"=",
"in",
"read",
"unsigned",
"byte",
"(",
")",
";",
"length",
"|",
"=",
"(",
"current",
"&",
"0x",
"7f",
")",
"<",
"<",
"byte",
"index",
"+",
"+",
"*",
"7",
";",
"if",
"(",
"(",
"current",
"&",
"0x",
"8",
"0",
")",
"=",
"=",
"0",
")",
"{",
"return",
"length",
";",
"}",
"if",
"(",
"byte",
"index",
">",
"=",
"4",
")",
"{",
"throw",
"new",
"decompression",
"exception",
"(",
"\"",
"preamble",
"is",
"greater",
"than",
"4",
"bytes",
"\"",
")",
";",
"}",
"}",
"return",
"0",
";",
"}"
] |
[
"get",
"just",
"number"
] |
[
"public",
"big",
"decimal",
"get",
"just",
"number",
"(",
")",
"{",
"return",
"just",
"number",
";",
"}"
] |
[
"issue",
"a",
"mkdir",
"without",
"a",
"trailing"
] |
[
"public",
"void",
"test",
"mkdir",
"no",
"trailing",
"(",
")",
"throws",
"throwable",
"{",
"path",
"dest",
"=",
"path",
"(",
"\"",
"normal",
"\"",
")",
";",
"try",
"{",
"string",
"dest",
"str",
"=",
"dest",
"to",
"string",
"(",
")",
";",
"mkdirs",
"(",
"dest",
"str",
")",
";",
"is",
"dir",
"(",
"dest",
"str",
")",
";",
"rmdir",
"(",
"dest",
"str",
")",
";",
"is",
"not",
"found",
"(",
"dest",
"str",
")",
";",
"}",
"finally",
"{",
"get",
"file",
"system",
"(",
")",
"delete",
"(",
"dest",
",",
"true",
")",
";",
"}",
"}"
] |
[
"toggle",
"compact",
"dropdowns"
] |
[
"public",
"static",
"void",
"toggle",
"compact",
"dropdowns",
"(",
")",
"{",
"final",
"boolean",
"is",
"compact",
"dropdowns",
"=",
"config",
"is",
"compact",
"dropdowns",
"(",
")",
";",
"config",
"set",
"compact",
"dropdowns",
"(",
"!",
"is",
"compact",
"dropdowns",
")",
";",
"u",
"i",
"replacer",
"patch",
"u",
"i",
"(",
")",
";",
"}"
] |
[
"syntactic",
"sugar",
"for",
"aggregate",
"(",
"min",
",",
"field",
")"
] |
[
"public",
"aggregate",
"operator",
"<",
"t",
">",
"min",
"(",
"int",
"field",
")",
"{",
"return",
"this",
"aggregate",
"(",
"aggregations",
"min",
",",
"field",
",",
"utils",
"get",
"call",
"location",
"name",
"(",
")",
")",
";",
"}"
] |
[
"sets",
"the",
"state",
"backend",
"to",
"a",
"new",
"{",
"@",
"link",
"stub",
"state",
"backend",
"}",
"which",
"has",
"a",
"{",
"@",
"link",
"monotonic",
"t",
"t",
"l",
"time",
"provider",
"}"
] |
[
"private",
"static",
"void",
"set",
"backend",
"with",
"custom",
"t",
"t",
"l",
"time",
"provider",
"(",
"stream",
"execution",
"environment",
"env",
")",
"{",
"final",
"monotonic",
"t",
"t",
"l",
"time",
"provider",
"ttl",
"time",
"provider",
"=",
"new",
"monotonic",
"t",
"t",
"l",
"time",
"provider",
"(",
")",
";",
"final",
"state",
"backend",
"configured",
"backend",
"=",
"env",
"get",
"state",
"backend",
"(",
")",
";",
"final",
"state",
"backend",
"stub",
"backend",
"=",
"new",
"stub",
"state",
"backend",
"(",
"configured",
"backend",
",",
"ttl",
"time",
"provider",
")",
";",
"env",
"set",
"state",
"backend",
"(",
"stub",
"backend",
")",
";",
"}"
] |
[
"get",
"first",
"name"
] |
[
"public",
"string",
"get",
"first",
"name",
"(",
")",
"{",
"return",
"first",
"name",
";",
"}"
] |
[
"evaluates",
"whether",
"the",
"argument",
"is",
"a",
"6to",
"4",
"address",
"6to",
"4",
"addresses",
"begin",
"with",
"the",
"{",
"@",
"code",
"\"",
"2002",
":",
":",
"16",
"\"",
"}",
"prefix",
"the",
"next",
"32",
"bits",
"are",
"the",
"i",
"pv",
"4",
"address",
"of",
"the",
"host",
"to",
"which",
"i",
"pv",
"6",
"-",
"in",
"-",
"i",
"pv",
"4",
"tunneled",
"packets",
"should",
"be",
"routed",
"for",
"more",
"on",
"6to",
"4",
"addresses",
"see",
"section",
"2",
"of",
"<",
"a",
"target",
"=",
"\"",
"parent",
"\"",
"href",
"=",
"\"",
"http",
":",
"tools",
"ietf",
"orghtmlrfc",
"3",
"0",
"5",
"6",
"#",
"section",
"-",
"2",
"\"",
">",
"rfc",
"3056"
] |
[
"public",
"static",
"boolean",
"is",
"6to",
"4",
"address",
"(",
"inet",
"6",
"address",
"ip",
")",
"{",
"byte",
"[",
"]",
"bytes",
"=",
"ip",
"get",
"address",
"(",
")",
";",
"return",
"(",
"bytes",
"[",
"0",
"]",
"=",
"=",
"(",
"byte",
")",
"0x",
"2",
"0",
")",
"&",
"&",
"(",
"bytes",
"[",
"1",
"]",
"=",
"=",
"(",
"byte",
")",
"0x",
"0",
"2",
")",
";",
"}"
] |
[
"get",
"the",
"maximum",
"key",
"count"
] |
[
"int",
"get",
"max",
"keys",
"(",
")",
";"
] |
[
"return",
"a",
"suitable",
"display",
"value",
"for",
"the",
"field",
",",
"i",
"e",
"the",
"stringified",
"value",
"if",
"not",
"null",
",",
"and",
"an",
"empty",
"string",
"in",
"case",
"of",
"a",
"null",
"value",
"this",
"value",
"will",
"be",
"an",
"html",
"-",
"escaped",
"string",
"if",
"the",
"original",
"value",
"was",
"non",
"-",
"null",
":",
"the",
"{",
"@",
"code",
"to",
"string",
"}",
"result",
"of",
"the",
"original",
"value",
"will",
"get",
"html",
"-",
"escaped"
] |
[
"public",
"string",
"get",
"display",
"value",
"(",
")",
"{",
"if",
"(",
"this",
"value",
"instanceof",
"string",
")",
"{",
"return",
"(",
"string",
")",
"this",
"value",
";",
"}",
"if",
"(",
"this",
"value",
"!",
"=",
"null",
")",
"{",
"return",
"(",
"this",
"html",
"escape",
"?",
"html",
"utils",
"html",
"escape",
"(",
"this",
"value",
"to",
"string",
"(",
")",
")",
":",
"this",
"value",
"to",
"string",
"(",
")",
")",
";",
"}",
"return",
"\"",
"\"",
";",
"}"
] |
[
"sets",
"the",
"min",
"width",
",",
"pref",
"width",
",",
"max",
"width",
",",
"min",
"height",
",",
"pref",
"height",
",",
"and",
"max",
"height",
"to",
"the",
"specified",
"values"
] |
[
"public",
"container",
"<",
"t",
">",
"size",
"(",
"value",
"width",
",",
"value",
"height",
")",
"{",
"if",
"(",
"width",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"width",
"cannot",
"be",
"null",
"\"",
")",
";",
"if",
"(",
"height",
"=",
"=",
"null",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"height",
"cannot",
"be",
"null",
"\"",
")",
";",
"min",
"width",
"=",
"width",
";",
"min",
"height",
"=",
"height",
";",
"pref",
"width",
"=",
"width",
";",
"pref",
"height",
"=",
"height",
";",
"max",
"width",
"=",
"width",
";",
"max",
"height",
"=",
"height",
";",
"return",
"this",
";",
"}"
] |
[
"returns",
"the",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"en",
"wikipedia",
"orgwiki",
"arithmetic",
"mean",
"\"",
">",
"arithmetic",
"mean",
"of",
"{",
"@",
"code",
"values",
"}",
"if",
"these",
"values",
"are",
"a",
"sample",
"drawn",
"from",
"a",
"population",
",",
"this",
"is",
"also",
"an",
"unbiased",
"estimator",
"of",
"the",
"arithmetic",
"mean",
"of",
"the",
"population"
] |
[
"public",
"static",
"double",
"mean",
"(",
"iterable",
"<",
"?",
"extends",
"number",
">",
"values",
")",
"{",
"return",
"mean",
"(",
"values",
"iterator",
"(",
")",
")",
";",
"}"
] |
[
"write",
"the",
"'",
"{",
"@",
"code",
"option",
"}",
"'",
"tags",
"for",
"the",
"configured",
"{",
"@",
"link",
"#",
"option",
"source",
"}",
"to",
"the",
"supplied",
"{",
"@",
"link",
"tag",
"writer",
"}"
] |
[
"public",
"void",
"write",
"options",
"(",
"tag",
"writer",
"tag",
"writer",
")",
"throws",
"jsp",
"exception",
"{",
"if",
"(",
"this",
"option",
"source",
"get",
"class",
"(",
")",
"is",
"array",
"(",
")",
")",
"{",
"render",
"from",
"array",
"(",
"tag",
"writer",
")",
";",
"}",
"else",
"if",
"(",
"this",
"option",
"source",
"instanceof",
"collection",
")",
"{",
"render",
"from",
"collection",
"(",
"tag",
"writer",
")",
";",
"}",
"else",
"if",
"(",
"this",
"option",
"source",
"instanceof",
"map",
")",
"{",
"render",
"from",
"map",
"(",
"tag",
"writer",
")",
";",
"}",
"else",
"if",
"(",
"this",
"option",
"source",
"instanceof",
"class",
"&",
"&",
"(",
"(",
"class",
"<",
"?",
">",
")",
"this",
"option",
"source",
")",
"is",
"enum",
"(",
")",
")",
"{",
"render",
"from",
"enum",
"(",
"tag",
"writer",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"jsp",
"exception",
"(",
"\"",
"type",
"[",
"\"",
"+",
"this",
"option",
"source",
"get",
"class",
"(",
")",
"get",
"name",
"(",
")",
"+",
"\"",
"]",
"is",
"not",
"valid",
"for",
"option",
"items",
"\"",
")",
";",
"}",
"}"
] |
[
"sets",
"the",
"{",
"@",
"link",
"transition",
"options",
"}",
"to",
"use",
"to",
"transition",
"from",
"the",
"placeholder",
"or",
"thumbnail",
"when",
"this",
"load",
"completes",
"the",
"given",
"{",
"@",
"link",
"transition",
"options",
"}",
"will",
"replace",
"any",
"{",
"@",
"link",
"transition",
"options",
"}",
"set",
"previously"
] |
[
"public",
"request",
"builder",
"<",
"transcode",
"type",
">",
"transition",
"(",
"@",
"non",
"null",
"transition",
"options",
"<",
"?",
",",
"?",
"super",
"transcode",
"type",
">",
"transition",
"options",
")",
"{",
"if",
"(",
"is",
"auto",
"clone",
"enabled",
"(",
")",
")",
"{",
"return",
"clone",
"(",
")",
"transition",
"(",
"transition",
"options",
")",
";",
"}",
"this",
"transition",
"options",
"=",
"preconditions",
"check",
"not",
"null",
"(",
"transition",
"options",
")",
";",
"is",
"default",
"transition",
"options",
"set",
"=",
"false",
";",
"return",
"self",
"or",
"throw",
"if",
"locked",
"(",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"server",
"-",
"side",
"{",
"@",
"link",
"ssl",
"context",
"}"
] |
[
"public",
"static",
"ssl",
"context",
"new",
"server",
"context",
"(",
"ssl",
"provider",
"provider",
",",
"file",
"cert",
"chain",
"file",
",",
"file",
"key",
"file",
",",
"string",
"key",
"password",
",",
"trust",
"manager",
"factory",
"trust",
"manager",
"factory",
",",
"iterable",
"<",
"string",
">",
"ciphers",
",",
"iterable",
"<",
"string",
">",
"next",
"protocols",
",",
"long",
"session",
"cache",
"size",
",",
"long",
"session",
"timeout",
")",
"throws",
"s",
"s",
"l",
"exception",
"{",
"return",
"new",
"server",
"context",
"(",
"provider",
",",
"null",
",",
"trust",
"manager",
"factory",
",",
"cert",
"chain",
"file",
",",
"key",
"file",
",",
"key",
"password",
",",
"null",
",",
"ciphers",
",",
"identity",
"cipher",
"suite",
"filter",
"instance",
",",
"to",
"application",
"protocol",
"config",
"(",
"next",
"protocols",
")",
",",
"session",
"cache",
"size",
",",
"session",
"timeout",
")",
";",
"}"
] |
[
"sets",
"the",
"attribute",
"object",
"that",
"this",
"documents"
] |
[
"void",
"set",
"attribute",
"(",
"attribute",
"attribute",
")",
"{",
"this",
"attribute",
"=",
"attribute",
";",
"}"
] |
[
"add",
"a",
"parameter",
"to",
"this",
"parameter",
"source"
] |
[
"public",
"map",
"sql",
"parameter",
"source",
"add",
"value",
"(",
"string",
"param",
"name",
",",
"@",
"nullable",
"object",
"value",
",",
"int",
"sql",
"type",
")",
"{",
"assert",
"not",
"null",
"(",
"param",
"name",
",",
"\"",
"parameter",
"name",
"must",
"not",
"be",
"null",
"\"",
")",
";",
"this",
"values",
"put",
"(",
"param",
"name",
",",
"value",
")",
";",
"register",
"sql",
"type",
"(",
"param",
"name",
",",
"sql",
"type",
")",
";",
"return",
"this",
";",
"}"
] |
[
"set",
"the",
"data",
"-",
"bus",
"the",
"event",
"will",
"be",
"sent",
"on"
] |
[
"void",
"set",
"data",
"bus",
"(",
"data",
"bus",
"data",
"bus",
")",
";"
] |
[
"skips",
"the",
"next",
"token",
",",
"consuming",
"it",
"this",
"method",
"is",
"intended",
"for",
"use",
"when",
"the",
"json",
"token",
"stream",
"contains",
"unrecognized",
"or",
"unhandled",
"names",
"this",
"throws",
"a",
"{",
"@",
"link",
"json",
"data",
"exception",
"}",
"if",
"this",
"parser",
"has",
"been",
"configured",
"to",
"{",
"@",
"linkplain",
"#",
"fail",
"on",
"unknown",
"fail",
"on",
"unknown",
"}",
"names"
] |
[
"public",
"abstract",
"void",
"skip",
"name",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"gets",
"the",
"last",
"section",
"of",
"the",
"file",
"that",
"is",
"to",
"be",
"considered",
"part",
"of",
"the",
"data",
"section",
"this",
"is",
"package",
"-",
"scope",
"in",
"order",
"to",
"allow",
"the",
"header",
"section",
"to",
"query",
"it"
] |
[
"/",
"*",
"package",
"*",
"/",
"section",
"get",
"last",
"data",
"section",
"(",
")",
"{",
"return",
"map",
";",
"}"
] |
[
"get",
"the",
"base",
"name",
"of",
"this",
"symbol"
] |
[
"public",
"string",
"get",
"name",
"(",
")",
"{",
"return",
"name",
";",
"}"
] |
[
"add",
"the",
"given",
"element",
"to",
"the",
"queue",
",",
"possibly",
"forcing",
"an",
"eviction",
"from",
"the",
"head",
"if",
"{",
"@",
"link",
"#",
"remaining",
"capacity",
"(",
")",
"}",
"is",
"zero"
] |
[
"public",
"boolean",
"add",
"(",
"t",
"t",
")",
"{",
"if",
"(",
"maximum",
"size",
"=",
"=",
"0",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"queue",
"size",
"(",
")",
"=",
"=",
"maximum",
"size",
")",
"{",
"queue",
"remove",
"(",
")",
";",
"}",
"queue",
"add",
"(",
"t",
")",
";",
"return",
"true",
";",
"}"
] |
[
"returns",
"the",
"addresses",
"that",
"are",
"in",
"program",
"2",
",",
"but",
"not",
"in",
"program",
"1"
] |
[
"public",
"address",
"set",
"view",
"get",
"addresses",
"only",
"in",
"two",
"(",
")",
"{",
"return",
"program",
"diff",
"get",
"addresses",
"only",
"in",
"two",
"(",
")",
";",
"}"
] |
[
"try",
"to",
"read",
"to",
"the",
"end",
"of",
"the",
"config",
"log",
"within",
"the",
"given",
"timeout"
] |
[
"private",
"boolean",
"read",
"config",
"to",
"end",
"(",
"long",
"timeout",
"ms",
")",
"{",
"log",
"info",
"(",
"\"",
"current",
"config",
"state",
"offset",
"{",
"}",
"is",
"behind",
"group",
"assignment",
"{",
"}",
",",
"reading",
"to",
"end",
"of",
"config",
"log",
"\"",
",",
"config",
"state",
"offset",
"(",
")",
",",
"assignment",
"offset",
"(",
")",
")",
";",
"try",
"{",
"config",
"backing",
"store",
"refresh",
"(",
"timeout",
"ms",
",",
"time",
"unit",
"milliseconds",
")",
";",
"config",
"state",
"=",
"config",
"backing",
"store",
"snapshot",
"(",
")",
";",
"log",
"info",
"(",
"\"",
"finished",
"reading",
"to",
"end",
"of",
"log",
"and",
"updated",
"config",
"snapshot",
",",
"new",
"config",
"log",
"offset",
":",
"{",
"}",
"\"",
",",
"config",
"state",
"offset",
"(",
")",
")",
";",
"backoff",
"retries",
"=",
"backoff",
"retries",
";",
"return",
"true",
";",
"}",
"catch",
"(",
"timeout",
"exception",
"e",
")",
"{",
"/",
"/",
"in",
"case",
"reading",
"the",
"log",
"takes",
"too",
"long",
",",
"leave",
"the",
"group",
"to",
"ensure",
"a",
"quick",
"rebalance",
"(",
"although",
"by",
"default",
"we",
"should",
"be",
"out",
"of",
"the",
"group",
"already",
")",
"/",
"/",
"and",
"back",
"off",
"to",
"avoid",
"a",
"tight",
"loop",
"of",
"rejoin",
"-",
"attempt",
"-",
"to",
"-",
"catch",
"-",
"up",
"-",
"leave",
"log",
"warn",
"(",
"\"",
"didn",
"'",
"t",
"reach",
"end",
"of",
"config",
"log",
"quickly",
"enough",
"\"",
",",
"e",
")",
";",
"member",
"maybe",
"leave",
"group",
"(",
"\"",
"taking",
"too",
"long",
"to",
"read",
"the",
"log",
"\"",
")",
";",
"backoff",
"(",
"worker",
"unsync",
"backoff",
"ms",
")",
";",
"return",
"false",
";",
"}",
"}"
] |
[
"check",
"whether",
"it",
"'",
"s",
"a",
"file"
] |
[
"public",
"boolean",
"is",
"file",
"(",
")",
"{",
"return",
"false",
";",
"}"
] |
[
"creates",
"the",
"underlying",
"database",
"table"
] |
[
"public",
"static",
"void",
"create",
"table",
"(",
"database",
"db",
",",
"boolean",
"if",
"not",
"exists",
")",
"{",
"string",
"constraint",
"=",
"if",
"not",
"exists",
"?",
"\"",
"if",
"not",
"exists",
"\"",
":",
"\"",
"\"",
";",
"db",
"exec",
"s",
"q",
"l",
"(",
"\"",
"create",
"table",
"\"",
"+",
"constraint",
"+",
"\"",
"\\",
"\"",
"minimal",
"entity",
"\\",
"\"",
"(",
"\"",
"+",
"/",
"/",
"\"",
"\\",
"\"",
"id",
"\\",
"\"",
"integer",
"primary",
"key",
")",
";",
"\"",
")",
";",
"/",
"/",
"0",
":",
"id",
"}"
] |
[
"validates",
"the",
"ant",
"file",
"mask",
"(",
"like",
"\"",
"foobar",
"txt",
",",
"zot",
"jar",
"\"",
")",
"against",
"this",
"directory",
",",
"and",
"try",
"to",
"point",
"out",
"the",
"problem",
"this",
"is",
"useful",
"in",
"conjunction",
"with",
"{",
"@",
"link",
"form",
"validation",
"}"
] |
[
"public",
"string",
"validate",
"ant",
"file",
"mask",
"(",
"final",
"string",
"file",
"masks",
")",
"throws",
"i",
"o",
"exception",
",",
"interrupted",
"exception",
"{",
"return",
"validate",
"ant",
"file",
"mask",
"(",
"file",
"masks",
",",
"integer",
"max",
"value",
")",
";",
"}"
] |
[
"adds",
"the",
"given",
"conditions",
"to",
"the",
"where",
"clause",
"using",
"an",
"logical",
"and",
"to",
"create",
"new",
"conditions",
",",
"use",
"the",
"properties",
"given",
"in",
"the",
"generated",
"dao",
"classes"
] |
[
"public",
"query",
"builder",
"<",
"t",
">",
"where",
"(",
"where",
"condition",
"cond",
",",
"where",
"condition",
"cond",
"more",
")",
"{",
"where",
"collector",
"add",
"(",
"cond",
",",
"cond",
"more",
")",
";",
"return",
"this",
";",
"}"
] |
[
"return",
"true",
"if",
"this",
"enum",
"arrays",
"object",
"is",
"equal",
"to",
"o"
] |
[
"public",
"boolean",
"equals",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"this",
"=",
"=",
"o",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"enum",
"arrays",
"enum",
"arrays",
"=",
"(",
"enum",
"arrays",
")",
"o",
";",
"return",
"objects",
"equals",
"(",
"this",
"just",
"symbol",
",",
"enum",
"arrays",
"just",
"symbol",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"array",
"enum",
",",
"enum",
"arrays",
"array",
"enum",
")",
";",
"}"
] |
[
"returns",
"an",
"optional",
"enum",
"constant",
"for",
"the",
"given",
"type",
",",
"using",
"{",
"@",
"link",
"enum",
"#",
"value",
"of",
"}",
"if",
"the",
"constant",
"does",
"not",
"exist",
",",
"{",
"@",
"link",
"optional",
"#",
"absent",
"}",
"is",
"returned",
"a",
"common",
"use",
"case",
"is",
"for",
"parsing",
"user",
"input",
"or",
"falling",
"back",
"to",
"a",
"default",
"enum",
"constant",
"for",
"example",
",",
"{",
"@",
"code",
"enums",
"get",
"if",
"present",
"(",
"country",
"class",
",",
"country",
"input",
")",
"or",
"(",
"country",
"default",
")",
";",
"}"
] |
[
"public",
"static",
"<",
"t",
"extends",
"enum",
"<",
"t",
">",
">",
"optional",
"<",
"t",
">",
"get",
"if",
"present",
"(",
"class",
"<",
"t",
">",
"enum",
"class",
",",
"string",
"value",
")",
"{",
"check",
"not",
"null",
"(",
"enum",
"class",
")",
";",
"check",
"not",
"null",
"(",
"value",
")",
";",
"return",
"platform",
"get",
"enum",
"if",
"present",
"(",
"enum",
"class",
",",
"value",
")",
";",
"}"
] |
[
"verify",
"if",
"multiple",
"data",
"nodes",
"can",
"be",
"decommission",
"at",
"the",
"same",
"time"
] |
[
"public",
"void",
"test",
"multiple",
"nodes",
"decommission",
"(",
")",
"throws",
"exception",
"{",
"start",
"cluster",
"(",
"1",
",",
"5",
")",
";",
"final",
"path",
"file",
"=",
"new",
"path",
"(",
"\"",
"/",
"test",
"multiple",
"nodes",
"decommission",
"dat",
"\"",
")",
";",
"final",
"file",
"system",
"file",
"sys",
"=",
"get",
"cluster",
"(",
")",
"get",
"file",
"system",
"(",
"0",
")",
";",
"final",
"f",
"s",
"namesystem",
"ns",
"=",
"get",
"cluster",
"(",
")",
"get",
"namesystem",
"(",
"0",
")",
";",
"int",
"repl",
"=",
"3",
";",
"write",
"file",
"(",
"file",
"sys",
",",
"file",
",",
"repl",
",",
"1",
")",
";",
"/",
"/",
"request",
"decommission",
"for",
"data",
"nodes",
"1",
"and",
"2",
"list",
"<",
"datanode",
"info",
">",
"decom",
"data",
"nodes",
"=",
"take",
"node",
"outof",
"service",
"(",
"0",
",",
"lists",
"new",
"array",
"list",
"(",
"get",
"cluster",
"(",
")",
"get",
"data",
"nodes",
"(",
")",
"get",
"(",
"0",
")",
"get",
"datanode",
"uuid",
"(",
")",
",",
"get",
"cluster",
"(",
")",
"get",
"data",
"nodes",
"(",
")",
"get",
"(",
"1",
")",
"get",
"datanode",
"uuid",
"(",
")",
")",
",",
"long",
"max",
"value",
",",
"null",
",",
"null",
",",
"admin",
"states",
"decommissioned",
")",
";",
"generic",
"test",
"utils",
"wait",
"for",
"(",
"new",
"supplier",
"<",
"boolean",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"get",
"(",
")",
"{",
"try",
"{",
"string",
"err",
"msg",
"=",
"check",
"file",
"(",
"file",
"sys",
",",
"file",
",",
"repl",
",",
"decom",
"data",
"nodes",
"get",
"(",
"0",
")",
"get",
"xfer",
"addr",
"(",
")",
",",
"5",
")",
";",
"if",
"(",
"err",
"msg",
"!",
"=",
"null",
")",
"{",
"log",
"warn",
"(",
"\"",
"check",
"file",
":",
"\"",
"+",
"err",
"msg",
")",
";",
"}",
"return",
"true",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"log",
"warn",
"(",
"\"",
"check",
"file",
":",
"\"",
"+",
"e",
")",
";",
"return",
"false",
";",
"}",
"}",
"}",
",",
"500",
",",
"30000",
")",
";",
"/",
"/",
"put",
"the",
"decommissioned",
"nodes",
"back",
"in",
"service",
"for",
"(",
"datanode",
"info",
"datanode",
"info",
":",
"decom",
"data",
"nodes",
")",
"{",
"put",
"node",
"in",
"service",
"(",
"0",
",",
"datanode",
"info",
")",
";",
"}",
"cleanup",
"file",
"(",
"file",
"sys",
",",
"file",
")",
";",
"}"
] |
[
"helper",
"method",
"for",
"summarizing",
"a",
"list",
"of",
"values",
"this",
"method",
"breaks",
"the",
"rule",
"of",
"\"",
"testing",
"only",
"one",
"thing",
"\"",
"by",
"aggregating",
"and",
"combining",
"a",
"bunch",
"of",
"different",
"ways"
] |
[
"protected",
"numeric",
"column",
"summary",
"<",
"float",
">",
"summarize",
"(",
"float",
"values",
")",
"{",
"return",
"new",
"aggregate",
"combine",
"harness",
"<",
"float",
",",
"numeric",
"column",
"summary",
"<",
"float",
">",
",",
"float",
"summary",
"aggregator",
">",
"(",
")",
"{",
"@",
"override",
"protected",
"void",
"compare",
"results",
"(",
"numeric",
"column",
"summary",
"<",
"float",
">",
"result",
"1",
",",
"numeric",
"column",
"summary",
"<",
"float",
">",
"result",
"2",
")",
"{",
"assert",
"assert",
"equals",
"(",
"result",
"1",
"get",
"min",
"(",
")",
",",
"result",
"2",
"get",
"min",
"(",
")",
",",
"0",
"0f",
")",
";",
"assert",
"assert",
"equals",
"(",
"result",
"1",
"get",
"max",
"(",
")",
",",
"result",
"2",
"get",
"max",
"(",
")",
",",
"0",
"0f",
")",
";",
"assert",
"assert",
"equals",
"(",
"result",
"1",
"get",
"mean",
"(",
")",
",",
"result",
"2",
"get",
"mean",
"(",
")",
",",
"1e",
"-",
"1",
"2d",
")",
";",
"assert",
"assert",
"equals",
"(",
"result",
"1",
"get",
"variance",
"(",
")",
",",
"result",
"2",
"get",
"variance",
"(",
")",
",",
"1e",
"-",
"9d",
")",
";",
"assert",
"assert",
"equals",
"(",
"result",
"1",
"get",
"standard",
"deviation",
"(",
")",
",",
"result",
"2",
"get",
"standard",
"deviation",
"(",
")",
",",
"1e",
"-",
"1",
"2d",
")",
";",
"}",
"}",
"summarize",
"(",
"values",
")",
";",
"}"
] |
[
"true",
"if",
"at",
"current",
"get",
"status",
",",
"there",
"is",
"an",
"available",
"decoded",
"interface",
"http",
"data",
"from",
"the",
"body",
"this",
"get",
"method",
"works",
"for",
"chunked",
"and",
"not",
"chunked",
"request"
] |
[
"public",
"boolean",
"has",
"next",
"(",
")",
"{",
"check",
"destroyed",
"(",
")",
";",
"if",
"(",
"current",
"status",
"=",
"=",
"multi",
"part",
"status",
"epilogue",
")",
"{",
"/",
"/",
"ok",
"except",
"if",
"end",
"of",
"list",
"if",
"(",
"body",
"list",
"http",
"data",
"rank",
">",
"=",
"body",
"list",
"http",
"data",
"size",
"(",
")",
")",
"{",
"throw",
"new",
"end",
"of",
"data",
"decoder",
"exception",
"(",
")",
";",
"}",
"}",
"return",
"!",
"body",
"list",
"http",
"data",
"is",
"empty",
"(",
")",
"&",
"&",
"body",
"list",
"http",
"data",
"rank",
"<",
"body",
"list",
"http",
"data",
"size",
"(",
")",
";",
"}"
] |
[
"indicate",
"that",
"source",
"should",
"be",
"returned",
",",
"with",
"an",
"\"",
"include",
"\"",
"andor",
"\"",
"exclude",
"\"",
"set",
"which",
"can",
"include",
"simple",
"wildcard",
"elements"
] |
[
"public",
"get",
"request",
"builder",
"set",
"fetch",
"source",
"(",
"@",
"nullable",
"string",
"include",
",",
"@",
"nullable",
"string",
"exclude",
")",
"{",
"return",
"set",
"fetch",
"source",
"(",
"include",
"=",
"=",
"null",
"?",
"strings",
"empty",
"array",
":",
"new",
"string",
"[",
"]",
"{",
"include",
"}",
",",
"exclude",
"=",
"=",
"null",
"?",
"strings",
"empty",
"array",
":",
"new",
"string",
"[",
"]",
"{",
"exclude",
"}",
")",
";",
"}"
] |
[
"get",
"$",
"special",
"property",
"name"
] |
[
"public",
"long",
"get",
"$",
"special",
"property",
"name",
"(",
")",
"{",
"return",
"$",
"special",
"property",
"name",
";",
"}"
] |
[
"subclasses",
"must",
"implement",
"this",
"method",
"to",
"actually",
"render",
"the",
"view"
] |
[
"protected",
"abstract",
"void",
"render",
"merged",
"template",
"model",
"(",
"map",
"<",
"string",
",",
"object",
">",
"model",
",",
"http",
"servlet",
"request",
"request",
",",
"http",
"servlet",
"response",
"response",
")",
"throws",
"exception",
";"
] |
[
"compute",
"a",
"vertex",
"'",
"s",
"predecessors",
"<",
"p",
">",
"the",
"default",
"implementation",
"computes",
"this",
"from",
"the",
"in",
"-",
"edges"
] |
[
"public",
"default",
"collection",
"<",
"v",
">",
"get",
"predecessors",
"(",
"v",
"v",
")",
"{",
"set",
"<",
"v",
">",
"result",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"e",
"edge",
":",
"get",
"in",
"edges",
"(",
"v",
")",
")",
"{",
"result",
"add",
"(",
"edge",
"get",
"start",
"(",
")",
")",
";",
"}",
"return",
"result",
";",
"}"
] |
[
"forward",
"the",
"keyvalue",
"pair",
"to",
"all",
"downstream",
"processors"
] |
[
"public",
"static",
"to",
"all",
"(",
")",
"{",
"return",
"new",
"to",
"(",
"null",
",",
"-",
"1",
")",
";",
"}"
] |
[
"resume",
"the",
"given",
"transaction",
"delegates",
"to",
"the",
"{",
"@",
"code",
"do",
"resume",
"}",
"template",
"method",
"first",
",",
"then",
"resuming",
"transaction",
"synchronization"
] |
[
"protected",
"final",
"void",
"resume",
"(",
"@",
"nullable",
"object",
"transaction",
",",
"@",
"nullable",
"suspended",
"resources",
"holder",
"resources",
"holder",
")",
"throws",
"transaction",
"exception",
"{",
"if",
"(",
"resources",
"holder",
"!",
"=",
"null",
")",
"{",
"object",
"suspended",
"resources",
"=",
"resources",
"holder",
"suspended",
"resources",
";",
"if",
"(",
"suspended",
"resources",
"!",
"=",
"null",
")",
"{",
"do",
"resume",
"(",
"transaction",
",",
"suspended",
"resources",
")",
";",
"}",
"list",
"<",
"transaction",
"synchronization",
">",
"suspended",
"synchronizations",
"=",
"resources",
"holder",
"suspended",
"synchronizations",
";",
"if",
"(",
"suspended",
"synchronizations",
"!",
"=",
"null",
")",
"{",
"transaction",
"synchronization",
"manager",
"set",
"actual",
"transaction",
"active",
"(",
"resources",
"holder",
"was",
"active",
")",
";",
"transaction",
"synchronization",
"manager",
"set",
"current",
"transaction",
"isolation",
"level",
"(",
"resources",
"holder",
"isolation",
"level",
")",
";",
"transaction",
"synchronization",
"manager",
"set",
"current",
"transaction",
"read",
"only",
"(",
"resources",
"holder",
"read",
"only",
")",
";",
"transaction",
"synchronization",
"manager",
"set",
"current",
"transaction",
"name",
"(",
"resources",
"holder",
"name",
")",
";",
"do",
"resume",
"synchronization",
"(",
"suspended",
"synchronizations",
")",
";",
"}",
"}",
"}"
] |
[
"adds",
"a",
"new",
"header",
"with",
"the",
"specified",
"name",
"and",
"value",
"if",
"the",
"specified",
"value",
"is",
"not",
"a",
"{",
"@",
"link",
"string",
"}",
",",
"it",
"is",
"converted",
"into",
"a",
"{",
"@",
"link",
"string",
"}",
"by",
"{",
"@",
"link",
"object",
"#",
"to",
"string",
"(",
")",
"}",
",",
"except",
"in",
"the",
"cases",
"of",
"{",
"@",
"link",
"date",
"}",
"and",
"{",
"@",
"link",
"calendar",
"}",
",",
"which",
"are",
"formatted",
"to",
"the",
"date",
"format",
"defined",
"in",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"w",
"3",
"org",
"protocolsrfc",
"2",
"6",
"1",
"6rfc",
"2",
"6",
"1",
"6",
"-",
"sec",
"3",
"html",
"#",
"sec",
"3",
"3",
"1",
"\"",
">",
"rfc2616"
] |
[
"public",
"http",
"headers",
"add",
"(",
"char",
"sequence",
"name",
",",
"object",
"value",
")",
"{",
"return",
"add",
"(",
"name",
"to",
"string",
"(",
")",
",",
"value",
")",
";",
"}"
] |
[
"useful",
"method",
"to",
"convert",
"a",
"map",
"of",
"key",
",",
"value",
"pairs",
"to",
"a",
"string",
"to",
"be",
"used",
"as",
"part",
"of",
"a",
"get",
"or",
"post",
"content"
] |
[
"public",
"static",
"string",
"convert",
"http",
"parameters",
"(",
"map",
"<",
"string",
",",
"string",
">",
"parameters",
")",
"{",
"set",
"<",
"string",
">",
"key",
"set",
"=",
"parameters",
"key",
"set",
"(",
")",
";",
"string",
"builder",
"converted",
"parameters",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"string",
"name",
":",
"key",
"set",
")",
"{",
"converted",
"parameters",
"append",
"(",
"encode",
"(",
"name",
",",
"default",
"encoding",
")",
")",
";",
"converted",
"parameters",
"append",
"(",
"name",
"value",
"separator",
")",
";",
"converted",
"parameters",
"append",
"(",
"encode",
"(",
"parameters",
"get",
"(",
"name",
")",
",",
"default",
"encoding",
")",
")",
";",
"converted",
"parameters",
"append",
"(",
"parameter",
"separator",
")",
";",
"}",
"if",
"(",
"converted",
"parameters",
"length",
"(",
")",
">",
"0",
")",
"converted",
"parameters",
"delete",
"char",
"at",
"(",
"converted",
"parameters",
"length",
"(",
")",
"-",
"1",
")",
";",
"return",
"converted",
"parameters",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"parses",
"a",
"chunk",
"of",
"text",
"until",
"the",
"next",
"'",
"%",
"'",
",",
"which",
"indicates",
"either",
"an",
"escaped",
"literal",
"'",
"%",
"'",
"or",
"a",
"variable"
] |
[
"private",
"void",
"parse",
"string",
"chunk",
"(",
")",
"{",
"int",
"start",
"=",
"current",
";",
"/",
"/",
"we",
"only",
"parse",
"string",
"chunks",
"starting",
"with",
"'",
"%",
"'",
"if",
"they",
"also",
"start",
"with",
"'",
"%",
"%",
"'",
"/",
"/",
"in",
"that",
"case",
",",
"we",
"want",
"to",
"have",
"a",
"single",
"'",
"%",
"'",
"in",
"the",
"string",
",",
"so",
"we",
"start",
"at",
"the",
"second",
"/",
"/",
"character",
"/",
"/",
"note",
"that",
"for",
"strings",
"like",
"\"",
"abc",
"%",
"%",
"def",
"\"",
"this",
"will",
"lead",
"to",
"two",
"string",
"chunks",
",",
"the",
"first",
"/",
"/",
"referencing",
"the",
"subtring",
"\"",
"abc",
"\"",
",",
"and",
"a",
"second",
"referencing",
"the",
"substring",
"\"",
"%",
"def",
"\"",
"if",
"(",
"value",
"char",
"at",
"(",
"current",
")",
"=",
"=",
"'",
"%",
"'",
")",
"{",
"current",
"=",
"current",
"+",
"1",
";",
"start",
"=",
"current",
";",
"}",
"current",
"=",
"value",
"index",
"of",
"(",
"'",
"%",
"'",
",",
"current",
"+",
"1",
")",
";",
"if",
"(",
"current",
"=",
"=",
"-",
"1",
")",
"{",
"current",
"=",
"value",
"length",
"(",
")",
";",
"}",
"final",
"string",
"text",
"=",
"value",
"substring",
"(",
"start",
",",
"current",
")",
";",
"chunks",
"add",
"(",
"new",
"string",
"literal",
"chunk",
"(",
"text",
")",
")",
";",
"}"
] |
[
"adds",
"the",
"files",
"specified",
"by",
"a",
"mapping",
"from",
"the",
"transitive",
"info",
"collection",
"to",
"the",
"runfiles",
"dependencies",
"in",
"{",
"@",
"code",
"srcs",
"}",
"and",
"{",
"@",
"code",
"deps",
"}",
"are",
"considered"
] |
[
"public",
"builder",
"add",
"(",
"rule",
"context",
"rule",
"context",
",",
"function",
"<",
"transitive",
"info",
"collection",
",",
"runfiles",
">",
"mapping",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"rule",
"context",
")",
";",
"preconditions",
"check",
"not",
"null",
"(",
"mapping",
")",
";",
"for",
"(",
"transitive",
"info",
"collection",
"dep",
":",
"get",
"non",
"data",
"deps",
"(",
"rule",
"context",
")",
")",
"{",
"runfiles",
"runfiles",
"=",
"mapping",
"apply",
"(",
"dep",
")",
";",
"if",
"(",
"runfiles",
"!",
"=",
"null",
")",
"{",
"merge",
"(",
"runfiles",
")",
";",
"}",
"}",
"return",
"this",
";",
"}"
] |
[
"builds",
"an",
"{",
"@",
"link",
"exo",
"player",
"}",
"instance"
] |
[
"public",
"exo",
"player",
"build",
"(",
")",
"{",
"assertions",
"check",
"state",
"(",
"!",
"build",
"called",
")",
";",
"build",
"called",
"=",
"true",
";",
"exo",
"player",
"impl",
"player",
"=",
"new",
"exo",
"player",
"impl",
"(",
"renderers",
",",
"track",
"selector",
",",
"media",
"source",
"factory",
",",
"load",
"control",
",",
"bandwidth",
"meter",
",",
"analytics",
"collector",
",",
"use",
"lazy",
"preparation",
",",
"seek",
"parameters",
",",
"pause",
"at",
"end",
"of",
"media",
"items",
",",
"clock",
",",
"looper",
")",
";",
"if",
"(",
"release",
"timeout",
"ms",
">",
"0",
")",
"{",
"player",
"experimental",
"set",
"release",
"timeout",
"ms",
"(",
"release",
"timeout",
"ms",
")",
";",
"}",
"if",
"(",
"!",
"throw",
"when",
"stuck",
"buffering",
")",
"{",
"player",
"experimental",
"disable",
"throw",
"when",
"stuck",
"buffering",
"(",
")",
";",
"}",
"return",
"player",
";",
"}"
] |
[
"returns",
"a",
"list",
"of",
"peer",
"recovery",
"retention",
"leases",
"installed",
"in",
"this",
"replication",
"group"
] |
[
"public",
"list",
"<",
"retention",
"lease",
">",
"get",
"peer",
"recovery",
"retention",
"leases",
"(",
")",
"{",
"return",
"get",
"retention",
"leases",
"(",
")",
"leases",
"(",
")",
"stream",
"(",
")",
"filter",
"(",
"lease",
"-",
">",
"peer",
"recovery",
"retention",
"lease",
"source",
"equals",
"(",
"lease",
"source",
"(",
")",
")",
")",
"collect",
"(",
"collectors",
"to",
"unmodifiable",
"list",
"(",
")",
")",
";",
"}"
] |
[
"returns",
"an",
"ordering",
"which",
"treats",
"all",
"values",
"as",
"equal",
",",
"indicating",
"\"",
"no",
"ordering",
"\"",
"passing",
"this",
"ordering",
"to",
"any",
"stable",
"sort",
"algorithm",
"results",
"in",
"no",
"change",
"to",
"the",
"order",
"of",
"elements",
"note",
"especially",
"that",
"{",
"@",
"link",
"#",
"sorted",
"copy",
"}",
"and",
"{",
"@",
"link",
"#",
"immutable",
"sorted",
"copy",
"}",
"are",
"stable",
",",
"and",
"in",
"the",
"returned",
"instance",
"these",
"are",
"implemented",
"by",
"simply",
"copying",
"the",
"source",
"list",
"example",
":",
"{",
"@",
"code",
"ordering",
"all",
"equal",
"(",
")",
"nulls",
"last",
"(",
")",
"sorted",
"copy",
"(",
"as",
"list",
"(",
"t",
",",
"null",
",",
"e",
",",
"s",
",",
"null",
",",
"t",
",",
"null",
")",
")",
"}",
"assuming",
"{",
"@",
"code",
"t",
"}",
",",
"{",
"@",
"code",
"e",
"}",
"and",
"{",
"@",
"code",
"s",
"}",
"are",
"non",
"-",
"null",
",",
"this",
"returns",
"{",
"@",
"code",
"[",
"t",
",",
"e",
",",
"s",
",",
"t",
",",
"null",
",",
"null",
",",
"null",
"]",
"}",
"regardless",
"of",
"the",
"true",
"comparison",
"order",
"of",
"those",
"three",
"values",
"(",
"which",
"might",
"not",
"even",
"implement",
"{",
"@",
"link",
"comparable",
"}",
"at",
"all",
")",
"<",
"b",
">",
"warning",
":",
"<",
"b",
">",
"by",
"definition",
",",
"this",
"comparator",
"is",
"not",
"consistent",
"with",
"equals",
"(",
"as",
"defined",
"{",
"@",
"linkplain",
"comparator",
"here",
"}",
")",
"avoid",
"its",
"use",
"in",
"a",
"p",
"is",
",",
"such",
"as",
"{",
"@",
"link",
"tree",
"set",
"#",
"tree",
"set",
"(",
"comparator",
")",
"}",
",",
"where",
"such",
"consistency",
"is",
"expected",
"the",
"returned",
"comparator",
"is",
"serializable",
"<",
"b",
">",
"java",
"8",
"users",
":",
"<",
"b",
">",
"use",
"the",
"lambda",
"expression",
"{",
"@",
"code",
"(",
"a",
",",
"b",
")",
"-",
">",
"0",
"}",
"instead",
"(",
"in",
"certain",
"cases",
"you",
"may",
"need",
"to",
"cast",
"that",
"to",
"{",
"@",
"code",
"comparator",
"<",
"your",
"type",
">",
"}",
")"
] |
[
"public",
"static",
"ordering",
"<",
"object",
">",
"all",
"equal",
"(",
")",
"{",
"return",
"all",
"equal",
"ordering",
"instance",
";",
"}"
] |
[
"call",
"this",
"to",
"always",
"fully",
"qualify",
"any",
"types",
"that",
"would",
"conflict",
"with",
"possibly",
"nested",
"types",
"of",
"this",
"{",
"@",
"code",
"type",
"element",
"}",
"for",
"example",
"-",
"if",
"the",
"following",
"type",
"was",
"passed",
"in",
"as",
"the",
"type",
"element",
":",
"<",
"code",
">",
"class",
"foo",
"{",
"class",
"nested",
"type",
"a",
"{",
"}",
"class",
"nested",
"type",
"b",
"{",
"}",
"}",
"<",
"code",
">",
"then",
"this",
"would",
"add",
"{",
"@",
"code",
"\"",
"nested",
"type",
"a",
"\"",
"}",
"and",
"{",
"@",
"code",
"\"",
"nested",
"type",
"b",
"\"",
"}",
"as",
"names",
"that",
"should",
"always",
"be",
"qualified",
"via",
"{",
"@",
"link",
"#",
"always",
"qualify",
"(",
"string",
")",
"}",
"this",
"way",
"they",
"would",
"avoid",
"possible",
"import",
"conflicts",
"when",
"this",
"java",
"file",
"is",
"written"
] |
[
"public",
"builder",
"avoid",
"clashes",
"with",
"nested",
"classes",
"(",
"class",
"<",
"?",
">",
"clazz",
")",
"{",
"check",
"argument",
"(",
"clazz",
"!",
"=",
"null",
",",
"\"",
"clazz",
"=",
"=",
"null",
"\"",
")",
";",
"for",
"(",
"class",
"<",
"?",
">",
"nested",
"type",
":",
"clazz",
"get",
"declared",
"classes",
"(",
")",
")",
"{",
"always",
"qualify",
"(",
"nested",
"type",
"get",
"simple",
"name",
"(",
")",
")",
";",
"}",
"class",
"<",
"?",
">",
"superclass",
"=",
"clazz",
"get",
"superclass",
"(",
")",
";",
"if",
"(",
"superclass",
"!",
"=",
"null",
"&",
"&",
"!",
"object",
"class",
"equals",
"(",
"superclass",
")",
")",
"{",
"avoid",
"clashes",
"with",
"nested",
"classes",
"(",
"superclass",
")",
";",
"}",
"for",
"(",
"class",
"<",
"?",
">",
"superinterface",
":",
"clazz",
"get",
"interfaces",
"(",
")",
")",
"{",
"avoid",
"clashes",
"with",
"nested",
"classes",
"(",
"superinterface",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
[
"get",
"the",
"current",
"connection",
"status",
"supports",
"a",
"\"",
"site",
"id",
"\"",
"request",
"parameter",
",",
"defaulting",
"to",
"{",
"@",
"link",
"#",
"id",
"default",
"}",
"for",
"the",
"default",
"update",
"site"
] |
[
"public",
"http",
"response",
"do",
"connection",
"status",
"(",
"stapler",
"request",
"request",
")",
"{",
"jenkins",
"get",
"(",
")",
"check",
"permission",
"(",
"jenkins",
"system",
"read",
")",
";",
"try",
"{",
"string",
"site",
"id",
"=",
"request",
"get",
"parameter",
"(",
"\"",
"site",
"id",
"\"",
")",
";",
"if",
"(",
"site",
"id",
"=",
"=",
"null",
")",
"{",
"site",
"id",
"=",
"id",
"default",
";",
"}",
"else",
"if",
"(",
"site",
"id",
"equals",
"(",
"\"",
"default",
"\"",
")",
")",
"{",
"/",
"/",
"if",
"the",
"request",
"explicitly",
"requires",
"the",
"default",
"id",
",",
"ship",
"it",
"site",
"id",
"=",
"id",
"default",
";",
"}",
"connection",
"check",
"job",
"check",
"job",
"=",
"get",
"connection",
"check",
"job",
"(",
"site",
"id",
")",
";",
"if",
"(",
"check",
"job",
"=",
"=",
"null",
")",
"{",
"update",
"site",
"site",
"=",
"get",
"site",
"(",
"site",
"id",
")",
";",
"if",
"(",
"site",
"!",
"=",
"null",
")",
"{",
"check",
"job",
"=",
"add",
"connection",
"check",
"job",
"(",
"site",
")",
";",
"}",
"}",
"if",
"(",
"check",
"job",
"!",
"=",
"null",
")",
"{",
"boolean",
"is",
"offline",
"=",
"false",
";",
"for",
"(",
"connection",
"status",
"status",
":",
"check",
"job",
"connection",
"states",
"values",
"(",
")",
")",
"{",
"if",
"(",
"connection",
"status",
"failed",
"equals",
"(",
"status",
")",
")",
"{",
"is",
"offline",
"=",
"true",
";",
"break",
";",
"}",
"}",
"if",
"(",
"is",
"offline",
")",
"{",
"/",
"/",
"retry",
"connection",
"states",
"if",
"determined",
"to",
"be",
"offline",
"check",
"job",
"run",
"(",
")",
";",
"is",
"offline",
"=",
"false",
";",
"for",
"(",
"connection",
"status",
"status",
":",
"check",
"job",
"connection",
"states",
"values",
"(",
")",
")",
"{",
"if",
"(",
"connection",
"status",
"failed",
"equals",
"(",
"status",
")",
")",
"{",
"is",
"offline",
"=",
"true",
";",
"break",
";",
"}",
"}",
"if",
"(",
"!",
"is",
"offline",
")",
"{",
"/",
"/",
"also",
"need",
"to",
"download",
"the",
"metadata",
"update",
"all",
"sites",
"(",
")",
";",
"}",
"}",
"return",
"http",
"responses",
"ok",
"j",
"s",
"o",
"n",
"(",
"check",
"job",
"connection",
"states",
")",
";",
"}",
"else",
"{",
"return",
"http",
"responses",
"error",
"j",
"s",
"o",
"n",
"(",
"string",
"format",
"(",
"\"",
"cannot",
"check",
"connection",
"status",
"of",
"the",
"update",
"site",
"with",
"id",
"=",
"'",
"%",
"s",
"'",
"\"",
"+",
"\"",
"this",
"update",
"center",
"cannot",
"be",
"resolved",
"\"",
",",
"site",
"id",
")",
")",
";",
"}",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"http",
"responses",
"error",
"j",
"s",
"o",
"n",
"(",
"string",
"format",
"(",
"\"",
"error",
":",
"%",
"s",
"\"",
",",
"e",
"get",
"message",
"(",
")",
")",
")",
";",
"}",
"}"
] |
[
"true",
"is",
"a",
"request",
"to",
"store",
"this",
"span",
"even",
"if",
"it",
"overrides",
"sampling",
"policy"
] |
[
"@",
"nullable",
"public",
"boolean",
"debug",
"(",
")",
"{",
"return",
"(",
"flags",
"&",
"flag",
"debug",
"set",
")",
"=",
"=",
"flag",
"debug",
"set",
"?",
"(",
"flags",
"&",
"flag",
"debug",
")",
"=",
"=",
"flag",
"debug",
":",
"null",
";",
"}"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] |
[
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"check",
"that",
"to",
"string",
"produces",
"the",
"expected",
"output",
"for",
"a",
"symlink"
] |
[
"public",
"void",
"to",
"string",
"symlink",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"boolean",
"isdir",
"=",
"false",
";",
"path",
"symlink",
"=",
"new",
"path",
"(",
"\"",
"symlink",
"\"",
")",
";",
"file",
"status",
"file",
"status",
"=",
"new",
"file",
"status",
"(",
"length",
",",
"isdir",
",",
"replication",
",",
"blksize",
",",
"mtime",
",",
"atime",
",",
"permission",
",",
"owner",
",",
"group",
",",
"symlink",
",",
"path",
")",
";",
"validate",
"to",
"string",
"(",
"file",
"status",
")",
";",
"}"
] |
[
"@",
"inherit",
"doc"
] |
[
"public",
"void",
"write",
"(",
"int",
"[",
"]",
"data",
")",
"{",
"for",
"(",
"int",
"i",
":",
"data",
")",
"{",
"write",
"int",
"(",
"i",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"manifest",
"expander",
"specified",
"for",
"this",
"runfiles",
"tree"
] |
[
"private",
"empty",
"files",
"supplier",
"get",
"empty",
"files",
"provider",
"(",
")",
"{",
"return",
"empty",
"files",
"supplier",
";",
"}"
] |
[
"tests",
"the",
"round",
"-",
"tripping",
"of",
"the",
"configuration"
] |
[
"@",
"test",
"public",
"void",
"config",
"roundtrip",
"(",
")",
"throws",
"exception",
"{",
"j",
"jenkins",
"get",
"descriptor",
"by",
"type",
"(",
"maven",
"descriptor",
"impl",
"class",
")",
"set",
"installations",
"(",
")",
";",
"/",
"/",
"reset",
"free",
"style",
"project",
"p",
"=",
"j",
"create",
"free",
"style",
"project",
"(",
")",
";",
"p",
"get",
"builders",
"list",
"(",
")",
"add",
"(",
"new",
"maven",
"(",
"\"",
"a",
"\"",
",",
"null",
",",
"\"",
"b",
"pom",
"\"",
",",
"\"",
"c",
"=",
"d",
"\"",
",",
"\"",
"-",
"e",
"\"",
",",
"true",
")",
")",
";",
"jenkins",
"rule",
"web",
"client",
"web",
"client",
"=",
"j",
"create",
"web",
"client",
"(",
")",
";",
"html",
"page",
"page",
"=",
"web",
"client",
"get",
"page",
"(",
"p",
",",
"\"",
"configure",
"\"",
")",
";",
"html",
"form",
"form",
"=",
"page",
"get",
"form",
"by",
"name",
"(",
"\"",
"config",
"\"",
")",
";",
"j",
"submit",
"(",
"form",
")",
";",
"maven",
"m",
"=",
"p",
"get",
"builders",
"list",
"(",
")",
"get",
"(",
"maven",
"class",
")",
";",
"assert",
"not",
"null",
"(",
"m",
")",
";",
"assert",
"equals",
"(",
"\"",
"a",
"\"",
",",
"m",
"targets",
")",
";",
"assert",
"null",
"(",
"\"",
"found",
"\"",
"+",
"m",
"maven",
"name",
",",
"m",
"maven",
"name",
")",
";",
"assert",
"equals",
"(",
"\"",
"b",
"pom",
"\"",
",",
"m",
"pom",
")",
";",
"assert",
"equals",
"(",
"\"",
"c",
"=",
"d",
"\"",
",",
"m",
"properties",
")",
";",
"assert",
"equals",
"(",
"\"",
"-",
"e",
"\"",
",",
"m",
"jvm",
"options",
")",
";",
"assert",
"true",
"(",
"m",
"uses",
"private",
"repository",
"(",
")",
")",
";",
"}"
] |
[
"set",
"the",
"value",
"of",
"the",
"boolean",
"writable"
] |
[
"public",
"void",
"set",
"(",
"boolean",
"value",
")",
"{",
"this",
"value",
"=",
"value",
";",
"}"
] |
[
"notifies",
"the",
"ads",
"loader",
"that",
"preparation",
"of",
"an",
"ad",
"media",
"period",
"is",
"complete",
"called",
"on",
"the",
"main",
"thread",
"by",
"{",
"@",
"link",
"ads",
"media",
"source",
"}"
] |
[
"void",
"handle",
"prepare",
"complete",
"(",
"int",
"ad",
"group",
"index",
",",
"int",
"ad",
"index",
"in",
"ad",
"group",
")",
";"
] |
[
"specify",
"the",
"initial",
"input",
"type",
"for",
"the",
"first",
"stage",
"handler",
"and",
"the",
"expected",
"output",
"type",
"of",
"the",
"last",
"stage",
"handler",
"as",
"type",
"parameters",
"for",
"pipeline",
"use",
"the",
"fluent",
"builder",
"by",
"calling",
"add",
"handler",
"to",
"add",
"more",
"stage",
"handlers",
"on",
"the",
"pipeline"
] |
[
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"{",
"/",
"*",
"suppose",
"we",
"wanted",
"to",
"pass",
"through",
"a",
"string",
"to",
"a",
"series",
"of",
"filtering",
"stages",
"and",
"convert",
"it",
"as",
"a",
"char",
"array",
"on",
"the",
"last",
"stage",
"-",
"stage",
"handler",
"1",
"(",
"pipe",
")",
":",
"removing",
"the",
"alphabets",
",",
"accepts",
"a",
"string",
"input",
"and",
"returns",
"the",
"processed",
"string",
"output",
"this",
"will",
"be",
"used",
"by",
"the",
"next",
"handler",
"as",
"its",
"input",
"-",
"stage",
"handler",
"2",
"(",
"pipe",
")",
":",
"removing",
"the",
"digits",
",",
"accepts",
"a",
"string",
"input",
"and",
"returns",
"the",
"processed",
"string",
"output",
"this",
"shall",
"also",
"be",
"used",
"by",
"the",
"last",
"handler",
"we",
"have",
"-",
"stage",
"handler",
"3",
"(",
"pipe",
")",
":",
"converting",
"the",
"string",
"input",
"to",
"a",
"char",
"array",
"handler",
"we",
"would",
"be",
"returning",
"a",
"different",
"type",
"in",
"here",
"since",
"that",
"is",
"what",
"'",
"s",
"specified",
"by",
"the",
"requirement",
"this",
"means",
"that",
"at",
"any",
"stages",
"along",
"the",
"pipeline",
",",
"the",
"handler",
"can",
"return",
"any",
"type",
"of",
"data",
"as",
"long",
"as",
"it",
"fulfills",
"the",
"requirements",
"for",
"the",
"next",
"handler",
"'",
"s",
"input",
"suppose",
"we",
"wanted",
"to",
"add",
"another",
"handler",
"after",
"convert",
"to",
"char",
"array",
"handler",
"that",
"handler",
"then",
"is",
"expected",
"to",
"receive",
"an",
"input",
"of",
"char",
"[",
"]",
"array",
"since",
"that",
"is",
"the",
"type",
"being",
"returned",
"by",
"the",
"previous",
"handler",
",",
"convert",
"to",
"char",
"array",
"handler",
"*",
"/",
"var",
"filters",
"=",
"new",
"pipeline",
"<",
">",
"(",
"new",
"remove",
"alphabets",
"handler",
"(",
")",
")",
"add",
"handler",
"(",
"new",
"remove",
"digits",
"handler",
"(",
")",
")",
"add",
"handler",
"(",
"new",
"convert",
"to",
"char",
"array",
"handler",
"(",
")",
")",
";",
"filters",
"execute",
"(",
"\"",
"go",
"yankees",
"1",
"2",
"3",
"!",
"\"",
")",
";",
"}"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] |
[
"private",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"returns",
"the",
"section",
"within",
"which",
"the",
"thunk",
"table",
"is",
"located"
] |
[
"public",
"int",
"get",
"thunk",
"table",
"section",
"(",
")",
"{",
"return",
"i",
"section",
"thunk",
"table",
";",
"}"
] |
[
"get",
"a",
"report",
"of",
"the",
"given",
"application",
"in",
"secure",
"mode",
",",
"<",
"code",
">",
"yarn",
"<",
"code",
">",
"verifies",
"access",
"to",
"the",
"application",
",",
"queue",
"etc",
"before",
"accepting",
"the",
"request",
"if",
"the",
"user",
"does",
"not",
"have",
"<",
"code",
">",
"view",
"app",
"<",
"code",
">",
"access",
"then",
"the",
"following",
"fields",
"in",
"the",
"report",
"will",
"be",
"set",
"to",
"stubbed",
"values",
":",
"host",
"-",
"set",
"to",
"\"",
"na",
"\"",
"rpc",
"port",
"-",
"set",
"to",
"-",
"1",
"client",
"token",
"-",
"set",
"to",
"\"",
"na",
"\"",
"diagnostics",
"-",
"set",
"to",
"\"",
"na",
"\"",
"tracking",
"url",
"-",
"set",
"to",
"\"",
"na",
"\"",
"original",
"tracking",
"url",
"-",
"set",
"to",
"\"",
"na",
"\"",
"resource",
"usage",
"report",
"-",
"all",
"values",
"are",
"-",
"1"
] |
[
"public",
"abstract",
"application",
"report",
"get",
"application",
"report",
"(",
"application",
"id",
"app",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
] |
[
"appends",
"the",
"provided",
"value",
"to",
"the",
"provided",
"path",
"in",
"the",
"document",
"any",
"non",
"existing",
"path",
"element",
"will",
"be",
"created",
"if",
"the",
"path",
"identifies",
"a",
"list",
",",
"the",
"value",
"will",
"be",
"appended",
"to",
"the",
"existing",
"list",
"if",
"the",
"path",
"identifies",
"a",
"scalar",
",",
"the",
"scalar",
"will",
"be",
"converted",
"to",
"a",
"list",
"and",
"the",
"provided",
"value",
"will",
"be",
"added",
"to",
"the",
"newly",
"created",
"list",
"supports",
"multiple",
"values",
"too",
"provided",
"in",
"forms",
"of",
"list",
",",
"in",
"that",
"case",
"all",
"the",
"values",
"will",
"be",
"appended",
"to",
"the",
"existing",
"(",
"or",
"newly",
"created",
")",
"list"
] |
[
"public",
"void",
"append",
"field",
"value",
"(",
"string",
"path",
",",
"object",
"value",
")",
"{",
"append",
"field",
"value",
"(",
"path",
",",
"value",
",",
"true",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.