docstring_tokens
sequence
code_tokens
sequence
[ "a", "synonym", "for", "{", "@", "link", "#", "add", "all", "(", "collection", ")", "}", "that", "accepts", "only", "another", "resolution", "set" ]
[ "public", "void", "absorb", "(", "assembly", "resolution", "results", "that", ")", "{", "this", "resolutions", "add", "all", "(", "that", "resolutions", ")", ";", "}" ]
[ "records", "that", "the", "current", "thread", "is", "about", "to", "wait", "on", "the", "specified", "guard" ]
[ "private", "void", "begin", "waiting", "for", "(", "guard", "guard", ")", "{", "int", "waiters", "=", "guard", "waiter", "count", "+", "+", ";", "if", "(", "waiters", "=", "=", "0", ")", "{", "/", "/", "push", "guard", "onto", "active", "guards", "guard", "next", "=", "active", "guards", ";", "active", "guards", "=", "guard", ";", "}", "}" ]
[ "on", "a", "concurrent", "computation", "that", "returns", "null", ",", "all", "threads", "should", "get", "an", "invalid", "cache", "load", "exception", ",", "with", "the", "loader", "only", "called", "once", "the", "result", "should", "not", "be", "cached", "(", "a", "later", "request", "should", "call", "the", "loader", "again", ")" ]
[ "private", "static", "void", "test", "concurrent", "loading", "null", "(", "cache", "builder", "<", "object", ",", "object", ">", "builder", ")", "throws", "interrupted", "exception", "{", "int", "count", "=", "10", ";", "final", "atomic", "integer", "call", "count", "=", "new", "atomic", "integer", "(", ")", ";", "final", "count", "down", "latch", "start", "signal", "=", "new", "count", "down", "latch", "(", "count", "+", "1", ")", ";", "loading", "cache", "<", "string", ",", "string", ">", "cache", "=", "builder", "build", "(", "new", "cache", "loader", "<", "string", ",", "string", ">", "(", ")", "{", "@", "override", "public", "string", "load", "(", "string", "key", ")", "throws", "interrupted", "exception", "{", "call", "count", "increment", "and", "get", "(", ")", ";", "start", "signal", "await", "(", ")", ";", "return", "null", ";", "}", "}", ")", ";", "list", "<", "object", ">", "result", "=", "do", "concurrent", "get", "(", "cache", ",", "\"", "bar", "\"", ",", "count", ",", "start", "signal", ")", ";", "assert", "equals", "(", "1", ",", "call", "count", "get", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "{", "assert", "that", "(", "result", "get", "(", "i", ")", ")", "is", "instance", "of", "(", "invalid", "cache", "load", "exception", "class", ")", ";", "}", "/", "/", "subsequent", "calls", "should", "call", "the", "loader", "again", ",", "not", "get", "the", "old", "exception", "try", "{", "cache", "get", "unchecked", "(", "\"", "bar", "\"", ")", ";", "fail", "(", ")", ";", "}", "catch", "(", "invalid", "cache", "load", "exception", "expected", ")", "{", "}", "assert", "equals", "(", "2", ",", "call", "count", "get", "(", ")", ")", ";", "}" ]
[ "creates", "a", "new", "reference", "value", "of", "the", "given", "type", "the", "type", "must", "be", "an", "internal", "class", "name", "or", "an", "array", "type", "if", "the", "type", "is", "<", "code", ">", "null", "<", "code", ">", ",", "the", "reference", "value", "represents", "<", "code", ">", "null", "<", "code", ">" ]
[ "public", "reference", "value", "create", "reference", "value", "(", "string", "type", ",", "clazz", "referenced", "class", ",", "boolean", "may", "be", "null", ")", "{", "return", "type", "=", "=", "null", "?", "reference", "value", "null", ":", "!", "type", "equals", "(", "class", "constants", "name", "java", "lang", "object", ")", "?", "new", "typed", "reference", "value", "(", "type", ",", "referenced", "class", ",", "may", "be", "null", ")", ":", "may", "be", "null", "?", "reference", "value", "java", "lang", "object", "maybe", "null", ":", "reference", "value", "java", "lang", "object", "not", "null", ";", "}" ]
[ "set", "the", "value", "of", "the", "'", "{", "@", "code", "maxlength", "}", "'", "attribute", "may", "be", "a", "runtime", "expression" ]
[ "public", "void", "set", "maxlength", "(", "string", "maxlength", ")", "{", "this", "maxlength", "=", "maxlength", ";", "}" ]
[ "test", "the", "property", "'", "name", "integer", "'" ]
[ "public", "void", "name", "integer", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "integer", "}" ]
[ "returns", "the", "list", "of", "components", "with", "the", "largest", "input", "sizes" ]
[ "public", "list", "<", "critical", "path", "component", ">", "get", "largest", "input", "size", "components", "(", ")", "{", "return", "unique", "actions", "(", ")", "collect", "(", "comparators", "greatest", "(", "largest", "input", "size", "components", "size", ",", "comparator", "comparing", "long", "(", "(", "c", ")", "-", ">", "c", "get", "spawn", "metrics", "(", ")", "get", "max", "non", "duration", "(", "0", ",", "spawn", "metrics", ":", ":", "input", "bytes", ")", ")", ")", ")", ";", "}" ]
[ "given", "a", "string", "of", "comma", "-", "separated", "prioritized", "tiers", "(", "highest", "priority", "first", ")", "and", "an", "allocation", ",", "find", "the", "highest", "priority", "tier", "for", "which", "nodes", "exist", "if", "no", "nodes", "for", "any", "of", "the", "tiers", "are", "available", ",", "returns", "an", "empty", "{", "@", "code", "optional", "<", "string", ">", "}" ]
[ "public", "static", "optional", "<", "string", ">", "preferred", "available", "tier", "(", "string", "prioritized", "tiers", ",", "discovery", "nodes", "nodes", ")", "{", "string", "[", "]", "tiers", "=", "strings", "tokenize", "to", "string", "array", "(", "prioritized", "tiers", ",", "\"", ",", "\"", ")", ";", "return", "arrays", "stream", "(", "tiers", ")", "filter", "(", "tier", "-", ">", "tier", "nodes", "present", "(", "tier", ",", "nodes", ")", ")", "find", "first", "(", ")", ";", "}" ]
[ "returns", "a", "new", "{", "@", "link", "wildcard", "type", "}", "with", "{", "@", "code", "upper", "bound", "}" ]
[ "static", "wildcard", "type", "subtype", "of", "(", "type", "upper", "bound", ")", "{", "return", "new", "wildcard", "type", "impl", "(", "new", "type", "[", "0", "]", ",", "new", "type", "[", "]", "{", "upper", "bound", "}", ")", ";", "}" ]
[ "signals", "to", "perform", "an", "update", "see", "the", "class", "header", "for", "the", "usage", "of", "the", "various", "update", "methods" ]
[ "protected", "void", "update", "now", "(", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "disposed", ")", "{", "return", ";", "}", "/", "/", "force", "an", "update", "by", "disabling", "buffering", "with", "a", "new", "request", "request", "time", "=", "system", "current", "time", "millis", "(", ")", ";", "buffering", "start", "time", "=", "none", ";", "/", "/", "set", "so", "that", "the", "max", "delay", "check", "will", "trigger", "work", "}", "swing", "run", "now", "(", "this", ":", ":", "check", "for", "work", ")", ";", "}" ]
[ "mouse", "events", "we", "need", "to", "set", "the", "mouse", "down", "attribute", "so", "we", "only", "initiate", "a", "viewport", "update", "if", "the", "slider", "is", "moving", "in", "response", "to", "user", "action", "on", "the", "slider" ]
[ "public", "void", "mouse", "dragged", "(", "mouse", "event", "e", ")", "{", "mouse", "down", "=", "true", ";", "}" ]
[ "hash", "segments", "to", "int" ]
[ "public", "static", "int", "hash", "(", "memory", "segment", "[", "]", "segments", ",", "int", "offset", ",", "int", "num", "bytes", ")", "{", "if", "(", "in", "first", "segment", "(", "segments", ",", "offset", ",", "num", "bytes", ")", ")", "{", "return", "murmur", "hash", "util", "hash", "bytes", "(", "segments", "[", "0", "]", ",", "offset", ",", "num", "bytes", ")", ";", "}", "else", "{", "return", "hash", "multi", "seg", "(", "segments", ",", "offset", ",", "num", "bytes", ")", ";", "}", "}" ]
[ "used", "to", "record", "a", "debug", "message", "to", "the", "log", "file", "this", "may", "be", "used", "to", "document", "an", "exception", "without", "elevating", "that", "exception", "to", "error", "or", "warning", "status" ]
[ "public", "static", "void", "debug", "(", "object", "originator", ",", "object", "message", ",", "throwable", "throwable", ")", "{", "error", "logger", "debug", "(", "originator", ",", "message", ",", "throwable", ")", ";", "}" ]
[ "test", "the", "property", "'", "name", "'" ]
[ "public", "void", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "}" ]
[ "execute", "the", "command", "with", "the", "given", "arguments" ]
[ "public", "static", "int", "run", "(", "configuration", "conf", ",", "string", "args", ")", "throws", "exception", "{", "/", "*", "tool", "runner", "run", "does", "this", "too", ",", "but", "we", "must", "do", "it", "before", "looking", "at", "sub", "command", "or", "instantiating", "the", "cmd", "object", "below", "*", "/", "string", "[", "]", "other", "args", "=", "new", "generic", "options", "parser", "(", "conf", ",", "args", ")", "get", "remaining", "args", "(", ")", ";", "if", "(", "other", "args", "length", "=", "=", "0", ")", "{", "print", "help", "(", ")", ";", "throw", "new", "exit", "util", "exit", "exception", "(", "e", "usage", ",", "\"", "no", "arguments", "provided", "\"", ")", ";", "}", "final", "string", "sub", "command", "=", "other", "args", "[", "0", "]", ";", "log", "debug", "(", "\"", "executing", "command", "{", "}", "\"", ",", "sub", "command", ")", ";", "switch", "(", "sub", "command", ")", "{", "case", "init", "name", ":", "command", "=", "new", "init", "(", "conf", ")", ";", "break", ";", "case", "destroy", "name", ":", "command", "=", "new", "destroy", "(", "conf", ")", ";", "break", ";", "case", "import", "name", ":", "command", "=", "new", "import", "(", "conf", ")", ";", "break", ";", "case", "bucket", "info", "name", ":", "command", "=", "new", "bucket", "info", "(", "conf", ")", ";", "break", ";", "case", "diff", "name", ":", "command", "=", "new", "diff", "(", "conf", ")", ";", "break", ";", "case", "marker", "tool", "markers", ":", "command", "=", "new", "marker", "tool", "(", "conf", ")", ";", "break", ";", "case", "prune", "name", ":", "command", "=", "new", "prune", "(", "conf", ")", ";", "break", ";", "case", "set", "capacity", "name", ":", "command", "=", "new", "set", "capacity", "(", "conf", ")", ";", "break", ";", "case", "uploads", "name", ":", "command", "=", "new", "uploads", "(", "conf", ")", ";", "break", ";", "case", "select", "tool", "name", ":", "/", "/", "the", "select", "tool", "is", "not", "technically", "a", "s", "3", "guard", "tool", ",", "but", "it", "'", "s", "on", "the", "cli", "/", "/", "because", "this", "is", "the", "defacto", "s3", "cli", "command", "=", "new", "select", "tool", "(", "conf", ")", ";", "break", ";", "case", "fsck", "name", ":", "command", "=", "new", "fsck", "(", "conf", ")", ";", "break", ";", "case", "authoritative", "name", ":", "command", "=", "new", "authoritative", "(", "conf", ")", ";", "break", ";", "default", ":", "print", "help", "(", ")", ";", "throw", "new", "exit", "util", "exit", "exception", "(", "e", "usage", ",", "\"", "unknown", "command", "\"", "+", "sub", "command", ")", ";", "}", "try", "{", "return", "tool", "runner", "run", "(", "conf", ",", "command", ",", "other", "args", ")", ";", "}", "finally", "{", "i", "o", "utils", "cleanup", "with", "logger", "(", "log", ",", "command", ")", ";", "}", "}" ]
[ "this", "is", "because", "multiple", "areas", "within", "the", "grid", "may", "all", "try", "and", "remove", "a", "session" ]
[ "public", "void", "removing", "a", "session", "that", "does", "not", "exist", "is", "not", "an", "error", "(", ")", "{", "remote", "remove", "(", "id", ")", ";", "}" ]
[ "returns", "the", "name", "of", "this", "elementtag" ]
[ "public", "string", "get", "name", "(", ")", "{", "return", "name", ";", "}" ]
[ "client", "is", "reporting", "some", "bad", "block", "locations" ]
[ "void", "report", "bad", "blocks", "(", "located", "block", "[", "]", "blocks", ")", "throws", "i", "o", "exception", "{", "check", "operation", "(", "operation", "category", "write", ")", ";", "write", "lock", "(", ")", ";", "try", "{", "check", "operation", "(", "operation", "category", "write", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "blocks", "length", ";", "i", "+", "+", ")", "{", "extended", "block", "blk", "=", "blocks", "[", "i", "]", "get", "block", "(", ")", ";", "datanode", "info", "[", "]", "nodes", "=", "blocks", "[", "i", "]", "get", "locations", "(", ")", ";", "string", "[", "]", "storage", "i", "ds", "=", "blocks", "[", "i", "]", "get", "storage", "i", "ds", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "nodes", "length", ";", "j", "+", "+", ")", "{", "name", "node", "state", "change", "log", "info", "(", "\"", "*", "dir", "*", "report", "bad", "blocks", "for", "block", ":", "{", "}", "on", "\"", "+", "\"", "datanode", ":", "{", "}", "\"", ",", "blk", ",", "nodes", "[", "j", "]", "get", "xfer", "addr", "(", ")", ")", ";", "block", "manager", "find", "and", "mark", "block", "as", "corrupt", "(", "blk", ",", "nodes", "[", "j", "]", ",", "storage", "i", "ds", "=", "=", "null", "?", "null", ":", "storage", "i", "ds", "[", "j", "]", ",", "\"", "client", "machine", "reported", "it", "\"", ")", ";", "}", "}", "}", "finally", "{", "write", "unlock", "(", "\"", "report", "bad", "blocks", "\"", ")", ";", "}", "}" ]
[ "return", "the", "byte", "count", "of", "this", "region", "in", "the", "underlying", "{", "@", "link", "resource", "}" ]
[ "public", "long", "get", "count", "(", ")", "{", "return", "this", "count", ";", "}" ]
[ "test", "the", "property", "'", "category", "'" ]
[ "public", "void", "category", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "category", "}" ]
[ "tests", "if", "fully", "delete", "deletes", "(", "a", ")", "symlink", "to", "file", "only", "and", "not", "the", "file", "pointed", "to", "by", "symlink", "(", "b", ")", "symlink", "to", "dir", "only", "and", "not", "the", "dir", "pointed", "to", "by", "symlink" ]
[ "public", "void", "test", "fully", "delete", "symlinks", "(", ")", "throws", "i", "o", "exception", "{", "file", "link", "=", "new", "file", "(", "del", ",", "link", ")", ";", "assert", "assert", "equals", "(", "5", ",", "del", "list", "(", ")", "length", ")", ";", "/", "/", "since", "tmp", "dir", "is", "symlink", "to", "tmp", ",", "fully", "delete", "(", "tmp", "dir", ")", "should", "not", "/", "/", "delete", "contents", "of", "tmp", "see", "setup", "dirs", "for", "details", "boolean", "ret", "=", "file", "util", "fully", "delete", "(", "link", ")", ";", "assert", "assert", "true", "(", "ret", ")", ";", "assert", "assert", "false", "(", "link", "exists", "(", ")", ")", ";", "assert", "assert", "equals", "(", "4", ",", "del", "list", "(", ")", "length", ")", ";", "validate", "tmp", "dir", "(", ")", ";", "file", "link", "dir", "=", "new", "file", "(", "del", ",", "\"", "tmp", "dir", "\"", ")", ";", "/", "/", "since", "tmp", "dir", "is", "symlink", "to", "tmp", ",", "fully", "delete", "(", "tmp", "dir", ")", "should", "not", "/", "/", "delete", "contents", "of", "tmp", "see", "setup", "dirs", "for", "details", "ret", "=", "file", "util", "fully", "delete", "(", "link", "dir", ")", ";", "assert", "assert", "true", "(", "ret", ")", ";", "assert", "assert", "false", "(", "link", "dir", "exists", "(", ")", ")", ";", "assert", "assert", "equals", "(", "3", ",", "del", "list", "(", ")", "length", ")", ";", "validate", "tmp", "dir", "(", ")", ";", "}" ]
[ "get", "number", "minimum", ":", "32", "1", "maximum", ":", "543", "2" ]
[ "public", "big", "decimal", "get", "number", "(", ")", "{", "return", "number", ";", "}" ]
[ "get", "enum", "integer" ]
[ "public", "enum", "integer", "enum", "get", "enum", "integer", "(", ")", "{", "return", "enum", "integer", ";", "}" ]
[ "tests", "the", "below", "topology", "(", "a", "1", ")", "-", "+", "-", ">", "(", "b", "1", ")", "-", "+", "-", ">", "(", "c", "1", ")", "x", "(", "a", "2", ")", "-", "+", "-", ">", "(", "b", "2", ")", "-", "+", "-", ">", "(", "c", "2", ")", "^", "^", "|", "|", "(", "pipelined", ")", "(", "blocking", ")" ]
[ "public", "void", "test", "two", "components", "via", "blocking", "exchange", "(", ")", "{", "testing", "scheduling", "topology", "topology", "=", "new", "testing", "scheduling", "topology", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "va", "1", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "va", "2", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "vb", "1", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "vb", "2", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "vc", "1", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "vc", "2", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "topology", "connect", "(", "va", "1", ",", "vb", "1", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "va", "1", ",", "vb", "2", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "va", "2", ",", "vb", "1", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "va", "2", ",", "vb", "2", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "vb", "1", ",", "vc", "1", ",", "result", "partition", "type", "blocking", ")", "connect", "(", "vb", "2", ",", "vc", "2", ",", "result", "partition", "type", "blocking", ")", ";", "map", "<", "execution", "vertex", "i", "d", ",", "set", "<", "scheduling", "execution", "vertex", ">", ">", "pipelined", "region", "by", "vertex", "=", "compute", "pipelined", "region", "by", "vertex", "(", "topology", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "ra", "1", "=", "pipelined", "region", "by", "vertex", "get", "(", "va", "1", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "ra", "2", "=", "pipelined", "region", "by", "vertex", "get", "(", "va", "2", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "rb", "1", "=", "pipelined", "region", "by", "vertex", "get", "(", "vb", "1", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "rb", "2", "=", "pipelined", "region", "by", "vertex", "get", "(", "vb", "2", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "rc", "1", "=", "pipelined", "region", "by", "vertex", "get", "(", "vc", "1", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "rc", "2", "=", "pipelined", "region", "by", "vertex", "get", "(", "vc", "2", "get", "id", "(", ")", ")", ";", "assert", "same", "region", "(", "ra", "1", ",", "ra", "2", ",", "rb", "1", ",", "rb", "2", ")", ";", "assert", "distinct", "regions", "(", "ra", "1", ",", "rc", "1", ",", "rc", "2", ")", ";", "}" ]
[ "the", "set", "of", "attribute", "declarations", "<", "code", ">", "repeated", "aapt", "pb", "styleable", "entry", "entry", "=", "1", ";", "<", "code", ">" ]
[ "private", "void", "add", "entry", "(", "com", "android", "aapt", "resources", "styleable", "entry", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "ensure", "entry", "is", "mutable", "(", ")", ";", "entry", "add", "(", "value", ")", ";", "}" ]
[ ",", "1", "-", "12" ]
[ "public", "static", "date", "set", "months", "(", "@", "not", "null", "final", "date", "date", ",", "int", "amount", ")", "{", "if", "(", "amount", "<", "1", "|", "|", "amount", ">", "12", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "month", "of", "year", "must", "be", "in", "the", "range", "[", "1", ",", "12", "]", "\"", ")", ";", "}", "return", "date", "utils", "set", "months", "(", "date", ",", "amount", "-", "1", ")", ";", "}" ]
[ "returns", "handles", "to", "the", "block", "file", "and", "its", "metadata", "file" ]
[ "public", "replica", "input", "streams", "get", "tmp", "input", "streams", "(", "extended", "block", "b", ",", "long", "blk", "offset", ",", "long", "meta", "offset", ")", "throws", "i", "o", "exception", "{", "try", "(", "auto", "closeable", "lock", "lock", "=", "dataset", "read", "lock", "acquire", "(", ")", ")", "{", "replica", "info", "info", "=", "get", "replica", "info", "(", "b", ")", ";", "fs", "volume", "reference", "ref", "=", "info", "get", "volume", "(", ")", "obtain", "reference", "(", ")", ";", "try", "{", "input", "stream", "block", "in", "stream", "=", "info", "get", "data", "input", "stream", "(", "blk", "offset", ")", ";", "try", "{", "input", "stream", "meta", "in", "stream", "=", "info", "get", "metadata", "input", "stream", "(", "meta", "offset", ")", ";", "return", "new", "replica", "input", "streams", "(", "block", "in", "stream", ",", "meta", "in", "stream", ",", "ref", ",", "datanode", "get", "file", "io", "provider", "(", ")", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "i", "o", "utils", "cleanup", "(", "null", ",", "block", "in", "stream", ")", ";", "throw", "e", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "i", "o", "utils", "cleanup", "(", "null", ",", "ref", ")", ";", "throw", "e", ";", "}", "}", "}" ]
[ "get", "a", "writable", "s", "q", "lite", "database" ]
[ "public", "static", "s", "q", "lite", "database", "get", "database", "(", ")", "{", "return", "connector", "get", "database", "(", ")", ";", "}" ]
[ "restore", "the", "state", "of", "this", "source", "coordinator", "from", "the", "state", "bytes" ]
[ "private", "enum", "chk", "t", "deserialize", "checkpoint", "and", "restore", "context", "(", "byte", "[", "]", "bytes", ")", "throws", "exception", "{", "try", "(", "byte", "array", "input", "stream", "bais", "=", "new", "byte", "array", "input", "stream", "(", "bytes", ")", ";", "data", "input", "stream", "in", "=", "new", "data", "input", "view", "stream", "wrapper", "(", "bais", ")", ")", "{", "read", "and", "verify", "coordinator", "serde", "version", "(", "in", ")", ";", "int", "enum", "serializer", "version", "=", "in", "read", "int", "(", ")", ";", "int", "serialized", "enum", "chkpt", "size", "=", "in", "read", "int", "(", ")", ";", "byte", "[", "]", "serialized", "enum", "chkpt", "=", "read", "bytes", "(", "in", ",", "serialized", "enum", "chkpt", "size", ")", ";", "context", "restore", "state", "(", "split", "serializer", ",", "in", ")", ";", "return", "enum", "checkpoint", "serializer", "deserialize", "(", "enum", "serializer", "version", ",", "serialized", "enum", "chkpt", ")", ";", "}", "}" ]
[ "adds", "the", "given", "jetty", "{", "@", "link", "life", "cycle", "}", "instances", "to", "the", "server", "'", "s", "lifecycle" ]
[ "public", "void", "manage", "(", "life", "cycle", "managed", ")", "{", "managed", "objects", "add", "(", "require", "non", "null", "(", "managed", ")", ")", ";", "}" ]
[ "create", "a", "(", "hostname", ",", "port", ")", "address", "pair" ]
[ "public", "static", "map", "<", "string", ",", "string", ">", "hostname", "port", "pair", "(", "inet", "socket", "address", "address", ")", "{", "return", "hostname", "port", "pair", "(", "address", "get", "host", "name", "(", ")", ",", "address", "get", "port", "(", ")", ")", ";", "}" ]
[ "return", "a", "builder", "with", "empty", "configuration", "to", "start" ]
[ "static", "builder", "empty", "(", ")", "{", "return", "new", "default", "exchange", "strategies", "builder", "(", ")", ";", "}" ]
[ "return", "the", "list", "of", "supported", "sub", "-", "protocols" ]
[ "list", "<", "string", ">", "get", "sub", "protocols", "(", ")", ";" ]
[ "updates", "the", "status", "fields", "for", "the", "given", "category" ]
[ "protected", "void", "update", "status", "field", "(", "string", "category", ")", "{", "if", "(", "stats", "category", "selection", "state", "equals", "(", "category", ")", ")", "{", "i", "status", "field", "field", "=", "get", "status", "field", "(", "category", ")", ";", "if", "(", "field", "!", "=", "null", ")", "{", "string", "builder", "txt", "=", "new", "string", "builder", "(", "\"", "sel", ":", "\"", ")", ";", "i", "selection", "selection", "=", "get", "selection", "provider", "(", ")", "get", "selection", "(", ")", ";", "if", "(", "selection", "instanceof", "i", "text", "selection", ")", "{", "i", "text", "selection", "text", "selection", "=", "(", "i", "text", "selection", ")", "selection", ";", "txt", "append", "(", "text", "selection", "get", "length", "(", ")", ")", "append", "(", "\"", "|", "\"", ")", ";", "if", "(", "(", "(", "i", "text", "selection", ")", "selection", ")", "get", "length", "(", ")", "<", "=", "0", ")", "{", "txt", "append", "(", "0", ")", ";", "}", "else", "{", "txt", "append", "(", "text", "selection", "get", "end", "line", "(", ")", "-", "text", "selection", "get", "start", "line", "(", ")", "+", "1", ")", ";", "}", "}", "field", "set", "text", "(", "txt", "to", "string", "(", ")", ")", ";", "}", "}", "else", "{", "super", "update", "status", "field", "(", "category", ")", ";", "}", "}" ]
[ "returns", "the", "type" ]
[ "public", "action", "type", "get", "type", "(", ")", "{", "return", "type", ";", "}" ]
[ "returns", "the", "default", "executor", "this", "event", "bus", "uses", "for", "dispatching", "events", "to", "subscribers" ]
[ "final", "executor", "executor", "(", ")", "{", "return", "executor", ";", "}" ]
[ "delete", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "public", "void", "delete", "user", "(", "string", "username", ")", "throws", "api", "exception", "{", "delete", "user", "with", "http", "info", "(", "username", ")", ";", "}" ]
[ "can", "we", "send", "more", "requests", "to", "this", "node", "?" ]
[ "public", "boolean", "can", "send", "more", "(", "string", "node", ")", "{", "deque", "<", "network", "client", "in", "flight", "request", ">", "queue", "=", "requests", "get", "(", "node", ")", ";", "return", "queue", "=", "=", "null", "|", "|", "queue", "is", "empty", "(", ")", "|", "|", "(", "queue", "peek", "first", "(", ")", "send", "completed", "(", ")", "&", "&", "queue", "size", "(", ")", "<", "this", "max", "in", "flight", "requests", "per", "connection", ")", ";", "}" ]
[ "called", "when", "the", "traversal", "for", "the", "current", "key", "is", "complete" ]
[ "void", "key", "done", "(", ")", "throws", "exception", ";" ]
[ "return", "the", "number", "of", "allocated", "slots", "to", "store", "this", "hash", "table" ]
[ "public", "long", "capacity", "(", ")", "{", "return", "mask", "+", "1", ";", "}" ]
[ "returns", "an", "{", "@", "link", "abrupt", "exit", "exception", "}", "with", "a", "{", "@", "link", "detailed", "exit", "code", "}", "from", "{", "@", "link", "#", "detailed", "exit", "code", "}" ]
[ "public", "static", "abrupt", "exit", "exception", "abrupt", "exit", "exception", "(", "string", "message", ")", "{", "return", "new", "abrupt", "exit", "exception", "(", "detailed", "exit", "code", "of", "(", "failure", "detail", "new", "builder", "(", ")", "set", "message", "(", "message", ")", "set", "interrupted", "(", "interrupted", "new", "builder", "(", ")", "set", "code", "(", "code", "interrupted", ")", ")", "build", "(", ")", ")", ")", ";", "}" ]
[ "dump", "a", "list", "of", "all", "jobs", "submitted" ]
[ "private", "void", "list", "all", "jobs", "(", "cluster", "cluster", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "display", "job", "list", "(", "cluster", "get", "all", "job", "statuses", "(", ")", ")", ";", "}" ]
[ "create", "a", "new", "{", "@", "link", "compressor", "}", "for", "use", "by", "this", "{", "@", "link", "compression", "codec", "}" ]
[ "compressor", "create", "compressor", "(", ")", ";" ]
[ "returns", "the", "hex", "string", "of", "a", "long", "argument" ]
[ "public", "static", "string", "hex", "(", "long", "x", ")", "{", "return", "long", "to", "hex", "string", "(", "x", ")", "to", "upper", "case", "(", ")", ";", "}" ]
[ "the", "content", "of", "this", "page", "is", "the", "counters", "block", "now" ]
[ "@", "override", "protected", "class", "<", "?", "extends", "sub", "view", ">", "content", "(", ")", "{", "return", "counters", "block", "class", ";", "}" ]
[ "@", "inherit", "doc" ]
[ "public", "void", "set", "(", "int", "idx", ",", "type", "bearer", "type", ")", "{", "throw", "if", "immutable", "(", ")", ";", "primary", "set", "(", "idx", ",", "type", ")", ";", "for", "(", "locals", "array", "la", ":", "secondaries", ")", "{", "if", "(", "la", "!", "=", "null", ")", "{", "la", "set", "(", "idx", ",", "type", ")", ";", "}", "}", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "java", "lang", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "get", "the", "second", "body", "attached", "to", "this", "joint" ]
[ "public", "body", "get", "body", "b", "(", ")", "{", "return", "world", "bodies", "get", "(", "jni", "get", "body", "b", "(", "addr", ")", ")", ";", "}" ]
[ "wraps", "a", "converted", "default", "value", "into", "a", "{", "@", "link", "list", "}", "if", "the", "converter", "doesn", "'", "t", "do", "it", "on", "its", "own", "this", "is", "to", "make", "sure", "multiple", "(", "{", "@", "link", "option", "#", "allow", "multiple", "(", ")", "}", ")", "options", "'", "default", "values", "are", "always", "converted", "to", "a", "list", "representation", "in", "general", "it", "mimics", "the", "{", "@", "link", "repeatable", "option", "value", "description", "#", "add", "option", "instance", "}", "behavior", ":", "multiple", "option", "default", "value", "is", "treated", "as", "if", "it", "appeared", "on", "the", "command", "line", "only", "once", "with", "the", "specified", "value", "note", "that", "on", "a", "command", "line", "multiple", "options", "can", "appear", "multiple", "times", "while", "each", "can", "support", "multiple", "values", "(", "e", "g", "comma", "-", "separated", "-", "depending", "on", "a", "converter", ")", "thus", "default", "value", "for", "multiple", "option", "is", "(", "depending", "on", "the", "converter", ")", "a", "strict", "subset", "of", "the", "set", "of", "potential", "values", "for", "the", "option" ]
[ "private", "static", "list", "<", "object", ">", "maybe", "wrap", "multiple", "default", "value", "(", "object", "converted", "default", "value", ")", "{", "if", "(", "converted", "default", "value", "instanceof", "list", ")", "{", "return", "(", "list", "<", "object", ">", ")", "converted", "default", "value", ";", "}", "else", "{", "return", "arrays", "as", "list", "(", "converted", "default", "value", ")", ";", "}", "}" ]
[ "get", "the", "tag", "for", "this", "chunk" ]
[ "public", "final", "string", "get", "tag", "(", ")", "{", "return", "tag", ";", "}" ]
[ "model", "tests", "for", "xml", "item" ]
[ "public", "void", "test", "xml", "item", "(", ")", "{", "/", "/", "todo", ":", "test", "xml", "item", "}" ]
[ "returns", "the", "description", "object", "of", "the", "chart", "that", "is", "responsible", "for", "holding", "all", "information", "related", "to", "the", "description", "text", "that", "is", "displayed", "in", "the", "bottom", "right", "corner", "of", "the", "chart", "(", "by", "default", ")" ]
[ "public", "description", "get", "description", "(", ")", "{", "return", "m", "description", ";", "}" ]
[ "get", "the", "first", "namespace", "based", "on", "this", "resolver", "approach" ]
[ "string", "get", "first", "namespace", "(", "string", "path", ",", "path", "location", "loc", ")", ";" ]
[ "set", "the", "jndi", "name", "of", "the", "common", "j", "work", "manager", "this", "can", "either", "be", "a", "fully", "qualified", "jndi", "name", ",", "or", "the", "jndi", "name", "relative", "to", "the", "current", "environment", "naming", "context", "if", "\"", "resource", "ref", "\"", "is", "set", "to", "\"", "true", "\"" ]
[ "public", "void", "set", "work", "manager", "name", "(", "string", "work", "manager", "name", ")", "{", "this", "work", "manager", "name", "=", "work", "manager", "name", ";", "}" ]
[ "if", "url", "has", "scheme", "then", "it", "will", "be", "returned", "as", "it", "is", "else", "it", "will", "return", "url", "with", "scheme" ]
[ "public", "static", "string", "get", "u", "r", "l", "with", "scheme", "(", "string", "scheme", "prefix", ",", "string", "url", ")", "{", "/", "/", "if", "scheme", "is", "provided", "then", "it", "will", "be", "returned", "as", "it", "is", "if", "(", "url", "index", "of", "(", "\"", ":", "/", "/", "\"", ")", ">", "0", ")", "{", "return", "url", ";", "}", "else", "{", "return", "scheme", "prefix", "+", "url", ";", "}", "}" ]
[ "parse", "a", "selection", "to", "lines", ";", "log", "at", "info" ]
[ "protected", "list", "<", "string", ">", "parse", "to", "lines", "(", "final", "f", "s", "data", "input", "stream", "selection", ")", "throws", "i", "o", "exception", "{", "return", "parse", "to", "lines", "(", "selection", ",", "get", "max", "lines", "(", ")", ")", ";", "}" ]
[ "projects", "a", "pair", "of", "crossed", "elements", "to", "a", "{", "@", "link", "tuple", "}", "with", "the", "previously", "selected", "fields" ]
[ "public", "<", "t0", ",", "t1", ">", "project", "cross", "<", "i1", ",", "i2", ",", "tuple", "2", "<", "t0", ",", "t1", ">", ">", "project", "tuple", "2", "(", ")", "{", "type", "information", "<", "?", ">", "[", "]", "f", "types", "=", "extract", "field", "types", "(", "field", "indexes", ")", ";", "tuple", "type", "info", "<", "tuple", "2", "<", "t0", ",", "t1", ">", ">", "t", "type", "=", "new", "tuple", "type", "info", "<", "tuple", "2", "<", "t0", ",", "t1", ">", ">", "(", "f", "types", ")", ";", "return", "new", "project", "cross", "<", "i1", ",", "i2", ",", "tuple", "2", "<", "t0", ",", "t1", ">", ">", "(", "this", "ds", "1", ",", "this", "ds", "2", ",", "this", "field", "indexes", ",", "this", "is", "field", "in", "first", ",", "t", "type", ",", "this", ",", "hint", ")", ";", "}" ]
[ "writes", "any", "remaining", "output", "data", "to", "the", "output", "stream", "and", "also", "creates", "the", "merged", "entries", "by", "calling", "the", "{", "@", "link", "custom", "merge", "strategy", "}", "implementations", "given", "back", "from", "the", "{", "@", "link", "zip", "entry", "filter", "}" ]
[ "public", "void", "finish", "(", ")", "throws", "i", "o", "exception", "{", "for", "(", "map", "entry", "<", "string", ",", "entry", "action", ">", "entry", ":", "actions", "entry", "set", "(", ")", ")", "{", "string", "filename", "=", "entry", "get", "key", "(", ")", ";", "entry", "action", "action", "=", "entry", "get", "value", "(", ")", ";", "if", "(", "action", "get", "type", "(", ")", "=", "=", "action", "type", "merge", ")", "{", "byte", "array", "output", "stream", "uncompressed", "=", "action", "get", "merge", "buffer", "(", ")", ";", "action", "get", "strategy", "(", ")", "finish", "(", "uncompressed", ")", ";", "if", "(", "uncompressed", "size", "(", ")", "=", "=", "0", "&", "&", "action", "get", "strategy", "(", ")", "skip", "empty", "(", ")", ")", "{", "continue", ";", "}", "zip", "file", "entry", "e", "=", "new", "zip", "file", "entry", "(", "filename", ")", ";", "e", "set", "time", "(", "action", "get", "date", "(", ")", "!", "=", "null", "?", "action", "get", "date", "(", ")", "get", "time", "(", ")", ":", "new", "date", "(", ")", "get", "time", "(", ")", ")", ";", "write", "entry", "from", "buffer", "(", "e", ",", "uncompressed", "to", "byte", "array", "(", ")", ")", ";", "}", "}", "out", "finish", "(", ")", ";", "}" ]
[ "lexer", "actions", "are", "numbered", "across", "rules", "0", "n", "-", "1" ]
[ "public", "void", "define", "lexer", "action", "(", "action", "a", "s", "t", "action", "a", "s", "t", ")", "{", "action", "index", "=", "g", "lexer", "actions", "size", "(", ")", ";", "if", "(", "g", "lexer", "actions", "get", "(", "action", "a", "s", "t", ")", "=", "=", "null", ")", "{", "g", "lexer", "actions", "put", "(", "action", "a", "s", "t", ",", "action", "index", ")", ";", "}", "}" ]
[ "test", "the", "property", "'", "bar", "'" ]
[ "public", "void", "bar", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "bar", "}" ]
[ "get", "userlogin", ":", "logs", "user", "into", "the", "system" ]
[ "default", "response", "entity", "<", "string", ">", "login", "user", "(", "string", "username", ",", "string", "password", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "method", "called", "when", "the", "action", "is", "invoked" ]
[ "public", "void", "action", "performed", "(", "action", "context", "context", ")", "{", "plugin", "show", "add", "bookmark", "dialog", "(", "get", "address", "(", "context", ")", ")", ";", "}" ]
[ "get", "petfind", "by", "tags", ":", "finds", "pets", "by", "tags", "multiple", "tags", "can", "be", "provided", "with", "comma", "separated", "strings", "use", "tag", "1", ",", "tag", "2", ",", "tag", "3", "for", "testing" ]
[ "default", "response", "entity", "<", "set", "<", "pet", ">", ">", "find", "pets", "by", "tags", "(", "set", "<", "string", ">", "tags", ")", "{", "get", "request", "(", ")", "if", "present", "(", "request", "-", ">", "{", "for", "(", "media", "type", "media", "type", ":", "media", "type", "parse", "media", "types", "(", "request", "get", "header", "(", "\"", "accept", "\"", ")", ")", ")", "{", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "json", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "{", "\\", "\"", "photo", "urls", "\\", "\"", ":", "[", "\\", "\"", "photo", "urls", "\\", "\"", ",", "\\", "\"", "photo", "urls", "\\", "\"", "]", ",", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "doggie", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "0", ",", "\\", "\"", "category", "\\", "\"", ":", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "default", "-", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "6", "}", ",", "\\", "\"", "tags", "\\", "\"", ":", "[", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "1", "}", ",", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "1", "}", "]", ",", "\\", "\"", "status", "\\", "\"", ":", "\\", "\"", "available", "\\", "\"", "}", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "json", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "xml", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "<", "pet", ">", "<", "id", ">", "123456789", "<", "/", "id", ">", "<", "name", ">", "doggie", "<", "/", "name", ">", "<", "photo", "urls", ">", "<", "photo", "urls", ">", "aeiou", "<", "/", "photo", "urls", ">", "<", "/", "photo", "urls", ">", "<", "tags", ">", "<", "/", "tags", ">", "<", "status", ">", "aeiou", "<", "/", "status", ">", "<", "/", "pet", ">", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "xml", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "}", "}", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "get", "prefix", "string" ]
[ "public", "string", "get", "prefix", "string", "(", ")", "{", "return", "prefix", "string", ";", "}" ]
[ "when", "the", "request", "resources", "is", "an", "ack", "or", "nack", "message", "in", "response", "to", "a", "previous", "request", "resources", ",", "the", "response", "nonce", "must", "be", "the", "nonce", "in", "the", "request", "resources", "otherwise", "response", "nonce", "must", "be", "omitted", "<", "code", ">", "string", "response", "nonce", "=", "4", ";", "<", "code", ">" ]
[ "public", "builder", "set", "response", "nonce", "bytes", "(", "com", "google", "protobuf", "byte", "string", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "check", "byte", "string", "is", "utf", "8", "(", "value", ")", ";", "response", "nonce", "=", "value", ";", "on", "changed", "(", ")", ";", "return", "this", ";", "}" ]
[ "get", "nodes", "function", "returns", "a", "list", "of", "disk", "balancer", "data", "nodes" ]
[ "public", "list", "<", "disk", "balancer", "data", "node", ">", "get", "nodes", "(", ")", "throws", "exception", "{", "return", "nodes", ";", "}" ]
[ "model", "tests", "for", "cat" ]
[ "public", "void", "test", "cat", "(", ")", "{", "/", "/", "todo", ":", "test", "cat", "}" ]
[ "register", "a", "listener", "that", "will", "be", "called", "when", "this", "model", "is", "bound", "to", "a", "view", "the", "listener", "will", "contribute", "to", "this", "model", "'", "s", "hash", "code", "state", "per", "the", "{", "@", "link", "com", "airbnb", "epoxy", "epoxy", "attribute", "option", "#", "do", "not", "hash", "}", "rules", "you", "may", "clear", "the", "listener", "by", "setting", "a", "null", "value", ",", "or", "by", "calling", "{", "@", "link", "#", "reset", "(", ")", "}" ]
[ "public", "test", "field", "prop", "text", "prop", "view", "model", "on", "bind", "(", "on", "model", "bound", "listener", "<", "test", "field", "prop", "text", "prop", "view", "model", ",", "test", "field", "prop", "text", "prop", "view", ">", "listener", ")", "{", "on", "mutation", "(", ")", ";", "this", "on", "model", "bound", "listener", "epoxy", "generated", "model", "=", "listener", ";", "return", "this", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "get", "names", "of", "all", "modules", "loaded" ]
[ "public", "list", "<", "string", ">", "list", "modules", "(", ")", "{", "return", "new", "array", "list", "<", ">", "(", "modules", "key", "set", "(", ")", ")", ";", "}" ]
[ "model", "tests", "for", "tag" ]
[ "public", "void", "test", "tag", "(", ")", "{", "/", "/", "todo", ":", "test", "tag", "}" ]
[ "adds", "the", "given", "heuristic", "cpu", "cost", "to", "the", "current", "heuristic", "cpu", "cost", "for", "this", "costs", "object" ]
[ "public", "void", "add", "heuristic", "cpu", "cost", "(", "double", "cost", ")", "{", "if", "(", "cost", "<", "=", "0", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "heuristic", "costs", "must", "be", "positive", "\"", ")", ";", "}", "this", "heuristic", "cpu", "cost", "+", "=", "cost", ";", "/", "/", "check", "for", "overflow", "if", "(", "this", "heuristic", "cpu", "cost", "<", "0", ")", "{", "this", "heuristic", "cpu", "cost", "=", "double", "max", "value", ";", "}", "}" ]
[ "register", "a", "listener", "that", "will", "be", "called", "when", "this", "model", "visibility", "has", "changed", "the", "listener", "will", "contribute", "to", "this", "model", "'", "s", "hash", "code", "state", "per", "the", "{", "@", "link", "com", "airbnb", "epoxy", "epoxy", "attribute", "option", "#", "do", "not", "hash", "}", "rules" ]
[ "public", "model", "with", "checked", "change", "listener", "on", "visibility", "changed", "(", "on", "model", "visibility", "changed", "listener", "<", "model", "with", "checked", "change", "listener", ",", "object", ">", "listener", ")", "{", "on", "mutation", "(", ")", ";", "this", "on", "model", "visibility", "changed", "listener", "epoxy", "generated", "model", "=", "listener", ";", "return", "this", ";", "}" ]
[ "return", "the", "serializable", "in", "cache" ]
[ "public", "static", "object", "get", "serializable", "(", "@", "non", "null", "final", "string", "key", ")", "{", "return", "get", "serializable", "(", "key", ",", "get", "default", "cache", "double", "utils", "(", ")", ")", ";", "}" ]
[ "substring", "between", "two", "index" ]
[ "public", "static", "string", "substring", "between", "(", "string", "str", ",", "string", "open", ",", "string", "close", ")", "{", "if", "(", "str", "=", "=", "null", "|", "|", "open", "=", "=", "null", "|", "|", "close", "=", "=", "null", ")", "{", "return", "null", ";", "}", "int", "start", "=", "str", "index", "of", "(", "open", ")", ";", "if", "(", "start", "!", "=", "index", "not", "found", ")", "{", "int", "end", "=", "str", "index", "of", "(", "close", ",", "start", "+", "open", "length", "(", ")", ")", ";", "if", "(", "end", "!", "=", "index", "not", "found", ")", "{", "return", "str", "substring", "(", "start", "+", "open", "length", "(", ")", ",", "end", ")", ";", "}", "}", "return", "null", ";", "}" ]
[ "resizes", "the", "internal", "entries", "array", "to", "the", "specified", "capacity", ",", "which", "may", "be", "greater", "or", "less", "than", "the", "current", "capacity" ]
[ "void", "resize", "entries", "(", "int", "new", "capacity", ")", "{", "this", "entries", "=", "arrays", "copy", "of", "(", "entries", ",", "new", "capacity", ")", ";", "this", "keys", "=", "arrays", "copy", "of", "(", "keys", ",", "new", "capacity", ")", ";", "this", "values", "=", "arrays", "copy", "of", "(", "values", ",", "new", "capacity", ")", ";", "}" ]
[ "allows", "mock", "creation", "with", "additional", "mock", "settings", "don", "'", "t", "use", "it", "too", "often", "consider", "writing", "simple", "tests", "that", "use", "simple", "mocks", "repeat", "after", "me", ":", "simple", "tests", "push", "simple", ",", "k", "i", "s", "sy", ",", "readable", "&", "maintainable", "code", "if", "you", "cannot", "write", "a", "test", "in", "a", "simple", "way", "-", "refactor", "the", "code", "under", "test", "examples", "of", "mock", "settings", ":", "<", "pre", "class", "=", "\"", "code", "\"", ">", "<", "code", "class", "=", "\"", "java", "\"", ">", "creates", "mock", "with", "different", "default", "answer", "&", "name", "foo", "mock", "=", "mock", "(", "foo", "class", ",", "with", "settings", "(", ")", "default", "answer", "(", "returns", "smart", "nulls", ")", "name", "(", "\"", "cool", "mockie", "\"", ")", ")", ";", "creates", "mock", "with", "different", "default", "answer", ",", "descriptive", "name", "and", "extra", "interfaces", "foo", "mock", "=", "mock", "(", "foo", "class", ",", "with", "settings", "(", ")", "default", "answer", "(", "returns", "smart", "nulls", ")", "name", "(", "\"", "cool", "mockie", "\"", ")", "extra", "interfaces", "(", "bar", "class", ")", ")", ";", "<", "code", ">", "{", "@", "link", "mock", "settings", "}", "has", "been", "introduced", "for", "two", "reasons", "firstly", ",", "to", "make", "it", "easy", "to", "add", "another", "mock", "settings", "when", "the", "demand", "comes", "secondly", ",", "to", "enable", "combining", "different", "mock", "settings", "without", "introducing", "zillions", "of", "overloaded", "mock", "(", ")", "methods", "see", "javadoc", "for", "{", "@", "link", "mock", "settings", "}", "to", "learn", "about", "possible", "mock", "settings" ]
[ "public", "static", "mock", "settings", "with", "settings", "(", ")", "{", "return", "new", "mock", "settings", "impl", "(", ")", "default", "answer", "(", "returns", "defaults", ")", ";", "}" ]
[ "uses", "this", "stringable", "'", "s", "parameter", "info", "to", "set", "the", "name", "and", "source", "types", "for", "the", "specified", "function", "even", "default", "names", "from", "the", "parameter", "info", "will", "replace", "a", "defined", "parameter", "name", "in", "the", "function" ]
[ "private", "boolean", "force", "parameter", "names", "(", "function", "to", "function", ")", "throws", "version", "tracking", "apply", "exception", "{", "boolean", "duplicate", "name", "occurred", "=", "try", "to", "force", "names", "(", "to", "function", ")", ";", "if", "(", "duplicate", "name", "occurred", ")", "{", "/", "/", "if", "a", "duplicate", "name", "was", "created", ",", "then", "try", "applying", "again", "to", "see", "if", "it", "can", "now", "be", "set", "/", "/", "to", "the", "desired", "name", "a", "duplicate", "may", "have", "occurred", "due", "to", "changing", "order", "of", "parameters", "try", "to", "force", "names", "(", "to", "function", ")", ";", "}", "return", "true", ";", "}" ]
[ "returns", "the", "array", "of", "fixup", "elements", "associated", "with", "this", "fixup", "debug", "directory" ]
[ "public", "debug", "fixup", "element", "[", "]", "get", "debug", "fixup", "elements", "(", ")", "{", "return", "elements", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "name", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "name", "(", "string", "name", ")", "{", "return", "by", "name", "get", "(", "name", ")", ";", "}" ]
[ "if", "set", ",", "will", "enable", "scrolling", "of", "the", "search", "request", "for", "the", "specified", "timeout" ]
[ "public", "search", "scroll", "request", "scroll", "(", "time", "value", "keep", "alive", ")", "{", "return", "scroll", "(", "new", "scroll", "(", "keep", "alive", ")", ")", ";", "}" ]
[ "post", "fakecreate", "xml", "item", ":", "creates", "an", "xml", "item", "this", "route", "creates", "an", "xml", "item" ]
[ "default", "response", "entity", "<", "void", ">", "create", "xml", "item", "(", "xml", "item", "xml", "item", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "get", "the", "buffer", "manager", "used", "by", "this", "node", "manager" ]
[ "buffer", "mgr", "get", "buffer", "mgr", "(", ")", "{", "return", "buffer", "mgr", ";", "}" ]
[ "generate", "accessor", "code", "for", "each", "injected", "field", "this", "is", "used", "to", "generate", "access", "from", "methods", "such", "as", "on", "create", "layout" ]
[ "string", "generate", "impl", "accessor", "(", "spec", "model", "spec", "model", ",", "method", "param", "model", "method", "param", "model", ")", ";" ]
[ "test", "the", "property", "'", "uuid", "'" ]
[ "public", "void", "uuid", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "uuid", "}" ]
[ "directory", "where", "rotated", "agent", "logs", "are", "stored", "the", "method", "also", "creates", "a", "log", "directory", "if", "required" ]
[ "protected", "@", "non", "null", "file", "get", "log", "dir", "(", ")", "{", "file", "dir", "=", "new", "file", "(", "jenkins", "get", "(", ")", "get", "root", "dir", "(", ")", ",", "\"", "logs", "/", "slaves", "/", "\"", "+", "node", "name", ")", ";", "synchronized", "(", "log", "dir", "lock", ")", "{", "try", "{", "i", "o", "utils", "mkdirs", "(", "dir", ")", ";", "}", "catch", "(", "i", "o", "exception", "x", ")", "{", "logger", "log", "(", "level", "severe", ",", "\"", "failed", "to", "create", "agent", "log", "directory", "\"", "+", "dir", ",", "x", ")", ";", "}", "}", "return", "dir", ";", "}" ]
[ "aka", "legacy", "resolve", "this", "method", "should", "be", "called", "by", "aggregations", "not", "supported", "by", "the", "{", "@", "link", "values", "source", "registry", "}", ",", "to", "use", "the", "pre", "-", "registry", "logic", "to", "decide", "on", "the", "{", "@", "link", "values", "source", "type", "}", "new", "aggregations", "which", "extend", "from", "{", "@", "link", "values", "source", "aggregation", "builder", "}", "should", "not", "use", "this", "method", ",", "preferring", "{", "@", "link", "values", "source", "config", "#", "resolve", "}", "instead" ]
[ "public", "static", "values", "source", "config", "resolve", "unregistered", "(", "aggregation", "context", "context", ",", "value", "type", "user", "value", "type", "hint", ",", "string", "field", ",", "script", "script", ",", "object", "missing", ",", "zone", "id", "time", "zone", ",", "string", "format", ",", "values", "source", "type", "default", "value", "source", "type", ")", "{", "return", "internal", "resolve", "(", "context", ",", "user", "value", "type", "hint", ",", "field", ",", "script", ",", "missing", ",", "time", "zone", ",", "format", ",", "default", "value", "source", "type", ",", "values", "source", "config", ":", ":", "get", "legacy", "mapping", ")", ";", "}" ]
[ "returns", "a", "new", "{", "@", "link", "byte", "sink", "}", "for", "writing", "bytes", "to", "the", "given", "file", "the", "given", "{", "@", "code", "modes", "}", "control", "how", "the", "file", "is", "opened", "for", "writing", "when", "no", "mode", "is", "provided", ",", "the", "file", "will", "be", "truncated", "before", "writing", "when", "the", "{", "@", "link", "file", "write", "mode", "#", "append", "append", "}", "mode", "is", "provided", ",", "writes", "will", "append", "to", "the", "end", "of", "the", "file", "without", "truncating", "it" ]
[ "public", "static", "byte", "sink", "as", "byte", "sink", "(", "file", "file", ",", "file", "write", "mode", "modes", ")", "{", "return", "new", "file", "byte", "sink", "(", "file", ",", "modes", ")", ";", "}" ]
[ "configures", "and", "returns", "a", "new", "{", "@", "link", "chrome", "driver", "service", "}", "using", "the", "default", "configuration", "in", "this", "configuration", ",", "the", "service", "will", "use", "the", "chromedriver", "executable", "identified", "by", "the", "{", "@", "link", "#", "chrome", "driver", "exe", "property", "}", "system", "property", "each", "service", "created", "by", "this", "method", "will", "be", "configured", "to", "use", "a", "free", "port", "on", "the", "current", "system" ]
[ "public", "static", "chrome", "driver", "service", "create", "default", "service", "(", ")", "{", "return", "new", "builder", "(", ")", "build", "(", ")", ";", "}" ]
[ "multiplies", "the", "bounding", "box", "by", "the", "given", "matrix", "this", "is", "achieved", "by", "multiplying", "the", "8", "corner", "points", "and", "then", "calculating", "the", "minimum", "and", "maximum", "vectors", "from", "the", "transformed", "points" ]
[ "public", "bounding", "box", "mul", "(", "matrix", "4", "transform", ")", "{", "final", "float", "x", "0", "=", "min", "x", ",", "y", "0", "=", "min", "y", ",", "z", "0", "=", "min", "z", ",", "x", "1", "=", "max", "x", ",", "y", "1", "=", "max", "y", ",", "z", "1", "=", "max", "z", ";", "inf", "(", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "0", ",", "y", "0", ",", "z", "0", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "0", ",", "y", "0", ",", "z", "1", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "0", ",", "y", "1", ",", "z", "0", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "0", ",", "y", "1", ",", "z", "1", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "1", ",", "y", "0", ",", "z", "0", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "1", ",", "y", "0", ",", "z", "1", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "1", ",", "y", "1", ",", "z", "0", ")", "mul", "(", "transform", ")", ")", ";", "ext", "(", "tmp", "vector", "set", "(", "x", "1", ",", "y", "1", ",", "z", "1", ")", "mul", "(", "transform", ")", ")", ";", "return", "this", ";", "}" ]
[ "returns", "total", "size", "of", "all", "files", "that", "where", "snapshotted" ]
[ "public", "long", "total", "size", "(", ")", "{", "return", "index", "files", "stream", "(", ")", "map", "to", "long", "(", "fi", "-", ">", "fi", "metadata", "(", ")", "length", "(", ")", ")", "sum", "(", ")", ";", "}" ]
[ "returns", "a", "two", "-", "dimensional", "array", "with", "the", "table", "contents", "the", "row", "and", "column", "indices", "correspond", "to", "the", "positions", "of", "the", "row", "and", "column", "in", "the", "iterables", "provided", "during", "table", "construction", "if", "the", "table", "lacks", "a", "mapping", "for", "a", "given", "row", "and", "column", ",", "the", "corresponding", "array", "element", "is", "null", "subsequent", "table", "changes", "will", "not", "modify", "the", "array", ",", "and", "vice", "versa" ]
[ "public", "v", "[", "]", "[", "]", "to", "array", "(", "class", "<", "v", ">", "value", "class", ")", "{", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "/", "/", "todo", ":", "safe", "?", "v", "[", "]", "[", "]", "copy", "=", "(", "v", "[", "]", "[", "]", ")", "array", "new", "instance", "(", "value", "class", ",", "row", "list", "size", "(", ")", ",", "column", "list", "size", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "row", "list", "size", "(", ")", ";", "i", "+", "+", ")", "{", "system", "arraycopy", "(", "array", "[", "i", "]", ",", "0", ",", "copy", "[", "i", "]", ",", "0", ",", "array", "[", "i", "]", "length", ")", ";", "}", "return", "copy", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "does", "nothing" ]
[ "@", "override", "public", "void", "exit", "function", "(", "sql", "base", "parser", "function", "context", "ctx", ")", "{", "}" ]
[ "returns", "the", "appropriate", "{", "@", "code", "put", "-", "static", "}", "rop", "for", "the", "given", "type", "the", "result", "is", "a", "shared", "instance" ]
[ "public", "static", "rop", "op", "put", "static", "(", "type", "bearer", "type", ")", "{", "switch", "(", "type", "get", "basic", "type", "(", ")", ")", "{", "case", "type", "bt", "int", ":", "return", "put", "static", "int", ";", "case", "type", "bt", "long", ":", "return", "put", "static", "long", ";", "case", "type", "bt", "float", ":", "return", "put", "static", "float", ";", "case", "type", "bt", "double", ":", "return", "put", "static", "double", ";", "case", "type", "bt", "object", ":", "return", "put", "static", "object", ";", "case", "type", "bt", "boolean", ":", "return", "put", "static", "boolean", ";", "case", "type", "bt", "byte", ":", "return", "put", "static", "byte", ";", "case", "type", "bt", "char", ":", "return", "put", "static", "char", ";", "case", "type", "bt", "short", ":", "return", "put", "static", "short", ";", "}", "return", "throw", "bad", "type", "(", "type", ")", ";", "}" ]
[ "get", "script", "content" ]
[ "string", "get", "script", "content", "(", ")", ";" ]
[ "build", "the", "url", "for", "the", "tag", "from", "the", "tag", "attributes", "and", "parameters" ]
[ "string", "create", "url", "(", ")", "throws", "jsp", "exception", "{", "assert", "state", "(", "this", "value", "!", "=", "null", ",", "\"", "no", "value", "set", "\"", ")", ";", "http", "servlet", "request", "request", "=", "(", "http", "servlet", "request", ")", "this", "page", "context", "get", "request", "(", ")", ";", "http", "servlet", "response", "response", "=", "(", "http", "servlet", "response", ")", "this", "page", "context", "get", "response", "(", ")", ";", "string", "builder", "url", "=", "new", "string", "builder", "(", ")", ";", "if", "(", "this", "type", "=", "=", "url", "type", "context", "relative", ")", "{", "/", "/", "add", "application", "context", "to", "url", "if", "(", "this", "context", "=", "=", "null", ")", "{", "url", "append", "(", "request", "get", "context", "path", "(", ")", ")", ";", "}", "else", "{", "if", "(", "this", "context", "ends", "with", "(", "\"", "/", "\"", ")", ")", "{", "url", "append", "(", "this", "context", ",", "0", ",", "this", "context", "length", "(", ")", "-", "1", ")", ";", "}", "else", "{", "url", "append", "(", "this", "context", ")", ";", "}", "}", "}", "if", "(", "this", "type", "!", "=", "url", "type", "relative", "&", "&", "this", "type", "!", "=", "url", "type", "absolute", "&", "&", "!", "this", "value", "starts", "with", "(", "\"", "/", "\"", ")", ")", "{", "url", "append", "(", "\"", "/", "\"", ")", ";", "}", "url", "append", "(", "replace", "uri", "template", "params", "(", "this", "value", ",", "this", "params", ",", "this", "template", "params", ")", ")", ";", "url", "append", "(", "create", "query", "string", "(", "this", "params", ",", "this", "template", "params", ",", "(", "url", "index", "of", "(", "\"", "?", "\"", ")", "=", "=", "-", "1", ")", ")", ")", ";", "string", "url", "str", "=", "url", "to", "string", "(", ")", ";", "if", "(", "this", "type", "!", "=", "url", "type", "absolute", ")", "{", "/", "/", "add", "the", "session", "identifier", "if", "needed", "/", "/", "(", "do", "not", "embed", "the", "session", "identifier", "in", "a", "remote", "link", "!", ")", "url", "str", "=", "response", "encode", "u", "r", "l", "(", "url", "str", ")", ";", "}", "/", "/", "html", "and", "/", "or", "java", "script", "escape", ",", "if", "demanded", "url", "str", "=", "html", "escape", "(", "url", "str", ")", ";", "url", "str", "=", "(", "this", "java", "script", "escape", "?", "java", "script", "utils", "java", "script", "escape", "(", "url", "str", ")", ":", "url", "str", ")", ";", "return", "url", "str", ";", "}" ]
[ "perform", "the", "next", "operation", "depending", "on", "the", "read", "and", "write", "probabilities", ",", "the", "next", "operation", "could", "be", "either", "read", ",", "write", ",", "or", "list" ]
[ "private", "void", "next", "op", "(", ")", "throws", "i", "o", "exception", "{", "double", "rn", "=", "r", "next", "double", "(", ")", ";", "int", "i", "=", "current", "index", ";", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "log", "debug", "(", "\"", "thread", "\"", "+", "this", "id", "+", "\"", "moving", "to", "index", "\"", "+", "i", ")", ";", "if", "(", "rn", "<", "read", "probs", "[", "i", "]", ")", "{", "read", "(", ")", ";", "}", "else", "if", "(", "rn", "<", "read", "probs", "[", "i", "]", "+", "write", "probs", "[", "i", "]", ")", "{", "write", "(", ")", ";", "}", "else", "{", "list", "(", ")", ";", "}", "}" ]
[ "convert", "a", "os", "-", "native", "filename", "to", "a", "path", "that", "works", "for", "the", "shell", "and", "avoids", "script", "injection", "attacks" ]
[ "public", "static", "string", "make", "secure", "shell", "path", "(", "file", "file", ")", "throws", "i", "o", "exception", "{", "if", "(", "shell", "windows", ")", "{", "/", "/", "currently", "it", "is", "never", "called", ",", "but", "it", "might", "be", "helpful", "in", "the", "future", "throw", "new", "unsupported", "operation", "exception", "(", "\"", "not", "implemented", "for", "windows", "\"", ")", ";", "}", "else", "{", "return", "make", "shell", "path", "(", "file", ",", "false", ")", "replace", "(", "\"", "'", "\"", ",", "\"", "'", "\\", "\\", "'", "'", "\"", ")", ";", "}", "}" ]
[ "traverse", "each", "app", "state", "and", "replace", "cloned", "app", "sub", "context", "into", "the", "state" ]
[ "public", "r", "m", "state", "reload", "state", "with", "cloned", "app", "sub", "ctxt", "(", "r", "m", "state", "actual", "state", ")", "{", "for", "(", "entry", "<", "application", "id", ",", "application", "state", "data", ">", "state", ":", "actual", "state", "get", "application", "state", "(", ")", "entry", "set", "(", ")", ")", "{", "application", "state", "data", "old", "state", "data", "=", "state", "get", "value", "(", ")", ";", "old", "state", "data", "set", "application", "submission", "context", "(", "this", "app", "sub", "ctxt", "copy", "get", "(", "state", "get", "key", "(", ")", ")", ")", ";", "actual", "state", "get", "application", "state", "(", ")", "put", "(", "state", "get", "key", "(", ")", ",", "old", "state", "data", ")", ";", "}", "return", "actual", "state", ";", "}" ]
[ "helper", "method", "to", "set", "api", "key", "prefix", "for", "the", "first", "api", "key", "authentication" ]
[ "public", "void", "set", "api", "key", "prefix", "(", "string", "api", "key", "prefix", ")", "{", "for", "(", "authentication", "auth", ":", "authentications", "values", "(", ")", ")", "{", "if", "(", "auth", "instanceof", "api", "key", "auth", ")", "{", "(", "(", "api", "key", "auth", ")", "auth", ")", "set", "api", "key", "prefix", "(", "api", "key", "prefix", ")", ";", "return", ";", "}", "}", "throw", "new", "runtime", "exception", "(", "\"", "no", "api", "key", "authentication", "configured", "!", "\"", ")", ";", "}" ]