docstring_tokens
list | code_tokens
list |
---|---|
[
"set",
"a",
"long",
"value",
"in",
"registry"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"set",
"long",
"value",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"name",
",",
"value",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"set",
"a",
"string",
"value",
"in",
"registry"
] |
[
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"value",
"=",
"\"",
"\"",
";",
"}",
"memory",
"data",
";",
"if",
"(",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"default",
"=",
"=",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"unicode",
")",
"{",
"data",
"=",
"new",
"memory",
"(",
"(",
"value",
"length",
"(",
")",
"+",
"1",
")",
"*",
"native",
"wchar",
"size",
")",
";",
"data",
"set",
"wide",
"string",
"(",
"0",
",",
"value",
")",
";",
"}",
"else",
"{",
"data",
"=",
"new",
"memory",
"(",
"(",
"value",
"length",
"(",
")",
"+",
"1",
")",
")",
";",
"data",
"set",
"string",
"(",
"0",
",",
"value",
")",
";",
"}",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"set",
"value",
"ex",
"(",
"h",
"key",
",",
"name",
",",
"0",
",",
"win",
"n",
"t",
"reg",
"sz",
",",
"data",
",",
"(",
"int",
")",
"data",
"size",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"set",
"a",
"string",
"value",
"in",
"registry"
] |
[
"registry",
"set",
"string",
"value",
"(",
"root",
",",
"key",
"path",
",",
"name",
",",
"value",
",",
"0",
")",
";"
] |
[
"set",
"a",
"string",
"value",
"in",
"registry"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"set",
"string",
"value",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"name",
",",
"value",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"set",
"an",
"expandable",
"string",
"value",
"in",
"registry"
] |
[
"memory",
"data",
";",
"if",
"(",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"default",
"=",
"=",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"unicode",
")",
"{",
"data",
"=",
"new",
"memory",
"(",
"(",
"value",
"length",
"(",
")",
"+",
"1",
")",
"*",
"native",
"wchar",
"size",
")",
";",
"data",
"set",
"wide",
"string",
"(",
"0",
",",
"value",
")",
";",
"}",
"else",
"{",
"data",
"=",
"new",
"memory",
"(",
"(",
"value",
"length",
"(",
")",
"+",
"1",
")",
")",
";",
"data",
"set",
"string",
"(",
"0",
",",
"value",
")",
";",
"}",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"set",
"value",
"ex",
"(",
"h",
"key",
",",
"name",
",",
"0",
",",
"win",
"n",
"t",
"reg",
"expand",
"sz",
",",
"data",
",",
"(",
"int",
")",
"data",
"size",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"set",
"a",
"string",
"value",
"in",
"registry"
] |
[
"registry",
"set",
"expandable",
"string",
"value",
"(",
"root",
",",
"key",
"path",
",",
"name",
",",
"value",
",",
"0",
")",
";"
] |
[
"set",
"a",
"string",
"value",
"in",
"registry"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"set",
"expandable",
"string",
"value",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"name",
",",
"value",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"set",
"a",
"string",
"array",
"value",
"in",
"registry"
] |
[
"int",
"charwidth",
"=",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"default",
"=",
"=",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"unicode",
"?",
"native",
"wchar",
"size",
":",
"1",
";",
"int",
"size",
"=",
"0",
";",
"for",
"(",
"string",
"s",
":",
"arr",
")",
"{",
"size",
"+",
"=",
"s",
"length",
"(",
")",
"*",
"charwidth",
";",
"size",
"+",
"=",
"charwidth",
";",
"}",
"size",
"+",
"=",
"charwidth",
";",
"int",
"offset",
"=",
"0",
";",
"memory",
"data",
"=",
"new",
"memory",
"(",
"size",
")",
";",
"data",
"clear",
"(",
")",
";",
"for",
"(",
"string",
"s",
":",
"arr",
")",
"{",
"if",
"(",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"default",
"=",
"=",
"w",
"3",
"2",
"a",
"p",
"i",
"type",
"mapper",
"unicode",
")",
"{",
"data",
"set",
"wide",
"string",
"(",
"offset",
",",
"s",
")",
";",
"}",
"else",
"{",
"data",
"set",
"string",
"(",
"offset",
",",
"s",
")",
";",
"}",
"offset",
"+",
"=",
"s",
"length",
"(",
")",
"*",
"charwidth",
";",
"offset",
"+",
"=",
"charwidth",
";",
"}",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"set",
"value",
"ex",
"(",
"h",
"key",
",",
"name",
",",
"0",
",",
"win",
"n",
"t",
"reg",
"multi",
"sz",
",",
"data",
",",
"size",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"set",
"a",
"string",
"array",
"value",
"in",
"registry"
] |
[
"registry",
"set",
"string",
"array",
"(",
"root",
",",
"key",
"path",
",",
"name",
",",
"arr",
",",
"0",
")",
";"
] |
[
"set",
"a",
"string",
"array",
"value",
"in",
"registry"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"set",
"string",
"array",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"name",
",",
"arr",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"set",
"a",
"binary",
"value",
"in",
"registry"
] |
[
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"set",
"value",
"ex",
"(",
"h",
"key",
",",
"name",
",",
"0",
",",
"win",
"n",
"t",
"reg",
"binary",
",",
"data",
",",
"data",
"length",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"set",
"a",
"binary",
"value",
"in",
"registry"
] |
[
"registry",
"set",
"binary",
"value",
"(",
"root",
",",
"key",
"path",
",",
"name",
",",
"data",
",",
"0",
")",
";"
] |
[
"set",
"a",
"binary",
"value",
"in",
"registry"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"set",
"binary",
"value",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"name",
",",
"data",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"delete",
"a",
"registry",
"key"
] |
[
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"delete",
"key",
"(",
"h",
"key",
",",
"key",
"name",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"delete",
"a",
"registry",
"key"
] |
[
"registry",
"delete",
"key",
"(",
"root",
",",
"key",
"path",
",",
"key",
"name",
",",
"0",
")",
";"
] |
[
"delete",
"a",
"registry",
"key"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"delete",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"key",
"name",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"delete",
"a",
"registry",
"value"
] |
[
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"delete",
"value",
"(",
"h",
"key",
",",
"value",
"name",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"delete",
"a",
"registry",
"value"
] |
[
"registry",
"delete",
"value",
"(",
"root",
",",
"key",
"path",
",",
"value",
"name",
",",
"0",
")",
";"
] |
[
"delete",
"a",
"registry",
"value"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"win",
"n",
"t",
"key",
"write",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"registry",
"delete",
"value",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
",",
"value",
"name",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"get",
"names",
"of",
"the",
"registry",
"key",
"s",
"sub",
"-",
"keys"
] |
[
"int",
"by",
"reference",
"lpc",
"sub",
"keys",
"=",
"new",
"int",
"by",
"reference",
"(",
")",
";",
"int",
"by",
"reference",
"lpc",
"max",
"sub",
"key",
"len",
"=",
"new",
"int",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"query",
"info",
"key",
"(",
"h",
"key",
",",
"null",
",",
"null",
",",
"null",
",",
"lpc",
"sub",
"keys",
",",
"lpc",
"max",
"sub",
"key",
"len",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"array",
"list",
"<",
"string",
">",
"keys",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
"lpc",
"sub",
"keys",
"get",
"value",
"(",
")",
")",
";",
"char",
"[",
"]",
"name",
"=",
"new",
"char",
"[",
"lpc",
"max",
"sub",
"key",
"len",
"get",
"value",
"(",
")",
"+",
"1",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"lpc",
"sub",
"keys",
"get",
"value",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"int",
"by",
"reference",
"lpcch",
"value",
"name",
"=",
"new",
"int",
"by",
"reference",
"(",
"lpc",
"max",
"sub",
"key",
"len",
"get",
"value",
"(",
")",
"+",
"1",
")",
";",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"enum",
"key",
"ex",
"(",
"h",
"key",
",",
"i",
",",
"name",
",",
"lpcch",
"value",
"name",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"keys",
"add",
"(",
"native",
"to",
"string",
"(",
"name",
")",
")",
";",
"}",
"return",
"keys",
"to",
"array",
"(",
"new",
"string",
"[",
"0",
"]",
")",
";"
] |
[
"get",
"names",
"of",
"the",
"registry",
"key",
"s",
"sub",
"-",
"keys"
] |
[
"return",
"registry",
"get",
"keys",
"(",
"root",
",",
"key",
"path",
",",
"0",
")",
";"
] |
[
"get",
"names",
"of",
"the",
"registry",
"key",
"s",
"sub",
"-",
"keys"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"return",
"registry",
"get",
"keys",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"get",
"a",
"registry",
"key",
"the",
"caller",
"is",
"responsible",
"to",
"close",
"the",
"key",
"after",
"use"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"sam",
"desired",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"return",
"phk",
"key",
";"
] |
[
"close",
"the",
"registry",
"key"
] |
[
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"h",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}"
] |
[
"get",
"a",
"table",
"of",
"registry",
"values"
] |
[
"return",
"registry",
"get",
"values",
"(",
"root",
",",
"key",
"path",
",",
"0",
")",
";"
] |
[
"get",
"a",
"table",
"of",
"registry",
"values"
] |
[
"h",
"k",
"e",
"y",
"by",
"reference",
"phk",
"key",
"=",
"new",
"h",
"k",
"e",
"y",
"by",
"reference",
"(",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"open",
"key",
"ex",
"(",
"root",
",",
"key",
"path",
",",
"0",
",",
"win",
"n",
"t",
"key",
"read",
"|",
"sam",
"desired",
"extra",
",",
"phk",
"key",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"try",
"{",
"return",
"registry",
"get",
"values",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"}",
"finally",
"{",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"close",
"key",
"(",
"phk",
"key",
"get",
"value",
"(",
")",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"}"
] |
[
"queries",
"the",
"information",
"about",
"a",
"specified",
"key"
] |
[
"info",
"key",
"info",
"key",
"=",
"new",
"info",
"key",
"(",
"h",
"key",
",",
"lpcb",
"security",
"descriptor",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"query",
"info",
"key",
"(",
"h",
"key",
",",
"info",
"key",
"lp",
"class",
",",
"info",
"key",
"lpc",
"class",
",",
"null",
",",
"info",
"key",
"lpc",
"sub",
"keys",
",",
"info",
"key",
"lpc",
"max",
"sub",
"key",
"len",
",",
"info",
"key",
"lpc",
"max",
"class",
"len",
",",
"info",
"key",
"lpc",
"values",
",",
"info",
"key",
"lpc",
"max",
"value",
"name",
"len",
",",
"info",
"key",
"lpc",
"max",
"value",
"len",
",",
"info",
"key",
"lpcb",
"security",
"descriptor",
",",
"info",
"key",
"lpft",
"last",
"write",
"time",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"return",
"info",
"key",
";"
] |
[
"queries",
"the",
"information",
"about",
"a",
"specified",
"key"
] |
[
"enum",
"key",
"enum",
"key",
"=",
"new",
"enum",
"key",
"(",
"h",
"key",
",",
"dw",
"index",
")",
";",
"int",
"rc",
"=",
"advapi",
"3",
"2",
"instance",
"reg",
"enum",
"key",
"ex",
"(",
"h",
"key",
",",
"enum",
"key",
"dw",
"index",
",",
"enum",
"key",
"lp",
"name",
",",
"enum",
"key",
"lpc",
"name",
",",
"null",
",",
"enum",
"key",
"lp",
"class",
",",
"enum",
"key",
"lpcb",
"class",
",",
"enum",
"key",
"lpft",
"last",
"write",
"time",
")",
";",
"if",
"(",
"rc",
"!",
"=",
"w",
"3",
"2",
"errors",
"error",
"success",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"rc",
")",
";",
"}",
"return",
"enum",
"key",
";"
] |
[
"raw",
"record",
"data"
] |
[
"return",
"record",
";"
] |
[
"event",
"id"
] |
[
"return",
"record",
"event",
"i",
"d",
"int",
"value",
"(",
")",
";"
] |
[
"status",
"code",
"for",
"the",
"facility",
"part",
"of",
"the",
"event",
"id"
] |
[
"return",
"record",
"event",
"i",
"d",
"int",
"value",
"(",
")",
"&",
"0x",
"f",
"f",
"f",
"f",
";"
] |
[
"record",
"number",
"of",
"the",
"record",
"this",
"value",
"can",
"be",
"used",
"with",
"the",
"eventlog",
"seek",
"read",
"flag",
"in",
"the",
"read",
"event",
"log",
"function",
"to",
"begin",
"reading",
"at",
"a",
"specified",
"record"
] |
[
"return",
"record",
"record",
"number",
"int",
"value",
"(",
")",
";"
] |
[
"record",
"length",
"with",
"data"
] |
[
"return",
"record",
"length",
"int",
"value",
"(",
")",
";"
] |
[
"strings",
"associated",
"with",
"this",
"event"
] |
[
"return",
"strings",
";"
] |
[
"raw",
"data",
"associated",
"with",
"the",
"record"
] |
[
"return",
"data",
";"
] |
[
"call",
"close",
"(",
")",
"in",
"the",
"case",
"when",
"the",
"caller",
"needs",
"to",
"abandon",
"the",
"iterator",
"before",
"the",
"iteration",
"completes"
] |
[
"done",
"=",
"true",
";",
"if",
"(",
"h",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"advapi",
"3",
"2",
"instance",
"close",
"event",
"log",
"(",
"h",
")",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"kernel",
"3",
"2",
"instance",
"get",
"last",
"error",
"(",
")",
")",
";",
"}",
"h",
"=",
"null",
";",
"}"
] |
[
"level",
"1",
"6"
] |
[
"return",
"this",
";"
] |
[
"level",
"1",
"6"
] |
[
"read",
"(",
")",
";",
"return",
"!",
"done",
";"
] |
[
"level",
"1",
"6"
] |
[
"read",
"(",
")",
";",
"event",
"log",
"record",
"record",
"=",
"new",
"event",
"log",
"record",
"(",
"pevlr",
")",
";",
"dw",
"read",
"-",
"=",
"record",
"get",
"length",
"(",
")",
";",
"pevlr",
"=",
"pevlr",
"share",
"(",
"record",
"get",
"length",
"(",
")",
")",
";",
"return",
"record",
";"
] |
[
"get",
"a",
"self",
"relative",
"security",
"descriptor",
"for",
"the",
"given",
"object",
"type",
"the",
"value",
"is",
"returned",
"in",
"memory"
] |
[
"int",
"info",
"type",
"=",
"owner",
"security",
"information",
"|",
"group",
"security",
"information",
"|",
"dacl",
"security",
"information",
"|",
"(",
"get",
"s",
"a",
"c",
"l",
"?",
"sacl",
"security",
"information",
":",
"0",
")",
";",
"pointer",
"by",
"reference",
"pp",
"security",
"descriptor",
"=",
"new",
"pointer",
"by",
"reference",
"(",
")",
";",
"int",
"last",
"error",
"=",
"advapi",
"3",
"2",
"instance",
"get",
"named",
"security",
"info",
"(",
"absolute",
"object",
"path",
",",
"object",
"type",
",",
"info",
"type",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
",",
"pp",
"security",
"descriptor",
")",
";",
"if",
"(",
"last",
"error",
"!",
"=",
"0",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"last",
"error",
")",
";",
"}",
"int",
"n",
"length",
"=",
"advapi",
"3",
"2",
"instance",
"get",
"security",
"descriptor",
"length",
"(",
"pp",
"security",
"descriptor",
"get",
"value",
"(",
")",
")",
";",
"memory",
"memory",
"=",
"new",
"memory",
"(",
"n",
"length",
")",
";",
"pointer",
"sec",
"value",
"=",
"pp",
"security",
"descriptor",
"get",
"value",
"(",
")",
";",
"try",
"{",
"byte",
"[",
"]",
"data",
"=",
"sec",
"value",
"get",
"byte",
"array",
"(",
"0",
",",
"n",
"length",
")",
";",
"memory",
"write",
"(",
"0",
",",
"data",
",",
"0",
",",
"n",
"length",
")",
";",
"return",
"memory",
";",
"}",
"finally",
"{",
"kernel",
"3",
"2",
"util",
"free",
"local",
"memory",
"(",
"sec",
"value",
")",
";",
"}"
] |
[
"encrypts",
"a",
"file",
"or",
"directory"
] |
[
"string",
"lp",
"file",
"name",
"=",
"file",
"get",
"absolute",
"path",
"(",
")",
";",
"if",
"(",
"!",
"advapi",
"3",
"2",
"instance",
"encrypt",
"file",
"(",
"lp",
"file",
"name",
")",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"kernel",
"3",
"2",
"instance",
"get",
"last",
"error",
"(",
")",
")",
";",
"}"
] |
[
"decrypts",
"an",
"encrypted",
"file",
"or",
"directory"
] |
[
"string",
"lp",
"file",
"name",
"=",
"file",
"get",
"absolute",
"path",
"(",
")",
";",
"if",
"(",
"!",
"advapi",
"3",
"2",
"instance",
"decrypt",
"file",
"(",
"lp",
"file",
"name",
",",
"new",
"dword",
"(",
"0",
")",
")",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"kernel",
"3",
"2",
"instance",
"get",
"last",
"error",
"(",
")",
")",
";",
"}"
] |
[
"checks",
"the",
"encryption",
"status",
"of",
"a",
"file"
] |
[
"d",
"w",
"o",
"r",
"d",
"by",
"reference",
"status",
"=",
"new",
"d",
"w",
"o",
"r",
"d",
"by",
"reference",
"(",
")",
";",
"string",
"lp",
"file",
"name",
"=",
"file",
"get",
"absolute",
"path",
"(",
")",
";",
"if",
"(",
"!",
"advapi",
"3",
"2",
"instance",
"file",
"encryption",
"status",
"(",
"lp",
"file",
"name",
",",
"status",
")",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"kernel",
"3",
"2",
"instance",
"get",
"last",
"error",
"(",
")",
")",
";",
"}",
"return",
"status",
"get",
"value",
"(",
")",
"int",
"value",
"(",
")",
";"
] |
[
"disables",
"or",
"enables",
"encryption",
"of",
"the",
"specified",
"directory",
"and",
"the",
"files",
"in",
"it"
] |
[
"string",
"dir",
"path",
"=",
"directory",
"get",
"absolute",
"path",
"(",
")",
";",
"if",
"(",
"!",
"advapi",
"3",
"2",
"instance",
"encryption",
"disable",
"(",
"dir",
"path",
",",
"disable",
")",
")",
"{",
"throw",
"new",
"win",
"3",
"2",
"exception",
"(",
"native",
"get",
"last",
"error",
"(",
")",
")",
";",
"}"
] |
[
"calls",
"disable",
"(",
")",
"to",
"remove",
"the",
"privileges"
] |
[
"this",
"disable",
"(",
")",
";"
] |
[
"the",
"number",
"of",
"all",
"items",
"in",
"the",
"domain"
] |
[
"this",
"item",
"count",
"=",
"item",
"count",
";"
] |
[
"the",
"number",
"of",
"all",
"items",
"in",
"the",
"domain"
] |
[
"return",
"this",
"item",
"count",
";"
] |
[
"the",
"number",
"of",
"all",
"items",
"in",
"the",
"domain"
] |
[
"set",
"item",
"count",
"(",
"item",
"count",
")",
";",
"return",
"this",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"item",
"names",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"this",
"item",
"names",
"size",
"bytes",
"=",
"item",
"names",
"size",
"bytes",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"item",
"names",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"return",
"this",
"item",
"names",
"size",
"bytes",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"item",
"names",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"set",
"item",
"names",
"size",
"bytes",
"(",
"item",
"names",
"size",
"bytes",
")",
";",
"return",
"this",
";"
] |
[
"the",
"number",
"of",
"unique",
"attribute",
"names",
"in",
"the",
"domain"
] |
[
"this",
"attribute",
"name",
"count",
"=",
"attribute",
"name",
"count",
";"
] |
[
"the",
"number",
"of",
"unique",
"attribute",
"names",
"in",
"the",
"domain"
] |
[
"return",
"this",
"attribute",
"name",
"count",
";"
] |
[
"the",
"number",
"of",
"unique",
"attribute",
"names",
"in",
"the",
"domain"
] |
[
"set",
"attribute",
"name",
"count",
"(",
"attribute",
"name",
"count",
")",
";",
"return",
"this",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"unique",
"attribute",
"names",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"this",
"attribute",
"names",
"size",
"bytes",
"=",
"attribute",
"names",
"size",
"bytes",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"unique",
"attribute",
"names",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"return",
"this",
"attribute",
"names",
"size",
"bytes",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"unique",
"attribute",
"names",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"set",
"attribute",
"names",
"size",
"bytes",
"(",
"attribute",
"names",
"size",
"bytes",
")",
";",
"return",
"this",
";"
] |
[
"the",
"number",
"of",
"all",
"attribute",
"name",
"/",
"value",
"pairs",
"in",
"the",
"domain"
] |
[
"this",
"attribute",
"value",
"count",
"=",
"attribute",
"value",
"count",
";"
] |
[
"the",
"number",
"of",
"all",
"attribute",
"name",
"/",
"value",
"pairs",
"in",
"the",
"domain"
] |
[
"return",
"this",
"attribute",
"value",
"count",
";"
] |
[
"the",
"number",
"of",
"all",
"attribute",
"name",
"/",
"value",
"pairs",
"in",
"the",
"domain"
] |
[
"set",
"attribute",
"value",
"count",
"(",
"attribute",
"value",
"count",
")",
";",
"return",
"this",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"attribute",
"values",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"this",
"attribute",
"values",
"size",
"bytes",
"=",
"attribute",
"values",
"size",
"bytes",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"attribute",
"values",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"return",
"this",
"attribute",
"values",
"size",
"bytes",
";"
] |
[
"the",
"total",
"size",
"of",
"all",
"attribute",
"values",
"in",
"the",
"domain",
"in",
"bytes"
] |
[
"set",
"attribute",
"values",
"size",
"bytes",
"(",
"attribute",
"values",
"size",
"bytes",
")",
";",
"return",
"this",
";"
] |
[
"the",
"data",
"and",
"time",
"when",
"metadata",
"was",
"calculated",
"in",
"epoch",
"(",
"unix",
")",
"seconds"
] |
[
"return",
"this",
"timestamp",
";"
] |
[
"the",
"data",
"and",
"time",
"when",
"metadata",
"was",
"calculated",
"in",
"epoch",
"(",
"unix",
")",
"seconds"
] |
[
"set",
"timestamp",
"(",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"set",
"context",
"service",
"name"
] |
[
"this",
"context",
"service",
"name",
"=",
"context",
"service",
"name",
";"
] |
[
"get",
"the",
"context",
"service",
"name"
] |
[
"if",
"(",
"context",
"service",
"name",
"!",
"=",
"null",
")",
"return",
"context",
"service",
"name",
";",
"if",
"(",
"get",
"naming",
"mode",
"(",
")",
"=",
"=",
"component",
"naming",
"mode",
"create",
")",
"{",
"return",
"context",
"names",
"context",
"service",
"name",
"of",
"component",
"(",
"get",
"application",
"name",
"(",
")",
",",
"get",
"module",
"name",
"(",
")",
",",
"get",
"component",
"name",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"get",
"naming",
"mode",
"(",
")",
"=",
"=",
"component",
"naming",
"mode",
"use",
"module",
")",
"{",
"return",
"context",
"names",
"context",
"service",
"name",
"of",
"module",
"(",
"get",
"application",
"name",
"(",
")",
",",
"get",
"module",
"name",
"(",
")",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"component",
"s",
"module",
"name"
] |
[
"return",
"module",
"description",
"get",
"module",
"name",
"(",
")",
";"
] |
[
"get",
"the",
"component",
"s",
"module",
"s",
"application",
"name"
] |
[
"return",
"module",
"description",
"get",
"application",
"name",
"(",
")",
";"
] |
[
"get",
"the",
"list",
"of",
"interceptor",
"classes",
"applied",
"directly",
"to",
"class",
"these",
"interceptors",
"will",
"have",
"lifecycle",
"methods",
"invoked"
] |
[
"return",
"class",
"interceptors",
";"
] |
[
"override",
"the",
"class",
"interceptors",
"with",
"a",
"new",
"set",
"of",
"interceptors"
] |
[
"this",
"class",
"interceptors",
"=",
"class",
"interceptors",
";",
"this",
"all",
"interceptors",
"=",
"null",
";"
] |
[
"returns",
"a",
"combined",
"map",
"of",
"class",
"and",
"method",
"level",
"interceptors"
] |
[
"if",
"(",
"all",
"interceptors",
"=",
"=",
"null",
")",
"{",
"all",
"interceptors",
"=",
"new",
"hash",
"set",
"<",
"interceptor",
"description",
">",
"(",
")",
";",
"all",
"interceptors",
"add",
"all",
"(",
"class",
"interceptors",
")",
";",
"if",
"(",
"!",
"exclude",
"default",
"interceptors",
")",
"{",
"all",
"interceptors",
"add",
"all",
"(",
"default",
"interceptors",
")",
";",
"}",
"for",
"(",
"list",
"<",
"interceptor",
"description",
">",
"interceptors",
":",
"method",
"interceptors",
"values",
"(",
")",
")",
"{",
"all",
"interceptors",
"add",
"all",
"(",
"interceptors",
")",
";",
"}",
"}",
"return",
"all",
"interceptors",
";"
] |
[
"if",
"this",
"component",
"should",
"ignore",
"lifecycle",
"interceptors",
"this",
"should",
"generally",
"only",
"be",
"set",
"when",
"they",
"are",
"going",
"to",
"be",
"handled",
"by",
"an",
"external",
"framework",
"such",
"as",
"weld"
] |
[
"this",
"ignore",
"lifecycle",
"interceptors",
"=",
"ignore",
"lifecycle",
"interceptors",
";"
] |
[
"add",
"a",
"class",
"level",
"interceptor"
] |
[
"class",
"interceptors",
"add",
"(",
"description",
")",
";",
"this",
"all",
"interceptors",
"=",
"null",
";"
] |
[
"returns",
"the",
"{",
"@",
"link",
"interceptor",
"description",
"}",
"for",
"the",
"passed",
"<",
"code",
">",
"interceptor",
"class",
"name",
"<",
"/",
"code",
">",
"if",
"such",
"a",
"class",
"interceptor",
"exists",
"for",
"this",
"component",
"description",
"else",
"returns",
"null"
] |
[
"for",
"(",
"interceptor",
"description",
"interceptor",
":",
"class",
"interceptors",
")",
"{",
"if",
"(",
"interceptor",
"get",
"interceptor",
"class",
"name",
"(",
")",
"equals",
"(",
"interceptor",
"class",
"name",
")",
")",
"{",
"return",
"interceptor",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"get",
"the",
"method",
"interceptor",
"configurations",
"the",
"key",
"is",
"the",
"method",
"identifier",
"the",
"value",
"is",
"the",
"set",
"of",
"class",
"names",
"of",
"interceptors",
"to",
"configure",
"on",
"that",
"method"
] |
[
"return",
"method",
"interceptors",
";"
] |
[
"sets",
"the",
"method",
"level",
"interceptors",
"for",
"a",
"method",
"and",
"marks",
"it",
"as",
"exclude",
"class",
"and",
"default",
"level",
"interceptors",
"<",
"p",
"/",
">",
"this",
"is",
"used",
"to",
"set",
"the",
"final",
"interceptor",
"order",
"after",
"it",
"has",
"been",
"modifier",
"by",
"the",
"deployment",
"descriptor"
] |
[
"method",
"interceptors",
"put",
"(",
"identifier",
",",
"interceptor",
"descriptions",
")",
";",
"method",
"exclude",
"class",
"interceptors",
"add",
"(",
"identifier",
")",
";",
"method",
"exclude",
"default",
"interceptors",
"add",
"(",
"identifier",
")",
";"
] |
[
"adds",
"a",
"module",
"level",
"interceptor",
"class",
"override",
"it",
"is",
"merged",
"with",
"any",
"existing",
"overrides",
"if",
"they",
"exist"
] |
[
"interceptor",
"class",
"overrides",
"put",
"(",
"class",
"name",
",",
"interceptor",
"class",
"description",
"merge",
"(",
"interceptor",
"class",
"overrides",
"get",
"(",
"class",
"name",
")",
",",
"override",
")",
")",
";"
] |
[
"get",
"the",
"naming",
"mode",
"of",
"this",
"component"
] |
[
"return",
"naming",
"mode",
";"
] |
[
"get",
"the",
"dependency",
"set"
] |
[
"return",
"dependencies",
";"
] |
[
"get",
"the",
"list",
"of",
"views",
"which",
"apply",
"to",
"this",
"component"
] |
[
"return",
"views",
";"
] |
[
"get",
"the",
"configurators",
"for",
"this",
"component"
] |
[
"return",
"configurators",
";"
] |
[
"if",
"this",
"method",
"returns",
"true",
"then",
"weld",
"will",
"directly",
"create",
"the",
"component",
"instance",
"which",
"will",
"apply",
"interceptors",
"and",
"decorators",
"via",
"sub",
"classing"
] |
[
"return",
"false",
";"
] |
[
"method",
"calculates",
"zip",
"file",
"size",
"to",
"initiate",
"progress",
"supporting",
"local",
"file",
"extraction",
"progress",
"for",
"now"
] |
[
"return",
"new",
"file",
"(",
"file",
"path",
")",
"length",
"(",
")",
";"
] |
[
"{"
] |
[
"return",
"true",
";"
] |
[
"{"
] |
[
"return",
"cli",
"idx",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"new",
"network",
"builder",
"<",
">",
"(",
"true",
")",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"new",
"network",
"builder",
"<",
">",
"(",
"false",
")",
";"
] |
[
"returns",
"a",
"{",
"@",
"link",
"network",
"builder",
"}",
"initialized",
"with",
"all",
"properties",
"queryable",
"from",
"{",
"@",
"code",
"network",
"}"
] |
[
"return",
"new",
"network",
"builder",
"<",
"n",
",",
"e",
">",
"(",
"network",
"is",
"directed",
"(",
")",
")",
"allows",
"parallel",
"edges",
"(",
"network",
"allows",
"parallel",
"edges",
"(",
")",
")",
"allows",
"self",
"loops",
"(",
"network",
"allows",
"self",
"loops",
"(",
")",
")",
"node",
"order",
"(",
"network",
"node",
"order",
"(",
")",
")",
"edge",
"order",
"(",
"network",
"edge",
"order",
"(",
")",
")",
";"
] |
[
"specifies",
"whether",
"the",
"network",
"will",
"allow",
"parallel",
"edges",
"attempting",
"to",
"add",
"a",
"parallel",
"edge",
"to",
"a",
"network",
"that",
"does",
"not",
"allow",
"them",
"will",
"throw",
"an",
"{"
] |
[
"this",
"allows",
"parallel",
"edges",
"=",
"allows",
"parallel",
"edges",
";",
"return",
"this",
";"
] |
[
"specifies",
"whether",
"the",
"network",
"will",
"allow",
"self",
"-",
"loops",
"(",
"edges",
"that",
"connect",
"a",
"node",
"to",
"itself",
")",
"attempting",
"to",
"add",
"a",
"self",
"-",
"loop",
"to",
"a",
"network",
"that",
"does",
"not",
"allow",
"them",
"will",
"throw",
"an",
"{"
] |
[
"this",
"allows",
"self",
"loops",
"=",
"allows",
"self",
"loops",
";",
"return",
"this",
";"
] |
[
"specifies",
"the",
"expected",
"number",
"of",
"nodes",
"in",
"the",
"network"
] |
[
"this",
"expected",
"node",
"count",
"=",
"optional",
"of",
"(",
"check",
"non",
"negative",
"(",
"expected",
"node",
"count",
")",
")",
";",
"return",
"this",
";"
] |
[
"specifies",
"the",
"expected",
"number",
"of",
"edges",
"in",
"the",
"network"
] |
[
"this",
"expected",
"edge",
"count",
"=",
"optional",
"of",
"(",
"check",
"non",
"negative",
"(",
"expected",
"edge",
"count",
")",
")",
";",
"return",
"this",
";"
] |
[
"specifies",
"the",
"order",
"of",
"iteration",
"for",
"the",
"elements",
"of",
"{"
] |
[
"network",
"builder",
"<",
"n1",
",",
"e",
">",
"new",
"builder",
"=",
"cast",
"(",
")",
";",
"new",
"builder",
"node",
"order",
"=",
"check",
"not",
"null",
"(",
"node",
"order",
")",
";",
"return",
"new",
"builder",
";"
] |
[
"specifies",
"the",
"order",
"of",
"iteration",
"for",
"the",
"elements",
"of",
"{"
] |
[
"network",
"builder",
"<",
"n",
",",
"e1",
">",
"new",
"builder",
"=",
"cast",
"(",
")",
";",
"new",
"builder",
"edge",
"order",
"=",
"check",
"not",
"null",
"(",
"edge",
"order",
")",
";",
"return",
"new",
"builder",
";"
] |
[
"returns",
"an",
"empty",
"{"
] |
[
"return",
"new",
"configurable",
"mutable",
"network",
"<",
">",
"(",
"this",
")",
";"
] |
[
"update",
"global",
"config"
] |
[
"public",
"native",
"void",
"native",
"update",
"global",
"config",
"(",
"string",
"config",
")",
";"
] |
[
"result",
"from",
"js",
"engine"
] |
[
"result",
"callback",
"callback",
"=",
"result",
"callback",
"manager",
"remove",
"callback",
"by",
"id",
"(",
"callback",
"id",
")",
";",
"if",
"(",
"callback",
"!",
"=",
"null",
")",
"{",
"callback",
"on",
"receive",
"result",
"(",
"result",
")",
";",
"}"
] |
[
"java",
"script",
"uses",
"this",
"methods",
"to",
"call",
"android",
"code"
] |
[
"return",
"call",
"native",
"(",
"instance",
"id",
",",
"(",
"j",
"s",
"o",
"n",
"array",
")",
"json",
"parse",
"array",
"(",
"new",
"string",
"(",
"tasks",
")",
")",
",",
"callback",
")",
";"
] |
[
"bridge",
"component",
"js",
"method"
] |
[
"try",
"{",
"j",
"s",
"o",
"n",
"array",
"arg",
"array",
"=",
"(",
"j",
"s",
"o",
"n",
"array",
")",
"w",
"x",
"wson",
"j",
"s",
"o",
"n",
"switch",
"parse",
"wson",
"or",
"j",
"s",
"o",
"n",
"(",
"arguments",
")",
";",
"object",
"options",
"=",
"w",
"x",
"wson",
"j",
"s",
"o",
"n",
"switch",
"parse",
"wson",
"or",
"j",
"s",
"o",
"n",
"(",
"options",
"data",
")",
";",
"w",
"x",
"bridge",
"manager",
"get",
"instance",
"(",
")",
"call",
"native",
"component",
"(",
"instance",
"id",
",",
"ref",
",",
"method",
",",
"arg",
"array",
",",
"options",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"w",
"x",
"log",
"utils",
"e",
"(",
"tag",
",",
"e",
")",
";",
"}"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.