docstring_tokens
list | code_tokens
list |
---|---|
[
"indicates",
"if",
"the",
"operation",
"that",
"has",
"just",
"completed",
"may",
"potentially",
"require",
"a",
"build"
] |
[
"has",
"build",
"changes",
"=",
"has",
"build",
"changes",
"|",
"|",
"has",
"changes",
";"
] |
[
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"if",
"(",
"has",
"build",
"changes",
")",
"{",
"if",
"(",
"operation",
"canceled",
")",
"return",
"policy",
"build",
"on",
"cancel",
";",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"<",
"p",
">",
"the",
"volume",
"id",
"<",
"/",
"p",
">"
] |
[
"set",
"volume",
"id",
"(",
"volume",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"attribute",
"to",
"update",
"<",
"/",
"p",
">"
] |
[
"this",
"attribute",
"=",
"attribute",
";"
] |
[
"<",
"p",
">",
"the",
"attribute",
"to",
"update",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"attribute",
";"
] |
[
"<",
"p",
">",
"the",
"attribute",
"to",
"update",
"<",
"/",
"p",
">"
] |
[
"set",
"attribute",
"(",
"attribute",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"action",
"to",
"perform",
"when",
"updating",
"the",
"attribute",
"<",
"/",
"p",
">"
] |
[
"set",
"action",
"(",
"action",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"action",
"to",
"perform",
"when",
"updating",
"the",
"attribute",
"<",
"/",
"p",
">"
] |
[
"with",
"action",
"(",
"action",
")",
";"
] |
[
"<",
"p",
">",
"the",
"action",
"to",
"perform",
"when",
"updating",
"the",
"attribute",
"<",
"/",
"p",
">"
] |
[
"this",
"action",
"=",
"action",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
] |
[
"this",
"m",
"bitmap",
"texture",
"atlas",
"source",
"decorator",
"shape",
"on",
"decorate",
"bitmap",
"(",
"p",
"canvas",
",",
"this",
"m",
"paint",
",",
"(",
"this",
"m",
"texture",
"atlas",
"source",
"decorator",
"options",
"=",
"=",
"null",
")",
"?",
"texture",
"atlas",
"source",
"decorator",
"options",
"default",
":",
"this",
"m",
"texture",
"atlas",
"source",
"decorator",
"options",
")",
";"
] |
[
"returns",
"the",
"component",
"scores",
"ordered",
"from",
"largest",
"to",
"smallest"
] |
[
"return",
"eigenvalues",
";"
] |
[
"returns",
"the",
"proportion",
"of",
"variance",
"contained",
"in",
"each",
"eigenvectors",
"ordered",
"from",
"largest",
"to",
"smallest"
] |
[
"return",
"proportion",
";"
] |
[
"{"
] |
[
"final",
"int",
"user",
"id",
"=",
"user",
"handle",
"my",
"user",
"id",
"(",
")",
";",
"s",
"current",
"user",
"=",
"new",
"user",
"environment",
"(",
"user",
"id",
")",
";"
] |
[
"return",
"root",
"of",
"the",
"system",
"partition",
"holding",
"the",
"core",
"android",
"os",
"always",
"present",
"and",
"mounted",
"read",
"-",
"only"
] |
[
"return",
"dir",
"android",
"root",
";"
] |
[
"{"
] |
[
"return",
"dir",
"android",
"storage",
";"
] |
[
"return",
"root",
"directory",
"of",
"the",
"oem",
"partition",
"holding",
"oem",
"customizations",
"if",
"any",
"if",
"present",
"the",
"partition",
"is",
"mounted",
"read",
"-",
"only"
] |
[
"return",
"dir",
"oem",
"root",
";"
] |
[
"return",
"root",
"directory",
"of",
"the",
"odm",
"partition",
"holding",
"odm",
"customizations",
"if",
"any",
"if",
"present",
"the",
"partition",
"is",
"mounted",
"read",
"-",
"only"
] |
[
"return",
"dir",
"odm",
"root",
";"
] |
[
"return",
"root",
"directory",
"of",
"the",
"vendor",
"partition",
"that",
"holds",
"vendor",
"-",
"provided",
"software",
"that",
"should",
"persist",
"across",
"simple",
"reflashing",
"of",
"the",
"system",
"partition"
] |
[
"return",
"dir",
"vendor",
"root",
";"
] |
[
"return",
"root",
"directory",
"of",
"the",
"product",
"partition",
"holding",
"product",
"-",
"specific",
"customizations",
"if",
"any",
"if",
"present",
"the",
"partition",
"is",
"mounted",
"read",
"-",
"only"
] |
[
"return",
"dir",
"product",
"root",
";"
] |
[
"return",
"the",
"user",
"data",
"directory"
] |
[
"return",
"dir",
"android",
"data",
";"
] |
[
"{"
] |
[
"return",
"dir",
"android",
"expand",
";"
] |
[
"{"
] |
[
"return",
"build",
"path",
"(",
"get",
"data",
"profiles",
"de",
"directory",
"(",
"user",
"id",
")",
",",
"package",
"name",
")",
";"
] |
[
"{"
] |
[
"return",
"new",
"file",
"(",
"get",
"data",
"user",
"ce",
"directory",
"(",
"volume",
"uuid",
")",
",",
"string",
"value",
"of",
"(",
"user",
"id",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"new",
"file",
"(",
"get",
"data",
"user",
"de",
"directory",
"(",
"volume",
"uuid",
")",
",",
"string",
"value",
"of",
"(",
"user",
"id",
")",
")",
";"
] |
[
"returns",
"location",
"of",
"preloaded",
"cache",
"directory",
"for",
"package",
"name"
] |
[
"return",
"new",
"file",
"(",
"get",
"data",
"preloads",
"file",
"cache",
"directory",
"(",
")",
",",
"package",
"name",
")",
";"
] |
[
"return",
"the",
"primary",
"shared",
"/",
"external",
"storage",
"directory",
"this",
"directory",
"may",
"not",
"currently",
"be",
"accessible",
"if",
"it",
"has",
"been",
"mounted",
"by",
"the",
"user",
"on",
"their",
"computer",
"has",
"been",
"removed",
"from",
"the",
"device",
"or",
"some",
"other",
"problem",
"has",
"happened",
"you",
"can",
"determine",
"its",
"current",
"state",
"with",
"{",
"@",
"link",
"#",
"get",
"external",
"storage",
"state",
"(",
")",
"}",
"<",
"p",
">",
"<",
"em",
">",
"note",
":",
"don",
"t",
"be",
"confused",
"by",
"the",
"word",
"external",
"here",
"this",
"directory",
"can",
"better",
"be",
"thought",
"as",
"media",
"/",
"shared",
"storage",
"it",
"is",
"a",
"filesystem",
"that",
"can",
"hold",
"a",
"relatively",
"large",
"amount",
"of",
"data",
"and",
"that",
"is",
"shared",
"across",
"all",
"applications",
"(",
"does",
"not",
"enforce",
"permissions",
")",
"traditionally",
"this",
"is",
"an",
"sd",
"card",
"but",
"it",
"may",
"also",
"be",
"implemented",
"as",
"built",
"-",
"in",
"storage",
"in",
"a",
"device",
"that",
"is",
"distinct",
"from",
"the",
"protected",
"internal",
"storage",
"and",
"can",
"be",
"mounted",
"as",
"a",
"filesystem",
"on",
"a",
"computer",
"<",
"/",
"em",
">",
"<",
"p",
">",
"on",
"devices",
"with",
"multiple",
"users",
"(",
"as",
"described",
"by",
"{",
"@",
"link",
"user",
"manager",
"}",
")",
"each",
"user",
"has",
"their",
"own",
"isolated",
"shared",
"storage",
"applications",
"only",
"have",
"access",
"to",
"the",
"shared",
"storage",
"for",
"the",
"user",
"they",
"re",
"running",
"as",
"<",
"p",
">",
"in",
"devices",
"with",
"multiple",
"shared",
"/",
"external",
"storage",
"directories",
"this",
"directory",
"represents",
"the",
"primary",
"storage",
"that",
"the",
"user",
"will",
"interact",
"with",
"access",
"to",
"secondary",
"storage",
"is",
"available",
"through",
"{",
"@",
"link",
"context",
"#",
"get",
"external",
"files",
"dirs",
"(",
"string",
")",
"}",
"{",
"@",
"link",
"context",
"#",
"get",
"external",
"cache",
"dirs",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"context",
"#",
"get",
"external",
"media",
"dirs",
"(",
")",
"}",
"<",
"p",
">",
"applications",
"should",
"not",
"directly",
"use",
"this",
"top",
"-",
"level",
"directory",
"in",
"order",
"to",
"avoid",
"polluting",
"the",
"user",
"s",
"root",
"namespace",
"any",
"files",
"that",
"are",
"private",
"to",
"the",
"application",
"should",
"be",
"placed",
"in",
"a",
"directory",
"returned",
"by",
"{",
"@",
"link",
"android",
"content",
"context",
"#",
"get",
"external",
"files",
"dir",
"context",
"get",
"external",
"files",
"dir",
"}",
"which",
"the",
"system",
"will",
"take",
"care",
"of",
"deleting",
"if",
"the",
"application",
"is",
"uninstalled",
"other",
"shared",
"files",
"should",
"be",
"placed",
"in",
"one",
"of",
"the",
"directories",
"returned",
"by",
"{",
"@",
"link",
"#",
"get",
"external",
"storage",
"public",
"directory",
"}",
"<",
"p",
">",
"writing",
"to",
"this",
"path",
"requires",
"the",
"{",
"@",
"link",
"android",
"manifest",
"permission",
"#",
"write",
"external",
"storage",
"}",
"permission",
"and",
"starting",
"in",
"{",
"@",
"link",
"android",
"os",
"build",
"version",
"codes",
"#",
"kitkat",
"}",
"read",
"access",
"requires",
"the",
"{",
"@",
"link",
"android",
"manifest",
"permission",
"#",
"read",
"external",
"storage",
"}",
"permission",
"which",
"is",
"automatically",
"granted",
"if",
"you",
"hold",
"the",
"write",
"permission",
"<",
"p",
">",
"starting",
"in",
"{",
"@",
"link",
"android",
"os",
"build",
"version",
"codes",
"#",
"kitkat",
"}",
"if",
"your",
"application",
"only",
"needs",
"to",
"store",
"internal",
"data",
"consider",
"using",
"{",
"@",
"link",
"context",
"#",
"get",
"external",
"files",
"dir",
"(",
"string",
")",
"}",
"{",
"@",
"link",
"context",
"#",
"get",
"external",
"cache",
"dir",
"(",
")",
"}",
"or",
"{",
"@",
"link",
"context",
"#",
"get",
"external",
"media",
"dirs",
"(",
")",
"}",
"which",
"require",
"no",
"permissions",
"to",
"read",
"or",
"write",
"<",
"p",
">",
"this",
"path",
"may",
"change",
"between",
"platform",
"versions",
"so",
"applications",
"should",
"only",
"persist",
"relative",
"paths",
"<",
"p",
">",
"here",
"is",
"an",
"example",
"of",
"typical",
"code",
"to",
"monitor",
"the",
"state",
"of",
"external",
"storage",
":",
"<",
"p",
">",
"{",
"@",
"sample",
"development",
"/",
"samples",
"/",
"api",
"demos",
"/",
"src",
"/",
"com",
"/",
"example",
"/",
"android",
"/",
"apis",
"/",
"content",
"/",
"external",
"storage",
"java",
"monitor",
"storage",
"}"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"get",
"external",
"dirs",
"(",
")",
"[",
"0",
"]",
";"
] |
[
"{"
] |
[
"return",
"new",
"file",
"(",
"system",
"getenv",
"(",
"env",
"external",
"storage",
")",
")",
";"
] |
[
"{"
] |
[
"return",
"build",
"path",
"(",
"get",
"legacy",
"external",
"storage",
"directory",
"(",
")",
",",
"dir",
"android",
",",
"dir",
"obb",
")",
";"
] |
[
"classify",
"the",
"content",
"types",
"present",
"on",
"the",
"given",
"external",
"storage",
"device",
"<",
"p",
">",
"this",
"is",
"typically",
"useful",
"for",
"deciding",
"if",
"an",
"inserted",
"sd",
"card",
"is",
"empty",
"or",
"if",
"it",
"contains",
"content",
"like",
"photos",
"that",
"should",
"be",
"preserved"
] |
[
"int",
"res",
"=",
"0",
";",
"for",
"(",
"file",
"f",
":",
"file",
"utils",
"list",
"files",
"or",
"empty",
"(",
"dir",
")",
")",
"{",
"if",
"(",
"f",
"is",
"file",
"(",
")",
"&",
"&",
"is",
"interesting",
"file",
"(",
"f",
")",
")",
"{",
"res",
"|",
"=",
"has",
"other",
";",
"}",
"else",
"if",
"(",
"f",
"is",
"directory",
"(",
")",
"&",
"&",
"has",
"interesting",
"files",
"(",
"f",
")",
")",
"{",
"final",
"string",
"name",
"=",
"f",
"get",
"name",
"(",
")",
";",
"if",
"(",
"directory",
"music",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"music",
";",
"else",
"if",
"(",
"directory",
"podcasts",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"podcasts",
";",
"else",
"if",
"(",
"directory",
"ringtones",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"ringtones",
";",
"else",
"if",
"(",
"directory",
"alarms",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"alarms",
";",
"else",
"if",
"(",
"directory",
"notifications",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"notifications",
";",
"else",
"if",
"(",
"directory",
"pictures",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"pictures",
";",
"else",
"if",
"(",
"directory",
"movies",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"movies",
";",
"else",
"if",
"(",
"directory",
"downloads",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"downloads",
";",
"else",
"if",
"(",
"directory",
"dcim",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"dcim",
";",
"else",
"if",
"(",
"directory",
"documents",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"documents",
";",
"else",
"if",
"(",
"directory",
"android",
"equals",
"(",
"name",
")",
")",
"res",
"|",
"=",
"has",
"android",
";",
"else",
"res",
"|",
"=",
"has",
"other",
";",
"}",
"}",
"return",
"res",
";"
] |
[
"get",
"a",
"top",
"-",
"level",
"shared",
"/",
"external",
"storage",
"directory",
"for",
"placing",
"files",
"of",
"a",
"particular",
"type",
"this",
"is",
"where",
"the",
"user",
"will",
"typically",
"place",
"and",
"manage",
"their",
"own",
"files",
"so",
"you",
"should",
"be",
"careful",
"about",
"what",
"you",
"put",
"here",
"to",
"ensure",
"you",
"don",
"t",
"erase",
"their",
"files",
"or",
"get",
"in",
"the",
"way",
"of",
"their",
"own",
"organization",
"<",
"p",
">",
"on",
"devices",
"with",
"multiple",
"users",
"(",
"as",
"described",
"by",
"{",
"@",
"link",
"user",
"manager",
"}",
")",
"each",
"user",
"has",
"their",
"own",
"isolated",
"shared",
"storage",
"applications",
"only",
"have",
"access",
"to",
"the",
"shared",
"storage",
"for",
"the",
"user",
"they",
"re",
"running",
"as",
"<",
"/",
"p",
">",
"<",
"p",
">",
"here",
"is",
"an",
"example",
"of",
"typical",
"code",
"to",
"manipulate",
"a",
"picture",
"on",
"the",
"public",
"shared",
"storage",
":",
"<",
"/",
"p",
">",
"{",
"@",
"sample",
"development",
"/",
"samples",
"/",
"api",
"demos",
"/",
"src",
"/",
"com",
"/",
"example",
"/",
"android",
"/",
"apis",
"/",
"content",
"/",
"external",
"storage",
"java",
"public",
"picture",
"}"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"public",
"dirs",
"(",
"type",
")",
"[",
"0",
"]",
";"
] |
[
"returns",
"the",
"path",
"for",
"android",
"-",
"specific",
"data",
"on",
"the",
"sd",
"card"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"android",
"data",
"dirs",
"(",
")",
";"
] |
[
"generates",
"the",
"raw",
"path",
"to",
"an",
"application",
"s",
"data"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"app",
"data",
"dirs",
"(",
"package",
"name",
")",
";"
] |
[
"generates",
"the",
"raw",
"path",
"to",
"an",
"application",
"s",
"media"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"app",
"media",
"dirs",
"(",
"package",
"name",
")",
";"
] |
[
"generates",
"the",
"raw",
"path",
"to",
"an",
"application",
"s",
"obb",
"files"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"app",
"obb",
"dirs",
"(",
"package",
"name",
")",
";"
] |
[
"generates",
"the",
"path",
"to",
"an",
"application",
"s",
"files"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"app",
"files",
"dirs",
"(",
"package",
"name",
")",
";"
] |
[
"generates",
"the",
"path",
"to",
"an",
"application",
"s",
"cache"
] |
[
"throw",
"if",
"user",
"required",
"(",
")",
";",
"return",
"s",
"current",
"user",
"build",
"external",
"storage",
"app",
"cache",
"dirs",
"(",
"package",
"name",
")",
";"
] |
[
"return",
"the",
"download",
"/",
"cache",
"content",
"directory"
] |
[
"return",
"dir",
"download",
"cache",
";"
] |
[
"returns",
"the",
"current",
"state",
"of",
"the",
"primary",
"shared",
"/",
"external",
"storage",
"media"
] |
[
"final",
"file",
"external",
"dir",
"=",
"s",
"current",
"user",
"get",
"external",
"dirs",
"(",
")",
"[",
"0",
"]",
";",
"return",
"get",
"external",
"storage",
"state",
"(",
"external",
"dir",
")",
";"
] |
[
"returns",
"the",
"current",
"state",
"of",
"the",
"shared",
"/",
"external",
"storage",
"media",
"at",
"the",
"given",
"path"
] |
[
"final",
"storage",
"volume",
"volume",
"=",
"storage",
"manager",
"get",
"storage",
"volume",
"(",
"path",
",",
"user",
"handle",
"my",
"user",
"id",
"(",
")",
")",
";",
"if",
"(",
"volume",
"!",
"=",
"null",
")",
"{",
"return",
"volume",
"get",
"state",
"(",
")",
";",
"}",
"else",
"{",
"return",
"media",
"unknown",
";",
"}"
] |
[
"returns",
"whether",
"the",
"primary",
"shared",
"/",
"external",
"storage",
"media",
"is",
"physically",
"removable"
] |
[
"final",
"file",
"external",
"dir",
"=",
"s",
"current",
"user",
"get",
"external",
"dirs",
"(",
")",
"[",
"0",
"]",
";",
"return",
"is",
"external",
"storage",
"removable",
"(",
"external",
"dir",
")",
";"
] |
[
"returns",
"whether",
"the",
"primary",
"shared",
"/",
"external",
"storage",
"media",
"is",
"emulated",
"<",
"p",
">",
"the",
"contents",
"of",
"emulated",
"storage",
"devices",
"are",
"backed",
"by",
"a",
"private",
"user",
"data",
"partition",
"which",
"means",
"there",
"is",
"little",
"benefit",
"to",
"apps",
"storing",
"data",
"here",
"instead",
"of",
"the",
"private",
"directories",
"returned",
"by",
"{",
"@",
"link",
"context",
"#",
"get",
"files",
"dir",
"(",
")",
"}",
"etc",
"<",
"p",
">",
"this",
"returns",
"true",
"when",
"emulated",
"storage",
"is",
"backed",
"by",
"either",
"internal",
"storage",
"or",
"an",
"adopted",
"storage",
"device"
] |
[
"final",
"file",
"external",
"dir",
"=",
"s",
"current",
"user",
"get",
"external",
"dirs",
"(",
")",
"[",
"0",
"]",
";",
"return",
"is",
"external",
"storage",
"emulated",
"(",
"external",
"dir",
")",
";"
] |
[
"{"
] |
[
"s",
"user",
"required",
"=",
"user",
"required",
";"
] |
[
"append",
"path",
"segments",
"to",
"each",
"given",
"base",
"path",
"returning",
"result"
] |
[
"file",
"[",
"]",
"result",
"=",
"new",
"file",
"[",
"base",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"base",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"build",
"path",
"(",
"base",
"[",
"i",
"]",
",",
"segments",
")",
";",
"}",
"return",
"result",
";"
] |
[
"append",
"path",
"segments",
"to",
"given",
"base",
"path",
"returning",
"result"
] |
[
"file",
"cur",
"=",
"base",
";",
"for",
"(",
"string",
"segment",
":",
"segments",
")",
"{",
"if",
"(",
"cur",
"=",
"=",
"null",
")",
"{",
"cur",
"=",
"new",
"file",
"(",
"segment",
")",
";",
"}",
"else",
"{",
"cur",
"=",
"new",
"file",
"(",
"cur",
",",
"segment",
")",
";",
"}",
"}",
"return",
"cur",
";"
] |
[
"if",
"the",
"given",
"path",
"exists",
"on",
"emulated",
"external",
"storage",
"return",
"the",
"translated",
"backing",
"path",
"hosted",
"on",
"internal",
"storage",
"this",
"bypasses",
"any",
"emulation",
"later",
"improving",
"performance",
"this",
"is",
"<",
"em",
">",
"only",
"<",
"/",
"em",
">",
"suitable",
"for",
"read",
"-",
"only",
"access",
"<",
"p",
">",
"returns",
"original",
"path",
"if",
"given",
"path",
"doesn",
"t",
"meet",
"these",
"criteria",
"callers",
"must",
"hold",
"{",
"@",
"link",
"android",
"manifest",
"permission",
"#",
"write",
"media",
"storage",
"}",
"permission"
] |
[
"return",
"storage",
"manager",
"maybe",
"translate",
"emulated",
"path",
"to",
"internal",
"(",
"path",
")",
";"
] |
[
"determine",
"the",
"outcome",
"of",
"the",
"match",
"along",
"with",
"suitable",
"log",
"output"
] |
[
"public",
"abstract",
"condition",
"outcome",
"get",
"match",
"outcome",
"(",
"condition",
"context",
"context",
",",
"annotated",
"type",
"metadata",
"metadata",
")",
";"
] |
[
"return",
"true",
"if",
"any",
"of",
"the",
"specified",
"conditions",
"match"
] |
[
"for",
"(",
"condition",
"condition",
":",
"conditions",
")",
"{",
"if",
"(",
"matches",
"(",
"context",
",",
"metadata",
",",
"condition",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
] |
[
"return",
"true",
"if",
"any",
"of",
"the",
"specified",
"condition",
"matches"
] |
[
"if",
"(",
"condition",
"instanceof",
"spring",
"boot",
"condition",
")",
"{",
"return",
"(",
"(",
"spring",
"boot",
"condition",
")",
"condition",
")",
"get",
"match",
"outcome",
"(",
"context",
",",
"metadata",
")",
"is",
"match",
"(",
")",
";",
"}",
"return",
"condition",
"matches",
"(",
"context",
",",
"metadata",
")",
";"
] |
[
"net",
"socket",
"impl"
] |
[
"synchronized",
"(",
"conn",
")",
"{",
"exception",
"handler",
"=",
"handler",
";",
"return",
"this",
";",
"}"
] |
[
"<",
"p",
">",
"name",
"of",
"the",
"iam",
"group",
"to",
"update",
"if",
"you",
"re",
"changing",
"the",
"name",
"of",
"the",
"group",
"this",
"is",
"the",
"original",
"name",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"upper",
"and",
"lowercase",
"alphanumeric",
"characters",
"with",
"no",
"spaces",
"you",
"can",
"also",
"include",
"any",
"of",
"the",
"following",
"characters",
":",
"+",
"=",
"@",
"-",
"<",
"/",
"p",
">"
] |
[
"set",
"group",
"name",
"(",
"group",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"user",
"pool",
"id",
"for",
"the",
"user",
"pool",
"<",
"/",
"p",
">"
] |
[
"set",
"user",
"pool",
"id",
"(",
"user",
"pool",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"description",
"of",
"the",
"resource",
"group",
"descriptions",
"can",
"have",
"a",
"maximum",
"of",
"511",
"characters",
"including",
"letters",
"numbers",
"hyphens",
"underscores",
"punctuation",
"and",
"spaces",
"<",
"/",
"p",
">"
] |
[
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"new",
"role",
"arn",
"for",
"the",
"group",
"this",
"is",
"used",
"for",
"setting",
"the",
"<",
"code",
">",
"cognito",
":",
"roles",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"cognito",
":",
"preferred",
"role",
"<",
"/",
"code",
">",
"claims",
"in",
"the",
"token",
"<",
"/",
"p",
">"
] |
[
"set",
"role",
"arn",
"(",
"role",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"new",
"precedence",
"value",
"for",
"the",
"group",
"for",
"more",
"information",
"about",
"this",
"parameter",
"see",
"<",
"/",
"p",
">"
] |
[
"set",
"precedence",
"(",
"precedence",
")",
";",
"return",
"this",
";"
] |
[
"function",
"to",
"serialize",
"the",
"given",
"vector",
"clock",
"into",
"a",
"string",
"if",
"something",
"goes",
"wrong",
"it",
"returns",
"an",
"empty",
"string"
] |
[
"vector",
"clock",
"wrapper",
"vc",
"wrapper",
"=",
"new",
"vector",
"clock",
"wrapper",
"(",
"vc",
")",
";",
"string",
"serialized",
"v",
"c",
"=",
"\"",
"\"",
";",
"try",
"{",
"serialized",
"v",
"c",
"=",
"mapper",
"write",
"value",
"as",
"string",
"(",
"vc",
"wrapper",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"return",
"serialized",
"v",
"c",
";"
] |
[
"function",
"to",
"serialize",
"the",
"given",
"list",
"of",
"vector",
"clocks",
"into",
"a",
"string",
"if",
"something",
"goes",
"wrong",
"it",
"returns",
"an",
"empty",
"string"
] |
[
"list",
"<",
"vector",
"clock",
"wrapper",
">",
"vector",
"clock",
"wrappers",
"=",
"new",
"array",
"list",
"<",
"vector",
"clock",
"wrapper",
">",
"(",
")",
";",
"for",
"(",
"vector",
"clock",
"vc",
":",
"vector",
"clocks",
")",
"{",
"vector",
"clock",
"wrappers",
"add",
"(",
"new",
"vector",
"clock",
"wrapper",
"(",
"vc",
")",
")",
";",
"}",
"string",
"serialized",
"v",
"c",
"=",
"\"",
"\"",
";",
"try",
"{",
"serialized",
"v",
"c",
"=",
"mapper",
"write",
"value",
"as",
"string",
"(",
"vector",
"clock",
"wrappers",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"e",
"print",
"stack",
"trace",
"(",
")",
";",
"}",
"return",
"serialized",
"v",
"c",
";"
] |
[
"given",
"a",
"storedefinition",
"constructs",
"the",
"xml",
"string",
"to",
"be",
"sent",
"out",
"in",
"response",
"to",
"a",
"schemata",
"fetch",
"request"
] |
[
"element",
"store",
"=",
"new",
"element",
"(",
"store",
"definitions",
"mapper",
"store",
"elmt",
")",
";",
"store",
"add",
"content",
"(",
"new",
"element",
"(",
"store",
"definitions",
"mapper",
"store",
"name",
"elmt",
")",
"set",
"text",
"(",
"store",
"definition",
"get",
"name",
"(",
")",
")",
")",
";",
"element",
"key",
"serializer",
"=",
"new",
"element",
"(",
"store",
"definitions",
"mapper",
"store",
"key",
"serializer",
"elmt",
")",
";",
"store",
"definitions",
"mapper",
"add",
"serializer",
"(",
"key",
"serializer",
",",
"store",
"definition",
"get",
"key",
"serializer",
"(",
")",
")",
";",
"store",
"add",
"content",
"(",
"key",
"serializer",
")",
";",
"element",
"value",
"serializer",
"=",
"new",
"element",
"(",
"store",
"definitions",
"mapper",
"store",
"value",
"serializer",
"elmt",
")",
";",
"store",
"definitions",
"mapper",
"add",
"serializer",
"(",
"value",
"serializer",
",",
"store",
"definition",
"get",
"value",
"serializer",
"(",
")",
")",
";",
"store",
"add",
"content",
"(",
"value",
"serializer",
")",
";",
"x",
"m",
"l",
"outputter",
"serializer",
"=",
"new",
"x",
"m",
"l",
"outputter",
"(",
"format",
"get",
"pretty",
"format",
"(",
")",
")",
";",
"return",
"serializer",
"output",
"string",
"(",
"store",
")",
";"
] |
[
"given",
"an",
"xml",
"string",
"containing",
"the",
"store",
"s",
"serialization",
"information",
"obtains",
"the",
"key",
"serializer",
"definition"
] |
[
"return",
"parse",
"serializer",
"definition",
"(",
"serializer",
"info",
"xml",
",",
"store",
"definitions",
"mapper",
"store",
"key",
"serializer",
"elmt",
")",
";"
] |
[
"given",
"an",
"xml",
"string",
"containing",
"the",
"store",
"s",
"serialization",
"information",
"obtains",
"the",
"value",
"serializer",
"definition"
] |
[
"return",
"parse",
"serializer",
"definition",
"(",
"serializer",
"info",
"xml",
",",
"store",
"definitions",
"mapper",
"store",
"value",
"serializer",
"elmt",
")",
";"
] |
[
"table",
"model",
"interface",
"methods"
] |
[
"if",
"(",
"view",
"index",
">",
"=",
"0",
")",
"{",
"return",
"get",
"view",
"to",
"model",
"(",
")",
"[",
"view",
"index",
"]",
"model",
"index",
";",
"}",
"return",
"0",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] |
[
"final",
"object",
"special",
"=",
"this",
"special",
"properties",
"get",
"(",
"property",
")",
";",
"if",
"(",
"special",
"=",
"=",
"null",
")",
"{",
"this",
"prefix",
"=",
"property",
";",
"return",
"this",
";",
"}",
"else",
"{",
"return",
"special",
";",
"}"
] |
[
"used",
"only",
"for",
"unit",
"test",
"when",
"the",
"same",
"class",
"loader",
"is",
"used",
"across",
"multiple",
"unit",
"tests"
] |
[
"recheck",
"aes",
"gcm",
"availablility",
"(",
")",
";",
"recheck",
"rsa",
"key",
"wrap",
"availablility",
"(",
")",
";"
] |
[
"returns",
"the",
"specific",
"double",
"value",
"if",
"applicable"
] |
[
"return",
"0",
"0",
";"
] |
[
"returns",
"the",
"negated",
"value",
"of",
"this",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"negate",
"(",
")",
";"
] |
[
"returns",
"the",
"generalization",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"other",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"generalize",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"sum",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"add",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"difference",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"subtract",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"difference",
"of",
"the",
"given",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"subtract",
"from",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"product",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"multiply",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"quotient",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"divide",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"quotient",
"of",
"the",
"given",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"divide",
"of",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"this",
"double",
"value",
"divided",
"by",
"the",
"given",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"remainder",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"the",
"given",
"double",
"value",
"divided",
"by",
"this",
"double",
"value"
] |
[
"public",
"abstract",
"double",
"value",
"remainder",
"of",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"-",
"1",
"0",
"or",
"1",
"if",
"this",
"double",
"value",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
"the",
"given",
"double",
"value",
"respectively"
] |
[
"public",
"abstract",
"integer",
"value",
"compare",
"(",
"double",
"value",
"other",
")",
";"
] |
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"1",
"0",
"or",
"-",
"1",
"if",
"this",
"double",
"value",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
"the",
"given",
"double",
"value",
"respectively"
] |
[
"return",
"compare",
"(",
"other",
")",
"negate",
"(",
")",
";"
] |
[
"returns",
"the",
"generalization",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"other",
"specific",
"double",
"value"
] |
[
"return",
"generalize",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"sum",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"specific",
"double",
"value"
] |
[
"return",
"add",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"difference",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"specific",
"double",
"value"
] |
[
"return",
"subtract",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"difference",
"of",
"the",
"given",
"specific",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"return",
"subtract",
"from",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"product",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"specific",
"double",
"value"
] |
[
"return",
"multiply",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"quotient",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"specific",
"double",
"value"
] |
[
"return",
"divide",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"quotient",
"of",
"the",
"given",
"specific",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"return",
"divide",
"of",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"this",
"double",
"value",
"divided",
"by",
"the",
"given",
"specific",
"double",
"value"
] |
[
"return",
"remainder",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"the",
"given",
"specific",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"return",
"remainder",
"of",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"-",
"1",
"0",
"or",
"1",
"if",
"this",
"double",
"value",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
"the",
"given",
"specific",
"double",
"value",
"respectively"
] |
[
"return",
"compare",
"(",
"(",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"1",
"0",
"or",
"-",
"1",
"if",
"this",
"double",
"value",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
"the",
"given",
"specific",
"double",
"value",
"respectively"
] |
[
"return",
"compare",
"(",
"other",
")",
"negate",
"(",
")",
";"
] |
[
"returns",
"the",
"generalization",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"other",
"particular",
"double",
"value"
] |
[
"return",
"generalize",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"sum",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"particular",
"double",
"value"
] |
[
"return",
"add",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"difference",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"particular",
"double",
"value"
] |
[
"return",
"subtract",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"difference",
"of",
"the",
"given",
"particular",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"return",
"subtract",
"from",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"product",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"particular",
"double",
"value"
] |
[
"return",
"multiply",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"quotient",
"of",
"this",
"double",
"value",
"and",
"the",
"given",
"particular",
"double",
"value"
] |
[
"return",
"divide",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"quotient",
"of",
"the",
"given",
"particular",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"return",
"divide",
"of",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"this",
"double",
"value",
"divided",
"by",
"the",
"given",
"particular",
"double",
"value"
] |
[
"return",
"remainder",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"the",
"given",
"particular",
"double",
"value",
"and",
"this",
"double",
"value"
] |
[
"return",
"remainder",
"of",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"-",
"1",
"0",
"or",
"1",
"if",
"this",
"double",
"value",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
"the",
"given",
"particular",
"double",
"value",
"respectively"
] |
[
"return",
"compare",
"(",
"(",
"specific",
"double",
"value",
")",
"other",
")",
";"
] |
[
"returns",
"an",
"integer",
"value",
"with",
"value",
"1",
"0",
"or",
"-",
"1",
"if",
"this",
"double",
"value",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
"the",
"given",
"particular",
"double",
"value",
"respectively"
] |
[
"return",
"compare",
"(",
"other",
")",
"negate",
"(",
")",
";"
] |
[
"implementations",
"for",
"value"
] |
[
"return",
"this",
";"
] |
[
"return",
"the",
"jta",
"transaction",
"manager",
"that",
"this",
"adapter",
"delegates",
"to"
] |
[
"return",
"this",
"transaction",
"manager",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] |
[
"order",
"by",
"(",
"historic",
"activity",
"instance",
"query",
"property",
"duration",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.