docstring_tokens list | code_tokens list |
|---|---|
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
] | [
"s",
"type",
"(",
"s",
"type",
")",
";",
"p",
"next",
"(",
"p",
"next",
")",
";",
"p",
"attributes",
"(",
"p",
"attributes",
")",
";",
"dw",
"access",
"(",
"dw",
"access",
")",
";",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
] | [
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"mem",
"address",
"(",
"cont... |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"alloc",
"mem",
"alloc",
"}",
"the... | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"check",
"malloc",
"(",
"capacity",
",",
"sizeof",
")",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"with",
"{",
"@",
"link",
"memory",
"util",
"#",
"mem",
"calloc",
"mem",
"calloc",
"}",
"t... | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"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",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"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",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its"... | [
"return",
"wrap",
"(",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"ini... | [
"return",
"calloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"a... | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"capacity",
",",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"stype",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"pnext",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"security",
"attributes",
"create",
"safe",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"pattributes",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"dwaccess",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"byte",
"buffer",
"n",
"t",
"2",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"name",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"mem",
"u",
"t",
"f",
"1",
"6",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"name",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"stype",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"pnext",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"pattributes",
",",
"mem",
"address",
"safe",
"(",
"value",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"dwaccess",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"if",
"(",
"checks",
")",
"{",
"check",
"n",
"t",
"2",
"(",
"value",
")",
";",
"}",
"mem",
"put",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"name",
",",
"mem",
"address",
"(",
... |
[
"validates",
"pointer",
"members",
"that",
"should",
"not",
"be",
"{",
"@",
"code",
"null",
"}"
] | [
"long",
"p",
"attributes",
"=",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"export",
"semaphore",
"win",
"3",
"2",
"handle",
"info",
"k",
"h",
"r",
"pattributes",
")",
";",
"if",
"(",
"p",
"attributes",
"!",
"=",
"null",
")",
"{",
"security",... |
[
"{"
] | [
"if",
"(",
"optional",
"class",
"equals",
"(",
"raw",
"type",
")",
")",
"{",
"final",
"list",
"<",
"class",
"type",
"pair",
">",
"ctps",
"=",
"reflection",
"helper",
"get",
"type",
"argument",
"and",
"class",
"(",
"generic",
"type",
")",
";",
"final",
... |
[
"adds",
"an",
"object",
"or",
"objects",
"to",
"a",
"list"
] | [
"if",
"(",
"value",
"instanceof",
"list",
")",
"{",
"list",
"add",
"all",
"(",
"(",
"list",
")",
"value",
")",
";",
"}",
"else",
"{",
"list",
"add",
"(",
"value",
")",
";",
"}"
] |
[
"mean",
"error",
"more",
"sensitive",
"to",
"anomalies",
"in",
"data"
] | [
"data",
"put",
"(",
"new",
"double",
"[",
"]",
"{",
"10",
",",
"11",
"}",
",",
"100000",
"0",
")",
";",
"local",
"dataset",
"builder",
"<",
"double",
"[",
"]",
",",
"double",
">",
"dataset",
"builder",
"=",
"new",
"local",
"dataset",
"builder",
"<"... |
[
"an",
"object",
"representing",
"an",
"{"
] | [
"return",
"of",
"(",
"annotation",
"type",
",",
"immutable",
"map",
"of",
"(",
")",
")",
";"
] |
[
"an",
"object",
"representing",
"an",
"{"
] | [
"return",
"new",
"simple",
"annotation",
"mirror",
"(",
"annotation",
"type",
",",
"named",
"values",
")",
";"
] |
[
"{"
] | [] |
[
"{"
] | [
"super",
"before",
"tests",
"started",
"(",
")",
";",
"client",
"=",
"true",
";",
"start",
"grid",
"(",
"srvs",
")",
";"
] |
[
"gets",
"the",
"element",
"at",
"the",
"given",
"index",
"it",
"is",
"an",
"error",
"to",
"call",
"this",
"with",
"the",
"index",
"for",
"an",
"element",
"which",
"was",
"never",
"set",
";",
"if",
"you",
"do",
"that",
"this",
"will",
"throw",
"{",
"@... | [
"return",
"(",
"basic",
"block",
")",
"get",
"0",
"(",
"n",
")",
";"
] |
[
"returns",
"how",
"many",
"registers",
"this",
"method",
"requires",
"this",
"is",
"simply",
"the",
"maximum",
"of",
"register",
"-",
"number",
"-",
"plus",
"-",
"category",
"referred",
"to",
"by",
"this",
"instance",
"s",
"instructions",
"(",
"indirectly",
... | [
"if",
"(",
"reg",
"count",
"=",
"=",
"-",
"1",
")",
"{",
"reg",
"count",
"visitor",
"visitor",
"=",
"new",
"reg",
"count",
"visitor",
"(",
")",
";",
"for",
"each",
"insn",
"(",
"visitor",
")",
";",
"reg",
"count",
"=",
"visitor",
"get",
"reg",
"c... |
[
"gets",
"the",
"total",
"instruction",
"count",
"for",
"this",
"instance",
"this",
"is",
"the",
"sum",
"of",
"the",
"instruction",
"counts",
"of",
"each",
"block"
] | [
"int",
"sz",
"=",
"size",
"(",
")",
";",
"int",
"result",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"basic",
"block",
"one",
"=",
"(",
"basic",
"block",
")",
"get",
"or",
"null",
"... |
[
"gets",
"the",
"total",
"instruction",
"count",
"for",
"this",
"instance",
"ignoring",
"mark",
"-",
"local",
"instructions",
"which",
"are",
"not",
"actually",
"emitted"
] | [
"int",
"sz",
"=",
"size",
"(",
")",
";",
"int",
"result",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"basic",
"block",
"one",
"=",
"(",
"basic",
"block",
")",
"get",
"or",
"null",
"... |
[
"visits",
"each",
"instruction",
"of",
"each",
"block",
"in",
"the",
"list",
"in",
"order"
] | [
"int",
"sz",
"=",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"basic",
"block",
"one",
"=",
"get",
"(",
"i",
")",
";",
"insn",
"list",
"insns",
"=",
"one",
"get",
"insns",
"(... |
[
"returns",
"an",
"instance",
"that",
"is",
"identical",
"to",
"this",
"one",
"except",
"that",
"the",
"registers",
"in",
"each",
"instruction",
"are",
"offset",
"by",
"the",
"given",
"amount",
"mutability",
"of",
"the",
"result",
"is",
"inherited",
"from",
"... | [
"int",
"sz",
"=",
"size",
"(",
")",
";",
"basic",
"block",
"list",
"result",
"=",
"new",
"basic",
"block",
"list",
"(",
"sz",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sz",
";",
"i",
"+",
"+",
")",
"{",
"basic",
"block",
"... |
[
"returns",
"a",
"mutable",
"copy",
"of",
"this",
"list"
] | [
"return",
"new",
"basic",
"block",
"list",
"(",
"this",
")",
";"
] |
[
"gets",
"the",
"preferred",
"successor",
"for",
"the",
"given",
"block",
"if",
"the",
"block",
"only",
"has",
"one",
"successor",
"then",
"that",
"is",
"the",
"preferred",
"successor",
"otherwise",
"if",
"the",
"block",
"has",
"a",
"primay",
"successor",
"th... | [
"int",
"primary",
"successor",
"=",
"block",
"get",
"primary",
"successor",
"(",
")",
";",
"int",
"list",
"successors",
"=",
"block",
"get",
"successors",
"(",
")",
";",
"int",
"succ",
"size",
"=",
"successors",
"size",
"(",
")",
";",
"switch",
"(",
"s... |
[
"gets",
"the",
"register",
"count"
] | [
"return",
"reg",
"count",
";"
] |
[
"{"
] | [
"visit",
"(",
"insn",
")",
";"
] |
[
"{"
] | [
"visit",
"(",
"insn",
")",
";"
] |
[
"{"
] | [
"visit",
"(",
"insn",
")",
";"
] |
[
"{"
] | [
"visit",
"(",
"insn",
")",
";"
] |
[
"{"
] | [
"visit",
"(",
"insn",
")",
";"
] |
[
"{"
] | [
"visit",
"(",
"insn",
")",
";"
] |
[
"helper",
"for",
"all",
"the",
"{",
"@",
"code",
"visit",
"*",
"}",
"methods"
] | [
"register",
"spec",
"result",
"=",
"insn",
"get",
"result",
"(",
")",
";",
"if",
"(",
"result",
"!",
"=",
"null",
")",
"{",
"process",
"reg",
"(",
"result",
")",
";",
"}",
"register",
"spec",
"list",
"sources",
"=",
"insn",
"get",
"sources",
"(",
"... |
[
"processes",
"the",
"given",
"register",
"spec"
] | [
"int",
"reg",
"=",
"spec",
"get",
"next",
"reg",
"(",
")",
";",
"if",
"(",
"reg",
">",
"reg",
"count",
")",
"{",
"reg",
"count",
"=",
"reg",
";",
"}"
] |
[
"inform",
"this",
"container",
"that",
"the",
"server",
"has",
"been",
"started"
] | [
"this",
"app",
"handler",
"on",
"startup",
"(",
"this",
")",
";"
] |
[
"inform",
"this",
"container",
"that",
"the",
"server",
"is",
"being",
"stopped"
] | [
"this",
"app",
"handler",
"on",
"shutdown",
"(",
"this",
")",
";"
] |
[
"commits",
"the",
"response",
"and",
"logs",
"a",
"warning",
"message"
] | [
"if",
"(",
"closed",
"compare",
"and",
"set",
"(",
"false",
",",
"true",
")",
")",
"{",
"exchange",
"close",
"(",
")",
";",
"logger",
"log",
"(",
"level",
"warning",
",",
"localization",
"messages",
"error",
"responsewriter",
"response",
"uncommited",
"(",... |
[
"a",
"convenience",
"method",
"to",
"inflate",
"and",
"initialize",
"a",
"signin",
"and",
"sync",
"view"
] | [
"signin",
"and",
"sync",
"view",
"signin",
"view",
"=",
"(",
"signin",
"and",
"sync",
"view",
")",
"layout",
"inflater",
"from",
"(",
"parent",
"get",
"context",
"(",
")",
")",
"inflate",
"(",
"r",
"layout",
"signin",
"and",
"sync",
"view",
",",
"paren... |
[
"sign",
"in",
"state",
"observer",
"implementation",
":"
] | [
"update",
"(",
")",
";"
] |
[
"android",
"sync",
"settings",
"android",
"sync",
"settings",
"observer"
] | [
"update",
"(",
")",
";"
] |
[
"add",
"a",
"filter",
"instance"
] | [
"return",
"add",
"filter",
"(",
"name",
",",
"new",
"filter",
"holder",
"(",
"require",
"non",
"null",
"(",
"filter",
")",
")",
")",
";"
] |
[
"add",
"a",
"filter",
"class"
] | [
"return",
"add",
"filter",
"(",
"name",
",",
"new",
"filter",
"holder",
"(",
"require",
"non",
"null",
"(",
"klass",
")",
")",
")",
";"
] |
[
"add",
"one",
"or",
"more",
"servlet",
"event",
"listeners"
] | [
"for",
"(",
"event",
"listener",
"listener",
":",
"listeners",
")",
"{",
"handler",
"add",
"event",
"listener",
"(",
"listener",
")",
";",
"}"
] |
[
"set",
"protected",
"targets"
] | [
"handler",
"set",
"protected",
"targets",
"(",
"arrays",
"copy",
"of",
"(",
"targets",
",",
"targets",
"length",
")",
")",
";"
] |
[
"sets",
"the",
"base",
"resource",
"for",
"this",
"context"
] | [
"handler",
"set",
"base",
"resource",
"(",
"base",
"resource",
")",
";"
] |
[
"sets",
"the",
"base",
"resources",
"for",
"this",
"context"
] | [
"handler",
"set",
"base",
"resource",
"(",
"new",
"resource",
"collection",
"(",
"base",
"resources",
")",
")",
";"
] |
[
"sets",
"the",
"base",
"resources",
"for",
"this",
"context"
] | [
"handler",
"set",
"base",
"resource",
"(",
"new",
"resource",
"collection",
"(",
"resources",
")",
")",
";"
] |
[
"sets",
"the",
"base",
"resource",
"for",
"this",
"context"
] | [
"handler",
"set",
"resource",
"base",
"(",
"resource",
"base",
")",
";"
] |
[
"set",
"an",
"initialization",
"parameter"
] | [
"handler",
"set",
"init",
"parameter",
"(",
"name",
",",
"value",
")",
";"
] |
[
"set",
"the",
"session",
"handler"
] | [
"handler",
"set",
"sessions",
"enabled",
"(",
"session",
"handler",
"!",
"=",
"null",
")",
";",
"handler",
"set",
"session",
"handler",
"(",
"session",
"handler",
")",
";"
] |
[
"set",
"the",
"security",
"handler"
] | [
"handler",
"set",
"security",
"enabled",
"(",
"security",
"handler",
"!",
"=",
"null",
")",
";",
"handler",
"set",
"security",
"handler",
"(",
"security",
"handler",
")",
";"
] |
[
"set",
"a",
"mime",
"mapping"
] | [
"handler",
"get",
"mime",
"types",
"(",
")",
"add",
"mime",
"mapping",
"(",
"extension",
",",
"type",
")",
";"
] |
[
"returns",
"true",
"if",
"there",
"s",
"an",
"instance",
"of",
"processing",
"already",
"running",
"will",
"not",
"return",
"true",
"unless",
"this",
"code",
"was",
"able",
"to",
"successfully",
"contact",
"the",
"already",
"running",
"instance",
"to",
"have",... | [
"return",
"preferences",
"get",
"(",
"server",
"port",
")",
"!",
"=",
"null",
"&",
"&",
"send",
"arguments",
"(",
"args",
")",
";"
] |
[
"get",
"the",
"local",
"clustering",
"coefficient",
"score",
"this",
"is",
"computed",
"as",
"the",
"number",
"of",
"edges",
"between",
"neighbors",
"equal",
"to",
"the",
"triangle",
"count",
"divided",
"by",
"the",
"number",
"of",
"potential",
"edges",
"betwe... | [
"long",
"degree",
"=",
"get",
"degree",
"(",
")",
"get",
"value",
"(",
")",
";",
"long",
"neighbor",
"pairs",
"=",
"degree",
"*",
"(",
"degree",
"-",
"1",
")",
";",
"return",
"(",
"neighbor",
"pairs",
"=",
"=",
"0",
")",
"?",
"double",
"na",
"n",... |
[
"reads",
"method",
"name",
"and",
"stores",
"it",
"in",
"local",
"variable",
"for",
"methods",
"that",
"return",
"<",
"code",
">",
"string",
"<",
"/",
"code",
">",
"returns",
"the",
"method",
"name",
"otherwise",
"returns",
"<",
"code",
">",
"null",
"<",... | [
"method",
"name",
"=",
"target",
"method",
"name",
"(",
")",
";",
"class",
"return",
"type",
"=",
"return",
"type",
"(",
")",
";",
"if",
"(",
"return",
"type",
"=",
"=",
"string",
"class",
")",
"{",
"return",
"proxy",
"target",
"return",
"value",
"("... |
[
"given",
"the",
"list",
"of",
"added",
"/",
"removed",
"servers",
"and",
"the",
"old",
"and",
"new",
"replica",
"group",
"configurations",
"compute",
"the",
"type",
"of",
"update",
"(",
"e",
"g",
"replace",
"server",
"add",
"servers",
"to",
"each",
"replic... | [
"boolean",
"same",
"num",
"instances",
"per",
"partition",
"=",
"old",
"num",
"instances",
"per",
"partition",
"=",
"=",
"target",
"num",
"instances",
"per",
"partition",
";",
"boolean",
"same",
"num",
"replica",
"group",
"=",
"old",
"num",
"replica",
"group... |
[
"rebalances",
"segments",
"and",
"updates",
"the",
"idealstate",
"in",
"helix"
] | [
"final",
"function",
"<",
"ideal",
"state",
",",
"ideal",
"state",
">",
"updater",
"function",
"=",
"new",
"function",
"<",
"ideal",
"state",
",",
"ideal",
"state",
">",
"(",
")",
"{",
"@",
"nullable",
"@",
"override",
"public",
"ideal",
"state",
"apply"... |
[
"build",
"the",
"mapping",
"of",
"servers",
"to",
"their",
"associated",
"segments",
"given",
"a",
"mapping",
"of",
"segments",
"to",
"their",
"associated",
"servers"
] | [
"map",
"<",
"string",
",",
"linked",
"list",
"<",
"string",
">",
">",
"server",
"to",
"segments",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"string",
"segment",
":",
"segment",
"to",
"server",
"mapping",
"key",
"set",
"(",
")"... |
[
"build",
"the",
"mapping",
"of",
"segments",
"to",
"their",
"associated",
"servers",
"given",
"a",
"mapping",
"of",
"servers",
"to",
"their",
"associated",
"segments"
] | [
"map",
"<",
"string",
",",
"map",
"<",
"string",
",",
"string",
">",
">",
"segments",
"to",
"server",
"mapping",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"linked",
"list",
"<",
"string",
... |
[
"returns",
"path",
"filter",
"that",
"passes",
"all",
"paths",
"through"
] | [
"return",
"arg",
"0",
"-",
">",
"true",
";"
] |
[
"returns",
"path",
"filter",
"that",
"passes",
"directories",
"through"
] | [
"return",
"path",
"-",
">",
"{",
"try",
"{",
"return",
"fs",
"get",
"file",
"status",
"(",
"path",
")",
"is",
"directory",
"(",
")",
";",
"}",
"catch",
"(",
"i",
"o",
"exception",
"ioe",
")",
"{",
"return",
"false",
";",
"}",
"}",
";"
] |
[
"turns",
"an",
"array",
"of",
"file",
"status",
"into",
"an",
"array",
"of",
"paths"
] | [
"if",
"(",
"stats",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"stats",
"length",
"=",
"=",
"0",
")",
"{",
"return",
"new",
"path",
"[",
"0",
"]",
";",
"}",
"path",
"[",
"]",
"res",
"=",
"new",
"path",
"[",
"stats",
... |
[
"requests",
"for",
"the",
"display",
"content",
"of",
"a",
"{",
"@",
"link",
"surface",
"view",
"}",
"to",
"be",
"copied",
"into",
"a",
"provided",
"{",
"@",
"link",
"bitmap",
"}"
] | [
"request",
"(",
"source",
"get",
"holder",
"(",
")",
"get",
"surface",
"(",
")",
",",
"dest",
",",
"listener",
",",
"listener",
"thread",
")",
";"
] |
[
"requests",
"for",
"the",
"display",
"content",
"of",
"a",
"{",
"@",
"link",
"surface",
"view",
"}",
"to",
"be",
"copied",
"into",
"a",
"provided",
"{",
"@",
"link",
"bitmap",
"}"
] | [
"request",
"(",
"source",
"get",
"holder",
"(",
")",
"get",
"surface",
"(",
")",
",",
"src",
"rect",
",",
"dest",
",",
"listener",
",",
"listener",
"thread",
")",
";"
] |
[
"requests",
"a",
"copy",
"of",
"the",
"pixels",
"from",
"a",
"{",
"@",
"link",
"surface",
"}",
"to",
"be",
"copied",
"into",
"a",
"provided",
"{",
"@",
"link",
"bitmap",
"}"
] | [
"request",
"(",
"source",
",",
"null",
",",
"dest",
",",
"listener",
",",
"listener",
"thread",
")",
";"
] |
[
"requests",
"a",
"copy",
"of",
"the",
"pixels",
"from",
"a",
"{",
"@",
"link",
"window",
"}",
"to",
"be",
"copied",
"into",
"a",
"provided",
"{",
"@",
"link",
"bitmap",
"}"
] | [
"request",
"(",
"source",
",",
"null",
",",
"dest",
",",
"listener",
",",
"listener",
"thread",
")",
";"
] |
[
"set",
"to",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"or",
"empty",
"set",
"to",
"remove",
"existing",
"tags"
] | [
"this",
"tags",
"=",
"tags",
";",
"this",
"change",
"tags",
"=",
"true",
";",
"return",
"this",
";"
] |
[
"set",
"to",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"or",
"blank",
"to",
"remove",
"existing",
"note"
] | [
"this",
"markdown",
"note",
"=",
"s",
"=",
"=",
"null",
"?",
"null",
":",
"string",
"utils",
"default",
"if",
"blank",
"(",
"s",
",",
"null",
")",
";",
"this",
"change",
"markdown",
"note",
"=",
"true",
";",
"return",
"this",
";"
] |
[
"parameters",
"to",
"be",
"updated",
"(",
"only",
"for",
"custom",
"rules",
")"
] | [
"check",
"custom",
"rule",
"(",
")",
";",
"this",
"parameters",
"clear",
"(",
")",
";",
"this",
"parameters",
"put",
"all",
"(",
"params",
")",
";",
"this",
"change",
"parameters",
"=",
"true",
";",
"return",
"this",
";"
] |
[
"use",
"to",
"update",
"a",
"rule",
"provided",
"by",
"a",
"plugin",
"(",
"name",
"description",
"severity",
"status",
"and",
"parameters",
"cannot",
"by",
"changed",
")"
] | [
"return",
"new",
"rule",
"update",
"(",
"rule",
"key",
",",
"plugin",
"rule",
")",
";"
] |
[
"use",
"to",
"update",
"a",
"custom",
"rule"
] | [
"return",
"new",
"rule",
"update",
"(",
"rule",
"key",
",",
"custom",
"rule",
")",
";"
] |
[
"convert",
"list",
"of",
"dbnames",
"into",
"list",
"of",
"hive",
"privilege",
"object"
] | [
"list",
"<",
"hive",
"privilege",
"object",
">",
"objs",
"=",
"new",
"array",
"list",
"<",
"hive",
"privilege",
"object",
">",
"(",
")",
";",
"for",
"(",
"string",
"dbname",
":",
"db",
"list",
")",
"{",
"objs",
"add",
"(",
"new",
"hive",
"privilege",... |
[
"/",
"*",
"causes",
"parse",
"failure"
] | [
"return",
"new",
"rectangle",
"2",
"d",
"double",
"(",
")",
";"
] |
[
"/",
"*",
"causes",
"parse",
"failure"
] | [
"return",
"new",
"rectangle",
"2",
"d",
"@",
"ann",
"double",
"(",
")",
";"
] |
[
"/",
"*",
"amazingly",
"does",
"not",
"cause",
"parse",
"failure"
] | [
"rectangle",
"2",
"d",
"@",
"ann",
"double",
"rect",
"=",
"null",
";",
"return",
"rect",
";"
] |
[
"gets",
"the",
"{",
"@",
"link",
"keyguard",
"update",
"monitor",
"callback",
"}",
"instance",
"associated",
"with",
"this",
"{",
"@",
"link",
"keyguard",
"indication",
"controller",
"}"
] | [
"if",
"(",
"m",
"update",
"monitor",
"callback",
"=",
"=",
"null",
")",
"{",
"m",
"update",
"monitor",
"callback",
"=",
"new",
"base",
"keyguard",
"callback",
"(",
")",
";",
"}",
"return",
"m",
"update",
"monitor",
"callback",
";"
] |
[
"sets",
"the",
"indication",
"that",
"is",
"shown",
"if",
"nothing",
"else",
"is",
"showing"
] | [
"m",
"resting",
"indication",
"=",
"resting",
"indication",
";",
"update",
"indication",
"(",
"false",
")",
";"
] |
[
"sets",
"the",
"active",
"controller",
"managing",
"changes",
"and",
"callbacks",
"to",
"user",
"information"
] | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.