docstring_tokens
sequence
code_tokens
sequence
[ "setup", "the", "support", "for", "building", "proto", "library", "you", "additionally", "need", "to", "setup", "support", "for", "each", "of", "the", "languages", "used", "in", "the", "specific", "test" ]
[ "create", "net", "proto", "2", "(", "config", ")", ";", "create", "javascript", "closure", "proto", "2", "(", "config", ")", ";" ]
[ "returns", "the", "name", "of", "the", "protocol", "such", "as", "{" ]
[ "return", "protocol", "name", ";" ]
[ "returns", "{" ]
[ "return", "keep", "alive", "default", ";" ]
[ "this", "method", "should", "be", "called", "in", "the", "prepare", "-", "methods", "of", "menus", "it", "changes", "the", "visibility", "of", "the", "menu", "items", "depending", "on", "a", "feed", "item", "s", "attributes" ]
[ "if", "(", "selected", "item", "=", "=", "null", ")", "{", "return", "false", ";", "}", "boolean", "has", "media", "=", "selected", "item", "get", "media", "(", ")", "!", "=", "null", ";", "boolean", "is", "playing", "=", "has", "media", "&", "&", "selected", "item", "get", "state", "(", ")", "=", "=", "feed", "item", "state", "playing", ";", "if", "(", "!", "is", "playing", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "skip", "episode", "item", ",", "false", ")", ";", "}", "boolean", "is", "in", "queue", "=", "selected", "item", "is", "tagged", "(", "feed", "item", "tag", "queue", ")", ";", "if", "(", "queue", "access", "=", "=", "null", "|", "|", "queue", "access", "size", "(", ")", "=", "=", "0", "|", "|", "queue", "access", "get", "(", "0", ")", "=", "=", "selected", "item", "get", "id", "(", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "move", "to", "top", "item", ",", "false", ")", ";", "}", "if", "(", "queue", "access", "=", "=", "null", "|", "|", "queue", "access", "size", "(", ")", "=", "=", "0", "|", "|", "queue", "access", "get", "(", "queue", "access", "size", "(", ")", "-", "1", ")", "=", "=", "selected", "item", "get", "id", "(", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "move", "to", "bottom", "item", ",", "false", ")", ";", "}", "if", "(", "!", "is", "in", "queue", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "remove", "from", "queue", "item", ",", "false", ")", ";", "}", "if", "(", "!", "(", "!", "is", "in", "queue", "&", "&", "selected", "item", "get", "media", "(", ")", "!", "=", "null", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "add", "to", "queue", "item", ",", "false", ")", ";", "}", "if", "(", "!", "show", "extended", "menu", "|", "|", "selected", "item", "get", "link", "(", ")", "=", "=", "null", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "visit", "website", "item", ",", "false", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "share", "link", "item", ",", "false", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "share", "link", "with", "position", "item", ",", "false", ")", ";", "}", "if", "(", "!", "show", "extended", "menu", "|", "|", "!", "has", "media", "|", "|", "selected", "item", "get", "media", "(", ")", "get", "download", "url", "(", ")", "=", "=", "null", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "share", "download", "url", "item", ",", "false", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "share", "download", "url", "with", "position", "item", ",", "false", ")", ";", "}", "if", "(", "!", "has", "media", "|", "|", "selected", "item", "get", "media", "(", ")", "get", "position", "(", ")", "<", "=", "0", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "share", "link", "with", "position", "item", ",", "false", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "share", "download", "url", "with", "position", "item", ",", "false", ")", ";", "}", "mi", "set", "item", "visibility", "(", "r", "id", "share", "file", ",", "has", "media", "&", "&", "selected", "item", "get", "media", "(", ")", "file", "exists", "(", ")", ")", ";", "if", "(", "selected", "item", "is", "played", "(", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "mark", "read", "item", ",", "false", ")", ";", "}", "else", "{", "mi", "set", "item", "visibility", "(", "r", "id", "mark", "unread", "item", ",", "false", ")", ";", "}", "if", "(", "selected", "item", "get", "media", "(", ")", "=", "=", "null", "|", "|", "selected", "item", "get", "media", "(", ")", "get", "position", "(", ")", "=", "=", "0", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "reset", "position", ",", "false", ")", ";", "}", "if", "(", "!", "user", "preferences", "is", "enable", "autodownload", "(", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "activate", "auto", "download", ",", "false", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "deactivate", "auto", "download", ",", "false", ")", ";", "}", "else", "if", "(", "selected", "item", "get", "auto", "download", "(", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "activate", "auto", "download", ",", "false", ")", ";", "}", "else", "{", "mi", "set", "item", "visibility", "(", "r", "id", "deactivate", "auto", "download", ",", "false", ")", ";", "}", "if", "(", "selected", "item", "get", "payment", "link", "(", ")", "=", "=", "null", "|", "|", "!", "selected", "item", "get", "flattr", "status", "(", ")", "flattrable", "(", ")", ")", "{", "mi", "set", "item", "visibility", "(", "r", "id", "support", "item", ",", "false", ")", ";", "}", "boolean", "is", "favorite", "=", "selected", "item", "is", "tagged", "(", "feed", "item", "tag", "favorite", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "add", "to", "favorites", "item", ",", "!", "is", "favorite", ")", ";", "mi", "set", "item", "visibility", "(", "r", "id", "remove", "from", "favorites", "item", ",", "is", "favorite", ")", ";", "return", "true", ";" ]
[ "the", "same", "method", "as", "on", "prepare", "menu", "(", "menu", "interface", "feed", "item", "boolean", "queue", "access", ")", "but", "lets", "the", "caller", "also", "specify", "a", "list", "of", "menu", "items", "that", "should", "not", "be", "shown" ]
[ "boolean", "rc", "=", "on", "prepare", "menu", "(", "mi", ",", "selected", "item", ",", "show", "extended", "menu", ",", "queue", "access", ")", ";", "if", "(", "rc", "&", "&", "exclude", "ids", "!", "=", "null", ")", "{", "for", "(", "int", "id", ":", "exclude", "ids", ")", "{", "mi", "set", "item", "visibility", "(", "id", ",", "false", ")", ";", "}", "}", "return", "rc", ";" ]
[ "when", "there", "s", "a", "skip", "we", "need", "to", "adapt", "the", "reference", "number" ]
[ "int", "corrected", "ref", "=", "0", ";", "int", "i", "=", "0", ";", "for", "(", "int", "token", "position", ":", "token", "positions", ")", "{", "if", "(", "i", "+", "+", ">", "=", "ref", "number", ")", "{", "break", ";", "}", "corrected", "ref", "+", "=", "token", "position", ";", "}", "return", "corrected", "ref", "-", "1", ";" ]
[ "<", "p", ">", "the", "thing", "groups", "<", "/", "p", ">" ]
[ "return", "thing", "groups", ";" ]
[ "<", "p", ">", "the", "thing", "groups", "<", "/", "p", ">" ]
[ "if", "(", "thing", "groups", "=", "=", "null", ")", "{", "this", "thing", "groups", "=", "null", ";", "return", ";", "}", "this", "thing", "groups", "=", "new", "java", "util", "array", "list", "<", "group", "name", "and", "arn", ">", "(", "thing", "groups", ")", ";" ]
[ "<", "p", ">", "the", "thing", "groups", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "thing", "groups", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "thing", "groups", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "thing", "groups", "=", "=", "null", ")", "{", "set", "thing", "groups", "(", "new", "java", "util", "array", "list", "<", "group", "name", "and", "arn", ">", "(", "thing", "groups", "length", ")", ")", ";", "}", "for", "(", "group", "name", "and", "arn", "ele", ":", "thing", "groups", ")", "{", "this", "thing", "groups", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "the", "thing", "groups", "<", "/", "p", ">" ]
[ "set", "thing", "groups", "(", "thing", "groups", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "token", "used", "to", "get", "the", "next", "set", "of", "results", "or", "<", "b", ">", "null", "<", "/", "b", ">", "if", "there", "are", "no", "additional", "results", "<", "/", "p", ">" ]
[ "set", "next", "token", "(", "next", "token", ")", ";", "return", "this", ";" ]
[ "return", "true", "if", "authorization", "is", "supported", "and", "enabled" ]
[ "return", "connection", "get", "admin", "(", ")", "get", "security", "capabilities", "(", ")", "contains", "(", "security", "capability", "authorization", ")", ";" ]
[ "return", "true", "if", "cell", "authorization", "is", "supported", "and", "enabled" ]
[ "return", "connection", "get", "admin", "(", ")", "get", "security", "capabilities", "(", ")", "contains", "(", "security", "capability", "cell", "authorization", ")", ";" ]
[ "grants", "permission", "on", "the", "specified", "table", "for", "the", "specified", "user", "if", "permissions", "for", "a", "specified", "user", "exists", "later", "granted", "permissions", "will", "override", "previous", "granted", "permissions" ]
[ "grant", "(", "connection", ",", "table", "name", ",", "user", "name", ",", "family", ",", "qual", ",", "true", ",", "actions", ")", ";" ]
[ "grants", "permission", "on", "the", "specified", "namespace", "for", "the", "specified", "user", "if", "permissions", "on", "the", "specified", "namespace", "exists", "later", "granted", "permissions", "will", "override", "previous", "granted", "permissions" ]
[ "grant", "(", "connection", ",", "namespace", ",", "user", "name", ",", "true", ",", "actions", ")", ";" ]
[ "grant", "global", "permissions", "for", "the", "specified", "user", "if", "permissions", "for", "the", "specified", "user", "exists", "later", "granted", "permissions", "will", "override", "previous", "granted", "permissions" ]
[ "grant", "(", "connection", ",", "user", "name", ",", "true", ",", "actions", ")", ";" ]
[ "list", "all", "the", "user", "permissions", "matching", "the", "given", "pattern", "if", "pattern", "is", "null", "the", "behavior", "is", "dependent", "on", "whether", "user", "has", "global", "admin", "privileges", "or", "not", "if", "yes", "the", "global", "permissions", "along", "with", "the", "list", "of", "superusers", "would", "be", "returned", "else", "no", "rows", "get", "returned" ]
[ "return", "get", "user", "permissions", "(", "connection", ",", "table", "regex", ",", "h", "constants", "empty", "string", ")", ";" ]
[ "list", "all", "the", "user", "permissions", "matching", "the", "given", "table", "pattern", "and", "column", "family" ]
[ "return", "get", "user", "permissions", "(", "connection", ",", "table", "regex", ",", "column", "family", ",", "null", ",", "h", "constants", "empty", "string", ")", ";" ]
[ "list", "all", "the", "user", "permissions", "matching", "the", "given", "table", "pattern", "column", "family", "and", "user", "name" ]
[ "return", "get", "user", "permissions", "(", "connection", ",", "table", "regex", ",", "column", "family", ",", "null", ",", "user", "name", ")", ";" ]
[ "list", "all", "the", "user", "permissions", "matching", "the", "given", "table", "pattern", "column", "family", "and", "column", "qualifier" ]
[ "return", "get", "user", "permissions", "(", "connection", ",", "table", "regex", ",", "column", "family", ",", "column", "qualifier", ",", "h", "constants", "empty", "string", ")", ";" ]
[ "validates", "whether", "specified", "user", "has", "permission", "to", "perform", "actions", "on", "the", "mentioned", "table", "column", "family", "or", "column", "qualifier" ]
[ "return", "has", "permission", "(", "connection", ",", "table", "name", ",", "bytes", "to", "bytes", "(", "column", "family", ")", ",", "bytes", "to", "bytes", "(", "column", "qualifier", ")", ",", "user", "name", ",", "actions", ")", ";" ]
[ "see", "min", "should", "match", "sum", "scorer", "for", "an", "explanation" ]
[ "final", "priority", "queue", "<", "bulk", "scorer", ">", "pq", "=", "new", "priority", "queue", "<", "bulk", "scorer", ">", "(", "scorers", "size", "(", ")", "-", "min", "should", "match", "+", "1", ")", "{", "@", "override", "protected", "boolean", "less", "than", "(", "bulk", "scorer", "a", ",", "bulk", "scorer", "b", ")", "{", "return", "a", "cost", "(", ")", ">", "b", "cost", "(", ")", ";", "}", "}", ";", "for", "(", "bulk", "scorer", "scorer", ":", "scorers", ")", "{", "pq", "insert", "with", "overflow", "(", "scorer", ")", ";", "}", "long", "cost", "=", "0", ";", "for", "(", "bulk", "scorer", "scorer", "=", "pq", "pop", "(", ")", ";", "scorer", "!", "=", "null", ";", "scorer", "=", "pq", "pop", "(", ")", ")", "{", "cost", "+", "=", "scorer", "cost", "(", ")", ";", "}", "return", "cost", ";" ]
[ "returns", "the", "endpoint", "for", "the", "given", "service", "if", "the", "region", "is", "not", "present", "under", "service", "configuration", ";", "but", "matches", "the", "region", "regex", "then", "this", "system", "tries", "to", "guess", "the", "endpoint", "and", "returns", "it" ]
[ "return", "get", "endpoint", "string", "(", "service", "name", ",", "get", "endpoint", "(", "service", "name", ")", ")", ";" ]
[ "returns", "the", "endpoint", "configuration", "for", "a", "given", "service" ]
[ "endpoint", "cached", "endpoint", "=", "endpoint", "cache", "get", "(", "service", "name", ")", ";", "if", "(", "cached", "endpoint", "=", "=", "null", ")", "{", "cached", "endpoint", "=", "compute", "endpoint", "(", "service", "name", ")", ";", "if", "(", "cached", "endpoint", "=", "=", "null", ")", "{", "return", "null", ";", "}", "}", "endpoint", "cache", "put", "(", "service", "name", ",", "cached", "endpoint", ")", ";", "return", "cached", "endpoint", ";" ]
[ "returns", "true", "if", "the", "service", "is", "explicitly", "enabled", "for", "a", "region", "or", "a", "service", "is", "partition", "wide", "enabled", "returns", "false", "otherwise", "<", "p", "/", ">", "for", "new", "regions", "that", "match", "the", "partition", "s", "region", "regex", "if", "the", "service", "is", "enabled", "partition", "wide", "then", "this", "method", "will", "return", "true" ]
[ "return", "is", "service", "supported", "in", "region", "(", "service", "name", ")", "|", "|", "is", "service", "partition", "wide", "(", "service", "name", ")", ";" ]
[ "this", "method", "returns", "true", "only", "if", "the", "metadata", "for", "the", "service", "contains", "the", "given", "region", "in", "the", "list", "of", "supported", "regions" ]
[ "return", "partition", "get", "services", "(", ")", "get", "(", "service", "name", ")", "!", "=", "null", "&", "&", "partition", "get", "services", "(", ")", "get", "(", "service", "name", ")", "get", "endpoints", "(", ")", "contains", "key", "(", "region", ")", ";" ]
[ "returns", "true", "if", "the", "service", "is", "explicitly", "enabled", "for", "https", "in", "this", "region", "or", "a", "service", "is", "partition", "wide", "enabled", "returns", "false", "otherwise", "<", "p", "/", ">", "for", "new", "regions", "that", "match", "the", "partition", "s", "region", "regex", "if", "the", "service", "is", "enabled", "partition", "wide", "then", "this", "method", "will", "return", "true" ]
[ "if", "(", "!", "is", "service", "supported", "(", "service", "name", ")", ")", "return", "false", ";", "return", "get", "endpoint", "(", "service", "name", ")", "has", "https", "support", "(", ")", ";" ]
[ "returns", "true", "if", "the", "service", "is", "explicitly", "enabled", "for", "http", "in", "this", "region", "or", "a", "service", "is", "partition", "wide", "enabled", "returns", "false", "otherwise", "<", "p", "/", ">", "for", "new", "regions", "that", "match", "the", "partition", "s", "region", "regex", "if", "the", "service", "is", "enabled", "partition", "wide", "then", "this", "method", "will", "return", "true" ]
[ "if", "(", "!", "is", "service", "supported", "(", "service", "name", ")", ")", "return", "false", ";", "return", "get", "endpoint", "(", "service", "name", ")", "has", "http", "support", "(", ")", ";" ]
[ "3", "listener", "is", "triggered", "(", "forward", "link", ")" ]
[ "final", "long", "[", "]", "n", "calls", "=", "{", "0", "}", ";", "final", "realm", "realm", "=", "realm", "get", "instance", "(", "looper", "thread", "get", "configuration", "(", ")", ")", ";", "test", "helper", "populate", "linked", "data", "set", "(", "realm", ")", ";", "realm", "results", "<", "backlinks", "source", ">", "backlinks", "sources", "=", "realm", "where", "(", "backlinks", "source", "class", ")", "find", "all", "(", ")", ";", "assert", "equals", "(", "4", ",", "backlinks", "sources", "size", "(", ")", ")", ";", "looper", "thread", "keep", "strong", "reference", "(", "backlinks", "sources", ")", ";", "backlinks", "sources", "add", "change", "listener", "(", "new", "realm", "change", "listener", "<", "realm", "results", "<", "backlinks", "source", ">", ">", "(", ")", "{", "@", "override", "public", "void", "on", "change", "(", "realm", "results", "<", "backlinks", "source", ">", "backlinks", "sources", ")", "{", "n", "calls", "[", "0", "]", "+", "+", ";", "}", "}", ")", ";", "realm", "begin", "transaction", "(", ")", ";", "backlinks", "target", "backlinks", "target", "=", "realm", "where", "(", "backlinks", "target", "class", ")", "find", "first", "(", ")", ";", "backlinks", "target", "set", "id", "(", "42", ")", ";", "realm", "commit", "transaction", "(", ")", ";", "assert", "equals", "(", "42", ",", "backlinks", "sources", "first", "(", ")", "get", "child", "(", ")", "get", "id", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "n", "calls", "[", "0", "]", ")", ";", "realm", "close", "(", ")", ";", "looper", "thread", "test", "complete", "(", ")", ";" ]
[ "utility", "methods", "to", "acquire", "and", "release", "read", "lock", "and", "write", "lock" ]
[ "this", "dir", "lock", "read", "lock", "(", ")", "lock", "(", ")", ";" ]
[ "enable", "quota", "verification" ]
[ "skip", "quota", "check", "=", "false", ";" ]
[ "disable", "quota", "verification" ]
[ "skip", "quota", "check", "=", "true", ";" ]
[ "this", "is", "a", "wrapper", "for", "resolve", "path", "(", ")", "if", "the", "path", "passed", "is", "prefixed", "with", "/", "reserved", "/", "raw", "then", "it", "checks", "to", "ensure", "that", "the", "caller", "has", "super", "user", "privileges" ]
[ "if", "(", "is", "reserved", "raw", "name", "(", "path", ")", "&", "&", "is", "permission", "enabled", ")", "{", "pc", "check", "superuser", "privilege", "(", ")", ";", "}", "return", "resolve", "path", "(", "path", ",", "path", "components", ",", "this", ")", ";" ]
[ "check", "whether", "the", "path", "specifies", "a", "directory" ]
[ "src", "=", "normalize", "path", "(", "src", ")", ";", "read", "lock", "(", ")", ";", "try", "{", "i", "node", "node", "=", "get", "i", "node", "(", "src", ",", "false", ")", ";", "return", "node", "!", "=", "null", "&", "&", "node", "is", "directory", "(", ")", ";", "}", "finally", "{", "read", "unlock", "(", ")", ";", "}" ]
[ "update", "the", "quota", "usage", "after", "deletion", "the", "quota", "update", "is", "only", "necessary", "when", "image", "/", "edits", "have", "been", "loaded", "and", "the", "file", "/", "dir", "to", "be", "deleted", "is", "not", "contained", "in", "snapshots" ]
[ "if", "(", "get", "f", "s", "namesystem", "(", ")", "is", "image", "loaded", "(", ")", "&", "&", "!", "inode", "is", "in", "latest", "snapshot", "(", "iip", "get", "latest", "snapshot", "id", "(", ")", ")", ")", "{", "quota", "counts", "counts", "=", "inode", "compute", "quota", "usage", "(", "get", "block", "storage", "policy", "suite", "(", ")", ")", ";", "unprotected", "update", "count", "(", "iip", ",", "iip", "length", "(", ")", "-", "1", ",", "counts", "negation", "(", ")", ")", ";", "}" ]
[ "update", "usage", "count", "without", "replication", "factor", "change" ]
[ "final", "i", "node", "file", "file", "i", "node", "=", "iip", "get", "last", "i", "node", "(", ")", "as", "file", "(", ")", ";", "enum", "counters", "<", "storage", "type", ">", "type", "space", "deltas", "=", "get", "storage", "type", "deltas", "(", "file", "i", "node", "get", "storage", "policy", "i", "d", "(", ")", ",", "ss", "delta", ",", "replication", ",", "replication", ")", ";", ";", "update", "count", "(", "iip", ",", "iip", "length", "(", ")", "-", "1", ",", "new", "quota", "counts", "builder", "(", ")", "name", "space", "(", "ns", "delta", ")", "storage", "space", "(", "ss", "delta", "*", "replication", ")", "type", "spaces", "(", "type", "space", "deltas", ")", "build", "(", ")", ",", "check", "quota", ")", ";" ]
[ "update", "usage", "count", "with", "replication", "factor", "change", "due", "to", "set", "replication" ]
[ "final", "i", "node", "file", "file", "i", "node", "=", "iip", "get", "last", "i", "node", "(", ")", "as", "file", "(", ")", ";", "enum", "counters", "<", "storage", "type", ">", "type", "space", "deltas", "=", "get", "storage", "type", "deltas", "(", "file", "i", "node", "get", "storage", "policy", "i", "d", "(", ")", ",", "ss", "delta", ",", "old", "rep", ",", "new", "rep", ")", ";", "update", "count", "(", "iip", ",", "iip", "length", "(", ")", "-", "1", ",", "new", "quota", "counts", "builder", "(", ")", "name", "space", "(", "ns", "delta", ")", "storage", "space", "(", "ss", "delta", "*", "(", "new", "rep", "-", "old", "rep", ")", ")", "type", "spaces", "(", "type", "space", "deltas", ")", "build", "(", ")", ",", "check", "quota", ")", ";" ]
[ "return", "the", "name", "of", "the", "path", "represented", "by", "inodes", "at", "[", "0", "pos", "]" ]
[ "string", "builder", "full", "path", "name", "=", "new", "string", "builder", "(", ")", ";", "if", "(", "inodes", "[", "0", "]", "is", "root", "(", ")", ")", "{", "if", "(", "pos", "=", "=", "0", ")", "return", "path", "separator", ";", "}", "else", "{", "full", "path", "name", "append", "(", "inodes", "[", "0", "]", "get", "local", "name", "(", ")", ")", ";", "}", "for", "(", "int", "i", "=", "1", ";", "i", "<", "=", "pos", ";", "i", "+", "+", ")", "{", "full", "path", "name", "append", "(", "path", "separator", "char", ")", "append", "(", "inodes", "[", "i", "]", "get", "local", "name", "(", ")", ")", ";", "}", "return", "full", "path", "name", "to", "string", "(", ")", ";" ]
[ "add", "the", "given", "child", "to", "the", "namespace" ]
[ "cache", "name", "(", "child", ")", ";", "write", "lock", "(", ")", ";", "try", "{", "return", "add", "last", "i", "node", "(", "existing", ",", "child", ",", "true", ")", ";", "}", "finally", "{", "write", "unlock", "(", ")", ";", "}" ]
[ "remove", "the", "last", "inode", "in", "the", "path", "from", "the", "namespace", "note", ":", "the", "caller", "needs", "to", "update", "the", "ancestors", "quota", "count" ]
[ "final", "int", "latest", "snapshot", "=", "iip", "get", "latest", "snapshot", "id", "(", ")", ";", "final", "i", "node", "last", "=", "iip", "get", "last", "i", "node", "(", ")", ";", "final", "i", "node", "directory", "parent", "=", "iip", "get", "i", "node", "(", "-", "2", ")", "as", "directory", "(", ")", ";", "if", "(", "!", "parent", "remove", "child", "(", "last", ",", "latest", "snapshot", ")", ")", "{", "return", "-", "1", ";", "}", "return", "(", "!", "last", "is", "in", "latest", "snapshot", "(", "latest", "snapshot", ")", "&", "&", "i", "node", "reference", "try", "remove", "reference", "(", "last", ")", ">", "0", ")", "?", "0", ":", "1", ";" ]
[ "this", "method", "is", "always", "called", "with", "write", "lock", "of", "f", "s", "directory", "held" ]
[ "if", "(", "inodes", "!", "=", "null", ")", "{", "for", "(", "i", "node", "inode", ":", "inodes", ")", "{", "if", "(", "inode", "!", "=", "null", "&", "&", "inode", "instanceof", "i", "node", "with", "additional", "fields", ")", "{", "inode", "map", "remove", "(", "inode", ")", ";", "ez", "manager", "remove", "encryption", "zone", "(", "inode", "get", "id", "(", ")", ")", ";", "}", "}", "}" ]
[ "get", "the", "inode", "from", "inode", "map", "based", "on", "its", "inode", "id" ]
[ "read", "lock", "(", ")", ";", "try", "{", "return", "inode", "map", "get", "(", "id", ")", ";", "}", "finally", "{", "read", "unlock", "(", ")", ";", "}" ]
[ "reset", "the", "entire", "namespace", "tree" ]
[ "write", "lock", "(", ")", ";", "try", "{", "root", "dir", "=", "create", "root", "(", "get", "f", "s", "namesystem", "(", ")", ")", ";", "inode", "map", "clear", "(", ")", ";", "add", "to", "inode", "map", "(", "root", "dir", ")", ";", "name", "cache", "reset", "(", ")", ";", "inode", "id", "set", "current", "value", "(", "i", "node", "id", "last", "reserved", "id", ")", ";", "}", "finally", "{", "write", "unlock", "(", ")", ";", "}" ]
[ "given", "an", "i", "node", "get", "all", "the", "path", "complents", "leading", "to", "it", "from", "the", "root", "if", "an", "inode", "corresponding", "to", "c", "is", "given", "in", "/", "a", "/", "b", "/", "c", "the", "returned", "patch", "components", "will", "be", "{", "root", "a", "b", "c", "}", "note", "that", "this", "method", "cannot", "handle", "scenarios", "where", "the", "inode", "is", "in", "a", "snapshot" ]
[ "list", "<", "byte", "[", "]", ">", "components", "=", "new", "array", "list", "<", "byte", "[", "]", ">", "(", ")", ";", "components", "add", "(", "0", ",", "inode", "get", "local", "name", "bytes", "(", ")", ")", ";", "while", "(", "inode", "get", "parent", "(", ")", "!", "=", "null", ")", "{", "components", "add", "(", "0", ",", "inode", "get", "parent", "(", ")", "get", "local", "name", "bytes", "(", ")", ")", ";", "inode", "=", "inode", "get", "parent", "(", ")", ";", "}", "return", "components", "to", "array", "(", "new", "byte", "[", "components", "size", "(", ")", "]", "[", "]", ")", ";" ]
[ "check", "if", "a", "given", "inode", "name", "is", "reserved" ]
[ "return", "check", "reserved", "file", "names", "&", "&", "arrays", "equals", "(", "inode", "get", "local", "name", "bytes", "(", ")", ",", "dot", "reserved", ")", ";" ]
[ "check", "if", "a", "given", "path", "is", "reserved" ]
[ "return", "src", "starts", "with", "(", "dot", "reserved", "path", "prefix", "+", "path", "separator", ")", ";" ]
[ "get", "{" ]
[ "return", "get", "i", "nodes", "in", "path", "4", "write", "(", "src", ",", "true", ")", ";" ]
[ "get", "{" ]
[ "return", "get", "i", "nodes", "in", "path", "4", "write", "(", "src", ",", "true", ")", "get", "last", "i", "node", "(", ")", ";" ]
[ "get", "{" ]
[ "return", "get", "i", "node", "(", "src", ",", "true", ")", ";" ]
[ "check", "whether", "current", "user", "have", "permissions", "to", "access", "the", "path", "for", "more", "details", "of", "the", "parameters", "see", "{" ]
[ "check", "permission", "(", "pc", ",", "iip", ",", "do", "check", "owner", ",", "ancestor", "access", ",", "parent", "access", ",", "access", ",", "sub", "access", ",", "false", ")", ";" ]
[ "check", "whether", "current", "user", "have", "permissions", "to", "access", "the", "path", "for", "more", "details", "of", "the", "parameters", "see", "{" ]
[ "if", "(", "!", "pc", "is", "super", "user", "(", ")", ")", "{", "read", "lock", "(", ")", ";", "try", "{", "pc", "check", "permission", "(", "iip", ",", "do", "check", "owner", ",", "ancestor", "access", ",", "parent", "access", ",", "access", ",", "sub", "access", ",", "ignore", "empty", "dir", ")", ";", "}", "finally", "{", "read", "unlock", "(", ")", ";", "}", "}" ]
[ "allocate", "a", "new", "inode", "id" ]
[ "return", "inode", "id", "next", "value", "(", ")", ";" ]
[ "set", "the", "last", "allocated", "inode", "id", "when", "fsimage", "or", "editlog", "is", "loaded" ]
[ "try", "{", "inode", "id", "skip", "to", "(", "new", "value", ")", ";", "}", "catch", "(", "illegal", "state", "exception", "ise", ")", "{", "throw", "new", "i", "o", "exception", "(", "ise", ")", ";", "}" ]
[ "should", "only", "be", "used", "for", "tests", "to", "reset", "to", "any", "value" ]
[ "inode", "id", "set", "current", "value", "(", "new", "value", ")", ";" ]
[ "construct", "a", "synchronous", "implementation", "of", "amazon", "e", "k", "s", "using", "the", "current", "builder", "configuration" ]
[ "return", "new", "amazon", "e", "k", "s", "client", "(", "params", ")", ";" ]
[ "order", "the", "tests", "in", "<", "code", ">", "target", "<", "/", "code", ">" ]
[ "if", "(", "target", "instanceof", "orderable", ")", "{", "orderable", "orderable", "=", "(", "orderable", ")", "target", ";", "orderable", "order", "(", "this", ")", ";", "}" ]
[ "should", "be", "used", "to", "switch", "to", "another", "player", "activity", "if", "the", "mime", "type", "is", "not", "the", "correct", "one", "for", "the", "current", "activity" ]
[ "protected", "abstract", "void", "on", "reload", "notification", "(", "int", "notification", "code", ")", ";" ]
[ "should", "be", "used", "to", "inform", "the", "user", "that", "the", "playback", "service", "is", "currently", "buffering" ]
[ "protected", "abstract", "void", "on", "buffer", "start", "(", ")", ";" ]
[ "should", "be", "used", "to", "hide", "the", "view", "that", "was", "showing", "the", "buffering", "-", "message" ]
[ "protected", "abstract", "void", "on", "buffer", "end", "(", ")", ";" ]
[ "called", "by", "handle", "status", "(", ")", "when", "the", "playback", "service", "is", "waiting", "for", "a", "video", "surface" ]
[ "protected", "abstract", "void", "on", "awaiting", "video", "surface", "(", ")", ";" ]
[ "insert", "a", "whole", "batch", "of", "entries" ]
[ "list", "<", "w", "a", "l", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", "batch", "size", ")", ";", "list", "<", "cell", ">", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "batch", "size", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "i", ",", "key", "value", "type", "put", ",", "cells", ")", ")", ";", "}", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", "iterator", "(", ")", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "scan", "scan", "=", "new", "scan", "(", ")", ";", "result", "scanner", "scan", "res", "=", "table", "1", "get", "scanner", "(", "scan", ")", ";", "assert", "equals", "(", "batch", "size", ",", "scan", "res", "next", "(", "batch", "size", ")", "length", ")", ";" ]
[ "insert", "a", "mix", "of", "puts", "and", "deletes" ]
[ "list", "<", "w", "a", "l", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", "batch", "size", "/", "2", ")", ";", "list", "<", "cell", ">", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "batch", "size", "/", "2", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "i", ",", "key", "value", "type", "put", ",", "cells", ")", ")", ";", "}", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "entries", "=", "new", "array", "list", "<", ">", "(", "batch", "size", ")", ";", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "batch", "size", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "i", ",", "i", "%", "2", "!", "=", "0", "?", "key", "value", "type", "put", ":", "key", "value", "type", "delete", "column", ",", "cells", ")", ")", ";", "}", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", "iterator", "(", ")", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "scan", "scan", "=", "new", "scan", "(", ")", ";", "result", "scanner", "scan", "res", "=", "table", "1", "get", "scanner", "(", "scan", ")", ";", "assert", "equals", "(", "batch", "size", "/", "2", ",", "scan", "res", "next", "(", "batch", "size", ")", "length", ")", ";" ]
[ "insert", "to", "2", "different", "tables" ]
[ "list", "<", "w", "a", "l", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", "batch", "size", "/", "2", ")", ";", "list", "<", "cell", ">", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "batch", "size", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "i", "%", "2", "=", "=", "0", "?", "table", "name2", ":", "table", "name1", ",", "i", ",", "key", "value", "type", "put", ",", "cells", ")", ")", ";", "}", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", "iterator", "(", ")", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "scan", "scan", "=", "new", "scan", "(", ")", ";", "result", "scanner", "scan", "res", "=", "table", "2", "get", "scanner", "(", "scan", ")", ";", "for", "(", "result", "res", ":", "scan", "res", ")", "{", "assert", "true", "(", "bytes", "to", "int", "(", "res", "get", "row", "(", ")", ")", "%", "2", "=", "=", "0", ")", ";", "}" ]
[ "insert", "then", "do", "different", "types", "of", "deletes" ]
[ "list", "<", "w", "a", "l", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", "3", ")", ";", "list", "<", "cell", ">", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "3", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "i", ",", "key", "value", "type", "put", ",", "cells", ")", ")", ";", "}", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", "iterator", "(", ")", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "entries", "=", "new", "array", "list", "<", ">", "(", "3", ")", ";", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "0", ",", "key", "value", "type", "delete", "column", ",", "cells", ")", ")", ";", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "1", ",", "key", "value", "type", "delete", "family", ",", "cells", ")", ")", ";", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "2", ",", "key", "value", "type", "delete", "column", ",", "cells", ")", ")", ";", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", "iterator", "(", ")", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "scan", "scan", "=", "new", "scan", "(", ")", ";", "result", "scanner", "scan", "res", "=", "table", "1", "get", "scanner", "(", "scan", ")", ";", "assert", "equals", "(", "0", ",", "scan", "res", "next", "(", "3", ")", "length", ")", ";" ]
[ "puts", "are", "buffered", "but", "this", "tests", "when", "a", "delete", "(", "not", "-", "buffered", ")", "is", "applied", "before", "the", "actual", "put", "that", "creates", "it" ]
[ "list", "<", "w", "a", "l", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", "5", ")", ";", "list", "<", "cell", ">", "cells", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "2", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "i", ",", "key", "value", "type", "put", ",", "cells", ")", ")", ";", "}", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "1", ",", "key", "value", "type", "delete", "family", ",", "cells", ")", ")", ";", "for", "(", "int", "i", "=", "3", ";", "i", "<", "5", ";", "i", "+", "+", ")", "{", "entries", "add", "(", "create", "entry", "(", "table", "name1", ",", "i", ",", "key", "value", "type", "put", ",", "cells", ")", ")", ";", "}", "sink", "replicate", "entries", "(", "entries", ",", "cell", "util", "create", "cell", "scanner", "(", "cells", "iterator", "(", ")", ")", ",", "replication", "cluster", "id", ",", "base", "namespace", "dir", ",", "hfile", "archive", "dir", ")", ";", "get", "get", "=", "new", "get", "(", "bytes", "to", "bytes", "(", "1", ")", ")", ";", "result", "res", "=", "table", "1", "get", "(", "get", ")", ";", "assert", "equals", "(", "0", ",", "res", "size", "(", ")", ")", ";" ]
[ "call", "back", "when", "start", "loading" ]
[]
[ "call", "back", "when", "start", "loading" ]
[]
[ "call", "back", "when", "loading" ]
[]
[ "call", "back", "when", "bitmap", "has", "loaded" ]
[ "public", "abstract", "void", "on", "load", "completed", "(", "t", "container", ",", "string", "uri", ",", "bitmap", "bitmap", ",", "bitmap", "display", "config", "config", ",", "bitmap", "load", "from", "from", ")", ";" ]
[ "call", "back", "when", "bitmap", "failed", "to", "load" ]
[ "public", "abstract", "void", "on", "load", "failed", "(", "t", "container", ",", "string", "uri", ",", "drawable", "drawable", ")", ";" ]
[ "sets", "the", "size", "of", "the", "image", "and", "texture", "to", "width", "x", "height", "and", "the", "parameters", "of", "the", "texture", "to", "params", "if", "the", "texture", "is", "already", "initialized", "it", "first", "destroys", "the", "current", "open", "g", "l", "texture", "object", "and", "then", "creates", "a", "new", "one", "with", "the", "specified", "size" ]
[ "set", "parameters", "(", "params", ")", ";", "set", "size", "(", "width", ",", "height", ")", ";", "allocate", "(", ")", ";" ]
[ "initializes", "the", "texture", "using", "gl", "parameters" ]
[ "this", "width", "=", "width", ";", "this", "height", "=", "height", ";", "this", "gl", "name", "=", "gl", "name", ";", "this", "gl", "target", "=", "gl", "target", ";", "this", "gl", "format", "=", "gl", "format", ";", "this", "gl", "width", "=", "gl", "width", ";", "this", "gl", "height", "=", "gl", "height", ";", "this", "gl", "min", "filter", "=", "gl", "min", "filter", ";", "this", "gl", "mag", "filter", "=", "gl", "mag", "filter", ";", "this", "gl", "wrap", "s", "=", "gl", "wrap", "s", ";", "this", "gl", "wrap", "t", "=", "gl", "wrap", "t", ";", "max", "texcoord", "u", "=", "(", "float", ")", "width", "/", "gl", "width", ";", "max", "texcoord", "v", "=", "(", "float", ")", "height", "/", "gl", "height", ";", "using", "mipmaps", "=", "gl", "min", "filter", "=", "=", "pgl", "linear", "mipmap", "nearest", "|", "|", "gl", "min", "filter", "=", "=", "pgl", "linear", "mipmap", "linear", ";", "using", "repeat", "=", "gl", "wrap", "s", "=", "=", "pgl", "repeat", "|", "|", "gl", "wrap", "t", "=", "=", "pgl", "repeat", ";" ]
[ "returns", "true", "if", "the", "texture", "has", "been", "initialized" ]
[ "return", "0", "<", "gl", "name", ";" ]
[ "set", "methods" ]
[ "copy", "texture", "(", "tex", ",", "0", ",", "0", ",", "tex", "width", ",", "tex", "height", ",", "true", ")", ";" ]
[ "native", "set", "methods" ]
[ "set", "native", "(", "pixels", ",", "0", ",", "0", ",", "width", ",", "height", ")", ";" ]
[ "destination", ")" ]
[ "copy", "texture", "(", "tex", ",", "0", ",", "0", ",", "tex", "width", ",", "tex", "height", ",", "false", ")", ";" ]
[ "returns", "true", "or", "false", "whether", "or", "not", "the", "texture", "is", "using", "mipmaps" ]
[ "return", "using", "mipmaps", ";" ]
[ "returns", "true", "or", "false", "whether", "or", "not", "the", "texture", "is", "using", "repeat", "wrap", "mode", "along", "either", "u", "or", "v", "directions" ]
[ "return", "using", "repeat", ";" ]
[ "returns", "the", "maximum", "possible", "value", "for", "the", "texture", "coordinate", "u", "(", "horizontal", ")" ]
[ "return", "max", "texcoord", "u", ";" ]
[ "returns", "the", "maximum", "possible", "value", "for", "the", "texture", "coordinate", "v", "(", "vertical", ")" ]
[ "return", "max", "texcoord", "v", ";" ]
[ "returns", "true", "if", "the", "texture", "is", "inverted", "along", "the", "horizontal", "direction" ]
[ "return", "inverted", "x", ";" ]
[ "sets", "the", "texture", "as", "inverted", "or", "not", "along", "the", "horizontal", "direction" ]
[ "inverted", "x", "=", "v", ";" ]
[ "returns", "true", "if", "the", "texture", "is", "inverted", "along", "the", "vertical", "direction" ]
[ "return", "inverted", "y", ";" ]
[ "sets", "the", "texture", "as", "inverted", "or", "not", "along", "the", "vertical", "direction" ]
[ "inverted", "y", "=", "v", ";" ]
[ "buffer", "sink", "interface" ]
[ "buffer", "source", "=", "source", ";", "get", "source", "methods", "(", ")", ";" ]
[ "flips", "int", "array", "along", "the", "x", "axis" ]
[ "int", "index", "=", "0", ";", "int", "xindex", "=", "mult", "*", "(", "width", "-", "1", ")", ";", "for", "(", "int", "x", "=", "0", ";", "x", "<", "width", "/", "2", ";", "x", "+", "+", ")", "{", "for", "(", "int", "y", "=", "0", ";", "y", "<", "height", ";", "y", "+", "+", ")", "{", "int", "i", "=", "index", "+", "mult", "*", "y", "*", "width", ";", "int", "j", "=", "xindex", "+", "mult", "*", "y", "*", "width", ";", "for", "(", "int", "c", "=", "0", ";", "c", "<", "mult", ";", "c", "+", "+", ")", "{", "int", "temp", "=", "int", "array", "[", "i", "]", ";", "int", "array", "[", "i", "]", "=", "int", "array", "[", "j", "]", ";", "int", "array", "[", "j", "]", "=", "temp", ";", "i", "+", "+", ";", "j", "+", "+", ";", "}", "}", "index", "+", "=", "mult", ";", "xindex", "-", "=", "mult", ";", "}" ]
[ "flips", "int", "array", "along", "the", "y", "axis" ]
[ "int", "index", "=", "0", ";", "int", "yindex", "=", "mult", "*", "(", "height", "-", "1", ")", "*", "width", ";", "for", "(", "int", "y", "=", "0", ";", "y", "<", "height", "/", "2", ";", "y", "+", "+", ")", "{", "for", "(", "int", "x", "=", "0", ";", "x", "<", "mult", "*", "width", ";", "x", "+", "+", ")", "{", "int", "temp", "=", "int", "array", "[", "index", "]", ";", "int", "array", "[", "index", "]", "=", "int", "array", "[", "yindex", "]", ";", "int", "array", "[", "yindex", "]", "=", "temp", ";", "index", "+", "+", ";", "yindex", "+", "+", ";", "}", "yindex", "-", "=", "mult", "*", "width", "*", "2", ";", "}" ]
[ "marks", "the", "texture", "object", "for", "deletion" ]
[ "if", "(", "glres", "!", "=", "null", ")", "{", "glres", "dispose", "(", ")", ";", "glres", "=", "null", ";", "gl", "name", "=", "0", ";", "}" ]
[ "used", "many", "times", "yet", "or", "if", "the", "jvm", "is", "running", "low", "in", "free", "memory" ]
[ "double", "free", "m", "b", "=", "runtime", "get", "runtime", "(", ")", "free", "memory", "(", ")", "/", "1e6", ";", "if", "(", "pix", "buf", "update", "count", "<", "max", "updates", "|", "|", "free", "m", "b", "<", "min", "memory", ")", "{", "pixel", "buffer", "=", "null", ";", "}" ]
[ "used", "many", "times", "yet", "or", "if", "the", "jvm", "is", "running", "low", "in", "free", "memory" ]
[ "double", "free", "m", "b", "=", "runtime", "get", "runtime", "(", ")", "free", "memory", "(", ")", "/", "1e6", ";", "if", "(", "rgba", "pix", "update", "count", "<", "max", "updates", "|", "|", "free", "m", "b", "<", "min", "memory", ")", "{", "rgba", "pixels", "=", "null", ";", "}" ]
[ "parameter", "handling" ]
[ "parameters", "res", "=", "new", "parameters", "(", ")", ";", "if", "(", "gl", "target", "=", "=", "pgl", "texture", "2d", ")", "{", "res", "target", "=", "tex2d", ";", "}", "if", "(", "gl", "format", "=", "=", "pgl", "rgb", ")", "{", "res", "format", "=", "rgb", ";", "}", "else", "if", "(", "gl", "format", "=", "=", "pgl", "rgba", ")", "{", "res", "format", "=", "argb", ";", "}", "else", "if", "(", "gl", "format", "=", "=", "pgl", "alpha", ")", "{", "res", "format", "=", "alpha", ";", "}", "if", "(", "gl", "mag", "filter", "=", "=", "pgl", "nearest", "&", "&", "gl", "min", "filter", "=", "=", "pgl", "nearest", ")", "{", "res", "sampling", "=", "point", ";", "res", "mipmaps", "=", "false", ";", "}", "else", "if", "(", "gl", "mag", "filter", "=", "=", "pgl", "nearest", "&", "&", "gl", "min", "filter", "=", "=", "pgl", "linear", ")", "{", "res", "sampling", "=", "linear", ";", "res", "mipmaps", "=", "false", ";", "}", "else", "if", "(", "gl", "mag", "filter", "=", "=", "pgl", "nearest", "&", "&", "gl", "min", "filter", "=", "=", "pgl", "linear", "mipmap", "nearest", ")", "{", "res", "sampling", "=", "linear", ";", "res", "mipmaps", "=", "true", ";", "}", "else", "if", "(", "gl", "mag", "filter", "=", "=", "pgl", "linear", "&", "&", "gl", "min", "filter", "=", "=", "pgl", "linear", ")", "{", "res", "sampling", "=", "bilinear", ";", "res", "mipmaps", "=", "false", ";", "}", "else", "if", "(", "gl", "mag", "filter", "=", "=", "pgl", "linear", "&", "&", "gl", "min", "filter", "=", "=", "pgl", "linear", "mipmap", "nearest", ")", "{", "res", "sampling", "=", "bilinear", ";", "res", "mipmaps", "=", "true", ";", "}", "else", "if", "(", "gl", "mag", "filter", "=", "=", "pgl", "linear", "&", "&", "gl", "min", "filter", "=", "=", "pgl", "linear", "mipmap", "linear", ")", "{", "res", "sampling", "=", "trilinear", ";", "res", "mipmaps", "=", "true", ";", "}", "if", "(", "gl", "wrap", "s", "=", "=", "pgl", "clamp", "to", "edge", ")", "{", "res", "wrap", "u", "=", "clamp", ";", "}", "else", "if", "(", "gl", "wrap", "s", "=", "=", "pgl", "repeat", ")", "{", "res", "wrap", "u", "=", "repeat", ";", "}", "if", "(", "gl", "wrap", "t", "=", "=", "pgl", "clamp", "to", "edge", ")", "{", "res", "wrap", "v", "=", "clamp", ";", "}", "else", "if", "(", "gl", "wrap", "t", "=", "=", "pgl", "repeat", ")", "{", "res", "wrap", "v", "=", "repeat", ";", "}", "return", "res", ";" ]
[ "get", "the", "root", "node", "of", "the", "dom", "being", "created", "this", "is", "either", "a", "document", "or", "a", "document", "fragment" ]
[ "return", "(", "null", "!", "=", "m", "doc", "frag", ")", "?", "(", "node", ")", "m", "doc", "frag", ":", "(", "node", ")", "m", "doc", ";" ]
[ "get", "the", "node", "currently", "being", "processed" ]
[ "return", "m", "current", "node", ";" ]
[ "return", "null", "since", "there", "is", "no", "writer", "for", "this", "class" ]
[ "return", "null", ";" ]
[ "for", "testing", "purposes", "only" ]
[ "return", "this", "store", ";" ]
[ "<", "p", ">", "a", "complex", "type", "that", "contains", "information", "about", "the", "specified", "change", "batch", "<", "/", "p", ">" ]
[ "set", "change", "info", "(", "change", "info", ")", ";", "return", "this", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "nid", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "initializes", "this", "struct", "with", "the", "specified", "values" ]
[ "id", "(", "id", ")", ";", "w", "(", "w", ")", ";", "h", "(", "h", ")", ";", "x", "(", "x", ")", ";", "y", "(", "y", ")", ";", "was", "packed", "(", "was", "packed", ")", ";", "return", "this", ";" ]
[ "copies", "the", "specified", "struct", "data", "to", "this", "struct" ]
[ "mem", "copy", "(", "src", "address", "(", ")", ",", "address", "(", ")", ",", "sizeof", ")", ";", "return", "this", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "s", "t", "b", "r", "p", "rect", "class", ",", "nmem", "alloc", "checked", "(", "sizeof", ")", ")", ";" ]