docstring_tokens
list | code_tokens
list |
---|---|
[
"<",
"p",
">",
"filters",
"the",
"available",
"log",
"files",
"for",
"files",
"written",
"since",
"the",
"specified",
"date",
"in",
"posix",
"timestamp",
"format",
"with",
"milliseconds",
"<",
"/",
"p",
">"
]
| [
"set",
"file",
"last",
"written",
"(",
"file",
"last",
"written",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"filters",
"the",
"available",
"log",
"files",
"for",
"files",
"larger",
"than",
"the",
"specified",
"size",
"<",
"/",
"p",
">"
]
| [
"set",
"file",
"size",
"(",
"file",
"size",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"this",
"parameter",
"is",
"not",
"currently",
"supported",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"filters",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"filters",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"filters",
"=",
"=",
"null",
")",
"{",
"set",
"filters",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"filter",
">",
"(",
"filters",
"length",
")",
")",
";",
"}",
"for",
"(",
"filter",
"ele",
":",
"filters",
")",
"{",
"this",
"filters",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"this",
"parameter",
"is",
"not",
"currently",
"supported",
"<",
"/",
"p",
">"
]
| [
"set",
"filters",
"(",
"filters",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"records",
"to",
"include",
"in",
"the",
"response",
"if",
"more",
"records",
"exist",
"than",
"the",
"specified",
"max",
"records",
"value",
"a",
"pagination",
"token",
"called",
"a",
"marker",
"is",
"included",
"in",
"the",
"response",
"so",
"that",
"the",
"remaining",
"results",
"can",
"be",
"retrieved",
"<",
"/",
"p",
">"
]
| [
"set",
"max",
"records",
"(",
"max",
"records",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"pagination",
"token",
"provided",
"in",
"the",
"previous",
"request",
"if",
"this",
"parameter",
"is",
"specified",
"the",
"response",
"includes",
"only",
"records",
"beyond",
"the",
"marker",
"up",
"to",
"max",
"records",
"<",
"/",
"p",
">"
]
| [
"set",
"marker",
"(",
"marker",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"arn",
"of",
"the",
"definition"
]
| [
"set",
"arn",
"(",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"time",
"in",
"milliseconds",
"since",
"the",
"epoch",
"when",
"the",
"definition",
"was",
"created"
]
| [
"set",
"creation",
"timestamp",
"(",
"creation",
"timestamp",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"id",
"of",
"the",
"definition"
]
| [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"time",
"in",
"milliseconds",
"since",
"the",
"epoch",
"when",
"the",
"definition",
"was",
"last",
"updated"
]
| [
"set",
"last",
"updated",
"timestamp",
"(",
"last",
"updated",
"timestamp",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"latest",
"version",
"of",
"the",
"definition"
]
| [
"set",
"latest",
"version",
"(",
"latest",
"version",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"arn",
"of",
"the",
"latest",
"version",
"of",
"the",
"definition"
]
| [
"set",
"latest",
"version",
"arn",
"(",
"latest",
"version",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"name",
"of",
"the",
"definition"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"{"
]
| [
"return",
"rs",
"get",
"string",
"(",
"index",
")",
";"
]
|
[
"{"
]
| [
"st",
"set",
"string",
"(",
"index",
",",
"value",
")",
";"
]
|
[
"resize",
"the",
"underlying",
"array",
"holding",
"the",
"elements"
]
| [
"assert",
"capacity",
">",
"=",
"n",
";",
"item",
"[",
"]",
"temp",
"=",
"(",
"item",
"[",
"]",
")",
"new",
"object",
"[",
"capacity",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"temp",
"[",
"i",
"]",
"=",
"a",
"[",
"i",
"]",
";",
"a",
"=",
"temp",
";"
]
|
[
"concatenates",
"a",
"filename",
"to",
"a",
"base",
"path",
"using",
"normal",
"command",
"line",
"style",
"rules",
"<",
"p",
">",
"the",
"effect",
"is",
"equivalent",
"to",
"resultant",
"directory",
"after",
"changing",
"directory",
"to",
"the",
"first",
"argument",
"followed",
"by",
"changing",
"directory",
"to",
"the",
"second",
"argument",
"<",
"p",
">",
"the",
"first",
"argument",
"is",
"the",
"base",
"path",
"the",
"second",
"is",
"the",
"path",
"to",
"concatenate",
"the",
"returned",
"path",
"is",
"always",
"normalized",
"via",
"{",
"@",
"link",
"#",
"normalize",
"(",
"string",
")",
"}",
"thus",
"<",
"code",
">",
"<",
"/",
"code",
">",
"is",
"handled",
"<",
"p",
">",
"if",
"<",
"code",
">",
"path",
"to",
"add",
"<",
"/",
"code",
">",
"is",
"absolute",
"(",
"has",
"an",
"absolute",
"prefix",
")",
"then",
"it",
"will",
"be",
"normalized",
"and",
"returned",
"otherwise",
"the",
"paths",
"will",
"be",
"joined",
"normalized",
"and",
"returned",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"on",
"both",
"unix",
"and",
"windows",
"except",
"for",
"the",
"separator",
"character",
"<",
"pre",
">",
"/",
"foo",
"/",
"+",
"bar",
"-",
"-",
">",
"/",
"foo",
"/",
"bar",
"/",
"foo",
"+",
"bar",
"-",
"-",
">",
"/",
"foo",
"/",
"bar",
"/",
"foo",
"+",
"/",
"bar",
"-",
"-",
">",
"/",
"bar",
"/",
"foo",
"+",
"c",
":",
"/",
"bar",
"-",
"-",
">",
"c",
":",
"/",
"bar",
"/",
"foo",
"+",
"c",
":",
"bar",
"-",
"-",
">",
"c",
":",
"bar",
"(",
"*",
")",
"/",
"foo",
"/",
"a",
"/",
"+",
"/",
"bar",
"-",
"-",
">",
"foo",
"/",
"bar",
"/",
"foo",
"/",
"+",
"/",
"/",
"bar",
"-",
"-",
">",
"null",
"/",
"foo",
"/",
"+",
"/",
"bar",
"-",
"-",
">",
"/",
"bar",
"/",
"foo",
"/",
"+",
"/",
"bar",
"-",
"-",
">",
"/",
"bar",
"/",
"foo",
"+",
"bar",
"/",
"c",
"txt",
"-",
"-",
">",
"/",
"foo",
"/",
"bar",
"/",
"c",
"txt",
"/",
"foo",
"/",
"c",
"txt",
"+",
"bar",
"-",
"-",
">",
"/",
"foo",
"/",
"c",
"txt",
"/",
"bar",
"(",
"!",
")",
"<",
"/",
"pre",
">",
"(",
"*",
")",
"note",
"that",
"the",
"windows",
"relative",
"drive",
"prefix",
"is",
"unreliable",
"when",
"used",
"with",
"this",
"method",
"(",
"!",
")",
"note",
"that",
"the",
"first",
"parameter",
"must",
"be",
"a",
"path",
"if",
"it",
"ends",
"with",
"a",
"name",
"then",
"the",
"name",
"will",
"be",
"built",
"into",
"the",
"concatenated",
"path",
"if",
"this",
"might",
"be",
"a",
"problem",
"use",
"{",
"@",
"link",
"#",
"get",
"full",
"path",
"(",
"string",
")",
"}",
"on",
"the",
"base",
"path",
"argument"
]
| [
"int",
"prefix",
"=",
"get",
"prefix",
"length",
"(",
"full",
"filename",
"to",
"add",
")",
";",
"if",
"(",
"prefix",
"<",
"0",
")",
"return",
"null",
";",
"if",
"(",
"prefix",
">",
"0",
")",
"return",
"normalize",
"(",
"full",
"filename",
"to",
"add",
")",
";",
"if",
"(",
"base",
"path",
"=",
"=",
"null",
")",
"return",
"null",
";",
"int",
"len",
"=",
"base",
"path",
"length",
"(",
")",
";",
"if",
"(",
"len",
"=",
"=",
"0",
")",
"return",
"normalize",
"(",
"full",
"filename",
"to",
"add",
")",
";",
"char",
"ch",
"=",
"base",
"path",
"char",
"at",
"(",
"len",
"-",
"1",
")",
";",
"if",
"(",
"is",
"separator",
"(",
"ch",
")",
")",
"return",
"normalize",
"(",
"base",
"path",
"+",
"full",
"filename",
"to",
"add",
")",
";",
"else",
"return",
"normalize",
"(",
"base",
"path",
"+",
"'",
"/",
"'",
"+",
"full",
"filename",
"to",
"add",
")",
";"
]
|
[
"converts",
"all",
"separators",
"to",
"the",
"unix",
"separator",
"of",
"forward",
"slash"
]
| [
"if",
"(",
"path",
"=",
"=",
"null",
"|",
"|",
"path",
"index",
"of",
"(",
"windows",
"separator",
")",
"=",
"=",
"-",
"1",
")",
"return",
"path",
";",
"return",
"path",
"replace",
"(",
"windows",
"separator",
",",
"unix",
"separator",
")",
";"
]
|
[
"converts",
"all",
"separators",
"to",
"the",
"windows",
"separator",
"of",
"backslash"
]
| [
"if",
"(",
"path",
"=",
"=",
"null",
"|",
"|",
"path",
"index",
"of",
"(",
"unix",
"separator",
")",
"=",
"=",
"-",
"1",
")",
"return",
"path",
";",
"return",
"path",
"replace",
"(",
"unix",
"separator",
",",
"windows",
"separator",
")",
";"
]
|
[
"converts",
"all",
"separators",
"to",
"the",
"system",
"separator"
]
| [
"if",
"(",
"path",
"=",
"=",
"null",
")",
"return",
"null",
";",
"if",
"(",
"is",
"system",
"windows",
"(",
")",
")",
"return",
"separators",
"to",
"windows",
"(",
"path",
")",
";",
"else",
"return",
"separators",
"to",
"unix",
"(",
"path",
")",
";"
]
|
[
"returns",
"the",
"index",
"of",
"the",
"last",
"directory",
"separator",
"character",
"<",
"p",
">",
"this",
"method",
"will",
"handle",
"a",
"file",
"in",
"either",
"unix",
"or",
"windows",
"format",
"the",
"position",
"of",
"the",
"last",
"forward",
"or",
"backslash",
"is",
"returned",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"irrespective",
"of",
"the",
"machine",
"that",
"the",
"code",
"is",
"running",
"on"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"-",
"1",
";",
"int",
"last",
"unix",
"pos",
"=",
"filename",
"last",
"index",
"of",
"(",
"unix",
"separator",
")",
";",
"int",
"last",
"windows",
"pos",
"=",
"filename",
"last",
"index",
"of",
"(",
"windows",
"separator",
")",
";",
"return",
"math",
"max",
"(",
"last",
"unix",
"pos",
",",
"last",
"windows",
"pos",
")",
";"
]
|
[
"returns",
"the",
"index",
"of",
"the",
"last",
"extension",
"separator",
"character",
"which",
"is",
"a",
"dot",
"<",
"p",
">",
"this",
"method",
"also",
"checks",
"that",
"there",
"is",
"no",
"directory",
"separator",
"after",
"the",
"last",
"dot",
"to",
"do",
"this",
"it",
"uses",
"{",
"@",
"link",
"#",
"index",
"of",
"last",
"separator",
"(",
"string",
")",
"}",
"which",
"will",
"handle",
"a",
"file",
"in",
"either",
"unix",
"or",
"windows",
"format",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"irrespective",
"of",
"the",
"machine",
"that",
"the",
"code",
"is",
"running",
"on"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"-",
"1",
";",
"int",
"extension",
"pos",
"=",
"filename",
"last",
"index",
"of",
"(",
"extension",
"separator",
")",
";",
"int",
"last",
"separator",
"=",
"index",
"of",
"last",
"separator",
"(",
"filename",
")",
";",
"return",
"last",
"separator",
">",
"extension",
"pos",
"?",
"-",
"1",
":",
"extension",
"pos",
";"
]
|
[
"does",
"the",
"work",
"of",
"getting",
"the",
"path"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"null",
";",
"int",
"prefix",
"=",
"get",
"prefix",
"length",
"(",
"filename",
")",
";",
"if",
"(",
"prefix",
"<",
"0",
")",
"return",
"null",
";",
"int",
"index",
"=",
"index",
"of",
"last",
"separator",
"(",
"filename",
")",
";",
"int",
"end",
"index",
"=",
"index",
"+",
"separator",
"add",
";",
"if",
"(",
"prefix",
">",
"=",
"filename",
"length",
"(",
")",
"|",
"|",
"index",
"<",
"0",
"|",
"|",
"prefix",
">",
"=",
"end",
"index",
")",
"return",
"\"",
"\"",
";",
"return",
"filename",
"substring",
"(",
"prefix",
",",
"end",
"index",
")",
";"
]
|
[
"gets",
"the",
"name",
"minus",
"the",
"path",
"from",
"a",
"full",
"filename",
"<",
"p",
">",
"this",
"method",
"will",
"handle",
"a",
"file",
"in",
"either",
"unix",
"or",
"windows",
"format",
"the",
"text",
"after",
"the",
"last",
"forward",
"or",
"backslash",
"is",
"returned",
"<",
"pre",
">",
"a",
"/",
"b",
"/",
"c",
"txt",
"-",
"-",
">",
"c",
"txt",
"a",
"txt",
"-",
"-",
">",
"a",
"txt",
"a",
"/",
"b",
"/",
"c",
"-",
"-",
">",
"c",
"a",
"/",
"b",
"/",
"c",
"/",
"-",
"-",
">",
"<",
"/",
"pre",
">",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"irrespective",
"of",
"the",
"machine",
"that",
"the",
"code",
"is",
"running",
"on"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"null",
";",
"int",
"index",
"=",
"index",
"of",
"last",
"separator",
"(",
"filename",
")",
";",
"return",
"filename",
"substring",
"(",
"index",
"+",
"1",
")",
";"
]
|
[
"gets",
"the",
"base",
"name",
"minus",
"the",
"full",
"path",
"and",
"extension",
"from",
"a",
"full",
"filename",
"<",
"p",
">",
"this",
"method",
"will",
"handle",
"a",
"file",
"in",
"either",
"unix",
"or",
"windows",
"format",
"the",
"text",
"after",
"the",
"last",
"forward",
"or",
"backslash",
"and",
"before",
"the",
"last",
"dot",
"is",
"returned",
"<",
"pre",
">",
"a",
"/",
"b",
"/",
"c",
"txt",
"-",
"-",
">",
"c",
"a",
"txt",
"-",
"-",
">",
"a",
"a",
"/",
"b",
"/",
"c",
"-",
"-",
">",
"c",
"a",
"/",
"b",
"/",
"c",
"/",
"-",
"-",
">",
"<",
"/",
"pre",
">",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"irrespective",
"of",
"the",
"machine",
"that",
"the",
"code",
"is",
"running",
"on"
]
| [
"return",
"remove",
"extension",
"(",
"get",
"name",
"(",
"filename",
")",
")",
";"
]
|
[
"gets",
"the",
"extension",
"of",
"a",
"filename",
"<",
"p",
">",
"this",
"method",
"returns",
"the",
"textual",
"part",
"of",
"the",
"filename",
"after",
"the",
"last",
"dot",
"there",
"must",
"be",
"no",
"directory",
"separator",
"after",
"the",
"dot",
"<",
"pre",
">",
"foo",
"txt",
"-",
"-",
">",
"txt",
"a",
"/",
"b",
"/",
"c",
"jpg",
"-",
"-",
">",
"jpg",
"a",
"/",
"b",
"txt",
"/",
"c",
"-",
"-",
">",
"a",
"/",
"b",
"/",
"c",
"-",
"-",
">",
"<",
"/",
"pre",
">",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"irrespective",
"of",
"the",
"machine",
"that",
"the",
"code",
"is",
"running",
"on"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"null",
";",
"int",
"index",
"=",
"index",
"of",
"extension",
"(",
"filename",
")",
";",
"if",
"(",
"index",
"=",
"=",
"-",
"1",
")",
"return",
"\"",
"\"",
";",
"else",
"return",
"filename",
"substring",
"(",
"index",
"+",
"1",
")",
";"
]
|
[
"removes",
"the",
"extension",
"from",
"a",
"filename",
"<",
"p",
">",
"this",
"method",
"returns",
"the",
"textual",
"part",
"of",
"the",
"filename",
"before",
"the",
"last",
"dot",
"there",
"must",
"be",
"no",
"directory",
"separator",
"after",
"the",
"dot",
"<",
"pre",
">",
"foo",
"txt",
"-",
"-",
">",
"foo",
"a",
"\\",
"b",
"\\",
"c",
"jpg",
"-",
"-",
">",
"a",
"\\",
"b",
"\\",
"c",
"a",
"\\",
"b",
"\\",
"c",
"-",
"-",
">",
"a",
"\\",
"b",
"\\",
"c",
"a",
"b",
"\\",
"c",
"-",
"-",
">",
"a",
"b",
"\\",
"c",
"<",
"/",
"pre",
">",
"<",
"p",
">",
"the",
"output",
"will",
"be",
"the",
"same",
"irrespective",
"of",
"the",
"machine",
"that",
"the",
"code",
"is",
"running",
"on"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"null",
";",
"int",
"index",
"=",
"index",
"of",
"extension",
"(",
"filename",
")",
";",
"if",
"(",
"index",
"=",
"=",
"-",
"1",
")",
"return",
"filename",
";",
"else",
"return",
"filename",
"substring",
"(",
"0",
",",
"index",
")",
";"
]
|
[
"checks",
"whether",
"two",
"filenames",
"are",
"equal",
"exactly",
"<",
"p",
">",
"no",
"processing",
"is",
"performed",
"on",
"the",
"filenames",
"other",
"than",
"comparison",
"thus",
"this",
"is",
"merely",
"a",
"null",
"-",
"safe",
"case",
"-",
"sensitive",
"equals"
]
| [
"return",
"equals",
"(",
"filename",
"1",
",",
"filename",
"2",
",",
"false",
",",
"i",
"o",
"case",
"sensitive",
")",
";"
]
|
[
"checks",
"whether",
"two",
"filenames",
"are",
"equal",
"using",
"the",
"case",
"rules",
"of",
"the",
"system",
"<",
"p",
">",
"no",
"processing",
"is",
"performed",
"on",
"the",
"filenames",
"other",
"than",
"comparison",
"the",
"check",
"is",
"case",
"-",
"sensitive",
"on",
"unix",
"and",
"case",
"-",
"insensitive",
"on",
"windows"
]
| [
"return",
"equals",
"(",
"filename",
"1",
",",
"filename",
"2",
",",
"false",
",",
"i",
"o",
"case",
"system",
")",
";"
]
|
[
"checks",
"whether",
"two",
"filenames",
"are",
"equal",
"after",
"both",
"have",
"been",
"normalized",
"<",
"p",
">",
"both",
"filenames",
"are",
"first",
"passed",
"to",
"{",
"@",
"link",
"#",
"normalize",
"(",
"string",
")",
"}",
"the",
"check",
"is",
"then",
"performed",
"in",
"a",
"case",
"-",
"sensitive",
"manner"
]
| [
"return",
"equals",
"(",
"filename",
"1",
",",
"filename",
"2",
",",
"true",
",",
"i",
"o",
"case",
"sensitive",
")",
";"
]
|
[
"checks",
"whether",
"two",
"filenames",
"are",
"equal",
"after",
"both",
"have",
"been",
"normalized",
"and",
"using",
"the",
"case",
"rules",
"of",
"the",
"system",
"<",
"p",
">",
"both",
"filenames",
"are",
"first",
"passed",
"to",
"{",
"@",
"link",
"#",
"normalize",
"(",
"string",
")",
"}",
"the",
"check",
"is",
"then",
"performed",
"case",
"-",
"sensitive",
"on",
"unix",
"and",
"case",
"-",
"insensitive",
"on",
"windows"
]
| [
"return",
"equals",
"(",
"filename",
"1",
",",
"filename",
"2",
",",
"true",
",",
"i",
"o",
"case",
"system",
")",
";"
]
|
[
"checks",
"whether",
"the",
"extension",
"of",
"the",
"filename",
"is",
"that",
"specified",
"<",
"p",
">",
"this",
"method",
"obtains",
"the",
"extension",
"as",
"the",
"textual",
"part",
"of",
"the",
"filename",
"after",
"the",
"last",
"dot",
"there",
"must",
"be",
"no",
"directory",
"separator",
"after",
"the",
"dot",
"the",
"extension",
"check",
"is",
"case",
"-",
"sensitive",
"on",
"all",
"platforms"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"false",
";",
"if",
"(",
"extension",
"=",
"=",
"null",
"|",
"|",
"extension",
"is",
"empty",
"(",
")",
")",
"return",
"index",
"of",
"extension",
"(",
"filename",
")",
"=",
"=",
"-",
"1",
";",
"string",
"file",
"ext",
"=",
"get",
"extension",
"(",
"filename",
")",
";",
"return",
"file",
"ext",
"equals",
"(",
"extension",
")",
";"
]
|
[
"checks",
"whether",
"the",
"extension",
"of",
"the",
"filename",
"is",
"one",
"of",
"those",
"specified",
"<",
"p",
">",
"this",
"method",
"obtains",
"the",
"extension",
"as",
"the",
"textual",
"part",
"of",
"the",
"filename",
"after",
"the",
"last",
"dot",
"there",
"must",
"be",
"no",
"directory",
"separator",
"after",
"the",
"dot",
"the",
"extension",
"check",
"is",
"case",
"-",
"sensitive",
"on",
"all",
"platforms"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"false",
";",
"if",
"(",
"extensions",
"=",
"=",
"null",
"|",
"|",
"extensions",
"length",
"=",
"=",
"0",
")",
"return",
"index",
"of",
"extension",
"(",
"filename",
")",
"=",
"=",
"-",
"1",
";",
"string",
"file",
"ext",
"=",
"get",
"extension",
"(",
"filename",
")",
";",
"for",
"(",
"string",
"extension",
":",
"extensions",
")",
"{",
"if",
"(",
"file",
"ext",
"equals",
"(",
"extension",
")",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
]
|
[
"checks",
"whether",
"the",
"extension",
"of",
"the",
"filename",
"is",
"one",
"of",
"those",
"specified",
"<",
"p",
">",
"this",
"method",
"obtains",
"the",
"extension",
"as",
"the",
"textual",
"part",
"of",
"the",
"filename",
"after",
"the",
"last",
"dot",
"there",
"must",
"be",
"no",
"directory",
"separator",
"after",
"the",
"dot",
"the",
"extension",
"check",
"is",
"case",
"-",
"sensitive",
"on",
"all",
"platforms"
]
| [
"if",
"(",
"filename",
"=",
"=",
"null",
")",
"return",
"false",
";",
"if",
"(",
"extensions",
"=",
"=",
"null",
"|",
"|",
"extensions",
"is",
"empty",
"(",
")",
")",
"return",
"index",
"of",
"extension",
"(",
"filename",
")",
"=",
"=",
"-",
"1",
";",
"string",
"file",
"ext",
"=",
"get",
"extension",
"(",
"filename",
")",
";",
"for",
"(",
"string",
"extension",
":",
"extensions",
")",
"{",
"if",
"(",
"file",
"ext",
"equals",
"(",
"extension",
")",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
]
|
[
"checks",
"a",
"filename",
"to",
"see",
"if",
"it",
"matches",
"the",
"specified",
"wildcard",
"matcher",
"always",
"testing",
"case",
"-",
"sensitive",
"<",
"p",
">",
"the",
"wildcard",
"matcher",
"uses",
"the",
"characters",
"?",
"and",
"*",
"to",
"represent",
"a",
"single",
"or",
"multiple",
"(",
"zero",
"or",
"more",
")",
"wildcard",
"characters",
"this",
"is",
"the",
"same",
"as",
"often",
"found",
"on",
"dos",
"/",
"unix",
"command",
"lines",
"the",
"check",
"is",
"case",
"-",
"sensitive",
"always",
"<",
"pre",
">",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"txt",
")",
"-",
"-",
">",
"true",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"jpg",
")",
"-",
"-",
">",
"false",
"wildcard",
"match",
"(",
"a",
"/",
"b",
"/",
"c",
"txt",
"a",
"/",
"b",
"/",
"*",
")",
"-",
"-",
">",
"true",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"?",
"?",
"?",
")",
"-",
"-",
">",
"true",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"?",
"?",
"?",
"?",
")",
"-",
"-",
">",
"false",
"<",
"/",
"pre",
">",
"n",
"b",
"the",
"sequence",
"*",
"?",
"does",
"not",
"work",
"properly",
"at",
"present",
"in",
"match",
"strings"
]
| [
"return",
"wildcard",
"match",
"(",
"filename",
",",
"wildcard",
"matcher",
",",
"i",
"o",
"case",
"sensitive",
")",
";"
]
|
[
"checks",
"a",
"filename",
"to",
"see",
"if",
"it",
"matches",
"the",
"specified",
"wildcard",
"matcher",
"using",
"the",
"case",
"rules",
"of",
"the",
"system",
"<",
"p",
">",
"the",
"wildcard",
"matcher",
"uses",
"the",
"characters",
"?",
"and",
"*",
"to",
"represent",
"a",
"single",
"or",
"multiple",
"(",
"zero",
"or",
"more",
")",
"wildcard",
"characters",
"this",
"is",
"the",
"same",
"as",
"often",
"found",
"on",
"dos",
"/",
"unix",
"command",
"lines",
"the",
"check",
"is",
"case",
"-",
"sensitive",
"on",
"unix",
"and",
"case",
"-",
"insensitive",
"on",
"windows",
"<",
"pre",
">",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"txt",
")",
"-",
"-",
">",
"true",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"jpg",
")",
"-",
"-",
">",
"false",
"wildcard",
"match",
"(",
"a",
"/",
"b",
"/",
"c",
"txt",
"a",
"/",
"b",
"/",
"*",
")",
"-",
"-",
">",
"true",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"?",
"?",
"?",
")",
"-",
"-",
">",
"true",
"wildcard",
"match",
"(",
"c",
"txt",
"*",
"?",
"?",
"?",
"?",
")",
"-",
"-",
">",
"false",
"<",
"/",
"pre",
">",
"n",
"b",
"the",
"sequence",
"*",
"?",
"does",
"not",
"work",
"properly",
"at",
"present",
"in",
"match",
"strings"
]
| [
"return",
"wildcard",
"match",
"(",
"filename",
",",
"wildcard",
"matcher",
",",
"i",
"o",
"case",
"system",
")",
";"
]
|
[
"replaces",
"the",
"enumeration",
"from",
"the",
"stream",
"with",
"a",
"real",
"one",
"this",
"ensures",
"that",
"the",
"correct",
"flag",
"is",
"set",
"for",
"system"
]
| [
"return",
"for",
"name",
"(",
"name",
")",
";"
]
|
[
"does",
"the",
"object",
"represent",
"case",
"sensitive",
"comparison"
]
| [
"return",
"sensitive",
";"
]
|
[
"checks",
"if",
"one",
"string",
"starts",
"with",
"another",
"using",
"the",
"case",
"-",
"sensitivity",
"rule",
"<",
"p",
">",
"this",
"method",
"mimics",
"{",
"@",
"link",
"string",
"#",
"starts",
"with",
"(",
"string",
")",
"}",
"but",
"takes",
"case",
"-",
"sensitivity",
"into",
"account"
]
| [
"return",
"str",
"region",
"matches",
"(",
"!",
"sensitive",
",",
"0",
",",
"start",
",",
"0",
",",
"start",
"length",
"(",
")",
")",
";"
]
|
[
"checks",
"if",
"one",
"string",
"ends",
"with",
"another",
"using",
"the",
"case",
"-",
"sensitivity",
"rule",
"<",
"p",
">",
"this",
"method",
"mimics",
"{",
"@",
"link",
"string",
"#",
"ends",
"with",
"}",
"but",
"takes",
"case",
"-",
"sensitivity",
"into",
"account"
]
| [
"int",
"end",
"len",
"=",
"end",
"length",
"(",
")",
";",
"return",
"str",
"region",
"matches",
"(",
"!",
"sensitive",
",",
"str",
"length",
"(",
")",
"-",
"end",
"len",
",",
"end",
",",
"0",
",",
"end",
"len",
")",
";"
]
|
[
"checks",
"if",
"one",
"string",
"contains",
"another",
"starting",
"at",
"a",
"specific",
"index",
"using",
"the",
"case",
"-",
"sensitivity",
"rule",
"<",
"p",
">",
"this",
"method",
"mimics",
"parts",
"of",
"{",
"@",
"link",
"string",
"#",
"index",
"of",
"(",
"string",
"int",
")",
"}",
"but",
"takes",
"case",
"-",
"sensitivity",
"into",
"account"
]
| [
"int",
"end",
"index",
"=",
"str",
"length",
"(",
")",
"-",
"search",
"length",
"(",
")",
";",
"if",
"(",
"end",
"index",
">",
"=",
"str",
"start",
"index",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"str",
"start",
"index",
";",
"i",
"<",
"=",
"end",
"index",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"check",
"region",
"matches",
"(",
"str",
",",
"i",
",",
"search",
")",
")",
"return",
"i",
";",
"}",
"}",
"return",
"-",
"1",
";"
]
|
[
"checks",
"if",
"one",
"string",
"contains",
"another",
"at",
"a",
"specific",
"index",
"using",
"the",
"case",
"-",
"sensitivity",
"rule",
"<",
"p",
">",
"this",
"method",
"mimics",
"parts",
"of",
"{",
"@",
"link",
"string",
"#",
"region",
"matches",
"(",
"boolean",
"int",
"string",
"int",
"int",
")",
"}",
"but",
"takes",
"case",
"-",
"sensitivity",
"into",
"account"
]
| [
"return",
"str",
"region",
"matches",
"(",
"!",
"sensitive",
",",
"str",
"start",
"index",
",",
"search",
",",
"0",
",",
"search",
"length",
"(",
")",
")",
";"
]
|
[
"/",
"*"
]
| [
"return",
"upload",
"fieldname",
";"
]
|
[
"/",
"*"
]
| [
"this",
"upload",
"fieldname",
"=",
"upload",
"fieldname",
";"
]
|
[
"/",
"*"
]
| [
"return",
"destination",
"fieldname",
";"
]
|
[
"/",
"*"
]
| [
"this",
"destination",
"fieldname",
"=",
"destination",
"fieldname",
";"
]
|
[
"get",
"the",
"name",
"under",
"which",
"the",
"scheduler",
"m",
"bean",
"is",
"registered",
"on",
"the",
"remote",
"m",
"bean",
"server"
]
| [
"return",
"scheduler",
"object",
"name",
";"
]
|
[
"set",
"the",
"name",
"under",
"which",
"the",
"scheduler",
"m",
"bean",
"is",
"registered",
"on",
"the",
"remote",
"m",
"bean",
"server"
]
| [
"this",
"scheduler",
"object",
"name",
"=",
"scheduler",
"object",
"name",
";"
]
|
[
"initialize",
"this",
"remote",
"m",
"bean",
"scheduler",
"instance",
"connecting",
"to",
"the",
"remote",
"m",
"bean",
"server"
]
| [
"public",
"abstract",
"void",
"initialize",
"(",
")",
"throws",
"scheduler",
"exception",
";"
]
|
[
"get",
"the",
"given",
"attribute",
"of",
"the",
"remote",
"scheduler",
"m",
"bean"
]
| [
"protected",
"abstract",
"object",
"get",
"attribute",
"(",
"string",
"attribute",
")",
"throws",
"scheduler",
"exception",
";"
]
|
[
"get",
"the",
"given",
"attributes",
"of",
"the",
"remote",
"scheduler",
"m",
"bean"
]
| [
"protected",
"abstract",
"attribute",
"list",
"get",
"attributes",
"(",
"string",
"[",
"]",
"attributes",
")",
"throws",
"scheduler",
"exception",
";"
]
|
[
"invoke",
"the",
"given",
"operation",
"on",
"the",
"remote",
"scheduler",
"m",
"bean"
]
| [
"protected",
"abstract",
"object",
"invoke",
"(",
"string",
"operation",
"name",
",",
"object",
"[",
"]",
"params",
",",
"string",
"[",
"]",
"signature",
")",
"throws",
"scheduler",
"exception",
";"
]
|
[
"<",
"p",
">",
"how",
"often",
"the",
"scheduled",
"audit",
"takes",
"place",
"one",
"of",
"daily",
"weekly",
"biweekly",
"or",
"monthly",
"the",
"actual",
"start",
"time",
"of",
"each",
"audit",
"is",
"determined",
"by",
"the",
"system",
"<",
"/",
"p",
">"
]
| [
"set",
"frequency",
"(",
"frequency",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"how",
"often",
"the",
"scheduled",
"audit",
"takes",
"place",
"one",
"of",
"daily",
"weekly",
"biweekly",
"or",
"monthly",
"the",
"actual",
"start",
"time",
"of",
"each",
"audit",
"is",
"determined",
"by",
"the",
"system",
"<",
"/",
"p",
">"
]
| [
"this",
"frequency",
"=",
"frequency",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"day",
"of",
"the",
"month",
"on",
"which",
"the",
"scheduled",
"audit",
"takes",
"place",
"will",
"be",
"1",
"through",
"31",
"or",
"last",
"if",
"days",
"29",
"-",
"31",
"are",
"specified",
"and",
"the",
"month",
"does",
"not",
"have",
"that",
"many",
"days",
"the",
"audit",
"takes",
"place",
"on",
"the",
"last",
"day",
"of",
"the",
"month",
"<",
"/",
"p",
">"
]
| [
"set",
"day",
"of",
"month",
"(",
"day",
"of",
"month",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"day",
"of",
"the",
"week",
"on",
"which",
"the",
"scheduled",
"audit",
"takes",
"place",
"one",
"of",
"sun",
"mon",
"tue",
"wed",
"thu",
"fri",
"or",
"sat",
"<",
"/",
"p",
">"
]
| [
"set",
"day",
"of",
"week",
"(",
"day",
"of",
"week",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"day",
"of",
"the",
"week",
"on",
"which",
"the",
"scheduled",
"audit",
"takes",
"place",
"one",
"of",
"sun",
"mon",
"tue",
"wed",
"thu",
"fri",
"or",
"sat",
"<",
"/",
"p",
">"
]
| [
"this",
"day",
"of",
"week",
"=",
"day",
"of",
"week",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"which",
"checks",
"are",
"performed",
"during",
"the",
"scheduled",
"audit",
"(",
"note",
"that",
"checks",
"must",
"be",
"enabled",
"for",
"your",
"account",
"(",
"use",
"<",
"code",
">",
"describe",
"account",
"audit",
"configuration",
"<",
"/",
"code",
">",
"to",
"see",
"the",
"list",
"of",
"all",
"checks",
"including",
"those",
"that",
"are",
"enabled",
"or",
"<",
"code",
">",
"update",
"account",
"audit",
"configuration",
"<",
"/",
"code",
">",
"to",
"select",
"which",
"checks",
"are",
"enabled",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"target",
"check",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"target",
"check",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"target",
"check",
"names",
"=",
"=",
"null",
")",
"{",
"set",
"target",
"check",
"names",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"target",
"check",
"names",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"target",
"check",
"names",
")",
"{",
"this",
"target",
"check",
"names",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"which",
"checks",
"are",
"performed",
"during",
"the",
"scheduled",
"audit",
"(",
"note",
"that",
"checks",
"must",
"be",
"enabled",
"for",
"your",
"account",
"(",
"use",
"<",
"code",
">",
"describe",
"account",
"audit",
"configuration",
"<",
"/",
"code",
">",
"to",
"see",
"the",
"list",
"of",
"all",
"checks",
"including",
"those",
"that",
"are",
"enabled",
"or",
"<",
"code",
">",
"update",
"account",
"audit",
"configuration",
"<",
"/",
"code",
">",
"to",
"select",
"which",
"checks",
"are",
"enabled",
")",
"<",
"/",
"p",
">"
]
| [
"set",
"target",
"check",
"names",
"(",
"target",
"check",
"names",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"scheduled",
"audit",
"<",
"/",
"p",
">"
]
| [
"set",
"scheduled",
"audit",
"name",
"(",
"scheduled",
"audit",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"scheduled",
"audit",
"<",
"/",
"p",
">"
]
| [
"set",
"scheduled",
"audit",
"arn",
"(",
"scheduled",
"audit",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"note",
":",
"function",
"name",
"cannot",
"start",
"with",
"get",
"because",
"then",
"an",
"open",
"data",
"exception",
"is",
"thrown",
"because",
"h",
"base",
"protos",
"server",
"load",
"cannot",
"be",
"converted",
"to",
"an",
"open",
"data",
"type",
"(",
"see",
"hbase",
"-",
"5967",
")"
]
| [
"return",
"server",
"load",
";"
]
|
[
"call",
"directly",
"from",
"client",
"such",
"as",
"hbase",
"shell"
]
| [
"return",
"metrics",
"get",
"replication",
"load",
"source",
"list",
"(",
")",
";"
]
|
[
"call",
"directly",
"from",
"client",
"such",
"as",
"hbase",
"shell"
]
| [
"return",
"metrics",
"get",
"replication",
"load",
"sink",
"(",
")",
";"
]
|
[
"a",
"value",
"to",
"use",
"for",
"the",
"field",
"if",
"the",
"field",
"isn",
"t",
"specified",
"for",
"a",
"document"
]
| [
"set",
"default",
"value",
"(",
"default",
"value",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"source",
"fields",
"to",
"map",
"to",
"the",
"field",
"<",
"/",
"p",
">"
]
| [
"set",
"source",
"fields",
"(",
"source",
"fields",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"whether",
"facet",
"information",
"can",
"be",
"returned",
"for",
"the",
"field",
"<",
"/",
"p",
">"
]
| [
"set",
"facet",
"enabled",
"(",
"facet",
"enabled",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"whether",
"the",
"contents",
"of",
"the",
"field",
"are",
"searchable",
"<",
"/",
"p",
">"
]
| [
"set",
"search",
"enabled",
"(",
"search",
"enabled",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"whether",
"the",
"contents",
"of",
"the",
"field",
"can",
"be",
"returned",
"in",
"the",
"search",
"results",
"<",
"/",
"p",
">"
]
| [
"set",
"return",
"enabled",
"(",
"return",
"enabled",
")",
";",
"return",
"this",
";"
]
|
[
"gets",
"the",
"number",
"of",
"fields",
"in",
"this",
"partial"
]
| [
"return",
"i",
"types",
"length",
";"
]
|
[
"gets",
"the",
"field",
"type",
"by",
"index"
]
| [
"return",
"i",
"types",
"[",
"index",
"]",
";"
]
|
[
"checks",
"whether",
"the",
"field",
"specified",
"is",
"supported",
"by",
"this",
"period"
]
| [
"return",
"(",
"index",
"of",
"(",
"type",
")",
">",
"=",
"0",
")",
";"
]
|
[
"gets",
"the",
"index",
"of",
"the",
"field",
"in",
"this",
"period"
]
| [
"for",
"(",
"int",
"i",
"=",
"0",
",",
"isize",
"=",
"size",
"(",
")",
";",
"i",
"<",
"isize",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"i",
"types",
"[",
"i",
"]",
"=",
"=",
"type",
")",
"{",
"return",
"i",
";",
"}",
"}",
"return",
"-",
"1",
";"
]
|
[
"gets",
"the",
"indexed",
"field",
"part",
"of",
"the",
"period"
]
| [
"int",
"real",
"index",
"=",
"i",
"indices",
"[",
"index",
"]",
";",
"return",
"(",
"real",
"index",
"=",
"=",
"-",
"1",
"?",
"0",
":",
"period",
"get",
"value",
"(",
"real",
"index",
")",
")",
";"
]
|
[
"removes",
"the",
"field",
"specified",
"by",
"indices",
"index"
]
| [
"int",
"field",
"index",
"=",
"i",
"indices",
"[",
"indices",
"index",
"]",
";",
"if",
"(",
"field",
"index",
"=",
"=",
"-",
"1",
")",
"{",
"return",
"this",
";",
"}",
"duration",
"field",
"type",
"[",
"]",
"types",
"=",
"new",
"duration",
"field",
"type",
"[",
"size",
"(",
")",
"-",
"1",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"i",
"types",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"i",
"<",
"field",
"index",
")",
"{",
"types",
"[",
"i",
"]",
"=",
"i",
"types",
"[",
"i",
"]",
";",
"}",
"else",
"if",
"(",
"i",
">",
"field",
"index",
")",
"{",
"types",
"[",
"i",
"-",
"1",
"]",
"=",
"i",
"types",
"[",
"i",
"]",
";",
"}",
"}",
"int",
"[",
"]",
"indices",
"=",
"new",
"int",
"[",
"8",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"indices",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"i",
"<",
"indices",
"index",
")",
"{",
"indices",
"[",
"i",
"]",
"=",
"i",
"indices",
"[",
"i",
"]",
";",
"}",
"else",
"if",
"(",
"i",
">",
"indices",
"index",
")",
"{",
"indices",
"[",
"i",
"]",
"=",
"(",
"i",
"indices",
"[",
"i",
"]",
"=",
"=",
"-",
"1",
"?",
"-",
"1",
":",
"i",
"indices",
"[",
"i",
"]",
"-",
"1",
")",
";",
"}",
"else",
"{",
"indices",
"[",
"i",
"]",
"=",
"-",
"1",
";",
"}",
"}",
"return",
"new",
"period",
"type",
"(",
"get",
"name",
"(",
")",
"+",
"name",
",",
"types",
",",
"indices",
")",
";"
]
|
[
"compares",
"this",
"type",
"to",
"another",
"object",
"to",
"be",
"equal",
"the",
"object",
"must",
"be",
"a",
"period",
"type",
"with",
"the",
"same",
"set",
"of",
"fields"
]
| [
"if",
"(",
"this",
"=",
"=",
"obj",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"obj",
"instanceof",
"period",
"type",
"=",
"=",
"false",
")",
"{",
"return",
"false",
";",
"}",
"period",
"type",
"other",
"=",
"(",
"period",
"type",
")",
"obj",
";",
"return",
"(",
"arrays",
"equals",
"(",
"i",
"types",
",",
"other",
"i",
"types",
")",
")",
";"
]
|
[
"returns",
"a",
"hashcode",
"based",
"on",
"the",
"field",
"types"
]
| [
"int",
"hash",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"i",
"types",
"length",
";",
"i",
"+",
"+",
")",
"{",
"hash",
"+",
"=",
"i",
"types",
"[",
"i",
"]",
"hash",
"code",
"(",
")",
";",
"}",
"return",
"hash",
";"
]
|
[
"/",
"*",
"@",
"test",
"public",
"void",
"constructors",
"(",
")",
"{",
"constructor",
"test",
"builder",
"ctb",
"=",
"new",
"constructor",
"test",
"builder",
"(",
"flux",
"publish",
"on",
"class",
")",
";"
]
| [
"assert",
"subscriber",
"<",
"integer",
">",
"ts",
"=",
"assert",
"subscriber",
"create",
"(",
")",
";",
"flux",
"range",
"(",
"1",
",",
"1000",
")",
"subscribe",
"on",
"(",
"schedulers",
"from",
"executor",
"service",
"(",
"fork",
"join",
"pool",
"common",
"pool",
"(",
")",
")",
")",
"subscribe",
"(",
"ts",
")",
";",
"ts",
"await",
"(",
"duration",
"of",
"seconds",
"(",
"5",
")",
")",
";",
"ts",
"assert",
"value",
"count",
"(",
"1000",
")",
"assert",
"no",
"error",
"(",
")",
"assert",
"complete",
"(",
")",
";"
]
|
[
"on",
"linux",
"if",
"docker",
"machine",
"properties",
"are",
"not",
"defined",
"then",
"unix",
"socket",
"should",
"be",
"used"
]
| [
"uri",
"uri",
"=",
"docker",
"connector",
"configuration",
"docker",
"daemon",
"uri",
"(",
"true",
",",
"empty",
"map",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"docker",
"connector",
"configuration",
"unix",
"socket",
"uri",
",",
"uri",
")",
";"
]
|
[
"on",
"non",
"-",
"linux",
"if",
"docker",
"machine",
"properties",
"are",
"not",
"defined",
"it",
"should",
"use",
"them",
"tls",
"disable"
]
| [
"uri",
"uri",
"=",
"docker",
"connector",
"configuration",
"docker",
"daemon",
"uri",
"(",
"false",
",",
"empty",
"map",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"uri",
",",
"docker",
"connector",
"configuration",
"default",
"docker",
"machine",
"uri",
")",
";"
]
|
[
"check",
"if",
"che",
"server",
"ip",
"from",
"container",
"is",
"default",
"linux",
"docker",
"host",
"ip",
"when",
"bridge",
"docker",
"0",
"and",
"interface",
"eth",
"0",
"are",
"not",
"defined"
]
| [
"map",
"<",
"string",
",",
"string",
">",
"env",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"network",
"finder",
"network",
"finder",
"=",
"mockito",
"mock",
"(",
"network",
"finder",
"class",
")",
";",
"do",
"return",
"(",
"optional",
"empty",
"(",
")",
")",
"when",
"(",
"network",
"finder",
")",
"get",
"i",
"p",
"address",
"(",
"bridge",
"linux",
"interface",
"name",
")",
";",
"do",
"return",
"(",
"optional",
"empty",
"(",
")",
")",
"when",
"(",
"network",
"finder",
")",
"get",
"i",
"p",
"address",
"(",
"default",
"linux",
"interface",
"name",
")",
";",
"docker",
"connector",
"configuration",
"docker",
"connector",
"configuration",
"=",
"new",
"docker",
"connector",
"configuration",
"(",
"null",
",",
"null",
",",
"null",
",",
"network",
"finder",
")",
";",
"string",
"ip",
"=",
"docker",
"connector",
"configuration",
"get",
"docker",
"host",
"ip",
"(",
"true",
",",
"env",
")",
";",
"assert",
"equals",
"(",
"ip",
",",
"default",
"linux",
"docker",
"host",
"ip",
")",
";",
"verify",
"(",
"network",
"finder",
")",
"get",
"i",
"p",
"address",
"(",
"bridge",
"linux",
"interface",
"name",
")",
";",
"verify",
"(",
"network",
"finder",
")",
"get",
"i",
"p",
"address",
"(",
"default",
"linux",
"interface",
"name",
")",
";"
]
|
[
"with",
"docker",
"machine",
"if",
"we",
"don",
"t",
"have",
"any",
"address",
"check",
"the",
"default",
"ip"
]
| [
"network",
"finder",
"network",
"finder",
"=",
"mockito",
"mock",
"(",
"network",
"finder",
"class",
")",
";",
"docker",
"connector",
"configuration",
"docker",
"connector",
"configuration",
"=",
"new",
"docker",
"connector",
"configuration",
"(",
"null",
",",
"null",
",",
"null",
",",
"network",
"finder",
")",
";",
"string",
"ip",
"=",
"docker",
"connector",
"configuration",
"get",
"docker",
"host",
"ip",
"(",
"false",
",",
"collections",
"empty",
"map",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"ip",
",",
"default",
"docker",
"machine",
"docker",
"host",
"ip",
")",
";",
"verify",
"(",
"network",
"finder",
",",
"times",
"(",
"0",
")",
")",
"get",
"i",
"p",
"address",
"(",
"any",
"string",
"(",
")",
")",
";",
"verify",
"(",
"network",
"finder",
",",
"times",
"(",
"0",
")",
")",
"get",
"matching",
"inet",
"address",
"(",
"any",
"string",
"(",
")",
")",
";"
]
|
[
"returns",
"true",
"if",
"flattr",
"app",
"key",
"and",
"flattr",
"app",
"secret",
"in",
"build",
"config",
"are",
"not",
"null",
"and",
"not",
"empty"
]
| [
"return",
"!",
"text",
"utils",
"is",
"empty",
"(",
"client",
"config",
"flattr",
"callbacks",
"get",
"flattr",
"app",
"key",
"(",
")",
")",
"&",
"&",
"!",
"text",
"utils",
"is",
"empty",
"(",
"client",
"config",
"flattr",
"callbacks",
"get",
"flattr",
"app",
"secret",
"(",
")",
")",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"dialogs"
]
| [
"alert",
"dialog",
"builder",
"builder",
"=",
"new",
"alert",
"dialog",
"builder",
"(",
"context",
")",
";",
"builder",
"set",
"title",
"(",
"r",
"string",
"access",
"revoked",
"title",
")",
";",
"builder",
"set",
"message",
"(",
"r",
"string",
"access",
"revoked",
"info",
")",
";",
"builder",
"set",
"neutral",
"button",
"(",
"android",
"r",
"string",
"ok",
",",
"new",
"on",
"click",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"click",
"(",
"dialog",
"interface",
"dialog",
",",
"int",
"which",
")",
"{",
"dialog",
"cancel",
"(",
")",
";",
"}",
"}",
")",
";",
"builder",
"create",
"(",
")",
"show",
"(",
")",
";"
]
|
[
"opens",
"a",
"dialog",
"that",
"ask",
"the",
"user",
"to",
"either",
"connect",
"the",
"app",
"with",
"flattr",
"or",
"to",
"be",
"redirected",
"to",
"the",
"thing",
"s",
"website",
"if",
"no",
"api",
"credentials",
"are",
"available",
"the",
"user",
"will",
"immediately",
"be",
"redirected",
"to",
"the",
"thing",
"s",
"website"
]
| [
"if",
"(",
"has",
"a",
"p",
"i",
"credentials",
"(",
")",
")",
"{",
"alert",
"dialog",
"builder",
"builder",
"=",
"new",
"alert",
"dialog",
"builder",
"(",
"context",
")",
";",
"builder",
"set",
"title",
"(",
"r",
"string",
"no",
"flattr",
"token",
"title",
")",
";",
"builder",
"set",
"message",
"(",
"r",
"string",
"no",
"flattr",
"token",
"msg",
")",
";",
"builder",
"set",
"positive",
"button",
"(",
"r",
"string",
"authenticate",
"now",
"label",
",",
"new",
"on",
"click",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"click",
"(",
"dialog",
"interface",
"dialog",
",",
"int",
"which",
")",
"{",
"context",
"start",
"activity",
"(",
"client",
"config",
"flattr",
"callbacks",
"get",
"flattr",
"authentication",
"activity",
"intent",
"(",
"context",
")",
")",
";",
"}",
"}",
")",
";",
"builder",
"set",
"negative",
"button",
"(",
"r",
"string",
"visit",
"website",
"label",
",",
"new",
"on",
"click",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"on",
"click",
"(",
"dialog",
"interface",
"dialog",
",",
"int",
"which",
")",
"{",
"uri",
"uri",
"=",
"uri",
"parse",
"(",
"url",
")",
";",
"context",
"start",
"activity",
"(",
"new",
"intent",
"(",
"intent",
"action",
"view",
",",
"uri",
")",
")",
";",
"}",
"}",
")",
";",
"builder",
"create",
"(",
")",
"show",
"(",
")",
";",
"}",
"else",
"{",
"uri",
"uri",
"=",
"uri",
"parse",
"(",
"url",
")",
";",
"context",
"start",
"activity",
"(",
"new",
"intent",
"(",
"intent",
"action",
"view",
",",
"uri",
")",
")",
";",
"}"
]
|
[
"returns",
"the",
"counter",
"with",
"the",
"given",
"name",
"in",
"this",
"counter",
"set",
";",
"returns",
"null",
"if",
"no",
"such",
"counter",
"exists"
]
| [
"counter",
"name",
"counter",
"name",
"=",
"counter",
"name",
"named",
"(",
"name",
")",
";",
"return",
"get",
"existing",
"counter",
"(",
"counter",
"name",
")",
";"
]
|
[
"return",
"a",
"list",
"of",
"all",
"the",
"updates",
"this",
"synchronizes",
"with",
"the",
"addition",
"/",
"retrieval",
"of",
"counters",
"so",
"it",
"should",
"be",
"thread",
"safe"
]
| [
"return",
"extract",
"updates",
"impl",
"(",
"delta",
",",
"false",
",",
"extractors",
")",
";"
]
|
[
"returns",
"a",
"list",
"of",
"delta",
"updates",
"of",
"dirty",
"counters",
"this",
"does",
"not",
"includes",
"counter",
"updates",
"that",
"haven",
"t",
"been",
"modified",
"since",
"last",
"extraction"
]
| [
"return",
"extract",
"updates",
"impl",
"(",
"true",
",",
"true",
",",
"extractors",
")",
";"
]
|
[
"create",
"a",
"new",
"instance",
"of",
"a",
"h",
"s",
"client"
]
| [
"a",
"h",
"s",
"client",
"client",
"=",
"new",
"a",
"h",
"s",
"client",
"impl",
"(",
")",
";",
"return",
"client",
";"
]
|
[
"<",
"p",
">",
"get",
"a",
"report",
"of",
"the",
"given",
"application",
"<",
"/",
"p",
">"
]
| [
"public",
"abstract",
"application",
"report",
"get",
"application",
"report",
"(",
"application",
"id",
"app",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"<",
"p",
">",
"get",
"a",
"report",
"(",
"application",
"report",
")",
"of",
"all",
"applications",
"in",
"the",
"cluster",
"<",
"/",
"p",
">"
]
| [
"public",
"abstract",
"list",
"<",
"application",
"report",
">",
"get",
"applications",
"(",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"<",
"p",
">",
"get",
"a",
"report",
"of",
"the",
"given",
"application",
"attempt",
"<",
"/",
"p",
">"
]
| [
"public",
"abstract",
"application",
"attempt",
"report",
"get",
"application",
"attempt",
"report",
"(",
"application",
"attempt",
"id",
"application",
"attempt",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"<",
"p",
">",
"get",
"a",
"report",
"of",
"all",
"(",
"application",
"attempts",
")",
"of",
"application",
"in",
"the",
"cluster",
"<",
"/",
"p",
">"
]
| [
"public",
"abstract",
"list",
"<",
"application",
"attempt",
"report",
">",
"get",
"application",
"attempts",
"(",
"application",
"id",
"application",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"<",
"p",
">",
"get",
"a",
"report",
"of",
"the",
"given",
"container",
"<",
"/",
"p",
">"
]
| [
"public",
"abstract",
"container",
"report",
"get",
"container",
"report",
"(",
"container",
"id",
"container",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"<",
"p",
">",
"get",
"a",
"report",
"of",
"all",
"(",
"containers",
")",
"of",
"application",
"attempt",
"in",
"the",
"cluster",
"<",
"/",
"p",
">"
]
| [
"public",
"abstract",
"list",
"<",
"container",
"report",
">",
"get",
"containers",
"(",
"application",
"attempt",
"id",
"application",
"attempt",
"id",
")",
"throws",
"yarn",
"exception",
",",
"i",
"o",
"exception",
";"
]
|
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"role",
"that",
"the",
"caller",
"is",
"assuming",
"<",
"/",
"p",
">"
]
| [
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"principal",
"which",
"can",
"be",
"an",
"iam",
"role",
"iam",
"user",
"or",
"the",
"root",
"user",
"<",
"/",
"p",
">"
]
| [
"this",
"principal",
"arn",
"=",
"principal",
"arn",
";"
]
|
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"principal",
"which",
"can",
"be",
"an",
"iam",
"role",
"iam",
"user",
"or",
"the",
"root",
"user",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"principal",
"arn",
";"
]
|
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"saml",
"provider",
"in",
"iam",
"that",
"describes",
"the",
"id",
"p",
"<",
"/",
"p",
">"
]
| [
"set",
"principal",
"arn",
"(",
"principal",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"base",
"-",
"64",
"encoded",
"saml",
"authentication",
"response",
"provided",
"by",
"the",
"id",
"p",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"iam",
"/",
"latest",
"/",
"user",
"guide",
"/",
"create",
"-",
"role",
"-",
"saml",
"-",
"id",
"p",
"-",
"tasks",
"html",
">",
"configuring",
"a",
"relying",
"party",
"and",
"adding",
"claims",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"using",
"iam",
"<",
"/",
"i",
">",
"guide",
"<",
"/",
"p",
">"
]
| [
"this",
"s",
"a",
"m",
"l",
"assertion",
"=",
"s",
"a",
"m",
"l",
"assertion",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.