docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"in",
"order",
"to",
"make",
"sure",
"multicast",
"registry",
"works",
",",
"need",
"to",
"specify",
"'",
"-",
"djava",
"net",
"prefer",
"i",
"pv",
"4",
"stack",
"=",
"true",
"'",
"before",
"launch",
"the",
"application"
] | [
"public",
"static",
"void",
"main",
"(",
"string",
"[",
"]",
"args",
")",
"throws",
"exception",
"{",
"class",
"path",
"xml",
"application",
"context",
"context",
"=",
"new",
"class",
"path",
"xml",
"application",
"context",
"(",
"\"",
"spring",
"/",
"dubbo",
"-",
"consumer",
"xml",
"\"",
")",
";",
"context",
"start",
"(",
")",
";",
"demo",
"service",
"demo",
"service",
"=",
"context",
"get",
"bean",
"(",
"\"",
"demo",
"service",
"\"",
",",
"demo",
"service",
"class",
")",
";",
"greeting",
"service",
"greeting",
"service",
"=",
"context",
"get",
"bean",
"(",
"\"",
"greeting",
"service",
"\"",
",",
"greeting",
"service",
"class",
")",
";",
"new",
"thread",
"(",
"(",
")",
"-",
">",
"{",
"while",
"(",
"true",
")",
"{",
"string",
"greetings",
"=",
"greeting",
"service",
"hello",
"(",
")",
";",
"system",
"out",
"println",
"(",
"greetings",
"+",
"\"",
"from",
"separated",
"thread",
"\"",
")",
";",
"try",
"{",
"thread",
"sleep",
"(",
"100",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"}",
"}",
")",
"start",
"(",
")",
";",
"while",
"(",
"true",
")",
"{",
"completable",
"future",
"<",
"string",
">",
"hello",
"=",
"demo",
"service",
"say",
"hello",
"async",
"(",
"\"",
"world",
"\"",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"result",
":",
"\"",
"+",
"hello",
"get",
"(",
")",
")",
";",
"string",
"greetings",
"=",
"greeting",
"service",
"hello",
"(",
")",
";",
"system",
"out",
"println",
"(",
"\"",
"result",
":",
"\"",
"+",
"greetings",
")",
";",
"thread",
"sleep",
"(",
"500",
")",
";",
"}",
"}"
] |
[
"clear",
"selection",
"on",
"all",
"lists"
] | [
"private",
"void",
"clear",
"selection",
"(",
")",
"{",
"consumer",
"list",
"clear",
"selection",
"(",
")",
";",
"producer",
"list",
"clear",
"selection",
"(",
")",
";",
"event",
"list",
"clear",
"selection",
"(",
")",
";",
"}"
] |
[
"set",
"the",
"text",
"that",
"will",
"get",
"prepended",
"to",
"the",
"trace",
"data",
"default",
"is",
"none"
] | [
"public",
"void",
"set",
"suffix",
"(",
"@",
"nullable",
"string",
"suffix",
")",
"{",
"this",
"suffix",
"=",
"(",
"suffix",
"!",
"=",
"null",
"?",
"suffix",
":",
"\"",
"\"",
")",
";",
"}"
] |
[
"an",
"x",
"-",
"slider",
"on",
"the",
"{",
"@",
"link",
"controller",
"}",
"moved",
"the",
"slider",
"code",
"is",
"controller",
"specific",
"the",
"<",
"code",
">",
"com",
"badlogic",
"gdx",
"controllers",
"mapping",
"<",
"code",
">",
"package",
"hosts",
"slider",
"constants",
"for",
"known",
"controllers"
] | [
"public",
"boolean",
"x",
"slider",
"moved",
"(",
"controller",
"controller",
",",
"int",
"slider",
"code",
",",
"boolean",
"value",
")",
";"
] |
[
"get",
"my",
"number"
] | [
"public",
"big",
"decimal",
"get",
"my",
"number",
"(",
")",
"{",
"return",
"my",
"number",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"public",
"void",
"close",
"(",
")",
"throws",
"s",
"q",
"l",
"exception",
"{",
"closed",
"=",
"true",
";",
"}"
] |
[
"indicates",
"whether",
"or",
"not",
"a",
"particular",
"flag",
"is",
"set"
] | [
"public",
"boolean",
"is",
"flag",
"set",
"(",
"short",
"mask",
")",
"{",
"return",
"(",
"value",
"&",
"mask",
")",
"!",
"=",
"0",
";",
"}"
] |
[
"set",
"the",
"{",
"@",
"link",
"http",
"2",
"frame",
"listener",
"}",
"which",
"will",
"be",
"notified",
"when",
"frames",
"are",
"decoded",
"this",
"must",
"be",
"set",
"before",
"frames",
"are",
"decoded"
] | [
"void",
"frame",
"listener",
"(",
"http",
"2",
"frame",
"listener",
"listener",
")",
";"
] |
[
"the",
"users",
"of",
"this",
"class",
"are",
"not",
"allowed",
"to",
"use",
"processing",
"time",
"timers",
"see",
"class",
"javadoc"
] | [
"public",
"final",
"void",
"on",
"processing",
"time",
"(",
"internal",
"timer",
"<",
"object",
",",
"void",
"namespace",
">",
"timer",
")",
"throws",
"exception",
"{",
"if",
"(",
"state",
"cleaning",
"enabled",
")",
"{",
"long",
"timer",
"time",
"=",
"timer",
"get",
"timestamp",
"(",
")",
";",
"long",
"cleanup",
"time",
"=",
"latest",
"registered",
"cleanup",
"timer",
"value",
"(",
")",
";",
"if",
"(",
"cleanup",
"time",
"!",
"=",
"null",
"&",
"&",
"cleanup",
"time",
"=",
"=",
"timer",
"time",
")",
"{",
"cleanup",
"state",
"(",
"cleanup",
"time",
")",
";",
"latest",
"registered",
"cleanup",
"timer",
"clear",
"(",
")",
";",
"}",
"}",
"}"
] |
[
"create",
"a",
"{",
"@",
"link",
"compression",
"output",
"stream",
"}",
"that",
"will",
"write",
"to",
"the",
"given",
"{",
"@",
"link",
"output",
"stream",
"}",
"with",
"the",
"given",
"{",
"@",
"link",
"compressor",
"}"
] | [
"public",
"compression",
"output",
"stream",
"create",
"output",
"stream",
"(",
"output",
"stream",
"out",
",",
"compressor",
"compressor",
")",
"throws",
"i",
"o",
"exception",
"{",
"check",
"native",
"code",
"loaded",
"(",
")",
";",
"return",
"new",
"compressor",
"stream",
"(",
"out",
",",
"compressor",
",",
"get",
"compression",
"buffer",
"size",
"(",
"conf",
")",
")",
";",
"}"
] |
[
"assign",
"the",
"slot",
"to",
"executors"
] | [
"public",
"void",
"assign",
"(",
"worker",
"slot",
"slot",
",",
"collection",
"<",
"executor",
"details",
">",
"executors",
")",
"{",
"for",
"(",
"executor",
"details",
"executor",
":",
"executors",
")",
"{",
"this",
"executor",
"to",
"slot",
"put",
"(",
"executor",
",",
"slot",
")",
";",
"}",
"}"
] |
[
"note",
":",
"this",
"should",
"be",
"called",
"with",
"err",
"'",
"s",
"gui",
"mode",
"disabled",
"when",
"you",
"get",
"a",
"front",
"end",
"tool",
"from",
"test",
"env",
",",
"that",
"action",
"turns",
"on",
"the",
"gui",
"display",
"for",
"showing",
"errors",
",",
"by",
"default",
"so",
",",
"you",
"should",
"call",
"this",
"method",
"before",
"accessing",
"any",
"gui",
"components",
"in",
"the",
"test",
"system",
"if",
"the",
"gui",
"error",
"display",
"is",
"enabled",
"when",
"this",
"method",
"is",
"invoked",
",",
"then",
"server",
"connection",
"attempts",
"may",
"trigger",
"error",
"dialogs",
"that",
"are",
"considered",
"'",
"normal",
"'",
"when",
"running",
"in",
"the",
"test",
"environment"
] | [
"public",
"static",
"repository",
"adapter",
"start",
"server",
"(",
")",
"throws",
"exception",
"{",
"system",
"err",
"println",
"(",
"\"",
"shared",
"project",
"util",
"start",
"server",
"(",
")",
"\"",
")",
";",
"repository",
"server",
"=",
"null",
";",
"file",
"parent",
"=",
"new",
"file",
"(",
"abstract",
"g",
"test",
"get",
"test",
"directory",
"path",
"(",
")",
")",
";",
"/",
"/",
"create",
"server",
"instance",
"server",
"root",
"=",
"new",
"file",
"(",
"parent",
",",
"\"",
"my",
"server",
"\"",
")",
";",
"file",
"utilities",
"delete",
"dir",
"(",
"server",
"root",
")",
";",
"system",
"err",
"println",
"(",
"\"",
"shared",
"project",
"util",
"start",
"server",
"(",
")",
"\\",
"tgetting",
"server",
"adapter",
"\"",
")",
";",
"repository",
"server",
"=",
"server",
"test",
"util",
"get",
"server",
"adapter",
"(",
"server",
"root",
",",
"new",
"string",
"[",
"]",
"{",
"user",
"}",
")",
";",
"system",
"err",
"println",
"(",
"\"",
"shared",
"project",
"util",
"start",
"server",
"(",
")",
"\\",
"tchecking",
"connection",
"\"",
")",
";",
"if",
"(",
"repository",
"server",
"=",
"=",
"null",
"|",
"|",
"!",
"repository",
"server",
"is",
"connected",
"(",
")",
")",
"{",
"delete",
"server",
"root",
"(",
")",
";",
"fail",
"(",
"\"",
"server",
"connect",
"failed",
"\"",
")",
";",
"}",
"system",
"err",
"println",
"(",
"\"",
"shared",
"project",
"util",
"start",
"server",
"(",
")",
"\\",
"tcreating",
"repository",
"\"",
")",
";",
"return",
"repository",
"server",
"create",
"repository",
"(",
"\"",
"my",
"repository",
"\"",
")",
";",
"}"
] |
[
"get",
"the",
"data",
"in",
"a",
"z",
"node"
] | [
"public",
"byte",
"[",
"]",
"get",
"data",
"(",
"final",
"string",
"path",
",",
"stat",
"stat",
")",
"throws",
"exception",
"{",
"return",
"curator",
"get",
"data",
"(",
")",
"storing",
"stat",
"in",
"(",
"stat",
")",
"for",
"path",
"(",
"path",
")",
";",
"}"
] |
[
"clear",
"for",
"hflush",
"or",
"hsync"
] | [
"private",
"synchronized",
"void",
"clear",
"h",
"flush",
"or",
"sync",
"(",
")",
"{",
"append",
"able",
"set",
"(",
"true",
")",
";",
"multi",
"part",
"upload",
"=",
"null",
";",
"}"
] |
[
"deletes",
"all",
"content",
"belonging",
"to",
"a",
"cache",
"instance",
"this",
"method",
"may",
"be",
"slow",
"and",
"shouldn",
"'",
"t",
"normally",
"be",
"called",
"on",
"the",
"main",
"thread"
] | [
"public",
"static",
"void",
"delete",
"(",
"file",
"cache",
"dir",
",",
"@",
"nullable",
"database",
"provider",
"database",
"provider",
")",
"{",
"if",
"(",
"!",
"cache",
"dir",
"exists",
"(",
")",
")",
"{",
"return",
";",
"}",
"file",
"[",
"]",
"files",
"=",
"cache",
"dir",
"list",
"files",
"(",
")",
";",
"if",
"(",
"files",
"=",
"=",
"null",
")",
"{",
"cache",
"dir",
"delete",
"(",
")",
";",
"return",
";",
"}",
"if",
"(",
"database",
"provider",
"!",
"=",
"null",
")",
"{",
"/",
"/",
"make",
"a",
"best",
"effort",
"to",
"read",
"the",
"cache",
"uid",
"and",
"delete",
"associated",
"index",
"data",
"before",
"deleting",
"/",
"/",
"cache",
"directory",
"itself",
"long",
"uid",
"=",
"load",
"uid",
"(",
"files",
")",
";",
"if",
"(",
"uid",
"!",
"=",
"uid",
"unset",
")",
"{",
"try",
"{",
"cache",
"file",
"metadata",
"index",
"delete",
"(",
"database",
"provider",
",",
"uid",
")",
";",
"}",
"catch",
"(",
"database",
"i",
"o",
"exception",
"e",
")",
"{",
"log",
"w",
"(",
"tag",
",",
"\"",
"failed",
"to",
"delete",
"file",
"metadata",
":",
"\"",
"+",
"uid",
")",
";",
"}",
"try",
"{",
"cached",
"content",
"index",
"delete",
"(",
"database",
"provider",
",",
"uid",
")",
";",
"}",
"catch",
"(",
"database",
"i",
"o",
"exception",
"e",
")",
"{",
"log",
"w",
"(",
"tag",
",",
"\"",
"failed",
"to",
"delete",
"file",
"metadata",
":",
"\"",
"+",
"uid",
")",
";",
"}",
"}",
"}",
"util",
"recursive",
"delete",
"(",
"cache",
"dir",
")",
";",
"}"
] |
[
"it",
"'",
"s",
"desirable",
"to",
"drop",
"tombstones",
"for",
"final",
"-",
"results",
"windowed",
"streams",
",",
"since",
"(",
"as",
"described",
"in",
"the",
"{",
"@",
"link",
"suppressed",
"internal",
"}",
"javadoc",
")",
",",
"they",
"are",
"unnecessary",
"to",
"emit"
] | [
"public",
"void",
"final",
"results",
"should",
"drop",
"tombstones",
"for",
"time",
"windows",
"(",
")",
"{",
"final",
"harness",
"<",
"windowed",
"<",
"string",
">",
",",
"long",
">",
"harness",
"=",
"new",
"harness",
"<",
">",
"(",
"final",
"results",
"(",
"of",
"millis",
"(",
"0l",
")",
")",
",",
"time",
"windowed",
"serde",
"from",
"(",
"string",
"class",
",",
"100l",
")",
",",
"long",
"(",
")",
")",
";",
"final",
"mock",
"internal",
"processor",
"context",
"context",
"=",
"harness",
"context",
";",
"final",
"long",
"timestamp",
"=",
"100l",
";",
"context",
"set",
"record",
"metadata",
"(",
"\"",
"\"",
",",
"0",
",",
"0l",
",",
"null",
",",
"timestamp",
")",
";",
"final",
"windowed",
"<",
"string",
">",
"key",
"=",
"new",
"windowed",
"<",
">",
"(",
"\"",
"hey",
"\"",
",",
"new",
"time",
"window",
"(",
"0",
",",
"100l",
")",
")",
";",
"final",
"change",
"<",
"long",
">",
"value",
"=",
"new",
"change",
"<",
">",
"(",
"null",
",",
"arbitrary",
"long",
")",
";",
"harness",
"processor",
"process",
"(",
"key",
",",
"value",
")",
";",
"assert",
"that",
"(",
"context",
"forwarded",
"(",
")",
",",
"has",
"size",
"(",
"0",
")",
")",
";",
"}"
] |
[
"returns",
"an",
"{",
"@",
"link",
"extractor",
"input",
"}",
"to",
"read",
"from",
"the",
"given",
"input",
"at",
"given",
"position"
] | [
"public",
"static",
"extractor",
"input",
"get",
"extractor",
"input",
"from",
"position",
"(",
"data",
"source",
"data",
"source",
",",
"long",
"position",
",",
"uri",
"uri",
")",
"throws",
"i",
"o",
"exception",
"{",
"data",
"spec",
"data",
"spec",
"=",
"new",
"data",
"spec",
"(",
"uri",
",",
"position",
",",
"c",
"length",
"unset",
")",
";",
"long",
"length",
"=",
"data",
"source",
"open",
"(",
"data",
"spec",
")",
";",
"if",
"(",
"length",
"!",
"=",
"c",
"length",
"unset",
")",
"{",
"length",
"+",
"=",
"position",
";",
"}",
"return",
"new",
"default",
"extractor",
"input",
"(",
"data",
"source",
",",
"position",
",",
"length",
")",
";",
"}"
] |
[
"count",
"the",
"number",
"of",
"nodes",
"in",
"the",
"map",
"that",
"could",
"be",
"followers"
] | [
"protected",
"static",
"int",
"count",
"participants",
"(",
"map",
"<",
"long",
",",
"quorum",
"server",
">",
"peers",
")",
"{",
"int",
"count",
"=",
"0",
";",
"for",
"(",
"quorum",
"server",
"q",
":",
"peers",
"values",
"(",
")",
")",
"{",
"if",
"(",
"q",
"type",
"=",
"=",
"learner",
"type",
"participant",
")",
"{",
"count",
"+",
"+",
";",
"}",
"}",
"return",
"count",
";",
"}"
] |
[
"allow",
"everything",
"but",
"creation",
"of",
"security",
"managers"
] | [
"@",
"override",
"public",
"void",
"check",
"permission",
"(",
"permission",
"p",
")",
"{",
"if",
"(",
"enabled",
"&",
"&",
"security",
"manager",
"permission",
"equals",
"(",
"p",
")",
")",
"{",
"throw",
"new",
"security",
"exception",
"(",
"\"",
"google",
"test",
"security",
"manager",
"is",
"not",
"designed",
"to",
"handle",
"other",
"\"",
"+",
"\"",
"security",
"managers",
"\"",
")",
";",
"}",
"}"
] |
[
"sets",
"the",
"output",
"channel",
"to",
"which",
"messages",
"received",
"on",
"this",
"server",
"are",
"echoed",
"this",
"is",
"useful",
"in",
"tests",
"where",
"the",
"clients",
"sending",
"the",
"messages",
"don",
"'",
"t",
"receive",
"the",
"responses",
"(",
"eg",
"testing",
"graceful",
"close",
")"
] | [
"public",
"void",
"output",
"channel",
"(",
"writable",
"byte",
"channel",
"channel",
")",
"{",
"this",
"output",
"channel",
"=",
"new",
"transferable",
"channel",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"has",
"pending",
"writes",
"(",
")",
"{",
"return",
"false",
";",
"}",
"@",
"override",
"public",
"long",
"transfer",
"from",
"(",
"file",
"channel",
"file",
"channel",
",",
"long",
"position",
",",
"long",
"count",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"file",
"channel",
"transfer",
"to",
"(",
"position",
",",
"count",
",",
"channel",
")",
";",
"}",
"@",
"override",
"public",
"boolean",
"is",
"open",
"(",
")",
"{",
"return",
"channel",
"is",
"open",
"(",
")",
";",
"}",
"@",
"override",
"public",
"void",
"close",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"channel",
"close",
"(",
")",
";",
"}",
"@",
"override",
"public",
"int",
"write",
"(",
"byte",
"buffer",
"src",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"channel",
"write",
"(",
"src",
")",
";",
"}",
"@",
"override",
"public",
"long",
"write",
"(",
"byte",
"buffer",
"[",
"]",
"srcs",
",",
"int",
"offset",
",",
"int",
"length",
")",
"throws",
"i",
"o",
"exception",
"{",
"long",
"result",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"offset",
";",
"i",
"<",
"offset",
"+",
"length",
";",
"+",
"+",
"i",
")",
"result",
"+",
"=",
"write",
"(",
"srcs",
"[",
"i",
"]",
")",
";",
"return",
"result",
";",
"}",
"@",
"override",
"public",
"long",
"write",
"(",
"byte",
"buffer",
"[",
"]",
"srcs",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"write",
"(",
"srcs",
",",
"0",
",",
"srcs",
"length",
")",
";",
"}",
"}",
";",
"}"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"event",
"executor",
"chooser",
"}"
] | [
"event",
"executor",
"chooser",
"new",
"chooser",
"(",
"event",
"executor",
"[",
"]",
"executors",
")",
";"
] |
[
"handles",
"a",
"task",
"status",
"update",
"from",
"mesos"
] | [
"private",
"void",
"status",
"update",
"(",
"status",
"update",
"message",
")",
"{",
"task",
"monitor",
"tell",
"(",
"message",
",",
"self",
"actor",
")",
";",
"reconciliation",
"coordinator",
"tell",
"(",
"message",
",",
"self",
"actor",
")",
";",
"scheduler",
"driver",
"acknowledge",
"status",
"update",
"(",
"message",
"status",
"(",
")",
")",
";",
"}"
] |
[
"delete",
"fake",
":",
"fake",
"endpoint",
"to",
"test",
"group",
"parameters",
"(",
"optional",
")",
"fake",
"endpoint",
"to",
"test",
"group",
"parameters",
"(",
"optional",
")"
] | [
"default",
"response",
"entity",
"<",
"void",
">",
"test",
"group",
"parameters",
"(",
"integer",
"required",
"string",
"group",
",",
"boolean",
"required",
"boolean",
"group",
",",
"long",
"required",
"int",
"6",
"4",
"group",
",",
"integer",
"string",
"group",
",",
"boolean",
"boolean",
"group",
",",
"long",
"int",
"6",
"4",
"group",
")",
"{",
"return",
"new",
"response",
"entity",
"<",
">",
"(",
"http",
"status",
"not",
"implemented",
")",
";",
"}"
] |
[
"get",
"min",
"resource"
] | [
"public",
"resource",
"get",
"min",
"resource",
"(",
")",
"{",
"return",
"min",
"resource",
";",
"}"
] |
[
"gets",
"the",
"string",
"representation",
"at",
"the",
"given",
"index",
"in",
"the",
"block"
] | [
"public",
"string",
"get",
"data",
"representation",
"(",
"byte",
"block",
"block",
",",
"big",
"integer",
"index",
")",
"throws",
"byte",
"block",
"access",
"exception",
"{",
"byte",
"b",
"=",
"block",
"get",
"byte",
"(",
"index",
")",
";",
"int",
"i",
"=",
"b",
";",
"i",
"&",
"=",
"0xff",
";",
"string",
"str",
"=",
"integer",
"to",
"binary",
"string",
"(",
"i",
")",
";",
"if",
"(",
"str",
"length",
"(",
")",
">",
"symbol",
"size",
")",
"{",
"str",
"=",
"str",
"substring",
"(",
"str",
"length",
"(",
")",
"-",
"symbol",
"size",
")",
";",
"}",
"return",
"pad",
"(",
"str",
")",
";",
"}"
] |
[
"handles",
"the",
"given",
"exception",
"thrown",
"by",
"a",
"subscriber",
"with",
"the",
"given",
"context"
] | [
"void",
"handle",
"subscriber",
"exception",
"(",
"throwable",
"e",
",",
"subscriber",
"exception",
"context",
"context",
")",
"{",
"check",
"not",
"null",
"(",
"e",
")",
";",
"check",
"not",
"null",
"(",
"context",
")",
";",
"try",
"{",
"exception",
"handler",
"handle",
"exception",
"(",
"e",
",",
"context",
")",
";",
"}",
"catch",
"(",
"throwable",
"e",
"2",
")",
"{",
"/",
"/",
"if",
"the",
"handler",
"threw",
"an",
"exception",
"well",
",",
"just",
"log",
"it",
"logger",
"log",
"(",
"level",
"severe",
",",
"string",
"format",
"(",
"locale",
"root",
",",
"\"",
"exception",
"%",
"s",
"thrown",
"while",
"handling",
"exception",
":",
"%",
"s",
"\"",
",",
"e",
"2",
",",
"e",
")",
",",
"e",
"2",
")",
";",
"}",
"}"
] |
[
"return",
"the",
"(",
"potentially",
"null",
")",
"error",
"status",
"value",
"as",
"per",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"tools",
"ietf",
"orghtmlrfc",
"7",
"6",
"2",
"8",
"#",
"section",
"-",
"3",
"2",
"2",
"\"",
">",
"rfc",
"7628",
":",
"a",
"set",
"of",
"simple",
"authentication",
"and",
"security",
"layer",
"(",
"sasl",
")",
"mechanisms",
"for",
"o",
"auth",
"and",
"the",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"iana",
"orgassignmentsoauth",
"-",
"parametersoauth",
"-",
"parameters",
"xhtml",
"#",
"extensions",
"-",
"error",
"\"",
">",
"iana",
"o",
"auth",
"extensions",
"error",
"registry"
] | [
"public",
"string",
"error",
"status",
"(",
")",
"{",
"return",
"error",
"status",
";",
"}"
] |
[
"gets",
"events",
"for",
"principal"
] | [
"public",
"collection",
"<",
"?",
"extends",
"cas",
"event",
">",
"get",
"events",
"for",
"principal",
"(",
"final",
"string",
"id",
",",
"final",
"zoned",
"date",
"time",
"date",
"time",
")",
"{",
"val",
"query",
"=",
"list",
"of",
"(",
"dynamo",
"db",
"query",
"builder",
"builder",
"(",
")",
"key",
"(",
"column",
"names",
"principal",
"get",
"column",
"name",
"(",
")",
")",
"attribute",
"value",
"(",
"list",
"of",
"(",
"attribute",
"value",
"builder",
"(",
")",
"s",
"(",
"id",
")",
"build",
"(",
")",
")",
")",
"operator",
"(",
"comparison",
"operator",
"eq",
")",
"build",
"(",
")",
",",
"dynamo",
"db",
"query",
"builder",
"builder",
"(",
")",
"key",
"(",
"column",
"names",
"creation",
"time",
"get",
"column",
"name",
"(",
")",
")",
"attribute",
"value",
"(",
"list",
"of",
"(",
"attribute",
"value",
"builder",
"(",
")",
"s",
"(",
"date",
"time",
"to",
"string",
"(",
")",
")",
"build",
"(",
")",
")",
")",
"operator",
"(",
"comparison",
"operator",
"ge",
")",
"build",
"(",
")",
")",
";",
"return",
"get",
"records",
"by",
"keys",
"(",
"query",
")",
";",
"}"
] |
[
"returns",
"the",
"count",
"(",
"number",
"of",
"results",
"matching",
"the",
"query",
")",
"uses",
"select",
"count",
"(",
")",
"sematics"
] | [
"public",
"long",
"count",
"(",
")",
"{",
"check",
"thread",
"(",
")",
";",
"cursor",
"cursor",
"=",
"dao",
"get",
"database",
"(",
")",
"raw",
"query",
"(",
"sql",
",",
"parameters",
")",
";",
"try",
"{",
"if",
"(",
"!",
"cursor",
"move",
"to",
"next",
"(",
")",
")",
"{",
"throw",
"new",
"dao",
"exception",
"(",
"\"",
"no",
"result",
"for",
"count",
"\"",
")",
";",
"}",
"else",
"if",
"(",
"!",
"cursor",
"is",
"last",
"(",
")",
")",
"{",
"throw",
"new",
"dao",
"exception",
"(",
"\"",
"unexpected",
"row",
"count",
":",
"\"",
"+",
"cursor",
"get",
"count",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"cursor",
"get",
"column",
"count",
"(",
")",
"!",
"=",
"1",
")",
"{",
"throw",
"new",
"dao",
"exception",
"(",
"\"",
"unexpected",
"column",
"count",
":",
"\"",
"+",
"cursor",
"get",
"column",
"count",
"(",
")",
")",
";",
"}",
"return",
"cursor",
"get",
"long",
"(",
"0",
")",
";",
"}",
"finally",
"{",
"cursor",
"close",
"(",
")",
";",
"}",
"}"
] |
[
"writes",
"the",
"specified",
"byte",
"array",
"to",
"the",
"output",
"file",
"follows",
"symbolic",
"links"
] | [
"public",
"static",
"void",
"write",
"content",
"(",
"path",
"output",
"file",
",",
"byte",
"[",
"]",
"content",
")",
"throws",
"i",
"o",
"exception",
"{",
"as",
"byte",
"sink",
"(",
"output",
"file",
")",
"write",
"(",
"content",
")",
";",
"}"
] |
[
"create",
"a",
"new",
"concurrent",
"map",
"cache",
"instance",
"for",
"the",
"specified",
"cache",
"name"
] | [
"protected",
"cache",
"create",
"concurrent",
"map",
"cache",
"(",
"string",
"name",
")",
"{",
"serialization",
"delegate",
"actual",
"serialization",
"=",
"(",
"is",
"store",
"by",
"value",
"(",
")",
"?",
"this",
"serialization",
":",
"null",
")",
";",
"return",
"new",
"concurrent",
"map",
"cache",
"(",
"name",
",",
"new",
"concurrent",
"hash",
"map",
"<",
">",
"(",
"256",
")",
",",
"is",
"allow",
"null",
"values",
"(",
")",
",",
"actual",
"serialization",
")",
";",
"}"
] |
[
"creates",
"an",
"index",
"entry",
"for",
"the",
"given",
"key",
"of",
"the",
"form",
"indexed",
"entry",
"prefix",
"+",
"primaryfiltername",
"+",
"primaryfiltervalue",
"+",
"key"
] | [
"private",
"static",
"byte",
"[",
"]",
"add",
"primary",
"filter",
"to",
"key",
"(",
"string",
"primary",
"filter",
"name",
",",
"object",
"primary",
"filter",
"value",
",",
"byte",
"[",
"]",
"key",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"key",
"builder",
"new",
"instance",
"(",
")",
"add",
"(",
"indexed",
"entry",
"prefix",
")",
"add",
"(",
"primary",
"filter",
"name",
")",
"add",
"(",
"generic",
"object",
"mapper",
"write",
"(",
"primary",
"filter",
"value",
")",
",",
"true",
")",
"add",
"(",
"key",
")",
"get",
"bytes",
"(",
")",
";",
"}"
] |
[
"any",
"comment",
"associated",
"with",
"the",
"value",
"<",
"code",
">",
"optional",
"string",
"comment",
"=",
"2",
";",
"<",
"code",
">"
] | [
"public",
"boolean",
"has",
"comment",
"(",
")",
"{",
"return",
"instance",
"has",
"comment",
"(",
")",
";",
"}"
] |
[
"can",
"'",
"t",
"disable",
"a",
"plugin",
"with",
"a",
"mandatory",
"dependent",
"plugin",
"before",
"its",
"dependent",
"plugin",
"with",
"default",
"strategy",
"(",
"none",
")"
] | [
"public",
"void",
"cannot",
"disable",
"dependent",
"plugin",
"wrong",
"order",
"strategy",
"none",
"(",
")",
"{",
"assert",
"that",
"(",
"disable",
"plugins",
"c",
"li",
"command",
"(",
"\"",
"dependee",
"\"",
",",
"\"",
"mandatory",
"-",
"depender",
"\"",
")",
",",
"failed",
"with",
"(",
"return",
"code",
"not",
"disabled",
"dependants",
")",
")",
";",
"assert",
"plugin",
"disabled",
"(",
"\"",
"mandatory",
"-",
"depender",
"\"",
")",
";",
"assert",
"plugin",
"enabled",
"(",
"\"",
"dependee",
"\"",
")",
";",
"}"
] |
[
"returns",
"a",
"type",
"reference",
"of",
"the",
"given",
"sort"
] | [
"public",
"static",
"type",
"reference",
"new",
"type",
"reference",
"(",
"final",
"int",
"sort",
")",
"{",
"return",
"new",
"type",
"reference",
"(",
"sort",
"<",
"<",
"24",
")",
";",
"}"
] |
[
"notifies",
"the",
"tracker",
"of",
"the",
"start",
"of",
"a",
"seek",
",",
"including",
"all",
"seeks",
"while",
"the",
"playback",
"is",
"not",
"in",
"the",
"foreground"
] | [
"public",
"void",
"on",
"seek",
"started",
"(",
"event",
"time",
"event",
"time",
",",
"boolean",
"belongs",
"to",
"playback",
")",
"{",
"is",
"seeking",
"=",
"true",
";",
"maybe",
"update",
"playback",
"state",
"(",
"event",
"time",
",",
"belongs",
"to",
"playback",
")",
";",
"}"
] |
[
"invokes",
"{",
"@",
"code",
"unit",
"}",
"{",
"@",
"link",
"time",
"unit",
"#",
"timed",
"join",
"(",
"thread",
",",
"long",
")",
"timed",
"join",
"(",
"to",
"join",
",",
"timeout",
")",
"}",
"uninterruptibly"
] | [
"public",
"static",
"void",
"join",
"uninterruptibly",
"(",
"thread",
"to",
"join",
",",
"long",
"timeout",
",",
"time",
"unit",
"unit",
")",
"{",
"preconditions",
"check",
"not",
"null",
"(",
"to",
"join",
")",
";",
"boolean",
"interrupted",
"=",
"false",
";",
"try",
"{",
"long",
"remaining",
"nanos",
"=",
"unit",
"to",
"nanos",
"(",
"timeout",
")",
";",
"long",
"end",
"=",
"system",
"nano",
"time",
"(",
")",
"+",
"remaining",
"nanos",
";",
"while",
"(",
"true",
")",
"{",
"try",
"{",
"/",
"/",
"time",
"unit",
"timed",
"join",
"(",
")",
"treats",
"negative",
"timeouts",
"just",
"like",
"zero",
"nanoseconds",
"timed",
"join",
"(",
"to",
"join",
",",
"remaining",
"nanos",
")",
";",
"return",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"interrupted",
"=",
"true",
";",
"remaining",
"nanos",
"=",
"end",
"-",
"system",
"nano",
"time",
"(",
")",
";",
"}",
"}",
"}",
"finally",
"{",
"if",
"(",
"interrupted",
")",
"{",
"thread",
"current",
"thread",
"(",
")",
"interrupt",
"(",
")",
";",
"}",
"}",
"}"
] |
[
"get",
"all",
"reference",
"from",
"this",
"code",
"unit"
] | [
"public",
"reference",
"[",
"]",
"get",
"references",
"from",
"(",
")",
"{",
"if",
"(",
"ref",
"mgr",
"!",
"=",
"null",
")",
"return",
"ref",
"mgr",
"get",
"references",
"from",
"(",
"address",
")",
";",
"array",
"list",
"<",
"reference",
">",
"list",
"=",
"new",
"array",
"list",
"<",
"reference",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"get",
"num",
"operands",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"reference",
"[",
"]",
"refs",
"=",
"get",
"operand",
"references",
"(",
"i",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"refs",
"length",
";",
"j",
"+",
"+",
")",
"{",
"list",
"add",
"(",
"refs",
"[",
"j",
"]",
")",
";",
"}",
"}",
"return",
"list",
"to",
"array",
"(",
"empty",
"mem",
"refs",
")",
";",
"}"
] |
[
"calls",
"{",
"@",
"link",
"#",
"copy",
"stream",
"to",
"string",
"(",
"input",
"stream",
",",
"int",
",",
"string",
")",
"}",
"using",
"the",
"input",
"'",
"s",
"{",
"@",
"link",
"input",
"stream",
"#",
"available",
"(",
")",
"available",
"}",
"size",
"and",
"the",
"platform",
"'",
"s",
"default",
"charset"
] | [
"public",
"static",
"string",
"copy",
"stream",
"to",
"string",
"(",
"input",
"stream",
"input",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"copy",
"stream",
"to",
"string",
"(",
"input",
",",
"input",
"available",
"(",
")",
",",
"null",
")",
";",
"}"
] |
[
"returns",
"the",
"smallest",
"integer",
"greater",
"than",
"or",
"equal",
"to",
"the",
"specified",
"float",
"this",
"method",
"will",
"only",
"properly",
"ceil",
"floats",
"that",
"are",
"positive"
] | [
"static",
"public",
"int",
"ceil",
"positive",
"(",
"float",
"value",
")",
"{",
"return",
"(",
"int",
")",
"(",
"value",
"+",
"ceil",
")",
";",
"}"
] |
[
"if",
"the",
"field",
"type",
"passed",
"in",
"is",
"boolean",
",",
"it",
"will",
"change",
"it",
"into",
"integer",
"as",
"column",
"type"
] | [
"public",
"string",
"object",
"2",
"relation",
"(",
"string",
"field",
"type",
")",
"{",
"if",
"(",
"field",
"type",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"field",
"type",
"equals",
"(",
"\"",
"boolean",
"\"",
")",
"|",
"|",
"field",
"type",
"equals",
"(",
"\"",
"java",
"lang",
"boolean",
"\"",
")",
")",
"{",
"return",
"\"",
"integer",
"\"",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"return",
"the",
"friendly",
"time",
"span",
"by",
"now"
] | [
"public",
"static",
"string",
"get",
"friendly",
"time",
"span",
"by",
"now",
"(",
"final",
"date",
"date",
")",
"{",
"return",
"get",
"friendly",
"time",
"span",
"by",
"now",
"(",
"date",
"get",
"time",
"(",
")",
")",
";",
"}"
] |
[
"work",
"method",
"to",
"sort",
"the",
"data"
] | [
"private",
"void",
"sort",
"data",
"(",
")",
"{",
"if",
"(",
"!",
"needs",
"sorting",
"(",
")",
")",
"{",
"return",
";",
"}",
"list",
"<",
"t",
">",
"sort",
"data",
"=",
"updated",
"data",
"get",
"data",
"(",
")",
";",
"if",
"(",
"is",
"current",
"sort",
"reversable",
"(",
")",
")",
"{",
"collections",
"reverse",
"(",
"sort",
"data",
")",
";",
"}",
"else",
"{",
"initialize",
"sort",
"cache",
"(",
")",
";",
"maybe",
"sort",
"source",
"data",
"(",
")",
";",
"do",
"sort",
"data",
"(",
"sort",
"data",
")",
";",
"clear",
"sort",
"cache",
"(",
")",
";",
"}",
"last",
"sort",
"context",
"=",
"monitor",
"is",
"cancelled",
"(",
")",
"?",
"null",
":",
"new",
"sort",
"context",
";",
"updated",
"data",
"set",
"sort",
"context",
"(",
"last",
"sort",
"context",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"prefix",
"array",
"'"
] | [
"public",
"void",
"prefix",
"array",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"prefix",
"array",
"}"
] |
[
"attempts",
"to",
"return",
"a",
"{",
"@",
"code",
"host",
"specifier",
"}",
"for",
"the",
"given",
"string",
",",
"throwing",
"an",
"exception",
"if",
"parsing",
"fails",
"always",
"use",
"this",
"method",
"in",
"preference",
"to",
"{",
"@",
"link",
"#",
"from",
"valid",
"(",
"string",
")",
"}",
"for",
"a",
"specifier",
"that",
"is",
"not",
"already",
"known",
"to",
"be",
"valid"
] | [
"public",
"static",
"host",
"specifier",
"from",
"(",
"string",
"specifier",
")",
"throws",
"parse",
"exception",
"{",
"try",
"{",
"return",
"from",
"valid",
"(",
"specifier",
")",
";",
"}",
"catch",
"(",
"illegal",
"argument",
"exception",
"e",
")",
"{",
"/",
"/",
"since",
"the",
"iae",
"can",
"originate",
"at",
"several",
"different",
"points",
"inside",
"/",
"/",
"from",
"valid",
"(",
")",
",",
"we",
"implement",
"this",
"method",
"in",
"terms",
"of",
"that",
"one",
"rather",
"/",
"/",
"than",
"the",
"reverse",
"parse",
"exception",
"parse",
"exception",
"=",
"new",
"parse",
"exception",
"(",
"\"",
"invalid",
"host",
"specifier",
":",
"\"",
"+",
"specifier",
",",
"0",
")",
";",
"parse",
"exception",
"init",
"cause",
"(",
"e",
")",
";",
"throw",
"parse",
"exception",
";",
"}",
"}"
] |
[
"standard",
"implementation",
"of",
"{",
"@",
"link",
"parameterized",
"job",
"#",
"is",
"parameterized",
"}"
] | [
"public",
"final",
"boolean",
"is",
"parameterized",
"(",
")",
"{",
"return",
"as",
"job",
"(",
")",
"get",
"property",
"(",
"parameters",
"definition",
"property",
"class",
")",
"!",
"=",
"null",
";",
"}"
] |
[
"get",
"mqtt",
"property",
"value"
] | [
"public",
"t",
"value",
"(",
")",
"{",
"return",
"value",
";",
"}"
] |
[
"matches",
"any",
"character"
] | [
"public",
"static",
"char",
"matcher",
"any",
"(",
")",
"{",
"return",
"any",
"instance",
";",
"}"
] |
[
"returns",
"a",
"test",
"suite"
] | [
"public",
"static",
"test",
"suite",
"(",
"string",
"name",
",",
"test",
"map",
"generator",
"<",
"?",
",",
"?",
">",
"generator",
")",
"{",
"return",
"concurrent",
"map",
"test",
"suite",
"builder",
"using",
"(",
"generator",
")",
"named",
"(",
"name",
")",
"with",
"features",
"(",
"map",
"feature",
"general",
"purpose",
",",
"map",
"feature",
"allows",
"null",
"entry",
"queries",
",",
"collection",
"feature",
"supports",
"iterator",
"remove",
",",
"collection",
"size",
"any",
")",
"create",
"test",
"suite",
"(",
")",
";",
"}"
] |
[
"writes",
"a",
"short",
"to",
"the",
"buffer",
"as",
"a",
"2",
"-",
"byte",
"little",
"endian",
"array",
"starting",
"at",
"offset"
] | [
"static",
"byte",
"[",
"]",
"short",
"to",
"little",
"endian",
"(",
"byte",
"[",
"]",
"buf",
",",
"int",
"offset",
",",
"short",
"value",
")",
"{",
"return",
"integer",
"to",
"little",
"endian",
"(",
"buf",
",",
"offset",
",",
"value",
",",
"2",
")",
";",
"}"
] |
[
"gets",
"encryption",
"credential",
"the",
"encryption",
"private",
"key",
"will",
"need",
"to",
"contain",
"the",
"private",
"keypair",
"in",
"pem",
"format",
"the",
"encryption",
"certificate",
"is",
"shared",
"with",
"adfs",
"in",
"der",
"format",
",",
"i",
"e",
"certificate",
"crt"
] | [
"private",
"static",
"credential",
"get",
"encryption",
"credential",
"(",
"final",
"ws",
"federation",
"configuration",
"config",
")",
"{",
"logger",
"debug",
"(",
"\"",
"locating",
"encryption",
"credential",
"private",
"key",
"[",
"{",
"}",
"]",
"\"",
",",
"config",
"get",
"encryption",
"private",
"key",
"(",
")",
")",
";",
"val",
"br",
"=",
"new",
"buffered",
"reader",
"(",
"new",
"input",
"stream",
"reader",
"(",
"config",
"get",
"encryption",
"private",
"key",
"(",
")",
"get",
"input",
"stream",
"(",
")",
",",
"standard",
"charsets",
"utf",
"8",
")",
")",
";",
"security",
"add",
"provider",
"(",
"new",
"bouncy",
"castle",
"provider",
"(",
")",
")",
";",
"logger",
"debug",
"(",
"\"",
"parsing",
"credential",
"private",
"key",
"\"",
")",
";",
"try",
"(",
"val",
"pem",
"parser",
"=",
"new",
"p",
"e",
"m",
"parser",
"(",
"br",
")",
")",
"{",
"val",
"private",
"key",
"pem",
"object",
"=",
"pem",
"parser",
"read",
"object",
"(",
")",
";",
"val",
"converter",
"=",
"new",
"jca",
"p",
"e",
"m",
"key",
"converter",
"(",
")",
"set",
"provider",
"(",
"new",
"bouncy",
"castle",
"provider",
"(",
")",
")",
";",
"val",
"kp",
"=",
"function",
"utils",
"do",
"if",
"(",
"predicates",
"instance",
"of",
"(",
"p",
"e",
"m",
"encrypted",
"key",
"pair",
"class",
")",
",",
"unchecked",
"supplier",
"(",
"(",
")",
"-",
">",
"{",
"logger",
"debug",
"(",
"\"",
"encryption",
"private",
"key",
"is",
"an",
"encrypted",
"keypair",
"\"",
")",
";",
"val",
"ckp",
"=",
"(",
"p",
"e",
"m",
"encrypted",
"key",
"pair",
")",
"private",
"key",
"pem",
"object",
";",
"val",
"dec",
"prov",
"=",
"new",
"jce",
"p",
"e",
"m",
"decryptor",
"provider",
"builder",
"(",
")",
"build",
"(",
"config",
"get",
"encryption",
"private",
"key",
"password",
"(",
")",
"to",
"char",
"array",
"(",
")",
")",
";",
"logger",
"debug",
"(",
"\"",
"attempting",
"to",
"decrypt",
"the",
"encrypted",
"keypair",
"based",
"on",
"the",
"provided",
"encryption",
"private",
"key",
"password",
"\"",
")",
";",
"return",
"converter",
"get",
"key",
"pair",
"(",
"ckp",
"decrypt",
"key",
"pair",
"(",
"dec",
"prov",
")",
")",
";",
"}",
")",
",",
"unchecked",
"supplier",
"(",
"(",
")",
"-",
">",
"{",
"logger",
"debug",
"(",
"\"",
"extracting",
"a",
"keypair",
"from",
"the",
"private",
"key",
"\"",
")",
";",
"return",
"converter",
"get",
"key",
"pair",
"(",
"(",
"p",
"e",
"m",
"key",
"pair",
")",
"private",
"key",
"pem",
"object",
")",
";",
"}",
")",
")",
"apply",
"(",
"private",
"key",
"pem",
"object",
")",
";",
"val",
"cert",
"parser",
"=",
"new",
"x",
"5",
"0",
"9",
"cert",
"parser",
"(",
")",
";",
"logger",
"debug",
"(",
"\"",
"locating",
"encryption",
"certificate",
"[",
"{",
"}",
"]",
"\"",
",",
"config",
"get",
"encryption",
"certificate",
"(",
")",
")",
";",
"cert",
"parser",
"engine",
"init",
"(",
"config",
"get",
"encryption",
"certificate",
"(",
")",
"get",
"input",
"stream",
"(",
")",
")",
";",
"logger",
"debug",
"(",
"\"",
"invoking",
"certificate",
"engine",
"to",
"parse",
"the",
"certificate",
"[",
"{",
"}",
"]",
"\"",
",",
"config",
"get",
"encryption",
"certificate",
"(",
")",
")",
";",
"val",
"cert",
"=",
"(",
"x",
"5",
"0",
"9",
"certificate",
"object",
")",
"cert",
"parser",
"engine",
"read",
"(",
")",
";",
"logger",
"debug",
"(",
"\"",
"creating",
"final",
"credential",
"based",
"on",
"the",
"certificate",
"[",
"{",
"}",
"]",
"and",
"the",
"private",
"key",
"\"",
",",
"cert",
"get",
"issuer",
"d",
"n",
"(",
")",
")",
";",
"return",
"new",
"basic",
"x",
"5",
"0",
"9",
"credential",
"(",
"cert",
",",
"kp",
"get",
"private",
"(",
")",
")",
";",
"}",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"lock",
"the",
"checkpoint",
"lock",
"interrupibly"
] | [
"public",
"void",
"cp",
"lock",
"interruptibly",
"(",
")",
"throws",
"interrupted",
"exception",
"{",
"this",
"cp",
"lock",
"lock",
"interruptibly",
"(",
")",
";",
"}"
] |
[
"same",
"test",
"as",
"above",
"but",
"for",
"new",
"linked",
"hash",
"map",
"with",
"expected",
"size"
] | [
"public",
"void",
"test",
"new",
"linked",
"hash",
"map",
"with",
"expected",
"size",
"wont",
"grow",
"(",
")",
"throws",
"exception",
"{",
"assert",
"true",
"(",
"buckets",
"of",
"(",
"maps",
"new",
"linked",
"hash",
"map",
"with",
"expected",
"size",
"(",
"0",
")",
")",
"<",
"=",
"1",
")",
";",
"for",
"(",
"int",
"size",
"=",
"1",
";",
"size",
"<",
"200",
";",
"size",
"+",
"+",
")",
"{",
"assert",
"wont",
"grow",
"(",
"size",
",",
"maps",
"new",
"linked",
"hash",
"map",
"with",
"expected",
"size",
"(",
"size",
")",
",",
"maps",
"new",
"linked",
"hash",
"map",
"with",
"expected",
"size",
"(",
"size",
")",
")",
";",
"}",
"}"
] |
[
"set",
"the",
"<",
"code",
">",
"containers",
"from",
"previous",
"attempt",
"<",
"code",
">",
"of",
"the",
"response"
] | [
"public",
"allocate",
"response",
"builder",
"containers",
"from",
"previous",
"attempt",
"(",
"list",
"<",
"container",
">",
"containers",
"from",
"previous",
"attempt",
")",
"{",
"allocate",
"response",
"set",
"containers",
"from",
"previous",
"attempts",
"(",
"containers",
"from",
"previous",
"attempt",
")",
";",
"return",
"this",
";",
"}"
] |
[
"return",
"the",
"additional",
"(",
"undeclared",
")",
"property"
] | [
"public",
"map",
"<",
"string",
",",
"map",
">",
"get",
"additional",
"properties",
"(",
")",
"{",
"return",
"additional",
"properties",
";",
"}"
] |
[
"checks",
"if",
"is",
"token",
"ntlm"
] | [
"private",
"static",
"boolean",
"is",
"token",
"ntlm",
"(",
"final",
"byte",
"[",
"]",
"token",
")",
"{",
"if",
"(",
"token",
"=",
"=",
"null",
"|",
"|",
"token",
"length",
"<",
"ntlm",
"token",
"max",
"length",
")",
"{",
"return",
"false",
";",
"}",
"return",
"int",
"stream",
"range",
"(",
"0",
",",
"ntlm",
"token",
"max",
"length",
")",
"none",
"match",
"(",
"i",
"-",
">",
"ntlmssp",
"signature",
"[",
"i",
"]",
"!",
"=",
"token",
"[",
"i",
"]",
")",
";",
"}"
] |
[
"converts",
"the",
"lines",
"into",
"a",
"string",
"with",
"linebreaks",
"useful",
"for",
"creating",
"in",
"-",
"memory",
"input",
"for",
"a",
"file",
",",
"for",
"example"
] | [
"private",
"static",
"string",
"lines",
"as",
"string",
"(",
"string",
"lines",
")",
"{",
"string",
"builder",
"builder",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"string",
"line",
":",
"lines",
")",
"{",
"builder",
"append",
"(",
"line",
")",
";",
"builder",
"append",
"(",
"'",
"\\",
"n",
"'",
")",
";",
"}",
"return",
"builder",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"given",
"method",
"of",
"the",
"operating",
"system",
"m",
"x",
"bean",
",",
"or",
"null",
"if",
"the",
"method",
"is",
"not",
"found",
"or",
"unavailable"
] | [
"private",
"static",
"method",
"get",
"method",
"(",
"string",
"method",
"name",
")",
"{",
"try",
"{",
"return",
"class",
"for",
"name",
"(",
"\"",
"com",
"sun",
"management",
"operating",
"system",
"m",
"x",
"bean",
"\"",
")",
"get",
"method",
"(",
"method",
"name",
")",
";",
"}",
"catch",
"(",
"exception",
"t",
")",
"{",
"/",
"/",
"not",
"available",
"return",
"null",
";",
"}",
"}"
] |
[
"convert",
"the",
"given",
"object",
"to",
"string",
"with",
"each",
"line",
"indented",
"by",
"4",
"spaces",
"(",
"except",
"the",
"first",
"line",
")"
] | [
"private",
"static",
"string",
"to",
"indented",
"string",
"(",
"object",
"o",
")",
"{",
"if",
"(",
"o",
"=",
"=",
"null",
")",
"{",
"return",
"\"",
"null",
"\"",
";",
"}",
"return",
"o",
"to",
"string",
"(",
")",
"replace",
"(",
"\"",
"\\",
"n",
"\"",
",",
"\"",
"\\",
"n",
"\"",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"breed",
"'"
] | [
"public",
"void",
"breed",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"breed",
"}"
] |
[
"blocks",
"until",
"the",
"manager",
"is",
"idle",
"and",
"throws",
"if",
"any",
"of",
"the",
"downloads",
"failed"
] | [
"public",
"void",
"block",
"until",
"idle",
"and",
"throw",
"any",
"failure",
"(",
")",
"throws",
"exception",
"{",
"block",
"until",
"idle",
"(",
")",
";",
"if",
"(",
"failure",
"reason",
"!",
"=",
"download",
"failure",
"reason",
"none",
")",
"{",
"throw",
"new",
"exception",
"(",
"\"",
"failure",
"reason",
":",
"\"",
"+",
"failure",
"reason",
")",
";",
"}",
"}"
] |
[
"returns",
"keys",
"for",
"a",
"legacy",
"starlark",
"provider"
] | [
"immutable",
"collection",
"<",
"string",
">",
"get",
"field",
"names",
"(",
")",
";"
] |
[
"inflate",
"the",
"byte",
"[",
"]",
"to",
"a",
"string"
] | [
"public",
"static",
"string",
"inflate",
"(",
"final",
"byte",
"[",
"]",
"bytes",
")",
"{",
"val",
"inflater",
"=",
"new",
"inflater",
"(",
"true",
")",
";",
"val",
"xml",
"message",
"bytes",
"=",
"new",
"byte",
"[",
"inflated",
"array",
"length",
"]",
";",
"val",
"extended",
"bytes",
"=",
"new",
"byte",
"[",
"bytes",
"length",
"+",
"1",
"]",
";",
"system",
"arraycopy",
"(",
"bytes",
",",
"0",
",",
"extended",
"bytes",
",",
"0",
",",
"bytes",
"length",
")",
";",
"extended",
"bytes",
"[",
"bytes",
"length",
"]",
"=",
"0",
";",
"inflater",
"set",
"input",
"(",
"extended",
"bytes",
")",
";",
"try",
"{",
"val",
"result",
"length",
"=",
"inflater",
"inflate",
"(",
"xml",
"message",
"bytes",
")",
";",
"inflater",
"end",
"(",
")",
";",
"return",
"new",
"string",
"(",
"xml",
"message",
"bytes",
",",
"0",
",",
"result",
"length",
",",
"standard",
"charsets",
"utf",
"8",
")",
";",
"}",
"catch",
"(",
"final",
"data",
"format",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}",
"}"
] |
[
"typo",
",",
"switch",
"to",
"use",
"{",
"@",
"link",
"#",
"get",
"dispatcher",
"(",
")",
"}"
] | [
"public",
"string",
"get",
"dispather",
"(",
")",
"{",
"return",
"get",
"dispatcher",
"(",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"namespace",
"string",
"'"
] | [
"public",
"void",
"namespace",
"string",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"namespace",
"string",
"}"
] |
[
"trims",
"the",
"line",
"number",
"table",
"attributes",
"of",
"all",
"program",
"classes"
] | [
"private",
"void",
"trim",
"line",
"numbers",
"(",
")",
"{",
"program",
"class",
"pool",
"classes",
"accept",
"(",
"new",
"all",
"attribute",
"visitor",
"(",
"true",
",",
"new",
"line",
"number",
"table",
"attribute",
"trimmer",
"(",
")",
")",
")",
";",
"}"
] |
[
"model",
"tests",
"for",
"fruit",
"req"
] | [
"public",
"void",
"test",
"fruit",
"req",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"fruit",
"req",
"}"
] |
[
"gets",
"the",
"iteration",
"aggregator",
"registered",
"under",
"the",
"given",
"name",
"the",
"iteration",
"aggregator",
"combines",
"all",
"aggregates",
"globally",
"once",
"per",
"superstep",
"and",
"makes",
"them",
"available",
"in",
"the",
"next",
"superstep"
] | [
"public",
"<",
"t",
"extends",
"aggregator",
"<",
"?",
">",
">",
"t",
"get",
"iteration",
"aggregator",
"(",
"string",
"name",
")",
"{",
"return",
"this",
"runtime",
"context",
"get",
"iteration",
"aggregator",
"(",
"name",
")",
";",
"}"
] |
[
"sets",
"the",
"id",
"of",
"the",
"job"
] | [
"public",
"void",
"set",
"job",
"i",
"d",
"(",
"job",
"i",
"d",
"job",
"i",
"d",
")",
"{",
"this",
"job",
"i",
"d",
"=",
"job",
"i",
"d",
";",
"}"
] |
[
"subclass",
"should",
"override",
"this",
"method",
"if",
"it",
"is",
"interested",
"when",
"programs",
"become",
"active",
"note",
":",
"this",
"method",
"is",
"called",
"in",
"response",
"to",
"a",
"program",
"activated",
"plugin",
"event",
"at",
"the",
"time",
"this",
"method",
"is",
"called",
",",
"the",
"\"",
"current",
"program",
"\"",
"variable",
"will",
"be",
"set",
"the",
"new",
"active",
"program"
] | [
"protected",
"void",
"program",
"activated",
"(",
"program",
"program",
")",
"{",
"}"
] |
[
"get",
"map",
"map",
"anytype"
] | [
"public",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"object",
">",
">",
"get",
"map",
"map",
"anytype",
"(",
")",
"{",
"return",
"map",
"map",
"anytype",
";",
"}"
] |
[
"just",
"registering",
"properties",
"to",
"avoid",
"automatically",
"connecting",
"to",
"a",
"active",
"m",
"q",
"server"
] | [
"public",
"static",
"void",
"register",
"active",
"m",
"q",
"properties",
"(",
"annotation",
"config",
"application",
"context",
"context",
")",
"{",
"context",
"register",
"(",
"property",
"placeholder",
"auto",
"configuration",
"class",
",",
"enable",
"active",
"m",
"q",
"collector",
"properties",
"class",
")",
";",
"}"
] |
[
"append",
"to",
"an",
"existing",
"file"
] | [
"public",
"static",
"void",
"append",
"file",
"(",
"file",
"system",
"fs",
",",
"path",
"path",
",",
"byte",
"[",
"]",
"data",
")",
"throws",
"i",
"o",
"exception",
"{",
"try",
"(",
"f",
"s",
"data",
"output",
"stream",
"stream",
"=",
"fs",
"append",
"file",
"(",
"path",
")",
"build",
"(",
")",
")",
"{",
"if",
"(",
"data",
"!",
"=",
"null",
"&",
"&",
"data",
"length",
">",
"0",
")",
"{",
"stream",
"write",
"(",
"data",
")",
";",
"}",
"}",
"}"
] |
[
"returns",
"the",
"storage",
"location",
"that",
"has",
"failed"
] | [
"public",
"storage",
"location",
"get",
"failed",
"storage",
"location",
"(",
")",
"{",
"return",
"this",
"failed",
"storage",
"location",
";",
"}"
] |
[
"closes",
"the",
"collector",
"if",
"any",
"data",
"was",
"buffered",
",",
"that",
"data",
"will",
"be",
"flushed"
] | [
"void",
"close",
"(",
")",
";"
] |
[
"create",
"the",
"element",
"for",
"the",
"supplied",
"index"
] | [
"e",
"create",
"element",
"(",
"int",
"index",
")",
"throws",
"element",
"instantiation",
"exception",
";"
] |
[
"get",
"name",
"array"
] | [
"public",
"list",
"<",
"integer",
">",
"get",
"name",
"array",
"(",
")",
"{",
"return",
"name",
"array",
";",
"}"
] |
[
"adds",
"an",
"available",
"slot"
] | [
"void",
"add",
"(",
"final",
"allocated",
"slot",
"slot",
",",
"final",
"long",
"timestamp",
")",
"{",
"check",
"not",
"null",
"(",
"slot",
")",
";",
"slot",
"and",
"timestamp",
"previous",
"=",
"available",
"slots",
"put",
"(",
"slot",
"get",
"allocation",
"id",
"(",
")",
",",
"new",
"slot",
"and",
"timestamp",
"(",
"slot",
",",
"timestamp",
")",
")",
";",
"if",
"(",
"previous",
"=",
"=",
"null",
")",
"{",
"final",
"resource",
"i",
"d",
"resource",
"i",
"d",
"=",
"slot",
"get",
"task",
"manager",
"location",
"(",
")",
"get",
"resource",
"i",
"d",
"(",
")",
";",
"final",
"string",
"host",
"=",
"slot",
"get",
"task",
"manager",
"location",
"(",
")",
"get",
"f",
"q",
"d",
"n",
"hostname",
"(",
")",
";",
"set",
"<",
"allocated",
"slot",
">",
"slots",
"for",
"task",
"manager",
"=",
"available",
"slots",
"by",
"task",
"manager",
"compute",
"if",
"absent",
"(",
"resource",
"i",
"d",
",",
"k",
"-",
">",
"new",
"hash",
"set",
"<",
">",
"(",
")",
")",
";",
"slots",
"for",
"task",
"manager",
"add",
"(",
"slot",
")",
";",
"set",
"<",
"allocated",
"slot",
">",
"slots",
"for",
"host",
"=",
"available",
"slots",
"by",
"host",
"compute",
"if",
"absent",
"(",
"host",
",",
"k",
"-",
">",
"new",
"hash",
"set",
"<",
">",
"(",
")",
")",
";",
"slots",
"for",
"host",
"add",
"(",
"slot",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"\"",
"slot",
"already",
"contained",
"\"",
")",
";",
"}",
"}"
] |
[
"make",
"a",
"final",
"decision",
"based",
"on",
"the",
"deduping",
"strategies",
"if",
"there",
"is",
"a",
"single",
"matching",
"name",
"that",
"describes",
"all",
"matches"
] | [
"private",
"string",
"find",
"common",
"base",
"name",
"(",
")",
"{",
"if",
"(",
"raw",
"names",
"size",
"(",
")",
"=",
"=",
"1",
"|",
"|",
"similar",
"base",
"names",
"size",
"(",
")",
"=",
"=",
"1",
")",
"{",
"return",
"raw",
"names",
"first",
"(",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
[
"returns",
"the",
"<",
"a",
"href",
"=",
"\"",
"http",
":",
"en",
"wikipedia",
"orgwiki",
"arithmetic",
"mean",
"\"",
">",
"arithmetic",
"mean",
"of",
"the",
"values",
"the",
"count",
"must",
"be",
"non",
"-",
"zero",
"the",
"definition",
"of",
"the",
"mean",
"is",
"the",
"same",
"as",
"{",
"@",
"link",
"stats",
"#",
"mean",
"}"
] | [
"public",
"static",
"double",
"mean",
"of",
"(",
"iterator",
"<",
"?",
"extends",
"number",
">",
"values",
")",
"{",
"check",
"argument",
"(",
"values",
"has",
"next",
"(",
")",
")",
";",
"long",
"count",
"=",
"1",
";",
"double",
"mean",
"=",
"values",
"next",
"(",
")",
"double",
"value",
"(",
")",
";",
"while",
"(",
"values",
"has",
"next",
"(",
")",
")",
"{",
"double",
"value",
"=",
"values",
"next",
"(",
")",
"double",
"value",
"(",
")",
";",
"count",
"+",
"+",
";",
"if",
"(",
"is",
"finite",
"(",
"value",
")",
"&",
"&",
"is",
"finite",
"(",
"mean",
")",
")",
"{",
"/",
"/",
"art",
"of",
"computer",
"programming",
"vol",
"2",
",",
"knuth",
",",
"4",
"2",
"2",
",",
"(",
"15",
")",
"mean",
"+",
"=",
"(",
"value",
"-",
"mean",
")",
"/",
"count",
";",
"}",
"else",
"{",
"mean",
"=",
"calculate",
"new",
"mean",
"non",
"finite",
"(",
"mean",
",",
"value",
")",
";",
"}",
"}",
"return",
"mean",
";",
"}"
] |
[
"get",
"the",
"metrics",
"kept",
"by",
"the",
"admin",
"client"
] | [
"map",
"<",
"metric",
"name",
",",
"?",
"extends",
"metric",
">",
"metrics",
"(",
")",
";"
] |
[
"for",
"an",
"artifact",
"{",
"@",
"code",
"artifact",
"}",
"with",
"generating",
"actions",
"(",
"and",
"their",
"associated",
"{",
"@",
"link",
"action",
"lookup",
"data",
"}",
")",
"{",
"@",
"code",
"action",
"map",
"}",
",",
"add",
"those",
"actions",
"'",
"keys",
"to",
"{",
"@",
"code",
"rewind",
"graph",
"}",
"and",
"add",
"edges",
"from",
"{",
"@",
"code",
"artifact",
"}",
"to",
"those",
"keys",
"returns",
"a",
"list",
"of",
"key",
"+",
"action",
"pairs",
"for",
"each",
"action",
"whose",
"key",
"was",
"newly",
"added",
"to",
"the",
"graph"
] | [
"private",
"immutable",
"list",
"<",
"action",
"and",
"lookup",
"data",
">",
"add",
"artifact",
"deps",
"and",
"get",
"newly",
"visited",
"actions",
"(",
"mutable",
"graph",
"<",
"sky",
"key",
">",
"rewind",
"graph",
",",
"artifact",
"artifact",
",",
"map",
"<",
"action",
"lookup",
"data",
",",
"action",
">",
"action",
"map",
")",
"{",
"immutable",
"list",
"builder",
"<",
"action",
"and",
"lookup",
"data",
">",
"newly",
"visited",
"actions",
"=",
"immutable",
"list",
"builder",
"with",
"expected",
"size",
"(",
"action",
"map",
"size",
"(",
")",
")",
";",
"sky",
"key",
"artifact",
"key",
"=",
"artifact",
"key",
"(",
"artifact",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"action",
"lookup",
"data",
",",
"action",
">",
"action",
"entry",
":",
"action",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"action",
"lookup",
"data",
"action",
"key",
"=",
"action",
"entry",
"get",
"key",
"(",
")",
";",
"if",
"(",
"rewind",
"graph",
"add",
"node",
"(",
"action",
"key",
")",
")",
"{",
"newly",
"visited",
"actions",
"add",
"(",
"action",
"and",
"lookup",
"data",
"create",
"(",
"action",
"key",
",",
"action",
"entry",
"get",
"value",
"(",
")",
")",
")",
";",
"}",
"if",
"(",
"!",
"artifact",
"key",
"equals",
"(",
"action",
"key",
")",
")",
"{",
"rewind",
"graph",
"put",
"edge",
"(",
"artifact",
"key",
",",
"action",
"key",
")",
";",
"}",
"}",
"return",
"newly",
"visited",
"actions",
"build",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"schema",
"name",
"used"
] | [
"public",
"string",
"get",
"schema",
"name",
"(",
")",
"{",
"return",
"this",
"call",
"meta",
"data",
"context",
"get",
"schema",
"name",
"(",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"prefix",
"namespace",
"number",
"'"
] | [
"public",
"void",
"prefix",
"namespace",
"number",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"prefix",
"namespace",
"number",
"}"
] |
[
"create",
"a",
"flink",
"'",
"s",
"table",
"schema",
"from",
"hive",
"table",
"'",
"s",
"columns",
"and",
"partition",
"keys"
] | [
"public",
"static",
"table",
"schema",
"create",
"table",
"schema",
"(",
"list",
"<",
"field",
"schema",
">",
"cols",
",",
"list",
"<",
"field",
"schema",
">",
"partition",
"keys",
",",
"set",
"<",
"string",
">",
"not",
"null",
"columns",
",",
"unique",
"constraint",
"primary",
"key",
")",
"{",
"list",
"<",
"field",
"schema",
">",
"all",
"cols",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"cols",
")",
";",
"all",
"cols",
"add",
"all",
"(",
"partition",
"keys",
")",
";",
"string",
"[",
"]",
"col",
"names",
"=",
"new",
"string",
"[",
"all",
"cols",
"size",
"(",
")",
"]",
";",
"data",
"type",
"[",
"]",
"col",
"types",
"=",
"new",
"data",
"type",
"[",
"all",
"cols",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"all",
"cols",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"field",
"schema",
"fs",
"=",
"all",
"cols",
"get",
"(",
"i",
")",
";",
"col",
"names",
"[",
"i",
"]",
"=",
"fs",
"get",
"name",
"(",
")",
";",
"col",
"types",
"[",
"i",
"]",
"=",
"hive",
"type",
"util",
"to",
"flink",
"type",
"(",
"type",
"info",
"utils",
"get",
"type",
"info",
"from",
"type",
"string",
"(",
"fs",
"get",
"type",
"(",
")",
")",
")",
";",
"if",
"(",
"not",
"null",
"columns",
"contains",
"(",
"col",
"names",
"[",
"i",
"]",
")",
")",
"{",
"col",
"types",
"[",
"i",
"]",
"=",
"col",
"types",
"[",
"i",
"]",
"not",
"null",
"(",
")",
";",
"}",
"}",
"table",
"schema",
"builder",
"builder",
"=",
"table",
"schema",
"builder",
"(",
")",
"fields",
"(",
"col",
"names",
",",
"col",
"types",
")",
";",
"if",
"(",
"primary",
"key",
"!",
"=",
"null",
")",
"{",
"builder",
"primary",
"key",
"(",
"primary",
"key",
"get",
"name",
"(",
")",
",",
"primary",
"key",
"get",
"columns",
"(",
")",
"to",
"array",
"(",
"new",
"string",
"[",
"0",
"]",
")",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";",
"}"
] |
[
"evaluate",
"the",
"json",
"path",
"expression",
"against",
"the",
"response",
"content",
"and",
"assert",
"the",
"resulting",
"value",
"with",
"the",
"given",
"hamcrest",
"{",
"@",
"link",
"matcher",
"}"
] | [
"public",
"<",
"t",
">",
"result",
"matcher",
"value",
"(",
"matcher",
"<",
"?",
"super",
"t",
">",
"matcher",
")",
"{",
"return",
"result",
"-",
">",
"this",
"json",
"path",
"helper",
"assert",
"value",
"(",
"get",
"content",
"(",
"result",
")",
",",
"matcher",
")",
";",
"}"
] |
[
"if",
"true",
",",
"then",
"memory",
"conflicts",
"will",
"be",
"overwritten"
] | [
"public",
"boolean",
"is",
"overwrite",
"memory",
"conflicts",
"(",
")",
"{",
"return",
"overwrite",
"memory",
"conflicts",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] | [
"public",
"final",
"dalv",
"insn",
"with",
"register",
"offset",
"(",
"int",
"delta",
")",
"{",
"return",
"with",
"registers",
"(",
"get",
"registers",
"(",
")",
"with",
"offset",
"(",
"delta",
")",
")",
";",
"}"
] |
[
"save",
"the",
"state",
"of",
"the",
"view",
"bound",
"to",
"the",
"given",
"holder"
] | [
"public",
"void",
"save",
"(",
"epoxy",
"view",
"holder",
"holder",
")",
"{",
"if",
"(",
"!",
"holder",
"get",
"model",
"(",
")",
"should",
"save",
"view",
"state",
"(",
")",
")",
"{",
"return",
";",
"}",
"/",
"/",
"reuse",
"the",
"previous",
"sparse",
"array",
"if",
"available",
"we",
"shouldn",
"'",
"t",
"need",
"to",
"clear",
"it",
"since",
"the",
"/",
"/",
"exact",
"same",
"view",
"type",
"is",
"being",
"saved",
"to",
"it",
",",
"which",
"/",
"/",
"should",
"have",
"identical",
"ids",
"for",
"all",
"its",
"views",
",",
"and",
"will",
"just",
"overwrite",
"the",
"previous",
"state",
"view",
"state",
"state",
"=",
"get",
"(",
"holder",
"get",
"item",
"id",
"(",
")",
")",
";",
"if",
"(",
"state",
"=",
"=",
"null",
")",
"{",
"state",
"=",
"new",
"view",
"state",
"(",
")",
";",
"}",
"state",
"save",
"(",
"holder",
"item",
"view",
")",
";",
"put",
"(",
"holder",
"get",
"item",
"id",
"(",
")",
",",
"state",
")",
";",
"}"
] |
[
"overloaded",
"operators",
"with",
"more",
"than",
"1",
"parameter",
"are",
"global",
"and",
"therefore",
"not",
"contained",
"inside",
"a",
"class",
"note",
":",
"global",
"overloaded",
"operators",
"could",
"be",
"contained",
"inside",
"namespaces",
"(",
"e",
"g",
",",
"std",
")"
] | [
"private",
"boolean",
"is",
"this",
"call",
"(",
"function",
"func",
")",
"{",
"if",
"(",
"namespace",
"=",
"=",
"null",
"|",
"|",
"string",
"utils",
"is",
"blank",
"(",
"namespace",
"get",
"name",
"(",
")",
")",
")",
"{",
"/",
"/",
"must",
"be",
"global",
";",
"no",
"parent",
"namespace",
"return",
"false",
";",
"}",
"/",
"/",
"if",
"we",
"are",
"a",
"function",
",",
"and",
"the",
"parent",
"namespace",
"is",
"the",
"std",
"namespace",
",",
"not",
"even",
"/",
"/",
"really",
"in",
"a",
"class",
"if",
"(",
"is",
"in",
"std",
"name",
"space",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"/",
"/",
"if",
"operator",
"overloading",
"and",
"have",
"less",
"than",
"one",
"param",
",",
"then",
"can",
"take",
"this",
"int",
"mangled",
"parameter",
"count",
"=",
"parameters",
"size",
"(",
")",
";",
"if",
"(",
"is",
"overloaded",
"operator",
"&",
"&",
"mangled",
"parameter",
"count",
"<",
"=",
"1",
")",
"{",
"return",
"true",
";",
"/",
"/",
"not",
"global",
";",
"on",
"a",
"class",
"}",
"if",
"(",
"is",
"overloaded",
"operator",
"&",
"&",
"mangled",
"parameter",
"count",
"=",
"=",
"2",
")",
"{",
"return",
"false",
";",
"}",
"string",
"n",
"=",
"get",
"name",
"(",
")",
";",
"if",
"(",
"n",
"starts",
"with",
"(",
"\"",
"~",
"\"",
")",
")",
"{",
"/",
"/",
"class",
"destructor",
"return",
"true",
";",
"}",
"/",
"/",
"if",
"the",
"function",
"name",
"is",
"the",
"same",
"name",
"as",
"it",
"'",
"s",
"namespace",
"/",
"/",
"todo",
":",
"this",
"seems",
"too",
"flexible",
"-",
"why",
"not",
"use",
"equals",
"?",
"if",
"(",
"n",
"starts",
"with",
"(",
"namespace",
"get",
"name",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"/",
"/",
"check",
"if",
"function",
"is",
"just",
"an",
"address",
"pointer",
"to",
"another",
"location",
"program",
"program",
"=",
"func",
"get",
"program",
"(",
")",
";",
"data",
"data",
"=",
"program",
"get",
"listing",
"(",
")",
"get",
"defined",
"data",
"at",
"(",
"func",
"get",
"entry",
"point",
"(",
")",
")",
";",
"if",
"(",
"data",
"!",
"=",
"null",
"&",
"&",
"data",
"get",
"address",
"(",
"0",
")",
"!",
"=",
"null",
")",
"{",
"function",
"newfunc",
"=",
"program",
"get",
"function",
"manager",
"(",
")",
"get",
"function",
"at",
"(",
"data",
"get",
"address",
"(",
"0",
")",
")",
";",
"/",
"/",
"if",
"that",
"function",
"is",
"a",
"this",
"call",
"if",
"(",
"newfunc",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"this",
"call",
"equals",
"(",
"newfunc",
"get",
"calling",
"convention",
"name",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"func",
"=",
"newfunc",
";",
"}",
"}",
"/",
"/",
"if",
"we",
"have",
"#",
"params",
"detected",
"=",
"=",
"num",
"params",
"we",
"do",
"not",
"have",
"a",
"this",
"call",
"/",
"/",
"if",
"we",
"have",
"#",
"params",
"detected",
"=",
"=",
"(",
"num",
"params",
"+",
"1",
")",
"we",
"have",
"this",
"call",
"if",
"(",
"func",
"get",
"parameter",
"count",
"(",
")",
"=",
"=",
"mangled",
"parameter",
"count",
"+",
"1",
")",
"{",
"return",
"true",
";",
"}",
"/",
"/",
"it",
"still",
"could",
"be",
"a",
"this",
"call",
",",
"we",
"just",
"don",
"'",
"t",
"know",
"!",
"/",
"/",
"but",
"is",
"also",
"could",
"be",
"a",
"static",
"member",
"function",
"!",
"/",
"/",
"the",
"only",
"way",
"to",
"really",
"tell",
"is",
"compare",
"the",
"number",
"of",
"detected",
"parameters",
"/",
"/",
"to",
"the",
"number",
"of",
"parameters",
"we",
"have",
",",
"or",
",",
"to",
"detect",
"the",
"calling",
"convention",
"/",
"/",
"based",
"on",
"say",
"a",
"passing",
"of",
"ecx",
"return",
"false",
";",
"}"
] |
[
"record",
"statistics",
"and",
"perform",
"rule",
"checking",
"for",
"the",
"given",
"resource",
"the",
"entry",
"is",
"prioritized"
] | [
"public",
"static",
"entry",
"entry",
"with",
"priority",
"(",
"string",
"name",
")",
"throws",
"block",
"exception",
"{",
"return",
"env",
"sph",
"entry",
"with",
"priority",
"(",
"name",
",",
"entry",
"type",
"out",
",",
"1",
",",
"true",
")",
";",
"}"
] |
[
"the",
"list",
"of",
"array",
"elements",
"<",
"code",
">",
"repeated",
"aapt",
"pb",
"array",
"element",
"element",
"=",
"1",
";",
"<",
"code",
">"
] | [
"public",
"java",
"util",
"list",
"<",
"com",
"android",
"aapt",
"resources",
"array",
"element",
">",
"get",
"element",
"list",
"(",
")",
"{",
"return",
"java",
"util",
"collections",
"unmodifiable",
"list",
"(",
"instance",
"get",
"element",
"list",
"(",
")",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"test",
"the",
"property",
"'",
"float",
"'"
] | [
"public",
"void",
"float",
"test",
"(",
")",
"{",
"/",
"/",
"todo",
":",
"test",
"float",
"}"
] |
[
"get",
"certificate",
"from",
"header",
"or",
"return",
"null",
"httpd",
"mod",
"header",
"writes",
"\"",
"(",
"null",
")",
"\"",
"when",
"the",
"ssl",
"variable",
"is",
"not",
"filled",
"so",
"that",
"is",
"treated",
"as",
"if",
"the",
"header",
"were",
"not",
"present",
"or",
"blank"
] | [
"private",
"string",
"get",
"cert",
"from",
"header",
"(",
"final",
"http",
"servlet",
"request",
"request",
")",
"{",
"val",
"cert",
"header",
"value",
"=",
"request",
"get",
"header",
"(",
"ssl",
"client",
"cert",
"header",
")",
";",
"if",
"(",
"string",
"utils",
"is",
"blank",
"(",
"cert",
"header",
"value",
")",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"\"",
"(",
"null",
")",
"\"",
"equals",
"ignore",
"case",
"(",
"cert",
"header",
"value",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"string",
"utils",
"trim",
"(",
"cert",
"header",
"value",
")",
";",
"}"
] |
[
"get",
"map",
"map",
"of",
"string"
] | [
"public",
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"string",
">",
">",
"get",
"map",
"map",
"of",
"string",
"(",
")",
"{",
"return",
"map",
"map",
"of",
"string",
";",
"}"
] |
[
"returns",
"a",
"{",
"@",
"link",
"listenable",
"future",
"}",
"for",
"the",
"first",
"value",
"received",
"from",
"the",
"stream",
"useful",
"for",
"testing",
"unary",
"call",
"patterns"
] | [
"public",
"listenable",
"future",
"<",
"t",
">",
"first",
"value",
"(",
")",
"{",
"return",
"first",
"value",
";",
"}"
] |
[
"disable",
"a",
"native",
"realm",
"or",
"built",
"-",
"in",
"user",
"asynchronously",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchreferencecurrentsecurity",
"-",
"api",
"-",
"disable",
"-",
"user",
"html",
"\"",
">",
"the",
"docs",
"for",
"more"
] | [
"public",
"cancellable",
"disable",
"user",
"async",
"(",
"disable",
"user",
"request",
"request",
",",
"request",
"options",
"options",
",",
"action",
"listener",
"<",
"boolean",
">",
"listener",
")",
"{",
"return",
"rest",
"high",
"level",
"client",
"perform",
"request",
"async",
"(",
"request",
",",
"security",
"request",
"converters",
":",
":",
"disable",
"user",
",",
"options",
",",
"rest",
"high",
"level",
"client",
":",
":",
"convert",
"exists",
"response",
",",
"listener",
",",
"empty",
"set",
"(",
")",
")",
";",
"}"
] |
[
"get",
"an",
"assembler",
"for",
"the",
"given",
"language"
] | [
"public",
"static",
"assembler",
"get",
"assembler",
"(",
"language",
"lang",
")",
"{",
"return",
"get",
"assembler",
"(",
"lang",
",",
"new",
"assembly",
"selector",
"(",
")",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.