docstring_tokens
list
code_tokens
list
[ "return", "the", "fields", "that", "should", "be", "allowed", "for", "binding" ]
[ "public", "string", "[", "]", "get", "allowed", "fields", "(", ")", "{", "return", "this", "allowed", "fields", ";", "}" ]
[ "retrieve", "a", "high", "symbol", "based", "on", "an", "id" ]
[ "public", "high", "symbol", "get", "symbol", "(", "long", "id", ")", "{", "return", "symbol", "map", "get", "(", "id", ")", ";", "}" ]
[ "set", "local", "properties", ",", "containing", "object", "name", "mappings", ",", "e", "g", "via", "the", "\"", "props", "\"", "tag", "in", "xml", "bean", "definitions", "these", "can", "be", "considered", "defaults", ",", "to", "be", "overridden", "by", "properties", "loaded", "from", "files" ]
[ "public", "void", "set", "mappings", "(", "properties", "mappings", ")", "{", "this", "mappings", "=", "mappings", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "iff", "the", "resource", "package", "name", "is", "exactly", "the", "same", "as", "the", "containing", "application", "package", "name", "for", "a", "given", "resource", "id", "the", "resource", "package", "name", "is", "the", "value", "returned", "by", "{", "@", "link", "resources", "#", "get", "resource", "package", "name", "(", "int", ")", "}", "the", "application", "package", "name", "is", "package", "name", "of", "the", "enclosing", "application", "if", "these", "two", "things", "are", "equal", ",", "then", "we", "can", "both", "construct", "a", "context", "for", "that", "package", "and", "retrieve", "a", "resource", "id", "for", "that", "package", "from", "a", "\"", "standard", "\"", "resource", "uri", "containing", "a", "name", "instead", "of", "an", "id", "if", "they", "aren", "'", "t", "equal", ",", "then", "we", "can", "do", "only", "one", "of", "the", "two", "required", "tasks", ",", "so", "our", "uri", "load", "will", "always", "fail", "to", "handle", "this", "properly", ",", "we", "'", "d", "need", "callers", "to", "include", "both", "package", "names", "in", "the", "uri", "i", "'", "m", "not", "aware", "of", "any", "standardized", "uri", "format", "for", "doing", "so", ",", "so", "these", "requests", "will", "just", "be", "treated", "as", "unsupported", "for", "the", "time", "being", "take", "calendar", "(", "emulators", "api", "24", "and", "below", ")", "as", "an", "example", ":", "package", "name", ":", "com", "google", "android", "calendar", "resource", "package", "name", ":", "com", "android", "calendar", "we", "can", "construct", "one", "of", "two", "possible", "uris", ":", "android", "resource", ":", "com", "google", "android", "calendarmipmapic", "icon", "calendar", "android", "resource", ":", "com", "android", "calendarmipmapic", "icon", "calendar", "<", "from", "the", "first", "uri", ",", "we", "can", "obtain", "the", "correct", "context", "resources", "for", "the", "calendar", "package", ",", "but", "our", "attempts", "to", "resolve", "the", "correct", "resource", "id", "will", "fail", "because", "we", "do", "not", "have", "the", "resource", "package", "name", "from", "the", "second", "uri", "we", "cannot", "obtain", "the", "context", "resources", "for", "the", "calendar", "package", "because", "the", "resource", "package", "name", "doesn", "'", "t", "match", "the", "application", "package", "name" ]
[ "private", "boolean", "does", "application", "package", "name", "match", "resource", "package", "name", "(", "string", "application", "package", "name", ",", "int", "icon", "resource", "id", ")", "{", "try", "{", "context", "current", "=", "context", "create", "package", "context", "(", "application", "package", "name", ",", "/", "*", "flags", "=", "*", "/", "0", ")", ";", "string", "resource", "package", "name", "=", "current", "get", "resources", "(", ")", "get", "resource", "package", "name", "(", "icon", "resource", "id", ")", ";", "return", "application", "package", "name", "equals", "(", "resource", "package", "name", ")", ";", "}", "catch", "(", "name", "not", "found", "exception", "e", ")", "{", "/", "/", "this", "should", "never", "happen", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}", "}" ]
[ "if", "<", "code", ">", "is", "success", "(", ")", "=", "=", "true", "<", "code", ">", "this", "will", "return", "the", "transaction", "id", "if", "<", "code", ">", "is", "success", "(", ")", "=", "=", "false", "<", "code", ">", "this", "will", "return", "null" ]
[ "public", "string", "get", "transaction", "i", "d", "(", ")", "{", "return", "transaction", "i", "d", ";", "}" ]
[ "sets", "the", "x", "and", "y", "-", "coordinates", "of", "circle", "center", "from", "vector" ]
[ "public", "void", "set", "position", "(", "vector", "2", "position", ")", "{", "this", "x", "=", "position", "x", ";", "this", "y", "=", "position", "y", ";", "}" ]
[ "sets", "the", "listener", "to", "be", "notified", "when", "the", "selection", "changes" ]
[ "public", "void", "set", "list", "selection", "listener", "(", "list", "selection", "listener", "listener", ")", "{", "if", "(", "list", "selection", "listener", "!", "=", "null", ")", "list", "remove", "list", "selection", "listener", "(", "list", "selection", "listener", ")", ";", "if", "(", "listener", "!", "=", "null", ")", "list", "add", "list", "selection", "listener", "(", "listener", ")", ";", "list", "selection", "listener", "=", "listener", ";", "}" ]
[ "dubbo", "2", "x", "protocol", "version", "numbers", "are", "limited", "to", "2", "0", "22000200", "~", "2", "0", "992009900", ",", "other", "versions", "are", "consider", "as", "invalid", "or", "not", "from", "official", "release" ]
[ "public", "static", "boolean", "is", "support", "response", "attachment", "(", "string", "version", ")", "{", "if", "(", "string", "utils", "is", "empty", "(", "version", ")", ")", "{", "return", "false", ";", "}", "int", "i", "version", "=", "get", "int", "version", "(", "version", ")", ";", "if", "(", "i", "version", ">", "=", "lowest", "version", "for", "response", "attachment", "&", "&", "i", "version", "<", "=", "highest", "protocol", "version", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "appends", "the", "class", "name", "to", "a", "non", "-", "{", "@", "code", "null", "}", "value", "or", "returns", "{", "@", "code", "\"", "null", "\"", "}" ]
[ "public", "static", "string", "value", "and", "class", "(", "@", "nullable", "object", "o", ")", "{", "if", "(", "o", "!", "=", "null", ")", "{", "return", "o", "+", "\"", "(", "class", ":", "\"", "+", "o", "get", "class", "(", ")", "get", "simple", "name", "(", ")", "+", "\"", ")", "\"", ";", "}", "return", "\"", "null", "\"", ";", "}" ]
[ "model", "tests", "for", "array", "test" ]
[ "public", "void", "test", "array", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "array", "test", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "write", "to", "(", "annotated", "output", "out", ",", "dalv", "insn", "insn", ")", "{", "register", "spec", "list", "regs", "=", "insn", "get", "registers", "(", ")", ";", "int", "cpi", "=", "(", "(", "cst", "insn", ")", "insn", ")", "get", "index", "(", ")", ";", "write", "(", "out", ",", "opcode", "unit", "(", "insn", ",", "regs", "get", "(", "0", ")", "get", "reg", "(", ")", ")", ",", "(", "short", ")", "cpi", ")", ";", "}" ]
[ "checks", "if", "this", "component", "is", "a", "{", "@", "link", "descriptor", "}", "describing", "the", "given", "type", "for", "example", ",", "{", "@", "code", "component", "is", "descriptor", "of", "(", "builder", "class", ")", "}" ]
[ "public", "boolean", "is", "descriptor", "of", "(", "class", "<", "?", "extends", "describable", ">", "c", ")", "{", "return", "instance", "instanceof", "descriptor", "&", "&", "(", "(", "descriptor", ")", "instance", ")", "is", "sub", "type", "of", "(", "c", ")", ";", "}" ]
[ "put", "j", "s", "o", "n", "object", "in", "cache" ]
[ "public", "void", "put", "(", "@", "non", "null", "final", "string", "key", ",", "final", "j", "s", "o", "n", "object", "value", ",", "final", "int", "save", "time", ")", "{", "m", "cache", "memory", "utils", "put", "(", "key", ",", "value", ",", "save", "time", ")", ";", "m", "cache", "disk", "utils", "put", "(", "key", ",", "value", ",", "save", "time", ")", ";", "}" ]
[ "returns", "an", "instance", "of", "get", "that", "retrieves", "the", "matches", "records", "from", "the", "h", "base", "table" ]
[ "public", "get", "create", "get", "(", "object", "row", "key", ")", "{", "byte", "[", "]", "rowkey", "=", "h", "base", "type", "utils", "serialize", "from", "object", "(", "row", "key", ",", "row", "key", "type", ",", "charset", ")", ";", "get", "get", "=", "new", "get", "(", "rowkey", ")", ";", "for", "(", "int", "f", "=", "0", ";", "f", "<", "families", "length", ";", "f", "+", "+", ")", "{", "byte", "[", "]", "family", "=", "families", "[", "f", "]", ";", "for", "(", "byte", "[", "]", "qualifier", ":", "qualifiers", "[", "f", "]", ")", "{", "get", "add", "column", "(", "family", ",", "qualifier", ")", ";", "}", "}", "return", "get", ";", "}" ]
[ "override", "the", "default", "jackson", "json", "{", "@", "code", "encoder", "}" ]
[ "void", "jackson", "2", "json", "encoder", "(", "encoder", "<", "?", ">", "encoder", ")", ";" ]
[ "returns", "a", "clone", "of", "the", "array", "of", "all", "method", "parameters", "annotated", "with", "{", "@", "link", "com", "netflix", "hystrix", "contrib", "javanica", "cache", "annotation", "cache", "key", "}", "annotation", "to", "be", "used", "by", "the", "{", "@", "link", "hystrix", "cache", "key", "generator", "}", "in", "creating", "a", "{", "@", "link", "hystrix", "generated", "cache", "key", "}", "the", "returned", "array", "may", "be", "the", "same", "as", "or", "a", "subset", "of", "the", "array", "returned", "by", "{", "@", "link", "#", "get", "all", "parameters", "(", ")", "}", "<", "p", ">", "parameters", "in", "this", "array", "are", "selected", "by", "the", "following", "rules", ":", "if", "no", "parameters", "are", "annotated", "with", "{", "@", "link", "com", "netflix", "hystrix", "contrib", "javanica", "cache", "annotation", "cache", "key", "}", "then", "all", "parameters", "are", "included", "if", "one", "or", "more", "{", "@", "link", "com", "netflix", "hystrix", "contrib", "javanica", "cache", "annotation", "cache", "key", "}", "annotations", "exist", "only", "those", "parameters", "with", "the", "{", "@", "link", "com", "netflix", "hystrix", "contrib", "javanica", "cache", "annotation", "cache", "key", "}", "annotation", "are", "included" ]
[ "public", "list", "<", "cache", "invocation", "parameter", ">", "get", "key", "parameters", "(", ")", "{", "return", "key", "parameters", ";", "}" ]
[ "set", "whether", "to", "cache", "the", "rmi", "stub", "once", "it", "has", "been", "located", "default", "is", "\"", "true", "\"", "can", "be", "turned", "off", "to", "allow", "for", "hot", "restart", "of", "the", "rmi", "server", "in", "this", "case", ",", "the", "rmi", "stub", "will", "be", "fetched", "for", "each", "invocation" ]
[ "public", "void", "set", "cache", "stub", "(", "boolean", "cache", "stub", ")", "{", "this", "cache", "stub", "=", "cache", "stub", ";", "}" ]
[ "construct", "the", "preferred", "type", "of", "sequence", "file", "writer" ]
[ "public", "static", "writer", "create", "writer", "(", "file", "system", "fs", ",", "configuration", "conf", ",", "path", "name", ",", "class", "key", "class", ",", "class", "val", "class", ")", "throws", "i", "o", "exception", "{", "return", "create", "writer", "(", "conf", ",", "writer", "filesystem", "(", "fs", ")", ",", "writer", "file", "(", "name", ")", ",", "writer", "key", "class", "(", "key", "class", ")", ",", "writer", "value", "class", "(", "val", "class", ")", ")", ";", "}" ]
[ "object", "to", "json", "string" ]
[ "public", "static", "string", "to", "json", "(", "object", "obj", ")", "{", "try", "{", "return", "mapper", "write", "value", "as", "string", "(", "obj", ")", ";", "}", "catch", "(", "json", "processing", "exception", "e", ")", "{", "throw", "new", "nacos", "serialization", "exception", "(", "obj", "get", "class", "(", ")", ",", "e", ")", ";", "}", "}" ]
[ "returns", "the", "count", "of", "the", "associated", "element", "in", "the", "underlying", "multiset", "this", "count", "may", "either", "be", "an", "unchanging", "snapshot", "of", "the", "count", "at", "the", "time", "the", "entry", "was", "retrieved", ",", "or", "a", "live", "view", "of", "the", "current", "count", "of", "the", "element", "in", "the", "multiset", ",", "depending", "on", "the", "implementation", "note", "that", "in", "the", "former", "case", ",", "this", "method", "can", "never", "return", "zero", ",", "while", "in", "the", "latter", ",", "it", "will", "return", "zero", "if", "all", "occurrences", "of", "the", "element", "were", "since", "removed", "from", "the", "multiset" ]
[ "int", "get", "count", "(", ")", ";" ]
[ "returns", "the", "text", "to", "insert", "to", "complete", "the", "code" ]
[ "public", "string", "get", "insertion", "(", ")", "{", "return", "insertion", ";", "}" ]
[ "returns", "the", "body", "size", "(", "difference", "between", "open", "and", "close", ")" ]
[ "public", "float", "get", "body", "range", "(", ")", "{", "return", "math", "abs", "(", "m", "open", "-", "m", "close", ")", ";", "}" ]
[ "the", "bit", "is", "1", "when", "the", "field", "is", "null", "default", "is", "0" ]
[ "public", "boolean", "any", "null", "(", ")", "{", "/", "/", "skip", "the", "header", "if", "(", "(", "segments", "[", "0", "]", "get", "long", "(", "0", ")", "&", "first", "byte", "zero", ")", "!", "=", "0", ")", "{", "return", "true", ";", "}", "for", "(", "int", "i", "=", "8", ";", "i", "<", "null", "bits", "size", "in", "bytes", ";", "i", "+", "=", "8", ")", "{", "if", "(", "segments", "[", "0", "]", "get", "long", "(", "i", ")", "!", "=", "0", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "tests", "whether", "retry", "policy", "fails", "immediately", "on", "non", "-", "idempotent", "operations", ",", "after", "trying", "each", "provider", "once", ",", "on", "encountering", "socket", "timeout", "exception" ]
[ "public", "void", "test", "client", "retries", "non", "idempotent", "op", "with", "socket", "timeout", "exception", "fails", "(", ")", "throws", "exception", "{", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "final", "string", "key", "name", "=", "\"", "test", "\"", ";", "/", "/", "setting", "total", "failover", "attempts", "to", "conf", "set", "int", "(", "common", "configuration", "keys", "public", "kms", "client", "failover", "max", "retries", "key", ",", "10", ")", ";", "k", "m", "s", "client", "provider", "p", "1", "=", "mock", "(", "k", "m", "s", "client", "provider", "class", ")", ";", "when", "(", "p", "1", "create", "key", "(", "mockito", "any", "string", "(", ")", ",", "mockito", "any", "(", "options", "class", ")", ")", ")", "then", "throw", "(", "new", "socket", "timeout", "exception", "(", "\"", "p", "1", "\"", ")", ")", ";", "k", "m", "s", "client", "provider", "p", "2", "=", "mock", "(", "k", "m", "s", "client", "provider", "class", ")", ";", "when", "(", "p", "2", "create", "key", "(", "mockito", "any", "string", "(", ")", ",", "mockito", "any", "(", "options", "class", ")", ")", ")", "then", "throw", "(", "new", "socket", "timeout", "exception", "(", "\"", "p", "2", "\"", ")", ")", ";", "k", "m", "s", "client", "provider", "p", "3", "=", "mock", "(", "k", "m", "s", "client", "provider", "class", ")", ";", "when", "(", "p", "3", "create", "key", "(", "mockito", "any", "string", "(", ")", ",", "mockito", "any", "(", "options", "class", ")", ")", ")", "then", "throw", "(", "new", "socket", "timeout", "exception", "(", "\"", "p", "3", "\"", ")", ")", ";", "when", "(", "p", "1", "get", "k", "m", "s", "url", "(", ")", ")", "then", "return", "(", "\"", "p", "1", "\"", ")", ";", "when", "(", "p", "2", "get", "k", "m", "s", "url", "(", ")", ")", "then", "return", "(", "\"", "p", "2", "\"", ")", ";", "when", "(", "p", "3", "get", "k", "m", "s", "url", "(", ")", ")", "then", "return", "(", "\"", "p", "3", "\"", ")", ";", "load", "balancing", "k", "m", "s", "client", "provider", "kp", "=", "new", "load", "balancing", "k", "m", "s", "client", "provider", "(", "new", "k", "m", "s", "client", "provider", "[", "]", "{", "p", "1", ",", "p", "2", ",", "p", "3", "}", ",", "0", ",", "conf", ")", ";", "try", "{", "kp", "create", "key", "(", "key", "name", ",", "new", "options", "(", "conf", ")", ")", ";", "fail", "(", "\"", "should", "fail", "since", "all", "providers", "threw", "a", "socket", "timeout", "exception", "\"", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "assert", "true", "(", "e", "instanceof", "socket", "timeout", "exception", ")", ";", "}", "verify", "(", "kp", "get", "providers", "(", ")", "[", "0", "]", ",", "mockito", "times", "(", "1", ")", ")", "create", "key", "(", "mockito", "eq", "(", "key", "name", ")", ",", "mockito", "any", "(", "options", "class", ")", ")", ";", "verify", "(", "kp", "get", "providers", "(", ")", "[", "1", "]", ",", "mockito", "times", "(", "1", ")", ")", "create", "key", "(", "mockito", "eq", "(", "key", "name", ")", ",", "mockito", "any", "(", "options", "class", ")", ")", ";", "verify", "(", "kp", "get", "providers", "(", ")", "[", "2", "]", ",", "mockito", "times", "(", "1", ")", ")", "create", "key", "(", "mockito", "eq", "(", "key", "name", ")", ",", "mockito", "any", "(", "options", "class", ")", ")", ";", "}" ]
[ "create", "the", "panel", "for", "the", "buttons", ";", "the", "button", "are", "aligned", "as", "specified", ";", "the", "side", "margins", "on", "the", "panel", "has", "a", "default", "value", "of", "20" ]
[ "public", "static", "j", "panel", "create", "button", "panel", "(", "j", "button", "[", "]", "buttons", ",", "char", "alignment", ")", "{", "return", "create", "button", "panel", "(", "buttons", ",", "side", "margin", ",", "alignment", ")", ";", "}" ]
[ "get", "the", "skew", "vector", "such", "that", "dot", "(", "skew", "vec", ",", "other", ")", "=", "=", "cross", "(", "vec", ",", "other", ")" ]
[ "public", "final", "vec", "2", "skew", "(", ")", "{", "return", "new", "vec", "2", "(", "-", "y", ",", "x", ")", ";", "}" ]
[ "adds", "the", "entry", "to", "the", "exclusively", "owned", "queue", "if", "it", "is", "viable", "for", "eviction" ]
[ "private", "synchronized", "boolean", "maybe", "add", "to", "exclusives", "(", "entry", "<", "k", ",", "v", ">", "entry", ")", "{", "if", "(", "!", "entry", "is", "orphan", "&", "&", "entry", "client", "count", "=", "=", "0", ")", "{", "if", "(", "entry", "access", "count", ">", "m", "frequently", "used", "threshold", ")", "{", "m", "most", "frequently", "used", "exclusive", "entries", "put", "(", "entry", "key", ",", "entry", ")", ";", "}", "else", "{", "m", "least", "frequently", "used", "exclusive", "entries", "put", "(", "entry", "key", ",", "entry", ")", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "do", "parse", "preview" ]
[ "private", "void", "do", "parse", "preview", "(", "http", "servlet", "request", "request", ",", "http", "servlet", "response", "response", ",", "properties", "parameters", ")", "throws", "servlet", "exception", ",", "i", "o", "exception", ",", "database", "service", "exception", "{", "if", "(", "logger", "is", "debug", "enabled", "(", ")", ")", "{", "logger", "debug", "(", "\"", "job", "i", "d", ":", ":", "{", "}", "\"", ",", "parameters", "get", "property", "(", "\"", "job", "i", "d", "\"", ")", ")", ";", "}", "long", "job", "i", "d", "=", "long", "parse", "long", "(", "parameters", "get", "property", "(", "\"", "job", "i", "d", "\"", ")", ")", ";", "importing", "job", "job", "=", "importing", "manager", "get", "job", "(", "job", "i", "d", ")", ";", "if", "(", "job", "=", "=", "null", ")", "{", "http", "utilities", "respond", "(", "response", ",", "\"", "error", "\"", ",", "\"", "no", "such", "import", "job", "\"", ")", ";", "return", ";", "}", "database", "query", "info", "database", "query", "info", "=", "get", "query", "info", "(", "request", ")", ";", "if", "(", "database", "query", "info", "=", "=", "null", ")", "{", "http", "utilities", "respond", "(", "response", ",", "\"", "error", "\"", ",", "\"", "invalid", "or", "missing", "query", "info", "\"", ")", ";", "}", "job", "updating", "=", "true", ";", "try", "{", "object", "node", "option", "obj", "=", "parsing", "utilities", "evaluate", "json", "string", "to", "object", "node", "(", "request", "get", "parameter", "(", "\"", "options", "\"", ")", ")", ";", "list", "<", "exception", ">", "exceptions", "=", "new", "linked", "list", "<", "exception", ">", "(", ")", ";", "job", "prepare", "new", "project", "(", ")", ";", "parse", "preview", "(", "database", "query", "info", ",", "job", "project", ",", "job", "metadata", ",", "job", ",", "default", "preview", "limit", ",", "option", "obj", ",", "exceptions", ")", ";", "writer", "w", "=", "response", "get", "writer", "(", ")", ";", "json", "generator", "writer", "=", "parsing", "utilities", "mapper", "get", "factory", "(", ")", "create", "generator", "(", "w", ")", ";", "try", "{", "writer", "write", "start", "object", "(", ")", ";", "if", "(", "exceptions", "size", "(", ")", "=", "=", "0", ")", "{", "job", "project", "update", "(", ")", ";", "/", "/", "update", "all", "internal", "models", ",", "indexes", ",", "caches", ",", "etc", "writer", "write", "string", "field", "(", "\"", "status", "\"", ",", "\"", "ok", "\"", ")", ";", "}", "else", "{", "writer", "write", "string", "field", "(", "\"", "status", "\"", ",", "\"", "error", "\"", ")", ";", "writer", "write", "string", "field", "(", "\"", "message", "\"", ",", "get", "exception", "string", "(", "exceptions", ")", ")", ";", "}", "writer", "write", "end", "object", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "servlet", "exception", "(", "e", ")", ";", "}", "finally", "{", "writer", "flush", "(", ")", ";", "writer", "close", "(", ")", ";", "w", "flush", "(", ")", ";", "w", "close", "(", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "servlet", "exception", "(", "e", ")", ";", "}", "finally", "{", "job", "touch", "(", ")", ";", "job", "updating", "=", "false", ";", "}", "}" ]
[ "used", "by", "jdbc" ]
[ "public", "int", "display", "size", "(", ")", "{", "return", "display", "size", ";", "}" ]
[ "put", "fakebody", "-", "with", "-", "query", "-", "params" ]
[ "default", "response", "entity", "<", "void", ">", "test", "body", "with", "query", "params", "(", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "query", "\"", ",", "required", "=", "true", ")", "string", "query", ",", "@", "api", "param", "(", "value", "=", "\"", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "user", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "start", "a", "new", "activity", "running", "in", "the", "group", "every", "activity", "you", "start", "must", "have", "a", "unique", "string", "id", "associated", "with", "it", "-", "-", "this", "is", "used", "to", "keep", "track", "of", "the", "activity", ",", "so", "that", "if", "you", "later", "call", "start", "activity", "(", ")", "again", "on", "it", "the", "same", "activity", "object", "will", "be", "retained", "when", "there", "had", "previously", "been", "an", "activity", "started", "under", "this", "id", ",", "it", "may", "either", "be", "destroyed", "and", "a", "new", "one", "started", ",", "or", "the", "current", "one", "re", "-", "used", ",", "based", "on", "these", "conditions", ",", "in", "order", ":", "if", "the", "intent", "maps", "to", "a", "different", "activity", "component", "than", "is", "currently", "running", ",", "the", "current", "activity", "is", "finished", "and", "a", "new", "one", "started", "if", "the", "current", "activity", "uses", "a", "non", "-", "multiple", "launch", "mode", "(", "such", "as", "single", "top", ")", ",", "or", "the", "intent", "has", "the", "{", "@", "link", "intent", "#", "flag", "activity", "single", "top", "}", "flag", "set", ",", "then", "the", "current", "activity", "will", "remain", "running", "and", "its", "{", "@", "link", "activity", "#", "on", "new", "intent", "(", "intent", ")", "activity", "on", "new", "intent", "(", ")", "}", "method", "called", "if", "the", "new", "intent", "is", "the", "same", "(", "excluding", "extras", ")", "as", "the", "previous", "one", ",", "and", "the", "new", "intent", "does", "not", "have", "the", "{", "@", "link", "intent", "#", "flag", "activity", "clear", "top", "}", "set", ",", "then", "the", "current", "activity", "will", "remain", "running", "as", "-", "is", "otherwise", ",", "the", "current", "activity", "will", "be", "finished", "and", "a", "new", "one", "started", "if", "the", "given", "intent", "can", "not", "be", "resolved", "to", "an", "available", "activity", ",", "this", "method", "throws", "{", "@", "link", "activity", "not", "found", "exception", "}", "warning", ":", "there", "is", "an", "issue", "where", ",", "if", "the", "intent", "does", "not", "include", "an", "explicit", "component", ",", "we", "can", "restore", "the", "state", "for", "a", "different", "activity", "class", "than", "was", "previously", "running", "when", "the", "state", "was", "saved", "(", "if", "the", "set", "of", "available", "activities", "changes", "between", "those", "points", ")" ]
[ "public", "window", "start", "activity", "(", "string", "id", ",", "intent", "intent", ")", "{", "if", "(", "m", "cur", "state", "=", "=", "initializing", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "activities", "can", "'", "t", "be", "added", "until", "the", "containing", "group", "has", "been", "created", "\"", ")", ";", "}", "boolean", "adding", "=", "false", ";", "boolean", "same", "intent", "=", "false", ";", "activity", "info", "a", "info", "=", "null", ";", "/", "/", "already", "have", "information", "about", "the", "new", "activity", "id", "?", "local", "activity", "record", "r", "=", "m", "activities", "get", "(", "id", ")", ";", "if", "(", "r", "=", "=", "null", ")", "{", "/", "/", "need", "to", "create", "it", "r", "=", "new", "local", "activity", "record", "(", "id", ",", "intent", ")", ";", "adding", "=", "true", ";", "}", "else", "if", "(", "r", "intent", "!", "=", "null", ")", "{", "same", "intent", "=", "r", "intent", "filter", "equals", "(", "intent", ")", ";", "if", "(", "same", "intent", ")", "{", "/", "/", "we", "are", "starting", "the", "same", "activity", "a", "info", "=", "r", "activity", "info", ";", "}", "}", "if", "(", "a", "info", "=", "=", "null", ")", "{", "a", "info", "=", "r", "intent", "resolve", "activity", "info", "(", "runtime", "variables", "android", "application", "get", "package", "manager", "(", ")", ",", "package", "manager", "get", "shared", "library", "files", ")", ";", "if", "(", "a", "info", "=", "=", "null", ")", "{", "/", "/", "throw", "an", "exception", "throw", "new", "activity", "not", "found", "exception", "(", "\"", "no", "activity", "found", "to", "handle", "\"", "+", "intent", ")", ";", "}", "}", "/", "/", "pause", "the", "currently", "running", "activity", "if", "there", "is", "one", "and", "only", "a", "single", "/", "/", "activity", "is", "allowed", "to", "be", "running", "at", "a", "time", "if", "(", "m", "single", "mode", ")", "{", "local", "activity", "record", "old", "=", "m", "resumed", ";", "/", "/", "if", "there", "was", "a", "previous", "activity", ",", "and", "it", "is", "not", "the", "current", "/", "/", "activity", ",", "we", "need", "to", "stop", "it", "if", "(", "old", "!", "=", "null", "&", "&", "old", "!", "=", "r", "&", "&", "m", "cur", "state", "=", "=", "resumed", ")", "{", "move", "to", "state", "(", "old", ",", "started", ")", ";", "}", "}", "if", "(", "adding", ")", "{", "/", "/", "it", "'", "s", "a", "brand", "new", "world", "m", "activities", "put", "(", "id", ",", "r", ")", ";", "m", "activity", "array", "add", "(", "r", ")", ";", "}", "else", "if", "(", "r", "activity", "info", "!", "=", "null", ")", "{", "/", "/", "if", "the", "new", "activity", "is", "the", "same", "as", "the", "current", "one", ",", "then", "/", "/", "we", "may", "be", "able", "to", "reuse", "it", "if", "(", "a", "info", "=", "=", "r", "activity", "info", "|", "|", "(", "a", "info", "name", "equals", "(", "r", "activity", "info", "name", ")", "&", "&", "a", "info", "package", "name", "equals", "(", "r", "activity", "info", "package", "name", ")", ")", ")", "{", "if", "(", "a", "info", "launch", "mode", "!", "=", "activity", "info", "launch", "multiple", "|", "|", "(", "intent", "get", "flags", "(", ")", "&", "intent", "flag", "activity", "single", "top", ")", "!", "=", "0", ")", "{", "/", "/", "the", "activity", "wants", "on", "new", "intent", "(", ")", "called", "intent", "set", "extras", "class", "loader", "(", "r", "activity", "get", "class", "loader", "(", ")", ")", ";", "/", "/", "todo", "call", "activity", "on", "new", "intent", "use", "reflect", "/", "/", "call", "activity", "on", "new", "intent", "(", "r", "activity", ",", "intent", ")", ";", "r", "intent", "=", "intent", ";", "move", "to", "state", "(", "r", ",", "m", "cur", "state", ")", ";", "if", "(", "m", "single", "mode", ")", "{", "m", "resumed", "=", "r", ";", "}", "return", "r", "window", ";", "}", "if", "(", "same", "intent", "&", "&", "(", "intent", "get", "flags", "(", ")", "&", "intent", "flag", "activity", "clear", "top", ")", "=", "=", "0", ")", "{", "/", "/", "we", "are", "showing", "the", "same", "thing", ",", "so", "this", "activity", "is", "/", "/", "just", "resumed", "and", "stays", "as", "-", "is", "r", "intent", "=", "intent", ";", "move", "to", "state", "(", "r", ",", "m", "cur", "state", ")", ";", "if", "(", "m", "single", "mode", ")", "{", "m", "resumed", "=", "r", ";", "}", "return", "r", "window", ";", "}", "}", "/", "/", "the", "new", "activity", "is", "different", "than", "the", "current", "one", ",", "or", "it", "/", "/", "is", "a", "multiple", "launch", "activity", ",", "so", "we", "need", "to", "destroy", "what", "/", "/", "is", "currently", "there", "perform", "destroy", "(", "r", ",", "true", ")", ";", "}", "r", "intent", "=", "intent", ";", "r", "cur", "state", "=", "initializing", ";", "r", "activity", "info", "=", "a", "info", ";", "move", "to", "state", "(", "r", ",", "m", "cur", "state", ")", ";", "/", "/", "when", "in", "single", "mode", "keep", "track", "of", "the", "current", "activity", "if", "(", "m", "single", "mode", ")", "{", "m", "resumed", "=", "r", ";", "}", "return", "r", "window", ";", "}" ]
[ "at", "least", "{", "@", "code", "min", "}", "number", "of", "times" ]
[ "public", "static", "expected", "count", "min", "(", "int", "min", ")", "{", "assert", "is", "true", "(", "min", ">", "=", "1", ",", "\"", "'", "min", "'", "must", "be", ">", "=", "1", "\"", ")", ";", "return", "new", "expected", "count", "(", "min", ",", "integer", "max", "value", ")", ";", "}" ]
[ "test", "parsing", "empty", "highlight", "or", "empty", "fields", "blocks" ]
[ "public", "void", "test", "parsing", "empty", "structure", "(", ")", "throws", "i", "o", "exception", "{", "string", "highlight", "element", "=", "\"", "{", "}", "\"", ";", "try", "(", "x", "content", "parser", "parser", "=", "create", "parser", "(", "json", "x", "content", "json", "x", "content", ",", "highlight", "element", ")", ")", "{", "highlight", "builder", "highlight", "builder", "=", "highlight", "builder", "from", "x", "content", "(", "parser", ")", ";", "assert", "equals", "(", "\"", "expected", "plain", "highlight", "builder", "\"", ",", "new", "highlight", "builder", "(", ")", ",", "highlight", "builder", ")", ";", "}", "highlight", "element", "=", "\"", "{", "\\", "\"", "fields", "\\", "\"", ":", "{", "}", "}", "\"", ";", "try", "(", "x", "content", "parser", "parser", "=", "create", "parser", "(", "json", "x", "content", "json", "x", "content", ",", "highlight", "element", ")", ")", "{", "highlight", "builder", "highlight", "builder", "=", "highlight", "builder", "from", "x", "content", "(", "parser", ")", ";", "assert", "equals", "(", "\"", "defining", "no", "field", "should", "return", "plain", "highlight", "builder", "\"", ",", "new", "highlight", "builder", "(", ")", ",", "highlight", "builder", ")", ";", "}", "highlight", "element", "=", "\"", "{", "\\", "\"", "fields", "\\", "\"", ":", "{", "\\", "\"", "foo", "\\", "\"", ":", "{", "}", "}", "}", "\"", ";", "try", "(", "x", "content", "parser", "parser", "=", "create", "parser", "(", "json", "x", "content", "json", "x", "content", ",", "highlight", "element", ")", ")", "{", "highlight", "builder", "highlight", "builder", "=", "highlight", "builder", "from", "x", "content", "(", "parser", ")", ";", "assert", "equals", "(", "\"", "expected", "highlight", "builder", "with", "field", "\"", ",", "new", "highlight", "builder", "(", ")", "field", "(", "new", "field", "(", "\"", "foo", "\"", ")", ")", ",", "highlight", "builder", ")", ";", "}", "}" ]
[ "removes", "the", "last", "occurrence", "of", "the", "specified", "element", "in", "this", "deque", "(", "when", "traversing", "the", "deque", "from", "head", "to", "tail", ")", "if", "the", "deque", "does", "not", "contain", "the", "element", ",", "it", "is", "unchanged", "more", "formally", ",", "removes", "the", "last", "element", "<", "tt", ">", "e", "<", "tt", ">", "such", "that", "<", "tt", ">", "o", "equals", "(", "e", ")", "<", "tt", ">", "(", "if", "such", "an", "element", "exists", ")", "returns", "<", "tt", ">", "true", "<", "tt", ">", "if", "this", "deque", "contained", "the", "specified", "element", "(", "or", "equivalently", ",", "if", "this", "deque", "changed", "as", "a", "result", "of", "the", "call", ")" ]
[ "public", "boolean", "remove", "last", "occurrence", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "return", "false", ";", "int", "mask", "=", "elements", "length", "-", "1", ";", "int", "i", "=", "(", "tail", "-", "1", ")", "&", "mask", ";", "object", "x", ";", "while", "(", "(", "x", "=", "elements", "[", "i", "]", ")", "!", "=", "null", ")", "{", "if", "(", "o", "equals", "(", "x", ")", ")", "{", "delete", "(", "i", ")", ";", "return", "true", ";", "}", "i", "=", "(", "i", "-", "1", ")", "&", "mask", ";", "}", "return", "false", ";", "}", "/", "/", "*", "*", "*", "queue", "methods", "*", "*", "*" ]
[ "tests", "that", "we", "do", "not", "pollute", "the", "global", "namespace", "with", "sizzle", "in", "firefox", "3" ]
[ "public", "void", "searching", "by", "css", "does", "not", "overwrite", "existing", "sizzle", "definition", "(", ")", "{", "driver", "get", "(", "pages", "xhtml", "test", "page", ")", ";", "(", "(", "javascript", "executor", ")", "driver", ")", "execute", "script", "(", "\"", "window", "sizzle", "=", "'", "original", "sizzle", "value", "'", ";", "\"", ")", ";", "driver", "find", "element", "(", "by", "css", "selector", "(", "\"", "div", "content", "\"", ")", ")", ";", "assert", "that", "(", "(", "(", "javascript", "executor", ")", "driver", ")", "execute", "script", "(", "\"", "return", "window", "sizzle", "+", "'", "'", ";", "\"", ")", ")", "is", "equal", "to", "(", "\"", "original", "sizzle", "value", "\"", ")", ";", "}" ]
[ "returns", "a", "ghidra", "{", "@", "link", "domain", "folder", "}", "with", "the", "matching", "path", ",", "or", "null", "if", "not", "found" ]
[ "public", "static", "domain", "folder", "lookup", "domain", "path", "(", "domain", "folder", "current", "folder", ",", "string", "path", ")", "{", "string", "[", "]", "path", "elements", "=", "path", "split", "(", "\"", "/", "\"", ")", ";", "for", "(", "string", "path", "element", ":", "path", "elements", ")", "{", "path", "element", "=", "path", "element", "trim", "(", ")", ";", "if", "(", "path", "element", "is", "empty", "(", ")", ")", "{", "continue", ";", "}", "current", "folder", "=", "current", "folder", "get", "folder", "(", "path", "element", ")", ";", "if", "(", "current", "folder", "=", "=", "null", ")", "{", "break", ";", "}", "}", "return", "current", "folder", ";", "}" ]
[ "does", "this", "model", "contain", "an", "attribute", "of", "the", "given", "name", "?" ]
[ "public", "boolean", "contains", "attribute", "(", "string", "attribute", "name", ")", "{", "return", "contains", "key", "(", "attribute", "name", ")", ";", "}" ]
[ "generates", "the", "repository", ":", "workspace", ",", "build", ",", "and", "helper", "bzl", "files" ]
[ "path", "setup", "repository", "(", ")", "throws", "i", "o", "exception", "{", "path", "workspace", "=", "path", "utils", "write", "file", "in", "dir", "(", "root", ",", "\"", "workspace", "\"", ")", ";", "path", "utils", "write", "file", "in", "dir", "(", "root", ",", "helper", "file", ",", "write", "text", "to", "file", ")", ";", "if", "(", "generate", "build", "file", ")", "{", "path", "utils", "write", "file", "in", "dir", "(", "root", ",", "\"", "build", "\"", ",", "\"", "load", "(", "\\", "\"", "@", "bazel", "tools", "/", "/", "tools", "/", "build", "defs", "/", "pkg", ":", "pkg", "bzl", "\\", "\"", ",", "\\", "\"", "pkg", "tar", "\\", "\"", ")", "\"", ",", "load", "rule", "(", "\"", "\"", ")", ",", "call", "rule", "(", "target", ",", "out", "file", ",", "output", "text", ")", ",", "string", "format", "(", "\"", "pkg", "tar", "(", "name", "=", "\\", "\"", "%", "s", "\\", "\"", ",", "srcs", "=", "glob", "(", "[", "\\", "\"", "*", "\\", "\"", "]", ")", ",", ")", "\"", ",", "get", "pkg", "tar", "target", "(", ")", ")", ")", ";", "}", "return", "workspace", "get", "parent", "(", ")", ";", "}" ]
[ "new", "instance", "radius", "client" ]
[ "public", "radius", "client", "new", "instance", "(", ")", "{", "return", "new", "radius", "client", "(", "inet", "address", "get", "by", "name", "(", "this", "inet", "address", ")", ",", "this", "shared", "secret", ",", "this", "authentication", "port", ",", "this", "accounting", "port", ",", "this", "socket", "timeout", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "creates", "a", "{", "@", "link", "enable", "reads", "}", "which", "insert", "an", "element", "for", "a", "{", "@", "code", "take", "}", "to", "receive", "in", "{", "@", "code", "countdown", "in", "millis", "}" ]
[ "static", "timed", "take", "queue", "create", "with", "delay", "(", "long", "countdown", "in", "millis", ")", "{", "return", "new", "timed", "take", "queue", "(", "countdown", "in", "millis", ")", ";", "}" ]
[ "clears", "any", "pending", "jobs", "and", "cancels", "any", "currently", "executing", "job" ]
[ "public", "void", "clear", "all", "jobs", "(", ")", "{", "clear", "all", "jobs", "(", "false", ")", ";", "}" ]
[ "get", "all", "various", "group", "memberships", "of", "a", "given", "user", "returns", "empty", "set", "in", "case", "of", "non", "-", "existing", "user" ]
[ "set", "<", "string", ">", "get", "groups", "set", "(", "string", "user", ")", "throws", "i", "o", "exception", ";" ]
[ "internal", "query", "to", "resolve", "the", "\"", "children", "\"", "to", "-", "many", "relationship", "of", "tree", "entity" ]
[ "public", "list", "<", "tree", "entity", ">", "query", "tree", "entity", "children", "(", "long", "parent", "id", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "tree", "entity", "children", "query", "=", "=", "null", ")", "{", "query", "builder", "<", "tree", "entity", ">", "query", "builder", "=", "query", "builder", "(", ")", ";", "query", "builder", "where", "(", "properties", "parent", "id", "eq", "(", "null", ")", ")", ";", "tree", "entity", "children", "query", "=", "query", "builder", "build", "(", ")", ";", "}", "}", "query", "<", "tree", "entity", ">", "query", "=", "tree", "entity", "children", "query", "for", "current", "thread", "(", ")", ";", "query", "set", "parameter", "(", "0", ",", "parent", "id", ")", ";", "return", "query", "list", "(", ")", ";", "}" ]
[ "get", "namespace", "integer" ]
[ "public", "integer", "get", "namespace", "integer", "(", ")", "{", "return", "namespace", "integer", ";", "}" ]
[ "$", "hide", "from", "docs", "the", "ip", "or", "the", "unix", "domain", "socket", "to", "which", "the", "listener", "should", "be", "bound", "to", "format", ":", "`", "x", "x", "x", "x", "`", "or", "`", "unix", ":", "pathtouds", "`", "or", "`", "unix", ":", "&", "#", "64", ";", "foobar", "`", "(", "linux", "abstract", "namespace", ")", "when", "using", "unix", "domain", "sockets", ",", "the", "port", "number", "should", "be", "0", "<", "code", ">", "string", "bind", "=", "4", ";", "<", "code", ">" ]
[ "public", "com", "google", "protobuf", "byte", "string", "get", "bind", "bytes", "(", ")", "{", "java", "lang", "object", "ref", "=", "bind", ";", "if", "(", "ref", "instanceof", "java", "lang", "string", ")", "{", "com", "google", "protobuf", "byte", "string", "b", "=", "com", "google", "protobuf", "byte", "string", "copy", "from", "utf", "8", "(", "(", "java", "lang", "string", ")", "ref", ")", ";", "bind", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}", "}" ]
[ "set", "the", "value", "of", "a", "specific", "parameter" ]
[ "default", "<", "v", ">", "t", "set", "(", "param", "info", "<", "v", ">", "info", ",", "v", "value", ")", "{", "get", "params", "(", ")", "set", "(", "info", ",", "value", ")", ";", "return", "(", "t", ")", "this", ";", "}" ]
[ "get", "the", "path", "for", "a", "z", "node" ]
[ "public", "static", "string", "get", "node", "path", "(", "string", "root", ",", "string", "node", "name", ")", "{", "return", "root", "+", "\"", "/", "\"", "+", "node", "name", ";", "}" ]
[ "returns", "a", "new", "address", "in", "this", "address", "'", "s", "space", "with", "the", "given", "offset", "the", "specified", "offset", "will", "be", "truncated", "within", "the", "space", "and", "will", "not", "throw", "an", "exception", "note", ":", "for", "those", "spaces", "with", "an", "addressable", "unit", "size", "other", "than", "1", ",", "the", "address", "returned", "may", "not", "correspond", "to", "a", "word", "boundary", "(", "addressable", "unit", ")", "if", "a", "byte", "-", "offset", "is", "specified" ]
[ "address", "get", "new", "truncated", "address", "(", "long", "offset", ",", "boolean", "is", "addressable", "word", "offset", ")", ";" ]
[ "install", "additional", "darcula", "defaults" ]
[ "private", "static", "void", "install", "darcula", "defaults", "(", "@", "non", "nls", "final", "u", "i", "defaults", "defaults", ")", "{", "defaults", "put", "(", "\"", "darcula", "primary", "\"", ",", "new", "color", "u", "i", "resource", "(", "0x", "3c", "3f", "4", "1", ")", ")", ";", "defaults", "put", "(", "\"", "darcula", "contrast", "color", "\"", ",", "new", "color", "u", "i", "resource", "(", "0x", "2", "6", "2", "6", "2", "6", ")", ")", ";", "defaults", "put", "(", "\"", "gray", "filter", "\"", ",", "new", "u", "i", "util", "gray", "filter", "(", "-", "100", ",", "-", "100", ",", "100", ")", ")", ";", "defaults", "put", "(", "\"", "text", "gray", "filter", "\"", ",", "new", "u", "i", "util", "gray", "filter", "(", "-", "15", ",", "-", "10", ",", "100", ")", ")", ";", "}" ]
[ "sets", "the", "number", "of", "characters", "to", "expand", "tabs", "to", "this", "will", "be", "multiplied", "by", "the", "maximum", "advance", "for", "variable", "width", "fonts", "a", "property", "change", "event", "(", "\"", "tab", "size", "\"", ")", "is", "fired", "when", "tab", "size", "changes" ]
[ "public", "void", "set", "tab", "size", "(", "int", "tab", "size", ")", "{", "text", "area", "set", "tab", "size", "(", "tab", "size", ")", ";", "}" ]
[ "returns", "an", "address", "using", "the", "relative", "offset", "+", "image", "base" ]
[ "final", "static", "address", "reladdr", "(", "program", "program", ",", "long", "relative", "offset", ")", "{", "return", "program", "get", "image", "base", "(", ")", "add", "(", "relative", "offset", ")", ";", "}" ]
[ "parse", "a", "file", "of", "the", "format", "<", "a", "href", "=", "\"", "https", ":", "linux", "die", "netman", "5resolver", "\"", ">", "etcresolv", "conf", "and", "return", "options", "of", "interest", ",", "namely", ":", "timeout", ",", "attempts", "and", "ndots" ]
[ "static", "unix", "resolver", "options", "parse", "etc", "resolver", "options", "(", "file", "etc", "resolv", "conf", ")", "throws", "i", "o", "exception", "{", "unix", "resolver", "options", "builder", "options", "builder", "=", "unix", "resolver", "options", "new", "builder", "(", ")", ";", "file", "reader", "fr", "=", "new", "file", "reader", "(", "etc", "resolv", "conf", ")", ";", "buffered", "reader", "br", "=", "null", ";", "try", "{", "br", "=", "new", "buffered", "reader", "(", "fr", ")", ";", "string", "line", ";", "while", "(", "(", "line", "=", "br", "read", "line", "(", ")", ")", "!", "=", "null", ")", "{", "if", "(", "line", "starts", "with", "(", "options", "row", "label", ")", ")", "{", "parse", "res", "options", "(", "line", "substring", "(", "options", "row", "label", "length", "(", ")", ")", ",", "options", "builder", ")", ";", "break", ";", "}", "}", "}", "finally", "{", "if", "(", "br", "=", "=", "null", ")", "{", "fr", "close", "(", ")", ";", "}", "else", "{", "br", "close", "(", ")", ";", "}", "}", "/", "/", "amend", "options", "if", "(", "res", "options", "!", "=", "null", ")", "{", "parse", "res", "options", "(", "res", "options", ",", "options", "builder", ")", ";", "}", "return", "options", "builder", "build", "(", ")", ";", "}" ]
[ "get", "the", "name", "in", "camel", "form" ]
[ "public", "string", "get", "camel", "name", "(", ")", "{", "return", "camel", "name", ";", "}" ]
[ "checks", "if", "the", "given", "list", "of", "strings", "occur", "in", "the", "given", "order", "among", "the", "given", "log", "messages", "(", "one", "string", "per", "message", ")" ]
[ "private", "boolean", "contains", "expected", "entries", "(", "list", "<", "log", "entry", ">", "entries", ",", "string", "[", "]", "expected", ")", "{", "int", "index", "=", "0", ";", "for", "(", "log", "entry", "entry", ":", "entries", ")", "{", "if", "(", "index", "=", "=", "expected", "length", ")", "{", "return", "true", ";", "}", "if", "(", "!", "entry", "get", "message", "(", ")", "contains", "(", "expected", "[", "index", "]", ")", ")", "{", "index", "+", "+", ";", "}", "}", "return", "(", "index", "=", "=", "expected", "length", ")", ";", "}" ]
[ "sets", "the", "maximum", "time", "frequency", "(", "milliseconds", ")", "for", "the", "flushing", "of", "the", "output", "buffers", "by", "default", "the", "output", "buffers", "flush", "frequently", "to", "provide", "low", "latency", "and", "to", "aid", "smooth", "developer", "experience", "setting", "the", "parameter", "can", "result", "in", "three", "logical", "modes", ":", "a", "positive", "integer", "triggers", "flushing", "periodically", "by", "that", "integer", "0", "triggers", "flushing", "after", "every", "record", "thus", "minimizing", "latency", "-", "1", "triggers", "flushing", "only", "when", "the", "output", "buffer", "is", "full", "thus", "maximizing", "throughput" ]
[ "public", "stream", "execution", "environment", "set", "buffer", "timeout", "(", "long", "timeout", "millis", ")", "{", "if", "(", "timeout", "millis", "<", "-", "1", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "timeout", "of", "buffer", "must", "be", "non", "-", "negative", "or", "-", "1", "\"", ")", ";", "}", "this", "buffer", "timeout", "=", "timeout", "millis", ";", "return", "this", ";", "}" ]
[ "removes", "the", "given", "app", "from", "this", "queue" ]
[ "boolean", "remove", "app", "(", "f", "s", "app", "attempt", "app", ")", "{", "boolean", "runnable", "=", "false", ";", "/", "/", "remove", "app", "from", "runnable", "/", "non", "runnable", "list", "while", "holding", "the", "write", "lock", "write", "lock", "lock", "(", ")", ";", "try", "{", "runnable", "=", "runnable", "apps", "remove", "(", "app", ")", ";", "if", "(", "!", "runnable", ")", "{", "/", "/", "remove", "non", "runnable", "app", "acquires", "the", "write", "lock", "again", ",", "which", "is", "fine", "if", "(", "!", "remove", "non", "runnable", "app", "(", "app", ")", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "given", "app", "to", "remove", "\"", "+", "app", "+", "\"", "does", "not", "exist", "in", "queue", "\"", "+", "this", ")", ";", "}", "}", "}", "finally", "{", "write", "lock", "unlock", "(", ")", ";", "}", "/", "/", "update", "am", "resource", "usage", "if", "needed", "if", "is", "a", "m", "running", "is", "true", ",", "we", "'", "re", "not", "/", "/", "running", "an", "unmanaged", "am", "if", "(", "runnable", "&", "&", "app", "is", "am", "running", "(", ")", ")", "{", "resources", "subtract", "from", "(", "am", "resource", "usage", ",", "app", "get", "a", "m", "resource", "(", ")", ")", ";", "get", "metrics", "(", ")", "set", "a", "m", "resource", "usage", "(", "am", "resource", "usage", ")", ";", "}", "dec", "used", "resource", "(", "app", "get", "resource", "usage", "(", ")", ")", ";", "return", "runnable", ";", "}" ]
[ "clear", "priority", "acl", "during", "refresh" ]
[ "public", "void", "clear", "priority", "a", "c", "ls", "(", "string", "queue", "name", ")", "{", "all", "acls", "remove", "(", "queue", "name", ")", ";", "}" ]
[ "returns", "the", "configured", "features", "of", "the", "toolchain" ]
[ "public", "cc", "toolchain", "features", "get", "features", "(", ")", "{", "return", "toolchain", "features", ";", "}" ]
[ "ensures", "that", "the", "bazel", "test", "suite", "in", "argument", "is", "not", "{", "@", "code", "null", "}", "or", "print", "error", "and", "explanation" ]
[ "private", "static", "boolean", "check", "test", "suite", "property", "(", "string", "test", "suite", "property", ")", "{", "if", "(", "test", "suite", "property", "=", "=", "null", ")", "{", "system", "err", "printf", "(", "\"", "error", ":", "the", "test", "suite", "java", "system", "property", "%", "s", "is", "required", "but", "missing", "%", "n", "\"", ",", "test", "suite", "property", "name", ")", ";", "system", "err", "println", "(", ")", ";", "system", "err", "println", "(", "\"", "this", "property", "is", "set", "automatically", "when", "running", "with", "bazel", "like", "such", ":", "\"", ")", ";", "system", "err", "printf", "(", "\"", "java", "-", "d", "%", "s", "=", "[", "test", "-", "suite", "-", "class", "]", "%", "s", "%", "n", "\"", ",", "test", "suite", "property", "name", ",", "bazel", "test", "runner", "class", "get", "name", "(", ")", ")", ";", "system", "err", "printf", "(", "\"", "java", "-", "d", "%", "s", "=", "[", "test", "-", "suite", "-", "class", "]", "-", "jar", "[", "deploy", "-", "jar", "]", "%", "n", "\"", ",", "test", "suite", "property", "name", ")", ";", "system", "err", "println", "(", "\"", "e", "g", ":", "\"", ")", ";", "system", "err", "printf", "(", "\"", "java", "-", "d", "%", "s", "=", "org", "example", "testing", "junit", "runner", "small", "tests", "%", "s", "%", "n", "\"", ",", "test", "suite", "property", "name", ",", "bazel", "test", "runner", "class", "get", "name", "(", ")", ")", ";", "system", "err", "printf", "(", "\"", "java", "-", "d", "%", "s", "=", "org", "example", "testing", "junit", "runner", "small", "tests", "\"", "+", "\"", "-", "jar", "small", "tests", "deploy", "jar", "%", "n", "\"", ",", "test", "suite", "property", "name", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}" ]
[ "the", "interpretedcompiled", "version", "of", "the", "`", "value", "`", "string", "<", "code", ">", "optional", "aapt", "pb", "item", "compiled", "item", "=", "6", ";", "<", "code", ">" ]
[ "private", "void", "set", "compiled", "item", "(", "com", "android", "aapt", "resources", "item", "builder", "builder", "for", "value", ")", "{", "compiled", "item", "=", "builder", "for", "value", "build", "(", ")", ";", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "2", "0", ";", "}" ]
[ "returns", "the", "number", "of", "bytes", "that", "are", "included", "in", "the", "current", "selection", "range" ]
[ "protected", "int", "get", "num", "bytes", "in", "range", "(", "field", "range", "range", ")", "{", "int", "num", "bytes", "in", "range", "=", "0", ";", "if", "(", "range", "!", "=", "null", ")", "{", "/", "/", "determine", "the", "number", "of", "bytes", "/", "/", "get", "the", "size", "of", "the", "range", "for", "(", "int", "i", "=", "range", "get", "start", "(", ")", "get", "index", "(", ")", "int", "value", "(", ")", ";", "i", "<", "range", "get", "end", "(", ")", "get", "index", "(", ")", "int", "value", "(", ")", ";", "i", "+", "+", ")", "{", "data", "type", "component", "comp", "=", "get", "component", "(", "i", ")", ";", "num", "bytes", "in", "range", "=", "math", "max", "(", "num", "bytes", "in", "range", ",", "comp", "get", "length", "(", ")", ")", ";", "}", "}", "return", "num", "bytes", "in", "range", ";", "}" ]
[ "split", "this", "leaf", "node", "in", "half", "and", "update", "tree", "when", "a", "split", "is", "performed", ",", "the", "next", "operation", "must", "be", "performed", "from", "the", "root", "node", "since", "the", "tree", "may", "have", "been", "restructured" ]
[ "long", "key", "node", "split", "(", ")", "throws", "i", "o", "exception", "{", "/", "/", "create", "new", "leaf", "int", "old", "sibling", "id", "=", "buffer", "get", "int", "(", "next", "leaf", "id", "offset", ")", ";", "long", "key", "record", "node", "new", "leaf", "=", "create", "new", "leaf", "(", "buffer", "get", "id", "(", ")", ",", "old", "sibling", "id", ")", ";", "data", "buffer", "new", "buf", "=", "new", "leaf", "buffer", ";", "int", "new", "buf", "id", "=", "new", "buf", "get", "id", "(", ")", ";", "buffer", "put", "int", "(", "next", "leaf", "id", "offset", ",", "new", "buf", "id", ")", ";", "if", "(", "old", "sibling", "id", ">", "=", "0", ")", "{", "long", "key", "record", "node", "leaf", "=", "(", "long", "key", "record", "node", ")", "node", "mgr", "get", "long", "key", "node", "(", "old", "sibling", "id", ")", ";", "leaf", "buffer", "put", "int", "(", "prev", "leaf", "id", "offset", ",", "new", "buf", "id", ")", ";", "}", "/", "/", "split", "node", "creating", "two", "balanced", "leaves", "split", "data", "(", "new", "leaf", ")", ";", "if", "(", "parent", "!", "=", "null", ")", "{", "/", "/", "ask", "parent", "to", "insert", "new", "node", "and", "return", "root", "return", "parent", "insert", "(", "new", "buf", "id", ",", "new", "leaf", "get", "key", "(", "0", ")", ")", ";", "}", "/", "/", "new", "parent", "node", "becomes", "root", "return", "new", "long", "key", "interior", "node", "(", "node", "mgr", ",", "get", "key", "(", "0", ")", ",", "buffer", "get", "id", "(", ")", ",", "new", "leaf", "get", "key", "(", "0", ")", ",", "new", "buf", "id", ")", ";", "}" ]
[ "the", "number", "of", "non", "-", "null", "values", "in", "this", "column" ]
[ "public", "long", "get", "non", "null", "count", "(", ")", "{", "return", "non", "missing", "count", "+", "nan", "count", "+", "infinity", "count", ";", "}" ]
[ "generate", "a", "tree", "of", "{", "@", "link", "component", "layout", "}", "representing", "the", "layout", "structure", "of", "the", "{", "@", "link", "component", "}", "and", "its", "sub", "-", "components" ]
[ "protected", "component", "on", "create", "layout", "(", "component", "context", "c", ")", "{", "return", "column", "create", "(", "c", ")", "build", "(", ")", ";", "}" ]
[ "sets", "the", "width", "of", "the", "circle", "that", "surrounds", "the", "bubble", "when", "highlighted", "for", "all", "data", "set", "objects", "this", "data", "object", "contains", ",", "in", "dp" ]
[ "public", "void", "set", "highlight", "circle", "width", "(", "float", "width", ")", "{", "for", "(", "i", "bubble", "data", "set", "set", ":", "m", "data", "sets", ")", "{", "set", "set", "highlight", "circle", "width", "(", "width", ")", ";", "}", "}" ]
[ "gets", "the", "iteration", "aggregator", "registered", "under", "the", "given", "name", "the", "iteration", "aggregator", "combines", "all", "aggregates", "globally", "once", "per", "superstep", "and", "makes", "them", "available", "in", "the", "next", "superstep" ]
[ "public", "<", "t", "extends", "aggregator", "<", "?", ">", ">", "t", "get", "iteration", "aggregator", "(", "string", "name", ")", "{", "return", "this", "runtime", "context", "get", "iteration", "aggregator", "(", "name", ")", ";", "}" ]
[ "returns", "the", "{", "@", "link", "image", "section", "header", "}", "num", "line", "numbers" ]
[ "public", "int", "get", "num", "line", "numbers", "(", ")", "{", "return", "num", "line", "numbers", ";", "}" ]
[ "returns", "info", "about", "the", "unreleased", "version", ",", "or", "{", "@", "code", "null", "}", "if", "the", "version", "is", "released" ]
[ "public", "unreleased", "version", "info", "unreleased", "info", "(", "version", "version", ")", "{", "return", "unreleased", "get", "(", "version", ")", ";", "}" ]
[ "get", "array", "array", "number" ]
[ "public", "list", "<", "list", "<", "big", "decimal", ">", ">", "get", "array", "array", "number", "(", ")", "{", "return", "array", "array", "number", ";", "}" ]
[ "rank", "this", "copy", "of", "the", "data", ",", "according", "to", "the", "adaptive", "replica", "selection", "formula", "from", "the", "c3", "paper", "https", ":", "www", "usenix", "orgsystemfilesconferencensdi", "1", "5nsdi", "1", "5", "-", "paper", "-", "suresh", "pdf" ]
[ "private", "double", "inner", "rank", "(", "long", "outstanding", "requests", ")", "{", "/", "/", "the", "concurrency", "compensation", "is", "defined", "as", "the", "number", "of", "/", "/", "outstanding", "requests", "from", "the", "client", "to", "the", "node", "times", "the", "number", "/", "/", "of", "clients", "in", "the", "system", "double", "concurrency", "compensation", "=", "outstanding", "requests", "*", "client", "num", ";", "/", "/", "cubic", "queue", "adjustment", "factor", "the", "paper", "chose", "3", "though", "we", "could", "/", "/", "potentially", "make", "this", "configurable", "if", "desired", "int", "queue", "adjustment", "factor", "=", "3", ";", "/", "/", "ewma", "of", "queue", "size", "double", "q", "bar", "=", "queue", "size", ";", "double", "q", "hat", "s", "=", "1", "+", "concurrency", "compensation", "+", "q", "bar", ";", "/", "/", "ewma", "of", "response", "time", "double", "r", "s", "=", "response", "time", "/", "factor", ";", "/", "/", "ewma", "of", "service", "time", "double", "mu", "bar", "s", "=", "service", "time", "/", "factor", ";", "/", "/", "the", "final", "formula", "double", "rank", "=", "r", "s", "-", "(", "1", "0", "/", "mu", "bar", "s", ")", "+", "(", "math", "pow", "(", "q", "hat", "s", ",", "queue", "adjustment", "factor", ")", "/", "mu", "bar", "s", ")", ";", "return", "rank", ";", "}" ]
[ "associates", "all", "of", "the", "given", "map", "'", "s", "keys", "and", "values", "in", "the", "built", "bimap", "duplicate", "keys", "or", "values", "are", "not", "allowed", ",", "and", "will", "cause", "{", "@", "link", "#", "build", "}", "to", "fail" ]
[ "public", "builder", "<", "k", ",", "v", ">", "put", "all", "(", "map", "<", "?", "extends", "k", ",", "?", "extends", "v", ">", "map", ")", "{", "super", "put", "all", "(", "map", ")", ";", "return", "this", ";", "}" ]
[ "directory", "of", "so" ]
[ "void", "create", "awb", "packages", "(", ")", "throws", "execution", "exception", ",", "interrupted", "exception", "{", "atlas", "dependency", "tree", "atlas", "dependency", "tree", "=", "atlas", "build", "context", "android", "dependency", "trees", "get", "(", "get", "variant", "name", "(", ")", ")", ";", "if", "(", "null", "=", "=", "atlas", "dependency", "tree", ")", "{", "return", ";", "}", "executor", "services", "helper", "executor", "services", "helper", "=", "new", "executor", "services", "helper", "(", "task", "name", ",", "get", "logger", "(", ")", ",", "0", ")", ";", "list", "<", "runnable", ">", "runnables", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "final", "awb", "bundle", "awb", "bundle", ":", "atlas", "dependency", "tree", "get", "awb", "bundles", "(", ")", ")", "{", "if", "(", "!", "app", "variant", "context", "get", "atlas", "extension", "(", ")", "get", "t", "build", "config", "(", ")", "get", "data", "binding", "bundles", "(", ")", "contains", "(", "awb", "bundle", "get", "package", "name", "(", ")", ")", "|", "|", "awb", "bundle", "is", "m", "bundle", ")", "{", "continue", ";", "}", "runnables", "add", "(", "new", "runnable", "(", ")", "{", "@", "override", "public", "void", "run", "(", ")", "{", "try", "{", "full", "copy", "(", "app", "variant", "context", "get", "awb", "data", "binding", "merge", "artifacts", "(", "awb", "bundle", ")", ",", "awb", "bundle", ")", ";", "}", "catch", "(", "throwable", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "throw", "new", "gradle", "exception", "(", "\"", "merge", "awb", "artifact", "failed", "\"", ")", ";", "}", "}", "}", ")", ";", "}", "executor", "services", "helper", "execute", "(", "runnables", ")", ";", "}" ]
[ "returns", "the", "number", "of", "milliseconds", "for", "which", "a", "resource", "associated", "to", "a", "provided", "load", "error", "should", "be", "excluded", ",", "or", "{", "@", "link", "c", "#", "time", "unset", "}", "if", "the", "resource", "should", "not", "be", "excluded" ]
[ "default", "long", "get", "blacklist", "duration", "ms", "for", "(", "load", "error", "info", "load", "error", "info", ")", "{", "return", "get", "blacklist", "duration", "ms", "for", "(", "load", "error", "info", "media", "load", "data", "data", "type", ",", "load", "error", "info", "load", "event", "info", "load", "duration", "ms", ",", "load", "error", "info", "exception", ",", "load", "error", "info", "error", "count", ")", ";", "}" ]
[ "delete", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "public", "void", "delete", "user", "test", "(", ")", "throws", "api", "exception", "{", "string", "username", "=", "null", ";", "api", "delete", "user", "(", "username", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "create", "locallog", "directories" ]
[ "private", "string", "prepare", "dirs", "(", "string", "dir", "type", ",", "int", "num", "dirs", ")", "{", "file", "[", "]", "dirs", "=", "new", "file", "[", "num", "dirs", "]", ";", "string", "dirs", "string", "=", "\"", "\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "dirs", ";", "i", "+", "+", ")", "{", "dirs", "[", "i", "]", "=", "new", "file", "(", "test", "work", "dir", ",", "mini", "y", "a", "r", "n", "cluster", "this", "get", "name", "(", ")", "+", "\"", "-", "\"", "+", "dir", "type", "+", "\"", "dir", "-", "nm", "-", "\"", "+", "index", "+", "\"", "\"", "+", "i", ")", ";", "dirs", "[", "i", "]", "mkdirs", "(", ")", ";", "log", "info", "(", "\"", "created", "\"", "+", "dir", "type", "+", "\"", "dir", "in", "\"", "+", "dirs", "[", "i", "]", "get", "absolute", "path", "(", ")", ")", ";", "string", "delimiter", "=", "(", "i", ">", "0", ")", "?", "\"", ",", "\"", ":", "\"", "\"", ";", "dirs", "string", "=", "dirs", "string", "concat", "(", "delimiter", "+", "dirs", "[", "i", "]", "get", "absolute", "path", "(", ")", ")", ";", "}", "return", "dirs", "string", ";", "}" ]
[ "tests", "that", "events", "are", "distributed", "to", "any", "subscribers", "to", "their", "type", "or", "any", "supertype", ",", "including", "interfaces", "and", "superclasses", "also", "checks", "delivery", "ordering", "in", "such", "cases" ]
[ "public", "void", "test", "polymorphic", "distribution", "(", ")", "{", "/", "/", "three", "catchers", "for", "related", "types", "string", ",", "object", ",", "and", "comparable", "<", "?", ">", "/", "/", "string", "isa", "object", "/", "/", "string", "isa", "comparable", "<", "?", ">", "/", "/", "comparable", "<", "?", ">", "isa", "object", "string", "catcher", "string", "catcher", "=", "new", "string", "catcher", "(", ")", ";", "final", "list", "<", "object", ">", "object", "events", "=", "lists", "new", "array", "list", "(", ")", ";", "object", "obj", "catcher", "=", "new", "object", "(", ")", "{", "@", "suppress", "warnings", "(", "\"", "unused", "\"", ")", "@", "subscribe", "public", "void", "eat", "(", "object", "food", ")", "{", "object", "events", "add", "(", "food", ")", ";", "}", "}", ";", "final", "list", "<", "comparable", "<", "?", ">", ">", "comp", "events", "=", "lists", "new", "array", "list", "(", ")", ";", "object", "comp", "catcher", "=", "new", "object", "(", ")", "{", "@", "suppress", "warnings", "(", "\"", "unused", "\"", ")", "@", "subscribe", "public", "void", "eat", "(", "comparable", "<", "?", ">", "food", ")", "{", "comp", "events", "add", "(", "food", ")", ";", "}", "}", ";", "bus", "register", "(", "string", "catcher", ")", ";", "bus", "register", "(", "obj", "catcher", ")", ";", "bus", "register", "(", "comp", "catcher", ")", ";", "/", "/", "two", "additional", "event", "types", ":", "object", "and", "comparable", "<", "?", ">", "(", "played", "by", "integer", ")", "object", "obj", "event", "=", "new", "object", "(", ")", ";", "object", "comp", "event", "=", "new", "integer", "(", "6", ")", ";", "bus", "post", "(", "event", ")", ";", "bus", "post", "(", "obj", "event", ")", ";", "bus", "post", "(", "comp", "event", ")", ";", "/", "/", "check", "the", "string", "catcher", "list", "<", "string", ">", "string", "events", "=", "string", "catcher", "get", "events", "(", ")", ";", "assert", "equals", "(", "\"", "only", "one", "string", "should", "be", "delivered", "\"", ",", "1", ",", "string", "events", "size", "(", ")", ")", ";", "assert", "equals", "(", "\"", "correct", "string", "should", "be", "delivered", "\"", ",", "event", ",", "string", "events", "get", "(", "0", ")", ")", ";", "/", "/", "check", "the", "catcher", "<", "object", ">", "assert", "equals", "(", "\"", "three", "objects", "should", "be", "delivered", "\"", ",", "3", ",", "object", "events", "size", "(", ")", ")", ";", "assert", "equals", "(", "\"", "string", "fixture", "must", "be", "first", "object", "delivered", "\"", ",", "event", ",", "object", "events", "get", "(", "0", ")", ")", ";", "assert", "equals", "(", "\"", "object", "fixture", "must", "be", "second", "object", "delivered", "\"", ",", "obj", "event", ",", "object", "events", "get", "(", "1", ")", ")", ";", "assert", "equals", "(", "\"", "comparable", "fixture", "must", "be", "thirdobject", "delivered", "\"", ",", "comp", "event", ",", "object", "events", "get", "(", "2", ")", ")", ";", "/", "/", "check", "the", "catcher", "<", "comparable", "<", "?", ">", ">", "assert", "equals", "(", "\"", "two", "comparable", "<", "?", ">", "s", "should", "be", "delivered", "\"", ",", "2", ",", "comp", "events", "size", "(", ")", ")", ";", "assert", "equals", "(", "\"", "string", "fixture", "must", "be", "first", "comparable", "delivered", "\"", ",", "event", ",", "comp", "events", "get", "(", "0", ")", ")", ";", "assert", "equals", "(", "\"", "comparable", "fixture", "must", "be", "second", "comparable", "delivered", "\"", ",", "comp", "event", ",", "comp", "events", "get", "(", "1", ")", ")", ";", "}" ]
[ "creates", "a", "new", "{", "@", "code", "hadoop", "file", "status", "}", "from", "hadoop", "'", "s", "{", "@", "link", "org", "apache", "hadoop", "fs", "file", "status", "}", "if", "hadoop", "'", "s", "file", "status", "is", "located", ",", "i", "e", ",", "it", "contains", "block", "information", ",", "then", "this", "method", "returns", "an", "implementation", "of", "flink", "'", "s", "{", "@", "link", "org", "apache", "flink", "core", "fs", "located", "file", "status", "}" ]
[ "public", "static", "hadoop", "file", "status", "from", "hadoop", "status", "(", "final", "org", "apache", "hadoop", "fs", "file", "status", "file", "status", ")", "{", "return", "file", "status", "instanceof", "org", "apache", "hadoop", "fs", "located", "file", "status", "?", "new", "located", "hadoop", "file", "status", "(", "(", "org", "apache", "hadoop", "fs", "located", "file", "status", ")", "file", "status", ")", ":", "new", "hadoop", "file", "status", "(", "file", "status", ")", ";", "}" ]
[ "clears", "all", "request", "properties" ]
[ "public", "synchronized", "void", "clear", "(", ")", "{", "request", "properties", "snapshot", "=", "null", ";", "request", "properties", "clear", "(", ")", ";", "}" ]
[ "track", "a", "random", "event" ]
[ "public", "void", "track", "(", "final", "string", "event", ")", "{", "if", "(", "m", "t", "config", "get", "instance", "(", ")", "is", "disallow", "data", "collection", "(", ")", "|", "|", "is", "offline", ")", "{", "return", ";", "}", "try", "{", "final", "j", "s", "o", "n", "object", "sent", "event", "=", "message", "builder", "event", "(", "user", "id", ",", "event", ",", "null", ")", ";", "final", "client", "delivery", "delivery", "=", "new", "client", "delivery", "(", ")", ";", "delivery", "add", "message", "(", "sent", "event", ")", ";", "mixpanel", "deliver", "(", "delivery", ")", ";", "}", "catch", "(", "final", "i", "o", "exception", "e", ")", "{", "is", "offline", "=", "true", ";", "}", "}" ]
[ "returns", "the", "play", "queue", "'", "s", "update", "broadcast", "may", "be", "null", "if", "the", "play", "queue", "message", "bus", "is", "not", "initialized" ]
[ "public", "flowable", "<", "play", "queue", "event", ">", "get", "broadcast", "receiver", "(", ")", "{", "return", "broadcast", "receiver", ";", "}" ]
[ "create", "a", "(", "built", ")", "response", "with", "the", "given", "asynchronous", "response", "parameter", "{", "@", "code", "async", "response", "}", "can", "be", "a", "{", "@", "link", "completable", "future", "completable", "future", "&", "lt", ";", "server", "response", "&", "gt", ";", "}", "or", "{", "@", "link", "publisher", "publisher", "&", "lt", ";", "server", "response", "&", "gt", ";", "}", "(", "or", "any", "asynchronous", "producer", "of", "a", "single", "{", "@", "code", "server", "response", "}", "that", "can", "be", "adapted", "via", "the", "{", "@", "link", "reactive", "adapter", "registry", "}", ")" ]
[ "static", "async", "server", "response", "create", "(", "object", "async", "response", ",", "duration", "timeout", ")", "{", "return", "default", "async", "server", "response", "create", "(", "async", "response", ",", "timeout", ")", ";", "}" ]
[ "called", "after", "an", "item", "is", "mounted" ]
[ "public", "void", "on", "mount", "item", "(", "final", "extension", "state", "<", "state", ">", "extension", "state", ",", "final", "render", "unit", "<", "?", ">", "render", "unit", ",", "final", "object", "content", ",", "final", "@", "nullable", "object", "layout", "data", ")", "{", "}" ]
[ "sets", "new", "values", "to", "all", "fields", "of", "the", "tuple" ]
[ "public", "void", "set", "fields", "(", "t0", "value", "0", ",", "t1", "value", "1", ",", "t2", "value", "2", ",", "t3", "value", "3", ",", "t4", "value", "4", ",", "t5", "value", "5", ",", "t6", "value", "6", ",", "t7", "value", "7", ",", "t8", "value", "8", ",", "t9", "value", "9", ",", "t10", "value", "1", "0", ",", "t11", "value", "1", "1", ",", "t12", "value", "1", "2", ")", "{", "this", "f", "0", "=", "value", "0", ";", "this", "f", "1", "=", "value", "1", ";", "this", "f", "2", "=", "value", "2", ";", "this", "f", "3", "=", "value", "3", ";", "this", "f", "4", "=", "value", "4", ";", "this", "f", "5", "=", "value", "5", ";", "this", "f", "6", "=", "value", "6", ";", "this", "f", "7", "=", "value", "7", ";", "this", "f", "8", "=", "value", "8", ";", "this", "f", "9", "=", "value", "9", ";", "this", "f", "1", "0", "=", "value", "1", "0", ";", "this", "f", "1", "1", "=", "value", "1", "1", ";", "this", "f", "1", "2", "=", "value", "1", "2", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "standard", "utilities", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "updated", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "public", "void", "update", "user", "(", "string", "username", ",", "user", "user", ")", "throws", "api", "exception", "{", "update", "user", "with", "http", "info", "(", "username", ",", "user", ")", ";", "}" ]
[ "two", "-", "arg", "method", "with", "no", "nullable", "params" ]
[ "public", "void", "normal", "normal", "(", "string", "first", ",", "integer", "second", ")", "{", "react", "to", "null", "parameters", "(", "first", ",", "second", ")", ";", "}" ]
[ "flag", "to", "load", "s", "q", "l", "cipher", "native", "libs", "(", "default", ":", "true", ")" ]
[ "public", "void", "set", "load", "s", "q", "l", "cipher", "native", "libs", "(", "boolean", "load", "s", "q", "l", "cipher", "native", "libs", ")", "{", "this", "load", "s", "q", "l", "cipher", "native", "libs", "=", "load", "s", "q", "l", "cipher", "native", "libs", ";", "}" ]
[ "restart", "a", "particular", "data", "node" ]
[ "public", "synchronized", "boolean", "restart", "data", "node", "(", "int", "idn", ",", "boolean", "keep", "port", ",", "boolean", "expire", "on", "n", "n", ")", "throws", "i", "o", "exception", "{", "data", "node", "properties", "dnprop", "=", "stop", "data", "node", "(", "idn", ")", ";", "if", "(", "expire", "on", "n", "n", ")", "{", "set", "data", "node", "dead", "(", "dnprop", "datanode", "get", "datanode", "id", "(", ")", ")", ";", "}", "if", "(", "dnprop", "=", "=", "null", ")", "{", "return", "false", ";", "}", "else", "{", "return", "restart", "data", "node", "(", "dnprop", ",", "keep", "port", ")", ";", "}", "}" ]
[ "creates", "a", "new", "programmatic", "query", "to", "search", "for", "{", "@", "link", "historic", "variable", "instance", "}", "s" ]
[ "historic", "variable", "instance", "query", "create", "historic", "variable", "instance", "query", "(", ")", ";" ]
[ "delete", "a", "component" ]
[ "public", "void", "delete", "component", "(", "component", "instance", "id", "instance", "id", ",", "string", "container", "id", ")", "throws", "i", "o", "exception", "{", "string", "path", "=", "registry", "utils", "component", "path", "(", "user", ",", "service", "class", ",", "instance", "name", ",", "container", "id", ")", ";", "log", "info", "(", "instance", "id", "+", "\"", ":", "deleting", "registry", "path", "\"", "+", "path", ")", ";", "registry", "operations", "delete", "(", "path", ",", "false", ")", ";", "}" ]
[ "returns", "a", "{", "@", "link", "request", "options", "}", "object", "with", "{", "@", "link", "#", "format", "(", "decode", "format", ")", "}", "set" ]
[ "public", "static", "request", "options", "format", "of", "(", "@", "non", "null", "decode", "format", "format", ")", "{", "return", "new", "request", "options", "(", ")", "format", "(", "format", ")", ";", "}" ]
[ "creates", "a", "data", "stream", "from", "the", "given", "iterator", "because", "the", "iterator", "will", "remain", "unmodified", "until", "the", "actual", "execution", "happens", ",", "the", "type", "of", "data", "returned", "by", "the", "iterator", "must", "be", "given", "explicitly", "in", "the", "form", "of", "the", "type", "class", "(", "this", "is", "due", "to", "the", "fact", "that", "the", "java", "compiler", "erases", "the", "generic", "type", "information", ")", "note", "that", "this", "operation", "will", "result", "in", "a", "non", "-", "parallel", "data", "stream", "source", ",", "i", "e", ",", "a", "data", "stream", "source", "with", "a", "parallelism", "of", "one" ]
[ "public", "<", "out", ">", "data", "stream", "source", "<", "out", ">", "from", "collection", "(", "iterator", "<", "out", ">", "data", ",", "class", "<", "out", ">", "type", ")", "{", "return", "from", "collection", "(", "data", ",", "type", "extractor", "get", "for", "class", "(", "type", ")", ")", ";", "}" ]
[ "returns", "the", "detail", "exit", "code", "if", "it", "exists", "if", "it", "does", "not", "exist", ",", "then", "return", "the", "default", "detailed", "exit", "code" ]
[ "public", "detailed", "exit", "code", "get", "detailed", "exit", "code", "(", ")", "{", "return", "detailed", "exit", "code", "!", "=", "null", "?", "detailed", "exit", "code", ":", "default", "detailed", "exit", "code", "(", ")", ";", "}" ]
[ "should", "the", "query", "be", "profiled", "defaults", "to", "<", "code", ">", "false", "<", "code", ">" ]
[ "public", "search", "request", "builder", "set", "profile", "(", "boolean", "profile", ")", "{", "source", "builder", "(", ")", "profile", "(", "profile", ")", ";", "return", "this", ";", "}" ]
[ "return", "the", "open", "a", "p", "i", "type", "for", "the", "property" ]
[ "public", "string", "get", "schema", "type", "(", "schema", "p", ")", "{", "string", "open", "a", "p", "i", "type", "=", "super", "get", "schema", "type", "(", "p", ")", ";", "string", "ref", "=", "p", "get", "$", "ref", "(", ")", ";", "string", "type", "=", "null", ";", "if", "(", "ref", "!", "=", "null", "&", "&", "!", "ref", "is", "empty", "(", ")", ")", "{", "type", "=", "open", "a", "p", "i", "type", ";", "}", "else", "if", "(", "\"", "object", "\"", "equals", "(", "open", "a", "p", "i", "type", ")", "&", "&", "is", "any", "type", "schema", "(", "p", ")", ")", "{", "/", "/", "arbitrary", "type", "note", "this", "is", "not", "the", "same", "thing", "as", "free", "-", "form", "object", "type", "=", "\"", "interface", "{", "}", "\"", ";", "}", "else", "if", "(", "type", "mapping", "contains", "key", "(", "open", "a", "p", "i", "type", ")", ")", "{", "type", "=", "type", "mapping", "get", "(", "open", "a", "p", "i", "type", ")", ";", "if", "(", "language", "specific", "primitives", "contains", "(", "type", ")", ")", "return", "(", "type", ")", ";", "}", "else", "type", "=", "open", "a", "p", "i", "type", ";", "return", "type", ";", "}" ]
[ "returns", "the", "next", "pseudorandom", ",", "uniformly", "distributed", "float", "value", "between", "<", "code", ">", "0", "0", "<", "code", ">", "and", "<", "code", ">", "1", "0", "<", "code", ">", "from", "the", "given", "random", "sequence" ]
[ "public", "static", "double", "next", "double", "(", "random", "random", ")", "{", "return", "random", "next", "double", "(", ")", ";", "}" ]
[ "determine", "if", "the", "project", "is", "using", "the", "android", "annotations", "library" ]
[ "private", "static", "boolean", "is", "using", "android", "annotations", "(", "@", "non", "null", "object", "object", ")", "{", "if", "(", "!", "object", "get", "class", "(", ")", "get", "simple", "name", "(", ")", "ends", "with", "(", "\"", "\"", ")", ")", "{", "return", "false", ";", "}", "try", "{", "class", "clazz", "=", "class", "for", "name", "(", "\"", "org", "androidannotations", "api", "view", "has", "views", "\"", ")", ";", "return", "clazz", "is", "instance", "(", "object", ")", ";", "}", "catch", "(", "class", "not", "found", "exception", "e", ")", "{", "return", "false", ";", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "protected", "final", "string", "listing", "string", "0", "(", "boolean", "note", "indices", ")", "{", "return", "get", "opcode", "(", ")", "get", "format", "(", ")", "listing", "string", "(", "this", ",", "note", "indices", ")", ";", "}" ]
[ "draws", "the", "scene", "with", "a", "given", "eye", "pose", "and", "type" ]
[ "public", "void", "draw", "frame", "(", "float", "[", "]", "view", "projection", "matrix", ",", "boolean", "right", "eye", ")", "{", "/", "/", "gl", "clear", "isn", "'", "t", "strictly", "necessary", "when", "rendering", "fully", "spherical", "panoramas", ",", "but", "it", "can", "improve", "/", "/", "performance", "on", "tiled", "renderers", "by", "causing", "the", "gpu", "to", "discard", "previous", "data", "gles20", "gl", "clear", "(", "gles20", "gl", "color", "buffer", "bit", ")", ";", "check", "gl", "error", "(", ")", ";", "if", "(", "frame", "available", "compare", "and", "set", "(", "true", ",", "false", ")", ")", "{", "assertions", "check", "not", "null", "(", "surface", "texture", ")", "update", "tex", "image", "(", ")", ";", "check", "gl", "error", "(", ")", ";", "if", "(", "reset", "rotation", "at", "next", "frame", "compare", "and", "set", "(", "true", ",", "false", ")", ")", "{", "matrix", "set", "identity", "m", "(", "rotation", "matrix", ",", "0", ")", ";", "}", "long", "last", "frame", "timestamp", "ns", "=", "surface", "texture", "get", "timestamp", "(", ")", ";", "long", "sample", "timestamp", "us", "=", "sample", "timestamp", "queue", "poll", "(", "last", "frame", "timestamp", "ns", ")", ";", "if", "(", "sample", "timestamp", "us", "!", "=", "null", ")", "{", "frame", "rotation", "queue", "poll", "rotation", "matrix", "(", "rotation", "matrix", ",", "sample", "timestamp", "us", ")", ";", "}", "projection", "projection", "=", "projection", "queue", "poll", "floor", "(", "last", "frame", "timestamp", "ns", ")", ";", "if", "(", "projection", "!", "=", "null", ")", "{", "projection", "renderer", "set", "projection", "(", "projection", ")", ";", "}", "}", "matrix", "multiply", "m", "m", "(", "temp", "matrix", ",", "0", ",", "view", "projection", "matrix", ",", "0", ",", "rotation", "matrix", ",", "0", ")", ";", "projection", "renderer", "draw", "(", "texture", "id", ",", "temp", "matrix", ",", "right", "eye", ")", ";", "}" ]
[ "executes", "a", "{", "@", "link", "job", "query", "impl", "}", "and", "returns", "the", "matching", "{", "@", "link", "suspended", "job", "entity", "}", "instances" ]
[ "list", "<", "job", ">", "find", "jobs", "by", "query", "criteria", "(", "suspended", "job", "query", "impl", "job", "query", ",", "page", "page", ")", ";" ]