docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"a",
"read",
"-",
"only",
"map",
"from",
"{",
"@",
"link",
"org",
"eclipse",
"jdt",
"core",
"i",
"type",
"}",
"to",
"{",
"@",
"link",
"r",
"h",
"s",
"history",
"}",
"where",
"each",
"value",
"is",
"the",
"history",
"for",
"the",
"key",
"type",
"(",
"see",
"{",
"@",
"link",
"#",
"get",
"history",
"(",
"string",
")",
"}"
]
| [
"hash",
"map",
"<",
"string",
",",
"r",
"h",
"s",
"history",
">",
"map",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"r",
"h",
"s",
"history",
">",
"(",
"(",
"int",
")",
"(",
"f",
"l",
"h",
"s",
"cache",
"size",
"(",
")",
"/",
"0",
"75",
")",
")",
";",
"for",
"(",
"iterator",
"<",
"entry",
"<",
"string",
",",
"m",
"r",
"u",
"set",
"<",
"string",
">",
">",
">",
"it",
"=",
"f",
"l",
"h",
"s",
"cache",
"entry",
"set",
"(",
")",
"iterator",
"(",
")",
";",
"it",
"has",
"next",
"(",
")",
";",
")",
"{",
"entry",
"<",
"string",
",",
"m",
"r",
"u",
"set",
"<",
"string",
">",
">",
"entry",
"=",
"it",
"next",
"(",
")",
";",
"string",
"lhs",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"map",
"put",
"(",
"lhs",
",",
"get",
"history",
"(",
"lhs",
")",
")",
";",
"}",
"return",
"collections",
"unmodifiable",
"map",
"(",
"map",
")",
";"
]
|
[
"stores",
"the",
"history",
"as",
"xml",
"document",
"into",
"the",
"given",
"preferences"
]
| [
"try",
"(",
"file",
"output",
"stream",
"stream",
"=",
"new",
"file",
"output",
"stream",
"(",
"file",
"path",
")",
")",
"{",
"new",
"reader",
"writer",
"(",
")",
"store",
"(",
"history",
",",
"new",
"stream",
"result",
"(",
"stream",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"java",
"plugin",
"log",
"(",
"e",
")",
";",
"}"
]
|
[
"loads",
"a",
"history",
"from",
"an",
"xml",
"encoded",
"preference",
"value"
]
| [
"file",
"file",
"=",
"new",
"file",
"(",
"file",
"path",
")",
";",
"if",
"(",
"file",
"exists",
"(",
")",
")",
"{",
"try",
"(",
"file",
"input",
"stream",
"stream",
"=",
"new",
"file",
"input",
"stream",
"(",
"file",
")",
")",
"{",
"return",
"new",
"reader",
"writer",
"(",
")",
"load",
"(",
"new",
"input",
"source",
"(",
"stream",
")",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"java",
"plugin",
"log",
"(",
"e",
")",
";",
"}",
"}",
"return",
"null",
";"
]
|
[
"get",
"the",
"start",
"tx",
"id",
"of",
"the",
"log",
"segment"
]
| [
"return",
"start",
"tx",
"id",
";"
]
|
[
"get",
"the",
"last",
"tx",
"id",
"that",
"has",
"been",
"written",
"to",
"the",
"log",
"segment",
"buffer",
"but",
"not",
"committed",
"yet"
]
| [
"return",
"last",
"tx",
"id",
";"
]
|
[
"get",
"the",
"last",
"tx",
"id",
"that",
"has",
"been",
"acknowledged"
]
| [
"return",
"last",
"tx",
"id",
"acknowledged",
";"
]
|
[
"get",
"the",
"position",
"-",
"within",
"-",
"logsemgnet",
"of",
"the",
"last",
"written",
"log",
"record"
]
| [
"return",
"position",
"within",
"log",
"segment",
";"
]
|
[
"get",
"the",
"last",
"dlsn",
"of",
"the",
"last",
"acknowledged",
"record"
]
| [
"return",
"last",
"d",
"l",
"s",
"n",
";"
]
|
[
"flushes",
"all",
"the",
"data",
"up",
"to",
"this",
"point",
"adds",
"the",
"end",
"of",
"stream",
"marker",
"and",
"marks",
"the",
"stream",
"as",
"read",
"-",
"only",
"in",
"the",
"metadata",
"no",
"appends",
"to",
"the",
"stream",
"will",
"be",
"allowed",
"after",
"this",
"point"
]
| [
"synchronized",
"(",
"this",
")",
"{",
"try",
"{",
"write",
"end",
"of",
"stream",
"marker",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"e",
")",
"{",
"return",
"future",
"exception",
"(",
"e",
")",
";",
"}",
"stream",
"ended",
"=",
"true",
";",
"}",
"return",
"flush",
"and",
"commit",
"(",
")",
";"
]
|
[
"write",
"bulk",
"of",
"records"
]
| [
"int",
"num",
"records",
"=",
"0",
";",
"for",
"(",
"log",
"record",
"r",
":",
"records",
")",
"{",
"write",
"(",
"r",
")",
";",
"num",
"records",
"+",
"+",
";",
"}",
"return",
"num",
"records",
";"
]
|
[
"transmit",
"the",
"output",
"buffer",
"data",
"to",
"the",
"backend"
]
| [
"check",
"state",
"before",
"transmit",
"(",
")",
";",
"transmit",
"(",
")",
";"
]
|
[
"sets",
"the",
"lineage",
"information"
]
| [
"this",
"linfo",
"=",
"linfo",
";"
]
|
[
"sets",
"the",
"table",
"access",
"information"
]
| [
"this",
"table",
"access",
"info",
"=",
"table",
"access",
"info",
";"
]
|
[
"start",
"the",
"tomcat",
"embedded",
"server"
]
| [
"tomcat",
"start",
"(",
")",
";",
"is",
"running",
"=",
"true",
";"
]
|
[
"/",
"*",
"does",
"this",
"line",
"contain",
"the",
"end",
"delimiter"
]
| [
"final",
"int",
"index",
"=",
"index",
"of",
"(",
"content",
",",
"get",
"end",
"delimiter",
"(",
")",
",",
"start",
"offset",
")",
";",
"if",
"(",
"(",
"index",
"<",
"0",
")",
"|",
"|",
"(",
"index",
">",
"end",
"offset",
")",
")",
"{",
"return",
"false",
";",
"}",
"else",
"{",
"set",
"multi",
"line",
"comment",
"(",
"false",
")",
";",
"return",
"true",
";",
"}"
]
|
[
"/",
"*"
]
| [
"int",
"end",
"of",
"token",
"=",
"start",
"offset",
"+",
"1",
";",
"while",
"(",
"end",
"of",
"token",
"<",
"=",
"end",
"offset",
")",
"{",
"if",
"(",
"is",
"delimiter",
"(",
"content",
"substring",
"(",
"end",
"of",
"token",
",",
"end",
"of",
"token",
"+",
"1",
")",
")",
")",
"{",
"break",
";",
"}",
"end",
"of",
"token",
"+",
"+",
";",
"}",
"final",
"string",
"token",
"=",
"content",
"substring",
"(",
"start",
"offset",
",",
"end",
"of",
"token",
")",
";",
"if",
"(",
"is",
"keyword",
"(",
"token",
")",
")",
"{",
"doc",
"set",
"character",
"attributes",
"(",
"start",
"offset",
",",
"end",
"of",
"token",
"-",
"start",
"offset",
",",
"keyword",
",",
"false",
")",
";",
"}",
"else",
"if",
"(",
"is",
"type",
"(",
"token",
")",
")",
"{",
"doc",
"set",
"character",
"attributes",
"(",
"start",
"offset",
",",
"end",
"of",
"token",
"-",
"start",
"offset",
",",
"type",
",",
"false",
")",
";",
"}",
"else",
"if",
"(",
"is",
"constant",
"(",
"token",
")",
")",
"{",
"doc",
"set",
"character",
"attributes",
"(",
"start",
"offset",
",",
"end",
"of",
"token",
"-",
"start",
"offset",
",",
"constant",
",",
"false",
")",
";",
"}",
"else",
"if",
"(",
"convert",
"is",
"dec",
"string",
"(",
"token",
")",
")",
"{",
"doc",
"set",
"character",
"attributes",
"(",
"start",
"offset",
",",
"end",
"of",
"token",
"-",
"start",
"offset",
",",
"number",
",",
"false",
")",
";",
"}",
"return",
"end",
"of",
"token",
"+",
"1",
";"
]
|
[
"/",
"*",
"assume",
"the",
"needle",
"will",
"the",
"found",
"at",
"the",
"start",
"/",
"end",
"of",
"the",
"line"
]
| [
"int",
"index",
";",
"while",
"(",
"(",
"index",
"=",
"content",
"index",
"of",
"(",
"needle",
",",
"offset",
")",
")",
"!",
"=",
"-",
"1",
")",
"{",
"final",
"string",
"text",
"=",
"get",
"line",
"(",
"content",
",",
"index",
")",
"trim",
"(",
")",
";",
"if",
"(",
"text",
"starts",
"with",
"(",
"needle",
")",
"|",
"|",
"text",
"ends",
"with",
"(",
"needle",
")",
")",
"{",
"break",
";",
"}",
"else",
"{",
"offset",
"=",
"index",
"+",
"1",
";",
"}",
"}",
"return",
"index",
";"
]
|
[
"/",
"*",
"we",
"have",
"found",
"a",
"start",
"delimiter",
"and",
"are",
"still",
"searching",
"for",
"the",
"end",
"delimiter"
]
| [
"return",
"multi",
"line",
"comment",
";"
]
|
[
"/",
"*",
"assume",
"the",
"needle",
"will",
"the",
"found",
"at",
"the",
"start",
"/",
"end",
"of",
"the",
"line"
]
| [
"int",
"index",
";",
"while",
"(",
"(",
"index",
"=",
"content",
"last",
"index",
"of",
"(",
"needle",
",",
"offset",
")",
")",
"!",
"=",
"-",
"1",
")",
"{",
"final",
"string",
"text",
"=",
"get",
"line",
"(",
"content",
",",
"index",
")",
"trim",
"(",
")",
";",
"if",
"(",
"text",
"starts",
"with",
"(",
"needle",
")",
"|",
"|",
"text",
"ends",
"with",
"(",
"needle",
")",
")",
"{",
"break",
";",
"}",
"else",
"{",
"offset",
"=",
"index",
"-",
"1",
";",
"}",
"}",
"return",
"index",
";"
]
|
[
"/",
"*",
"does",
"this",
"line",
"contain",
"the",
"start",
"delimiter"
]
| [
"final",
"int",
"index",
"=",
"index",
"of",
"(",
"content",
",",
"get",
"start",
"delimiter",
"(",
")",
",",
"start",
"offset",
")",
";",
"if",
"(",
"(",
"index",
"<",
"0",
")",
"|",
"|",
"(",
"index",
">",
"end",
"offset",
")",
")",
"{",
"return",
"false",
";",
"}",
"else",
"{",
"set",
"multi",
"line",
"comment",
"(",
"true",
")",
";",
"return",
"true",
";",
"}"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"protected",
"abstract",
"string",
"get",
"end",
"delimiter",
"(",
")",
";"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"protected",
"abstract",
"string",
"get",
"escape",
"string",
"(",
"final",
"string",
"quote",
"delimiter",
")",
";"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"protected",
"abstract",
"string",
"get",
"single",
"line",
"delimiter",
"(",
")",
";"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"protected",
"abstract",
"string",
"get",
"start",
"delimiter",
"(",
")",
";"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"protected",
"abstract",
"boolean",
"is",
"keyword",
"(",
"final",
"string",
"token",
")",
";"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"protected",
"abstract",
"boolean",
"is",
"quote",
"delimiter",
"(",
"final",
"string",
"character",
")",
";"
]
|
[
"/",
"*",
"override",
"for",
"other",
"languages"
]
| [
"public",
"abstract",
"boolean",
"is",
"delimiter",
"(",
"final",
"string",
"character",
")",
";"
]
|
[
"/",
"*",
"override",
"to",
"apply",
"syntax",
"highlighting",
"after",
"the",
"document",
"has",
"been",
"updated"
]
| [
"super",
"remove",
"(",
"offset",
",",
"length",
")",
";",
"process",
"changed",
"lines",
"(",
"offset",
",",
"0",
")",
";"
]
|
[
"creates",
"a",
"builder",
"instance",
"with",
"it",
"s",
"origin",
"set",
"to",
"*"
]
| [
"return",
"new",
"nio",
"cors",
"config",
"builder",
"(",
")",
";"
]
|
[
"creates",
"a",
"{",
"@",
"link",
"nio",
"cors",
"config",
"builder",
"}",
"instance",
"with",
"the",
"specified",
"origins"
]
| [
"return",
"new",
"nio",
"cors",
"config",
"builder",
"(",
"origins",
")",
";"
]
|
[
"web",
"browsers",
"may",
"set",
"the",
"origin",
"request",
"header",
"to",
"null",
"if",
"a",
"resource",
"is",
"loaded",
"from",
"the",
"local",
"file",
"system",
"calling",
"this",
"method",
"will",
"enable",
"a",
"successful",
"cors",
"response",
"with",
"a",
"wildcard",
"for",
"the",
"cors",
"response",
"header",
"access",
"-",
"control",
"-",
"allow",
"-",
"origin"
]
| [
"allow",
"null",
"origin",
"=",
"true",
";",
"return",
"this",
";"
]
|
[
"disables",
"cors",
"support"
]
| [
"enabled",
"=",
"false",
";",
"return",
"this",
";"
]
|
[
"by",
"default",
"cookies",
"are",
"not",
"included",
"in",
"cors",
"requests",
"but",
"this",
"method",
"will",
"enable",
"cookies",
"to",
"be",
"added",
"to",
"cors",
"requests",
"calling",
"this",
"method",
"will",
"set",
"the",
"cors",
"access",
"-",
"control",
"-",
"allow",
"-",
"credentials",
"response",
"header",
"to",
"true"
]
| [
"allow",
"credentials",
"=",
"true",
";",
"return",
"this",
";"
]
|
[
"when",
"making",
"a",
"preflight",
"request",
"the",
"client",
"has",
"to",
"perform",
"two",
"request",
"with",
"can",
"be",
"inefficient",
"this",
"setting",
"will",
"set",
"the",
"cors",
"access",
"-",
"control",
"-",
"max",
"-",
"age",
"response",
"header",
"and",
"enables",
"the",
"caching",
"of",
"the",
"preflight",
"response",
"for",
"the",
"specified",
"time",
"during",
"this",
"time",
"no",
"preflight",
"request",
"will",
"be",
"made"
]
| [
"max",
"age",
"=",
"max",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"allowed",
"set",
"of",
"http",
"request",
"methods",
"that",
"should",
"be",
"returned",
"in",
"the",
"cors",
"access",
"-",
"control",
"-",
"request",
"-",
"method",
"response",
"header"
]
| [
"request",
"methods",
"add",
"all",
"(",
"arrays",
"as",
"list",
"(",
"methods",
")",
")",
";",
"return",
"this",
";"
]
|
[
"specifies",
"the",
"if",
"headers",
"that",
"should",
"be",
"returned",
"in",
"the",
"cors",
"access",
"-",
"control",
"-",
"allow",
"-",
"headers",
"response",
"header"
]
| [
"request",
"headers",
"add",
"all",
"(",
"arrays",
"as",
"list",
"(",
"headers",
")",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"http",
"response",
"headers",
"that",
"should",
"be",
"added",
"to",
"a",
"cors",
"preflight",
"response"
]
| [
"if",
"(",
"values",
"length",
"=",
"=",
"1",
")",
"{",
"preflight",
"headers",
"put",
"(",
"name",
",",
"new",
"constant",
"value",
"generator",
"(",
"values",
"[",
"0",
"]",
")",
")",
";",
"}",
"else",
"{",
"preflight",
"response",
"header",
"(",
"name",
",",
"arrays",
"as",
"list",
"(",
"values",
")",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"returns",
"http",
"response",
"headers",
"that",
"should",
"be",
"added",
"to",
"a",
"cors",
"preflight",
"response"
]
| [
"preflight",
"headers",
"put",
"(",
"name",
",",
"new",
"constant",
"value",
"generator",
"(",
"value",
")",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"http",
"response",
"headers",
"that",
"should",
"be",
"added",
"to",
"a",
"cors",
"preflight",
"response"
]
| [
"preflight",
"headers",
"put",
"(",
"name",
",",
"value",
"generator",
")",
";",
"return",
"this",
";"
]
|
[
"specifies",
"that",
"no",
"preflight",
"response",
"headers",
"should",
"be",
"added",
"to",
"a",
"preflight",
"response"
]
| [
"no",
"preflight",
"headers",
"=",
"true",
";",
"return",
"this",
";"
]
|
[
"specifies",
"that",
"a",
"cors",
"request",
"should",
"be",
"rejected",
"if",
"it",
"s",
"invalid",
"before",
"being",
"further",
"processing"
]
| [
"short",
"circuit",
"=",
"true",
";",
"return",
"this",
";"
]
|
[
"helper",
"method",
"to",
"write",
"the",
"header",
"into",
"the",
"data",
"buffer"
]
| [
"int",
"offset",
"=",
"0",
";",
"data",
"buffer",
"put",
"long",
"(",
"offset",
",",
"off",
"heap",
"star",
"tree",
"magic",
"marker",
")",
";",
"offset",
"+",
"=",
"long",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"off",
"heap",
"star",
"tree",
"version",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"header",
"size",
"in",
"bytes",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"int",
"num",
"dimensions",
"=",
"dimensions",
"length",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"num",
"dimensions",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"dimensions",
";",
"i",
"+",
"+",
")",
"{",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"i",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"string",
"dimension",
"=",
"dimensions",
"[",
"i",
"]",
";",
"byte",
"[",
"]",
"dimension",
"bytes",
"=",
"string",
"util",
"encode",
"utf",
"8",
"(",
"dimension",
")",
";",
"int",
"dimension",
"length",
"=",
"dimension",
"bytes",
"length",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"dimension",
"length",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"read",
"from",
"(",
"offset",
",",
"dimension",
"bytes",
",",
"0",
",",
"dimension",
"length",
")",
";",
"offset",
"+",
"=",
"dimension",
"length",
";",
"}",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"num",
"nodes",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"return",
"offset",
";"
]
|
[
"helper",
"method",
"to",
"write",
"one",
"node",
"into",
"the",
"data",
"buffer"
]
| [
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"node",
"dimension",
"id",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"node",
"dimension",
"value",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"node",
"start",
"doc",
"id",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"node",
"end",
"doc",
"id",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"node",
"aggregated",
"doc",
"id",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"first",
"child",
"id",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"data",
"buffer",
"put",
"int",
"(",
"offset",
",",
"last",
"child",
"id",
")",
";",
"offset",
"+",
"=",
"integer",
"bytes",
";",
"return",
"offset",
";"
]
|
[
"determines",
"the",
"package",
"name",
"without",
"calling",
"{"
]
| [
"int",
"length",
"diff",
"=",
"clazz",
"get",
"name",
"(",
")",
"length",
"(",
")",
"-",
"clazz",
"get",
"simple",
"name",
"(",
")",
"length",
"(",
")",
";",
"return",
"length",
"diff",
"=",
"=",
"0",
"?",
"clazz",
"get",
"name",
"(",
")",
":",
"clazz",
"get",
"name",
"(",
")",
"substring",
"(",
"0",
",",
"length",
"diff",
"-",
"1",
")",
";"
]
|
[
"returns",
"{"
]
| [
"return",
"arrays",
"as",
"list",
"(",
"object",
"class",
"get",
"methods",
"(",
")",
")",
"contains",
"(",
"m",
")",
";"
]
|
[
"finds",
"a",
"public",
"method",
"with",
"the",
"given",
"name",
"declared",
"in",
"the",
"given",
"class",
"/",
"interface",
"or",
"one",
"of",
"its",
"super",
"classes",
"/",
"interfaces",
"if",
"multiple",
"such",
"methods",
"exists",
"it",
"is",
"undefined",
"which",
"one",
"is",
"returned"
]
| [
"for",
"(",
"method",
"method",
":",
"clazz",
"get",
"methods",
"(",
")",
")",
"if",
"(",
"method",
"get",
"name",
"(",
")",
"equals",
"(",
"name",
")",
")",
"return",
"method",
";",
"return",
"null",
";"
]
|
[
"returns",
"true",
"if",
"field",
"index",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
]
| [
"return",
"encoding",
"utils",
"test",
"bit",
"(",
"isset",
"bitfield",
",",
"index",
"isset",
"id",
")",
";"
]
|
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
]
| [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"note",
"id",
":",
"return",
"is",
"set",
"note",
"id",
"(",
")",
";",
"case",
"paragraph",
"id",
":",
"return",
"is",
"set",
"paragraph",
"id",
"(",
")",
";",
"case",
"index",
":",
"return",
"is",
"set",
"index",
"(",
")",
";",
"case",
"data",
":",
"return",
"is",
"set",
"data",
"(",
")",
";",
"case",
"app",
"id",
":",
"return",
"is",
"set",
"app",
"id",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
]
|
[
"produces",
"new",
"instance",
"of",
"{",
"@",
"link",
"progress",
"monitor",
"}"
]
| [
"return",
"new",
"machine",
"progress",
"monitor",
"(",
"new",
"machine",
"logs",
"bi",
"consumer",
"(",
"machine",
"name",
",",
"runtime",
")",
")",
";"
]
|
[
"produces",
"new",
"instance",
"of",
"{",
"@",
"link",
"message",
"processor",
"}"
]
| [
"return",
"new",
"machine",
"log",
"message",
"processor",
"(",
"new",
"machine",
"logs",
"bi",
"consumer",
"(",
"machine",
"name",
",",
"runtime",
")",
")",
";"
]
|
[
"check",
"if",
"the",
"input",
"object",
"is",
"eligible",
"to",
"contribute",
"to",
"the",
"sum",
"if",
"it",
"s",
"null",
"or",
"the",
"same",
"value",
"as",
"the",
"previous",
"one",
"for",
"the",
"case",
"of",
"sum",
"(",
"distinct",
")",
"then",
"skip",
"it"
]
| [
"if",
"(",
"input",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"is",
"windowing",
"distinct",
"(",
")",
")",
"{",
"if",
"(",
"agg",
"unique",
"objects",
"=",
"=",
"null",
")",
"{",
"agg",
"unique",
"objects",
"=",
"new",
"hash",
"set",
"<",
"object",
"inspector",
"object",
">",
"(",
")",
";",
"}",
"hash",
"set",
"<",
"object",
"inspector",
"object",
">",
"unique",
"objs",
"=",
"agg",
"unique",
"objects",
";",
"object",
"inspector",
"object",
"obj",
"=",
"input",
"instanceof",
"object",
"inspector",
"object",
"?",
"(",
"object",
"inspector",
"object",
")",
"input",
":",
"new",
"object",
"inspector",
"object",
"(",
"object",
"inspector",
"utils",
"copy",
"to",
"standard",
"object",
"(",
"input",
",",
"input",
"o",
"i",
",",
"object",
"inspector",
"copy",
"option",
"java",
")",
",",
"output",
"o",
"i",
")",
";",
"if",
"(",
"!",
"unique",
"objs",
"contains",
"(",
"obj",
")",
")",
"{",
"unique",
"objs",
"add",
"(",
"obj",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"return",
"true",
";"
]
|
[
"gets",
"print",
"stream",
"for",
"current",
"thread",
"group"
]
| [
"byte",
"print",
"stream",
"out",
";",
"synchronized",
"(",
"streams",
")",
"{",
"thread",
"group",
"grp",
"=",
"thread",
"current",
"thread",
"(",
")",
"get",
"thread",
"group",
"(",
")",
";",
"while",
"(",
"grp",
"!",
"=",
"null",
"&",
"&",
"grp",
"get",
"parent",
"(",
")",
"!",
"=",
"base",
"grp",
")",
"grp",
"=",
"grp",
"get",
"parent",
"(",
")",
";",
"out",
"=",
"release",
"=",
"=",
"true",
"?",
"streams",
"remove",
"(",
"grp",
")",
":",
"streams",
"get",
"(",
"grp",
")",
";",
"if",
"(",
"out",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"release",
")",
"return",
"new",
"byte",
"print",
"stream",
"(",
")",
";",
"streams",
"put",
"(",
"grp",
",",
"out",
"=",
"new",
"byte",
"print",
"stream",
"(",
")",
")",
";",
"}",
"return",
"out",
";",
"}"
]
|
[
"purges",
"print",
"stream",
"for",
"this",
"thread",
"group",
"to",
"parent",
"print",
"stream"
]
| [
"out",
"(",
"true",
")",
"write",
"to",
"(",
"out",
")",
";"
]
|
[
"purges",
"print",
"stream",
"for",
"this",
"thread",
"group",
"to",
"the",
"stream",
"passed",
"in"
]
| [
"out",
"(",
"true",
")",
"write",
"to",
"(",
"out",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"c",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"d",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"f",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"i",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"l",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"b",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"s",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"obj",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"print",
"(",
"s",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"println",
"(",
"x",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"write",
"(",
"buf",
",",
"off",
",",
"len",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"close",
"(",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"flush",
"(",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"write",
"(",
"b",
")",
";"
]
|
[
"{"
]
| [
"out",
"(",
"false",
")",
"write",
"(",
"b",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"append",
"(",
"csq",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"append",
"(",
"csq",
",",
"start",
",",
"end",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"append",
"(",
"c",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"printf",
"(",
"format",
",",
"args",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"printf",
"(",
"l",
",",
"format",
",",
"args",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"format",
"(",
"format",
",",
"args",
")",
";"
]
|
[
"{"
]
| [
"return",
"out",
"(",
"false",
")",
"format",
"(",
"l",
",",
"format",
",",
"args",
")",
";"
]
|
[
"testing",
"{"
]
| [
"blacksmith",
"blacksmith",
"=",
"new",
"orc",
"blacksmith",
"(",
")",
";",
"weapon",
"weapon",
"=",
"blacksmith",
"manufacture",
"weapon",
"(",
"weapon",
"type",
"spear",
")",
";",
"verify",
"weapon",
"(",
"weapon",
",",
"weapon",
"type",
"spear",
",",
"orc",
"weapon",
"class",
")",
";"
]
|
[
"testing",
"{"
]
| [
"blacksmith",
"blacksmith",
"=",
"new",
"orc",
"blacksmith",
"(",
")",
";",
"weapon",
"weapon",
"=",
"blacksmith",
"manufacture",
"weapon",
"(",
"weapon",
"type",
"axe",
")",
";",
"verify",
"weapon",
"(",
"weapon",
",",
"weapon",
"type",
"axe",
",",
"orc",
"weapon",
"class",
")",
";"
]
|
[
"testing",
"{"
]
| [
"blacksmith",
"blacksmith",
"=",
"new",
"elf",
"blacksmith",
"(",
")",
";",
"weapon",
"weapon",
"=",
"blacksmith",
"manufacture",
"weapon",
"(",
"weapon",
"type",
"short",
"sword",
")",
";",
"verify",
"weapon",
"(",
"weapon",
",",
"weapon",
"type",
"short",
"sword",
",",
"elf",
"weapon",
"class",
")",
";"
]
|
[
"testing",
"{"
]
| [
"blacksmith",
"blacksmith",
"=",
"new",
"elf",
"blacksmith",
"(",
")",
";",
"weapon",
"weapon",
"=",
"blacksmith",
"manufacture",
"weapon",
"(",
"weapon",
"type",
"spear",
")",
";",
"verify",
"weapon",
"(",
"weapon",
",",
"weapon",
"type",
"spear",
",",
"elf",
"weapon",
"class",
")",
";"
]
|
[
"/",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"/",
"*",
"jdk",
"serialization",
"handling",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*",
"*"
]
| [
"return",
"new",
"field",
"property",
"(",
"this",
")",
";"
]
|
[
"test",
"setting",
"position",
"on",
"a",
"{"
]
| [
"assert",
"assert",
"equals",
"(",
"data",
"length",
",",
"stream",
"available",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"'",
"0",
"'",
",",
"stream",
"read",
"(",
")",
")",
";",
"stream",
"set",
"position",
"(",
"1",
")",
";",
"assert",
"assert",
"equals",
"(",
"data",
"length",
"-",
"1",
",",
"stream",
"available",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"'",
"1",
"'",
",",
"stream",
"read",
"(",
")",
")",
";",
"stream",
"set",
"position",
"(",
"3",
")",
";",
"assert",
"assert",
"equals",
"(",
"data",
"length",
"-",
"3",
",",
"stream",
"available",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"'",
"3",
"'",
",",
"stream",
"read",
"(",
")",
")",
";",
"stream",
"set",
"position",
"(",
"data",
"length",
")",
";",
"assert",
"assert",
"equals",
"(",
"0",
",",
"stream",
"available",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"-",
"1",
",",
"stream",
"read",
"(",
")",
")",
";"
]
|
[
"returns",
"underlying",
"channel",
"used",
"by",
"this",
"stream",
"this",
"is",
"useful",
"in",
"certain",
"cases",
"like",
"channel",
"for",
"{"
]
| [
"return",
"writer",
"channel",
";"
]
|
[
"writable",
"byte",
"channle",
"interface"
]
| [
"return",
"writer",
"is",
"open",
"(",
")",
";"
]
|
[
"waits",
"for",
"the",
"underlying",
"channel",
"to",
"be",
"ready",
"for",
"writing",
"the",
"timeout",
"specified",
"for",
"this",
"stream",
"applies",
"to",
"this",
"wait"
]
| [
"writer",
"wait",
"for",
"i",
"o",
"(",
"selection",
"key",
"op",
"write",
")",
";"
]
|
[
"call",
"{"
]
| [
"transfer",
"to",
"fully",
"(",
"file",
"ch",
",",
"position",
",",
"count",
",",
"null",
",",
"null",
")",
";"
]
|
[
"a",
"name",
"-",
"spaced",
"guid",
"(",
"for",
"example",
"us",
"-",
"east",
"-",
"1",
":",
"23ec4050",
"-",
"6aea",
"-",
"7089",
"-",
"a2dd",
"-",
"08002example",
")",
"created",
"by",
"amazon",
"cognito",
"guid",
"generation",
"is",
"unique",
"within",
"a",
"region"
]
| [
"set",
"identity",
"id",
"(",
"identity",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"a",
"name",
"-",
"spaced",
"guid",
"(",
"for",
"example",
"us",
"-",
"east",
"-",
"1",
":",
"23ec4050",
"-",
"6aea",
"-",
"7089",
"-",
"a2dd",
"-",
"08002example",
")",
"created",
"by",
"amazon",
"cognito",
"guid",
"generation",
"is",
"unique",
"within",
"a",
"region"
]
| [
"set",
"identity",
"pool",
"id",
"(",
"identity",
"pool",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"date",
"on",
"which",
"the",
"identity",
"was",
"last",
"modified"
]
| [
"set",
"last",
"modified",
"date",
"(",
"last",
"modified",
"date",
")",
";",
"return",
"this",
";"
]
|
[
"number",
"of",
"datasets",
"for",
"the",
"identity"
]
| [
"this",
"dataset",
"count",
"=",
"dataset",
"count",
";"
]
|
[
"number",
"of",
"datasets",
"for",
"the",
"identity"
]
| [
"return",
"this",
"dataset",
"count",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.