docstring_tokens
list
code_tokens
list
[ "notifies", "the", "provider", "that", "the", "component", "is", "being", "shown" ]
[ "public", "void", "component", "shown", "(", ")", "{", "/", "/", "update", "the", "contents", "with", "the", "current", "address", "disassemble", "location", "(", "current", "location", ")", ";", "}" ]
[ "atomically", "sets", "the", "value", "to", "the", "given", "updated", "value", "if", "the", "current", "value", "is", "<", "a", "href", "=", "\"", "#", "bit", "equals", "\"", ">", "bitwise", "equal", "to", "the", "expected", "value" ]
[ "public", "final", "boolean", "compare", "and", "set", "(", "double", "expect", ",", "double", "update", ")", "{", "return", "updater", "compare", "and", "set", "(", "this", ",", "double", "to", "raw", "long", "bits", "(", "expect", ")", ",", "double", "to", "raw", "long", "bits", "(", "update", ")", ")", ";", "}" ]
[ "the", "name", "of", "the", "kind", "of", "thing", "being", "resolved", "used", "when", "building", "the", "error", "message", "sent", "back", "to", "the", "user", "when", "they", "specify", "a", "function", "that", "doesn", "'", "t", "exist" ]
[ "protected", "abstract", "string", "type", "(", ")", ";" ]
[ "resumes", "encoding", "of", "the", "stream", "may", "be", "helpful", "if", "you", "need", "to", "embed", "a", "piece", "of", "base", "6", "4", "-", "encoded", "data", "in", "a", "stream" ]
[ "public", "void", "resume", "encoding", "(", ")", "{", "this", "suspend", "encoding", "=", "false", ";", "}" ]
[ "searches", "for", "the", "property", "with", "the", "specified", "key", "in", "this", "property", "list", "if", "the", "key", "is", "not", "found", "in", "this", "property", "list", ",", "the", "default", "property", "list", ",", "and", "its", "defaults", ",", "recursively", ",", "are", "then", "checked", "the", "method", "returns", "the", "default", "value", "argument", "if", "the", "property", "is", "not", "found" ]
[ "public", "float", "get", "float", "(", "string", "key", ",", "float", "default", "value", ")", "{", "string", "argument", "=", "get", "property", "(", "key", ",", "null", ")", ";", "return", "argument", "=", "=", "null", "?", "default", "value", ":", "float", "parse", "float", "(", "argument", ")", ";", "}" ]
[ "removes", "the", "variable", "and", "creates", "a", "new", ";", "@", "link", "historic", "variable", "update", "entity", "}" ]
[ "void", "remove", "variable", "(", "string", "variable", "name", ")", ";" ]
[ "set", "a", "string", "array", "as", "mandatory", "option" ]
[ "public", "b", "must", "(", "@", "nonnull", "final", "string", "key", ",", "@", "nonnull", "final", "string", "values", ")", "{", "mandatory", "keys", "add", "(", "key", ")", ";", "options", "set", "strings", "(", "key", ",", "values", ")", ";", "return", "get", "this", "builder", "(", ")", ";", "}" ]
[ "creates", "a", "new", "instance", "for", "which", "{", "@", "link", "#", "is", "flags", "only", "(", ")", "}", "will", "return", "true" ]
[ "public", "static", "decoder", "input", "buffer", "new", "flags", "only", "instance", "(", ")", "{", "return", "new", "decoder", "input", "buffer", "(", "buffer", "replacement", "mode", "disabled", ")", ";", "}" ]
[ "return", "the", "type", "of", "image" ]
[ "public", "static", "image", "type", "get", "image", "type", "(", "final", "file", "file", ")", "{", "if", "(", "file", "=", "=", "null", ")", "return", "null", ";", "input", "stream", "is", "=", "null", ";", "try", "{", "is", "=", "new", "file", "input", "stream", "(", "file", ")", ";", "image", "type", "type", "=", "get", "image", "type", "(", "is", ")", ";", "if", "(", "type", "!", "=", "null", ")", "{", "return", "type", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "finally", "{", "try", "{", "if", "(", "is", "!", "=", "null", ")", "{", "is", "close", "(", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "}", "return", "null", ";", "}" ]
[ "write", "operation", "step", "1", ":", "count", "whether", "to", "open", "the", "limination", "checking", "funtion", "for", "capacity", "management", ";", "step", "2", ":", "open", "limination", "checking", "capacity", "management", "and", "check", "size", "of", "content", "and", "quota", ";" ]
[ "private", "object", "do", "4", "insert", "(", "proceeding", "join", "point", "pjp", ",", "http", "servlet", "request", "request", ",", "http", "servlet", "response", "response", ",", "string", "group", ",", "string", "tenant", ",", "string", "content", ")", "throws", "throwable", "{", "logger", "info", "(", "\"", "[", "capacity", "management", "]", "do", "4", "insert", "\"", ")", ";", "counter", "mode", "counter", "mode", "=", "counter", "mode", "increment", ";", "boolean", "has", "tenant", "=", "has", "tenant", "(", "tenant", ")", ";", "if", "(", "property", "util", "is", "capacity", "limit", "check", "(", ")", ")", "{", "/", "/", "write", "or", "update", ":", "usage", "+", "1", "limit", "type", "limit", "type", "=", "get", "limit", "type", "(", "counter", "mode", ",", "group", ",", "tenant", ",", "content", ",", "has", "tenant", ")", ";", "if", "(", "limit", "type", "!", "=", "null", ")", "{", "return", "response", "4", "limit", "(", "request", ",", "response", ",", "limit", "type", ")", ";", "}", "}", "else", "{", "/", "/", "write", "or", "update", ":", "usage", "+", "1", "insert", "or", "update", "usage", "(", "group", ",", "tenant", ",", "counter", "mode", ",", "has", "tenant", ")", ";", "}", "return", "get", "result", "(", "pjp", ",", "response", ",", "group", ",", "tenant", ",", "counter", "mode", ",", "has", "tenant", ")", ";", "}" ]
[ "specifies", "the", "consumer", "to", "start", "reading", "from", "any", "committed", "group", "offsets", "found", "in", "zookeeper", "kafka", "brokers", "the", "\"", "group", "id", "\"", "property", "must", "be", "set", "in", "the", "configuration", "properties", "if", "no", "offset", "can", "be", "found", "for", "a", "partition", ",", "the", "behaviour", "in", "\"", "auto", "offset", "reset", "\"", "set", "in", "the", "configuration", "properties", "will", "be", "used", "for", "the", "partition", "this", "method", "does", "not", "affect", "where", "partitions", "are", "read", "from", "when", "the", "consumer", "is", "restored", "from", "a", "checkpoint", "or", "savepoint", "when", "the", "consumer", "is", "restored", "from", "a", "checkpoint", "or", "savepoint", ",", "only", "the", "offsets", "in", "the", "restored", "state", "will", "be", "used" ]
[ "public", "flink", "kafka", "consumer", "base", "<", "t", ">", "set", "start", "from", "group", "offsets", "(", ")", "{", "this", "startup", "mode", "=", "startup", "mode", "group", "offsets", ";", "this", "startup", "offsets", "timestamp", "=", "null", ";", "this", "specific", "startup", "offsets", "=", "null", ";", "return", "this", ";", "}" ]
[ "sets", "the", "type", "of", "exception", "that", "this", "filter", "will", "handle" ]
[ "public", "void", "exception", "class", "(", "class", "<", "?", "extends", "t", ">", "exception", "class", ")", "{", "this", "exception", "class", "=", "exception", "class", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "does", "nothing" ]
[ "@", "override", "public", "void", "exit", "comparison", "operator", "(", "sql", "base", "parser", "comparison", "operator", "context", "ctx", ")", "{", "}" ]
[ "returns", "the", "start", "of", "the", "next", "line", "after", "the", "given", "byte", "to", "do", "this", ",", "simply", "read", "backwards", "from", "the", "given", "point", "until", "a", "newline", "or", "carriage", "return", "is", "found" ]
[ "public", "synchronized", "long", "get", "start", "of", "next", "line", "(", "long", "start", "byte", ")", "throws", "i", "o", "exception", "{", "/", "/", "if", "the", "start", "byte", "is", "0", "(", "or", "less", ")", ",", "just", "start", "from", "here", "-", "no", "need", "to", "track", "forward", "if", "(", "start", "byte", "<", "=", "0", ")", "{", "return", "0", ";", "}", "final", "int", "buffer", "size", "=", "8192", ";", "/", "/", "now", "create", "a", "byte", "array", "to", "hold", "the", "line", "we", "'", "ll", "read", "byte", "[", "]", "line", "plus", "=", "new", "byte", "[", "buffer", "size", "]", ";", "/", "/", "move", "the", "file", "pointer", "to", "our", "start", "location", "and", "read", "raf", "seek", "(", "start", "byte", ")", ";", "raf", "read", "(", "line", "plus", ")", ";", "/", "/", "move", "forward", "through", "the", "line", "until", "we", "hit", "a", "line", "feed", "when", "we", "do", ",", "just", "return", "/", "/", "the", "file", "position", "immediately", "past", "it", "for", "(", "int", "i", "=", "0", ";", "i", "<", "line", "plus", "length", ";", "i", "+", "+", ")", "{", "byte", "c", "=", "line", "plus", "[", "i", "]", ";", "if", "(", "c", "=", "=", "'", "\\", "r", "'", "|", "|", "c", "=", "=", "'", "\\", "n", "'", ")", "{", "return", "start", "byte", "+", "i", "+", "1", ";", "}", "}", "/", "/", "if", "we", "haven", "'", "t", "found", "a", "line", "feed", ",", "then", "we", "most", "likely", "(", "definitely", ")", "started", "reading", "/", "/", "somewhere", "in", "the", "last", "line", "of", "the", "file", ",", "so", "just", "return", "the", "original", "byte", "given", "return", "start", "byte", ";", "}" ]
[ "tests", "that", "clients", "using", "invalid", "sasl", "mechanisms", "fail", "authentication" ]
[ "public", "void", "test", "invalid", "mechanism", "(", ")", "throws", "exception", "{", "string", "node", "=", "\"", "0", "\"", ";", "security", "protocol", "security", "protocol", "=", "security", "protocol", "sasl", "ssl", ";", "configure", "mechanisms", "(", "\"", "plain", "\"", ",", "arrays", "as", "list", "(", "\"", "plain", "\"", ")", ")", ";", "sasl", "client", "configs", "put", "(", "sasl", "configs", "sasl", "mechanism", ",", "\"", "invalid", "\"", ")", ";", "server", "=", "create", "echo", "server", "(", "security", "protocol", ")", ";", "try", "{", "create", "and", "check", "client", "connection", "failure", "(", "security", "protocol", ",", "node", ")", ";", "fail", "(", "\"", "did", "not", "generate", "exception", "prior", "to", "creating", "channel", "\"", ")", ";", "}", "catch", "(", "i", "o", "exception", "expected", ")", "{", "server", "verify", "authentication", "metrics", "(", "0", ",", "0", ")", ";", "server", "verify", "reauthentication", "metrics", "(", "0", ",", "0", ")", ";", "throwable", "underlying", "cause", "=", "expected", "get", "cause", "(", ")", "get", "cause", "(", ")", "get", "cause", "(", ")", ";", "assert", "equals", "(", "sasl", "authentication", "exception", "class", ",", "underlying", "cause", "get", "class", "(", ")", ")", ";", "assert", "equals", "(", "\"", "failed", "to", "create", "sasl", "client", "with", "mechanism", "invalid", "\"", ",", "underlying", "cause", "get", "message", "(", ")", ")", ";", "}", "finally", "{", "close", "client", "connection", "if", "necessary", "(", ")", ";", "}", "}" ]
[ "set", "favored", "data", "nodes" ]
[ "public", "hdfs", "data", "output", "stream", "builder", "favored", "nodes", "(", "@", "nonnull", "final", "inet", "socket", "address", "[", "]", "nodes", ")", "{", "preconditions", "check", "not", "null", "(", "nodes", ")", ";", "favored", "nodes", "=", "nodes", "clone", "(", ")", ";", "return", "this", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "update", "float", "(", "string", "column", "label", ",", "float", "x", ")", "throws", "s", "q", "l", "exception", "{", "}" ]
[ "creates", "an", "s", "s", "l", "socket", "factory", "which", "contains", "{", "@", "code", "cert", "chain", "file", "}", "as", "its", "only", "root", "certificate" ]
[ "public", "static", "s", "s", "l", "socket", "factory", "new", "ssl", "socket", "factory", "for", "ca", "(", "provider", "provider", ",", "file", "cert", "chain", "file", ")", "throws", "exception", "{", "key", "store", "ks", "=", "key", "store", "get", "instance", "(", "key", "store", "get", "default", "type", "(", ")", ")", ";", "ks", "load", "(", "null", ",", "null", ")", ";", "certificate", "factory", "cf", "=", "certificate", "factory", "get", "instance", "(", "\"", "x", "509", "\"", ")", ";", "buffered", "input", "stream", "in", "=", "new", "buffered", "input", "stream", "(", "new", "file", "input", "stream", "(", "cert", "chain", "file", ")", ")", ";", "try", "{", "x", "5", "0", "9", "certificate", "cert", "=", "(", "x", "5", "0", "9", "certificate", ")", "cf", "generate", "certificate", "(", "in", ")", ";", "x", "5", "0", "0", "principal", "principal", "=", "cert", "get", "subject", "x", "5", "0", "0", "principal", "(", ")", ";", "ks", "set", "certificate", "entry", "(", "principal", "get", "name", "(", "\"", "rfc2253", "\"", ")", ",", "cert", ")", ";", "}", "finally", "{", "in", "close", "(", ")", ";", "}", "/", "/", "set", "up", "trust", "manager", "factory", "to", "use", "our", "key", "store", "trust", "manager", "factory", "trust", "manager", "factory", "=", "trust", "manager", "factory", "get", "instance", "(", "trust", "manager", "factory", "get", "default", "algorithm", "(", ")", ")", ";", "trust", "manager", "factory", "init", "(", "ks", ")", ";", "s", "s", "l", "context", "context", "=", "s", "s", "l", "context", "get", "instance", "(", "\"", "tls", "\"", ",", "provider", ")", ";", "context", "init", "(", "null", ",", "trust", "manager", "factory", "get", "trust", "managers", "(", ")", ",", "null", ")", ";", "return", "context", "get", "socket", "factory", "(", ")", ";", "}" ]
[ "delegate", "to", "backing", "cache", "store" ]
[ "public", "static", "void", "invalidate", "(", "string", "user", "id", ")", "{", "cache", "invalidate", "(", "user", "id", ")", ";", "}" ]
[ "returns", "the", "index", "to", "the", "start", "of", "the", "resident", "name", "table", ",", "relative", "to", "the", "beginning", "of", "the", "ne", "windows", "header" ]
[ "short", "get", "resident", "name", "table", "offset", "(", ")", "{", "return", "ne", "restab", ";", "}" ]
[ "get", "map", "map", "of", "string" ]
[ "public", "map", "<", "string", ",", "map", "<", "string", ",", "string", ">", ">", "get", "map", "map", "of", "string", "(", ")", "{", "return", "map", "map", "of", "string", ";", "}" ]
[ "generic", "test", "that", "creates", "new", "instance", "from", "the", "test", "instance", "and", "checks", "both", "for", "equality", "and", "asserts", "equality", "on", "the", "two", "instances" ]
[ "public", "final", "void", "test", "from", "x", "content", "(", ")", "throws", "i", "o", "exception", "{", "x", "content", "tester", "(", "this", ":", ":", "create", "parser", ",", "this", ":", ":", "create", "x", "context", "test", "instance", ",", "get", "to", "x", "content", "params", "(", ")", ",", "this", ":", ":", "do", "parse", "instance", ")", "number", "of", "test", "runs", "(", "number", "of", "test", "runs", ")", "supports", "unknown", "fields", "(", "supports", "unknown", "fields", "(", ")", ")", "shuffle", "fields", "exceptions", "(", "get", "shuffle", "fields", "exceptions", "(", ")", ")", "random", "fields", "exclude", "filter", "(", "get", "random", "fields", "exclude", "filter", "(", ")", ")", "assert", "equals", "consumer", "(", "this", ":", ":", "assert", "equal", "instances", ")", "assert", "to", "x", "content", "equivalence", "(", "assert", "to", "x", "content", "equivalence", "(", ")", ")", "test", "(", ")", ";", "}" ]
[ "sets", "the", "cache", "file", "fragment", "size", "for", "requests", "that", "should", "be", "fragmented", "into", "multiple", "cache", "files", ",", "this", "is", "the", "maximum", "size", "of", "a", "cache", "file", "in", "bytes", "if", "set", "to", "{", "@", "link", "c", "#", "length", "unset", "}", "then", "no", "fragmentation", "will", "occur", "using", "a", "small", "value", "allows", "for", "finer", "-", "grained", "cache", "eviction", "policies", ",", "at", "the", "cost", "of", "increased", "overhead", "both", "on", "the", "cache", "implementation", "and", "the", "file", "system", "values", "under", "{", "@", "code", "(", "2", "1024", "1024", ")", "}", "are", "not", "recommended", "the", "default", "value", "is", "{", "@", "link", "cache", "data", "sink", "#", "default", "fragment", "size", "}" ]
[ "public", "factory", "set", "fragment", "size", "(", "long", "fragment", "size", ")", "{", "this", "fragment", "size", "=", "fragment", "size", ";", "return", "this", ";", "}" ]
[ "begins", "the", "opening", "handshake" ]
[ "public", "channel", "future", "handshake", "(", "channel", "channel", ")", "{", "object", "util", "check", "not", "null", "(", "channel", ",", "\"", "channel", "\"", ")", ";", "return", "handshake", "(", "channel", ",", "channel", "new", "promise", "(", ")", ")", ";", "}" ]
[ "to", "test", "special", "tags", "to", "test", "special", "tags", "and", "operation", "id", "starting", "with", "number" ]
[ "public", "api", "response", "<", "client", ">", "call", "1", "2", "3test", "special", "tags", "with", "http", "info", "(", "client", "client", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "client", ";", "/", "/", "verify", "the", "required", "parameter", "'", "client", "'", "is", "set", "if", "(", "client", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "client", "'", "when", "calling", "call", "1", "2", "3test", "special", "tags", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "local", "var", "path", "=", "\"", "/", "another", "-", "fake", "/", "dummy", "\"", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "local", "var", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "cookie", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "local", "var", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "\"", "application", "/", "json", "\"", "}", ";", "final", "string", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "\"", "application", "/", "json", "\"", "}", ";", "final", "string", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "}", ";", "generic", "type", "<", "client", ">", "local", "var", "return", "type", "=", "new", "generic", "type", "<", "client", ">", "(", ")", "{", "}", ";", "return", "api", "client", "invoke", "a", "p", "i", "(", "\"", "another", "fake", "api", "call", "1", "2", "3test", "special", "tags", "\"", ",", "local", "var", "path", ",", "\"", "patch", "\"", ",", "local", "var", "query", "params", ",", "local", "var", "post", "body", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ",", "local", "var", "form", "params", ",", "local", "var", "accept", ",", "local", "var", "content", "type", ",", "local", "var", "auth", "names", ",", "local", "var", "return", "type", ",", "false", ")", ";", "}" ]
[ "replace", "the", "menus", "with", "padded", "menus" ]
[ "private", "static", "void", "replace", "menus", "(", "@", "non", "nls", "final", "u", "i", "defaults", "defaults", ")", "{", "defaults", "put", "(", "\"", "popup", "menu", "u", "i", "\"", ",", "m", "t", "popup", "menu", "u", "i", "class", "get", "name", "(", ")", ")", ";", "defaults", "put", "(", "m", "t", "popup", "menu", "u", "i", "class", "get", "name", "(", ")", ",", "m", "t", "popup", "menu", "u", "i", "class", ")", ";", "defaults", "put", "(", "\"", "popup", "menu", "border", "\"", ",", "new", "m", "t", "popup", "menu", "border", "(", ")", ")", ";", "/", "/", "defaults", "put", "(", "\"", "popup", "menu", "separator", "u", "i", "\"", ",", "m", "t", "menu", "separator", "u", "i", "class", "get", "name", "(", ")", ")", ";", "/", "/", "defaults", "put", "(", "m", "t", "menu", "separator", "u", "i", "class", "get", "name", "(", ")", ",", "m", "t", "menu", "separator", "u", "i", "class", ")", ";", "/", "/", "defaults", "put", "(", "\"", "menu", "item", "u", "i", "\"", ",", "m", "t", "popup", "menu", "item", "u", "i", "class", "get", "name", "(", ")", ")", ";", "/", "/", "defaults", "put", "(", "m", "t", "popup", "menu", "item", "u", "i", "class", "get", "name", "(", ")", ",", "m", "t", "popup", "menu", "item", "u", "i", "class", ")", ";", "defaults", "put", "(", "\"", "menu", "item", "border", "\"", ",", "new", "m", "t", "menu", "item", "border", "(", ")", ")", ";", "defaults", "put", "(", "\"", "menu", "border", "\"", ",", "new", "m", "t", "menu", "item", "border", "(", ")", ")", ";", "}", "/", "/", "private", "static", "void", "replace", "icons", "(", "@", "non", "nls", "final", "u", "i", "defaults", "defaults", ")", "{", "/", "/", "final", "icon", "expand", "icon", "=", "m", "t", "config", "get", "instance", "(", ")", "get", "arrows", "style", "(", ")", "get", "expand", "icon", "(", ")", ";", "/", "/", "final", "icon", "collapse", "icon", "=", "m", "t", "config", "get", "instance", "(", ")", "get", "arrows", "style", "(", ")", "get", "collapse", "icon", "(", ")", ";", "/", "/", "/", "/", "defaults", "put", "(", "\"", "tree", "collapsed", "icon", "\"", ",", "expand", "icon", ")", ";", "/", "/", "defaults", "put", "(", "\"", "tree", "expanded", "icon", "\"", ",", "collapse", "icon", ")", ";", "/", "/", "defaults", "put", "(", "\"", "menu", "arrow", "icon", "\"", ",", "expand", "icon", ")", ";", "/", "/", "defaults", "put", "(", "\"", "radio", "button", "menu", "item", "arrow", "icon", "\"", ",", "expand", "icon", ")", ";", "/", "/", "defaults", "put", "(", "\"", "check", "box", "menu", "item", "arrow", "icon", "\"", ",", "expand", "icon", ")", ";", "/", "/", "/", "/", "defaults", "put", "(", "\"", "file", "view", "file", "icon", "\"", ",", "all", "icons", "file", "types", "unknown", ")", ";", "/", "/", "defaults", "put", "(", "\"", "table", "ascending", "sort", "icon", "\"", ",", "all", "icons", "general", "arrow", "up", ")", ";", "/", "/", "defaults", "put", "(", "\"", "table", "descending", "sort", "icon", "\"", ",", "all", "icons", "general", "arrow", "down", ")", ";", "/", "/", "/", "/", "defaults", "put", "(", "\"", "text", "field", "darcula", "search", "with", "history", "icon", "\"", ",", "icon", "loader", "get", "icon", "(", "\"", "/", "icons", "/", "mt", "/", "search", "with", "history", "png", "\"", ")", ")", ";", "/", "/", "defaults", "put", "(", "\"", "text", "field", "darcula", "search", "icon", "\"", ",", "icon", "loader", "get", "icon", "(", "\"", "/", "icons", "/", "mt", "/", "search", "png", "\"", ")", ")", ";", "/", "/", "defaults", "put", "(", "\"", "text", "field", "darcula", "clear", "icon", "\"", ",", "icon", "loader", "get", "icon", "(", "\"", "/", "icons", "/", "mt", "/", "clear", "png", "\"", ")", ")", ";", "/", "/", "}" ]
[ "returns", "the", "common", "ancestor", "between", "two", "paths", ",", "or", "null", "if", "none", "(", "including", "if", "they", "are", "on", "different", "filesystems", ")" ]
[ "public", "static", "path", "common", "ancestor", "(", "path", "a", ",", "path", "b", ")", "{", "while", "(", "a", "!", "=", "null", "&", "&", "!", "b", "starts", "with", "(", "a", ")", ")", "{", "a", "=", "a", "get", "parent", "directory", "(", ")", ";", "/", "/", "returns", "null", "at", "root", "}", "return", "a", ";", "}" ]
[ "gets", "the", "py", "dev", "source", "directory" ]
[ "public", "static", "file", "get", "py", "dev", "src", "dir", "(", ")", "{", "string", "property", "=", "system", "get", "property", "(", "\"", "eclipse", "pysrc", "dir", "\"", ")", ";", "return", "string", "utils", "is", "not", "blank", "(", "property", ")", "?", "new", "file", "(", "property", ")", ":", "null", ";", "}" ]
[ "configure", "the", "payload", "data", "mime", "type", "to", "specify", "on", "the", "{", "@", "code", "setup", "}", "frame", "that", "applies", "to", "the", "whole", "connection", "if", "not", "set", ",", "this", "will", "be", "initialized", "to", "the", "mime", "type", "of", "the", "first", "{", "@", "link", "r", "socket", "strategies", "builder", "#", "decoder", "(", "decoder", "[", "]", ")", "non", "-", "default", "}", "{", "@", "code", "decoder", "}", ",", "or", "otherwise", "the", "mime", "type", "of", "the", "first", "decoder" ]
[ "r", "socket", "requester", "builder", "data", "mime", "type", "(", "@", "nullable", "mime", "type", "mime", "type", ")", ";" ]
[ "raise", "the", "signal" ]
[ "public", "void", "raise", "(", ")", "{", "signal", "raise", "(", "signal", ")", ";", "}" ]
[ "read", "plaintext", "data", "from", "the", "open", "s", "s", "l", "internal", "bio" ]
[ "private", "int", "read", "plaintext", "data", "(", "final", "byte", "buffer", "dst", ")", "throws", "s", "s", "l", "exception", "{", "final", "int", "ssl", "read", ";", "final", "int", "pos", "=", "dst", "position", "(", ")", ";", "if", "(", "dst", "is", "direct", "(", ")", ")", "{", "ssl", "read", "=", "ssl", "read", "from", "s", "s", "l", "(", "ssl", ",", "buffer", "address", "(", "dst", ")", "+", "pos", ",", "dst", "limit", "(", ")", "-", "pos", ")", ";", "if", "(", "ssl", "read", ">", "0", ")", "{", "dst", "position", "(", "pos", "+", "ssl", "read", ")", ";", "}", "}", "else", "{", "final", "int", "limit", "=", "dst", "limit", "(", ")", ";", "final", "int", "len", "=", "min", "(", "max", "encrypted", "packet", "length", "0", "(", ")", ",", "limit", "-", "pos", ")", ";", "final", "byte", "buf", "buf", "=", "alloc", "direct", "buffer", "(", "len", ")", ";", "try", "{", "ssl", "read", "=", "ssl", "read", "from", "s", "s", "l", "(", "ssl", ",", "memory", "address", "(", "buf", ")", ",", "len", ")", ";", "if", "(", "ssl", "read", ">", "0", ")", "{", "dst", "limit", "(", "pos", "+", "ssl", "read", ")", ";", "buf", "get", "bytes", "(", "buf", "reader", "index", "(", ")", ",", "dst", ")", ";", "dst", "limit", "(", "limit", ")", ";", "}", "}", "finally", "{", "buf", "release", "(", ")", ";", "}", "}", "return", "ssl", "read", ";", "}" ]
[ "get", "the", "data", "type", "associated", "with", "this", "member", "container", "members", "data", "-", "type", "may", "continue", "to", "transform", "as", "additional", "members", "are", "added" ]
[ "data", "type", "get", "data", "type", "(", ")", "{", "return", "member", "data", "type", ";", "}" ]
[ "install", "the", "app", "silently", "without", "root", "permission", "must", "hold", "{", "@", "code", "android", ":", "shared", "user", "id", "=", "\"", "android", "uid", "shell", "\"", "}", "and", "{", "@", "code", "<", "uses", "-", "permission", "android", ":", "name", "=", "\"", "android", "permission", "install", "packages", "\"", ">", "}" ]
[ "public", "static", "boolean", "install", "app", "silent", "(", "final", "file", "file", ",", "final", "string", "params", ")", "{", "return", "install", "app", "silent", "(", "file", ",", "params", ",", "is", "device", "rooted", "(", ")", ")", ";", "}" ]
[ "wraps", "the", "evaluation", "within", "this", "future", "with", "the", "given", "wrapper", "this", "is", "similar", "to", "{", "@", "link", "com", "google", "common", "util", "concurrent", "futures", "#", "lazy", "transform", "}", "in", "that", "the", "wrapper", "is", "executed", "every", "time", "get", "(", ")", "is", "called", "however", ",", "it", "ensures", "that", "the", "wrapper", "code", "is", "executed", "in", "the", "skyframe", "thread", "pool" ]
[ "public", "future", "spawn", "wrap", "(", "wrapper", "wrapper", ")", "{", "wrapper", "previous", "wrapper", "=", "this", "wrapper", ";", "/", "/", "closure", "chaining", "magic", ":", "we", "create", "a", "new", "future", "spawn", "with", "the", "same", "listenable", "future", ",", "but", "with", "/", "/", "a", "wrapper", "that", "first", "calls", "the", "previous", "wrapper", "and", "then", "the", "new", "wrapper", "return", "new", "future", "spawn", "(", "future", ",", "(", "c", ")", "-", ">", "wrapper", "apply", "(", "(", ")", "-", ">", "previous", "wrapper", "apply", "(", "c", ")", ")", ")", ";", "}" ]
[ "returns", "the", "largest", "column", "index", "in", "this", "row" ]
[ "public", "int", "get", "end", "column", "(", ")", "{", "return", "vertices", "by", "column", "last", "key", "(", ")", ";", "}" ]
[ "this", "test", "validates", "the", "correctness", "of", "the", "metric", ":", "retrieved", "app", "attempt", "report", "successfully" ]
[ "public", "void", "test", "succeeded", "app", "attempt", "report", "(", ")", "{", "long", "total", "good", "before", "=", "metrics", "get", "num", "succeeded", "app", "attempts", "retrieved", "(", ")", ";", "good", "sub", "cluster", "get", "application", "attempt", "report", "(", "100", ")", ";", "assert", "assert", "equals", "(", "total", "good", "before", "+", "1", ",", "metrics", "get", "num", "succeeded", "app", "attempts", "retrieved", "(", ")", ")", ";", "assert", "assert", "equals", "(", "100", ",", "metrics", "get", "latency", "succeeded", "get", "app", "attempt", "report", "(", ")", ",", "0", ")", ";", "good", "sub", "cluster", "get", "application", "attempt", "report", "(", "200", ")", ";", "assert", "assert", "equals", "(", "total", "good", "before", "+", "2", ",", "metrics", "get", "num", "succeeded", "app", "attempts", "retrieved", "(", ")", ")", ";", "assert", "assert", "equals", "(", "150", ",", "metrics", "get", "latency", "succeeded", "get", "app", "attempt", "report", "(", ")", ",", "0", ")", ";", "}" ]
[ "get", "all", "valid", "users", "in", "this", "queue" ]
[ "public", "set", "<", "string", ">", "get", "all", "users", "(", ")", "{", "return", "this", "get", "users", "manager", "(", ")", "get", "users", "(", ")", "key", "set", "(", ")", ";", "}" ]
[ "return", "first", "index", "of", "{", "@", "code", "value", "}", "in", "{", "@", "code", "array", "}", ",", "or", "{", "@", "code", "-", "1", "}", "if", "not", "found" ]
[ "public", "static", "<", "t", ">", "int", "index", "of", "(", "t", "[", "]", "array", ",", "t", "value", ")", "{", "if", "(", "array", "=", "=", "null", ")", "return", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "array", "length", ";", "i", "+", "+", ")", "{", "if", "(", "objects", "compat", "equals", "(", "array", "[", "i", "]", ",", "value", ")", ")", "return", "i", ";", "}", "return", "-", "1", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "(", "int", "field", "id", ")", "{", "switch", "(", "field", "id", ")", "{", "case", "1", ":", "/", "/", "spout", "object", "return", "spout", "object", ";", "case", "2", ":", "/", "/", "common", "return", "common", ";", "default", ":", "return", "null", ";", "}", "}" ]
[ "prefer", "using", "the", "{", "@", "code", "parser", "}", "for", "request", "-", "scoped", "conversions", "typically", ",", "{", "@", "code", "content", "string", "}", "is", "only", "for", "an", "unexpected", "failure" ]
[ "v", "convert", "(", "json", "parser", "parser", ",", "supplier", "<", "string", ">", "content", "string", ")", "throws", "i", "o", "exception", ";" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "throwing", "an", "exception", "if", "it", "is", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "or", "throw", "(", "int", "field", "id", ")", "{", "fields", "fields", "=", "find", "by", "thrift", "id", "(", "field", "id", ")", ";", "if", "(", "fields", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "field", "\"", "+", "field", "id", "+", "\"", "doesn", "'", "t", "exist", "!", "\"", ")", ";", "return", "fields", ";", "}" ]
[ "test", "the", "property", "'", "wrapped", "array", "'" ]
[ "public", "void", "wrapped", "array", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "wrapped", "array", "}" ]
[ "a", "variable", "owned", "by", "this", "stack", "changed", ",", "notify", "someone" ]
[ "void", "variable", "changed", "(", "local", "variable", "impl", "stack", "var", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "the", "same", "as", "{", "@", "link", "#", "load", "arm", "library", "(", "context", ",", "string", ")", "}", "but", "it", "can", "be", "called", "before", "calling", "{", "@", "link", "tinker", "installer", "#", "install", "}" ]
[ "public", "static", "void", "load", "arm", "library", "without", "tinker", "installed", "(", "application", "like", "app", "like", ",", "string", "lib", "name", ")", "{", "if", "(", "lib", "name", "=", "=", "null", "|", "|", "lib", "name", "is", "empty", "(", ")", "|", "|", "app", "like", "=", "=", "null", ")", "{", "throw", "new", "tinker", "runtime", "exception", "(", "\"", "lib", "name", "or", "app", "like", "is", "null", "!", "\"", ")", ";", "}", "if", "(", "tinker", "application", "helper", "is", "tinker", "enable", "for", "native", "lib", "(", "app", "like", ")", ")", "{", "if", "(", "tinker", "application", "helper", "load", "library", "from", "tinker", "(", "app", "like", ",", "\"", "lib", "/", "armeabi", "\"", ",", "lib", "name", ")", ")", "{", "return", ";", "}", "}", "system", "load", "library", "(", "lib", "name", ")", ";", "}" ]
[ "returns", "{", "@", "link", "maybe", "handle", "undone", "dep", "result", "#", "dep", "not", "done", "}", "if", "{", "@", "code", "dep", "entry", "}", "was", "not", "done", "notifies", "the", "{", "@", "link", "graph", "inconsistency", "receiver", "}", "if", "so", "schedules", "{", "@", "code", "dep", "entry", "}", "for", "evaluation", "if", "necessary", "if", "{", "@", "code", "dep", "entry", "}", "was", "done", ",", "then", "this", "calls", "{", "@", "code", "entry", "signal", "dep", "}", "if", "the", "call", "to", "{", "@", "code", "#", "signal", "dep", "}", "returns", "false", ",", "this", "returns", "{", "@", "link", "maybe", "handle", "undone", "dep", "result", "#", "dep", "done", "self", "not", "signalled", "}", "if", "the", "call", "to", "{", "@", "code", "#", "signal", "dep", "}", "returns", "true", ",", "this", "returns", "{", "@", "link", "maybe", "handle", "undone", "dep", "result", "#", "dep", "done", "self", "signalled", "}", "this", "will", "happen", "for", "the", "last", "new", "dep", "if", "all", "of", "them", "were", "done", "it", "can", "also", "happen", "if", "some", "new", "deps", "weren", "'", "t", "done", "but", "they", "all", "signal", "{", "@", "code", "entry", "}", "before", "{", "@", "link", "#", "maybe", "handle", "registering", "newly", "discovered", "deps", "for", "done", "entry", "}", "finishes", "checking", "deps" ]
[ "private", "maybe", "handle", "undone", "dep", "result", "maybe", "handle", "undone", "dep", "for", "done", "entry", "(", "node", "entry", "entry", ",", "node", "entry", "dep", "entry", ",", "dependency", "state", "tri", "state", ",", "sky", "key", "sky", "key", ",", "sky", "key", "dep", "key", ")", "{", "if", "(", "tri", "state", "=", "=", "dependency", "state", "done", ")", "{", "return", "entry", "signal", "dep", "(", "dep", "entry", "get", "version", "(", ")", ",", "dep", "key", ")", "?", "maybe", "handle", "undone", "dep", "result", "dep", "done", "self", "signalled", ":", "maybe", "handle", "undone", "dep", "result", "dep", "done", "self", "not", "signalled", ";", "}", "/", "/", "the", "dep", "may", "have", "transitioned", "from", "done", "to", "dirty", "between", "when", "this", "node", "read", "its", "value", "and", "/", "/", "now", "notify", "the", "graph", "inconsistency", "receiver", "so", "that", "we", "can", "crash", "if", "that", "'", "s", "unexpected", "we", "/", "/", "schedule", "the", "dep", "if", "it", "needs", "scheduling", ",", "because", "nothing", "else", "can", "if", "we", "don", "'", "t", "evaluator", "context", "get", "graph", "inconsistency", "receiver", "(", ")", "note", "inconsistency", "and", "maybe", "throw", "(", "sky", "key", ",", "immutable", "list", "of", "(", "dep", "key", ")", ",", "inconsistency", "building", "parent", "found", "undone", "child", ")", ";", "if", "(", "tri", "state", "=", "=", "dependency", "state", "needs", "scheduling", ")", "{", "/", "/", "top", "priority", "since", "this", "dep", "key", "was", "already", "evaluated", "before", ",", "and", "we", "want", "to", "finish", "it", "off", "/", "/", "again", ",", "reducing", "the", "chance", "that", "another", "node", "may", "observe", "this", "dep", "to", "be", "undone", "evaluator", "context", "get", "visitor", "(", ")", "enqueue", "evaluation", "(", "dep", "key", ",", "integer", "max", "value", ")", ";", "}", "return", "maybe", "handle", "undone", "dep", "result", "dep", "not", "done", ";", "}" ]
[ "identify", "containers", "to", "preempt", "on", "a", "given", "node", "try", "to", "find", "a", "list", "with", "least", "am", "containers", "to", "avoid", "preempting", "am", "containers", "this", "method", "returns", "a", "non", "-", "null", "set", "of", "containers", "only", "if", "the", "number", "of", "am", "containers", "is", "less", "than", "max", "a", "m", "containers" ]
[ "private", "preemptable", "containers", "identify", "containers", "to", "preempt", "on", "node", "(", "resource", "request", ",", "f", "s", "scheduler", "node", "node", ",", "int", "max", "a", "m", "containers", ")", "{", "preemptable", "containers", "preemptable", "containers", "=", "new", "preemptable", "containers", "(", "max", "a", "m", "containers", ")", ";", "/", "/", "figure", "out", "list", "of", "containers", "to", "consider", "list", "<", "r", "m", "container", ">", "containers", "to", "check", "=", "node", "get", "running", "containers", "with", "a", "ms", "at", "the", "end", "(", ")", ";", "containers", "to", "check", "remove", "all", "(", "node", "get", "containers", "for", "preemption", "(", ")", ")", ";", "/", "/", "initialize", "potential", "with", "unallocated", "but", "not", "reserved", "resources", "resource", "potential", "=", "resources", "subtract", "from", "non", "negative", "(", "resources", "clone", "(", "node", "get", "unallocated", "resource", "(", ")", ")", ",", "node", "get", "total", "reserved", "(", ")", ")", ";", "for", "(", "r", "m", "container", "container", ":", "containers", "to", "check", ")", "{", "f", "s", "app", "attempt", "app", "=", "scheduler", "get", "scheduler", "app", "(", "container", "get", "application", "attempt", "id", "(", ")", ")", ";", "/", "/", "if", "the", "app", "has", "unregistered", "while", "building", "the", "container", "list", "the", "app", "/", "/", "might", "be", "null", ",", "just", "skip", "this", "container", ":", "it", "should", "be", "cleaned", "up", "soon", "if", "(", "app", "=", "=", "null", ")", "{", "log", "info", "(", "\"", "found", "container", "\"", "+", "container", "+", "\"", "on", "node", "\"", "+", "node", "get", "node", "name", "(", ")", "+", "\"", "without", "app", ",", "skipping", "preemption", "\"", ")", ";", "continue", ";", "}", "application", "id", "app", "id", "=", "app", "get", "application", "id", "(", ")", ";", "if", "(", "app", "can", "container", "be", "preempted", "(", "container", ",", "preemptable", "containers", "get", "resources", "to", "preempt", "for", "app", "(", "app", "id", ")", ")", ")", "{", "/", "/", "flag", "container", "for", "preemption", "if", "(", "!", "preemptable", "containers", "add", "container", "(", "container", ",", "app", "id", ")", ")", "{", "return", "null", ";", "}", "resources", "add", "to", "(", "potential", ",", "container", "get", "allocated", "resource", "(", ")", ")", ";", "}", "/", "/", "check", "if", "we", "have", "already", "identified", "enough", "containers", "if", "(", "resources", "fits", "in", "(", "request", ",", "potential", ")", ")", "{", "return", "preemptable", "containers", ";", "}", "}", "/", "/", "return", "null", "if", "the", "sum", "of", "all", "preemptable", "containers", "'", "resources", "/", "/", "isn", "'", "t", "enough", "to", "satisfy", "the", "starved", "request", "return", "null", ";", "}" ]
[ "starts", "the", "visit", "of", "a", "new", "stack", "map", "frame", ",", "stored", "in", "{", "@", "link", "#", "current", "frame", "}" ]
[ "int", "visit", "frame", "start", "(", "final", "int", "offset", ",", "final", "int", "num", "local", ",", "final", "int", "num", "stack", ")", "{", "int", "frame", "length", "=", "3", "+", "num", "local", "+", "num", "stack", ";", "if", "(", "current", "frame", "=", "=", "null", "|", "|", "current", "frame", "length", "<", "frame", "length", ")", "{", "current", "frame", "=", "new", "int", "[", "frame", "length", "]", ";", "}", "current", "frame", "[", "0", "]", "=", "offset", ";", "current", "frame", "[", "1", "]", "=", "num", "local", ";", "current", "frame", "[", "2", "]", "=", "num", "stack", ";", "return", "3", ";", "}" ]
[ "returns", "the", "max", "length", "for", "any", "frame", "'", "s", "payload" ]
[ "public", "int", "max", "frame", "payload", "length", "(", ")", "{", "return", "max", "frame", "payload", "length", ";", "}" ]
[ "build", "call", "for", "update", "pet" ]
[ "public", "okhttp", "3", "call", "update", "pet", "call", "(", "pet", "body", ",", "final", "api", "callback", "callback", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "body", ";", "/", "/", "create", "path", "and", "map", "variables", "api", "operation", "api", "operation", "=", "local", "var", "api", "client", "get", "operation", "lookup", "map", "(", ")", "get", "(", "\"", "update", "pet", "\"", ")", ";", "if", "(", "api", "operation", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "\"", "operation", "not", "found", "in", "oas", "\"", ")", ";", "}", "operation", "operation", "=", "api", "operation", "get", "operation", "(", ")", ";", "string", "local", "var", "path", "=", "api", "operation", "get", "path", "(", ")", ";", "map", "<", "string", ",", "object", ">", "param", "map", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "list", "<", "pair", ">", "local", "var", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "list", "<", "pair", ">", "local", "var", "collection", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "cookie", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "local", "var", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "local", "var", "path", "=", "local", "var", "api", "client", "fill", "parameters", "from", "operation", "(", "operation", ",", "param", "map", ",", "local", "var", "path", ",", "local", "var", "query", "params", ",", "local", "var", "collection", "query", "params", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "}", ";", "final", "string", "local", "var", "accept", "=", "local", "var", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "if", "(", "local", "var", "accept", "!", "=", "null", ")", "{", "local", "var", "header", "params", "put", "(", "\"", "accept", "\"", ",", "local", "var", "accept", ")", ";", "}", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "\"", "application", "/", "json", "\"", ",", "\"", "application", "/", "xml", "\"", "}", ";", "final", "string", "local", "var", "content", "type", "=", "local", "var", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "local", "var", "header", "params", "put", "(", "\"", "content", "-", "type", "\"", ",", "local", "var", "content", "type", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "\"", "petstore", "auth", "\"", "}", ";", "return", "local", "var", "api", "client", "build", "call", "(", "local", "var", "path", ",", "api", "operation", "get", "method", "(", ")", ",", "local", "var", "query", "params", ",", "local", "var", "collection", "query", "params", ",", "local", "var", "post", "body", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ",", "local", "var", "form", "params", ",", "local", "var", "auth", "names", ",", "callback", ")", ";", "}" ]
[ "computes", "the", "optimal", "k", "(", "number", "of", "hashes", "per", "element", "inserted", "in", "bloom", "filter", ")", ",", "given", "the", "expected", "insertions", "and", "total", "number", "of", "bits", "in", "the", "bloom", "filter", "see", "http", ":", "en", "wikipedia", "orgwiki", "file", ":", "bloom", "filter", "fp", "probability", "svg", "for", "the", "formula" ]
[ "static", "int", "optimal", "num", "of", "hash", "functions", "(", "long", "n", ",", "long", "m", ")", "{", "/", "/", "(", "m", "/", "n", ")", "*", "log", "(", "2", ")", ",", "but", "avoid", "truncation", "due", "to", "division", "!", "return", "math", "max", "(", "1", ",", "(", "int", ")", "math", "round", "(", "(", "double", ")", "m", "/", "n", "*", "math", "log", "(", "2", ")", ")", ")", ";", "}" ]
[ "creates", "a", "new", "request", "to", "traverse", "a", "child", "element", "in", "the", "current", "directory", "(", "the", "root", ")" ]
[ "traversal", "request", "for", "child", "entry", "(", "rooted", "path", "new", "path", ")", "{", "return", "duplicate", "(", "direct", "traversal", "root", "for", "rooted", "path", "(", "new", "path", ")", ",", "false", ")", ";", "}" ]
[ "stuff", "after", "gc", "you", "can", "override", "this", "method", "to", "do", "your", "own", "stuff", ",", "for", "example", ",", "cache", "warmup", ",", "reregister", "to", "register", "center" ]
[ "protected", "void", "post", "gc", "(", ")", "{", "log", "old", "gen", "status", "(", "\"", "post", "gc", "\"", ")", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "this", "queue", "contains", "the", "specified", "element", "more", "formally", ",", "returns", "{", "@", "code", "true", "}", "if", "and", "only", "if", "this", "queue", "contains", "at", "least", "one", "element", "{", "@", "code", "e", "}", "such", "that", "{", "@", "code", "o", "equals", "(", "e", ")", "}" ]
[ "public", "boolean", "contains", "(", "@", "nullable", "decl", "object", "o", ")", "{", "final", "monitor", "monitor", "=", "this", "monitor", ";", "monitor", "enter", "(", ")", ";", "try", "{", "return", "q", "contains", "(", "o", ")", ";", "}", "finally", "{", "monitor", "leave", "(", ")", ";", "}", "}" ]
[ "get", "the", "record", "offset", "within", "the", "buffer" ]
[ "int", "get", "record", "data", "offset", "(", "int", "index", ")", "{", "return", "buffer", "get", "int", "(", "data", "offset", "base", "offset", "+", "(", "index", "*", "entry", "size", ")", ")", ";", "}" ]
[ "tests", "the", "checkpoint", "related", "metrics", "are", "registered", "into", "{", "@", "link", "task", "i", "o", "metric", "group", "}", "correctly", "while", "generating", "the", "{", "@", "link", "one", "input", "stream", "task", "}" ]
[ "public", "void", "test", "checkpoint", "barrier", "metrics", "(", ")", "throws", "exception", "{", "final", "one", "input", "stream", "task", "test", "harness", "<", "string", ",", "string", ">", "test", "harness", "=", "new", "one", "input", "stream", "task", "test", "harness", "<", ">", "(", "one", "input", "stream", "task", ":", ":", "new", ",", "basic", "type", "info", "string", "type", "info", ",", "basic", "type", "info", "string", "type", "info", ")", ";", "test", "harness", "setup", "output", "for", "singleton", "operator", "chain", "(", ")", ";", "stream", "config", "stream", "config", "=", "test", "harness", "get", "stream", "config", "(", ")", ";", "stream", "config", "set", "stream", "operator", "(", "new", "test", "operator", "(", ")", ")", ";", "final", "map", "<", "string", ",", "metric", ">", "metrics", "=", "new", "concurrent", "hash", "map", "<", ">", "(", ")", ";", "final", "task", "metric", "group", "task", "metric", "group", "=", "new", "stream", "task", "test", "harness", "test", "task", "metric", "group", "(", "metrics", ")", ";", "final", "stream", "mock", "environment", "environment", "=", "test", "harness", "create", "environment", "(", ")", ";", "environment", "set", "task", "metric", "group", "(", "task", "metric", "group", ")", ";", "test", "harness", "invoke", "(", "environment", ")", ";", "test", "harness", "wait", "for", "task", "running", "(", ")", ";", "assert", "that", "(", "metrics", ",", "is", "map", "containing", "has", "key", "(", "metric", "names", "checkpoint", "alignment", "time", ")", ")", ";", "assert", "that", "(", "metrics", ",", "is", "map", "containing", "has", "key", "(", "metric", "names", "checkpoint", "start", "delay", "time", ")", ")", ";", "test", "harness", "end", "input", "(", ")", ";", "test", "harness", "wait", "for", "task", "completion", "(", ")", ";", "}" ]
[ "print", "the", "extension", "map", "out", "as", "a", "string" ]
[ "public", "string", "to", "string", "(", ")", "{", "string", "builder", "buf", "=", "new", "string", "builder", "(", ")", ";", "iterator", "<", "map", "entry", "<", "string", ",", "compression", "codec", ">", ">", "itr", "=", "codecs", "entry", "set", "(", ")", "iterator", "(", ")", ";", "buf", "append", "(", "\"", "{", "\"", ")", ";", "if", "(", "itr", "has", "next", "(", ")", ")", "{", "map", "entry", "<", "string", ",", "compression", "codec", ">", "entry", "=", "itr", "next", "(", ")", ";", "buf", "append", "(", "entry", "get", "key", "(", ")", ")", "append", "(", "\"", ":", "\"", ")", "append", "(", "entry", "get", "value", "(", ")", "get", "class", "(", ")", "get", "name", "(", ")", ")", ";", "while", "(", "itr", "has", "next", "(", ")", ")", "{", "entry", "=", "itr", "next", "(", ")", ";", "buf", "append", "(", "\"", ",", "\"", ")", "append", "(", "entry", "get", "key", "(", ")", ")", "append", "(", "\"", ":", "\"", ")", "append", "(", "entry", "get", "value", "(", ")", "get", "class", "(", ")", "get", "name", "(", ")", ")", ";", "}", "}", "buf", "append", "(", "\"", "}", "\"", ")", ";", "return", "buf", "to", "string", "(", ")", ";", "}" ]
[ "generates", "a", "class", "for", "reading", "remote", "invoke", "packets" ]
[ "public", "void", "generate", "for", "(", "seq", "<", "method", "entry", ">", "entries", ",", "string", "class", "name", ",", "string", "package", "name", ",", "boolean", "needs", "player", ")", "throws", "exception", "{", "type", "spec", "builder", "class", "builder", "=", "type", "spec", "class", "builder", "(", "class", "name", ")", "add", "modifiers", "(", "modifier", "public", ")", ";", "class", "builder", "add", "javadoc", "(", "remote", "process", "autogen", "warning", ")", ";", "/", "/", "create", "main", "method", "builder", "method", "spec", "builder", "read", "method", "=", "method", "spec", "method", "builder", "(", "\"", "read", "packet", "\"", ")", "add", "modifiers", "(", "modifier", "public", ",", "modifier", "static", ")", "add", "parameter", "(", "reads", "class", ",", "\"", "read", "\"", ")", "/", "/", "buffer", "to", "read", "form", "add", "parameter", "(", "int", "class", ",", "\"", "id", "\"", ")", "/", "/", "id", "of", "method", "type", "to", "read", "returns", "(", "void", "class", ")", ";", "if", "(", "needs", "player", ")", "{", "/", "/", "add", "player", "parameter", "read", "method", "add", "parameter", "(", "class", "name", "get", "(", "package", "name", ",", "\"", "player", "\"", ")", ",", "\"", "player", "\"", ")", ";", "}", "code", "block", "builder", "read", "block", "=", "code", "block", "builder", "(", ")", ";", "/", "/", "start", "building", "block", "of", "code", "inside", "read", "method", "boolean", "started", "=", "false", ";", "/", "/", "whether", "an", "if", "(", ")", "statement", "has", "been", "written", "yet", "for", "(", "method", "entry", "entry", ":", "entries", ")", "{", "/", "/", "write", "if", "check", "for", "this", "entry", "id", "if", "(", "!", "started", ")", "{", "started", "=", "true", ";", "read", "block", "begin", "control", "flow", "(", "\"", "if", "(", "id", "=", "=", "\"", "+", "entry", "id", "+", "\"", ")", "\"", ")", ";", "}", "else", "{", "read", "block", "next", "control", "flow", "(", "\"", "else", "if", "(", "id", "=", "=", "\"", "+", "entry", "id", "+", "\"", ")", "\"", ")", ";", "}", "read", "block", "begin", "control", "flow", "(", "\"", "try", "\"", ")", ";", "/", "/", "concatenated", "list", "of", "variable", "names", "for", "method", "invocation", "string", "builder", "var", "result", "=", "new", "string", "builder", "(", ")", ";", "/", "/", "go", "through", "each", "parameter", "for", "(", "int", "i", "=", "0", ";", "i", "<", "entry", "element", "get", "parameters", "(", ")", "size", "(", ")", ";", "i", "+", "+", ")", "{", "variable", "element", "var", "=", "entry", "element", "get", "parameters", "(", ")", "get", "(", "i", ")", ";", "if", "(", "!", "needs", "player", "|", "|", "i", "!", "=", "0", ")", "{", "/", "/", "if", "client", ",", "skip", "first", "parameter", "since", "it", "'", "s", "always", "of", "type", "player", "and", "doesn", "'", "t", "need", "to", "be", "read", "/", "/", "full", "type", "name", "of", "parameter", "string", "type", "name", "=", "var", "as", "type", "(", ")", "to", "string", "(", ")", ";", "/", "/", "name", "of", "parameter", "string", "var", "name", "=", "var", "get", "simple", "name", "(", ")", "to", "string", "(", ")", ";", "/", "/", "captialized", "version", "of", "type", "name", "for", "reading", "primitives", "string", "pname", "=", "type", "name", "equals", "(", "\"", "boolean", "\"", ")", "?", "\"", "bool", "\"", ":", "type", "name", "char", "at", "(", "0", ")", "+", "\"", "\"", ";", "/", "/", "write", "primitives", "automatically", "if", "(", "base", "processor", "is", "primitive", "(", "type", "name", ")", ")", "{", "read", "block", "add", "statement", "(", "\"", "$", "l", "$", "l", "=", "read", "$", "l", "(", ")", "\"", ",", "type", "name", ",", "var", "name", ",", "pname", ")", ";", "}", "else", "{", "/", "/", "else", ",", "try", "and", "find", "a", "serializer", "string", "ser", "=", "serializers", "readers", "get", "(", "type", "name", "replace", "(", "\"", "mindustry", "gen", "\"", ",", "\"", "\"", ")", ",", "serializer", "resolver", "locate", "(", "entry", "element", ",", "var", "as", "type", "(", ")", ",", "false", ")", ")", ";", "if", "(", "ser", "=", "=", "null", ")", "{", "/", "/", "make", "sure", "a", "serializer", "exists", "!", "base", "processor", "err", "(", "\"", "no", "read", "method", "to", "read", "class", "type", "'", "\"", "+", "type", "name", "+", "\"", "'", "in", "method", "\"", "+", "entry", "target", "method", "+", "\"", ";", "\"", "+", "serializers", "readers", ",", "var", ")", ";", "return", ";", "}", "/", "/", "add", "statement", "for", "reading", "it", "read", "block", "add", "statement", "(", "type", "name", "+", "\"", "\"", "+", "var", "name", "+", "\"", "=", "\"", "+", "ser", "+", "\"", "(", "read", ")", "\"", ")", ";", "}", "/", "/", "append", "variable", "name", "to", "string", "builder", "var", "result", "append", "(", "var", "get", "simple", "name", "(", ")", ")", ";", "if", "(", "i", "!", "=", "entry", "element", "get", "parameters", "(", ")", "size", "(", ")", "-", "1", ")", "var", "result", "append", "(", "\"", ",", "\"", ")", ";", "}", "else", "{", "var", "result", "append", "(", "\"", "player", "\"", ")", ";", "if", "(", "i", "!", "=", "entry", "element", "get", "parameters", "(", ")", "size", "(", ")", "-", "1", ")", "var", "result", "append", "(", "\"", ",", "\"", ")", ";", "}", "}", "/", "/", "execute", "the", "relevant", "method", "before", "the", "forward", "/", "/", "if", "it", "throws", "a", "validate", "exception", ",", "the", "method", "won", "'", "t", "be", "forwarded", "read", "block", "add", "statement", "(", "\"", "$", "n", "\"", "+", "entry", "element", "get", "simple", "name", "(", ")", "+", "\"", "(", "\"", "+", "var", "result", "to", "string", "(", ")", "+", "\"", ")", "\"", ",", "(", "(", "type", "element", ")", "entry", "element", "get", "enclosing", "element", "(", ")", ")", "get", "qualified", "name", "(", ")", "to", "string", "(", ")", ")", ";", "/", "/", "call", "forwarded", "method", ",", "don", "'", "t", "forward", "on", "the", "client", "reader", "if", "(", "entry", "forward", "&", "&", "entry", "where", "is", "server", "&", "&", "needs", "player", ")", "{", "/", "/", "call", "forwarded", "method", "read", "block", "add", "statement", "(", "package", "name", "+", "\"", "\"", "+", "entry", "class", "name", "+", "\"", "\"", "+", "entry", "element", "get", "simple", "name", "(", ")", "+", "\"", "forward", "(", "player", "con", "\"", "+", "(", "var", "result", "length", "(", ")", "=", "=", "0", "?", "\"", "\"", ":", "\"", ",", "\"", ")", "+", "var", "result", "to", "string", "(", ")", "+", "\"", ")", "\"", ")", ";", "}", "read", "block", "next", "control", "flow", "(", "\"", "catch", "(", "java", "lang", "exception", "e", ")", "\"", ")", ";", "read", "block", "add", "statement", "(", "\"", "throw", "new", "java", "lang", "runtime", "exception", "(", "\\", "\"", "failed", "to", "read", "remote", "method", "'", "\"", "+", "entry", "element", "get", "simple", "name", "(", ")", "+", "\"", "'", "!", "\\", "\"", ",", "e", ")", "\"", ")", ";", "read", "block", "end", "control", "flow", "(", ")", ";", "}", "/", "/", "end", "control", "flow", "if", "necessary", "if", "(", "started", ")", "{", "read", "block", "next", "control", "flow", "(", "\"", "else", "\"", ")", ";", "read", "block", "add", "statement", "(", "\"", "throw", "new", "$", "1n", "(", "\\", "\"", "invalid", "read", "method", "id", ":", "\\", "\"", "+", "id", "+", "\\", "\"", "\\", "\"", ")", "\"", ",", "runtime", "exception", "class", "get", "name", "(", ")", ")", ";", "/", "/", "handle", "invalid", "method", "i", "ds", "read", "block", "end", "control", "flow", "(", ")", ";", "}", "/", "/", "add", "block", "and", "method", "to", "class", "read", "method", "add", "code", "(", "read", "block", "build", "(", ")", ")", ";", "class", "builder", "add", "method", "(", "read", "method", "build", "(", ")", ")", ";", "/", "/", "build", "and", "write", "resulting", "class", "type", "spec", "spec", "=", "class", "builder", "build", "(", ")", ";", "java", "file", "builder", "(", "package", "name", ",", "spec", ")", "build", "(", ")", "write", "to", "(", "base", "processor", "filer", ")", ";", "}" ]
[ "tests", "compiler", "fail", "for", "join", "program", "with", "replicated", "data", "source", "behind", "reduce" ]
[ "public", "void", "check", "join", "with", "replicated", "source", "input", "behind", "reduce", "(", ")", "{", "execution", "environment", "env", "=", "execution", "environment", "create", "local", "environment", "(", ")", ";", "env", "set", "parallelism", "(", "default", "parallelism", ")", ";", "tuple", "type", "info", "<", "tuple", "1", "<", "string", ">", ">", "type", "info", "=", "tuple", "type", "info", "get", "basic", "tuple", "type", "info", "(", "string", "class", ")", ";", "replicating", "input", "format", "<", "tuple", "1", "<", "string", ">", ",", "file", "input", "split", ">", "rif", "=", "new", "replicating", "input", "format", "<", "tuple", "1", "<", "string", ">", ",", "file", "input", "split", ">", "(", "new", "tuple", "csv", "input", "format", "<", "tuple", "1", "<", "string", ">", ">", "(", "new", "path", "(", "\"", "/", "some", "/", "path", "\"", ")", ",", "type", "info", ")", ")", ";", "data", "set", "<", "tuple", "1", "<", "string", ">", ">", "source", "1", "=", "env", "create", "input", "(", "rif", ",", "new", "tuple", "type", "info", "<", "tuple", "1", "<", "string", ">", ">", "(", "basic", "type", "info", "string", "type", "info", ")", ")", ";", "data", "set", "<", "tuple", "1", "<", "string", ">", ">", "source", "2", "=", "env", "read", "csv", "file", "(", "\"", "/", "some", "/", "otherpath", "\"", ")", "types", "(", "string", "class", ")", ";", "data", "sink", "<", "tuple", "2", "<", "tuple", "1", "<", "string", ">", ",", "tuple", "1", "<", "string", ">", ">", ">", "out", "=", "source", "1", "reduce", "(", "new", "last", "reduce", "(", ")", ")", "join", "(", "source", "2", ")", "where", "(", "\"", "*", "\"", ")", "equal", "to", "(", "\"", "*", "\"", ")", "write", "as", "text", "(", "\"", "/", "some", "/", "newpath", "\"", ")", ";", "plan", "plan", "=", "env", "create", "program", "plan", "(", ")", ";", "/", "/", "submit", "the", "plan", "to", "the", "compiler", "optimized", "plan", "o", "plan", "=", "compile", "no", "stats", "(", "plan", ")", ";", "}" ]
[ "number", "of", "bytes", "already", "flushed", "to", "the", "data", "sink" ]
[ "public", "long", "get", "written", "bytes", "(", ")", "{", "return", "data", "sink", "size", "(", ")", ";", "}" ]
[ "asserts", "that", "we", "do", "not", "retain", "any", "extra", "translog", "for", "the", "given", "index", "(", "i", "e", ",", "turn", "off", "the", "translog", "retention", ")" ]
[ "public", "void", "assert", "empty", "translog", "(", "string", "index", ")", "throws", "exception", "{", "map", "<", "string", ",", "object", ">", "stats", "=", "entity", "as", "map", "(", "client", "(", ")", "perform", "request", "(", "new", "request", "(", "\"", "get", "\"", ",", "index", "+", "\"", "/", "stats", "?", "level", "=", "shards", "\"", ")", ")", ")", ";", "assert", "that", "(", "x", "content", "map", "values", "extract", "value", "(", "\"", "indices", "\"", "+", "index", "+", "\"", "total", "translog", "uncommitted", "operations", "\"", ",", "stats", ")", ",", "equal", "to", "(", "0", ")", ")", ";", "assert", "that", "(", "x", "content", "map", "values", "extract", "value", "(", "\"", "indices", "\"", "+", "index", "+", "\"", "total", "translog", "operations", "\"", ",", "stats", ")", ",", "equal", "to", "(", "0", ")", ")", ";", "}" ]
[ "called", "by", "native", "side", ",", "clean", "output", "buffer", "so", "native", "side", "can", "continue", "processing" ]
[ "private", "void", "flush", "output", "(", "int", "length", ")", "throws", "i", "o", "exception", "{", "if", "(", "null", "!", "=", "raw", "input", "buffer", ")", "{", "raw", "input", "buffer", "position", "(", "0", ")", ";", "raw", "input", "buffer", "limit", "(", "length", ")", ";", "if", "(", "null", "!", "=", "data", "receiver", ")", "{", "try", "{", "data", "receiver", "receive", "data", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "throw", "e", ";", "}", "}", "}", "}" ]
[ "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", "{", "@", "link", "type", "serializer", "}", "for", "serializing", "windows", "that", "are", "assigned", "by", "this", "{", "@", "code", "window", "assigner", "}" ]
[ "public", "abstract", "type", "serializer", "<", "w", ">", "get", "window", "serializer", "(", "execution", "config", "execution", "config", ")", ";" ]
[ "sets", "whether", "to", "use", "a", "fake", "'", "nobody", "'", "username", "inside", "the", "sandbox" ]
[ "public", "command", "line", "builder", "set", "use", "fake", "username", "(", "boolean", "use", "fake", "username", ")", "{", "this", "use", "fake", "username", "=", "use", "fake", "username", ";", "return", "this", ";", "}" ]
[ "get", "the", "ec", "stats", "from", "all", "namenodes", "and", "aggregate", "them" ]
[ "private", "e", "c", "block", "group", "stats", "get", "namenode", "e", "c", "block", "group", "stats", "(", ")", "throws", "exception", "{", "list", "<", "e", "c", "block", "group", "stats", ">", "nn", "stats", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "namenode", "context", "nn", "context", ":", "cluster", "get", "namenodes", "(", ")", ")", "{", "client", "protocol", "cp", "=", "nn", "context", "get", "client", "(", ")", "get", "namenode", "(", ")", ";", "nn", "stats", "add", "(", "cp", "get", "e", "c", "block", "group", "stats", "(", ")", ")", ";", "}", "return", "e", "c", "block", "group", "stats", "merge", "(", "nn", "stats", ")", ";", "}" ]
[ "gets", "unauthorized", "redirect", "url", "into", "flow", "scope" ]
[ "public", "static", "uri", "get", "unauthorized", "redirect", "url", "from", "flow", "scope", "(", "final", "request", "context", "context", ")", "{", "return", "context", "get", "flow", "scope", "(", ")", "get", "(", "parameter", "unauthorized", "redirect", "url", ",", "uri", "class", ")", ";", "}" ]
[ "flag", "to", "indicate", "that", "this", "test", "is", "being", "executed", "in", "parallel", "this", "is", "used", "by", "some", "of", "the", "scale", "tests", "to", "validate", "test", "time", "expectations" ]
[ "public", "static", "boolean", "is", "parallel", "execution", "(", ")", "{", "return", "boolean", "get", "boolean", "(", "key", "parallel", "test", "execution", ")", ";", "}" ]
[ "returns", "the", "renderer", "time", "of", "the", "start", "of", "the", "period", ",", "in", "microseconds" ]
[ "public", "long", "get", "renderer", "offset", "(", ")", "{", "return", "renderer", "position", "offset", "us", ";", "}" ]
[ "count", "of", "parts", "actually", "uploaded" ]
[ "public", "int", "get", "parts", "uploaded", "(", ")", "{", "return", "parts", "uploaded", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "throwing", "an", "exception", "if", "it", "is", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "or", "throw", "(", "int", "field", "id", ")", "{", "fields", "fields", "=", "find", "by", "thrift", "id", "(", "field", "id", ")", ";", "if", "(", "fields", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "field", "\"", "+", "field", "id", "+", "\"", "doesn", "'", "t", "exist", "!", "\"", ")", ";", "return", "fields", ";", "}" ]
[ "returns", "the", "last", "stream", "identifier", "if", "set", ",", "or", "{", "@", "code", "-", "1", "}", "else" ]
[ "int", "last", "stream", "id", "(", ")", ";" ]
[ "gets", "class", "by", "name" ]
[ "public", "static", "class", "<", "?", ">", "get", "class", "by", "name", "(", "string", "class", "name", ")", "throws", "class", "not", "found", "exception", "{", "return", "class", "for", "name", "(", "class", "name", ",", "true", ",", "thread", "current", "thread", "(", ")", "get", "context", "class", "loader", "(", ")", ")", ";", "}" ]
[ "the", "ttl", "of", "the", "metadata" ]
[ "long", "get", "metadata", "ttl", "(", ")", ";" ]
[ "randomly", "updates", "nodes", "in", "the", "cluster", "state" ]
[ "private", "cluster", "state", "builder", "random", "nodes", "(", "cluster", "state", "cluster", "state", ")", "{", "discovery", "nodes", "builder", "nodes", "=", "discovery", "nodes", "builder", "(", "cluster", "state", "nodes", "(", ")", ")", ";", "list", "<", "string", ">", "node", "ids", "=", "random", "subset", "of", "(", "random", "int", "(", "cluster", "state", "nodes", "(", ")", "get", "nodes", "(", ")", "size", "(", ")", "-", "1", ")", ",", "cluster", "state", "nodes", "(", ")", "get", "nodes", "(", ")", "keys", "(", ")", "to", "array", "(", "string", "class", ")", ")", ";", "for", "(", "string", "node", "id", ":", "node", "ids", ")", "{", "if", "(", "node", "id", "starts", "with", "(", "\"", "node", "-", "\"", ")", ")", "{", "nodes", "remove", "(", "node", "id", ")", ";", "if", "(", "random", "boolean", "(", ")", ")", "{", "nodes", "add", "(", "random", "node", "(", "node", "id", ")", ")", ";", "}", "}", "}", "int", "additional", "node", "count", "=", "random", "int", "between", "(", "1", ",", "20", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "additional", "node", "count", ";", "i", "+", "+", ")", "{", "nodes", "add", "(", "random", "node", "(", "\"", "node", "-", "\"", "+", "random", "alpha", "of", "length", "(", "10", ")", ")", ")", ";", "}", "return", "cluster", "state", "builder", "(", "cluster", "state", ")", "nodes", "(", "nodes", ")", ";", "}" ]
[ "modify", "or", "insert", "new", "profiles", "into", "an", "existing", "credentials", "file", "by", "in", "-", "place", "modification", "only", "the", "properties", "of", "the", "affected", "profiles", "will", "be", "modified", ";", "all", "the", "unaffected", "profiles", "and", "comment", "lines", "will", "remain", "the", "same", "this", "method", "does", "not", "support", "renaming", "a", "profile" ]
[ "public", "static", "void", "modify", "or", "insert", "profiles", "(", "file", "destination", ",", "profile", "profiles", ")", "{", "final", "map", "<", "string", ",", "profile", ">", "modifications", "=", "new", "linked", "hash", "map", "<", "string", ",", "profile", ">", "(", ")", ";", "for", "(", "profile", "profile", ":", "profiles", ")", "{", "modifications", "put", "(", "profile", "get", "profile", "name", "(", ")", ",", "profile", ")", ";", "}", "modify", "profiles", "(", "destination", ",", "modifications", ")", ";", "}" ]
[ "get", "integer", "item" ]
[ "public", "integer", "get", "integer", "item", "(", ")", "{", "return", "integer", "item", ";", "}" ]
[ "fetch", "the", "namespace", "owning", "this", "symbol", ",", "if", "it", "exists" ]
[ "public", "namespace", "get", "namespace", "(", ")", "{", "symbol", "sym", "=", "get", "symbol", "(", ")", ";", "if", "(", "sym", "!", "=", "null", ")", "{", "return", "sym", "get", "parent", "namespace", "(", ")", ";", "}", "return", "null", ";", "}" ]
[ "total", "number", "of", "connections" ]
[ "public", "int", "get", "total", "load", "(", ")", "{", "return", "datanode", "statistics", "get", "xceiver", "count", "(", ")", ";", "}", "@", "metric", "(", "{", "\"", "snapshottable", "directories", "\"", ",", "\"", "number", "of", "snapshottable", "directories", "\"", "}" ]
[ "test", "the", "property", "'", "att", "name", "'" ]
[ "public", "void", "att", "n", "a", "m", "e", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "att", "name", "}" ]
[ "determine", "if", "this", "shared", "memory", "object", "is", "empty" ]
[ "synchronized", "final", "public", "boolean", "is", "empty", "(", ")", "{", "return", "allocated", "slots", "next", "set", "bit", "(", "0", ")", "=", "=", "-", "1", ";", "}" ]
[ "updates", "the", "{", "@", "link", "dash", "manifest", "}", "and", "the", "index", "of", "this", "period", "in", "the", "manifest" ]
[ "public", "void", "update", "manifest", "(", "dash", "manifest", "manifest", ",", "int", "period", "index", ")", "{", "this", "manifest", "=", "manifest", ";", "this", "period", "index", "=", "period", "index", ";", "player", "emsg", "handler", "update", "manifest", "(", "manifest", ")", ";", "if", "(", "sample", "streams", "!", "=", "null", ")", "{", "for", "(", "chunk", "sample", "stream", "<", "dash", "chunk", "source", ">", "sample", "stream", ":", "sample", "streams", ")", "{", "sample", "stream", "get", "chunk", "source", "(", ")", "update", "manifest", "(", "manifest", ",", "period", "index", ")", ";", "}", "callback", "on", "continue", "loading", "requested", "(", "this", ")", ";", "}", "event", "streams", "=", "manifest", "get", "period", "(", "period", "index", ")", "event", "streams", ";", "for", "(", "event", "sample", "stream", "event", "sample", "stream", ":", "event", "sample", "streams", ")", "{", "for", "(", "event", "stream", "event", "stream", ":", "event", "streams", ")", "{", "if", "(", "event", "stream", "id", "(", ")", "equals", "(", "event", "sample", "stream", "event", "stream", "id", "(", ")", ")", ")", "{", "int", "last", "period", "index", "=", "manifest", "get", "period", "count", "(", ")", "-", "1", ";", "event", "sample", "stream", "update", "event", "stream", "(", "event", "stream", ",", "/", "*", "event", "stream", "appendable", "=", "*", "/", "manifest", "dynamic", "&", "&", "period", "index", "=", "=", "last", "period", "index", ")", ";", "break", ";", "}", "}", "}", "}" ]
[ "puts", "the", "given", "string", "value", "in", "the", "string", "array", "at", "the", "given", "index" ]
[ "public", "void", "put", "(", "int", "index", ",", "string", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "remove", "(", "index", ")", ";", "return", ";", "}", "if", "(", "index", ">", "=", "starts", "length", ")", "{", "adjust", "array", "sizes", "(", "math", "max", "(", "index", "+", "1", ",", "starts", "length", "*", "2", ")", ")", ";", "}", "if", "(", "index", ">", "last", "start", ")", "{", "last", "start", "=", "index", ";", "}", "int", "len", "=", "value", "length", "(", ")", ";", "/", "/", "is", "there", "already", "something", "here", "?", "if", "(", "starts", "[", "index", "]", ">", "0", ")", "{", "/", "/", "if", "so", ",", "does", "the", "new", "array", "fit", "in", "the", "already", "allocated", "space", "?", "if", "(", "lengths", "[", "index", "]", ">", "=", "len", ")", "{", "/", "/", "if", "it", "does", ",", "subtract", "the", "difference", "the", "allocated", "space", "total", "total", "space", "allocated", "-", "=", "lengths", "[", "index", "]", "-", "len", ";", "}", "else", "{", "/", "/", "otherwise", ",", "subtract", "the", "entire", "space", "from", "the", "allocated", "space", "total", "/", "/", "and", "allocate", "new", "space", "total", "space", "allocated", "-", "=", "lengths", "[", "index", "]", ";", "starts", "[", "index", "]", "=", "alloc", "space", "(", "len", ")", ";", "}", "}", "else", "{", "starts", "[", "index", "]", "=", "alloc", "space", "(", "len", ")", ";", "}", "lengths", "[", "index", "]", "=", "(", "short", ")", "len", ";", "byte", "[", "]", "str", "bytes", "=", "value", "get", "bytes", "(", ")", ";", "system", "arraycopy", "(", "str", "bytes", ",", "0", ",", "bytes", ",", "starts", "[", "index", "]", ",", "len", ")", ";", "}" ]
[ "test", "1", ":", "check", "that", "simple", "versioned", "writable" ]
[ "public", "void", "test", "simple", "versioned", "writable", "(", ")", "throws", "exception", "{", "test", "writable", "test", "writable", "(", "new", "simple", "versioned", "writable", "(", ")", ")", ";", "}" ]
[ "selects", "the", "selection", "to", "the", "given", "cell", "the", "existing", "selection", "is", "cleared", "before", "selecting", "the", "given", "cell" ]
[ "public", "void", "set", "cell", "selection", "(", "@", "not", "null", "grid", "pos", "cell", ")", "{", "check", "widget", "(", ")", ";", "if", "(", "!", "is", "valid", "cell", "(", "cell", ")", ")", "swt", "error", "(", "swt", "error", "invalid", "argument", ")", ";", "selected", "cells", "clear", "(", ")", ";", "add", "to", "cell", "selection", "(", "cell", ")", ";", "update", "selection", "cache", "(", ")", ";", "redraw", "(", ")", ";", "}" ]
[ "return", "the", "total", "count", "of", "all", "of", "the", "parameters", "in", "the", "sql", "statement", "repeated", "occurrences", "of", "the", "same", "parameter", "name", "do", "count", "here" ]
[ "int", "get", "total", "parameter", "count", "(", ")", "{", "return", "this", "total", "parameter", "count", ";", "}" ]
[ "subclasses", "can", "call", "this", "to", "check", "whether", "any", "aop", "proxies", "have", "been", "created", "yet" ]
[ "protected", "final", "synchronized", "boolean", "is", "active", "(", ")", "{", "return", "this", "active", ";", "}" ]
[ "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", "class", "name", "of", "the", "hive", "function" ]
[ "public", "string", "get", "class", "name", "(", ")", "{", "return", "class", "name", ";", "}" ]
[ "returns", "the", "quotient", "of", "the", "given", "long", "value", "and", "this", "long", "value" ]
[ "public", "long", "value", "divide", "of", "(", "long", "value", "other", ")", "throws", "arithmetic", "exception", "{", "return", "other", "divide", "(", "this", ")", ";", "}" ]
[ "abstract", "factory", "method", "to", "create", "a", "file", "system", "counter", "group" ]
[ "protected", "abstract", "g", "new", "file", "system", "group", "(", ")", ";" ]
[ "app", "state", "running", "after", "all", "containers", "complete", ",", "before", "rm", "sends", "app", "finished" ]
[ "public", "void", "test", "app", "running", "after", "containers", "complete", "(", ")", "{", "wrapped", "application", "wa", "=", "null", ";", "try", "{", "wa", "=", "new", "wrapped", "application", "(", "3", ",", "314159265358979l", ",", "\"", "yak", "\"", ",", "3", ")", ";", "wa", "init", "application", "(", ")", ";", "wa", "init", "container", "(", "-", "1", ")", ";", "assert", "equals", "(", "application", "state", "initing", ",", "wa", "app", "get", "application", "state", "(", ")", ")", ";", "wa", "application", "inited", "(", ")", ";", "assert", "equals", "(", "application", "state", "running", ",", "wa", "app", "get", "application", "state", "(", ")", ")", ";", "wa", "container", "finished", "(", "0", ")", ";", "assert", "equals", "(", "application", "state", "running", ",", "wa", "app", "get", "application", "state", "(", ")", ")", ";", "assert", "equals", "(", "2", ",", "wa", "app", "get", "containers", "(", ")", "size", "(", ")", ")", ";", "wa", "container", "finished", "(", "1", ")", ";", "wa", "container", "finished", "(", "2", ")", ";", "assert", "equals", "(", "application", "state", "running", ",", "wa", "app", "get", "application", "state", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "wa", "app", "get", "containers", "(", ")", "size", "(", ")", ")", ";", "}", "finally", "{", "if", "(", "wa", "!", "=", "null", ")", "wa", "finished", "(", ")", ";", "}", "}" ]
[ "show", "the", "dialog", ";", "return", "an", "id", "for", "the", "action", "that", "the", "user", "chose" ]
[ "public", "int", "show", "dialog", "(", "plugin", "tool", "tool", ")", "{", "exclusive", "c", "b", "set", "selected", "(", "false", ")", ";", "tool", "show", "dialog", "(", "this", ")", ";", "return", "action", "i", "d", ";", "}" ]
[ "returns", "the", "custom", "data", "path", "that", "is", "used", "to", "look", "up", "information", "for", "this", "shard", "returns", "an", "empty", "string", "if", "no", "custom", "data", "path", "is", "used", "for", "this", "index", "returns", "null", "if", "custom", "data", "path", "information", "is", "not", "available", "(", "due", "to", "bwc", ")" ]
[ "public", "string", "get", "custom", "data", "path", "(", ")", "{", "return", "custom", "data", "path", ";", "}" ]
[ "flink", "-", "6435", "tests", "that", "a", "user", "exception", "triggers", "the", "completion", "of", "a", "stream", "element", "queue", "entry", "and", "does", "not", "wait", "to", "until", "another", "stream", "element", "queue", "entry", "is", "properly", "completed", "before", "it", "is", "collected" ]
[ "public", "void", "test", "unordered", "wait", "user", "exception", "handling", "(", ")", "throws", "exception", "{", "test", "user", "exception", "handling", "(", "async", "data", "stream", "output", "mode", "unordered", ")", ";", "}" ]
[ "get", "the", "list", "of", "all", "plugins", "that", "have", "ever", "been", "{", "@", "link", "detached", "plugin", "detached", "}", "from", "jenkins", "core", ",", "applicable", "to", "the", "current", "java", "runtime" ]
[ "list", "<", "detached", "plugin", ">", "get", "detached", "plugins", "(", ")", "{", "return", "detached", "list", "stream", "(", ")", "filter", "(", "plugin", "-", ">", "java", "utils", "get", "current", "java", "runtime", "version", "number", "(", ")", "is", "newer", "than", "or", "equal", "to", "(", "plugin", "get", "minimum", "java", "version", "(", ")", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";", "}" ]
[ "get", "number", "of", "active", "containers", "on", "the", "node" ]
[ "public", "int", "get", "num", "containers", "(", ")", "{", "return", "num", "containers", ";", "}" ]
[ "finds", "the", "repository", "instance", "for", "a", "given", "class", "and", "inheriting", "from", "a", "given", "repository" ]
[ "public", "static", "diff", "repository", "lookup", "(", "class", "clazz", ",", "diff", "repository", "base", "repository", ")", "{", "return", "lookup", "(", "clazz", ",", "base", "repository", ",", "null", ")", ";", "}" ]
[ "tests", "searching", "for", "groups", "when", "the", "\"", "user", "attribute", "\"", "field", "is", "set", "to", "a", "missing", "value" ]
[ "public", "void", "test", "resolve", "with", "missing", "attribute", "(", ")", "throws", "exception", "{", "connect", "(", "new", "l", "d", "a", "p", "connection", "options", "(", ")", ")", ";", "settings", "settings", "=", "settings", "builder", "(", ")", "put", "(", "get", "full", "setting", "key", "(", "realm", "identifier", ",", "search", "groups", "resolver", "settings", "base", "dn", ")", ",", "\"", "ou", "=", "groups", ",", "o", "=", "seven", "seas", "\"", ")", "put", "(", "get", "full", "setting", "key", "(", "realm", "identifier", "get", "name", "(", ")", ",", "search", "groups", "resolver", "settings", "user", "attribute", ")", ",", "\"", "no", "-", "such", "-", "attribute", "\"", ")", "build", "(", ")", ";", "final", "list", "<", "string", ">", "groups", "=", "resolve", "groups", "(", "settings", ",", "william", "bush", ")", ";", "assert", "that", "(", "groups", ",", "iterable", "with", "size", "(", "0", ")", ")", ";", "}" ]
[ "sets", "new", "values", "to", "all", "fields", "of", "the", "tuple" ]
[ "public", "void", "set", "fields", "(", "t0", "value", "0", ",", "t1", "value", "1", ",", "t2", "value", "2", ",", "t3", "value", "3", ",", "t4", "value", "4", ",", "t5", "value", "5", ",", "t6", "value", "6", ",", "t7", "value", "7", ",", "t8", "value", "8", ",", "t9", "value", "9", ",", "t10", "value", "1", "0", ")", "{", "this", "f", "0", "=", "value", "0", ";", "this", "f", "1", "=", "value", "1", ";", "this", "f", "2", "=", "value", "2", ";", "this", "f", "3", "=", "value", "3", ";", "this", "f", "4", "=", "value", "4", ";", "this", "f", "5", "=", "value", "5", ";", "this", "f", "6", "=", "value", "6", ";", "this", "f", "7", "=", "value", "7", ";", "this", "f", "8", "=", "value", "8", ";", "this", "f", "9", "=", "value", "9", ";", "this", "f", "1", "0", "=", "value", "1", "0", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "standard", "utilities", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "returns", "environment", "variables", "which", "should", "be", "set", "on", "the", "test", "action" ]
[ "public", "map", "<", "string", ",", "string", ">", "get", "environment", "(", ")", "{", "return", "environment", ";", "}" ]