docstring_tokens
list | code_tokens
list |
---|---|
[
"todo",
":",
"type",
"name",
"supports",
"multiple",
"bounds",
"while",
"wildcard",
"type",
"might",
"have",
"union",
"type",
"for",
"bounds"
]
| [
"declared",
"type",
"lower",
"bounds",
"type",
"=",
"type",
"name",
"lower",
"bounds",
"=",
"=",
"null",
"|",
"|",
"type",
"name",
"lower",
"bounds",
"is",
"empty",
"(",
")",
"?",
"null",
":",
"(",
"declared",
"type",
")",
"get",
"type",
"from",
"type",
"name",
"(",
"type",
"name",
"lower",
"bounds",
"get",
"(",
"0",
")",
")",
";",
"declared",
"type",
"upper",
"bounds",
"type",
"=",
"type",
"name",
"upper",
"bounds",
"=",
"=",
"null",
"|",
"|",
"type",
"name",
"upper",
"bounds",
"is",
"empty",
"(",
")",
"?",
"null",
":",
"(",
"declared",
"type",
")",
"get",
"type",
"from",
"type",
"name",
"(",
"type",
"name",
"upper",
"bounds",
"get",
"(",
"0",
")",
")",
";",
"return",
"types",
"get",
"wildcard",
"type",
"(",
"upper",
"bounds",
"type",
",",
"lower",
"bounds",
"type",
")",
";"
]
|
[
"baz",
"type",
"bar",
"method",
"(",
")",
"in",
"foo",
"module",
"will",
"generate",
"module",
"foo",
"module",
"bar",
"method"
]
| [
"class",
"name",
"class",
"name",
"=",
"get",
"module",
"class",
"name",
"from",
"contributes",
"android",
"injector",
"(",
"m",
",",
"method",
")",
";",
"return",
"get",
"canonical",
"name",
"(",
"class",
"name",
")",
";"
]
|
[
"returns",
"whether",
"the",
"type",
"and",
"its",
"ancestor",
"are",
"all",
"public"
]
| [
"while",
"(",
"type",
"element",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"type",
"element",
"get",
"modifiers",
"(",
")",
"contains",
"(",
"modifier",
"public",
")",
")",
"{",
"return",
"false",
";",
"}",
"element",
"enclosing",
"element",
"=",
"type",
"element",
"get",
"enclosing",
"element",
"(",
")",
";",
"type",
"element",
"=",
"enclosing",
"element",
"get",
"kind",
"(",
")",
"equals",
"(",
"element",
"kind",
"package",
")",
"?",
"null",
":",
"(",
"type",
"element",
")",
"enclosing",
"element",
";",
"}",
"return",
"true",
";"
]
|
[
"return",
"builder",
"of",
"the",
"given",
"(",
"sub",
")",
"component",
"null",
"if",
"not",
"found"
]
| [
"for",
"(",
"element",
"e",
":",
"elements",
"get",
"all",
"members",
"(",
"either",
"component",
")",
")",
"{",
"if",
"(",
"is",
"either",
"component",
"builder",
"(",
"e",
")",
")",
"{",
"return",
"(",
"type",
"element",
")",
"e",
";",
"}",
"}",
"return",
"null",
";"
]
|
[
"returns",
"if",
"the",
"element",
"is",
"a",
"method",
"irrelevant",
"to",
"injection"
]
| [
"return",
"!",
"utils",
"is",
"method",
"(",
"element",
")",
"|",
"|",
"!",
"element",
"get",
"modifiers",
"(",
")",
"contains",
"(",
"modifier",
"abstract",
")",
";"
]
|
[
"retrieve",
"the",
"global",
"text",
"services",
"manager",
"instance",
"creating",
"it",
"if",
"it",
"doesn",
"t",
"already",
"exist"
]
| [
"synchronized",
"(",
"text",
"services",
"manager",
"class",
")",
"{",
"if",
"(",
"s",
"instance",
"=",
"=",
"null",
")",
"{",
"try",
"{",
"s",
"instance",
"=",
"new",
"text",
"services",
"manager",
"(",
")",
";",
"}",
"catch",
"(",
"service",
"not",
"found",
"exception",
"e",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
"e",
")",
";",
"}",
"}",
"return",
"s",
"instance",
";",
"}"
]
|
[
"returns",
"the",
"language",
"component",
"of",
"a",
"given",
"locale",
"string"
]
| [
"final",
"int",
"idx",
"=",
"locale",
"index",
"of",
"(",
"'",
"'",
")",
";",
"if",
"(",
"idx",
"<",
"0",
")",
"{",
"return",
"locale",
";",
"}",
"else",
"{",
"return",
"locale",
"substring",
"(",
"0",
",",
"idx",
")",
";",
"}"
]
|
[
"applies",
"this",
"preprocessor"
]
| [
"vector",
"res",
"=",
"base",
"preprocessor",
"apply",
"(",
"k",
",",
"v",
")",
";",
"assert",
"res",
"size",
"(",
")",
"=",
"=",
"imputing",
"values",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"res",
"size",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"double",
"value",
"of",
"(",
"res",
"get",
"(",
"i",
")",
")",
"equals",
"(",
"double",
"na",
"n",
")",
")",
"res",
"set",
"(",
"i",
",",
"imputing",
"values",
"get",
"(",
"i",
")",
")",
";",
"}",
"return",
"res",
";"
]
|
[
"converts",
"a",
"<",
"code",
">",
"double",
"<",
"/",
"code",
">",
"value",
"to",
"a",
"sortable",
"signed",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"the",
"value",
"is",
"converted",
"by",
"getting",
"their",
"ieee",
"754",
"floating",
"-",
"point",
"&",
"quot",
";",
"double",
"format",
"&",
"quot",
";",
"bit",
"layout",
"and",
"then",
"some",
"bits",
"are",
"swapped",
"to",
"be",
"able",
"to",
"compare",
"the",
"result",
"as",
"long",
"by",
"this",
"the",
"precision",
"is",
"not",
"reduced",
"but",
"the",
"value",
"can",
"easily",
"used",
"as",
"a",
"long",
"the",
"sort",
"order",
"(",
"including",
"{"
]
| [
"return",
"sortable",
"double",
"bits",
"(",
"double",
"double",
"to",
"long",
"bits",
"(",
"val",
")",
")",
";"
]
|
[
"converts",
"a",
"sortable",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"back",
"to",
"a",
"<",
"code",
">",
"double",
"<",
"/",
"code",
">"
]
| [
"return",
"double",
"long",
"bits",
"to",
"double",
"(",
"sortable",
"double",
"bits",
"(",
"val",
")",
")",
";"
]
|
[
"converts",
"a",
"<",
"code",
">",
"float",
"<",
"/",
"code",
">",
"value",
"to",
"a",
"sortable",
"signed",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"the",
"value",
"is",
"converted",
"by",
"getting",
"their",
"ieee",
"754",
"floating",
"-",
"point",
"&",
"quot",
";",
"float",
"format",
"&",
"quot",
";",
"bit",
"layout",
"and",
"then",
"some",
"bits",
"are",
"swapped",
"to",
"be",
"able",
"to",
"compare",
"the",
"result",
"as",
"int",
"by",
"this",
"the",
"precision",
"is",
"not",
"reduced",
"but",
"the",
"value",
"can",
"easily",
"used",
"as",
"an",
"int",
"the",
"sort",
"order",
"(",
"including",
"{"
]
| [
"return",
"sortable",
"float",
"bits",
"(",
"float",
"float",
"to",
"int",
"bits",
"(",
"val",
")",
")",
";"
]
|
[
"converts",
"a",
"sortable",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"back",
"to",
"a",
"<",
"code",
">",
"float",
"<",
"/",
"code",
">"
]
| [
"return",
"float",
"int",
"bits",
"to",
"float",
"(",
"sortable",
"float",
"bits",
"(",
"val",
")",
")",
";"
]
|
[
"converts",
"ieee",
"754",
"representation",
"of",
"a",
"double",
"to",
"sortable",
"order",
"(",
"or",
"back",
"to",
"the",
"original",
")"
]
| [
"return",
"bits",
"^",
"(",
"bits",
">",
">",
"63",
")",
"&",
"0x",
"7fffffffffffffff",
"l",
";"
]
|
[
"converts",
"ieee",
"754",
"representation",
"of",
"a",
"float",
"to",
"sortable",
"order",
"(",
"or",
"back",
"to",
"the",
"original",
")"
]
| [
"return",
"bits",
"^",
"(",
"bits",
">",
">",
"31",
")",
"&",
"0x",
"7fffffff",
";"
]
|
[
"helper",
"function",
"for",
"creating",
"a",
"home",
"sp",
"with",
"home",
"network",
"i",
"ds",
"for",
"testing"
]
| [
"return",
"create",
"home",
"sp",
"(",
"create",
"home",
"network",
"ids",
"(",
")",
")",
";"
]
|
[
"helper",
"function",
"for",
"creating",
"a",
"home",
"sp",
"without",
"home",
"network",
"i",
"ds",
"for",
"testing"
]
| [
"return",
"create",
"home",
"sp",
"(",
"null",
")",
";"
]
|
[
"verify",
"parcel",
"read",
"/",
"write",
"for",
"an",
"empty",
"home",
"sp"
]
| [
"verify",
"parcel",
"(",
"new",
"home",
"sp",
"(",
")",
")",
";"
]
|
[
"verify",
"parcel",
"read",
"/",
"write",
"for",
"a",
"home",
"sp",
"containing",
"home",
"network",
"i",
"ds"
]
| [
"verify",
"parcel",
"(",
"create",
"home",
"sp",
"with",
"home",
"network",
"ids",
"(",
")",
")",
";"
]
|
[
"verify",
"parcel",
"read",
"/",
"write",
"for",
"a",
"home",
"sp",
"without",
"home",
"network",
"i",
"ds"
]
| [
"verify",
"parcel",
"(",
"create",
"home",
"sp",
"without",
"home",
"network",
"ids",
"(",
")",
")",
";"
]
|
[
"verify",
"that",
"a",
"home",
"sp",
"is",
"valid",
"when",
"both",
"fqdn",
"and",
"friendly",
"name",
"are",
"provided"
]
| [
"home",
"sp",
"home",
"sp",
"=",
"create",
"home",
"sp",
"with",
"home",
"network",
"ids",
"(",
")",
";",
"assert",
"true",
"(",
"home",
"sp",
"validate",
"(",
")",
")",
";"
]
|
[
"verify",
"that",
"a",
"home",
"sp",
"is",
"not",
"valid",
"when",
"fqdn",
"is",
"not",
"provided"
]
| [
"home",
"sp",
"home",
"sp",
"=",
"create",
"home",
"sp",
"with",
"home",
"network",
"ids",
"(",
")",
";",
"home",
"sp",
"set",
"fqdn",
"(",
"null",
")",
";",
"assert",
"false",
"(",
"home",
"sp",
"validate",
"(",
")",
")",
";"
]
|
[
"verify",
"that",
"a",
"home",
"sp",
"is",
"not",
"valid",
"when",
"friendly",
"name",
"is",
"not",
"provided"
]
| [
"home",
"sp",
"home",
"sp",
"=",
"create",
"home",
"sp",
"with",
"home",
"network",
"ids",
"(",
")",
";",
"home",
"sp",
"set",
"friendly",
"name",
"(",
"null",
")",
";",
"assert",
"false",
"(",
"home",
"sp",
"validate",
"(",
")",
")",
";"
]
|
[
"verify",
"that",
"a",
"home",
"sp",
"is",
"valid",
"when",
"the",
"optional",
"home",
"network",
"i",
"ds",
"are",
"not",
"provided"
]
| [
"home",
"sp",
"home",
"sp",
"=",
"create",
"home",
"sp",
"without",
"home",
"network",
"ids",
"(",
")",
";",
"assert",
"true",
"(",
"home",
"sp",
"validate",
"(",
")",
")",
";"
]
|
[
"verify",
"that",
"copy",
"constructor",
"works",
"when",
"pass",
"in",
"a",
"null",
"source"
]
| [
"home",
"sp",
"copy",
"sp",
"=",
"new",
"home",
"sp",
"(",
"null",
")",
";",
"home",
"sp",
"default",
"sp",
"=",
"new",
"home",
"sp",
"(",
")",
";",
"assert",
"true",
"(",
"copy",
"sp",
"equals",
"(",
"default",
"sp",
")",
")",
";"
]
|
[
"verify",
"that",
"copy",
"constructor",
"works",
"when",
"pass",
"in",
"a",
"valid",
"source"
]
| [
"home",
"sp",
"source",
"sp",
"=",
"create",
"home",
"sp",
"with",
"home",
"network",
"ids",
"(",
")",
";",
"home",
"sp",
"copy",
"sp",
"=",
"new",
"home",
"sp",
"(",
"source",
"sp",
")",
";",
"assert",
"true",
"(",
"copy",
"sp",
"equals",
"(",
"source",
"sp",
")",
")",
";"
]
|
[
"gets",
"all",
"the",
"installed",
"{",
"@",
"link",
"item",
"listener",
"}",
"s"
]
| [
"return",
"item",
"listeners",
";"
]
|
[
"gets",
"all",
"the",
"installed",
"{",
"@",
"link",
"computer",
"listener",
"}",
"s"
]
| [
"return",
"computer",
"listeners",
";"
]
|
[
"gets",
"the",
"agent",
"of",
"the",
"give",
"name",
"hooked",
"under",
"this",
"hudson"
]
| [
"node",
"n",
"=",
"get",
"node",
"(",
"name",
")",
";",
"if",
"(",
"n",
"instanceof",
"slave",
")",
"return",
"(",
"slave",
")",
"n",
";",
"return",
"null",
";"
]
|
[
"updates",
"the",
"agent",
"list"
]
| [
"set",
"nodes",
"(",
"slaves",
")",
";"
]
|
[
"checks",
"if",
"the",
"current",
"user",
"(",
"for",
"which",
"we",
"are",
"processing",
"the",
"current",
"request",
")",
"has",
"the",
"admin",
"access"
]
| [
"return",
"jenkins",
"get",
"instance",
"(",
")",
"get",
"a",
"c",
"l",
"(",
")",
"has",
"permission",
"(",
"administer",
")",
";"
]
|
[
"to",
"use",
"a",
"specific",
"configured",
"el",
"sql",
"config",
"it",
"may",
"be",
"better",
"to",
"use",
"the",
"<",
"tt",
">",
"database",
"vendor",
"<",
"/",
"tt",
">",
"option",
"instead"
]
| [
"this",
"el",
"sql",
"config",
"=",
"el",
"sql",
"config",
";"
]
|
[
"perform",
"the",
"binding",
"safe",
"to",
"assume",
"that",
"value",
"is",
"not",
"null"
]
| [
"protected",
"abstract",
"void",
"do",
"bind",
"(",
"prepared",
"statement",
"st",
",",
"j",
"value",
",",
"int",
"index",
",",
"wrapper",
"options",
"options",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"perform",
"the",
"binding",
"safe",
"to",
"assume",
"that",
"value",
"is",
"not",
"null"
]
| [
"protected",
"abstract",
"void",
"do",
"bind",
"(",
"callable",
"statement",
"st",
",",
"j",
"value",
",",
"string",
"name",
",",
"wrapper",
"options",
"options",
")",
"throws",
"s",
"q",
"l",
"exception",
";"
]
|
[
"{"
]
| [
"return",
"fld",
"get",
"name",
"(",
")",
";"
]
|
[
"{"
]
| [
"return",
"fld",
"get",
"type",
"(",
")",
";"
]
|
[
"update",
"global",
"and",
"override",
"configurations",
"merged",
"configuration",
"will",
"automatically",
"be",
"updated"
]
| [
"m",
"global",
"config",
"set",
"to",
"(",
"global",
"config",
")",
";",
"m",
"override",
"config",
"set",
"to",
"(",
"override",
"config",
")",
";",
"update",
"merged",
"config",
"(",
")",
";"
]
|
[
"update",
"global",
"configurations",
"merged",
"configuration",
"will",
"automatically",
"be",
"updated"
]
| [
"m",
"global",
"config",
"set",
"to",
"(",
"global",
"config",
")",
";",
"update",
"merged",
"config",
"(",
")",
";"
]
|
[
"update",
"override",
"configurations",
"merged",
"configuration",
"will",
"automatically",
"be",
"updated"
]
| [
"m",
"override",
"config",
"set",
"to",
"(",
"override",
"config",
")",
";",
"update",
"merged",
"config",
"(",
")",
";"
]
|
[
"update",
"merged",
"config",
"when",
"global",
"or",
"override",
"config",
"changes"
]
| [
"m",
"merged",
"config",
"set",
"to",
"(",
"m",
"global",
"config",
")",
";",
"m",
"merged",
"config",
"update",
"from",
"(",
"m",
"override",
"config",
")",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"return",
"build",
"config",
"snapshot",
"(",
"clazz",
",",
"registered",
"classes",
",",
"registered",
"serializers",
",",
"fields",
",",
"field",
"serializers",
",",
"subclass",
"serializer",
"cache",
")",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"out",
"default",
"write",
"object",
"(",
")",
";",
"out",
"write",
"int",
"(",
"fields",
"length",
")",
";",
"for",
"(",
"field",
"field",
":",
"fields",
")",
"{",
"field",
"serializer",
"serialize",
"field",
"(",
"field",
",",
"out",
")",
";",
"}"
]
|
[
"extracts",
"the",
"subclasses",
"of",
"the",
"base",
"pojo",
"class",
"registered",
"in",
"the",
"execution",
"config"
]
| [
"linked",
"hash",
"set",
"<",
"class",
"<",
"?",
">",
">",
"subclasses",
"in",
"registration",
"order",
"=",
"new",
"linked",
"hash",
"set",
"<",
">",
"(",
"execution",
"config",
"get",
"registered",
"pojo",
"types",
"(",
")",
"size",
"(",
")",
")",
";",
"for",
"(",
"class",
"<",
"?",
">",
"registered",
"class",
":",
"execution",
"config",
"get",
"registered",
"pojo",
"types",
"(",
")",
")",
"{",
"if",
"(",
"registered",
"class",
"equals",
"(",
"base",
"pojo",
"class",
")",
")",
"{",
"continue",
";",
"}",
"if",
"(",
"!",
"base",
"pojo",
"class",
"is",
"assignable",
"from",
"(",
"registered",
"class",
")",
")",
"{",
"continue",
";",
"}",
"subclasses",
"in",
"registration",
"order",
"add",
"(",
"registered",
"class",
")",
";",
"}",
"return",
"subclasses",
"in",
"registration",
"order",
";"
]
|
[
"builds",
"map",
"of",
"registered",
"subclasses",
"to",
"their",
"class",
"tags",
"class",
"tags",
"will",
"be",
"integers",
"starting",
"from",
"0",
"assigned",
"incrementally",
"with",
"the",
"order",
"of",
"provided",
"subclasses"
]
| [
"final",
"linked",
"hash",
"map",
"<",
"class",
"<",
"?",
">",
",",
"integer",
">",
"class",
"to",
"tag",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
")",
";",
"int",
"id",
"=",
"0",
";",
"for",
"(",
"class",
"<",
"?",
">",
"registered",
"class",
":",
"registered",
"subclasses",
")",
"{",
"class",
"to",
"tag",
"put",
"(",
"registered",
"class",
",",
"id",
")",
";",
"id",
"+",
"+",
";",
"}",
"return",
"class",
"to",
"tag",
";"
]
|
[
"creates",
"an",
"array",
"of",
"serializers",
"for",
"provided",
"list",
"of",
"registered",
"subclasses",
"order",
"of",
"returned",
"serializers",
"will",
"correspond",
"to",
"order",
"of",
"provided",
"subclasses"
]
| [
"final",
"type",
"serializer",
"<",
"?",
">",
"[",
"]",
"subclass",
"serializers",
"=",
"new",
"type",
"serializer",
"[",
"registered",
"subclasses",
"size",
"(",
")",
"]",
";",
"int",
"i",
"=",
"0",
";",
"for",
"(",
"class",
"<",
"?",
">",
"registered",
"class",
":",
"registered",
"subclasses",
")",
"{",
"subclass",
"serializers",
"[",
"i",
"]",
"=",
"type",
"extractor",
"create",
"type",
"info",
"(",
"registered",
"class",
")",
"create",
"serializer",
"(",
"execution",
"config",
")",
";",
"i",
"+",
"+",
";",
"}",
"return",
"subclass",
"serializers",
";"
]
|
[
"fetches",
"cached",
"serializer",
"for",
"a",
"non",
"-",
"registered",
"subclass",
";",
"also",
"creates",
"the",
"serializer",
"if",
"it",
"doesn",
"t",
"exist",
"yet"
]
| [
"type",
"serializer",
"<",
"?",
">",
"result",
"=",
"subclass",
"serializer",
"cache",
"get",
"(",
"subclass",
")",
";",
"if",
"(",
"result",
"=",
"=",
"null",
")",
"{",
"result",
"=",
"create",
"subclass",
"serializer",
"(",
"subclass",
")",
";",
"subclass",
"serializer",
"cache",
"put",
"(",
"subclass",
",",
"result",
")",
";",
"}",
"return",
"result",
";"
]
|
[
"finds",
"and",
"returns",
"the",
"order",
"(",
"0",
"-",
"based",
")",
"of",
"a",
"pojo",
"field",
"returns",
"-",
"1",
"if",
"the",
"field",
"does",
"not",
"exist",
"for",
"this",
"pojo"
]
| [
"int",
"found",
"index",
"=",
"0",
";",
"for",
"(",
"field",
"field",
":",
"fields",
")",
"{",
"if",
"(",
"field",
"!",
"=",
"null",
"&",
"&",
"field",
"name",
"equals",
"(",
"field",
"get",
"name",
"(",
")",
")",
")",
"{",
"return",
"found",
"index",
";",
"}",
"found",
"index",
"+",
"+",
";",
"}",
"return",
"-",
"1",
";"
]
|
[
"build",
"and",
"return",
"a",
"snapshot",
"of",
"the",
"serializer",
"s",
"parameters",
"and",
"currently",
"cached",
"serializers"
]
| [
"final",
"linked",
"hash",
"map",
"<",
"string",
",",
"tuple",
"2",
"<",
"type",
"serializer",
"<",
"?",
">",
",",
"type",
"serializer",
"snapshot",
"<",
"?",
">",
">",
">",
"field",
"to",
"serializer",
"config",
"snapshots",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
"fields",
"length",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fields",
"length",
";",
"i",
"+",
"+",
")",
"{",
"field",
"to",
"serializer",
"config",
"snapshots",
"put",
"(",
"fields",
"[",
"i",
"]",
"get",
"name",
"(",
")",
",",
"new",
"tuple",
"2",
"<",
">",
"(",
"field",
"serializers",
"[",
"i",
"]",
",",
"field",
"serializers",
"[",
"i",
"]",
"snapshot",
"configuration",
"(",
")",
")",
")",
";",
"}",
"final",
"linked",
"hash",
"map",
"<",
"class",
"<",
"?",
">",
",",
"tuple",
"2",
"<",
"type",
"serializer",
"<",
"?",
">",
",",
"type",
"serializer",
"snapshot",
"<",
"?",
">",
">",
">",
"registered",
"subclasses",
"to",
"serializer",
"config",
"snapshots",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
"registered",
"subclasses",
"to",
"tags",
"size",
"(",
")",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"class",
"<",
"?",
">",
",",
"integer",
">",
"entry",
":",
"registered",
"subclasses",
"to",
"tags",
"entry",
"set",
"(",
")",
")",
"{",
"registered",
"subclasses",
"to",
"serializer",
"config",
"snapshots",
"put",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"new",
"tuple",
"2",
"<",
">",
"(",
"registered",
"subclass",
"serializers",
"[",
"entry",
"get",
"value",
"(",
")",
"]",
",",
"registered",
"subclass",
"serializers",
"[",
"entry",
"get",
"value",
"(",
")",
"]",
"snapshot",
"configuration",
"(",
")",
")",
")",
";",
"}",
"final",
"hash",
"map",
"<",
"class",
"<",
"?",
">",
",",
"tuple",
"2",
"<",
"type",
"serializer",
"<",
"?",
">",
",",
"type",
"serializer",
"snapshot",
"<",
"?",
">",
">",
">",
"non",
"registered",
"subclasses",
"to",
"serializer",
"config",
"snapshots",
"=",
"new",
"linked",
"hash",
"map",
"<",
">",
"(",
"non",
"registered",
"subclass",
"serializer",
"cache",
"size",
"(",
")",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"class",
"<",
"?",
">",
",",
"type",
"serializer",
"<",
"?",
">",
">",
"entry",
":",
"non",
"registered",
"subclass",
"serializer",
"cache",
"entry",
"set",
"(",
")",
")",
"{",
"non",
"registered",
"subclasses",
"to",
"serializer",
"config",
"snapshots",
"put",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"new",
"tuple",
"2",
"<",
">",
"(",
"entry",
"get",
"value",
"(",
")",
",",
"entry",
"get",
"value",
"(",
")",
"snapshot",
"configuration",
"(",
")",
")",
")",
";",
"}",
"return",
"new",
"pojo",
"serializer",
"config",
"snapshot",
"<",
">",
"(",
"pojo",
"type",
",",
"field",
"to",
"serializer",
"config",
"snapshots",
",",
"registered",
"subclasses",
"to",
"serializer",
"config",
"snapshots",
",",
"non",
"registered",
"subclasses",
"to",
"serializer",
"config",
"snapshots",
")",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
]
| [
"return",
"fields",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"ota",
"update",
"jobs",
"<",
"/",
"p",
">"
]
| [
"return",
"ota",
"updates",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"ota",
"update",
"jobs",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"ota",
"updates",
"=",
"=",
"null",
")",
"{",
"this",
"ota",
"updates",
"=",
"null",
";",
"return",
";",
"}",
"this",
"ota",
"updates",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"o",
"t",
"a",
"update",
"summary",
">",
"(",
"ota",
"updates",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"ota",
"update",
"jobs",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"ota",
"updates",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"ota",
"updates",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"ota",
"updates",
"=",
"=",
"null",
")",
"{",
"set",
"ota",
"updates",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"o",
"t",
"a",
"update",
"summary",
">",
"(",
"ota",
"updates",
"length",
")",
")",
";",
"}",
"for",
"(",
"o",
"t",
"a",
"update",
"summary",
"ele",
":",
"ota",
"updates",
")",
"{",
"this",
"ota",
"updates",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"ota",
"update",
"jobs",
"<",
"/",
"p",
">"
]
| [
"set",
"ota",
"updates",
"(",
"ota",
"updates",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"token",
"to",
"use",
"to",
"get",
"the",
"next",
"set",
"of",
"results",
"<",
"/",
"p",
">"
]
| [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
]
|
[
"get",
"the",
"character",
"encoding",
"of",
"source",
"files"
]
| [
"return",
"source",
"encoding",
";"
]
|
[
"set",
"the",
"character",
"encoding",
"of",
"source",
"files"
]
| [
"this",
"source",
"encoding",
"=",
"charset",
"for",
"name",
"(",
"source",
"encoding",
")",
";"
]
|
[
"register",
"the",
"given",
"type",
"to",
"be",
"used",
"as",
"a",
"qualifier",
"when",
"autowiring",
"<",
"p",
">",
"this",
"identifies",
"qualifier",
"annotations",
"for",
"direct",
"use",
"(",
"on",
"fields",
"method",
"parameters",
"and",
"constructor",
"parameters",
")",
"as",
"well",
"as",
"meta",
"annotations",
"that",
"in",
"turn",
"identify",
"actual",
"qualifier",
"annotations",
"<",
"p",
">",
"this",
"implementation",
"only",
"supports",
"annotations",
"as",
"qualifier",
"types",
"the",
"default",
"is",
"spring",
"s",
"{"
]
| [
"this",
"qualifier",
"types",
"add",
"(",
"qualifier",
"type",
")",
";"
]
|
[
"set",
"the",
"value",
"annotation",
"type",
"to",
"be",
"used",
"on",
"fields",
"method",
"parameters",
"and",
"constructor",
"parameters",
"<",
"p",
">",
"the",
"default",
"value",
"annotation",
"type",
"is",
"the",
"spring",
"-",
"provided",
"{"
]
| [
"this",
"value",
"annotation",
"type",
"=",
"value",
"annotation",
"type",
";"
]
|
[
"determine",
"whether",
"the",
"provided",
"bean",
"definition",
"is",
"an",
"autowire",
"candidate",
"<",
"p",
">",
"to",
"be",
"considered",
"a",
"candidate",
"the",
"bean",
"s",
"<",
"em",
">",
"autowire",
"-",
"candidate",
"<",
"/",
"em",
">",
"attribute",
"must",
"not",
"have",
"been",
"set",
"to",
"false",
"also",
"if",
"an",
"annotation",
"on",
"the",
"field",
"or",
"parameter",
"to",
"be",
"autowired",
"is",
"recognized",
"by",
"this",
"bean",
"factory",
"as",
"a",
"<",
"em",
">",
"qualifier",
"<",
"/",
"em",
">",
"the",
"bean",
"must",
"match",
"against",
"the",
"annotation",
"as",
"well",
"as",
"any",
"attributes",
"it",
"may",
"contain",
"the",
"bean",
"definition",
"must",
"contain",
"the",
"same",
"qualifier",
"or",
"match",
"by",
"meta",
"attributes",
"a",
"value",
"attribute",
"will",
"fallback",
"to",
"match",
"against",
"the",
"bean",
"name",
"or",
"an",
"alias",
"if",
"a",
"qualifier",
"or",
"attribute",
"does",
"not",
"match"
]
| [
"boolean",
"match",
"=",
"super",
"is",
"autowire",
"candidate",
"(",
"bd",
"holder",
",",
"descriptor",
")",
";",
"if",
"(",
"match",
")",
"{",
"match",
"=",
"check",
"qualifiers",
"(",
"bd",
"holder",
",",
"descriptor",
"get",
"annotations",
"(",
")",
")",
";",
"if",
"(",
"match",
")",
"{",
"method",
"parameter",
"method",
"param",
"=",
"descriptor",
"get",
"method",
"parameter",
"(",
")",
";",
"if",
"(",
"method",
"param",
"!",
"=",
"null",
")",
"{",
"method",
"method",
"=",
"method",
"param",
"get",
"method",
"(",
")",
";",
"if",
"(",
"method",
"=",
"=",
"null",
"|",
"|",
"void",
"class",
"=",
"=",
"method",
"get",
"return",
"type",
"(",
")",
")",
"{",
"match",
"=",
"check",
"qualifiers",
"(",
"bd",
"holder",
",",
"method",
"param",
"get",
"method",
"annotations",
"(",
")",
")",
";",
"}",
"}",
"}",
"}",
"return",
"match",
";"
]
|
[
"checks",
"whether",
"the",
"given",
"annotation",
"type",
"is",
"a",
"recognized",
"qualifier",
"type"
]
| [
"for",
"(",
"class",
"<",
"?",
"extends",
"annotation",
">",
"qualifier",
"type",
":",
"this",
"qualifier",
"types",
")",
"{",
"if",
"(",
"annotation",
"type",
"equals",
"(",
"qualifier",
"type",
")",
"|",
"|",
"annotation",
"type",
"is",
"annotation",
"present",
"(",
"qualifier",
"type",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
]
|
[
"determine",
"whether",
"the",
"given",
"dependency",
"declares",
"an",
"autowired",
"annotation",
"checking",
"its",
"required",
"flag"
]
| [
"if",
"(",
"!",
"super",
"is",
"required",
"(",
"descriptor",
")",
")",
"{",
"return",
"false",
";",
"}",
"autowired",
"autowired",
"=",
"descriptor",
"get",
"annotation",
"(",
"autowired",
"class",
")",
";",
"return",
"(",
"autowired",
"=",
"=",
"null",
"|",
"|",
"autowired",
"required",
"(",
")",
")",
";"
]
|
[
"determine",
"whether",
"the",
"given",
"dependency",
"declares",
"a",
"qualifier",
"annotation"
]
| [
"for",
"(",
"annotation",
"ann",
":",
"descriptor",
"get",
"annotations",
"(",
")",
")",
"{",
"if",
"(",
"is",
"qualifier",
"(",
"ann",
"annotation",
"type",
"(",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
]
|
[
"determine",
"whether",
"the",
"given",
"dependency",
"declares",
"a",
"value",
"annotation"
]
| [
"object",
"value",
"=",
"find",
"value",
"(",
"descriptor",
"get",
"annotations",
"(",
")",
")",
";",
"if",
"(",
"value",
"=",
"=",
"null",
")",
"{",
"method",
"parameter",
"method",
"param",
"=",
"descriptor",
"get",
"method",
"parameter",
"(",
")",
";",
"if",
"(",
"method",
"param",
"!",
"=",
"null",
")",
"{",
"value",
"=",
"find",
"value",
"(",
"method",
"param",
"get",
"method",
"annotations",
"(",
")",
")",
";",
"}",
"}",
"return",
"value",
";"
]
|
[
"advance",
"the",
"iterator",
"to",
"the",
"next",
"interval"
]
| [
"public",
"abstract",
"int",
"next",
"interval",
"(",
")",
"throws",
"i",
"o",
"exception",
";"
]
|
[
"should",
"be",
"used",
"only",
"in",
"tests",
"directly",
"or",
"indirectly",
"(",
"via",
"{"
]
| [
"return",
"instance",
";"
]
|
[
"replace",
"the",
"current",
"selection",
"with",
"whatever",
"s",
"in",
"the",
"replacement",
"text",
"field",
"marking",
"the",
"action",
"as",
"a",
"compound",
"edit"
]
| [
"replace",
"(",
"true",
")",
";"
]
|
[
"replace",
"the",
"current",
"selection",
"with",
"whatever",
"s",
"in",
"the",
"replacement",
"text",
"field",
"and",
"then",
"find",
"the",
"next",
"match"
]
| [
"replace",
"(",
")",
";",
"find",
"next",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"find",
"next",
"/",
"previous",
"will",
"work",
"for",
"graying",
"-",
"out",
"of",
"menu",
"items"
]
| [
"return",
"find",
"field",
"get",
"text",
"(",
")",
"length",
"(",
")",
"!",
"=",
"0",
";"
]
|
[
"<",
"p",
">",
"the",
"names",
"of",
"the",
"tables",
"associated",
"with",
"the",
"current",
"account",
"at",
"the",
"current",
"endpoint",
"the",
"maximum",
"size",
"of",
"this",
"array",
"is",
"100",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"also",
"appears",
"in",
"the",
"output",
"you",
"can",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"parameter",
"in",
"a",
"subsequent",
"<",
"code",
">",
"list",
"tables",
"<",
"/",
"code",
">",
"request",
"and",
"obtain",
"the",
"next",
"page",
"of",
"results",
"<",
"/",
"p",
">"
]
| [
"return",
"table",
"names",
";"
]
|
[
"<",
"p",
">",
"the",
"names",
"of",
"the",
"tables",
"associated",
"with",
"the",
"current",
"account",
"at",
"the",
"current",
"endpoint",
"the",
"maximum",
"size",
"of",
"this",
"array",
"is",
"100",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"also",
"appears",
"in",
"the",
"output",
"you",
"can",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"parameter",
"in",
"a",
"subsequent",
"<",
"code",
">",
"list",
"tables",
"<",
"/",
"code",
">",
"request",
"and",
"obtain",
"the",
"next",
"page",
"of",
"results",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"table",
"names",
"=",
"=",
"null",
")",
"{",
"this",
"table",
"names",
"=",
"null",
";",
"return",
";",
"}",
"this",
"table",
"names",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"table",
"names",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"names",
"of",
"the",
"tables",
"associated",
"with",
"the",
"current",
"account",
"at",
"the",
"current",
"endpoint",
"the",
"maximum",
"size",
"of",
"this",
"array",
"is",
"100",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"also",
"appears",
"in",
"the",
"output",
"you",
"can",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"parameter",
"in",
"a",
"subsequent",
"<",
"code",
">",
"list",
"tables",
"<",
"/",
"code",
">",
"request",
"and",
"obtain",
"the",
"next",
"page",
"of",
"results",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"table",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"table",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"table",
"names",
"=",
"=",
"null",
")",
"{",
"set",
"table",
"names",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"table",
"names",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"table",
"names",
")",
"{",
"this",
"table",
"names",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"names",
"of",
"the",
"tables",
"associated",
"with",
"the",
"current",
"account",
"at",
"the",
"current",
"endpoint",
"the",
"maximum",
"size",
"of",
"this",
"array",
"is",
"100",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"also",
"appears",
"in",
"the",
"output",
"you",
"can",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"parameter",
"in",
"a",
"subsequent",
"<",
"code",
">",
"list",
"tables",
"<",
"/",
"code",
">",
"request",
"and",
"obtain",
"the",
"next",
"page",
"of",
"results",
"<",
"/",
"p",
">"
]
| [
"set",
"table",
"names",
"(",
"table",
"names",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"last",
"table",
"in",
"the",
"current",
"page",
"of",
"results",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"in",
"a",
"new",
"request",
"to",
"obtain",
"the",
"next",
"page",
"of",
"results",
"until",
"all",
"the",
"table",
"names",
"are",
"returned",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"do",
"not",
"receive",
"a",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"value",
"in",
"the",
"response",
"this",
"means",
"that",
"there",
"are",
"no",
"more",
"table",
"names",
"to",
"be",
"retrieved",
"<",
"/",
"p",
">"
]
| [
"this",
"last",
"evaluated",
"table",
"name",
"=",
"last",
"evaluated",
"table",
"name",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"last",
"table",
"in",
"the",
"current",
"page",
"of",
"results",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"in",
"a",
"new",
"request",
"to",
"obtain",
"the",
"next",
"page",
"of",
"results",
"until",
"all",
"the",
"table",
"names",
"are",
"returned",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"do",
"not",
"receive",
"a",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"value",
"in",
"the",
"response",
"this",
"means",
"that",
"there",
"are",
"no",
"more",
"table",
"names",
"to",
"be",
"retrieved",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"last",
"evaluated",
"table",
"name",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"last",
"table",
"in",
"the",
"current",
"page",
"of",
"results",
"use",
"this",
"value",
"as",
"the",
"<",
"code",
">",
"exclusive",
"start",
"table",
"name",
"<",
"/",
"code",
">",
"in",
"a",
"new",
"request",
"to",
"obtain",
"the",
"next",
"page",
"of",
"results",
"until",
"all",
"the",
"table",
"names",
"are",
"returned",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"do",
"not",
"receive",
"a",
"<",
"code",
">",
"last",
"evaluated",
"table",
"name",
"<",
"/",
"code",
">",
"value",
"in",
"the",
"response",
"this",
"means",
"that",
"there",
"are",
"no",
"more",
"table",
"names",
"to",
"be",
"retrieved",
"<",
"/",
"p",
">"
]
| [
"set",
"last",
"evaluated",
"table",
"name",
"(",
"last",
"evaluated",
"table",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"package",
"name",
"of",
"the",
"source",
"of",
"this",
"event"
]
| [
"return",
"m",
"package",
";"
]
|
[
"the",
"class",
"name",
"of",
"the",
"source",
"of",
"this",
"event",
"this",
"may",
"be",
"null",
"for",
"certain",
"events"
]
| [
"return",
"m",
"class",
";"
]
|
[
"returns",
"the",
"{",
"@",
"link",
"shortcut",
"info",
"#",
"get",
"id",
"(",
")",
"id",
"}",
"that",
"this",
"notification",
"supersedes",
"if",
"any"
]
| [
"return",
"m",
"shortcut",
"id",
";"
]
|
[
"returns",
"the",
"standby",
"bucket",
"of",
"the",
"app",
"if",
"the",
"event",
"is",
"of",
"type",
"{"
]
| [
"return",
"(",
"m",
"bucket",
"and",
"reason",
"&",
"0x",
"f",
"f",
"f",
"f",
"0",
"0",
"0",
"0",
")",
">",
">",
">",
"16",
";"
]
|
[
"returns",
"the",
"standby",
"bucket",
"of",
"the",
"app",
"if",
"the",
"event",
"is",
"of",
"type",
"{",
"@",
"link",
"#",
"standby",
"bucket",
"changed",
"}",
"otherwise",
"returns",
"0",
"@",
"return",
"the",
"standby",
"bucket",
"associated",
"with",
"the",
"event"
]
| [
"return",
"(",
"m",
"bucket",
"and",
"reason",
"&",
"0x",
"f",
"f",
"f",
"f",
"0",
"0",
"0",
"0",
")",
">",
">",
">",
"16",
";"
]
|
[
"returns",
"the",
"reason",
"for",
"the",
"bucketing",
"if",
"the",
"event",
"is",
"of",
"type",
"{"
]
| [
"return",
"m",
"bucket",
"and",
"reason",
"&",
"0x",
"0",
"0",
"0",
"0",
"f",
"f",
"f",
"f",
";"
]
|
[
"returns",
"the",
"id",
"of",
"the",
"{"
]
| [
"return",
"m",
"notification",
"channel",
"id",
";"
]
|
[
"returns",
"whether",
"or",
"not",
"there",
"are",
"more",
"events",
"to",
"read",
"using",
"{",
"@",
"link",
"#",
"get",
"next",
"event",
"(",
"android",
"app",
"usage",
"usage",
"events",
"event",
")",
"}"
]
| [
"return",
"m",
"index",
"<",
"m",
"event",
"count",
";"
]
|
[
"retrieve",
"the",
"next",
"{",
"@",
"link",
"android",
"app",
"usage",
"usage",
"events",
"event",
"}",
"from",
"the",
"collection",
"and",
"put",
"the",
"resulting",
"data",
"into",
"{",
"@",
"code",
"event",
"out",
"}"
]
| [
"if",
"(",
"m",
"index",
">",
"=",
"m",
"event",
"count",
")",
"{",
"return",
"false",
";",
"}",
"read",
"event",
"from",
"parcel",
"(",
"m",
"parcel",
",",
"event",
"out",
")",
";",
"m",
"index",
"+",
"+",
";",
"if",
"(",
"m",
"index",
">",
"=",
"m",
"event",
"count",
")",
"{",
"m",
"parcel",
"recycle",
"(",
")",
";",
"m",
"parcel",
"=",
"null",
";",
"}",
"return",
"true",
";"
]
|
[
"resets",
"the",
"collection",
"so",
"that",
"it",
"can",
"be",
"iterated",
"over",
"from",
"the",
"beginning"
]
| [
"m",
"index",
"=",
"0",
";",
"if",
"(",
"m",
"parcel",
"!",
"=",
"null",
")",
"{",
"m",
"parcel",
"set",
"data",
"position",
"(",
"0",
")",
";",
"}"
]
|
[
"writes",
"a",
"single",
"event",
"to",
"the",
"parcel",
"modify",
"this",
"when",
"updating",
"{"
]
| [
"final",
"int",
"package",
"index",
";",
"if",
"(",
"event",
"m",
"package",
"!",
"=",
"null",
")",
"{",
"package",
"index",
"=",
"find",
"string",
"index",
"(",
"event",
"m",
"package",
")",
";",
"}",
"else",
"{",
"package",
"index",
"=",
"-",
"1",
";",
"}",
"final",
"int",
"class",
"index",
";",
"if",
"(",
"event",
"m",
"class",
"!",
"=",
"null",
")",
"{",
"class",
"index",
"=",
"find",
"string",
"index",
"(",
"event",
"m",
"class",
")",
";",
"}",
"else",
"{",
"class",
"index",
"=",
"-",
"1",
";",
"}",
"p",
"write",
"int",
"(",
"package",
"index",
")",
";",
"p",
"write",
"int",
"(",
"class",
"index",
")",
";",
"p",
"write",
"int",
"(",
"event",
"m",
"event",
"type",
")",
";",
"p",
"write",
"long",
"(",
"event",
"m",
"time",
"stamp",
")",
";",
"switch",
"(",
"event",
"m",
"event",
"type",
")",
"{",
"case",
"event",
"configuration",
"change",
":",
"event",
"m",
"configuration",
"write",
"to",
"parcel",
"(",
"p",
",",
"flags",
")",
";",
"break",
";",
"case",
"event",
"shortcut",
"invocation",
":",
"p",
"write",
"string",
"(",
"event",
"m",
"shortcut",
"id",
")",
";",
"break",
";",
"case",
"event",
"chooser",
"action",
":",
"p",
"write",
"string",
"(",
"event",
"m",
"action",
")",
";",
"p",
"write",
"string",
"(",
"event",
"m",
"content",
"type",
")",
";",
"p",
"write",
"string",
"array",
"(",
"event",
"m",
"content",
"annotations",
")",
";",
"break",
";",
"case",
"event",
"standby",
"bucket",
"changed",
":",
"p",
"write",
"int",
"(",
"event",
"m",
"bucket",
"and",
"reason",
")",
";",
"break",
";",
"case",
"event",
"notification",
"interruption",
":",
"p",
"write",
"string",
"(",
"event",
"m",
"notification",
"channel",
"id",
")",
";",
"break",
";",
"}"
]
|
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"the",
"descriptions",
"of",
"the",
"specified",
"delivery",
"channel",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"delivery",
"channels",
"=",
"=",
"null",
")",
"{",
"delivery",
"channels",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"delivery",
"channel",
">",
"(",
")",
";",
"}",
"return",
"delivery",
"channels",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"the",
"descriptions",
"of",
"the",
"specified",
"delivery",
"channel",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"delivery",
"channels",
"=",
"=",
"null",
")",
"{",
"this",
"delivery",
"channels",
"=",
"null",
";",
"return",
";",
"}",
"this",
"delivery",
"channels",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"delivery",
"channel",
">",
"(",
"delivery",
"channels",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"the",
"descriptions",
"of",
"the",
"specified",
"delivery",
"channel",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"delivery",
"channels",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"delivery",
"channels",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"delivery",
"channels",
"=",
"=",
"null",
")",
"{",
"set",
"delivery",
"channels",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"delivery",
"channel",
">",
"(",
"delivery",
"channels",
"length",
")",
")",
";",
"}",
"for",
"(",
"delivery",
"channel",
"ele",
":",
"delivery",
"channels",
")",
"{",
"this",
"delivery",
"channels",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"the",
"descriptions",
"of",
"the",
"specified",
"delivery",
"channel",
"<",
"/",
"p",
">"
]
| [
"set",
"delivery",
"channels",
"(",
"delivery",
"channels",
")",
";",
"return",
"this",
";"
]
|
[
"dp",
"version",
"where",
"we",
"do",
"not",
"recalculate",
"values",
"but",
"just",
"keep",
"last",
"2",
"calculate",
"values"
]
| [
"int",
"n",
"1",
"=",
"0",
",",
"n",
"2",
"=",
"1",
";",
"int",
"sum",
";",
"if",
"(",
"n",
"=",
"=",
"n",
"1",
"|",
"|",
"n",
"=",
"=",
"n",
"2",
")",
"{",
"return",
"n",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"2",
";",
"i",
"<",
"=",
"n",
";",
"i",
"+",
"+",
")",
"{",
"sum",
"=",
"n",
"1",
"+",
"n",
"2",
";",
"n",
"1",
"=",
"n",
"2",
";",
"n",
"2",
"=",
"sum",
";",
"}",
"return",
"n",
"2",
";"
]
|
[
"recursive",
"and",
"slow",
"version",
"recalculates",
"same",
"value",
"over",
"and",
"over",
"again",
"chokes",
"for",
"n",
"greater",
"than",
"60"
]
| [
"if",
"(",
"n",
"=",
"=",
"1",
"|",
"|",
"n",
"=",
"=",
"0",
")",
"{",
"return",
"n",
";",
"}",
"return",
"fibonacci",
"series",
"recursive",
"(",
"n",
"-",
"1",
")",
"+",
"fibonacci",
"series",
"recursive",
"(",
"n",
"-",
"2",
")",
";"
]
|
[
"store",
"extract",
"results"
]
| [
"result",
"items",
"put",
"(",
"key",
",",
"field",
")",
";"
]
|
[
"get",
"html",
"content",
"of",
"page"
]
| [
"if",
"(",
"html",
"=",
"=",
"null",
")",
"{",
"html",
"=",
"new",
"html",
"(",
"raw",
"text",
",",
"request",
"get",
"url",
"(",
")",
")",
";",
"}",
"return",
"html",
";"
]
|
[
"get",
"json",
"content",
"of",
"page"
]
| [
"if",
"(",
"json",
"=",
"=",
"null",
")",
"{",
"json",
"=",
"new",
"json",
"(",
"raw",
"text",
")",
";",
"}",
"return",
"json",
";"
]
|
[
"add",
"requests",
"to",
"fetch"
]
| [
"target",
"requests",
"add",
"(",
"request",
")",
";"
]
|
[
"get",
"url",
"of",
"current",
"page"
]
| [
"return",
"url",
";"
]
|
[
"finds",
"the",
"right",
"handler",
"for",
"a",
"telnet",
"-",
"style",
"rpc",
"and",
"executes",
"it"
]
| [
"telnet",
"rpc",
"rpc",
"=",
"rpc",
"manager",
"lookup",
"telnet",
"rpc",
"(",
"command",
"[",
"0",
"]",
")",
";",
"if",
"(",
"rpc",
"=",
"=",
"null",
")",
"{",
"rpc",
"=",
"unknown",
"cmd",
";",
"}",
"telnet",
"rpcs",
"received",
"increment",
"and",
"get",
"(",
")",
";",
"rpc",
"execute",
"(",
"tsdb",
",",
"chan",
",",
"command",
")",
";"
]
|
[
"helper",
"method",
"for",
"sending",
"a",
"status",
"-",
"only",
"http",
"response",
"this",
"is",
"used",
"in",
"cases",
"where",
"{"
]
| [
"if",
"(",
"chan",
"is",
"connected",
"(",
")",
")",
"{",
"final",
"default",
"http",
"response",
"response",
"=",
"new",
"default",
"http",
"response",
"(",
"http",
"version",
"http",
"1",
"1",
",",
"status",
")",
";",
"final",
"channel",
"future",
"future",
"=",
"chan",
"write",
"(",
"response",
")",
";",
"future",
"add",
"listener",
"(",
"channel",
"future",
"listener",
"close",
")",
";",
"}"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"/",
"/"
]
| [
"log",
"warn",
"(",
"query",
"channel",
"(",
")",
"to",
"string",
"(",
")",
"+",
"'",
"'",
"+",
"msg",
")",
";"
]
|
[
"given",
"a",
"complete",
"struct",
"type",
"info",
"and",
"pruned",
"paths",
"containing",
"selected",
"fields",
"from",
"the",
"type",
"info",
"return",
"a",
"pruned",
"struct",
"type",
"info",
"only",
"with",
"the",
"selected",
"fields"
]
| [
"pruned",
"struct",
"type",
"info",
"pruned",
"type",
"info",
"=",
"new",
"pruned",
"struct",
"type",
"info",
"(",
"original",
"type",
"info",
")",
";",
"for",
"(",
"string",
"path",
":",
"pruned",
"paths",
")",
"{",
"prune",
"from",
"single",
"path",
"(",
"pruned",
"type",
"info",
",",
"path",
")",
";",
"}",
"return",
"pruned",
"type",
"info",
"prune",
"(",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.