docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"initialise",
"merger",
"variables"
] | [
"if",
"(",
"(",
"change",
"ranges",
"=",
"=",
"null",
"|",
"|",
"change",
"ranges",
"size",
"(",
")",
"<",
"2",
")",
"&",
"&",
"(",
"highlight",
"ranges",
"=",
"=",
"null",
"|",
"|",
"highlight",
"ranges",
"size",
"(",
")",
"<",
"2",
")",
")",
"{",
"return",
"false",
";",
"}",
"this",
"merge",
"change",
"ranges",
"=",
"change",
"ranges",
";",
"this",
"merge",
"highlight",
"ranges",
"=",
"highlight",
"ranges",
";",
"merge",
"ranges",
"is",
"blue",
"=",
"false",
";",
"merge",
"ranges",
"is",
"highlight",
"=",
"false",
";",
"merge",
"ranges",
"position",
"=",
"-",
"1",
";",
"merge",
"index",
"change",
"=",
"0",
";",
"merge",
"index",
"highlight",
"=",
"0",
";",
"return",
"true",
";"
] |
[
"pastes",
"the",
"clipboard",
"content",
"the",
"result",
"depends",
"on",
"which",
"insertion",
"mode",
"is",
"currently",
"active",
":",
"insert",
"mode",
"replaces",
"the",
"selection",
"with",
"the",
"dnd",
"clipboard",
"clipboard",
"contents",
"or",
"if",
"there",
"is",
"no",
"selection",
"inserts",
"at",
"the",
"current",
"caret",
"offset",
"overwrite",
"mode",
"replaces",
"contents",
"at",
"the",
"current",
"caret",
"offset",
"unless",
"pasting",
"would",
"overflow",
"the",
"content",
"length",
"in",
"which",
"case",
"does",
"nothing"
] | [
"if",
"(",
"!",
"my",
"clipboard",
"has",
"contents",
"(",
")",
")",
"return",
";",
"handle",
"selected",
"pre",
"modify",
"(",
")",
";",
"long",
"caret",
"pos",
"=",
"get",
"caret",
"pos",
"(",
")",
";",
"long",
"total",
"=",
"my",
"clipboard",
"get",
"contents",
"(",
"content",
",",
"caret",
"pos",
",",
"is",
"inserting",
")",
";",
"start",
"position",
"=",
"caret",
"pos",
";",
"end",
"position",
"=",
"caret",
"pos",
"+",
"total",
";",
"caret",
"stick",
"to",
"start",
"=",
"false",
";",
"redraw",
"text",
"areas",
"(",
"true",
")",
";",
"restore",
"state",
"after",
"modify",
"(",
")",
";"
] |
[
"redoes",
"the",
"last",
"undone",
"action"
] | [
"undo",
"(",
"false",
")",
";"
] |
[
"replaces",
"the",
"selection",
"the",
"result",
"depends",
"on",
"which",
"insertion",
"mode",
"is",
"currently",
"active",
":",
"insert",
"mode",
"replaces",
"the",
"selection",
"with",
"the",
"replace",
"string",
"or",
"if",
"there",
"is",
"no",
"selection",
"inserts",
"at",
"the",
"current",
"caret",
"offset",
"overwrite",
"mode",
"replaces",
"contents",
"at",
"the",
"current",
"selection",
"start"
] | [
"handle",
"selected",
"pre",
"modify",
"(",
")",
";",
"byte",
"[",
"]",
"replace",
"data",
"=",
"replace",
"string",
"get",
"bytes",
"(",
"charset",
"default",
"charset",
"(",
")",
")",
";",
"if",
"(",
"is",
"hex",
"string",
")",
"{",
"replace",
"data",
"=",
"hex",
"string",
"to",
"byte",
"(",
"replace",
"string",
")",
";",
"}",
"byte",
"buffer",
"new",
"selection",
"=",
"byte",
"buffer",
"wrap",
"(",
"replace",
"data",
")",
";",
"if",
"(",
"is",
"inserting",
")",
"{",
"content",
"insert",
"(",
"new",
"selection",
",",
"start",
"position",
")",
";",
"}",
"else",
"{",
"new",
"selection",
"limit",
"(",
"(",
"int",
")",
"math",
"min",
"(",
"new",
"selection",
"limit",
"(",
")",
",",
"content",
"length",
"(",
")",
"-",
"start",
"position",
")",
")",
";",
"content",
"overwrite",
"(",
"new",
"selection",
",",
"start",
"position",
")",
";",
"}",
"end",
"position",
"=",
"start",
"position",
"+",
"new",
"selection",
"limit",
"(",
")",
"-",
"new",
"selection",
"position",
"(",
")",
";",
"caret",
"stick",
"to",
"start",
"=",
"false",
";",
"redraw",
"text",
"areas",
"(",
"true",
")",
";",
"restore",
"state",
"after",
"modify",
"(",
")",
";"
] |
[
"replaces",
"all",
"occurrences",
"of",
"find",
"string",
"with",
"replace",
"string",
"the",
"find",
"starts",
"at",
"the",
"current",
"caret",
"position"
] | [
"int",
"result",
"=",
"0",
";",
"stop",
"searching",
"=",
"false",
";",
"while",
"(",
"!",
"stop",
"searching",
"&",
"&",
"find",
"and",
"select",
"internal",
"(",
"find",
"string",
",",
"is",
"find",
"hex",
"string",
",",
"search",
"forward",
",",
"ignore",
"case",
",",
"false",
")",
")",
"{",
"+",
"+",
"result",
";",
"replace",
"(",
"replace",
"string",
",",
"is",
"replace",
"hex",
"string",
")",
";",
"}",
"if",
"(",
"result",
">",
"0",
")",
"{",
"set",
"selection",
"(",
"get",
"selection",
"(",
")",
"[",
"0",
"]",
",",
"get",
"selection",
"(",
")",
"[",
"1",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"sets",
"the",
"selection",
"to",
"the",
"entire",
"text",
"caret",
"remains",
"either",
"at",
"the",
"selection",
"start",
"or",
"end"
] | [
"select",
"(",
"0l",
",",
"content",
"length",
"(",
")",
")",
";",
"refresh",
"selections",
"(",
")",
";"
] |
[
"sets",
"the",
"selection",
"from",
"start",
"to",
"end"
] | [
"select",
"(",
"start",
",",
"end",
")",
";",
"refresh",
"selections",
"(",
")",
";",
"show",
"mark",
"(",
"start",
")",
";"
] |
[
"sets",
"the",
"content",
"to",
"be",
"displayed",
"replacing",
"an",
"existing",
"content",
"keeps",
"the",
"display",
"area",
"in",
"the",
"same",
"position",
"but",
"only",
"if",
"it",
"falls",
"within",
"the",
"new",
"content",
"s",
"limits"
] | [
"if",
"(",
"is",
"disposed",
"(",
")",
")",
"{",
"return",
";",
"}",
"boolean",
"first",
"content",
"=",
"content",
"=",
"=",
"null",
";",
"if",
"(",
"!",
"first",
"content",
")",
"{",
"content",
"dispose",
"(",
")",
";",
"}",
"content",
"=",
"a",
"content",
";",
"finder",
"=",
"null",
";",
"if",
"(",
"content",
"!",
"=",
"null",
")",
"{",
"content",
"set",
"actions",
"history",
"(",
")",
";",
"if",
"(",
"first",
"content",
"|",
"|",
"end",
"position",
">",
"content",
"length",
"(",
")",
"|",
"|",
"text",
"areas",
"start",
">",
"=",
"content",
"length",
"(",
")",
")",
"{",
"text",
"areas",
"start",
"=",
"start",
"position",
"=",
"end",
"position",
"=",
"0l",
";",
"caret",
"stick",
"to",
"start",
"=",
"false",
";",
"}",
"chars",
"for",
"file",
"size",
"address",
"=",
"long",
"to",
"hex",
"string",
"(",
"content",
"length",
"(",
")",
")",
"length",
"(",
")",
";",
"}",
"update",
"scroll",
"bar",
"(",
")",
";",
"redraw",
"text",
"areas",
"(",
"true",
")",
";",
"notify",
"long",
"selection",
"listeners",
"(",
")",
";",
"notify",
"listeners",
"(",
"swt",
"modify",
",",
"null",
")",
";"
] |
[
"causes",
"the",
"receiver",
"to",
"have",
"the",
"keyboard",
"focus",
"within",
"eclipse",
"never",
"call",
"set",
"focus",
"(",
")",
"before",
"the",
"workbench",
"has",
"called",
"editor",
"action",
"bar",
"contributor",
"set",
"active",
"editor",
"(",
")"
] | [
"redraw",
"caret",
"(",
"false",
")",
";",
"if",
"(",
"last",
"focused",
"text",
"area",
"=",
"=",
"1",
")",
"return",
"hex",
"text",
"set",
"focus",
"(",
")",
";",
"else",
"return",
"preview",
"text",
"set",
"focus",
"(",
")",
";"
] |
[
"sets",
"the",
"selection",
"the",
"caret",
"may",
"change",
"position",
"but",
"stays",
"at",
"the",
"same",
"selection",
"point",
"(",
"if",
"it",
"was",
"at",
"the",
"start",
"of",
"the",
"selection",
"it",
"will",
"move",
"to",
"the",
"new",
"start",
"otherwise",
"to",
"the",
"new",
"end",
"point",
")",
"the",
"new",
"selection",
"is",
"made",
"visible"
] | [
"select",
"(",
"start",
",",
"end",
")",
";",
"ensure",
"caret",
"is",
"visible",
"(",
")",
";",
"redraw",
"text",
"areas",
"(",
"false",
")",
";"
] |
[
"stop",
"find",
"and",
"select",
"(",
")",
"or",
"replace",
"all",
"(",
")",
"calls",
"long",
"running",
"searches",
"can",
"be",
"stopped",
"from",
"another",
"thread"
] | [
"stop",
"searching",
"=",
"true",
";",
"if",
"(",
"finder",
"!",
"=",
"null",
")",
"{",
"finder",
"stop",
"searching",
"(",
")",
";",
"}"
] |
[
"undoes",
"the",
"last",
"action"
] | [
"undo",
"(",
"true",
")",
";"
] |
[
"registers",
"a",
"callback",
"to",
"be",
"notified",
"of",
"changes",
"to",
"the",
"vr",
"mode",
"state"
] | [
"android",
"manifest",
"permission",
"restricted",
"vr",
"access",
",",
"android",
"manifest",
"permission",
"access",
"vr",
"state",
"}",
")",
"@",
"unsupported",
"app",
"usage",
"public",
"void",
"register",
"vr",
"state",
"callback",
"(",
"vr",
"state",
"callback",
"callback",
",",
"@",
"non",
"null",
"handler",
"handler",
")",
"{",
"if",
"(",
"callback",
"=",
"=",
"null",
"|",
"|",
"m",
"callback",
"map",
"contains",
"key",
"(",
"callback",
")",
")",
"{",
"return",
";",
"}",
"callback",
"entry",
"entry",
"=",
"new",
"callback",
"entry",
"(",
"callback",
",",
"handler",
")",
";",
"m",
"callback",
"map",
"put",
"(",
"callback",
",",
"entry",
")",
";",
"try",
"{",
"m",
"service",
"register",
"listener",
"(",
"entry",
"m",
"state",
"callback",
")",
";",
"m",
"service",
"register",
"persistent",
"vr",
"state",
"listener",
"(",
"entry",
"m",
"persistent",
"state",
"callback",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"try",
"{",
"unregister",
"vr",
"state",
"callback",
"(",
"callback",
")",
";",
"}",
"catch",
"(",
"exception",
"ignore",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}",
"}"
] |
[
"returns",
"the",
"current",
"vr",
"mode",
"state"
] | [
"android",
"manifest",
"permission",
"restricted",
"vr",
"access",
",",
"android",
"manifest",
"permission",
"access",
"vr",
"state",
"}",
")",
"public",
"boolean",
"get",
"vr",
"mode",
"enabled",
"(",
")",
"{",
"try",
"{",
"return",
"m",
"service",
"get",
"vr",
"mode",
"state",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}",
"return",
"false",
";"
] |
[
"returns",
"the",
"current",
"vr",
"mode",
"state"
] | [
"android",
"manifest",
"permission",
"restricted",
"vr",
"access",
",",
"android",
"manifest",
"permission",
"access",
"vr",
"state",
"}",
")",
"@",
"unsupported",
"app",
"usage",
"public",
"boolean",
"get",
"persistent",
"vr",
"mode",
"enabled",
"(",
")",
"{",
"try",
"{",
"return",
"m",
"service",
"get",
"persistent",
"vr",
"mode",
"enabled",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}",
"return",
"false",
";"
] |
[
"sets",
"the",
"persistent",
"vr",
"mode",
"state",
"of",
"a",
"device",
"when",
"a",
"device",
"is",
"in",
"persistent",
"vr",
"mode",
"it",
"will",
"remain",
"in",
"vr",
"mode",
"even",
"if",
"the",
"foreground",
"does",
"not",
"specify",
"vr",
"mode",
"being",
"enabled",
"mainly",
"used",
"by",
"vr",
"viewers",
"to",
"indicate",
"that",
"a",
"device",
"is",
"placed",
"in",
"a",
"vr",
"viewer"
] | [
"try",
"{",
"m",
"service",
"set",
"persistent",
"vr",
"mode",
"enabled",
"(",
"enabled",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"resolution",
"and",
"dpi",
"of",
"the",
"vr",
"2d",
"virtual",
"display",
"used",
"to",
"display",
"2d",
"applications",
"in",
"vr",
"mode"
] | [
"try",
"{",
"m",
"service",
"set",
"vr",
"2d",
"display",
"properties",
"(",
"vr",
"2d",
"display",
"prop",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"set",
"the",
"component",
"name",
"of",
"the",
"compositor",
"service",
"to",
"bind"
] | [
"try",
"{",
"m",
"service",
"set",
"and",
"bind",
"compositor",
"(",
"(",
"component",
"name",
"=",
"=",
"null",
")",
"?",
"null",
":",
"component",
"name",
"flatten",
"to",
"string",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"current",
"standby",
"status",
"of",
"the",
"vr",
"device",
"standby",
"mode",
"is",
"only",
"used",
"on",
"standalone",
"vr",
"devices",
"standby",
"mode",
"is",
"a",
"deep",
"sleep",
"state",
"where",
"it",
"s",
"appropriate",
"to",
"turn",
"off",
"vr",
"mode"
] | [
"try",
"{",
"m",
"service",
"set",
"standby",
"enabled",
"(",
"standby",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"start",
"vr",
"input",
"method",
"for",
"the",
"package",
"name",
"in",
"{"
] | [
"try",
"{",
"m",
"service",
"set",
"vr",
"input",
"method",
"(",
"component",
"name",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"an",
"integer",
"that",
"specifies",
"a",
"group",
"size",
"for",
"throughput",
"logging"
] | [
"this",
"group",
"size",
"=",
"group",
"size",
";"
] |
[
"if",
"specified",
"will",
"group",
"message",
"stats",
"by",
"this",
"time",
"interval",
"(",
"in",
"millis",
")"
] | [
"this",
"group",
"interval",
"=",
"group",
"interval",
";"
] |
[
"if",
"true",
"will",
"hide",
"stats",
"when",
"no",
"new",
"messages",
"have",
"been",
"received",
"for",
"a",
"time",
"interval",
"if",
"false",
"show",
"stats",
"regardless",
"of",
"message",
"traffic"
] | [
"return",
"group",
"active",
"only",
";"
] |
[
"if",
"true",
"will",
"hide",
"stats",
"when",
"no",
"new",
"messages",
"have",
"been",
"received",
"for",
"a",
"time",
"interval",
"if",
"false",
"show",
"stats",
"regardless",
"of",
"message",
"traffic"
] | [
"this",
"group",
"active",
"only",
"=",
"group",
"active",
"only",
";"
] |
[
"set",
"the",
"initial",
"delay",
"for",
"stats",
"(",
"in",
"millis",
")"
] | [
"return",
"group",
"delay",
";"
] |
[
"set",
"the",
"initial",
"delay",
"for",
"stats",
"(",
"in",
"millis",
")"
] | [
"this",
"group",
"delay",
"=",
"group",
"delay",
";"
] |
[
"run",
"du",
"on",
"local",
"drives",
"it",
"must",
"be",
"synchronized",
"from",
"caller"
] | [
"dfs",
"usage",
"dec",
"dfs",
"used",
"(",
"value",
")",
";"
] |
[
"temporary",
"files",
"they",
"get",
"moved",
"to",
"the",
"finalized",
"block",
"directory",
"when",
"the",
"block",
"is",
"finalized"
] | [
"file",
"f",
"=",
"new",
"file",
"(",
"tmp",
"dir",
",",
"b",
"get",
"block",
"name",
"(",
")",
")",
";",
"return",
"datanode",
"util",
"create",
"tmp",
"file",
"(",
"b",
",",
"f",
")",
";"
] |
[
"rbw",
"files",
"they",
"get",
"moved",
"to",
"the",
"finalized",
"block",
"directory",
"when",
"the",
"block",
"is",
"finalized"
] | [
"file",
"f",
"=",
"new",
"file",
"(",
"rbw",
"dir",
",",
"b",
"get",
"block",
"name",
"(",
")",
")",
";",
"return",
"datanode",
"util",
"create",
"tmp",
"file",
"(",
"b",
",",
"f",
")",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"matching",
"executions",
"<",
"/",
"p",
">"
] | [
"return",
"executions",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"matching",
"executions",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"executions",
"=",
"=",
"null",
")",
"{",
"this",
"executions",
"=",
"null",
";",
"return",
";",
"}",
"this",
"executions",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"execution",
"list",
"item",
">",
"(",
"executions",
")",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"matching",
"executions",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"executions",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"executions",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"executions",
"=",
"=",
"null",
")",
"{",
"set",
"executions",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"execution",
"list",
"item",
">",
"(",
"executions",
"length",
")",
")",
";",
"}",
"for",
"(",
"execution",
"list",
"item",
"ele",
":",
"executions",
")",
"{",
"this",
"executions",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"list",
"of",
"matching",
"executions",
"<",
"/",
"p",
">"
] | [
"set",
"executions",
"(",
"executions",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"if",
"a",
"<",
"code",
">",
"next",
"token",
"<",
"/",
"code",
">",
"is",
"returned",
"by",
"a",
"previous",
"call",
"there",
"are",
"more",
"results",
"available",
"to",
"retrieve",
"the",
"next",
"page",
"of",
"results",
"make",
"the",
"call",
"again",
"using",
"the",
"returned",
"token",
"in",
"<",
"code",
">",
"next",
"token",
"<",
"/",
"code",
">",
"keep",
"all",
"other",
"arguments",
"unchanged",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"configured",
"<",
"code",
">",
"max",
"results",
"<",
"/",
"code",
">",
"determines",
"how",
"many",
"results",
"can",
"be",
"returned",
"in",
"a",
"single",
"call",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"long",
"new",
"val",
"=",
"entry",
"get",
"value",
"(",
")",
"=",
"=",
"null",
"?",
"0",
":",
"entry",
"get",
"value",
"(",
")",
"+",
"1",
";",
"entry",
"set",
"value",
"(",
"new",
"val",
")",
";",
"return",
"new",
"val",
";"
] |
[
"get",
"the",
"mission",
"control",
"port",
"override",
"-",
"set",
"via",
"the",
"configs",
"<",
"br",
">",
"if",
"this",
"is",
"0",
"the",
"system",
"will",
"automatically",
"allocate",
"a",
"port",
"based",
"on",
"the",
"available",
"range"
] | [
"return",
"address",
"helper",
"mission",
"control",
"port",
"override",
";"
] |
[
"get",
"the",
"actual",
"port",
"used",
"for",
"mission",
"control",
"assuming",
"it",
"has",
"been",
"set",
"(",
"will",
"return",
"0",
"if",
"not",
")",
"<",
"br",
">"
] | [
"return",
"address",
"helper",
"mission",
"control",
"port",
";"
] |
[
"{"
] | [
"buffer",
"put",
"short",
"(",
"object",
")",
";"
] |
[
"{"
] | [
"return",
"buffer",
"get",
"short",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"short",
"size",
";"
] |
[
"{"
] | [
"return",
"wal",
"changes",
"get",
"short",
"value",
"(",
"buffer",
",",
"offset",
")",
";"
] |
[
"{"
] | [
"return",
"short",
"size",
";"
] |
[
"create",
"a",
"new",
"operation",
"expression"
] | [
"return",
"operation",
"(",
"type",
",",
"operator",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"a",
"new",
"operation",
"expression"
] | [
"return",
"predicate",
"(",
"operator",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"a",
"new",
"operation",
"expression"
] | [
"return",
"new",
"predicate",
"operation",
"(",
"operator",
",",
"args",
")",
";"
] |
[
"create",
"a",
"new",
"path",
"expression"
] | [
"return",
"new",
"path",
"impl",
"<",
"t",
">",
"(",
"type",
",",
"variable",
")",
";"
] |
[
"create",
"a",
"new",
"path",
"expression"
] | [
"return",
"new",
"path",
"impl",
"<",
"t",
">",
"(",
"type",
",",
"parent",
",",
"property",
")",
";"
] |
[
"create",
"a",
"new",
"path",
"expression"
] | [
"return",
"new",
"path",
"impl",
"<",
"t",
">",
"(",
"type",
",",
"metadata",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"predicate",
"template",
"(",
"template",
"factory",
"default",
"create",
"(",
"template",
")",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"predicate",
"template",
"(",
"template",
"factory",
"default",
"create",
"(",
"template",
")",
",",
"args",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"predicate",
"template",
"(",
"template",
"factory",
"default",
"create",
"(",
"template",
")",
",",
"args",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"predicate",
"template",
"(",
"template",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"new",
"predicate",
"template",
"(",
"template",
",",
"args",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"new",
"predicate",
"template",
"(",
"template",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"template",
"(",
"cl",
",",
"template",
"factory",
"default",
"create",
"(",
"template",
")",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"template",
"(",
"cl",
",",
"template",
"factory",
"default",
"create",
"(",
"template",
")",
",",
"args",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"template",
"(",
"cl",
",",
"template",
"factory",
"default",
"create",
"(",
"template",
")",
",",
"args",
")",
";"
] |
[
"create",
"a",
"new",
"template",
"expression"
] | [
"return",
"template",
"(",
"cl",
",",
"template",
",",
"immutable",
"list",
"copy",
"of",
"(",
"args",
")",
")",
";"
] |
[
"create",
"the",
"intersection",
"of",
"the",
"given",
"arguments"
] | [
"predicate",
"rv",
"=",
"null",
";",
"for",
"(",
"predicate",
"b",
":",
"exprs",
")",
"{",
"if",
"(",
"b",
"!",
"=",
"null",
")",
"{",
"rv",
"=",
"rv",
"=",
"=",
"null",
"?",
"b",
":",
"expression",
"utils",
"and",
"(",
"rv",
",",
"b",
")",
";",
"}",
"}",
"return",
"rv",
";"
] |
[
"create",
"the",
"intersection",
"of",
"the",
"given",
"arguments"
] | [
"predicate",
"rv",
"=",
"null",
";",
"for",
"(",
"predicate",
"b",
":",
"exprs",
")",
"{",
"if",
"(",
"b",
"!",
"=",
"null",
")",
"{",
"rv",
"=",
"rv",
"=",
"=",
"null",
"?",
"b",
":",
"expression",
"utils",
"and",
"(",
"rv",
",",
"b",
")",
";",
"}",
"}",
"return",
"rv",
";"
] |
[
"create",
"the",
"intersection",
"of",
"the",
"given",
"arguments"
] | [
"left",
"=",
"(",
"predicate",
")",
"extract",
"(",
"left",
")",
";",
"right",
"=",
"(",
"predicate",
")",
"extract",
"(",
"right",
")",
";",
"if",
"(",
"left",
"=",
"=",
"null",
")",
"{",
"return",
"right",
";",
"}",
"else",
"if",
"(",
"right",
"=",
"=",
"null",
")",
"{",
"return",
"left",
";",
"}",
"else",
"{",
"return",
"predicate",
"(",
"ops",
"and",
",",
"left",
",",
"right",
")",
";",
"}"
] |
[
"create",
"the",
"union",
"of",
"the",
"given",
"arguments"
] | [
"predicate",
"rv",
"=",
"null",
";",
"for",
"(",
"predicate",
"b",
":",
"exprs",
")",
"{",
"if",
"(",
"b",
"!",
"=",
"null",
")",
"{",
"rv",
"=",
"rv",
"=",
"=",
"null",
"?",
"b",
":",
"expression",
"utils",
"or",
"(",
"rv",
",",
"b",
")",
";",
"}",
"}",
"return",
"rv",
";"
] |
[
"create",
"the",
"union",
"of",
"the",
"given",
"arguments"
] | [
"predicate",
"rv",
"=",
"null",
";",
"for",
"(",
"predicate",
"b",
":",
"exprs",
")",
"{",
"if",
"(",
"b",
"!",
"=",
"null",
")",
"{",
"rv",
"=",
"rv",
"=",
"=",
"null",
"?",
"b",
":",
"expression",
"utils",
"or",
"(",
"rv",
",",
"b",
")",
";",
"}",
"}",
"return",
"rv",
";"
] |
[
"create",
"an",
"alias",
"expression",
"with",
"the",
"given",
"source",
"and",
"alias"
] | [
"return",
"operation",
"(",
"alias",
"get",
"type",
"(",
")",
",",
"ops",
"alias",
",",
"source",
",",
"alias",
")",
";"
] |
[
"create",
"an",
"alias",
"expression",
"with",
"the",
"given",
"source",
"and",
"alias"
] | [
"return",
"as",
"(",
"source",
",",
"path",
"(",
"source",
"get",
"type",
"(",
")",
",",
"alias",
")",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"count",
"(",
"source",
")",
"}",
"expression"
] | [
"return",
"operation",
"(",
"long",
"class",
",",
"ops",
"agg",
"ops",
"count",
"agg",
",",
"source",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"=",
"=",
"constant",
"}",
"expression"
] | [
"return",
"eq",
"(",
"left",
",",
"constant",
"impl",
"create",
"(",
"constant",
")",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"=",
"=",
"right",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"eq",
",",
"left",
",",
"right",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"in",
"right",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"in",
",",
"left",
",",
"right",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"in",
"right",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"in",
",",
"left",
",",
"right",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"in",
"right",
"}",
"expression"
] | [
"if",
"(",
"right",
"size",
"(",
")",
"=",
"=",
"1",
")",
"{",
"return",
"eq",
"const",
"(",
"left",
",",
"right",
"iterator",
"(",
")",
"next",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"predicate",
"(",
"ops",
"in",
",",
"left",
",",
"constant",
"impl",
"create",
"(",
"right",
")",
")",
";",
"}"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"in",
"right",
"or",
"}",
"expression",
"for",
"each",
"list"
] | [
"boolean",
"builder",
"rv",
"=",
"new",
"boolean",
"builder",
"(",
")",
";",
"for",
"(",
"collection",
"<",
"?",
"extends",
"d",
">",
"list",
":",
"lists",
")",
"{",
"rv",
"or",
"(",
"in",
"(",
"left",
",",
"list",
")",
")",
";",
"}",
"return",
"rv",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"is",
"null",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"is",
"null",
",",
"left",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"is",
"not",
"null",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"is",
"not",
"null",
",",
"left",
")",
";"
] |
[
"convert",
"the",
"given",
"like",
"pattern",
"to",
"a",
"regex",
"pattern"
] | [
"return",
"like",
"to",
"regex",
"(",
"expr",
",",
"true",
")",
";"
] |
[
"create",
"a",
"list",
"expression",
"for",
"the",
"given",
"arguments"
] | [
"return",
"list",
"(",
"clazz",
",",
"immutable",
"list",
"copy",
"of",
"(",
"exprs",
")",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"!",
"=",
"constant",
"}",
"expression"
] | [
"return",
"ne",
"(",
"left",
",",
"constant",
"impl",
"create",
"(",
"constant",
")",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"!",
"=",
"right",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"ne",
",",
"left",
",",
"right",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"not",
"in",
"right",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"not",
"in",
",",
"left",
",",
"right",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"not",
"in",
"right",
"}",
"expression"
] | [
"return",
"predicate",
"(",
"ops",
"not",
"in",
",",
"left",
",",
"right",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"not",
"in",
"right",
"}",
"expression"
] | [
"if",
"(",
"right",
"size",
"(",
")",
"=",
"=",
"1",
")",
"{",
"return",
"ne",
"const",
"(",
"left",
",",
"right",
"iterator",
"(",
")",
"next",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"predicate",
"(",
"ops",
"not",
"in",
",",
"left",
",",
"constant",
"impl",
"create",
"(",
"right",
")",
")",
";",
"}"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"not",
"in",
"right",
"and",
"}",
"expression",
"for",
"each",
"list"
] | [
"boolean",
"builder",
"rv",
"=",
"new",
"boolean",
"builder",
"(",
")",
";",
"for",
"(",
"collection",
"<",
"?",
"extends",
"d",
">",
"list",
":",
"lists",
")",
"{",
"rv",
"and",
"(",
"not",
"in",
"(",
"left",
",",
"list",
")",
")",
";",
"}",
"return",
"rv",
";"
] |
[
"create",
"a",
"{",
"@",
"code",
"left",
"or",
"right",
"}",
"expression"
] | [
"left",
"=",
"(",
"predicate",
")",
"extract",
"(",
"left",
")",
";",
"right",
"=",
"(",
"predicate",
")",
"extract",
"(",
"right",
")",
";",
"if",
"(",
"left",
"=",
"=",
"null",
")",
"{",
"return",
"right",
";",
"}",
"else",
"if",
"(",
"right",
"=",
"=",
"null",
")",
"{",
"return",
"left",
";",
"}",
"else",
"{",
"return",
"predicate",
"(",
"ops",
"or",
",",
"left",
",",
"right",
")",
";",
"}"
] |
[
"create",
"a",
"distinct",
"list",
"of",
"the",
"given",
"args"
] | [
"final",
"immutable",
"list",
"builder",
"<",
"expression",
"<",
"?",
">",
">",
"builder",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"final",
"set",
"<",
"expression",
"<",
"?",
">",
">",
"set",
"=",
"new",
"hash",
"set",
"<",
"expression",
"<",
"?",
">",
">",
"(",
"args",
"length",
")",
";",
"for",
"(",
"expression",
"<",
"?",
">",
"arg",
":",
"args",
")",
"{",
"if",
"(",
"set",
"add",
"(",
"arg",
")",
")",
"{",
"builder",
"add",
"(",
"arg",
")",
";",
"}",
"}",
"return",
"builder",
"build",
"(",
")",
";"
] |
[
"create",
"a",
"distinct",
"list",
"of",
"the",
"concatenated",
"array",
"contents"
] | [
"final",
"immutable",
"list",
"builder",
"<",
"expression",
"<",
"?",
">",
">",
"builder",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"final",
"set",
"<",
"expression",
"<",
"?",
">",
">",
"set",
"=",
"new",
"hash",
"set",
"<",
"expression",
"<",
"?",
">",
">",
"(",
")",
";",
"for",
"(",
"expression",
"<",
"?",
">",
"[",
"]",
"arr",
":",
"args",
")",
"{",
"for",
"(",
"expression",
"<",
"?",
">",
"arg",
":",
"arr",
")",
"{",
"if",
"(",
"set",
"add",
"(",
"arg",
")",
")",
"{",
"builder",
"add",
"(",
"arg",
")",
";",
"}",
"}",
"}",
"return",
"builder",
"build",
"(",
")",
";"
] |
[
"create",
"a",
"new",
"root",
"variable",
"based",
"on",
"the",
"given",
"path"
] | [
"return",
"path",
"accept",
"(",
"to",
"string",
"visitor",
"default",
",",
"templates",
")",
";"
] |
[
"converts",
"the",
"given",
"object",
"to",
"an",
"expression"
] | [
"if",
"(",
"o",
"instanceof",
"expression",
")",
"{",
"return",
"(",
"expression",
"<",
"?",
">",
")",
"o",
";",
"}",
"else",
"{",
"return",
"constant",
"impl",
"create",
"(",
"o",
")",
";",
"}"
] |
[
"converts",
"the",
"given",
"expression",
"to",
"lower",
"(",
"expression",
")"
] | [
"if",
"(",
"string",
"expression",
"instanceof",
"constant",
")",
"{",
"constant",
"<",
"string",
">",
"constant",
"expression",
"=",
"(",
"constant",
"<",
"string",
">",
")",
"string",
"expression",
";",
"return",
"constant",
"impl",
"create",
"(",
"constant",
"expression",
"get",
"constant",
"(",
")",
"to",
"lower",
"case",
"(",
")",
")",
";",
"}",
"else",
"{",
"return",
"operation",
"(",
"string",
"class",
",",
"ops",
"lower",
",",
"string",
"expression",
")",
";",
"}"
] |
[
"create",
"an",
"expression",
"out",
"of",
"the",
"given",
"order",
"specifiers"
] | [
"return",
"operation",
"(",
"object",
"class",
",",
"ops",
"order",
",",
"constant",
"impl",
"create",
"(",
"args",
")",
")",
";"
] |
[
"add",
"a",
"configuration",
"resource"
] | [
"add",
"resource",
"object",
"(",
"new",
"resource",
"(",
"conf",
"get",
"props",
"(",
")",
",",
"conf",
"restrict",
"system",
"props",
")",
")",
";"
] |
[
"return",
"time",
"duration",
"in",
"the",
"given",
"time",
"unit",
"valid",
"units",
"are",
"encoded",
"in",
"properties",
"as",
"suffixes",
":",
"nanoseconds",
"(",
"ns",
")",
"microseconds",
"(",
"us",
")",
"milliseconds",
"(",
"ms",
")",
"seconds",
"(",
"s",
")",
"minutes",
"(",
"m",
")",
"hours",
"(",
"h",
")",
"and",
"days",
"(",
"d",
")"
] | [
"string",
"v",
"str",
"=",
"get",
"(",
"name",
")",
";",
"if",
"(",
"null",
"=",
"=",
"v",
"str",
")",
"{",
"return",
"default",
"value",
";",
"}",
"else",
"{",
"return",
"get",
"time",
"duration",
"helper",
"(",
"name",
",",
"v",
"str",
",",
"unit",
")",
";",
"}"
] |
[
"sets",
"storage",
"size",
"for",
"the",
"specified",
"key"
] | [
"set",
"(",
"name",
",",
"value",
"+",
"unit",
"get",
"short",
"name",
"(",
")",
")",
";"
] |
[
"convert",
"the",
"value",
"from",
"one",
"storage",
"unit",
"to",
"another"
] | [
"double",
"byte",
"value",
"=",
"source",
"unit",
"to",
"bytes",
"(",
"value",
")",
";",
"return",
"target",
"unit",
"from",
"bytes",
"(",
"byte",
"value",
")",
";"
] |
[
"get",
"range",
"start",
"for",
"the",
"first",
"integer",
"range"
] | [
"if",
"(",
"ranges",
"=",
"=",
"null",
"|",
"|",
"ranges",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"-",
"1",
";",
"}",
"range",
"r",
"=",
"ranges",
"get",
"(",
"0",
")",
";",
"return",
"r",
"start",
";"
] |
[
"fallback",
"to",
"clear",
"text",
"passwords",
"in",
"configuration"
] | [
"char",
"[",
"]",
"pass",
"=",
"null",
";",
"if",
"(",
"get",
"boolean",
"(",
"credential",
"provider",
"clear",
"text",
"fallback",
",",
"common",
"configuration",
"keys",
"public",
"hadoop",
"security",
"credential",
"clear",
"text",
"fallback",
"default",
")",
")",
"{",
"string",
"pass",
"str",
"=",
"get",
"(",
"name",
")",
";",
"if",
"(",
"pass",
"str",
"!",
"=",
"null",
")",
"{",
"pass",
"=",
"pass",
"str",
"to",
"char",
"array",
"(",
")",
";",
"}",
"}",
"return",
"pass",
";"
] |
[
"get",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"property",
"as",
"an",
"array",
"of",
"<",
"code",
">",
"class",
"<",
"/",
"code",
">",
"the",
"value",
"of",
"the",
"property",
"specifies",
"a",
"list",
"of",
"comma",
"separated",
"class",
"names",
"if",
"no",
"such",
"property",
"is",
"specified",
"then",
"<",
"code",
">",
"default",
"value",
"<",
"/",
"code",
">",
"is",
"returned"
] | [
"string",
"value",
"string",
"=",
"get",
"raw",
"(",
"name",
")",
";",
"if",
"(",
"null",
"=",
"=",
"value",
"string",
")",
"{",
"return",
"default",
"value",
";",
"}",
"string",
"[",
"]",
"classnames",
"=",
"get",
"trimmed",
"strings",
"(",
"name",
")",
";",
"try",
"{",
"class",
"<",
"?",
">",
"[",
"]",
"classes",
"=",
"new",
"class",
"<",
"?",
">",
"[",
"classnames",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"classnames",
"length",
";",
"i",
"+",
"+",
")",
"{",
"classes",
"[",
"i",
"]",
"=",
"get",
"class",
"by",
"name",
"(",
"classnames",
"[",
"i",
"]",
")",
";",
"}",
"return",
"classes",
";",
"}",
"catch",
"(",
"class",
"not",
"found",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"e",
")",
";",
"}"
] |
[
"constructs",
"a",
"mapping",
"of",
"configuration",
"and",
"includes",
"all",
"properties",
"that",
"start",
"with",
"the",
"specified",
"configuration",
"prefix",
"property",
"names",
"in",
"the",
"mapping",
"are",
"trimmed",
"to",
"remove",
"the",
"configuration",
"prefix"
] | [
"properties",
"props",
"=",
"get",
"props",
"(",
")",
";",
"enumeration",
"e",
"=",
"props",
"property",
"names",
"(",
")",
";",
"map",
"<",
"string",
",",
"string",
">",
"config",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"string",
"name",
"=",
"null",
";",
"while",
"(",
"e",
"has",
"more",
"elements",
"(",
")",
")",
"{",
"name",
"=",
"(",
"string",
")",
"e",
"next",
"element",
"(",
")",
";",
"if",
"(",
"name",
"starts",
"with",
"(",
"conf",
"prefix",
")",
")",
"{",
"string",
"value",
"=",
"props",
"get",
"property",
"(",
"name",
")",
";",
"name",
"=",
"name",
"substring",
"(",
"conf",
"prefix",
"length",
"(",
")",
")",
";",
"config",
"map",
"put",
"(",
"name",
",",
"value",
")",
";",
"}",
"}",
"return",
"config",
"map",
";"
] |
[
"returns",
"the",
"size",
"of",
"the",
"data",
"in",
"this",
"request",
"otherwise",
"-",
"1",
"if",
"the",
"content",
"length",
"is",
"unknown"
] | [
"file",
"file",
"=",
"get",
"request",
"file",
"(",
"put",
"object",
"request",
")",
";",
"if",
"(",
"file",
"!",
"=",
"null",
")",
"return",
"file",
"length",
"(",
")",
";",
"if",
"(",
"put",
"object",
"request",
"get",
"input",
"stream",
"(",
")",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"put",
"object",
"request",
"get",
"metadata",
"(",
")",
"get",
"content",
"length",
"(",
")",
">",
"0",
")",
"{",
"return",
"put",
"object",
"request",
"get",
"metadata",
"(",
")",
"get",
"content",
"length",
"(",
")",
";",
"}",
"}",
"return",
"-",
"1",
";"
] |
[
"returns",
"true",
"if",
"the",
"the",
"specified",
"request",
"should",
"be",
"processed",
"as",
"a",
"multipart",
"upload",
"(",
"instead",
"of",
"a",
"single",
"part",
"upload",
")"
] | [
"long",
"content",
"length",
"=",
"transfer",
"manager",
"utils",
"get",
"content",
"length",
"(",
"put",
"object",
"request",
")",
";",
"return",
"(",
"content",
"length",
">",
"configuration",
"get",
"multipart",
"upload",
"threshold",
"(",
")",
")",
";"
] |
[
"convenience",
"method",
"for",
"getting",
"the",
"file",
"specified",
"in",
"a",
"request"
] | [
"if",
"(",
"put",
"object",
"request",
"get",
"file",
"(",
")",
"!",
"=",
"null",
")",
"return",
"put",
"object",
"request",
"get",
"file",
"(",
")",
";",
"return",
"null",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.