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",
"typ... |
[
"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",
"=",
"... |
[
"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",
";",
"}",
"}",
... |
[
"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",... |
[
"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",
"(",
... |
[
"converts",
"a",
"<",
"code",
">",
"double",
"<",
"/",
"code",
">",
"value",
"to",
"a",
"sortable",
"signed",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"the",
"value",
"is",
"converted",
"by",
"getting",
"their",
"ieee",
"754",
"floating",
"-"... | [
"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",
"-",
... | [
"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",
"(",
"... |
[
"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",
"(",
")",
")",
... |
[
"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"... |
[
"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",
"<",
"?",
">",
"register... |
[
"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",
")",
";",
"sub... |
[
"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",
"... |
[
"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",
"has... |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"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",
">",
"(",
"ot... |
[
"<",
"p",
">",
"a",
"list",
"of",
"ota",
"update",
"jobs",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")"... | [
"if",
"(",
"this",
"ota",
"updates",
"=",
"=",
"null",
")",
"{",
"set",
"ota",
"updates",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"o",
"t",
"a",
"update",
"summary",
">",
"(",
"ota",
"updates",
"length",
")",
")",
";",
"}",
"for",
"(",
... |
[
"<",
"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",
... | [
"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",
">",
"attri... | [
"boolean",
"match",
"=",
"super",
"is",
"autowire",
"candidate",
"(",
"bd",
"holder",
",",
"descriptor",
")",
";",
"if",
"(",
"match",
")",
"{",
"match",
"=",
"check",
"qualifiers",
"(",
"bd",
"holder",
",",
"descriptor",
"get",
"annotations",
"(",
")",
... |
[
"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",
"... |
[
"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",... |
[
"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",
"(",
")",
"... |
[
"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",
"<",
... | [
"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",
"<",
... | [
"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",
"<",
... | [
"if",
"(",
"this",
"table",
"names",
"=",
"=",
"null",
")",
"{",
"set",
"table",
"names",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"string",
">",
"(",
"table",
"names",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"tab... |
[
"<",
"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",
"<",
... | [
"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",
"req... | [
"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",
"req... | [
"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",
"req... | [
"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",
... | [
"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",
">",
... |
[
"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"... |
[
"<",
"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",
"... |
[
"<",
"p",
">",
"a",
"list",
"that",
"contains",
"the",
"descriptions",
"of",
"the",
"specified",
"delivery",
"channel",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",... | [
"if",
"(",
"this",
"delivery",
"channels",
"=",
"=",
"null",
")",
"{",
"set",
"delivery",
"channels",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"delivery",
"channel",
">",
"(",
"delivery",
"channels",
"length",
")",
")",
... |
[
"<",
"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",
"<",
... |
[
"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... |
[
"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",
"f... |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"/",
"/"
] | [
"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",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.