docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"aws",
"account",
"that",
"you",
"set",
"as",
"the",
"aws",
"firewall",
"manager",
"administrator",
"<",
"/",
"p",
">"
] |
[
"set",
"role",
"status",
"(",
"role",
"status",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"aws",
"account",
"that",
"you",
"set",
"as",
"the",
"aws",
"firewall",
"manager",
"administrator",
"<",
"/",
"p",
">"
] |
[
"this",
"role",
"status",
"=",
"role",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"this",
"method",
"can",
"be",
"removed",
"when",
"manifest",
"parsing",
"is",
"no",
"longer",
"supported"
] |
[
"@",
"non",
"null",
"abstract",
"set",
"<",
"class",
"<",
"?",
">",
">",
"get",
"excluded",
"module",
"classes",
"(",
")",
";"
] |
[
"server",
"context",
"shutdown",
"hook",
"override",
"for",
"custom",
"logic"
] |
[
"eureka",
"monitors",
"shutdown",
"(",
")",
";",
"if",
"(",
"this",
"aws",
"binder",
"!",
"=",
"null",
")",
"{",
"this",
"aws",
"binder",
"shutdown",
"(",
")",
";",
"}",
"if",
"(",
"this",
"server",
"context",
"!",
"=",
"null",
")",
"{",
"this",
"server",
"context",
"shutdown",
"(",
")",
";",
"}"
] |
[
"purpose"
] |
[
"list",
"<",
"rel",
"node",
">",
"ret",
"=",
"new",
"array",
"list",
"<",
"rel",
"node",
">",
"(",
")",
";",
"for",
"(",
"rel",
"node",
"input",
":",
"union",
"rel",
"get",
"inputs",
"(",
")",
")",
"{",
"if",
"(",
"input",
"instanceof",
"hive",
"union",
")",
"{",
"ret",
"add",
"all",
"(",
"extract",
"rel",
"node",
"from",
"union",
"(",
"(",
"hive",
"union",
")",
"input",
")",
")",
";",
"}",
"else",
"{",
"ret",
"add",
"(",
"input",
")",
";",
"}",
"}",
"return",
"ret",
";"
] |
[
"create",
"column",
"info",
"with",
"new",
"table",
"alias"
] |
[
"array",
"list",
"<",
"column",
"info",
">",
"c",
"info",
"lst",
"=",
"new",
"array",
"list",
"<",
"column",
"info",
">",
"(",
")",
";",
"for",
"(",
"column",
"info",
"ci",
":",
"input",
"get",
"schema",
"(",
")",
"get",
"signature",
"(",
")",
")",
"{",
"column",
"info",
"copy",
"of",
"column",
"info",
"=",
"new",
"column",
"info",
"(",
"ci",
")",
";",
"copy",
"of",
"column",
"info",
"set",
"tab",
"alias",
"(",
"table",
"alias",
")",
";",
"c",
"info",
"lst",
"add",
"(",
"copy",
"of",
"column",
"info",
")",
";",
"}",
"return",
"c",
"info",
"lst",
";"
] |
[
"load",
"the",
"config",
"parameters",
"from",
"the",
"command",
"line"
] |
[
"return",
"config",
"new",
"builder",
"(",
")",
"put",
"(",
"key",
"cluster",
",",
"cluster",
")",
"put",
"(",
"key",
"role",
",",
"role",
")",
"put",
"(",
"key",
"environ",
",",
"environ",
")",
"put",
"(",
"key",
"submit",
"user",
",",
"submit",
"user",
")",
"put",
"(",
"key",
"dry",
"run",
",",
"dry",
"run",
")",
"put",
"(",
"key",
"dry",
"run",
"format",
"type",
",",
"dry",
"run",
"format",
")",
"put",
"(",
"key",
"verbose",
",",
"verbose",
")",
"build",
"(",
")",
";"
] |
[
"does",
"this",
"node",
"have",
"any",
"children",
"?"
] |
[
"return",
"children",
"!",
"=",
"null",
"&",
"&",
"!",
"children",
"is",
"empty",
"(",
")",
";"
] |
[
"get",
"the",
"children",
"of",
"this",
"node"
] |
[
"return",
"(",
"children",
"=",
"=",
"null",
")",
"?",
"empty",
"set",
":",
"collections",
"unmodifiable",
"sorted",
"set",
"(",
"children",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"throw",
"lang",
"no",
"implement",
"(",
")",
";"
] |
[
"extract",
"flag",
"from",
"a",
"byte"
] |
[
"if",
"(",
"pos",
">",
"7",
")",
"{",
"return",
"false",
";",
"}",
"return",
"(",
"(",
"(",
"b",
"&",
"(",
"0x",
"1",
"<",
"<",
"pos",
")",
")",
">",
">",
"pos",
")",
"=",
"=",
"1",
")",
";"
] |
[
"return",
"the",
"type",
"of",
"message",
"that",
"has",
"been",
"received",
"given",
"the",
"message",
"string"
] |
[
"if",
"(",
"pkt",
"len",
"ok",
"(",
"raw",
"msg",
")",
"=",
"=",
"false",
")",
"{",
"return",
"max",
"cul",
"msg",
"type",
"unknown",
";",
"}",
"return",
"max",
"cul",
"msg",
"type",
"from",
"byte",
"(",
"(",
"byte",
")",
"(",
"integer",
"parse",
"int",
"(",
"raw",
"msg",
"substring",
"(",
"pkt",
"pos",
"msg",
"type",
",",
"pkt",
"pos",
"msg",
"type",
"+",
"pkt",
"pos",
"msg",
"type",
"len",
")",
",",
"16",
")",
"&",
"0xff",
")",
")",
";"
] |
[
"indicate",
"if",
"this",
"packet",
"is",
"complete"
] |
[
"return",
"this",
"flg",
"ready",
"to",
"send",
";"
] |
[
"print",
"the",
"full",
"message",
"out",
"to",
"debug"
] |
[
"print",
"message",
"header",
"(",
")",
";",
"print",
"formatted",
"payload",
"(",
")",
";"
] |
[
"set",
"this",
"message",
"to",
"be",
"part",
"of",
"a",
"message",
"sequence",
"also",
"checks",
"if",
"it",
"should",
"be",
"using",
"fast",
"send",
"for",
"this",
"message",
"or",
"not"
] |
[
"msg",
"sequencer",
"=",
"msg",
"seq",
";",
"if",
"(",
"msg",
"seq",
"!",
"=",
"null",
")",
"{",
"this",
"set",
"fast",
"send",
"(",
"msg",
"seq",
"use",
"fast",
"send",
"(",
")",
")",
";",
"}"
] |
[
"get",
"the",
"message",
"sequencer",
"associated",
"with",
"this",
"message"
] |
[
"return",
"msg",
"sequencer",
";"
] |
[
"check",
"if",
"this",
"message",
"is",
"part",
"of",
"a",
"sequence"
] |
[
"return",
"(",
"msg",
"sequencer",
"!",
"=",
"null",
")",
";"
] |
[
"get",
"fast",
"send",
"status"
] |
[
"return",
"fast",
"send",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"return",
"collection",
"helper",
"immutable",
"map",
"of",
"(",
"service",
"definition",
"service",
"meta",
"port",
",",
"integer",
"to",
"string",
"(",
"http",
"u",
"r",
"i",
"get",
"port",
"(",
")",
")",
",",
"service",
"definition",
"service",
"meta",
"path",
",",
"http",
"u",
"r",
"i",
"get",
"path",
"(",
")",
",",
"service",
"definition",
"service",
"meta",
"protocol",
",",
"http",
"u",
"r",
"i",
"get",
"scheme",
"(",
")",
")",
";"
] |
[
"the",
"url",
"of",
"the",
"http",
"endpoint",
"to",
"use"
] |
[
"this",
"http",
"u",
"r",
"i",
"=",
"undertow",
"helper",
"make",
"http",
"u",
"r",
"i",
"(",
"http",
"u",
"r",
"i",
")",
";"
] |
[
"setting",
"to",
"facilitate",
"socket",
"multiplexing"
] |
[
"this",
"reuse",
"addresses",
"=",
"reuse",
"addresses",
";"
] |
[
"to",
"send",
"to",
"all",
"websocket",
"subscribers",
"can",
"be",
"used",
"to",
"configure",
"on",
"endpoint",
"level",
"instead",
"of",
"having",
"to",
"use",
"the",
"websocket",
"constants",
"send",
"to",
"all",
"header",
"on",
"the",
"message"
] |
[
"this",
"send",
"to",
"all",
"=",
"send",
"to",
"all",
";"
] |
[
"timeout",
"in",
"millis",
"when",
"sending",
"to",
"a",
"websocket",
"channel",
"the",
"default",
"timeout",
"is",
"30000",
"(",
"30",
"seconds",
")"
] |
[
"this",
"send",
"timeout",
"=",
"send",
"timeout",
";"
] |
[
"if",
"{"
] |
[
"this",
"fire",
"web",
"socket",
"channel",
"events",
"=",
"fire",
"web",
"socket",
"channel",
"events",
";"
] |
[
"returns",
"the",
"lock",
"expressions",
"in",
"the",
"{"
] |
[
"protected",
"abstract",
"immutable",
"list",
"<",
"string",
">",
"get",
"lock",
"expressions",
"(",
"method",
"tree",
"tree",
")",
";"
] |
[
"searches",
"the",
"method",
"body",
"for",
"locks",
"that",
"are",
"acquired",
"/",
"released"
] |
[
"protected",
"abstract",
"set",
"<",
"guarded",
"by",
"expression",
">",
"get",
"actual",
"(",
"method",
"tree",
"tree",
",",
"visitor",
"state",
"state",
")",
";"
] |
[
"searches",
"the",
"method",
"body",
"for",
"the",
"incorrect",
"lock",
"operation",
"(",
"e",
"g",
"releasing",
"a",
"lock",
"in",
"{"
] |
[
"protected",
"abstract",
"set",
"<",
"guarded",
"by",
"expression",
">",
"get",
"unwanted",
"(",
"method",
"tree",
"tree",
",",
"visitor",
"state",
"state",
")",
";"
] |
[
"builds",
"the",
"error",
"message",
"given",
"the",
"list",
"of",
"locks",
"that",
"were",
"not",
"handled"
] |
[
"protected",
"abstract",
"string",
"build",
"message",
"(",
"string",
"unhandled",
")",
";"
] |
[
"create",
"a",
"new",
"{",
"@",
"link",
"emitter",
"processor",
"}",
"using",
"{",
"@",
"link",
"queues",
"#",
"small",
"buffer",
"size",
"}",
"backlog",
"size",
"and",
"auto",
"-",
"cancel"
] |
[
"return",
"create",
"(",
"queues",
"small",
"buffer",
"size",
",",
"true",
")",
";"
] |
[
"create",
"a",
"new",
"{",
"@",
"link",
"emitter",
"processor",
"}",
"using",
"{",
"@",
"link",
"queues",
"#",
"small",
"buffer",
"size",
"}",
"backlog",
"size",
"and",
"the",
"provided",
"auto",
"-",
"cancel"
] |
[
"return",
"create",
"(",
"queues",
"small",
"buffer",
"size",
",",
"auto",
"cancel",
")",
";"
] |
[
"create",
"a",
"new",
"{",
"@",
"link",
"emitter",
"processor",
"}",
"using",
"the",
"provided",
"backlog",
"size",
"with",
"auto",
"-",
"cancel"
] |
[
"return",
"create",
"(",
"buffer",
"size",
",",
"true",
")",
";"
] |
[
"create",
"a",
"new",
"{",
"@",
"link",
"emitter",
"processor",
"}",
"using",
"the",
"provided",
"backlog",
"size",
"and",
"auto",
"-",
"cancellation"
] |
[
"return",
"new",
"emitter",
"processor",
"<",
">",
"(",
"auto",
"cancel",
",",
"buffer",
"size",
")",
";"
] |
[
"return",
"the",
"number",
"of",
"parked",
"elements",
"in",
"the",
"emitter",
"backlog"
] |
[
"queue",
"<",
"t",
">",
"q",
"=",
"queue",
";",
"return",
"q",
"!",
"=",
"null",
"?",
"q",
"size",
"(",
")",
":",
"0",
";"
] |
[
"given",
"the",
"map",
"of",
"variables",
"expands",
"this",
"template",
"into",
"a",
"uri",
"the",
"map",
"keys",
"represent",
"variable",
"names",
"the",
"map",
"values",
"variable",
"values",
"the",
"order",
"of",
"variables",
"is",
"not",
"significant",
"<",
"p",
">",
"example",
":",
"<",
"pre",
"class",
"=",
"code",
">",
"uri",
"template",
"template",
"=",
"new",
"uri",
"template",
"(",
"http",
":",
"/",
"/",
"example",
"com",
"/",
"hotels",
"/",
"{",
"hotel",
"}",
"/",
"bookings",
"/",
"{",
"booking",
"}",
")",
";",
"map",
"&",
"lt",
";",
"string",
"string",
"&",
"gt",
";",
"uri",
"variables",
"=",
"new",
"hash",
"map",
"&",
"lt",
";",
"string",
"string",
"&",
"gt",
";",
"(",
")",
";",
"uri",
"variables",
"put",
"(",
"booking",
"42",
")",
";",
"uri",
"variables",
"put",
"(",
"hotel",
"rest",
"&",
"relax",
")",
";",
"system",
"out",
"println",
"(",
"template",
"expand",
"(",
"uri",
"variables",
")",
")",
";",
"<",
"/",
"pre",
">",
"will",
"print",
":",
"<",
"blockquote",
">",
"{"
] |
[
"uri",
"components",
"expanded",
"components",
"=",
"this",
"uri",
"components",
"expand",
"(",
"uri",
"variables",
")",
";",
"uri",
"components",
"encoded",
"components",
"=",
"expanded",
"components",
"encode",
"(",
")",
";",
"return",
"encoded",
"components",
"to",
"uri",
"(",
")",
";"
] |
[
"given",
"an",
"array",
"of",
"variables",
"expand",
"this",
"template",
"into",
"a",
"full",
"uri",
"the",
"array",
"represent",
"variable",
"values",
"the",
"order",
"of",
"variables",
"is",
"significant",
"<",
"p",
">",
"example",
":",
"<",
"pre",
"class",
"=",
"code",
">",
"uri",
"template",
"template",
"=",
"new",
"uri",
"template",
"(",
"http",
":",
"/",
"/",
"example",
"com",
"/",
"hotels",
"/",
"{",
"hotel",
"}",
"/",
"bookings",
"/",
"{",
"booking",
"}",
")",
";",
"system",
"out",
"println",
"(",
"template",
"expand",
"(",
"rest",
"&",
"relax",
"42",
")",
")",
";",
"<",
"/",
"pre",
">",
"will",
"print",
":",
"<",
"blockquote",
">",
"{"
] |
[
"uri",
"components",
"expanded",
"components",
"=",
"this",
"uri",
"components",
"expand",
"(",
"uri",
"variable",
"values",
")",
";",
"uri",
"components",
"encoded",
"components",
"=",
"expanded",
"components",
"encode",
"(",
")",
";",
"return",
"encoded",
"components",
"to",
"uri",
"(",
")",
";"
] |
[
"indicate",
"whether",
"the",
"given",
"uri",
"matches",
"this",
"template"
] |
[
"if",
"(",
"uri",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"matcher",
"matcher",
"=",
"this",
"match",
"pattern",
"matcher",
"(",
"uri",
")",
";",
"return",
"matcher",
"matches",
"(",
")",
";"
] |
[
"starts",
"the",
"source",
"mapping",
"for",
"the",
"given",
"node",
"at",
"the",
"current",
"position"
] |
[
"check",
"state",
"(",
"source",
"map",
"detail",
"level",
"!",
"=",
"null",
")",
";",
"check",
"state",
"(",
"node",
"!",
"=",
"null",
")",
";",
"if",
"(",
"create",
"src",
"map",
"&",
"&",
"node",
"get",
"source",
"file",
"name",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"node",
"get",
"lineno",
"(",
")",
">",
"0",
"&",
"&",
"source",
"map",
"detail",
"level",
"apply",
"(",
"node",
")",
")",
"{",
"int",
"line",
"=",
"get",
"current",
"line",
"index",
"(",
")",
";",
"int",
"index",
"=",
"get",
"current",
"char",
"index",
"(",
")",
";",
"check",
"state",
"(",
"line",
">",
"=",
"0",
")",
";",
"mapping",
"mapping",
"=",
"new",
"mapping",
"(",
")",
";",
"mapping",
"node",
"=",
"node",
";",
"mapping",
"start",
"=",
"new",
"file",
"position",
"(",
"line",
",",
"index",
")",
";",
"mappings",
"push",
"(",
"mapping",
")",
";",
"all",
"mappings",
"add",
"(",
"mapping",
")",
";",
"}"
] |
[
"finishes",
"the",
"source",
"mapping",
"for",
"the",
"given",
"node",
"at",
"the",
"current",
"position"
] |
[
"if",
"(",
"create",
"src",
"map",
"&",
"&",
"!",
"mappings",
"is",
"empty",
"(",
")",
"&",
"&",
"mappings",
"peek",
"(",
")",
"node",
"=",
"=",
"node",
")",
"{",
"mapping",
"mapping",
"=",
"mappings",
"pop",
"(",
")",
";",
"int",
"line",
"=",
"get",
"current",
"line",
"index",
"(",
")",
";",
"int",
"index",
"=",
"get",
"current",
"char",
"index",
"(",
")",
";",
"check",
"state",
"(",
"line",
">",
"=",
"0",
")",
";",
"mapping",
"end",
"=",
"new",
"file",
"position",
"(",
"line",
",",
"index",
")",
";",
"}"
] |
[
"generates",
"the",
"source",
"map",
"from",
"the",
"given",
"code",
"consumer",
"appending",
"the",
"information",
"it",
"saved",
"to",
"the",
"source",
"map",
"object",
"given"
] |
[
"if",
"(",
"create",
"src",
"map",
")",
"{",
"list",
"<",
"integer",
">",
"line",
"lengths",
"=",
"compute",
"line",
"lengths",
"(",
"code",
")",
";",
"for",
"(",
"mapping",
"mapping",
":",
"all",
"mappings",
")",
"{",
"map",
"add",
"mapping",
"(",
"mapping",
"node",
",",
"mapping",
"start",
",",
"adjust",
"end",
"position",
"(",
"line",
"lengths",
",",
"mapping",
"end",
")",
")",
";",
"}",
"}"
] |
[
"reports",
"to",
"the",
"code",
"consumer",
"that",
"the",
"given",
"line",
"has",
"been",
"cut",
"at",
"the",
"given",
"position",
"i",
"e",
"a",
"\\",
"n",
"has",
"been",
"inserted",
"there",
"or",
"that",
"a",
"cut",
"has",
"been",
"undone",
"i",
"e",
"a",
"previously",
"inserted",
"\\",
"n",
"has",
"been",
"removed",
"all",
"mappings",
"in",
"the",
"source",
"maps",
"after",
"that",
"position",
"will",
"be",
"renormalized",
"as",
"needed"
] |
[
"if",
"(",
"create",
"src",
"map",
")",
"{",
"for",
"(",
"mapping",
"mapping",
":",
"all",
"mappings",
")",
"{",
"mapping",
"start",
"=",
"convert",
"position",
"(",
"mapping",
"start",
",",
"line",
"index",
",",
"char",
"index",
",",
"insertion",
")",
";",
"if",
"(",
"mapping",
"end",
"!",
"=",
"null",
")",
"{",
"mapping",
"end",
"=",
"convert",
"position",
"(",
"mapping",
"end",
",",
"line",
"index",
",",
"char",
"index",
",",
"insertion",
")",
";",
"}",
"}",
"}"
] |
[
"adds",
"a",
"newline",
"to",
"the",
"code",
"resetting",
"the",
"line",
"length",
"and",
"handling",
"indenting",
"for",
"pretty",
"printing"
] |
[
"if",
"(",
"line",
"length",
">",
"0",
")",
"{",
"code",
"append",
"(",
"'",
"\\",
"n",
"'",
")",
";",
"line",
"index",
"+",
"+",
";",
"line",
"length",
"=",
"0",
";",
"}"
] |
[
"this",
"may",
"start",
"a",
"new",
"line",
"if",
"the",
"current",
"line",
"is",
"longer",
"than",
"the",
"line",
"length",
"threshold"
] |
[
"if",
"(",
"line",
"length",
">",
"line",
"length",
"threshold",
")",
"{",
"start",
"new",
"line",
"(",
")",
";",
"}"
] |
[
"adds",
"a",
"newline",
"to",
"the",
"code",
"resetting",
"the",
"line",
"length"
] |
[
"if",
"(",
"line",
"length",
">",
"0",
")",
"{",
"prev",
"cut",
"position",
"=",
"code",
"length",
"(",
")",
";",
"prev",
"line",
"start",
"position",
"=",
"line",
"start",
"position",
";",
"code",
"append",
"(",
"'",
"\\",
"n",
"'",
")",
";",
"line",
"length",
"=",
"0",
";",
"line",
"index",
"+",
"+",
";",
"line",
"start",
"position",
"=",
"code",
"length",
"(",
")",
";",
"}"
] |
[
"sets",
"the",
"output",
"options",
"from",
"compiler",
"options"
] |
[
"this",
"options",
"=",
"options",
";",
"this",
"pretty",
"print",
"=",
"options",
"is",
"pretty",
"print",
"(",
")",
";",
"this",
"line",
"break",
"=",
"options",
"line",
"break",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"pretty",
"printing",
"should",
"be",
"used"
] |
[
"this",
"pretty",
"print",
"=",
"pretty",
"print",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"line",
"breaking",
"should",
"be",
"done",
"automatically"
] |
[
"this",
"line",
"break",
"=",
"line",
"break",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"to",
"output",
"closure",
"-",
"style",
"type",
"annotations"
] |
[
"this",
"output",
"types",
"=",
"output",
"types",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"source",
"map",
"to",
"which",
"to",
"write",
"the",
"metadata",
"about",
"the",
"generated",
"source",
"code"
] |
[
"this",
"source",
"map",
"=",
"source",
"map",
";",
"return",
"this",
";"
] |
[
"set",
"whether",
"the",
"output",
"should",
"be",
"tagged",
"as",
"an",
"i",
"js",
"file"
] |
[
"this",
"tag",
"as",
"type",
"summary",
"=",
"tag",
"as",
"type",
"summary",
";",
"return",
"this",
";"
] |
[
"set",
"whether",
"the",
"output",
"should",
"be",
"tags",
"as",
"ecmascript",
"5",
"strict"
] |
[
"this",
"tag",
"as",
"strict",
"=",
"tag",
"as",
"strict",
";",
"return",
"this",
";"
] |
[
"set",
"a",
"custom",
"code",
"generator",
"factory",
"to",
"enable",
"custom",
"code",
"generation"
] |
[
"this",
"code",
"generator",
"factory",
"=",
"factory",
";",
"return",
"this",
";"
] |
[
"converts",
"a",
"tree",
"to",
"js",
"code"
] |
[
"check",
"state",
"(",
"options",
"source",
"map",
"detail",
"level",
"!",
"=",
"null",
")",
";",
"boolean",
"create",
"source",
"map",
"=",
"(",
"source",
"map",
"!",
"=",
"null",
")",
";",
"mapped",
"code",
"printer",
"mcp",
"=",
"output",
"format",
"=",
"=",
"format",
"compact",
"?",
"new",
"compact",
"code",
"printer",
"(",
"line",
"break",
",",
"options",
"prefer",
"line",
"break",
"at",
"end",
"of",
"file",
",",
"options",
"line",
"length",
"threshold",
",",
"create",
"source",
"map",
",",
"options",
"source",
"map",
"detail",
"level",
")",
":",
"new",
"pretty",
"code",
"printer",
"(",
"options",
"line",
"length",
"threshold",
",",
"create",
"source",
"map",
",",
"options",
"source",
"map",
"detail",
"level",
")",
";",
"code",
"generator",
"cg",
"=",
"code",
"generator",
"factory",
"get",
"code",
"generator",
"(",
"output",
"format",
",",
"mcp",
")",
";",
"if",
"(",
"tag",
"as",
"type",
"summary",
")",
"{",
"cg",
"tag",
"as",
"type",
"summary",
"(",
")",
";",
"}",
"if",
"(",
"tag",
"as",
"strict",
")",
"{",
"cg",
"tag",
"as",
"strict",
"(",
")",
";",
"}",
"cg",
"add",
"(",
"root",
")",
";",
"mcp",
"end",
"file",
"(",
")",
";",
"string",
"code",
"=",
"mcp",
"get",
"code",
"(",
")",
";",
"if",
"(",
"create",
"source",
"map",
")",
"{",
"mcp",
"generate",
"source",
"map",
"(",
"code",
",",
"source",
"map",
")",
";",
"}",
"return",
"code",
";"
] |
[
"<",
"p",
">",
"a",
"structure",
"that",
"shows",
"the",
"root",
"with",
"the",
"updated",
"list",
"of",
"enabled",
"policy",
"types",
"<",
"/",
"p",
">"
] |
[
"set",
"root",
"(",
"root",
")",
";",
"return",
"this",
";"
] |
[
"~",
"methods",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"hprof",
"byte",
"buffer",
"dump",
"buffer",
"=",
"class",
"dump",
"get",
"hprof",
"buffer",
"(",
")",
";",
"return",
"dump",
"buffer",
"get",
"i",
"d",
"(",
"file",
"offset",
"+",
"class",
"dump",
"class",
"dump",
"segment",
"field",
"value",
"offset",
")",
";"
] |
[
"}"
] |
[
"this",
"o",
"super",
"name",
"=",
"old",
"super",
"name",
";",
"this",
"n",
"super",
"name",
"=",
"new",
"super",
"name",
";",
"this",
"changed",
"|",
"=",
"changed",
"supername",
";"
] |
[
"set",
"the",
"maximum",
"number",
"of",
"attempts",
"in",
"milliseconds"
] |
[
"this",
"max",
"attempts",
"=",
"max",
"attempts",
";"
] |
[
"return",
"the",
"maximum",
"number",
"of",
"attempts",
"in",
"milliseconds"
] |
[
"return",
"this",
"max",
"attempts",
";"
] |
[
"set",
"default",
"-",
"ish",
"params",
"on",
"a",
"solr",
"query",
"request"
] |
[
"set",
"defaults",
"(",
"null",
",",
"req",
",",
"defaults",
",",
"appends",
",",
"invariants",
")",
";"
] |
[
"solr",
"index",
"search",
"num",
"docs",
"(",
"query",
"query",
")",
"freaks",
"out",
"if",
"the",
"filtering",
"query",
"is",
"null",
"so",
"we",
"use",
"this",
"workarround"
] |
[
"return",
"(",
"null",
"=",
"=",
"f",
")",
"?",
"s",
"get",
"doc",
"set",
"(",
"q",
")",
"size",
"(",
")",
":",
"s",
"num",
"docs",
"(",
"q",
",",
"f",
")",
";"
] |
[
"split",
"a",
"value",
"that",
"may",
"contain",
"a",
"comma",
"space",
"of",
"bar",
"separated",
"list"
] |
[
"return",
"split",
"list",
"split",
"(",
"value",
"trim",
"(",
")",
",",
"0",
")",
";"
] |
[
"<",
"p",
">",
"returns",
"a",
"named",
"list",
"containing",
"many",
"standard",
"pieces",
"of",
"debugging",
"information",
"<",
"/",
"p",
">"
] |
[
"named",
"list",
"dbg",
"=",
"new",
"simple",
"ordered",
"map",
"(",
")",
";",
"do",
"standard",
"query",
"debug",
"(",
"req",
",",
"user",
"query",
",",
"query",
",",
"dbg",
"query",
",",
"dbg",
")",
";",
"do",
"standard",
"results",
"debug",
"(",
"req",
",",
"query",
",",
"results",
",",
"dbg",
"results",
",",
"dbg",
")",
";",
"return",
"dbg",
";"
] |
[
"generates",
"an",
"named",
"list",
"of",
"explanations",
"for",
"each",
"item",
"in",
"a",
"list",
"of",
"docs"
] |
[
"named",
"list",
"<",
"explanation",
">",
"explain",
"list",
"=",
"new",
"simple",
"ordered",
"map",
"<",
">",
"(",
")",
";",
"doc",
"iterator",
"iterator",
"=",
"docs",
"iterator",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"docs",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"int",
"id",
"=",
"iterator",
"next",
"doc",
"(",
")",
";",
"document",
"doc",
"=",
"searcher",
"doc",
"(",
"id",
")",
";",
"string",
"strid",
"=",
"schema",
"printable",
"unique",
"key",
"(",
"doc",
")",
";",
"explain",
"list",
"add",
"(",
"strid",
",",
"searcher",
"explain",
"(",
"query",
",",
"id",
")",
")",
";",
"}",
"return",
"explain",
"list",
";"
] |
[
"given",
"a",
"string",
"containing",
"field",
"names",
"and",
"boost",
"info",
"converts",
"it",
"to",
"a",
"map",
"from",
"field",
"name",
"to",
"boost",
"info"
] |
[
"return",
"parse",
"field",
"boosts",
"(",
"new",
"string",
"[",
"]",
"{",
"in",
"}",
")",
";"
] |
[
"like",
"<",
"code",
">",
"parse",
"field",
"boosts",
"(",
"string",
")",
"<",
"/",
"code",
">",
"but",
"parses",
"all",
"the",
"strings",
"in",
"the",
"provided",
"array",
"(",
"which",
"may",
"be",
"null",
")"
] |
[
"if",
"(",
"null",
"=",
"=",
"field",
"lists",
"|",
"|",
"0",
"=",
"=",
"field",
"lists",
"length",
")",
"{",
"return",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"}",
"map",
"<",
"string",
",",
"float",
">",
"out",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
"7",
")",
";",
"for",
"(",
"string",
"in",
":",
"field",
"lists",
")",
"{",
"if",
"(",
"null",
"=",
"=",
"in",
")",
"{",
"continue",
";",
"}",
"in",
"=",
"in",
"trim",
"(",
")",
";",
"if",
"(",
"in",
"length",
"(",
")",
"=",
"=",
"0",
")",
"{",
"continue",
";",
"}",
"string",
"[",
"]",
"bb",
"=",
"whitespace",
"pattern",
"split",
"(",
"in",
")",
";",
"for",
"(",
"string",
"s",
":",
"bb",
")",
"{",
"string",
"[",
"]",
"bbb",
"=",
"carat",
"pattern",
"split",
"(",
"s",
")",
";",
"out",
"put",
"(",
"bbb",
"[",
"0",
"]",
",",
"1",
"=",
"=",
"bbb",
"length",
"?",
"null",
":",
"float",
"value",
"of",
"(",
"bbb",
"[",
"1",
"]",
")",
")",
";",
"}",
"}",
"return",
"out",
";"
] |
[
"checks",
"the",
"number",
"of",
"optional",
"clauses",
"in",
"the",
"query",
"and",
"compares",
"it",
"with",
"the",
"specification",
"string",
"to",
"determine",
"the",
"proper",
"value",
"to",
"use",
"<",
"p",
">",
"if",
"mm",
"auto",
"relax",
"=",
"true",
"we",
"ll",
"perform",
"auto",
"relaxation",
"of",
"mm",
"if",
"tokens",
"are",
"removed",
"from",
"some",
"but",
"not",
"all",
"dis",
"max",
"clauses",
"as",
"can",
"happen",
"when",
"stopwords",
"or",
"punctuation",
"tokens",
"are",
"removed",
"in",
"analysis",
"<",
"/",
"p",
">",
"<",
"p",
">",
"details",
"about",
"the",
"specification",
"format",
"can",
"be",
"found",
"<",
"a",
"href",
"=",
"doc",
"-",
"files",
"/",
"min",
"-",
"should",
"-",
"match",
"html",
">",
"here",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"int",
"optional",
"clauses",
"=",
"0",
";",
"int",
"max",
"disjuncts",
"size",
"=",
"0",
";",
"int",
"optional",
"dismax",
"clauses",
"=",
"0",
";",
"for",
"(",
"boolean",
"clause",
"c",
":",
"q",
"build",
"(",
")",
"clauses",
"(",
")",
")",
"{",
"if",
"(",
"c",
"get",
"occur",
"(",
")",
"=",
"=",
"occur",
"should",
")",
"{",
"if",
"(",
"mm",
"auto",
"relax",
"&",
"&",
"c",
"get",
"query",
"(",
")",
"instanceof",
"disjunction",
"max",
"query",
")",
"{",
"int",
"num",
"disjuncts",
"=",
"(",
"(",
"disjunction",
"max",
"query",
")",
"c",
"get",
"query",
"(",
")",
")",
"get",
"disjuncts",
"(",
")",
"size",
"(",
")",
";",
"if",
"(",
"num",
"disjuncts",
">",
"max",
"disjuncts",
"size",
")",
"{",
"max",
"disjuncts",
"size",
"=",
"num",
"disjuncts",
";",
"optional",
"dismax",
"clauses",
"=",
"1",
";",
"}",
"else",
"if",
"(",
"num",
"disjuncts",
"=",
"=",
"max",
"disjuncts",
"size",
")",
"{",
"optional",
"dismax",
"clauses",
"+",
"+",
";",
"}",
"}",
"else",
"{",
"optional",
"clauses",
"+",
"+",
";",
"}",
"}",
"}",
"int",
"msm",
"=",
"calculate",
"min",
"should",
"match",
"(",
"optional",
"clauses",
"+",
"optional",
"dismax",
"clauses",
",",
"spec",
")",
";",
"if",
"(",
"0",
"<",
"msm",
")",
"{",
"q",
"set",
"minimum",
"number",
"should",
"match",
"(",
"msm",
")",
";",
"}"
] |
[
"recursively",
"walks",
"the",
"from",
"query",
"pulling",
"out",
"sub",
"-",
"queries",
"and",
"adding",
"them",
"to",
"the",
"to",
"query"
] |
[
"flatten",
"boolean",
"query",
"(",
"to",
",",
"from",
",",
"1f",
")",
";"
] |
[
"escapes",
"all",
"special",
"characters",
"except",
"-",
"and",
"+"
] |
[
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"s",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"char",
"c",
"=",
"s",
"char",
"at",
"(",
"i",
")",
";",
"if",
"(",
"c",
"=",
"=",
"'",
"\\",
"\\",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"!",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"(",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
")",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
":",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"^",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"[",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"]",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"/",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"{",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"}",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"~",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"*",
"'",
"|",
"|",
"c",
"=",
"=",
"'",
"?",
"'",
")",
"{",
"sb",
"append",
"(",
"'",
"\\",
"\\",
"'",
")",
";",
"}",
"sb",
"append",
"(",
"c",
")",
";",
"}",
"return",
"sb",
";"
] |
[
"strips",
"operators",
"that",
"are",
"used",
"illegally",
"otherwise",
"returns",
"its",
"input",
"some",
"examples",
"of",
"illegal",
"user",
"queries",
"are",
":",
"chocolate",
"+",
"-",
"chip",
"chocolate",
"-",
"-",
"chip",
"and",
"chocolate",
"chip",
"-"
] |
[
"string",
"temp",
"=",
"consecutive",
"op",
"pattern",
"matcher",
"(",
"s",
")",
"replace",
"all",
"(",
"\"",
"\"",
")",
";",
"return",
"dangling",
"op",
"pattern",
"matcher",
"(",
"temp",
")",
"replace",
"all",
"(",
"\"",
"\"",
")",
";"
] |
[
"adds",
"to",
"{",
"@",
"code",
"dest",
"}",
"all",
"the",
"not",
"-",
"null",
"elements",
"of",
"{",
"@",
"code",
"entries",
"}",
"that",
"have",
"non",
"-",
"null",
"names"
] |
[
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"entries",
"length",
";",
"i",
"+",
"+",
")",
"{",
"map",
"entry",
"<",
"string",
",",
"t",
">",
"entry",
"=",
"entries",
"[",
"i",
"]",
";",
"if",
"(",
"entry",
"!",
"=",
"null",
")",
"{",
"string",
"key",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"if",
"(",
"key",
"!",
"=",
"null",
")",
"{",
"dest",
"add",
"(",
"key",
",",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}",
"}",
"}",
"return",
"dest",
";"
] |
[
"add",
"an",
"alias",
"to",
"this",
"query",
"parser"
] |
[
"alias",
"a",
"=",
"new",
"alias",
"(",
")",
";",
"a",
"tie",
"=",
"tiebreaker",
";",
"a",
"fields",
"=",
"field",
"boosts",
";",
"aliases",
"put",
"(",
"field",
",",
"a",
")",
";"
] |
[
"delegates",
"to",
"the",
"super",
"class",
"unless",
"the",
"field",
"has",
"been",
"specified",
"as",
"an",
"alias",
"-",
"-",
"in",
"which",
"case",
"we",
"recurse",
"on",
"each",
"of",
"the",
"aliased",
"fields",
"and",
"the",
"results",
"are",
"composed",
"into",
"a",
"disjunction",
"max",
"query",
"(",
"so",
"yes",
":",
"aliases",
"which",
"point",
"at",
"other",
"aliases",
"should",
"work",
")"
] |
[
"if",
"(",
"aliases",
"contains",
"key",
"(",
"field",
")",
")",
"{",
"alias",
"a",
"=",
"aliases",
"get",
"(",
"field",
")",
";",
"list",
"<",
"query",
">",
"disjuncts",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"f",
":",
"a",
"fields",
"key",
"set",
"(",
")",
")",
"{",
"query",
"sub",
"=",
"get",
"field",
"query",
"(",
"f",
",",
"query",
"text",
",",
"quoted",
",",
"false",
")",
";",
"if",
"(",
"null",
"!",
"=",
"sub",
")",
"{",
"if",
"(",
"null",
"!",
"=",
"a",
"fields",
"get",
"(",
"f",
")",
")",
"{",
"sub",
"=",
"new",
"boost",
"query",
"(",
"sub",
",",
"a",
"fields",
"get",
"(",
"f",
")",
")",
";",
"}",
"disjuncts",
"add",
"(",
"sub",
")",
";",
"}",
"}",
"return",
"disjuncts",
"is",
"empty",
"(",
")",
"?",
"null",
":",
"new",
"disjunction",
"max",
"query",
"(",
"disjuncts",
",",
"a",
"tie",
")",
";",
"}",
"else",
"{",
"try",
"{",
"return",
"super",
"get",
"field",
"query",
"(",
"field",
",",
"query",
"text",
",",
"quoted",
",",
"raw",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}",
"}"
] |
[
"turns",
"an",
"array",
"of",
"query",
"strings",
"into",
"a",
"list",
"of",
"query",
"objects"
] |
[
"if",
"(",
"null",
"=",
"=",
"queries",
"|",
"|",
"0",
"=",
"=",
"queries",
"length",
")",
"return",
"null",
";",
"list",
"<",
"query",
">",
"out",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"queries",
"length",
")",
";",
"for",
"(",
"string",
"q",
":",
"queries",
")",
"{",
"if",
"(",
"null",
"!",
"=",
"q",
"&",
"&",
"0",
"!",
"=",
"q",
"trim",
"(",
")",
"length",
"(",
")",
")",
"{",
"out",
"add",
"(",
"q",
"parser",
"get",
"parser",
"(",
"q",
",",
"req",
")",
"get",
"query",
"(",
")",
")",
";",
"}",
"}",
"return",
"out",
";"
] |
[
"given",
"the",
"integer",
"purpose",
"of",
"a",
"request",
"generates",
"a",
"readable",
"value",
"corresponding",
"the",
"request",
"purposes",
"(",
"there",
"can",
"be",
"more",
"than",
"one",
"on",
"a",
"single",
"request",
")",
"if",
"there",
"is",
"a",
"purpose",
"parameter",
"present",
"that",
"s",
"not",
"known",
"this",
"method",
"will",
"return",
"a",
"1",
"-",
"element",
"array",
"containing",
"{"
] |
[
"if",
"(",
"req",
"purpose",
"!",
"=",
"null",
")",
"{",
"int",
"valid",
"=",
"0",
";",
"for",
"(",
"map",
"entry",
"<",
"integer",
",",
"string",
">",
"entry",
":",
"purposes",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"(",
"req",
"purpose",
"&",
"entry",
"get",
"key",
"(",
")",
")",
"!",
"=",
"0",
")",
"{",
"valid",
"+",
"+",
";",
"}",
"}",
"if",
"(",
"valid",
"=",
"=",
"0",
")",
"{",
"return",
"purpose",
"unknown",
";",
"}",
"else",
"{",
"string",
"[",
"]",
"result",
"=",
"new",
"string",
"[",
"valid",
"]",
";",
"int",
"i",
"=",
"0",
";",
"for",
"(",
"map",
"entry",
"<",
"integer",
",",
"string",
">",
"entry",
":",
"purposes",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"(",
"req",
"purpose",
"&",
"entry",
"get",
"key",
"(",
")",
")",
"!",
"=",
"0",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"i",
"+",
"+",
";",
"}",
"}",
"return",
"result",
";",
"}",
"}",
"return",
"purpose",
"unknown",
";"
] |
[
"extracts",
"a",
"value",
"from",
"the",
"given",
"target",
"object",
"<",
"p",
"/",
">",
"the",
"method",
"does",
"not",
"return",
"any",
"value",
"since",
"the",
"extracted",
"value",
"may",
"be",
"collected",
"by",
"the",
"value",
"collector",
"#",
"collect",
"method",
"<",
"p",
"/",
">",
"in",
"order",
"to",
"return",
"multiple",
"results",
"from",
"a",
"single",
"extraction",
"just",
"invoke",
"the",
"value",
"collector",
"#",
"collect",
"method",
"multiple",
"times",
"so",
"that",
"the",
"collector",
"collects",
"all",
"results",
"<",
"p",
"/",
">",
"if",
"the",
"extraction",
"is",
"executed",
"for",
"an",
"object",
"that",
"implements",
"a",
"{",
"@",
"link",
"portable",
"}",
"interface",
"the",
"target",
"object",
"passed",
"to",
"the",
"extractor",
"is",
"an",
"instance",
"of",
"a",
"{",
"@",
"link",
"value",
"reader",
"}",
"enabling",
"extraction",
"from",
"the",
"portable",
"byte",
"stream",
"<",
"p",
">",
"it",
"sounds",
"counter",
"-",
"intuitive",
"but",
"a",
"single",
"extraction",
"may",
"return",
"multiple",
"values",
"when",
"arrays",
"or",
"collections",
"are",
"involved",
"<",
"p",
"/",
">",
"let",
"s",
"have",
"a",
"look",
"at",
"the",
"following",
"data",
"structure",
":",
"<",
"code",
">",
"class",
"motorbike",
"{",
"wheel",
"wheel",
"[",
"2",
"]",
";",
"}",
"<",
"p",
"/",
">",
"class",
"wheel",
"{",
"string",
"name",
";",
"}",
"<",
"/",
"code",
">",
"<",
"p",
"/",
">",
"let",
"s",
"assume",
"that",
"we",
"want",
"to",
"extract",
"the",
"names",
"of",
"all",
"wheels",
"from",
"a",
"single",
"motorbike",
"object",
"each",
"motorbike",
"has",
"two",
"wheels",
"so",
"there",
"are",
"two",
"names",
"too",
"in",
"order",
"to",
"return",
"both",
"values",
"from",
"the",
"extraction",
"operation",
"just",
"collect",
"them",
"separately",
"using",
"the",
"value",
"collector",
"collecting",
"multiple",
"values",
"in",
"such",
"a",
"way",
"allows",
"operating",
"on",
"these",
"multiple",
"values",
"as",
"if",
"they",
"were",
"single",
"-",
"values",
"during",
"the",
"evaluation",
"of",
"the",
"predicates",
"<",
"p",
"/",
">",
"let",
"s",
"assume",
"that",
"we",
"registered",
"a",
"custom",
"extractor",
"to",
"under",
"the",
"name",
"wheel",
"name",
"and",
"executed",
"the",
"following",
"query",
":",
"wheel",
"name",
"=",
"front",
"-",
"wheel",
"<",
"p",
"/",
">",
"the",
"extraction",
"may",
"return",
"up",
"to",
"two",
"wheel",
"names",
"for",
"each",
"motorbike",
"since",
"each",
"motorbike",
"has",
"up",
"to",
"two",
"wheels",
"in",
"such",
"a",
"case",
"it",
"is",
"enough",
"if",
"a",
"single",
"value",
"evaluates",
"the",
"predicate",
"s",
"condition",
"to",
"true",
"to",
"return",
"a",
"match",
"so",
"it",
"will",
"return",
"a",
"motorbike",
"if",
"any",
"of",
"the",
"wheels",
"matches",
"the",
"expression"
] |
[
"public",
"abstract",
"void",
"extract",
"(",
"t",
"target",
",",
"a",
"argument",
",",
"value",
"collector",
"collector",
")",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"geo",
"match",
"set",
"id",
"<",
"/",
"code",
">",
"for",
"an",
"<",
"code",
">",
"geo",
"match",
"set",
"<",
"/",
"code",
">",
"you",
"use",
"<",
"code",
">",
"geo",
"match",
"set",
"id",
"<",
"/",
"code",
">",
"to",
"get",
"information",
"about",
"a",
"<",
"code",
">",
"geo",
"match",
"set",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"geo",
"match",
"set",
"<",
"/",
"a",
">",
")",
"update",
"a",
"<",
"code",
">",
"geo",
"match",
"set",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"update",
"geo",
"match",
"set",
"<",
"/",
"a",
">",
")",
"insert",
"a",
"<",
"code",
">",
"geo",
"match",
"set",
"<",
"/",
"code",
">",
"into",
"a",
"<",
"code",
">",
"rule",
"<",
"/",
"code",
">",
"or",
"delete",
"one",
"from",
"a",
"<",
"code",
">",
"rule",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"update",
"rule",
"<",
"/",
"a",
">",
")",
"and",
"delete",
"a",
"<",
"code",
">",
"geo",
"match",
"set",
"<",
"/",
"code",
">",
"from",
"aws",
"waf",
"(",
"see",
"<",
"a",
">",
"delete",
"geo",
"match",
"set",
"<",
"/",
"a",
">",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"code",
">",
"geo",
"match",
"set",
"id",
"<",
"/",
"code",
">",
"is",
"returned",
"by",
"<",
"a",
">",
"create",
"geo",
"match",
"set",
"<",
"/",
"a",
">",
"and",
"by",
"<",
"a",
">",
"list",
"geo",
"match",
"sets",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] |
[
"set",
"geo",
"match",
"set",
"id",
"(",
"geo",
"match",
"set",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"friendly",
"name",
"or",
"description",
"of",
"the",
"<",
"a",
">",
"geo",
"match",
"set",
"<",
"/",
"a",
">",
"you",
"can",
"t",
"change",
"the",
"name",
"of",
"an",
"<",
"code",
">",
"geo",
"match",
"set",
"<",
"/",
"code",
">",
"after",
"you",
"create",
"it",
"<",
"/",
"p",
">"
] |
[
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"<",
"a",
">",
"geo",
"match",
"constraint",
"<",
"/",
"a",
">",
"objects",
"which",
"contain",
"the",
"country",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"<",
"/",
"p",
">"
] |
[
"return",
"geo",
"match",
"constraints",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"<",
"a",
">",
"geo",
"match",
"constraint",
"<",
"/",
"a",
">",
"objects",
"which",
"contain",
"the",
"country",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"geo",
"match",
"constraints",
"=",
"=",
"null",
")",
"{",
"this",
"geo",
"match",
"constraints",
"=",
"null",
";",
"return",
";",
"}",
"this",
"geo",
"match",
"constraints",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"geo",
"match",
"constraint",
">",
"(",
"geo",
"match",
"constraints",
")",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"<",
"a",
">",
"geo",
"match",
"constraint",
"<",
"/",
"a",
">",
"objects",
"which",
"contain",
"the",
"country",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"geo",
"match",
"constraints",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"geo",
"match",
"constraints",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] |
[
"if",
"(",
"this",
"geo",
"match",
"constraints",
"=",
"=",
"null",
")",
"{",
"set",
"geo",
"match",
"constraints",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"geo",
"match",
"constraint",
">",
"(",
"geo",
"match",
"constraints",
"length",
")",
")",
";",
"}",
"for",
"(",
"geo",
"match",
"constraint",
"ele",
":",
"geo",
"match",
"constraints",
")",
"{",
"this",
"geo",
"match",
"constraints",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"array",
"of",
"<",
"a",
">",
"geo",
"match",
"constraint",
"<",
"/",
"a",
">",
"objects",
"which",
"contain",
"the",
"country",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"<",
"/",
"p",
">"
] |
[
"set",
"geo",
"match",
"constraints",
"(",
"geo",
"match",
"constraints",
")",
";",
"return",
"this",
";"
] |
[
"{"
] |
[
"int",
"cnt",
"=",
"get",
"count",
"(",
"page",
"addr",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"cnt",
";",
"i",
"+",
"+",
")",
"c",
"apply",
"(",
"new",
"mvcc",
"data",
"row",
"(",
"get",
"link",
"(",
"page",
"addr",
",",
"i",
")",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"page",
"utils",
"get",
"long",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"12",
")",
";"
] |
[
"{"
] |
[
"return",
"page",
"utils",
"get",
"long",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"20",
")",
";"
] |
[
"{"
] |
[
"return",
"page",
"utils",
"get",
"int",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"28",
")",
";"
] |
[
"{"
] |
[
"return",
"page",
"utils",
"get",
"long",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"32",
")",
";"
] |
[
"{"
] |
[
"return",
"page",
"utils",
"get",
"long",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"40",
")",
";"
] |
[
"{"
] |
[
"page",
"utils",
"put",
"long",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"32",
",",
"lock",
"crd",
")",
";"
] |
[
"{"
] |
[
"page",
"utils",
"put",
"long",
"(",
"page",
"addr",
",",
"offset",
"(",
"idx",
")",
"+",
"40",
",",
"lock",
"cntr",
")",
";"
] |
[
"/",
"*",
"not",
"yet",
"working",
"public",
"void",
"add",
"style",
"(",
"string",
"rule",
")",
"{",
"style",
"sheet",
"sheet",
"=",
"kit",
"get",
"style",
"sheet",
"(",
")",
";",
"system",
"out",
"println",
"(",
"sheet",
")",
";",
"sheet",
"add",
"rule",
"(",
"rule",
")",
";",
"kit",
"set",
"style",
"sheet",
"(",
"sheet",
")",
";",
"text",
"pane",
"set",
"editor",
"kit",
"(",
"kit",
")",
";",
"/",
"/",
"nukes",
"everything",
"}"
] |
[
"new",
"thread",
"(",
"new",
"runnable",
"(",
")",
"{",
"public",
"void",
"run",
"(",
")",
"{",
"while",
"(",
"!",
"ready",
")",
"{",
"try",
"{",
"thread",
"sleep",
"(",
"5",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"}",
"web",
"frame",
"super",
"set",
"visible",
"(",
"visible",
")",
";",
"}",
"}",
")",
"start",
"(",
")",
";"
] |
[
"override",
"this",
"to",
"do",
"something",
"interesting",
"when",
"a",
"form",
"is",
"submitted",
"to",
"keep",
"things",
"simple",
"this",
"doesn",
"t",
"allow",
"for",
"multiple",
"params",
"with",
"the",
"same",
"name",
"if",
"no",
"params",
"submitted",
"the",
"dict",
"will",
"be",
"empty",
"(",
"not",
"null",
")"
] |
[] |
[
"render",
"a",
"series",
"of",
"{",
"@",
"link",
"rule",
"violation",
"}",
"s"
] |
[
"public",
"abstract",
"void",
"render",
"file",
"violations",
"(",
"iterator",
"<",
"rule",
"violation",
">",
"violations",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"<",
"p",
">",
"represents",
"information",
"about",
"the",
"execution",
"of",
"a",
"pipeline",
"<",
"/",
"p",
">"
] |
[
"this",
"pipeline",
"execution",
"=",
"pipeline",
"execution",
";"
] |
[
"<",
"p",
">",
"represents",
"information",
"about",
"the",
"execution",
"of",
"a",
"pipeline",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"pipeline",
"execution",
";"
] |
[
"<",
"p",
">",
"represents",
"information",
"about",
"the",
"execution",
"of",
"a",
"pipeline",
"<",
"/",
"p",
">"
] |
[
"set",
"pipeline",
"execution",
"(",
"pipeline",
"execution",
")",
";",
"return",
"this",
";"
] |
[
"changes",
"the",
"rule",
"class",
"provider",
"to",
"be",
"used",
"for",
"the",
"loading",
"and",
"the",
"analysis",
"phase"
] |
[
"this",
"rule",
"class",
"provider",
"=",
"rule",
"class",
"provider",
";",
"package",
"factory",
"pkg",
"factory",
"=",
"analysis",
"mock",
"get",
"package",
"factory",
"builder",
"for",
"testing",
"(",
"directories",
")",
"build",
"(",
"rule",
"class",
"provider",
")",
";",
"use",
"configuration",
"(",
")",
";",
"skyframe",
"executor",
"=",
"create",
"skyframe",
"executor",
"(",
"pkg",
"factory",
",",
"rule",
"class",
"provider",
"get",
"build",
"info",
"factories",
"(",
")",
")",
";",
"reinitialize",
"skyframe",
"executor",
"(",
")",
";",
"package",
"manager",
"=",
"skyframe",
"executor",
"get",
"package",
"manager",
"(",
")",
";",
"build",
"view",
"=",
"new",
"build",
"view",
"for",
"testing",
"(",
"directories",
",",
"rule",
"class",
"provider",
",",
"skyframe",
"executor",
",",
"null",
")",
";"
] |
[
"resets",
"the",
"skyframe",
"executor",
"as",
"if",
"a",
"clean",
"had",
"been",
"executed"
] |
[
"skyframe",
"executor",
"reset",
"evaluator",
"(",
")",
";",
"reinitialize",
"skyframe",
"executor",
"(",
")",
";"
] |
[
"returns",
"the",
"target",
"configuration",
"for",
"the",
"most",
"recent",
"build",
"as",
"created",
"in",
"blaze",
"s",
"master",
"configuration",
"creation",
"phase"
] |
[
"return",
"iterables",
"get",
"only",
"element",
"(",
"master",
"config",
"get",
"target",
"configurations",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"corresponding",
"configured",
"target",
"if",
"it",
"exists",
"note",
"that",
"this",
"will",
"only",
"return",
"anything",
"useful",
"after",
"a",
"call",
"to",
"update",
"(",
")",
"with",
"the",
"same",
"label"
] |
[
"return",
"get",
"configured",
"target",
"(",
"label",
",",
"get",
"target",
"configuration",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"corresponding",
"configured",
"target",
"if",
"it",
"exists",
"note",
"that",
"this",
"will",
"only",
"return",
"anything",
"useful",
"after",
"a",
"call",
"to",
"update",
"(",
")",
"with",
"the",
"same",
"label",
"the",
"label",
"passed",
"in",
"must",
"represent",
"an",
"input",
"file"
] |
[
"return",
"(",
"input",
"file",
"configured",
"target",
")",
"get",
"configured",
"target",
"(",
"label",
",",
"null",
")",
";"
] |
[
"makes",
"{"
] |
[
"configured",
"rule",
"class",
"provider",
"builder",
"builder",
"=",
"new",
"configured",
"rule",
"class",
"provider",
"builder",
"(",
")",
";",
"test",
"rule",
"class",
"provider",
"add",
"standard",
"rules",
"(",
"builder",
")",
";",
"for",
"(",
"native",
"aspect",
"class",
"aspect",
":",
"aspects",
")",
"{",
"builder",
"add",
"native",
"aspect",
"class",
"(",
"aspect",
")",
";",
"}",
"for",
"(",
"rule",
"definition",
"rule",
":",
"rules",
")",
"{",
"builder",
"add",
"rule",
"definition",
"(",
"rule",
")",
";",
"}",
"use",
"rule",
"class",
"provider",
"(",
"builder",
"build",
"(",
")",
")",
";",
"update",
"(",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.