docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"{"
] | [
"return",
"(",
"m",
"style",
"=",
"=",
"w",
"x",
"style",
"unset",
"?",
"0",
":",
"m",
"style",
")",
";"
] |
[
"returns",
"{"
] | [
"return",
"(",
"m",
"weight",
"=",
"=",
"w",
"x",
"style",
"unset",
"?",
"0",
":",
"m",
"weight",
")",
";"
] |
[
"determine",
"whether",
"the",
"given",
"{",
"@",
"link",
"method",
"getter",
"}",
"on",
"the",
"given",
"{",
"@",
"link",
"class",
"clazz",
"}",
"should",
"be",
"validated",
"during",
"the",
"resource",
"class",
"validation",
"see",
"{",
"@",
"code",
"#",
"validate",
"method",
"}",
"to",
"understand",
"the",
"difference",
"between",
"this",
"and",
"{",
"@",
"code",
"#",
"validate",
"method",
"}"
] | [
"if",
"(",
"!",
"validate",
"getter",
"cache",
"contains",
"key",
"(",
"method",
")",
")",
"{",
"process",
"method",
"(",
"clazz",
",",
"method",
",",
"method",
",",
"true",
")",
";",
"}",
"return",
"validate",
"getter",
"cache",
"get",
"(",
"method",
")",
";"
] |
[
"determine",
"whether",
"the",
"given",
"resource",
"{",
"@",
"link",
"method",
"method",
"}",
"to",
"-",
"be",
"-",
"executed",
"on",
"the",
"given",
"{",
"@",
"link",
"class",
"clazz",
"}",
"should",
"be",
"validated",
"the",
"difference",
"between",
"this",
"and",
"{",
"@",
"code",
"#",
"validate",
"getter",
"}",
"method",
"is",
"that",
"this",
"method",
"returns",
"{",
"@",
"code",
"true",
"}",
"if",
"the",
"{",
"@",
"code",
"method",
"}",
"is",
"getter",
"and",
"validating",
"getter",
"method",
"is",
"not",
"explicitly",
"disabled",
"by",
"{",
"@",
"link",
"validate",
"on",
"execution",
"}",
"annotation",
"in",
"the",
"class",
"hierarchy"
] | [
"if",
"(",
"!",
"validate",
"method",
"cache",
"contains",
"key",
"(",
"validation",
"method",
")",
")",
"{",
"process",
"method",
"(",
"clazz",
",",
"method",
",",
"validation",
"method",
",",
"false",
")",
";",
"}",
"return",
"validate",
"method",
"cache",
"get",
"(",
"validation",
"method",
")",
";"
] |
[
"determine",
"whether",
"the",
"given",
"{",
"@",
"link",
"method",
"method",
"}",
"should",
"be",
"validated",
"depending",
"on",
"the",
"given",
"{",
"@",
"code",
"executable",
"types",
"}"
] | [
"if",
"(",
"executable",
"types",
"contains",
"(",
"executable",
"type",
"all",
")",
"|",
"|",
"(",
"allow",
"implicit",
"&",
"&",
"executable",
"types",
"contains",
"(",
"executable",
"type",
"implicit",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"return",
"reflection",
"helper",
"is",
"getter",
"(",
"method",
")",
"?",
"executable",
"types",
"contains",
"(",
"executable",
"type",
"getter",
"methods",
")",
":",
"executable",
"types",
"contains",
"(",
"executable",
"type",
"non",
"getter",
"methods",
")",
";"
] |
[
"return",
"a",
"set",
"of",
"executable",
"types",
"contained",
"in",
"{",
"@",
"link",
"validate",
"on",
"execution",
"}",
"annotation",
"belonging",
"to",
"the",
"{",
"@",
"code",
"element",
"}"
] | [
"final",
"validate",
"on",
"execution",
"validate",
"executable",
"=",
"element",
"get",
"annotation",
"(",
"validate",
"on",
"execution",
"class",
")",
";",
"return",
"validate",
"executable",
"!",
"=",
"null",
"?",
"arrays",
"stream",
"(",
"validate",
"executable",
"type",
"(",
")",
")",
"collect",
"(",
"collectors",
"to",
"set",
"(",
")",
")",
":",
"collections",
"empty",
"set",
"(",
")",
";"
] |
[
"get",
"task",
"state"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"return",
"state",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"task",
"progress",
"in",
"current",
"iteration"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"return",
"progress",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"get",
"task",
"startup",
"time"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"return",
"start",
"time",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"current",
"iteration",
"value"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"return",
"iteration",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"worker",
"metrics"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"map",
"<",
"string",
",",
"string",
">",
"clone",
"metrics",
"=",
"new",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"(",
")",
";",
"clone",
"metrics",
"put",
"all",
"(",
"metrics",
")",
";",
"return",
"clone",
"metrics",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"update",
"the",
"clock",
"value",
"of",
"the",
"specified",
"matrix"
] | [
"try",
"{",
"write",
"lock",
"lock",
"(",
")",
";",
"matrix",
"id",
"to",
"clock",
"map",
"put",
"(",
"matrix",
"id",
",",
"clock",
")",
";",
"}",
"finally",
"{",
"write",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"update",
"the",
"task",
"current",
"iteration",
"value"
] | [
"try",
"{",
"write",
"lock",
"lock",
"(",
")",
";",
"this",
"iteration",
"=",
"iteration",
";",
"}",
"finally",
"{",
"write",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"get",
"all",
"matrix",
"clocks"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"return",
"matrix",
"id",
"to",
"clock",
"map",
"clone",
"(",
")",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"get",
"the",
"clock",
"of",
"the",
"specified",
"matrix"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"return",
"matrix",
"id",
"to",
"clock",
"map",
"get",
"(",
"matrix",
"id",
")",
";",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"write",
"the",
"task",
"state",
"to",
"a",
"output",
"stream"
] | [
"try",
"{",
"read",
"lock",
"lock",
"(",
")",
";",
"output",
"write",
"u",
"t",
"f",
"(",
"state",
"to",
"string",
"(",
")",
")",
";",
"output",
"write",
"int",
"(",
"iteration",
")",
";",
"output",
"write",
"int",
"(",
"matrix",
"id",
"to",
"clock",
"map",
"size",
"(",
")",
")",
";",
"for",
"(",
"entry",
"clock",
"entry",
":",
"matrix",
"id",
"to",
"clock",
"map",
"int",
"2",
"int",
"entry",
"set",
"(",
")",
")",
"{",
"output",
"write",
"int",
"(",
"clock",
"entry",
"get",
"int",
"key",
"(",
")",
")",
";",
"output",
"write",
"int",
"(",
"clock",
"entry",
"get",
"int",
"value",
"(",
")",
")",
";",
"}",
"}",
"finally",
"{",
"read",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"read",
"the",
"task",
"state",
"from",
"a",
"input",
"stream"
] | [
"try",
"{",
"write",
"lock",
"lock",
"(",
")",
";",
"state",
"=",
"transform",
"state",
"(",
"input",
"read",
"u",
"t",
"f",
"(",
")",
")",
";",
"iteration",
"=",
"input",
"read",
"int",
"(",
")",
";",
"int",
"clock",
"num",
"=",
"input",
"read",
"int",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"clock",
"num",
";",
"i",
"+",
"+",
")",
"{",
"matrix",
"id",
"to",
"clock",
"map",
"put",
"(",
"input",
"read",
"int",
"(",
")",
",",
"input",
"read",
"int",
"(",
")",
")",
";",
"}",
"}",
"finally",
"{",
"write",
"lock",
"unlock",
"(",
")",
";",
"}"
] |
[
"starts",
"ping",
"process"
] | [
"scheduler",
"schedule",
"at",
"fixed",
"rate",
"(",
"this",
",",
"0",
",",
"ping",
"interval",
"ms",
")",
";"
] |
[
"/",
"*"
] | [
"return",
"f",
"comparator",
"compare",
"(",
"p",
"1",
",",
"p",
"2",
")",
";"
] |
[
"returns",
"the",
"name",
"of",
"the",
"collection",
"represented",
"by",
"this",
"key",
"in",
"the",
"skylark",
"provider"
] | [
"return",
"skylark",
"key",
"name",
";"
] |
[
"returns",
"the",
"skylark",
"key",
"for",
"the",
"given",
"string",
"or",
"null",
"if",
"no",
"such",
"key",
"exists",
"or",
"is",
"available",
"to",
"skylark"
] | [
"for",
"(",
"key",
"<",
"?",
">",
"candidate",
"key",
":",
"keys",
"for",
"skylark",
")",
"{",
"if",
"(",
"candidate",
"key",
"get",
"skylark",
"key",
"name",
"(",
")",
"equals",
"(",
"key",
"name",
")",
")",
"{",
"return",
"candidate",
"key",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"returns",
"all",
"keys",
"that",
"have",
"at",
"least",
"one",
"value",
"in",
"this",
"provider",
"(",
"values",
"may",
"be",
"propagable",
"non",
"-",
"propagable",
"or",
"strict",
")"
] | [
"return",
"immutable",
"set",
"<",
"key",
"<",
"?",
">",
">",
"builder",
"(",
")",
"add",
"all",
"(",
"strict",
"dependency",
"items",
"key",
"set",
"(",
")",
")",
"add",
"all",
"(",
"non",
"propagated",
"items",
"key",
"set",
"(",
")",
")",
"add",
"all",
"(",
"items",
"key",
"set",
"(",
")",
")",
"build",
"(",
")",
";"
] |
[
"indicates",
"whether",
"{"
] | [
"return",
"iterables",
"contains",
"(",
"get",
"(",
"flag",
")",
",",
"flag",
")",
";"
] |
[
"indicates",
"whether",
"this",
"provider",
"has",
"any",
"asset",
"catalogs",
"this",
"is",
"true",
"whenever",
"some",
"target",
"in",
"its",
"transitive",
"dependency",
"tree",
"specifies",
"a",
"non",
"-",
"empty",
"{"
] | [
"return",
"!",
"get",
"(",
"xcassets",
"dir",
")",
"is",
"empty",
"(",
")",
";"
] |
[
"returns",
"the",
"list",
"of",
"a",
"files",
"required",
"for",
"linking",
"that",
"arise",
"from",
"cc",
"libraries"
] | [
"immutable",
"list",
"builder",
"<",
"artifact",
">",
"cc",
"library",
"builder",
"=",
"immutable",
"list",
"builder",
"(",
")",
";",
"for",
"(",
"linker",
"inputs",
"library",
"to",
"link",
"library",
"to",
"link",
":",
"get",
"(",
"cc",
"library",
")",
")",
"{",
"cc",
"library",
"builder",
"add",
"(",
"library",
"to",
"link",
"get",
"artifact",
"(",
")",
")",
";",
"}",
"return",
"cc",
"library",
"builder",
"build",
"(",
")",
";"
] |
[
"returns",
"a",
"predicate",
"which",
"returns",
"true",
"for",
"a",
"given",
"artifact",
"if",
"the",
"artifact",
"s",
"runfiles",
"path",
"is",
"not",
"contained",
"in",
"the",
"given",
"set"
] | [
"return",
"library",
"to",
"link",
"-",
">",
"!",
"runfiles",
"paths",
"contains",
"(",
"library",
"to",
"link",
"get",
"runfiles",
"path",
"(",
")",
")",
";"
] |
[
"returns",
"a",
"predicate",
"which",
"returns",
"true",
"for",
"a",
"given",
"{",
"@",
"link",
"library",
"to",
"link",
"}",
"if",
"the",
"library",
"s",
"runfiles",
"path",
"is",
"not",
"contained",
"in",
"the",
"given",
"set"
] | [
"return",
"library",
"to",
"link",
"-",
">",
"!",
"runfiles",
"paths",
"contains",
"(",
"library",
"to",
"link",
"get",
"artifact",
"(",
")",
"get",
"runfiles",
"path",
"(",
")",
")",
";"
] |
[
"returns",
"all",
"unique",
"static",
"framework",
"directories",
"(",
"directories",
"ending",
"in",
"framework",
")",
"for",
"all",
"static",
"framework",
"files",
"in",
"this",
"provider"
] | [
"return",
"objc",
"common",
"unique",
"containers",
"(",
"get",
"(",
"static",
"framework",
"file",
")",
",",
"objc",
"common",
"framework",
"container",
"type",
")",
";"
] |
[
"returns",
"all",
"unique",
"static",
"framework",
"directories",
"(",
"directories",
"ending",
"in",
"framework",
")",
"for",
"all",
"static",
"framework",
"files",
"in",
"this",
"provider"
] | [
"return",
"objc",
"provider",
"skylark",
"converters",
"convert",
"path",
"fragments",
"to",
"skylark",
"(",
"get",
"static",
"framework",
"dirs",
"(",
")",
")",
";"
] |
[
"add",
"all",
"elements",
"from",
"providers",
"and",
"propagate",
"them",
"to",
"any",
"(",
"transitive",
")",
"dependers",
"on",
"this",
"objc",
"provider"
] | [
"for",
"(",
"objc",
"provider",
"provider",
":",
"providers",
")",
"{",
"add",
"transitive",
"and",
"propagate",
"(",
"provider",
")",
";",
"}",
"return",
"this",
";"
] |
[
"add",
"all",
"keys",
"and",
"values",
"from",
"provider",
"and",
"propagate",
"them",
"to",
"any",
"(",
"transitive",
")",
"dependers",
"on",
"this",
"objc",
"provider"
] | [
"for",
"(",
"map",
"entry",
"<",
"key",
"<",
"?",
">",
",",
"nested",
"set",
"<",
"?",
">",
">",
"type",
"entry",
":",
"provider",
"items",
"entry",
"set",
"(",
")",
")",
"{",
"unchecked",
"add",
"transitive",
"(",
"type",
"entry",
"get",
"key",
"(",
")",
",",
"type",
"entry",
"get",
"value",
"(",
")",
",",
"this",
"items",
")",
";",
"}",
"for",
"(",
"map",
"entry",
"<",
"key",
"<",
"?",
">",
",",
"nested",
"set",
"<",
"?",
">",
">",
"type",
"entry",
":",
"provider",
"strict",
"dependency",
"items",
"entry",
"set",
"(",
")",
")",
"{",
"unchecked",
"add",
"transitive",
"(",
"type",
"entry",
"get",
"key",
"(",
")",
",",
"type",
"entry",
"get",
"value",
"(",
")",
",",
"this",
"non",
"propagated",
"items",
")",
";",
"}",
"return",
"this",
";"
] |
[
"add",
"all",
"keys",
"and",
"values",
"from",
"the",
"given",
"provider",
"but",
"propagate",
"any",
"normally",
"-",
"propagated",
"items",
"only",
"to",
"direct",
"dependers",
"of",
"this",
"objc",
"provider"
] | [
"for",
"(",
"map",
"entry",
"<",
"key",
"<",
"?",
">",
",",
"nested",
"set",
"<",
"?",
">",
">",
"type",
"entry",
":",
"provider",
"items",
"entry",
"set",
"(",
")",
")",
"{",
"unchecked",
"add",
"transitive",
"(",
"type",
"entry",
"get",
"key",
"(",
")",
",",
"type",
"entry",
"get",
"value",
"(",
")",
",",
"this",
"strict",
"dependency",
"items",
")",
";",
"}",
"for",
"(",
"map",
"entry",
"<",
"key",
"<",
"?",
">",
",",
"nested",
"set",
"<",
"?",
">",
">",
"type",
"entry",
":",
"provider",
"strict",
"dependency",
"items",
"entry",
"set",
"(",
")",
")",
"{",
"unchecked",
"add",
"transitive",
"(",
"type",
"entry",
"get",
"key",
"(",
")",
",",
"type",
"entry",
"get",
"value",
"(",
")",
",",
"this",
"non",
"propagated",
"items",
")",
";",
"}",
"return",
"this",
";"
] |
[
"add",
"all",
"elements",
"from",
"a",
"single",
"key",
"of",
"the",
"given",
"provider",
"and",
"propagate",
"them",
"to",
"any",
"(",
"transitive",
")",
"dependers",
"on",
"this",
"objc",
"provider"
] | [
"if",
"(",
"provider",
"items",
"contains",
"key",
"(",
"key",
")",
")",
"{",
"unchecked",
"add",
"transitive",
"(",
"key",
",",
"provider",
"items",
"get",
"(",
"key",
")",
",",
"this",
"items",
")",
";",
"}",
"if",
"(",
"provider",
"strict",
"dependency",
"items",
"contains",
"key",
"(",
"key",
")",
")",
"{",
"unchecked",
"add",
"transitive",
"(",
"key",
",",
"provider",
"strict",
"dependency",
"items",
"get",
"(",
"key",
")",
",",
"this",
"non",
"propagated",
"items",
")",
";",
"}",
"return",
"this",
";"
] |
[
"adds",
"elements",
"in",
"items",
"and",
"propagate",
"them",
"to",
"any",
"(",
"transitive",
")",
"dependers",
"on",
"this",
"objc",
"provider"
] | [
"unchecked",
"add",
"transitive",
"(",
"key",
",",
"items",
",",
"this",
"items",
")",
";",
"return",
"this",
";"
] |
[
"add",
"element",
"and",
"propagate",
"it",
"to",
"any",
"(",
"transitive",
")",
"dependers",
"on",
"this",
"objc",
"provider"
] | [
"unchecked",
"add",
"all",
"(",
"key",
",",
"immutable",
"list",
"of",
"(",
"to",
"add",
")",
",",
"this",
"items",
")",
";",
"return",
"this",
";"
] |
[
"add",
"elements",
"in",
"to",
"add",
"and",
"propagate",
"them",
"to",
"any",
"(",
"transitive",
")",
"dependers",
"on",
"this",
"objc",
"provider"
] | [
"unchecked",
"add",
"all",
"(",
"key",
",",
"to",
"add",
",",
"this",
"items",
")",
";",
"return",
"this",
";"
] |
[
"add",
"elements",
"in",
"to",
"add",
"and",
"do",
"not",
"propagate",
"to",
"dependents",
"of",
"this",
"provider"
] | [
"unchecked",
"add",
"all",
"(",
"key",
",",
"to",
"add",
",",
"this",
"non",
"propagated",
"items",
")",
";",
"return",
"this",
";"
] |
[
"add",
"element",
"to",
"add",
"and",
"propagate",
"it",
"only",
"to",
"direct",
"dependents",
"of",
"this",
"provider"
] | [
"unchecked",
"add",
"all",
"(",
"key",
",",
"immutable",
"list",
"of",
"(",
"to",
"add",
")",
",",
"this",
"strict",
"dependency",
"items",
")",
";",
"return",
"this",
";"
] |
[
"add",
"elements",
"in",
"to",
"add",
"and",
"propagate",
"them",
"only",
"to",
"direct",
"dependents",
"of",
"this",
"provider"
] | [
"unchecked",
"add",
"all",
"(",
"key",
",",
"to",
"add",
",",
"this",
"strict",
"dependency",
"items",
")",
";",
"return",
"this",
";"
] |
[
"add",
"elements",
"in",
"to",
"add",
"with",
"the",
"given",
"key",
"from",
"skylark",
"an",
"error",
"is",
"thrown",
"if",
"to",
"add",
"is",
"not",
"an",
"appropriate",
"skylark",
"nested",
"set"
] | [
"unchecked",
"add",
"all",
"(",
"key",
",",
"objc",
"provider",
"skylark",
"converters",
"convert",
"to",
"java",
"(",
"key",
",",
"to",
"add",
")",
",",
"this",
"items",
")",
";"
] |
[
"<",
"p",
">",
"the",
"metadata",
"for",
"the",
"specified",
"crawler",
"<",
"/",
"p",
">"
] | [
"this",
"crawler",
"=",
"crawler",
";"
] |
[
"<",
"p",
">",
"the",
"metadata",
"for",
"the",
"specified",
"crawler",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"crawler",
";"
] |
[
"<",
"p",
">",
"the",
"metadata",
"for",
"the",
"specified",
"crawler",
"<",
"/",
"p",
">"
] | [
"set",
"crawler",
"(",
"crawler",
")",
";",
"return",
"this",
";"
] |
[
"cancels",
"a",
"pending",
"or",
"current",
"upload",
"of",
"a",
"remote",
"file"
] | [
"cancel",
"(",
"account",
"name",
",",
"file",
"get",
"remote",
"path",
"(",
")",
")",
";"
] |
[
"cancels",
"a",
"pending",
"or",
"current",
"upload",
"that",
"was",
"persisted"
] | [
"cancel",
"(",
"stored",
"upload",
"get",
"account",
"name",
"(",
")",
",",
"stored",
"upload",
"get",
"remote",
"path",
"(",
")",
")",
";"
] |
[
"returns",
"true",
"when",
"the",
"file",
"described",
"by",
"file",
"is",
"being",
"uploaded",
"to",
"the",
"own",
"cloud",
"account",
"account",
"or",
"waiting",
"for",
"it"
] | [
"if",
"(",
"account",
"=",
"=",
"null",
"|",
"|",
"file",
"=",
"=",
"null",
")",
"return",
"false",
";",
"return",
"(",
"m",
"pending",
"uploads",
"contains",
"(",
"account",
"name",
",",
"file",
"get",
"remote",
"path",
"(",
")",
")",
")",
";"
] |
[
"adds",
"a",
"listener",
"interested",
"in",
"the",
"progress",
"of",
"the",
"upload",
"for",
"a",
"concrete",
"file"
] | [
"if",
"(",
"account",
"=",
"=",
"null",
"|",
"|",
"file",
"=",
"=",
"null",
"|",
"|",
"listener",
"=",
"=",
"null",
")",
"return",
";",
"string",
"target",
"key",
"=",
"build",
"remote",
"name",
"(",
"account",
"name",
",",
"file",
"get",
"remote",
"path",
"(",
")",
")",
";",
"m",
"bound",
"listeners",
"put",
"(",
"target",
"key",
",",
"new",
"weak",
"reference",
"<",
">",
"(",
"listener",
")",
")",
";"
] |
[
"adds",
"a",
"listener",
"interested",
"in",
"the",
"progress",
"of",
"the",
"upload",
"for",
"a",
"concrete",
"file"
] | [
"if",
"(",
"oc",
"upload",
"=",
"=",
"null",
"|",
"|",
"listener",
"=",
"=",
"null",
")",
"return",
";",
"string",
"target",
"key",
"=",
"build",
"remote",
"name",
"(",
"oc",
"upload",
"get",
"account",
"name",
"(",
")",
",",
"oc",
"upload",
"get",
"remote",
"path",
"(",
")",
")",
";",
"m",
"bound",
"listeners",
"put",
"(",
"target",
"key",
",",
"new",
"weak",
"reference",
"<",
">",
"(",
"listener",
")",
")",
";"
] |
[
"removes",
"a",
"listener",
"interested",
"in",
"the",
"progress",
"of",
"the",
"upload",
"for",
"a",
"concrete",
"file"
] | [
"if",
"(",
"account",
"=",
"=",
"null",
"|",
"|",
"file",
"=",
"=",
"null",
"|",
"|",
"listener",
"=",
"=",
"null",
")",
"return",
";",
"string",
"target",
"key",
"=",
"build",
"remote",
"name",
"(",
"account",
"name",
",",
"file",
"get",
"remote",
"path",
"(",
")",
")",
";",
"if",
"(",
"m",
"bound",
"listeners",
"get",
"(",
"target",
"key",
")",
"=",
"=",
"listener",
")",
"{",
"m",
"bound",
"listeners",
"remove",
"(",
"target",
"key",
")",
";",
"}"
] |
[
"removes",
"a",
"listener",
"interested",
"in",
"the",
"progress",
"of",
"the",
"upload",
"for",
"a",
"concrete",
"file"
] | [
"if",
"(",
"oc",
"upload",
"=",
"=",
"null",
"|",
"|",
"listener",
"=",
"=",
"null",
")",
"return",
";",
"string",
"target",
"key",
"=",
"build",
"remote",
"name",
"(",
"oc",
"upload",
"get",
"account",
"name",
"(",
")",
",",
"oc",
"upload",
"get",
"remote",
"path",
"(",
")",
")",
";",
"if",
"(",
"m",
"bound",
"listeners",
"get",
"(",
"target",
"key",
")",
"=",
"=",
"listener",
")",
"{",
"m",
"bound",
"listeners",
"remove",
"(",
"target",
"key",
")",
";",
"}"
] |
[
"builds",
"a",
"key",
"for",
"the",
"map",
"of",
"listeners",
"<",
"p",
"/",
">",
"todo",
"use",
"method",
"in",
"indexed",
"forest",
"or",
"refactor",
"both",
"to",
"a",
"common",
"place",
"add",
"to",
"local",
"database",
")",
"to",
"better",
"policy",
"(",
"add",
"to",
"local",
"database",
"then",
"upload",
")"
] | [
"return",
"account",
"name",
"+",
"remote",
"path",
";"
] |
[
"callback",
"method",
"to",
"update",
"the",
"progress",
"bar",
"in",
"the",
"status",
"notification"
] | [
"int",
"percent",
"=",
"(",
"int",
")",
"(",
"100",
"0",
"*",
"(",
"(",
"double",
")",
"total",
"transferred",
"so",
"far",
")",
"/",
"(",
"(",
"double",
")",
"total",
"to",
"transfer",
")",
")",
";",
"if",
"(",
"percent",
"!",
"=",
"m",
"last",
"percent",
")",
"{",
"m",
"notification",
"builder",
"set",
"progress",
"(",
"100",
",",
"percent",
",",
"false",
")",
";",
"string",
"file",
"name",
"=",
"file",
"path",
"substring",
"(",
"file",
"path",
"last",
"index",
"of",
"(",
"file",
"utils",
"path",
"separator",
")",
"+",
"1",
")",
";",
"string",
"text",
"=",
"string",
"format",
"(",
"get",
"string",
"(",
"r",
"string",
"uploader",
"upload",
"in",
"progress",
"content",
")",
",",
"percent",
",",
"file",
"name",
")",
";",
"m",
"notification",
"builder",
"set",
"content",
"text",
"(",
"text",
")",
";",
"m",
"notification",
"builder",
"set",
"channel",
"id",
"(",
"upload",
"notification",
"channel",
"id",
")",
";",
"m",
"notification",
"manager",
"notify",
"(",
"r",
"string",
"uploader",
"upload",
"in",
"progress",
"ticker",
",",
"m",
"notification",
"builder",
"build",
"(",
")",
")",
";",
"}",
"m",
"last",
"percent",
"=",
"percent",
";"
] |
[
"remove",
"and",
"forgets",
"pending",
"uploads",
"of",
"an",
"account"
] | [
"m",
"pending",
"uploads",
"remove",
"(",
"account",
"name",
")",
";",
"m",
"uploads",
"storage",
"manager",
"remove",
"uploads",
"(",
"account",
"name",
")",
";"
] |
[
"sets",
"the",
"redirect",
"information",
"where",
"all",
"requests",
"will",
"be",
"redirect",
"to"
] | [
"this",
"redirect",
"all",
"requests",
"to",
"=",
"redirect",
"all",
"requests",
"to",
";"
] |
[
"return",
"the",
"redirect",
"information",
"where",
"all",
"requests",
"will",
"be",
"redirect",
"to"
] | [
"return",
"redirect",
"all",
"requests",
"to",
";"
] |
[
"sets",
"the",
"redirect",
"information",
"where",
"all",
"requests",
"will",
"be",
"redirect",
"to",
"and",
"returns",
"a",
"reference",
"to",
"this",
"object",
"(",
"bucket",
"website",
"configuration",
")",
"for",
"method",
"chaining"
] | [
"this",
"redirect",
"all",
"requests",
"to",
"=",
"redirect",
"all",
"requests",
"to",
";",
"return",
"this",
";"
] |
[
"return",
"the",
"list",
"of",
"routing",
"rules",
"that",
"can",
"be",
"used",
"for",
"configuring",
"redirects",
"if",
"certain",
"conditions",
"are",
"meet"
] | [
"return",
"routing",
"rules",
";"
] |
[
"set",
"the",
"list",
"of",
"routing",
"rules",
"that",
"can",
"be",
"used",
"for",
"configuring",
"redirects",
"if",
"certain",
"conditions",
"are",
"meet",
"and",
"returns",
"a",
"reference",
"to",
"this",
"object",
"(",
"bucket",
"website",
"configuration",
")",
"for",
"method",
"chaining"
] | [
"this",
"routing",
"rules",
"=",
"routing",
"rules",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"number",
"of",
"entries",
"expected",
"to",
"be",
"in",
"the",
"zip",
"file",
"this",
"value",
"is",
"determined",
"from",
"the",
"end",
"of",
"central",
"directory",
"record"
] | [
"return",
"expected",
"entries",
";"
] |
[
"checks",
"if",
"the",
"editor",
"is",
"a",
"primary",
"editor",
"in",
"the",
"main",
"editing",
"area"
] | [
"final",
"project",
"project",
"=",
"editor",
"get",
"project",
"(",
")",
";",
"if",
"(",
"project",
"=",
"=",
"null",
")",
"return",
"false",
";",
"final",
"file",
"editor",
"manager",
"ex",
"file",
"editor",
"manager",
"=",
"file",
"editor",
"manager",
"ex",
"get",
"instance",
"ex",
"(",
"project",
")",
";",
"return",
"stream",
"ex",
"of",
"(",
"file",
"editor",
"manager",
"get",
"all",
"editors",
"(",
")",
")",
"any",
"match",
"(",
"file",
"editor",
"-",
">",
"editor",
"equals",
"(",
"editor",
"util",
"get",
"editor",
"ex",
"(",
"file",
"editor",
")",
")",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"number",
"of",
"classes",
"<",
"/",
"code",
">"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"get",
"(",
")",
",",
"0",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"class",
"info",
"index",
"<",
"/",
"code",
">"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"2",
")",
";"
] |
[
"returns",
"the",
"class",
"name",
"indicated",
"by",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"class",
"info",
"index",
"<",
"/",
"code",
">",
"the",
"class",
"name",
"is",
"fully",
"-",
"qualified",
"and",
"separated",
"by",
"dot"
] | [
"int",
"i",
"=",
"inner",
"class",
"index",
"(",
"nth",
")",
";",
"if",
"(",
"i",
"=",
"=",
"0",
")",
"return",
"null",
";",
"return",
"const",
"pool",
"get",
"class",
"info",
"(",
"i",
")",
";"
] |
[
"sets",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"class",
"info",
"index",
"<",
"/",
"code",
">",
"to",
"the",
"given",
"index"
] | [
"byte",
"array",
"write",
"1",
"6bit",
"(",
"index",
",",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"2",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"outer",
"class",
"info",
"index",
"<",
"/",
"code",
">"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"4",
")",
";"
] |
[
"returns",
"the",
"class",
"name",
"indicated",
"by",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"outer",
"class",
"info",
"index",
"<",
"/",
"code",
">"
] | [
"int",
"i",
"=",
"outer",
"class",
"index",
"(",
"nth",
")",
";",
"if",
"(",
"i",
"=",
"=",
"0",
")",
"return",
"null",
";",
"return",
"const",
"pool",
"get",
"class",
"info",
"(",
"i",
")",
";"
] |
[
"sets",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"outer",
"class",
"info",
"index",
"<",
"/",
"code",
">",
"to",
"the",
"given",
"index"
] | [
"byte",
"array",
"write",
"1",
"6bit",
"(",
"index",
",",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"4",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"name",
"index",
"<",
"/",
"code",
">"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"6",
")",
";"
] |
[
"returns",
"the",
"simple",
"class",
"name",
"indicated",
"by",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"name",
"index",
"<",
"/",
"code",
">"
] | [
"int",
"i",
"=",
"inner",
"name",
"index",
"(",
"nth",
")",
";",
"if",
"(",
"i",
"=",
"=",
"0",
")",
"return",
"null",
";",
"return",
"const",
"pool",
"get",
"utf",
"8",
"info",
"(",
"i",
")",
";"
] |
[
"sets",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"name",
"index",
"<",
"/",
"code",
">",
"to",
"the",
"given",
"index"
] | [
"byte",
"array",
"write",
"1",
"6bit",
"(",
"index",
",",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"6",
")",
";"
] |
[
"returns",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"class",
"access",
"flags",
"<",
"/",
"code",
">"
] | [
"return",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"8",
")",
";"
] |
[
"sets",
"<",
"code",
">",
"classes",
"[",
"nth",
"]",
"inner",
"class",
"access",
"flags",
"<",
"/",
"code",
">",
"to",
"the",
"given",
"index"
] | [
"byte",
"array",
"write",
"1",
"6bit",
"(",
"flags",
",",
"get",
"(",
")",
",",
"nth",
"*",
"8",
"+",
"8",
")",
";"
] |
[
"finds",
"the",
"entry",
"for",
"the",
"given",
"inner",
"class"
] | [
"int",
"n",
"=",
"table",
"length",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"if",
"(",
"name",
"equals",
"(",
"inner",
"class",
"(",
"i",
")",
")",
")",
"return",
"i",
";",
"return",
"-",
"1",
";"
] |
[
"appends",
"a",
"new",
"entry"
] | [
"int",
"i",
"=",
"const",
"pool",
"add",
"class",
"info",
"(",
"inner",
")",
";",
"int",
"o",
"=",
"const",
"pool",
"add",
"class",
"info",
"(",
"outer",
")",
";",
"int",
"n",
"=",
"const",
"pool",
"add",
"utf",
"8",
"info",
"(",
"name",
")",
";",
"append",
"(",
"i",
",",
"o",
",",
"n",
",",
"flags",
")",
";"
] |
[
"appends",
"a",
"new",
"entry"
] | [
"byte",
"[",
"]",
"data",
"=",
"get",
"(",
")",
";",
"int",
"len",
"=",
"data",
"length",
";",
"byte",
"[",
"]",
"new",
"data",
"=",
"new",
"byte",
"[",
"len",
"+",
"8",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"2",
";",
"i",
"<",
"len",
";",
"+",
"+",
"i",
")",
"new",
"data",
"[",
"i",
"]",
"=",
"data",
"[",
"i",
"]",
";",
"int",
"n",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"data",
",",
"0",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"n",
"+",
"1",
",",
"new",
"data",
",",
"0",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"inner",
",",
"new",
"data",
",",
"len",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"outer",
",",
"new",
"data",
",",
"len",
"+",
"2",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"name",
",",
"new",
"data",
",",
"len",
"+",
"4",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"flags",
",",
"new",
"data",
",",
"len",
"+",
"6",
")",
";",
"set",
"(",
"new",
"data",
")",
";"
] |
[
"removes",
"the",
"{",
"@",
"code",
"nth",
"}",
"entry",
"it",
"does",
"not",
"eliminate",
"constant",
"pool",
"items",
"that",
"the",
"removed",
"entry",
"refers",
"to",
"{",
"@",
"link",
"class",
"file",
"#",
"compact",
"(",
")",
"}",
"should",
"be",
"executed",
"to",
"remove",
"these",
"unnecessary",
"items"
] | [
"byte",
"[",
"]",
"data",
"=",
"get",
"(",
")",
";",
"int",
"len",
"=",
"data",
"length",
";",
"if",
"(",
"len",
"<",
"10",
")",
"return",
"0",
";",
"int",
"n",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"data",
",",
"0",
")",
";",
"int",
"nth",
"pos",
"=",
"2",
"+",
"nth",
"*",
"8",
";",
"if",
"(",
"n",
"<",
"=",
"nth",
")",
"return",
"n",
";",
"byte",
"[",
"]",
"new",
"data",
"=",
"new",
"byte",
"[",
"len",
"-",
"8",
"]",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"n",
"-",
"1",
",",
"new",
"data",
",",
"0",
")",
";",
"int",
"i",
"=",
"2",
",",
"j",
"=",
"2",
";",
"while",
"(",
"i",
"<",
"len",
")",
"if",
"(",
"i",
"=",
"=",
"nth",
"pos",
")",
"i",
"+",
"=",
"8",
";",
"else",
"new",
"data",
"[",
"j",
"+",
"+",
"]",
"=",
"data",
"[",
"i",
"+",
"+",
"]",
";",
"set",
"(",
"new",
"data",
")",
";",
"return",
"n",
"-",
"1",
";"
] |
[
"makes",
"a",
"copy",
"class",
"names",
"are",
"replaced",
"according",
"to",
"the",
"given",
"<",
"code",
">",
"map",
"<",
"/",
"code",
">",
"object"
] | [
"byte",
"[",
"]",
"src",
"=",
"get",
"(",
")",
";",
"byte",
"[",
"]",
"dest",
"=",
"new",
"byte",
"[",
"src",
"length",
"]",
";",
"const",
"pool",
"cp",
"=",
"get",
"const",
"pool",
"(",
")",
";",
"inner",
"classes",
"attribute",
"attr",
"=",
"new",
"inner",
"classes",
"attribute",
"(",
"new",
"cp",
",",
"dest",
")",
";",
"int",
"n",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"src",
",",
"0",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"n",
",",
"dest",
",",
"0",
")",
";",
"int",
"j",
"=",
"2",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"+",
"+",
"i",
")",
"{",
"int",
"inner",
"class",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"src",
",",
"j",
")",
";",
"int",
"outer",
"class",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"src",
",",
"j",
"+",
"2",
")",
";",
"int",
"inner",
"name",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"src",
",",
"j",
"+",
"4",
")",
";",
"int",
"inner",
"access",
"=",
"byte",
"array",
"read",
"u",
"1",
"6bit",
"(",
"src",
",",
"j",
"+",
"6",
")",
";",
"if",
"(",
"inner",
"class",
"!",
"=",
"0",
")",
"inner",
"class",
"=",
"cp",
"copy",
"(",
"inner",
"class",
",",
"new",
"cp",
",",
"classnames",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"inner",
"class",
",",
"dest",
",",
"j",
")",
";",
"if",
"(",
"outer",
"class",
"!",
"=",
"0",
")",
"outer",
"class",
"=",
"cp",
"copy",
"(",
"outer",
"class",
",",
"new",
"cp",
",",
"classnames",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"outer",
"class",
",",
"dest",
",",
"j",
"+",
"2",
")",
";",
"if",
"(",
"inner",
"name",
"!",
"=",
"0",
")",
"inner",
"name",
"=",
"cp",
"copy",
"(",
"inner",
"name",
",",
"new",
"cp",
",",
"classnames",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"inner",
"name",
",",
"dest",
",",
"j",
"+",
"4",
")",
";",
"byte",
"array",
"write",
"1",
"6bit",
"(",
"inner",
"access",
",",
"dest",
",",
"j",
"+",
"6",
")",
";",
"j",
"+",
"=",
"8",
";",
"}",
"return",
"attr",
";"
] |
[
"release",
"the",
"local",
"reference",
"to",
"the",
"server",
"-",
"side",
"surface",
"always",
"call",
"release",
"(",
")",
"when",
"you",
"re",
"done",
"with",
"a",
"surface",
"this",
"will",
"make",
"the",
"surface",
"invalid"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"native",
"object",
"!",
"=",
"0",
")",
"{",
"native",
"release",
"(",
"m",
"native",
"object",
")",
";",
"set",
"native",
"object",
"locked",
"(",
"0",
")",
";",
"}",
"if",
"(",
"m",
"hwui",
"context",
"!",
"=",
"null",
")",
"{",
"m",
"hwui",
"context",
"destroy",
"(",
")",
";",
"m",
"hwui",
"context",
"=",
"null",
";",
"}",
"}"
] |
[
"free",
"all",
"server",
"-",
"side",
"state",
"associated",
"with",
"this",
"surface",
"and",
"release",
"this",
"object",
"s",
"reference",
"this",
"method",
"can",
"only",
"be",
"called",
"from",
"the",
"process",
"that",
"created",
"the",
"service"
] | [
"release",
"(",
")",
";"
] |
[
"destroys",
"the",
"hwui",
"context",
"without",
"completely",
"releasing",
"the",
"surface"
] | [
"if",
"(",
"m",
"hwui",
"context",
"!",
"=",
"null",
")",
"{",
"m",
"hwui",
"context",
"destroy",
"(",
")",
";",
"m",
"hwui",
"context",
"=",
"null",
";",
"}"
] |
[
"returns",
"true",
"if",
"this",
"object",
"holds",
"a",
"valid",
"surface"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"if",
"(",
"m",
"native",
"object",
"=",
"=",
"0",
")",
"return",
"false",
";",
"return",
"native",
"is",
"valid",
"(",
"m",
"native",
"object",
")",
";",
"}"
] |
[
"gets",
"the",
"generation",
"number",
"of",
"this",
"surface",
"incremented",
"each",
"time",
"the",
"native",
"surface",
"contained",
"within",
"this",
"object",
"changes"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"return",
"m",
"generation",
"id",
";",
"}"
] |
[
"returns",
"the",
"next",
"frame",
"number",
"which",
"will",
"be",
"dequeued",
"for",
"rendering",
"intended",
"for",
"use",
"with",
"surface",
"flinger",
"s",
"deferred",
"transactions",
"api"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"check",
"not",
"released",
"locked",
"(",
")",
";",
"return",
"native",
"get",
"next",
"frame",
"number",
"(",
"m",
"native",
"object",
")",
";",
"}"
] |
[
"returns",
"true",
"if",
"the",
"consumer",
"of",
"this",
"surface",
"is",
"running",
"behind",
"the",
"producer"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"check",
"not",
"released",
"locked",
"(",
")",
";",
"return",
"native",
"is",
"consumer",
"running",
"behind",
"(",
"m",
"native",
"object",
")",
";",
"}"
] |
[
"posts",
"the",
"new",
"contents",
"of",
"the",
"{",
"@",
"link",
"canvas",
"}",
"to",
"the",
"surface",
"and",
"releases",
"the",
"{",
"@",
"link",
"canvas",
"}"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"check",
"not",
"released",
"locked",
"(",
")",
";",
"if",
"(",
"m",
"hwui",
"context",
"!",
"=",
"null",
")",
"{",
"m",
"hwui",
"context",
"unlock",
"and",
"post",
"(",
"canvas",
")",
";",
"}",
"else",
"{",
"unlock",
"sw",
"canvas",
"and",
"post",
"(",
"canvas",
")",
";",
"}",
"}"
] |
[
"gets",
"a",
"{",
"@",
"link",
"canvas",
"}",
"for",
"drawing",
"into",
"this",
"surface"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"check",
"not",
"released",
"locked",
"(",
")",
";",
"if",
"(",
"m",
"hwui",
"context",
"=",
"=",
"null",
")",
"{",
"m",
"hwui",
"context",
"=",
"new",
"hwui",
"context",
"(",
"false",
")",
";",
"}",
"return",
"m",
"hwui",
"context",
"lock",
"canvas",
"(",
"native",
"get",
"width",
"(",
"m",
"native",
"object",
")",
",",
"native",
"get",
"height",
"(",
"m",
"native",
"object",
")",
")",
";",
"}"
] |
[
"gets",
"a",
"{",
"@",
"link",
"canvas",
"}",
"for",
"drawing",
"into",
"this",
"surface",
"that",
"supports",
"wide",
"color",
"gamut"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"check",
"not",
"released",
"locked",
"(",
")",
";",
"if",
"(",
"m",
"hwui",
"context",
"!",
"=",
"null",
"&",
"&",
"!",
"m",
"hwui",
"context",
"is",
"wide",
"color",
"gamut",
"(",
")",
")",
"{",
"m",
"hwui",
"context",
"destroy",
"(",
")",
";",
"m",
"hwui",
"context",
"=",
"null",
";",
"}",
"if",
"(",
"m",
"hwui",
"context",
"=",
"=",
"null",
")",
"{",
"m",
"hwui",
"context",
"=",
"new",
"hwui",
"context",
"(",
"true",
")",
";",
"}",
"return",
"m",
"hwui",
"context",
"lock",
"canvas",
"(",
"native",
"get",
"width",
"(",
"m",
"native",
"object",
")",
",",
"native",
"get",
"height",
"(",
"m",
"native",
"object",
")",
")",
";",
"}"
] |
[
"sets",
"the",
"translator",
"used",
"to",
"scale",
"canvas",
"s",
"width",
"/",
"height",
"in",
"compatibility",
"mode"
] | [
"if",
"(",
"translator",
"!",
"=",
"null",
")",
"{",
"float",
"app",
"scale",
"=",
"translator",
"application",
"scale",
";",
"m",
"compatible",
"matrix",
"=",
"new",
"matrix",
"(",
")",
";",
"m",
"compatible",
"matrix",
"set",
"scale",
"(",
"app",
"scale",
",",
"app",
"scale",
")",
";",
"}"
] |
[
"allocate",
"buffers",
"ahead",
"of",
"time",
"to",
"avoid",
"allocation",
"delays",
"during",
"rendering"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"check",
"not",
"released",
"locked",
"(",
")",
";",
"native",
"allocate",
"buffers",
"(",
"m",
"native",
"object",
")",
";",
"}"
] |
[
"@",
"return",
"true",
"if",
"shared",
"buffer",
"mode",
"is",
"enabled",
"on",
"this",
"surface",
"false",
"otherwise"
] | [
"return",
"m",
"is",
"shared",
"buffer",
"mode",
"enabled",
";"
] |
[
"@",
"return",
"true",
"if",
"auto",
"-",
"refresh",
"is",
"enabled",
"on",
"this",
"surface",
"false",
"otherwise"
] | [
"return",
"m",
"is",
"auto",
"refresh",
"enabled",
";"
] |
[
"get",
"the",
"cookies"
] | [
"return",
"context",
"(",
")",
"rc",
"cookies",
"(",
")",
";"
] |
[
"create",
"an",
"url",
"from",
"url",
"components"
] | [
"return",
"ujoin",
"(",
"root",
"(",
")",
",",
"parts",
")",
";"
] |
[
"create",
"an",
"url",
"from",
"url",
"components"
] | [
"return",
"ujoin",
"(",
"prefix",
"(",
")",
",",
"parts",
")",
";"
] |
[
"reads",
"data",
"fields",
"from",
"specified",
"raw",
"-",
"data",
"stream"
] | [
"int",
"num",
"read",
"=",
"stream",
"get",
"read",
"count",
"(",
")",
";",
"int",
"data",
"len",
"=",
"m",
"length",
"-",
"num",
"read",
";",
"if",
"(",
"data",
"len",
">",
"0",
")",
"{",
"m",
"raw",
"data",
"=",
"new",
"byte",
"[",
"data",
"len",
"]",
";",
"for",
"(",
"int",
"index",
"=",
"0",
";",
"index",
"<",
"data",
"len",
";",
"index",
"+",
"+",
")",
"{",
"m",
"raw",
"data",
"[",
"index",
"]",
"=",
"stream",
"get",
"byte",
"(",
")",
";",
"}",
"}",
"return",
"m",
"length",
";"
] |
[
"return",
"the",
"internal",
"bean",
"factory",
"to",
"be",
"used",
"for",
"the",
"specified",
"bean"
] | [
"synchronized",
"(",
"this",
"internal",
"bean",
"factories",
")",
"{",
"default",
"listable",
"bean",
"factory",
"internal",
"bean",
"factory",
"=",
"this",
"internal",
"bean",
"factories",
"get",
"(",
"bean",
"name",
")",
";",
"if",
"(",
"internal",
"bean",
"factory",
"=",
"=",
"null",
")",
"{",
"internal",
"bean",
"factory",
"=",
"build",
"internal",
"bean",
"factory",
"(",
"this",
"bean",
"factory",
")",
";",
"this",
"internal",
"bean",
"factories",
"put",
"(",
"bean",
"name",
",",
"internal",
"bean",
"factory",
")",
";",
"}",
"return",
"internal",
"bean",
"factory",
";",
"}"
] |
[
"destroys",
"the",
"internal",
"bean",
"factory",
"on",
"shutdown",
"of",
"the",
"target",
"source",
"creator"
] | [
"synchronized",
"(",
"this",
"internal",
"bean",
"factories",
")",
"{",
"for",
"(",
"default",
"listable",
"bean",
"factory",
"bf",
":",
"this",
"internal",
"bean",
"factories",
"values",
"(",
")",
")",
"{",
"bf",
"destroy",
"singletons",
"(",
")",
";",
"}",
"}"
] |
[
"return",
"whether",
"this",
"target",
"source",
"creator",
"is",
"prototype",
"-",
"based",
"the",
"scope",
"of",
"the",
"target",
"bean",
"definition",
"will",
"be",
"set",
"accordingly",
"<",
"p",
">",
"default",
"is",
"true"
] | [
"return",
"true",
";"
] |
[
"subclasses",
"must",
"implement",
"this",
"method",
"to",
"return",
"a",
"new",
"abstract",
"prototype",
"based",
"target",
"source",
"if",
"they",
"wish",
"to",
"create",
"a",
"custom",
"target",
"source",
"for",
"this",
"bean",
"or",
"{"
] | [
"@",
"nullable",
"protected",
"abstract",
"abstract",
"bean",
"factory",
"based",
"target",
"source",
"create",
"bean",
"factory",
"based",
"target",
"source",
"(",
"class",
"<",
"?",
">",
"bean",
"class",
",",
"string",
"bean",
"name",
")",
";"
] |
[
"creates",
"a",
"trigger",
"that",
"continuously",
"fires",
"based",
"on",
"the",
"given",
"interval"
] | [
"return",
"new",
"continuous",
"event",
"time",
"trigger",
"<",
">",
"(",
"interval",
"to",
"milliseconds",
"(",
")",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.