docstring_tokens
list
code_tokens
list
[ "indicate", "that", "we", "just", "downloaded", "a", "block", "and", "record", "its", "latency" ]
[ "public", "void", "block", "downloaded", "(", "long", "latency", ")", "{", "current", "block", "download", "latency", "add", "point", "(", "latency", ")", ";", "}" ]
[ "given", "a", "path", "to", "a", "directory", "within", "a", "local", "cache", "tree", "return", "the", "root", "of", "the", "cache", "directory" ]
[ "public", "static", "path", "get", "cache", "directory", "root", "(", "path", "path", ")", "{", "while", "(", "path", "!", "=", "null", ")", "{", "string", "name", "=", "path", "get", "name", "(", ")", ";", "if", "(", "name", "length", "(", ")", "!", "=", "1", ")", "{", "return", "path", ";", "}", "int", "dirnum", "=", "directories", "per", "level", ";", "try", "{", "dirnum", "=", "integer", "parse", "int", "(", "name", ",", "directories", "per", "level", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "}", "if", "(", "dirnum", ">", "=", "directories", "per", "level", ")", "{", "return", "path", ";", "}", "path", "=", "path", "get", "parent", "(", ")", ";", "}", "return", "path", ";", "}" ]
[ "triggers", "the", "program", "execution", "the", "environment", "will", "execute", "all", "parts", "of", "the", "program", "the", "program", "execution", "will", "be", "logged", "and", "displayed", "with", "the", "provided", "name", "it", "calls", "the", "{", "@", "link", "stream", "execution", "environment", "#", "execute", "(", "string", ")", "}", "on", "the", "underlying", "{", "@", "link", "stream", "execution", "environment", "}", "in", "contrast", "to", "the", "{", "@", "link", "table", "environment", "}", "this", "environment", "translates", "queries", "eagerly" ]
[ "job", "execution", "result", "execute", "(", "string", "job", "name", ")", "throws", "exception", ";" ]
[ "creates", "a", "new", "reader", "that", "reads", "from", "{", "@", "code", "split", "path", "(", ")", "}", "starting", "at", "{", "@", "code", "offset", "}", "and", "reads", "until", "{", "@", "code", "length", "}", "bytes", "after", "the", "offset", "a", "number", "of", "{", "@", "code", "records", "to", "skip", "}", "records", "should", "be", "read", "and", "discarded", "after", "the", "offset", "this", "is", "typically", "part", "of", "restoring", "a", "reader", "to", "a", "checkpointed", "position" ]
[ "bulk", "format", "reader", "<", "t", ">", "restore", "reader", "(", "configuration", "config", ",", "split", "t", "split", ")", "throws", "i", "o", "exception", ";" ]
[ "similar", "with", "test", "rename", "u", "c", "file", "in", "snapshot", ",", "but", "do", "renaming", "first", "and", "then", "append", "file", "without", "closing", "it", "unit", "test", "for", "hdfs", "-", "5425" ]
[ "public", "void", "test", "append", "file", "after", "rename", "in", "snapshot", "(", ")", "throws", "exception", "{", "final", "path", "test", "=", "new", "path", "(", "\"", "/", "test", "\"", ")", ";", "final", "path", "foo", "=", "new", "path", "(", "test", ",", "\"", "foo", "\"", ")", ";", "final", "path", "bar", "=", "new", "path", "(", "foo", ",", "\"", "bar", "\"", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "hdfs", ",", "bar", ",", "blocksize", ",", "repl", ",", "seed", ")", ";", "snapshot", "test", "helper", "create", "snapshot", "(", "hdfs", ",", "test", ",", "\"", "s", "0", "\"", ")", ";", "/", "/", "rename", "bar", "-", "-", ">", "bar", "2", "final", "path", "bar", "2", "=", "new", "path", "(", "foo", ",", "\"", "bar", "2", "\"", ")", ";", "hdfs", "rename", "(", "bar", ",", "bar", "2", ")", ";", "/", "/", "append", "file", "and", "keep", "it", "as", "underconstruction", "f", "s", "data", "output", "stream", "out", "=", "hdfs", "append", "(", "bar", "2", ")", ";", "out", "write", "byte", "(", "0", ")", ";", "(", "(", "d", "f", "s", "output", "stream", ")", "out", "get", "wrapped", "stream", "(", ")", ")", "hsync", "(", "enum", "set", "of", "(", "sync", "flag", "update", "length", ")", ")", ";", "/", "/", "save", "namespace", "and", "restart", "restart", "cluster", "and", "check", "image", "(", "true", ")", ";", "}" ]
[ "uploads", "an", "image" ]
[ "public", "void", "upload", "file", "test", "(", ")", "{", "long", "pet", "id", "=", "null", ";", "string", "additional", "metadata", "=", "null", ";", "org", "apache", "cxf", "jaxrs", "ext", "multipart", "attachment", "file", "=", "null", ";", "/", "/", "model", "api", "response", "response", "=", "api", "upload", "file", "(", "pet", "id", ",", "additional", "metadata", ",", "file", ")", ";", "/", "/", "assert", "not", "null", "(", "response", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "adds", "a", "field", "to", "load", "from", "the", "doc", "values", "and", "return", "as", "part", "of", "the", "search", "request" ]
[ "public", "search", "source", "builder", "doc", "value", "field", "(", "string", "name", ")", "{", "return", "doc", "value", "field", "(", "name", ",", "null", ")", ";", "}" ]
[ "returns", "the", "dependencies", "from", "the", "given", "injection", "points" ]
[ "public", "static", "set", "<", "dependency", "<", "?", ">", ">", "for", "injection", "points", "(", "set", "<", "injection", "point", ">", "injection", "points", ")", "{", "set", "<", "dependency", "<", "?", ">", ">", "dependencies", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "injection", "point", "injection", "point", ":", "injection", "points", ")", "{", "dependencies", "add", "all", "(", "injection", "point", "get", "dependencies", "(", ")", ")", ";", "}", "return", "unmodifiable", "set", "(", "dependencies", ")", ";", "}" ]
[ "witness", "classes", "that", "are", "added", "since", "0", "63", "0" ]
[ "protected", "string", "[", "]", "witness", "classes", "(", ")", "{", "return", "new", "string", "[", "]", "{", "\"", "com", "linecorp", "armeria", "common", "abstract", "http", "headers", "builder", "\"", "}", ";", "}" ]
[ "get", "remoting", "bean", "desc", "remoting", "desc" ]
[ "public", "remoting", "desc", "get", "remoting", "bean", "desc", "(", "string", "bean", "name", ")", "{", "return", "remoting", "service", "map", "get", "(", "bean", "name", ")", ";", "}" ]
[ "delegates", "to", "{", "@", "link", "test", "context", "manager", "#", "after", "test", "method", "}" ]
[ "public", "void", "after", "each", "(", "extension", "context", "context", ")", "throws", "exception", "{", "object", "test", "instance", "=", "context", "get", "required", "test", "instance", "(", ")", ";", "method", "test", "method", "=", "context", "get", "required", "test", "method", "(", ")", ";", "throwable", "test", "exception", "=", "context", "get", "execution", "exception", "(", ")", "or", "else", "(", "null", ")", ";", "get", "test", "context", "manager", "(", "context", ")", "after", "test", "method", "(", "test", "instance", ",", "test", "method", ",", "test", "exception", ")", ";", "}" ]
[ "creates", "the", "print" ]
[ "public", "array", "list", "<", "string", ">", "create", "print", "(", ")", "{", "array", "list", "<", "string", ">", "info", "=", "new", "array", "list", "<", "string", ">", "(", ")", ";", "list", "iterator", "<", "?", ">", "it", "=", "m", "node", "instructions", "iterator", "(", ")", ";", "boolean", "first", "label", "=", "false", ";", "while", "(", "it", "has", "next", "(", ")", ")", "{", "abstract", "insn", "node", "ain", "=", "(", "abstract", "insn", "node", ")", "it", "next", "(", ")", ";", "string", "line", "=", "\"", "\"", ";", "if", "(", "ain", "instanceof", "var", "insn", "node", ")", "{", "line", "=", "print", "var", "insn", "node", "(", "(", "var", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "int", "insn", "node", ")", "{", "line", "=", "print", "int", "insn", "node", "(", "(", "int", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "field", "insn", "node", ")", "{", "line", "=", "print", "field", "insn", "node", "(", "(", "field", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "method", "insn", "node", ")", "{", "line", "=", "print", "method", "insn", "node", "(", "(", "method", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "ldc", "insn", "node", ")", "{", "line", "=", "print", "ldc", "insn", "node", "(", "(", "ldc", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "insn", "node", ")", "{", "line", "=", "print", "insn", "node", "(", "(", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "jump", "insn", "node", ")", "{", "line", "=", "print", "jump", "insn", "node", "(", "(", "jump", "insn", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "line", "number", "node", ")", "{", "line", "=", "print", "line", "number", "node", "(", "(", "line", "number", "node", ")", "ain", ",", "it", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "label", "node", ")", "{", "if", "(", "first", "label", "&", "&", "bytecode", "viewer", "viewer", "chckbxmntm", "append", "brackets", "is", "selected", "(", ")", ")", "info", "add", "(", "\"", "}", "\"", ")", ";", "line", "=", "print", "labelnode", "(", "(", "label", "node", ")", "ain", ")", ";", "if", "(", "bytecode", "viewer", "viewer", "chckbxmntm", "append", "brackets", "is", "selected", "(", ")", ")", "{", "if", "(", "!", "first", "label", ")", "first", "label", "=", "true", ";", "line", "+", "=", "\"", "{", "\"", ";", "}", "}", "else", "if", "(", "ain", "instanceof", "type", "insn", "node", ")", "{", "line", "=", "print", "type", "insn", "node", "(", "(", "type", "insn", "node", ")", "ain", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "frame", "node", ")", "{", "line", "=", "print", "frame", "node", "(", "(", "frame", "node", ")", "ain", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "iinc", "insn", "node", ")", "{", "line", "=", "print", "iinc", "insn", "node", "(", "(", "iinc", "insn", "node", ")", "ain", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "table", "switch", "insn", "node", ")", "{", "line", "=", "print", "table", "switch", "insn", "node", "(", "(", "table", "switch", "insn", "node", ")", "ain", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "lookup", "switch", "insn", "node", ")", "{", "line", "=", "print", "lookup", "switch", "insn", "node", "(", "(", "lookup", "switch", "insn", "node", ")", "ain", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "invoke", "dynamic", "insn", "node", ")", "{", "line", "=", "print", "invoke", "dynamic", "ins", "node", "(", "(", "invoke", "dynamic", "insn", "node", ")", "ain", ")", ";", "}", "else", "if", "(", "ain", "instanceof", "multi", "a", "new", "array", "insn", "node", ")", "{", "line", "=", "print", "multi", "a", "new", "array", "ins", "node", "(", "(", "multi", "a", "new", "array", "insn", "node", ")", "ain", ")", ";", "}", "else", "{", "line", "+", "=", "\"", "unadded", "opcode", ":", "\"", "+", "name", "opcode", "(", "ain", "get", "opcode", "(", ")", ")", "+", "\"", "\"", "+", "ain", "to", "string", "(", ")", ";", "}", "if", "(", "!", "line", "equals", "(", "\"", "\"", ")", ")", "{", "if", "(", "match", ")", "if", "(", "matched", "insns", "contains", "(", "ain", ")", ")", "line", "=", "\"", "-", ">", "\"", "+", "line", ";", "info", "add", "(", "line", ")", ";", "}", "}", "if", "(", "first", "label", "&", "&", "bytecode", "viewer", "viewer", "chckbxmntm", "append", "brackets", "is", "selected", "(", ")", ")", "info", "add", "(", "\"", "}" ]
[ "run", "the", "version", "tracking", "wizard", "for", "the", "indicated", "reference", "program", "correlator", "to", "create", "a", "new", "session", "use", "the", "indicated", "values", "for", "the", "options" ]
[ "public", "void", "run", "test", "reference", "correlator", "with", "options", "(", "string", "correlator", "name", ",", "final", "double", "confidence", ",", "final", "l", "s", "h", "memory", "model", "memory", "model", ",", "final", "double", "score", ",", "boolean", "refine", "results", ")", "{", "setup", "wizard", "before", "correlator", "options", "(", "correlator", "name", ")", ";", "change", "reference", "correlator", "options", "(", "correlator", "name", ",", "confidence", ",", "memory", "model", ",", "score", ",", "refine", "results", ",", "wizard", "manager", ":", ":", "next", ")", ";", "finish", "wizard", "after", "correlator", "options", "(", "correlator", "name", ")", ";", "}" ]
[ "gets", "delegated", "client", "id" ]
[ "protected", "string", "get", "delegated", "client", "id", "(", "final", "web", "context", "web", "context", ",", "final", "client", "client", ")", "{", "var", "client", "id", "=", "web", "context", "get", "request", "parameter", "(", "parameter", "client", "id", ")", ";", "if", "(", "client", "id", "is", "empty", "(", ")", ")", "{", "if", "(", "client", "instanceof", "s", "a", "m", "l", "2", "client", ")", "{", "logger", "debug", "(", "\"", "client", "identifier", "could", "not", "found", "as", "part", "of", "the", "request", "parameters", "looking", "at", "relay", "-", "state", "for", "the", "saml2", "client", "\"", ")", ";", "client", "id", "=", "web", "context", "get", "request", "parameter", "(", "\"", "relay", "state", "\"", ")", ";", "}", "if", "(", "client", "instanceof", "o", "auth", "2", "0", "client", "|", "|", "client", "instanceof", "oidc", "client", ")", "{", "logger", "debug", "(", "\"", "client", "identifier", "could", "not", "found", "as", "part", "of", "the", "request", "parameters", "looking", "at", "state", "for", "the", "o", "auth", "2", "/", "oidc", "client", "\"", ")", ";", "client", "id", "=", "web", "context", "get", "request", "parameter", "(", "o", "auth", "2", "0", "configuration", "state", "request", "parameter", ")", ";", "}", "if", "(", "client", "instanceof", "o", "auth", "1", "0", "client", ")", "{", "logger", "debug", "(", "\"", "client", "identifier", "could", "not", "be", "found", "as", "part", "of", "request", "parameters", "looking", "at", "session", "store", "for", "the", "o", "auth", "1", "client", "\"", ")", ";", "val", "session", "store", "=", "web", "context", "get", "session", "store", "(", ")", ";", "client", "id", "=", "session", "store", "get", "(", "web", "context", ",", "oauth10", "client", "id", "session", "key", ")", ";", "session", "store", "set", "(", "web", "context", ",", "oauth10", "client", "id", "session", "key", ",", "null", ")", ";", "}", "if", "(", "client", "instanceof", "cas", "client", ")", "{", "logger", "debug", "(", "\"", "client", "identifier", "could", "not", "be", "found", "as", "part", "of", "request", "parameters", "looking", "at", "the", "session", "store", "for", "the", "cas", "client", "\"", ")", ";", "val", "session", "store", "=", "web", "context", "get", "session", "store", "(", ")", ";", "client", "id", "=", "session", "store", "get", "(", "web", "context", ",", "cas", "client", "id", "session", "key", ")", ";", "session", "store", "set", "(", "web", "context", ",", "cas", "client", "id", "session", "key", ",", "null", ")", ";", "}", "}", "logger", "debug", "(", "\"", "located", "delegated", "client", "identifier", "for", "this", "request", "as", "[", "{", "}", "]", "\"", ",", "client", "id", ")", ";", "return", "client", "id", "map", "(", "string", ":", ":", "value", "of", ")", "or", "else", "(", "string", "utils", "empty", ")", ";", "}" ]
[ "constructs", "a", "{", "@", "link", "package", "}", "object", "for", "the", "given", "package", "note", "that", "the", "returned", "package", "may", "be", "in", "error", "may", "return", "null", "if", "the", "computation", "has", "to", "be", "restarted" ]
[ "private", "loaded", "package", "cache", "entry", "load", "package", "(", "string", "workspace", "name", ",", "immutable", "map", "<", "repository", "name", ",", "repository", "name", ">", "repository", "mapping", ",", "immutable", "set", "<", "path", "fragment", ">", "repository", "ignored", "patterns", ",", "package", "identifier", "package", "id", ",", "rooted", "path", "build", "file", "path", ",", "file", "value", "build", "file", "value", ",", "rule", "visibility", "default", "visibility", ",", "starlark", "semantics", "starlark", "semantics", ",", "@", "nullable", "label", "prelude", "label", ",", "root", "package", "root", ",", "environment", "env", ")", "throws", "interrupted", "exception", ",", "package", "function", "exception", "{", "/", "/", "todo", "(", "adonovan", ")", ":", "opt", ":", "evaluate", "splitting", "this", "part", "out", "as", "a", "separate", "skyframe", "/", "/", "function", "(", "package", "compile", "function", ",", "by", "analogy", "with", "bzl", "compile", "function", ")", "/", "/", "there", "'", "s", "a", "tradeoff", "between", "the", "memory", "costs", "of", "unconditionally", "storing", "/", "/", "the", "package", "compile", "value", "and", "the", "time", "savings", "of", "not", "having", "to", "recompute", "/", "/", "it", "situationally", ",", "so", "it", "'", "s", "not", "an", "obvious", "strict", "win", "/", "/", "vv", "-", "-", "-", "-", "begin", "package", "compile", "function", "-", "-", "-", "-", "vv", "if", "(", "package", "progress", "!", "=", "null", ")", "{", "package", "progress", "start", "read", "package", "(", "package", "id", ")", ";", "}", "boolean", "committed", "=", "false", ";", "try", "(", "silent", "closeable", "c", "=", "profiler", "instance", "(", ")", "profile", "(", "profiler", "task", "create", "package", ",", "package", "id", "to", "string", "(", ")", ")", ")", "{", "/", "/", "using", "separate", "get", "/", "put", "operations", "on", "this", "cache", "is", "safe", "because", "there", "will", "/", "/", "never", "be", "two", "concurrent", "calls", "for", "the", "same", "package", "id", "the", "cache", "is", "designed", "/", "/", "to", "save", "work", "across", "a", "sequence", "of", "restarted", "skyframe", "package", "function", "invocations", "/", "/", "for", "the", "same", "key", "compiled", "build", "file", "compiled", "=", "compiled", "build", "file", "cache", "get", "if", "present", "(", "package", "id", ")", ";", "if", "(", "compiled", "=", "=", "null", ")", "{", "if", "(", "show", "loading", "progress", "get", "(", ")", ")", "{", "env", "get", "listener", "(", ")", "handle", "(", "event", "progress", "(", "\"", "loading", "package", ":", "\"", "+", "package", "id", ")", ")", ";", "}", "compiled", "=", "compile", "build", "file", "(", "package", "id", ",", "build", "file", "path", ",", "build", "file", "value", ",", "starlark", "semantics", ",", "prelude", "label", ",", "env", ")", ";", "if", "(", "compiled", "=", "=", "null", ")", "{", "return", "null", ";", "/", "/", "skyframe", "restart", "}", "/", "/", "cache", "this", "first", "step", "so", "we", "needn", "'", "t", "redo", "it", "if", "bzl", "loading", "fails", "compiled", "build", "file", "cache", "put", "(", "package", "id", ",", "compiled", ")", ";", "}", "/", "/", "^", "^", "-", "-", "-", "-", "end", "package", "compile", "function", "-", "-", "-", "-", "^", "^", "immutable", "map", "<", "string", ",", "module", ">", "loaded", "modules", "=", "null", ";", "if", "(", "compiled", "ok", "(", ")", ")", "{", "/", "/", "parse", "the", "labels", "in", "the", "file", "'", "s", "load", "statements", "immutable", "list", "<", "pair", "<", "string", ",", "location", ">", ">", "program", "loads", "=", "bzl", "load", "function", "get", "loads", "from", "program", "(", "compiled", "prog", ")", ";", "immutable", "list", "<", "label", ">", "load", "labels", "=", "bzl", "load", "function", "get", "load", "labels", "(", "env", "get", "listener", "(", ")", ",", "program", "loads", ",", "package", "id", ",", "repository", "mapping", ")", ";", "if", "(", "load", "labels", "=", "=", "null", ")", "{", "throw", "package", "function", "exception", "builder", "(", ")", "set", "type", "(", "package", "function", "exception", "type", "build", "file", "contains", "errors", ")", "set", "package", "identifier", "(", "package", "id", ")", "set", "transience", "(", "transience", "persistent", ")", "set", "message", "(", "\"", "malformed", "load", "statements", "\"", ")", "set", "package", "loading", "code", "(", "package", "loading", "code", "import", "starlark", "file", "error", ")", "build", "(", ")", ";", "}", "/", "/", "compute", "key", "for", "each", "label", "in", "loads", "immutable", "list", "builder", "<", "bzl", "load", "value", "key", ">", "keys", "=", "immutable", "list", "builder", "with", "expected", "size", "(", "load", "labels", "size", "(", ")", ")", ";", "for", "(", "label", "load", "label", ":", "load", "labels", ")", "{", "keys", "add", "(", "bzl", "load", "value", "key", "for", "build", "(", "load", "label", ")", ")", ";", "}", "/", "/", "load", "bzl", "modules", "in", "parallel", "try", "{", "loaded", "modules", "=", "load", "bzl", "modules", "(", "env", ",", "package", "id", ",", "program", "loads", ",", "keys", "build", "(", ")", ",", "bzl", "load", "function", "for", "inlining", ")", ";", "}", "catch", "(", "no", "such", "package", "exception", "e", ")", "{", "throw", "new", "package", "function", "exception", "(", "e", ",", "transience", "persistent", ")", ";", "}", "if", "(", "loaded", "modules", "=", "=", "null", ")", "{", "return", "null", ";", "/", "/", "skyframe", "restart", "}", "}", "/", "/", "from", "this", "point", "on", ",", "no", "matter", "whether", "the", "function", "returns", "/", "/", "successfully", "or", "throws", "an", "exception", ",", "there", "will", "be", "no", "more", "/", "/", "skyframe", "restarts", ",", "so", "we", "can", "dispense", "with", "the", "cache", "entry", "committed", "=", "true", ";", "long", "start", "time", "nanos", "=", "blaze", "clock", "nano", "time", "(", ")", ";", "/", "/", "create", "the", "package", ",", "/", "/", "even", "if", "it", "will", "be", "empty", "because", "we", "cannot", "attempt", "execution", "package", "builder", "pkg", "builder", "=", "package", "factory", "new", "package", "builder", "(", "package", "id", ",", "workspace", "name", ",", "starlark", "semantics", ",", "repository", "mapping", ")", "set", "filename", "(", "build", "file", "path", ")", "set", "default", "visibility", "(", "default", "visibility", ")", "/", "/", "\"", "default", "visibility", "\"", "comes", "from", "the", "command", "line", "/", "/", "let", "'", "s", "give", "the", "build", "file", "a", "chance", "to", "set", "default", "visibility", "once", ",", "/", "/", "by", "resetting", "the", "package", "builder", "default", "visibility", "set", "flag", "set", "default", "visibility", "set", "(", "false", ")", ";", "set", "<", "sky", "key", ">", "glob", "dep", "keys", "=", "immutable", "set", "of", "(", ")", ";", "/", "/", "ok", "to", "execute", "build", "program", "?", "if", "(", "compiled", "ok", "(", ")", ")", "{", "globber", "with", "skyframe", "glob", "deps", "globber", "=", "make", "globber", "(", "build", "file", "path", "as", "path", "(", ")", ",", "package", "id", ",", "repository", "ignored", "patterns", ",", "package", "root", ",", "env", ")", ";", "pkg", "builder", "set", "generator", "map", "(", "compiled", "generator", "map", ")", ";", "package", "factory", "execute", "build", "file", "(", "pkg", "builder", ",", "compiled", "prog", ",", "compiled", "globs", ",", "compiled", "globs", "with", "dirs", ",", "compiled", "prelude", ",", "loaded", "modules", ",", "starlark", "semantics", ",", "globber", ")", ";", "glob", "dep", "keys", "=", "globber", "get", "glob", "deps", "requested", "(", ")", ";", "}", "else", "{", "/", "/", "execution", "not", "attempted", "due", "to", "static", "errors", "for", "(", "syntax", "error", "err", ":", "compiled", "errors", ")", "{", "pkg", "builder", "add", "event", "(", "package", "error", "(", "err", "location", "(", ")", ",", "err", "message", "(", ")", ",", "package", "loading", "code", "syntax", "error", ")", ")", ";", "}", "pkg", "builder", "set", "contains", "errors", "(", ")", ";", "}", "num", "packages", "loaded", "increment", "and", "get", "(", ")", ";", "long", "load", "time", "nanos", "=", "math", "max", "(", "blaze", "clock", "nano", "time", "(", ")", "-", "start", "time", "nanos", ",", "0l", ")", ";", "return", "new", "loaded", "package", "cache", "entry", "(", "pkg", "builder", ",", "glob", "dep", "keys", ",", "load", "time", "nanos", ")", ";", "}", "finally", "{", "/", "/", "discard", "the", "cache", "entry", "and", "declare", "completion", "/", "/", "only", "if", "we", "reached", "the", "point", "of", "no", "return", "if", "(", "committed", ")", "{", "compiled", "build", "file", "cache", "invalidate", "(", "package", "id", ")", ";", "if", "(", "package", "progress", "!", "=", "null", ")", "{", "package", "progress", "done", "read", "package", "(", "package", "id", ")", ";", "}", "}", "}", "}" ]
[ "index", "=", "=", "-", "1", "when", "new" ]
[ "private", "void", "insert", "into", "dynamic", "table", "(", "int", "index", ",", "io", "grpc", "okhttp", "internal", "framed", "header", "entry", ")", "{", "header", "list", "add", "(", "entry", ")", ";", "int", "delta", "=", "entry", "hpack", "size", ";", "if", "(", "index", "!", "=", "-", "1", ")", "{", "/", "/", "index", "-", "1", "=", "=", "new", "header", "delta", "-", "=", "dynamic", "table", "[", "dynamic", "table", "index", "(", "index", ")", "]", "hpack", "size", ";", "}", "/", "/", "if", "the", "new", "or", "replacement", "header", "is", "too", "big", ",", "drop", "all", "entries", "if", "(", "delta", ">", "max", "dynamic", "table", "byte", "count", ")", "{", "clear", "dynamic", "table", "(", ")", ";", "return", ";", "}", "/", "/", "evict", "headers", "to", "the", "required", "length", "int", "bytes", "to", "recover", "=", "(", "dynamic", "table", "byte", "count", "+", "delta", ")", "-", "max", "dynamic", "table", "byte", "count", ";", "int", "entries", "evicted", "=", "evict", "to", "recover", "bytes", "(", "bytes", "to", "recover", ")", ";", "if", "(", "index", "=", "=", "-", "1", ")", "{", "/", "/", "adding", "a", "value", "to", "the", "dynamic", "table", "if", "(", "dynamic", "table", "header", "count", "+", "1", ">", "dynamic", "table", "length", ")", "{", "/", "/", "need", "to", "grow", "the", "dynamic", "table", "io", "grpc", "okhttp", "internal", "framed", "header", "[", "]", "doubled", "=", "new", "io", "grpc", "okhttp", "internal", "framed", "header", "[", "dynamic", "table", "length", "*", "2", "]", ";", "system", "arraycopy", "(", "dynamic", "table", ",", "0", ",", "doubled", ",", "dynamic", "table", "length", ",", "dynamic", "table", "length", ")", ";", "next", "dynamic", "table", "index", "=", "dynamic", "table", "length", "-", "1", ";", "dynamic", "table", "=", "doubled", ";", "}", "index", "=", "next", "dynamic", "table", "index", "-", "-", ";", "dynamic", "table", "[", "index", "]", "=", "entry", ";", "dynamic", "table", "header", "count", "+", "+", ";", "}", "else", "{", "/", "/", "replace", "value", "at", "same", "position", "index", "+", "=", "dynamic", "table", "index", "(", "index", ")", "+", "entries", "evicted", ";", "dynamic", "table", "[", "index", "]", "=", "entry", ";", "}", "dynamic", "table", "byte", "count", "+", "=", "delta", ";", "}" ]
[ "add", "a", "sort", "against", "the", "given", "field", "name" ]
[ "public", "top", "hits", "aggregation", "builder", "sort", "(", "string", "name", ")", "{", "if", "(", "name", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "sort", "[", "name", "]", "must", "not", "be", "null", ":", "[", "\"", "+", "name", "+", "\"", "]", "\"", ")", ";", "}", "if", "(", "name", "equals", "(", "score", "sort", "builder", "name", ")", ")", "{", "sort", "(", "sort", "builders", "score", "sort", "(", ")", ")", ";", "}", "else", "{", "sort", "(", "sort", "builders", "field", "sort", "(", "name", ")", ")", ";", "}", "return", "this", ";", "}" ]
[ "get", "cache", "files", "set", "in", "the", "configuration" ]
[ "public", "uri", "[", "]", "get", "cache", "files", "(", ")", "throws", "i", "o", "exception", "{", "return", "distributed", "cache", "get", "cache", "files", "(", "conf", ")", ";", "}" ]
[ "test", "the", "property", "'", "integer", "'" ]
[ "public", "void", "integer", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "integer", "}" ]
[ "return", "the", "zodiac", "the", "pattern", "is", "{", "@", "code", "yyyy", "-", "mm", "-", "dd", "hh", ":", "mm", ":", "ss", "}" ]
[ "public", "static", "string", "get", "zodiac", "(", "final", "string", "time", ")", "{", "return", "get", "zodiac", "(", "string", "2", "date", "(", "time", ",", "get", "default", "format", "(", ")", ")", ")", ";", "}" ]
[ "extracts", "data", "read", "from", "a", "provided", "{", "@", "link", "extractor", "input", "}", "must", "not", "be", "called", "before", "{", "@", "link", "#", "init", "(", "extractor", "output", ")", "}", "a", "single", "call", "to", "this", "method", "will", "block", "until", "some", "progress", "has", "been", "made", ",", "but", "will", "not", "block", "for", "longer", "than", "this", "hence", "each", "call", "will", "consume", "only", "a", "small", "amount", "of", "input", "data", "in", "the", "common", "case", ",", "{", "@", "link", "#", "result", "continue", "}", "is", "returned", "to", "indicate", "that", "the", "{", "@", "link", "extractor", "input", "}", "passed", "to", "the", "next", "read", "is", "required", "to", "provide", "data", "continuing", "from", "the", "position", "in", "the", "stream", "reached", "by", "the", "returning", "call", "if", "the", "extractor", "requires", "data", "to", "be", "provided", "from", "a", "different", "position", ",", "then", "that", "position", "is", "set", "in", "{", "@", "code", "seek", "position", "}", "and", "{", "@", "link", "#", "result", "seek", "}", "is", "returned", "if", "the", "extractor", "reached", "the", "end", "of", "the", "data", "provided", "by", "the", "{", "@", "link", "extractor", "input", "}", ",", "then", "{", "@", "link", "#", "result", "end", "of", "input", "}", "is", "returned", "when", "this", "method", "throws", "an", "{", "@", "link", "i", "o", "exception", "}", ",", "extraction", "may", "continue", "by", "providing", "an", "{", "@", "link", "extractor", "input", "}", "with", "an", "unchanged", "{", "@", "link", "extractor", "input", "#", "get", "position", "(", ")", "read", "position", "}", "to", "a", "subsequent", "call", "to", "this", "method" ]
[ "int", "read", "(", "extractor", "input", "input", ",", "position", "holder", "seek", "position", ")", "throws", "i", "o", "exception", ";" ]
[ "set", "font", "metrics", "for", "attributed", "string", "objects" ]
[ "public", "void", "set", "font", "metrics", "(", "font", "metrics", "metrics", ")", "{", "this", "metrics", "=", "metrics", ";", "init", "punctuation", "(", ")", ";", "}" ]
[ "checks", "that", "<", "code", ">", "results", "by", "index", "u", "u", "i", "d", "(", "list", ")", "<", "code", ">", "can", "aggregate", "a", "single", "dangling", "index", "on", "a", "single", "node" ]
[ "public", "void", "test", "results", "by", "index", "u", "u", "i", "d", "can", "aggregate", "a", "single", "response", "(", ")", "{", "final", "discovery", "node", "node", "=", "mock", "(", "discovery", "node", "class", ")", ";", "when", "(", "node", "get", "id", "(", ")", ")", "then", "return", "(", "\"", "some", "-", "node", "-", "id", "\"", ")", ";", "final", "var", "dangling", "index", "info", "=", "list", "of", "(", "new", "dangling", "index", "info", "(", "\"", "some", "-", "node", "-", "id", "\"", ",", "\"", "some", "-", "index", "\"", ",", "uuid", "1", ",", "123456l", ")", ")", ";", "final", "var", "nodes", "=", "list", "of", "(", "new", "node", "list", "dangling", "indices", "response", "(", "node", ",", "dangling", "index", "info", ")", ")", ";", "final", "var", "aggregated", "=", "new", "array", "list", "<", ">", "(", "results", "by", "index", "u", "u", "i", "d", "(", "nodes", ")", ")", ";", "assert", "that", "(", "aggregated", ",", "has", "size", "(", "1", ")", ")", ";", "final", "var", "expected", "=", "new", "aggregated", "dangling", "index", "info", "(", "uuid", "1", ",", "\"", "some", "-", "index", "\"", ",", "123456l", ")", ";", "expected", "get", "node", "ids", "(", ")", "add", "(", "\"", "some", "-", "node", "-", "id", "\"", ")", ";", "assert", "that", "(", "aggregated", "get", "(", "0", ")", ",", "equal", "to", "(", "expected", ")", ")", ";", "}" ]
[ "get", "ship", "date" ]
[ "public", "offset", "date", "time", "get", "ship", "date", "(", ")", "{", "return", "ship", "date", ";", "}" ]
[ "returns", "the", "cookie", "domain", "to", "use", "for", "the", "http", "cookie" ]
[ "protected", "string", "get", "cookie", "domain", "(", ")", "{", "return", "cookie", "domain", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "because", "a", "{", "@", "code", "set", "multimap", "}", "has", "unique", "values", "for", "a", "given", "key", ",", "this", "method", "returns", "a", "{", "@", "link", "set", "}", ",", "instead", "of", "the", "{", "@", "link", "collection", "}", "specified", "in", "the", "{", "@", "link", "multimap", "}", "interface" ]
[ "public", "set", "<", "v", ">", "get", "(", "@", "nullable", "k", "key", ")", "{", "return", "(", "set", "<", "v", ">", ")", "super", "get", "(", "key", ")", ";", "}" ]
[ "cluster", "level", "block", "to", "check", "before", "request", "execution", "returning", "null", "means", "that", "no", "blocks", "need", "to", "be", "checked" ]
[ "protected", "cluster", "block", "level", "global", "block", "level", "(", ")", "{", "return", "null", ";", "}" ]
[ "find", "a", "matching", "method", "with", "the", "specified", "name", "for", "the", "specified", "arguments" ]
[ "protected", "method", "find", "matching", "method", "(", ")", "{", "string", "target", "method", "=", "get", "target", "method", "(", ")", ";", "object", "[", "]", "arguments", "=", "get", "arguments", "(", ")", ";", "int", "arg", "count", "=", "arguments", "length", ";", "class", "<", "?", ">", "target", "class", "=", "get", "target", "class", "(", ")", ";", "assert", "state", "(", "target", "class", "!", "=", "null", ",", "\"", "no", "target", "class", "set", "\"", ")", ";", "method", "[", "]", "candidates", "=", "reflection", "utils", "get", "all", "declared", "methods", "(", "target", "class", ")", ";", "int", "min", "type", "diff", "weight", "=", "integer", "max", "value", ";", "method", "matching", "method", "=", "null", ";", "for", "(", "method", "candidate", ":", "candidates", ")", "{", "if", "(", "candidate", "get", "name", "(", ")", "equals", "(", "target", "method", ")", ")", "{", "if", "(", "candidate", "get", "parameter", "count", "(", ")", "=", "=", "arg", "count", ")", "{", "class", "<", "?", ">", "[", "]", "param", "types", "=", "candidate", "get", "parameter", "types", "(", ")", ";", "int", "type", "diff", "weight", "=", "get", "type", "difference", "weight", "(", "param", "types", ",", "arguments", ")", ";", "if", "(", "type", "diff", "weight", "<", "min", "type", "diff", "weight", ")", "{", "min", "type", "diff", "weight", "=", "type", "diff", "weight", ";", "matching", "method", "=", "candidate", ";", "}", "}", "}", "}", "return", "matching", "method", ";", "}" ]
[ "return", "the", "files", "'", "comment", "in", "zip", "file" ]
[ "public", "static", "list", "<", "string", ">", "get", "comments", "(", "final", "string", "zip", "file", "path", ")", "throws", "i", "o", "exception", "{", "return", "get", "comments", "(", "utils", "bridge", "get", "file", "by", "path", "(", "zip", "file", "path", ")", ")", ";", "}" ]
[ "get", "name", "number" ]
[ "public", "big", "decimal", "get", "name", "number", "(", ")", "{", "return", "name", "number", ";", "}" ]
[ "register", "a", "provider", "if", "the", "provider", "'", "s", "{", "@", "link", "name", "resolver", "provider", "#", "is", "available", "is", "available", "(", ")", "}", "returns", "{", "@", "code", "false", "}", ",", "this", "method", "will", "throw", "{", "@", "link", "illegal", "argument", "exception", "}", "providers", "will", "be", "used", "in", "priority", "order", "in", "case", "of", "ties", ",", "providers", "are", "used", "in", "registration", "order" ]
[ "public", "synchronized", "void", "register", "(", "name", "resolver", "provider", "provider", ")", "{", "add", "provider", "(", "provider", ")", ";", "refresh", "providers", "(", ")", ";", "}" ]
[ "create", "a", "populated", "namespace", "for", "later", "testing", "save", "its", "contents", "to", "a", "data", "structure", "and", "store", "its", "fsimage", "location", "we", "only", "want", "to", "generate", "the", "fsimage", "file", "once", "and", "use", "it", "for", "multiple", "tests" ]
[ "public", "static", "void", "create", "original", "f", "s", "image", "(", ")", "throws", "i", "o", "exception", "{", "mini", "d", "f", "s", "cluster", "cluster", "=", "null", ";", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "try", "{", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "distributed", "file", "system", "hdfs", "=", "cluster", "get", "file", "system", "(", ")", ";", "path", "parent", "dir", "=", "new", "path", "(", "\"", "/", "parent", "dir", "\"", ")", ";", "path", "child", "dir", "1", "=", "new", "path", "(", "parent", "dir", ",", "\"", "child", "dir", "1", "\"", ")", ";", "path", "child", "dir", "2", "=", "new", "path", "(", "parent", "dir", ",", "\"", "child", "dir", "2", "\"", ")", ";", "path", "dir", "for", "links", "=", "new", "path", "(", "\"", "/", "dir", "for", "links", "\"", ")", ";", "hdfs", "mkdirs", "(", "parent", "dir", ")", ";", "hdfs", "mkdirs", "(", "child", "dir", "1", ")", ";", "hdfs", "mkdirs", "(", "child", "dir", "2", ")", ";", "hdfs", "mkdirs", "(", "dir", "for", "links", ")", ";", "hdfs", "set", "quota", "(", "parent", "dir", ",", "10", ",", "1024", "*", "1024", "*", "1024", ")", ";", "path", "file", "1", "on", "parent", "dir", "=", "new", "path", "(", "parent", "dir", ",", "\"", "file", "1", "\"", ")", ";", "try", "(", "f", "s", "data", "output", "stream", "o", "=", "hdfs", "create", "(", "file", "1", "on", "parent", "dir", ")", ")", "{", "o", "write", "(", "\"", "123", "\"", "get", "bytes", "(", ")", ")", ";", "}", "try", "(", "f", "s", "data", "output", "stream", "o", "=", "hdfs", "create", "(", "new", "path", "(", "parent", "dir", ",", "\"", "file", "2", "\"", ")", ")", ")", "{", "o", "write", "(", "\"", "1234", "\"", "get", "bytes", "(", ")", ")", ";", "}", "try", "(", "f", "s", "data", "output", "stream", "o", "=", "hdfs", "create", "(", "new", "path", "(", "child", "dir", "1", ",", "\"", "file", "3", "\"", ")", ")", ")", "{", "o", "write", "(", "\"", "123", "\"", "get", "bytes", "(", ")", ")", ";", "}", "try", "(", "f", "s", "data", "output", "stream", "o", "=", "hdfs", "create", "(", "new", "path", "(", "parent", "dir", ",", "\"", "file", "4", "\"", ")", ")", ")", "{", "o", "write", "(", "\"", "123", "\"", "get", "bytes", "(", ")", ")", ";", "}", "path", "link", "1", "=", "new", "path", "(", "\"", "/", "link", "1", "\"", ")", ";", "path", "link", "2", "=", "new", "path", "(", "\"", "/", "dir", "for", "links", "/", "linkfordir", "1", "\"", ")", ";", "hdfs", "create", "symlink", "(", "new", "path", "(", "\"", "/", "parent", "dir", "/", "file", "4", "\"", ")", ",", "link", "1", ",", "true", ")", ";", "summary", "from", "d", "f", "s", "=", "hdfs", "get", "content", "summary", "(", "parent", "dir", ")", ";", "empty", "dir", "summary", "from", "d", "f", "s", "=", "hdfs", "get", "content", "summary", "(", "child", "dir", "2", ")", ";", "file", "summary", "from", "d", "f", "s", "=", "hdfs", "get", "content", "summary", "(", "file", "1", "on", "parent", "dir", ")", ";", "sym", "link", "summary", "from", "d", "f", "s", "=", "hdfs", "get", "content", "summary", "(", "link", "1", ")", ";", "hdfs", "create", "symlink", "(", "child", "dir", "1", ",", "link", "2", ",", "true", ")", ";", "sym", "link", "summary", "for", "dir", "contains", "from", "d", "f", "s", "=", "hdfs", "get", "content", "summary", "(", "new", "path", "(", "\"", "/", "dir", "for", "links", "\"", ")", ")", ";", "/", "/", "write", "results", "to", "the", "fsimage", "file", "hdfs", "set", "safe", "mode", "(", "hdfs", "constants", "safe", "mode", "action", "safemode", "enter", ",", "false", ")", ";", "hdfs", "save", "namespace", "(", ")", ";", "/", "/", "determine", "the", "location", "of", "the", "fsimage", "file", "original", "fsimage", "=", "f", "s", "image", "test", "util", "find", "latest", "image", "file", "(", "f", "s", "image", "test", "util", "get", "f", "s", "image", "(", "cluster", "get", "name", "node", "(", ")", ")", "get", "storage", "(", ")", "get", "storage", "dir", "(", "0", ")", ")", ";", "if", "(", "original", "fsimage", "=", "=", "null", ")", "{", "throw", "new", "runtime", "exception", "(", "\"", "didn", "'", "t", "generate", "or", "can", "'", "t", "find", "fsimage", "\"", ")", ";", "}", "log", "debug", "(", "\"", "original", "fs", "image", "file", "is", "\"", "+", "original", "fsimage", ")", ";", "}", "finally", "{", "if", "(", "cluster", "!", "=", "null", ")", "cluster", "shutdown", "(", ")", ";", "}", "}" ]
[ "increments", "the", "clock", "'", "s", "time", "gradually", "in", "several", "steps", "the", "clock", "will", "be", "incremented", "by", "tick", "ms", "amount", "repeatedly", "until", "it", "has", "progress", "by", "total", "ms", "from", "the", "given", "time", "when", "this", "call", "was", "made", "this", "call", "is", "useful", "for", "working", "with", "animations", "in", "tests", "in", "the", "end", "of", "this", "call", ",", "the", "call", "will", "progress", "by", "exactly", "total", "ms", ",", "even", "if", "it", "means", "the", "last", "tick", "of", "the", "clock", "is", "smaller", "than", "tick", "ms" ]
[ "public", "void", "increment", "in", "steps", "(", "long", "tick", "ms", ",", "long", "total", "ms", ")", "{", "long", "start", "=", "now", ";", "long", "end", "=", "start", "+", "total", "ms", ";", "while", "(", "now", "<", "end", ")", "{", "increment", "by", "(", "math", "min", "(", "tick", "ms", ",", "end", "-", "now", ")", ")", ";", "}", "}" ]
[ "returns", "true", "if", "the", "given", "file", "is", "not", "null", ",", "exits", ",", "is", "a", "directory", "and", "has", "no", "files" ]
[ "public", "static", "boolean", "directory", "is", "empty", "(", "file", "directory", ")", "{", "if", "(", "directory", "=", "=", "null", ")", "{", "return", "true", ";", "}", "if", "(", "!", "directory", "exists", "(", ")", ")", "{", "return", "true", ";", "}", "if", "(", "!", "directory", "is", "directory", "(", ")", ")", "{", "return", "false", ";", "}", "file", "[", "]", "files", "=", "directory", "list", "files", "(", ")", ";", "boolean", "has", "files", "=", "files", "!", "=", "null", "&", "&", "files", "length", ">", "0", ";", "return", "!", "has", "files", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "write", "to", "(", "annotated", "output", "out", ",", "dalv", "insn", "insn", ")", "{", "int", "offset", "=", "(", "(", "target", "insn", ")", "insn", ")", "get", "target", "offset", "(", ")", ";", "write", "(", "out", ",", "opcode", "unit", "(", "insn", ",", "0", ")", ",", "(", "short", ")", "offset", ")", ";", "}" ]
[ "used", "to", "display", "a", "warning", "message", "to", "the", "user", "via", "the", "console", "(", "no", "gui", ")", "also", "records", "the", "message", "to", "the", "logging", "system" ]
[ "public", "static", "void", "warn", "(", "object", "originator", ",", "object", "message", ")", "{", "error", "logger", "warn", "(", "originator", ",", "message", ")", ";", "}" ]
[ "obtain", "the", "shared", "singleton", "instance", "for", "this", "supplier" ]
[ "public", "t", "obtain", "(", ")", "{", "t", "instance", "=", "get", "(", ")", ";", "assert", "state", "(", "instance", "!", "=", "null", ",", "\"", "no", "instance", "from", "supplier", "\"", ")", ";", "return", "instance", ";", "}" ]
[ "schedule", "an", "exit", "from", "the", "application", "on", "android", ",", "this", "will", "cause", "a", "call", "to", "pause", "(", ")", "and", "dispose", "(", ")", "some", "time", "in", "the", "future", ",", "it", "will", "not", "immediately", "finish", "your", "application", "on", "i", "o", "s", "this", "should", "be", "avoided", "in", "production", "as", "it", "breaks", "apples", "guidelines" ]
[ "public", "void", "exit", "(", ")", ";" ]
[ "test", "that", "if", "we", "serialize", "and", "deserialize", "an", "object", ",", "further", "serialization", "leads", "to", "identical", "bytes", "representation", "this", "is", "necessary", "to", "ensure", "because", "we", "use", "the", "serialized", "bytes", "reference", "of", "this", "builder", "as", "part", "of", "the", "cache", "key", "in", "{", "@", "link", "shard", "search", "request", "}", "(", "via", "{", "@", "link", "search", "source", "builder", "#", "collapse", "(", "org", "elasticsearch", "search", "collapse", "collapse", "builder", ")", "}", ")" ]
[ "public", "void", "test", "serialization", "order", "(", ")", "throws", "exception", "{", "for", "(", "int", "runs", "=", "0", ";", "runs", "<", "number", "of", "testbuilders", ";", "runs", "+", "+", ")", "{", "inner", "hit", "builder", "original", "=", "random", "inner", "hits", "(", ")", ";", "inner", "hit", "builder", "deserialized", "=", "serialized", "copy", "(", "original", ")", ";", "assert", "equals", "(", "deserialized", ",", "original", ")", ";", "assert", "equals", "(", "deserialized", "hash", "code", "(", ")", ",", "original", "hash", "code", "(", ")", ")", ";", "assert", "not", "same", "(", "deserialized", ",", "original", ")", ";", "bytes", "stream", "output", "out", "1", "=", "new", "bytes", "stream", "output", "(", ")", ";", "bytes", "stream", "output", "out", "2", "=", "new", "bytes", "stream", "output", "(", ")", ";", "original", "write", "to", "(", "out", "1", ")", ";", "deserialized", "write", "to", "(", "out", "2", ")", ";", "assert", "equals", "(", "out", "1", "bytes", "(", ")", ",", "out", "2", "bytes", "(", ")", ")", ";", "}", "}" ]
[ "test", "constructing", "located", "block", "with", "null", "cached", "locs" ]
[ "public", "void", "test", "located", "block", "constructor", "with", "null", "cached", "locs", "(", ")", "{", "datanode", "info", "d", "=", "d", "f", "s", "test", "util", "get", "local", "datanode", "info", "(", ")", ";", "datanode", "info", "[", "]", "ds", "=", "new", "datanode", "info", "[", "1", "]", ";", "ds", "[", "0", "]", "=", "d", ";", "extended", "block", "b", "1", "=", "new", "extended", "block", "(", "\"", "bpid", "\"", ",", "1", ",", "1", ",", "1", ")", ";", "located", "block", "l", "1", "=", "new", "located", "block", "(", "b", "1", ",", "ds", ",", "null", ",", "null", ",", "0", ",", "false", ",", "null", ")", ";", "final", "datanode", "info", "[", "]", "cached", "locs", "=", "l", "1", "get", "cached", "locations", "(", ")", ";", "assert", "true", "(", "cached", "locs", "length", "=", "=", "0", ")", ";", "}" ]
[ "returns", "a", "key", "-", "value", "mapping", "associated", "with", "the", "least", "value", "strictly", "greater", "than", "the", "given", "value", ",", "or", "{", "@", "code", "null", "}", "if", "there", "is", "no", "such", "value" ]
[ "entry", "<", "k", ",", "v", ">", "higher", "entry", "by", "value", "(", "v", "value", ")", ";" ]
[ "uploads", "an", "image", "(", "required", ")", "<", "b", ">", "200", "<", "b", ">", "-", "successful", "operation" ]
[ "public", "response", "entity", "<", "model", "api", "response", ">", "upload", "file", "with", "required", "file", "with", "http", "info", "(", "long", "pet", "id", ",", "file", "required", "file", ",", "string", "additional", "metadata", ")", "throws", "rest", "client", "exception", "{", "object", "post", "body", "=", "null", ";", "/", "/", "verify", "the", "required", "parameter", "'", "pet", "id", "'", "is", "set", "if", "(", "pet", "id", "=", "=", "null", ")", "{", "throw", "new", "http", "client", "error", "exception", "(", "http", "status", "bad", "request", ",", "\"", "missing", "the", "required", "parameter", "'", "pet", "id", "'", "when", "calling", "upload", "file", "with", "required", "file", "\"", ")", ";", "}", "/", "/", "verify", "the", "required", "parameter", "'", "required", "file", "'", "is", "set", "if", "(", "required", "file", "=", "=", "null", ")", "{", "throw", "new", "http", "client", "error", "exception", "(", "http", "status", "bad", "request", ",", "\"", "missing", "the", "required", "parameter", "'", "required", "file", "'", "when", "calling", "upload", "file", "with", "required", "file", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "final", "map", "<", "string", ",", "object", ">", "uri", "variables", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "uri", "variables", "put", "(", "\"", "pet", "id", "\"", ",", "pet", "id", ")", ";", "string", "path", "=", "api", "client", "expand", "path", "(", "\"", "/", "fake", "/", "{", "pet", "id", "}", "/", "upload", "image", "with", "required", "file", "\"", ",", "uri", "variables", ")", ";", "final", "multi", "value", "map", "<", "string", ",", "string", ">", "query", "params", "=", "new", "linked", "multi", "value", "map", "<", "string", ",", "string", ">", "(", ")", ";", "final", "http", "headers", "header", "params", "=", "new", "http", "headers", "(", ")", ";", "final", "multi", "value", "map", "<", "string", ",", "string", ">", "cookie", "params", "=", "new", "linked", "multi", "value", "map", "<", "string", ",", "string", ">", "(", ")", ";", "final", "multi", "value", "map", "<", "string", ",", "object", ">", "form", "params", "=", "new", "linked", "multi", "value", "map", "<", "string", ",", "object", ">", "(", ")", ";", "if", "(", "additional", "metadata", "!", "=", "null", ")", "form", "params", "add", "(", "\"", "additional", "metadata", "\"", ",", "additional", "metadata", ")", ";", "if", "(", "required", "file", "!", "=", "null", ")", "form", "params", "add", "(", "\"", "required", "file", "\"", ",", "new", "file", "system", "resource", "(", "required", "file", ")", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "\"", "application", "/", "json", "\"", "}", ";", "final", "list", "<", "media", "type", ">", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "content", "types", "=", "{", "\"", "multipart", "/", "form", "-", "data", "\"", "}", ";", "final", "media", "type", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "content", "types", ")", ";", "string", "[", "]", "auth", "names", "=", "new", "string", "[", "]", "{", "\"", "petstore", "auth", "\"", "}", ";", "parameterized", "type", "reference", "<", "model", "api", "response", ">", "return", "type", "=", "new", "parameterized", "type", "reference", "<", "model", "api", "response", ">", "(", ")", "{", "}", ";", "return", "api", "client", "invoke", "a", "p", "i", "(", "path", ",", "http", "method", "post", ",", "query", "params", ",", "post", "body", ",", "header", "params", ",", "cookie", "params", ",", "form", "params", ",", "local", "var", "accept", ",", "content", "type", ",", "auth", "names", ",", "return", "type", ")", ";", "}" ]
[ "set", "item", "in", "the", "cache" ]
[ "default", "distributed", "cache", "manager", "<", "k", ",", "v", ",", "i", ">", "set", "(", "final", "k", "key", ",", "final", "v", "item", ",", "final", "boolean", "publish", ")", "{", "return", "this", ";", "}" ]
[ "called", "before", "the", "renderer", "processes", "a", "buffer" ]
[ "protected", "boolean", "should", "process", "buffer", "(", "long", "buffer", "time", "us", ",", "long", "playback", "position", "us", ")", "{", "return", "buffer", "time", "us", "<", "playback", "position", "us", "+", "source", "readahead", "us", ";", "}" ]
[ "generate", "requesting", "party", "token", "response", "entity" ]
[ "protected", "response", "entity", "generate", "requesting", "party", "token", "(", "final", "http", "servlet", "request", "request", ",", "final", "http", "servlet", "response", "response", ",", "final", "common", "profile", "profile", "result", ",", "final", "uma", "authorization", "request", "uma", "request", ",", "final", "uma", "permission", "ticket", "permission", "ticket", ",", "final", "resource", "set", "resource", "set", ")", "{", "val", "current", "aat", "=", "profile", "result", "get", "attribute", "(", "o", "auth", "2", "0", "access", "token", "class", "get", "name", "(", ")", ",", "o", "auth", "2", "0", "access", "token", "class", ")", ";", "val", "registered", "service", "=", "o", "auth", "2", "0", "utils", "get", "registered", "o", "auth", "service", "by", "client", "id", "(", "get", "uma", "configuration", "context", "(", ")", "get", "services", "manager", "(", ")", ",", "o", "auth", "2", "0", "utils", "get", "client", "id", "from", "authenticated", "profile", "(", "profile", "result", ")", ")", ";", "val", "scopes", "=", "new", "linked", "hash", "set", "<", ">", "(", "permission", "ticket", "get", "scopes", "(", ")", ")", ";", "scopes", "add", "(", "o", "auth", "2", "0", "constants", "uma", "authorization", "scope", ")", ";", "scopes", "add", "all", "(", "resource", "set", "get", "scopes", "(", ")", ")", ";", "val", "holder", "=", "access", "token", "request", "data", "holder", "builder", "(", ")", "authentication", "(", "current", "aat", "get", "authentication", "(", ")", ")", "ticket", "granting", "ticket", "(", "current", "aat", "get", "ticket", "granting", "ticket", "(", ")", ")", "grant", "type", "(", "o", "auth", "2", "0", "grant", "types", "uma", "ticket", ")", "response", "type", "(", "o", "auth", "2", "0", "response", "types", "none", ")", "registered", "service", "(", "registered", "service", ")", "generate", "refresh", "token", "(", "false", ")", "scopes", "(", "scopes", ")", "service", "(", "current", "aat", "get", "service", "(", ")", ")", "build", "(", ")", ";", "val", "result", "=", "get", "uma", "configuration", "context", "(", ")", "get", "access", "token", "generator", "(", ")", "generate", "(", "holder", ")", ";", "val", "access", "token", "=", "result", "get", "access", "token", "(", ")", "get", "(", ")", ";", "val", "encoded", "access", "token", "=", "o", "auth", "2", "0", "jwt", "access", "token", "encoder", "builder", "(", ")", "access", "token", "(", "access", "token", ")", "registered", "service", "(", "holder", "get", "registered", "service", "(", ")", ")", "service", "(", "holder", "get", "service", "(", ")", ")", "access", "token", "jwt", "builder", "(", "get", "uma", "configuration", "context", "(", ")", "get", "access", "token", "jwt", "builder", "(", ")", ")", "cas", "properties", "(", "get", "uma", "configuration", "context", "(", ")", "get", "cas", "properties", "(", ")", ")", "build", "(", ")", "encode", "(", ")", ";", "val", "timeout", "=", "beans", "new", "duration", "(", "get", "uma", "configuration", "context", "(", ")", "get", "cas", "properties", "(", ")", "get", "authn", "(", ")", "get", "uma", "(", ")", "get", "requesting", "party", "token", "(", ")", "get", "max", "time", "to", "live", "in", "seconds", "(", ")", ")", "get", "seconds", "(", ")", ";", "request", "set", "attribute", "(", "uma", "permission", "ticket", "class", "get", "name", "(", ")", ",", "permission", "ticket", ")", ";", "request", "set", "attribute", "(", "resource", "set", "class", "get", "name", "(", ")", ",", "resource", "set", ")", ";", "val", "id", "token", "=", "get", "uma", "configuration", "context", "(", ")", "get", "requesting", "party", "token", "generator", "(", ")", "generate", "(", "request", ",", "response", ",", "access", "token", ",", "timeout", ",", "o", "auth", "2", "0", "response", "types", "code", ",", "registered", "service", ")", ";", "access", "token", "set", "id", "token", "(", "id", "token", ")", ";", "get", "uma", "configuration", "context", "(", ")", "get", "central", "authentication", "service", "(", ")", "update", "ticket", "(", "access", "token", ")", ";", "if", "(", "string", "utils", "is", "not", "blank", "(", "uma", "request", "get", "rpt", "(", ")", ")", ")", "{", "get", "uma", "configuration", "context", "(", ")", "get", "central", "authentication", "service", "(", ")", "delete", "ticket", "(", "uma", "request", "get", "rpt", "(", ")", ")", ";", "}", "val", "model", "=", "collection", "utils", "wrap", "(", "\"", "rpt", "\"", ",", "encoded", "access", "token", ",", "\"", "code", "\"", ",", "http", "status", "created", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "model", ",", "http", "status", "ok", ")", ";", "}" ]
[ "like", "{", "@", "code", "assert", "acess", "is", "denied", "}", ",", "but", "for", "bulk", "requests", "since", "the", "entire", "request", "will", "not", "be", "failed", ",", "just", "the", "individual", "ones" ]
[ "protected", "void", "assert", "body", "has", "access", "is", "denied", "(", "string", "user", ",", "request", "request", ")", "throws", "i", "o", "exception", "{", "set", "user", "(", "request", ",", "user", ")", ";", "response", "resp", "=", "get", "rest", "client", "(", ")", "perform", "request", "(", "request", ")", ";", "status", "line", "status", "line", "=", "resp", "get", "status", "line", "(", ")", ";", "assert", "that", "(", "status", "line", "get", "status", "code", "(", ")", ",", "is", "(", "200", ")", ")", ";", "http", "entity", "body", "entity", "=", "resp", "get", "entity", "(", ")", ";", "string", "body", "str", "=", "entity", "utils", "to", "string", "(", "body", "entity", ")", ";", "assert", "that", "(", "body", "str", ",", "contains", "string", "(", "\"", "unauthorized", "for", "user", "[", "\"", "+", "user", "+", "\"", "]", "\"", ")", ")", ";", "}" ]
[ "return", "the", "additional", "(", "undeclared", ")", "property" ]
[ "public", "map", "<", "string", ",", "list", ">", "get", "additional", "properties", "(", ")", "{", "return", "additional", "properties", ";", "}" ]
[ "this", "method", "is", "for", "testing", "only", "to", "replace", "the", "scheduled", "task" ]
[ "synchronized", "void", "replace", "scheduled", "task", "(", "int", "windows", ",", "long", "interval", ",", "time", "unit", "time", "unit", ")", "{", "num", "windows", "=", "windows", ";", "scheduled", "task", "cancel", "(", "true", ")", ";", "scheduled", "task", "=", "scheduler", "schedule", "at", "fixed", "rate", "(", "new", "rates", "roller", "(", "this", ")", ",", "interval", ",", "interval", ",", "time", "unit", ")", ";", "}" ]
[ "get", "the", "device", "type", "used", "for", "cgroups", "value", "set", "if", "sys", "file", "\"", "sysdevblockmajor", ":", "minor", "\"", "exists", ",", "it", "'", "s", "block", "device", "otherwise", ",", "it", "'", "s", "char", "device", "an", "exception", "is", "that", "nvidia", "gpu", "doesn", "'", "t", "create", "this", "sys", "file", "so", "assume", "character", "device", "by", "default" ]
[ "public", "device", "type", "get", "device", "type", "from", "device", "number", "(", "int", "major", ",", "int", "minor", ")", "{", "if", "(", "shell", "wrapper", "exist", "file", "(", "\"", "/", "sys", "/", "dev", "/", "block", "/", "\"", "+", "major", "+", "\"", ":", "\"", "+", "minor", ")", ")", "{", "return", "device", "type", "block", ";", "}", "return", "device", "type", "char", ";", "}" ]
[ "returns", "the", "checksum", "of", "all", "but", "the", "first", "12", "bytes", "of", "{", "@", "code", "dex", "}" ]
[ "public", "int", "compute", "checksum", "(", ")", "throws", "i", "o", "exception", "{", "adler", "3", "2", "adler", "3", "2", "=", "new", "adler", "3", "2", "(", ")", ";", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "8192", "]", ";", "byte", "buffer", "data", "=", "this", "data", "duplicate", "(", ")", ";", "/", "/", "positioned", "byte", "buffers", "aren", "'", "t", "thread", "safe", "data", "limit", "(", "data", "capacity", "(", ")", ")", ";", "data", "position", "(", "checksum", "offset", "+", "checksum", "size", ")", ";", "while", "(", "data", "has", "remaining", "(", ")", ")", "{", "int", "count", "=", "math", "min", "(", "buffer", "length", ",", "data", "remaining", "(", ")", ")", ";", "data", "get", "(", "buffer", ",", "0", ",", "count", ")", ";", "adler", "3", "2", "update", "(", "buffer", ",", "0", ",", "count", ")", ";", "}", "return", "(", "int", ")", "adler", "3", "2", "get", "value", "(", ")", ";", "}" ]
[ "samples", "a", "line" ]
[ "private", "int", "sample", "line", "(", "result", "point", "p", "1", ",", "result", "point", "p", "2", ",", "int", "size", ")", "{", "int", "result", "=", "0", ";", "float", "d", "=", "distance", "(", "p", "1", ",", "p", "2", ")", ";", "float", "module", "size", "=", "d", "/", "size", ";", "float", "px", "=", "p", "1", "get", "x", "(", ")", ";", "float", "py", "=", "p", "1", "get", "y", "(", ")", ";", "float", "dx", "=", "module", "size", "*", "(", "p", "2", "get", "x", "(", ")", "-", "p", "1", "get", "x", "(", ")", ")", "/", "d", ";", "float", "dy", "=", "module", "size", "*", "(", "p", "2", "get", "y", "(", ")", "-", "p", "1", "get", "y", "(", ")", ")", "/", "d", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "+", "+", ")", "{", "if", "(", "image", "get", "(", "math", "utils", "round", "(", "px", "+", "i", "*", "dx", ")", ",", "math", "utils", "round", "(", "py", "+", "i", "*", "dy", ")", ")", ")", "{", "result", "|", "=", "1", "<", "<", "(", "size", "-", "i", "-", "1", ")", ";", "}", "}", "return", "result", ";", "}" ]
[ "returns", "the", "number", "of", "free", "indexes", "within", "the", "allocated", "index", "space" ]
[ "int", "get", "free", "index", "count", "(", ")", "{", "return", "free", "index", "stack", "size", "(", ")", ";", "}" ]
[ "transform", "the", "date", "in", "the", "input", "data", "and", "write", "all", "fields", "to", "the", "length", "encoded", "writer", "fields", "must", "be", "copied", "from", "input", "to", "output", "before", "this", "function", "is", "called" ]
[ "protected", "boolean", "transform", "time", "and", "write", "(", "string", "[", "]", "record", ",", "long", "number", "of", "fields", "read", ")", "throws", "i", "o", "exception", "{", "long", "epoch", "ms", ";", "try", "{", "epoch", "ms", "=", "date", "transformer", "transform", "(", "record", "[", "time", "field", "out", "index", "]", ")", ";", "}", "catch", "(", "cannot", "parse", "timestamp", "exception", "e", ")", "{", "data", "counts", "reporter", "report", "date", "parse", "error", "(", "number", "of", "fields", "read", ")", ";", "logger", "error", "(", "e", "get", "message", "(", ")", ")", ";", "return", "false", ";", "}", "record", "[", "time", "field", "out", "index", "]", "=", "long", "to", "string", "(", "epoch", "ms", "/", "ms", "in", "second", ")", ";", "/", "/", "records", "have", "epoch", "seconds", "timestamp", "so", "compare", "for", "out", "of", "order", "in", "seconds", "if", "(", "epoch", "ms", "/", "ms", "in", "second", "<", "latest", "epoch", "ms", "/", "ms", "in", "second", "-", "latency", "seconds", ")", "{", "/", "/", "out", "of", "order", "data", "counts", "reporter", "report", "out", "of", "order", "record", "(", "number", "of", "fields", "read", ")", ";", "if", "(", "epoch", "ms", ">", "latest", "epoch", "ms", "this", "upload", ")", "{", "/", "/", "record", "this", "timestamp", "even", "if", "the", "record", "won", "'", "t", "be", "processed", "latest", "epoch", "ms", "this", "upload", "=", "epoch", "ms", ";", "data", "counts", "reporter", "report", "latest", "time", "incremental", "stats", "(", "latest", "epoch", "ms", "this", "upload", ")", ";", "}", "return", "false", ";", "}", "latest", "epoch", "ms", "=", "math", "max", "(", "latest", "epoch", "ms", ",", "epoch", "ms", ")", ";", "latest", "epoch", "ms", "this", "upload", "=", "latest", "epoch", "ms", ";", "autodetect", "process", "write", "record", "(", "record", ")", ";", "data", "counts", "reporter", "report", "record", "written", "(", "number", "of", "fields", "read", ",", "epoch", "ms", ")", ";", "return", "true", ";", "}" ]
[ "sets", "the", "viewport", "'", "s", "width", "in", "screen", "coordinates", "this", "is", "typically", "set", "by", "{", "@", "link", "#", "update", "(", "int", ",", "int", ",", "boolean", ")", "}" ]
[ "public", "void", "set", "screen", "width", "(", "int", "screen", "width", ")", "{", "this", "screen", "width", "=", "screen", "width", ";", "}" ]
[ "do", "actual", "reads", "and", "writes", "to", "sockets" ]
[ "public", "list", "<", "client", "response", ">", "poll", "(", "long", "timeout", ",", "long", "now", ")", "{", "ensure", "active", "(", ")", ";", "if", "(", "!", "aborted", "sends", "is", "empty", "(", ")", ")", "{", "/", "/", "if", "there", "are", "aborted", "sends", "because", "of", "unsupported", "version", "exceptions", "or", "disconnects", ",", "/", "/", "handle", "them", "immediately", "without", "waiting", "for", "selector", "#", "poll", "list", "<", "client", "response", ">", "responses", "=", "new", "array", "list", "<", ">", "(", ")", ";", "handle", "aborted", "sends", "(", "responses", ")", ";", "complete", "responses", "(", "responses", ")", ";", "return", "responses", ";", "}", "long", "metadata", "timeout", "=", "metadata", "updater", "maybe", "update", "(", "now", ")", ";", "try", "{", "this", "selector", "poll", "(", "utils", "min", "(", "timeout", ",", "metadata", "timeout", ",", "default", "request", "timeout", "ms", ")", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "log", "error", "(", "\"", "unexpected", "error", "during", "i", "/", "o", "\"", ",", "e", ")", ";", "}", "/", "/", "process", "completed", "actions", "long", "updated", "now", "=", "this", "time", "milliseconds", "(", ")", ";", "list", "<", "client", "response", ">", "responses", "=", "new", "array", "list", "<", ">", "(", ")", ";", "handle", "completed", "sends", "(", "responses", ",", "updated", "now", ")", ";", "handle", "completed", "receives", "(", "responses", ",", "updated", "now", ")", ";", "handle", "disconnections", "(", "responses", ",", "updated", "now", ")", ";", "handle", "connections", "(", ")", ";", "handle", "initiate", "api", "version", "requests", "(", "updated", "now", ")", ";", "handle", "timed", "out", "connections", "(", "responses", ",", "updated", "now", ")", ";", "handle", "timed", "out", "requests", "(", "responses", ",", "updated", "now", ")", ";", "complete", "responses", "(", "responses", ")", ";", "return", "responses", ";", "}" ]
[ "returns", "the", "current", "frame", "index", "in", "the", "range", "0", "{", "@", "link", "#", "get", "frame", "count", "(", ")", "}", "-", "1", ",", "or", "-", "1", "if", "no", "frame", "is", "displayed" ]
[ "public", "int", "get", "frame", "index", "(", ")", "{", "return", "state", "frame", "loader", "get", "current", "index", "(", ")", ";", "}" ]
[ "returns", "the", "int", "property", "map", "associated", "with", "the", "given", "name" ]
[ "public", "int", "property", "map", "get", "int", "property", "map", "(", "string", "property", "name", ")", "{", "lock", "acquire", "(", ")", ";", "try", "{", "property", "map", "pm", "=", "property", "map", "cache", "get", "(", "property", "name", ")", ";", "if", "(", "pm", "=", "=", "null", "|", "|", "pm", "instanceof", "int", "property", "map", ")", "{", "return", "(", "int", "property", "map", ")", "pm", ";", "}", "throw", "new", "type", "mismatch", "exception", "(", "\"", "property", "\"", "+", "property", "name", "+", "\"", "is", "not", "int", "type", "\"", ")", ";", "}", "finally", "{", "lock", "release", "(", ")", ";", "}", "}" ]
[ "sets", "the", "<", "code", ">", "att", "name", "<", "code", ">", "property" ]
[ "public", "capitalization", "att", "name", "(", "string", "att", "name", ")", "{", "this", "att", "name", "=", "att", "name", ";", "return", "this", ";", "}" ]
[ "releases", "memory", "when", "an", "error", "occurs", "during", "initialization", "(", "e", "g", "syntax", "bug", ")" ]
[ "void", "sandbox", "free", "error", "(", "pointer", "errorbuf", ")", ";" ]
[ "computes", "a", "result", ",", "or", "throws", "an", "exception", "if", "unable", "to", "do", "so", "any", "objects", "that", "are", "passed", "to", "{", "@", "link", "deferred", "closer", "#", "eventually", "close", "(", "closeable", ",", "executor", ")", "closer", "eventually", "close", "(", ")", "}", "will", "be", "closed", "when", "the", "{", "@", "link", "closing", "future", "}", "pipeline", "is", "done", "(", "but", "not", "before", "this", "method", "completes", ")", ",", "even", "if", "this", "method", "throws", "or", "the", "pipeline", "is", "cancelled" ]
[ "closing", "future", "<", "v", ">", "call", "(", "deferred", "closer", "closer", ")", "throws", "exception", ";" ]
[ "scroll", "to", "the", "index", "in", "the", "section", "with", "the", "given", "key", "and", "an", "additional", "offset", "one", "notable", "difference", "between", "this", "and", "the", "{", "@", "link", "#", "request", "focus", "(", "section", "context", ",", "string", ")", "}", "api", "is", "that", "this", "will", "always", "take", "an", "action", ",", "while", "{", "@", "link", "#", "request", "focus", "(", "section", "context", ",", "string", ")", "}", "will", "ignore", "the", "command", "if", "the", "item", "is", "visible", "on", "the", "screen" ]
[ "public", "static", "void", "request", "focus", "with", "offset", "(", "section", "context", "c", ",", "string", "section", "key", ",", "int", "index", ",", "int", "offset", ")", "{", "final", "section", "scoped", "section", "=", "c", "get", "section", "scope", "(", ")", ";", "final", "section", "tree", "section", "tree", "=", "c", "get", "section", "tree", "(", ")", ";", "if", "(", "scoped", "section", "=", "=", "null", "|", "|", "section", "tree", "=", "=", "null", ")", "{", "return", ";", "}", "final", "string", "global", "key", "=", "scoped", "section", "get", "global", "key", "(", ")", "+", "section", "key", ";", "section", "tree", "request", "focus", "with", "offset", "(", "global", "key", ",", "index", ",", "offset", ")", ";", "}" ]
[ "clear", "all", "code", "units", "in", "the", "program" ]
[ "public", "void", "clear", "all", "(", "boolean", "clear", "context", ",", "task", "monitor", "monitor", ")", "{", "address", "min", "addr", "=", "program", "get", "min", "address", "(", ")", ";", "address", "max", "addr", "=", "program", "get", "max", "address", "(", ")", ";", "try", "{", "clear", "code", "units", "(", "min", "addr", ",", "max", "addr", ",", "clear", "context", ",", "monitor", ")", ";", "}", "catch", "(", "cancelled", "exception", "e", ")", "{", "/", "/", "nothing", "to", "do", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "sqlxml", "get", "s", "q", "l", "x", "m", "l", "(", "int", "column", "index", ")", "throws", "s", "q", "l", "exception", "{", "return", "null", ";", "}" ]
[ "tests", "that", "mechanisms", "that", "are", "not", "supported", "in", "kafka", "can", "be", "plugged", "in", "without", "modifying", "kafka", "code", "if", "sasl", "client", "and", "server", "providers", "are", "available" ]
[ "public", "void", "test", "mechanism", "pluggability", "(", ")", "throws", "exception", "{", "string", "node", "=", "\"", "0", "\"", ";", "security", "protocol", "security", "protocol", "=", "security", "protocol", "sasl", "ssl", ";", "configure", "mechanisms", "(", "\"", "digest", "-", "md5", "\"", ",", "arrays", "as", "list", "(", "\"", "digest", "-", "md5", "\"", ")", ")", ";", "configure", "digest", "md", "5", "server", "callback", "(", "security", "protocol", ")", ";", "server", "=", "create", "echo", "server", "(", "security", "protocol", ")", ";", "create", "and", "check", "client", "connection", "(", "security", "protocol", ",", "node", ")", ";", "}" ]
[ "indicates", "whether", "or", "not", "implementations", "of", "this", "class", "is", "writing", "to", "the", "raw", "keyed", "state", "streams", "on", "snapshots", ",", "using", "{", "@", "link", "#", "snapshot", "state", "(", "state", "snapshot", "context", ")", "}", "if", "yes", ",", "subclasses", "should", "override", "this", "method", "to", "return", "{", "@", "code", "true", "}", "subclasses", "need", "to", "explicitly", "indicate", "the", "use", "of", "raw", "keyed", "state", "because", ",", "internally", ",", "the", "{", "@", "link", "abstract", "stream", "operator", "}", "may", "attempt", "to", "read", "from", "it", "as", "well", "to", "restore", "heap", "-", "based", "timers", "and", "ultimately", "fail", "with", "read", "errors", "by", "setting", "this", "flag", "to", "{", "@", "code", "true", "}", ",", "this", "allows", "the", "{", "@", "link", "abstract", "stream", "operator", "}", "to", "know", "that", "the", "data", "written", "in", "the", "raw", "keyed", "states", "were", "not", "written", "by", "the", "timer", "services", ",", "and", "skips", "the", "timer", "restore", "attempt", "please", "refer", "to", "flink", "-", "19741", "for", "further", "details", "todo", ":", "this", "method", "can", "be", "removed", "once", "all", "timers", "are", "moved", "to", "be", "managed", "by", "state", "backends" ]
[ "protected", "boolean", "is", "using", "custom", "raw", "keyed", "state", "(", ")", "{", "return", "false", ";", "}" ]
[ "asynchronous", "version", "of", "{", "@", "link", "query", "#", "list", "(", ")", "}" ]
[ "public", "async", "operation", "query", "list", "(", "query", "<", "?", ">", "query", ",", "int", "flags", ")", "{", "return", "enqueue", "database", "operation", "(", "operation", "type", "query", "list", ",", "query", ",", "flags", ")", ";", "}" ]
[ "returns", "the", "logical", "and", "of", "this", "long", "value", "and", "the", "given", "long", "value" ]
[ "public", "long", "value", "and", "(", "long", "value", "other", ")", "{", "return", "other", "and", "(", "this", ")", ";", "}" ]
[ "returns", "the", "number", "of", "times", "a", "version", "was", "looked", "up", "either", "from", "version", "map", "or", "from", "the", "index" ]
[ "public", "static", "long", "get", "num", "version", "lookups", "(", "engine", "engine", ")", "{", "return", "(", "(", "internal", "engine", ")", "engine", ")", "get", "num", "version", "lookups", "(", ")", ";", "}" ]
[ "gets", "the", "net", "execution", "time", "of", "the", "job", ",", "i", "e", ",", "the", "execution", "time", "in", "the", "parallel", "system", ",", "without", "the", "pre", "-", "flight", "steps", "like", "the", "optimizer", "in", "a", "desired", "time", "unit" ]
[ "public", "long", "get", "net", "runtime", "(", "time", "unit", "desired", "unit", ")", "{", "return", "desired", "unit", "convert", "(", "get", "net", "runtime", "(", ")", ",", "time", "unit", "milliseconds", ")", ";", "}" ]
[ "should", "be", "accessing", "(", "setting", ")", "goo", "wibble", "field", "because", "'", "bar", "'", "variable", "evaluates", "to", "\"", "wibble", "\"" ]
[ "public", "void", "indexing", "as", "a", "property", "access", "spr6968", "4", "(", ")", "{", "goo", "g", "=", "goo", "instance", ";", "standard", "evaluation", "context", "context", "=", "new", "standard", "evaluation", "context", "(", "g", ")", ";", "context", "set", "variable", "(", "\"", "bar", "\"", ",", "\"", "wibble", "\"", ")", ";", "expression", "expr", "=", "null", ";", "expr", "=", "new", "spel", "expression", "parser", "(", ")", "parse", "raw", "(", "\"", "instance", "[", "#", "bar", "]", "=", "'", "world", "'", "\"", ")", ";", "/", "/", "will", "access", "the", "field", "'", "wibble", "'", "and", "not", "use", "a", "getter", "expr", "get", "value", "(", "context", ",", "string", "class", ")", ";", "assert", "that", "(", "g", "wibble", ")", "is", "equal", "to", "(", "\"", "world", "\"", ")", ";", "expr", "get", "value", "(", "context", ",", "string", "class", ")", ";", "/", "/", "will", "be", "using", "the", "cached", "accessor", "this", "time", "assert", "that", "(", "g", "wibble", ")", "is", "equal", "to", "(", "\"", "world", "\"", ")", ";", "}" ]
[ "gets", "ordinal", "position" ]
[ "public", "int", "get", "ordinal", "position", "(", ")", "{", "return", "ordinal", "position", ";", "}" ]
[ "pad", "the", "current", "file", "to", "increase", "its", "size", "to", "the", "next", "multiple", "of", "pre", "alloc", "size", "greater", "than", "the", "current", "size", "and", "position" ]
[ "long", "pad", "file", "(", "file", "channel", "file", "channel", ")", "throws", "i", "o", "exception", "{", "long", "new", "file", "size", "=", "calculate", "file", "size", "with", "padding", "(", "file", "channel", "position", "(", ")", ",", "current", "size", ",", "pre", "alloc", "size", ")", ";", "if", "(", "current", "size", "!", "=", "new", "file", "size", ")", "{", "file", "channel", "write", "(", "(", "byte", "buffer", ")", "fill", "position", "(", "0", ")", ",", "new", "file", "size", "-", "fill", "remaining", "(", ")", ")", ";", "current", "size", "=", "new", "file", "size", ";", "}", "return", "current", "size", ";", "}" ]
[ "emits", "instructions", "to", "load", "a", "method", "'", "s", "parameters", "as", "arguments", "of", "a", "method", "call", "assumed", "to", "have", "compatible", "descriptor", ",", "starting", "at", "the", "given", "local", "variable", "slot" ]
[ "private", "static", "void", "visit", "load", "args", "(", "method", "visitor", "dispatch", "method", ",", "type", "needed", "type", ",", "int", "slot", ")", "{", "for", "(", "type", "arg", ":", "needed", "type", "get", "argument", "types", "(", ")", ")", "{", "dispatch", "method", "visit", "var", "insn", "(", "arg", "get", "opcode", "(", "opcodes", "iload", ")", ",", "slot", ")", ";", "slot", "+", "=", "arg", "get", "size", "(", ")", ";", "}", "}" ]
[ "returns", "the", "{", "@", "link", "distributed", "cache", "}", "to", "get", "the", "local", "temporary", "file", "copies", "of", "files", "otherwise", "not", "locally", "accessible" ]
[ "distributed", "cache", "get", "distributed", "cache", "(", ")", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "methods", "for", "accessing", "state", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "get", "prefix", "ns", "number" ]
[ "public", "big", "decimal", "get", "prefix", "ns", "number", "(", ")", "{", "return", "prefix", "ns", "number", ";", "}" ]
[ "tests", "and", "clears", "the", "current", "thread", "'", "s", "pending", "\"", "interrupted", "\"", "status", ",", "and", "throws", "interrupted", "exception", "iff", "it", "was", "set" ]
[ "private", "final", "void", "poll", "interrupted", "status", "(", ")", "throws", "interrupted", "exception", "{", "if", "(", "thread", "interrupted", "(", ")", ")", "{", "throw", "new", "interrupted", "exception", "(", ")", ";", "}", "}" ]
[ "returns", "true", "if", "the", "location", "of", "the", "mouse", "event", "is", "over", "a", "vertex" ]
[ "protected", "boolean", "is", "over", "vertex", "(", "mouse", "event", "e", ")", "{", "return", "get", "vertex", "(", "e", ")", "!", "=", "null", ";", "}" ]
[ "reads", "the", "physical", "path", "of", "the", "disks", "we", "are", "balancing", "this", "is", "needed", "to", "make", "the", "disk", "balancer", "human", "friendly", "and", "not", "used", "in", "balancing" ]
[ "protected", "void", "populate", "path", "names", "(", "disk", "balancer", "data", "node", "node", ")", "throws", "i", "o", "exception", "{", "/", "/", "if", "the", "cluster", "is", "a", "local", "file", "system", ",", "there", "is", "no", "need", "to", "/", "/", "invoke", "rpc", "call", "to", "data", "node", "if", "(", "get", "cluster", "u", "r", "i", "(", ")", "get", "scheme", "(", ")", "starts", "with", "(", "\"", "file", "\"", ")", ")", "{", "return", ";", "}", "string", "dn", "address", "=", "node", "get", "data", "node", "i", "p", "(", ")", "+", "\"", ":", "\"", "+", "node", "get", "data", "node", "port", "(", ")", ";", "client", "datanode", "protocol", "dn", "client", "=", "get", "data", "node", "proxy", "(", "dn", "address", ")", ";", "string", "volume", "name", "json", "=", "dn", "client", "get", "disk", "balancer", "setting", "(", "disk", "balancer", "constants", "diskbalancer", "volume", "name", ")", ";", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "map", "<", "string", ",", "string", ">", "volume", "map", "=", "reader", "read", "value", "(", "volume", "name", "json", ")", ";", "for", "(", "disk", "balancer", "volume", "set", "set", ":", "node", "get", "volume", "sets", "(", ")", "values", "(", ")", ")", "{", "for", "(", "disk", "balancer", "volume", "vol", ":", "set", "get", "volumes", "(", ")", ")", "{", "if", "(", "volume", "map", "contains", "key", "(", "vol", "get", "uuid", "(", ")", ")", ")", "{", "vol", "set", "path", "(", "volume", "map", "get", "(", "vol", "get", "uuid", "(", ")", ")", ")", ";", "}", "}", "}", "}" ]
[ "get", "property", "class" ]
[ "public", "string", "get", "property", "class", "(", ")", "{", "return", "property", "class", ";", "}" ]
[ "tests", "{", "@", "link", "partition", "request", "queue", "#", "enqueue", "available", "reader", "(", "network", "sequence", "view", "reader", ")", "}", ",", "verifying", "the", "reader", "would", "be", "enqueued", "in", "the", "pipeline", "iff", "it", "has", "both", "available", "credits", "and", "buffers" ]
[ "public", "void", "test", "enqueue", "reader", "by", "notifying", "buffer", "and", "credit", "(", ")", "throws", "exception", "{", "/", "/", "setup", "final", "result", "subpartition", "view", "view", "=", "new", "default", "buffer", "result", "subpartition", "view", "(", "10", ")", ";", "result", "partition", "provider", "partition", "provider", "=", "(", "partition", "id", ",", "index", ",", "availability", "listener", ")", "-", ">", "view", ";", "final", "input", "channel", "i", "d", "receiver", "id", "=", "new", "input", "channel", "i", "d", "(", ")", ";", "final", "partition", "request", "queue", "queue", "=", "new", "partition", "request", "queue", "(", ")", ";", "final", "credit", "based", "sequence", "numbering", "view", "reader", "reader", "=", "new", "credit", "based", "sequence", "numbering", "view", "reader", "(", "receiver", "id", ",", "0", ",", "queue", ")", ";", "final", "embedded", "channel", "channel", "=", "new", "embedded", "channel", "(", "queue", ")", ";", "reader", "request", "subpartition", "view", "(", "partition", "provider", ",", "new", "result", "partition", "i", "d", "(", ")", ",", "0", ")", ";", "queue", "notify", "reader", "created", "(", "reader", ")", ";", "/", "/", "block", "the", "channel", "so", "that", "we", "see", "an", "intermediate", "state", "in", "the", "test", "byte", "buf", "channel", "blocking", "buffer", "=", "block", "channel", "(", "channel", ")", ";", "assert", "null", "(", "channel", "read", "outbound", "(", ")", ")", ";", "/", "/", "notify", "available", "buffers", "to", "trigger", "enqueue", "the", "reader", "final", "int", "notify", "num", "buffers", "=", "5", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "notify", "num", "buffers", ";", "i", "+", "+", ")", "{", "reader", "notify", "data", "available", "(", ")", ";", "}", "channel", "run", "pending", "tasks", "(", ")", ";", "/", "/", "the", "reader", "is", "not", "enqueued", "in", "the", "pipeline", "because", "no", "credits", "are", "available", "/", "/", "-", ">", "it", "should", "still", "have", "the", "same", "number", "of", "pending", "buffers", "assert", "equals", "(", "0", ",", "queue", "get", "available", "readers", "(", ")", "size", "(", ")", ")", ";", "assert", "true", "(", "reader", "has", "buffers", "available", "(", ")", ")", ";", "assert", "false", "(", "reader", "is", "registered", "as", "available", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "reader", "get", "num", "credits", "available", "(", ")", ")", ";", "/", "/", "notify", "available", "credits", "to", "trigger", "enqueue", "the", "reader", "again", "final", "int", "notify", "num", "credits", "=", "3", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "=", "notify", "num", "credits", ";", "i", "+", "+", ")", "{", "queue", "add", "credit", "or", "resume", "consumption", "(", "receiver", "id", ",", "view", "reader", "-", ">", "view", "reader", "add", "credit", "(", "1", ")", ")", ";", "/", "/", "the", "reader", "is", "enqueued", "in", "the", "pipeline", "because", "it", "has", "both", "available", "buffers", "and", "/", "/", "credits", "/", "/", "since", "the", "channel", "is", "blocked", "though", ",", "we", "will", "not", "process", "anything", "and", "only", "enqueue", "/", "/", "the", "/", "/", "reader", "once", "assert", "true", "(", "reader", "is", "registered", "as", "available", "(", ")", ")", ";", "assert", "that", "(", "queue", "get", "available", "readers", "(", ")", ",", "contains", "(", "reader", ")", ")", ";", "/", "/", "contains", "only", "(", "this", ")", "one", "!", "assert", "equals", "(", "i", ",", "reader", "get", "num", "credits", "available", "(", ")", ")", ";", "assert", "true", "(", "reader", "has", "buffers", "available", "(", ")", ")", ";", "}", "/", "/", "flush", "the", "buffer", "to", "make", "the", "channel", "writable", "again", "and", "see", "the", "final", "results", "channel", "flush", "(", ")", ";", "assert", "same", "(", "channel", "blocking", "buffer", ",", "channel", "read", "outbound", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "queue", "get", "available", "readers", "(", ")", "size", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "reader", "get", "num", "credits", "available", "(", ")", ")", ";", "assert", "true", "(", "reader", "has", "buffers", "available", "(", ")", ")", ";", "assert", "false", "(", "reader", "is", "registered", "as", "available", "(", ")", ")", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "=", "notify", "num", "credits", ";", "i", "+", "+", ")", "{", "assert", "that", "(", "channel", "read", "outbound", "(", ")", ",", "instance", "of", "(", "netty", "message", "buffer", "response", "class", ")", ")", ";", "}", "assert", "null", "(", "channel", "read", "outbound", "(", ")", ")", ";", "}" ]
[ "return", "the", "round", "corner", "bitmap", "with", "border" ]
[ "public", "static", "bitmap", "add", "corner", "border", "(", "final", "bitmap", "src", ",", "@", "float", "range", "(", "from", "=", "1", ")", "final", "float", "border", "size", ",", "@", "color", "int", "final", "int", "color", ",", "@", "float", "range", "(", "from", "=", "0", ")", "final", "float", "corner", "radius", ",", "final", "boolean", "recycle", ")", "{", "return", "add", "border", "(", "src", ",", "border", "size", ",", "color", ",", "false", ",", "corner", "radius", ",", "recycle", ")", ";", "}" ]
[ "set", "the", "subarray", "to", "be", "used", "for", "partitioning", "to", "<", "code", ">", "bytes", "[", "offset", ":", "]", "<", "code", ">", "in", "python", "syntax" ]
[ "public", "static", "void", "set", "left", "offset", "(", "configuration", "conf", ",", "int", "offset", ")", "{", "conf", "set", "int", "(", "left", "offset", "property", "name", ",", "offset", ")", ";", "}" ]
[ "get", "full", "set", "of", "context", "bytes", "sleigh", "only", "supports", "context", "which", "is", "a", "multiple", "of", "4", "-", "bytes", "(", "i", "e", ",", "size", "of", "int", ")" ]
[ "public", "int", "[", "]", "get", "context", "bytes", "(", ")", "{", "return", "context", ";", "}" ]
[ "build", "a", "timing", "count", "breakdown" ]
[ "public", "final", "map", "<", "string", ",", "long", ">", "to", "breakdown", "map", "(", ")", "{", "map", "<", "string", ",", "long", ">", "map", "=", "new", "hash", "map", "<", ">", "(", "timings", "length", "*", "2", ")", ";", "for", "(", "t", "timing", "type", ":", "timing", "types", ")", "{", "map", "put", "(", "timing", "type", "to", "string", "(", ")", ",", "timings", "[", "timing", "type", "ordinal", "(", ")", "]", "get", "approximate", "timing", "(", ")", ")", ";", "map", "put", "(", "timing", "type", "to", "string", "(", ")", "+", "\"", "count", "\"", ",", "timings", "[", "timing", "type", "ordinal", "(", ")", "]", "get", "count", "(", ")", ")", ";", "}", "return", "collections", "unmodifiable", "map", "(", "map", ")", ";", "}" ]
[ "set", "action", "on", "left" ]
[ "public", "void", "set", "swipe", "action", "left", "(", "int", "swipe", "action", "left", ")", "{", "this", "swipe", "action", "left", "=", "swipe", "action", "left", ";", "}" ]
[ "see", "{", "@", "link", "file", "status", "#", "set", "owner", "(", "string", ")", "}" ]
[ "void", "set", "owner", "(", "string", "owner", ")", ";" ]
[ "return", "the", "mapping", "paths", "that", "are", "not", "patterns" ]
[ "public", "set", "<", "string", ">", "get", "direct", "paths", "(", ")", "{", "if", "(", "is", "empty", "path", "mapping", "(", ")", ")", "{", "return", "empty", "path", ";", "}", "set", "<", "string", ">", "result", "=", "collections", "empty", "set", "(", ")", ";", "for", "(", "path", "pattern", "pattern", ":", "this", "patterns", ")", "{", "if", "(", "!", "pattern", "has", "pattern", "syntax", "(", ")", ")", "{", "result", "=", "(", "result", "is", "empty", "(", ")", "?", "new", "hash", "set", "<", ">", "(", "1", ")", ":", "result", ")", ";", "result", "add", "(", "pattern", "get", "pattern", "string", "(", ")", ")", ";", "}", "}", "return", "result", ";", "}" ]
[ "test", "basic", "single", "threaded", "list", "status", "scenario" ]
[ "public", "void", "test", "single", "threaded", "block", "blob", "rename", "scenario", "(", ")", "throws", "throwable", "{", "create", "empty", "file", "(", "create", "test", "account", "(", ")", ",", "test", "path", ")", ";", "path", "dst", "path", "=", "new", "path", "(", "\"", "dst", "file", "dat", "\"", ")", ";", "fs", "delete", "(", "test", "path", ",", "true", ")", ";", "boolean", "rename", "result", "=", "fs", "rename", "(", "test", "path", ",", "dst", "path", ")", ";", "assert", "false", "(", "rename", "result", ")", ";", "}" ]
[ "tests", "that", "duplicate", "query", "registrations", "fail", "the", "job", "at", "the", "job", "manager" ]
[ "public", "void", "test", "duplicate", "registration", "fails", "job", "(", ")", "throws", "exception", "{", "final", "int", "num", "keys", "=", "256", ";", "stream", "execution", "environment", "env", "=", "stream", "execution", "environment", "get", "execution", "environment", "(", ")", ";", "env", "set", "state", "backend", "(", "state", "backend", ")", ";", "env", "set", "parallelism", "(", "max", "parallelism", ")", ";", "/", "/", "very", "important", ",", "because", "cluster", "is", "shared", "between", "tests", "and", "we", "/", "/", "don", "'", "t", "explicitly", "check", "that", "all", "slots", "are", "available", "before", "/", "/", "submitting", "env", "set", "restart", "strategy", "(", "restart", "strategies", "fixed", "delay", "restart", "(", "integer", "max", "value", ",", "1000l", ")", ")", ";", "data", "stream", "<", "tuple", "2", "<", "integer", ",", "long", ">", ">", "source", "=", "env", "add", "source", "(", "new", "test", "key", "range", "source", "(", "num", "keys", ")", ")", ";", "/", "/", "reducing", "state", "reducing", "state", "descriptor", "<", "tuple", "2", "<", "integer", ",", "long", ">", ">", "reducing", "state", "=", "new", "reducing", "state", "descriptor", "<", ">", "(", "\"", "any", "-", "name", "\"", ",", "new", "sum", "reduce", "(", ")", ",", "source", "get", "type", "(", ")", ")", ";", "final", "string", "query", "name", "=", "\"", "duplicate", "-", "me", "\"", ";", "final", "queryable", "state", "stream", "<", "integer", ",", "tuple", "2", "<", "integer", ",", "long", ">", ">", "queryable", "state", "=", "source", "key", "by", "(", "new", "key", "selector", "<", "tuple", "2", "<", "integer", ",", "long", ">", ",", "integer", ">", "(", ")", "{", "private", "static", "final", "long", "serial", "version", "u", "i", "d", "=", "-", "4126824763829132959l", ";", "@", "override", "public", "integer", "get", "key", "(", "tuple", "2", "<", "integer", ",", "long", ">", "value", ")", "{", "return", "value", "f", "0", ";", "}", "}", ")", "as", "queryable", "state", "(", "query", "name", ",", "reducing", "state", ")", ";", "final", "queryable", "state", "stream", "<", "integer", ",", "tuple", "2", "<", "integer", ",", "long", ">", ">", "duplicate", "=", "source", "key", "by", "(", "new", "key", "selector", "<", "tuple", "2", "<", "integer", ",", "long", ">", ",", "integer", ">", "(", ")", "{", "private", "static", "final", "long", "serial", "version", "u", "i", "d", "=", "-", "6265024000462809436l", ";", "@", "override", "public", "integer", "get", "key", "(", "tuple", "2", "<", "integer", ",", "long", ">", "value", ")", "{", "return", "value", "f", "0", ";", "}", "}", ")", "as", "queryable", "state", "(", "query", "name", ")", ";", "/", "/", "submit", "the", "job", "graph", "final", "job", "graph", "job", "graph", "=", "env", "get", "stream", "graph", "(", ")", "get", "job", "graph", "(", ")", ";", "cluster", "client", "submit", "job", "(", "job", "graph", ")", "then", "compose", "(", "cluster", "client", ":", ":", "request", "job", "result", ")", "then", "apply", "(", "job", "result", ":", ":", "get", "serialized", "throwable", ")", "then", "accept", "(", "serialized", "throwable", "-", ">", "{", "assert", "true", "(", "serialized", "throwable", "is", "present", "(", ")", ")", ";", "final", "throwable", "t", "=", "serialized", "throwable", "get", "(", ")", "deserialize", "error", "(", "get", "class", "(", ")", "get", "class", "loader", "(", ")", ")", ";", "final", "string", "failure", "cause", "=", "exception", "utils", "stringify", "exception", "(", "t", ")", ";", "assert", "that", "(", "failure", "cause", ",", "contains", "string", "(", "\"", "kv", "state", "with", "name", "'", "\"", "+", "query", "name", "+", "\"", "'", "has", "already", "been", "registered", "by", "another", "operator", "\"", ")", ")", ";", "}", ")", "get", "(", ")", ";", "}" ]
[ "queues", "the", "glyphs", "in", "the", "specified", "text", "to", "be", "loaded", "note", "that", "the", "glyphs", "are", "not", "actually", "loaded", "until", "{", "@", "link", "#", "load", "glyphs", "(", ")", "}", "is", "called" ]
[ "public", "void", "add", "glyphs", "(", "string", "text", ")", "{", "if", "(", "text", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "text", "cannot", "be", "null", "\"", ")", ";", "char", "[", "]", "chars", "=", "text", "to", "char", "array", "(", ")", ";", "glyph", "vector", "vector", "=", "font", "layout", "glyph", "vector", "(", "glyph", "page", "render", "context", ",", "chars", ",", "0", ",", "chars", "length", ",", "font", "layout", "left", "to", "right", ")", ";", "for", "(", "int", "i", "=", "0", ",", "n", "=", "vector", "get", "num", "glyphs", "(", ")", ";", "i", "<", "n", ";", "i", "+", "+", ")", "{", "int", "code", "point", "=", "text", "code", "point", "at", "(", "vector", "get", "glyph", "char", "index", "(", "i", ")", ")", ";", "rectangle", "bounds", "=", "get", "glyph", "bounds", "(", "vector", ",", "i", ",", "code", "point", ")", ";", "get", "glyph", "(", "vector", "get", "glyph", "code", "(", "i", ")", ",", "code", "point", ",", "bounds", ",", "vector", ",", "i", ")", ";", "}", "}" ]
[ "munmap", "a", "replica", ",", "updating", "outstanding", "mmap", "count" ]
[ "private", "void", "munmap", "(", "short", "circuit", "replica", "replica", ")", "{", "replica", "munmap", "(", ")", ";", "outstanding", "mmap", "count", "-", "-", ";", "}" ]
[ "keyset", "clear", "removes", "all", "elements", "from", "the", "set" ]
[ "public", "void", "test", "clear", "(", ")", "{", "set", "full", "=", "populated", "set", "(", "3", ")", ";", "full", "clear", "(", ")", ";", "assert", "equals", "(", "0", ",", "full", "size", "(", ")", ")", ";", "}" ]
[ "not", "-", "null", "value", ";", "ensure", "this", "value", "is", "available", "before", "it", "is", "saved", "to", "the", "database" ]
[ "public", "void", "set", "simple", "string", "(", "@", "not", "null", "string", "simple", "string", ")", "{", "this", "simple", "string", "=", "simple", "string", ";", "}" ]
[ "logs", "user", "into", "the", "system", "this", "tests", "the", "overload", "of", "the", "method", "that", "uses", "a", "map", "for", "query", "parameters", "instead", "of", "listing", "them", "out", "individually" ]
[ "public", "void", "login", "user", "test", "query", "map", "(", ")", "{", "user", "api", "login", "user", "query", "params", "query", "params", "=", "new", "user", "api", "login", "user", "query", "params", "(", ")", "username", "(", "null", ")", "password", "(", "null", ")", ";", "/", "/", "string", "response", "=", "api", "login", "user", "(", "query", "params", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "patch", "fake", ":", "to", "test", "\\", "&", "quot", ";", "client", "\\", "&", "quot", ";", "model", "to", "test", "\\", "&", "quot", ";", "client", "\\", "&", "quot", ";", "model" ]
[ "default", "response", "entity", "<", "client", ">", "test", "client", "model", "(", "@", "api", "param", "(", "value", "=", "\"", "client", "model", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "client", "body", ")", "{", "get", "request", "(", ")", "if", "present", "(", "request", "-", ">", "{", "for", "(", "media", "type", "media", "type", ":", "media", "type", "parse", "media", "types", "(", "request", "get", "header", "(", "\"", "accept", "\"", ")", ")", ")", "{", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "json", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "{", "\\", "\"", "client", "\\", "\"", ":", "\\", "\"", "client", "\\", "\"", "}", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "json", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "}", "}", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "define", "the", "comparator", "that", "controls", "how", "the", "keys", "are", "sorted", "before", "they", "are", "passed", "to", "the", "{", "@", "link", "reducer", "}" ]
[ "public", "void", "set", "sort", "comparator", "class", "(", "class", "<", "?", "extends", "raw", "comparator", ">", "cls", ")", "throws", "illegal", "state", "exception", "{", "ensure", "state", "(", "job", "state", "define", ")", ";", "conf", "set", "output", "key", "comparator", "class", "(", "cls", ")", ";", "}" ]
[ "returns", "the", "websocket", "message", "type", "by", "default", "the", "type", "is", "resolved", "using", "the", "generic", "arguments", "of", "the", "class" ]
[ "protected", "type", "descriptor", "get", "message", "type", "(", ")", "{", "return", "type", "descriptor", "value", "of", "(", "resolve", "type", "arguments", "(", ")", "[", "1", "]", ")", ";", "}" ]
[ "add", "an", "alternative", "set", "of", "builtin", "providers", "if", "all", "of", "these", "providers", "are", "present", "in", "the", "dependency", ",", "the", "dependency", "satisfies", "{", "@", "link", "required", "providers", "}" ]
[ "public", "builder", "add", "builtin", "set", "(", "immutable", "set", "<", "class", "<", "?", "extends", "transitive", "info", "provider", ">", ">", "builtin", "provider", "set", ")", "{", "constraint", "=", "constraint", "restricted", ";", "preconditions", "check", "state", "(", "!", "builtin", "provider", "set", "is", "empty", "(", ")", ")", ";", "this", "builtin", "providers", "add", "(", "builtin", "provider", "set", ")", ";", "return", "this", ";", "}" ]
[ "return", "the", "<", "code", ">", "n", "<", "code", ">", "th", "value", "in", "the", "file" ]
[ "public", "synchronized", "writable", "get", "(", "long", "n", ",", "writable", "value", ")", "throws", "i", "o", "exception", "{", "key", "set", "(", "n", ")", ";", "return", "get", "(", "key", ",", "value", ")", ";", "}" ]
[ "test", "for", "#", "10025", ",", "strict", "local", "to", "utc", "conversion", "can", "cause", "joda", "exceptions", "on", "dst", "start" ]
[ "public", "void", "test", "lenient", "conversion", "d", "s", "t", "(", ")", "{", "zone", "id", "tz", "=", "zone", "id", "of", "(", "\"", "america", "/", "sao", "paulo", "\"", ")", ";", "long", "start", "=", "time", "(", "\"", "2014", "-", "10", "-", "18t20", ":", "50", ":", "00", "000", "\"", ",", "tz", ")", ";", "long", "end", "=", "time", "(", "\"", "2014", "-", "10", "-", "19t01", ":", "00", ":", "00", "000", "\"", ",", "tz", ")", ";", "rounding", "tz", "rounding", "=", "new", "rounding", "time", "unit", "rounding", "(", "rounding", "date", "time", "unit", "minutes", "of", "hour", ",", "tz", ")", ";", "rounding", "day", "tz", "rounding", "=", "new", "rounding", "time", "interval", "rounding", "(", "60000", ",", "tz", ")", ";", "for", "(", "long", "time", "=", "start", ";", "time", "<", "end", ";", "time", "=", "time", "+", "60000", ")", "{", "assert", "that", "(", "tz", "rounding", "next", "rounding", "value", "(", "time", ")", ",", "greater", "than", "(", "time", ")", ")", ";", "assert", "that", "(", "day", "tz", "rounding", "next", "rounding", "value", "(", "time", ")", ",", "greater", "than", "(", "time", ")", ")", ";", "}", "}" ]