docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"initializes",
"this",
"struct",
"with",
"the",
"specified",
"values"
] | [
"image",
"(",
"image",
")",
";",
"p",
"binds",
"(",
"p",
"binds",
")",
";",
"return",
"this",
";"
] |
[
"copies",
"the",
"specified",
"struct",
"data",
"to",
"this",
"struct"
] | [
"mem",
"copy",
"(",
"src",
"address",
"(",
")",
",",
"address",
"(",
")",
",",
"sizeof",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"nmem",
"alloc",
"checked",
"(",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"nmem",
"calloc",
"checked",
"(",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"byte",
"buffer",
"container",
"=",
"buffer",
"utils",
"create",
"byte",
"buffer",
"(",
"sizeof",
")",
";",
"return",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"mem",
"address",
"(",
"container",
")",
",",
"container",
")",
";"
] |
[
"returns",
"a",
"new",
"{"
] | [
"return",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"address",
")",
";"
] |
[
"like",
"{"
] | [
"return",
"address",
"=",
"=",
"null",
"?",
"null",
":",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"address",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"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",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"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",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"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",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"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",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}",
"and",
"initializes",
"all",
"its",
"bits",
"to",
"zero"
] | [
"return",
"wrap",
"(",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"class",
",",
"stack",
"ncalloc",
"(",
"alignof",
",",
"1",
",",
"sizeof",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"thread",
"-",
"local",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"malloc",
"stack",
"(",
"capacity",
",",
"stack",
"get",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"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",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"buffer",
"}",
"instance",
"allocated",
"on",
"the",
"specified",
"{",
"@",
"link",
"memory",
"stack",
"}"
] | [
"return",
"wrap",
"(",
"buffer",
"class",
",",
"stack",
"nmalloc",
"(",
"alignof",
",",
"capacity",
"*",
"sizeof",
")",
",",
"capacity",
")",
";"
] |
[
"returns",
"a",
"new",
"{",
"@",
"link",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"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",
"long",
"(",
"null",
",",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"image",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"unsafe",
"get",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"bindcount",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"return",
"vk",
"sparse",
"memory",
"bind",
"create",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"pbinds",
")",
",",
"nbind",
"count",
"(",
"struct",
")",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"unsafe",
"put",
"long",
"(",
"null",
",",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"image",
",",
"value",
")",
";"
] |
[
"sets",
"the",
"specified",
"value",
"to",
"the",
"{"
] | [
"unsafe",
"put",
"int",
"(",
"null",
",",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"bindcount",
",",
"value",
")",
";"
] |
[
"unsafe",
"version",
"of",
"{"
] | [
"mem",
"put",
"address",
"(",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"pbinds",
",",
"value",
"address",
"(",
")",
")",
";",
"nbind",
"count",
"(",
"struct",
",",
"value",
"remaining",
"(",
")",
")",
";"
] |
[
"validates",
"pointer",
"members",
"that",
"should",
"not",
"be",
"{",
"@",
"code",
"null",
"}"
] | [
"check",
"(",
"mem",
"get",
"address",
"(",
"struct",
"+",
"vk",
"sparse",
"image",
"opaque",
"memory",
"bind",
"info",
"pbinds",
")",
")",
";"
] |
[
"the",
"type",
"of",
"json",
"valid",
"values",
":",
"document",
"lines"
] | [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
] |
[
"the",
"type",
"of",
"json",
"valid",
"values",
":",
"document",
"lines"
] | [
"set",
"type",
"(",
"type",
"=",
"=",
"null",
"?",
"null",
":",
"type",
"to",
"string",
"(",
")",
")",
";"
] |
[
"the",
"type",
"of",
"json",
"valid",
"values",
":",
"document",
"lines"
] | [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
] |
[
"given",
"a",
"list",
"of",
"subscription",
"strings",
"creates",
"a",
"list",
"of",
"databus",
"subscription",
"objects"
] | [
"list",
"<",
"databus",
"subscription",
">",
"sub",
"list",
"=",
"new",
"array",
"list",
"<",
"databus",
"subscription",
">",
"(",
"sub",
"uri",
"string",
"list",
"size",
"(",
")",
")",
";",
"for",
"(",
"string",
"sub",
"uri",
"string",
":",
"sub",
"uri",
"string",
"list",
")",
"{",
"sub",
"list",
"add",
"(",
"create",
"from",
"uri",
"(",
"sub",
"uri",
"string",
")",
")",
";",
"}",
"return",
"sub",
"list",
";"
] |
[
"do",
"not",
"use",
"externally",
"this",
"is",
"meant",
"for",
"internal",
"databus",
"usage",
"this",
"may",
"be",
"removed",
"in",
"a",
"future",
"release"
] | [
"return",
"new",
"databus",
"subscription",
"(",
"physical",
"source",
"create",
"any",
"source",
"wildcard",
"(",
")",
",",
"physical",
"partition",
"create",
"any",
"partition",
"wildcard",
"(",
")",
",",
"logical",
"source",
"id",
"create",
"all",
"partitions",
"wildcard",
"(",
"source",
")",
")",
";"
] |
[
"do",
"not",
"use",
"externally",
"this",
"is",
"meant",
"for",
"internal",
"databus",
"usage",
"this",
"may",
"be",
"removed",
"in",
"a",
"future",
"release",
"todo",
"make",
"private",
"and",
"/",
"or",
"change",
"name",
"when",
"we",
"are",
"sure",
"nobody",
"is",
"using",
"these"
] | [
"logical",
"source",
"ls",
"=",
"new",
"logical",
"source",
"(",
"source",
")",
";",
"return",
"new",
"databus",
"subscription",
"(",
"physical",
"source",
"create",
"any",
"source",
"wildcard",
"(",
")",
",",
"physical",
"partition",
"create",
"any",
"partition",
"wildcard",
"(",
")",
",",
"logical",
"source",
"id",
"create",
"all",
"partitions",
"wildcard",
"(",
"ls",
")",
")",
";"
] |
[
"do",
"not",
"use",
"externally",
"this",
"is",
"meant",
"for",
"internal",
"databus",
"usage",
"this",
"may",
"be",
"removed",
"in",
"a",
"future",
"release"
] | [
"return",
"new",
"databus",
"subscription",
"(",
"physical",
"source",
"create",
"master",
"source",
"wildcard",
"(",
")",
",",
"physical",
"partition",
",",
"logical",
"source",
"id",
"create",
"all",
"partitions",
"wildcard",
"(",
"logical",
"source",
"create",
"all",
"sources",
"wildcard",
"(",
")",
")",
")",
";"
] |
[
"do",
"not",
"use",
"externally",
"this",
"is",
"meant",
"for",
"internal",
"databus",
"usage",
"convert",
"a",
"list",
"of",
"sources",
"specified",
"in",
"v3",
"format",
"(",
"databus",
"subscription",
")",
"to",
"v2",
"format",
"(",
"string",
")"
] | [
"list",
"<",
"string",
">",
"str",
"sources",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"for",
"(",
"databus",
"subscription",
"sub",
":",
"sources",
")",
"{",
"string",
"s",
"=",
"sub",
"generate",
"subscription",
"string",
"(",
")",
";",
"str",
"sources",
"add",
"(",
"s",
")",
";",
"}",
"return",
"str",
"sources",
";"
] |
[
"create",
"a",
"databus",
"subscription",
"object",
"from",
"a",
"json",
"string"
] | [
"object",
"mapper",
"mapper",
"=",
"new",
"object",
"mapper",
"(",
")",
";",
"builder",
"result",
"=",
"mapper",
"read",
"value",
"(",
"json",
",",
"builder",
"class",
")",
";",
"return",
"result",
"build",
"(",
")",
";"
] |
[
"generate",
"a",
"uniq",
"string",
"representation",
"per",
"subscription"
] | [
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"sb",
"append",
"(",
"physical",
"partition",
"get",
"name",
"(",
")",
")",
";",
"sb",
"append",
"(",
"'",
"'",
")",
";",
"sb",
"append",
"(",
"physical",
"partition",
"get",
"id",
"(",
")",
")",
";",
"sb",
"append",
"(",
"'",
"'",
")",
";",
"sb",
"append",
"(",
"logical",
"partition",
"get",
"source",
"(",
")",
"get",
"id",
"(",
")",
")",
";",
"sb",
"append",
"(",
"'",
"'",
")",
";",
"sb",
"append",
"(",
"logical",
"partition",
"get",
"source",
"(",
")",
"get",
"name",
"(",
")",
")",
";",
"sb",
"append",
"(",
"'",
"'",
")",
";",
"sb",
"append",
"(",
"logical",
"partition",
"get",
"id",
"(",
")",
")",
";",
"return",
"sb",
"to",
"string",
"(",
")",
";"
] |
[
"do",
"not",
"use",
"externally",
"this",
"is",
"meant",
"for",
"internal",
"databus",
"usage"
] | [
"array",
"list",
"<",
"string",
">",
"result",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
"subs",
"size",
"(",
")",
")",
";",
"for",
"(",
"databus",
"subscription",
"sub",
":",
"subs",
")",
"{",
"string",
"uri",
"=",
"codec",
"encode",
"(",
"sub",
")",
"to",
"string",
"(",
")",
";",
"result",
"add",
"(",
"uri",
")",
";",
"}",
"return",
"result",
";"
] |
[
"unregisters",
"the",
"specified",
"codec"
] | [
"if",
"(",
"codec",
"equals",
"(",
"uri",
"codecs",
"get",
"(",
"codec",
"get",
"scheme",
"(",
")",
")",
")",
")",
"uri",
"codecs",
"remove",
"(",
"codec",
"get",
"scheme",
"(",
")",
")",
";"
] |
[
"unregisters",
"the",
"codec",
"for",
"the",
"specified",
"scheme"
] | [
"uri",
"codecs",
"remove",
"(",
"codec",
"scheme",
")",
";"
] |
[
"obtains",
"the",
"subscription",
"uri",
"codec",
"for",
"a",
"given",
"scheme",
"(",
"e",
"g",
"oracle",
"or",
"espresso",
")"
] | [
"return",
"uri",
"codecs",
"get",
"(",
"scheme",
")",
";"
] |
[
"checks",
"to",
"see",
"if",
"the",
"ast",
"is",
"annotated",
"with",
"the",
"passed",
"in",
"annotation"
] | [
"if",
"(",
"ast",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"the",
"ast",
"is",
"null",
")",
";",
"}",
"return",
"get",
"annotation",
"(",
"ast",
",",
"annotation",
")",
"!",
"=",
"null",
";"
] |
[
"checks",
"to",
"see",
"if",
"the",
"ast",
"is",
"annotated",
"with",
"any",
"annotation"
] | [
"if",
"(",
"ast",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"the",
"ast",
"is",
"null",
")",
";",
"}",
"final",
"detail",
"a",
"s",
"t",
"holder",
"=",
"get",
"annotation",
"holder",
"(",
"ast",
")",
";",
"return",
"holder",
"!",
"=",
"null",
"&",
"&",
"holder",
"find",
"first",
"token",
"(",
"token",
"types",
"annotation",
")",
"!",
"=",
"null",
";"
] |
[
"gets",
"the",
"ast",
"that",
"holds",
"a",
"series",
"of",
"annotations",
"for",
"the",
"potentially",
"annotated",
"ast",
"returns",
"{",
"@",
"code",
"null",
"}",
"the",
"passed",
"in",
"ast",
"is",
"not",
"have",
"an",
"annotation",
"holder"
] | [
"if",
"(",
"ast",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
"the",
"ast",
"is",
"null",
")",
";",
"}",
"final",
"detail",
"a",
"s",
"t",
"annotation",
"holder",
";",
"if",
"(",
"ast",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"enum",
"constant",
"def",
"|",
"|",
"ast",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"package",
"def",
")",
"{",
"annotation",
"holder",
"=",
"ast",
"find",
"first",
"token",
"(",
"token",
"types",
"annotations",
")",
";",
"}",
"else",
"{",
"annotation",
"holder",
"=",
"ast",
"find",
"first",
"token",
"(",
"token",
"types",
"modifiers",
")",
";",
"}",
"return",
"annotation",
"holder",
";"
] |
[
"returns",
"true",
"if",
"field",
"principal",
"grants",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"principal",
"grants",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"principal",
"grants",
":",
"return",
"is",
"set",
"principal",
"grants",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"return",
"the",
"{"
] | [
"return",
"this",
"properties",
";"
] |
[
"the",
"resource",
"url"
] | [
"return",
"resource",
"u",
"r",
"l",
";"
] |
[
"the",
"resource",
"url"
] | [
"this",
"resource",
"u",
"r",
"l",
"=",
"resource",
"u",
"r",
"l",
";"
] |
[
"create",
"a",
"view",
"from",
"resource",
"xml",
"file",
"and",
"hold",
"the",
"view",
"that",
"may",
"be",
"used",
"in",
"displaying",
"data"
] | [
"public",
"abstract",
"view",
"create",
"view",
"(",
"layout",
"inflater",
"layout",
"inflater",
")",
";"
] |
[
"using",
"the",
"held",
"views",
"to",
"display",
"data"
] | [
"public",
"abstract",
"void",
"show",
"data",
"(",
"int",
"position",
",",
"item",
"data",
"type",
"item",
"data",
")",
";"
] |
[
"check",
"if",
"the",
"view",
"holder",
"is",
"still",
"display",
"the",
"same",
"data",
"after",
"back",
"to",
"screen",
"<",
"p",
"/",
">",
"a",
"view",
"in",
"a",
"list",
"view",
"or",
"grid",
"view",
"may",
"go",
"down",
"the",
"screen",
"and",
"then",
"back",
"<",
"p",
"/",
">",
"for",
"efficiency",
"in",
"get",
"view",
"(",
")",
"method",
"a",
"convert",
"view",
"will",
"be",
"reused",
"<",
"p",
"/",
">",
"if",
"the",
"convert",
"view",
"is",
"reused",
"view",
"holder",
"will",
"hold",
"new",
"data"
] | [
"return",
"m",
"last",
"position",
"=",
"=",
"m",
"position",
";"
] |
[
"program",
"entry",
"point"
] | [
"file",
"loader",
"loader",
"=",
"new",
"file",
"loader",
"(",
")",
";",
"file",
"selector",
"j",
"frame",
"j",
"frame",
"=",
"new",
"file",
"selector",
"j",
"frame",
"(",
")",
";",
"file",
"selector",
"presenter",
"presenter",
"=",
"new",
"file",
"selector",
"presenter",
"(",
"j",
"frame",
")",
";",
"presenter",
"set",
"loader",
"(",
"loader",
")",
";",
"presenter",
"start",
"(",
")",
";"
] |
[
"returns",
"a",
"configuration",
"for",
"a",
"canonicalization",
"algorithm"
] | [
"return",
"get",
"canonicalization",
"method",
"(",
"algorithm",
",",
"null",
")",
";"
] |
[
"returns",
"a",
"configuration",
"for",
"a",
"base",
"6",
"4",
"transformation"
] | [
"return",
"new",
"xml",
"signature",
"transform",
"(",
"transform",
"base64",
")",
";"
] |
[
"returns",
"a",
"configuration",
"for",
"an",
"xpath",
"transformation"
] | [
"return",
"get",
"x",
"path",
"transform",
"(",
"xpath",
",",
"null",
")",
";"
] |
[
"this",
"method",
"isn",
"t",
"necessary",
"for",
"x",
"path",
"processing"
] | [
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
] |
[
"returns",
"a",
"configuration",
"for",
"an",
"xpath2",
"transformation"
] | [
"return",
"get",
"x",
"path",
"2",
"transform",
"(",
"xpath",
",",
"filter",
",",
"null",
")",
";"
] |
[
"returns",
"a",
"configuration",
"for",
"an",
"xpath2",
"transformation",
"which",
"consists",
"of",
"several",
"xpath",
"expressions"
] | [
"x",
"path",
"and",
"filter",
"xpath",
"and",
"filter",
"=",
"new",
"x",
"path",
"and",
"filter",
"(",
")",
";",
"xpath",
"and",
"filter",
"set",
"xpath",
"(",
"xpath",
")",
";",
"xpath",
"and",
"filter",
"set",
"filter",
"(",
"filter",
")",
";",
"list",
"<",
"x",
"path",
"and",
"filter",
">",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"1",
")",
";",
"list",
"add",
"(",
"xpath",
"and",
"filter",
")",
";",
"return",
"get",
"x",
"path",
"2",
"transform",
"(",
"list",
",",
"namespace",
"map",
")",
";"
] |
[
"returns",
"a",
"configuration",
"for",
"an",
"xpath2",
"transformation",
"which",
"consists",
"of",
"several",
"xpath",
"expressions"
] | [
"return",
"get",
"x",
"path",
"2",
"transform",
"(",
"xpath",
"and",
"filter",
"list",
",",
"null",
")",
";"
] |
[
"use",
"{"
] | [
"return",
"tranform",
"text",
"node",
"to",
"byte",
"array",
"(",
"node",
",",
"null",
")",
";"
] |
[
"best",
"effort",
"means",
"that",
"the",
"client",
"will",
"try",
"to",
"replace",
"the",
"failed",
"datanode",
"(",
"provided",
"that",
"the",
"policy",
"is",
"satisfied",
")",
"however",
"it",
"will",
"continue",
"the",
"write",
"operation",
"in",
"case",
"that",
"the",
"datanode",
"replacement",
"also",
"fails"
] | [
"return",
"best",
"effort",
";"
] |
[
"get",
"the",
"setting",
"from",
"configuration"
] | [
"final",
"policy",
"policy",
"=",
"get",
"policy",
"(",
"conf",
")",
";",
"final",
"boolean",
"best",
"effort",
"=",
"conf",
"get",
"boolean",
"(",
"hdfs",
"client",
"config",
"keys",
"block",
"write",
"replace",
"datanode",
"on",
"failure",
"best",
"effort",
"key",
",",
"hdfs",
"client",
"config",
"keys",
"block",
"write",
"replace",
"datanode",
"on",
"failure",
"best",
"effort",
"default",
")",
";",
"return",
"new",
"replace",
"datanode",
"on",
"failure",
"(",
"policy",
",",
"best",
"effort",
")",
";"
] |
[
"write",
"the",
"setting",
"to",
"configuration"
] | [
"conf",
"set",
"boolean",
"(",
"hdfs",
"client",
"config",
"keys",
"block",
"write",
"replace",
"datanode",
"on",
"failure",
"enable",
"key",
",",
"policy",
"!",
"=",
"policy",
"disable",
")",
";",
"conf",
"set",
"(",
"hdfs",
"client",
"config",
"keys",
"block",
"write",
"replace",
"datanode",
"on",
"failure",
"policy",
"key",
",",
"policy",
"name",
"(",
")",
")",
";",
"conf",
"set",
"boolean",
"(",
"hdfs",
"client",
"config",
"keys",
"block",
"write",
"replace",
"datanode",
"on",
"failure",
"best",
"effort",
"key",
",",
"best",
"effort",
")",
";"
] |
[
"verify",
"success",
"or",
"success",
"with",
"info",
"status",
"else",
"throw",
"s",
"q",
"l",
"exception"
] | [
"verify",
"success",
"(",
"status",
",",
"true",
")",
";"
] |
[
"verify",
"success",
"status",
"else",
"throw",
"s",
"q",
"l",
"exception"
] | [
"verify",
"success",
"(",
"status",
",",
"false",
")",
";"
] |
[
"verify",
"success",
"and",
"optionally",
"with",
"info",
"status",
"else",
"throw",
"s",
"q",
"l",
"exception"
] | [
"if",
"(",
"status",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"t",
"status",
"code",
"success",
"status",
"|",
"|",
"(",
"with",
"info",
"&",
"&",
"status",
"get",
"status",
"code",
"(",
")",
"=",
"=",
"t",
"status",
"code",
"success",
"with",
"info",
"status",
")",
")",
"{",
"return",
";",
"}",
"throw",
"new",
"hive",
"s",
"q",
"l",
"exception",
"(",
"status",
")",
";"
] |
[
"parse",
"jdbc",
"connection",
"url",
"the",
"new",
"format",
"of",
"the",
"url",
"is",
":",
"jdbc",
":",
"hive",
"2",
":",
"/",
"/",
"<",
"host",
"1",
">",
":",
"<",
"port",
"1",
">",
"<",
"host",
"2",
">",
":",
"<",
"port",
"2",
">",
"/",
"db",
"name",
";",
"sess",
"var",
"list",
"?",
"hive",
"conf",
"list",
"#",
"hive",
"var",
"list",
"where",
"the",
"optional",
"sess",
"conf",
"and",
"var",
"lists",
"are",
"semicolon",
"separated",
"<",
"key",
">",
"=",
"<",
"val",
">",
"pairs",
"for",
"utilizing",
"dynamic",
"service",
"discovery",
"with",
"hive",
"server",
"2",
"multiple",
"comma",
"separated",
"host",
":",
"port",
"pairs",
"can",
"be",
"specified",
"as",
"shown",
"above",
"the",
"jdbc",
"driver",
"resolves",
"the",
"list",
"of",
"uris",
"and",
"picks",
"a",
"specific",
"server",
"instance",
"to",
"connect",
"to",
"currently",
"dynamic",
"service",
"discovery",
"using",
"zoo",
"keeper",
"is",
"supported",
"in",
"which",
"case",
"the",
"host",
":",
"port",
"pairs",
"represent",
"a",
"zoo",
"keeper",
"ensemble"
] | [
"jdbc",
"connection",
"params",
"conn",
"params",
"=",
"extract",
"u",
"r",
"l",
"components",
"(",
"uri",
",",
"info",
")",
";",
"if",
"(",
"zoo",
"keeper",
"hive",
"client",
"helper",
"is",
"zk",
"dynamic",
"discovery",
"mode",
"(",
"conn",
"params",
"get",
"session",
"vars",
"(",
")",
")",
")",
"{",
"configure",
"conn",
"params",
"from",
"zoo",
"keeper",
"(",
"conn",
"params",
")",
";",
"}",
"handle",
"all",
"deprecations",
"(",
"conn",
"params",
")",
";",
"return",
"conn",
"params",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"application",
"to",
"delete",
"the",
"configuration",
"template",
"from",
"<",
"/",
"p",
">"
] | [
"set",
"application",
"name",
"(",
"application",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"configuration",
"template",
"to",
"delete",
"<",
"/",
"p",
">"
] | [
"set",
"template",
"name",
"(",
"template",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"user",
"whose",
"team",
"membership",
"attributes",
"were",
"updated",
"<",
"/",
"p",
">"
] | [
"set",
"user",
"arn",
"(",
"user",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"aws",
"code",
"star",
"project",
"role",
"that",
"will",
"apply",
"to",
"this",
"user",
"this",
"role",
"determines",
"what",
"actions",
"a",
"user",
"can",
"take",
"in",
"an",
"aws",
"code",
"star",
"project",
"<",
"/",
"p",
">"
] | [
"this",
"project",
"role",
"=",
"project",
"role",
";"
] |
[
"<",
"p",
">",
"the",
"aws",
"code",
"star",
"project",
"role",
"that",
"will",
"apply",
"to",
"this",
"user",
"this",
"role",
"determines",
"what",
"actions",
"a",
"user",
"can",
"take",
"in",
"an",
"aws",
"code",
"star",
"project",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"project",
"role",
";"
] |
[
"<",
"p",
">",
"the",
"project",
"role",
"granted",
"to",
"the",
"user",
"<",
"/",
"p",
">"
] | [
"set",
"project",
"role",
"(",
"project",
"role",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"whether",
"the",
"team",
"member",
"is",
"allowed",
"to",
"use",
"an",
"ssh",
"public",
"/",
"private",
"key",
"pair",
"to",
"remotely",
"access",
"project",
"resources",
"for",
"example",
"amazon",
"ec2",
"instances",
"<",
"/",
"p",
">"
] | [
"this",
"remote",
"access",
"allowed",
"=",
"remote",
"access",
"allowed",
";"
] |
[
"<",
"p",
">",
"whether",
"the",
"team",
"member",
"is",
"allowed",
"to",
"use",
"an",
"ssh",
"public",
"/",
"private",
"key",
"pair",
"to",
"remotely",
"access",
"project",
"resources",
"for",
"example",
"amazon",
"ec2",
"instances",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"remote",
"access",
"allowed",
";"
] |
[
"<",
"p",
">",
"whether",
"a",
"team",
"member",
"is",
"allowed",
"to",
"remotely",
"access",
"project",
"resources",
"using",
"the",
"ssh",
"public",
"key",
"associated",
"with",
"the",
"user",
"s",
"profile",
"<",
"/",
"p",
">"
] | [
"set",
"remote",
"access",
"allowed",
"(",
"remote",
"access",
"allowed",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"whether",
"the",
"team",
"member",
"is",
"allowed",
"to",
"use",
"an",
"ssh",
"public",
"/",
"private",
"key",
"pair",
"to",
"remotely",
"access",
"project",
"resources",
"for",
"example",
"amazon",
"ec2",
"instances",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"remote",
"access",
"allowed",
";"
] |
[
"<",
"p",
">",
"the",
"code",
"for",
"an",
"aws",
"service",
"returned",
"by",
"the",
"<",
"a",
">",
"describe",
"services",
"<",
"/",
"a",
">",
"response",
"the",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"element",
"contains",
"the",
"corresponding",
"friendly",
"name",
"<",
"/",
"p",
">"
] | [
"set",
"code",
"(",
"code",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"categories",
"that",
"describe",
"the",
"type",
"of",
"support",
"issue",
"a",
"case",
"describes",
"categories",
"consist",
"of",
"a",
"category",
"name",
"and",
"a",
"category",
"code",
"category",
"names",
"and",
"codes",
"are",
"passed",
"to",
"aws",
"support",
"when",
"you",
"call",
"<",
"a",
">",
"create",
"case",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"categories",
"=",
"=",
"null",
")",
"{",
"categories",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"category",
">",
"(",
")",
";",
"}",
"return",
"categories",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"categories",
"that",
"describe",
"the",
"type",
"of",
"support",
"issue",
"a",
"case",
"describes",
"categories",
"consist",
"of",
"a",
"category",
"name",
"and",
"a",
"category",
"code",
"category",
"names",
"and",
"codes",
"are",
"passed",
"to",
"aws",
"support",
"when",
"you",
"call",
"<",
"a",
">",
"create",
"case",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"categories",
"=",
"=",
"null",
")",
"{",
"this",
"categories",
"=",
"null",
";",
"return",
";",
"}",
"this",
"categories",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"category",
">",
"(",
"categories",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"categories",
"that",
"describe",
"the",
"type",
"of",
"support",
"issue",
"a",
"case",
"describes",
"categories",
"consist",
"of",
"a",
"category",
"name",
"and",
"a",
"category",
"code",
"category",
"names",
"and",
"codes",
"are",
"passed",
"to",
"aws",
"support",
"when",
"you",
"call",
"<",
"a",
">",
"create",
"case",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"categories",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"categories",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"categories",
"=",
"=",
"null",
")",
"{",
"set",
"categories",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"category",
">",
"(",
"categories",
"length",
")",
")",
";",
"}",
"for",
"(",
"category",
"ele",
":",
"categories",
")",
"{",
"this",
"categories",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"categories",
"that",
"describe",
"the",
"type",
"of",
"support",
"issue",
"a",
"case",
"describes",
"categories",
"consist",
"of",
"a",
"category",
"name",
"and",
"a",
"category",
"code",
"category",
"names",
"and",
"codes",
"are",
"passed",
"to",
"aws",
"support",
"when",
"you",
"call",
"<",
"a",
">",
"create",
"case",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"set",
"categories",
"(",
"categories",
")",
";",
"return",
"this",
";"
] |
[
"build",
"listing",
"function",
"creates",
"the",
"input",
"listing",
"that",
"distcp",
"uses",
"to",
"perform",
"the",
"copy"
] | [
"validate",
"paths",
"(",
"options",
")",
";",
"do",
"build",
"listing",
"(",
"path",
"to",
"list",
"file",
",",
"options",
")",
";",
"configuration",
"config",
"=",
"get",
"conf",
"(",
")",
";",
"config",
"set",
"(",
"dist",
"cp",
"constants",
"conf",
"label",
"listing",
"file",
"path",
",",
"path",
"to",
"list",
"file",
"to",
"string",
"(",
")",
")",
";",
"config",
"set",
"long",
"(",
"dist",
"cp",
"constants",
"conf",
"label",
"total",
"bytes",
"to",
"be",
"copied",
",",
"get",
"bytes",
"to",
"copy",
"(",
")",
")",
";",
"config",
"set",
"long",
"(",
"dist",
"cp",
"constants",
"conf",
"label",
"total",
"number",
"of",
"records",
",",
"get",
"number",
"of",
"paths",
"(",
")",
")",
";",
"validate",
"final",
"listing",
"(",
"path",
"to",
"list",
"file",
",",
"options",
")",
";"
] |
[
"validate",
"input",
"and",
"output",
"paths"
] | [
"protected",
"abstract",
"void",
"validate",
"paths",
"(",
"dist",
"cp",
"options",
"options",
")",
"throws",
"i",
"o",
"exception",
",",
"invalid",
"input",
"exception",
";"
] |
[
"the",
"interface",
"to",
"be",
"implemented",
"by",
"sub",
"-",
"classes",
"to",
"create",
"the",
"source",
"/",
"target",
"file",
"listing"
] | [
"protected",
"abstract",
"void",
"do",
"build",
"listing",
"(",
"path",
"path",
"to",
"list",
"file",
",",
"dist",
"cp",
"options",
"options",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"return",
"the",
"total",
"bytes",
"that",
"dist",
"cp",
"should",
"copy",
"for",
"the",
"source",
"paths",
"this",
"doesn",
"t",
"consider",
"whether",
"file",
"is",
"same",
"should",
"be",
"skipped",
"during",
"copy"
] | [
"protected",
"abstract",
"long",
"get",
"bytes",
"to",
"copy",
"(",
")",
";"
] |
[
"return",
"the",
"total",
"number",
"of",
"paths",
"to",
"distcp",
"includes",
"directories",
"as",
"well",
"this",
"doesn",
"t",
"consider",
"whether",
"file",
"/",
"dir",
"is",
"already",
"present",
"and",
"should",
"be",
"skipped",
"during",
"copy"
] | [
"protected",
"abstract",
"long",
"get",
"number",
"of",
"paths",
"(",
")",
";"
] |
[
"set",
"credentials",
"store",
"on",
"which",
"fs",
"delegatin",
"token",
"will",
"be",
"cached"
] | [
"this",
"credentials",
"=",
"credentials",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"environment",
"name",
"(",
"environment",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"environment",
"id",
"(",
"environment",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"application",
"associated",
"with",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"application",
"name",
"(",
"application",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"application",
"version",
"deployed",
"in",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"version",
"label",
"(",
"version",
"label",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"<",
"code",
">",
"solution",
"stack",
"<",
"/",
"code",
">",
"deployed",
"with",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"solution",
"stack",
"name",
"(",
"solution",
"stack",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"platform",
"<",
"/",
"p",
">"
] | [
"set",
"platform",
"arn",
"(",
"platform",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"configuration",
"template",
"used",
"to",
"originally",
"launch",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"template",
"name",
"(",
"template",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"describes",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"for",
"load",
"-",
"balanced",
"autoscaling",
"environments",
"the",
"url",
"to",
"the",
"load",
"balancer",
"for",
"single",
"-",
"instance",
"environments",
"the",
"ip",
"address",
"of",
"the",
"instance",
"<",
"/",
"p",
">"
] | [
"set",
"endpoint",
"u",
"r",
"l",
"(",
"endpoint",
"u",
"r",
"l",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"url",
"to",
"the",
"cname",
"for",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"c",
"n",
"a",
"m",
"e",
"(",
"c",
"n",
"a",
"m",
"e",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"creation",
"date",
"for",
"this",
"environment",
"<",
"/",
"p",
">"
] | [
"set",
"date",
"created",
"(",
"date",
"created",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.