docstring_tokens
list | code_tokens
list |
---|---|
[
"{"
]
| [
"spi",
"set",
"listener",
"(",
"null",
")",
";",
"map",
"<",
"string",
",",
"collection",
"<",
"grid",
"deployment",
">",
">",
"cp",
";",
"synchronized",
"(",
"mux",
")",
"{",
"cp",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"collection",
"<",
"grid",
"deployment",
">",
">",
"(",
"cache",
")",
";",
"for",
"(",
"entry",
"<",
"string",
",",
"collection",
"<",
"grid",
"deployment",
">",
">",
"entry",
":",
"cp",
"entry",
"set",
"(",
")",
")",
"entry",
"set",
"value",
"(",
"new",
"array",
"list",
"<",
">",
"(",
"entry",
"get",
"value",
"(",
")",
")",
")",
";",
"}",
"for",
"(",
"collection",
"<",
"grid",
"deployment",
">",
"deps",
":",
"cp",
"values",
"(",
")",
")",
"{",
"for",
"(",
"grid",
"deployment",
"cls",
":",
"deps",
")",
"undeploy",
"(",
"cls",
"class",
"loader",
"(",
")",
")",
";",
"}",
"if",
"(",
"log",
"is",
"debug",
"enabled",
"(",
")",
")",
"log",
"debug",
"(",
"stop",
"info",
"(",
")",
")",
";"
]
|
[
"{"
]
| [
"collection",
"<",
"grid",
"deployment",
">",
"deps",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"synchronized",
"(",
"mux",
")",
"{",
"for",
"(",
"deque",
"<",
"grid",
"deployment",
">",
"dep",
"list",
":",
"cache",
"values",
"(",
")",
")",
"for",
"(",
"grid",
"deployment",
"d",
":",
"dep",
"list",
")",
"if",
"(",
"!",
"deps",
"contains",
"(",
"d",
")",
")",
"deps",
"add",
"(",
"d",
")",
";",
"}",
"return",
"deps",
";"
]
|
[
"{"
]
| [
"synchronized",
"(",
"mux",
")",
"{",
"for",
"(",
"deque",
"<",
"grid",
"deployment",
">",
"deps",
":",
"cache",
"values",
"(",
")",
")",
"for",
"(",
"grid",
"deployment",
"dep",
":",
"deps",
")",
"if",
"(",
"dep",
"class",
"loader",
"id",
"(",
")",
"equals",
"(",
"ldr",
"id",
")",
")",
"return",
"dep",
";",
"}",
"for",
"(",
"grid",
"deployment",
"dep",
":",
"ctx",
"task",
"(",
")",
"get",
"used",
"deployments",
"(",
")",
")",
"if",
"(",
"dep",
"class",
"loader",
"id",
"(",
")",
"equals",
"(",
"ldr",
"id",
")",
")",
"return",
"dep",
";",
"return",
"null",
";"
]
|
[
"{"
]
| [
"assert",
"false",
";"
]
|
[
"gets",
"alias",
"for",
"a",
"class"
]
| [
"string",
"alias",
"=",
"cls",
"get",
"name",
"(",
")",
";",
"if",
"(",
"is",
"task",
"(",
"cls",
")",
")",
"{",
"compute",
"task",
"name",
"ann",
"=",
"dep",
"annotation",
"(",
"cls",
",",
"compute",
"task",
"name",
"class",
")",
";",
"if",
"(",
"ann",
"!",
"=",
"null",
")",
"alias",
"=",
"ann",
"value",
"(",
")",
";",
"}",
"return",
"alias",
";"
]
|
[
"{"
]
| [
"return",
"s",
"to",
"string",
"(",
"grid",
"deployment",
"local",
"store",
"class",
",",
"this",
")",
";"
]
|
[
"get",
"the",
"<",
"code",
">",
"application",
"report",
"<",
"/",
"code",
">",
"for",
"the",
"application"
]
| [
"@",
"public",
"@",
"stable",
"public",
"abstract",
"application",
"report",
"get",
"application",
"report",
"(",
")",
";"
]
|
[
"return",
"a",
"reusable",
"parametrised",
"event",
"loop",
"that",
"calls",
"a",
"default",
"idler",
"when",
"no",
"messages",
"are",
"received"
]
| [
"final",
"idle",
"strategy",
"idle",
"strategy",
"=",
"new",
"busy",
"spin",
"idle",
"strategy",
"(",
")",
";",
"return",
"subscriber",
"loop",
"(",
"fragment",
"handler",
",",
"samples",
"util",
":",
":",
"print",
"end",
"of",
"stream",
"image",
",",
"limit",
",",
"running",
",",
"idle",
"strategy",
")",
";"
]
|
[
"return",
"a",
"reusable",
"parametrised",
"event",
"loop",
"that",
"calls",
"and",
"idler",
"when",
"no",
"messages",
"are",
"received"
]
| [
"return",
"(",
"subscription",
")",
"-",
">",
"{",
"try",
"{",
"boolean",
"reached",
"eos",
"=",
"false",
";",
"while",
"(",
"running",
"get",
"(",
")",
")",
"{",
"final",
"int",
"fragments",
"read",
"=",
"subscription",
"poll",
"(",
"fragment",
"handler",
",",
"limit",
")",
";",
"if",
"(",
"0",
"=",
"=",
"fragments",
"read",
")",
"{",
"if",
"(",
"!",
"reached",
"eos",
"&",
"&",
"subscription",
"poll",
"end",
"of",
"streams",
"(",
"end",
"of",
"stream",
"handler",
")",
">",
"0",
")",
"{",
"reached",
"eos",
"=",
"true",
";",
"}",
"}",
"idle",
"strategy",
"idle",
"(",
"fragments",
"read",
")",
";",
"}",
"}",
"catch",
"(",
"final",
"exception",
"ex",
")",
"{",
"lang",
"util",
"rethrow",
"unchecked",
"(",
"ex",
")",
";",
"}",
"}",
";"
]
|
[
"return",
"a",
"reusable",
"parametrised",
"{",
"@",
"link",
"fragment",
"handler",
"}",
"that",
"calls",
"into",
"a",
"{",
"@",
"link",
"rate",
"reporter",
"}"
]
| [
"return",
"(",
"buffer",
",",
"offset",
",",
"length",
",",
"header",
")",
"-",
">",
"reporter",
"on",
"message",
"(",
"1",
",",
"length",
")",
";"
]
|
[
"hook",
"where",
"you",
"can",
"do",
"stuff",
"after",
"a",
"config",
"has",
"been",
"edited",
"defaults",
"to",
"nop"
]
| []
|
[
"gets",
"security",
"json",
"from",
"source"
]
| [
"public",
"abstract",
"security",
"config",
"get",
"security",
"config",
"(",
"boolean",
"get",
"fresh",
")",
";"
]
|
[
"persist",
"security",
"json",
"to",
"the",
"source",
"optionally",
"with",
"a",
"version"
]
| [
"protected",
"abstract",
"boolean",
"persist",
"conf",
"(",
"security",
"config",
"security",
"config",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"sets",
"the",
"data",
"as",
"a",
"map"
]
| [
"this",
"data",
"=",
"data",
";",
"return",
"this",
";"
]
|
[
"sets",
"version"
]
| [
"this",
"version",
"=",
"version",
";",
"return",
"this",
";"
]
|
[
"set",
"data",
"from",
"input",
"stream"
]
| [
"return",
"set",
"data",
"(",
"utils",
"from",
"j",
"s",
"o",
"n",
"(",
"security",
"json",
"input",
"stream",
")",
")",
";"
]
|
[
"changes",
"the",
"border",
"color",
"of",
"native",
"basic",
"blocks",
"according",
"to",
"their",
"type"
]
| [
"postgre",
"s",
"q",
"l",
"border",
"colorizer",
"set",
"initial",
"border",
"colors",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"module",
"id",
")",
";"
]
|
[
"connects",
"operand",
"expression",
"to",
"their",
"trees"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"connect",
"expression",
"trees",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"module",
"id",
",",
"raw",
"module",
"id",
")",
";"
]
|
[
"connects",
"the",
"instructions",
"of",
"the",
"converted",
"module",
"to",
"their",
"code",
"nodes"
]
| [
"postgre",
"s",
"q",
"l",
"module",
"creator",
"connect",
"instructions",
"to",
"code",
"nodes",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"creates",
"the",
"edges",
"of",
"the",
"native",
"call",
"graph"
]
| [
"postgre",
"s",
"q",
"l",
"native",
"view",
"creator",
"create",
"native",
"callgraph",
"edges",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"creates",
"the",
"nodes",
"of",
"the",
"native",
"call",
"graph"
]
| [
"protected",
"abstract",
"void",
"create",
"native",
"callgraph",
"nodes",
"(",
"int",
"module",
"id",
",",
"int",
"view",
"id",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"creates",
"the",
"call",
"graph",
"view",
"of",
"the",
"converted",
"module"
]
| [
"protected",
"abstract",
"int",
"create",
"native",
"callgraph",
"view",
"(",
"int",
"module",
"id",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"creates",
"the",
"code",
"nodes",
"of",
"the",
"native",
"views"
]
| [
"protected",
"abstract",
"void",
"create",
"native",
"code",
"nodes",
"(",
"int",
"raw",
"module",
"id",
",",
"int",
"module",
"id",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"creates",
"the",
"edges",
"of",
"the",
"native",
"flow",
"graph",
"views"
]
| [
"protected",
"abstract",
"void",
"create",
"native",
"flowgraph",
"edges",
"(",
"final",
"int",
"raw",
"module",
"id",
",",
"final",
"int",
"module",
"id",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"creates",
"the",
"native",
"flow",
"graph",
"views"
]
| [
"protected",
"abstract",
"int",
"create",
"native",
"flowgraph",
"views",
"(",
"int",
"module",
"id",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"creates",
"a",
"new",
"module"
]
| [
"protected",
"abstract",
"int",
"create",
"new",
"module",
"(",
"i",
"navi",
"raw",
"module",
"raw",
"module",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"returns",
"the",
"provider",
"to",
"the",
"database"
]
| [
"protected",
"abstract",
"s",
"q",
"l",
"provider",
"get",
"provider",
"(",
")",
";"
]
|
[
"imports",
"the",
"base",
"types",
"into",
"the",
"corresponding",
"bin",
"navi",
"table"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"base",
"types",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"expression",
"substitutions",
"from",
"a",
"raw",
"module",
"into",
"a",
"bin",
"navi",
"module"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"expression",
"substitutions",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"expression",
"tree",
"of",
"a",
"raw",
"module",
"into",
"a",
"bin",
"navi",
"module"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"expression",
"tree",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"module",
"id",
",",
"raw",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"expression",
"trees",
"of",
"a",
"raw",
"module",
"into",
"a",
"bin",
"navi",
"module"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"expression",
"trees",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"module",
"id",
",",
"raw",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"instructions",
"of",
"a",
"raw",
"module",
"into",
"a",
"bin",
"navi",
"module"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"instructions",
"(",
"get",
"provider",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"operands",
"of",
"a",
"raw",
"module",
"into",
"a",
"converted",
"module"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"operands",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"member",
"types",
"into",
"the",
"corresponding",
"bin",
"navi",
"table"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"types",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"imports",
"the",
"expression",
"type",
"substitutions",
"into",
"a",
"bin",
"navi",
"module"
]
| [
"postgre",
"s",
"q",
"l",
"data",
"importer",
"import",
"expression",
"types",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"raw",
"module",
"id",
",",
"module",
"id",
")",
";"
]
|
[
"loads",
"a",
"module",
"from",
"the",
"database"
]
| [
"return",
"postgre",
"s",
"q",
"l",
"module",
"functions",
"read",
"module",
"(",
"get",
"provider",
"(",
")",
"get",
"connection",
"(",
")",
",",
"module",
"id",
",",
"raw",
"module",
",",
"provider",
")",
";"
]
|
[
"{"
]
| [
"try",
"(",
"binary",
"writer",
"ex",
"impl",
"writer",
"=",
"new",
"binary",
"writer",
"ex",
"impl",
"(",
"ctx",
")",
")",
"{",
"thread",
"cur",
"thread",
"=",
"thread",
"current",
"thread",
"(",
")",
";",
"if",
"(",
"cur",
"thread",
"instanceof",
"ignite",
"thread",
")",
"writer",
"fail",
"if",
"unregistered",
"(",
"(",
"(",
"ignite",
"thread",
")",
"cur",
"thread",
")",
"executing",
"entry",
"processor",
"(",
")",
"&",
"&",
"(",
"(",
"ignite",
"thread",
")",
"cur",
"thread",
")",
"holds",
"top",
"lock",
"(",
")",
")",
";",
"writer",
"type",
"id",
"(",
"type",
"id",
")",
";",
"binary",
"builder",
"serializer",
"serialization",
"ctx",
"=",
"new",
"binary",
"builder",
"serializer",
"(",
")",
";",
"serialization",
"ctx",
"register",
"object",
"writing",
"(",
"this",
",",
"0",
")",
";",
"serialize",
"to",
"(",
"writer",
",",
"serialization",
"ctx",
")",
";",
"byte",
"[",
"]",
"arr",
"=",
"writer",
"array",
"(",
")",
";",
"return",
"new",
"binary",
"object",
"impl",
"(",
"ctx",
",",
"arr",
",",
"0",
")",
";",
"}"
]
|
[
"if",
"value",
"of",
"{"
]
| [
"if",
"(",
"assigned",
"vals",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"binary",
"utils",
"fields",
"sorted",
"order",
")",
"assigned",
"vals",
"=",
"new",
"tree",
"map",
"<",
">",
"(",
")",
";",
"else",
"assigned",
"vals",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
";",
"}",
"return",
"assigned",
"vals",
";"
]
|
[
"{"
]
| [
"object",
"val",
"=",
"assigned",
"values",
"(",
")",
"get",
"(",
"name",
")",
";",
"if",
"(",
"val",
"instanceof",
"binary",
"value",
"with",
"type",
")",
"(",
"(",
"binary",
"value",
"with",
"type",
")",
"val",
")",
"value",
"(",
"val",
"0",
")",
";",
"else",
"{",
"class",
"val",
"cls",
"=",
"(",
"val",
"=",
"=",
"null",
")",
"?",
"object",
"class",
":",
"val",
"get",
"class",
"(",
")",
";",
"val",
"=",
"val",
"0",
"=",
"=",
"null",
"?",
"new",
"binary",
"value",
"with",
"type",
"(",
"binary",
"utils",
"type",
"by",
"class",
"(",
"val",
"cls",
")",
",",
"null",
")",
":",
"val",
"0",
";",
"}",
"assigned",
"values",
"(",
")",
"put",
"(",
"name",
",",
"val",
")",
";",
"return",
"this",
";"
]
|
[
"{"
]
| [
"byte",
"type",
"id",
";",
"if",
"(",
"collection",
"class",
"equals",
"(",
"type",
")",
")",
"type",
"id",
"=",
"grid",
"binary",
"marshaller",
"col",
";",
"else",
"if",
"(",
"map",
"class",
"equals",
"(",
"type",
")",
")",
"type",
"id",
"=",
"grid",
"binary",
"marshaller",
"map",
";",
"else",
"type",
"id",
"=",
"binary",
"utils",
"type",
"by",
"class",
"(",
"type",
")",
";",
"assigned",
"values",
"(",
")",
"put",
"(",
"name",
",",
"new",
"binary",
"value",
"with",
"type",
"(",
"type",
"id",
",",
"val",
")",
")",
";",
"return",
"this",
";"
]
|
[
"{"
]
| [
"return",
"set",
"field",
"(",
"name",
",",
"(",
"object",
")",
"builder",
")",
";"
]
|
[
"removes",
"field",
"from",
"binary",
"object"
]
| [
"assigned",
"values",
"(",
")",
"put",
"(",
"name",
",",
"removed",
"field",
"marker",
")",
";",
"return",
"this",
";"
]
|
[
"creates",
"builder",
"initialized",
"by",
"specified",
"binary",
"object"
]
| [
"binary",
"object",
"impl",
"heap",
"obj",
";",
"if",
"(",
"obj",
"instanceof",
"binary",
"object",
"offheap",
"impl",
")",
"heap",
"obj",
"=",
"(",
"binary",
"object",
"impl",
")",
"(",
"(",
"binary",
"object",
"offheap",
"impl",
")",
"obj",
")",
"heap",
"copy",
"(",
")",
";",
"else",
"heap",
"obj",
"=",
"(",
"binary",
"object",
"impl",
")",
"obj",
";",
"return",
"new",
"binary",
"object",
"builder",
"impl",
"(",
"heap",
"obj",
")",
";"
]
|
[
"set",
"known",
"affinity",
"key",
"field",
"name"
]
| [
"this",
"aff",
"field",
"name",
"=",
"aff",
"field",
"name",
";"
]
|
[
"gets",
"child",
"tree",
"nodes"
]
| [
"list",
"<",
"tree",
"node",
">",
"return",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"tree",
"node",
"tree",
"node",
":",
"list",
")",
"{",
"if",
"(",
"tree",
"node",
"get",
"pid",
"(",
")",
"=",
"=",
"null",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"objects",
"equals",
"(",
"tree",
"node",
"get",
"pid",
"(",
")",
",",
"parent",
"id",
")",
")",
"{",
"recursion",
"fn",
"(",
"list",
",",
"tree",
"node",
")",
";",
"return",
"list",
"add",
"(",
"tree",
"node",
")",
";",
"}",
"}",
"return",
"return",
"list",
";"
]
|
[
"transforms",
"a",
"unix",
"timestamp",
"into",
"a",
"human",
"readable",
"date"
]
| [
"if",
"(",
"(",
"timestamp",
"&",
"const",
"second",
"mask",
")",
"!",
"=",
"0",
")",
"{",
"return",
"new",
"date",
"(",
"timestamp",
")",
"to",
"string",
"(",
")",
";",
"}",
"else",
"{",
"return",
"new",
"date",
"(",
"timestamp",
"*",
"1000",
")",
"to",
"string",
"(",
")",
";",
"}"
]
|
[
"url",
"for",
"the",
"content",
"being",
"shared",
"this",
"url",
"will",
"be",
"checked",
"for",
"app",
"link",
"meta",
"tags",
"for",
"linking",
"in",
"platform",
"specific",
"ways",
"<",
"p",
"/",
">",
"see",
"documentation",
"for",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"developers",
"facebook",
"com",
"/",
"docs",
"/",
"applinks",
"/",
">",
"app",
"links",
"<",
"/",
"a",
">"
]
| [
"return",
"this",
"content",
"url",
";"
]
|
[
"list",
"of",
"ids",
"for",
"taggable",
"people",
"to",
"tag",
"with",
"this",
"content",
"<",
"p",
"/",
">",
"see",
"documentation",
"for",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"developers",
"facebook",
"com",
"/",
"docs",
"/",
"graph",
"-",
"api",
"/",
"reference",
"/",
"user",
"/",
"taggable",
"friends",
">",
"taggable",
"friends",
"<",
"/",
"a",
">"
]
| [
"return",
"this",
"people",
"ids",
";"
]
|
[
"the",
"id",
"for",
"a",
"place",
"to",
"tag",
"with",
"this",
"content"
]
| [
"return",
"this",
"place",
"id",
";"
]
|
[
"for",
"shares",
"into",
"messenger",
"this",
"page",
"i",
"d",
"will",
"be",
"used",
"to",
"map",
"the",
"app",
"to",
"page",
"and",
"attach",
"attribution",
"to",
"the",
"share"
]
| [
"return",
"this",
"page",
"id",
";"
]
|
[
"a",
"value",
"to",
"be",
"added",
"to",
"the",
"referrer",
"url",
"when",
"a",
"person",
"follows",
"a",
"link",
"from",
"this",
"shared",
"content",
"on",
"feed"
]
| [
"return",
"this",
"ref",
";"
]
|
[
"gets",
"the",
"share",
"hashtag",
"if",
"one",
"has",
"been",
"set",
"for",
"this",
"content"
]
| [
"return",
"this",
"hashtag",
";"
]
|
[
"set",
"the",
"url",
"for",
"the",
"content",
"being",
"shared"
]
| [
"this",
"content",
"url",
"=",
"content",
"url",
";",
"return",
"(",
"e",
")",
"this",
";"
]
|
[
"set",
"the",
"list",
"of",
"ids",
"for",
"taggable",
"people",
"to",
"tag",
"with",
"this",
"content"
]
| [
"this",
"people",
"ids",
"=",
"(",
"people",
"ids",
"=",
"=",
"null",
"?",
"null",
":",
"collections",
"unmodifiable",
"list",
"(",
"people",
"ids",
")",
")",
";",
"return",
"(",
"e",
")",
"this",
";"
]
|
[
"set",
"the",
"id",
"for",
"a",
"place",
"to",
"tag",
"with",
"this",
"content"
]
| [
"this",
"place",
"id",
"=",
"place",
"id",
";",
"return",
"(",
"e",
")",
"this",
";"
]
|
[
"set",
"the",
"id",
"of",
"the",
"facebook",
"page",
"this",
"share",
"is",
"associated",
"with"
]
| [
"this",
"page",
"id",
"=",
"page",
"id",
";",
"return",
"(",
"e",
")",
"this",
";"
]
|
[
"set",
"the",
"value",
"to",
"be",
"added",
"to",
"the",
"referrer",
"url",
"when",
"a",
"person",
"follows",
"a",
"link",
"from",
"this",
"shared",
"content",
"on",
"feed"
]
| [
"this",
"ref",
"=",
"ref",
";",
"return",
"(",
"e",
")",
"this",
";"
]
|
[
"set",
"the",
"share",
"hashtag",
"for",
"this",
"content"
]
| [
"this",
"hashtag",
"=",
"share",
"hashtag",
";",
"return",
"(",
"e",
")",
"this",
";"
]
|
[
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"write",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#",
"#"
]
| [
"id",
"assigner",
"assign",
"i",
"d",
"(",
"vertex",
")",
";"
]
|
[
"{",
"@",
"link",
"result",
"matcher",
"}",
"that",
"verifies",
"that",
"a",
"specified",
"user",
"is",
"authenticated"
]
| [
"return",
"new",
"authenticated",
"matcher",
"(",
")",
";"
]
|
[
"{",
"@",
"link",
"result",
"matcher",
"}",
"that",
"verifies",
"that",
"no",
"user",
"is",
"authenticated"
]
| [
"return",
"new",
"un",
"authenticated",
"matcher",
"(",
")",
";"
]
|
[
"allows",
"for",
"any",
"validating",
"the",
"authentication",
"with",
"arbitrary",
"assertions"
]
| [
"this",
"assert",
"authentication",
"=",
"assesrt",
"authentication",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"expected",
"username"
]
| [
"return",
"with",
"authentication",
"name",
"(",
"expected",
")",
";"
]
|
[
"specifies",
"the",
"expected",
"{",
"@",
"link",
"security",
"context",
"}"
]
| [
"this",
"expected",
"context",
"=",
"expected",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"expected",
"{",
"@",
"link",
"authentication",
"}"
]
| [
"this",
"expected",
"authentication",
"=",
"expected",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"expected",
"principal"
]
| [
"this",
"expected",
"authentication",
"principal",
"=",
"expected",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"expected",
"{",
"@",
"link",
"authentication",
"#",
"get",
"name",
"(",
")",
"}"
]
| [
"this",
"expected",
"authentication",
"name",
"=",
"expected",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"{",
"@",
"link",
"authentication",
"#",
"get",
"authorities",
"(",
")",
"}"
]
| [
"this",
"expected",
"granted",
"authorities",
"=",
"expected",
";",
"return",
"this",
";"
]
|
[
"inform",
"monitor",
"that",
"some",
"data",
"in",
"a",
"deprecated",
"format",
"has",
"been",
"loaded",
"during",
"x",
"stream",
"unmarshalling",
"when",
"the",
"saveable",
"containing",
"this",
"object",
"is",
"not",
"available"
]
| [
"robust",
"reflection",
"converter",
"add",
"error",
"in",
"context",
"(",
"context",
",",
"new",
"report",
"exception",
"(",
"version",
")",
")",
";"
]
|
[
"does",
"this",
"version",
"range",
"contain",
"a",
"version",
"more",
"than",
"the",
"given",
"number",
"of",
"releases",
"ago",
"?"
]
| [
"return",
"current",
"version",
"!",
"=",
"null",
"&",
"&",
"min",
"!",
"=",
"null",
"&",
"&",
"(",
"current",
"version",
"get",
"digit",
"at",
"(",
"0",
")",
">",
"min",
"get",
"digit",
"at",
"(",
"0",
")",
"|",
"|",
"(",
"current",
"version",
"get",
"digit",
"at",
"(",
"0",
")",
"=",
"=",
"min",
"get",
"digit",
"at",
"(",
"0",
")",
"&",
"&",
"current",
"version",
"get",
"digit",
"at",
"(",
"1",
")",
"-",
"min",
"get",
"digit",
"at",
"(",
"1",
")",
">",
"=",
"threshold",
")",
")",
";"
]
|
[
"sorted",
"list",
"of",
"unique",
"max",
"-",
"versions",
"in",
"the",
"data",
"set",
"for",
"select",
"list",
"in",
"jelly"
]
| [
"tree",
"set",
"<",
"version",
"number",
">",
"set",
"=",
"new",
"tree",
"set",
"<",
"version",
"number",
">",
"(",
")",
";",
"for",
"(",
"version",
"range",
"vr",
":",
"data",
"values",
"(",
")",
")",
"{",
"if",
"(",
"vr",
"max",
"!",
"=",
"null",
")",
"{",
"set",
"add",
"(",
"vr",
"max",
")",
";",
"}",
"}",
"return",
"set",
"iterator",
"(",
")",
";"
]
|
[
"save",
"all",
"files",
"containing",
"only",
"unreadable",
"data",
"(",
"no",
"data",
"upgrades",
")",
"which",
"discards",
"this",
"data",
"remove",
"those",
"items",
"from",
"the",
"data",
"map"
]
| [
"save",
"and",
"remove",
"entries",
"(",
"new",
"predicate",
"<",
"map",
"entry",
"<",
"saveable",
"reference",
",",
"version",
"range",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"apply",
"(",
"map",
"entry",
"<",
"saveable",
"reference",
",",
"version",
"range",
">",
"entry",
")",
"{",
"return",
"entry",
"get",
"value",
"(",
")",
"max",
"=",
"=",
"null",
";",
"}",
"}",
")",
";",
"return",
"http",
"responses",
"forward",
"to",
"previous",
"page",
"(",
")",
";"
]
|
[
"creates",
"a",
"{"
]
| [
"return",
"new",
"buffer",
"size",
"(",
"mb",
"*",
"mb",
")",
";"
]
|
[
"returns",
"the",
"temp",
"file",
"name",
"prefix",
"passed",
"to",
"{"
]
| [
"return",
"temp",
"file",
"name",
"prefix",
";"
]
|
[
"called",
"on",
"exception",
"to",
"check",
"whether",
"the",
"checksum",
"is",
"also",
"corrupt",
"in",
"this",
"source",
"and",
"add",
"that",
"information",
"(",
"checksum",
"matched",
"or",
"didn",
"t",
")",
"as",
"a",
"suppressed",
"exception"
]
| [
"try",
"(",
"checksum",
"index",
"input",
"in",
"=",
"dir",
"open",
"checksum",
"input",
"(",
"reader",
"name",
",",
"i",
"o",
"context",
"readonce",
")",
")",
"{",
"codec",
"util",
"check",
"footer",
"(",
"in",
",",
"prior",
"exception",
")",
";",
"}"
]
|
[
"merge",
"the",
"most",
"recent",
"{"
]
| [
"long",
"start",
"=",
"system",
"current",
"time",
"millis",
"(",
")",
";",
"list",
"<",
"future",
"<",
"partition",
">",
">",
"segments",
"to",
"merge",
";",
"if",
"(",
"segments",
"size",
"(",
")",
">",
"max",
"temp",
"files",
")",
"{",
"segments",
"to",
"merge",
"=",
"segments",
"sub",
"list",
"(",
"segments",
"size",
"(",
")",
"-",
"max",
"temp",
"files",
",",
"segments",
"size",
"(",
")",
")",
";",
"}",
"else",
"{",
"segments",
"to",
"merge",
"=",
"segments",
";",
"}",
"sort",
"info",
"merge",
"rounds",
"+",
"+",
";",
"merge",
"partitions",
"task",
"task",
"=",
"new",
"merge",
"partitions",
"task",
"(",
"tracking",
"dir",
",",
"new",
"array",
"list",
"<",
">",
"(",
"segments",
"to",
"merge",
")",
")",
";",
"segments",
"to",
"merge",
"clear",
"(",
")",
";",
"segments",
"add",
"(",
"exec",
"submit",
"(",
"task",
")",
")",
";",
"sort",
"info",
"temp",
"merge",
"files",
"+",
"+",
";"
]
|
[
"subclasses",
"can",
"override",
"to",
"change",
"how",
"byte",
"sequences",
"are",
"written",
"to",
"disk"
]
| [
"return",
"new",
"byte",
"sequences",
"writer",
"(",
"out",
")",
";"
]
|
[
"subclasses",
"can",
"override",
"to",
"change",
"how",
"byte",
"sequences",
"are",
"read",
"from",
"disk"
]
| [
"return",
"new",
"byte",
"sequences",
"reader",
"(",
"in",
",",
"name",
")",
";"
]
|
[
"writes",
"a",
"bytes",
"ref"
]
| [
"assert",
"ref",
"!",
"=",
"null",
";",
"write",
"(",
"ref",
"bytes",
",",
"ref",
"offset",
",",
"ref",
"length",
")",
";"
]
|
[
"writes",
"a",
"byte",
"array"
]
| [
"write",
"(",
"bytes",
",",
"0",
",",
"bytes",
"length",
")",
";"
]
|
[
"reads",
"the",
"next",
"entry",
"into",
"the",
"provided",
"{",
"@",
"link",
"bytes",
"ref",
"}",
"the",
"internal",
"storage",
"is",
"resized",
"if",
"needed"
]
| [
"if",
"(",
"in",
"get",
"file",
"pointer",
"(",
")",
">",
"=",
"end",
")",
"{",
"return",
"null",
";",
"}",
"short",
"length",
"=",
"in",
"read",
"short",
"(",
")",
";",
"ref",
"grow",
"(",
"length",
")",
";",
"ref",
"set",
"length",
"(",
"length",
")",
";",
"in",
"read",
"bytes",
"(",
"ref",
"bytes",
"(",
")",
",",
"0",
",",
"length",
")",
";",
"return",
"ref",
"get",
"(",
")",
";"
]
|
[
"returns",
"the",
"comparator",
"in",
"use",
"to",
"sort",
"entries"
]
| [
"return",
"comparator",
";"
]
|
[
"configure",
"the",
"log",
"level",
"of",
"the",
"root",
"logger",
"to",
"be",
"read",
"from",
"the",
"value",
"of",
"properties",
"{"
]
| [
"check",
"process",
"id",
"(",
"process",
"id",
")",
";",
"level",
"by",
"property",
"(",
"root",
"logger",
"name",
",",
"sonar",
"log",
"level",
"property",
",",
"sonar",
"process",
"log",
"level",
"property",
"replace",
"(",
"process",
"name",
"placeholder",
",",
"process",
"id",
"get",
"key",
"(",
")",
")",
")",
";",
"return",
"this",
";"
]
|
[
"gets",
"the",
"value",
"of",
"the",
"principal",
"authentication",
"mechanism",
"property"
]
| [
"return",
"principal",
"authentication",
"mechanism",
";"
]
|
[
"sets",
"the",
"value",
"of",
"the",
"principal",
"authentication",
"mechanism",
"property"
]
| [
"this",
"principal",
"authentication",
"mechanism",
"=",
"value",
";"
]
|
[
"gets",
"the",
"value",
"of",
"the",
"authenticator",
"property"
]
| [
"return",
"authenticator",
";"
]
|
[
"sets",
"the",
"value",
"of",
"the",
"authenticator",
"property"
]
| [
"this",
"authenticator",
"=",
"value",
";"
]
|
[
"gets",
"the",
"value",
"of",
"the",
"authenticator",
"transport",
"protocol",
"property"
]
| [
"return",
"authenticator",
"transport",
"protocol",
";"
]
|
[
"sets",
"the",
"value",
"of",
"the",
"authenticator",
"transport",
"protocol",
"property"
]
| [
"this",
"authenticator",
"transport",
"protocol",
"=",
"value",
";"
]
|
[
"main",
"method"
]
| [
"int",
"[",
"]",
"a",
"=",
"{",
"1",
",",
"1",
",",
"1",
",",
"1",
",",
"1",
"}",
";",
"n",
"=",
"0",
";",
"new",
"target",
"sum",
"(",
")",
"find",
"target",
"sum",
"ways",
"(",
"a",
",",
"3",
")",
";",
"system",
"out",
"println",
"(",
"n",
")",
";"
]
|
[
"this",
"method",
"does",
"nothing",
"so",
"that",
"memcached",
"can",
"handle",
"all",
"evictions"
]
| [
"return",
"0",
";"
]
|
[
"a",
"facade",
"for",
"{"
]
| [
"return",
"model",
"serializer",
"restore",
"normalizer",
"from",
"input",
"stream",
"(",
"is",
")",
";"
]
|
[
"a",
"facade",
"for",
"{"
]
| [
"return",
"model",
"serializer",
"restore",
"normalizer",
"from",
"file",
"(",
"new",
"file",
"(",
"path",
")",
")",
";"
]
|
[
"load",
"the",
"model",
"from",
"the",
"given",
"input",
"stream",
"the",
"content",
"of",
"the",
"stream",
"is",
"written",
"to",
"a",
"temporary",
"location",
"see",
"{",
"@",
"link",
"d",
"l",
"4",
"j",
"system",
"properties",
"#",
"dl4j",
"temp",
"dir",
"property",
"}"
]
| [
"return",
"load",
"model",
"guess",
"(",
"stream",
",",
"null",
")",
";"
]
|
[
"write",
"the",
"data",
"for",
"this",
"cache",
"entry",
"to",
"a",
"data",
"output",
"stream"
]
| [
"try",
"{",
"dos",
"write",
"u",
"t",
"f",
"(",
"dbname",
")",
";",
"dos",
"write",
"u",
"t",
"f",
"(",
"sql",
")",
";",
"return",
"true",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"false",
";",
"}"
]
|
[
"mostly",
"works",
"like",
"{",
"@",
"link",
"action",
"#",
"get",
"icon",
"file",
"name",
"(",
")",
"}",
"except",
"that",
"the",
"expected",
"icon",
"size",
"is",
"4",
"8x",
"4",
"8",
"not",
"2",
"4x",
"2",
"4",
"so",
"if",
"you",
"give",
"just",
"a",
"file",
"name",
"/",
"images",
"/",
"4",
"8x",
"4",
"8",
"will",
"be",
"assumed"
]
| [
"public",
"abstract",
"@",
"check",
"for",
"null",
"string",
"get",
"icon",
"file",
"name",
"(",
")",
";"
]
|
[
"returns",
"a",
"short",
"description",
"of",
"what",
"this",
"link",
"does",
"this",
"text",
"is",
"the",
"one",
"that",
"s",
"displayed",
"in",
"grey",
"this",
"can",
"include",
"html",
"although",
"the",
"use",
"of",
"block",
"tags",
"is",
"highly",
"discouraged"
]
| [
"return",
"\"",
"\"",
";"
]
|
[
"{",
"@",
"inherit",
"doc",
"}"
]
| [
"@",
"override",
"public",
"abstract",
"@",
"check",
"for",
"null",
"string",
"get",
"url",
"name",
"(",
")",
";"
]
|
[
"allows",
"implementations",
"to",
"request",
"that",
"this",
"link",
"show",
"a",
"confirmation",
"dialog",
"and",
"use",
"post",
"if",
"confirmed",
"suitable",
"for",
"links",
"which",
"perform",
"an",
"action",
"rather",
"than",
"simply",
"displaying",
"a",
"page"
]
| [
"return",
"false",
";"
]
|
[
"all",
"registered",
"instances"
]
| [
"return",
"extension",
"list",
"lookup",
"(",
"management",
"link",
"class",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.