docstring_tokens
list | code_tokens
list |
---|---|
[
"number",
"of",
"datasets",
"for",
"the",
"identity"
]
| [
"set",
"dataset",
"count",
"(",
"dataset",
"count",
")",
";",
"return",
"this",
";"
]
|
[
"total",
"data",
"storage",
"for",
"this",
"identity"
]
| [
"set",
"data",
"storage",
"(",
"data",
"storage",
")",
";",
"return",
"this",
";"
]
|
[
"as",
"strictly",
"contains",
"but",
"two",
"exactly",
"matching",
"ranges",
"are",
"also",
"considered",
"contained",
"one",
"in",
"each",
"other"
]
| [
"return",
"(",
"begin",
"is",
"before",
"(",
"other",
"begin",
")",
"|",
"|",
"begin",
"equals",
"(",
"other",
"begin",
")",
")",
"&",
"&",
"(",
"end",
"is",
"after",
"(",
"other",
"end",
")",
"|",
"|",
"end",
"equals",
"(",
"other",
"end",
")",
")",
";"
]
|
[
"do",
"this",
"strictly",
"contains",
"other",
"?",
"it",
"means",
"that",
"this",
"has",
"to",
"be",
"larger",
"than",
"other",
"and",
"it",
"has",
"to",
"start",
"as",
"other",
"or",
"before",
"and",
"end",
"as",
"other",
"or",
"after"
]
| [
"return",
"begin",
"is",
"before",
"(",
"other",
"begin",
")",
"&",
"&",
"end",
"is",
"after",
"(",
"other",
"end",
")",
";"
]
|
[
"create",
"a",
"new",
"counter",
"with",
"the",
"specified",
"name"
]
| [
"atomic",
"long",
"c",
"=",
"new",
"atomic",
"long",
"(",
"0",
")",
";",
"counters",
"put",
"(",
"counter",
"name",
",",
"c",
")",
";",
"return",
"c",
";"
]
|
[
"get",
"all",
"of",
"the",
"values",
"since",
"the",
"last",
"time",
"this",
"function",
"was",
"called",
"calling",
"this",
"function",
"will",
"reset",
"all",
"atomic",
"longs",
"in",
"the",
"instance",
"back",
"to",
"0"
]
| [
"return",
"get",
"metrics",
"map",
"(",
"true",
")",
";"
]
|
[
"returns",
"a",
"{"
]
| [
"return",
"new",
"root",
"provider",
"registry",
"(",
"immutable",
"map",
"<",
"string",
",",
"root",
"input",
"provider",
"<",
"?",
">",
">",
"builder",
"(",
")",
"put",
"(",
"impulse",
"transform",
"urn",
",",
"new",
"impulse",
"evaluator",
"factory",
"impulse",
"root",
"provider",
"(",
"bundle",
"factory",
")",
")",
"put",
"(",
"flatten",
"transform",
"urn",
",",
"new",
"empty",
"input",
"provider",
"(",
")",
")",
"build",
"(",
")",
")",
";"
]
|
[
"/",
"*",
"get",
"test",
"root",
"path",
"qualified",
"for",
"f",
"sys"
]
| [
"return",
"f",
"sys",
"make",
"qualified",
"(",
"new",
"path",
"(",
"test",
"root",
"dir",
")",
")",
";"
]
|
[
"/",
"*",
"get",
"test",
"root",
"path",
"+",
"path",
"string",
"qualified",
"for",
"f",
"sys"
]
| [
"return",
"f",
"sys",
"make",
"qualified",
"(",
"new",
"path",
"(",
"test",
"root",
"dir",
",",
"path",
"string",
")",
")",
";"
]
|
[
"/",
"*",
"create",
"files",
"with",
"num",
"blocks",
"blocks",
"each",
"with",
"block",
"size",
"block",
"size"
]
| [
"return",
"create",
"file",
"(",
"f",
"sys",
",",
"path",
",",
"get",
"file",
"data",
"(",
"num",
"blocks",
",",
"block",
"size",
")",
",",
"block",
"size",
",",
"num",
"repl",
")",
";"
]
|
[
"more",
"transparent"
]
| [
"fs",
"initialize",
"(",
"uri",
",",
"conf",
")",
";"
]
|
[
"add",
"mock",
"data",
"for",
"the",
"spout"
]
| [
"if",
"(",
"!",
"data",
"contains",
"key",
"(",
"spout",
"id",
")",
")",
"{",
"data",
"put",
"(",
"spout",
"id",
",",
"new",
"array",
"list",
"<",
"fixed",
"tuple",
">",
"(",
")",
")",
";",
"}",
"list",
"<",
"fixed",
"tuple",
">",
"tuples",
"=",
"data",
"get",
"(",
"spout",
"id",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"valueses",
"length",
";",
"i",
"+",
"+",
")",
"{",
"fixed",
"tuple",
"tuple",
"=",
"new",
"fixed",
"tuple",
"(",
"stream",
"id",
",",
"valueses",
"[",
"i",
"]",
")",
";",
"tuples",
"add",
"(",
"tuple",
")",
";",
"}"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"return",
"true",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| []
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"return",
"true",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| []
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"return",
"true",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| []
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"return",
"true",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| []
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"return",
"true",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| []
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| [
"return",
"true",
";"
]
|
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
]
| []
|
[
"<",
"p",
">",
"identifier",
"of",
"the",
"aws",
"managed",
"microsoft",
"ad",
"or",
"simple",
"ad",
"directory",
"in",
"which",
"the",
"user",
"resides",
"<",
"/",
"p",
">"
]
| [
"set",
"directory",
"id",
"(",
"directory",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"user",
"name",
"of",
"the",
"user",
"whose",
"password",
"will",
"be",
"reset",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"name",
"(",
"user",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"new",
"password",
"that",
"will",
"be",
"reset",
"<",
"/",
"p",
">"
]
| [
"set",
"new",
"password",
"(",
"new",
"password",
")",
";",
"return",
"this",
";"
]
|
[
"this",
"code",
"is",
"really",
"only",
"used",
"for",
"dealing",
"with",
"dynamic",
"tag",
"libraries",
"so",
"no",
"point",
"in",
"implementing",
"this",
"for",
"statically",
"used",
"tag",
"libraries"
]
| [
"return",
"null",
";"
]
|
[
"create",
"a",
"target",
"pattern",
"value",
"key"
]
| [
"preconditions",
"check",
"state",
"(",
"target",
"utils",
"is",
"test",
"suite",
"rule",
"(",
"test",
"suite",
"target",
")",
")",
";",
"return",
"new",
"tests",
"in",
"suite",
"key",
"(",
"test",
"suite",
"target",
"get",
"label",
"(",
")",
",",
"strict",
")",
";"
]
|
[
"px",
"-",
"-",
">",
"dip"
]
| [
"float",
"density",
"=",
"get",
"resource",
"(",
")",
"get",
"display",
"metrics",
"(",
")",
"density",
";",
"int",
"dip",
"=",
"(",
"int",
")",
"(",
"px",
"/",
"density",
"+",
"0",
"5f",
")",
";",
"return",
"dip",
";"
]
|
[
"sp",
"-",
"-",
">",
"px"
]
| [
"return",
"(",
"int",
")",
"(",
"typed",
"value",
"apply",
"dimension",
"(",
"typed",
"value",
"complex",
"unit",
"sp",
",",
"sp",
",",
"get",
"resource",
"(",
")",
"get",
"display",
"metrics",
"(",
")",
")",
"+",
"0",
"5f",
")",
";"
]
|
[
"prepare",
"the",
"boundaries",
"for",
"processing"
]
| [
"return",
"new",
"i",
"n",
"d",
"array",
"[",
"]",
"{",
"nd",
"4j",
"value",
"array",
"of",
"(",
"x",
"shape",
"(",
")",
",",
"bounds",
"get",
"double",
"(",
"0",
")",
")",
",",
"nd",
"4j",
"value",
"array",
"of",
"(",
"x",
"shape",
"(",
")",
",",
"bounds",
"get",
"double",
"(",
"1",
")",
")",
"}",
";"
]
|
[
"adjust",
"final",
"scheme",
"to",
"presence",
"of",
"bounds"
]
| [
"i",
"n",
"d",
"array",
"one",
"sided",
"=",
"nd",
"4j",
"ones",
"like",
"(",
"h",
")",
";",
"if",
"(",
"and",
"(",
"lower",
"bound",
"eq",
"(",
"double",
"negative",
"infinity",
")",
",",
"upper",
"bound",
"eq",
"(",
"double",
"positive",
"infinity",
")",
")",
"sum",
"number",
"(",
")",
"double",
"value",
"(",
")",
">",
"0",
")",
"{",
"return",
"new",
"i",
"n",
"d",
"array",
"[",
"]",
"{",
"h",
",",
"one",
"sided",
"}",
";",
"}",
"i",
"n",
"d",
"array",
"h",
"total",
"=",
"h",
"mul",
"(",
"num",
"steps",
")",
";",
"i",
"n",
"d",
"array",
"h",
"adjusted",
"=",
"h",
"dup",
"(",
")",
";",
"i",
"n",
"d",
"array",
"lower",
"dist",
"=",
"x",
"sub",
"(",
"lower",
"bound",
")",
";",
"i",
"n",
"d",
"array",
"upper",
"bound",
"2",
"=",
"upper",
"bound",
"sub",
"(",
"x",
")",
";",
"i",
"n",
"d",
"array",
"central",
"=",
"and",
"(",
"greater",
"than",
"or",
"equal",
"(",
"lower",
"dist",
",",
"h",
"total",
")",
",",
"greater",
"than",
"or",
"equal",
"(",
"upper",
"bound",
"2",
",",
"h",
"total",
")",
")",
";",
"i",
"n",
"d",
"array",
"forward",
"=",
"and",
"(",
"greater",
"than",
"or",
"equal",
"(",
"upper",
"bound",
",",
"lower",
"dist",
")",
",",
"not",
"(",
"central",
")",
")",
";",
"h",
"adjusted",
"put",
"(",
"forward",
",",
"min",
"(",
"h",
"get",
"(",
"forward",
")",
",",
"upper",
"bound",
"2",
"get",
"(",
"forward",
")",
"mul",
"(",
"0",
"5",
")",
"divi",
"(",
"num",
"steps",
")",
")",
")",
";",
"one",
"sided",
"put",
"(",
"forward",
",",
"nd",
"4j",
"scalar",
"(",
"1",
"0",
")",
")",
";",
"i",
"n",
"d",
"array",
"backward",
"=",
"and",
"(",
"upper",
"bound",
"2",
"lt",
"(",
"lower",
"bound",
")",
",",
"not",
"(",
"central",
")",
")",
";",
"h",
"adjusted",
"put",
"(",
"backward",
",",
"min",
"(",
"h",
"get",
"(",
"backward",
")",
",",
"lower",
"dist",
"get",
"(",
"backward",
")",
"mul",
"(",
"0",
"5",
")",
"divi",
"(",
"num",
"steps",
")",
")",
")",
";",
"one",
"sided",
"put",
"(",
"backward",
",",
"nd",
"4j",
"scalar",
"(",
"1",
"0",
")",
")",
";",
"i",
"n",
"d",
"array",
"min",
"dist",
"=",
"min",
"(",
"upper",
"bound",
"2",
",",
"lower",
"dist",
")",
"divi",
"(",
"num",
"steps",
")",
";",
"i",
"n",
"d",
"array",
"adjusted",
"central",
"=",
"and",
"(",
"not",
"(",
"central",
")",
",",
"less",
"than",
"or",
"equal",
"(",
"abs",
"(",
"h",
"adjusted",
")",
",",
"min",
"dist",
")",
")",
";",
"h",
"adjusted",
"put",
"(",
"adjusted",
"central",
",",
"min",
"dist",
"get",
"(",
"adjusted",
"central",
")",
")",
";",
"one",
"sided",
"put",
"(",
"adjusted",
"central",
",",
"nd",
"4j",
"scalar",
"(",
"0",
"0",
")",
")",
";",
"return",
"new",
"i",
"n",
"d",
"array",
"[",
"]",
"{",
"h",
"adjusted",
",",
"one",
"sided",
"}",
";"
]
|
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"iff",
"the",
"method",
"could",
"be",
"a",
"virtual",
"method",
"i",
"e",
"if",
"it",
"is",
"not",
"a",
"constructor",
"is",
"private",
"or",
"is",
"static"
]
| [
"if",
"(",
"method",
"is",
"constructor",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"jdt",
"flags",
"is",
"private",
"(",
"method",
")",
")",
"return",
"false",
";",
"if",
"(",
"jdt",
"flags",
"is",
"static",
"(",
"method",
")",
")",
"return",
"false",
";",
"return",
"true",
";"
]
|
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"iff",
"the",
"method",
"could",
"be",
"a",
"virtual",
"method",
"i",
"e",
"if",
"it",
"is",
"not",
"a",
"constructor",
"is",
"private",
"or",
"is",
"static"
]
| [
"if",
"(",
"method",
"binding",
"is",
"constructor",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"modifier",
"is",
"private",
"(",
"method",
"binding",
"get",
"modifiers",
"(",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"modifier",
"is",
"static",
"(",
"method",
"binding",
"get",
"modifiers",
"(",
")",
")",
")",
"return",
"false",
";",
"return",
"true",
";"
]
|
[
"locates",
"the",
"topmost",
"method",
"of",
"an",
"override",
"ripple",
"and",
"returns",
"it",
"if",
"none",
"is",
"found",
"null",
"is",
"returned"
]
| [
"assert",
"is",
"not",
"null",
"(",
"method",
")",
";",
"i",
"type",
"hierarchy",
"hierarchy",
"=",
"type",
"hierarchy",
";",
"i",
"method",
"topmost",
"method",
"=",
"null",
";",
"final",
"i",
"type",
"declaring",
"type",
"=",
"method",
"get",
"declaring",
"type",
"(",
")",
";",
"if",
"(",
"!",
"declaring",
"type",
"is",
"interface",
"(",
")",
")",
"{",
"if",
"(",
"(",
"hierarchy",
"=",
"=",
"null",
")",
"|",
"|",
"!",
"declaring",
"type",
"equals",
"(",
"hierarchy",
"get",
"type",
"(",
")",
")",
")",
"hierarchy",
"=",
"declaring",
"type",
"new",
"type",
"hierarchy",
"(",
"monitor",
")",
";",
"i",
"method",
"in",
"interface",
"=",
"is",
"declared",
"in",
"interface",
"(",
"method",
",",
"hierarchy",
",",
"monitor",
")",
";",
"if",
"(",
"in",
"interface",
"!",
"=",
"null",
"&",
"&",
"!",
"in",
"interface",
"equals",
"(",
"method",
")",
")",
"topmost",
"method",
"=",
"in",
"interface",
";",
"}",
"if",
"(",
"topmost",
"method",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"hierarchy",
"=",
"=",
"null",
")",
"hierarchy",
"=",
"declaring",
"type",
"new",
"supertype",
"hierarchy",
"(",
"monitor",
")",
";",
"i",
"method",
"overrides",
"=",
"overrides",
"another",
"method",
"(",
"method",
",",
"hierarchy",
")",
";",
"if",
"(",
"overrides",
"!",
"=",
"null",
"&",
"&",
"!",
"overrides",
"equals",
"(",
"method",
")",
")",
"topmost",
"method",
"=",
"overrides",
";",
"}",
"return",
"topmost",
"method",
";"
]
|
[
"this",
"will",
"parse",
"x",
"content",
"into",
"a",
"{",
"@",
"link",
"stored",
"script",
"source",
"}",
"the",
"following",
"format",
"is",
"what",
"will",
"be",
"parsed",
":"
]
| [
"return",
"parser",
"apply",
"(",
"parser",
",",
"null",
")",
"build",
"(",
"ignore",
"empty",
")",
";"
]
|
[
"required",
"for",
"{"
]
| [
"return",
"read",
"diff",
"from",
"(",
"stored",
"script",
"source",
":",
":",
"new",
",",
"in",
")",
";"
]
|
[
"this",
"will",
"write",
"x",
"content",
"from",
"a",
"{",
"@",
"link",
"stored",
"script",
"source",
"}",
"the",
"following",
"format",
"will",
"be",
"written",
":"
]
| [
"builder",
"start",
"object",
"(",
")",
";",
"builder",
"field",
"(",
"lang",
"parse",
"field",
"get",
"preferred",
"name",
"(",
")",
",",
"lang",
")",
";",
"builder",
"field",
"(",
"source",
"parse",
"field",
"get",
"preferred",
"name",
"(",
")",
",",
"source",
")",
";",
"if",
"(",
"options",
"is",
"empty",
"(",
")",
"=",
"=",
"false",
")",
"{",
"builder",
"field",
"(",
"options",
"parse",
"field",
"get",
"preferred",
"name",
"(",
")",
",",
"options",
")",
";",
"}",
"builder",
"end",
"object",
"(",
")",
";",
"return",
"builder",
";"
]
|
[
"all",
"getters",
"and",
"setters"
]
| [
"return",
"total",
"score",
";"
]
|
[
"{"
]
| [
"delegate",
"on",
"node",
"clicked",
"(",
"this",
")",
";"
]
|
[
"changes",
"style",
"of",
"widget",
"as",
"selected"
]
| [
"main",
"add",
"style",
"name",
"(",
"resources",
"get",
"css",
"(",
")",
"select",
"node",
"(",
")",
")",
";"
]
|
[
"changes",
"style",
"of",
"widget",
"as",
"unselected"
]
| [
"main",
"remove",
"style",
"name",
"(",
"resources",
"get",
"css",
"(",
")",
"select",
"node",
"(",
")",
")",
";"
]
|
[
"sets",
"name",
"of",
"the",
"recipe"
]
| [
"this",
"name",
"set",
"text",
"(",
"name",
")",
";"
]
|
[
"hides",
"panel",
"wit",
"the",
"remove",
"button"
]
| [
"remove",
"button",
"set",
"visible",
"(",
"false",
")",
";"
]
|
[
"returns",
"type",
"of",
"the",
"node"
]
| [
"return",
"node",
"kind",
";"
]
|
[
"*",
"returns",
"true",
"if",
"the",
"net",
"a",
"s",
"c",
"i",
"i",
"line",
"separator",
"differs",
"from",
"the",
"system",
"line",
"separator",
"false",
"if",
"they",
"are",
"the",
"same",
"this",
"method",
"is",
"useful",
"to",
"determine",
"whether",
"or",
"not",
"you",
"need",
"to",
"instantiate",
"a",
"from",
"net",
"a",
"s",
"c",
"i",
"i",
"input",
"stream",
"object"
]
| [
"return",
"!",
"no",
"conversion",
"required",
";"
]
|
[
"*",
"reads",
"and",
"returns",
"the",
"next",
"byte",
"in",
"the",
"stream",
"if",
"the",
"end",
"of",
"the",
"message",
"has",
"been",
"reached",
"returns",
"-",
"1",
"note",
"that",
"a",
"call",
"to",
"this",
"method",
"may",
"result",
"in",
"multiple",
"reads",
"from",
"the",
"underlying",
"input",
"stream",
"in",
"order",
"to",
"convert",
"netascii",
"line",
"separators",
"to",
"the",
"local",
"line",
"separator",
"format",
"this",
"is",
"transparent",
"to",
"the",
"programmer",
"and",
"is",
"only",
"mentioned",
"for",
"completeness"
]
| [
"if",
"(",
"no",
"conversion",
"required",
")",
"{",
"return",
"super",
"read",
"(",
")",
";",
"}",
"return",
"read",
"(",
")",
";"
]
|
[
"helper",
"to",
"click",
"on",
"objects",
"that",
"match",
"the",
"content",
"-",
"description",
"text"
]
| [
"ui",
"object",
"obj",
"=",
"new",
"ui",
"object",
"(",
"new",
"ui",
"selector",
"(",
")",
"description",
"(",
"text",
")",
")",
";",
"obj",
"click",
"and",
"wait",
"for",
"new",
"window",
"(",
")",
";"
]
|
[
"helper",
"to",
"click",
"on",
"object",
"that",
"match",
"the",
"text",
"value"
]
| [
"ui",
"object",
"obj",
"=",
"new",
"ui",
"object",
"(",
"new",
"ui",
"selector",
"(",
")",
"text",
"(",
"text",
")",
")",
";",
"obj",
"click",
"and",
"wait",
"for",
"new",
"window",
"(",
")",
";"
]
|
[
"notifies",
"the",
"download",
"delegate",
"that",
"a",
"download",
"completed",
"and",
"passes",
"along",
"info",
"about",
"the",
"download",
"this",
"can",
"be",
"either",
"a",
"post",
"download",
"or",
"a",
"get",
"download",
"with",
"authentication"
]
| [
"if",
"(",
"s",
"download",
"notification",
"service",
"=",
"=",
"null",
")",
"return",
";",
"download",
"info",
"download",
"info",
"=",
"new",
"download",
"info",
"builder",
"(",
")",
"set",
"url",
"(",
"url",
")",
"set",
"mime",
"type",
"(",
"mime",
"type",
")",
"set",
"file",
"name",
"(",
"filename",
")",
"set",
"file",
"path",
"(",
"path",
")",
"set",
"content",
"length",
"(",
"content",
"length",
")",
"set",
"description",
"(",
"filename",
")",
"set",
"download",
"guid",
"(",
"download",
"guid",
")",
"set",
"original",
"url",
"(",
"original",
"url",
")",
"set",
"referer",
"(",
"referer",
"url",
")",
"set",
"has",
"user",
"gesture",
"(",
"has",
"user",
"gesture",
")",
"build",
"(",
")",
";",
"s",
"download",
"notification",
"service",
"on",
"download",
"completed",
"(",
"download",
"info",
")",
";"
]
|
[
"notifies",
"the",
"download",
"delegate",
"that",
"a",
"download",
"completed",
"and",
"passes",
"along",
"info",
"about",
"the",
"download",
"this",
"can",
"be",
"either",
"a",
"post",
"download",
"or",
"a",
"get",
"download",
"with",
"authentication"
]
| [
"if",
"(",
"s",
"download",
"notification",
"service",
"=",
"=",
"null",
")",
"return",
";",
"download",
"info",
"download",
"info",
"=",
"new",
"download",
"info",
"builder",
"(",
")",
"set",
"url",
"(",
"url",
")",
"set",
"mime",
"type",
"(",
"mime",
"type",
")",
"set",
"file",
"name",
"(",
"filename",
")",
"set",
"file",
"path",
"(",
"path",
")",
"set",
"content",
"length",
"(",
"content",
"length",
")",
"set",
"description",
"(",
"filename",
")",
"set",
"download",
"guid",
"(",
"download",
"guid",
")",
"set",
"is",
"resumable",
"(",
"is",
"resumable",
")",
"set",
"is",
"off",
"the",
"record",
"(",
"is",
"off",
"the",
"record",
")",
"build",
"(",
")",
";",
"s",
"download",
"notification",
"service",
"on",
"download",
"interrupted",
"(",
"download",
"info",
",",
"is",
"auto",
"resumable",
")",
";"
]
|
[
"called",
"when",
"a",
"download",
"was",
"cancelled"
]
| [
"if",
"(",
"s",
"download",
"notification",
"service",
"=",
"=",
"null",
")",
"return",
";",
"download",
"info",
"download",
"info",
"=",
"new",
"download",
"info",
"builder",
"(",
")",
"set",
"download",
"guid",
"(",
"download",
"guid",
")",
"build",
"(",
")",
";",
"s",
"download",
"notification",
"service",
"on",
"download",
"cancelled",
"(",
"download",
"info",
")",
";"
]
|
[
"notifies",
"the",
"download",
"delegate",
"about",
"progress",
"of",
"a",
"download",
"downloads",
"that",
"use",
"chrome",
"network",
"stack",
"use",
"custom",
"notification",
"to",
"display",
"the",
"progress",
"of",
"downloads"
]
| [
"if",
"(",
"s",
"download",
"notification",
"service",
"=",
"=",
"null",
")",
"return",
";",
"download",
"info",
"download",
"info",
"=",
"new",
"download",
"info",
"builder",
"(",
")",
"set",
"url",
"(",
"url",
")",
"set",
"mime",
"type",
"(",
"mime",
"type",
")",
"set",
"file",
"name",
"(",
"filename",
")",
"set",
"file",
"path",
"(",
"path",
")",
"set",
"content",
"length",
"(",
"content",
"length",
")",
"set",
"description",
"(",
"filename",
")",
"set",
"download",
"guid",
"(",
"download",
"guid",
")",
"set",
"percent",
"completed",
"(",
"percent",
"completed",
")",
"set",
"time",
"remaining",
"in",
"millis",
"(",
"time",
"remaining",
"in",
"ms",
")",
"set",
"has",
"user",
"gesture",
"(",
"has",
"user",
"gesture",
")",
"set",
"is",
"paused",
"(",
"is",
"paused",
")",
"set",
"is",
"off",
"the",
"record",
"(",
"is",
"off",
"the",
"record",
")",
"build",
"(",
")",
";",
"s",
"download",
"notification",
"service",
"on",
"download",
"updated",
"(",
"download",
"info",
")",
";"
]
|
[
"returns",
"whether",
"file",
"access",
"is",
"allowed"
]
| [
"return",
"window",
"android",
"has",
"permission",
"(",
"permission",
"write",
"external",
"storage",
")",
";"
]
|
[
"notify",
"the",
"results",
"of",
"a",
"file",
"access",
"request"
]
| [
"native",
"on",
"request",
"file",
"access",
"result",
"(",
"callback",
"id",
",",
"granted",
")",
";"
]
|
[
"adds",
"a",
"new",
"item"
]
| [
"int",
"index",
"=",
"(",
"int",
")",
"(",
"current",
"index",
"increment",
"and",
"get",
"(",
")",
"%",
"max",
"size",
")",
";",
"circular",
"array",
"[",
"index",
"]",
"set",
"(",
"new",
"val",
")",
";"
]
|
[
"returns",
"value",
"at",
"the",
"tail",
"of",
"the",
"queue"
]
| [
"if",
"(",
"depth",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"null",
";",
"}",
"return",
"circular",
"array",
"[",
"get",
"index",
"(",
"get",
"current",
"index",
"(",
")",
")",
"]",
"get",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"the",
"queue",
"is",
"empty",
"otherwise",
"false"
]
| [
"return",
"depth",
"(",
")",
"=",
"=",
"0",
";"
]
|
[
"returns",
"the",
"number",
"of",
"items",
"currently",
"in",
"the",
"queue"
]
| [
"long",
"curr",
"ind",
"=",
"current",
"index",
"get",
"(",
")",
"+",
"1",
";",
"return",
"curr",
"ind",
">",
"=",
"max",
"size",
"?",
"max",
"size",
":",
"(",
"int",
")",
"curr",
"ind",
";"
]
|
[
"return",
"whether",
"or",
"not",
"the",
"given",
"script",
"node",
"represents",
"an",
"es6",
"module",
"file"
]
| [
"check",
"argument",
"(",
"script",
"node",
"is",
"script",
"(",
")",
",",
"script",
"node",
")",
";",
"if",
"(",
"script",
"node",
"get",
"boolean",
"prop",
"(",
"node",
"goog",
"module",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"script",
"node",
"has",
"children",
"(",
")",
"&",
"&",
"script",
"node",
"get",
"first",
"child",
"(",
")",
"is",
"module",
"body",
"(",
")",
";"
]
|
[
"rewrite",
"a",
"single",
"es6",
"module",
"file",
"to",
"a",
"global",
"script",
"version"
]
| [
"check",
"argument",
"(",
"is",
"es",
"6",
"module",
"root",
"(",
"root",
")",
",",
"root",
")",
";",
"clear",
"state",
"(",
")",
";",
"root",
"put",
"boolean",
"prop",
"(",
"node",
"transpiled",
",",
"true",
")",
";",
"node",
"traversal",
"traverse",
"(",
"compiler",
",",
"root",
",",
"this",
")",
";"
]
|
[
"returns",
"the",
"internal",
"chunked",
"file",
"set"
]
| [
"return",
"this",
"file",
"set",
";"
]
|
[
"retrieve",
"the",
"version",
"id",
"of",
"the",
"current",
"directory"
]
| [
"return",
"store",
"version",
"manager",
"get",
"current",
"version",
"(",
")",
";"
]
|
[
"retrieves",
"the",
"path",
"of",
"the",
"store"
]
| [
"return",
"store",
"dir",
"get",
"absolute",
"path",
"(",
")",
";"
]
|
[
"retrieve",
"the",
"storage",
"format",
"of",
"ro"
]
| [
"return",
"file",
"set",
"get",
"read",
"only",
"storage",
"format",
"(",
")",
";"
]
|
[
"<",
"p",
">",
"indicates",
"if",
"the",
"specified",
"cname",
"is",
"available",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
":",
"the",
"cname",
"is",
"available",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
":",
"the",
"cname",
"is",
"not",
"available",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"return",
"this",
"available",
";"
]
|
[
"<",
"p",
">",
"indicates",
"if",
"the",
"specified",
"cname",
"is",
"available",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
":",
"the",
"cname",
"is",
"available",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
":",
"the",
"cname",
"is",
"not",
"available",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"set",
"available",
"(",
"available",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"indicates",
"if",
"the",
"specified",
"cname",
"is",
"available",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
":",
"the",
"cname",
"is",
"available",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
":",
"the",
"cname",
"is",
"not",
"available",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"return",
"this",
"available",
";"
]
|
[
"<",
"p",
">",
"the",
"fully",
"qualified",
"cname",
"to",
"reserve",
"when",
"<",
"a",
">",
"create",
"environment",
"<",
"/",
"a",
">",
"is",
"called",
"with",
"the",
"provided",
"prefix",
"<",
"/",
"p",
">"
]
| [
"this",
"fully",
"qualified",
"c",
"n",
"a",
"m",
"e",
"=",
"fully",
"qualified",
"c",
"n",
"a",
"m",
"e",
";"
]
|
[
"<",
"p",
">",
"the",
"fully",
"qualified",
"cname",
"to",
"reserve",
"when",
"<",
"a",
">",
"create",
"environment",
"<",
"/",
"a",
">",
"is",
"called",
"with",
"the",
"provided",
"prefix",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"fully",
"qualified",
"c",
"n",
"a",
"m",
"e",
";"
]
|
[
"<",
"p",
">",
"the",
"fully",
"qualified",
"cname",
"to",
"reserve",
"when",
"<",
"a",
">",
"create",
"environment",
"<",
"/",
"a",
">",
"is",
"called",
"with",
"the",
"provided",
"prefix",
"<",
"/",
"p",
">"
]
| [
"set",
"fully",
"qualified",
"c",
"n",
"a",
"m",
"e",
"(",
"fully",
"qualified",
"c",
"n",
"a",
"m",
"e",
")",
";",
"return",
"this",
";"
]
|
[
"construct",
"a",
"synchronous",
"implementation",
"of",
"a",
"w",
"s",
"step",
"functions",
"using",
"the",
"current",
"builder",
"configuration"
]
| [
"return",
"new",
"a",
"w",
"s",
"step",
"functions",
"client",
"(",
"params",
")",
";"
]
|
[
"retrieve",
"the",
"chromosome",
"criteria"
]
| [
"return",
"chromosome",
"criteria",
";"
]
|
[
"set",
"value",
"for",
"chromosome",
"criteria"
]
| [
"this",
"chromosome",
"criteria",
"=",
"chromosome",
"criteria",
";"
]
|
[
"retrieve",
"the",
"chromosome",
"length"
]
| [
"return",
"chromosome",
"len",
";"
]
|
[
"set",
"the",
"chromsome",
"length"
]
| [
"this",
"chromosome",
"len",
"=",
"chromosome",
"len",
";"
]
|
[
"retrieve",
"the",
"cross",
"over",
"rate"
]
| [
"return",
"cross",
"over",
"rate",
";"
]
|
[
"set",
"the",
"cross",
"over",
"rate"
]
| [
"this",
"cross",
"over",
"rate",
"=",
"cross",
"over",
"rate",
";"
]
|
[
"retrieve",
"the",
"elitism",
"count"
]
| [
"return",
"elitism",
"cnt",
";"
]
|
[
"set",
"the",
"elitism",
"count"
]
| [
"this",
"elitism",
"cnt",
"=",
"elitism",
"cnt",
";"
]
|
[
"retrieve",
"i",
"fitness",
"function"
]
| [
"return",
"fitness",
"function",
";"
]
|
[
"set",
"i",
"fitness",
"function"
]
| [
"this",
"fitness",
"function",
"=",
"fitness",
"function",
";"
]
|
[
"retrieve",
"the",
"gene",
"pool"
]
| [
"return",
"(",
"this",
"gene",
"pool",
")",
";"
]
|
[
"set",
"the",
"gene",
"pool"
]
| [
"this",
"gene",
"pool",
"=",
"gene",
"pool",
";"
]
|
[
"retrieve",
"the",
"mutation",
"rate"
]
| [
"return",
"mutation",
"rate",
";"
]
|
[
"set",
"the",
"mutation",
"rate"
]
| [
"this",
"mutation",
"rate",
"=",
"mutation",
"rate",
";"
]
|
[
"retrieve",
"the",
"population",
"size"
]
| [
"return",
"population",
"size",
";"
]
|
[
"set",
"the",
"population",
"size"
]
| [
"this",
"population",
"size",
"=",
"population",
"size",
";"
]
|
[
"get",
"the",
"selection",
"method"
]
| [
"return",
"selection",
"mtd",
";"
]
|
[
"set",
"the",
"selection",
"method"
]
| [
"this",
"selection",
"mtd",
"=",
"selection",
"mtd",
";"
]
|
[
"retreive",
"the",
"termination",
"criteria"
]
| [
"return",
"terminate",
"criteria",
";"
]
|
[
"set",
"the",
"termination",
"criteria"
]
| [
"this",
"terminate",
"criteria",
"=",
"terminate",
"criteria",
";"
]
|
[
"retrieve",
"truncate",
"rate"
]
| [
"return",
"truncate",
"rate",
";"
]
|
[
"set",
"truncate",
"percentage"
]
| [
"this",
"truncate",
"rate",
"=",
"truncate",
"rate",
";"
]
|
[
"set",
"the",
"amount",
"of",
"horizontal",
"padding",
"between",
"the",
"switch",
"and",
"the",
"associated",
"text"
]
| [
"m",
"switch",
"padding",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";"
]
|
[
"get",
"the",
"amount",
"of",
"horizontal",
"padding",
"between",
"the",
"switch",
"and",
"the",
"associated",
"text"
]
| [
"return",
"m",
"switch",
"padding",
";"
]
|
[
"set",
"the",
"minimum",
"width",
"of",
"the",
"switch",
"in",
"pixels",
"the",
"switch",
"s",
"width",
"will",
"be",
"the",
"maximum",
"of",
"this",
"value",
"and",
"its",
"measured",
"width",
"as",
"determined",
"by",
"the",
"switch",
"drawables",
"and",
"text",
"used"
]
| [
"m",
"switch",
"min",
"width",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";"
]
|
[
"get",
"the",
"minimum",
"width",
"of",
"the",
"switch",
"in",
"pixels",
"the",
"switch",
"s",
"width",
"will",
"be",
"the",
"maximum",
"of",
"this",
"value",
"and",
"its",
"measured",
"width",
"as",
"determined",
"by",
"the",
"switch",
"drawables",
"and",
"text",
"used"
]
| [
"return",
"m",
"switch",
"min",
"width",
";"
]
|
[
"set",
"the",
"horizontal",
"padding",
"around",
"the",
"text",
"drawn",
"on",
"the",
"switch",
"itself"
]
| [
"m",
"thumb",
"text",
"padding",
"=",
"pixels",
";",
"request",
"layout",
"(",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.