docstring_tokens list | code_tokens list |
|---|---|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"parent",
"folder",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"parent",
"folder",
"id",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"parent",
"folder",
"<",
"/",
"p",
">"
] | [
"set",
"parent",
"folder",
"id",
"(",
"parent",
"folder",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"state",
"of",
"the",
"document",
"only",
"active",
"and",
"recycled",
"are",
"supported",
"<",
"/",
"p",
">"
] | [
"this",
"resource",
"state",
"=",
"resource",
"state",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"state",
"of",
"the",
"document",
"only",
"active",
"and",
"recycled",
"are",
"supported",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"resource",
"state",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"state",
"of",
"the",
"folder",
"only",
"active",
"and",
"recycled",
"are",
"accepted",
"values",
"from",
"the",
"api",
"<",
"/",
"p",
">"
] | [
"set",
"resource",
"state",
"(",
"resource",
"state",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"state",
"of",
"the",
"document",
"only",
"active",
"and",
"recycled",
"are",
"supported",
"<",
"/",
"p",
">"
] | [
"with",
"resource",
"state",
"(",
"resource",
"state",
")",
";"
] |
[
"<",
"p",
">",
"the",
"resource",
"state",
"of",
"the",
"folder",
"only",
"active",
"and",
"recycled",
"are",
"accepted",
"values",
"from",
"the",
"api",
"<",
"/",
"p",
">"
] | [
"this",
"resource",
"state",
"=",
"resource",
"state",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"provide",
"ability",
"to",
"set",
"additional",
"engine",
"classpath",
"locations",
"this",
"must",
"be",
"called",
"before",
"initialize",
"(",
")",
"or",
"run",
"(",
")"
] | [
"classes",
"on",
"classpaths",
"to",
"add",
"to",
"engine",
"add",
"(",
"clazz",
")",
";"
] |
[
"causes",
"the",
"main",
"loop",
"to",
"stop",
"at",
"the",
"end",
"of",
"the",
"current",
"frame",
"cleanly",
"ending",
"the",
"current",
"game",
"state",
"all",
"running",
"task",
"threads",
"and",
"disposing",
"subsystems"
] | [
"shutdown",
"requested",
"=",
"true",
";"
] |
[
"allows",
"it",
"to",
"obtain",
"objects",
"directly",
"from",
"the",
"context",
"of",
"the",
"game",
"engine",
"it",
"exists",
"only",
"for",
"situations",
"in",
"which",
"no",
"child",
"context",
"exists",
"yet",
"if",
"there",
"is",
"a",
"child",
"conte... | [
"return",
"root",
"context",
"get",
"(",
"type",
")",
";"
] |
[
"returns",
"number",
"of",
"vm",
"words",
"required",
"to",
"hold",
"data",
"of",
"size",
"{"
] | [
"return",
"size",
"=",
"=",
"0",
"?",
"0",
":",
"(",
"size",
"-",
"1",
")",
"/",
"32",
"+",
"1",
";"
] |
[
"/",
"*",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"try",
"{",
"return",
"osgi",
"bundle",
"class",
"loader",
"load",
"class",
"(",
"name",
")",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"cne",
")",
"{",
"try",
"{",
"return",
"super",
"load",
"class",
"(",
"name",
")",
";",
"}",
... |
[
"returns",
"the",
"<",
"code",
">",
"bundle",
"<",
"/",
"code",
">",
"that",
"defined",
"this",
"web",
"-",
"application"
] | [
"return",
"contributor",
";"
] |
[
"/",
"*",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"enumeration",
"<",
"url",
">",
"osgi",
"urls",
"=",
"osgi",
"bundle",
"class",
"loader",
"get",
"resources",
"(",
"name",
")",
";",
"enumeration",
"<",
"url",
">",
"urls",
"=",
"super",
"get",
"resources",
"(",
"name",
")",
";",
"list",
"<",
"url",
... |
[
"/",
"*",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"url",
"url",
"=",
"osgi",
"bundle",
"class",
"loader",
"get",
"resource",
"(",
"name",
")",
";",
"return",
"url",
"!",
"=",
"null",
"?",
"url",
":",
"super",
"get",
"resource",
"(",
"name",
")",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"security",
"audit",
"property"
] | [
"return",
"security",
"audit",
";"
] |
[
"sets",
"the",
"value",
"of",
"the",
"security",
"audit",
"property"
] | [
"this",
"security",
"audit",
"=",
"value",
";"
] |
[
"gets",
"the",
"value",
"of",
"the",
"deactivation",
"call",
"center",
"property"
] | [
"return",
"deactivation",
"call",
"center",
";"
] |
[
"sets",
"the",
"value",
"of",
"the",
"deactivation",
"call",
"center",
"property"
] | [
"this",
"deactivation",
"call",
"center",
"=",
"value",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"register",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"operation",
"op",
"=",
"new",
"dummy",
"backup",
"aware",
"operation",
"(",
")",
";",
"invocation",
"invocation",
"=",
"new",
"invocation",
"(",
"op",
")",
";",
"long",
"old",
"call",
"id",
"=",
"invocation",
"registry",
"get",
"last",
"call",
"id",
"("... |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"deregister",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
... | [
"operation",
"op",
"=",
"new",
"dummy",
"backup",
"aware",
"operation",
"(",
")",
";",
"invocation",
"invocation",
"=",
"new",
"invocation",
"(",
"op",
")",
";",
"invocation",
"registry",
"register",
"(",
"invocation",
")",
";",
"long",
"call",
"id",
"=",
... |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"size",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
... | [
"assert",
"equals",
"(",
"0",
",",
"invocation",
"registry",
"size",
"(",
")",
")",
";",
"invocation",
"first",
"invocation",
"=",
"new",
"invocation",
"(",
")",
";",
"invocation",
"registry",
"register",
"(",
"first",
"invocation",
")",
";",
"assert",
"eq... |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"reset",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",... | [
"invocation",
"invocation",
"=",
"new",
"invocation",
"(",
"new",
"dummy",
"backup",
"aware",
"operation",
"(",
")",
")",
";",
"invocation",
"registry",
"register",
"(",
"invocation",
")",
";",
"long",
"call",
"id",
"=",
"invocation",
"op",
"get",
"call",
... |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"shutdown",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"invocation",
"invocation",
"=",
"new",
"invocation",
"(",
"new",
"dummy",
"backup",
"aware",
"operation",
"(",
")",
")",
";",
"invocation",
"registry",
"register",
"(",
"invocation",
")",
";",
"long",
"call",
"id",
"=",
"invocation",
"op",
"get",
"call",
... |
[
"unsafe",
"version",
"of",
":",
"{"
] | [
"long",
"function",
"address",
"=",
"gl",
"get",
"capabilities",
"w",
"g",
"l",
"(",
")",
"wgl",
"create",
"context",
"attribs",
"a",
"r",
"b",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"hdc",
... |
[
"todo",
":",
"allow",
"the",
"allocator",
"to",
"be",
"passed",
"in"
] | [
"return",
"ref",
"register",
"(",
"unpooled",
"direct",
"buffer",
"(",
"len",
")",
")",
";"
] |
[
"get",
"random",
"bytes"
] | [
"byte",
"buf",
"buf",
"=",
"get",
"direct",
"buffer",
"(",
"len",
",",
"ref",
")",
";",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"len",
"]",
";",
"random",
"next",
"bytes",
"(",
"bytes",
")",
";",
"buf",
"write",
"bytes",
"(",
"bytes",... |
[
"fragment",
"byte",
"buffer",
"into",
"multiple",
"pieces"
] | [
"byte",
"buf",
"buf",
"=",
"in",
"slice",
"(",
")",
";",
"preconditions",
"check",
"argument",
"(",
"num",
">",
"0",
")",
";",
"list",
"<",
"byte",
"buf",
">",
"fragmented",
"bufs",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"num",
")",
";",
"in... |
[
"sets",
"the",
"slave",
"servers"
] | [
"this",
"slave",
"servers",
"=",
"slave",
"servers",
";"
] |
[
"specify",
"whether",
"the",
"timer",
"manager",
"obtained",
"by",
"this",
"factory",
"bean",
"is",
"a",
"shared",
"instance",
"(",
"true",
")",
"or",
"an",
"independent",
"instance",
"(",
"false",
")",
"the",
"lifecycle",
"of",
"the",
"former",
"is",
"sup... | [
"this",
"shared",
"=",
"shared",
";"
] |
[
"is",
"dynamic",
"boolean"
] | [
"return",
"dynamic",
";"
] |
[
"not",
"supported",
"for",
"partition",
"schema",
"return",
"the",
"root"
] | [
"return",
"new",
"repository",
"directory",
"(",
")",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"return",
"repository",
"element",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"set",
"metric",
"name",
"(",
"metric",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"metric",
"<",
"/",
"p",
">"
] | [
"this",
"metric",
"name",
"=",
"metric",
"name",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"results",
"of",
"your",
"get",
"instance",
"metric",
"data",
"request",
"<",
"/",
"p",
">"
] | [
"return",
"metric",
"data",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"results",
"of",
"your",
"get",
"instance",
"metric",
"data",
"request",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"metric",
"data",
"=",
"=",
"null",
")",
"{",
"this",
"metric",
"data",
"=",
"null",
";",
"return",
";",
"}",
"this",
"metric",
"data",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"metric",
"datapoint",
">",
"(",
"metric",
"data",
... |
[
"<",
"p",
">",
"an",
"object",
"describing",
"the",
"result",
"of",
"your",
"get",
"relational",
"database",
"metric",
"data",
"request",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends"... | [
"if",
"(",
"this",
"metric",
"data",
"=",
"=",
"null",
")",
"{",
"set",
"metric",
"data",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"metric",
"datapoint",
">",
"(",
"metric",
"data",
"length",
")",
")",
";",
"}",
"for",
"(",
"metric",
"data... |
[
"<",
"p",
">",
"an",
"object",
"describing",
"the",
"result",
"of",
"your",
"get",
"relational",
"database",
"metric",
"data",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"metric",
"data",
"(",
"metric",
"data",
")",
";",
"return",
"this",
";"
] |
[
"lets",
"the",
"visitor",
"visit",
"with",
"method",
"and",
"code",
"attribute",
"null"
] | [
"target",
"info",
"visitor",
"visit",
"catch",
"target",
"info",
"(",
"clazz",
",",
"null",
",",
"null",
",",
"type",
"annotation",
",",
"this",
")",
";"
] |
[
"if",
"a",
"view",
"hasn",
"t",
"had",
"an",
"id",
"set",
"we",
"need",
"to",
"set",
"a",
"temporary",
"one",
"in",
"order",
"to",
"save",
"state",
"since",
"a",
"view",
"won",
"t",
"save",
"its",
"state",
"unless",
"it",
"has",
"an",
"id",
"the",
... | [
"if",
"(",
"view",
"get",
"id",
"(",
")",
"=",
"=",
"view",
"no",
"id",
")",
"{",
"view",
"set",
"id",
"(",
"r",
"id",
"view",
"model",
"state",
"saving",
"id",
")",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"build",
"project",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"calculates",
"a",
"java",
"package",
"fragment",
"based",
"on",
"the",
"table",
"catalog",
"and",
"schema",
"if",
"qualifiers",
"are",
"ignored",
"then",
"this",
"method",
"will",
"return",
"an",
"empty",
"string"
] | [
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"sb",
"append",
"(",
"get",
"sub",
"package",
"for",
"client",
"or",
"sql",
"map",
"(",
"is",
"sub",
"packages",
"enabled",
")",
")",
";",
"if",
"(",
"string",
"has",
"value",... |
[
"specify",
"features",
"that",
"will",
"be",
"used",
"when",
"parsing",
"xml"
] | [
"return",
"new",
"xml",
"config",
"(",
"features",
",",
"declared",
"namespaces",
",",
"properties",
",",
"validating",
",",
"namespace",
"aware",
",",
"allow",
"doc",
"type",
"declaration",
",",
"true",
")",
";"
] |
[
"specify",
"properties",
"that",
"will",
"be",
"used",
"when",
"parsing",
"xml"
] | [
"return",
"new",
"xml",
"config",
"(",
"features",
",",
"declared",
"namespaces",
",",
"this",
"properties",
",",
"validating",
",",
"namespace",
"aware",
",",
"allow",
"doc",
"type",
"declaration",
",",
"true",
")",
";"
] |
[
"specify",
"declared",
"namespaces",
"that",
"will",
"be",
"used",
"when",
"parsing",
"xml",
"will",
"also",
"set",
"{",
"@",
"link",
"#",
"namespace",
"aware",
"(",
"boolean",
")",
"}",
"to",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"of",
"n... | [
"final",
"boolean",
"should",
"be",
"namespace",
"aware",
"=",
"namespaces",
"to",
"declare",
"=",
"=",
"null",
"?",
"namespace",
"aware",
":",
"!",
"namespaces",
"to",
"declare",
"is",
"empty",
"(",
")",
";",
"return",
"new",
"xml",
"config",
"(",
"feat... |
[
"configure",
"if",
"xml",
"path",
"should",
"validate",
"documents",
"as",
"they",
"are",
"parsed",
"(",
"default",
"is",
"{",
"@",
"value",
"#",
"default",
"validating",
"}",
")",
"note",
"that",
"this",
"is",
"only",
"applicable",
"when",
"{",
"@",
"li... | [
"return",
"new",
"xml",
"config",
"(",
"features",
",",
"declared",
"namespaces",
",",
"properties",
",",
"is",
"validating",
",",
"namespace",
"aware",
",",
"allow",
"doc",
"type",
"declaration",
",",
"true",
")",
";"
] |
[
"configure",
"whether",
"or",
"not",
"rest",
"assured",
"should",
"be",
"aware",
"of",
"namespaces",
"when",
"parsing",
"xml",
"(",
"default",
"is",
"{",
"@",
"value",
"#",
"default",
"namespace",
"aware",
"}",
")",
"note",
"that",
"this",
"is",
"only",
... | [
"return",
"new",
"xml",
"config",
"(",
"features",
",",
"declared",
"namespaces",
",",
"properties",
",",
"validating",
",",
"should",
"be",
"aware",
"of",
"namespaces",
",",
"allow",
"doc",
"type",
"declaration",
",",
"true",
")",
";"
] |
[
"determine",
"if",
"namespace",
"handling",
"is",
"enabled"
] | [
"return",
"namespace",
"aware",
";"
] |
[
"configure",
"if",
"xml",
"path",
"should",
"provide",
"support",
"for",
"doctype",
"declarations",
"(",
"default",
"is",
"{",
"@",
"value",
"#",
"default",
"allow",
"doc",
"type",
"declaration",
"}",
")",
"note",
"that",
"this",
"is",
"only",
"applicable",
... | [
"return",
"new",
"xml",
"config",
"(",
"features",
",",
"declared",
"namespaces",
",",
"properties",
",",
"validating",
",",
"namespace",
"aware",
",",
"allow",
"doc",
"type",
"declaration",
",",
"true",
")",
";"
] |
[
"whether",
"xml",
"path",
"should",
"provide",
"support",
"for",
"doctype",
"declarations"
] | [
"return",
"allow",
"doc",
"type",
"declaration",
";"
] |
[
"for",
"syntactic",
"sugar"
] | [
"return",
"this",
";"
] |
[
"for",
"syntactic",
"sugar"
] | [
"return",
"this",
";"
] |
[
"returns",
"the",
"size",
"of",
"the",
"list"
] | [
"return",
"m",
"events",
"size",
"(",
")",
";"
] |
[
"removes",
"all",
"events",
"from",
"the",
"list"
] | [
"m",
"events",
"clear",
"(",
")",
";"
] |
[
"returns",
"the",
"{"
] | [
"return",
"m",
"events",
"get",
"(",
"index",
")",
";"
] |
[
"finds",
"the",
"index",
"of",
"the",
"first",
"event",
"whose",
"timestamp",
"is",
"greater",
"than",
"or",
"equal",
"to",
"the",
"given",
"timestamp"
] | [
"final",
"int",
"size",
"=",
"m",
"events",
"size",
"(",
")",
";",
"int",
"result",
"=",
"size",
";",
"int",
"lo",
"=",
"0",
";",
"int",
"hi",
"=",
"size",
"-",
"1",
";",
"while",
"(",
"lo",
"<",
"=",
"hi",
")",
"{",
"final",
"int",
"mid",
... |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"this",
"m",
"width",
"=",
"width",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"... | [
"return",
"this",
"m",
"width",
";"
] |
[
"set",
"the",
"activity",
"under",
"test"
] | [
"m",
"activity",
"=",
"test",
"activity",
";"
] |
[
"only",
"sends",
"groups",
"over",
"the",
"wire",
"not",
"new",
"chunks",
"with",
"rows"
] | [
"super",
"write",
"(",
"ab",
")",
";",
"if",
"(",
"grp",
"2val",
"=",
"=",
"null",
")",
"return",
"ab",
"put",
"4",
"(",
"0",
")",
";",
"ab",
"put",
"4",
"(",
"grp",
"2val",
"size",
"(",
")",
")",
";",
"for",
"(",
"group",
"g",
":",
"grp",
... |
[
"gets",
"the",
"game",
"mode",
"the",
"player",
"is",
"switched",
"to"
] | [
"return",
"new",
"game",
"mode",
";"
] |
[
"this",
"method",
"returns",
"amount",
"of",
"shared",
"memory",
"required",
"for",
"this",
"specific",
"aggregate",
"please",
"note",
":",
"this",
"method",
"is",
"especially",
"important",
"for",
"cuda",
"backend",
"on",
"cpu",
"backend",
"it",
"might",
"be"... | [
"return",
"(",
"vector",
"length",
"*",
"nd",
"4j",
"size",
"of",
"data",
"type",
"(",
")",
")",
"+",
"512",
";"
] |
[
"this",
"method",
"returns",
"desired",
"number",
"of",
"threads",
"per",
"aggregate",
"instance",
"please",
"note",
":",
"this",
"method",
"is",
"especially",
"important",
"for",
"cuda",
"backend",
"on",
"cpu",
"backend",
"it",
"might",
"be",
"ignored",
"depe... | [
"if",
"(",
"vector",
"length",
">",
"768",
")",
"return",
"768",
";",
"return",
"vector",
"length",
";"
] |
[
"check",
"if",
"a",
"point",
"is",
"within",
"the",
"provided",
"holes"
] | [
"if",
"(",
"holes",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"final",
"geo",
"polygon",
"hole",
":",
"holes",
")",
"{",
"if",
"(",
"!",
"hole",
"is",
"within",
"(",
"point",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",... |
[
"compute",
"a",
"legal",
"point",
"index",
"from",
"a",
"possibly",
"illegal",
"one",
"that",
"may",
"have",
"wrapped"
] | [
"while",
"(",
"index",
">",
"=",
"points",
"size",
"(",
")",
")",
"index",
"-",
"=",
"points",
"size",
"(",
")",
";",
"while",
"(",
"index",
"<",
"0",
")",
"{",
"index",
"+",
"=",
"points",
"size",
"(",
")",
";",
"}",
"return",
"index",
";"
] |
[
"returns",
"the",
"set",
"of",
"servers",
"in",
"the",
"ensemble"
] | [
"iterable",
"<",
"instance",
"spec",
">",
"transformed",
"=",
"iterables",
"transform",
"(",
"servers",
",",
"new",
"function",
"<",
"testing",
"zoo",
"keeper",
"server",
",",
"instance",
"spec",
">",
"(",
")",
"{",
"@",
"override",
"public",
"instance",
"... |
[
"start",
"the",
"ensemble",
"the",
"cluster",
"must",
"be",
"started",
"before",
"use"
] | [
"for",
"(",
"testing",
"zoo",
"keeper",
"server",
"server",
":",
"servers",
")",
"server",
"start",
"(",
")",
";"
] |
[
"shutdown",
"the",
"ensemble",
"without",
"freeing",
"resources",
"etc"
] | [
"for",
"(",
"testing",
"zoo",
"keeper",
"server",
"server",
":",
"servers",
")",
"server",
"stop",
"(",
")",
";"
] |
[
"shutdown",
"the",
"ensemble",
"free",
"resources",
"etc",
"if",
"temp",
"directories",
"were",
"used",
"they",
"are",
"deleted",
"you",
"should",
"call",
"this",
"in",
"a",
"<",
"code",
">",
"finally",
"<",
"/",
"code",
">",
"block"
] | [
"for",
"(",
"testing",
"zoo",
"keeper",
"server",
"server",
":",
"servers",
")",
"server",
"close",
"(",
")",
";"
] |
[
"kills",
"the",
"given",
"server",
"this",
"simulates",
"the",
"server",
"unexpectedly",
"crashing"
] | [
"for",
"(",
"testing",
"zoo",
"keeper",
"server",
"server",
":",
"servers",
")",
"{",
"if",
"(",
"server",
"get",
"instance",
"spec",
"(",
")",
"equals",
"(",
"instance",
")",
")",
"{",
"server",
"kill",
"(",
")",
";",
"return",
"true",
";",
"}",
"... |
[
"restart",
"the",
"given",
"server",
"of",
"the",
"cluster"
] | [
"for",
"(",
"testing",
"zoo",
"keeper",
"server",
"server",
":",
"servers",
")",
"{",
"if",
"(",
"server",
"get",
"instance",
"spec",
"(",
")",
"equals",
"(",
"instance",
")",
")",
"{",
"server",
"restart",
"(",
")",
";",
"return",
"true",
";",
"}",
... |
[
"returns",
"the",
"class",
"of",
"the",
"field",
"type",
"{"
] | [
"return",
"type",
";"
] |
[
"returns",
"beans",
"scope",
"type"
] | [
"if",
"(",
"scope",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"scope",
"get",
"class",
"(",
")",
";"
] |
[
"returns",
"wiring",
"mode"
] | [
"return",
"wiring",
"mode",
";"
] |
[
"returns",
"constructor",
"injection",
"point"
] | [
"return",
"ctor",
";"
] |
[
"returns",
"property",
"injection",
"points"
] | [
"return",
"properties",
";"
] |
[
"returns",
"set",
"injection",
"points"
] | [
"return",
"sets",
";"
] |
[
"returns",
"method",
"injection",
"points"
] | [
"return",
"methods",
";"
] |
[
"returns",
"init",
"method",
"points"
] | [
"return",
"init",
"methods",
";"
] |
[
"returns",
"destroy",
"method",
"points"
] | [
"return",
"destroy",
"methods",
";"
] |
[
"returns",
"parameters"
] | [
"return",
"params",
";"
] |
[
"delegates",
"to",
"{"
] | [
"if",
"(",
"scope",
"!",
"=",
"null",
")",
"{",
"scope",
"register",
"(",
"this",
",",
"object",
")",
";",
"}"
] |
[
"delegates",
"to",
"{"
] | [
"scope",
"remove",
"(",
"name",
")",
";"
] |
[
"adds",
"property",
"injection",
"point"
] | [
"if",
"(",
"properties",
"=",
"=",
"null",
")",
"{",
"properties",
"=",
"new",
"property",
"injection",
"point",
"[",
"1",
"]",
";",
"properties",
"[",
"0",
"]",
"=",
"pip",
";",
"}",
"else",
"{",
"properties",
"=",
"arrays",
"util",
"append",
"(",
... |
[
"adds",
"set",
"injection",
"point"
] | [
"if",
"(",
"sets",
"=",
"=",
"null",
")",
"{",
"sets",
"=",
"new",
"set",
"injection",
"point",
"[",
"1",
"]",
";",
"sets",
"[",
"0",
"]",
"=",
"sip",
";",
"}",
"else",
"{",
"sets",
"=",
"arrays",
"util",
"append",
"(",
"sets",
",",
"sip",
")... |
[
"adds",
"method",
"injection",
"point"
] | [
"if",
"(",
"methods",
"=",
"=",
"null",
")",
"{",
"methods",
"=",
"new",
"method",
"injection",
"point",
"[",
"1",
"]",
";",
"methods",
"[",
"0",
"]",
"=",
"mip",
";",
"}",
"else",
"{",
"methods",
"=",
"arrays",
"util",
"append",
"(",
"methods",
... |
[
"adds",
"init",
"methods"
] | [
"if",
"(",
"init",
"methods",
"=",
"=",
"null",
")",
"{",
"init",
"methods",
"=",
"methods",
";",
"}",
"else",
"{",
"init",
"methods",
"=",
"arrays",
"util",
"join",
"(",
"init",
"methods",
",",
"methods",
")",
";",
"}"
] |
[
"adds",
"destroy",
"methods"
] | [
"if",
"(",
"destroy",
"methods",
"=",
"=",
"null",
")",
"{",
"destroy",
"methods",
"=",
"methods",
";",
"}",
"else",
"{",
"destroy",
"methods",
"=",
"arrays",
"util",
"join",
"(",
"destroy",
"methods",
",",
"methods",
")",
";",
"}"
] |
[
"check",
"if",
"an",
"exception",
"has",
"occurred",
"when",
"re",
"-",
"setting",
"the",
"watch"
] | [
"return",
"exception",
"!",
"=",
"null",
";"
] |
[
"helper",
"method",
"to",
"log",
"updates",
"in",
"uniform",
"manner",
"that",
"includes",
"batch",
"&",
"task",
"id"
] | [
"rebalance",
"utils",
"print",
"batch",
"task",
"log",
"(",
"batch",
"id",
",",
"task",
"id",
",",
"logger",
"to",
"use",
",",
"message",
")",
";"
] |
[
"{"
] | [
"super",
"before",
"tests",
"started",
"(",
")",
";",
"start",
"grids",
"multi",
"threaded",
"(",
"nodes",
"-",
"1",
")",
";",
"client",
"=",
"true",
";",
"start",
"grid",
"(",
"nodes",
"-",
"1",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"return",
"false",
";",
"test",
"key",
"other",
"=",
"(",
"tes... |
[
"{"
] | [
"return",
"id",
";"
] |
[
"{"
] | [
"if",
"(",
"this",
"=",
"=",
"o",
")",
"return",
"true",
";",
"if",
"(",
"o",
"=",
"=",
"null",
"|",
"|",
"get",
"class",
"(",
")",
"!",
"=",
"o",
"get",
"class",
"(",
")",
")",
"return",
"false",
";",
"test",
"key",
"with",
"affinity",
"othe... |
[
"converts",
"jodd",
"logging",
"level",
"to",
"jdk"
] | [
"switch",
"(",
"level",
")",
"{",
"case",
"trace",
":",
"return",
"org",
"apache",
"logging",
"log",
"4j",
"level",
"trace",
";",
"case",
"debug",
":",
"return",
"org",
"apache",
"logging",
"log",
"4j",
"level",
"debug",
";",
"case",
"info",
":",
"retu... |
[
"utility",
"method",
"to",
"check",
"via",
"reflection",
"if",
"the",
"parsed",
"class",
"appears",
"to",
"be",
"a",
"j",
"unit",
"4",
"test",
"i",
"e",
"checks",
"whether",
"it",
"appears",
"to",
"be",
"using",
"the",
"relevant",
"j",
"unit",
"4",
"an... | [
"return",
"has",
"run",
"with",
"annotation",
"(",
"script",
"class",
",",
"loader",
")",
"|",
"|",
"has",
"test",
"annotated",
"method",
"(",
"script",
"class",
",",
"loader",
")",
";"
] |
[
"{"
] | [
"return",
"true",
";"
] |
[
"{"
] | [
"callable",
"task",
"=",
"new",
"given",
"keys",
"loader",
"task",
"(",
"keys",
",",
"replace",
"existing",
"values",
")",
";",
"return",
"execute",
"task",
"(",
"map",
"loader",
"executor",
",",
"task",
")",
";"
] |
[
"loads",
"the",
"values",
"for",
"the",
"provided",
"keys",
"and",
"invokes",
"partition",
"operations",
"to",
"put",
"the",
"loaded",
"entries",
"into",
"the",
"partition",
"record",
"store",
"the",
"method",
"will",
"block",
"until",
"all",
"entries",
"have"... | [
"if",
"(",
"!",
"replace",
"existing",
"values",
")",
"{",
"future",
"remove",
"keys",
"future",
"=",
"remove",
"existing",
"keys",
"(",
"keys",
")",
";",
"remove",
"keys",
"future",
"get",
"(",
")",
";",
"}",
"remove",
"unloadable",
"keys",
"(",
"keys... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.