docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"a",
"unique",
"identifier",
"for",
"this",
"webapp",
"activity",
"note",
":",
"do",
"not",
"call",
"this",
"function",
"when",
"you",
"need",
"{"
] |
[
"return",
"m",
"webapp",
"info",
"id",
"(",
")",
";"
] |
[
"get",
"the",
"active",
"directory",
"by",
"this",
"web",
"app"
] |
[
"return",
"m",
"directory",
"manager",
"get",
"webapp",
"directory",
"(",
"this",
",",
"get",
"activity",
"id",
"(",
")",
")",
";"
] |
[
"proxy",
"to",
"underlying",
"operation",
"to",
"string",
"(",
")"
] |
[
"return",
"op",
"to",
"string",
"(",
")",
";"
] |
[
"determine",
"whether",
"the",
"advisors",
"contain",
"matching",
"introductions"
] |
[
"for",
"(",
"advisor",
"advisor",
":",
"advisors",
")",
"{",
"if",
"(",
"advisor",
"instanceof",
"introduction",
"advisor",
")",
"{",
"introduction",
"advisor",
"ia",
"=",
"(",
"introduction",
"advisor",
")",
"advisor",
";",
"if",
"(",
"ia",
"get",
"class",
"filter",
"(",
")",
"matches",
"(",
"actual",
"class",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";"
] |
[
"this",
"is",
"a",
"reverse",
"comparator",
"positive",
"becomes",
"negative",
"negative",
"becomes",
"positive",
"and",
"0",
"(",
"equal",
")",
"stays",
"the",
"same",
"this",
"was",
"poorly",
"named",
"as",
"inverse",
"as",
"it",
"s",
"not",
"really",
"inverting",
"a",
"true",
"/",
"false",
"relationship"
] |
[
"return",
"new",
"comparator",
"<",
"t",
">",
"(",
")",
"{",
"@",
"override",
"public",
"int",
"compare",
"(",
"t",
"t",
",",
"t",
"t",
"1",
")",
"{",
"return",
"base",
"comp",
"compare",
"(",
"t",
"1",
",",
"t",
")",
";",
"}",
"}",
";"
] |
[
"use",
"guava",
"ordering",
"natural",
"(",
")",
"instead"
] |
[
"return",
"new",
"comparator",
"<",
"t",
">",
"(",
")",
"{",
"@",
"override",
"public",
"int",
"compare",
"(",
"t",
"t",
",",
"t",
"t",
"1",
")",
"{",
"return",
"t",
"compare",
"to",
"(",
"t",
"1",
")",
";",
"}",
"}",
";"
] |
[
"returns",
"{",
"@",
"link",
"opaque",
"options",
"data",
"}",
"suitable",
"for",
"passing",
"along",
"to",
"{",
"@",
"link",
"#",
"new",
"options",
"parser",
"(",
"opaque",
"options",
"data",
"options",
"data",
")",
"}"
] |
[
"return",
"get",
"options",
"data",
"internal",
"(",
"options",
"classes",
")",
";"
] |
[
"returns",
"the",
"{"
] |
[
"immutable",
"list",
"<",
"class",
"<",
"?",
"extends",
"options",
"base",
">",
">",
"immutable",
"options",
"classes",
"=",
"immutable",
"list",
"copy",
"of",
"(",
"options",
"classes",
")",
";",
"options",
"data",
"result",
"=",
"options",
"data",
"get",
"(",
"immutable",
"options",
"classes",
")",
";",
"if",
"(",
"result",
"=",
"=",
"null",
")",
"{",
"try",
"{",
"result",
"=",
"options",
"data",
"from",
"(",
"immutable",
"options",
"classes",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"throwables",
"throw",
"if",
"instance",
"of",
"(",
"e",
",",
"construction",
"exception",
"class",
")",
";",
"throw",
"new",
"construction",
"exception",
"(",
"e",
"get",
"message",
"(",
")",
",",
"e",
")",
";",
"}",
"options",
"data",
"put",
"(",
"immutable",
"options",
"classes",
",",
"result",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"the",
"{"
] |
[
"return",
"get",
"options",
"data",
"internal",
"(",
"immutable",
"list",
"of",
"(",
"options",
"class",
")",
")",
";"
] |
[
"create",
"a",
"new",
"{"
] |
[
"return",
"new",
"options",
"parser",
"(",
"get",
"options",
"data",
"internal",
"(",
"immutable",
"list",
"copy",
"of",
"(",
"options",
"classes",
")",
")",
")",
";"
] |
[
"create",
"a",
"new",
"{"
] |
[
"return",
"new",
"options",
"parser",
"(",
"(",
"options",
"data",
")",
"options",
"data",
")",
";"
] |
[
"indicates",
"whether",
"or",
"not",
"the",
"parser",
"will",
"allow",
"a",
"non",
"-",
"empty",
"residue",
";",
"that",
"is",
"iff",
"this",
"value",
"is",
"true",
"then",
"a",
"call",
"to",
"one",
"of",
"the",
"{"
] |
[
"this",
"allow",
"residue",
"=",
"allow",
"residue",
";"
] |
[
"indicates",
"whether",
"or",
"not",
"the",
"parser",
"will",
"allow",
"long",
"options",
"with",
"a",
"single",
"-",
"dash",
"instead",
"of",
"the",
"usual",
"double",
"-",
"dash",
"too",
"eg",
"-",
"example",
"instead",
"of",
"just",
"-",
"-",
"example"
] |
[
"this",
"impl",
"set",
"allow",
"single",
"dash",
"long",
"options",
"(",
"allow",
"single",
"dash",
"long",
"options",
")",
";"
] |
[
"enables",
"the",
"parser",
"to",
"handle",
"params",
"files",
"using",
"the",
"provided",
"{"
] |
[
"this",
"impl",
"set",
"args",
"pre",
"processor",
"(",
"pre",
"processor",
")",
";"
] |
[
"return",
"a",
"list",
"of",
"flags",
"that",
"this",
"option",
"expands",
"to"
] |
[
"return",
"evaluated",
"expansion",
";"
] |
[
"returns",
"a",
"string",
"listing",
"the",
"possible",
"flag",
"completion",
"for",
"this",
"command",
"along",
"with",
"the",
"command",
"completion",
"if",
"any",
"see",
"{"
] |
[
"string",
"builder",
"desc",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"visit",
"options",
"(",
"option",
"definition",
"-",
">",
"option",
"definition",
"get",
"documentation",
"category",
"(",
")",
"!",
"=",
"option",
"documentation",
"category",
"undocumented",
",",
"option",
"definition",
"-",
">",
"options",
"usage",
"get",
"completion",
"(",
"option",
"definition",
",",
"desc",
")",
")",
";",
"return",
"desc",
"to",
"string",
"(",
")",
";"
] |
[
"returns",
"a",
"description",
"of",
"the",
"option"
] |
[
"return",
"impl",
"get",
"option",
"description",
"(",
"name",
")",
";"
] |
[
"returns",
"the",
"parsed",
"options",
"that",
"get",
"expanded",
"from",
"this",
"option",
"whether",
"it",
"expands",
"due",
"to",
"an",
"implicit",
"requirement",
"or",
"expansion"
] |
[
"return",
"impl",
"get",
"expansion",
"value",
"descriptions",
"(",
"expansion",
"option",
",",
"origin",
"of",
"expansion",
"option",
")",
";"
] |
[
"returns",
"a",
"description",
"of",
"the",
"option",
"value",
"set",
"by",
"the",
"last",
"previous",
"call",
"to",
"{",
"@",
"link",
"#",
"parse",
"(",
"option",
"priority",
"priority",
"category",
"string",
"list",
")",
"}",
"that",
"successfully",
"set",
"the",
"given",
"option",
"if",
"the",
"option",
"is",
"of",
"type",
"{",
"@",
"link",
"list",
"}",
"the",
"description",
"will",
"correspond",
"to",
"any",
"one",
"of",
"the",
"calls",
"but",
"not",
"necessarily",
"the",
"last"
] |
[
"return",
"impl",
"get",
"option",
"value",
"description",
"(",
"name",
")",
";"
] |
[
"a",
"convenience",
"method",
"equivalent",
"to",
"{"
] |
[
"parse",
"(",
"option",
"priority",
"priority",
"category",
"command",
"line",
",",
"null",
",",
"arrays",
"as",
"list",
"(",
"args",
")",
")",
";"
] |
[
"a",
"convenience",
"method",
"equivalent",
"to",
"{"
] |
[
"parse",
"(",
"option",
"priority",
"priority",
"category",
"command",
"line",
",",
"null",
",",
"args",
")",
";"
] |
[
"parses",
"{",
"@",
"code",
"args",
"}",
"using",
"the",
"classes",
"registered",
"with",
"this",
"parser",
"at",
"the",
"given",
"priority"
] |
[
"parse",
"with",
"source",
"function",
"(",
"priority",
",",
"o",
"-",
">",
"source",
",",
"args",
")",
";"
] |
[
"clears",
"the",
"given",
"option"
] |
[
"return",
"impl",
"clear",
"value",
"(",
"option",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"warnings",
"about",
"problems",
"encountered",
"by",
"previous",
"parse",
"calls"
] |
[
"return",
"impl",
"get",
"warnings",
"(",
")",
";"
] |
[
"returns",
"all",
"options",
"fields",
"of",
"the",
"given",
"options",
"class",
"in",
"alphabetic",
"order"
] |
[
"return",
"options",
"data",
"get",
"all",
"option",
"definitions",
"for",
"class",
"(",
"options",
"class",
")",
";"
] |
[
"returns",
"whether",
"the",
"given",
"options",
"class",
"uses",
"only",
"the",
"core",
"types",
"listed",
"in",
"{"
] |
[
"options",
"data",
"data",
"=",
"options",
"parser",
"get",
"options",
"data",
"internal",
"(",
"options",
"class",
")",
";",
"return",
"data",
"get",
"uses",
"only",
"core",
"types",
"(",
"options",
"class",
")",
";"
] |
[
"{"
] |
[
"assert",
"results",
"!",
"=",
"null",
";",
"for",
"(",
"compute",
"job",
"result",
"res",
":",
"results",
")",
"{",
"if",
"(",
"res",
"get",
"data",
"(",
")",
"!",
"=",
"null",
"&",
"&",
"stealing",
"node",
"id",
"equals",
"(",
"res",
"get",
"data",
"(",
")",
")",
")",
"stolen",
"jobs",
"+",
"+",
";",
"}",
"return",
"stolen",
"jobs",
";"
] |
[
"get",
"the",
"name",
"of",
"the",
"class",
"for",
"main",
"method",
"implementation"
] |
[
"return",
"main",
"method",
"class",
"name",
";"
] |
[
"get",
"the",
"compiler",
"environment",
"the",
"compiler",
"uses"
] |
[
"return",
"compiler",
"env",
";"
] |
[
"get",
"the",
"class",
"that",
"the",
"generated",
"target",
"will",
"extend"
] |
[
"return",
"target",
"extends",
";"
] |
[
"set",
"the",
"class",
"that",
"the",
"generated",
"target",
"will",
"extend"
] |
[
"target",
"extends",
"=",
"extends",
"class",
";"
] |
[
"get",
"the",
"interfaces",
"that",
"the",
"generated",
"target",
"will",
"implement"
] |
[
"return",
"target",
"implements",
"=",
"=",
"null",
"?",
"null",
":",
"(",
"class",
"[",
"]",
")",
"target",
"implements",
"clone",
"(",
")",
";"
] |
[
"set",
"the",
"interfaces",
"that",
"the",
"generated",
"target",
"will",
"implement"
] |
[
"target",
"implements",
"=",
"implements",
"classes",
"=",
"=",
"null",
"?",
"null",
":",
"(",
"class",
"[",
"]",
")",
"implements",
"classes",
"clone",
"(",
")",
";"
] |
[
"build",
"class",
"name",
"for",
"a",
"auxiliary",
"class",
"generated",
"by",
"compiler",
"if",
"the",
"compiler",
"needs",
"to",
"generate",
"extra",
"classes",
"beyond",
"the",
"main",
"class",
"it",
"will",
"call",
"this",
"function",
"to",
"build",
"the",
"auxiliary",
"class",
"name",
"the",
"default",
"implementation",
"simply",
"appends",
"aux",
"marker",
"to",
"main",
"class",
"name",
"but",
"this",
"can",
"be",
"overridden"
] |
[
"return",
"main",
"class",
"name",
"+",
"aux",
"marker",
";"
] |
[
"set",
"the",
"render",
"offset",
"dirty",
"state",
"to",
"true",
"when",
"this",
"layer",
"or",
"any",
"parents",
"offset",
"has",
"changed",
"*"
] |
[
"render",
"offset",
"dirty",
"=",
"true",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] |
[
"return",
"this",
"variables",
"size",
"(",
")",
";"
] |
[
"{"
] |
[
"ignite",
"cache",
"<",
"long",
",",
"string",
">",
"cache",
"=",
"grid",
"0",
"cache",
"(",
"cache",
"name",
"(",
")",
")",
";",
"for",
"(",
"long",
"i",
"=",
"0",
";",
"i",
"<",
"100",
";",
"i",
"+",
"+",
")",
"cache",
"put",
"(",
"i",
",",
"\"",
"\"",
"+",
"i",
")",
";"
] |
[
"{"
] |
[
"double",
"ret",
";",
"if",
"(",
"x",
"<",
"0",
"|",
"|",
"x",
">",
"number",
"of",
"trials",
")",
"{",
"ret",
"=",
"0",
"0",
";",
"}",
"else",
"{",
"ret",
"=",
"fast",
"math",
"exp",
"(",
"saddle",
"point",
"expansion",
"log",
"binomial",
"probability",
"(",
"x",
",",
"number",
"of",
"trials",
",",
"probability",
"of",
"success",
",",
"1",
"0",
"-",
"probability",
"of",
"success",
")",
")",
";",
"}",
"return",
"ret",
";"
] |
[
"{"
] |
[
"double",
"ret",
";",
"if",
"(",
"x",
"<",
"0",
")",
"{",
"ret",
"=",
"0",
"0",
";",
"}",
"else",
"if",
"(",
"x",
">",
"=",
"number",
"of",
"trials",
")",
"{",
"ret",
"=",
"1",
"0",
";",
"}",
"else",
"{",
"ret",
"=",
"1",
"0",
"-",
"beta",
"regularized",
"beta",
"(",
"probability",
"of",
"success",
",",
"x",
"+",
"1",
"0",
",",
"number",
"of",
"trials",
"-",
"x",
")",
";",
"}",
"return",
"ret",
";"
] |
[
"{"
] |
[
"return",
"number",
"of",
"trials",
"*",
"probability",
"of",
"success",
";"
] |
[
"{"
] |
[
"final",
"double",
"p",
"=",
"probability",
"of",
"success",
";",
"return",
"number",
"of",
"trials",
"*",
"p",
"*",
"(",
"1",
"-",
"p",
")",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"<",
"p",
"/",
">",
"the",
"lower",
"bound",
"of",
"the",
"support",
"is",
"always",
"0",
"except",
"for",
"the",
"probability",
"parameter",
"{",
"@",
"code",
"p",
"=",
"1",
"}"
] |
[
"return",
"probability",
"of",
"success",
"<",
"1",
"0",
"?",
"0",
":",
"number",
"of",
"trials",
";"
] |
[
"{",
"@",
"inherit",
"doc",
"}",
"<",
"p",
"/",
">",
"the",
"upper",
"bound",
"of",
"the",
"support",
"is",
"the",
"number",
"of",
"trials",
"except",
"for",
"the",
"probability",
"parameter",
"{",
"@",
"code",
"p",
"=",
"0",
"}"
] |
[
"return",
"probability",
"of",
"success",
">",
"0",
"0",
"?",
"number",
"of",
"trials",
":",
"0",
";"
] |
[
"security",
"definitions"
] |
[
"this",
"security",
"definitions",
"=",
"security",
"definitions",
";"
] |
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
] |
[
"s",
"type",
"(",
"s",
"type",
")",
";",
"p",
"next",
"(",
"p",
"next",
")",
";",
"format",
"(",
"format",
")",
";",
"type",
"(",
"type",
")",
";",
"samples",
"(",
"samples",
")",
";",
"usage",
"(",
"usage",
")",
";",
"tiling",
"(",
"tiling",
")",
";",
"return",
"this",
";"
] |
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
] |
[
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] |
[
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"address",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"alloc",
"mem",
"alloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"check",
"malloc",
"(",
"capacity",
",",
"sizeof",
")",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"calloc",
"mem",
"calloc",
"}",
"the",
"instance",
"must",
"be",
"explicitly",
"freed"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"buffer",
"utils",
"}"
] |
[
"byte",
"buffer",
"container",
"=",
"create",
"(",
"capacity",
",",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"buffer",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"capacity",
",",
"container",
")",
";"
] |
[
"create",
"a",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"at",
"the",
"specified",
"memory"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"like",
"{"
] |
[
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"buffer",
"class",
",",
"address",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"malloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] |
[
"return",
"calloc",
"stack",
"(",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] |
[
"return",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] |
[
"return",
"wrap",
"(",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
] |
[
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] |
[
"return",
"calloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] |
[
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"stype",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"pnext",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"format",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"type",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"samples",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"usage",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"tiling",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"stype",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"mem",
"put",
"address",
"(",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"pnext",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"format",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"type",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"samples",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"usage",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] |
[
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"physical",
"device",
"sparse",
"image",
"format",
"info",
"2",
"tiling",
",",
"value",
")",
";"
] |
[
"visit",
"each",
"method",
"declaration"
] |
[
"if",
"(",
"node",
"is",
"interface",
"(",
")",
")",
"{",
"return",
"data",
";",
"}",
"map",
"<",
"method",
"name",
"declaration",
",",
"list",
"<",
"name",
"occurrence",
">",
">",
"methods",
"=",
"node",
"get",
"scope",
"(",
")",
"get",
"enclosing",
"scope",
"(",
"class",
"scope",
"class",
")",
"get",
"method",
"declarations",
"(",
")",
";",
"for",
"(",
"method",
"name",
"declaration",
"mnd",
":",
"find",
"unique",
"(",
"methods",
")",
")",
"{",
"list",
"<",
"name",
"occurrence",
">",
"occs",
"=",
"methods",
"get",
"(",
"mnd",
")",
";",
"if",
"(",
"!",
"private",
"and",
"not",
"excluded",
"(",
"mnd",
")",
"|",
"|",
"has",
"ignored",
"annotation",
"(",
"(",
"annotatable",
")",
"mnd",
"get",
"node",
"(",
")",
"jjt",
"get",
"parent",
"(",
")",
")",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"occs",
"is",
"empty",
"(",
")",
")",
"{",
"add",
"violation",
"(",
"data",
",",
"mnd",
"get",
"node",
"(",
")",
",",
"mnd",
"get",
"image",
"(",
")",
"+",
"mnd",
"get",
"parameter",
"display",
"signature",
"(",
")",
")",
";",
"}",
"else",
"{",
"if",
"(",
"called",
"from",
"outside",
"itself",
"(",
"occs",
",",
"mnd",
")",
")",
"{",
"add",
"violation",
"(",
"data",
",",
"mnd",
"get",
"node",
"(",
")",
",",
"mnd",
"get",
"image",
"(",
")",
"+",
"mnd",
"get",
"parameter",
"display",
"signature",
"(",
")",
")",
";",
"}",
"}",
"}",
"return",
"data",
";"
] |
[
"loading",
"bitmap",
"without",
"any",
"modifications"
] |
[
"return",
"load",
"bitmap",
"(",
"new",
"file",
"source",
"(",
"file",
"name",
")",
")",
";"
] |
[
"loading",
"bitmap",
"without",
"any",
"modifications"
] |
[
"return",
"load",
"bitmap",
"(",
"new",
"uri",
"source",
"(",
"uri",
",",
"context",
")",
")",
";"
] |
[
"loading",
"bitmap",
"without",
"any",
"modifications"
] |
[
"return",
"load",
"bitmap",
"(",
"new",
"memory",
"source",
"(",
"data",
")",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"scaling"
] |
[
"return",
"load",
"bitmap",
"(",
"new",
"file",
"source",
"(",
"file",
"name",
")",
",",
"scale",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"scaling"
] |
[
"return",
"load",
"bitmap",
"optimized",
"(",
"new",
"file",
"source",
"(",
"file",
"name",
")",
",",
"min",
"w",
",",
"min",
"h",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"optimized",
"loaded",
"size",
"less",
"than",
"1",
"4",
"mpx"
] |
[
"return",
"load",
"bitmap",
"optimized",
"(",
"uri",
",",
"context",
",",
"max",
"pixels",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"optimized",
"loaded",
"size",
"less",
"than",
"1",
"4",
"mpx"
] |
[
"return",
"load",
"bitmap",
"optimized",
"(",
"file",
"name",
",",
"max",
"pixels",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"optimized",
"loaded",
"size",
"less",
"than",
"2",
"2",
"mpx"
] |
[
"return",
"load",
"bitmap",
"optimized",
"(",
"file",
"name",
",",
"max",
"pixels",
"hq",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"optimized",
"loaded",
"size",
"less",
"than",
"specific",
"pixels",
"count"
] |
[
"return",
"load",
"bitmap",
"optimized",
"(",
"new",
"file",
"source",
"(",
"file",
"name",
")",
",",
"limit",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"optimized",
"loaded",
"size",
"less",
"than",
"specific",
"pixels",
"count"
] |
[
"return",
"load",
"bitmap",
"optimized",
"(",
"new",
"uri",
"source",
"(",
"uri",
",",
"context",
")",
"{",
"}",
",",
"limit",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"using",
"reuse",
"bitmap",
"with",
"the",
"same",
"size",
"of",
"source",
"image",
"if",
"it",
"is",
"unable",
"to",
"load",
"with",
"reuse",
"method",
"tries",
"to",
"load",
"without",
"it",
"reuse",
"works",
"only",
"in",
"3",
"0",
"+"
] |
[
"return",
"load",
"bitmap",
"reuse",
"exact",
"(",
"new",
"file",
"source",
"(",
"file",
"name",
")",
",",
"dest",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"using",
"reuse",
"bitmap",
"with",
"the",
"same",
"size",
"of",
"source",
"image",
"if",
"it",
"is",
"unable",
"to",
"load",
"with",
"reuse",
"method",
"tries",
"to",
"load",
"without",
"it",
"reuse",
"works",
"only",
"in",
"3",
"0",
"+"
] |
[
"return",
"load",
"bitmap",
"reuse",
"exact",
"(",
"new",
"memory",
"source",
"(",
"data",
")",
",",
"dest",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"using",
"reuse",
"bitmap",
"with",
"the",
"same",
"size",
"of",
"source",
"image",
"if",
"it",
"is",
"unable",
"to",
"load",
"with",
"reuse",
"method",
"tries",
"to",
"load",
"without",
"it",
"reuse",
"works",
"only",
"in",
"3",
"0",
"+"
] |
[
"return",
"load",
"bitmap",
"reuse",
"exact",
"(",
"new",
"uri",
"source",
"(",
"uri",
",",
"context",
")",
",",
"dest",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"using",
"reuse",
"bitmap",
"with",
"the",
"different",
"size",
"of",
"source",
"image",
"if",
"it",
"is",
"unable",
"to",
"load",
"with",
"reuse",
"method",
"tries",
"to",
"load",
"without",
"it",
"reuse",
"works",
"only",
"for",
"android",
"4",
"4",
"+"
] |
[
"return",
"load",
"bitmap",
"reuse",
"(",
"new",
"file",
"source",
"(",
"file",
"name",
")",
",",
"dest",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"using",
"reuse",
"bitmap",
"with",
"the",
"different",
"size",
"of",
"source",
"image",
"if",
"it",
"is",
"unable",
"to",
"load",
"with",
"reuse",
"method",
"tries",
"to",
"load",
"without",
"it",
"reuse",
"works",
"only",
"for",
"android",
"4",
"4",
"+"
] |
[
"return",
"load",
"bitmap",
"reuse",
"(",
"new",
"memory",
"source",
"(",
"data",
")",
",",
"dest",
")",
";"
] |
[
"loading",
"bitmap",
"with",
"using",
"reuse",
"bitmap",
"with",
"the",
"different",
"size",
"of",
"source",
"image",
"if",
"it",
"is",
"unable",
"to",
"load",
"with",
"reuse",
"method",
"tries",
"to",
"load",
"without",
"it",
"reuse",
"works",
"only",
"for",
"android",
"4",
"4",
"+"
] |
[
"return",
"load",
"bitmap",
"reuse",
"(",
"new",
"uri",
"source",
"(",
"uri",
",",
"context",
")",
",",
"dest",
")",
";"
] |
[
"saving",
"image",
"in",
"jpeg",
"to",
"byte",
"array",
"with",
"quality",
"80"
] |
[
"return",
"save",
"(",
"src",
",",
"bitmap",
"compress",
"format",
"jpeg",
",",
"jpeg",
"quality",
")",
";"
] |
[
"saving",
"image",
"in",
"jpeg",
"to",
"byte",
"array",
"with",
"better",
"quality",
"90"
] |
[
"return",
"save",
"(",
"src",
",",
"bitmap",
"compress",
"format",
"jpeg",
",",
"jpeg",
"quality",
"hq",
")",
";"
] |
[
"saving",
"image",
"in",
"jpeg",
"to",
"byte",
"array",
"with",
"specific",
"quality"
] |
[
"return",
"save",
"(",
"src",
",",
"bitmap",
"compress",
"format",
"jpeg",
",",
"quality",
")",
";"
] |
[
"saving",
"image",
"in",
"png",
"to",
"byte",
"array",
"with",
"specific",
"quality"
] |
[
"return",
"save",
"(",
"src",
",",
"bitmap",
"compress",
"format",
"png",
",",
"100",
")",
";"
] |
[
"saving",
"image",
"in",
"jpeg",
"to",
"file",
"with",
"quality",
"80"
] |
[
"save",
"jpeg",
"(",
"src",
",",
"file",
"name",
",",
"jpeg",
"quality",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.