docstring_tokens
list | code_tokens
list |
---|---|
[
"get",
"the",
"list",
"of",
"magic",
"strings",
"recognized",
"by",
"this",
"analyzer",
"if",
"a",
"file",
"starts",
"with",
"one",
"of",
"these",
"strings",
"an",
"analyzer",
"created",
"by",
"this",
"factory",
"should",
"be",
"used",
"to",
"analyze",
"it"
] | [
"return",
"magics",
";"
] |
[
"get",
"matchers",
"that",
"map",
"file",
"contents",
"to",
"analyzer",
"factories",
"programmatically"
] | [
"return",
"matchers",
";"
] |
[
"get",
"the",
"content",
"type",
"(",
"mime",
"type",
")",
"for",
"analyzers",
"returned",
"by",
"this",
"factory"
] | [
"return",
"content",
"type",
";"
] |
[
"the",
"genre",
"this",
"analyzer",
"factory",
"belongs",
"to"
] | [
"return",
"genre",
";"
] |
[
"get",
"an",
"analyzer",
"if",
"the",
"same",
"thread",
"calls",
"this",
"method",
"multiple",
"times",
"on",
"the",
"same",
"factory",
"object",
"the",
"exact",
"same",
"analyzer",
"object",
"will",
"be",
"returned",
"each",
"time",
"subclasses",
"should",
"not",
"override",
"this",
"method",
"but",
"instead",
"override",
"the",
"{",
"@",
"code",
"new",
"analyzer",
"(",
")",
"}",
"method"
] | [
"file",
"analyzer",
"fa",
"=",
"cached",
"analyzer",
"get",
"(",
")",
";",
"if",
"(",
"fa",
"=",
"=",
"null",
")",
"{",
"fa",
"=",
"new",
"analyzer",
"(",
")",
";",
"cached",
"analyzer",
"set",
"(",
"fa",
")",
";",
"}",
"return",
"fa",
";"
] |
[
"create",
"a",
"new",
"analyzer"
] | [
"return",
"new",
"file",
"analyzer",
"(",
"this",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"individual",
"attribute",
"names",
"such",
"as",
"<",
"code",
">",
"monthly",
"spend",
"limit",
"<",
"/",
"code",
">",
"for",
"which",
"you",
"want",
"values",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"all",
"attribute",
"names",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"sns",
"/",
"latest",
"/",
"api",
"/",
"api",
"set",
"s",
"m",
"s",
"attributes",
"html",
">",
"set",
"s",
"m",
"s",
"attributes",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"use",
"this",
"parameter",
"amazon",
"sns",
"returns",
"all",
"sms",
"attributes",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"attributes",
"=",
"=",
"null",
")",
"{",
"attributes",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
")",
";",
"}",
"return",
"attributes",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"individual",
"attribute",
"names",
"such",
"as",
"<",
"code",
">",
"monthly",
"spend",
"limit",
"<",
"/",
"code",
">",
"for",
"which",
"you",
"want",
"values",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"all",
"attribute",
"names",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"sns",
"/",
"latest",
"/",
"api",
"/",
"api",
"set",
"s",
"m",
"s",
"attributes",
"html",
">",
"set",
"s",
"m",
"s",
"attributes",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"use",
"this",
"parameter",
"amazon",
"sns",
"returns",
"all",
"sms",
"attributes",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"attributes",
"=",
"=",
"null",
")",
"{",
"this",
"attributes",
"=",
"null",
";",
"return",
";",
"}",
"this",
"attributes",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"attributes",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"individual",
"attribute",
"names",
"such",
"as",
"<",
"code",
">",
"monthly",
"spend",
"limit",
"<",
"/",
"code",
">",
"for",
"which",
"you",
"want",
"values",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"all",
"attribute",
"names",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"sns",
"/",
"latest",
"/",
"api",
"/",
"api",
"set",
"s",
"m",
"s",
"attributes",
"html",
">",
"set",
"s",
"m",
"s",
"attributes",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"use",
"this",
"parameter",
"amazon",
"sns",
"returns",
"all",
"sms",
"attributes",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"attributes",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"attributes",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"attributes",
"=",
"=",
"null",
")",
"{",
"set",
"attributes",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"attributes",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"attributes",
")",
"{",
"this",
"attributes",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"the",
"individual",
"attribute",
"names",
"such",
"as",
"<",
"code",
">",
"monthly",
"spend",
"limit",
"<",
"/",
"code",
">",
"for",
"which",
"you",
"want",
"values",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"all",
"attribute",
"names",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"sns",
"/",
"latest",
"/",
"api",
"/",
"api",
"set",
"s",
"m",
"s",
"attributes",
"html",
">",
"set",
"s",
"m",
"s",
"attributes",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"don",
"t",
"use",
"this",
"parameter",
"amazon",
"sns",
"returns",
"all",
"sms",
"attributes",
"<",
"/",
"p",
">"
] | [
"set",
"attributes",
"(",
"attributes",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"language",
"code",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"en",
"<",
"/",
"code",
">",
"-",
"english",
"(",
"default",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"jp",
"<",
"/",
"code",
">",
"-",
"japanese",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"zh",
"<",
"/",
"code",
">",
"-",
"chinese",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"accept",
"language",
"(",
"accept",
"language",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"portfolio",
"identifier",
"<",
"/",
"p",
">"
] | [
"set",
"portfolio",
"id",
"(",
"portfolio",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"product",
"identifier",
"<",
"/",
"p",
">"
] | [
"set",
"product",
"id",
"(",
"product",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"constraint",
"parameters",
"in",
"json",
"format",
"the",
"syntax",
"depends",
"on",
"the",
"constraint",
"type",
"as",
"follows",
":",
"<",
"/",
"p",
">",
"<",
"dl",
">",
"<",
"dt",
">",
"launch",
"<",
"/",
"dt",
">",
"<",
"dd",
">",
"<",
"p",
">",
"specify",
"the",
"<",
"code",
">",
"role",
"arn",
"<",
"/",
"code",
">",
"property",
"as",
"follows",
":",
"<",
"/",
"p",
">",
"<",
"p",
">",
"\\",
"role",
"arn",
"\\",
":",
"\\",
"arn",
":",
"aws",
":",
"iam",
":",
":",
"123456789012",
":",
"role",
"/",
"launch",
"role",
"\\",
"<",
"/",
"p",
">",
"<",
"/",
"dd",
">",
"<",
"dt",
">",
"notification",
"<",
"/",
"dt",
">",
"<",
"dd",
">",
"<",
"p",
">",
"specify",
"the",
"<",
"code",
">",
"notification",
"arns",
"<",
"/",
"code",
">",
"property",
"as",
"follows",
":",
"<",
"/",
"p",
">",
"<",
"p",
">",
"\\",
"notification",
"arns",
"\\",
":",
"[",
"\\",
"arn",
":",
"aws",
":",
"sns",
":",
"us",
"-",
"east",
"-",
"1",
":",
"123456789012",
":",
"topic",
"\\",
"]",
"<",
"/",
"p",
">",
"<",
"/",
"dd",
">",
"<",
"dt",
">",
"template",
"<",
"/",
"dt",
">",
"<",
"dd",
">",
"<",
"p",
">",
"specify",
"the",
"<",
"code",
">",
"rules",
"<",
"/",
"code",
">",
"property",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"servicecatalog",
"/",
"latest",
"/",
"adminguide",
"/",
"reference",
"-",
"template",
"constraint",
"rules",
"html",
">",
"template",
"constraint",
"rules",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">",
"<",
"/",
"dd",
">",
"<",
"/",
"dl",
">"
] | [
"set",
"parameters",
"(",
"parameters",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"constraint",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"launch",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"notification",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"template",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] | [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"description",
"of",
"the",
"constraint",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"unique",
"identifier",
"that",
"you",
"provide",
"to",
"ensure",
"idempotency",
"if",
"multiple",
"requests",
"differ",
"only",
"by",
"the",
"idempotency",
"token",
"the",
"same",
"response",
"is",
"returned",
"for",
"each",
"repeated",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"idempotency",
"token",
"(",
"idempotency",
"token",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"u",
"write",
"grid",
"uuid",
"(",
"out",
",",
"id",
")",
";",
"out",
"write",
"int",
"(",
"cap",
")",
";",
"out",
"write",
"boolean",
"(",
"collocated",
")",
";",
"out",
"write",
"long",
"(",
"head",
")",
";",
"out",
"write",
"long",
"(",
"tail",
")",
";",
"out",
"write",
"boolean",
"(",
"rmv",
"idxs",
"!",
"=",
"null",
")",
";",
"if",
"(",
"rmv",
"idxs",
"!",
"=",
"null",
")",
"{",
"out",
"write",
"int",
"(",
"rmv",
"idxs",
"size",
"(",
")",
")",
";",
"for",
"(",
"long",
"idx",
":",
"rmv",
"idxs",
")",
"out",
"write",
"long",
"(",
"idx",
")",
";",
"}"
] |
[
"{"
] | [
"id",
"=",
"u",
"read",
"grid",
"uuid",
"(",
"in",
")",
";",
"cap",
"=",
"in",
"read",
"int",
"(",
")",
";",
"collocated",
"=",
"in",
"read",
"boolean",
"(",
")",
";",
"head",
"=",
"in",
"read",
"long",
"(",
")",
";",
"tail",
"=",
"in",
"read",
"long",
"(",
")",
";",
"if",
"(",
"in",
"read",
"boolean",
"(",
")",
")",
"{",
"int",
"size",
"=",
"in",
"read",
"int",
"(",
")",
";",
"rmv",
"idxs",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"+",
"+",
")",
"rmv",
"idxs",
"add",
"(",
"in",
"read",
"long",
"(",
")",
")",
";",
"}"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"grid",
"cache",
"queue",
"header",
"class",
",",
"this",
")",
";"
] |
[
"<",
"p",
">",
"name",
"of",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"arn",
"for",
"the",
"newly",
"create",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"this",
"stream",
"processor",
"arn",
"=",
"stream",
"processor",
"arn",
";"
] |
[
"<",
"p",
">",
"arn",
"for",
"the",
"newly",
"create",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"stream",
"processor",
"arn",
";"
] |
[
"<",
"p",
">",
"arn",
"of",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"set",
"stream",
"processor",
"arn",
"(",
"stream",
"processor",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"current",
"status",
"of",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"set",
"status",
"(",
"status",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"current",
"status",
"of",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"this",
"status",
"=",
"status",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"detailed",
"status",
"message",
"about",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"set",
"status",
"message",
"(",
"status",
"message",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"date",
"and",
"time",
"the",
"stream",
"processor",
"was",
"created",
"<",
"/",
"p",
">"
] | [
"set",
"creation",
"timestamp",
"(",
"creation",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"time",
"in",
"unix",
"format",
"the",
"stream",
"processor",
"was",
"last",
"updated",
"for",
"example",
"when",
"the",
"stream",
"processor",
"moves",
"from",
"a",
"running",
"state",
"to",
"a",
"failed",
"state",
"or",
"when",
"the",
"user",
"starts",
"or",
"stops",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"set",
"last",
"update",
"timestamp",
"(",
"last",
"update",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"kinesis",
"video",
"stream",
"that",
"provides",
"the",
"source",
"streaming",
"video",
"<",
"/",
"p",
">"
] | [
"set",
"input",
"(",
"input",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"kinesis",
"data",
"stream",
"to",
"which",
"amazon",
"rekognition",
"video",
"puts",
"the",
"analysis",
"results",
"<",
"/",
"p",
">"
] | [
"set",
"output",
"(",
"output",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"arn",
"of",
"the",
"iam",
"role",
"that",
"allows",
"access",
"to",
"the",
"stream",
"processor",
"<",
"/",
"p",
">"
] | [
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"face",
"recognition",
"input",
"parameters",
"that",
"are",
"being",
"used",
"by",
"the",
"stream",
"processor",
"includes",
"the",
"collection",
"to",
"use",
"for",
"face",
"recognition",
"and",
"the",
"face",
"attributes",
"to",
"detect",
"<",
"/",
"p",
">"
] | [
"set",
"settings",
"(",
"settings",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"this",
"manifold",
"point",
"form",
"the",
"given",
"one"
] | [
"local",
"point",
"set",
"(",
"cp",
"local",
"point",
")",
";",
"normal",
"impulse",
"=",
"cp",
"normal",
"impulse",
";",
"tangent",
"impulse",
"=",
"cp",
"tangent",
"impulse",
";",
"id",
"set",
"(",
"cp",
"id",
")",
";"
] |
[
"synchronizes",
"the",
"execution",
"of",
"two",
"concurrent",
"state",
"modifications",
"as",
"much",
"as",
"possible",
"to",
"test",
"race",
"conditions",
"the",
"method",
"blocks",
"until",
"the",
"given",
"{",
"@",
"link",
"predicate",
"}",
"matches",
"it",
"performs",
"a",
"{",
"@",
"link",
"bi",
"predicate",
"}",
"test",
"at",
"the",
"end",
"to",
"validate",
"the",
"end",
"result"
] | [
"scheduler",
"worker",
"w",
"1",
"=",
"schedulers",
"elastic",
"(",
")",
"create",
"worker",
"(",
")",
";",
"scheduler",
"worker",
"w",
"2",
"=",
"schedulers",
"elastic",
"(",
")",
"create",
"worker",
"(",
")",
";",
"try",
"{",
"atomic",
"reference",
"<",
"t",
">",
"ref",
"1",
"=",
"new",
"atomic",
"reference",
"<",
">",
"(",
")",
";",
"count",
"down",
"latch",
"cdl",
"1",
"=",
"new",
"count",
"down",
"latch",
"(",
"1",
")",
";",
"atomic",
"reference",
"<",
"t",
">",
"ref",
"2",
"=",
"new",
"atomic",
"reference",
"<",
">",
"(",
")",
";",
"count",
"down",
"latch",
"cdl",
"2",
"=",
"new",
"count",
"down",
"latch",
"(",
"1",
")",
";",
"w",
"1",
"schedule",
"(",
"(",
")",
"-",
">",
"{",
"t",
"state",
"=",
"initial",
";",
"while",
"(",
"!",
"stop",
"race",
"test",
"(",
"state",
")",
")",
"{",
"state",
"=",
"race",
"apply",
"(",
"state",
")",
";",
"lock",
"support",
"park",
"nanos",
"(",
"1l",
")",
";",
"}",
"ref",
"1",
"set",
"(",
"state",
")",
";",
"cdl",
"1",
"count",
"down",
"(",
")",
";",
"}",
")",
";",
"w",
"2",
"schedule",
"(",
"(",
")",
"-",
">",
"{",
"t",
"state",
"=",
"initial",
";",
"while",
"(",
"!",
"stop",
"race",
"test",
"(",
"state",
")",
")",
"{",
"state",
"=",
"race",
"apply",
"(",
"state",
")",
";",
"lock",
"support",
"park",
"nanos",
"(",
"1l",
")",
";",
"}",
"ref",
"2",
"set",
"(",
"state",
")",
";",
"cdl",
"2",
"count",
"down",
"(",
")",
";",
"}",
")",
";",
"try",
"{",
"cdl",
"1",
"await",
"(",
")",
";",
"cdl",
"2",
"await",
"(",
")",
";",
"}",
"catch",
"(",
"interrupted",
"exception",
"e",
")",
"{",
"thread",
"current",
"thread",
"(",
")",
"interrupt",
"(",
")",
";",
"}",
"return",
"terminate",
"test",
"(",
"ref",
"1",
"get",
"(",
")",
",",
"ref",
"2",
"get",
"(",
")",
")",
";",
"}",
"finally",
"{",
"w",
"1",
"dispose",
"(",
")",
";",
"w",
"2",
"dispose",
"(",
")",
";",
"}"
] |
[
"synchronizes",
"the",
"execution",
"of",
"two",
"{"
] | [
"race",
"(",
"r",
"1",
",",
"r",
"2",
",",
"schedulers",
"single",
"(",
")",
")",
";"
] |
[
"marshals",
"the",
"given",
"body"
] | [
"try",
"{",
"list",
"<",
"?",
">",
"list",
"=",
"convert",
"to",
"type",
"(",
"exchange",
",",
"list",
"class",
",",
"body",
")",
";",
"if",
"(",
"list",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"object",
"row",
":",
"list",
")",
"{",
"write",
"row",
"(",
"exchange",
",",
"row",
",",
"writer",
")",
";",
"}",
"}",
"else",
"{",
"write",
"row",
"(",
"exchange",
",",
"body",
",",
"writer",
")",
";",
"}",
"}",
"finally",
"{",
"writer",
"close",
"(",
")",
";",
"}"
] |
[
"writes",
"the",
"given",
"row"
] | [
"map",
"<",
"?",
",",
"?",
">",
"map",
"=",
"convert",
"to",
"mandatory",
"type",
"(",
"exchange",
",",
"map",
"class",
",",
"row",
")",
";",
"if",
"(",
"adapt",
"headers",
")",
"{",
"synchronized",
"(",
"headers",
")",
"{",
"for",
"(",
"object",
"key",
":",
"map",
"key",
"set",
"(",
")",
")",
"{",
"headers",
"add",
"(",
"convert",
"to",
"mandatory",
"type",
"(",
"exchange",
",",
"string",
"class",
",",
"key",
")",
")",
";",
"}",
"write",
"row",
"(",
"map",
",",
"writer",
")",
";",
"}",
"}",
"else",
"{",
"write",
"row",
"(",
"map",
",",
"writer",
")",
";",
"}"
] |
[
"writes",
"the",
"given",
"map",
"as",
"row"
] | [
"object",
"[",
"]",
"values",
"=",
"new",
"object",
"[",
"headers",
"size",
"(",
")",
"]",
";",
"int",
"index",
"=",
"0",
";",
"for",
"(",
"string",
"header",
":",
"headers",
")",
"{",
"values",
"[",
"index",
"+",
"+",
"]",
"=",
"map",
"get",
"(",
"header",
")",
";",
"}",
"writer",
"write",
"row",
"(",
"values",
")",
";"
] |
[
"convert",
"a",
"rocket",
"m",
"q",
"send",
"ok",
"send",
"result",
"instance",
"to",
"a",
"oms",
"send",
"result"
] | [
"assert",
"rmq",
"result",
"get",
"send",
"status",
"(",
")",
"equals",
"(",
"send",
"status",
"send",
"ok",
")",
";",
"return",
"new",
"send",
"result",
"impl",
"(",
"rmq",
"result",
"get",
"msg",
"id",
"(",
")",
",",
"oms",
"new",
"key",
"value",
"(",
")",
")",
";"
] |
[
"creates",
"new",
"instance",
"of",
"given",
"class"
] | [
"constructor",
"<",
"?",
">",
"constructor",
"=",
"clazz",
"get",
"declared",
"constructor",
"(",
"int",
"class",
")",
";",
"constructor",
"set",
"accessible",
"(",
"true",
")",
";",
"return",
"(",
"x",
"a",
"exception",
")",
"constructor",
"new",
"instance",
"(",
"xa",
"error",
"code",
")",
";"
] |
[
"test",
"to",
"convert",
"between",
"a",
"block",
"info",
"type",
"and",
"a",
"json",
"type"
] | [
"block",
"info",
"block",
"info",
"=",
"create",
"random",
"(",
")",
";",
"object",
"mapper",
"mapper",
"=",
"new",
"object",
"mapper",
"(",
")",
";",
"block",
"info",
"other",
"=",
"mapper",
"read",
"value",
"(",
"mapper",
"write",
"value",
"as",
"bytes",
"(",
"block",
"info",
")",
",",
"block",
"info",
"class",
")",
";",
"check",
"equality",
"(",
"block",
"info",
",",
"other",
")",
";"
] |
[
"test",
"to",
"convert",
"between",
"a",
"thrift",
"type",
"and",
"a",
"wire",
"type"
] | [
"block",
"info",
"block",
"info",
"=",
"create",
"random",
"(",
")",
";",
"block",
"info",
"other",
"=",
"block",
"info",
"from",
"thrift",
"(",
"block",
"info",
"to",
"thrift",
"(",
")",
")",
";",
"check",
"equality",
"(",
"block",
"info",
",",
"other",
")",
";"
] |
[
"check",
"if",
"the",
"two",
"block",
"info",
"object",
"are",
"equal"
] | [
"assert",
"assert",
"equals",
"(",
"a",
"get",
"block",
"id",
"(",
")",
",",
"b",
"get",
"block",
"id",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"a",
"get",
"length",
"(",
")",
",",
"b",
"get",
"length",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"a",
"get",
"locations",
"(",
")",
",",
"b",
"get",
"locations",
"(",
")",
")",
";",
"assert",
"assert",
"equals",
"(",
"a",
",",
"b",
")",
";"
] |
[
"randomly",
"create",
"a",
"block",
"info",
"object"
] | [
"block",
"info",
"result",
"=",
"new",
"block",
"info",
"(",
")",
";",
"random",
"random",
"=",
"new",
"random",
"(",
")",
";",
"long",
"block",
"id",
"=",
"random",
"next",
"long",
"(",
")",
";",
"long",
"length",
"=",
"random",
"next",
"long",
"(",
")",
";",
"list",
"<",
"block",
"location",
">",
"locations",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"long",
"num",
"locations",
"=",
"random",
"next",
"int",
"(",
"10",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"num",
"locations",
";",
"i",
"+",
"+",
")",
"{",
"locations",
"add",
"(",
"block",
"location",
"test",
"create",
"random",
"(",
")",
")",
";",
"}",
"result",
"set",
"block",
"id",
"(",
"block",
"id",
")",
";",
"result",
"set",
"length",
"(",
"length",
")",
";",
"result",
"set",
"locations",
"(",
"locations",
")",
";",
"return",
"result",
";"
] |
[
"appends",
"a",
"new",
"node",
"to",
"a",
"parent",
"node"
] | [
"parent",
"get",
"children",
"(",
")",
"add",
"(",
"child",
")",
";"
] |
[
"remove",
"all",
"access",
"permission",
"for",
"a",
"device"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"m",
"device",
"permission",
"map",
"remove",
"(",
"device",
"get",
"device",
"name",
"(",
")",
")",
";",
"}"
] |
[
"remove",
"all",
"access",
"permission",
"for",
"a",
"accessory"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"m",
"accessory",
"permission",
"map",
"remove",
"(",
"accessory",
")",
";",
"}"
] |
[
"check",
"whether",
"a",
"particular",
"device",
"or",
"any",
"of",
"its",
"interfaces",
"is",
"of",
"class",
"video"
] | [
"if",
"(",
"device",
"get",
"device",
"class",
"(",
")",
"=",
"=",
"usb",
"constants",
"usb",
"class",
"video",
")",
"{",
"return",
"true",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"device",
"get",
"interface",
"count",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"usb",
"interface",
"iface",
"=",
"device",
"get",
"interface",
"(",
"i",
")",
";",
"if",
"(",
"iface",
"get",
"interface",
"class",
"(",
")",
"=",
"=",
"usb",
"constants",
"usb",
"class",
"video",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"that",
"is",
"associated",
"with",
"the",
"development",
"schema",
"for",
"more",
"information",
"see",
"<",
"a",
">",
"arns",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"this",
"development",
"schema",
"arn",
"=",
"development",
"schema",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"that",
"is",
"associated",
"with",
"the",
"development",
"schema",
"for",
"more",
"information",
"see",
"<",
"a",
">",
"arns",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"development",
"schema",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"development",
"schema",
"with",
"the",
"changes",
"used",
"for",
"the",
"upgrade",
"<",
"/",
"p",
">"
] | [
"set",
"development",
"schema",
"arn",
"(",
"development",
"schema",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"published",
"schema",
"to",
"be",
"upgraded",
"<",
"/",
"p",
">"
] | [
"set",
"published",
"schema",
"arn",
"(",
"published",
"schema",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"minor",
"version",
"under",
"which",
"the",
"schema",
"will",
"be",
"published",
"this",
"parameter",
"is",
"recommended",
"schemas",
"have",
"both",
"a",
"major",
"and",
"minor",
"version",
"associated",
"with",
"them",
"<",
"/",
"p",
">"
] | [
"this",
"minor",
"version",
"=",
"minor",
"version",
";"
] |
[
"<",
"p",
">",
"the",
"minor",
"version",
"under",
"which",
"the",
"schema",
"will",
"be",
"published",
"this",
"parameter",
"is",
"recommended",
"schemas",
"have",
"both",
"a",
"major",
"and",
"minor",
"version",
"associated",
"with",
"them",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"minor",
"version",
";"
] |
[
"<",
"p",
">",
"identifies",
"the",
"minor",
"version",
"of",
"the",
"published",
"schema",
"that",
"will",
"be",
"created",
"this",
"parameter",
"is",
"not",
"optional",
"<",
"/",
"p",
">"
] | [
"set",
"minor",
"version",
"(",
"minor",
"version",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"used",
"for",
"testing",
"whether",
"the",
"development",
"schema",
"provided",
"is",
"backwards",
"compatible",
"or",
"not",
"with",
"the",
"publish",
"schema",
"provided",
"by",
"the",
"user",
"to",
"be",
"upgraded",
"if",
"schema",
"compatibility",
"fails",
"an",
"exception",
"would",
"be",
"thrown",
"else",
"the",
"call",
"would",
"succeed",
"this",
"parameter",
"is",
"optional",
"and",
"defaults",
"to",
"false",
"<",
"/",
"p",
">"
] | [
"set",
"dry",
"run",
"(",
"dry",
"run",
")",
";",
"return",
"this",
";"
] |
[
"a",
"subclass",
"returns",
"the",
"directory",
"to",
"be",
"tested",
";",
"if",
"it",
"s",
"an",
"fs",
"-",
"based",
"directory",
"it",
"should",
"point",
"to",
"the",
"specified",
"path",
"else",
"it",
"can",
"ignore",
"it"
] | [
"protected",
"abstract",
"directory",
"get",
"directory",
"(",
"path",
"path",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"<",
"editor",
"-",
"fold",
"desc",
"=",
"refresh",
"header",
">"
] | [
"m",
"percent",
"=",
"percent",
";",
"m",
"header",
"height",
"=",
"height",
";",
"if",
"(",
"is",
"dragging",
")",
"{",
"m",
"finish",
"transformation",
"=",
"0",
";",
"}"
] |
[
"}"
] | [
"is",
"refreshing",
"=",
"true",
";",
"m",
"finish",
"transformation",
"=",
"0",
";",
"final",
"view",
"this",
"view",
"=",
"this",
";",
"this",
"view",
"start",
"animation",
"(",
"m",
"animation",
")",
";"
] |
[
"we",
"need",
"a",
"special",
"value",
"for",
"different",
"part",
"of",
"animation"
] | [
"switch",
"(",
"part",
")",
"{",
"case",
"first",
":",
"{",
"return",
"m",
"loading",
"animation",
"time",
";",
"}",
"case",
"second",
":",
"{",
"return",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"fourth",
")",
"-",
"(",
"m",
"loading",
"animation",
"time",
"-",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"fourth",
")",
")",
";",
"}",
"case",
"third",
":",
"{",
"return",
"m",
"loading",
"animation",
"time",
"-",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"second",
")",
";",
"}",
"case",
"fourth",
":",
"{",
"return",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"third",
")",
"-",
"(",
"m",
"loading",
"animation",
"time",
"-",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"fourth",
")",
")",
";",
"}",
"default",
":",
"return",
"0",
";",
"}"
] |
[
"on",
"drawing",
"we",
"should",
"check",
"current",
"part",
"of",
"animation"
] | [
"switch",
"(",
"part",
")",
"{",
"case",
"first",
":",
"{",
"return",
"m",
"loading",
"animation",
"time",
"<",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"fourth",
")",
";",
"}",
"case",
"second",
":",
"case",
"third",
":",
"{",
"return",
"m",
"loading",
"animation",
"time",
"<",
"get",
"animation",
"time",
"part",
"(",
"part",
")",
";",
"}",
"case",
"fourth",
":",
"{",
"return",
"m",
"loading",
"animation",
"time",
">",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"third",
")",
";",
"}",
"default",
":",
"return",
"false",
";",
"}"
] |
[
"get",
"part",
"of",
"animation",
"duration"
] | [
"switch",
"(",
"part",
")",
"{",
"case",
"second",
":",
"{",
"return",
"loading",
"animation",
"coefficient",
"/",
"2",
";",
"}",
"case",
"third",
":",
"{",
"return",
"get",
"animation",
"time",
"part",
"(",
"animation",
"part",
"fourth",
")",
"*",
"3",
";",
"}",
"case",
"fourth",
":",
"{",
"return",
"loading",
"animation",
"coefficient",
"/",
"4",
";",
"}",
"default",
":",
"return",
"0",
";",
"}"
] |
[
"generates",
"a",
"lock",
"name",
"for",
"the",
"given",
"index",
"name"
] | [
"return",
"index",
"name",
"+",
"index",
"file",
"extension",
";"
] |
[
"returns",
"a",
"random",
"access",
"data",
"that",
"is",
"the",
"smallest",
"value",
"of",
"same",
"length",
"which",
"is",
"strictly",
"greater",
"than",
"this",
"note",
"that",
"if",
"this",
"is",
"empty",
"or",
"is",
"all",
"0x",
"f",
"f",
"then",
"a",
"token",
"value",
"of",
"positive",
"infinity",
"is",
"returned"
] | [
"random",
"access",
"data",
"copy",
"=",
"copy",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"copy",
"size",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"-",
"-",
"i",
")",
"{",
"if",
"(",
"copy",
"buffer",
"[",
"i",
"]",
"!",
"=",
"unsigned",
"bytes",
"max",
"value",
")",
"{",
"copy",
"buffer",
"[",
"i",
"]",
"=",
"unsigned",
"bytes",
"checked",
"cast",
"(",
"unsigned",
"bytes",
"to",
"int",
"(",
"copy",
"buffer",
"[",
"i",
"]",
")",
"+",
"1l",
")",
";",
"return",
"copy",
";",
"}",
"}",
"return",
"positive",
"infinity",
";"
] |
[
"returns",
"the",
"backing",
"array"
] | [
"return",
"buffer",
";"
] |
[
"resets",
"the",
"end",
"of",
"the",
"stream",
"to",
"the",
"specified",
"position"
] | [
"ensure",
"capacity",
"(",
"position",
")",
";",
"size",
"=",
"position",
";"
] |
[
"returns",
"an",
"output",
"stream",
"which",
"writes",
"to",
"the",
"backing",
"buffer",
"from",
"the",
"current",
"position",
"note",
"that",
"the",
"internal",
"buffer",
"will",
"grow",
"as",
"required",
"to",
"accomodate",
"all",
"data",
"written"
] | [
"return",
"output",
"stream",
";"
] |
[
"returns",
"an",
"{"
] | [
"return",
"new",
"byte",
"array",
"input",
"stream",
"(",
"buffer",
",",
"offset",
",",
"length",
")",
";"
] |
[
"writes",
"{"
] | [
"out",
"write",
"(",
"buffer",
",",
"offset",
",",
"length",
")",
";"
] |
[
"reads",
"{",
"@",
"code",
"length",
"}",
"bytes",
"from",
"the",
"specified",
"input",
"stream",
"writing",
"them",
"into",
"the",
"backing",
"data",
"store",
"starting",
"at",
"{",
"@",
"code",
"offset",
"}"
] | [
"ensure",
"capacity",
"(",
"offset",
"+",
"length",
")",
";",
"byte",
"streams",
"read",
"fully",
"(",
"in",
"stream",
",",
"buffer",
",",
"offset",
",",
"length",
")",
";",
"size",
"=",
"offset",
"+",
"length",
";"
] |
[
"returns",
"a",
"copy",
"of",
"this",
"random",
"access",
"data"
] | [
"random",
"access",
"data",
"copy",
"=",
"new",
"random",
"access",
"data",
"(",
"size",
")",
";",
"write",
"to",
"(",
"copy",
"as",
"output",
"stream",
"(",
")",
",",
"0",
",",
"size",
")",
";",
"return",
"copy",
";"
] |
[
"returns",
"if",
"an",
"ast",
"is",
"a",
"return",
"statement",
"with",
"a",
"boolean",
"literal",
"or",
"a",
"compound",
"statement",
"that",
"contains",
"only",
"such",
"a",
"return",
"statement"
] | [
"boolean",
"result",
"=",
"true",
";",
"if",
"(",
"!",
"is",
"boolean",
"literal",
"return",
"statement",
"(",
"ast",
")",
")",
"{",
"final",
"ast",
"first",
"statement",
"=",
"ast",
"get",
"first",
"child",
"(",
")",
";",
"result",
"=",
"is",
"boolean",
"literal",
"return",
"statement",
"(",
"first",
"statement",
")",
";",
"}",
"return",
"result",
";"
] |
[
"returns",
"if",
"an",
"ast",
"is",
"a",
"return",
"statement",
"with",
"a",
"boolean",
"literal"
] | [
"boolean",
"boolean",
"return",
"statement",
"=",
"false",
";",
"if",
"(",
"ast",
"!",
"=",
"null",
"&",
"&",
"ast",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"literal",
"return",
")",
"{",
"final",
"ast",
"expr",
"=",
"ast",
"get",
"first",
"child",
"(",
")",
";",
"if",
"(",
"expr",
"get",
"type",
"(",
")",
"!",
"=",
"token",
"types",
"semi",
")",
"{",
"final",
"ast",
"value",
"=",
"expr",
"get",
"first",
"child",
"(",
")",
";",
"boolean",
"return",
"statement",
"=",
"is",
"boolean",
"literal",
"type",
"(",
"value",
"get",
"type",
"(",
")",
")",
";",
"}",
"}",
"return",
"boolean",
"return",
"statement",
";"
] |
[
"checks",
"if",
"a",
"token",
"type",
"is",
"a",
"literal",
"true",
"or",
"false"
] | [
"final",
"boolean",
"is",
"true",
"=",
"token",
"type",
"=",
"=",
"token",
"types",
"literal",
"true",
";",
"final",
"boolean",
"is",
"false",
"=",
"token",
"type",
"=",
"=",
"token",
"types",
"literal",
"false",
";",
"return",
"is",
"true",
"|",
"|",
"is",
"false",
";"
] |
[
"<",
"p",
">",
"the",
"run",
"-",
"time",
"configuration",
"currently",
"in",
"force",
"if",
"the",
"update",
"was",
"successful",
"this",
"object",
"matches",
"the",
"one",
"in",
"the",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"runtime",
"configuration",
"(",
"runtime",
"configuration",
")",
";",
"return",
"this",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] | [
"set",
"<",
"config",
"attribute",
">",
"all",
"attributes",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"request",
"matcher",
",",
"collection",
"<",
"config",
"attribute",
">",
">",
"entry",
":",
"request",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"all",
"attributes",
"add",
"all",
"(",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}",
"return",
"all",
"attributes",
";"
] |
[
"this",
"is",
"a",
"mandatory",
"parameter"
] | [
"this",
"portfolio",
"=",
"portfolio",
";",
"return",
"this",
";"
] |
[
"this",
"is",
"a",
"mandatory",
"parameter"
] | [
"this",
"tags",
"=",
"tags",
";",
"return",
"this",
";"
] |
[
"apply",
"theme",
"from",
"intent",
"only",
"system",
"use",
"don",
"t",
"call",
"it",
"!"
] | [
"theme",
"manager",
"apply",
"theme",
"(",
"activity",
",",
"false",
")",
";"
] |
[
"apply",
"theme",
"from",
"intent",
"only",
"system",
"use",
"don",
"t",
"call",
"it",
"!"
] | [
"if",
"(",
"force",
"|",
"|",
"theme",
"manager",
"has",
"specified",
"theme",
"(",
"activity",
")",
")",
"{",
"activity",
"set",
"theme",
"(",
"theme",
"manager",
"get",
"theme",
"(",
"activity",
")",
")",
";",
"}"
] |
[
"synonym",
"for",
"{",
"@",
"link",
"#",
"clone",
"theme",
"(",
"intent",
"intent",
"boolean",
")",
"}",
"with",
"third",
"arg",
"-",
"false"
] | [
"theme",
"manager",
"clone",
"theme",
"(",
"source",
"intent",
",",
"intent",
",",
"false",
")",
";"
] |
[
"clone",
"theme",
"from",
"source",
"intent",
"to",
"intent",
"if",
"it",
"specified",
"for",
"source",
"intent",
"or",
"set",
"flag",
"force"
] | [
"final",
"boolean",
"has",
"source",
"theme",
"=",
"has",
"specified",
"theme",
"(",
"source",
"intent",
")",
";",
"if",
"(",
"force",
"|",
"|",
"has",
"source",
"theme",
")",
"{",
"intent",
"put",
"extra",
"(",
"theme",
"tag",
",",
"has",
"source",
"theme",
"?",
"get",
"theme",
"(",
"source",
"intent",
")",
":",
"default",
"theme",
")",
";",
"}"
] |
[
"set",
"default",
"theme",
"may",
"be",
"theme",
"resource",
"instead",
"flags",
"but",
"it",
"not",
"recommend"
] | [
"theme",
"manager",
"default",
"theme",
"=",
"theme",
";",
"if",
"(",
"theme",
"<",
"start",
"resources",
"id",
")",
"{",
"theme",
"manager",
"default",
"theme",
"&",
"=",
"theme",
"manager",
"theme",
"mask",
";",
"}"
] |
[
"set",
"theme",
"modifiers",
"see",
"{",
"@",
"link",
"#",
"modify",
"(",
"int",
")",
"}"
] | [
"theme",
"manager",
"theme",
"modifier",
"=",
"mod",
"&",
"theme",
"manager",
"theme",
"mask",
";"
] |
[
"extract",
"theme",
"flags",
"from",
"activity",
"intent"
] | [
"return",
"get",
"theme",
"(",
"activity",
"get",
"intent",
"(",
")",
")",
";"
] |
[
"extract",
"theme",
"flags",
"from",
"intent"
] | [
"return",
"get",
"theme",
"(",
"intent",
",",
"true",
")",
";"
] |
[
"extract",
"theme",
"flags",
"from",
"intent"
] | [
"return",
"prepare",
"flags",
"(",
"intent",
"get",
"int",
"extra",
"(",
"theme",
"manager",
"theme",
"tag",
",",
"theme",
"manager",
"default",
"theme",
")",
",",
"apply",
"modifier",
")",
";"
] |
[
"resolve",
"theme",
"resource",
"id",
"by",
"flags",
"from",
"activity",
"intent"
] | [
"return",
"get",
"theme",
"resource",
"(",
"get",
"theme",
"(",
"activity",
")",
")",
";"
] |
[
"resolve",
"theme",
"resource",
"id",
"by",
"flags"
] | [
"return",
"get",
"theme",
"resource",
"(",
"theme",
"tag",
",",
"true",
")",
";"
] |
[
"resolve",
"theme",
"resource",
"id",
"by",
"flags"
] | [
"if",
"(",
"theme",
"tag",
">",
"=",
"start",
"resources",
"id",
")",
"{",
"return",
"theme",
"tag",
";",
"}",
"theme",
"tag",
"=",
"prepare",
"flags",
"(",
"theme",
"tag",
",",
"apply",
"modifier",
")",
";",
"if",
"(",
"theme",
"manager",
"s",
"theme",
"getters",
"!",
"=",
"null",
")",
"{",
"int",
"getter",
"resource",
";",
"final",
"theme",
"tag",
"tag",
"=",
"new",
"theme",
"tag",
"(",
"theme",
"tag",
")",
";",
"for",
"(",
"int",
"i",
"=",
"theme",
"manager",
"s",
"theme",
"getters",
"size",
"(",
")",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"i",
"-",
"-",
")",
"{",
"getter",
"resource",
"=",
"theme",
"manager",
"s",
"theme",
"getters",
"get",
"(",
"i",
")",
"get",
"theme",
"resource",
"(",
"tag",
")",
";",
"if",
"(",
"getter",
"resource",
"!",
"=",
"0",
")",
"{",
"return",
"getter",
"resource",
";",
"}",
"}",
"}",
"final",
"int",
"i",
"=",
"themes",
"map",
"get",
"(",
"theme",
"tag",
",",
"-",
"1",
")",
";",
"if",
"(",
"i",
"=",
"=",
"-",
"1",
")",
"{",
"return",
"themes",
"map",
"get",
"(",
"default",
"theme",
",",
"r",
"style",
"holo",
"theme",
")",
";",
"}",
"else",
"{",
"return",
"i",
";",
"}"
] |
[
"resolve",
"theme",
"resource",
"id",
"by",
"flags",
"from",
"intent"
] | [
"return",
"get",
"theme",
"resource",
"(",
"get",
"theme",
"(",
"intent",
")",
")",
";"
] |
[
"generate",
"flag",
"for",
"using",
"it",
"in",
"theme",
"manager",
"not",
"more",
"than",
"24",
"flags",
"can",
"be",
"created"
] | [
"if",
"(",
"next",
"offset",
">",
"=",
"24",
")",
"{",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";",
"}",
"final",
"int",
"flag",
"=",
"1",
"<",
"<",
"next",
"offset",
"+",
"+",
";",
"theme",
"mask",
"|",
"=",
"flag",
";",
"return",
"flag",
";"
] |
[
"remap",
"default",
"theme"
] | [
"map",
"(",
"default",
"theme",
",",
"theme",
")",
";"
] |
[
"remap",
"themes",
"<",
"br",
"/",
">",
"<",
"br",
"/",
">",
"example",
"you",
"can",
"remap",
"{"
] | [
"if",
"(",
"theme",
">",
"0",
")",
"{",
"themes",
"map",
"put",
"(",
"flags",
"&",
"theme",
"mask",
",",
"theme",
")",
";",
"}",
"else",
"{",
"final",
"int",
"i",
"=",
"themes",
"map",
"index",
"of",
"key",
"(",
"flags",
"&",
"theme",
"mask",
")",
";",
"if",
"(",
"i",
">",
"0",
")",
"{",
"themes",
"map",
"remove",
"at",
"(",
"i",
")",
";",
"}",
"}"
] |
[
"add",
"modifier",
"to",
"all",
"themes",
"using",
"in",
"{",
"@",
"link",
"theme",
"manager",
"}",
"if",
"you",
"call",
"modify",
"(",
"{",
"@",
"link",
"#",
"no",
"action",
"bar",
"}",
")",
"then",
"all",
"themes",
"will",
"be",
"without",
"action",
"bar",
"by",
"default",
"regardless",
"of",
"the",
"flag",
"is",
"passed"
] | [
"theme",
"manager",
"theme",
"modifier",
"|",
"=",
"mod",
"&",
"theme",
"manager",
"theme",
"mask",
";"
] |
[
"clear",
"all",
"modifiers"
] | [
"theme",
"manager",
"theme",
"modifier",
"=",
"0",
";"
] |
[
"clear",
"modifier"
] | [
"mod",
"&",
"=",
"theme",
"manager",
"theme",
"mask",
";",
"theme",
"manager",
"theme",
"modifier",
"|",
"=",
"mod",
";",
"theme",
"manager",
"theme",
"modifier",
"^",
"=",
"mod",
";"
] |
[
"like",
"{",
"@",
"link",
"#",
"modify",
"(",
"int",
")",
"}",
"but",
"applying",
"only",
"on",
"default",
"theme"
] | [
"theme",
"manager",
"default",
"theme",
"|",
"=",
"mod",
"&",
"theme",
"manager",
"theme",
"mask",
";"
] |
[
"clear",
"modifier",
"from",
"default",
"theme"
] | [
"mod",
"&",
"=",
"theme",
"manager",
"theme",
"mask",
";",
"theme",
"manager",
"default",
"theme",
"|",
"=",
"mod",
";",
"theme",
"manager",
"default",
"theme",
"^",
"=",
"mod",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.