docstring_tokens
list
code_tokens
list
[ "define", "if", "the", "rendered", "link", "will", "use", "the", "default", "get", "method", "or", "post" ]
[ "return", "false", ";" ]
[ "you", "can", "override", "this", "method", "and", "do", "a", "blocking", "call", "to", "a", "server", "to", "upload", "the", "leak", "trace", "and", "the", "heap", "dump", "don", "t", "forget", "to", "check", "{" ]
[]
[ "<", "p", ">", "the", "name", "of", "the", "load", "balancer", "<", "/", "p", ">" ]
[ "set", "load", "balancer", "name", "(", "load", "balancer", "name", ")", ";", "return", "this", ";" ]
[ "/", "*" ]
[ "if", "(", "f", "refactoring", "status", "!", "=", "null", "&", "&", "f", "refactoring", "status", "has", "fatal", "error", "(", ")", ")", "{", "return", "f", "refactoring", "status", "get", "entry", "with", "highest", "severity", "(", ")", "get", "message", "(", ")", ";", "}", "return", "super", "get", "additional", "proposal", "info", "(", "monitor", ")", ";" ]
[ "store", "chunk", "by", "chunk", "using", "write", "batch", "size", "{", "@", "link", "#", "write", "batch", "size", "}" ]
[ "final", "map", "<", "integer", ",", "list", "<", "delayed", "entry", ">", ">", "fails", "per", "partition", "=", "new", "hash", "map", "<", "integer", ",", "list", "<", "delayed", "entry", ">", ">", "(", ")", ";", "int", "page", "=", "0", ";", "list", "<", "delayed", "entry", ">", "delayed", "entry", "list", ";", "while", "(", "(", "delayed", "entry", "list", "=", "get", "batch", "chunk", "(", "sorted", "delayed", "entries", ",", "write", "batch", "size", ",", "page", "+", "+", ")", ")", "!", "=", "null", ")", "{", "final", "map", "<", "integer", ",", "list", "<", "delayed", "entry", ">", ">", "fails", "=", "process", "internal", "(", "delayed", "entry", "list", ")", ";", "final", "set", "<", "map", "entry", "<", "integer", ",", "list", "<", "delayed", "entry", ">", ">", ">", "entries", "=", "fails", "entry", "set", "(", ")", ";", "for", "(", "map", "entry", "<", "integer", ",", "list", "<", "delayed", "entry", ">", ">", "entry", ":", "entries", ")", "{", "final", "integer", "partition", "id", "=", "entry", "get", "key", "(", ")", ";", "final", "list", "<", "delayed", "entry", ">", "tmp", "fail", "list", "=", "entry", "get", "value", "(", ")", ";", "list", "<", "delayed", "entry", ">", "fail", "list", "=", "fails", "per", "partition", "get", "(", "partition", "id", ")", ";", "if", "(", "fail", "list", "=", "=", "null", "|", "|", "fail", "list", "is", "empty", "(", ")", ")", "{", "fails", "per", "partition", "put", "(", "partition", "id", ",", "tmp", "fail", "list", ")", ";", "fail", "list", "=", "fails", "per", "partition", "get", "(", "partition", "id", ")", ";", "}", "fail", "list", "add", "all", "(", "tmp", "fail", "list", ")", ";", "}", "}", "return", "fails", "per", "partition", ";" ]
[ "{" ]
[ "return", "testng", "name", ";" ]
[ "returns", "a", "hint", "as", "to", "whether", "it", "makes", "sense", "to", "retry", "upon", "this", "exception", "default", "is", "true", "but", "subclass", "may", "override" ]
[ "return", "true", ";" ]
[ "creates", "and", "returns", "a", "copy", "of", "name", "address" ]
[ "return", "new", "name", "address", "(", "this", ")", ";" ]
[ "indicates", "whether", "some", "other", "object", "is", "equal", "to", "this", "name", "address" ]
[ "name", "address", "naddr", "=", "(", "name", "address", ")", "obj", ";", "return", "url", "equals", "(", "naddr", "get", "address", "(", ")", ")", ";" ]
[ "gets", "boolean", "value", "to", "indicate", "if", "name", "address", "has", "display", "name" ]
[ "return", "name", "!", "=", "null", ";" ]
[ "removes", "display", "name", "from", "name", "address", "(", "if", "it", "exists", ")" ]
[ "name", "=", "null", ";" ]
[ "sets", "address", "of", "name", "address" ]
[ "url", "=", "address", ";" ]
[ "sets", "display", "name", "of", "header" ]
[ "name", "=", "display", "name", ";" ]
[ "whether", "two", "name", "addresses", "are", "equals" ]
[ "return", "(", "name", "=", "=", "naddr", "name", "&", "&", "url", "=", "=", "naddr", "url", ")", ";" ]
[ "<", "p", ">", "a", "list", "of", "configuration", "items", "that", "you", "want", "to", "tag", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "configuration", "ids", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "configuration", "ids", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "configuration", "ids", "=", "=", "null", ")", "{", "set", "configuration", "ids", "(", "new", "java", "util", "array", "list", "<", "string", ">", "(", "configuration", "ids", "length", ")", ")", ";", "}", "for", "(", "string", "ele", ":", "configuration", "ids", ")", "{", "this", "configuration", "ids", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "a", "list", "of", "configuration", "items", "that", "you", "want", "to", "tag", "<", "/", "p", ">" ]
[ "set", "configuration", "ids", "(", "configuration", "ids", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "tags", "that", "you", "want", "to", "associate", "with", "one", "or", "more", "configuration", "items", "specify", "the", "tags", "that", "you", "want", "to", "create", "in", "a", "<", "i", ">", "key", "<", "/", "i", ">", "-", "<", "i", ">", "value", "<", "/", "i", ">", "format", "for", "example", ":", "<", "/", "p", ">", "<", "p", ">", "<", "code", ">", "{", "key", ":", "server", "type", "value", ":", "web", "server", "}", "<", "/", "code", ">", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "tags", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "tags", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "tags", "=", "=", "null", ")", "{", "set", "tags", "(", "new", "java", "util", "array", "list", "<", "tag", ">", "(", "tags", "length", ")", ")", ";", "}", "for", "(", "tag", "ele", ":", "tags", ")", "{", "this", "tags", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "reduces", "the", "number", "of", "discrete", "components", "in", "the", "domain", "if", "there", "are", "too", "many" ]
[ "value", "set", "simplified", "value", "set", "=", "values", "get", "values", "processor", "(", ")", "<", "optional", "<", "value", "set", ">", ">", "transform", "(", "ranges", "-", ">", "{", "if", "(", "ranges", "get", "ordered", "ranges", "(", ")", "size", "(", ")", "<", "=", "32", ")", "{", "return", "optional", "empty", "(", ")", ";", "}", "return", "optional", "of", "(", "value", "set", "of", "ranges", "(", "ranges", "get", "span", "(", ")", ")", ")", ";", "}", ",", "discrete", "values", "-", ">", "{", "if", "(", "discrete", "values", "get", "values", "(", ")", "size", "(", ")", "<", "=", "32", ")", "{", "return", "optional", "empty", "(", ")", ";", "}", "return", "optional", "of", "(", "value", "set", "all", "(", "values", "get", "type", "(", ")", ")", ")", ";", "}", ",", "all", "or", "none", "-", ">", "optional", "empty", "(", ")", ")", "or", "else", "(", "values", ")", ";", "return", "domain", "create", "(", "simplified", "value", "set", ",", "null", "allowed", ")", ";" ]
[ "creates", "a", "keyset", "that", "contains", "a", "single", "key", "of", "template", "{", "@", "code", "key", "template", "}", "encrypts", "it", "using", "{", "@", "code", "credential", "path", "}", "and", "{", "@", "code", "master", "key", "uri", "}", "then", "encodes", "it", "in", "{", "@", "code", "out", "format", "}" ]
[ "byte", "array", "output", "stream", "output", "stream", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "create", "keyset", "(", "output", "stream", ",", "out", "format", ",", "master", "key", "uri", ",", "credential", "path", ",", "key", "template", ")", ";", "return", "new", "byte", "array", "input", "stream", "(", "output", "stream", "to", "byte", "array", "(", ")", ")", ";" ]
[ "creates", "a", "keyset", "that", "contains", "a", "single", "key", "of", "template", "{" ]
[ "keyset", "handle", "handle", "=", "keyset", "manager", "with", "empty", "keyset", "(", ")", "rotate", "(", "key", "template", ")", "get", "keyset", "handle", "(", ")", ";", "write", "keyset", "(", "handle", ",", "output", "stream", ",", "out", "format", ",", "master", "key", "uri", ",", "credential", "path", ")", ";" ]
[ "writes", "the", "keyset", "managed", "by", "{" ]
[ "keyset", "writer", "writer", "=", "create", "keyset", "writer", "(", "output", "stream", ",", "out", "format", ")", ";", "if", "(", "master", "key", "uri", "!", "=", "null", ")", "{", "aead", "master", "key", "=", "kms", "clients", "get", "auto", "loaded", "(", "master", "key", "uri", ")", "with", "credentials", "(", "credential", "path", ")", "get", "aead", "(", "master", "key", "uri", ")", ";", "handle", "write", "(", "writer", ",", "master", "key", ")", ";", "}", "else", "{", "cleartext", "keyset", "handle", "write", "(", "handle", ",", "writer", ")", ";", "}" ]
[ "manipulates", "a", "keyset" ]
[]
[ "returns", "a", "{" ]
[ "keyset", "reader", "reader", "=", "create", "keyset", "reader", "(", "input", "stream", ",", "in", "format", ")", ";", "keyset", "handle", "handle", ";", "if", "(", "master", "key", "uri", "!", "=", "null", ")", "{", "aead", "master", "key", "=", "kms", "clients", "get", "auto", "loaded", "(", "master", "key", "uri", ")", "with", "credentials", "(", "credential", "path", ")", "get", "aead", "(", "master", "key", "uri", ")", ";", "return", "keyset", "handle", "read", "(", "reader", ",", "master", "key", ")", ";", "}", "return", "cleartext", "keyset", "handle", "read", "(", "reader", ")", ";" ]
[ "creates", "proxy", "of", "referenced", "*", "-", "to", "-", "one", "entity" ]
[ "final", "entity", "persister", "persister", "=", "versions", "reader", "get", "session", "implementor", "(", ")", "get", "factory", "(", ")", "get", "metamodel", "(", ")", "entity", "persister", "(", "entity", "name", ")", ";", "return", "persister", "create", "proxy", "(", "(", "serializable", ")", "entity", "id", ",", "new", "to", "one", "delegate", "session", "implementor", "(", "versions", "reader", ",", "entity", "class", ",", "entity", "id", ",", "revision", ",", "removed", ",", "envers", "service", ")", ")", ";" ]
[ "creates", "hibernate", "proxy", "or", "retrieves", "the", "complete", "object", "of", "an", "entity", "if", "proxy", "is", "not", "allowed", "(", "e", "g" ]
[ "final", "entity", "persister", "persister", "=", "versions", "reader", "get", "session", "implementor", "(", ")", "get", "factory", "(", ")", "get", "metamodel", "(", ")", "entity", "persister", "(", "entity", "name", ")", ";", "if", "(", "persister", "has", "proxy", "(", ")", ")", "{", "return", "create", "proxy", "(", "versions", "reader", ",", "entity", "class", ",", "entity", "name", ",", "entity", "id", ",", "revision", ",", "removed", ",", "envers", "service", ")", ";", "}", "return", "load", "immediate", "(", "versions", "reader", ",", "entity", "class", ",", "entity", "name", ",", "entity", "id", ",", "revision", ",", "removed", ",", "envers", "service", ")", ";" ]
[ "/", "*", "package" ]
[ "abstract", "int", "get", "device", "type", "(", ")", ";" ]
[ "run", "a", "{" ]
[ "background", "thread", "get", "handler", "(", ")", "post", "(", "r", ")", ";" ]
[ "run", "a", "{" ]
[ "final", "handler", "h", "=", "background", "thread", "get", "handler", "(", ")", ";", "h", "remove", "callbacks", "(", "r", ")", ";", "h", "post", "delayed", "(", "r", ",", "delay", "millis", ")", ";" ]
[ "returns", "policy", "which", "is", "responsible", "for", "missing", "or", "incorrect", "artifact", "checksum" ]
[ "return", "checksum", "policy", ";" ]
[ "returns", "update", "policy", "which", "is", "responsible", "for", "update", "period", "(", "how", "often", "update", "should", "occur", "i", "e", "daily", ")" ]
[ "return", "update", "policy", ";" ]
[ "test", "that", "a", "manually", "triggered", "exception", "with", "data", "fires", "with", "the", "data", "in", "receive", "error" ]
[ "final", "long", "time", "=", "1000000", ";", "foreign", "exception", "listener", "listener", "=", "mockito", "mock", "(", "foreign", "exception", "listener", "class", ")", ";", "timeout", "exception", "injector", "timer", "=", "new", "timeout", "exception", "injector", "(", "listener", ",", "time", ")", ";", "timer", "start", "(", ")", ";", "timer", "trigger", "(", ")", ";", "mockito", "verify", "(", "listener", ")", "receive", "(", "mockito", "any", "(", ")", ")", ";" ]
[ "{" ]
[ "mgr", "begin", "(", ")", ";" ]
[ "{" ]
[ "mgr", "commit", "(", ")", ";" ]
[ "{" ]
[ "return", "mgr", "get", "status", "(", ")", ";" ]
[ "{" ]
[ "transaction", "tx", "=", "mgr", "get", "transaction", "(", ")", ";", "if", "(", "tx", "=", "=", "null", ")", "return", "null", ";", "return", "new", "web", "sphere", "transaction", "(", "tx", ")", ";" ]
[ "{" ]
[ "mgr", "resume", "(", "tobj", ")", ";" ]
[ "{" ]
[ "mgr", "rollback", "(", ")", ";" ]
[ "{" ]
[ "mgr", "set", "rollback", "only", "(", ")", ";" ]
[ "{" ]
[ "mgr", "set", "transaction", "timeout", "(", "seconds", ")", ";" ]
[ "{" ]
[ "return", "mgr", "suspend", "(", ")", ";" ]
[ "{" ]
[ "tx", "commit", "(", ")", ";" ]
[ "{" ]
[ "return", "tx", "delist", "resource", "(", "xa", "res", ",", "flag", ")", ";" ]
[ "{" ]
[ "return", "tx", "get", "status", "(", ")", ";" ]
[ "{" ]
[ "tx", "register", "synchronization", "(", "sync", ")", ";" ]
[ "{" ]
[ "tx", "rollback", "(", ")", ";" ]
[ "{" ]
[ "tx", "set", "rollback", "only", "(", ")", ";" ]
[ "returns", "{" ]
[ "public", "abstract", "boolean", "is", "result", "empty", "(", ")", ";" ]
[ "{" ]
[ "super", "advance", "(", ")", ";", "if", "(", "cur", "rec", "!", "=", "null", "&", "&", "advance", "c", "!", "=", "null", ")", "advance", "c", "apply", "(", "cur", "rec", "get", "2", "(", ")", ")", ";" ]
[ "{" ]
[ "return", "new", "file", "write", "ahead", "log", "manager", "read", "file", "handle", "(", "file", "i", "o", ",", "ser", ",", "in", ",", "null", ")", ";" ]
[ "{" ]
[ "return", "!", "skip", "contains", "(", "type", ")", ";" ]
[ "them", "won", "t", "start", "up", "are", "we", "happy", "with", "this", "?" ]
[ "for", "(", "core", "descriptor", "cd", ":", "core", "descriptors", ")", "{", "path", "prop", "file", "=", "this", "root", "directory", "resolve", "(", "cd", "get", "instance", "dir", "(", ")", ")", "resolve", "(", "properties", "filename", ")", ";", "write", "properties", "file", "(", "cd", ",", "prop", "file", ")", ";", "}" ]
[ "{" ]
[ "return", "s", "to", "string", "(", "zk", "force", "node", "fail", "message", "class", ",", "this", ")", ";" ]
[ "method", "engine", "canonicalize", "sub", "tree", "@", "inherit", "doc", "@", "param", "root", "node" ]
[ "return", "engine", "canonicalize", "sub", "tree", "(", "root", "node", ",", "\"", "\"", ",", "null", ")", ";" ]
[ "method", "engine", "canonicalize", "sub", "tree", "@", "inherit", "doc", "@", "param", "root", "node", "@", "param", "inclusive", "namespaces" ]
[ "return", "engine", "canonicalize", "sub", "tree", "(", "root", "node", ",", "inclusive", "namespaces", ",", "null", ",", "filter", ")", ";" ]
[ "method", "engine", "canonicalize", "sub", "tree" ]
[ "inclusive", "n", "s", "set", "=", "inclusive", "namespaces", "prefix", "str", "2", "set", "(", "inclusive", "namespaces", ")", ";", "return", "super", "engine", "canonicalize", "sub", "tree", "(", "root", "node", ",", "excl", ",", "filter", ")", ";" ]
[ "other", "user", "trying", "to", "initialize", "it", "leaves", "it", "non", "-", "active" ]
[ "m", "trampoline", "initialize", "(", "non", "user", "system", ")", ";", "assert", "false", "(", "m", "trampoline", "is", "backup", "service", "active", "(", "non", "user", "system", ")", ")", ";" ]
[ "verify", "that", "backup", "manager", "service", "is", "not", "initialized", "if", "suppress", "file", "exists" ]
[ "when", "(", "m", "suppress", "file", "mock", "exists", "(", ")", ")", "then", "return", "(", "true", ")", ";", "trampoline", "testable", "trampoline", "=", "new", "trampoline", "testable", "(", "m", "context", "mock", ")", ";", "trampoline", "initialize", "(", "user", "handle", "user", "system", ")", ";", "assert", "false", "(", "trampoline", "is", "backup", "service", "active", "(", "user", "handle", "user", "system", ")", ")", ";" ]
[ "construct", "a", "synchronous", "implementation", "of", "amazon", "direct", "connect", "using", "the", "current", "builder", "configuration" ]
[ "return", "new", "amazon", "direct", "connect", "client", "(", "params", ")", ";" ]
[ "clones", "the", "specified", "bytes", "and", "uses", "the", "clone", "to", "create", "a", "new", "{" ]
[ "preconditions", "check", "argument", "(", "bytes", "length", "=", "=", "num", "bytes", "in", "hash", ")", ";", "byte", "buffer", "buffer", "=", "byte", "buffer", "wrap", "(", "bytes", ")", "order", "(", "byte", "order", "for", "fields", ")", ";", "return", "new", "sha", "1", "hash", "code", "(", "buffer", "get", "int", "(", ")", ",", "buffer", "get", "long", "(", ")", ",", "buffer", "get", "long", "(", ")", ")", ";" ]
[ "updates", "the", "specified", "{", "@", "link", "hasher", "}", "by", "putting", "the", "20", "bytes", "of", "this", "sha", "-", "1", "to", "it", "in", "order" ]
[ "hasher", "put", "int", "(", "first", "four", "bytes", ")", ";", "hasher", "put", "long", "(", "next", "eight", "bytes", ")", ";", "hasher", "put", "long", "(", "last", "eight", "bytes", ")", ";", "return", "hasher", ";" ]
[ "<", "strong", ">", "this", "method", "should", "be", "used", "sparingly", "as", "we", "are", "trying", "to", "favor", "{", "@", "link", "sha", "1", "hash", "code", "}", "over", "{", "@", "link", "hash", "code", "}", "where", "appropriate", "<", "/", "strong", ">", "currently", "the", "{", "@", "code", "file", "hash", "cache", "}", "api", "is", "written", "in", "terms", "of", "{", "@", "code", "hash", "code", "}", "so", "conversions", "are", "common", "as", "we", "migrate", "it", "to", "use", "{", "@", "link", "sha", "1", "hash", "code", "}", "this", "method", "should", "become", "unnecessary" ]
[ "return", "hash", "code", "from", "string", "(", "get", "hash", "(", ")", ")", ";" ]
[ "same", "as", "{" ]
[ "return", "get", "hash", "(", ")", ";" ]
[ "tests", "{" ]
[ "lock", "lock", "=", "new", "reentrant", "lock", "(", ")", ";", "try", "(", "lock", "resource", "r", "1", "=", "new", "lock", "resource", "(", "lock", ")", ")", "{", "try", "(", "lock", "resource", "r", "2", "=", "new", "lock", "resource", "(", "lock", ")", ")", "{", "assert", "true", "(", "lock", "try", "lock", "(", ")", ")", ";", "lock", "unlock", "(", ")", ";", "}", "}" ]
[ "tests", "{" ]
[ "reentrant", "read", "write", "lock", "lock", "=", "new", "reentrant", "read", "write", "lock", "(", ")", ";", "try", "(", "lock", "resource", "r", "1", "=", "new", "lock", "resource", "(", "lock", "read", "lock", "(", ")", ")", ")", "{", "try", "(", "lock", "resource", "r", "2", "=", "new", "lock", "resource", "(", "lock", "read", "lock", "(", ")", ")", ")", "{", "assert", "equals", "(", "lock", "get", "read", "hold", "count", "(", ")", ",", "2", ")", ";", "assert", "true", "(", "lock", "read", "lock", "(", ")", "try", "lock", "(", ")", ")", ";", "lock", "read", "lock", "(", ")", "unlock", "(", ")", ";", "}", "}", "assert", "equals", "(", "lock", "get", "read", "hold", "count", "(", ")", ",", "0", ")", ";", "try", "(", "lock", "resource", "r", "1", "=", "new", "lock", "resource", "(", "lock", "write", "lock", "(", ")", ")", ")", "{", "try", "(", "lock", "resource", "r", "2", "=", "new", "lock", "resource", "(", "lock", "read", "lock", "(", ")", ")", ")", "{", "assert", "true", "(", "lock", "is", "write", "locked", "by", "current", "thread", "(", ")", ")", ";", "assert", "equals", "(", "lock", "get", "read", "hold", "count", "(", ")", ",", "1", ")", ";", "}", "}", "assert", "false", "(", "lock", "is", "write", "locked", "by", "current", "thread", "(", ")", ")", ";", "assert", "equals", "(", "lock", "get", "read", "hold", "count", "(", ")", ",", "0", ")", ";", "try", "(", "lock", "resource", "r", "=", "new", "lock", "resource", "(", "lock", "read", "lock", "(", ")", ")", ")", "{", "assert", "false", "(", "lock", "write", "lock", "(", ")", "try", "lock", "(", ")", ")", ";", "}" ]
[ "set", "the", "end", "of", "statement", "delimiter" ]
[ "this", "delimiter", "=", "delimiter", ";", "return", "this", ";" ]
[ "constructs", "new", "<", "code", ">", "automaton", "<", "/", "code", ">", "from", "this", "<", "code", ">", "reg", "exp", "<", "/", "code", ">", "same", "as", "<", "code", ">", "to", "automaton", "(", "null", ")", "<", "/", "code", ">", "(", "empty", "automaton", "map", ")" ]
[ "return", "to", "automaton", "(", "null", ",", "null", ",", "operations", "default", "max", "determinized", "states", ")", ";" ]
[ "constructs", "new", "<", "code", ">", "automaton", "<", "/", "code", ">", "from", "this", "<", "code", ">", "reg", "exp", "<", "/", "code", ">", "the", "constructed", "automaton", "is", "minimal", "and", "deterministic", "and", "has", "no", "transitions", "to", "dead", "states" ]
[ "return", "to", "automaton", "(", "null", ",", "null", ",", "max", "determinized", "states", ")", ";" ]
[ "constructs", "new", "<", "code", ">", "automaton", "<", "/", "code", ">", "from", "this", "<", "code", ">", "reg", "exp", "<", "/", "code", ">", "the", "constructed", "automaton", "is", "minimal", "and", "deterministic", "and", "has", "no", "transitions", "to", "dead", "states" ]
[ "return", "to", "automaton", "(", "null", ",", "automaton", "provider", ",", "max", "determinized", "states", ")", ";" ]
[ "constructs", "new", "<", "code", ">", "automaton", "<", "/", "code", ">", "from", "this", "<", "code", ">", "reg", "exp", "<", "/", "code", ">", "the", "constructed", "automaton", "is", "minimal", "and", "deterministic", "and", "has", "no", "transitions", "to", "dead", "states" ]
[ "return", "to", "automaton", "(", "automata", ",", "null", ",", "max", "determinized", "states", ")", ";" ]
[ "constructs", "string", "from", "parsed", "regular", "expression" ]
[ "string", "builder", "b", "=", "new", "string", "builder", "(", ")", ";", "to", "string", "builder", "(", "b", ")", ";", "return", "b", "to", "string", "(", ")", ";" ]
[ "like", "to", "string", "but", "more", "verbose", "(", "shows", "the", "higherchy", "more", "clearly", ")" ]
[ "string", "builder", "b", "=", "new", "string", "builder", "(", ")", ";", "to", "string", "tree", "(", "b", ",", "\"", "\"", ")", ";", "return", "b", "to", "string", "(", ")", ";" ]
[ "returns", "set", "of", "automaton", "identifiers", "that", "occur", "in", "this", "regular", "expression" ]
[ "hash", "set", "<", "string", ">", "set", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "get", "identifiers", "(", "set", ")", ";", "return", "set", ";" ]
[ "closes", "the", "current", "editor" ]
[ "final", "project", "project", "=", "platform", "data", "keys", "project", "get", "data", "(", "context", ")", ";", "if", "(", "project", "!", "=", "null", ")", "{", "final", "file", "editor", "manager", "ex", "file", "editor", "manager", "=", "file", "editor", "manager", "ex", "get", "instance", "ex", "(", "project", ")", ";", "final", "editor", "window", "window", "=", "file", "editor", "manager", "get", "current", "window", "(", ")", ";", "final", "editor", "tabbed", "container", "tabbed", "pane", "=", "window", "get", "tabbed", "pane", "(", ")", ";", "if", "(", "tabbed", "pane", "!", "=", "null", ")", "{", "if", "(", "tabbed", "pane", "get", "tab", "count", "(", ")", ">", "1", ")", "{", "final", "int", "index", "=", "tabbed", "pane", "get", "selected", "index", "(", ")", ";", "tabbed", "pane", "remove", "tab", "at", "(", "index", ",", "index", "+", "1", ")", ";", "}", "else", "{", "tabbed", "pane", "close", "(", ")", ";", "}", "}", "else", "{", "virtual", "file", "virtual", "file", "=", "editor", "data", "get", "virtual", "file", "(", "editor", ")", ";", "if", "(", "virtual", "file", "!", "=", "null", ")", "{", "file", "editor", "manager", "close", "file", "(", "virtual", "file", ")", ";", "}", "}", "}" ]
[ "saves", "specific", "file", "in", "the", "project" ]
[ "file", "document", "manager", "get", "instance", "(", ")", "save", "document", "(", "editor", "get", "document", "(", ")", ")", ";" ]
[ "saves", "all", "files", "in", "the", "project" ]
[ "file", "document", "manager", "get", "instance", "(", ")", "save", "all", "documents", "(", ")", ";" ]
[ "<", "p", ">", "the", "numeric", "value", "of", "the", "error", "<", "/", "p", ">" ]
[ "this", "description", "=", "description", ";" ]
[ "only", "for", "test" ]
[ "return", "this", "user", "ugi", ";" ]
[ "{" ]
[ "return", "new", "org", "jooq", "meta", "cubrid", "dba", "tables", "db", "index", "key", "(", "alias", ",", "this", ")", ";" ]
[ "rename", "this", "table" ]
[ "return", "new", "org", "jooq", "meta", "cubrid", "dba", "tables", "db", "index", "key", "(", "name", ",", "null", ")", ";" ]
[ "get", "the", "timeline", "entities", "that", "the", "given", "user", "have", "access", "to", "the", "meaning", "of", "each", "argument", "has", "been", "documented", "with", "{", "@", "link", "timeline", "reader", "#", "get", "entities", "}" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "get", "entities", "ops", "(", ")", ";", "try", "{", "timeline", "entities", "entities", "=", "do", "get", "entities", "(", "entity", "type", ",", "primary", "filter", ",", "secondary", "filter", ",", "window", "start", ",", "window", "end", ",", "from", "id", ",", "from", "ts", ",", "limit", ",", "fields", ",", "caller", "u", "g", "i", ")", ";", "metrics", "incr", "get", "entities", "total", "(", "entities", "get", "entities", "(", ")", "size", "(", ")", ")", ";", "return", "entities", ";", "}", "finally", "{", "metrics", "add", "get", "entities", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "get", "the", "single", "timeline", "entity", "that", "the", "given", "user", "has", "access", "to", "the", "meaning", "of", "each", "argument", "has", "been", "documented", "with", "{", "@", "link", "timeline", "reader", "#", "get", "entity", "}" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "get", "entity", "ops", "(", ")", ";", "try", "{", "return", "do", "get", "entity", "(", "entity", "type", ",", "entity", "id", ",", "fields", ",", "caller", "u", "g", "i", ")", ";", "}", "finally", "{", "metrics", "add", "get", "entity", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "get", "the", "events", "whose", "entities", "the", "given", "user", "has", "access", "to", "the", "meaning", "of", "each", "argument", "has", "been", "documented", "with", "{", "@", "link", "timeline", "reader", "#", "get", "entity", "timelines", "}" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "get", "events", "ops", "(", ")", ";", "try", "{", "timeline", "events", "events", "=", "do", "get", "events", "(", "entity", "type", ",", "entity", "ids", ",", "event", "types", ",", "window", "start", ",", "window", "end", ",", "limit", ",", "caller", "u", "g", "i", ")", ";", "metrics", "incr", "get", "events", "total", "(", "events", "get", "all", "events", "(", ")", "size", "(", ")", ")", ";", "return", "events", ";", "}", "finally", "{", "metrics", "add", "get", "events", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "store", "the", "timeline", "entities", "into", "the", "store", "and", "set", "the", "owner", "of", "them", "to", "the", "given", "user" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "post", "entities", "ops", "(", ")", ";", "try", "{", "return", "do", "post", "entities", "(", "entities", ",", "caller", "u", "g", "i", ")", ";", "}", "finally", "{", "metrics", "add", "post", "entities", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "add", "or", "update", "an", "domain", "if", "the", "domain", "already", "exists", "only", "the", "owner", "and", "the", "admin", "can", "update", "it" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "put", "domain", "ops", "(", ")", ";", "try", "{", "do", "put", "domain", "(", "domain", ",", "caller", "u", "g", "i", ")", ";", "}", "finally", "{", "metrics", "add", "put", "domain", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "get", "a", "single", "domain", "of", "the", "particular", "id", "if", "caller", "u", "g", "i", "is", "not", "the", "owner", "or", "the", "admin", "of", "the", "domain", "null", "will", "be", "returned" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "get", "domain", "ops", "(", ")", ";", "try", "{", "return", "do", "get", "domain", "(", "domain", "id", ",", "caller", "u", "g", "i", ")", ";", "}", "finally", "{", "metrics", "add", "get", "domain", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "get", "all", "the", "domains", "that", "belong", "to", "the", "given", "owner", "if", "caller", "u", "g", "i", "is", "not", "the", "owner", "or", "the", "admin", "of", "the", "domain", "empty", "list", "is", "going", "to", "be", "returned" ]
[ "long", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "metrics", "incr", "get", "domains", "ops", "(", ")", ";", "try", "{", "timeline", "domains", "domains", "=", "do", "get", "domains", "(", "owner", ",", "caller", "u", "g", "i", ")", ";", "metrics", "incr", "get", "domains", "total", "(", "domains", "get", "domains", "(", ")", "size", "(", ")", ")", ";", "return", "domains", ";", "}", "finally", "{", "metrics", "add", "get", "domains", "time", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "}" ]
[ "returns", "the", "requested", "collate" ]
[ "return", "collates", "get", "(", "name", ")", ";" ]
[ "this", "method", "removes", "all", "cached", "constants" ]
[ "wrapped", "handler", "purge", "constants", "(", ")", ";" ]
[ "/", "*", "returns", "a", "string", "value", "for", "the", "passed", "key", "in", "the", "passed", "map", "always", "returns", "instead", "of", "null" ]
[ "if", "(", "map", "=", "=", "null", "|", "|", "key", "=", "=", "null", "|", "|", "!", "map", "contains", "key", "(", "key", ")", "|", "|", "map", "get", "(", "key", ")", "=", "=", "null", ")", "{", "return", "\"", "\"", ";", "}", "return", "map", "get", "(", "key", ")", "to", "string", "(", ")", ";" ]
[ "/", "*", "returns", "an", "int", "value", "for", "the", "passed", "key", "in", "the", "passed", "map", "default", "value", "is", "returned", "if", "key", "doesn", "t", "exist", "or", "isn", "t", "a", "number" ]
[ "return", "get", "map", "int", "(", "map", ",", "key", ",", "0", ")", ";" ]
[ "/", "*", "long", "version", "of", "above" ]
[ "return", "get", "map", "long", "(", "map", ",", "key", ",", "0", ")", ";" ]
[ "/", "*", "float", "version", "of", "above" ]
[ "return", "get", "map", "float", "(", "map", ",", "key", ",", "0", ")", ";" ]
[ "/", "*", "double", "version", "of", "above" ]
[ "return", "get", "map", "double", "(", "map", ",", "key", ",", "0", ")", ";" ]
[ "/", "*", "returns", "a", "date", "object", "from", "the", "passed", "key", "in", "the", "passed", "map", "returns", "null", "if", "key", "doesn", "t", "exist", "or", "isn", "t", "a", "date" ]
[ "if", "(", "map", "=", "=", "null", "|", "|", "key", "=", "=", "null", "|", "|", "!", "map", "contains", "key", "(", "key", ")", ")", "{", "return", "null", ";", "}", "try", "{", "return", "(", "date", ")", "map", "get", "(", "key", ")", ";", "}", "catch", "(", "class", "cast", "exception", "e", ")", "{", "return", "null", ";", "}" ]
[ "/", "*", "package" ]
[ "try", "{", "geo", "location", "[", "]", "[", "]", "bounding", "box", "=", "new", "geo", "location", "[", "coordinates", "length", "(", ")", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "coordinates", "length", "(", ")", ";", "i", "+", "+", ")", "{", "j", "s", "o", "n", "array", "array", "=", "coordinates", "get", "j", "s", "o", "n", "array", "(", "i", ")", ";", "bounding", "box", "[", "i", "]", "=", "new", "geo", "location", "[", "array", "length", "(", ")", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "array", "length", "(", ")", ";", "j", "+", "+", ")", "{", "j", "s", "o", "n", "array", "coordinate", "=", "array", "get", "j", "s", "o", "n", "array", "(", "j", ")", ";", "bounding", "box", "[", "i", "]", "[", "j", "]", "=", "new", "geo", "location", "(", "coordinate", "get", "double", "(", "1", ")", ",", "coordinate", "get", "double", "(", "0", ")", ")", ";", "}", "}", "return", "bounding", "box", ";", "}", "catch", "(", "j", "s", "o", "n", "exception", "jsone", ")", "{", "throw", "new", "twitter", "exception", "(", "jsone", ")", ";", "}" ]
[ "static", "factory", "method", "for", "twitter", "-", "text", "-", "java" ]
[ "return", "new", "hashtag", "entity", "j", "s", "o", "n", "impl", "(", "start", ",", "end", ",", "text", ")", ";" ]
[ "static", "factory", "method", "for", "twitter", "-", "text", "-", "java" ]
[ "return", "new", "user", "mention", "entity", "j", "s", "o", "n", "impl", "(", "start", ",", "end", ",", "name", ",", "screen", "name", ",", "id", ")", ";" ]
[ "static", "factory", "method", "for", "twitter", "-", "text", "-", "java" ]
[ "return", "new", "u", "r", "l", "entity", "j", "s", "o", "n", "impl", "(", "start", ",", "end", ",", "url", ",", "expanded", "u", "r", "l", ",", "display", "u", "r", "l", ")", ";" ]
[ "the", "term", "text", "<", "p", ">", "this", "value", "is", "never", "{" ]
[ "return", "term", ";" ]
[ "the", "number", "of", "documents", "this", "term", "occurs", "in", "<", "p", ">", "this", "is", "the", "document", "-", "frequency", "for", "the", "term", ":", "the", "count", "of", "documents", "where", "the", "term", "appears", "at", "least", "one", "time", "<", "p", ">", "this", "value", "is", "always", "a", "positive", "number", "and", "never", "exceeds", "{" ]
[ "return", "doc", "freq", ";" ]