docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"the",
"cors",
"policy",
"to",
"apply",
"to",
"the",
"container",
"<",
"/",
"p",
">"
]
| [
"set",
"cors",
"policy",
"(",
"cors",
"policy",
")",
";",
"return",
"this",
";"
]
|
[
"toggles",
"the",
"selected",
"state",
"for",
"the",
"given",
"item"
]
| [
"if",
"(",
"m",
"selected",
"items",
"contains",
"(",
"item",
")",
")",
"m",
"selected",
"items",
"remove",
"(",
"item",
")",
";",
"else",
"m",
"selected",
"items",
"add",
"(",
"item",
")",
";",
"notify",
"observers",
"(",
")",
";",
"return",
"is",
"item",
"selected",
"(",
"item",
")",
";"
]
|
[
"true",
"if",
"the",
"item",
"is",
"selected",
"false",
"otherwise"
]
| [
"return",
"m",
"selected",
"items",
"contains",
"(",
"item",
")",
";"
]
|
[
"clears",
"all",
"selected",
"items"
]
| [
"m",
"selected",
"items",
"clear",
"(",
")",
";",
"notify",
"observers",
"(",
")",
";"
]
|
[
"adds",
"a",
"selection",
"observer",
"to",
"be",
"notified",
"of",
"selection",
"changes"
]
| [
"m",
"observers",
"add",
"observer",
"(",
"observer",
")",
";"
]
|
[
"removes",
"a",
"selection",
"observer"
]
| [
"m",
"observers",
"remove",
"observer",
"(",
"observer",
")",
";"
]
|
[
"{"
]
| [
"return",
"true",
";"
]
|
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
]
| [
"s",
"type",
"(",
"s",
"type",
")",
";",
"p",
"next",
"(",
"p",
"next",
")",
";",
"return",
"this",
";"
]
|
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
]
| [
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"address",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"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",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"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",
"external",
"buffer",
"properties",
"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",
"external",
"buffer",
"properties",
"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",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
]
| [
"return",
"wrap",
"(",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"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",
"external",
"buffer",
"properties",
"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",
"external",
"buffer",
"properties",
"k",
"h",
"r",
"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",
")",
";"
]
|
[
"<",
"p",
">",
"identifier",
"of",
"the",
"directory",
"where",
"the",
"domain",
"controller",
"resides",
"<",
"/",
"p",
">"
]
| [
"set",
"directory",
"id",
"(",
"directory",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"identifies",
"a",
"specific",
"domain",
"controller",
"in",
"the",
"directory",
"<",
"/",
"p",
">"
]
| [
"this",
"domain",
"controller",
"id",
"=",
"domain",
"controller",
"id",
";"
]
|
[
"<",
"p",
">",
"identifies",
"a",
"specific",
"domain",
"controller",
"in",
"the",
"directory",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"domain",
"controller",
"id",
";"
]
|
[
"<",
"p",
">",
"identifies",
"a",
"specific",
"domain",
"controller",
"in",
"the",
"directory",
"<",
"/",
"p",
">"
]
| [
"set",
"domain",
"controller",
"id",
"(",
"domain",
"controller",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"ip",
"address",
"of",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"this",
"dns",
"ip",
"addr",
"=",
"dns",
"ip",
"addr",
";"
]
|
[
"<",
"p",
">",
"the",
"ip",
"address",
"of",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"dns",
"ip",
"addr",
";"
]
|
[
"<",
"p",
">",
"the",
"ip",
"address",
"of",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"set",
"dns",
"ip",
"addr",
"(",
"dns",
"ip",
"addr",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"identifier",
"of",
"the",
"vpc",
"that",
"contains",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"set",
"vpc",
"id",
"(",
"vpc",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"identifier",
"of",
"the",
"subnet",
"in",
"the",
"vpc",
"that",
"contains",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"set",
"subnet",
"id",
"(",
"subnet",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"availability",
"zone",
"where",
"the",
"domain",
"controller",
"is",
"located",
"<",
"/",
"p",
">"
]
| [
"set",
"availability",
"zone",
"(",
"availability",
"zone",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"set",
"status",
"(",
"status",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"with",
"status",
"(",
"status",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"domain",
"controller",
"<",
"/",
"p",
">"
]
| [
"this",
"status",
"=",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"description",
"of",
"the",
"domain",
"controller",
"state",
"<",
"/",
"p",
">"
]
| [
"set",
"status",
"reason",
"(",
"status",
"reason",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"specifies",
"when",
"the",
"domain",
"controller",
"was",
"created",
"<",
"/",
"p",
">"
]
| [
"set",
"launch",
"time",
"(",
"launch",
"time",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"date",
"and",
"time",
"that",
"the",
"status",
"was",
"last",
"updated",
"<",
"/",
"p",
">"
]
| [
"this",
"status",
"last",
"updated",
"date",
"time",
"=",
"status",
"last",
"updated",
"date",
"time",
";"
]
|
[
"<",
"p",
">",
"the",
"date",
"and",
"time",
"that",
"the",
"status",
"was",
"last",
"updated",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"status",
"last",
"updated",
"date",
"time",
";"
]
|
[
"<",
"p",
">",
"the",
"date",
"and",
"time",
"that",
"the",
"status",
"was",
"last",
"updated",
"<",
"/",
"p",
">"
]
| [
"set",
"status",
"last",
"updated",
"date",
"time",
"(",
"status",
"last",
"updated",
"date",
"time",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"availability",
"zone",
"where",
"the",
"virtual",
"private",
"gateway",
"was",
"created",
"if",
"applicable",
"this",
"field",
"may",
"be",
"empty",
"or",
"not",
"returned",
"<",
"/",
"p",
">"
]
| [
"set",
"availability",
"zone",
"(",
"availability",
"zone",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"current",
"state",
"of",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"set",
"state",
"(",
"state",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"current",
"state",
"of",
"the",
"vpn",
"connection",
"<",
"/",
"p",
">"
]
| [
"with",
"state",
"(",
"state",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"current",
"state",
"of",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"this",
"state",
"=",
"state",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"type",
"of",
"vpn",
"connection",
"the",
"virtual",
"private",
"gateway",
"supports",
"<",
"/",
"p",
">"
]
| [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"type",
"of",
"vpn",
"connection",
"the",
"virtual",
"private",
"gateway",
"supports",
"<",
"/",
"p",
">"
]
| [
"this",
"type",
"=",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"any",
"v",
"p",
"cs",
"attached",
"to",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"vpc",
"attachments",
"=",
"=",
"null",
")",
"{",
"vpc",
"attachments",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"vpc",
"attachment",
">",
"(",
")",
";",
"}",
"return",
"vpc",
"attachments",
";"
]
|
[
"<",
"p",
">",
"any",
"v",
"p",
"cs",
"attached",
"to",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"vpc",
"attachments",
"=",
"=",
"null",
")",
"{",
"this",
"vpc",
"attachments",
"=",
"null",
";",
"return",
";",
"}",
"this",
"vpc",
"attachments",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"vpc",
"attachment",
">",
"(",
"vpc",
"attachments",
")",
";"
]
|
[
"<",
"p",
">",
"any",
"v",
"p",
"cs",
"attached",
"to",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"vpc",
"attachments",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"vpc",
"attachments",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"vpc",
"attachments",
"=",
"=",
"null",
")",
"{",
"set",
"vpc",
"attachments",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"vpc",
"attachment",
">",
"(",
"vpc",
"attachments",
"length",
")",
")",
";",
"}",
"for",
"(",
"vpc",
"attachment",
"ele",
":",
"vpc",
"attachments",
")",
"{",
"this",
"vpc",
"attachments",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"any",
"v",
"p",
"cs",
"attached",
"to",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"set",
"vpc",
"attachments",
"(",
"vpc",
"attachments",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"set",
"vpn",
"gateway",
"id",
"(",
"vpn",
"gateway",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"private",
"autonomous",
"system",
"number",
"(",
"asn",
")",
"for",
"the",
"amazon",
"side",
"of",
"a",
"bgp",
"session",
"<",
"/",
"p",
">"
]
| [
"set",
"amazon",
"side",
"asn",
"(",
"amazon",
"side",
"asn",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"any",
"tags",
"assigned",
"to",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"tags",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"tags",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"tags",
"=",
"=",
"null",
")",
"{",
"set",
"tags",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"tag",
">",
"(",
"tags",
"length",
")",
")",
";",
"}",
"for",
"(",
"tag",
"ele",
":",
"tags",
")",
"{",
"this",
"tags",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"any",
"tags",
"assigned",
"to",
"the",
"virtual",
"private",
"gateway",
"<",
"/",
"p",
">"
]
| [
"set",
"tags",
"(",
"tags",
")",
";",
"return",
"this",
";"
]
|
[
"verify",
"that",
"the",
"given",
"calling",
"package",
"is",
"belong",
"to",
"the",
"calling",
"uid"
]
| [
"m",
"injector",
"get",
"app",
"ops",
"manager",
"(",
")",
"check",
"package",
"(",
"m",
"injector",
"get",
"calling",
"uid",
"(",
")",
",",
"calling",
"package",
")",
";"
]
|
[
"resets",
"quick",
"action",
"data"
]
| [
"m",
"quick",
"action",
"uri",
"=",
"\"",
"\"",
";",
"m",
"quick",
"action",
"category",
"=",
"quick",
"action",
"category",
"none",
";",
"m",
"has",
"quick",
"action",
"=",
"false",
";",
"m",
"intent",
"=",
"null",
";",
"m",
"caption",
"=",
"\"",
"\"",
";"
]
|
[
"<",
"p",
">",
"the",
"identifier",
"of",
"the",
"directory",
"snapshot",
"that",
"was",
"deleted",
"<",
"/",
"p",
">"
]
| [
"set",
"snapshot",
"id",
"(",
"snapshot",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"a",
"string",
"representation",
"of",
"the",
"value",
"even",
"if",
"it",
"s",
"null"
]
| [
"return",
"value",
"=",
"=",
"null",
"?",
"\"",
"\"",
":",
"value",
"to",
"string",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"the",
"default",
"value",
"is",
"{",
"@",
"code",
"null",
"}"
]
| [
"return",
"default",
"value",
"=",
"=",
"null",
";"
]
|
[
"parse",
"a",
"string",
"and",
"returns",
"an",
"instance",
"of",
"a",
"value"
]
| [
"protected",
"abstract",
"t",
"create",
"from",
"(",
"string",
"to",
"parse",
")",
";"
]
|
[
"returns",
"the",
"value",
"at",
"the",
"specified",
"index",
"of",
"the",
"{"
]
| [
"return",
"nv",
"(",
"address",
"(",
")",
",",
"index",
")",
";"
]
|
[
"sets",
"the",
"specified",
"value",
"at",
"the",
"specified",
"index",
"of",
"the",
"{"
]
| [
"nv",
"(",
"address",
"(",
")",
",",
"index",
",",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
]
| [
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
]
|
[
"returns",
"a",
"new",
"{"
]
| [
"return",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"address",
")",
";"
]
|
[
"like",
"{"
]
| [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"address",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"hmd",
"vector",
"3d",
"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",
"hmd",
"vector",
"3d",
"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",
"hmd",
"vector",
"3d",
"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",
"hmd",
"vector",
"3d",
"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",
"hmd",
"vector",
"3d",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"hmd",
"vector",
"3d",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
]
| [
"return",
"wrap",
"(",
"hmd",
"vector",
"3d",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"hmd",
"vector",
"3d",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"hmd",
"vector",
"3d",
"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",
"hmd",
"vector",
"3d",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
]
| [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
]
|
[
"returns",
"a",
"new",
"{",
"@",
"link",
"hmd",
"vector",
"3d",
"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",
"mem",
"double",
"buffer",
"(",
"struct",
"+",
"hmd",
"vector",
"3d",
"v",
",",
"3",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"return",
"unsafe",
"get",
"double",
"(",
"null",
",",
"struct",
"+",
"hmd",
"vector",
"3d",
"v",
"+",
"check",
"(",
"index",
",",
"3",
")",
"*",
"8",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"if",
"(",
"checks",
")",
"{",
"check",
"g",
"t",
"(",
"value",
",",
"3",
")",
";",
"}",
"mem",
"copy",
"(",
"mem",
"address",
"(",
"value",
")",
",",
"struct",
"+",
"hmd",
"vector",
"3d",
"v",
",",
"value",
"remaining",
"(",
")",
"*",
"8",
")",
";"
]
|
[
"unsafe",
"version",
"of",
"{"
]
| [
"unsafe",
"put",
"double",
"(",
"null",
",",
"struct",
"+",
"hmd",
"vector",
"3d",
"v",
"+",
"check",
"(",
"index",
",",
"3",
")",
"*",
"8",
",",
"value",
")",
";"
]
|
[
"returns",
"the",
"value",
"at",
"the",
"specified",
"index",
"of",
"the",
"{"
]
| [
"return",
"hmd",
"vector",
"3d",
"nv",
"(",
"address",
"(",
")",
",",
"index",
")",
";"
]
|
[
"sets",
"the",
"specified",
"value",
"at",
"the",
"specified",
"index",
"of",
"the",
"{"
]
| [
"hmd",
"vector",
"3d",
"nv",
"(",
"address",
"(",
")",
",",
"index",
",",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"{"
]
| [
"super",
"after",
"test",
"(",
")",
";",
"stop",
"all",
"grids",
"(",
")",
";",
"clean",
"persistence",
"dir",
"(",
")",
";",
"persistence",
"=",
"false",
";"
]
|
[
"if",
"true",
"any",
"final",
"offset",
"gaps",
"will",
"result",
"in",
"adding",
"a",
"position",
"hole"
]
| [
"this",
"final",
"offset",
"gap",
"as",
"hole",
"=",
"final",
"offset",
"gap",
"as",
"hole",
";"
]
|
[
"whether",
"to",
"make",
"transition",
"labels",
"unicode",
"code",
"points",
"instead",
"of",
"utf8",
"bytes",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"by",
"default"
]
| [
"this",
"unicode",
"arcs",
"=",
"unicode",
"arcs",
";"
]
|
[
"subclass",
"and",
"implement",
"this",
"if",
"you",
"need",
"to",
"change",
"the",
"token",
"(",
"such",
"as",
"escaping",
"certain",
"bytes",
")",
"before",
"it",
"s",
"turned",
"into",
"a",
"graph"
]
| [
"return",
"in",
";"
]
|
[
"/",
"*",
"private",
"static",
"void",
"to",
"dot",
"(",
"automaton",
"a",
")",
"throws",
"i",
"o",
"exception",
"{",
"final",
"string",
"s",
"=",
"a",
"to",
"dot",
"(",
")",
";",
"writer",
"w",
"=",
"new",
"output",
"stream",
"writer",
"(",
"new",
"file",
"output",
"stream",
"(",
"/",
"tmp",
"/",
"out",
"dot",
")",
")",
";",
"w",
"write",
"(",
"s",
")",
";",
"w",
"close",
"(",
")",
";",
"system",
"out",
"println",
"(",
"test",
":",
"saved",
"to",
"/",
"tmp",
"/",
"out",
"dot",
")",
";",
"}"
]
| [
"position",
"pos",
"data",
"=",
"positions",
"get",
"(",
"pos",
")",
";",
"position",
"prev",
"pos",
"data",
"=",
"positions",
"get",
"(",
"pos",
"-",
"1",
")",
";",
"while",
"(",
"pos",
"data",
"arriving",
"=",
"=",
"-",
"1",
"|",
"|",
"prev",
"pos",
"data",
"leaving",
"=",
"=",
"-",
"1",
")",
"{",
"if",
"(",
"pos",
"data",
"arriving",
"=",
"=",
"-",
"1",
")",
"{",
"pos",
"data",
"arriving",
"=",
"builder",
"create",
"state",
"(",
")",
";",
"builder",
"add",
"transition",
"(",
"pos",
"data",
"arriving",
",",
"pos",
"data",
"leaving",
",",
"pos",
"sep",
")",
";",
"}",
"if",
"(",
"prev",
"pos",
"data",
"leaving",
"=",
"=",
"-",
"1",
")",
"{",
"if",
"(",
"pos",
"=",
"=",
"1",
")",
"{",
"prev",
"pos",
"data",
"leaving",
"=",
"0",
";",
"}",
"else",
"{",
"prev",
"pos",
"data",
"leaving",
"=",
"builder",
"create",
"state",
"(",
")",
";",
"}",
"if",
"(",
"prev",
"pos",
"data",
"arriving",
"!",
"=",
"-",
"1",
")",
"{",
"builder",
"add",
"transition",
"(",
"prev",
"pos",
"data",
"arriving",
",",
"prev",
"pos",
"data",
"leaving",
",",
"pos",
"sep",
")",
";",
"}",
"}",
"builder",
"add",
"transition",
"(",
"prev",
"pos",
"data",
"leaving",
",",
"pos",
"data",
"arriving",
",",
"hole",
")",
";",
"pos",
"-",
"-",
";",
"if",
"(",
"pos",
"<",
"=",
"0",
")",
"{",
"break",
";",
"}",
"pos",
"data",
"=",
"prev",
"pos",
"data",
";",
"prev",
"pos",
"data",
"=",
"positions",
"get",
"(",
"pos",
"-",
"1",
")",
";",
"}"
]
|
[
"are",
"the",
"native",
"lz",
"4",
"libraries",
"loaded",
"&",
"initialized",
"?"
]
| [
"return",
"native",
"code",
"loader",
"is",
"native",
"code",
"loaded",
"(",
")",
";"
]
|
[
"shortcut",
"methods",
"for",
"given",
"annotation",
"class"
]
| [
"return",
"new",
"annotation",
"parser",
"(",
"annotation",
"class",
",",
"json",
"class",
")",
";"
]
|
[
"shortcut",
"for",
"checking",
"the",
"annotation",
"on",
"annotated",
"element",
"and",
"returning",
"either",
"the",
"values",
"or",
"{"
]
| [
"if",
"(",
"!",
"annotation",
"parser",
"has",
"annotation",
"on",
"(",
"annotated",
"element",
")",
")",
"{",
"return",
"null",
";",
"}",
"return",
"new",
"j",
"s",
"o",
"n",
"annotation",
"values",
"(",
"annotation",
"parser",
"of",
"(",
"annotated",
"element",
")",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.