docstring_tokens
list | code_tokens
list |
---|---|
[
"scale",
"based",
"on",
"min",
"max"
]
| [
"return",
"normalize",
"(",
"data",
"frame",
",",
"0",
",",
"1",
",",
"skip",
"columns",
")",
";"
]
|
[
"scale",
"all",
"data",
"0",
"to",
"1"
]
| [
"return",
"normalize",
"(",
"schema",
",",
"data",
",",
"0",
",",
"1",
",",
"skip",
"columns",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"(",
"long",
"filename",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"load",
"from",
"memory",
"load",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"load",
"gif",
"from",
"memory",
"load",
"gif",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"gif",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"delays",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"z",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"16",
"(",
"long",
"filename",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"load",
"16",
"from",
"memory",
"load",
"16",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"16",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"16",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"loadf",
"(",
"long",
"filename",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"loadf",
"from",
"memory",
"loadf",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"loadf",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"loadf",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"changes",
"the",
"gamma",
"value",
"used",
"when",
"converting",
"hdr",
"images",
"to",
"ldr",
"the",
"default",
"value",
"is",
"2",
"2f"
]
| [
"public",
"static",
"native",
"void",
"stbi",
"hdr",
"to",
"ldr",
"gamma",
"(",
"float",
"gamma",
")",
";"
]
|
[
"changes",
"the",
"scale",
"factor",
"used",
"when",
"converting",
"hdr",
"images",
"to",
"ldr",
"the",
"default",
"value",
"is",
"1",
"0f"
]
| [
"public",
"static",
"native",
"void",
"stbi",
"hdr",
"to",
"ldr",
"scale",
"(",
"float",
"scale",
")",
";"
]
|
[
"changes",
"the",
"gamma",
"value",
"used",
"when",
"converting",
"ldr",
"images",
"to",
"hdr",
"the",
"default",
"value",
"is",
"2",
"2f"
]
| [
"public",
"static",
"native",
"void",
"stbi",
"ldr",
"to",
"hdr",
"gamma",
"(",
"float",
"gamma",
")",
";"
]
|
[
"changes",
"the",
"scale",
"value",
"used",
"when",
"converting",
"ldr",
"images",
"to",
"hdr",
"the",
"default",
"value",
"is",
"1",
"0f"
]
| [
"public",
"static",
"native",
"void",
"stbi",
"ldr",
"to",
"hdr",
"scale",
"(",
"float",
"scale",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"is",
"hdr",
"(",
"long",
"filename",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"is",
"hdr",
"from",
"memory",
"is",
"hdr",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"is",
"hdr",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"is",
"hdr",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"failure",
"reason",
"(",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"void",
"nstbi",
"image",
"free",
"(",
"long",
"retval",
"from",
"stbi",
"load",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"info",
"(",
"long",
"filename",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"comp",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"info",
"from",
"memory",
"info",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"info",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"comp",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"info",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"long",
"x",
",",
"long",
"y",
",",
"long",
"comp",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"is",
"16",
"bit",
"(",
"long",
"filename",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"stbi",
"is",
"16",
"bit",
"from",
"memory",
"is",
"16",
"bit",
"from",
"memory",
"}"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"is",
"16",
"bit",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"is",
"16",
"bit",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"void",
"nstbi",
"set",
"unpremultiply",
"on",
"load",
"(",
"int",
"flag",
"true",
"if",
"should",
"unpremultiply",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"void",
"nstbi",
"convert",
"iphone",
"png",
"to",
"rgb",
"(",
"int",
"flag",
"true",
"if",
"should",
"convert",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"void",
"nstbi",
"set",
"flip",
"vertically",
"on",
"load",
"(",
"int",
"flag",
"true",
"if",
"should",
"flip",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"zlib",
"decode",
"malloc",
"guesssize",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"int",
"initial",
"size",
",",
"long",
"outlen",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"zlib",
"decode",
"malloc",
"guesssize",
"headerflag",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"int",
"initial",
"size",
",",
"long",
"outlen",
",",
"int",
"parse",
"header",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"zlib",
"decode",
"malloc",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"outlen",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"zlib",
"decode",
"buffer",
"(",
"long",
"obuffer",
",",
"int",
"olen",
",",
"long",
"ibuffer",
",",
"int",
"ilen",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"zlib",
"decode",
"noheader",
"malloc",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"outlen",
")",
";"
]
|
[
"unsafe",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"zlib",
"decode",
"noheader",
"buffer",
"(",
"long",
"obuffer",
",",
"int",
"olen",
",",
"long",
"ibuffer",
",",
"int",
"ilen",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"(",
"long",
"filename",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"gif",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"long",
"delays",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"z",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"16",
"(",
"long",
"filename",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"16",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"load",
"16",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"loadf",
"(",
"long",
"filename",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"loadf",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"long",
"nstbi",
"loadf",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"channels",
"in",
"file",
",",
"int",
"desired",
"channels",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"info",
"(",
"long",
"filename",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"comp",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"info",
"from",
"memory",
"(",
"long",
"buffer",
",",
"int",
"len",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"comp",
")",
";"
]
|
[
"array",
"version",
"of",
":",
"{"
]
| [
"public",
"static",
"native",
"int",
"nstbi",
"info",
"from",
"callbacks",
"(",
"long",
"clbk",
",",
"long",
"user",
",",
"int",
"[",
"]",
"x",
",",
"int",
"[",
"]",
"y",
",",
"int",
"[",
"]",
"comp",
")",
";"
]
|
[
"clears",
"any",
"association",
"to",
"a",
"listener"
]
| [
"symbol",
"listener",
"=",
"null",
";"
]
|
[
"clears",
"any",
"association",
"to",
"a",
"listener"
]
| [
"non",
"symbol",
"listener",
"=",
"null",
";"
]
|
[
"gets",
"the",
"class",
"name",
"value",
"from",
"the",
"last",
"call",
"to",
"{"
]
| [
"return",
"disjoint",
"span",
"class",
"name",
";"
]
|
[
"raises",
"{"
]
| [
"symbol",
"matched",
"listener",
"l",
"=",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"symbol",
"matched",
"event",
"evt",
"=",
"new",
"symbol",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"symbol",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"symbol",
"matched",
"listener",
"l",
"=",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"source",
"code",
"seen",
"event",
"evt",
"=",
"new",
"source",
"code",
"seen",
"event",
"(",
"this",
",",
"start",
")",
";",
"l",
"source",
"code",
"seen",
"(",
"evt",
")",
";",
"}"
]
|
[
"calls",
"{"
]
| [
"on",
"non",
"symbol",
"matched",
"(",
"string",
"value",
"of",
"(",
"c",
")",
",",
"start",
")",
";"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"text",
"matched",
"event",
"evt",
"=",
"new",
"text",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"non",
"symbol",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"text",
"matched",
"event",
"evt",
"=",
"new",
"text",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"hint",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"non",
"symbol",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"text",
"matched",
"event",
"evt",
"=",
"new",
"text",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"keyword",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"calls",
"{"
]
| [
"set",
"line",
"number",
"(",
"get",
"line",
"number",
"(",
")",
"+",
"count",
"l",
"fs",
"(",
"str",
")",
")",
";",
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"text",
"matched",
"event",
"evt",
"=",
"new",
"text",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"end",
"of",
"line",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"disjoint",
"span",
"class",
"name",
"=",
"class",
"name",
";",
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"disjoint",
"span",
"changed",
"event",
"evt",
"=",
"new",
"disjoint",
"span",
"changed",
"event",
"(",
"this",
",",
"class",
"name",
",",
"position",
")",
";",
"l",
"disjoint",
"span",
"changed",
"(",
"evt",
")",
";",
"}"
]
|
[
"calls",
"{"
]
| [
"on",
"uri",
"matched",
"(",
"uri",
",",
"start",
",",
"null",
")",
";"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"linkage",
"matched",
"event",
"evt",
"=",
"new",
"linkage",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"linkage",
"type",
"filelike",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"linkage",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"pathlike",
"matched",
"event",
"evt",
"=",
"new",
"pathlike",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"sep",
",",
"canonicalize",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"pathlike",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"linkage",
"matched",
"event",
"evt",
"=",
"new",
"linkage",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"linkage",
"type",
"email",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"linkage",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"linkage",
"matched",
"event",
"evt",
"=",
"new",
"linkage",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"linkage",
"type",
"label",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
",",
"lstr",
")",
";",
"l",
"linkage",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"linkage",
"matched",
"event",
"evt",
"=",
"new",
"linkage",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"linkage",
"type",
"labeldef",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"linkage",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"linkage",
"matched",
"event",
"evt",
"=",
"new",
"linkage",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"linkage",
"type",
"query",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"linkage",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"linkage",
"matched",
"event",
"evt",
"=",
"new",
"linkage",
"matched",
"event",
"(",
"this",
",",
"str",
",",
"linkage",
"type",
"refs",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"linkage",
"matched",
"(",
"evt",
")",
";",
"}"
]
|
[
"raises",
"{"
]
| [
"non",
"symbol",
"matched",
"listener",
"l",
"=",
"non",
"symbol",
"listener",
";",
"if",
"(",
"l",
"!",
"=",
"null",
")",
"{",
"scope",
"changed",
"event",
"evt",
"=",
"new",
"scope",
"changed",
"event",
"(",
"this",
",",
"action",
",",
"str",
",",
"start",
",",
"start",
"+",
"str",
"length",
"(",
")",
")",
";",
"l",
"scope",
"changed",
"(",
"evt",
")",
";",
"}"
]
|
[
"calls",
"{"
]
| [
"return",
"on",
"filtered",
"symbol",
"matched",
"(",
"str",
",",
"start",
",",
"keywords",
",",
"true",
")",
";"
]
|
[
"raises",
"{"
]
| [
"if",
"(",
"keywords",
"!",
"=",
"null",
")",
"{",
"string",
"check",
"=",
"case",
"sensitive",
"?",
"str",
":",
"str",
"to",
"lower",
"case",
"(",
")",
";",
"if",
"(",
"keywords",
"contains",
"(",
"check",
")",
")",
"{",
"on",
"keyword",
"matched",
"(",
"str",
",",
"start",
")",
";",
"return",
"false",
";",
"}",
"}",
"on",
"symbol",
"matched",
"(",
"str",
",",
"start",
")",
";",
"return",
"true",
";"
]
|
[
"extracts",
"the",
"cluster",
"node",
"server",
"should",
"be",
"running",
"on"
]
| [
"tensor",
"flow",
"cluster",
"spec",
"cluster",
"spec",
"=",
"spec",
"get",
"cluster",
"spec",
"(",
")",
";",
"map",
"<",
"string",
",",
"list",
"<",
"tensor",
"flow",
"server",
"address",
"spec",
">",
">",
"jobs",
"=",
"cluster",
"spec",
"get",
"jobs",
"(",
")",
";",
"list",
"<",
"tensor",
"flow",
"server",
"address",
"spec",
">",
"tasks",
"=",
"jobs",
"get",
"(",
"spec",
"get",
"job",
"name",
"(",
")",
")",
";",
"tensor",
"flow",
"server",
"address",
"spec",
"addr",
"=",
"tasks",
"get",
"(",
"spec",
"get",
"task",
"idx",
"(",
")",
")",
";",
"return",
"addr",
"get",
"node",
"id",
"(",
")",
";"
]
|
[
"computes",
"the",
"request",
"priority",
"<",
"p",
">",
"the",
"default",
"implementation",
"assigns",
"the",
"following",
"priorities",
":",
"<",
"ul",
">",
"<",
"li",
">",
"2",
"-",
"for",
"an",
"authenticated",
"request",
"<",
"li",
">",
"1",
"-",
"for",
"a",
"request",
"with",
"valid",
"/",
"non",
"new",
"session",
"<",
"li",
">",
"0",
"-",
"for",
"all",
"other",
"requests",
"<",
"/",
"ul",
">",
"this",
"method",
"may",
"be",
"overridden",
"to",
"provide",
"application",
"specific",
"priorities"
]
| [
"http",
"servlet",
"request",
"base",
"request",
"=",
"(",
"http",
"servlet",
"request",
")",
"request",
";",
"if",
"(",
"base",
"request",
"get",
"user",
"principal",
"(",
")",
"!",
"=",
"null",
")",
"{",
"return",
"2",
";",
"}",
"else",
"{",
"http",
"session",
"session",
"=",
"base",
"request",
"get",
"session",
"(",
"false",
")",
";",
"if",
"(",
"session",
"!",
"=",
"null",
"&",
"&",
"!",
"session",
"is",
"new",
"(",
")",
")",
"return",
"1",
";",
"else",
"return",
"0",
";",
"}"
]
|
[
"set",
"the",
"(",
"short",
")",
"amount",
"of",
"time",
"(",
"in",
"milliseconds",
")",
"that",
"the",
"filter",
"would",
"wait",
"for",
"the",
"semaphore",
"to",
"become",
"available",
"before",
"suspending",
"a",
"request"
]
| [
"wait",
"ms",
"=",
"value",
";"
]
|
[
"set",
"the",
"amount",
"of",
"time",
"(",
"in",
"milliseconds",
")",
"that",
"the",
"filter",
"would",
"suspend",
"a",
"request",
"for",
"while",
"waiting",
"for",
"the",
"semaphore",
"to",
"become",
"available"
]
| [
"suspend",
"ms",
"=",
"value",
";"
]
|
[
"set",
"the",
"maximum",
"number",
"of",
"requests",
"allowed",
"to",
"be",
"processed",
"at",
"the",
"same",
"time"
]
| [
"passes",
"=",
"new",
"semaphore",
"(",
"(",
"value",
"-",
"get",
"max",
"requests",
"(",
")",
"+",
"passes",
"available",
"permits",
"(",
")",
")",
",",
"true",
")",
";",
"max",
"requests",
"=",
"value",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"user",
"to",
"delete",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"upper",
"and",
"lowercase",
"alphanumeric",
"characters",
"with",
"no",
"spaces",
"you",
"can",
"also",
"include",
"any",
"of",
"the",
"following",
"characters",
":",
"+",
"=",
"@",
"-",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"name",
"(",
"user",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"a",
"simple",
"method",
"to",
"download",
"a",
"url"
]
| [
"return",
"download",
"(",
"url",
",",
"null",
")",
";"
]
|
[
"a",
"simple",
"method",
"to",
"download",
"a",
"url"
]
| [
"page",
"page",
"=",
"download",
"(",
"new",
"request",
"(",
"url",
")",
",",
"site",
"me",
"(",
")",
"set",
"charset",
"(",
"charset",
")",
"to",
"task",
"(",
")",
")",
";",
"return",
"(",
"html",
")",
"page",
"get",
"html",
"(",
")",
";"
]
|
[
"uses",
"a",
"method",
"for",
"treating",
"a",
"double",
"as",
"3",
"2bits",
"that",
"is",
"equivalent",
"to",
"how",
"java",
"script",
"would",
"convert",
"a",
"number",
"before",
"applying",
"a",
"bit",
"operation"
]
| [
"return",
"(",
"int",
")",
"(",
"(",
"(",
"long",
")",
"math",
"floor",
"(",
"d",
")",
")",
"&",
"0xffffffff",
")",
";"
]
|
[
"try",
"to",
"fold",
"arithmetic",
"binary",
"operators"
]
| [
"node",
"result",
"=",
"perform",
"arithmetic",
"op",
"(",
"n",
"get",
"token",
"(",
")",
",",
"left",
",",
"right",
")",
";",
"if",
"(",
"result",
"!",
"=",
"null",
")",
"{",
"result",
"use",
"source",
"info",
"if",
"missing",
"from",
"for",
"tree",
"(",
"n",
")",
";",
"compiler",
"report",
"change",
"to",
"enclosing",
"scope",
"(",
"n",
")",
";",
"n",
"replace",
"with",
"(",
"result",
")",
";",
"return",
"result",
";",
"}",
"return",
"n",
";"
]
|
[
"try",
"to",
"fold",
"comparison",
"nodes",
"e",
"g",
"=",
"="
]
| [
"ternary",
"value",
"result",
"=",
"evaluate",
"comparison",
"(",
"n",
"get",
"token",
"(",
")",
",",
"left",
",",
"right",
")",
";",
"if",
"(",
"result",
"=",
"=",
"ternary",
"value",
"unknown",
")",
"{",
"return",
"n",
";",
"}",
"node",
"new",
"node",
"=",
"node",
"util",
"boolean",
"node",
"(",
"result",
"to",
"boolean",
"(",
"true",
")",
")",
";",
"compiler",
"report",
"change",
"to",
"enclosing",
"scope",
"(",
"n",
")",
";",
"n",
"replace",
"with",
"(",
"new",
"node",
")",
";",
"node",
"util",
"mark",
"functions",
"deleted",
"(",
"n",
",",
"compiler",
")",
";",
"return",
"new",
"node",
";"
]
|
[
"remove",
"useless",
"calls",
":",
"object",
"define",
"properties",
"(",
"o",
"{",
"}",
")",
"-",
">",
"o"
]
| [
"check",
"argument",
"(",
"n",
"is",
"call",
"(",
")",
")",
";",
"if",
"(",
"node",
"util",
"is",
"object",
"define",
"properties",
"definition",
"(",
"n",
")",
")",
"{",
"node",
"src",
"obj",
"=",
"n",
"get",
"last",
"child",
"(",
")",
";",
"if",
"(",
"src",
"obj",
"is",
"object",
"lit",
"(",
")",
"&",
"&",
"!",
"src",
"obj",
"has",
"children",
"(",
")",
")",
"{",
"node",
"parent",
"=",
"n",
"get",
"parent",
"(",
")",
";",
"node",
"dest",
"obj",
"=",
"n",
"get",
"second",
"child",
"(",
")",
"detach",
"(",
")",
";",
"parent",
"replace",
"child",
"(",
"n",
",",
"dest",
"obj",
")",
";",
"compiler",
"report",
"change",
"to",
"enclosing",
"scope",
"(",
"parent",
")",
";",
"}",
"}",
"return",
"n",
";"
]
|
[
"try",
"to",
"fold",
"array",
"-",
"element",
"e",
"g",
"[",
"1",
"2",
"3",
"]",
"[",
"10",
"]",
";"
]
| [
"check",
"argument",
"(",
"n",
"is",
"get",
"elem",
"(",
")",
")",
";",
"if",
"(",
"left",
"is",
"object",
"lit",
"(",
")",
")",
"{",
"return",
"try",
"fold",
"object",
"prop",
"access",
"(",
"n",
",",
"left",
",",
"right",
")",
";",
"}",
"if",
"(",
"left",
"is",
"array",
"lit",
"(",
")",
")",
"{",
"return",
"try",
"fold",
"array",
"access",
"(",
"n",
",",
"left",
",",
"right",
")",
";",
"}",
"if",
"(",
"left",
"is",
"string",
"(",
")",
")",
"{",
"return",
"try",
"fold",
"string",
"array",
"access",
"(",
"n",
",",
"left",
",",
"right",
")",
";",
"}",
"return",
"n",
";"
]
|
[
"checks",
"the",
"type",
"of",
"i",
"o",
"exception",
"and",
"maps",
"it",
"to",
"appropriate",
"nfs",
"3",
"status",
"code"
]
| [
"if",
"(",
"e",
"instanceof",
"file",
"not",
"found",
"exception",
")",
"{",
"return",
"nfs",
"3",
"status",
"nfs3err",
"stale",
";",
"}",
"else",
"if",
"(",
"e",
"instanceof",
"access",
"control",
"exception",
")",
"{",
"return",
"nfs",
"3",
"status",
"nfs3err",
"acces",
";",
"}",
"else",
"{",
"return",
"nfs",
"3",
"status",
"nfs3err",
"io",
";",
"}"
]
|
[
"default",
"value",
"for",
"authorities",
"if",
"an",
"authentication",
"is",
"being",
"created",
"and",
"the",
"input",
"has",
"no",
"data",
"for",
"authorities",
"note",
"that",
"unless",
"this",
"property",
"is",
"set",
"the",
"default",
"authentication",
"created",
"by",
"{",
"@",
"link",
"#",
"extract",
"authentication",
"(",
"map",
")",
"}",
"will",
"be",
"unauthenticated"
]
| [
"this",
"default",
"authorities",
"=",
"authority",
"utils",
"comma",
"separated",
"string",
"to",
"authority",
"list",
"(",
"string",
"utils",
"array",
"to",
"comma",
"delimited",
"string",
"(",
"default",
"authorities",
")",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"identifier",
"of",
"an",
"access",
"key",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"that",
"can",
"consist",
"of",
"any",
"upper",
"or",
"lowercased",
"letter",
"or",
"digit",
"<",
"/",
"p",
">"
]
| [
"set",
"access",
"key",
"id",
"(",
"access",
"key",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"a",
"detailed",
"error",
"code"
]
| [
"this",
"detailed",
"error",
"code",
"=",
"detailed",
"error",
"code",
";"
]
|
[
"a",
"detailed",
"error",
"code"
]
| [
"return",
"this",
"detailed",
"error",
"code",
";"
]
|
[
"a",
"detailed",
"error",
"code"
]
| [
"set",
"detailed",
"error",
"code",
"(",
"detailed",
"error",
"code",
")",
";",
"return",
"this",
";"
]
|
[
"a",
"detailed",
"error",
"message"
]
| [
"this",
"detailed",
"error",
"message",
"=",
"detailed",
"error",
"message",
";"
]
|
[
"a",
"detailed",
"error",
"message"
]
| [
"return",
"this",
"detailed",
"error",
"message",
";"
]
|
[
"a",
"detailed",
"error",
"message"
]
| [
"set",
"detailed",
"error",
"message",
"(",
"detailed",
"error",
"message",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"notebook",
"instance",
"<",
"/",
"p",
">"
]
| [
"set",
"notebook",
"instance",
"name",
"(",
"notebook",
"instance",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"duration",
"of",
"the",
"session",
"in",
"seconds",
"the",
"default",
"is",
"12",
"hours",
"<",
"/",
"p",
">"
]
| [
"this",
"session",
"expiration",
"duration",
"in",
"seconds",
"=",
"session",
"expiration",
"duration",
"in",
"seconds",
";"
]
|
[
"<",
"p",
">",
"the",
"duration",
"of",
"the",
"session",
"in",
"seconds",
"the",
"default",
"is",
"12",
"hours",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"session",
"expiration",
"duration",
"in",
"seconds",
";"
]
|
[
"<",
"p",
">",
"the",
"duration",
"of",
"the",
"session",
"in",
"seconds",
"the",
"default",
"is",
"12",
"hours",
"<",
"/",
"p",
">"
]
| [
"set",
"session",
"expiration",
"duration",
"in",
"seconds",
"(",
"session",
"expiration",
"duration",
"in",
"seconds",
")",
";",
"return",
"this",
";"
]
|
[
"creates",
"a",
"d",
"b",
"address",
"pointing",
"to",
"a",
"different",
"database",
"on",
"the",
"same",
"server"
]
| [
"return",
"new",
"d",
"b",
"address",
"(",
"get",
"host",
"(",
")",
",",
"get",
"port",
"(",
")",
",",
"name",
")",
";"
]
|
[
"gets",
"the",
"database",
"name"
]
| [
"return",
"db",
";"
]
|
[
"checks",
"whether",
"lhs",
"is",
"not",
"equal",
"to",
"rhs"
]
| [
"return",
"!",
"lhs",
"equals",
"(",
"rhs",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.