docstring_tokens
list
code_tokens
list
[ "decode", "and", "deserialize", "object", "t" ]
[ "public", "static", "<", "t", "extends", "serializable", ">", "t", "decode", "and", "deserialize", "object", "(", "final", "byte", "[", "]", "object", ",", "final", "cipher", "executor", "cipher", ",", "final", "class", "<", "t", ">", "type", ")", "{", "return", "decode", "and", "deserialize", "object", "(", "object", ",", "cipher", ",", "type", ",", "array", "utils", "empty", "object", "array", ")", ";", "}" ]
[ "create", "delegated", "client", "logout", "action" ]
[ "protected", "void", "create", "delegated", "client", "logout", "action", "(", ")", "{", "val", "logout", "flow", "=", "get", "logout", "flow", "(", ")", ";", "val", "state", "=", "get", "state", "(", "logout", "flow", ",", "cas", "webflow", "constants", "state", "id", "terminate", "session", ")", ";", "state", "get", "entry", "action", "list", "(", ")", "add", "(", "create", "evaluate", "action", "(", "\"", "delegated", "authentication", "client", "logout", "action", "\"", ")", ")", ";", "}" ]
[ "closes", "the", "reader", "by", "closing", "the", "underlying", "{", "@", "code", "input", "stream", "}", "and", "marking", "this", "reader", "as", "closed" ]
[ "public", "void", "close", "(", ")", "throws", "i", "o", "exception", "{", "synchronized", "(", "in", ")", "{", "if", "(", "buf", "!", "=", "null", ")", "{", "buf", "=", "null", ";", "in", "close", "(", ")", ";", "}", "}", "}" ]
[ "this", "tests", "that", "after", "initialize", "(", ")", "using", "an", "s", "3", "a", "file", "system", "object", ",", "the", "instance", "should", "have", "been", "initialized", "successfully", ",", "and", "tables", "are", "active" ]
[ "public", "void", "test", "initialize", "(", ")", "throws", "i", "o", "exception", "{", "final", "s", "3", "a", "file", "system", "s", "3afs", "=", "this", "file", "system", ";", "final", "string", "table", "name", "=", "get", "test", "table", "name", "(", "\"", "test", "initialize", "\"", ")", ";", "configuration", "conf", "=", "get", "file", "system", "(", ")", "get", "conf", "(", ")", ";", "enable", "on", "demand", "(", "conf", ")", ";", "conf", "set", "(", "s3guard", "ddb", "table", "name", "key", ",", "table", "name", ")", ";", "dynamo", "d", "b", "metadata", "store", "ddbms", "=", "new", "dynamo", "d", "b", "metadata", "store", "(", ")", ";", "try", "{", "ddbms", "initialize", "(", "s", "3afs", ",", "new", "s", "3", "guard", "ttl", "time", "provider", "(", "conf", ")", ")", ";", "table", "table", "=", "verify", "table", "initialized", "(", "table", "name", ",", "ddbms", "get", "dynamo", "d", "b", "(", ")", ")", ";", "verify", "table", "sse", "(", "conf", ",", "table", "get", "description", "(", ")", ")", ";", "assert", "not", "null", "(", "ddbms", "get", "table", "(", ")", ")", ";", "assert", "equals", "(", "table", "name", ",", "ddbms", "get", "table", "(", ")", "get", "table", "name", "(", ")", ")", ";", "string", "expected", "region", "=", "conf", "get", "(", "s3guard", "ddb", "region", "key", ",", "s", "3afs", "get", "bucket", "location", "(", "bucket", ")", ")", ";", "assert", "equals", "(", "\"", "dynamo", "d", "b", "table", "should", "be", "in", "configured", "region", "or", "the", "same", "\"", "+", "\"", "region", "as", "s3", "bucket", "\"", ",", "expected", "region", ",", "ddbms", "get", "region", "(", ")", ")", ";", "}", "finally", "{", "destroy", "(", "ddbms", ")", ";", "}", "}" ]
[ "returns", "the", "total", "{", "@", "link", "resource", "}", "reserved", "for", "all", "users", "at", "the", "specified", "time" ]
[ "resource", "get", "total", "committed", "resources", "(", "long", "tick", ")", ";" ]
[ "list", "1", ",", "(", ",", ")", ",", "remove", "all", "(", ")", ",", ",", "\"", "a", "\"", ",", ",", "\"", "a", "\"" ]
[ "public", "static", "<", "t", ">", "list", "<", "t", ">", "difference", "(", "final", "list", "<", "?", "extends", "t", ">", "list", "1", ",", "final", "list", "<", "?", "extends", "t", ">", "list", "2", ")", "{", "final", "list", "<", "t", ">", "result", "=", "new", "array", "list", "<", "t", ">", "(", "list", "1", ")", ";", "final", "iterator", "<", "?", "extends", "t", ">", "iterator", "=", "list", "2", "iterator", "(", ")", ";", "while", "(", "iterator", "has", "next", "(", ")", ")", "{", "result", "remove", "(", "iterator", "next", "(", ")", ")", ";", "}", "return", "result", ";", "}" ]
[ "returns", "the", "number", "of", "samples", "that", "we", "have", "seen", "so", "far" ]
[ "public", "long", "get", "processing", "sample", "count", "(", ")", "{", "return", "rpc", "processing", "time", "last", "stat", "(", ")", "num", "samples", "(", ")", ";", "}" ]
[ "configure", "one", "more", "simple", "patterns", "(", "as", "described", "in", "{", "@", "link", "pattern", "match", "utils", "#", "simple", "match", "}", ")", "to", "use", "in", "order", "to", "recognize", "custom", "redirect", "prefixes", "in", "addition", "to", "\"", "redirect", ":", "\"", "note", "that", "simply", "configuring", "this", "property", "will", "not", "make", "a", "custom", "redirect", "prefix", "work", "there", "must", "be", "a", "custom", "view", "that", "recognizes", "the", "prefix", "as", "well" ]
[ "public", "void", "set", "redirect", "patterns", "(", "@", "nullable", "string", "redirect", "patterns", ")", "{", "this", "redirect", "patterns", "=", "redirect", "patterns", ";", "}" ]
[ "creates", "an", "absolute", "path", "by", "appending", "the", "given", "relative", "path", "to", "the", "test", "root" ]
[ "private", "static", "string", "get", "absolute", "path", "(", "string", "relative", "path", ")", "{", "return", "new", "file", "(", "test", "dir", "helper", "get", "test", "dir", "(", ")", ",", "relative", "path", ")", "get", "absolute", "path", "(", ")", ";", "}" ]
[ "add", "a", "managed", "package", "to", "the", "persistence", "provider", "'", "s", "metadata", "note", ":", "this", "refers", "to", "annotated", "{", "@", "code", "package", "-", "info", "java", "}", "files", "it", "does", "not", "trigger", "entity", "scanning", "in", "the", "specified", "package", ";", "this", "is", "rather", "the", "job", "of", "{", "@", "link", "default", "persistence", "unit", "manager", "#", "set", "packages", "to", "scan", "}" ]
[ "public", "void", "add", "managed", "package", "(", "string", "package", "name", ")", "{", "this", "managed", "packages", "add", "(", "package", "name", ")", ";", "}" ]
[ "subtracts", "the", "other", "vector", "from", "this", "vector" ]
[ "public", "vector", "3", "sub", "(", "float", "x", ",", "float", "y", ",", "float", "z", ")", "{", "return", "this", "set", "(", "this", "x", "-", "x", ",", "this", "y", "-", "y", ",", "this", "z", "-", "z", ")", ";", "}" ]
[ "adds", "an", "alias", "to", "an", "existing", "well", "-", "known", "name", "or", "registers", "a", "new", "instance", "of", "a", "{", "@", "link", "path", "matcher", "}", "under", "that", "well", "-", "known", "name", ",", "unless", "already", "registered" ]
[ "public", "static", "runtime", "bean", "reference", "register", "path", "matcher", "(", "@", "nullable", "runtime", "bean", "reference", "path", "matcher", "ref", ",", "parser", "context", "context", ",", "@", "nullable", "object", "source", ")", "{", "if", "(", "path", "matcher", "ref", "!", "=", "null", ")", "{", "if", "(", "context", "get", "registry", "(", ")", "is", "alias", "(", "path", "matcher", "bean", "name", ")", ")", "{", "context", "get", "registry", "(", ")", "remove", "alias", "(", "path", "matcher", "bean", "name", ")", ";", "}", "context", "get", "registry", "(", ")", "register", "alias", "(", "path", "matcher", "ref", "get", "bean", "name", "(", ")", ",", "path", "matcher", "bean", "name", ")", ";", "}", "else", "if", "(", "!", "context", "get", "registry", "(", ")", "is", "alias", "(", "path", "matcher", "bean", "name", ")", "&", "&", "!", "context", "get", "registry", "(", ")", "contains", "bean", "definition", "(", "path", "matcher", "bean", "name", ")", ")", "{", "root", "bean", "definition", "path", "matcher", "def", "=", "new", "root", "bean", "definition", "(", "ant", "path", "matcher", "class", ")", ";", "path", "matcher", "def", "set", "source", "(", "source", ")", ";", "path", "matcher", "def", "set", "role", "(", "bean", "definition", "role", "infrastructure", ")", ";", "context", "get", "registry", "(", ")", "register", "bean", "definition", "(", "path", "matcher", "bean", "name", ",", "path", "matcher", "def", ")", ";", "context", "register", "component", "(", "new", "bean", "component", "definition", "(", "path", "matcher", "def", ",", "path", "matcher", "bean", "name", ")", ")", ";", "}", "return", "new", "runtime", "bean", "reference", "(", "path", "matcher", "bean", "name", ")", ";", "}" ]
[ "returns", "the", "port", "of", "the", "blob", "server" ]
[ "completable", "future", "<", "integer", ">", "get", "blob", "server", "port", "(", "@", "rpc", "timeout", "time", "timeout", ")", ";" ]
[ "returns", "all", "of", "the", "original", "selected", "data", "contained", "by", "this", "transferable" ]
[ "public", "list", "<", "g", "tree", "node", ">", "get", "all", "data", "(", ")", "{", "return", "selected", "data", ";", "}" ]
[ "returns", "whether", "the", "given", "method", "is", "supported", "or", "not", "the", "protocol", "signatures", "are", "fetched", "and", "cached", "the", "connection", "id", "for", "the", "proxy", "provided", "is", "re", "-", "used" ]
[ "public", "static", "boolean", "is", "method", "supported", "(", "object", "rpc", "proxy", ",", "class", "<", "?", ">", "protocol", ",", "rpc", "rpc", "kind", "rpc", "kind", ",", "long", "version", ",", "string", "method", "name", ")", "throws", "i", "o", "exception", "{", "inet", "socket", "address", "server", "address", "=", "rpc", "get", "server", "address", "(", "rpc", "proxy", ")", ";", "map", "<", "long", ",", "protocol", "signature", ">", "version", "map", "=", "get", "version", "signature", "map", "(", "server", "address", ",", "protocol", "get", "name", "(", ")", ",", "rpc", "kind", "to", "string", "(", ")", ")", ";", "if", "(", "version", "map", "=", "=", "null", ")", "{", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "rpc", "set", "protocol", "engine", "(", "conf", ",", "protocol", "meta", "info", "p", "b", "class", ",", "protobuf", "rpc", "engine", "2", "class", ")", ";", "protocol", "meta", "info", "p", "b", "protocol", "info", "proxy", "=", "get", "protocol", "meta", "info", "proxy", "(", "rpc", "proxy", ",", "conf", ")", ";", "get", "protocol", "signature", "request", "proto", "builder", "builder", "=", "get", "protocol", "signature", "request", "proto", "new", "builder", "(", ")", ";", "builder", "set", "protocol", "(", "protocol", "get", "name", "(", ")", ")", ";", "builder", "set", "rpc", "kind", "(", "rpc", "kind", "to", "string", "(", ")", ")", ";", "get", "protocol", "signature", "response", "proto", "resp", ";", "try", "{", "resp", "=", "protocol", "info", "proxy", "get", "protocol", "signature", "(", "null", "controller", ",", "builder", "build", "(", ")", ")", ";", "}", "catch", "(", "service", "exception", "se", ")", "{", "throw", "protobuf", "helper", "get", "remote", "exception", "(", "se", ")", ";", "}", "version", "map", "=", "convert", "protocol", "signature", "protos", "(", "resp", "get", "protocol", "signature", "list", "(", ")", ")", ";", "put", "version", "signature", "map", "(", "server", "address", ",", "protocol", "get", "name", "(", ")", ",", "rpc", "kind", "to", "string", "(", ")", ",", "version", "map", ")", ";", "}", "/", "/", "assuming", "unique", "method", "names", "method", "desired", "method", ";", "method", "[", "]", "all", "methods", "=", "protocol", "get", "methods", "(", ")", ";", "desired", "method", "=", "null", ";", "for", "(", "method", "m", ":", "all", "methods", ")", "{", "if", "(", "m", "get", "name", "(", ")", "equals", "(", "method", "name", ")", ")", "{", "desired", "method", "=", "m", ";", "break", ";", "}", "}", "if", "(", "desired", "method", "=", "=", "null", ")", "{", "return", "false", ";", "}", "int", "method", "hash", "=", "protocol", "signature", "get", "fingerprint", "(", "desired", "method", ")", ";", "return", "method", "exists", "(", "method", "hash", ",", "version", ",", "version", "map", ")", ";", "}" ]
[ "decset", "2004", ",", "controls", "bracketed", "paste", "mode" ]
[ "public", "void", "test", "bracketed", "paste", "mode", "(", ")", "{", "with", "terminal", "sized", "(", "3", ",", "3", ")", ";", "m", "terminal", "paste", "(", "\"", "a", "\"", ")", ";", "assert", "equals", "(", "\"", "pasting", "'", "a", "'", "should", "output", "'", "a", "'", "when", "bracketed", "paste", "mode", "is", "disabled", "\"", ",", "\"", "a", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "enter", "string", "(", "\"", "\\", "033", "[", "?", "2", "0", "0", "4h", "\"", ")", ";", "/", "/", "enable", "bracketed", "paste", "mode", "m", "terminal", "paste", "(", "\"", "a", "\"", ")", ";", "assert", "equals", "(", "\"", "pasting", "when", "in", "bracketed", "paste", "mode", "should", "be", "bracketed", "\"", ",", "\"", "\\", "033", "[", "200", "~", "a", "\\", "033", "[", "201", "~", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "enter", "string", "(", "\"", "\\", "033", "[", "?", "2", "0", "0", "4l", "\"", ")", ";", "/", "/", "disable", "bracketed", "paste", "mode", "m", "terminal", "paste", "(", "\"", "a", "\"", ")", ";", "assert", "equals", "(", "\"", "pasting", "'", "a", "'", "should", "output", "'", "a", "'", "when", "bracketed", "paste", "mode", "is", "disabled", "\"", ",", "\"", "a", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "enter", "string", "(", "\"", "\\", "033", "[", "?", "2", "0", "0", "4h", "\"", ")", ";", "/", "/", "enable", "bracketed", "paste", "mode", ",", "again", "m", "terminal", "paste", "(", "\"", "a", "\"", ")", ";", "assert", "equals", "(", "\"", "pasting", "when", "in", "bracketed", "paste", "mode", "again", "should", "be", "bracketed", "\"", ",", "\"", "\\", "033", "[", "200", "~", "a", "\\", "033", "[", "201", "~", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "m", "terminal", "paste", "(", "\"", "\\", "0", "3", "3ab", "\\", "0", "3", "3cd", "\\", "033", "\"", ")", ";", "assert", "equals", "(", "\"", "pasting", "an", "escape", "character", "should", "not", "input", "it", "\"", ",", "\"", "\\", "033", "[", "200", "~", "abcd", "\\", "033", "[", "201", "~", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "m", "terminal", "paste", "(", "\"", "\\", "u", "0", "0", "8", "1ab", "\\", "u", "0", "0", "8", "1cd", "\\", "u", "0", "0", "9", "f", "\"", ")", ";", "assert", "equals", "(", "\"", "pasting", "c1", "control", "codes", "should", "not", "input", "it", "\"", ",", "\"", "\\", "033", "[", "200", "~", "abcd", "\\", "033", "[", "201", "~", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "m", "terminal", "reset", "(", ")", ";", "m", "terminal", "paste", "(", "\"", "a", "\"", ")", ";", "assert", "equals", "(", "\"", "terminal", "reset", "(", ")", "should", "disable", "bracketed", "paste", "mode", "\"", ",", "\"", "a", "\"", ",", "m", "output", "get", "output", "and", "clear", "(", ")", ")", ";", "}" ]
[ "call", "the", "{", "@", "code", "set", "count", "(", ")", "}", "method", "under", "test", ",", "and", "check", "its", "return", "value" ]
[ "abstract", "void", "set", "count", "check", "return", "value", "(", "e", "element", ",", "int", "count", ")", ";" ]
[ "returns", "true", "if", "this", "plugin", "is", "deleted", "the", "plugin", "continues", "to", "function", "in", "this", "session", ",", "but", "in", "the", "next", "session", "it", "'", "ll", "disappear" ]
[ "public", "boolean", "is", "deleted", "(", ")", "{", "return", "!", "archive", "exists", "(", ")", ";", "}" ]
[ "required", "if", "mode", "is", "`", "simple", "`", "or", "`", "mutual", "`", "the", "path", "to", "the", "file", "holding", "the", "server", "'", "s", "private", "key", "<", "code", ">", "string", "private", "key", "=", "4", ";", "<", "code", ">" ]
[ "public", "java", "lang", "string", "get", "private", "key", "(", ")", "{", "java", "lang", "object", "ref", "=", "private", "key", ";", "if", "(", "!", "(", "ref", "instanceof", "java", "lang", "string", ")", ")", "{", "com", "google", "protobuf", "byte", "string", "bs", "=", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "java", "lang", "string", "s", "=", "bs", "to", "string", "utf", "8", "(", ")", ";", "private", "key", "=", "s", ";", "return", "s", ";", "}", "else", "{", "return", "(", "java", "lang", "string", ")", "ref", ";", "}", "}" ]
[ "test", "the", "property", "'", "status", "'" ]
[ "public", "void", "status", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "status", "}" ]
[ "sets", "whether", "loaded", "image", "will", "be", "cached", "in", "memory" ]
[ "public", "builder", "cache", "in", "memory", "(", "boolean", "cache", "in", "memory", ")", "{", "this", "cache", "in", "memory", "=", "cache", "in", "memory", ";", "return", "this", ";", "}" ]
[ "return", "a", "new", "{", "@", "link", "configuration", "}", "with", "kms", "a", "c", "ls", "appropriate", "to", "pass", "the", "full", "acl", "test", "in", "{", "@", "link", "#", "do", "full", "acl", "test", "(", ")", "}", "set" ]
[ "private", "static", "configuration", "get", "base", "conf", "(", "user", "group", "information", "hdfs", "ugi", ",", "user", "group", "information", "keyadmin", "ugi", ")", "{", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "create", "\"", ",", "keyadmin", "ugi", "get", "user", "name", "(", ")", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "delete", "\"", ",", "keyadmin", "ugi", "get", "user", "name", "(", ")", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "rollover", "\"", ",", "keyadmin", "ugi", "get", "user", "name", "(", ")", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "get", "\"", ",", "\"", "\"", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "get", "keys", "\"", ",", "keyadmin", "ugi", "get", "user", "name", "(", ")", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "get", "metadata", "\"", ",", "hdfs", "ugi", "get", "user", "name", "(", ")", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "set", "key", "material", "\"", ",", "\"", "\"", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "generate", "eek", "\"", ",", "hdfs", "ugi", "get", "user", "name", "(", ")", ")", ";", "conf", "set", "(", "k", "m", "s", "configuration", "config", "prefix", "+", "\"", "acl", "decrypt", "eek", "\"", ",", "\"", "*", "\"", ")", ";", "return", "conf", ";", "}" ]
[ "check", "whether", "the", "timeout", "has", "expired" ]
[ "public", "boolean", "has", "election", "timeout", "expired", "(", "long", "current", "time", "ms", ")", "{", "election", "timer", "update", "(", "current", "time", "ms", ")", ";", "return", "election", "timer", "is", "expired", "(", ")", ";", "}" ]
[ "package", "private", "delegate", "for", "{", "@", "link", "path", "pattern", "parser", "#", "parse", "(", "string", ")", "}" ]
[ "public", "path", "pattern", "parse", "(", "string", "path", "pattern", ")", "throws", "pattern", "parse", "exception", "{", "assert", "not", "null", "(", "path", "pattern", ",", "\"", "path", "pattern", "must", "not", "be", "null", "\"", ")", ";", "this", "path", "pattern", "data", "=", "path", "pattern", "to", "char", "array", "(", ")", ";", "this", "path", "pattern", "length", "=", "this", "path", "pattern", "data", "length", ";", "this", "head", "p", "e", "=", "null", ";", "this", "current", "p", "e", "=", "null", ";", "this", "captured", "variable", "names", "=", "null", ";", "this", "path", "element", "start", "=", "-", "1", ";", "this", "pos", "=", "0", ";", "reset", "path", "element", "state", "(", ")", ";", "while", "(", "this", "pos", "<", "this", "path", "pattern", "length", ")", "{", "char", "ch", "=", "this", "path", "pattern", "data", "[", "this", "pos", "]", ";", "char", "separator", "=", "this", "parser", "get", "path", "options", "(", ")", "separator", "(", ")", ";", "if", "(", "ch", "=", "=", "separator", ")", "{", "if", "(", "this", "path", "element", "start", "!", "=", "-", "1", ")", "{", "push", "path", "element", "(", "create", "path", "element", "(", ")", ")", ";", "}", "if", "(", "peek", "double", "wildcard", "(", ")", ")", "{", "push", "path", "element", "(", "new", "wildcard", "the", "rest", "path", "element", "(", "this", "pos", ",", "separator", ")", ")", ";", "this", "pos", "+", "=", "2", ";", "}", "else", "{", "push", "path", "element", "(", "new", "separator", "path", "element", "(", "this", "pos", ",", "separator", ")", ")", ";", "}", "}", "else", "{", "if", "(", "this", "path", "element", "start", "=", "=", "-", "1", ")", "{", "this", "path", "element", "start", "=", "this", "pos", ";", "}", "if", "(", "ch", "=", "=", "'", "?", "'", ")", "{", "this", "single", "char", "wildcard", "count", "+", "+", ";", "}", "else", "if", "(", "ch", "=", "=", "'", "{", "'", ")", "{", "if", "(", "this", "inside", "variable", "capture", ")", "{", "throw", "new", "pattern", "parse", "exception", "(", "this", "pos", ",", "this", "path", "pattern", "data", ",", "pattern", "message", "illegal", "nested", "capture", ")", ";", "}", "/", "/", "if", "we", "enforced", "that", "adjacent", "captures", "weren", "'", "t", "allowed", ",", "/", "/", "this", "would", "do", "it", "(", "this", "would", "be", "an", "error", ":", "/", "foo", "/", "{", "bar", "}", "{", "boo", "}", "/", ")", "/", "/", "}", "else", "if", "(", "pos", ">", "0", "&", "&", "path", "pattern", "data", "[", "pos", "-", "1", "]", "=", "=", "'", "}", "'", ")", "{", "/", "/", "throw", "new", "pattern", "parse", "exception", "(", "pos", ",", "path", "pattern", "data", ",", "/", "/", "pattern", "message", "cannot", "have", "adjacent", "captures", ")", ";", "this", "inside", "variable", "capture", "=", "true", ";", "this", "variable", "capture", "start", "=", "this", "pos", ";", "}", "else", "if", "(", "ch", "=", "=", "'", "}", "'", ")", "{", "if", "(", "!", "this", "inside", "variable", "capture", ")", "{", "throw", "new", "pattern", "parse", "exception", "(", "this", "pos", ",", "this", "path", "pattern", "data", ",", "pattern", "message", "missing", "open", "capture", ")", ";", "}", "this", "inside", "variable", "capture", "=", "false", ";", "if", "(", "this", "is", "capture", "the", "rest", "variable", "&", "&", "(", "this", "pos", "+", "1", ")", "<", "this", "path", "pattern", "length", ")", "{", "throw", "new", "pattern", "parse", "exception", "(", "this", "pos", "+", "1", ",", "this", "path", "pattern", "data", ",", "pattern", "message", "no", "more", "data", "expected", "after", "capture", "the", "rest", ")", ";", "}", "this", "variable", "capture", "count", "+", "+", ";", "}", "else", "if", "(", "ch", "=", "=", "'", ":", "'", ")", "{", "if", "(", "this", "inside", "variable", "capture", "&", "&", "!", "this", "is", "capture", "the", "rest", "variable", ")", "{", "skip", "capture", "regex", "(", ")", ";", "this", "inside", "variable", "capture", "=", "false", ";", "this", "variable", "capture", "count", "+", "+", ";", "}", "}", "else", "if", "(", "ch", "=", "=", "'", "*", "'", ")", "{", "if", "(", "this", "inside", "variable", "capture", "&", "&", "this", "variable", "capture", "start", "=", "=", "this", "pos", "-", "1", ")", "{", "this", "is", "capture", "the", "rest", "variable", "=", "true", ";", "}", "this", "wildcard", "=", "true", ";", "}", "/", "/", "check", "that", "the", "characters", "used", "for", "captured", "variable", "names", "are", "like", "java", "identifiers", "if", "(", "this", "inside", "variable", "capture", ")", "{", "if", "(", "(", "this", "variable", "capture", "start", "+", "1", "+", "(", "this", "is", "capture", "the", "rest", "variable", "?", "1", ":", "0", ")", ")", "=", "=", "this", "pos", "&", "&", "!", "character", "is", "java", "identifier", "start", "(", "ch", ")", ")", "{", "throw", "new", "pattern", "parse", "exception", "(", "this", "pos", ",", "this", "path", "pattern", "data", ",", "pattern", "message", "illegal", "character", "at", "start", "of", "capture", "descriptor", ",", "character", "to", "string", "(", "ch", ")", ")", ";", "}", "else", "if", "(", "(", "this", "pos", ">", "(", "this", "variable", "capture", "start", "+", "1", "+", "(", "this", "is", "capture", "the", "rest", "variable", "?", "1", ":", "0", ")", ")", "&", "&", "!", "character", "is", "java", "identifier", "part", "(", "ch", ")", "&", "&", "ch", "!", "=", "'", "-", "'", ")", ")", "{", "throw", "new", "pattern", "parse", "exception", "(", "this", "pos", ",", "this", "path", "pattern", "data", ",", "pattern", "message", "illegal", "character", "in", "capture", "descriptor", ",", "character", "to", "string", "(", "ch", ")", ")", ";", "}", "}", "}", "this", "pos", "+", "+", ";", "}", "if", "(", "this", "path", "element", "start", "!", "=", "-", "1", ")", "{", "push", "path", "element", "(", "create", "path", "element", "(", ")", ")", ";", "}" ]
[ "to", "test", "the", "collection", "format", "in", "query", "parameters" ]
[ "public", "void", "test", "query", "parameter", "collection", "format", "test", "(", ")", "throws", "api", "exception", "{", "list", "<", "string", ">", "pipe", "=", "null", ";", "list", "<", "string", ">", "ioutil", "=", "null", ";", "list", "<", "string", ">", "http", "=", "null", ";", "list", "<", "string", ">", "url", "=", "null", ";", "list", "<", "string", ">", "context", "=", "null", ";", "api", "test", "query", "parameter", "collection", "format", "(", "pipe", ",", "ioutil", ",", "http", ",", "url", ",", "context", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "encodes", "and", "writes", "the", "block", "data" ]
[ "void", "encode", "(", "byte", "buf", "out", ")", "{", "/", "/", "create", "optimised", "selector", "list", "and", "huffman", "tables", "generate", "huffman", "optimisation", "seeds", "(", ")", ";", "for", "(", "int", "i", "=", "3", ";", "i", ">", "=", "0", ";", "i", "-", "-", ")", "{", "optimise", "selectors", "and", "huffman", "tables", "(", "i", "=", "=", "0", ")", ";", "}", "assign", "huffman", "code", "symbols", "(", ")", ";", "/", "/", "write", "out", "the", "tables", "and", "the", "block", "data", "encoded", "with", "them", "write", "selectors", "and", "huffman", "tables", "(", "out", ")", ";", "write", "block", "data", "(", "out", ")", ";", "}" ]
[ "make", "a", "file", "executable", "using", "the", "{", "@", "link", "#", "lfs", "}", "{", "@", "link", "file", "context", "}" ]
[ "protected", "void", "set", "script", "executable", "(", "path", "script", ",", "string", "owner", ")", "throws", "i", "o", "exception", "{", "lfs", "set", "permission", "(", "script", ",", "container", "executor", "task", "launch", "script", "permission", ")", ";", "}" ]
[ "test", "request", "scoped", "caching", "with", "a", "mixture", "of", "commands" ]
[ "public", "void", "test", "request", "cache", "3", "using", "thread", "isolation", "(", ")", "{", "test", "circuit", "breaker", "circuit", "breaker", "=", "new", "test", "circuit", "breaker", "(", ")", ";", "successful", "cacheable", "command", "<", "string", ">", "command", "1", "=", "new", "successful", "cacheable", "command", "<", "string", ">", "(", "circuit", "breaker", ",", "true", ",", "\"", "a", "\"", ")", ";", "successful", "cacheable", "command", "<", "string", ">", "command", "2", "=", "new", "successful", "cacheable", "command", "<", "string", ">", "(", "circuit", "breaker", ",", "true", ",", "\"", "b", "\"", ")", ";", "successful", "cacheable", "command", "<", "string", ">", "command", "3", "=", "new", "successful", "cacheable", "command", "<", "string", ">", "(", "circuit", "breaker", ",", "true", ",", "\"", "a", "\"", ")", ";", "assert", "true", "(", "command", "1", "is", "command", "running", "in", "thread", "(", ")", ")", ";", "future", "<", "string", ">", "f", "1", "=", "command", "1", "observe", "(", ")", "to", "blocking", "(", ")", "to", "future", "(", ")", ";", "future", "<", "string", ">", "f", "2", "=", "command", "2", "observe", "(", ")", "to", "blocking", "(", ")", "to", "future", "(", ")", ";", "future", "<", "string", ">", "f", "3", "=", "command", "3", "observe", "(", ")", "to", "blocking", "(", ")", "to", "future", "(", ")", ";", "try", "{", "assert", "equals", "(", "\"", "a", "\"", ",", "f", "1", "get", "(", ")", ")", ";", "assert", "equals", "(", "\"", "b", "\"", ",", "f", "2", "get", "(", ")", ")", ";", "assert", "equals", "(", "\"", "a", "\"", ",", "f", "3", "get", "(", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}", "assert", "true", "(", "command", "1", "executed", ")", ";", "/", "/", "both", "should", "execute", "as", "they", "are", "different", "assert", "true", "(", "command", "2", "executed", ")", ";", "/", "/", "but", "the", "3rd", "should", "come", "from", "cache", "assert", "false", "(", "command", "3", "executed", ")", ";", "assert", "command", "execution", "events", "(", "command", "1", ",", "hystrix", "event", "type", "emit", ",", "hystrix", "event", "type", "success", ")", ";", "assert", "command", "execution", "events", "(", "command", "2", ",", "hystrix", "event", "type", "emit", ",", "hystrix", "event", "type", "success", ")", ";", "assert", "command", "execution", "events", "(", "command", "3", ",", "hystrix", "event", "type", "emit", ",", "hystrix", "event", "type", "success", ",", "hystrix", "event", "type", "response", "from", "cache", ")", ";", "assert", "true", "(", "command", "3", "get", "execution", "time", "in", "milliseconds", "(", ")", "=", "=", "-", "1", ")", ";", "assert", "true", "(", "command", "3", "is", "response", "from", "cache", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "circuit", "breaker", "metrics", "get", "current", "concurrent", "execution", "count", "(", ")", ")", ";", "assert", "sane", "hystrix", "request", "log", "(", "3", ")", ";", "}" ]
[ "creates", "a", "builder", "for", "new", "server", "-", "side", "{", "@", "link", "ssl", "context", "}" ]
[ "public", "static", "ssl", "context", "builder", "for", "server", "(", "private", "key", "key", ",", "iterable", "<", "?", "extends", "x", "5", "0", "9", "certificate", ">", "key", "cert", "chain", ")", "{", "return", "for", "server", "(", "key", ",", "to", "array", "(", "key", "cert", "chain", ",", "empty", "x509", "certificates", ")", ")", ";", "}" ]
[ "sets", "the", "given", "reference", "as", "primary" ]
[ "public", "final", "void", "set", "reference", "primary", "(", "reference", "reference", ")", "{", "current", "program", "get", "reference", "manager", "(", ")", "set", "primary", "(", "reference", ",", "true", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "message", "instance", "send", "for", "(", "message", "instance", "message", ",", "operation", "operation", ",", "concurrent", "map", "<", "q", "name", ",", "url", ">", "overriden", "endpoint", "addresses", ")", "throws", "exception", "{", "object", "[", "]", "arguments", "=", "this", "get", "arguments", "(", "message", ")", ";", "object", "[", "]", "results", "=", "this", "safe", "send", "(", "arguments", ",", "overriden", "endpoint", "addresses", ")", ";", "return", "this", "create", "response", "message", "(", "results", ",", "operation", ")", ";", "}" ]
[ "returns", "the", "next", "epoch" ]
[ "public", "static", "int", "next", "epoch", "(", "int", "prev", "epoch", ")", "{", "if", "(", "prev", "epoch", "<", "0", ")", "{", "/", "/", "the", "next", "epoch", "after", "final", "epoch", "is", "always", "final", "epoch", "itself", "return", "final", "epoch", ";", "}", "else", "if", "(", "prev", "epoch", "=", "=", "integer", "max", "value", ")", "{", "return", "1", ";", "}", "else", "{", "return", "prev", "epoch", "+", "1", ";", "}", "}" ]
[ "updates", "a", "pet", "in", "the", "store", "with", "form", "data" ]
[ "public", "void", "update", "pet", "with", "form", "test", "(", ")", "{", "long", "pet", "id", "=", "null", ";", "string", "name", "=", "null", ";", "string", "status", "=", "null", ";", "/", "/", "api", "update", "pet", "with", "form", "(", "pet", "id", ",", "name", ",", "status", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "method", "called", "for", "rendering", "the", "output" ]
[ "public", "abstract", "object", "render", "(", "object", "model", ")", "throws", "exception", ";" ]
[ "test", "the", "property", "'", "file", "'" ]
[ "public", "void", "file", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "file", "}" ]
[ "return", "the", "long", "value", "with", "the", "given", "property", "name" ]
[ "public", "long", "get", "long", "(", "string", "property", "name", ",", "long", "default", "value", ")", "{", "pair", "<", "property", "entry", "type", ",", "string", ">", "pair", "=", "map", "get", "(", "property", "name", ")", ";", "if", "(", "pair", "=", "=", "null", "|", "|", "pair", "first", "!", "=", "property", "entry", "type", "long", "type", ")", "{", "return", "default", "value", ";", "}", "try", "{", "string", "value", "=", "pair", "second", ";", "return", "long", "parse", "long", "(", "value", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "return", "default", "value", ";", "}", "}" ]
[ "test", "that", "the", "put", "mehtod", "without", "cache", "key", "correctly", "stores", "the", "downloaded", "file", "into", "the", "cache" ]
[ "public", "void", "test", "put", "cache", "value", "without", "hash", "(", ")", "throws", "exception", "{", "string", "cache", "key", "=", "repository", "cache", "put", "(", "downloaded", "file", ",", "key", "type", "sha256", ")", ";", "assert", "that", "(", "cache", "key", ")", "is", "equal", "to", "(", "downloaded", "file", "sha", "2", "5", "6", ")", ";", "path", "cache", "entry", "=", "key", "type", "sha256", "get", "cache", "path", "(", "content", "addressable", "cache", "path", ")", "get", "child", "(", "downloaded", "file", "sha", "2", "5", "6", ")", ";", "path", "cache", "value", "=", "cache", "entry", "get", "child", "(", "repository", "cache", "default", "cache", "filename", ")", ";", "assert", "that", "(", "file", "system", "utils", "read", "content", "(", "downloaded", "file", ",", "charset", "default", "charset", "(", ")", ")", ")", "is", "equal", "to", "(", "file", "system", "utils", "read", "content", "(", "cache", "value", ",", "charset", "default", "charset", "(", ")", ")", ")", ";", "}" ]
[ "create", "a", "shard", "stats", "for", "testing", "with", "random", "fuzzing" ]
[ "private", "static", "shard", "stats", "[", "]", "create", "random", "shard", "stats", "(", "map", "<", "string", ",", "long", "[", "]", ">", "expected", "checkpoints", ",", "set", "<", "string", ">", "user", "indices", ",", "boolean", "skip", "primaries", ",", "boolean", "inconsistent", "global", "checkpoints", ",", "boolean", "missing", "seq", "no", "stats", ")", "{", "/", "/", "always", "create", "the", "full", "list", "list", "<", "index", ">", "indices", "=", "new", "array", "list", "<", ">", "(", ")", ";", "indices", "add", "(", "new", "index", "(", "\"", "index", "-", "1", "\"", ",", "u", "u", "i", "ds", "random", "base", "6", "4", "u", "u", "i", "d", "(", "random", "(", ")", ")", ")", ")", ";", "indices", "add", "(", "new", "index", "(", "\"", "index", "-", "2", "\"", ",", "u", "u", "i", "ds", "random", "base", "6", "4", "u", "u", "i", "d", "(", "random", "(", ")", ")", ")", ")", ";", "indices", "add", "(", "new", "index", "(", "\"", "index", "-", "3", "\"", ",", "u", "u", "i", "ds", "random", "base", "6", "4", "u", "u", "i", "d", "(", "random", "(", ")", ")", ")", ")", ";", "string", "missing", "seq", "no", "stats", "index", "=", "random", "from", "(", "user", "indices", ")", ";", "list", "<", "shard", "stats", ">", "shard", "stats", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "final", "index", "index", ":", "indices", ")", "{", "int", "num", "shards", "=", "random", "int", "between", "(", "1", ",", "5", ")", ";", "list", "<", "long", ">", "checkpoints", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "shard", "index", "=", "0", ";", "shard", "index", "<", "num", "shards", ";", "shard", "index", "+", "+", ")", "{", "/", "/", "we", "need", "at", "least", "one", "replica", "for", "testing", "int", "num", "shard", "copies", "=", "random", "int", "between", "(", "2", ",", "4", ")", ";", "int", "primary", "shard", "=", "0", ";", "if", "(", "skip", "primaries", ")", "{", "primary", "shard", "=", "random", "int", "(", "num", "shard", "copies", "-", "1", ")", ";", "}", "int", "inconsistent", "replica", "=", "-", "1", ";", "if", "(", "inconsistent", "global", "checkpoints", ")", "{", "list", "<", "integer", ">", "replicas", "=", "new", "array", "list", "<", ">", "(", "num", "shard", "copies", "-", "1", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "shard", "copies", ";", "i", "+", "+", ")", "{", "if", "(", "primary", "shard", "!", "=", "i", ")", "{", "replicas", "add", "(", "i", ")", ";", "}", "}", "inconsistent", "replica", "=", "random", "from", "(", "replicas", ")", ";", "}", "/", "/", "seq", "no", "stats", "asserts", "that", "checkpoints", "are", "logical", "long", "local", "checkpoint", "=", "random", "long", "between", "(", "100l", ",", "100000000l", ")", ";", "long", "global", "checkpoint", "=", "random", "boolean", "(", ")", "?", "local", "checkpoint", ":", "random", "long", "between", "(", "100l", ",", "100000000l", ")", ";", "long", "max", "seq", "no", "=", "math", "max", "(", "local", "checkpoint", ",", "global", "checkpoint", ")", ";", "seq", "no", "stats", "valid", "seq", "no", "stats", "=", "null", ";", "/", "/", "add", "broken", "seq", "no", "stats", "if", "requested", "if", "(", "missing", "seq", "no", "stats", "&", "&", "index", "get", "name", "(", ")", "equals", "(", "missing", "seq", "no", "stats", "index", ")", ")", "{", "checkpoints", "add", "(", "-", "1l", ")", ";", "}", "else", "{", "valid", "seq", "no", "stats", "=", "new", "seq", "no", "stats", "(", "max", "seq", "no", ",", "local", "checkpoint", ",", "global", "checkpoint", ")", ";", "checkpoints", "add", "(", "global", "checkpoint", ")", ";", "}", "for", "(", "int", "replica", "=", "0", ";", "replica", "<", "num", "shard", "copies", ";", "replica", "+", "+", ")", "{", "shard", "id", "shard", "id", "=", "new", "shard", "id", "(", "index", ",", "shard", "index", ")", ";", "boolean", "primary", "=", "(", "replica", "=", "=", "primary", "shard", ")", ";", "path", "path", "=", "create", "temp", "dir", "(", ")", "resolve", "(", "\"", "indices", "\"", ")", "resolve", "(", "index", "get", "u", "u", "i", "d", "(", ")", ")", "resolve", "(", "string", "value", "of", "(", "shard", "index", ")", ")", ";", "shard", "routing", "shard", "routing", "=", "shard", "routing", "new", "unassigned", "(", "shard", "id", ",", "primary", ",", "primary", "?", "recovery", "source", "empty", "store", "recovery", "source", "instance", ":", "peer", "recovery", "source", "instance", ",", "new", "unassigned", "info", "(", "unassigned", "info", "reason", "index", "created", ",", "null", ")", ")", ";", "shard", "routing", "=", "shard", "routing", "initialize", "(", "\"", "node", "-", "0", "\"", ",", "null", ",", "shard", "routing", "unavailable", "expected", "shard", "size", ")", ";", "shard", "routing", "=", "shard", "routing", "move", "to", "started", "(", ")", ";", "common", "stats", "stats", "=", "new", "common", "stats", "(", ")", ";", "stats", "field", "data", "=", "new", "field", "data", "stats", "(", ")", ";", "stats", "query", "cache", "=", "new", "query", "cache", "stats", "(", ")", ";", "stats", "docs", "=", "new", "docs", "stats", "(", ")", ";", "stats", "store", "=", "new", "store", "stats", "(", ")", ";", "stats", "indexing", "=", "new", "indexing", "stats", "(", ")", ";", "stats", "search", "=", "new", "search", "stats", "(", ")", ";", "stats", "segments", "=", "new", "segments", "stats", "(", ")", ";", "stats", "merge", "=", "new", "merge", "stats", "(", ")", ";", "stats", "refresh", "=", "new", "refresh", "stats", "(", ")", ";", "stats", "completion", "=", "new", "completion", "stats", "(", ")", ";", "stats", "request", "cache", "=", "new", "request", "cache", "stats", "(", ")", ";", "stats", "get", "=", "new", "get", "stats", "(", ")", ";", "stats", "flush", "=", "new", "flush", "stats", "(", ")", ";", "stats", "warmer", "=", "new", "warmer", "stats", "(", ")", ";", "if", "(", "inconsistent", "replica", "=", "=", "replica", ")", "{", "/", "/", "overwrite", "seq", "no", "stats", "invalid", "seq", "no", "stats", "=", "new", "seq", "no", "stats", "(", "max", "seq", "no", ",", "local", "checkpoint", ",", "global", "checkpoint", "-", "random", "long", "between", "(", "10l", ",", "100l", ")", ")", ";", "shard", "stats", "add", "(", "new", "shard", "stats", "(", "shard", "routing", ",", "new", "shard", "path", "(", "false", ",", "path", ",", "path", ",", "shard", "id", ")", ",", "stats", ",", "null", ",", "invalid", "seq", "no", "stats", ",", "null", ")", ")", ";", "}", "else", "{", "shard", "stats", "add", "(", "new", "shard", "stats", "(", "shard", "routing", ",", "new", "shard", "path", "(", "false", ",", "path", ",", "path", ",", "shard", "id", ")", ",", "stats", ",", "null", ",", "valid", "seq", "no", "stats", ",", "null", ")", ")", ";", "}", "}", "}", "if", "(", "user", "indices", "contains", "(", "index", "get", "name", "(", ")", ")", ")", "{", "expected", "checkpoints", "put", "(", "index", "get", "name", "(", ")", ",", "checkpoints", "stream", "(", ")", "map", "to", "long", "(", "l", "-", ">", "l", ")", "to", "array", "(", ")", ")", ";", "}", "}", "/", "/", "shuffle", "the", "shard", "stats", "collections", "shuffle", "(", "shard", "stats", ",", "random", "(", ")", ")", ";", "shard", "stats", "[", "]", "shard", "stats", "array", "=", "shard", "stats", "to", "array", "(", "new", "shard", "stats", "[", "0", "]", ")", ";", "return", "shard", "stats", "array", ";", "}" ]
[ "the", "interface", "is", "not", "stable", "enough", ",", "use", "'", "a", "router", "inject", "(", ")", ";", "'", ";" ]
[ "public", "static", "void", "attach", "base", "context", "(", ")", "{", "a", "router", "attach", "base", "context", "(", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "returns", "the", "unstripped", "file", "(", "the", "default", "executable", "target", ")" ]
[ "public", "final", "artifact", "get", "unstripped", "artifact", "(", ")", "{", "return", "unstripped", "artifact", ";", "}" ]
[ "returns", "a", "function", "which", "given", "an", "index", "name", ",", "returns", "a", "predicate", "which", "fields", "must", "match", "in", "order", "to", "be", "returned", "by", "get", "mappings", ",", "get", "index", ",", "get", "field", "mappings", "and", "field", "capabilities", "api", "useful", "to", "filter", "the", "fields", "that", "such", "api", "return", "the", "predicate", "receives", "the", "field", "name", "as", "input", "argument", "in", "case", "multiple", "plugins", "register", "a", "field", "filter", "through", "{", "@", "link", "org", "elasticsearch", "plugins", "mapper", "plugin", "#", "get", "field", "filter", "(", ")", "}", ",", "only", "fields", "that", "match", "all", "the", "registered", "filters", "will", "be", "returned", "by", "get", "mappings", ",", "get", "index", ",", "get", "field", "mappings", "and", "field", "capabilities", "api" ]
[ "public", "function", "<", "string", ",", "predicate", "<", "string", ">", ">", "get", "field", "filter", "(", ")", "{", "return", "mapper", "registry", "get", "field", "filter", "(", ")", ";", "}" ]
[ "performs", "a", "single", "step", "of", "a", "seeking", "binary", "search", ",", "returning", "the", "byte", "position", "from", "which", "data", "should", "be", "provided", "for", "the", "next", "step", ",", "or", "{", "@", "link", "c", "#", "position", "unset", "}", "if", "the", "search", "has", "converged", "if", "the", "search", "has", "converged", "then", "{", "@", "link", "#", "skip", "to", "page", "of", "target", "granule", "(", "extractor", "input", ")", "}", "should", "be", "called", "to", "skip", "to", "the", "target", "page" ]
[ "private", "long", "get", "next", "seek", "position", "(", "extractor", "input", "input", ")", "throws", "i", "o", "exception", "{", "if", "(", "start", "=", "=", "end", ")", "{", "return", "c", "position", "unset", ";", "}", "long", "current", "position", "=", "input", "get", "position", "(", ")", ";", "if", "(", "!", "page", "header", "skip", "to", "next", "page", "(", "input", ",", "end", ")", ")", "{", "if", "(", "start", "=", "=", "current", "position", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "no", "ogg", "page", "can", "be", "found", "\"", ")", ";", "}", "return", "start", ";", "}", "page", "header", "populate", "(", "input", ",", "/", "*", "quiet", "=", "*", "/", "false", ")", ";", "input", "reset", "peek", "position", "(", ")", ";", "long", "granule", "distance", "=", "target", "granule", "-", "page", "header", "granule", "position", ";", "int", "page", "size", "=", "page", "header", "header", "size", "+", "page", "header", "body", "size", ";", "if", "(", "0", "<", "=", "granule", "distance", "&", "&", "granule", "distance", "<", "match", "range", ")", "{", "return", "c", "position", "unset", ";", "}", "if", "(", "granule", "distance", "<", "0", ")", "{", "end", "=", "current", "position", ";", "end", "granule", "=", "page", "header", "granule", "position", ";", "}", "else", "{", "start", "=", "input", "get", "position", "(", ")", "+", "page", "size", ";", "start", "granule", "=", "page", "header", "granule", "position", ";", "}", "if", "(", "end", "-", "start", "<", "match", "byte", "range", ")", "{", "end", "=", "start", ";", "return", "start", ";", "}", "long", "offset", "=", "page", "size", "*", "(", "granule", "distance", "<", "=", "0", "?", "2l", ":", "1l", ")", ";", "long", "next", "position", "=", "input", "get", "position", "(", ")", "-", "offset", "+", "(", "granule", "distance", "*", "(", "end", "-", "start", ")", "/", "(", "end", "granule", "-", "start", "granule", ")", ")", ";", "return", "util", "constrain", "value", "(", "next", "position", ",", "start", ",", "end", "-", "1", ")", ";", "}" ]
[ "the", "stats", "groups", "this", "request", "will", "be", "aggregated", "under" ]
[ "public", "search", "source", "builder", "stats", "(", "list", "<", "string", ">", "stats", "groups", ")", "{", "this", "stats", "=", "stats", "groups", ";", "return", "this", ";", "}" ]
[ "returns", "the", "lowest", "value", "in", "the", "dataset", "the", "count", "must", "be", "non", "-", "zero", "<", "h", "3", ">", "non", "-", "finite", "values", "<", "h", "3", ">", "if", "the", "dataset", "contains", "{", "@", "link", "double", "#", "na", "n", "}", "then", "the", "result", "is", "{", "@", "link", "double", "#", "na", "n", "}", "if", "it", "contains", "{", "@", "link", "double", "#", "negative", "infinity", "}", "and", "not", "{", "@", "link", "double", "#", "na", "n", "}", "then", "the", "result", "is", "{", "@", "link", "double", "#", "negative", "infinity", "}", "if", "it", "contains", "{", "@", "link", "double", "#", "positive", "infinity", "}", "and", "finite", "values", "only", "then", "the", "result", "is", "the", "lowest", "finite", "value", "if", "it", "contains", "{", "@", "link", "double", "#", "positive", "infinity", "}", "only", "then", "the", "result", "is", "{", "@", "link", "double", "#", "positive", "infinity", "}" ]
[ "public", "double", "min", "(", ")", "{", "check", "state", "(", "count", "!", "=", "0", ")", ";", "return", "min", ";", "}" ]
[ "creates", "a", "resource", "counter", "with", "the", "specified", "set", "of", "resources" ]
[ "public", "static", "resource", "counter", "with", "resources", "(", "map", "<", "resource", "profile", ",", "integer", ">", "resources", ")", "{", "return", "new", "resource", "counter", "(", "new", "hash", "map", "<", ">", "(", "resources", ")", ")", ";", "}" ]
[ "returns", "a", "list", "of", "the", "saved", "column", "table", "filters" ]
[ "public", "list", "<", "column", "based", "table", "filter", "<", "r", ">", ">", "get", "saved", "filters", "(", ")", "{", "return", "filters", ";", "}" ]
[ "creates", "a", "new", "{", "@", "code", "listenable", "future", "}", "whose", "value", "is", "a", "list", "containing", "the", "values", "of", "all", "its", "successful", "input", "futures", "the", "list", "of", "results", "is", "in", "the", "same", "order", "as", "the", "input", "list", ",", "and", "if", "any", "of", "the", "provided", "futures", "fails", "or", "is", "canceled", ",", "its", "corresponding", "position", "will", "contain", "{", "@", "code", "null", "}", "(", "which", "is", "indistinguishable", "from", "the", "future", "having", "a", "successful", "value", "of", "{", "@", "code", "null", "}", ")", "the", "list", "of", "results", "is", "in", "the", "same", "order", "as", "the", "input", "list", "this", "differs", "from", "{", "@", "link", "#", "all", "as", "list", "(", "iterable", ")", "}", "in", "that", "it", "'", "s", "tolerant", "of", "failed", "futures", "for", "any", "of", "the", "items", ",", "representing", "them", "as", "{", "@", "code", "null", "}", "in", "the", "result", "list", "canceling", "this", "future", "will", "attempt", "to", "cancel", "all", "the", "component", "futures" ]
[ "public", "static", "<", "v", ">", "listenable", "future", "<", "list", "<", "v", ">", ">", "successful", "as", "list", "(", "iterable", "<", "?", "extends", "listenable", "future", "<", "?", "extends", "v", ">", ">", "futures", ")", "{", "return", "new", "list", "future", "<", "v", ">", "(", "immutable", "list", "copy", "of", "(", "futures", ")", ",", "false", ")", ";", "}" ]
[ "returns", "a", "string", "representation", "of", "the", "object", "in", "general", ",", "the", "<", "code", ">", "to", "string", "<", "code", ">", "method", "returns", "a", "string", "that", "\"", "textually", "represents", "\"", "this", "object", "the", "result", "should", "be", "a", "concise", "but", "informative", "representation", "that", "is", "easy", "for", "a", "person", "to", "read" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "get", "name", "(", ")", "+", "\"", "-", "\"", "+", "path", ";", "}" ]
[ "y", "=", "func", "(", "x", "1", ",", "x", "2", ")" ]
[ "public", "static", "void", "apply", "(", "dense", "vector", "x", "1", ",", "dense", "vector", "x", "2", ",", "dense", "vector", "y", ",", "bi", "function", "<", "double", ",", "double", ",", "double", ">", "func", ")", "{", "assert", "(", "x", "1", "data", "length", "=", "=", "y", "data", "length", ")", ":", "\"", "x", "1", "and", "y", "size", "mismatched", "\"", ";", "assert", "(", "x", "2", "data", "length", "=", "=", "y", "data", "length", ")", ":", "\"", "x", "1", "and", "y", "size", "mismatched", "\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "y", "data", "length", ";", "i", "+", "+", ")", "{", "y", "data", "[", "i", "]", "=", "func", "apply", "(", "x", "1", "data", "[", "i", "]", ",", "x", "2", "data", "[", "i", "]", ")", ";", "}", "}" ]
[ "iterates", "over", "the", "readable", "bytes", "of", "this", "buffer", "with", "the", "specified", "{", "@", "code", "processor", "}", "in", "descending", "order" ]
[ "public", "int", "for", "each", "byte", "desc", "(", "byte", "processor", "visitor", ")", "throws", "exception", "{", "return", "for", "each", "byte", "desc", "0", "(", "0", ",", "length", "(", ")", ",", "visitor", ")", ";", "}" ]
[ "set", "the", "status", "text", "in", "the", "active", "component", "window" ]
[ "public", "void", "set", "status", "text", "(", "string", "text", ",", "boolean", "beep", ")", "{", "if", "(", "root", "=", "=", "null", ")", "{", "return", ";", "}", "set", "status", "text", "(", "text", ")", ";", "if", "(", "beep", ")", "{", "toolkit", "get", "default", "toolkit", "(", ")", "beep", "(", ")", ";", "}", "}" ]
[ "decode", "the", "given", "sock", "j", "s", "message", "frame" ]
[ "string", "[", "]", "decode", "input", "stream", "(", "input", "stream", "content", ")", "throws", "i", "o", "exception", ";" ]
[ "gets", "the", "memory", "size", "in", "bytes" ]
[ "public", "long", "get", "bytes", "(", ")", "{", "return", "bytes", ";", "}" ]
[ "converts", "to", "the", "\"", "lost", "inputs", "\"", "subtype", "of", "the", "other", "exception", "type", "(", "{", "@", "link", "exec", "exception", "}", ")", "used", "during", "action", "execution", "may", "not", "be", "used", "if", "this", "exception", "has", "been", "decorated", "with", "additional", "information", "from", "its", "context", "(", "e", "g", "from", "{", "@", "link", "#", "set", "primary", "output", "path", "}", "or", "other", "setters", ")", "because", "that", "information", "would", "be", "lost", "if", "so" ]
[ "public", "lost", "inputs", "exec", "exception", "to", "exec", "exception", "(", ")", "{", "preconditions", "check", "state", "(", "primary", "action", "=", "=", "null", ")", ";", "preconditions", "check", "state", "(", "!", "action", "started", "event", "already", "emitted", ")", ";", "preconditions", "check", "state", "(", "primary", "output", "path", "=", "=", "null", ")", ";", "preconditions", "check", "state", "(", "file", "out", "err", "=", "=", "null", ")", ";", "preconditions", "check", "state", "(", "!", "from", "input", "discovery", ")", ";", "return", "new", "lost", "inputs", "exec", "exception", "(", "lost", "inputs", ",", "owners", ",", "this", ")", ";", "}" ]
[ "remove", "an", "erasure", "coding", "policy" ]
[ "static", "void", "remove", "erasure", "coding", "policy", "(", "final", "f", "s", "namesystem", "fsn", ",", "string", "ec", "policy", "name", ",", "final", "boolean", "log", "retry", "cache", ")", "throws", "i", "o", "exception", "{", "preconditions", "check", "not", "null", "(", "ec", "policy", "name", ")", ";", "fsn", "get", "erasure", "coding", "policy", "manager", "(", ")", "remove", "policy", "(", "ec", "policy", "name", ")", ";", "fsn", "get", "edit", "log", "(", ")", "log", "remove", "erasure", "coding", "policy", "(", "ec", "policy", "name", ",", "log", "retry", "cache", ")", ";", "}" ]
[ "saves", "any", "changes", "in", "the", "program", "back", "to", "its", "file", "if", "the", "program", "does", "not", "have", "an", "associated", "file", "(", "it", "was", "created", ")", ",", "then", "it", "is", "an", "error", "to", "call", "this", "method", ",", "use", "save", "as", "instead", "any", "open", "transaction", "will", "be", "terminated" ]
[ "public", "void", "save", "(", "program", "program", ")", "throws", "i", "o", "exception", "{", "int", "id", "=", "-", "1", ";", "integer", "id", "int", "=", "open", "programs", "get", "(", "program", ")", ";", "if", "(", "id", "int", "!", "=", "null", ")", "{", "id", "=", "id", "int", "int", "value", "(", ")", ";", "}", "if", "(", "id", ">", "=", "0", ")", "{", "program", "end", "transaction", "(", "id", ",", "true", ")", ";", "}", "try", "{", "program", "get", "domain", "file", "(", ")", "save", "(", "monitor", ")", ";", "}", "catch", "(", "cancelled", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "cancelled", "\"", ")", ";", "}", "if", "(", "id", ">", "=", "0", ")", "{", "open", "programs", "put", "(", "program", ",", "new", "integer", "(", "program", "start", "transaction", "(", "\"", "\"", ")", ")", ")", ";", "}", "}" ]
[ "writes", "a", "trace", "message", "to", "indicate", "that", "the", "current", "method", "has", "ended", "must", "be", "called", "exactly", "once", "for", "each", "call", "to", "{", "@", "link", "#", "begin", "section", "async", "(", "string", ",", "int", ")", "}", "using", "the", "same", "tag", ",", "name", "and", "cookie", "<", "p", "class", "=", "\"", "note", "\"", ">", "depending", "on", "provided", "{", "@", "link", "systrace", "}", "instance", ",", "this", "method", "could", "vary", "in", "behavior", "and", "in", "{", "@", "link", "default", "components", "systrace", "}", "it", "is", "a", "no", "-", "op" ]
[ "public", "static", "void", "end", "section", "async", "(", "string", "name", ",", "int", "cookie", ")", "{", "s", "instance", "end", "section", "async", "(", "name", ",", "cookie", ")", ";", "}" ]
[ "return", "a", "replica", "of", "this", "instance", "with", "its", "quality", "value", "removed" ]
[ "public", "media", "type", "remove", "quality", "value", "(", ")", "{", "if", "(", "!", "get", "parameters", "(", ")", "contains", "key", "(", "param", "quality", "factor", ")", ")", "{", "return", "this", ";", "}", "map", "<", "string", ",", "string", ">", "params", "=", "new", "linked", "hash", "map", "<", ">", "(", "get", "parameters", "(", ")", ")", ";", "params", "remove", "(", "param", "quality", "factor", ")", ";", "return", "new", "media", "type", "(", "this", ",", "params", ")", ";", "}" ]
[ "return", "whether", "to", "proxy", "the", "target", "class", "directly", "as", "well", "as", "any", "interfaces" ]
[ "public", "boolean", "is", "proxy", "target", "class", "(", ")", "{", "return", "this", "proxy", "target", "class", ";", "}" ]
[ "return", "true", "if", "the", "request", "should", "be", "validated", "without", "creating", "the", "topic" ]
[ "public", "boolean", "should", "validate", "only", "(", ")", "{", "return", "validate", "only", ";", "}" ]
[ "evaluates", "all", "item", "documents", "in", "a", "particular", "expression", "context", "this", "specifies", ",", "among", "others", ",", "a", "row", "where", "the", "values", "of", "the", "variables", "will", "be", "read" ]
[ "public", "list", "<", "item", "update", ">", "evaluate", "item", "documents", "(", "expression", "context", "ctxt", ")", "{", "list", "<", "item", "update", ">", "result", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "wb", "item", "document", "expr", "expr", ":", "item", "document", "exprs", ")", "{", "try", "{", "result", "add", "(", "expr", "evaluate", "(", "ctxt", ")", ")", ";", "}", "catch", "(", "skip", "schema", "expression", "exception", "e", ")", "{", "continue", ";", "}", "}", "return", "result", ";", "}" ]
[ "returns", "an", "{", "@", "link", "output", "stream", "}", "that", "simply", "discards", "written", "bytes" ]
[ "public", "static", "output", "stream", "null", "output", "stream", "(", ")", "{", "return", "null", "output", "stream", ";", "}" ]
[ "convert", "an", "array", "of", "{", "@", "code", "m", "bean", "parameter", "info", "}", "into", "an", "array", "of", "{", "@", "code", "class", "}", "instances", "corresponding", "to", "the", "parameters" ]
[ "public", "static", "class", "<", "?", ">", "[", "]", "parameter", "info", "to", "types", "(", "@", "nullable", "m", "bean", "parameter", "info", "[", "]", "param", "info", ")", "throws", "class", "not", "found", "exception", "{", "return", "parameter", "info", "to", "types", "(", "param", "info", ",", "class", "utils", "get", "default", "class", "loader", "(", ")", ")", ";", "}" ]
[ "prints", "information", "about", "all", "datanodes" ]
[ "void", "datanode", "dump", "(", "final", "print", "writer", "out", ")", "{", "final", "map", "<", "string", ",", "datanode", "descriptor", ">", "sorted", "datanode", "map", ";", "synchronized", "(", "this", ")", "{", "sorted", "datanode", "map", "=", "new", "tree", "map", "<", ">", "(", "datanode", "map", ")", ";", "}", "out", "println", "(", "\"", "metasave", ":", "number", "of", "datanodes", ":", "\"", "+", "sorted", "datanode", "map", "size", "(", ")", ")", ";", "for", "(", "datanode", "descriptor", "node", ":", "sorted", "datanode", "map", "values", "(", ")", ")", "{", "out", "println", "(", "node", "dump", "datanode", "(", ")", ")", ";", "}", "}" ]
[ "populate", "the", "given", "structure", "with", "any", "new", "discovered", "components", "in", "the", "offset", "to", "data", "type", "map" ]
[ "private", "void", "populate", "structure", "(", "structure", "struct", "d", "t", ")", "{", "iterator", "<", "entry", "<", "long", ",", "data", "type", ">", ">", "iterator", "=", "component", "map", "iterator", "(", ")", ";", "while", "(", "iterator", "has", "next", "(", ")", ")", "{", "entry", "<", "long", ",", "data", "type", ">", "entry", "=", "iterator", "next", "(", ")", ";", "long", "key", "=", "entry", "get", "key", "(", ")", ";", "data", "type", "val", "d", "t", "=", "entry", "get", "value", "(", ")", ";", "if", "(", "key", "int", "value", "(", ")", "<", "0", ")", "{", "/", "/", "println", "(", "\"", "bad", "offset", ":", "\"", "+", "key", "int", "value", "(", ")", ")", ";", "continue", ";", "}", "/", "/", "todo", ":", "need", "to", "do", "data", "type", "conflict", "resolution", "if", "(", "struct", "d", "t", "get", "length", "(", ")", "<", "(", "key", "int", "value", "(", ")", "+", "val", "d", "t", "get", "length", "(", ")", ")", ")", "{", "continue", ";", "}", "try", "{", "data", "type", "component", "existing", "=", "struct", "d", "t", "get", "component", "at", "(", "key", "int", "value", "(", ")", ")", ";", "/", "/", "try", "to", "preserve", "existing", "information", "string", "name", "=", "null", ";", "string", "comment", "=", "null", ";", "if", "(", "existing", "!", "=", "null", ")", "{", "name", "=", "existing", "get", "field", "name", "(", ")", ";", "comment", "=", "existing", "get", "comment", "(", ")", ";", "}", "struct", "d", "t", "replace", "at", "offset", "(", "key", "int", "value", "(", ")", ",", "val", "d", "t", ",", "val", "d", "t", "get", "length", "(", ")", ",", "name", ",", "comment", ")", ";", "}", "catch", "(", "illegal", "argument", "exception", "e", ")", "{", "msg", "debug", "(", "this", ",", "\"", "unexpected", "error", "changing", "structure", "offset", "\"", ",", "e", ")", ";", "}", "}", "}" ]
[ "draws", "a", "point", "using", "{", "@", "link", "shape", "type", "#", "point", "}", ",", "{", "@", "link", "shape", "type", "#", "line", "}", "or", "{", "@", "link", "shape", "type", "#", "filled", "}" ]
[ "public", "void", "point", "(", "float", "x", ",", "float", "y", ",", "float", "z", ")", "{", "if", "(", "shape", "type", "=", "=", "shape", "type", "line", ")", "{", "float", "size", "=", "default", "rect", "line", "width", "*", "0", "5f", ";", "line", "(", "x", "-", "size", ",", "y", "-", "size", ",", "z", ",", "x", "+", "size", ",", "y", "+", "size", ",", "z", ")", ";", "return", ";", "}", "else", "if", "(", "shape", "type", "=", "=", "shape", "type", "filled", ")", "{", "float", "size", "=", "default", "rect", "line", "width", "*", "0", "5f", ";", "box", "(", "x", "-", "size", ",", "y", "-", "size", ",", "z", "-", "size", ",", "default", "rect", "line", "width", ",", "default", "rect", "line", "width", ",", "default", "rect", "line", "width", ")", ";", "return", ";", "}", "check", "(", "shape", "type", "point", ",", "null", ",", "1", ")", ";", "renderer", "color", "(", "color", ")", ";", "renderer", "vertex", "(", "x", ",", "y", ",", "z", ")", ";", "}" ]
[ "remove", "a", "block", "from", "a", "low", "redundancy", "queue" ]
[ "synchronized", "boolean", "remove", "(", "block", "info", "block", ",", "int", "old", "replicas", ",", "int", "old", "read", "only", "replicas", ",", "int", "out", "of", "service", "replicas", ",", "int", "old", "expected", "replicas", ")", "{", "final", "int", "pri", "level", "=", "get", "priority", "(", "block", ",", "old", "replicas", ",", "old", "read", "only", "replicas", ",", "out", "of", "service", "replicas", ",", "old", "expected", "replicas", ")", ";", "boolean", "removed", "block", "=", "remove", "(", "block", ",", "pri", "level", ",", "old", "expected", "replicas", ")", ";", "if", "(", "pri", "level", "=", "=", "queue", "with", "corrupt", "blocks", "&", "&", "old", "expected", "replicas", "=", "=", "1", "&", "&", "removed", "block", ")", "{", "assert", "corrupt", "replication", "one", "blocks", "long", "value", "(", ")", ">", "=", "0", ":", "\"", "number", "of", "corrupt", "blocks", "with", "replication", "factor", "1", "\"", "+", "\"", "should", "be", "non", "-", "negative", "\"", ";", "}", "return", "removed", "block", ";", "}" ]
[ "perform", "extension", "specific", "processing", "of", "elf", "image", "during", "program", "load", "the", "following", "loading", "steps", "will", "have", "already", "been", "completed", ":", "1", "default", "processing", "of", "all", "program", "headers", "and", "section", "headers", "2", "memory", "resolution", "and", "loading", "of", "all", "program", "headers", "and", "section", "headers", "3", "markup", "completed", "of", "elf", "header", ",", "program", "headers", ",", "section", "headers", ",", "dynamic", "table", ",", "string", "tables", ",", "and", "symbol", "tables", "markup", "and", "application", "of", "relocation", "tables", "will", "not", "have", "been", "done", "yet" ]
[ "public", "void", "process", "elf", "(", "elf", "load", "helper", "elf", "load", "helper", ",", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", "{", "/", "/", "do", "nothing", "extra", "by", "default", "}" ]
[ "performs", "include", "processing", "actions", "and", "returns", "the", "processed", "set", "of", "resulting", "headers" ]
[ "list", "<", "artifact", ">", "determine", "additional", "inputs", "(", "@", "nullable", "include", "scanner", "supplier", "include", "scanner", "supplier", ",", "cpp", "compile", "action", "action", ",", "action", "execution", "context", "action", "execution", "context", ",", "include", "scanning", "header", "data", "include", "scanning", "header", "data", ")", "throws", "exec", "exception", ",", "interrupted", "exception", ";" ]
[ "short", "-", "cut", "function", "to", "determine", "if", "either", "body", "is", "inactive" ]
[ "public", "boolean", "is", "active", "(", ")", "{", "return", "jni", "is", "active", "(", "addr", ")", ";", "}" ]
[ "return", "dynamic", "updates", "to", "mappings", "or", "{", "@", "code", "null", "}", "if", "there", "were", "no", "updates", "to", "the", "mappings" ]
[ "public", "mapping", "dynamic", "mappings", "update", "(", ")", "{", "return", "dynamic", "mappings", "update", ";", "}" ]
[ "returns", "the", "float", "value", "for", "the", "given", "key", "the", "method", "fails", "if", "the", "key", "does", "not", "exist" ]
[ "public", "float", "get", "float", "(", "string", "key", ")", "{", "add", "to", "defaults", "(", "key", ",", "null", ")", ";", "string", "value", "=", "get", "required", "(", "key", ")", ";", "return", "float", "value", "of", "(", "value", ")", ";", "}" ]
[ "the", "field", "to", "sort", "results", "on", "this", "should", "have", "a", "unique", "value", "per", "document", "for", "search", "after" ]
[ "protected", "abstract", "field", "sort", "builder", "sort", "field", "(", ")", ";" ]
[ "return", "the", "path", "to", "the", "parent", "of", "this", "property", "file" ]
[ "public", "string", "get", "parent", "path", "(", ")", "{", "return", "parent", "path", ";", "}" ]
[ "returns", "a", "temporary", "directory", "for", "all", "tests", "in", "a", "workspace", "to", "use", "individual", "tests", "should", "create", "child", "directories", "to", "actually", "use", "this", "either", "dynamically", "generates", "a", "directory", "name", "or", "uses", "the", "directory", "specified", "by", "-", "-", "test", "tmpdir", "this", "does", "not", "create", "the", "directory" ]
[ "public", "static", "path", "get", "tmp", "root", "(", "path", "workspace", ",", "path", "exec", "root", ",", "execution", "options", "execution", "options", ")", "{", "return", "execution", "options", "test", "tmp", "dir", "!", "=", "null", "?", "workspace", "get", "relative", "(", "execution", "options", "test", "tmp", "dir", ")", "get", "relative", "(", "test", "tmp", "root", ")", ":", "exec", "root", "get", "relative", "(", "test", "tmp", "root", ")", ";", "}" ]
[ "returns", "whether", "the", "flag", "{", "@", "code", "acc", "interface", "}", "is", "on", "in", "the", "given", "flags" ]
[ "public", "static", "boolean", "is", "interface", "(", "int", "flags", ")", "{", "return", "(", "flags", "&", "acc", "interface", ")", "!", "=", "0", ";", "}" ]
[ "runs", "a", "gather", "-", "sum", "-", "apply", "iteration", "on", "the", "graph", "with", "configuration", "options" ]
[ "public", "<", "m", ">", "graph", "<", "k", ",", "vv", ",", "ev", ">", "run", "gather", "sum", "apply", "iteration", "(", "org", "apache", "flink", "graph", "gsa", "gather", "function", "<", "vv", ",", "ev", ",", "m", ">", "gather", "function", ",", "sum", "function", "<", "vv", ",", "ev", ",", "m", ">", "sum", "function", ",", "apply", "function", "<", "k", ",", "vv", ",", "m", ">", "apply", "function", ",", "int", "maximum", "number", "of", "iterations", ",", "g", "s", "a", "configuration", "parameters", ")", "{", "gather", "sum", "apply", "iteration", "<", "k", ",", "vv", ",", "ev", ",", "m", ">", "iteration", "=", "gather", "sum", "apply", "iteration", "with", "edges", "(", "edges", ",", "gather", "function", ",", "sum", "function", ",", "apply", "function", ",", "maximum", "number", "of", "iterations", ")", ";", "iteration", "configure", "(", "parameters", ")", ";", "data", "set", "<", "vertex", "<", "k", ",", "vv", ">", ">", "new", "vertices", "=", "vertices", "run", "operation", "(", "iteration", ")", ";", "return", "new", "graph", "<", ">", "(", "new", "vertices", ",", "this", "edges", ",", "this", "context", ")", ";", "}" ]
[ "copies", "the", "bytes", "to", "the", "result", "program", "from", "the", "origin", "program", "for", "the", "specified", "set", "of", "address", "ranges" ]
[ "private", "void", "copy", "bytes", "in", "ranges", "(", "address", "set", "view", "origin", "address", "set", ",", "task", "monitor", "monitor", ")", "throws", "memory", "access", "exception", ",", "cancelled", "exception", "{", "memory", "to", "mem", "=", "result", "program", "get", "memory", "(", ")", ";", "memory", "from", "mem", "=", "origin", "program", "get", "memory", "(", ")", ";", "/", "/", "copy", "each", "range", "address", "range", "iterator", "iter", "=", "origin", "address", "set", "get", "address", "ranges", "(", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "address", "range", "from", "range", "=", "iter", "next", "(", ")", ";", "copy", "byte", "range", "(", "to", "mem", ",", "from", "mem", ",", "from", "range", ")", ";", "}", "}" ]
[ "recenters", "the", "points", "of", "a", "constant", "distance", "towards", "the", "center" ]
[ "private", "result", "point", "[", "]", "center", "edges", "(", "result", "point", "y", ",", "result", "point", "z", ",", "result", "point", "x", ",", "result", "point", "t", ")", "{", "/", "/", "/", "/", "t", "t", "/", "/", "z", "x", "/", "/", "x", "or", "z", "/", "/", "y", "y", "/", "/", "float", "yi", "=", "y", "get", "x", "(", ")", ";", "float", "yj", "=", "y", "get", "y", "(", ")", ";", "float", "zi", "=", "z", "get", "x", "(", ")", ";", "float", "zj", "=", "z", "get", "y", "(", ")", ";", "float", "xi", "=", "x", "get", "x", "(", ")", ";", "float", "xj", "=", "x", "get", "y", "(", ")", ";", "float", "ti", "=", "t", "get", "x", "(", ")", ";", "float", "tj", "=", "t", "get", "y", "(", ")", ";", "if", "(", "yi", "<", "width", "/", "2", "0f", ")", "{", "return", "new", "result", "point", "[", "]", "{", "new", "result", "point", "(", "ti", "-", "corr", ",", "tj", "+", "corr", ")", ",", "new", "result", "point", "(", "zi", "+", "corr", ",", "zj", "+", "corr", ")", ",", "new", "result", "point", "(", "xi", "-", "corr", ",", "xj", "-", "corr", ")", ",", "new", "result", "point", "(", "yi", "+", "corr", ",", "yj", "-", "corr", ")", "}", ";", "}", "else", "{", "return", "new", "result", "point", "[", "]", "{", "new", "result", "point", "(", "ti", "+", "corr", ",", "tj", "+", "corr", ")", ",", "new", "result", "point", "(", "zi", "+", "corr", ",", "zj", "-", "corr", ")", ",", "new", "result", "point", "(", "xi", "-", "corr", ",", "xj", "+", "corr", ")", ",", "new", "result", "point", "(", "yi", "-", "corr", ",", "yj", "-", "corr", ")", "}", ";", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "string", "to", "human", "(", ")", "{", "throw", "new", "runtime", "exception", "(", "\"", "unsupported", "\"", ")", ";", "}" ]
[ "set", "a", "register", "flag", "for", "the", "specified", "register" ]
[ "public", "boolean", "set", "flag", "(", "string", "register", "name", ",", "int", "register", "flag", ")", "{", "register", "register", "=", "register", "map", "get", "(", "register", "name", ")", ";", "if", "(", "register", "=", "=", "null", ")", "{", "return", "false", ";", "}", "register", "set", "flag", "(", "register", "flag", ")", ";", "return", "true", ";", "}" ]
[ "configure", "one", "or", "more", "request", "header", "names", "(", "e", "g", "\"", "accept", "-", "language", "\"", ")", "to", "add", "to", "the", "\"", "vary", "\"", "response", "header", "to", "inform", "clients", "that", "the", "response", "is", "subject", "to", "content", "negotiation", "and", "variances", "based", "on", "the", "value", "of", "the", "given", "request", "headers", "the", "configured", "request", "header", "names", "are", "added", "only", "if", "not", "already", "present", "in", "the", "response", "\"", "vary", "\"", "header" ]
[ "builder", "<", "t", ">", "vary", "by", "(", "string", "request", "headers", ")", ";" ]
[ "return", "decryptor", "to", "pool" ]
[ "private", "void", "return", "decryptor", "(", "decryptor", "decryptor", ")", "{", "if", "(", "decryptor", "!", "=", "null", ")", "{", "decryptor", "pool", "add", "(", "decryptor", ")", ";", "}", "}" ]
[ "returns", "the", "scope", "for", "the", "symbol" ]
[ "public", "namespace", "get", "scope", "(", ")", "{", "return", "scope", ";", "}" ]
[ "covert", "to", "a", "useful", "string" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "string", "format", "(", "\"", "%", "s", "count", "=", "%", "d", "total", "=", "%", "3fs", "mean", "=", "%", "3fs", "stddev", "=", "%", "3fs", "min", "=", "%", "3fs", "max", "=", "%", "3fs", "\"", ",", "operation", ",", "n", ",", "sum", "/", "1000", "0", ",", "mean", "/", "1000", "0", ",", "get", "deviation", "(", ")", "/", "1000000", "0", ",", "min", "/", "1000", "0", ",", "max", "/", "1000", "0", ")", ";", "}" ]
[ "updated", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "public", "void", "update", "user", "(", "string", "username", ",", "user", "body", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "body", ";", "/", "/", "verify", "the", "required", "parameter", "'", "username", "'", "is", "set", "if", "(", "username", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "username", "'", "when", "calling", "update", "user", "\"", ")", ";", "}", "/", "/", "verify", "the", "required", "parameter", "'", "body", "'", "is", "set", "if", "(", "body", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "body", "'", "when", "calling", "update", "user", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "local", "var", "path", "=", "\"", "/", "user", "/", "{", "username", "}", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "\"", "+", "\"", "username", "\"", "+", "\"", "\\", "\\", "}", "\"", ",", "api", "client", "escape", "string", "(", "username", "to", "string", "(", ")", ")", ")", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "local", "var", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "list", "<", "pair", ">", "local", "var", "collection", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "cookie", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "local", "var", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "}", ";", "final", "string", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "}", ";", "final", "string", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "}", ";", "api", "client", "invoke", "a", "p", "i", "(", "local", "var", "path", ",", "\"", "put", "\"", ",", "local", "var", "query", "params", ",", "local", "var", "collection", "query", "params", ",", "local", "var", "post", "body", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ",", "local", "var", "form", "params", ",", "local", "var", "accept", ",", "local", "var", "content", "type", ",", "local", "var", "auth", "names", ",", "null", ")", ";", "}" ]
[ "construct", "an", "implementation", "of", "{", "@", "link", "hystrix", "metrics", "publisher", "command", "}", "for", "{", "@", "link", "hystrix", "command", "}", "instances", "having", "key", "{", "@", "link", "hystrix", "command", "key", "}", "this", "will", "be", "invoked", "once", "per", "{", "@", "link", "hystrix", "command", "key", "}", "instance", "<", "b", ">", "default", "implementation", "<", "b", ">", "return", "instance", "of", "{", "@", "link", "hystrix", "metrics", "publisher", "command", "default", "}" ]
[ "public", "hystrix", "metrics", "publisher", "command", "get", "metrics", "publisher", "for", "command", "(", "hystrix", "command", "key", "command", "key", ",", "hystrix", "command", "group", "key", "command", "group", "key", ",", "hystrix", "command", "metrics", "metrics", ",", "hystrix", "circuit", "breaker", "circuit", "breaker", ",", "hystrix", "command", "properties", "properties", ")", "{", "return", "new", "hystrix", "metrics", "publisher", "command", "default", "(", "command", "key", ",", "command", "group", "key", ",", "metrics", ",", "circuit", "breaker", ",", "properties", ")", ";", "}" ]
[ "attempts", "to", "trigger", "a", "deadlock", "that", "would", "happen", "if", "any", "bounded", "resource", "pool", "became", "saturated", "with", "control", "tasks", "that", "depended", "on", "other", "tasks", "that", "now", "can", "'", "t", "enter", "the", "resource", "pool", "to", "get", "completed" ]
[ "public", "void", "test", "parallel", "rename", "(", ")", "throws", "interrupted", "exception", ",", "execution", "exception", ",", "i", "o", "exception", "{", "configuration", "conf", "=", "get", "configuration", "(", ")", ";", "conf", "set", "int", "(", "max", "threads", ",", "2", ")", ";", "conf", "set", "int", "(", "max", "total", "tasks", ",", "1", ")", ";", "conf", "set", "(", "min", "multipart", "threshold", ",", "\"", "10k", "\"", ")", ";", "conf", "set", "(", "multipart", "size", ",", "\"", "5k", "\"", ")", ";", "try", "(", "s", "3", "a", "file", "system", "tiny", "thread", "pool", "fs", "=", "new", "s", "3", "a", "file", "system", "(", ")", ")", "{", "tiny", "thread", "pool", "fs", "initialize", "(", "aux", "fs", "get", "uri", "(", ")", ",", "conf", ")", ";", "parallel", "renames", "(", "concurrent", "renames", ",", "tiny", "thread", "pool", "fs", ",", "\"", "test", "parallel", "rename", "-", "source", "\"", ",", "\"", "test", "parallel", "rename", "-", "target", "\"", ")", ";", "}", "}" ]
[ "round", "bytes", "to", "gi", "b", "(", "gibibyte", ")" ]
[ "public", "static", "int", "round", "bytes", "to", "g", "b", "(", "long", "bytes", ")", "{", "return", "math", "round", "(", "(", "float", ")", "bytes", "/", "1024", "/", "1024", "/", "1024", ")", ";", "}" ]
[ "gets", "the", "field", "constant" ]
[ "public", "cst", "field", "ref", "get", "field", "ref", "(", ")", "{", "return", "(", "cst", "field", "ref", ")", "get", "ref", "(", ")", ";", "}" ]
[ "returns", "the", "maximum", "auto", "id", "timestamp", "of", "all", "append", "-", "only", "requests", "have", "been", "processed", "by", "this", "shard", "or", "the", "auto", "id", "timestamp", "received", "from", "the", "primary", "via", "{", "@", "link", "#", "update", "max", "unsafe", "auto", "id", "timestamp", "(", "long", ")", "}", "at", "the", "beginning", "of", "a", "peer", "-", "recovery", "or", "a", "primary", "-", "replica", "resync" ]
[ "public", "long", "get", "max", "seen", "auto", "id", "timestamp", "(", ")", "{", "return", "get", "engine", "(", ")", "get", "max", "seen", "auto", "id", "timestamp", "(", ")", ";", "}" ]
[ "returns", "the", "x", "position", "of", "the", "cached", "string", ",", "relative", "to", "the", "position", "when", "the", "string", "was", "cached" ]
[ "public", "float", "get", "x", "(", ")", "{", "return", "x", ";", "}" ]
[ "get", "capital", "camel" ]
[ "public", "string", "get", "capital", "camel", "(", ")", "{", "return", "capital", "camel", ";", "}" ]
[ "get", "prefix", "boolean" ]
[ "public", "boolean", "get", "prefix", "boolean", "(", ")", "{", "return", "prefix", "boolean", ";", "}" ]
[ "returns", "the", "test", "root", "dir" ]
[ "public", "path", "get", "test", "root", "(", ")", "{", "return", "this", "target", "test", "root", ";", "}" ]
[ "subscribes", "to", "the", "source", "again", "via", "trampolining" ]
[ "void", "subscribe", "next", "(", ")", "{", "if", "(", "get", "and", "increment", "(", ")", "=", "=", "0", ")", "{", "int", "missed", "=", "1", ";", "for", "(", ";", ";", ")", "{", "if", "(", "upstream", "is", "disposed", "(", ")", ")", "{", "return", ";", "}", "source", "subscribe", "(", "this", ")", ";", "missed", "=", "add", "and", "get", "(", "-", "missed", ")", ";", "if", "(", "missed", "=", "=", "0", ")", "{", "break", ";", "}", "}", "}", "}" ]
[ "blob", "cache", "is", "configured", "in", "ha", "mode", "and", "the", "cache", "can", "download", "files", "from", "the", "file", "system", "directly", "and", "does", "not", "need", "to", "download", "b", "l", "o", "bs", "from", "the", "blob", "server", "which", "is", "shut", "down", "after", "the", "blob", "upload", "using", "job", "-", "related", "b", "l", "o", "bs" ]
[ "public", "void", "test", "blob", "for", "job", "cache", "ha", "2", "(", ")", "throws", "i", "o", "exception", "{", "configuration", "config", "=", "new", "configuration", "(", ")", ";", "config", "set", "string", "(", "blob", "server", "options", "storage", "directory", ",", "temporary", "folder", "new", "folder", "(", ")", "get", "absolute", "path", "(", ")", ")", ";", "config", "set", "string", "(", "high", "availability", "options", "ha", "mode", ",", "\"", "zookeeper", "\"", ")", ";", "config", "set", "string", "(", "high", "availability", "options", "ha", "storage", "path", ",", "temporary", "folder", "new", "folder", "(", ")", "get", "path", "(", ")", ")", ";", "upload", "file", "get", "test", "(", "config", ",", "new", "job", "i", "d", "(", ")", ",", "false", ",", "true", ",", "permanent", "blob", ")", ";", "}" ]
[ "returns", "a", "data", "spec", "that", "represents", "a", "subrange", "of", "the", "data", "defined", "by", "this", "data", "spec" ]
[ "public", "data", "spec", "subrange", "(", "long", "offset", ",", "long", "length", ")", "{", "if", "(", "offset", "=", "=", "0", "&", "&", "this", "length", "=", "=", "length", ")", "{", "return", "this", ";", "}", "else", "{", "return", "new", "data", "spec", "(", "uri", ",", "uri", "position", "offset", ",", "http", "method", ",", "http", "body", ",", "http", "request", "headers", ",", "position", "+", "offset", ",", "length", ",", "key", ",", "flags", ",", "custom", "data", ")", ";", "}", "}" ]
[ "returns", "an", "example", "string", "of", "how", "the", "annotation", "is", "used" ]
[ "public", "string", "get", "prototype", "string", "(", ")", ";" ]