docstring_tokens
list | code_tokens
list |
---|---|
[
"test",
"that",
"version",
"2",
"blocks",
"are",
"rejected",
"once",
"version",
"3",
"blocks",
"are",
"a",
"super",
"majority"
] |
[
"test",
"deprecated",
"block",
"version",
"(",
"block",
"block",
"version",
"bip34",
",",
"block",
"block",
"version",
"bip66",
")",
";"
] |
[
"test",
"that",
"version",
"3",
"blocks",
"are",
"rejected",
"once",
"version",
"4",
"blocks",
"are",
"a",
"super",
"majority"
] |
[
"test",
"deprecated",
"block",
"version",
"(",
"block",
"block",
"version",
"bip66",
",",
"block",
"block",
"version",
"bip65",
")",
";"
] |
[
"acquire",
"a",
"{",
"@",
"link",
"tracker",
"}",
"gets",
"a",
"tracker",
"for",
"the",
"specified",
"tag",
"creating",
"one",
"if",
"necessary",
"there",
"should",
"be",
"one",
"tracker",
"for",
"each",
"pair",
"of",
"add",
"/",
"remove",
"callbacks",
"(",
"e",
"g",
"one",
"tracker",
"for",
"register",
"receiver",
"/",
"unregister",
"receiver",
")"
] |
[
"tracker",
"t",
"=",
"m",
"trackers",
"get",
"(",
"tag",
")",
";",
"if",
"(",
"t",
"=",
"=",
"null",
")",
"{",
"t",
"=",
"new",
"tracker",
"(",
")",
";",
"m",
"trackers",
"put",
"(",
"tag",
",",
"t",
")",
";",
"}",
"return",
"t",
";"
] |
[
"should",
"be",
"called",
"when",
"the",
"callback",
"/",
"listener",
"has",
"been",
"removed",
"one",
"call",
"to",
"clear",
"allocations",
"will",
"counteract",
"any",
"number",
"of",
"calls",
"to",
"add",
"allocation"
] |
[
"m",
"throwables",
"clear",
"(",
")",
";"
] |
[
"gets",
"checkpoint",
"expiration",
"time"
] |
[
"return",
"exp",
"time",
";"
] |
[
"sets",
"checkpoint",
"expiration",
"time"
] |
[
"assert",
"exp",
"time",
">",
"=",
"0",
";",
"this",
"exp",
"time",
"=",
"exp",
"time",
";"
] |
[
"{"
] |
[
"return",
"s",
"to",
"string",
"(",
"s",
"3",
"time",
"data",
"class",
",",
"this",
")",
";"
] |
[
"finder",
"resource",
"method",
"descriptor",
"factory"
] |
[
"return",
"new",
"resource",
"method",
"descriptor",
"(",
"resource",
"method",
"finder",
",",
"method",
",",
"parameters",
",",
"finder",
"name",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"metadata",
"type",
",",
"interface",
"type",
",",
"custom",
"annotations",
")",
";"
] |
[
"action",
"resource",
"method",
"descriptor",
"factory"
] |
[
"return",
"new",
"resource",
"method",
"descriptor",
"(",
"resource",
"method",
"action",
",",
"method",
",",
"parameters",
",",
"null",
",",
"action",
"name",
",",
"action",
"resource",
"type",
",",
"action",
"return",
"type",
",",
"action",
"return",
"record",
"data",
"schema",
",",
"record",
"data",
"schema",
",",
"null",
",",
"interface",
"type",
",",
"custom",
"annotations",
")",
";"
] |
[
"create",
"a",
"crud",
"(",
"not",
"action",
"or",
"finder",
")",
"resource",
"method",
"descriptor",
"with",
"no",
"parameters"
] |
[
"return",
"create",
"for",
"restful",
"(",
"type",
",",
"method",
",",
"collections",
"<",
"parameter",
"<",
"?",
">",
">",
"empty",
"list",
"(",
")",
",",
"null",
",",
"interface",
"type",
",",
"null",
")",
";"
] |
[
"create",
"a",
"crud",
"(",
"not",
"action",
"or",
"finder",
")",
"resource",
"method",
"descriptor",
"with",
"parameters",
"custom",
"annotations",
"and",
"custom",
"collection",
"metadata"
] |
[
"return",
"new",
"resource",
"method",
"descriptor",
"(",
"type",
",",
"method",
",",
"parameters",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"collection",
"custom",
"metadata",
"type",
",",
"interface",
"type",
",",
"custom",
"annotations",
")",
";"
] |
[
"get",
"{",
"@",
"link",
"resource",
"model",
"}",
"of",
"resource",
"method",
"descriptor"
] |
[
"return",
"resource",
"model",
";"
] |
[
"set",
"{",
"@",
"link",
"resource",
"model",
"}",
"of",
"resource",
"method",
"descriptor"
] |
[
"resource",
"model",
"=",
"resource",
"model",
";"
] |
[
"get",
"{",
"@",
"link",
"resource",
"method",
"}",
"of",
"resource",
"method",
"descriptor"
] |
[
"return",
"type",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] |
[
"return",
"method",
";"
] |
[
"get",
"the",
"list",
"of",
"the",
"method",
"{",
"@",
"link",
"parameter",
"}",
"s"
] |
[
"return",
"parameters",
";"
] |
[
"return",
"a",
"list",
"of",
"parameters",
"with",
"the",
"provided",
"type"
] |
[
"list",
"<",
"parameter",
"<",
"?",
">",
">",
"params",
"=",
"new",
"array",
"list",
"<",
"parameter",
"<",
"?",
">",
">",
"(",
")",
";",
"for",
"(",
"parameter",
"<",
"?",
">",
"p",
":",
"parameters",
")",
"{",
"if",
"(",
"p",
"get",
"param",
"type",
"(",
")",
"=",
"=",
"type",
")",
"{",
"params",
"add",
"(",
"p",
")",
";",
"}",
"}",
"return",
"params",
";"
] |
[
"get",
"method",
"{",
"@",
"link",
"interface",
"type",
"}"
] |
[
"return",
"interface",
"type",
";"
] |
[
"clone",
"but",
"you",
"are",
"not",
"allowed",
"to",
"pop",
"up",
"past",
"the",
"point",
"where",
"the",
"clone",
"happened"
] |
[
"index",
"tree",
"index",
"=",
"new",
"index",
"tree",
"(",
")",
";",
"index",
"node",
"i",
"d",
"=",
"node",
"i",
"d",
";",
"index",
"level",
"=",
"level",
";",
"index",
"split",
"dim",
"=",
"split",
"dim",
";",
"index",
"leaf",
"block",
"f",
"p",
"stack",
"[",
"level",
"]",
"=",
"leaf",
"block",
"f",
"p",
"stack",
"[",
"level",
"]",
";",
"index",
"left",
"node",
"positions",
"[",
"level",
"]",
"=",
"left",
"node",
"positions",
"[",
"level",
"]",
";",
"index",
"right",
"node",
"positions",
"[",
"level",
"]",
"=",
"right",
"node",
"positions",
"[",
"level",
"]",
";",
"index",
"split",
"values",
"stack",
"[",
"index",
"level",
"]",
"=",
"split",
"values",
"stack",
"[",
"index",
"level",
"]",
"clone",
"(",
")",
";",
"system",
"arraycopy",
"(",
"negative",
"deltas",
",",
"level",
"*",
"num",
"index",
"dims",
",",
"index",
"negative",
"deltas",
",",
"level",
"*",
"num",
"index",
"dims",
",",
"num",
"index",
"dims",
")",
";",
"index",
"split",
"dims",
"[",
"level",
"]",
"=",
"split",
"dims",
"[",
"level",
"]",
";",
"return",
"index",
";"
] |
[
"only",
"valid",
"after",
"push",
"left",
"or",
"push",
"right",
"not",
"pop",
"!"
] |
[
"assert",
"is",
"leaf",
"node",
"(",
")",
"=",
"=",
"false",
";",
"return",
"split",
"dim",
";"
] |
[
"only",
"valid",
"after",
"push",
"left",
"or",
"push",
"right",
"not",
"pop",
"!"
] |
[
"assert",
"is",
"leaf",
"node",
"(",
")",
"=",
"=",
"false",
";",
"scratch",
"bytes",
"=",
"split",
"values",
"stack",
"[",
"level",
"]",
";",
"scratch",
"offset",
"=",
"split",
"dim",
"*",
"bytes",
"per",
"dim",
";",
"return",
"scratch",
";"
] |
[
"for",
"assertions"
] |
[
"if",
"(",
"node",
">",
"=",
"2",
"*",
"leaf",
"node",
"offset",
")",
"{",
"return",
"0",
";",
"}",
"else",
"if",
"(",
"node",
">",
"=",
"leaf",
"node",
"offset",
")",
"{",
"return",
"1",
";",
"}",
"else",
"{",
"final",
"int",
"left",
"count",
"=",
"get",
"num",
"leaves",
"slow",
"(",
"node",
"*",
"2",
")",
";",
"final",
"int",
"right",
"count",
"=",
"get",
"num",
"leaves",
"slow",
"(",
"node",
"*",
"2",
"+",
"1",
")",
";",
"return",
"left",
"count",
"+",
"right",
"count",
";",
"}"
] |
[
"create",
"a",
"new",
"{"
] |
[
"index",
"tree",
"index",
"=",
"new",
"index",
"tree",
"(",
")",
";",
"return",
"new",
"intersect",
"state",
"(",
"in",
"clone",
"(",
")",
",",
"num",
"data",
"dims",
",",
"packed",
"bytes",
"length",
",",
"packed",
"index",
"bytes",
"length",
",",
"max",
"points",
"in",
"leaf",
"node",
",",
"visitor",
",",
"index",
")",
";"
] |
[
"just",
"read",
"suffixes",
"for",
"every",
"dimension"
] |
[
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"count",
";",
"+",
"+",
"i",
")",
"{",
"for",
"(",
"int",
"dim",
"=",
"0",
";",
"dim",
"<",
"num",
"data",
"dims",
";",
"dim",
"+",
"+",
")",
"{",
"int",
"prefix",
"=",
"common",
"prefix",
"lengths",
"[",
"dim",
"]",
";",
"in",
"read",
"bytes",
"(",
"scratch",
"packed",
"value",
",",
"dim",
"*",
"bytes",
"per",
"dim",
"+",
"prefix",
",",
"bytes",
"per",
"dim",
"-",
"prefix",
")",
";",
"}",
"visitor",
"visit",
"(",
"doc",
"i",
"ds",
"[",
"i",
"]",
",",
"scratch",
"packed",
"value",
")",
";",
"}"
] |
[
"of",
"doing",
"it",
"within",
"the",
"individual",
"test",
"cases"
] |
[
"security",
"manager",
"=",
"system",
"get",
"security",
"manager",
"(",
")",
";",
"system",
"set",
"security",
"manager",
"(",
"new",
"no",
"exit",
"security",
"manager",
"(",
"security",
"manager",
")",
")",
";"
] |
[
"return",
"the",
"contained",
"produces",
"expressions"
] |
[
"return",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
"this",
"expressions",
")",
";"
] |
[
"return",
"the",
"contained",
"producible",
"media",
"types",
"excluding",
"negated",
"expressions"
] |
[
"set",
"<",
"media",
"type",
">",
"result",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"produce",
"media",
"type",
"expression",
"expression",
":",
"this",
"expressions",
")",
"{",
"if",
"(",
"!",
"expression",
"is",
"negated",
"(",
")",
")",
"{",
"result",
"add",
"(",
"expression",
"get",
"media",
"type",
"(",
")",
")",
";",
"}",
"}",
"return",
"result",
";"
] |
[
"whether",
"the",
"condition",
"has",
"any",
"media",
"type",
"expressions"
] |
[
"return",
"this",
"expressions",
"is",
"empty",
"(",
")",
";"
] |
[
"returns",
"the",
"other",
"instance",
"if",
"it",
"has",
"any",
"expressions",
";",
"returns",
"this",
"instance",
"otherwise",
"practically",
"that",
"means",
"a",
"method",
"-",
"level",
"produces",
"overrides",
"a",
"type",
"-",
"level",
"produces",
"condition"
] |
[
"return",
"(",
"!",
"other",
"expressions",
"is",
"empty",
"(",
")",
"?",
"other",
":",
"this",
")",
";"
] |
[
"checks",
"if",
"any",
"of",
"the",
"contained",
"media",
"type",
"expressions",
"match",
"the",
"given",
"request",
"content",
"-",
"type",
"header",
"and",
"returns",
"an",
"instance",
"that",
"is",
"guaranteed",
"to",
"contain",
"matching",
"expressions",
"only",
"the",
"match",
"is",
"performed",
"via",
"{"
] |
[
"if",
"(",
"cors",
"utils",
"is",
"pre",
"flight",
"request",
"(",
"request",
")",
")",
"{",
"return",
"pre",
"flight",
"match",
";",
"}",
"if",
"(",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"this",
";",
"}",
"list",
"<",
"media",
"type",
">",
"accepted",
"media",
"types",
";",
"try",
"{",
"accepted",
"media",
"types",
"=",
"get",
"accepted",
"media",
"types",
"(",
"request",
")",
";",
"}",
"catch",
"(",
"http",
"media",
"type",
"exception",
"ex",
")",
"{",
"return",
"null",
";",
"}",
"set",
"<",
"produce",
"media",
"type",
"expression",
">",
"result",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
"this",
"expressions",
")",
";",
"result",
"remove",
"if",
"(",
"expression",
"-",
">",
"!",
"expression",
"match",
"(",
"accepted",
"media",
"types",
")",
")",
";",
"if",
"(",
"!",
"result",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"new",
"produces",
"request",
"condition",
"(",
"result",
",",
"this",
"content",
"negotiation",
"manager",
")",
";",
"}",
"else",
"if",
"(",
"accepted",
"media",
"types",
"contains",
"(",
"media",
"type",
"all",
")",
")",
"{",
"return",
"empty",
"condition",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}"
] |
[
"return",
"the",
"contained",
"produces",
"expressions",
"or",
"if",
"that",
"s",
"empty",
"a",
"list",
"with",
"a",
"{"
] |
[
"return",
"(",
"this",
"expressions",
"is",
"empty",
"(",
")",
"?",
"media",
"type",
"all",
"list",
":",
"this",
"expressions",
")",
";"
] |
[
"method",
"that",
"is",
"invoked",
"on",
"schedule"
] |
[
"protected",
"abstract",
"boolean",
"execute",
"(",
")",
";"
] |
[
"schedule",
"/",
"reschedule",
"{"
] |
[
"assert",
"is",
"true",
"(",
"!",
"is",
"executing",
")",
";",
"assert",
"is",
"legal",
"(",
"tick",
"count",
">",
"0",
")",
";",
"this",
"tick",
"count",
"=",
"tick",
"count",
";",
"if",
"(",
"!",
"repeating",
"command",
"alive",
")",
"{",
"repeating",
"command",
"alive",
"=",
"true",
";",
"scheduler",
"get",
"(",
")",
"schedule",
"fixed",
"delay",
"(",
"repeating",
"command",
",",
"tick",
"duration",
"ms",
")",
";",
"}"
] |
[
"cancel",
"scheduled",
"{"
] |
[
"assert",
"is",
"true",
"(",
"!",
"is",
"executing",
")",
";",
"tick",
"count",
"=",
"-",
"1",
";"
] |
[
"check",
"if",
"executor",
"is",
"going",
"to",
"invoke",
"{"
] |
[
"assert",
"is",
"true",
"(",
"!",
"is",
"executing",
")",
";",
"return",
"tick",
"count",
">",
"=",
"0",
";"
] |
[
"register",
"an",
"request",
"signer"
] |
[
"map",
"<",
"class",
"<",
"?",
"extends",
"request",
"signer",
">",
",",
"request",
"signer",
">",
"registered",
"signers",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"registered",
"signers",
"put",
"all",
"(",
"signer",
"for",
"type",
")",
";",
"registered",
"signers",
"put",
"(",
"signer",
"type",
",",
"request",
"signer",
")",
";",
"return",
"new",
"request",
"signer",
"registry",
"(",
"registered",
"signers",
")",
";"
] |
[
"to",
"match",
"legacy",
"behavior"
] |
[
"return",
"false",
";"
] |
[
"sets",
"the",
"system",
"properties",
"specified",
"by",
"the",
"user",
"command",
"line"
] |
[
"if",
"(",
"system",
"properties",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"string",
"prop",
":",
"system",
"properties",
")",
"{",
"int",
"p",
"=",
"prop",
"index",
"of",
"(",
"'",
"=",
"'",
")",
";",
"if",
"(",
"p",
">",
"0",
")",
"{",
"string",
"key",
"=",
"prop",
"substring",
"(",
"0",
",",
"p",
")",
";",
"string",
"val",
"=",
"prop",
"substring",
"(",
"p",
"+",
"1",
")",
";",
"system",
"set",
"property",
"(",
"key",
",",
"val",
")",
";",
"}",
"}",
"}"
] |
[
"{"
] |
[
"return",
"command",
"class",
"thermostat",
"fan",
"state",
";"
] |
[
"{"
] |
[
"return",
"2",
";"
] |
[
"compiles",
"a",
"single",
"file"
] |
[
"compilation",
"unit",
"unit",
"=",
"new",
"compilation",
"unit",
"(",
"configuration",
")",
";",
"unit",
"add",
"source",
"(",
"file",
")",
";",
"unit",
"compile",
"(",
")",
";"
] |
[
"compiles",
"a",
"series",
"of",
"files"
] |
[
"compilation",
"unit",
"unit",
"=",
"new",
"compilation",
"unit",
"(",
"configuration",
")",
";",
"unit",
"add",
"sources",
"(",
"files",
")",
";",
"unit",
"compile",
"(",
")",
";"
] |
[
"compiles",
"a",
"series",
"of",
"files",
"from",
"file",
"names"
] |
[
"compilation",
"unit",
"unit",
"=",
"new",
"compilation",
"unit",
"(",
"configuration",
")",
";",
"unit",
"add",
"sources",
"(",
"files",
")",
";",
"unit",
"compile",
"(",
")",
";"
] |
[
"compiles",
"a",
"string",
"of",
"code"
] |
[
"compilation",
"unit",
"unit",
"=",
"new",
"compilation",
"unit",
"(",
"configuration",
")",
";",
"unit",
"add",
"source",
"(",
"new",
"source",
"unit",
"(",
"name",
",",
"code",
",",
"configuration",
",",
"unit",
"get",
"class",
"loader",
"(",
")",
",",
"unit",
"get",
"error",
"collector",
"(",
")",
")",
")",
";",
"unit",
"compile",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"atomic",
";"
] |
[
"{"
] |
[
"project",
"get",
"tasks",
"(",
")",
"with",
"type",
"(",
"abstract",
"compile",
"class",
",",
"post",
"compilation",
"action",
"of",
"(",
"project",
")",
")",
";"
] |
[
"{"
] |
[
"try",
"(",
"ignite",
"ignite",
"=",
"get",
"ignite",
"(",
")",
")",
"{",
"tensor",
"flow",
"cluster",
"manager",
"mgr",
"=",
"new",
"tensor",
"flow",
"cluster",
"manager",
"(",
"ignite",
")",
";",
"map",
"<",
"uuid",
",",
"tensor",
"flow",
"cluster",
">",
"clusters",
"=",
"mgr",
"get",
"all",
"clusters",
"(",
")",
";",
"for",
"(",
"uuid",
"cluster",
"id",
":",
"clusters",
"key",
"set",
"(",
")",
")",
"system",
"out",
"println",
"(",
"cluster",
"id",
")",
";",
"}"
] |
[
"create",
"3",
"container",
"reports",
"for",
"am"
] |
[
"list",
"<",
"n",
"m",
"container",
"status",
">",
"list",
"=",
"new",
"array",
"list",
"<",
"n",
"m",
"container",
"status",
">",
"(",
")",
";",
"n",
"m",
"container",
"status",
"am",
"container",
"=",
"test",
"r",
"m",
"restart",
"create",
"n",
"m",
"container",
"status",
"(",
"am",
"get",
"application",
"attempt",
"id",
"(",
")",
",",
"1",
",",
"container",
"state",
"running",
")",
";",
"n",
"m",
"container",
"status",
"running",
"container",
"=",
"test",
"r",
"m",
"restart",
"create",
"n",
"m",
"container",
"status",
"(",
"am",
"get",
"application",
"attempt",
"id",
"(",
")",
",",
"2",
",",
"container",
"state",
"running",
")",
";",
"n",
"m",
"container",
"status",
"completed",
"container",
"=",
"test",
"r",
"m",
"restart",
"create",
"n",
"m",
"container",
"status",
"(",
"am",
"get",
"application",
"attempt",
"id",
"(",
")",
",",
"3",
",",
"container",
"state",
"complete",
")",
";",
"list",
"add",
"(",
"am",
"container",
")",
";",
"list",
"add",
"(",
"running",
"container",
")",
";",
"list",
"add",
"(",
"completed",
"container",
")",
";",
"return",
"list",
";"
] |
[
"construct",
"a",
"new",
"empty",
"instance"
] |
[
"return",
"extension",
"registry",
"factory",
"create",
"(",
")",
";"
] |
[
"get",
"the",
"unmodifiable",
"singleton",
"empty",
"instance",
"of",
"either",
"extension",
"registry",
"lite",
"or",
"{"
] |
[
"return",
"extension",
"registry",
"factory",
"create",
"empty",
"(",
")",
";"
] |
[
"returns",
"an",
"unmodifiable",
"view",
"of",
"the",
"registry"
] |
[
"return",
"new",
"extension",
"registry",
"lite",
"(",
"this",
")",
";"
] |
[
"add",
"an",
"extension",
"from",
"a",
"lite",
"generated",
"file",
"to",
"the",
"registry"
] |
[
"extensions",
"by",
"number",
"put",
"(",
"new",
"object",
"int",
"pair",
"(",
"extension",
"get",
"containing",
"type",
"default",
"instance",
"(",
")",
",",
"extension",
"get",
"number",
"(",
")",
")",
",",
"extension",
")",
";"
] |
[
"gets",
"a",
"page",
"by",
"the",
"specified",
"permalink"
] |
[
"final",
"query",
"query",
"=",
"new",
"query",
"(",
")",
"set",
"filter",
"(",
"new",
"property",
"filter",
"(",
"page",
"page",
"permalink",
",",
"filter",
"operator",
"equal",
",",
"permalink",
")",
")",
"set",
"page",
"count",
"(",
"1",
")",
";",
"final",
"j",
"s",
"o",
"n",
"object",
"result",
"=",
"get",
"(",
"query",
")",
";",
"final",
"j",
"s",
"o",
"n",
"array",
"array",
"=",
"result",
"opt",
"j",
"s",
"o",
"n",
"array",
"(",
"keys",
"results",
")",
";",
"if",
"(",
"0",
"=",
"=",
"array",
"length",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"array",
"opt",
"j",
"s",
"o",
"n",
"object",
"(",
"0",
")",
";"
] |
[
"gets",
"the",
"maximum",
"order"
] |
[
"final",
"query",
"query",
"=",
"new",
"query",
"(",
")",
"add",
"sort",
"(",
"page",
"page",
"order",
",",
"sort",
"direction",
"descending",
")",
"set",
"page",
"count",
"(",
"1",
")",
";",
"final",
"j",
"s",
"o",
"n",
"object",
"result",
"=",
"get",
"(",
"query",
")",
";",
"final",
"j",
"s",
"o",
"n",
"array",
"array",
"=",
"result",
"opt",
"j",
"s",
"o",
"n",
"array",
"(",
"keys",
"results",
")",
";",
"if",
"(",
"0",
"=",
"=",
"array",
"length",
"(",
")",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"array",
"opt",
"j",
"s",
"o",
"n",
"object",
"(",
"0",
")",
"opt",
"int",
"(",
"page",
"page",
"order",
")",
";"
] |
[
"gets",
"the",
"upper",
"page",
"of",
"the",
"page",
"specified",
"by",
"the",
"given",
"id"
] |
[
"final",
"j",
"s",
"o",
"n",
"object",
"page",
"=",
"get",
"(",
"id",
")",
";",
"if",
"(",
"null",
"=",
"=",
"page",
")",
"{",
"return",
"null",
";",
"}",
"final",
"query",
"query",
"=",
"new",
"query",
"(",
")",
"set",
"filter",
"(",
"new",
"property",
"filter",
"(",
"page",
"page",
"order",
",",
"filter",
"operator",
"less",
"than",
",",
"page",
"opt",
"int",
"(",
"page",
"page",
"order",
")",
")",
")",
"add",
"sort",
"(",
"page",
"page",
"order",
",",
"sort",
"direction",
"descending",
")",
"set",
"current",
"page",
"num",
"(",
"1",
")",
"set",
"page",
"size",
"(",
"1",
")",
"set",
"page",
"count",
"(",
"1",
")",
";",
"final",
"j",
"s",
"o",
"n",
"object",
"result",
"=",
"get",
"(",
"query",
")",
";",
"final",
"j",
"s",
"o",
"n",
"array",
"array",
"=",
"result",
"opt",
"j",
"s",
"o",
"n",
"array",
"(",
"keys",
"results",
")",
";",
"if",
"(",
"1",
"!",
"=",
"array",
"length",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"array",
"opt",
"j",
"s",
"o",
"n",
"object",
"(",
"0",
")",
";"
] |
[
"gets",
"the",
"under",
"page",
"of",
"the",
"page",
"specified",
"by",
"the",
"given",
"id"
] |
[
"final",
"j",
"s",
"o",
"n",
"object",
"page",
"=",
"get",
"(",
"id",
")",
";",
"if",
"(",
"null",
"=",
"=",
"page",
")",
"{",
"return",
"null",
";",
"}",
"final",
"query",
"query",
"=",
"new",
"query",
"(",
")",
"set",
"filter",
"(",
"new",
"property",
"filter",
"(",
"page",
"page",
"order",
",",
"filter",
"operator",
"greater",
"than",
",",
"page",
"opt",
"int",
"(",
"page",
"page",
"order",
")",
")",
")",
"add",
"sort",
"(",
"page",
"page",
"order",
",",
"sort",
"direction",
"ascending",
")",
"set",
"current",
"page",
"num",
"(",
"1",
")",
"set",
"page",
"size",
"(",
"1",
")",
"set",
"page",
"count",
"(",
"1",
")",
";",
"final",
"j",
"s",
"o",
"n",
"object",
"result",
"=",
"get",
"(",
"query",
")",
";",
"final",
"j",
"s",
"o",
"n",
"array",
"array",
"=",
"result",
"opt",
"j",
"s",
"o",
"n",
"array",
"(",
"keys",
"results",
")",
";",
"if",
"(",
"1",
"!",
"=",
"array",
"length",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"array",
"opt",
"j",
"s",
"o",
"n",
"object",
"(",
"0",
")",
";"
] |
[
"gets",
"a",
"page",
"by",
"the",
"specified",
"order"
] |
[
"final",
"query",
"query",
"=",
"new",
"query",
"(",
")",
"set",
"filter",
"(",
"new",
"property",
"filter",
"(",
"page",
"page",
"order",
",",
"filter",
"operator",
"equal",
",",
"order",
")",
")",
"set",
"page",
"count",
"(",
"1",
")",
";",
"final",
"j",
"s",
"o",
"n",
"object",
"result",
"=",
"get",
"(",
"query",
")",
";",
"final",
"j",
"s",
"o",
"n",
"array",
"array",
"=",
"result",
"opt",
"j",
"s",
"o",
"n",
"array",
"(",
"keys",
"results",
")",
";",
"if",
"(",
"0",
"=",
"=",
"array",
"length",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"array",
"opt",
"j",
"s",
"o",
"n",
"object",
"(",
"0",
")",
";"
] |
[
"gets",
"pages"
] |
[
"final",
"query",
"query",
"=",
"new",
"query",
"(",
")",
"add",
"sort",
"(",
"page",
"page",
"order",
",",
"sort",
"direction",
"ascending",
")",
"set",
"page",
"count",
"(",
"1",
")",
";",
"return",
"get",
"list",
"(",
"query",
")",
";"
] |
[
"returns",
"a",
"set",
"of",
"the",
"{",
"@",
"code",
"proto",
"source",
"root",
"}",
"collected",
"from",
"the",
"current",
"library",
"and",
"the",
"specified",
"attribute"
] |
[
"nested",
"set",
"builder",
"<",
"string",
">",
"proto",
"source",
"roots",
"=",
"nested",
"set",
"builder",
"stable",
"order",
"(",
")",
";",
"if",
"(",
"current",
"proto",
"source",
"root",
"!",
"=",
"null",
"&",
"&",
"!",
"current",
"proto",
"source",
"root",
"is",
"empty",
"(",
")",
")",
"{",
"proto",
"source",
"roots",
"add",
"(",
"current",
"proto",
"source",
"root",
")",
";",
"}",
"for",
"(",
"proto",
"sources",
"provider",
"provider",
":",
"rule",
"context",
"get",
"prerequisites",
"(",
"attribute",
"name",
",",
"mode",
"target",
",",
"proto",
"sources",
"provider",
"class",
")",
")",
"{",
"string",
"proto",
"source",
"root",
"=",
"provider",
"get",
"proto",
"source",
"root",
"(",
")",
";",
"if",
"(",
"proto",
"source",
"root",
"!",
"=",
"null",
"&",
"&",
"!",
"proto",
"source",
"root",
"is",
"empty",
"(",
")",
")",
"{",
"proto",
"source",
"roots",
"add",
"(",
"provider",
"get",
"proto",
"source",
"root",
"(",
")",
")",
";",
"}",
"}",
"return",
"proto",
"source",
"roots",
"build",
"(",
")",
";"
] |
[
"each",
"language",
"-",
"specific",
"initialization",
"method",
"will",
"call",
"this",
"to",
"construct",
"artifacts",
"representing",
"its",
"protocol",
"compiler",
"outputs"
] |
[
"return",
"get",
"generated",
"outputs",
"(",
"rule",
"context",
",",
"proto",
"sources",
",",
"extension",
",",
"false",
")",
";"
] |
[
"decides",
"whether",
"this",
"proto",
"library",
"should",
"check",
"for",
"strict",
"proto",
"deps"
] |
[
"build",
"configuration",
"strict",
"deps",
"mode",
"flag",
"value",
"=",
"rule",
"context",
"get",
"fragment",
"(",
"proto",
"configuration",
"class",
")",
"strict",
"proto",
"deps",
"(",
")",
";",
"if",
"(",
"flag",
"value",
"=",
"=",
"build",
"configuration",
"strict",
"deps",
"mode",
"off",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"flag",
"value",
"=",
"=",
"build",
"configuration",
"strict",
"deps",
"mode",
"error",
"|",
"|",
"flag",
"value",
"=",
"=",
"build",
"configuration",
"strict",
"deps",
"mode",
"warn",
")",
"{",
"return",
"true",
";",
"}",
"return",
"(",
"flag",
"value",
"=",
"=",
"build",
"configuration",
"strict",
"deps",
"mode",
"strict",
")",
";"
] |
[
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
] |
[
"return",
"default",
"back",
"off",
";"
] |
[
"sets",
"the",
"default",
"back",
"-",
"off"
] |
[
"this",
"default",
"back",
"off",
"=",
"default",
"back",
"off",
";"
] |
[
"set",
"the",
"back",
"-",
"off",
"for",
"the",
"given",
"i",
"ds"
] |
[
"this",
"back",
"off",
"configurations",
"=",
"back",
"off",
"configurations",
";"
] |
[
"sets",
"the",
"back",
"-",
"off",
"to",
"be",
"applied",
"to",
"the",
"given",
"<",
"code",
">",
"id",
"<",
"/",
"code",
">"
] |
[
"back",
"off",
"configurations",
"put",
"(",
"id",
",",
"back",
"off",
")",
";"
] |
[
"#",
"see",
"{",
"@",
"link",
"this",
"#",
"set",
"initial",
"delay",
"(",
"duration",
")",
"}"
] |
[
"this",
"initial",
"delay",
"=",
"duration",
"of",
"millis",
"(",
"initial",
"delay",
"unit",
"to",
"millis",
"(",
"initial",
"delay",
")",
")",
";"
] |
[
"#",
"see",
"{",
"@",
"link",
"this",
"#",
"set",
"initial",
"delay",
"(",
"duration",
")",
"}"
] |
[
"this",
"initial",
"delay",
"=",
"duration",
"of",
"millis",
"(",
"initial",
"delay",
")",
";"
] |
[
"add",
"a",
"filter",
"used",
"to",
"determine",
"the",
"routes",
"to",
"supervise"
] |
[
"this",
"filters",
"add",
"(",
"filter",
")",
";"
] |
[
"sets",
"the",
"filters",
"user",
"to",
"determine",
"the",
"routes",
"to",
"supervise"
] |
[
"this",
"filters",
"clear",
"(",
")",
";",
"this",
"filters",
"add",
"all",
"(",
"filters",
")",
";"
] |
[
"returns",
"the",
"current",
"fetch",
"plan"
] |
[
"return",
"fetch",
"plan",
";"
] |
[
"assure",
"that",
"the",
"requested",
"key",
"is",
"converted"
] |
[
"if",
"(",
"converted",
"|",
"|",
"!",
"convert",
"to",
"record",
")",
"return",
";",
"if",
"(",
"super",
"contains",
"key",
"(",
"i",
"key",
")",
")",
"return",
";",
"final",
"o",
"record",
"record",
"=",
"(",
"o",
"record",
")",
"underlying",
"get",
"(",
"i",
"key",
")",
";",
"if",
"(",
"record",
"=",
"=",
"null",
")",
"return",
";",
"type",
"o",
"=",
"get",
"database",
"(",
")",
"get",
"user",
"object",
"by",
"record",
"(",
"record",
",",
"null",
")",
";",
"(",
"(",
"o",
"object",
"proxy",
"method",
"handler",
")",
"(",
"(",
"(",
"proxy",
"object",
")",
"o",
")",
")",
"get",
"handler",
"(",
")",
")",
"set",
"parent",
"object",
"(",
"source",
"record",
")",
";",
"super",
"put",
"(",
"i",
"key",
",",
"o",
")",
";"
] |
[
"converts",
"all",
"the",
"items"
] |
[
"if",
"(",
"converted",
"|",
"|",
"!",
"convert",
"to",
"record",
")",
"return",
";",
"for",
"(",
"java",
"util",
"map",
"entry",
"<",
"object",
",",
"o",
"identifiable",
">",
"e",
":",
"underlying",
"entry",
"set",
"(",
")",
")",
"super",
"put",
"(",
"e",
"get",
"key",
"(",
")",
",",
"get",
"database",
"(",
")",
"get",
"user",
"object",
"by",
"record",
"(",
"(",
"o",
"record",
")",
"(",
"(",
"o",
"identifiable",
")",
"e",
"get",
"value",
"(",
")",
")",
"get",
"record",
"(",
")",
",",
"null",
")",
")",
";",
"converted",
"=",
"true",
";"
] |
[
"returns",
"the",
"bundle",
"context",
"of",
"this",
"bundle"
] |
[
"return",
"context",
";"
] |
[
"returns",
"the",
"current",
"version",
"of",
"the",
"bundle"
] |
[
"return",
"context",
"get",
"bundle",
"(",
")",
"get",
"version",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"key",
";"
] |
[
"report",
"the",
"set",
"of",
"home",
"activity",
"candidates",
"plus",
"(",
"if",
"any",
")",
"which",
"of",
"them",
"is",
"the",
"current",
"always",
"use",
"this",
"one",
"setting"
] |
[
"try",
"{",
"return",
"m",
"i",
"package",
"manager",
"get",
"home",
"activities",
"(",
"all",
"home",
"candidates",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"return",
"null",
";",
"}"
] |
[
"this",
"method",
"runs",
"before",
"the",
"test",
"execution",
"and",
"sets",
"the",
"bean",
"objects",
"in",
"the",
"beans",
"map"
] |
[
"beans",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"fishing",
"boat",
"adapter",
"fishing",
"boat",
"adapter",
"=",
"spy",
"(",
"new",
"fishing",
"boat",
"adapter",
"(",
")",
")",
";",
"beans",
"put",
"(",
"fishing",
"bean",
",",
"fishing",
"boat",
"adapter",
")",
";",
"captain",
"captain",
"=",
"new",
"captain",
"(",
")",
";",
"captain",
"set",
"rowing",
"boat",
"(",
"(",
"fishing",
"boat",
"adapter",
")",
"beans",
"get",
"(",
"fishing",
"bean",
")",
")",
";",
"beans",
"put",
"(",
"rowing",
"bean",
",",
"captain",
")",
";"
] |
[
"override",
"inclusion",
"setting",
"for",
"all",
"properties",
"contained",
"in",
"p",
"o",
"j",
"os",
"of",
"the",
"associated",
"type"
] |
[
"include",
"=",
"v",
";",
"return",
"this",
";"
] |
[
"override",
"inclusion",
"setting",
"for",
"properties",
"of",
"the",
"associated",
"type",
"regardless",
"of",
"the",
"type",
"of",
"the",
"pojo",
"containing",
"it"
] |
[
"include",
"as",
"property",
"=",
"v",
";",
"return",
"this",
";"
] |
[
"check",
"nullability",
"of",
"the",
"class",
"persister",
"properties"
] |
[
"check",
"nullability",
"(",
"values",
",",
"persister",
",",
"is",
"update",
"?",
"nullability",
"check",
"type",
"update",
":",
"nullability",
"check",
"type",
"create",
")",
";"
] |
[
"return",
"a",
"well",
"formed",
"property",
"path",
"basically",
"it",
"will",
"return",
"parent",
"child"
] |
[
"return",
"parent",
"+",
"'",
"'",
"+",
"child",
";"
] |
[
"table",
"columns"
] |
[
"return",
"get",
"container",
"(",
")",
"table",
"cache",
"get",
"children",
"(",
"monitor",
",",
"get",
"container",
"(",
")",
",",
"this",
")",
";"
] |
[
"{"
] |
[
"ignite",
"=",
"start",
"grid",
"(",
")",
";"
] |
[
"sometimes",
"scene",
"can",
"t",
"show",
"directly"
] |
[
"if",
"(",
"0",
"=",
"=",
"get",
"scene",
"count",
"(",
")",
")",
"{",
"if",
"(",
"!",
"text",
"utils",
"is",
"empty",
"(",
"settings",
"get",
"security",
"(",
")",
")",
")",
"{",
"bundle",
"new",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"new",
"args",
"put",
"string",
"(",
"security",
"scene",
"key",
"target",
"scene",
",",
"announcer",
"get",
"clazz",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"new",
"args",
"put",
"bundle",
"(",
"security",
"scene",
"key",
"target",
"args",
",",
"announcer",
"get",
"args",
"(",
")",
")",
";",
"return",
"new",
"announcer",
"(",
"security",
"scene",
"class",
")",
"set",
"args",
"(",
"new",
"args",
")",
";",
"}",
"else",
"if",
"(",
"settings",
"get",
"show",
"warning",
"(",
")",
")",
"{",
"bundle",
"new",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"new",
"args",
"put",
"string",
"(",
"warning",
"scene",
"key",
"target",
"scene",
",",
"announcer",
"get",
"clazz",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"new",
"args",
"put",
"bundle",
"(",
"warning",
"scene",
"key",
"target",
"args",
",",
"announcer",
"get",
"args",
"(",
")",
")",
";",
"return",
"new",
"announcer",
"(",
"warning",
"scene",
"class",
")",
"set",
"args",
"(",
"new",
"args",
")",
";",
"}",
"else",
"if",
"(",
"settings",
"get",
"ask",
"analytics",
"(",
")",
")",
"{",
"bundle",
"new",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"new",
"args",
"put",
"string",
"(",
"analytics",
"scene",
"key",
"target",
"scene",
",",
"announcer",
"get",
"clazz",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"new",
"args",
"put",
"bundle",
"(",
"analytics",
"scene",
"key",
"target",
"args",
",",
"announcer",
"get",
"args",
"(",
")",
")",
";",
"return",
"new",
"announcer",
"(",
"analytics",
"scene",
"class",
")",
"set",
"args",
"(",
"new",
"args",
")",
";",
"}",
"else",
"if",
"(",
"crash",
"has",
"crash",
"file",
"(",
")",
")",
"{",
"bundle",
"new",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"new",
"args",
"put",
"string",
"(",
"crash",
"scene",
"key",
"target",
"scene",
",",
"announcer",
"get",
"clazz",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"new",
"args",
"put",
"bundle",
"(",
"crash",
"scene",
"key",
"target",
"args",
",",
"announcer",
"get",
"args",
"(",
")",
")",
";",
"return",
"new",
"announcer",
"(",
"crash",
"scene",
"class",
")",
"set",
"args",
"(",
"new",
"args",
")",
";",
"}",
"else",
"if",
"(",
"eh",
"utils",
"need",
"signed",
"in",
"(",
"this",
")",
")",
"{",
"bundle",
"new",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"new",
"args",
"put",
"string",
"(",
"sign",
"in",
"scene",
"key",
"target",
"scene",
",",
"announcer",
"get",
"clazz",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"new",
"args",
"put",
"bundle",
"(",
"sign",
"in",
"scene",
"key",
"target",
"args",
",",
"announcer",
"get",
"args",
"(",
")",
")",
";",
"return",
"new",
"announcer",
"(",
"sign",
"in",
"scene",
"class",
")",
"set",
"args",
"(",
"new",
"args",
")",
";",
"}",
"else",
"if",
"(",
"settings",
"get",
"select",
"site",
"(",
")",
")",
"{",
"bundle",
"new",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"new",
"args",
"put",
"string",
"(",
"select",
"site",
"scene",
"key",
"target",
"scene",
",",
"announcer",
"get",
"clazz",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"new",
"args",
"put",
"bundle",
"(",
"select",
"site",
"scene",
"key",
"target",
"args",
",",
"announcer",
"get",
"args",
"(",
")",
")",
";",
"return",
"new",
"announcer",
"(",
"select",
"site",
"scene",
"class",
")",
"set",
"args",
"(",
"new",
"args",
")",
";",
"}",
"}",
"return",
"announcer",
";"
] |
[
"if",
"activity",
"is",
"running",
"show",
"snack",
"bar",
"otherwise",
"show",
"toast"
] |
[
"if",
"(",
"null",
"!",
"=",
"m",
"drawer",
"layout",
")",
"{",
"snackbar",
"make",
"(",
"m",
"drawer",
"layout",
",",
"message",
",",
"length",
"=",
"=",
"base",
"scene",
"length",
"long",
"?",
"snackbar",
"length",
"long",
":",
"snackbar",
"length",
"short",
")",
"show",
"(",
")",
";",
"}",
"else",
"{",
"toast",
"make",
"text",
"(",
"this",
",",
"message",
",",
"length",
"=",
"=",
"base",
"scene",
"length",
"long",
"?",
"toast",
"length",
"long",
":",
"toast",
"length",
"short",
")",
"show",
"(",
")",
";",
"}"
] |
[
"{"
] |
[
"ignite",
"configuration",
"c",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"c",
"get",
"transaction",
"configuration",
"(",
")",
"set",
"default",
"tx",
"concurrency",
"(",
"optimistic",
")",
";",
"return",
"c",
";"
] |
[
"{"
] |
[
"cache",
"configuration",
"cc",
"=",
"default",
"cache",
"configuration",
"(",
")",
";",
"cc",
"set",
"name",
"(",
"cache",
"name",
")",
";",
"cc",
"set",
"cache",
"mode",
"(",
"partitioned",
")",
";",
"cc",
"set",
"write",
"synchronization",
"mode",
"(",
"full",
"sync",
")",
";",
"cc",
"set",
"rebalance",
"mode",
"(",
"rebalanc",
"mode",
")",
";",
"cc",
"set",
"rebalance",
"batch",
"size",
"(",
"rebalanc",
"batch",
"size",
")",
";",
"cc",
"set",
"affinity",
"(",
"new",
"rendezvous",
"affinity",
"function",
"(",
"false",
",",
"partitions",
")",
")",
";",
"cc",
"set",
"backups",
"(",
"backups",
")",
";",
"cc",
"set",
"near",
"configuration",
"(",
"near",
"enabled",
"(",
")",
"?",
"new",
"near",
"cache",
"configuration",
"(",
")",
":",
"null",
")",
";",
"return",
"cc",
";"
] |
[
"{"
] |
[
"return",
"optimistic",
";"
] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[] |
[
"{"
] |
[
"super",
"test",
"restart",
"with",
"tx",
"eight",
"nodes",
"two",
"backups",
"(",
")",
";"
] |
[
"{"
] |
[
"super",
"test",
"restart",
"with",
"tx",
"four",
"nodes",
"no",
"backups",
"(",
")",
";"
] |
[
"{"
] |
[
"super",
"test",
"restart",
"with",
"tx",
"four",
"nodes",
"one",
"backups",
"(",
")",
";"
] |
[
"{"
] |
[
"super",
"test",
"restart",
"with",
"tx",
"six",
"nodes",
"two",
"backups",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.