docstring_tokens
list
code_tokens
list
[ "heapify", "a", "bucket", "who", "'", "s", "entries", "are", "in", "random", "order", "this", "works", "by", "validating", "the", "heap", "property", "on", "each", "node", ",", "iterating", "\"", "upwards", "\"", ",", "pushing", "any", "out", "of", "order", "parents", "\"", "down", "\"", "check", "out", "the", "<", "a", "href", "=", "\"", "https", ":", "en", "wikipedia", "orgwindex", "php", "?", "title", "=", "binary", "heap", "&", "oldid", "=", "940542991", "#", "building", "a", "heap", "\"", ">", "wikipedia", "entry", "on", "binary", "heaps", "for", "more", "about", "this", "while", "this", "looks", "like", "it", "could", "easily", "be", "{", "@", "code", "o", "(", "n", "log", "n", ")", "}", ",", "it", "is", "a", "fairly", "well", "studied", "algorithm", "attributed", "to", "floyd", "there", "'", "s", "been", "a", "bunch", "of", "work", "that", "puts", "this", "at", "{", "@", "code", "o", "(", "n", ")", "}", ",", "close", "to", "1", "8", "8n", "worst", "case", "hayward", ",", "ryan", ";", "mc", "diarmid", ",", "colin", "(", "1991", ")", "<", "a", "href", "=", "\"", "https", ":", "web", "archive", "orgweb", "2", "0", "1", "6", "0", "2", "0", "5", "0", "2", "3", "2", "0", "1http", ":", "www", "stats", "ox", "ac", "uk", "dataassetspdf", "file", "0", "0", "1", "5", "4", "1", "7", "3heapbuildjalg", "pdf", "\"", ">", "average", "case", "analysis", "of", "heap", "building", "by", "repeated", "insertion", "j", "algorithms", "d", "e", "knuth", ",", "”", "the", "art", "of", "computer", "programming", ",", "vol", "3", ",", "sorting", "and", "searching", "”" ]
[ "private", "void", "heapify", "(", "long", "root", "index", ")", "{", "int", "max", "parent", "=", "bucket", "size", "/", "2", "-", "1", ";", "for", "(", "int", "parent", "=", "max", "parent", ";", "parent", ">", "=", "0", ";", "parent", "-", "-", ")", "{", "down", "heap", "(", "root", "index", ",", "parent", ")", ";", "}", "}" ]
[ "hash", "bytes", "in", "memory", "segment" ]
[ "public", "static", "int", "hash", "bytes", "(", "memory", "segment", "segment", ",", "int", "offset", ",", "int", "length", "in", "bytes", ")", "{", "return", "hash", "bytes", "(", "segment", ",", "offset", ",", "length", "in", "bytes", ",", "default", "seed", ")", ";", "}" ]
[ "check", "specific", "role" ]
[ "public", "abstract", "boolean", "has", "role", "(", "role", "role", ")", ";" ]
[ "compare", "and", "set", "treats", "+", "0", "0", "and", "-", "0", "0", "as", "distinct", "values" ]
[ "public", "void", "test", "distinct", "zeros", "(", ")", "{", "atomic", "double", "array", "aa", "=", "new", "atomic", "double", "array", "(", "size", ")", ";", "for", "(", "int", "i", ":", "new", "int", "[", "]", "{", "0", ",", "size", "-", "1", "}", ")", "{", "assert", "false", "(", "aa", "compare", "and", "set", "(", "i", ",", "-", "0", "0", ",", "7", "0", ")", ")", ";", "assert", "false", "(", "aa", "weak", "compare", "and", "set", "(", "i", ",", "-", "0", "0", ",", "7", "0", ")", ")", ";", "assert", "bit", "equals", "(", "+", "0", "0", ",", "aa", "get", "(", "i", ")", ")", ";", "assert", "true", "(", "aa", "compare", "and", "set", "(", "i", ",", "+", "0", "0", ",", "-", "0", "0", ")", ")", ";", "assert", "bit", "equals", "(", "-", "0", "0", ",", "aa", "get", "(", "i", ")", ")", ";", "assert", "false", "(", "aa", "compare", "and", "set", "(", "i", ",", "+", "0", "0", ",", "7", "0", ")", ")", ";", "assert", "false", "(", "aa", "weak", "compare", "and", "set", "(", "i", ",", "+", "0", "0", ",", "7", "0", ")", ")", ";", "assert", "bit", "equals", "(", "-", "0", "0", ",", "aa", "get", "(", "i", ")", ")", ";", "}", "}" ]
[ "this", "method", "returns", "the", "bytes", "of", "a", "serialized", "{", "@", "link", "kryo", "serializer", "snapshot", "}", ",", "that", "contains", "a", "kryo", "registration", "of", "a", "class", "that", "does", "not", "exists", "in", "the", "current", "classpath" ]
[ "private", "static", "byte", "[", "]", "un", "loadable", "snapshot", "bytes", "(", ")", "throws", "i", "o", "exception", "{", "final", "class", "loader", "original", "class", "loader", "=", "thread", "current", "thread", "(", ")", "get", "context", "class", "loader", "(", ")", ";", "final", "class", "loader", "utils", "object", "and", "class", "loader", "<", "serializable", ">", "outside", "class", "loading", "=", "class", "loader", "utils", "create", "serializable", "object", "from", "new", "class", "loader", "(", ")", ";", "try", "{", "thread", "current", "thread", "(", ")", "set", "context", "class", "loader", "(", "outside", "class", "loading", "get", "class", "loader", "(", ")", ")", ";", "execution", "config", "conf", "=", "new", "execution", "config", "(", ")", ";", "conf", "register", "kryo", "type", "(", "outside", "class", "loading", "get", "object", "(", ")", "get", "class", "(", ")", ")", ";", "kryo", "serializer", "<", "animal", ">", "previous", "serializer", "=", "new", "kryo", "serializer", "<", ">", "(", "animal", "class", ",", "conf", ")", ";", "type", "serializer", "snapshot", "<", "animal", ">", "previous", "snapshot", "=", "previous", "serializer", "snapshot", "configuration", "(", ")", ";", "data", "output", "serializer", "out", "=", "new", "data", "output", "serializer", "(", "4096", ")", ";", "type", "serializer", "snapshot", "write", "versioned", "snapshot", "(", "out", ",", "previous", "snapshot", ")", ";", "return", "out", "get", "copy", "of", "buffer", "(", ")", ";", "}", "finally", "{", "thread", "current", "thread", "(", ")", "set", "context", "class", "loader", "(", "original", "class", "loader", ")", ";", "}", "}" ]
[ "configure", "the", "{", "@", "code", "task", "executor", "}", "to", "use", "to", "execute", "xhr", "receive", "requests", "by", "default", "{", "@", "link", "org", "springframework", "core", "task", "simple", "async", "task", "executor", "simple", "async", "task", "executor", "}", "is", "configured", "which", "creates", "a", "new", "thread", "every", "time", "the", "transports", "connects" ]
[ "public", "void", "set", "task", "executor", "(", "task", "executor", "task", "executor", ")", "{", "assert", "not", "null", "(", "task", "executor", ",", "\"", "task", "executor", "must", "not", "be", "null", "\"", ")", ";", "this", "task", "executor", "=", "task", "executor", ";", "}" ]
[ "helper", "method", "that", "asserts", "the", "arithmetic", "mean", "of", "x", "and", "y", "is", "equal", "to", "the", "result", "of", "compute", "mean", "safely" ]
[ "private", "static", "void", "assert", "mean", "(", "int", "x", ",", "int", "y", ")", "{", "int", "expected", "mean", "=", "compute", "mean", "safely", "(", "x", ",", "y", ")", ";", "assert", "equals", "(", "expected", "mean", ",", "int", "math", "mean", "(", "x", ",", "y", ")", ")", ";", "assert", "equals", "(", "\"", "the", "mean", "of", "x", "and", "y", "should", "equal", "the", "mean", "of", "y", "and", "x", "\"", ",", "expected", "mean", ",", "int", "math", "mean", "(", "y", ",", "x", ")", ")", ";", "}" ]
[ "update", "pipeline", "at", "the", "namenode" ]
[ "public", "void", "update", "pipeline", "(", "long", "new", "g", "s", ")", "throws", "i", "o", "exception", "{", "final", "extended", "block", "old", "block", "=", "block", "get", "current", "block", "(", ")", ";", "/", "/", "the", "new", "gs", "has", "been", "propagated", "to", "all", "dn", ",", "it", "should", "be", "ok", "to", "update", "the", "/", "/", "local", "block", "state", "update", "block", "g", "s", "(", "new", "g", "s", ")", ";", "dfs", "client", "namenode", "update", "pipeline", "(", "dfs", "client", "client", "name", ",", "old", "block", ",", "block", "get", "current", "block", "(", ")", ",", "nodes", ",", "storage", "i", "ds", ")", ";", "}" ]
[ "order", "by", "tenant", "id", "(", "needs", "to", "be", "followed", "by", "{", "@", "link", "#", "asc", "(", ")", "}", "or", "{", "@", "link", "#", "desc", "(", ")", "}", ")" ]
[ "historic", "activity", "instance", "query", "order", "by", "tenant", "id", "(", ")", ";" ]
[ "the", "debug", "information", "about", "the", "profiled", "execution" ]
[ "public", "map", "<", "string", ",", "object", ">", "get", "debug", "info", "(", ")", "{", "return", "collections", "unmodifiable", "map", "(", "debug", ")", ";", "}" ]
[ "delegate", "method", "that", "executes", "the", "call", "using", "the", "passed", "-", "in", "map", "of", "parameters" ]
[ "protected", "map", "<", "string", ",", "object", ">", "do", "execute", "(", "map", "<", "string", ",", "?", ">", "args", ")", "{", "check", "compiled", "(", ")", ";", "map", "<", "string", ",", "?", ">", "params", "=", "match", "in", "parameter", "values", "with", "call", "parameters", "(", "args", ")", ";", "return", "execute", "call", "internal", "(", "params", ")", ";", "}" ]
[ "following", "a", "move", "of", "the", "database", "directory", ",", "this", "method", "should", "be", "invoked", "if", "this", "instance", "will", "continue", "to", "be", "used" ]
[ "public", "void", "db", "moved", "(", "file", "dir", ")", "throws", "file", "not", "found", "exception", "{", "synchronized", "(", "sync", "object", ")", "{", "this", "db", "dir", "=", "dir", ";", "refresh", "(", ")", ";", "}", "}" ]
[ "returns", "the", "integer", "value", "of", "this", "integer", "constant" ]
[ "public", "int", "get", "value", "(", ")", "{", "return", "u", "4value", ";", "}" ]
[ "parse", "the", "given", "value", ",", "generate", "an", "aggregation", "-", "idvalue", "pair", "per", "word", "the", "id", "is", "of", "type", "value", "histogram", ",", "with", "word", "histogram", "as", "the", "real", "id", "the", "value", "is", "word", "\\", "t", "1" ]
[ "public", "array", "list", "<", "entry", "<", "text", ",", "text", ">", ">", "generate", "key", "val", "pairs", "(", "object", "key", ",", "object", "val", ")", "{", "string", "words", "[", "]", "=", "val", "to", "string", "(", ")", "split", "(", "\"", "|", "\\", "t", "\"", ")", ";", "array", "list", "<", "entry", "<", "text", ",", "text", ">", ">", "retv", "=", "new", "array", "list", "<", "entry", "<", "text", ",", "text", ">", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "words", "length", ";", "i", "+", "+", ")", "{", "text", "val", "count", "=", "new", "text", "(", "words", "[", "i", "]", "+", "\"", "\\", "t", "\"", "+", "\"", "1", "\"", ")", ";", "entry", "<", "text", ",", "text", ">", "en", "=", "generate", "entry", "(", "value", "histogram", ",", "\"", "word", "histogram", "\"", ",", "val", "count", ")", ";", "retv", "add", "(", "en", ")", ";", "}", "return", "retv", ";", "}" ]
[ "support", "for", "aquery", "output" ]
[ "public", "void", "dump", "skyframe", "state", "(", "com", "google", "devtools", "build", "lib", "skyframe", "actiongraph", "v", "2", "action", "graph", "dump", "action", "graph", "dump", ")", "throws", "command", "line", "expansion", "exception", ",", "i", "o", "exception", "{", "for", "(", "map", "entry", "<", "sky", "key", ",", "sky", "value", ">", "sky", "key", "and", "value", ":", "memoizing", "evaluator", "get", "done", "values", "(", ")", "entry", "set", "(", ")", ")", "{", "sky", "key", "key", "=", "sky", "key", "and", "value", "get", "key", "(", ")", ";", "sky", "value", "sky", "value", "=", "sky", "key", "and", "value", "get", "value", "(", ")", ";", "sky", "function", "name", "function", "name", "=", "key", "function", "name", "(", ")", ";", "try", "{", "/", "/", "the", "sky", "value", "may", "be", "null", "in", "case", "analysis", "of", "the", "previous", "build", "failed", "if", "(", "sky", "value", "!", "=", "null", ")", "{", "if", "(", "function", "name", "equals", "(", "sky", "functions", "configured", "target", ")", ")", "{", "action", "graph", "dump", "dump", "configured", "target", "(", "(", "configured", "target", "value", ")", "sky", "value", ")", ";", "}", "else", "if", "(", "function", "name", "equals", "(", "sky", "functions", "aspect", ")", ")", "{", "aspect", "value", "aspect", "value", "=", "(", "aspect", "value", ")", "sky", "value", ";", "aspect", "key", "aspect", "key", "=", "(", "aspect", "key", ")", "key", ";", "configured", "target", "value", "configured", "target", "value", "=", "(", "configured", "target", "value", ")", "memoizing", "evaluator", "get", "existing", "value", "(", "aspect", "key", "get", "base", "configured", "target", "key", "(", ")", ")", ";", "action", "graph", "dump", "dump", "aspect", "(", "aspect", "value", ",", "configured", "target", "value", ")", ";", "}", "}", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "throw", "new", "illegal", "state", "exception", "(", "\"", "no", "interruption", "in", "sequenced", "evaluation", "\"", ",", "e", ")", ";", "}", "}", "}" ]
[ "returns", "the", "timestamp", "(", "nanos", ")", "till", "the", "host", "is", "supposed", "to", "stay", "dead", "without", "being", "retried", "after", "that", "the", "host", "should", "be", "retried" ]
[ "long", "get", "dead", "until", "nanos", "(", ")", "{", "return", "dead", "until", "nanos", ";", "}" ]
[ "returns", "a", "string", "representation", "of", "this", "type", "path", "{", "@", "link", "#", "array", "element", "}", "steps", "are", "represented", "with", "'", "[", "'", ",", "{", "@", "link", "#", "inner", "type", "}", "steps", "with", "'", "'", ",", "{", "@", "link", "#", "wildcard", "bound", "}", "steps", "with", "'", "'", "and", "{", "@", "link", "#", "type", "argument", "}", "steps", "with", "their", "type", "argument", "index", "in", "decimal", "form", "followed", "by", "'", ";", "'" ]
[ "public", "string", "to", "string", "(", ")", "{", "int", "length", "=", "get", "length", "(", ")", ";", "string", "builder", "result", "=", "new", "string", "builder", "(", "length", "*", "2", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "+", "+", "i", ")", "{", "switch", "(", "get", "step", "(", "i", ")", ")", "{", "case", "array", "element", ":", "result", "append", "(", "'", "[", "'", ")", ";", "break", ";", "case", "inner", "type", ":", "result", "append", "(", "'", "'", ")", ";", "break", ";", "case", "wildcard", "bound", ":", "result", "append", "(", "'", "*", "'", ")", ";", "break", ";", "case", "type", "argument", ":", "result", "append", "(", "get", "step", "argument", "(", "i", ")", ")", "append", "(", "'", ";", "'", ")", ";", "break", ";", "default", ":", "throw", "new", "assertion", "error", "(", ")", ";", "}", "}", "return", "result", "to", "string", "(", ")", ";", "}" ]
[ "returns", "the", "number", "of", "values", "recorded" ]
[ "public", "long", "get", "count", "(", ")", "{", "return", "count", "sum", "(", ")", ";", "}" ]
[ "iterates", "in", "the", "order", "{", "@", "link", "#", "node", "u", "(", ")", "}", ",", "{", "@", "link", "#", "node", "v", "(", ")", "}" ]
[ "public", "final", "unmodifiable", "iterator", "<", "n", ">", "iterator", "(", ")", "{", "return", "iterators", "for", "array", "(", "node", "u", ",", "node", "v", ")", ";", "}" ]
[ "returns", "the", "standard", "types", "of", "convenience", "symlinks", "the", "order", "of", "the", "result", "indicates", "precedence", "for", "{", "@", "link", "path", "pretty", "printer", "}" ]
[ "public", "static", "immutable", "list", "<", "symlink", "definition", ">", "get", "standard", "link", "definitions", "(", "boolean", "include", "product", "out", ")", "{", "immutable", "list", "builder", "<", "symlink", "definition", ">", "builder", "=", "immutable", "list", "builder", "(", ")", ";", "builder", "add", "(", "bin", "symlink", ")", ";", "builder", "add", "(", "testlogs", "symlink", ")", ";", "builder", "add", "(", "genfiles", "symlink", ")", ";", "if", "(", "include", "product", "out", ")", "{", "builder", "add", "(", "output", "symlink", "product", "name", ")", ";", "}", "builder", "add", "(", "output", "symlink", "symlink", "prefix", ")", ";", "builder", "add", "(", "exec", "root", "symlink", "instance", ")", ";", "return", "builder", "build", "(", ")", ";", "}" ]
[ "sets", "the", "uncompressed", "size", "of", "this", "{", "@", "code", "zip", "entry", "}" ]
[ "public", "void", "set", "size", "(", "long", "value", ")", "{", "if", "(", "value", "<", "0", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "bad", "size", ":", "\"", "+", "value", ")", ";", "}", "size", "=", "value", ";", "}" ]
[ "creates", "lottery", "number", "from", "given", "set", "of", "numbers" ]
[ "public", "static", "lottery", "numbers", "create", "(", "set", "<", "integer", ">", "given", "numbers", ")", "{", "return", "new", "lottery", "numbers", "(", "given", "numbers", ")", ";", "}" ]
[ "returns", "the", "{", "@", "link", "configured", "target", "and", "data", "}", "s", "corresponding", "to", "the", "given", "keys", "for", "use", "for", "legacy", "support", "and", "tests", "calling", "through", "{", "@", "code", "build", "view", "}", "only", "if", "a", "requested", "configured", "target", "is", "in", "error", ",", "the", "corresponding", "value", "is", "omitted", "from", "the", "returned", "list" ]
[ "public", "immutable", "list", "<", "configured", "target", "and", "data", ">", "get", "configured", "targets", "for", "testing", "(", "extended", "event", "handler", "event", "handler", ",", "build", "configuration", "original", "config", ",", "iterable", "<", "dependency", "key", ">", "keys", ")", "throws", "transition", "exception", ",", "invalid", "configuration", "exception", ",", "interrupted", "exception", "{", "return", "get", "configured", "target", "map", "for", "testing", "(", "event", "handler", ",", "original", "config", ",", "keys", ")", "values", "(", ")", "as", "list", "(", ")", ";", "}" ]
[ "select", "the", "first", "recognized", "security", "provider", "according", "to", "the", "preference", "order", "returned", "by", "{", "@", "link", "security", "#", "get", "providers", "}", "if", "a", "recognized", "provider", "is", "not", "found", "then", "warn", "but", "continue" ]
[ "private", "static", "provider", "get", "android", "security", "provider", "(", ")", "{", "provider", "[", "]", "providers", "=", "security", "get", "providers", "(", ")", ";", "for", "(", "provider", "available", "provider", ":", "providers", ")", "{", "for", "(", "string", "provider", "class", "name", ":", "android", "security", "providers", ")", "{", "if", "(", "provider", "class", "name", "equals", "(", "available", "provider", "get", "class", "(", ")", "get", "name", "(", ")", ")", ")", "{", "logger", "log", "(", "level", "fine", ",", "\"", "found", "registered", "provider", "{", "0", "}", "\"", ",", "provider", "class", "name", ")", ";", "return", "available", "provider", ";", "}", "}", "}", "logger", "log", "(", "level", "warning", ",", "\"", "unable", "to", "find", "conscrypt", "\"", ")", ";", "return", "null", ";", "}" ]
[ "return", "the", "response", "body", "converted", "to", "string", "the", "charset", "used", "is", "that", "of", "the", "response", "\"", "content", "-", "type", "\"", "or", "otherwise", "the", "one", "given" ]
[ "public", "string", "get", "response", "body", "as", "string", "(", "charset", "fallback", "charset", ")", "{", "if", "(", "this", "response", "charset", "=", "=", "null", ")", "{", "return", "new", "string", "(", "this", "response", "body", ",", "fallback", "charset", ")", ";", "}", "try", "{", "return", "new", "string", "(", "this", "response", "body", ",", "this", "response", "charset", ")", ";", "}", "catch", "(", "unsupported", "encoding", "exception", "ex", ")", "{", "/", "/", "should", "not", "occur", "throw", "new", "illegal", "state", "exception", "(", "ex", ")", ";", "}", "}" ]
[ "verifying", "that", "the", "event", "subscriptions", "do", "get", "removed", "when", "removing", "a", "deployment" ]
[ "public", "void", "test", "boundary", "event", "subscription", "deleted", "on", "deployment", "delete", "(", ")", "{", "string", "deployment", "id", "=", "deploy", "boundary", "message", "test", "process", "(", ")", ";", "runtime", "service", "start", "process", "instance", "by", "key", "(", "\"", "message", "test", "\"", ")", ";", "assert", "that", "(", "task", "service", "create", "task", "query", "(", ")", "single", "result", "(", ")", "get", "name", "(", ")", ")", "is", "equal", "to", "(", "\"", "my", "task", "\"", ")", ";", "string", "deployment", "id", "2", "=", "deploy", "boundary", "message", "test", "process", "(", ")", ";", "runtime", "service", "start", "process", "instance", "by", "key", "(", "\"", "message", "test", "\"", ")", ";", "assert", "that", "(", "task", "service", "create", "task", "query", "(", ")", "count", "(", ")", ")", "is", "equal", "to", "(", "2", ")", ";", "assert", "that", "(", "get", "all", "event", "subscriptions", "(", ")", ")", "has", "size", "(", "2", ")", ";", "repository", "service", "delete", "deployment", "(", "deployment", "id", ",", "true", ")", ";", "assert", "that", "(", "task", "service", "create", "task", "query", "(", ")", "single", "result", "(", ")", "get", "name", "(", ")", ")", "is", "equal", "to", "(", "\"", "my", "task", "\"", ")", ";", "assert", "that", "(", "get", "all", "event", "subscriptions", "(", ")", ")", "has", "size", "(", "1", ")", ";", "repository", "service", "delete", "deployment", "(", "deployment", "id", "2", ",", "true", ")", ";", "assert", "that", "(", "get", "all", "event", "subscriptions", "(", ")", ")", "has", "size", "(", "0", ")", ";", "}" ]
[ "return", "the", "configured", "{", "@", "code", "url", "path", "helper", "}" ]
[ "public", "url", "path", "helper", "get", "url", "path", "helper", "(", ")", "{", "return", "this", "url", "path", "helper", ";", "}" ]
[ "set", "sticky", "bit", "on", "path", "to", "pin", "file" ]
[ "public", "void", "set", "pinning", "(", "local", "file", "system", "local", "f", "s", ",", "path", "path", ")", "throws", "i", "o", "exception", "{", "fs", "permission", "old", "permission", "=", "local", "f", "s", "get", "file", "status", "(", "path", ")", "get", "permission", "(", ")", ";", "fs", "permission", "permission", "=", "new", "fs", "permission", "(", "old", "permission", "get", "user", "action", "(", ")", ",", "old", "permission", "get", "group", "action", "(", ")", ",", "old", "permission", "get", "other", "action", "(", ")", ",", "true", ")", ";", "local", "f", "s", "set", "permission", "(", "path", ",", "permission", ")", ";", "}" ]
[ "requests", "password", "for", "keystore", "file" ]
[ "public", "char", "[", "]", "get", "key", "store", "password", "(", "string", "keystore", "path", ",", "boolean", "password", "error", ")", ";" ]
[ "returns", "true", "if", "field", "arg", "is", "set", "(", "has", "been", "assigned", "a", "value", ")", "and", "false", "otherwise" ]
[ "public", "boolean", "is", "set", "arg", "(", ")", "{", "return", "isset", "bit", "vector", "get", "(", "arg", "isset", "id", ")", ";", "}" ]
[ "test", "the", "property", "'", "array", "enum", "'" ]
[ "public", "void", "array", "enum", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "array", "enum", "}" ]
[ "inverse", "of", "{", "@", "link", "#", "has", "visible", "text", "(", "int", ")", "}" ]
[ "public", "litho", "view", "assert", "does", "not", "have", "visible", "text", "(", "@", "string", "res", "int", "resource", "id", ")", "{", "assert", "that", "view", "tree", "(", ")", "does", "not", "have", "visible", "text", "(", "resource", "id", ")", ";", "return", "this", ";", "}" ]
[ "add", "a", "td", "element" ]
[ "tr", "td", "(", "string", "selector", ",", "string", "cdata", ")", ";" ]
[ "fails", "an", "application", "attempt" ]
[ "private", "void", "fail", "application", "attempt", "(", "string", "attempt", "id", ")", "throws", "yarn", "exception", ",", "i", "o", "exception", "{", "application", "id", "app", "id", ";", "application", "attempt", "id", "att", "id", ";", "att", "id", "=", "application", "attempt", "id", "from", "string", "(", "attempt", "id", ")", ";", "app", "id", "=", "att", "id", "get", "application", "id", "(", ")", ";", "sysout", "println", "(", "\"", "failing", "attempt", "\"", "+", "att", "id", "+", "\"", "of", "application", "\"", "+", "app", "id", ")", ";", "client", "fail", "application", "attempt", "(", "att", "id", ")", ";", "}" ]
[ "returns", "the", "requirements", "needed", "to", "be", "met", "to", "progress" ]
[ "public", "requirements", "get", "requirements", "(", ")", "{", "return", "requirements", "watcher", "get", "requirements", "(", ")", ";", "}" ]
[ "returns", "the", "minimum", "java", "version", "needed", "to", "use", "the", "plugin", "and", "all", "its", "dependencies" ]
[ "public", "version", "number", "get", "needed", "dependencies", "minimum", "java", "version", "(", ")", "{", "version", "number", "version", "number", "=", "null", ";", "try", "{", "version", "number", "=", "minimum", "java", "version", "=", "=", "null", "?", "null", ":", "new", "version", "number", "(", "minimum", "java", "version", ")", ";", "}", "catch", "(", "number", "format", "exception", "nfe", ")", "{", "log", "bad", "min", "java", "version", "(", ")", ";", "}", "for", "(", "plugin", "p", ":", "get", "needed", "dependencies", "(", ")", ")", "{", "version", "number", "v", "=", "p", "get", "needed", "dependencies", "minimum", "java", "version", "(", ")", ";", "if", "(", "v", "=", "=", "null", ")", "{", "continue", ";", "}", "if", "(", "version", "number", "=", "=", "null", "|", "|", "v", "is", "newer", "than", "(", "version", "number", ")", ")", "{", "version", "number", "=", "v", ";", "}", "}", "return", "version", "number", ";", "}" ]
[ "accept", "the", "data", "into", "the", "cache", "and", "merge", "with", "the", "existing", "value", "this", "method", "is", "not", "thread", "safe", ",", "should", "avoid", "concurrency", "calling" ]
[ "public", "void", "accept", "(", "final", "metrics", "data", ")", "{", "final", "string", "id", "=", "data", "id", "(", ")", ";", "final", "metrics", "existed", "=", "buffer", "get", "(", "id", ")", ";", "if", "(", "existed", "=", "=", "null", ")", "{", "buffer", "put", "(", "id", ",", "data", ")", ";", "}", "else", "{", "existed", "combine", "(", "data", ")", ";", "}", "}" ]
[ "the", "name", "of", "the", "symbol", "(", "in", "the", "form", "package", ":", "typename", ")", "<", "code", ">", "optional", "string", "resource", "name", "=", "1", ";", "<", "code", ">" ]
[ "private", "void", "clear", "resource", "name", "(", ")", "{", "bit", "field", "0", "=", "(", "bit", "field", "0", "&", "~", "0x", "0", "0", "0", "0", "0", "0", "0", "1", ")", ";", "resource", "name", "=", "get", "default", "instance", "(", ")", "get", "resource", "name", "(", ")", ";", "}" ]
[ "same", "directory", "rename", "is", "lower", "cost", "as", "there", "'", "s", "no", "need", "to", "look", "for", "the", "parent", "dir", "of", "the", "dest", "path", "or", "worry", "about", "deleting", "markers" ]
[ "public", "void", "test", "rename", "same", "directory", "(", ")", "throws", "throwable", "{", "describe", "(", "\"", "rename", "a", "file", "to", "the", "same", "directory", "\"", ")", ";", "path", "base", "dir", "=", "dir", "(", "method", "path", "(", ")", ")", ";", "final", "path", "source", "file", "=", "file", "(", "new", "path", "(", "base", "dir", ",", "\"", "source", "txt", "\"", ")", ")", ";", "/", "/", "create", "a", "new", "source", "file", "/", "/", "explicitly", "use", "a", "new", "path", "object", "to", "guarantee", "that", "the", "parent", "paths", "/", "/", "are", "different", "object", "instances", "and", "so", "equals", "(", ")", "rather", "than", "=", "=", "/", "/", "is", "path", "parent", "2", "=", "source", "file", "get", "parent", "(", ")", ";", "path", "dest", "file", "=", "new", "path", "(", "parent", "2", ",", "\"", "dest", "\"", ")", ";", "verify", "metrics", "(", "(", ")", "-", ">", "exec", "rename", "(", "source", "file", ",", "dest", "file", ")", ",", "when", "raw", "(", "rename", "single", "file", "same", "dir", ")", ",", "with", "(", "object", "copy", "requests", ",", "1", ")", ",", "with", "(", "directories", "created", ",", "0", ")", ",", "with", "(", "object", "delete", "request", ",", "delete", "object", "request", ")", ",", "with", "(", "fake", "directories", "deleted", ",", "0", ")", ")", ";", "}" ]
[ "test", "the", "property", "'", "date", "time", "'" ]
[ "public", "void", "date", "time", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "date", "time", "}" ]
[ "this", "get", "method", "returns", "a", "list", "of", "all", "http", "datas", "from", "body", "<", "br", ">", "if", "chunked", ",", "all", "chunks", "must", "have", "been", "offered", "using", "offer", "(", ")", "get", "method", "if", "not", ",", "not", "enough", "data", "decoder", "exception", "will", "be", "raised" ]
[ "public", "list", "<", "interface", "http", "data", ">", "get", "body", "http", "datas", "(", ")", "{", "check", "destroyed", "(", ")", ";", "if", "(", "!", "is", "last", "chunk", ")", "{", "throw", "new", "not", "enough", "data", "decoder", "exception", "(", ")", ";", "}", "return", "body", "list", "http", "data", ";", "}" ]
[ "check", "if", "the", "time", "out", "has", "passed" ]
[ "public", "synchronized", "boolean", "is", "overcommit", "timed", "out", "(", ")", "{", "return", "this", "overcommit", "timeout", ">", "=", "0", "&", "&", "time", "now", "(", ")", ">", "=", "this", "overcommit", "timeout", ";", "}" ]
[ "gets", "the", "supported", "key", "types", "for", "client", "certificates" ]
[ "private", "static", "set", "<", "string", ">", "supported", "client", "key", "types", "(", "byte", "[", "]", "client", "certificate", "types", ")", "{", "if", "(", "client", "certificate", "types", "=", "=", "null", ")", "{", "/", "/", "try", "all", "of", "the", "supported", "key", "types", "return", "supported", "key", "types", ";", "}", "set", "<", "string", ">", "result", "=", "new", "hash", "set", "<", "string", ">", "(", "client", "certificate", "types", "length", ")", ";", "for", "(", "byte", "key", "type", "code", ":", "client", "certificate", "types", ")", "{", "string", "key", "type", "=", "client", "key", "type", "(", "key", "type", "code", ")", ";", "if", "(", "key", "type", "=", "=", "null", ")", "{", "/", "/", "unsupported", "client", "key", "type", "-", "-", "ignore", "continue", ";", "}", "result", "add", "(", "key", "type", ")", ";", "}", "return", "result", ";", "}" ]
[ "get", "the", "schema", "type", "(", "e", "g", "any", "of", ",", "one", "of", ")" ]
[ "public", "string", "get", "schema", "type", "(", ")", "{", "return", "schema", "type", ";", "}" ]
[ "makes", "and", "return", "a", "mutable", "copy", "of", "this", "instance" ]
[ "public", "register", "spec", "set", "mutable", "copy", "(", ")", "{", "int", "len", "=", "specs", "length", ";", "register", "spec", "set", "copy", "=", "new", "register", "spec", "set", "(", "len", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "{", "register", "spec", "spec", "=", "specs", "[", "i", "]", ";", "if", "(", "spec", "!", "=", "null", ")", "{", "copy", "put", "(", "spec", ")", ";", "}", "}", "copy", "size", "=", "size", ";", "return", "copy", ";", "}" ]
[ "map", "registers", "after", "register", "allocation" ]
[ "public", "final", "void", "map", "registers", "(", "register", "mapper", "mapper", ")", "{", "register", "spec", "old", "result", "=", "result", ";", "result", "=", "mapper", "map", "(", "result", ")", ";", "block", "get", "parent", "(", ")", "update", "one", "definition", "(", "this", ",", "old", "result", ")", ";", "map", "source", "registers", "(", "mapper", ")", ";", "}" ]
[ "an", "expectation", "for", "checking", "an", "element", "is", "visible", "and", "enabled", "such", "that", "you", "can", "click", "it" ]
[ "public", "static", "expected", "condition", "<", "web", "element", ">", "element", "to", "be", "clickable", "(", "final", "web", "element", "element", ")", "{", "return", "new", "expected", "condition", "<", "web", "element", ">", "(", ")", "{", "@", "override", "public", "web", "element", "apply", "(", "web", "driver", "driver", ")", "{", "web", "element", "visible", "element", "=", "visibility", "of", "(", "element", ")", "apply", "(", "driver", ")", ";", "try", "{", "if", "(", "visible", "element", "!", "=", "null", "&", "&", "visible", "element", "is", "enabled", "(", ")", ")", "{", "return", "visible", "element", ";", "}", "return", "null", ";", "}", "catch", "(", "stale", "element", "reference", "exception", "e", ")", "{", "return", "null", ";", "}", "}", "@", "override", "public", "string", "to", "string", "(", ")", "{", "return", "\"", "element", "to", "be", "clickable", ":", "\"", "+", "element", ";", "}", "}", ";", "}" ]
[ "declares", "the", "configuration", "fragments", "that", "are", "required", "by", "this", "rule", "for", "the", "target", "configuration", "in", "contrast", "to", "{", "@", "link", "#", "requires", "configuration", "fragments", "(", "class", ")", "}", ",", "this", "method", "takes", "the", "starlark", "module", "names", "of", "fragments", "instead", "of", "their", "classes" ]
[ "public", "builder", "requires", "configuration", "fragments", "by", "starlark", "module", "name", "(", "collection", "<", "string", ">", "configuration", "fragment", "names", ")", "{", "configuration", "fragment", "policy", "requires", "configuration", "fragments", "by", "starlark", "builtin", "name", "(", "configuration", "fragment", "names", ")", ";", "return", "this", ";", "}", "/", "*", "*", "*", "declares", "the", "configuration", "fragments", "that", "are", "required", "by", "this", "rule", "for", "the", "host", "*", "configuration", "*", "/" ]
[ "return", "the", "body", "of", "the", "message", "as", "an", "input", "stream" ]
[ "input", "stream", "get", "body", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "write", "null", "for", "reserved", "to", "byte", "buffers" ]
[ "public", "void", "write", "reserved", "(", "final", "int", "length", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "+", "+", ")", "{", "byte", "buf", "write", "byte", "(", "0", ")", ";", "}", "}" ]
[ "put", "the", "specified", "record", "into", "the", "stored", "b", "tree" ]
[ "public", "void", "put", "record", "(", "d", "b", "record", "record", ")", "throws", "i", "o", "exception", "{", "synchronized", "(", "db", ")", "{", "db", "check", "transaction", "(", ")", ";", "if", "(", "schema", "use", "long", "key", "nodes", "(", ")", ")", "{", "put", "long", "key", "record", "(", "record", ")", ";", "}", "else", "{", "put", "field", "key", "record", "(", "record", ")", ";", "}", "}", "}" ]
[ "assert", "that", "this", "{", "@", "code", "test", "observer", "}", "{", "@", "code", "test", "subscriber", "}", "received", "exactly", "one", "{", "@", "code", "on", "complete", "}", "event" ]
[ "public", "final", "u", "assert", "complete", "(", ")", "{", "long", "c", "=", "completions", ";", "if", "(", "c", "=", "=", "0", ")", "{", "throw", "fail", "(", "\"", "not", "completed", "\"", ")", ";", "}", "else", "if", "(", "c", ">", "1", ")", "{", "throw", "fail", "(", "\"", "multiple", "completions", ":", "\"", "+", "c", ")", ";", "}", "return", "(", "u", ")", "this", ";", "}" ]
[ "test", "the", "property", "'", "attribute", "string", "'" ]
[ "public", "void", "attribute", "string", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "attribute", "string", "}" ]
[ "indicate", "that", "source", "should", "be", "returned", ",", "with", "an", "\"", "include", "\"", "andor", "\"", "exclude", "\"", "set", "which", "can", "include", "simple", "wildcard", "elements" ]
[ "public", "get", "request", "builder", "set", "fetch", "source", "(", "@", "nullable", "string", "[", "]", "includes", ",", "@", "nullable", "string", "[", "]", "excludes", ")", "{", "fetch", "source", "context", "context", "=", "request", "fetch", "source", "context", "(", ")", "=", "=", "null", "?", "fetch", "source", "context", "fetch", "source", ":", "request", "fetch", "source", "context", "(", ")", ";", "request", "fetch", "source", "context", "(", "new", "fetch", "source", "context", "(", "context", "fetch", "source", "(", ")", ",", "includes", ",", "excludes", ")", ")", ";", "return", "this", ";", "}" ]
[ "returns", "the", "fair", "share", "of", "this", "queue", "in", "megabytes" ]
[ "public", "resource", "info", "get", "fair", "share", "(", ")", "{", "return", "fair", "resources", ";", "}" ]
[ "check", "if", "the", "context", "can", "run", "threads", "can", "'", "t", "if", "its", "been", "stopped", "and", "contains", "an", "error" ]
[ "public", "synchronized", "boolean", "should", "run", "(", ")", "{", "return", "!", "stopped", "&", "&", "err", "=", "=", "null", ";", "}" ]
[ "build", "an", "instance", "of", "{", "@", "link", "nacos", "service", "name", "}" ]
[ "public", "static", "nacos", "service", "name", "value", "of", "(", "url", "url", ")", "{", "return", "new", "nacos", "service", "name", "(", "url", ")", ";", "}" ]
[ "removes", "the", "given", "data", "set", "from", "this", "data", "object", "also", "recalculates", "all", "minimum", "and", "maximum", "values", "returns", "true", "if", "a", "data", "set", "was", "removed", ",", "false", "if", "no", "data", "set", "could", "be", "removed" ]
[ "public", "boolean", "remove", "data", "set", "(", "t", "d", ")", "{", "if", "(", "d", "=", "=", "null", ")", "return", "false", ";", "boolean", "removed", "=", "m", "data", "sets", "remove", "(", "d", ")", ";", "/", "/", "if", "a", "data", "set", "was", "removed", "if", "(", "removed", ")", "{", "notify", "data", "changed", "(", ")", ";", "}", "return", "removed", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "returns", "a", "serialized", "json", "string" ]
[ "public", "string", "to", "json", "(", ")", "throws", "i", "o", "exception", "{", "return", "json", "util", "to", "json", "string", "(", "this", ")", ";", "}" ]
[ "handle", "exceptions", "while", "service", "task", "or", "script", "task", "executing" ]
[ "public", "static", "void", "handle", "exception", "(", "process", "context", "context", ",", "abstract", "task", "state", "state", ",", "throwable", "e", ")", "{", "list", "<", "exception", "match", ">", "catches", "=", "state", "get", "catches", "(", ")", ";", "if", "(", "collection", "utils", "is", "not", "empty", "(", "catches", ")", ")", "{", "for", "(", "task", "state", "exception", "match", "exception", "match", ":", "catches", ")", "{", "list", "<", "string", ">", "exceptions", "=", "exception", "match", "get", "exceptions", "(", ")", ";", "list", "<", "class", "<", "?", "extends", "exception", ">", ">", "exception", "classes", "=", "exception", "match", "get", "exception", "classes", "(", ")", ";", "if", "(", "collection", "utils", "is", "not", "empty", "(", "exceptions", ")", ")", "{", "if", "(", "exception", "classes", "=", "=", "null", ")", "{", "synchronized", "(", "exception", "match", ")", "{", "exception", "classes", "=", "exception", "match", "get", "exception", "classes", "(", ")", ";", "if", "(", "exception", "classes", "=", "=", "null", ")", "{", "exception", "classes", "=", "new", "array", "list", "<", ">", "(", "exceptions", "size", "(", ")", ")", ";", "for", "(", "string", "exp", "str", ":", "exceptions", ")", "{", "class", "<", "?", "extends", "exception", ">", "exp", "class", "=", "null", ";", "try", "{", "exp", "class", "=", "(", "class", "<", "?", "extends", "exception", ">", ")", "script", "task", "state", "handler", "class", "get", "class", "loader", "(", ")", "load", "class", "(", "exp", "str", ")", ";", "}", "catch", "(", "exception", "e", "1", ")", "{", "logger", "warn", "(", "\"", "cannot", "load", "exception", "class", "by", "get", "class", "(", ")", "get", "class", "loader", "(", ")", "\"", ",", "e", "1", ")", ";", "try", "{", "exp", "class", "=", "(", "class", "<", "?", "extends", "exception", ">", ")", "thread", "current", "thread", "(", ")", "get", "context", "class", "loader", "(", ")", "load", "class", "(", "exp", "str", ")", ";", "}", "catch", "(", "exception", "e", "2", ")", "{", "logger", "warn", "(", "\"", "cannot", "load", "exception", "class", "by", "thread", "current", "thread", "(", ")", "\"", "+", "\"", "get", "context", "class", "loader", "(", ")", "\"", ",", "e", "2", ")", ";", "}", "}", "if", "(", "exp", "class", "!", "=", "null", ")", "{", "exception", "classes", "add", "(", "exp", "class", ")", ";", "}", "}", "exception", "match", "set", "exception", "classes", "(", "exception", "classes", ")", ";", "}", "}", "}", "for", "(", "class", "<", "?", "extends", "exception", ">", "exp", "class", ":", "exception", "classes", ")", "{", "if", "(", "exp", "class", "is", "assignable", "from", "(", "e", "get", "class", "(", ")", ")", ")", "{", "(", "(", "hierarchical", "process", "context", ")", "context", ")", "set", "variable", "locally", "(", "domain", "constants", "var", "name", "current", "exception", "route", ",", "exception", "match", "get", "next", "(", ")", ")", ";", "return", ";", "}", "}", "}", "}", "}", "logger", "error", "(", "\"", "task", "execution", "failed", "and", "no", "catches", "configured", "\"", ")", ";", "(", "(", "hierarchical", "process", "context", ")", "context", ")", "set", "variable", "locally", "(", "domain", "constants", "var", "name", "is", "exception", "not", "catch", ",", "true", ")", ";", "}" ]
[ "the", "order", "of", "comparison", "is", ":", "network", "first", ",", "then", "disk", ",", "then", "cpu", "the", "comparison", "here", "happens", "each", "time", "primarily", "after", "the", "heuristic", "costs", ",", "then", "after", "the", "quantifiable", "costs" ]
[ "public", "int", "compare", "to", "(", "costs", "o", ")", "{", "/", "/", "check", "the", "network", "cost", "if", "we", "have", "actual", "costs", "on", "both", ",", "use", "them", ",", "otherwise", "use", "the", "/", "/", "heuristic", "costs", "if", "(", "this", "network", "cost", "!", "=", "unknown", "&", "&", "o", "network", "cost", "!", "=", "unknown", ")", "{", "if", "(", "this", "network", "cost", "!", "=", "o", "network", "cost", ")", "{", "return", "this", "network", "cost", "<", "o", "network", "cost", "?", "-", "1", ":", "1", ";", "}", "}", "else", "if", "(", "this", "heuristic", "network", "cost", "<", "o", "heuristic", "network", "cost", ")", "{", "return", "-", "1", ";", "}", "else", "if", "(", "this", "heuristic", "network", "cost", ">", "o", "heuristic", "network", "cost", ")", "{", "return", "1", ";", "}", "/", "/", "next", ",", "check", "the", "disk", "cost", "again", ",", "if", "we", "have", "actual", "costs", "on", "both", ",", "use", "them", ",", "otherwise", "/", "/", "use", "the", "heuristic", "costs", "if", "(", "this", "disk", "cost", "!", "=", "unknown", "&", "&", "o", "disk", "cost", "!", "=", "unknown", ")", "{", "if", "(", "this", "disk", "cost", "!", "=", "o", "disk", "cost", ")", "{", "return", "this", "disk", "cost", "<", "o", "disk", "cost", "?", "-", "1", ":", "1", ";", "}", "}", "else", "if", "(", "this", "heuristic", "disk", "cost", "<", "o", "heuristic", "disk", "cost", ")", "{", "return", "-", "1", ";", "}", "else", "if", "(", "this", "heuristic", "disk", "cost", ">", "o", "heuristic", "disk", "cost", ")", "{", "return", "1", ";", "}", "/", "/", "next", ",", "check", "the", "cpu", "cost", "again", ",", "if", "we", "have", "actual", "costs", "on", "both", ",", "use", "them", ",", "otherwise", "use", "/", "/", "the", "heuristic", "costs", "if", "(", "this", "cpu", "cost", "!", "=", "unknown", "&", "&", "o", "cpu", "cost", "!", "=", "unknown", ")", "{", "return", "this", "cpu", "cost", "<", "o", "cpu", "cost", "?", "-", "1", ":", "this", "cpu", "cost", ">", "o", "cpu", "cost", "?", "1", ":", "0", ";", "}", "else", "if", "(", "this", "heuristic", "cpu", "cost", "<", "o", "heuristic", "cpu", "cost", ")", "{", "return", "-", "1", ";", "}", "else", "if", "(", "this", "heuristic", "cpu", "cost", ">", "o", "heuristic", "cpu", "cost", ")", "{", "return", "1", ";", "}", "else", "{", "return", "0", ";", "}", "}" ]
[ "murmur", "3", "32", "-", "bit", "variant" ]
[ "public", "static", "int", "hash", "3", "2", "(", "byte", "[", "]", "data", ")", "{", "return", "hash", "3", "2", "(", "data", ",", "0", ",", "data", "length", ",", "default", "seed", ")", ";", "}" ]
[ "get", "array", "enum" ]
[ "public", "list", "<", "array", "enum", "enum", ">", "get", "array", "enum", "(", ")", "{", "return", "array", "enum", ";", "}" ]
[ "close", "the", "file" ]
[ "public", "synchronized", "void", "close", "(", ")", "throws", "i", "o", "exception", "{", "if", "(", "out", "!", "=", "null", ")", "{", "sync", "(", ")", ";", "}", "super", "close", "(", ")", ";", "}" ]
[ "returns", "this", "modulo", "{", "@", "code", "val", "}" ]
[ "public", "unsigned", "long", "mod", "(", "unsigned", "long", "val", ")", "{", "return", "from", "long", "bits", "(", "unsigned", "longs", "remainder", "(", "value", ",", "check", "not", "null", "(", "val", ")", "value", ")", ")", ";", "}" ]
[ "get", "a", "uri", "to", "redirect", "an", "operation", "to" ]
[ "private", "uri", "redirect", "u", "r", "i", "(", "final", "router", "router", ",", "final", "user", "group", "information", "ugi", ",", "final", "delegation", "param", "delegation", ",", "final", "user", "param", "username", ",", "final", "do", "as", "param", "do", "as", "user", ",", "final", "string", "path", ",", "final", "http", "op", "param", "op", "op", ",", "final", "long", "open", "offset", ",", "final", "string", "exclude", "datanodes", ",", "final", "param", "<", "?", ",", "?", ">", "parameters", ")", "throws", "u", "r", "i", "syntax", "exception", ",", "i", "o", "exception", "{", "final", "datanode", "info", "dn", "=", "choose", "datanode", "(", "router", ",", "path", ",", "op", ",", "open", "offset", ",", "exclude", "datanodes", ")", ";", "if", "(", "dn", "=", "=", "null", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "failed", "to", "find", "datanode", ",", "suggest", "to", "check", "cluster", "\"", "+", "\"", "health", "exclude", "datanodes", "=", "\"", "+", "exclude", "datanodes", ")", ";", "}", "final", "string", "delegation", "query", ";", "if", "(", "!", "user", "group", "information", "is", "security", "enabled", "(", ")", ")", "{", "/", "/", "security", "disabled", "delegation", "query", "=", "param", "to", "sorted", "string", "(", "\"", "&", "\"", ",", "do", "as", "user", ",", "username", ")", ";", "}", "else", "if", "(", "delegation", "get", "value", "(", ")", "!", "=", "null", ")", "{", "/", "/", "client", "has", "provided", "a", "token", "delegation", "query", "=", "\"", "&", "\"", "+", "delegation", ";", "}", "else", "{", "/", "/", "generate", "a", "token", "final", "token", "<", "?", "extends", "token", "identifier", ">", "t", "=", "generate", "delegation", "token", "(", "ugi", ",", "ugi", "get", "user", "name", "(", ")", ")", ";", "delegation", "query", "=", "\"", "&", "delegation", "=", "\"", "+", "t", "encode", "to", "url", "string", "(", ")", ";", "}", "final", "string", "redirect", "query", "=", "op", "to", "query", "string", "(", ")", "+", "delegation", "query", "+", "\"", "&", "namenoderpcaddress", "=", "\"", "+", "router", "get", "router", "id", "(", ")", "+", "param", "to", "sorted", "string", "(", "\"", "&", "\"", ",", "parameters", ")", ";", "final", "string", "uripath", "=", "web", "hdfs", "file", "system", "path", "prefix", "+", "path", ";", "int", "port", "=", "\"", "http", "\"", "equals", "(", "get", "scheme", "(", ")", ")", "?", "dn", "get", "info", "port", "(", ")", ":", "dn", "get", "info", "secure", "port", "(", ")", ";", "final", "uri", "uri", "=", "new", "uri", "(", "get", "scheme", "(", ")", ",", "null", ",", "dn", "get", "host", "name", "(", ")", ",", "port", ",", "uripath", ",", "redirect", "query", ",", "null", ")", ";", "if", "(", "log", "is", "trace", "enabled", "(", ")", ")", "{", "log", "trace", "(", "\"", "redirect", "u", "r", "i", "=", "{", "}", "\"", ",", "uri", ")", ";", "}", "return", "uri", ";", "}" ]
[ "inserts", "an", "entry", "into", "the", "cache" ]
[ "public", "byte", "[", "]", "put", "(", "uri", "uri", ",", "byte", "[", "]", "encryption", "key", ")", "{", "return", "backing", "map", "put", "(", "assertions", "check", "not", "null", "(", "uri", ")", ",", "assertions", "check", "not", "null", "(", "encryption", "key", ")", ")", ";", "}" ]
[ "return", "a", "prepared", "statement", "creator", "to", "perform", "an", "operation", "with", "the", "given", "parameters" ]
[ "protected", "final", "prepared", "statement", "creator", "new", "prepared", "statement", "creator", "(", "string", "sql", "to", "use", ",", "@", "nullable", "object", "[", "]", "params", ")", "{", "assert", "state", "(", "this", "prepared", "statement", "factory", "!", "=", "null", ",", "\"", "no", "prepared", "statement", "factory", "available", "\"", ")", ";", "return", "this", "prepared", "statement", "factory", "new", "prepared", "statement", "creator", "(", "sql", "to", "use", ",", "params", ")", ";", "}" ]
[ "compare", "the", "given", "high", "function", "'", "s", "idea", "of", "the", "prototype", "with", "the", "function", "'", "s", "idea", "return", "true", "if", "there", "is", "a", "difference", "if", "a", "specific", "symbol", "is", "being", "changed", ",", "it", "can", "be", "passed", "in", "to", "check", "whether", "or", "not", "the", "prototype", "is", "being", "affected" ]
[ "protected", "static", "boolean", "check", "full", "commit", "(", "high", "symbol", "high", "symbol", ",", "high", "function", "hfunction", ")", "{", "if", "(", "high", "symbol", "!", "=", "null", "&", "&", "!", "high", "symbol", "is", "parameter", "(", ")", ")", "{", "return", "false", ";", "}", "function", "function", "=", "hfunction", "get", "function", "(", ")", ";", "parameter", "[", "]", "parameters", "=", "function", "get", "parameters", "(", ")", ";", "local", "symbol", "map", "local", "symbol", "map", "=", "hfunction", "get", "local", "symbol", "map", "(", ")", ";", "int", "num", "params", "=", "local", "symbol", "map", "get", "num", "params", "(", ")", ";", "if", "(", "num", "params", "!", "=", "parameters", "length", ")", "{", "return", "true", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "params", ";", "i", "+", "+", ")", "{", "high", "symbol", "param", "=", "local", "symbol", "map", "get", "param", "symbol", "(", "i", ")", ";", "if", "(", "param", "get", "category", "index", "(", ")", "!", "=", "i", ")", "{", "return", "true", ";", "}", "variable", "storage", "storage", "=", "param", "get", "storage", "(", ")", ";", "/", "/", "don", "'", "t", "compare", "using", "the", "equals", "method", "so", "that", "dynamic", "variable", "storage", "can", "match", "if", "(", "0", "!", "=", "storage", "compare", "to", "(", "parameters", "[", "i", "]", "get", "variable", "storage", "(", ")", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "uses", "an", "insertion", "-", "ordered", "hash", "-", "based", "{", "@", "code", "set", "}", "to", "store", "value", "collections", ",", "initialized", "to", "expect", "the", "specified", "number", "of", "values", "per", "key" ]
[ "public", "set", "multimap", "builder", "<", "k0", ",", "object", ">", "linked", "hash", "set", "values", "(", "final", "int", "expected", "values", "per", "key", ")", "{", "check", "nonnegative", "(", "expected", "values", "per", "key", ",", "\"", "expected", "values", "per", "key", "\"", ")", ";", "return", "new", "set", "multimap", "builder", "<", "k0", ",", "object", ">", "(", ")", "{", "@", "override", "public", "<", "k", "extends", "k0", ",", "v", ">", "set", "multimap", "<", "k", ",", "v", ">", "build", "(", ")", "{", "return", "multimaps", "new", "set", "multimap", "(", "multimap", "builder", "with", "keys", "this", "<", "k", ",", "v", ">", "create", "map", "(", ")", ",", "new", "linked", "hash", "set", "supplier", "<", "v", ">", "(", "expected", "values", "per", "key", ")", ")", ";", "}", "}", ";", "}" ]
[ "sign", "a", "dns", "record" ]
[ "private", "void", "sign", "site", "record", "(", "zone", "zone", ",", "record", "record", ")", "throws", "dnssec", "d", "n", "s", "s", "e", "c", "exception", "{", "r", "rset", "rrset", "=", "zone", "find", "exact", "match", "(", "record", "get", "name", "(", ")", ",", "record", "get", "type", "(", ")", ")", ";", "calendar", "cal", "=", "calendar", "get", "instance", "(", ")", ";", "date", "inception", "=", "cal", "get", "time", "(", ")", ";", "cal", "add", "(", "calendar", "year", ",", "1", ")", ";", "date", "expiration", "=", "cal", "get", "time", "(", ")", ";", "r", "r", "s", "i", "g", "record", "rrsig", "record", "=", "dnssec", "sign", "(", "rrset", ",", "dns", "key", "recs", "get", "(", "zone", "get", "origin", "(", ")", ")", ",", "private", "key", ",", "inception", ",", "expiration", ")", ";", "log", "info", "(", "\"", "adding", "{", "}", "\"", ",", "record", ")", ";", "rrset", "add", "r", "r", "(", "rrsig", "record", ")", ";", "}" ]
[ "after", "build", "phase" ]
[ "int", "finalize", "build", "phase", "(", "i", "o", "manager", "io", "access", ",", "file", "i", "o", "channel", "enumerator", "probe", "channel", "enumerator", ")", "throws", "i", "o", "exception", "{", "this", "final", "buffer", "limit", "=", "this", "build", "side", "write", "buffer", "get", "current", "position", "in", "segment", "(", ")", ";", "this", "partition", "buffers", "=", "this", "build", "side", "write", "buffer", "close", "(", ")", ";", "if", "(", "!", "is", "in", "memory", "(", ")", ")", "{", "/", "/", "close", "the", "channel", "this", "build", "side", "channel", "close", "(", ")", ";", "this", "probe", "side", "buffer", "=", "file", "channel", "util", "create", "output", "view", "(", "io", "access", ",", "probe", "channel", "enumerator", "next", "(", ")", ",", "long", "table", "compression", "enable", "(", ")", ",", "long", "table", "compression", "codec", "factory", "(", ")", ",", "long", "table", "compression", "block", "size", "(", ")", ",", "segment", "size", ")", ";", "return", "1", ";", "}", "else", "{", "return", "0", ";", "}", "}" ]
[ "set", "the", "delimiter", "to", "be", "used", "between", "error", "messages", "defaults", "to", "an", "html", "'", "{", "@", "code", "<", "br", ">", "}", "'", "tag" ]
[ "public", "void", "set", "delimiter", "(", "string", "delimiter", ")", "{", "this", "delimiter", "=", "delimiter", ";", "}" ]
[ "limit", "a", "value", "to", "a", "specified", "range" ]
[ "static", "float", "cap", "(", "float", "val", ",", "float", "low", ",", "float", "hi", ")", "{", "return", "math", "min", "(", "math", "max", "(", "val", ",", "low", ")", ",", "hi", ")", ";", "}" ]
[ "deserialize", "the", "assignment", "by", "checkpoint", "ids" ]
[ "static", "<", "split", "t", ">", "map", "<", "long", ",", "map", "<", "integer", ",", "linked", "hash", "set", "<", "split", "t", ">", ">", ">", "read", "assignments", "by", "checkpoint", "id", "(", "data", "input", "stream", "in", ",", "simple", "versioned", "serializer", "<", "split", "t", ">", "split", "serializer", ")", "throws", "i", "o", "exception", "{", "int", "split", "serializer", "version", "=", "in", "read", "int", "(", ")", ";", "int", "num", "checkpoints", "=", "in", "read", "int", "(", ")", ";", "map", "<", "long", ",", "map", "<", "integer", ",", "linked", "hash", "set", "<", "split", "t", ">", ">", ">", "assignments", "by", "checkpoint", "ids", "=", "new", "hash", "map", "<", ">", "(", "num", "checkpoints", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "checkpoints", ";", "i", "+", "+", ")", "{", "long", "checkpoint", "id", "=", "in", "read", "long", "(", ")", ";", "int", "num", "subtasks", "=", "in", "read", "int", "(", ")", ";", "map", "<", "integer", ",", "linked", "hash", "set", "<", "split", "t", ">", ">", "assignments", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "assignments", "by", "checkpoint", "ids", "put", "(", "checkpoint", "id", ",", "assignments", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "num", "subtasks", ";", "j", "+", "+", ")", "{", "int", "subtask", "id", "=", "in", "read", "int", "(", ")", ";", "int", "num", "assigned", "splits", "=", "in", "read", "int", "(", ")", ";", "linked", "hash", "set", "<", "split", "t", ">", "splits", "=", "new", "linked", "hash", "set", "<", ">", "(", "num", "assigned", "splits", ")", ";", "assignments", "put", "(", "subtask", "id", ",", "splits", ")", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "num", "assigned", "splits", ";", "k", "+", "+", ")", "{", "int", "serialized", "split", "size", "=", "in", "read", "int", "(", ")", ";", "byte", "[", "]", "serialized", "split", "=", "read", "bytes", "(", "in", ",", "serialized", "split", "size", ")", ";", "split", "t", "split", "=", "split", "serializer", "deserialize", "(", "split", "serializer", "version", ",", "serialized", "split", ")", ";", "splits", "add", "(", "split", ")", ";", "}", "}", "}", "return", "assignments", "by", "checkpoint", "ids", ";", "}" ]
[ "get", "how", "many", "bytes", "can", "be", "written", "until", "{", "@", "link", "#", "is", "writable", "(", ")", "}", "returns", "{", "@", "code", "false", "}", "this", "quantity", "will", "always", "be", "non", "-", "negative", "if", "{", "@", "link", "#", "is", "writable", "(", ")", "}", "is", "{", "@", "code", "false", "}", "then", "0" ]
[ "public", "long", "bytes", "before", "unwritable", "(", ")", "{", "long", "bytes", "=", "channel", "config", "(", ")", "get", "write", "buffer", "high", "water", "mark", "(", ")", "-", "total", "pending", "size", ";", "/", "/", "if", "bytes", "is", "negative", "we", "know", "we", "are", "not", "writable", ",", "but", "if", "bytes", "is", "non", "-", "negative", "we", "have", "to", "check", "writability", "/", "/", "note", "that", "total", "pending", "size", "and", "is", "writable", "(", ")", "use", "different", "volatile", "variables", "that", "are", "not", "synchronized", "/", "/", "together", "total", "pending", "size", "will", "be", "updated", "before", "is", "writable", "(", ")", "if", "(", "bytes", ">", "0", ")", "{", "return", "is", "writable", "(", ")", "?", "bytes", ":", "0", ";", "}", "return", "0", ";", "}" ]
[ "test", "the", "property", "'", "id", "'" ]
[ "public", "void", "id", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "id", "}" ]
[ "notify", "any", "parse", "listeners", "of", "an", "enter", "rule", "event" ]
[ "protected", "void", "trigger", "enter", "rule", "event", "(", ")", "{", "for", "(", "parse", "tree", "listener", "listener", ":", "parse", "listeners", ")", "{", "listener", "enter", "every", "rule", "(", "ctx", ")", ";", "ctx", "enter", "rule", "(", "listener", ")", ";", "}", "}" ]
[ "readable", "method", "for", "appending", "error", "messages", "to", "the", "log", "currently", "does", "nothing", "different", "than", "{", "@", "link", "#", "append", "msg", "(", "string", ",", "string", ")", "}" ]
[ "public", "void", "error", "(", "string", "originator", ",", "string", "message", ")", "{", "append", "msg", "(", "originator", ",", "message", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "test", "verifies", "that", "the", "server", "shouldn", "'", "t", "be", "affected", "but", "runtime", "errors", "on", "stop", "(", ")" ]
[ "public", "void", "test", "faulty", "metrics", "provider", "on", "stop", "(", ")", "throws", "exception", "{", "client", "base", "setup", "test", "env", "(", ")", ";", "base", "test", "metrics", "provider", "metrics", "provider", "capturing", "lifecycle", "reset", "(", ")", ";", "/", "/", "setup", "the", "logger", "to", "capture", "all", "logs", "byte", "array", "output", "stream", "os", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "writer", "appender", "appender", "=", "get", "console", "appender", "(", "os", ",", "level", "warn", ")", ";", "logger", "qlogger", "=", "logger", "get", "logger", "(", "\"", "org", "apache", "zookeeper", "server", "quorum", "\"", ")", ";", "qlogger", "add", "appender", "(", "appender", ")", ";", "try", "{", "final", "int", "client", "port", "qp1", "=", "port", "assignment", "unique", "(", ")", ";", "final", "int", "client", "port", "qp2", "=", "port", "assignment", "unique", "(", ")", ";", "string", "quorum", "cfg", "section", "server", "=", "\"", "server", "1", "=", "127", "0", "0", "1", ":", "\"", "+", "port", "assignment", "unique", "(", ")", "+", "\"", ":", "\"", "+", "port", "assignment", "unique", "(", ")", "+", "\"", ";", "\"", "+", "client", "port", "qp1", "+", "\"", "\\", "n", "\"", "+", "\"", "server", "2", "=", "127", "0", "0", "1", ":", "\"", "+", "port", "assignment", "unique", "(", ")", "+", "\"", ":", "\"", "+", "port", "assignment", "unique", "(", ")", "+", "\"", ";", "\"", "+", "client", "port", "qp2", "+", "\"", "\\", "n", "\"", ";", "/", "/", "server", "1", "boots", "with", "a", "metrics", "provider", "string", "quorum", "cfg", "section", "server", "1", "=", "quorum", "cfg", "section", "server", "+", "\"", "metrics", "provider", "class", "name", "=", "\"", "+", "base", "test", "metrics", "provider", "metrics", "provider", "with", "error", "in", "stop", "class", "get", "name", "(", ")", "+", "\"", "\\", "n", "\"", ";", "main", "thread", "q", "1", "=", "new", "main", "thread", "(", "1", ",", "client", "port", "qp1", ",", "quorum", "cfg", "section", "server", "1", ")", ";", "main", "thread", "q", "2", "=", "new", "main", "thread", "(", "2", ",", "client", "port", "qp2", ",", "quorum", "cfg", "section", "server", ")", ";", "q", "1", "start", "(", ")", ";", "q", "2", "start", "(", ")", ";", "boolean", "isup", "1", "=", "client", "base", "wait", "for", "server", "up", "(", "\"", "127", "0", "0", "1", ":", "\"", "+", "client", "port", "qp1", ",", "30000", ")", ";", "boolean", "isup", "2", "=", "client", "base", "wait", "for", "server", "up", "(", "\"", "127", "0", "0", "1", ":", "\"", "+", "client", "port", "qp2", ",", "30000", ")", ";", "assert", "true", "(", "isup", "1", ",", "\"", "server", "1", "never", "came", "up", "\"", ")", ";", "assert", "true", "(", "isup", "2", ",", "\"", "server", "2", "never", "came", "up", "\"", ")", ";", "q", "1", "shutdown", "(", ")", ";", "q", "2", "shutdown", "(", ")", ";", "assert", "true", "(", "client", "base", "wait", "for", "server", "down", "(", "\"", "127", "0", "0", "1", ":", "\"", "+", "client", "port", "qp1", ",", "client", "base", "connection", "timeout", ")", ",", "\"", "waiting", "for", "server", "1", "down", "\"", ")", ";", "assert", "true", "(", "client", "base", "wait", "for", "server", "down", "(", "\"", "127", "0", "0", "1", ":", "\"", "+", "client", "port", "qp2", ",", "client", "base", "connection", "timeout", ")", ",", "\"", "waiting", "for", "server", "2", "down", "\"", ")", ";", "}", "finally", "{", "qlogger", "remove", "appender", "(", "appender", ")", ";", "}", "assert", "true", "(", "base", "test", "metrics", "provider", "metrics", "provider", "with", "error", "in", "stop", "stop", "called", "get", "(", ")", ",", "\"", "metrics", "provider", "lifecycle", "error", "\"", ")", ";", "line", "number", "reader", "r", "=", "new", "line", "number", "reader", "(", "new", "string", "reader", "(", "os", "to", "string", "(", ")", ")", ")", ";", "string", "line", ";", "boolean", "found", "=", "false", ";", "pattern", "p", "=", "pattern", "compile", "(", "\"", "*", "error", "while", "stopping", "metrics", "*", "\"", ")", ";", "while", "(", "(", "line", "=", "r", "read", "line", "(", ")", ")", "!", "=", "null", ")", "{", "found", "=", "p", "matcher", "(", "line", ")", "matches", "(", ")", ";", "if", "(", "found", ")", "{", "break", ";", "}", "}", "assert", "true", "(", "found", ",", "\"", "complains", "about", "metrics", "provider", "\"", ")", ";", "}" ]
[ "model", "tests", "for", "animal" ]
[ "public", "void", "test", "animal", "(", ")", "{", "/", "/", "todo", ":", "test", "animal", "}" ]
[ "returns", "the", "hostname", "for", "this", "datanode", "if", "the", "hostname", "is", "not", "explicitly", "configured", "in", "the", "given", "config", ",", "then", "it", "is", "determined", "via", "the", "dns", "class" ]
[ "private", "static", "string", "get", "host", "name", "(", "configuration", "config", ")", "throws", "unknown", "host", "exception", "{", "string", "name", "=", "config", "get", "(", "dfs", "datanode", "host", "name", "key", ")", ";", "if", "(", "name", "=", "=", "null", ")", "{", "string", "dns", "interface", "=", "config", "get", "(", "common", "configuration", "keys", "hadoop", "security", "dns", "interface", "key", ")", ";", "string", "name", "server", "=", "config", "get", "(", "common", "configuration", "keys", "hadoop", "security", "dns", "nameserver", "key", ")", ";", "boolean", "fallback", "to", "hosts", "=", "false", ";", "if", "(", "dns", "interface", "=", "=", "null", ")", "{", "/", "/", "try", "the", "legacy", "configuration", "keys", "dns", "interface", "=", "config", "get", "(", "dfs", "datanode", "dns", "interface", "key", ")", ";", "name", "server", "=", "config", "get", "(", "dfs", "datanode", "dns", "nameserver", "key", ")", ";", "}", "else", "{", "/", "/", "if", "hadoop", "security", "dns", "*", "is", "set", "then", "also", "attempt", "hosts", "file", "/", "/", "resolution", "if", "dns", "fails", "we", "will", "not", "use", "hosts", "file", "resolution", "/", "/", "by", "default", "to", "avoid", "breaking", "existing", "clusters", "fallback", "to", "hosts", "=", "true", ";", "}", "name", "=", "dns", "get", "default", "host", "(", "dns", "interface", ",", "name", "server", ",", "fallback", "to", "hosts", ")", ";", "}", "return", "name", ";", "}" ]
[ "encrypts", "the", "provided", "char", "array", "and", "returns", "the", "encrypted", "values", "in", "a", "char", "array" ]
[ "public", "char", "[", "]", "encrypt", "(", "char", "[", "]", "chars", ")", "{", "byte", "[", "]", "char", "bytes", "=", "char", "arrays", "to", "utf", "8", "bytes", "(", "chars", ")", ";", "string", "base", "6", "4", "=", "base", "6", "4", "get", "encoder", "(", ")", "encode", "to", "string", "(", "encrypt", "internal", "(", "char", "bytes", ",", "encryption", "key", ")", ")", ";", "return", "encrypted", "text", "prefix", "concat", "(", "base", "6", "4", ")", "to", "char", "array", "(", ")", ";", "}" ]
[ "creates", "an", "xml", "item", "this", "route", "creates", "an", "xml", "item" ]
[ "public", "void", "create", "xml", "item", "test", "(", ")", "{", "xml", "item", "xml", "item", "=", "null", ";", "/", "/", "api", "create", "xml", "item", "(", "xml", "item", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "gets", "the", "message", "id", "that", "associated", "with", "this", "tuple" ]
[ "public", "message", "id", "get", "message", "id", "(", ")", ";" ]
[ "updates", "a", "pet", "in", "the", "store", "with", "form", "data" ]
[ "public", "void", "update", "pet", "with", "form", "test", "(", ")", "throws", "api", "exception", "{", "long", "pet", "id", "=", "null", ";", "string", "name", "=", "null", ";", "string", "status", "=", "null", ";", "api", "update", "pet", "with", "form", "(", "pet", "id", ",", "name", ",", "status", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "returns", "true", "if", "field", "corresponding", "to", "field", "i", "d", "is", "set", "(", "has", "been", "assigned", "a", "value", ")", "and", "false", "otherwise" ]
[ "public", "boolean", "is", "set", "(", "fields", "field", ")", "{", "if", "(", "field", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "switch", "(", "field", ")", "{", "case", "arg", ":", "return", "is", "set", "arg", "(", ")", ";", "}", "throw", "new", "illegal", "state", "exception", "(", ")", ";", "}" ]
[ "compares", "metadata", "from", "2", "s3", "file", "status", "'", "s", "to", "see", "if", "they", "differ" ]
[ "private", "static", "boolean", "differ", "(", "file", "status", "this", "one", ",", "file", "status", "that", "one", ")", "{", "preconditions", "check", "argument", "(", "!", "(", "this", "one", "=", "=", "null", "&", "&", "that", "one", "=", "=", "null", ")", ")", ";", "return", "(", "this", "one", "=", "=", "null", "|", "|", "that", "one", "=", "=", "null", ")", "|", "|", "(", "this", "one", "get", "len", "(", ")", "!", "=", "that", "one", "get", "len", "(", ")", ")", "|", "|", "(", "this", "one", "is", "directory", "(", ")", "!", "=", "that", "one", "is", "directory", "(", ")", ")", "|", "|", "(", "!", "this", "one", "is", "directory", "(", ")", "&", "&", "this", "one", "get", "modification", "time", "(", ")", "!", "=", "that", "one", "get", "modification", "time", "(", ")", ")", ";", "}" ]
[ "called", "right", "after", "a", "{", "@", "link", "computer", "}", "went", "offline" ]
[ "public", "void", "on", "offline", "(", "computer", "c", ")", "{", "}" ]
[ "test", "that", "program", "diff", "can", "determine", "there", "is", "a", "function", "difference", "when", "the", "function", "is", "only", "in", "program", "2" ]
[ "public", "void", "test", "function", "only", "in", "p", "2", "(", ")", "throws", "exception", "{", "/", "/", "in", "p", "2", "and", "not", "in", "p", "1", "int", "transaction", "i", "d", "=", "p", "1", "start", "transaction", "(", "\"", "test", "transaction", "\"", ")", ";", "p", "1", "get", "function", "manager", "(", ")", "remove", "function", "(", "addr", "(", "0x", "1", "0", "0", "3", "0d", "2", ")", ")", ";", "p", "1", "end", "transaction", "(", "transaction", "i", "d", ",", "true", ")", ";", "program", "diff", "=", "new", "program", "diff", "(", "p", "1", ",", "p", "2", ")", ";", "program", "diff", "set", "filter", "(", "new", "program", "diff", "filter", "(", "program", "diff", "filter", "function", "diffs", ")", ")", ";", "assert", "equals", "(", "new", "address", "set", "(", "addr", "(", "0x", "1", "0", "0", "3", "0d", "2", ")", ",", "addr", "(", "0x", "1", "0", "0", "3", "0d", "2", ")", ")", ",", "program", "diff", "get", "differences", "(", "program", "diff", "get", "filter", "(", ")", ",", "null", ")", ")", ";", "}" ]
[ "same", "as", "<", "code", ">", "class", "for", "name", "(", ")", "<", "code", ">", ",", "except", "that", "it", "works", "for", "primitive", "types" ]
[ "public", "static", "class", "<", "?", ">", "for", "name", "(", "string", "name", ")", "throws", "class", "not", "found", "exception", "{", "return", "for", "name", "(", "name", ",", "get", "class", "loader", "(", ")", ")", ";", "}" ]
[ "add", "config", "variable", "for", "homedir", "for", "default", "mount", "table" ]
[ "public", "static", "void", "set", "home", "dir", "conf", "(", "final", "configuration", "conf", ",", "final", "string", "homedir", ")", "{", "set", "home", "dir", "conf", "(", "conf", ",", "get", "default", "mount", "table", "name", "(", "conf", ")", ",", "homedir", ")", ";", "}" ]
[ "creates", "specifications", "to", "keep", "classes", "and", "class", "members", ",", "based", "on", "the", "given", "parameters" ]
[ "private", "keep", "class", "specification", "create", "keep", "class", "specification", "(", "boolean", "allow", "shrinking", ",", "boolean", "mark", "classes", ",", "boolean", "mark", "conditionally", ",", "map", "keep", "args", ",", "class", "specification", "class", "specification", ")", "{", "return", "new", "keep", "class", "specification", "(", "mark", "classes", ",", "mark", "conditionally", ",", "retrieve", "boolean", "(", "keep", "args", ",", "\"", "includedescriptorclasses", "\"", ",", "false", ")", ",", "retrieve", "boolean", "(", "keep", "args", ",", "\"", "allowshrinking", "\"", ",", "allow", "shrinking", ")", ",", "retrieve", "boolean", "(", "keep", "args", ",", "\"", "allowoptimization", "\"", ",", "false", ")", ",", "retrieve", "boolean", "(", "keep", "args", ",", "\"", "allowobfuscation", "\"", ",", "false", ")", ",", "class", "specification", ")", ";", "}" ]
[ "configures", "how", "to", "buffer", "elements", "before", "sending", "them", "in", "bulk", "to", "the", "cluster", "for", "efficiency", "sets", "the", "maximum", "size", "of", "buffered", "actions", "per", "bulk", "request", "(", "using", "the", "syntax", "of", "{", "@", "link", "memory", "size", "}", ")" ]
[ "public", "elasticsearch", "bulk", "flush", "max", "size", "(", "string", "max", "size", ")", "{", "internal", "properties", "put", "memory", "size", "(", "connector", "bulk", "flush", "max", "size", ",", "memory", "size", "parse", "(", "max", "size", ",", "memory", "size", "memory", "unit", "bytes", ")", ")", ";", "return", "this", ";", "}" ]
[ "returns", "true", "if", "the", "column", "at", "the", "given", "index", "is", "visible", "this", "call", "is", "handy", "when", "checking", "for", "visibility", "when", "dealing", "with", "model", "data", "that", "knows", "nothing", "about", "the", "hidden", "columns" ]
[ "public", "boolean", "is", "visible", "(", "int", "model", "index", ")", "{", "table", "column", "table", "column", "=", "get", "column", "from", "model", "index", "(", "model", "index", ")", ";", "return", "is", "visible", "(", "table", "column", ")", ";", "}" ]
[ "get", "the", "next", "index", "where", "the", "property", "value", "exists" ]
[ "public", "synchronized", "long", "get", "next", "property", "index", "(", "long", "index", ")", "throws", "no", "such", "index", "exception", "{", "long", "page", "i", "d", "=", "get", "page", "i", "d", "(", "index", ")", ";", "short", "offset", "=", "get", "page", "offset", "(", "index", ")", ";", "property", "page", "page", "=", "get", "page", "(", "page", "i", "d", ")", ";", "if", "(", "page", "!", "=", "null", ")", "{", "short", "next", "offset", "=", "page", "get", "next", "(", "offset", ")", ";", "if", "(", "next", "offset", ">", "=", "0", ")", "{", "return", "get", "index", "(", "page", "i", "d", ",", "next", "offset", ")", ";", "}", "}", "page", "i", "d", "=", "property", "page", "index", "get", "next", "(", "page", "i", "d", ")", ";", "if", "(", "page", "i", "d", ">", "=", "0", ")", "{", "page", "=", "get", "page", "(", "page", "i", "d", ")", ";", "if", "(", "page", "!", "=", "null", ")", "{", "short", "next", "offset", "=", "page", "get", "first", "(", ")", ";", "if", "(", "next", "offset", "<", "0", ")", "{", "throw", "new", "assert", "exception", "(", "\"", "page", "(", "\"", "+", "page", "i", "d", "+", "\"", ")", "exists", "but", "there", "is", "no", "'", "first", "'", "offset", "\"", ")", ";", "}", "return", "get", "index", "(", "page", "i", "d", ",", "next", "offset", ")", ";", "}", "}", "throw", "no", "such", "index", "exception", "no", "such", "index", "exception", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "clears", "all", "properties", "in", "this", "preferences", "object", "<", "b", ">", "warning", ":", "<", "b", ">", "save", "any", "changes", "pending", "before", "calling", "this", "method", ",", "as", "this", "call", "will", "erase", "any", "changes", "not", "written", "do", "disk", "via", "{", "@", "link", "#", "store", "(", ")", "}" ]
[ "public", "static", "void", "clear", "(", ")", "{", "properties", "clear", "(", ")", ";", "}" ]