docstring_tokens
list | code_tokens
list |
---|---|
[
"this",
"patch",
"method",
"is",
"fast",
",",
"but",
"using",
"more",
"memory",
"memory",
"size",
"=",
"old",
"buf",
"+",
"diff",
"buf",
"+",
"new",
"buf"
] |
[
"public",
"static",
"int",
"patch",
"fast",
"(",
"file",
"old",
"file",
",",
"file",
"new",
"file",
",",
"file",
"diff",
"file",
",",
"int",
"ext",
"len",
")",
"throws",
"i",
"o",
"exception",
"{",
"if",
"(",
"old",
"file",
"=",
"=",
"null",
"|",
"|",
"old",
"file",
"length",
"(",
")",
"<",
"=",
"0",
")",
"{",
"return",
"return",
"old",
"file",
"err",
";",
"}",
"if",
"(",
"new",
"file",
"=",
"=",
"null",
")",
"{",
"return",
"return",
"new",
"file",
"err",
";",
"}",
"if",
"(",
"diff",
"file",
"=",
"=",
"null",
"|",
"|",
"diff",
"file",
"length",
"(",
")",
"<",
"=",
"0",
")",
"{",
"return",
"return",
"diff",
"file",
"err",
";",
"}",
"input",
"stream",
"old",
"input",
"stream",
"=",
"new",
"buffered",
"input",
"stream",
"(",
"new",
"file",
"input",
"stream",
"(",
"old",
"file",
")",
")",
";",
"byte",
"[",
"]",
"diff",
"bytes",
"=",
"new",
"byte",
"[",
"(",
"int",
")",
"diff",
"file",
"length",
"(",
")",
"]",
";",
"input",
"stream",
"diff",
"input",
"stream",
"=",
"new",
"file",
"input",
"stream",
"(",
"diff",
"file",
")",
";",
"try",
"{",
"b",
"s",
"util",
"read",
"from",
"stream",
"(",
"diff",
"input",
"stream",
",",
"diff",
"bytes",
",",
"0",
",",
"diff",
"bytes",
"length",
")",
";",
"}",
"finally",
"{",
"diff",
"input",
"stream",
"close",
"(",
")",
";",
"}",
"byte",
"[",
"]",
"new",
"bytes",
"=",
"patch",
"fast",
"(",
"old",
"input",
"stream",
",",
"(",
"int",
")",
"old",
"file",
"length",
"(",
")",
",",
"diff",
"bytes",
",",
"ext",
"len",
")",
";",
"output",
"stream",
"new",
"output",
"stream",
"=",
"new",
"file",
"output",
"stream",
"(",
"new",
"file",
")",
";",
"try",
"{",
"new",
"output",
"stream",
"write",
"(",
"new",
"bytes",
")",
";",
"}",
"finally",
"{",
"new",
"output",
"stream",
"close",
"(",
")",
";",
"}",
"return",
"return",
"success",
";",
"}"
] |
[
"find",
"out",
"where",
"the",
"edit",
"log",
"ends",
"this",
"will",
"update",
"the",
"last",
"tx",
"id",
"of",
"the",
"edit",
"log",
"file",
"or",
"mark",
"it",
"as",
"corrupt",
"if",
"it",
"is"
] |
[
"public",
"void",
"scan",
"log",
"(",
"long",
"max",
"tx",
"id",
"to",
"scan",
",",
"boolean",
"verify",
"version",
")",
"throws",
"i",
"o",
"exception",
"{",
"edit",
"log",
"validation",
"val",
"=",
"edit",
"log",
"file",
"input",
"stream",
"scan",
"edit",
"log",
"(",
"file",
",",
"max",
"tx",
"id",
"to",
"scan",
",",
"verify",
"version",
")",
";",
"this",
"last",
"tx",
"id",
"=",
"val",
"get",
"end",
"tx",
"id",
"(",
")",
";",
"this",
"has",
"corrupt",
"header",
"=",
"val",
"has",
"corrupt",
"header",
"(",
")",
";",
"}"
] |
[
"a",
"composed",
"predicate",
"that",
"represents",
"a",
"short",
"-",
"circuiting",
"logical",
"and",
"of",
"{",
"@",
"link",
"predicate",
"predicates",
"}"
] |
[
"static",
"<",
"t",
">",
"predicate",
"<",
"t",
">",
"and",
"(",
"predicate",
"<",
"t",
">",
"predicates",
")",
"{",
"return",
"of",
"(",
"predicates",
")",
"reduce",
"(",
"(",
"a",
",",
"b",
")",
"-",
">",
"a",
"and",
"(",
"b",
")",
")",
"or",
"else",
"get",
"(",
"predicates",
":",
":",
"always",
"true",
")",
";",
"}"
] |
[
"verify",
"that",
"we",
"only",
"keep",
"one",
"of",
"the",
"underlying",
"state",
"windows",
"this",
"test",
"also",
"verifies",
"that",
"gc",
"timers",
"are",
"correctly",
"deleted",
"when",
"merging",
"windows"
] |
[
"private",
"void",
"test",
"merging",
"of",
"existing",
"windows",
"(",
"final",
"time",
"domain",
"adaptor",
"time",
"adaptor",
")",
"throws",
"exception",
"{",
"merging",
"window",
"assigner",
"<",
"integer",
",",
"time",
"window",
">",
"mock",
"assigner",
"=",
"mock",
"merging",
"assigner",
"(",
")",
";",
"time",
"adaptor",
"set",
"is",
"event",
"time",
"(",
"mock",
"assigner",
")",
";",
"trigger",
"<",
"integer",
",",
"time",
"window",
">",
"mock",
"trigger",
"=",
"mock",
"trigger",
"(",
")",
";",
"internal",
"window",
"function",
"<",
"iterable",
"<",
"integer",
">",
",",
"void",
",",
"integer",
",",
"time",
"window",
">",
"mock",
"window",
"function",
"=",
"mock",
"window",
"function",
"(",
")",
";",
"keyed",
"one",
"input",
"stream",
"operator",
"test",
"harness",
"<",
"integer",
",",
"integer",
",",
"void",
">",
"test",
"harness",
"=",
"create",
"window",
"operator",
"(",
"mock",
"assigner",
",",
"mock",
"trigger",
",",
"0l",
",",
"mock",
"window",
"function",
")",
";",
"test",
"harness",
"open",
"(",
")",
";",
"time",
"adaptor",
"advance",
"time",
"(",
"test",
"harness",
",",
"long",
"min",
"value",
")",
";",
"assert",
"equals",
"(",
"0",
",",
"test",
"harness",
"extract",
"output",
"stream",
"records",
"(",
")",
"size",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"0",
",",
"test",
"harness",
"num",
"keyed",
"state",
"entries",
"(",
")",
")",
";",
"do",
"answer",
"(",
"new",
"answer",
"<",
"trigger",
"result",
">",
"(",
")",
"{",
"@",
"override",
"public",
"trigger",
"result",
"answer",
"(",
"invocation",
"on",
"mock",
"invocation",
")",
"throws",
"exception",
"{",
"trigger",
"trigger",
"context",
"context",
"=",
"(",
"trigger",
"trigger",
"context",
")",
"invocation",
"get",
"arguments",
"(",
")",
"[",
"3",
"]",
";",
"/",
"/",
"don",
"'",
"t",
"interfere",
"with",
"cleanup",
"timers",
"time",
"adaptor",
"register",
"timer",
"(",
"context",
",",
"0l",
")",
";",
"context",
"get",
"partitioned",
"state",
"(",
"value",
"state",
"descriptor",
")",
"update",
"(",
"\"",
"hello",
"\"",
")",
";",
"return",
"trigger",
"result",
"continue",
";",
"}",
"}",
")",
"when",
"(",
"mock",
"trigger",
")",
"on",
"element",
"(",
"matchers",
"<",
"integer",
">",
"any",
"object",
"(",
")",
",",
"any",
"long",
"(",
")",
",",
"any",
"time",
"window",
"(",
")",
",",
"any",
"trigger",
"context",
"(",
")",
")",
";",
"do",
"answer",
"(",
"new",
"answer",
"<",
"trigger",
"result",
">",
"(",
")",
"{",
"@",
"override",
"public",
"trigger",
"result",
"answer",
"(",
"invocation",
"on",
"mock",
"invocation",
")",
"throws",
"exception",
"{",
"trigger",
"on",
"merge",
"context",
"context",
"=",
"(",
"trigger",
"on",
"merge",
"context",
")",
"invocation",
"get",
"arguments",
"(",
")",
"[",
"1",
"]",
";",
"/",
"/",
"don",
"'",
"t",
"interfere",
"with",
"cleanup",
"timers",
"time",
"adaptor",
"register",
"timer",
"(",
"context",
",",
"0l",
")",
";",
"context",
"get",
"partitioned",
"state",
"(",
"value",
"state",
"descriptor",
")",
"update",
"(",
"\"",
"hello",
"\"",
")",
";",
"return",
"trigger",
"result",
"continue",
";",
"}",
"}",
")",
"when",
"(",
"mock",
"trigger",
")",
"on",
"merge",
"(",
"any",
"time",
"window",
"(",
")",
",",
"any",
"on",
"merge",
"context",
"(",
")",
")",
";",
"do",
"answer",
"(",
"new",
"answer",
"<",
"object",
">",
"(",
")",
"{",
"@",
"override",
"public",
"object",
"answer",
"(",
"invocation",
"on",
"mock",
"invocation",
")",
"throws",
"exception",
"{",
"trigger",
"trigger",
"context",
"context",
"=",
"(",
"trigger",
"trigger",
"context",
")",
"invocation",
"get",
"arguments",
"(",
")",
"[",
"1",
"]",
";",
"/",
"/",
"don",
"'",
"t",
"interfere",
"with",
"cleanup",
"timers",
"time",
"adaptor",
"delete",
"timer",
"(",
"context",
",",
"0l",
")",
";",
"context",
"get",
"partitioned",
"state",
"(",
"value",
"state",
"descriptor",
")",
"clear",
"(",
")",
";",
"return",
"null",
";",
"}",
"}",
")",
"when",
"(",
"mock",
"trigger",
")",
"clear",
"(",
"any",
"time",
"window",
"(",
")",
",",
"any",
"trigger",
"context",
"(",
")",
")",
";",
"when",
"(",
"mock",
"assigner",
"assign",
"windows",
"(",
"any",
"int",
"(",
")",
",",
"any",
"long",
"(",
")",
",",
"any",
"assigner",
"context",
"(",
")",
")",
")",
"then",
"return",
"(",
"arrays",
"as",
"list",
"(",
"new",
"time",
"window",
"(",
"0",
",",
"2",
")",
")",
")",
";",
"test",
"harness",
"process",
"element",
"(",
"new",
"stream",
"record",
"<",
">",
"(",
"0",
",",
"0l",
")",
")",
";",
"assert",
"equals",
"(",
"3",
",",
"test",
"harness",
"num",
"keyed",
"state",
"entries",
"(",
")",
")",
";",
"/",
"/",
"window",
"state",
"plus",
"trigger",
"state",
"plus",
"merging",
"/",
"/",
"window",
"set",
"assert",
"equals",
"(",
"2",
",",
"time",
"adaptor",
"num",
"timers",
"(",
"test",
"harness",
")",
")",
";",
"/",
"/",
"trigger",
"timer",
"plus",
"gc",
"timer",
"when",
"(",
"mock",
"assigner",
"assign",
"windows",
"(",
"any",
"int",
"(",
")",
",",
"any",
"long",
"(",
")",
",",
"any",
"assigner",
"context",
"(",
")",
")",
")",
"then",
"return",
"(",
"arrays",
"as",
"list",
"(",
"new",
"time",
"window",
"(",
"2",
",",
"4",
")",
")",
")",
";",
"test",
"harness",
"process",
"element",
"(",
"new",
"stream",
"record",
"<",
">",
"(",
"0",
",",
"0l",
")",
")",
";",
"assert",
"equals",
"(",
"5",
",",
"test",
"harness",
"num",
"keyed",
"state",
"entries",
"(",
")",
")",
";",
"/",
"/",
"window",
"state",
"plus",
"trigger",
"state",
"plus",
"merging",
"/",
"/",
"window",
"set",
"assert",
"equals",
"(",
"4",
",",
"time",
"adaptor",
"num",
"timers",
"(",
"test",
"harness",
")",
")",
";",
"/",
"/",
"trigger",
"timer",
"plus",
"gc",
"timer",
"when",
"(",
"mock",
"assigner",
"assign",
"windows",
"(",
"any",
"int",
"(",
")",
",",
"any",
"long",
"(",
")",
",",
"any",
"assigner",
"context",
"(",
")",
")",
")",
"then",
"return",
"(",
"arrays",
"as",
"list",
"(",
"new",
"time",
"window",
"(",
"1",
",",
"3",
")",
")",
")",
";",
"should",
"merge",
"windows",
"(",
"mock",
"assigner",
",",
"new",
"array",
"list",
"<",
">",
"(",
"arrays",
"as",
"list",
"(",
"new",
"time",
"window",
"(",
"0",
",",
"2",
")",
",",
"new",
"time",
"window",
"(",
"2",
",",
"4",
")",
",",
"new",
"time",
"window",
"(",
"1",
",",
"3",
")",
")",
")",
",",
"new",
"array",
"list",
"<",
">",
"(",
"arrays",
"as",
"list",
"(",
"new",
"time",
"window",
"(",
"0",
",",
"2",
")",
",",
"new",
"time",
"window",
"(",
"2",
",",
"4",
")",
",",
"new",
"time",
"window",
"(",
"1",
",",
"3",
")",
")",
")",
",",
"new",
"time",
"window",
"(",
"0",
",",
"4",
")",
")",
";",
"test",
"harness",
"process",
"element",
"(",
"new",
"stream",
"record",
"<",
">",
"(",
"0",
",",
"0l",
")",
")",
";",
"assert",
"equals",
"(",
"3",
",",
"test",
"harness",
"num",
"keyed",
"state",
"entries",
"(",
")",
")",
";",
"/",
"/",
"window",
"contents",
"plus",
"trigger",
"state",
"plus",
"merging",
"/",
"/",
"window",
"set",
"assert",
"equals",
"(",
"2",
",",
"time",
"adaptor",
"num",
"timers",
"(",
"test",
"harness",
")",
")",
";",
"/",
"/",
"trigger",
"timer",
"plus",
"gc",
"timer",
"assert",
"equals",
"(",
"0",
",",
"test",
"harness",
"extract",
"output",
"stream",
"records",
"(",
")",
"size",
"(",
")",
")",
";",
"}"
] |
[
"skips",
"bits",
"and",
"moves",
"current",
"reading",
"position",
"forward"
] |
[
"public",
"void",
"skip",
"bits",
"(",
"int",
"num",
"bits",
")",
"{",
"int",
"num",
"bytes",
"=",
"num",
"bits",
"/",
"8",
";",
"byte",
"offset",
"+",
"=",
"num",
"bytes",
";",
"bit",
"offset",
"+",
"=",
"num",
"bits",
"-",
"(",
"num",
"bytes",
"*",
"8",
")",
";",
"if",
"(",
"bit",
"offset",
">",
"7",
")",
"{",
"byte",
"offset",
"+",
"+",
";",
"bit",
"offset",
"-",
"=",
"8",
";",
"}",
"assert",
"valid",
"offset",
"(",
")",
";",
"}"
] |
[
"this",
"method",
"is",
"a",
"convenience",
"for",
"testing",
"code",
"should",
"call",
"{",
"@",
"link",
"segment",
"#",
"copy",
"entry",
"}",
"directly"
] |
[
"e",
"copy",
"entry",
"(",
"e",
"original",
",",
"e",
"new",
"next",
")",
"{",
"int",
"hash",
"=",
"original",
"get",
"hash",
"(",
")",
";",
"return",
"segment",
"for",
"(",
"hash",
")",
"copy",
"entry",
"(",
"original",
",",
"new",
"next",
")",
";",
"}"
] |
[
"get",
"my",
"string"
] |
[
"public",
"string",
"get",
"my",
"string",
"(",
")",
"{",
"return",
"my",
"string",
";",
"}"
] |
[
"finds",
"the",
"pef",
"library",
"that",
"contains",
"the",
"specified",
"imported",
"symbol",
"index"
] |
[
"public",
"imported",
"library",
"find",
"library",
"(",
"int",
"symbol",
"index",
")",
"{",
"for",
"(",
"imported",
"library",
"library",
":",
"imported",
"libraries",
")",
"{",
"if",
"(",
"symbol",
"index",
">",
"=",
"library",
"get",
"first",
"imported",
"symbol",
"(",
")",
"&",
"&",
"symbol",
"index",
"<",
"library",
"get",
"first",
"imported",
"symbol",
"(",
")",
"+",
"library",
"get",
"imported",
"symbol",
"count",
"(",
")",
")",
"{",
"return",
"library",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
[
"return",
"a",
"callable",
"statement",
"creator",
"to",
"perform",
"an",
"operation",
"with",
"this",
"parameters"
] |
[
"protected",
"callable",
"statement",
"creator",
"new",
"callable",
"statement",
"creator",
"(",
"@",
"nullable",
"map",
"<",
"string",
",",
"?",
">",
"in",
"params",
")",
"{",
"assert",
"state",
"(",
"this",
"callable",
"statement",
"factory",
"!",
"=",
"null",
",",
"\"",
"no",
"callable",
"statement",
"factory",
"available",
"\"",
")",
";",
"return",
"this",
"callable",
"statement",
"factory",
"new",
"callable",
"statement",
"creator",
"(",
"in",
"params",
")",
";",
"}"
] |
[
"invoke",
"{",
"@",
"link",
"bound",
"d",
"t",
"extension",
"#",
"get",
"canonical",
"service",
"name",
"(",
")",
"}",
"or",
"return",
"the",
"default",
"value"
] |
[
"public",
"static",
"string",
"get",
"canonical",
"service",
"name",
"(",
"object",
"extension",
",",
"string",
"def",
")",
"{",
"return",
"if",
"bound",
"d",
"t",
"extension",
"(",
"extension",
",",
"bound",
"d",
"t",
"extension",
":",
":",
"get",
"canonical",
"service",
"name",
")",
"or",
"else",
"(",
"def",
")",
";",
"}"
] |
[
"encodes",
"the",
"java",
"type",
"value",
"to",
"sql",
"type",
"object",
"value"
] |
[
"public",
"object",
"encode",
"(",
"t",
"value",
")",
"{",
"return",
"encoder",
"apply",
"(",
"value",
")",
";",
"}"
] |
[
"creates",
"a",
"new",
"equate",
"on",
"the",
"scalar",
"value",
"at",
"the",
"value",
"of",
"the",
"data"
] |
[
"public",
"final",
"equate",
"create",
"equate",
"(",
"data",
"data",
",",
"string",
"equate",
"name",
")",
"throws",
"exception",
"{",
"object",
"value",
"=",
"data",
"get",
"value",
"(",
")",
";",
"if",
"(",
"value",
"instanceof",
"scalar",
")",
"{",
"scalar",
"scalar",
"=",
"(",
"scalar",
")",
"value",
";",
"long",
"scalar",
"value",
"=",
"scalar",
"get",
"unsigned",
"value",
"(",
")",
";",
"equate",
"equate",
"=",
"current",
"program",
"get",
"equate",
"table",
"(",
")",
"create",
"equate",
"(",
"equate",
"name",
",",
"scalar",
"value",
")",
";",
"equate",
"add",
"reference",
"(",
"data",
"get",
"min",
"address",
"(",
")",
",",
"0",
")",
";",
"return",
"equate",
";",
"}",
"throw",
"new",
"invalid",
"input",
"exception",
"(",
"\"",
"unable",
"to",
"create",
"equate",
"on",
"non",
"-",
"scalar",
"value",
"at",
"\"",
"+",
"data",
"get",
"min",
"address",
"(",
")",
")",
";",
"}"
] |
[
"retrieve",
"all",
"parts",
"from",
"the",
"given",
"servlet",
"request"
] |
[
"public",
"static",
"multi",
"value",
"map",
"<",
"string",
",",
"part",
">",
"get",
"parts",
"(",
"http",
"servlet",
"request",
"request",
")",
"throws",
"multipart",
"exception",
"{",
"try",
"{",
"multi",
"value",
"map",
"<",
"string",
",",
"part",
">",
"parts",
"=",
"new",
"linked",
"multi",
"value",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"part",
"part",
":",
"request",
"get",
"parts",
"(",
")",
")",
"{",
"parts",
"add",
"(",
"part",
"get",
"name",
"(",
")",
",",
"part",
")",
";",
"}",
"return",
"parts",
";",
"}",
"catch",
"(",
"exception",
"ex",
")",
"{",
"throw",
"new",
"multipart",
"exception",
"(",
"\"",
"failed",
"to",
"get",
"request",
"parts",
"\"",
",",
"ex",
")",
";",
"}",
"}"
] |
[
"given",
"list",
"&",
"lt",
";",
"?",
"extends",
"color",
"&",
"gt",
";",
"transforms",
"it",
"to",
"list",
"&",
"lt",
";",
"color",
"&",
"gt",
";",
"note",
"that",
"if",
"kotlin",
"spec",
"specifies",
"@",
"jvm",
"suppress",
"wildcards",
",",
"then",
"this",
"step",
"is",
"unnecessary"
] |
[
"static",
"type",
"name",
"maybe",
"remove",
"wildcard",
"from",
"var",
"args",
"if",
"kotlin",
"spec",
"(",
"spec",
"model",
"spec",
"model",
",",
"type",
"name",
"type",
"name",
")",
"{",
"if",
"(",
"!",
"is",
"kotlin",
"spec",
"(",
"spec",
"model",
")",
")",
"{",
"return",
"type",
"name",
";",
"}",
"if",
"(",
"!",
"(",
"type",
"name",
"instanceof",
"parameterized",
"type",
"name",
")",
")",
"{",
"return",
"type",
"name",
";",
"}",
"final",
"parameterized",
"type",
"name",
"parameterized",
"type",
"name",
"=",
"(",
"parameterized",
"type",
"name",
")",
"type",
"name",
";",
"if",
"(",
"parameterized",
"type",
"name",
"type",
"arguments",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"type",
"name",
";",
"}",
"final",
"type",
"name",
"first",
"element",
"type",
"name",
"=",
"(",
"(",
"parameterized",
"type",
"name",
")",
"type",
"name",
")",
"type",
"arguments",
"get",
"(",
"0",
")",
";",
"if",
"(",
"first",
"element",
"type",
"name",
"instanceof",
"wildcard",
"type",
"name",
")",
"{",
"return",
"parameterized",
"type",
"name",
"get",
"(",
"parameterized",
"type",
"name",
"raw",
"type",
",",
"get",
"base",
"type",
"if",
"wildcard",
"(",
"first",
"element",
"type",
"name",
")",
")",
";",
"}",
"else",
"{",
"return",
"type",
"name",
";",
"}",
"}"
] |
[
"returns",
"true",
"if",
"any",
"labels",
"in",
"the",
"given",
"list",
"appear",
"multiple",
"times",
",",
"reporting",
"an",
"appropriate",
"error",
"message",
"if",
"so",
"todo",
"(",
"bazel",
"-",
"team",
")",
":",
"apply",
"this",
"to",
"all",
"build",
"functions",
"(",
"maybe",
"automatically",
"?",
")",
",",
"possibly",
"integrate",
"with",
"rule",
"class",
"check",
"for",
"duplicate",
"labels"
] |
[
"private",
"static",
"boolean",
"has",
"duplicate",
"labels",
"(",
"collection",
"<",
"label",
">",
"labels",
",",
"string",
"owner",
",",
"string",
"attr",
"name",
",",
"location",
"location",
",",
"event",
"handler",
"event",
"handler",
")",
"{",
"set",
"<",
"label",
">",
"dupes",
"=",
"collection",
"utils",
"duplicated",
"elements",
"of",
"(",
"labels",
")",
";",
"for",
"(",
"label",
"dupe",
":",
"dupes",
")",
"{",
"event",
"handler",
"handle",
"(",
"error",
"(",
"location",
",",
"string",
"format",
"(",
"\"",
"label",
"'",
"%",
"s",
"'",
"is",
"duplicated",
"in",
"the",
"'",
"%",
"s",
"'",
"list",
"of",
"'",
"%",
"s",
"'",
"\"",
",",
"dupe",
",",
"attr",
"name",
",",
"owner",
")",
",",
"code",
"duplicate",
"label",
")",
")",
";",
"}",
"return",
"!",
"dupes",
"is",
"empty",
"(",
")",
";",
"}"
] |
[
"gets",
"index",
"templates",
"using",
"the",
"index",
"templates",
"api",
"see",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"www",
"elastic",
"coguideenelasticsearchreferencecurrentindices",
"-",
"templates",
"html",
"\"",
">",
"index",
"templates",
"api",
"on",
"elastic",
"co"
] |
[
"public",
"get",
"composable",
"index",
"templates",
"response",
"get",
"index",
"template",
"(",
"get",
"composable",
"index",
"template",
"request",
"get",
"index",
"templates",
"request",
",",
"request",
"options",
"options",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"rest",
"high",
"level",
"client",
"perform",
"request",
"and",
"parse",
"entity",
"(",
"get",
"index",
"templates",
"request",
",",
"indices",
"request",
"converters",
":",
":",
"get",
"index",
"templates",
",",
"options",
",",
"get",
"composable",
"index",
"templates",
"response",
":",
":",
"from",
"x",
"content",
",",
"empty",
"set",
"(",
")",
")",
";",
"}"
] |
[
"use",
"this",
"to",
"set",
"the",
"port",
"to",
"an",
"externally",
"defined",
"value"
] |
[
"public",
"builder",
"port",
"(",
"@",
"nullable",
"integer",
"port",
")",
"{",
"if",
"(",
"port",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"port",
">",
"0xffff",
")",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"\"",
"invalid",
"port",
"\"",
"+",
"port",
")",
";",
"if",
"(",
"port",
"<",
"=",
"0",
")",
"port",
"=",
"0",
";",
"}",
"this",
"port",
"=",
"port",
"!",
"=",
"null",
"?",
"port",
":",
"0",
";",
"return",
"this",
";",
"}"
] |
[
"returns",
"the",
"number",
"of",
"class",
"members",
"that",
"has",
"been",
"visited",
"so",
"far"
] |
[
"public",
"int",
"get",
"count",
"(",
")",
"{",
"return",
"count",
";",
"}"
] |
[
"returns",
"the",
"given",
"{",
"@",
"code",
"template",
"}",
"string",
"with",
"each",
"occurrence",
"of",
"{",
"@",
"code",
"\"",
"%",
"s",
"\"",
"}",
"replaced",
"with",
"the",
"corresponding",
"argument",
"value",
"from",
"{",
"@",
"code",
"args",
"}",
";",
"or",
",",
"if",
"the",
"placeholder",
"and",
"argument",
"counts",
"do",
"not",
"match",
",",
"returns",
"a",
"best",
"-",
"effort",
"form",
"of",
"that",
"string",
"will",
"not",
"throw",
"an",
"exception",
"under",
"normal",
"conditions",
"<",
"b",
">",
"note",
":",
"<",
"b",
">",
"for",
"most",
"string",
"-",
"formatting",
"needs",
",",
"use",
"{",
"@",
"link",
"string",
"#",
"format",
"string",
"format",
"}",
",",
"{",
"@",
"link",
"java",
"io",
"print",
"writer",
"#",
"format",
"print",
"writer",
"format",
"}",
",",
"and",
"related",
"methods",
"these",
"support",
"the",
"full",
"range",
"of",
"<",
"a",
"href",
"=",
"\"",
"https",
":",
"docs",
"oracle",
"comjavase",
"9docsapijavautil",
"formatter",
"html",
"#",
"syntax",
"\"",
">",
"format",
"specifiers",
",",
"and",
"alert",
"you",
"to",
"usage",
"errors",
"by",
"throwing",
"{",
"@",
"link",
"java",
"util",
"illegal",
"format",
"exception",
"}",
"in",
"certain",
"cases",
",",
"such",
"as",
"outputting",
"debugging",
"information",
"or",
"constructing",
"a",
"message",
"to",
"be",
"used",
"for",
"another",
"unchecked",
"exception",
",",
"an",
"exception",
"during",
"string",
"formatting",
"would",
"serve",
"little",
"purpose",
"except",
"to",
"supplant",
"the",
"real",
"information",
"you",
"were",
"trying",
"to",
"provide",
"these",
"are",
"the",
"cases",
"this",
"method",
"is",
"made",
"for",
";",
"it",
"instead",
"generates",
"a",
"best",
"-",
"effort",
"string",
"with",
"all",
"supplied",
"argument",
"values",
"present",
"this",
"method",
"is",
"also",
"useful",
"in",
"environments",
"such",
"as",
"gwt",
"where",
"{",
"@",
"code",
"string",
"format",
"}",
"is",
"not",
"available",
"as",
"an",
"example",
",",
"method",
"implementations",
"of",
"the",
"{",
"@",
"link",
"preconditions",
"}",
"class",
"use",
"this",
"formatter",
",",
"for",
"both",
"of",
"the",
"reasons",
"just",
"discussed",
"<",
"b",
">",
"warning",
":",
"<",
"b",
">",
"only",
"the",
"exact",
"two",
"-",
"character",
"placeholder",
"sequence",
"{",
"@",
"code",
"\"",
"%",
"s",
"\"",
"}",
"is",
"recognized"
] |
[
"public",
"static",
"string",
"lenient",
"format",
"(",
"@",
"nullable",
"decl",
"string",
"template",
",",
"@",
"nullable",
"decl",
"object",
"args",
")",
"{",
"template",
"=",
"string",
"value",
"of",
"(",
"template",
")",
";",
"/",
"/",
"null",
"-",
">",
"\"",
"null",
"\"",
"if",
"(",
"args",
"=",
"=",
"null",
")",
"{",
"args",
"=",
"new",
"object",
"[",
"]",
"{",
"\"",
"(",
"object",
"[",
"]",
")",
"null",
"\"",
"}",
";",
"}",
"else",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"args",
"length",
";",
"i",
"+",
"+",
")",
"{",
"args",
"[",
"i",
"]",
"=",
"lenient",
"to",
"string",
"(",
"args",
"[",
"i",
"]",
")",
";",
"}",
"}",
"/",
"/",
"start",
"substituting",
"the",
"arguments",
"into",
"the",
"'",
"%",
"s",
"'",
"placeholders",
"string",
"builder",
"builder",
"=",
"new",
"string",
"builder",
"(",
"template",
"length",
"(",
")",
"+",
"16",
"*",
"args",
"length",
")",
";",
"int",
"template",
"start",
"=",
"0",
";",
"int",
"i",
"=",
"0",
";",
"while",
"(",
"i",
"<",
"args",
"length",
")",
"{",
"int",
"placeholder",
"start",
"=",
"template",
"index",
"of",
"(",
"\"",
"%",
"s",
"\"",
",",
"template",
"start",
")",
";",
"if",
"(",
"placeholder",
"start",
"=",
"=",
"-",
"1",
")",
"{",
"break",
";",
"}",
"builder",
"append",
"(",
"template",
",",
"template",
"start",
",",
"placeholder",
"start",
")",
";",
"builder",
"append",
"(",
"args",
"[",
"i",
"+",
"+",
"]",
")",
";",
"template",
"start",
"=",
"placeholder",
"start",
"+",
"2",
";",
"}",
"builder",
"append",
"(",
"template",
",",
"template",
"start",
",",
"template",
"length",
"(",
")",
")",
";",
"/",
"/",
"if",
"we",
"run",
"out",
"of",
"placeholders",
",",
"append",
"the",
"extra",
"args",
"in",
"square",
"braces",
"if",
"(",
"i",
"<",
"args",
"length",
")",
"{",
"builder",
"append",
"(",
"\"",
"[",
"\"",
")",
";",
"builder",
"append",
"(",
"args",
"[",
"i",
"+",
"+",
"]",
")",
";",
"while",
"(",
"i",
"<",
"args",
"length",
")",
"{",
"builder",
"append",
"(",
"\"",
",",
"\"",
")",
";",
"builder",
"append",
"(",
"args",
"[",
"i",
"+",
"+",
"]",
")",
";",
"}",
"builder",
"append",
"(",
"'",
"]",
"'",
")",
";",
"}",
"return",
"builder",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"inspects",
"a",
"class",
"annotation"
] |
[
"private",
"void",
"visit",
"class",
"annotation",
"(",
"direct",
"class",
"file",
"cf",
",",
"base",
"annotations",
"ann",
")",
"{",
"if",
"(",
"!",
"args",
"e",
"types",
"contains",
"(",
"element",
"type",
"type",
")",
")",
"{",
"return",
";",
"}",
"for",
"(",
"annotation",
"an",
"ann",
":",
"ann",
"get",
"annotations",
"(",
")",
"get",
"annotations",
"(",
")",
")",
"{",
"string",
"ann",
"class",
"name",
"=",
"an",
"ann",
"get",
"type",
"(",
")",
"get",
"class",
"type",
"(",
")",
"get",
"class",
"name",
"(",
")",
";",
"if",
"(",
"args",
"aclass",
"equals",
"(",
"ann",
"class",
"name",
")",
")",
"{",
"print",
"match",
"(",
"cf",
")",
";",
"}",
"}",
"}"
] |
[
"gets",
"the",
"root",
"request",
"intercepter"
] |
[
"public",
"synchronized",
"r",
"e",
"s",
"t",
"request",
"interceptor",
"get",
"root",
"interceptor",
"(",
")",
"{",
"return",
"root",
"interceptor",
";",
"}"
] |
[
"create",
"an",
"empty",
"directory",
"with",
"a",
"random",
"name",
"under",
"test",
"directory",
"with",
"posix",
"permissions",
"\"",
"0755",
"\""
] |
[
"private",
"file",
"create",
"temp",
"dir",
"(",
")",
"throws",
"java",
"io",
"i",
"o",
"exception",
"{",
"final",
"file",
"test",
"dir",
"=",
"new",
"file",
"(",
"system",
"get",
"property",
"(",
"\"",
"test",
"build",
"data",
"\"",
")",
")",
";",
"return",
"files",
"create",
"temp",
"directory",
"(",
"test",
"dir",
"to",
"path",
"(",
")",
",",
"\"",
"test",
"\"",
",",
"posix",
"file",
"permissions",
"as",
"file",
"attribute",
"(",
"posix",
"file",
"permissions",
"from",
"string",
"(",
"\"",
"rwxr",
"-",
"xr",
"-",
"x",
"\"",
")",
")",
")",
"to",
"file",
"(",
")",
";",
"}"
] |
[
"sets",
"{",
"@",
"link",
"option",
"u",
"d",
"t",
"#",
"system",
"send",
"buffer",
"size",
"}"
] |
[
"udt",
"channel",
"config",
"set",
"system",
"send",
"buffer",
"size",
"(",
"int",
"size",
")",
";"
] |
[
"execute",
"{",
"@",
"link",
"file",
"system",
"#",
"mkdirs",
"(",
"path",
")",
"}",
";",
"expect",
"{",
"@",
"code",
"true",
"}",
"back",
"(",
"note",
":",
"does",
"not",
"work",
"for",
"local",
"f",
"s",
"if",
"the",
"directory",
"already",
"exists",
")",
"does",
"not",
"perform",
"any",
"validation",
"of",
"the",
"created",
"directory"
] |
[
"public",
"static",
"void",
"assert",
"mkdirs",
"(",
"file",
"system",
"fs",
",",
"path",
"dir",
")",
"throws",
"i",
"o",
"exception",
"{",
"assert",
"true",
"(",
"\"",
"mkdirs",
"(",
"\"",
"+",
"dir",
"+",
"\"",
")",
"returned",
"false",
"\"",
",",
"fs",
"mkdirs",
"(",
"dir",
")",
")",
";",
"}"
] |
[
"returns",
"the",
"current",
"index",
"metadata",
"for",
"this",
"index"
] |
[
"public",
"index",
"metadata",
"get",
"index",
"metadata",
"(",
")",
"{",
"return",
"index",
"metadata",
";",
"}"
] |
[
"decrypts",
"the",
"given",
"{",
"@",
"link",
"byte",
"buffer",
"}",
"in",
"place",
"{",
"@",
"code",
"length",
"}",
"bytes",
"are",
"decrypted",
"from",
"{",
"@",
"code",
"buf",
"}",
"starting",
"at",
"{",
"@",
"code",
"start",
"}",
"{",
"@",
"code",
"buf",
"position",
"(",
")",
"}",
"and",
"{",
"@",
"code",
"buf",
"limit",
"(",
")",
"}",
"are",
"unchanged",
"after",
"this",
"method",
"returns",
"this",
"method",
"is",
"thread",
"-",
"safe",
"this",
"method",
"decrypts",
"the",
"input",
"buf",
"chunk",
"-",
"by",
"-",
"chunk",
"and",
"writes",
"the",
"decrypted",
"output",
"back",
"into",
"the",
"input",
"buf",
"it",
"uses",
"two",
"local",
"buffers",
"taken",
"from",
"the",
"{",
"@",
"link",
"#",
"buffer",
"pool",
"}",
"to",
"assist",
"in",
"this",
"process",
":",
"one",
"is",
"designated",
"as",
"the",
"input",
"buffer",
"and",
"it",
"stores",
"a",
"single",
"chunk",
"of",
"the",
"given",
"buf",
",",
"the",
"other",
"is",
"designated",
"as",
"the",
"output",
"buffer",
",",
"which",
"stores",
"the",
"output",
"of",
"decrypting",
"the",
"input",
"buffer",
"both",
"buffers",
"are",
"of",
"size",
"{",
"@",
"link",
"#",
"buffer",
"size",
"}",
"decryption",
"is",
"done",
"by",
"using",
"a",
"{",
"@",
"link",
"decryptor",
"}",
"and",
"the",
"{",
"@",
"link",
"#",
"decrypt",
"(",
"decryptor",
",",
"byte",
"buffer",
",",
"byte",
"buffer",
",",
"byte",
")",
"}",
"method",
"once",
"the",
"decrypted",
"data",
"is",
"written",
"into",
"the",
"output",
"buffer",
",",
"is",
"is",
"copied",
"back",
"into",
"buf",
"both",
"buffers",
"are",
"returned",
"back",
"into",
"the",
"pool",
"once",
"the",
"entire",
"buf",
"is",
"decrypted"
] |
[
"private",
"void",
"decrypt",
"(",
"long",
"file",
"position",
",",
"byte",
"buffer",
"buf",
",",
"int",
"length",
",",
"int",
"start",
")",
"throws",
"i",
"o",
"exception",
"{",
"byte",
"buffer",
"local",
"in",
"buffer",
"=",
"null",
";",
"byte",
"buffer",
"local",
"out",
"buffer",
"=",
"null",
";",
"/",
"/",
"duplicate",
"the",
"buffer",
"so",
"we",
"don",
"'",
"t",
"have",
"to",
"worry",
"about",
"resetting",
"the",
"/",
"/",
"original",
"position",
"and",
"limit",
"at",
"the",
"end",
"of",
"the",
"method",
"buf",
"=",
"buf",
"duplicate",
"(",
")",
";",
"int",
"decrypted",
"bytes",
"=",
"0",
";",
"decryptor",
"local",
"decryptor",
"=",
"null",
";",
"try",
"{",
"local",
"in",
"buffer",
"=",
"get",
"buffer",
"(",
")",
";",
"local",
"out",
"buffer",
"=",
"get",
"buffer",
"(",
")",
";",
"local",
"decryptor",
"=",
"get",
"decryptor",
"(",
")",
";",
"byte",
"[",
"]",
"local",
"i",
"v",
"=",
"init",
"i",
"v",
"clone",
"(",
")",
";",
"update",
"decryptor",
"(",
"local",
"decryptor",
",",
"file",
"position",
",",
"local",
"i",
"v",
")",
";",
"byte",
"local",
"padding",
"=",
"get",
"padding",
"(",
"file",
"position",
")",
";",
"/",
"/",
"set",
"proper",
"file",
"position",
"for",
"inputdata",
"local",
"in",
"buffer",
"position",
"(",
"local",
"padding",
")",
";",
"while",
"(",
"decrypted",
"bytes",
"<",
"length",
")",
"{",
"buf",
"position",
"(",
"start",
"+",
"decrypted",
"bytes",
")",
";",
"buf",
"limit",
"(",
"start",
"+",
"decrypted",
"bytes",
"+",
"math",
"min",
"(",
"length",
"-",
"decrypted",
"bytes",
",",
"local",
"in",
"buffer",
"remaining",
"(",
")",
")",
")",
";",
"local",
"in",
"buffer",
"put",
"(",
"buf",
")",
";",
"/",
"/",
"do",
"decryption",
"try",
"{",
"decrypt",
"(",
"local",
"decryptor",
",",
"local",
"in",
"buffer",
",",
"local",
"out",
"buffer",
",",
"local",
"padding",
")",
";",
"buf",
"position",
"(",
"start",
"+",
"decrypted",
"bytes",
")",
";",
"buf",
"limit",
"(",
"start",
"+",
"length",
")",
";",
"decrypted",
"bytes",
"+",
"=",
"local",
"out",
"buffer",
"remaining",
"(",
")",
";",
"buf",
"put",
"(",
"local",
"out",
"buffer",
")",
";",
"}",
"finally",
"{",
"local",
"padding",
"=",
"after",
"decryption",
"(",
"local",
"decryptor",
",",
"local",
"in",
"buffer",
",",
"file",
"position",
"+",
"length",
",",
"local",
"i",
"v",
")",
";",
"}",
"}",
"}",
"finally",
"{",
"return",
"buffer",
"(",
"local",
"in",
"buffer",
")",
";",
"return",
"buffer",
"(",
"local",
"out",
"buffer",
")",
";",
"return",
"decryptor",
"(",
"local",
"decryptor",
")",
";",
"}",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"this",
"implementation",
"creates",
"a",
"single",
"{",
"@",
"link",
"default",
"data",
"buffer",
"}",
"to",
"contain",
"the",
"data",
"in",
"{",
"@",
"code",
"data",
"buffers",
"}"
] |
[
"public",
"default",
"data",
"buffer",
"join",
"(",
"list",
"<",
"?",
"extends",
"data",
"buffer",
">",
"data",
"buffers",
")",
"{",
"assert",
"not",
"empty",
"(",
"data",
"buffers",
",",
"\"",
"data",
"buffer",
"list",
"must",
"not",
"be",
"empty",
"\"",
")",
";",
"int",
"capacity",
"=",
"data",
"buffers",
"stream",
"(",
")",
"map",
"to",
"int",
"(",
"data",
"buffer",
":",
":",
"readable",
"byte",
"count",
")",
"sum",
"(",
")",
";",
"default",
"data",
"buffer",
"result",
"=",
"allocate",
"buffer",
"(",
"capacity",
")",
";",
"data",
"buffers",
"for",
"each",
"(",
"result",
":",
":",
"write",
")",
";",
"data",
"buffers",
"for",
"each",
"(",
"data",
"buffer",
"utils",
":",
":",
"release",
")",
";",
"return",
"result",
";",
"}"
] |
[
"test",
"case",
"where",
"the",
"flush",
"(",
")",
"fails",
"at",
"close",
"time",
"-",
"make",
"sure",
"that",
"we",
"clean",
"up",
"after",
"ourselves",
"and",
"don",
"'",
"t",
"touch",
"any",
"existing",
"file",
"at",
"the",
"destination"
] |
[
"public",
"void",
"test",
"fail",
"to",
"flush",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"/",
"/",
"create",
"a",
"file",
"at",
"destination",
"file",
"output",
"stream",
"fos",
"=",
"new",
"file",
"output",
"stream",
"(",
"dst",
"file",
")",
";",
"fos",
"write",
"(",
"test",
"string",
"2",
"get",
"bytes",
"(",
")",
")",
";",
"fos",
"close",
"(",
")",
";",
"output",
"stream",
"failing",
"stream",
"=",
"create",
"failing",
"stream",
"(",
")",
";",
"failing",
"stream",
"write",
"(",
"test",
"string",
"get",
"bytes",
"(",
")",
")",
";",
"try",
"{",
"failing",
"stream",
"close",
"(",
")",
";",
"fail",
"(",
"\"",
"close",
"didn",
"'",
"t",
"throw",
"exception",
"\"",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"/",
"/",
"expected",
"}",
"/",
"/",
"should",
"not",
"have",
"touched",
"original",
"file",
"assert",
"equals",
"(",
"test",
"string",
"2",
",",
"new",
"string",
"(",
"files",
"read",
"all",
"bytes",
"(",
"dst",
"file",
"to",
"path",
"(",
")",
")",
",",
"utf",
"8",
")",
")",
";",
"assert",
"equals",
"(",
"dst",
"file",
"get",
"name",
"(",
")",
",",
"string",
"join",
"(",
"\"",
",",
"\"",
",",
"test",
"dir",
"list",
"(",
")",
")",
",",
"\"",
"temporary",
"file",
"should",
"have",
"been",
"cleaned",
"up",
"\"",
")",
";",
"}"
] |
[
"creates",
"a",
"builder",
"to",
"build",
"{",
"@",
"link",
"start",
"message",
"subscription",
"impl",
"}",
"and",
"initialize",
"it",
"with",
"the",
"given",
"object"
] |
[
"public",
"static",
"builder",
"builder",
"from",
"(",
"start",
"message",
"subscription",
"impl",
"start",
"message",
"subscription",
"impl",
")",
"{",
"return",
"new",
"builder",
"(",
"start",
"message",
"subscription",
"impl",
")",
";",
"}"
] |
[
"returns",
"a",
"new",
"direct",
"byte",
"buffer",
"with",
"the",
"specified",
"capacity"
] |
[
"public",
"static",
"byte",
"buffer",
"new",
"direct",
"byte",
"buffer",
"(",
"int",
"capacity",
")",
"{",
"return",
"new",
"direct",
"read",
"write",
"byte",
"buffer",
"(",
"capacity",
")",
";",
"}"
] |
[
"returns",
"configuration",
"key",
"for",
"effective",
"groups",
"allowed",
"for",
"a",
"superuser"
] |
[
"public",
"string",
"get",
"proxy",
"superuser",
"group",
"conf",
"key",
"(",
"string",
"user",
"name",
")",
"{",
"return",
"config",
"prefix",
"+",
"user",
"name",
"+",
"conf",
"groups",
";",
"}"
] |
[
"hides",
"the",
"given",
"models",
",",
"and",
"notifies",
"that",
"each",
"item",
"changed",
"if",
"the",
"item",
"wasn",
"'",
"t",
"already",
"hidden"
] |
[
"protected",
"void",
"hide",
"models",
"(",
"epoxy",
"model",
"<",
"?",
">",
"models",
")",
"{",
"hide",
"models",
"(",
"arrays",
"as",
"list",
"(",
"models",
")",
")",
";",
"}"
] |
[
"write",
"a",
"{",
"@",
"link",
"map",
"}",
"of",
"{",
"@",
"code",
"k",
"}",
"-",
"type",
"keys",
"to",
"{",
"@",
"code",
"v",
"}",
"-",
"type",
"{",
"@",
"link",
"list",
"}",
"s",
"<",
"code",
">",
"map",
"&",
"lt",
";",
"string",
",",
"list",
"&",
"lt",
";",
"string",
"&",
"gt",
";",
"&",
"gt",
";",
"map",
"=",
";",
"out",
"write",
"map",
"of",
"lists",
"(",
"map",
",",
"stream",
"output",
":",
":",
"write",
"string",
",",
"stream",
"output",
":",
":",
"write",
"string",
")",
";",
"<",
"code",
">"
] |
[
"public",
"final",
"<",
"k",
",",
"v",
">",
"void",
"write",
"map",
"of",
"lists",
"(",
"final",
"map",
"<",
"k",
",",
"list",
"<",
"v",
">",
">",
"map",
",",
"final",
"writer",
"<",
"k",
">",
"key",
"writer",
",",
"final",
"writer",
"<",
"v",
">",
"value",
"writer",
")",
"throws",
"i",
"o",
"exception",
"{",
"write",
"map",
"(",
"map",
",",
"key",
"writer",
",",
"(",
"stream",
",",
"list",
")",
"-",
">",
"{",
"write",
"v",
"int",
"(",
"list",
"size",
"(",
")",
")",
";",
"for",
"(",
"final",
"v",
"value",
":",
"list",
")",
"{",
"value",
"writer",
"write",
"(",
"this",
",",
"value",
")",
";",
"}",
"}",
")",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] |
[
"@",
"override",
"public",
"t",
"visit",
"decltype",
"(",
"painless",
"parser",
"decltype",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"returns",
"an",
"immutable",
"sorted",
"set",
"containing",
"the",
"given",
"elements",
"sorted",
"by",
"the",
"given",
"{",
"@",
"code",
"comparator",
"}",
"when",
"multiple",
"elements",
"are",
"equivalent",
"according",
"to",
"{",
"@",
"code",
"compare",
"to",
"(",
")",
"}",
",",
"only",
"the",
"first",
"one",
"specified",
"is",
"included"
] |
[
"public",
"static",
"<",
"e",
">",
"immutable",
"sorted",
"set",
"<",
"e",
">",
"copy",
"of",
"(",
"comparator",
"<",
"?",
"super",
"e",
">",
"comparator",
",",
"iterator",
"<",
"?",
"extends",
"e",
">",
"elements",
")",
"{",
"return",
"new",
"builder",
"<",
"e",
">",
"(",
"comparator",
")",
"add",
"all",
"(",
"elements",
")",
"build",
"(",
")",
";",
"}"
] |
[
"count",
"how",
"many",
"marks",
"existed",
"in",
"string"
] |
[
"public",
"static",
"int",
"count",
"(",
"string",
"string",
",",
"string",
"mark",
")",
"{",
"if",
"(",
"!",
"text",
"utils",
"is",
"empty",
"(",
"string",
")",
"&",
"&",
"!",
"text",
"utils",
"is",
"empty",
"(",
"mark",
")",
")",
"{",
"int",
"count",
"=",
"0",
";",
"int",
"index",
"=",
"string",
"index",
"of",
"(",
"mark",
")",
";",
"while",
"(",
"index",
"!",
"=",
"-",
"1",
")",
"{",
"count",
"+",
"+",
";",
"string",
"=",
"string",
"substring",
"(",
"index",
"+",
"mark",
"length",
"(",
")",
")",
";",
"index",
"=",
"string",
"index",
"of",
"(",
"mark",
")",
";",
"}",
"return",
"count",
";",
"}",
"return",
"0",
";",
"}"
] |
[
"calculates",
"the",
"cyclomatic",
"complexity",
"of",
"a",
"function",
"by",
"decomposing",
"it",
"into",
"a",
"flow",
"graph",
"using",
"a",
"basic",
"block",
"model"
] |
[
"public",
"int",
"calculate",
"cyclomatic",
"complexity",
"(",
"function",
"function",
",",
"task",
"monitor",
"monitor",
")",
"throws",
"cancelled",
"exception",
"{",
"basic",
"block",
"model",
"basic",
"block",
"model",
"=",
"new",
"basic",
"block",
"model",
"(",
"function",
"get",
"program",
"(",
")",
")",
";",
"code",
"block",
"iterator",
"code",
"block",
"iterator",
"=",
"basic",
"block",
"model",
"get",
"code",
"blocks",
"containing",
"(",
"function",
"get",
"body",
"(",
")",
",",
"monitor",
")",
";",
"address",
"entry",
"point",
"=",
"function",
"get",
"entry",
"point",
"(",
")",
";",
"int",
"nodes",
"=",
"0",
";",
"int",
"edges",
"=",
"0",
";",
"int",
"exits",
"=",
"0",
";",
"while",
"(",
"code",
"block",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"if",
"(",
"monitor",
"is",
"cancelled",
"(",
")",
")",
"{",
"break",
";",
"}",
"code",
"block",
"code",
"block",
"=",
"code",
"block",
"iterator",
"next",
"(",
")",
";",
"+",
"+",
"nodes",
";",
"if",
"(",
"code",
"block",
"get",
"flow",
"type",
"(",
")",
"is",
"terminal",
"(",
")",
")",
"{",
"+",
"+",
"exits",
";",
"/",
"/",
"strongly",
"connect",
"the",
"exit",
"to",
"the",
"entry",
"point",
"(",
"*",
")",
"+",
"+",
"edges",
";",
"}",
"code",
"block",
"reference",
"iterator",
"destinations",
"=",
"code",
"block",
"get",
"destinations",
"(",
"monitor",
")",
";",
"while",
"(",
"destinations",
"has",
"next",
"(",
")",
")",
"{",
"if",
"(",
"monitor",
"is",
"cancelled",
"(",
")",
")",
"{",
"break",
";",
"}",
"code",
"block",
"reference",
"reference",
"=",
"destinations",
"next",
"(",
")",
";",
"flow",
"type",
"flow",
"type",
"=",
"reference",
"get",
"flow",
"type",
"(",
")",
";",
"if",
"(",
"flow",
"type",
"is",
"indirect",
"(",
")",
"|",
"|",
"flow",
"type",
"is",
"call",
"(",
")",
")",
"{",
"continue",
";",
"}",
"+",
"+",
"edges",
";",
"if",
"(",
"code",
"block",
"get",
"flow",
"type",
"(",
")",
"is",
"terminal",
"(",
")",
"&",
"&",
"reference",
"get",
"destination",
"address",
"(",
")",
"equals",
"(",
"entry",
"point",
")",
")",
"{",
"/",
"/",
"remove",
"the",
"edge",
"i",
"created",
"since",
"it",
"already",
"exists",
"and",
"was",
"counted",
"above",
"at",
"(",
"*",
")",
"-",
"-",
"edges",
";",
"}",
"}",
"}",
"int",
"complexity",
"=",
"edges",
"-",
"nodes",
"+",
"exits",
";",
"return",
"complexity",
"<",
"0",
"?",
"0",
":",
"complexity",
";",
"}"
] |
[
"returns",
"the",
"job",
"configuration",
"object",
"which",
"was",
"attached",
"to",
"the",
"original",
"{",
"@",
"link",
"org",
"apache",
"flink",
"runtime",
"jobgraph",
"job",
"graph",
"}"
] |
[
"public",
"configuration",
"get",
"job",
"configuration",
"(",
")",
"{",
"return",
"this",
"environment",
"get",
"job",
"configuration",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"addresses",
"of",
"initialized",
"memory",
"in",
"common",
"between",
"program",
"1",
"and",
"program",
"2",
"this",
"includes",
"bit",
"memory",
"and",
"live",
"memory",
"the",
"returned",
"address",
"set",
"is",
"derived",
"using",
"program",
"1"
] |
[
"public",
"address",
"set",
"get",
"initialized",
"addresses",
"in",
"common",
"(",
")",
"{",
"return",
"new",
"address",
"set",
"(",
"init",
"in",
"both",
")",
";",
"}"
] |
[
"test",
"various",
"unaligned",
"reads",
"to",
"make",
"sure",
"that",
"we",
"properly",
"account",
"even",
"when",
"we",
"don",
"'",
"t",
"start",
"or",
"end",
"on",
"a",
"checksum",
"boundary"
] |
[
"public",
"void",
"test",
"unaligned",
"reads",
"(",
")",
"throws",
"exception",
"{",
"int",
"start",
"offsets",
"[",
"]",
"=",
"new",
"int",
"[",
"]",
"{",
"0",
",",
"3",
",",
"129",
"}",
";",
"int",
"lengths",
"[",
"]",
"=",
"new",
"int",
"[",
"]",
"{",
"30",
",",
"300",
",",
"512",
",",
"513",
",",
"1025",
"}",
";",
"for",
"(",
"int",
"start",
"offset",
":",
"start",
"offsets",
")",
"{",
"for",
"(",
"int",
"length",
":",
"lengths",
")",
"{",
"d",
"f",
"s",
"client",
"log",
"info",
"(",
"\"",
"testing",
"start",
"offset",
"=",
"\"",
"+",
"start",
"offset",
"+",
"\"",
"and",
"\"",
"+",
"\"",
"len",
"=",
"\"",
"+",
"length",
")",
";",
"block",
"reader",
"remote",
"reader",
"=",
"(",
"block",
"reader",
"remote",
")",
"spy",
"(",
"util",
"get",
"block",
"reader",
"(",
"test",
"block",
",",
"start",
"offset",
",",
"length",
")",
")",
";",
"util",
"read",
"and",
"check",
"e",
"o",
"s",
"(",
"reader",
",",
"length",
",",
"true",
")",
";",
"verify",
"(",
"reader",
")",
"send",
"read",
"result",
"(",
"status",
"checksum",
"ok",
")",
";",
"reader",
"close",
"(",
")",
";",
"}",
"}",
"}"
] |
[
"returns",
"the",
"offset",
"of",
"the",
"float",
"array",
"which",
"this",
"buffer",
"is",
"based",
"on",
",",
"if",
"there",
"is",
"one",
"the",
"offset",
"is",
"the",
"index",
"of",
"the",
"array",
"and",
"corresponds",
"to",
"the",
"zero",
"position",
"of",
"the",
"buffer"
] |
[
"public",
"final",
"int",
"array",
"offset",
"(",
")",
"{",
"return",
"protected",
"array",
"offset",
"(",
")",
";",
"}"
] |
[
"url",
",",
"-",
"8"
] |
[
"public",
"static",
"string",
"url",
"decode",
"(",
"string",
"part",
")",
"{",
"try",
"{",
"return",
"u",
"r",
"l",
"decoder",
"decode",
"(",
"part",
",",
"charsets",
"utf",
"8",
"name",
")",
";",
"}",
"catch",
"(",
"unsupported",
"encoding",
"exception",
"e",
")",
"{",
"/",
"/",
"nosonar",
"/",
"/",
"this",
"exception",
"is",
"only",
"for",
"detecting",
"and",
"handling",
"invalid",
"inputs",
"return",
"null",
";",
"}",
"}"
] |
[
"constructs",
"a",
"{",
"@",
"code",
"hash",
"multimap",
"}",
"with",
"the",
"same",
"mappings",
"as",
"the",
"specified",
"multimap",
"if",
"a",
"key",
"-",
"value",
"mapping",
"appears",
"multiple",
"times",
"in",
"the",
"input",
"multimap",
",",
"it",
"only",
"appears",
"once",
"in",
"the",
"constructed",
"multimap",
"this",
"method",
"will",
"soon",
"be",
"deprecated",
"in",
"favor",
"of",
"{",
"@",
"code",
"multimap",
"builder",
"hash",
"keys",
"(",
")",
"hash",
"set",
"values",
"(",
")",
"build",
"(",
"multimap",
")",
"}"
] |
[
"public",
"static",
"<",
"k",
",",
"v",
">",
"hash",
"multimap",
"<",
"k",
",",
"v",
">",
"create",
"(",
"multimap",
"<",
"?",
"extends",
"k",
",",
"?",
"extends",
"v",
">",
"multimap",
")",
"{",
"return",
"new",
"hash",
"multimap",
"<",
">",
"(",
"multimap",
")",
";",
"}"
] |
[
"check",
"existing",
"class",
"using",
"the",
"class",
"name",
"relies",
"on",
"the",
"{",
"@",
"link",
"default",
"placement",
"rule",
"}",
"of",
"the",
"fs"
] |
[
"public",
"void",
"test",
"get",
"exist",
"rule",
"text",
"(",
")",
"{",
"final",
"string",
"exists",
"=",
"default",
"placement",
"rule",
"class",
"get",
"canonical",
"name",
"(",
")",
";",
"placement",
"rule",
"rule",
"=",
"null",
";",
"try",
"{",
"rule",
"=",
"placement",
"factory",
"get",
"placement",
"rule",
"(",
"exists",
",",
"null",
")",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"cnfe",
")",
"{",
"fail",
"(",
"\"",
"class",
"should",
"have",
"been",
"found",
"\"",
")",
";",
"}",
"assert",
"not",
"null",
"(",
"\"",
"rule",
"object",
"is",
"null",
"\"",
",",
"rule",
")",
";",
"assert",
"equals",
"(",
"\"",
"names",
"not",
"equal",
"\"",
",",
"rule",
"get",
"name",
"(",
")",
",",
"exists",
")",
";",
"}"
] |
[
"add",
"an",
"unicode",
"codepoint",
"as",
"its",
"escaped",
"hex",
"value",
",",
"with",
"a",
"escape",
"character",
"prefix",
"of",
"'",
"x",
"'",
",",
"'",
"u",
"'",
"or",
"'",
"u",
"'",
"depending",
"on",
"the",
"magnitude",
"of",
"the",
"code",
"point",
"value",
"{",
"@",
"literal",
"code",
"point",
"15",
"-",
">",
"'",
"\\",
"'",
"'",
"x",
"'",
"\"",
"0f",
"\"",
"}",
"<",
"br",
">",
"{",
"@",
"literal",
"code",
"point",
"65535",
"-",
">",
"'",
"\\",
"'",
"'",
"u",
"'",
"\"",
"ffff",
"\"",
"}",
"<",
"br",
">",
"{",
"@",
"literal",
"code",
"point",
"65536",
"-",
">",
"'",
"\\",
"'",
"'",
"u",
"'",
"\"",
"10000",
"\"",
"}",
"<",
"br",
">"
] |
[
"public",
"void",
"add",
"escaped",
"code",
"point",
"(",
"int",
"code",
"point",
")",
"{",
"ensure",
"text",
"mode",
"(",
")",
";",
"char",
"escape",
"char",
"=",
"(",
"code",
"point",
"<",
"max",
"ascii",
")",
"?",
"'",
"x",
"'",
":",
"character",
"is",
"bmp",
"code",
"point",
"(",
"code",
"point",
")",
"?",
"'",
"u",
"'",
":",
"'",
"u",
"'",
";",
"int",
"cp",
"digits",
"=",
"(",
"code",
"point",
"<",
"max",
"ascii",
")",
"?",
"2",
":",
"character",
"is",
"bmp",
"code",
"point",
"(",
"code",
"point",
")",
"?",
"4",
":",
"8",
";",
"string",
"s",
"=",
"integer",
"to",
"hex",
"string",
"(",
"code",
"point",
")",
"to",
"upper",
"case",
"(",
")",
";",
"sb",
"append",
"(",
"\"",
"\\",
"\\",
"\"",
")",
"append",
"(",
"escape",
"char",
")",
";",
"sb",
"append",
"(",
"string",
"utilities",
"pad",
"(",
"s",
",",
"'",
"0",
"'",
",",
"cp",
"digits",
")",
")",
";",
"}"
] |
[
"add",
"a",
"new",
"pet",
"to",
"the",
"store"
] |
[
"public",
"void",
"add",
"pet",
"(",
"pet",
"body",
")",
"throws",
"api",
"exception",
"{",
"add",
"pet",
"with",
"http",
"info",
"(",
"body",
")",
";",
"}"
] |
[
"returns",
"the",
"set",
"of",
"{",
"@",
"link",
"artifact",
"}",
"s",
"associated",
"with",
"{",
"@",
"code",
"input",
"}",
"the",
"collection",
"is",
"empty",
"if",
"no",
"such",
"association",
"exists"
] |
[
"immutable",
"set",
"<",
"artifact",
">",
"get",
"dep",
"owners",
"(",
"action",
"input",
"input",
")",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}"
] |
[
"public",
"void",
"on",
"draw",
"over",
"(",
"@",
"non",
"null",
"canvas",
"c",
",",
"@",
"non",
"null",
"recycler",
"view",
"parent",
",",
"@",
"non",
"null",
"recycler",
"view",
"state",
"state",
")",
"{",
"final",
"int",
"count",
"=",
"parent",
"get",
"child",
"count",
"(",
")",
";",
"int",
"start",
"=",
"0",
";",
"for",
"(",
"int",
"layout",
"pos",
"=",
"0",
";",
"layout",
"pos",
"<",
"count",
";",
"layout",
"pos",
"+",
"+",
")",
"{",
"final",
"view",
"child",
"=",
"parent",
"get",
"child",
"at",
"(",
"translated",
"child",
"position",
"(",
"parent",
",",
"layout",
"pos",
")",
")",
";",
"final",
"int",
"adapter",
"pos",
"=",
"parent",
"get",
"child",
"adapter",
"position",
"(",
"child",
")",
";",
"final",
"long",
"key",
"=",
"adapter",
"get",
"header",
"id",
"(",
"adapter",
"pos",
")",
";",
"if",
"(",
"key",
"=",
"=",
"sticky",
"header",
"adapter",
"no",
"header",
"id",
")",
"{",
"start",
"=",
"layout",
"pos",
"+",
"1",
";",
"}",
"if",
"(",
"adapter",
"pos",
"!",
"=",
"recycler",
"view",
"no",
"position",
"&",
"&",
"(",
"(",
"layout",
"pos",
"=",
"=",
"start",
"&",
"&",
"sticky",
")",
"|",
"|",
"has",
"header",
"(",
"parent",
",",
"adapter",
",",
"adapter",
"pos",
")",
")",
")",
"{",
"view",
"header",
"=",
"get",
"header",
"(",
"parent",
",",
"adapter",
",",
"adapter",
"pos",
")",
"item",
"view",
";",
"c",
"save",
"(",
")",
";",
"final",
"int",
"left",
"=",
"child",
"get",
"left",
"(",
")",
";",
"final",
"int",
"top",
"=",
"get",
"header",
"top",
"(",
"parent",
",",
"child",
",",
"header",
",",
"adapter",
"pos",
",",
"layout",
"pos",
")",
";",
"c",
"translate",
"(",
"left",
",",
"top",
")",
";",
"header",
"draw",
"(",
"c",
")",
";",
"c",
"restore",
"(",
")",
";",
"}",
"}",
"}"
] |
[
"projects",
"a",
"{",
"@",
"link",
"tuple",
"}",
"{",
"@",
"link",
"data",
"set",
"}",
"to",
"the",
"previously",
"selected",
"fields"
] |
[
"public",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
",",
"t17",
",",
"t18",
",",
"t19",
">",
"project",
"operator",
"<",
"t",
",",
"tuple",
"2",
"0",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
",",
"t17",
",",
"t18",
",",
"t19",
">",
">",
"project",
"tuple",
"2",
"0",
"(",
")",
"{",
"type",
"information",
"<",
"?",
">",
"[",
"]",
"f",
"types",
"=",
"extract",
"field",
"types",
"(",
"field",
"indexes",
",",
"ds",
"get",
"type",
"(",
")",
")",
";",
"tuple",
"type",
"info",
"<",
"tuple",
"2",
"0",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
",",
"t17",
",",
"t18",
",",
"t19",
">",
">",
"t",
"type",
"=",
"new",
"tuple",
"type",
"info",
"<",
"tuple",
"2",
"0",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
",",
"t17",
",",
"t18",
",",
"t19",
">",
">",
"(",
"f",
"types",
")",
";",
"return",
"new",
"project",
"operator",
"<",
"t",
",",
"tuple",
"2",
"0",
"<",
"t0",
",",
"t1",
",",
"t2",
",",
"t3",
",",
"t4",
",",
"t5",
",",
"t6",
",",
"t7",
",",
"t8",
",",
"t9",
",",
"t10",
",",
"t11",
",",
"t12",
",",
"t13",
",",
"t14",
",",
"t15",
",",
"t16",
",",
"t17",
",",
"t18",
",",
"t19",
">",
">",
"(",
"this",
"ds",
",",
"this",
"field",
"indexes",
",",
"t",
"type",
")",
";",
"}"
] |
[
"get",
"the",
"list",
"of",
"hosts",
"(",
"hostname",
")",
"hosting",
"this",
"block"
] |
[
"public",
"string",
"[",
"]",
"get",
"hosts",
"(",
")",
"throws",
"i",
"o",
"exception",
"{",
"return",
"hosts",
";",
"}"
] |
[
"if",
"a",
"value",
"of",
"0",
"is",
"set",
"then",
"this",
"attribute",
"will",
"revert",
"to",
"its",
"default",
"value",
"optional",
":",
"default",
"value",
"is",
"(",
"char",
"sequence",
")",
"null"
] |
[
"public",
"test",
"many",
"types",
"view",
"model",
"title",
"quantity",
"res",
"(",
"@",
"plurals",
"res",
"int",
"plural",
"res",
",",
"int",
"quantity",
",",
"object",
"format",
"args",
")",
"{",
"on",
"mutation",
"(",
")",
";",
"title",
"string",
"attribute",
"data",
"set",
"value",
"(",
"plural",
"res",
",",
"quantity",
",",
"format",
"args",
")",
";",
"return",
"this",
";",
"}"
] |
[
"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",
"{",
"return",
"bzip",
"2",
"factory",
"is",
"native",
"bzip",
"2",
"loaded",
"(",
"conf",
")",
"?",
"new",
"compressor",
"stream",
"(",
"out",
",",
"compressor",
",",
"conf",
"get",
"int",
"(",
"io",
"file",
"buffer",
"size",
"key",
",",
"io",
"file",
"buffer",
"size",
"default",
")",
")",
":",
"new",
"b",
"zip",
"2",
"compression",
"output",
"stream",
"(",
"out",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"creates",
"a",
"dword",
"datatype",
"at",
"the",
"given",
"address"
] |
[
"public",
"final",
"data",
"create",
"d",
"word",
"(",
"address",
"address",
")",
"throws",
"exception",
"{",
"return",
"create",
"data",
"(",
"address",
",",
"new",
"d",
"word",
"data",
"type",
"(",
")",
")",
";",
"}"
] |
[
"the",
"concept",
"of",
"pseudo",
"time",
"can",
"be",
"influenced",
"by",
"priority",
"tree",
"manipulations",
"or",
"if",
"a",
"stream",
"goes",
"from",
"\"",
"active",
"\"",
"to",
"\"",
"non",
"-",
"active",
"\"",
"this",
"method",
"accounts",
"for",
"that",
"by",
"initializing",
"the",
"{",
"@",
"link",
"#",
"pseudo",
"time",
"to",
"write",
"}",
"for",
"{",
"@",
"code",
"state",
"}",
"to",
"{",
"@",
"link",
"#",
"pseudo",
"time",
"}",
"of",
"this",
"node",
"and",
"then",
"calls",
"{",
"@",
"link",
"#",
"offer",
"pseudo",
"time",
"queue",
"(",
"state",
")",
"}"
] |
[
"void",
"offer",
"and",
"initialize",
"pseudo",
"time",
"(",
"state",
"state",
")",
"{",
"state",
"pseudo",
"time",
"to",
"write",
"=",
"pseudo",
"time",
";",
"offer",
"pseudo",
"time",
"queue",
"(",
"state",
")",
";",
"}"
] |
[
"frame",
"padding",
"to",
"use",
"will",
"be",
"non",
"-",
"negative",
"and",
"less",
"than",
"256"
] |
[
"int",
"padding",
"(",
")",
";"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"this",
"method",
"handles",
"the",
"closing",
"of",
"an",
"nio",
"channel"
] |
[
"protected",
"void",
"handle",
"close",
"(",
"channel",
"context",
"<",
"?",
">",
"context",
")",
"throws",
"i",
"o",
"exception",
"{",
"context",
"close",
"from",
"selector",
"(",
")",
";",
"assert",
"context",
"is",
"open",
"(",
")",
"=",
"=",
"false",
":",
"\"",
"should",
"always",
"be",
"done",
"as",
"we",
"are",
"on",
"the",
"selector",
"thread",
"\"",
";",
"}"
] |
[
"creates",
"a",
"response",
"object",
"for",
"a",
"successful",
"command",
"execution"
] |
[
"public",
"static",
"response",
"success",
"(",
"session",
"id",
"session",
"id",
",",
"object",
"value",
")",
"{",
"response",
"response",
"=",
"new",
"response",
"(",
")",
";",
"response",
"set",
"session",
"id",
"(",
"session",
"id",
"!",
"=",
"null",
"?",
"session",
"id",
"to",
"string",
"(",
")",
":",
"null",
")",
";",
"response",
"set",
"value",
"(",
"value",
")",
";",
"response",
"set",
"status",
"(",
"error",
"codes",
"success",
")",
";",
"response",
"set",
"state",
"(",
"error",
"codes",
"success",
"string",
")",
";",
"return",
"response",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"construct",
"an",
"accessor",
"to",
"deal",
"with",
"this",
"shared",
"buffer"
] |
[
"public",
"shared",
"buffer",
"accessor",
"<",
"v",
">",
"get",
"accessor",
"(",
")",
"{",
"return",
"new",
"shared",
"buffer",
"accessor",
"<",
">",
"(",
"this",
")",
";",
"}"
] |
[
"present",
"when",
"not",
"ok"
] |
[
"public",
"throwable",
"error",
"(",
")",
"{",
"return",
"error",
";",
"}"
] |
[
"test",
"rate",
"at",
"which",
"we",
"can",
"create",
"deeply",
"-",
"nested",
"files",
"from",
"a",
"single",
"thread"
] |
[
"public",
"void",
"test",
"deep",
"sequential",
"create",
"(",
")",
"throws",
"exception",
"{",
"long",
"num",
"operations",
"=",
"get",
"operation",
"count",
"(",
")",
";",
"s",
"3",
"a",
"file",
"system",
"fs",
"=",
"get",
"file",
"system",
"(",
")",
";",
"nano",
"timer",
"timer",
"=",
"new",
"nano",
"timer",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"operations",
";",
"i",
"+",
"+",
")",
"{",
"path",
"p",
"=",
"get",
"path",
"iteration",
"(",
"i",
",",
"path",
"depth",
")",
";",
"output",
"stream",
"out",
"=",
"fs",
"create",
"(",
"p",
")",
";",
"out",
"write",
"(",
"40",
")",
";",
"/",
"/",
"one",
"byte",
"file",
"with",
"some",
"value",
"40",
"out",
"close",
"(",
")",
";",
"}",
"timer",
"end",
"(",
"\"",
"time",
"to",
"create",
"%",
"d",
"files",
"of",
"depth",
"%",
"d",
"\"",
",",
"get",
"operation",
"count",
"(",
")",
",",
"path",
"depth",
")",
";",
"log",
"info",
"(",
"\"",
"time",
"per",
"create",
":",
"{",
"}",
"msec",
"\"",
",",
"timer",
"nanos",
"per",
"operation",
"(",
"num",
"operations",
")",
"/",
"1000",
")",
";",
"}"
] |
[
"returns",
"the",
"cosine",
"in",
"radians",
"from",
"a",
"lookup",
"table",
"for",
"optimal",
"precision",
",",
"use",
"radians",
"between",
"-",
"pi2",
"and",
"pi2",
"(",
"both",
"inclusive",
")"
] |
[
"static",
"public",
"float",
"cos",
"(",
"float",
"radians",
")",
"{",
"return",
"sin",
"table",
"[",
"(",
"int",
")",
"(",
"(",
"radians",
"+",
"half",
"pi",
")",
"*",
"rad",
"to",
"index",
")",
"&",
"sin",
"mask",
"]",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"does",
"nothing"
] |
[
"@",
"override",
"public",
"void",
"enter",
"non",
"reserved",
"(",
"sql",
"base",
"parser",
"non",
"reserved",
"context",
"ctx",
")",
"{",
"}"
] |
[
"returns",
"true",
"if",
"the",
"memory",
"blocks",
"write",
"flags",
"differ"
] |
[
"public",
"boolean",
"is",
"write",
"different",
"(",
")",
"{",
"return",
"(",
"diff",
"flags",
"&",
"write",
")",
"!",
"=",
"0",
";",
"}"
] |
[
"set",
"the",
"boolean",
"state"
] |
[
"public",
"void",
"set",
"(",
"boolean",
"value",
")",
"{",
"this",
"state",
"=",
"(",
"value",
"?",
"state",
"true",
":",
"state",
"false",
")",
";",
"}"
] |
[
"handles",
"newly",
"resolved",
"server",
"groups",
"and",
"metadata",
"attributes",
"from",
"name",
"resolution",
"system",
"{",
"@",
"code",
"servers",
"}",
"contained",
"in",
"{",
"@",
"link",
"equivalent",
"address",
"group",
"}",
"should",
"be",
"considered",
"equivalent",
"but",
"may",
"be",
"flattened",
"into",
"a",
"single",
"list",
"if",
"needed",
"implementations",
"should",
"not",
"modify",
"the",
"given",
"{",
"@",
"code",
"servers",
"}"
] |
[
"public",
"void",
"handle",
"resolved",
"addresses",
"(",
"resolved",
"addresses",
"resolved",
"addresses",
")",
"{",
"if",
"(",
"recursion",
"count",
"+",
"+",
"=",
"=",
"0",
")",
"{",
"handle",
"resolved",
"address",
"groups",
"(",
"resolved",
"addresses",
"get",
"addresses",
"(",
")",
",",
"resolved",
"addresses",
"get",
"attributes",
"(",
")",
")",
";",
"}",
"recursion",
"count",
"=",
"0",
";",
"}"
] |
[
"format",
"the",
"address",
"into",
"a",
"long",
"string"
] |
[
"public",
"string",
"build",
"(",
")",
"{",
"return",
"string",
"join",
"(",
"\"",
",",
"\"",
",",
"this",
"addresses",
")",
";",
"}"
] |
[
"get",
"client",
"config",
"information",
"of",
"subscriber",
"in",
"local",
"machine"
] |
[
"public",
"sample",
"result",
"get",
"sub",
"client",
"config",
"(",
"@",
"request",
"param",
"(",
"\"",
"data",
"id",
"\"",
")",
"string",
"data",
"id",
",",
"@",
"request",
"param",
"(",
"\"",
"group",
"\"",
")",
"string",
"group",
",",
"@",
"request",
"param",
"(",
"value",
"=",
"\"",
"tenant",
"\"",
",",
"required",
"=",
"false",
")",
"string",
"tenant",
",",
"model",
"map",
"model",
"map",
")",
"{",
"group",
"=",
"string",
"utils",
"is",
"blank",
"(",
"group",
")",
"?",
"constants",
"default",
"group",
":",
"group",
";",
"return",
"long",
"polling",
"service",
"get",
"collect",
"subscrible",
"info",
"(",
"data",
"id",
",",
"group",
",",
"tenant",
")",
";",
"}"
] |
[
"attempt",
"to",
"load",
"a",
"class",
"from",
"a",
"group",
"of",
"classloaders"
] |
[
"class",
"<",
"?",
">",
"class",
"for",
"name",
"(",
"string",
"name",
",",
"class",
"loader",
"[",
"]",
"class",
"loader",
")",
"throws",
"class",
"not",
"found",
"exception",
"{",
"for",
"(",
"class",
"loader",
"cl",
":",
"class",
"loader",
")",
"{",
"if",
"(",
"null",
"!",
"=",
"cl",
")",
"{",
"try",
"{",
"return",
"class",
"for",
"name",
"(",
"name",
",",
"true",
",",
"cl",
")",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"e",
")",
"{",
"/",
"/",
"we",
"'",
"ll",
"ignore",
"this",
"until",
"all",
"classloaders",
"fail",
"to",
"locate",
"the",
"class",
"}",
"}",
"}",
"throw",
"new",
"class",
"not",
"found",
"exception",
"(",
"\"",
"cannot",
"find",
"class",
":",
"\"",
"+",
"name",
")",
";",
"}"
] |
[
"re",
"-",
"groups",
"the",
"records",
"of",
"this",
"{",
"@",
"code",
"k",
"table",
"}",
"using",
"the",
"provided",
"{",
"@",
"link",
"key",
"value",
"mapper",
"}",
"and",
"default",
"serializers",
"and",
"deserializers",
"each",
"{",
"@",
"link",
"key",
"value",
"}",
"pair",
"of",
"this",
"{",
"@",
"code",
"k",
"table",
"}",
"is",
"mapped",
"to",
"a",
"new",
"{",
"@",
"link",
"key",
"value",
"}",
"pair",
"by",
"applying",
"the",
"provided",
"{",
"@",
"link",
"key",
"value",
"mapper",
"}",
"re",
"-",
"grouping",
"a",
"{",
"@",
"code",
"k",
"table",
"}",
"is",
"required",
"before",
"an",
"aggregation",
"operator",
"can",
"be",
"applied",
"to",
"the",
"data",
"(",
"cf",
"{",
"@",
"link",
"k",
"grouped",
"table",
"}",
")",
"the",
"{",
"@",
"link",
"key",
"value",
"mapper",
"}",
"selects",
"a",
"new",
"key",
"and",
"value",
"(",
"with",
"should",
"both",
"have",
"unmodified",
"type",
")",
"if",
"the",
"new",
"record",
"key",
"is",
"{",
"@",
"code",
"null",
"}",
"the",
"record",
"will",
"not",
"be",
"included",
"in",
"the",
"resulting",
"{",
"@",
"link",
"k",
"grouped",
"table",
"}",
"because",
"a",
"new",
"key",
"is",
"selected",
",",
"an",
"internal",
"repartitioning",
"topic",
"will",
"be",
"created",
"in",
"kafka",
"this",
"topic",
"will",
"be",
"named",
"\"",
"$",
"{",
"application",
"id",
"}",
"-",
"&",
"lt",
";",
"name",
"&",
"gt",
";",
"-",
"repartition",
"\"",
",",
"where",
"\"",
"application",
"id",
"\"",
"is",
"user",
"-",
"specified",
"in",
"{",
"@",
"link",
"streams",
"config",
"}",
"via",
"parameter",
"{",
"@",
"link",
"streams",
"config",
"#",
"application",
"id",
"config",
"application",
"id",
"config",
"}",
",",
"\"",
"&",
"lt",
";",
"name",
"&",
"gt",
";",
"\"",
"is",
"an",
"internally",
"generated",
"name",
",",
"and",
"\"",
"-",
"repartition",
"\"",
"is",
"a",
"fixed",
"suffix",
"you",
"can",
"retrieve",
"all",
"generated",
"internal",
"topic",
"names",
"via",
"{",
"@",
"link",
"topology",
"#",
"describe",
"(",
")",
"}",
"all",
"data",
"of",
"this",
"{",
"@",
"code",
"k",
"table",
"}",
"will",
"be",
"redistributed",
"through",
"the",
"repartitioning",
"topic",
"by",
"writing",
"all",
"update",
"records",
"to",
"and",
"rereading",
"all",
"updated",
"records",
"from",
"it",
",",
"such",
"that",
"the",
"resulting",
"{",
"@",
"link",
"k",
"grouped",
"table",
"}",
"is",
"partitioned",
"on",
"the",
"new",
"key",
"if",
"the",
"key",
"or",
"value",
"type",
"is",
"changed",
",",
"it",
"is",
"recommended",
"to",
"use",
"{",
"@",
"link",
"#",
"group",
"by",
"(",
"key",
"value",
"mapper",
",",
"grouped",
")",
"}",
"instead"
] |
[
"<",
"kr",
",",
"vr",
">",
"k",
"grouped",
"table",
"<",
"kr",
",",
"vr",
">",
"group",
"by",
"(",
"final",
"key",
"value",
"mapper",
"<",
"?",
"super",
"k",
",",
"?",
"super",
"v",
",",
"key",
"value",
"<",
"kr",
",",
"vr",
">",
">",
"selector",
")",
";"
] |
[
"return",
"the",
"shard",
"with",
"the",
"provided",
"id",
",",
"or",
"null",
"if",
"there",
"is",
"no",
"such",
"shard"
] |
[
"public",
"index",
"shard",
"get",
"shard",
"or",
"null",
"(",
"int",
"shard",
"id",
")",
"{",
"return",
"shards",
"get",
"(",
"shard",
"id",
")",
";",
"}"
] |
[
"stop",
"the",
"actor",
"immediately"
] |
[
"private",
"void",
"stop",
"(",
"rpc",
"endpoint",
"termination",
"result",
"rpc",
"endpoint",
"termination",
"result",
")",
"{",
"if",
"(",
"rpc",
"endpoint",
"stopped",
"compare",
"and",
"set",
"(",
"false",
",",
"true",
")",
")",
"{",
"this",
"rpc",
"endpoint",
"termination",
"result",
"=",
"rpc",
"endpoint",
"termination",
"result",
";",
"get",
"context",
"(",
")",
"stop",
"(",
"get",
"self",
"(",
")",
")",
";",
"}",
"}"
] |
[
"sizes",
"this",
"actor",
"to",
"its",
"preferred",
"width",
"and",
"height",
",",
"then",
"calls",
"{",
"@",
"link",
"#",
"validate",
"(",
")",
"}",
"generally",
"this",
"method",
"should",
"not",
"be",
"called",
"in",
"an",
"actor",
"'",
"s",
"constructor",
"because",
"it",
"calls",
"{",
"@",
"link",
"#",
"layout",
"(",
")",
"}",
",",
"which",
"means",
"a",
"subclass",
"would",
"have",
"layout",
"(",
")",
"called",
"before",
"the",
"subclass",
"'",
"constructor",
"instead",
",",
"in",
"constructors",
"simply",
"set",
"the",
"actor",
"'",
"s",
"size",
"to",
"{",
"@",
"link",
"#",
"get",
"pref",
"width",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"get",
"pref",
"height",
"(",
")",
"}",
"this",
"allows",
"the",
"actor",
"to",
"have",
"a",
"size",
"at",
"construction",
"time",
"for",
"more",
"convenient",
"use",
"with",
"groups",
"that",
"do",
"not",
"layout",
"their",
"children"
] |
[
"public",
"void",
"pack",
"(",
")",
";"
] |
[
"set",
"a",
"custom",
"executor",
"(",
"typically",
"a",
"{",
"@",
"link",
"org",
"springframework",
"core",
"task",
"task",
"executor",
"}",
")",
"to",
"invoke",
"each",
"listener",
"with",
"default",
"is",
"equivalent",
"to",
"{",
"@",
"link",
"org",
"springframework",
"core",
"task",
"sync",
"task",
"executor",
"}",
",",
"executing",
"all",
"listeners",
"synchronously",
"in",
"the",
"calling",
"thread",
"consider",
"specifying",
"an",
"asynchronous",
"task",
"executor",
"here",
"to",
"not",
"block",
"the",
"caller",
"until",
"all",
"listeners",
"have",
"been",
"executed",
"however",
",",
"note",
"that",
"asynchronous",
"execution",
"will",
"not",
"participate",
"in",
"the",
"caller",
"'",
"s",
"thread",
"context",
"(",
"class",
"loader",
",",
"transaction",
"association",
")",
"unless",
"the",
"task",
"executor",
"explicitly",
"supports",
"this"
] |
[
"public",
"void",
"set",
"task",
"executor",
"(",
"@",
"nullable",
"executor",
"task",
"executor",
")",
"{",
"this",
"task",
"executor",
"=",
"task",
"executor",
";",
"}"
] |
[
"save",
"off",
"old",
"local",
"symbols",
"whose",
"upgrade",
"needs",
"to",
"be",
"deferred",
"until",
"after",
"function",
"manager",
"upgrade",
"has",
"been",
"completed"
] |
[
"public",
"static",
"void",
"save",
"local",
"symbol",
"(",
"d",
"b",
"handle",
"tmp",
"handle",
",",
"long",
"symbol",
"i",
"d",
",",
"long",
"old",
"addr",
",",
"string",
"name",
",",
"boolean",
"is",
"primary",
")",
"throws",
"i",
"o",
"exception",
"{",
"table",
"table",
"=",
"tmp",
"handle",
"get",
"table",
"(",
"old",
"local",
"symbols",
"table",
")",
";",
"if",
"(",
"table",
"=",
"=",
"null",
")",
"{",
"table",
"=",
"tmp",
"handle",
"create",
"table",
"(",
"old",
"local",
"symbols",
"table",
",",
"old",
"local",
"symbols",
"schema",
")",
";",
"}",
"d",
"b",
"record",
"rec",
"=",
"old",
"local",
"symbols",
"schema",
"create",
"record",
"(",
"symbol",
"i",
"d",
")",
";",
"rec",
"set",
"long",
"value",
"(",
"old",
"symbol",
"addr",
"col",
",",
"old",
"addr",
")",
";",
"rec",
"set",
"string",
"(",
"old",
"symbol",
"name",
"col",
",",
"name",
")",
";",
"rec",
"set",
"boolean",
"value",
"(",
"old",
"symbol",
"is",
"primary",
"col",
",",
"is",
"primary",
")",
";",
"table",
"put",
"record",
"(",
"rec",
")",
";",
"}"
] |
[
"write",
"out",
"the",
"xml",
"for",
"the",
"external",
"entry",
"points"
] |
[
"void",
"write",
"(",
"xml",
"writer",
"writer",
",",
"address",
"set",
"view",
"set",
",",
"task",
"monitor",
"monitor",
")",
"throws",
"cancelled",
"exception",
"{",
"monitor",
"set",
"message",
"(",
"\"",
"getting",
"entry",
"points",
"\"",
")",
";",
"writer",
"start",
"element",
"(",
"\"",
"program",
"entry",
"points",
"\"",
")",
";",
"address",
"iterator",
"iter",
"=",
"symbol",
"table",
"get",
"external",
"entry",
"point",
"iterator",
"(",
")",
";",
"array",
"list",
"<",
"address",
">",
"list",
"=",
"new",
"array",
"list",
"<",
"address",
">",
"(",
")",
";",
"while",
"(",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"if",
"(",
"monitor",
"is",
"cancelled",
"(",
")",
")",
"{",
"throw",
"new",
"cancelled",
"exception",
"(",
")",
";",
"}",
"list",
"add",
"(",
"iter",
"next",
"(",
")",
")",
";",
"}",
"monitor",
"set",
"message",
"(",
"\"",
"sorting",
"entry",
"points",
"\"",
")",
";",
"collections",
"sort",
"(",
"list",
")",
";",
"monitor",
"set",
"message",
"(",
"\"",
"writing",
"entry",
"points",
"\"",
")",
";",
"iterator",
"<",
"address",
">",
"list",
"iter",
"=",
"list",
"iterator",
"(",
")",
";",
"while",
"(",
"list",
"iter",
"has",
"next",
"(",
")",
")",
"{",
"if",
"(",
"monitor",
"is",
"cancelled",
"(",
")",
")",
"{",
"throw",
"new",
"cancelled",
"exception",
"(",
")",
";",
"}",
"address",
"addr",
"=",
"list",
"iter",
"next",
"(",
")",
";",
"if",
"(",
"set",
"=",
"=",
"null",
"|",
"|",
"set",
"contains",
"(",
"addr",
")",
")",
"{",
"xml",
"attributes",
"attrs",
"=",
"new",
"xml",
"attributes",
"(",
")",
";",
"attrs",
"add",
"attribute",
"(",
"\"",
"address",
"\"",
",",
"addr",
"to",
"string",
"(",
")",
")",
";",
"writer",
"start",
"element",
"(",
"\"",
"program",
"entry",
"point",
"\"",
",",
"attrs",
")",
";",
"writer",
"end",
"element",
"(",
"\"",
"program",
"entry",
"point",
"\"",
")",
";",
"}",
"}",
"writer",
"end",
"element",
"(",
"\"",
"program",
"entry",
"points",
"\"",
")",
";",
"}"
] |
[
"returns",
"the",
"index",
"of",
"the",
"bootstrap",
"method",
"in",
"the",
"bootstrap",
"methods",
"attribute",
"of",
"the",
"class"
] |
[
"public",
"int",
"get",
"bootstrap",
"method",
"attribute",
"index",
"(",
")",
"{",
"return",
"u",
"2bootstrap",
"method",
"attribute",
"index",
";",
"}"
] |
[
"get",
"the",
"output",
"of",
"the",
"shell",
"command"
] |
[
"public",
"string",
"get",
"output",
"(",
")",
"{",
"return",
"(",
"output",
"=",
"=",
"null",
")",
"?",
"\"",
"\"",
":",
"output",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"evaluate",
"the",
"closure",
"while",
"counting",
"bytes",
"written",
"during",
"its",
"execution",
",",
"and",
"verify",
"that",
"the",
"count",
"included",
"the",
"crc",
"write",
"as",
"well",
"as",
"the",
"data",
"after",
"the",
"operation",
",",
"the",
"file",
"is",
"deleted"
] |
[
"private",
"void",
"assert",
"writes",
"c",
"r",
"c",
"(",
"string",
"operation",
",",
"path",
"path",
",",
"lambda",
"test",
"utils",
"void",
"callable",
"callable",
",",
"boolean",
"delete",
")",
"throws",
"exception",
"{",
"final",
"statistics",
"stats",
"=",
"get",
"file",
"statistics",
"(",
")",
";",
"final",
"long",
"bytes",
"out",
"0",
"=",
"stats",
"get",
"bytes",
"written",
"(",
")",
";",
"try",
"{",
"callable",
"call",
"(",
")",
";",
"assert",
"equals",
"(",
"\"",
"bytes",
"written",
"in",
"\"",
"+",
"operation",
"+",
"\"",
";",
"stats",
"=",
"\"",
"+",
"stats",
",",
"crc",
"size",
"+",
"data",
"length",
",",
"stats",
"get",
"bytes",
"written",
"(",
")",
"-",
"bytes",
"out",
"0",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"delete",
")",
"{",
"/",
"/",
"clean",
"up",
"try",
"{",
"file",
"sys",
"delete",
"(",
"path",
",",
"false",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ignored",
")",
"{",
"/",
"/",
"ignore",
"this",
"cleanup",
"failure",
"}",
"}",
"}",
"}"
] |
[
"removes",
"all",
"models",
"after",
"the",
"given",
"model",
",",
"which",
"must",
"have",
"already",
"been",
"added",
"an",
"example",
"use",
"case",
"is",
"you",
"want",
"to",
"keep",
"a",
"header",
"but",
"clear",
"everything",
"else",
",",
"like",
"in",
"the",
"case",
"of",
"refreshing",
"data"
] |
[
"protected",
"void",
"remove",
"all",
"after",
"model",
"(",
"epoxy",
"model",
"<",
"?",
">",
"model",
")",
"{",
"list",
"<",
"epoxy",
"model",
"<",
"?",
">",
">",
"models",
"to",
"remove",
"=",
"get",
"all",
"models",
"after",
"(",
"model",
")",
";",
"int",
"num",
"models",
"removed",
"=",
"models",
"to",
"remove",
"size",
"(",
")",
";",
"int",
"initial",
"model",
"count",
"=",
"models",
"size",
"(",
")",
";",
"/",
"/",
"this",
"is",
"a",
"sublist",
",",
"so",
"clearing",
"it",
"will",
"clear",
"the",
"models",
"in",
"the",
"original",
"list",
"pause",
"model",
"list",
"notifications",
"(",
")",
";",
"models",
"to",
"remove",
"clear",
"(",
")",
";",
"resume",
"model",
"list",
"notifications",
"(",
")",
";",
"notify",
"item",
"range",
"removed",
"(",
"initial",
"model",
"count",
"-",
"num",
"models",
"removed",
",",
"num",
"models",
"removed",
")",
";",
"}"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"create",
"warn",
"decision",
"state"
] |
[
"protected",
"void",
"create",
"warn",
"decision",
"state",
"(",
"final",
"flow",
"flow",
")",
"{",
"create",
"decision",
"state",
"(",
"flow",
",",
"cas",
"webflow",
"constants",
"state",
"id",
"warn",
",",
"\"",
"flow",
"scope",
"warn",
"cookie",
"value",
"\"",
",",
"cas",
"webflow",
"constants",
"state",
"id",
"show",
"warning",
"view",
",",
"cas",
"webflow",
"constants",
"state",
"id",
"redirect",
")",
";",
"}"
] |
[
"forwards",
"item",
"changed",
"callback",
"to",
"all",
"listeners",
"within",
"this",
"list"
] |
[
"public",
"void",
"item",
"changed",
"(",
"string",
"parent",
"path",
",",
"string",
"item",
"name",
")",
"{",
"if",
"(",
"enable",
"asynchronous",
"dispatching",
")",
"{",
"add",
"(",
"new",
"item",
"changed",
"event",
"(",
"parent",
"path",
",",
"item",
"name",
")",
")",
";",
"}",
"else",
"{",
"for",
"(",
"file",
"system",
"listener",
"l",
":",
"listener",
"list",
")",
"{",
"l",
"item",
"changed",
"(",
"parent",
"path",
",",
"item",
"name",
")",
";",
"}",
"}",
"}"
] |
[
"the",
"maximum",
"resolution",
"allowed"
] |
[
"private",
"static",
"string",
"get",
"resolution",
"limit",
"(",
"final",
"context",
"context",
")",
"{",
"string",
"resolution",
"limit",
"=",
"null",
";",
"if",
"(",
"is",
"metered",
"network",
"(",
"context",
")",
")",
"{",
"final",
"shared",
"preferences",
"preferences",
"=",
"preference",
"manager",
"get",
"default",
"shared",
"preferences",
"(",
"context",
")",
";",
"final",
"string",
"def",
"value",
"=",
"context",
"get",
"string",
"(",
"r",
"string",
"limit",
"data",
"usage",
"none",
"key",
")",
";",
"final",
"string",
"value",
"=",
"preferences",
"get",
"string",
"(",
"context",
"get",
"string",
"(",
"r",
"string",
"limit",
"mobile",
"data",
"usage",
"key",
")",
",",
"def",
"value",
")",
";",
"resolution",
"limit",
"=",
"def",
"value",
"equals",
"(",
"value",
")",
"?",
"null",
":",
"value",
";",
"}",
"return",
"resolution",
"limit",
";",
"}"
] |
[
"sets",
"the",
"global",
"time",
"difference",
"in",
"seconds",
"between",
"the",
"running",
"jvm",
"and",
"aws",
"if",
"this",
"value",
"is",
"set",
"then",
"all",
"the",
"subsequent",
"instantiation",
"of",
"an",
"<",
"code",
">",
"amazon",
"http",
"client",
"<",
"code",
">",
"will",
"start",
"using",
"this",
"value",
"to",
"generate",
"timestamps"
] |
[
"public",
"static",
"void",
"set",
"global",
"time",
"offset",
"(",
"int",
"time",
"offset",
")",
"{",
"global",
"time",
"offset",
"=",
"time",
"offset",
";",
"}"
] |
[
"return",
"the",
"old",
"value"
] |
[
"public",
"object",
"get",
"old",
"value",
"(",
")",
"{",
"return",
"old",
"value",
";",
"}"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"the",
"default",
"implementation",
"returns",
"the",
"result",
"of",
"calling",
"{",
"@",
"link",
"#",
"visit",
"children",
"}",
"on",
"{",
"@",
"code",
"ctx",
"}"
] |
[
"@",
"override",
"public",
"t",
"visit",
"string",
"literal",
"(",
"eql",
"base",
"parser",
"string",
"literal",
"context",
"ctx",
")",
"{",
"return",
"visit",
"children",
"(",
"ctx",
")",
";",
"}"
] |
[
"provides",
"a",
"list",
"of",
"metadata",
"keys",
"that",
"the",
"consumed",
"{",
"@",
"link",
"row",
"data",
"}",
"will",
"contain",
"as",
"appended",
"metadata",
"columns",
"which",
"must",
"be",
"persisted"
] |
[
"void",
"apply",
"writable",
"metadata",
"(",
"list",
"<",
"string",
">",
"metadata",
"keys",
",",
"data",
"type",
"consumed",
"data",
"type",
")",
";"
] |
[
"pet",
"not",
"found"
] |
[
"public",
"void",
"should",
"see",
"4",
"0",
"4",
"after",
"get",
"pet",
"by",
"id",
"(",
")",
"{",
"long",
"pet",
"id",
"=",
"null",
";",
"api",
"get",
"pet",
"by",
"id",
"(",
")",
"pet",
"id",
"path",
"(",
"pet",
"id",
")",
"execute",
"(",
"r",
"-",
">",
"r",
"pretty",
"peek",
"(",
")",
")",
";",
"/",
"/",
"todo",
":",
"test",
"validations",
"}"
] |
[
"sets",
"the",
"amount",
"of",
"time",
"after",
"which",
"the",
"result",
"will",
"expire",
"(",
"defaults",
"to",
"5",
"days",
")"
] |
[
"public",
"void",
"set",
"keep",
"alive",
"(",
"time",
"value",
"keep",
"alive",
")",
"{",
"this",
"keep",
"alive",
"=",
"keep",
"alive",
";",
"}"
] |
[
"returns",
"all",
"labels",
"provided",
"with",
"-",
"-",
"extra",
"proguard",
"specs"
] |
[
"public",
"immutable",
"list",
"<",
"label",
">",
"get",
"extra",
"proguard",
"specs",
"(",
")",
"{",
"return",
"extra",
"proguard",
"specs",
";",
"}"
] |
[
"create",
"a",
"prepare",
"deps",
"of",
"targets",
"under",
"directory",
"request",
",",
"specifying",
"a",
"filtering",
"policy",
"for",
"targets"
] |
[
"public",
"static",
"prepare",
"deps",
"of",
"targets",
"under",
"directory",
"key",
"key",
"(",
"repository",
"name",
"repository",
",",
"rooted",
"path",
"rooted",
"path",
",",
"immutable",
"set",
"<",
"path",
"fragment",
">",
"excluded",
"paths",
",",
"filtering",
"policy",
"filtering",
"policy",
")",
"{",
"return",
"prepare",
"deps",
"of",
"targets",
"under",
"directory",
"key",
"create",
"(",
"new",
"recursive",
"pkg",
"key",
"(",
"repository",
",",
"rooted",
"path",
",",
"excluded",
"paths",
")",
",",
"filtering",
"policy",
")",
";",
"}"
] |
[
"returns",
"the",
"sum",
"of",
"all",
"values",
"in",
"this",
"map",
"this",
"method",
"is",
"not",
"atomic",
":",
"the",
"sum",
"may",
"or",
"may",
"not",
"include",
"other",
"concurrent",
"operations"
] |
[
"public",
"long",
"sum",
"(",
")",
"{",
"return",
"map",
"values",
"(",
")",
"stream",
"(",
")",
"map",
"to",
"long",
"(",
"long",
":",
":",
"long",
"value",
")",
"sum",
"(",
")",
";",
"}"
] |
[
"visit",
"a",
"parse",
"tree",
"produced",
"by",
"{",
"@",
"link",
"painless",
"parser",
"#",
"block",
"}"
] |
[
"t",
"visit",
"block",
"(",
"painless",
"parser",
"block",
"context",
"ctx",
")",
";"
] |
[
"enable",
"url",
"path",
"matching",
"with",
"parsed",
"{",
"@",
"link",
"org",
"springframework",
"web",
"util",
"pattern",
"path",
"pattern",
"path",
"patterns",
"}",
"this",
"is",
"delegated",
"to",
"{",
"@",
"link",
"standalone",
"mock",
"mvc",
"builder",
"#",
"set",
"pattern",
"parser",
"(",
"path",
"pattern",
"parser",
")",
"}"
] |
[
"controller",
"spec",
"pattern",
"parser",
"(",
"path",
"pattern",
"parser",
"parser",
")",
";"
] |
[
"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",
"\"",
")",
";",
"}"
] |
[
"handle",
"deserialization",
"of",
"the",
"'",
"null",
"'",
"value"
] |
[
"public",
"fruit",
"req",
"get",
"null",
"value",
"(",
"deserialization",
"context",
"ctxt",
")",
"throws",
"json",
"mapping",
"exception",
"{",
"return",
"null",
";",
"}"
] |
[
"the",
"primary",
"principal",
"associated",
"current",
"subject"
] |
[
"public",
"principal",
"principal",
"(",
")",
"{",
"if",
"(",
"subject",
"=",
"=",
"null",
")",
"return",
"null",
";",
"set",
"<",
"principal",
">",
"princs",
"=",
"subject",
"get",
"principals",
"(",
")",
";",
"if",
"(",
"princs",
"size",
"(",
")",
"=",
"=",
"0",
")",
"return",
"null",
";",
"return",
"(",
"principal",
")",
"(",
"princs",
"to",
"array",
"(",
")",
"[",
"0",
"]",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.