docstring_tokens
list
code_tokens
list
[ "verify", "that", "the", "user", "-", "specified", "state", "backend", "is", "used", "even", "if", "checkpointing", "is", "disabled" ]
[ "public", "void", "test", "state", "backend", "without", "checkpointing", "(", ")", "throws", "exception", "{", "stream", "execution", "environment", "see", "=", "stream", "execution", "environment", "get", "execution", "environment", "(", ")", ";", "see", "set", "parallelism", "(", "1", ")", ";", "see", "get", "config", "(", ")", "set", "restart", "strategy", "(", "restart", "strategies", "no", "restart", "(", ")", ")", ";", "see", "set", "state", "backend", "(", "new", "failing", "state", "backend", "(", ")", ")", ";", "see", "from", "elements", "(", "new", "tuple", "2", "<", ">", "(", "\"", "hello", "\"", ",", "1", ")", ")", "key", "by", "(", "0", ")", "map", "(", "new", "rich", "map", "function", "<", "tuple", "2", "<", "string", ",", "integer", ">", ",", "string", ">", "(", ")", "{", "private", "static", "final", "long", "serial", "version", "u", "i", "d", "=", "1l", ";", "@", "override", "public", "void", "open", "(", "configuration", "parameters", ")", "throws", "exception", "{", "super", "open", "(", "parameters", ")", ";", "get", "runtime", "context", "(", ")", "get", "state", "(", "new", "value", "state", "descriptor", "<", ">", "(", "\"", "test", "\"", ",", "integer", "class", ")", ")", ";", "}", "@", "override", "public", "string", "map", "(", "tuple", "2", "<", "string", ",", "integer", ">", "value", ")", "throws", "exception", "{", "return", "value", "f", "0", ";", "}", "}", ")", "print", "(", ")", ";", "try", "{", "see", "execute", "(", ")", ";", "fail", "(", ")", ";", "}", "catch", "(", "job", "execution", "exception", "e", ")", "{", "assert", "true", "(", "exception", "utils", "find", "throwable", "(", "e", ",", "success", "exception", "class", ")", "is", "present", "(", ")", ")", ";", "}", "}" ]
[ "return", "whether", "to", "delete", "the", "entire", "range", "below", "the", "current", "maximum", "key", "value", "(", "{", "@", "code", "false", "}", "-", "the", "default", ")", ",", "or", "the", "specifically", "generated", "values", "(", "{", "@", "code", "true", "}", ")" ]
[ "public", "boolean", "is", "delete", "specific", "values", "(", ")", "{", "return", "this", "delete", "specific", "values", ";", "}" ]
[ "utility", "method", "for", "rejecting", "the", "current", "allocation", "command", "based", "on", "provided", "exception" ]
[ "protected", "reroute", "explanation", "explain", "or", "throw", "rejected", "command", "(", "boolean", "explain", ",", "routing", "allocation", "allocation", ",", "runtime", "exception", "rte", ")", "{", "if", "(", "explain", ")", "{", "return", "new", "reroute", "explanation", "(", "this", ",", "allocation", "decision", "(", "decision", "no", ",", "name", "(", ")", "+", "\"", "(", "allocation", "command", ")", "\"", ",", "rte", "get", "message", "(", ")", ")", ")", ";", "}", "throw", "rte", ";", "}" ]
[ "returns", "the", "number", "of", "bytes", "still", "available", "to", "read" ]
[ "public", "int", "available", "(", ")", "{", "return", "m", "pooled", "byte", "buffer", "size", "(", ")", "-", "m", "offset", ";", "}" ]
[ "returns", "the", "source", "location", "info", "as", "a", "string", "formatted", "as", "\"", "file", ":", "filename", "line", ":", "linenum", "\"" ]
[ "public", "string", "get", "description", "str", "2", "(", ")", "{", "return", "string", "format", "(", "\"", "file", ":", "%", "s", "line", ":", "%", "d", "\"", ",", "filename", ",", "line", "num", ")", ";", "}" ]
[ "create", "a", "test", "entity" ]
[ "protected", "static", "timeline", "entity", "create", "entity", "(", "string", "entity", "id", ",", "string", "entity", "type", ",", "long", "start", "time", ",", "list", "<", "timeline", "event", ">", "events", ",", "map", "<", "string", ",", "set", "<", "string", ">", ">", "related", "entities", ",", "map", "<", "string", ",", "set", "<", "object", ">", ">", "primary", "filters", ",", "map", "<", "string", ",", "object", ">", "other", "info", ",", "string", "domain", "id", ")", "{", "timeline", "entity", "entity", "=", "new", "timeline", "entity", "(", ")", ";", "entity", "set", "entity", "id", "(", "entity", "id", ")", ";", "entity", "set", "entity", "type", "(", "entity", "type", ")", ";", "entity", "set", "start", "time", "(", "start", "time", ")", ";", "entity", "set", "events", "(", "events", ")", ";", "if", "(", "related", "entities", "!", "=", "null", ")", "{", "for", "(", "entry", "<", "string", ",", "set", "<", "string", ">", ">", "e", ":", "related", "entities", "entry", "set", "(", ")", ")", "{", "for", "(", "string", "v", ":", "e", "get", "value", "(", ")", ")", "{", "entity", "add", "related", "entity", "(", "e", "get", "key", "(", ")", ",", "v", ")", ";", "}", "}", "}", "else", "{", "entity", "set", "related", "entities", "(", "null", ")", ";", "}", "entity", "set", "primary", "filters", "(", "primary", "filters", ")", ";", "entity", "set", "other", "info", "(", "other", "info", ")", ";", "entity", "set", "domain", "id", "(", "domain", "id", ")", ";", "return", "entity", ";", "}" ]
[ "set", "the", "instance", "that", "is", "wrapped" ]
[ "public", "void", "set", "(", "writable", "obj", ")", "{", "instance", "=", "obj", ";", "class", "<", "?", "extends", "writable", ">", "instance", "clazz", "=", "instance", "get", "class", "(", ")", ";", "class", "<", "?", "extends", "writable", ">", "[", "]", "clazzes", "=", "get", "types", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "clazzes", "length", ";", "i", "+", "+", ")", "{", "class", "<", "?", "extends", "writable", ">", "clazz", "=", "clazzes", "[", "i", "]", ";", "if", "(", "clazz", "equals", "(", "instance", "clazz", ")", ")", "{", "type", "=", "(", "byte", ")", "i", ";", "return", ";", "}", "}", "throw", "new", "runtime", "exception", "(", "\"", "the", "type", "of", "instance", "is", ":", "\"", "+", "instance", "get", "class", "(", ")", "+", "\"", ",", "which", "is", "not", "registered", "\"", ")", ";", "}" ]
[ "returns", "true", "if", "drawing", "the", "labels", "is", "enabled", "for", "this", "axis" ]
[ "public", "boolean", "is", "draw", "labels", "enabled", "(", ")", "{", "return", "m", "draw", "labels", ";", "}" ]
[ "check", "whether", "triggered", "exception", "is", "ignorable" ]
[ "boolean", "is", "ignorable", "(", "throwable", "throwable", ")", "{", "if", "(", "ignore", "exceptions", "=", "=", "null", "|", "|", "ignore", "exceptions", "is", "empty", "(", ")", ")", "{", "return", "false", ";", "}", "for", "(", "class", "<", "?", "extends", "throwable", ">", "ignore", "exception", ":", "ignore", "exceptions", ")", "{", "if", "(", "ignore", "exception", "is", "assignable", "from", "(", "throwable", "get", "class", "(", ")", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "make", "sure", "that", "a", "request", "using", "a", "deterministic", "script", "or", "not", "using", "a", "script", "get", "cached", "ensure", "requests", "using", "nondeterministic", "scripts", "do", "not", "get", "cached" ]
[ "public", "void", "test", "script", "caching", "(", ")", "throws", "exception", "{", "assert", "acked", "(", "prepare", "create", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "mapping", "(", "\"", "d", "\"", ",", "\"", "type", "=", "long", "\"", ")", "set", "settings", "(", "settings", "builder", "(", ")", "put", "(", "\"", "requests", "cache", "enable", "\"", ",", "true", ")", "put", "(", "\"", "number", "of", "shards", "\"", ",", "1", ")", "put", "(", "\"", "number", "of", "replicas", "\"", ",", "1", ")", ")", "get", "(", ")", ")", ";", "index", "random", "(", "true", ",", "client", "(", ")", "prepare", "index", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "id", "(", "\"", "1", "\"", ")", "set", "source", "(", "\"", "s", "\"", ",", "1", ")", ",", "client", "(", ")", "prepare", "index", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "id", "(", "\"", "2", "\"", ")", "set", "source", "(", "\"", "s", "\"", ",", "2", ")", ")", ";", "/", "/", "make", "sure", "we", "are", "starting", "with", "a", "clear", "cache", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "hit", "count", "(", ")", ",", "equal", "to", "(", "0l", ")", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "miss", "count", "(", ")", ",", "equal", "to", "(", "0l", ")", ")", ";", "/", "/", "test", "that", "a", "request", "using", "a", "nondeterministic", "script", "does", "not", "get", "cached", "search", "response", "r", "=", "client", "(", ")", "prepare", "search", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "size", "(", "0", ")", "add", "aggregation", "(", "cardinality", "(", "\"", "foo", "\"", ")", "field", "(", "\"", "d", "\"", ")", "script", "(", "new", "script", "(", "script", "type", "inline", ",", "custom", "script", "plugin", "name", ",", "\"", "math", "random", "(", ")", "\"", ",", "empty", "map", "(", ")", ")", ")", ")", "get", "(", ")", ";", "assert", "search", "response", "(", "r", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "hit", "count", "(", ")", ",", "equal", "to", "(", "0l", ")", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "miss", "count", "(", ")", ",", "equal", "to", "(", "0l", ")", ")", ";", "/", "/", "test", "that", "a", "request", "using", "a", "deterministic", "script", "gets", "cached", "r", "=", "client", "(", ")", "prepare", "search", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "size", "(", "0", ")", "add", "aggregation", "(", "cardinality", "(", "\"", "foo", "\"", ")", "field", "(", "\"", "d", "\"", ")", "script", "(", "new", "script", "(", "script", "type", "inline", ",", "custom", "script", "plugin", "name", ",", "\"", "value", "\"", ",", "empty", "map", "(", ")", ")", ")", ")", "get", "(", ")", ";", "assert", "search", "response", "(", "r", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "hit", "count", "(", ")", ",", "equal", "to", "(", "0l", ")", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "miss", "count", "(", ")", ",", "equal", "to", "(", "1l", ")", ")", ";", "/", "/", "ensure", "that", "non", "-", "scripted", "requests", "are", "cached", "as", "normal", "r", "=", "client", "(", ")", "prepare", "search", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "size", "(", "0", ")", "add", "aggregation", "(", "cardinality", "(", "\"", "foo", "\"", ")", "field", "(", "\"", "d", "\"", ")", ")", "get", "(", ")", ";", "assert", "search", "response", "(", "r", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "hit", "count", "(", ")", ",", "equal", "to", "(", "0l", ")", ")", ";", "assert", "that", "(", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "stats", "(", "\"", "cache", "test", "idx", "\"", ")", "set", "request", "cache", "(", "true", ")", "get", "(", ")", "get", "total", "(", ")", "get", "request", "cache", "(", ")", "get", "miss", "count", "(", ")", ",", "equal", "to", "(", "2l", ")", ")", ";", "}" ]
[ "restructure", "the", "underlying", "data", "structure", "when", "it", "becomes", "necessary", "this", "method", "can", "increase", "the", "size", "of", "the", "references", "table", "as", "well", "as", "purge", "any", "references", "that", "have", "been", "garbage", "collected" ]
[ "protected", "final", "void", "restructure", "if", "necessary", "(", "boolean", "allow", "resize", ")", "{", "int", "curr", "count", "=", "this", "count", "get", "(", ")", ";", "boolean", "needs", "resize", "=", "allow", "resize", "&", "&", "(", "curr", "count", ">", "0", "&", "&", "curr", "count", ">", "=", "this", "resize", "threshold", ")", ";", "reference", "<", "k", ",", "v", ">", "ref", "=", "this", "reference", "manager", "poll", "for", "purge", "(", ")", ";", "if", "(", "ref", "!", "=", "null", "|", "|", "(", "needs", "resize", ")", ")", "{", "restructure", "(", "allow", "resize", ",", "ref", ")", ";", "}", "}" ]
[ "total", "number", "of", "available", "sockets", "between", "the", "router", "and", "n", "ns" ]
[ "public", "int", "get", "num", "connections", "(", ")", "{", "return", "this", "connection", "manager", "get", "num", "connections", "(", ")", ";", "}" ]
[ "writes", "an", "attribute", "with", "the", "given", "integer", "value", "to", "the", "currently", "open", "xml", "element" ]
[ "public", "void", "write", "attribute", "(", "string", "name", ",", "int", "value", ")", "throws", "i", "o", "exception", "{", "write", "attribute", "without", "escaping", "(", "name", ",", "string", "value", "of", "(", "value", ")", ")", ";", "}" ]
[ "test", "request", "failures", "(", "failures", "before", "seq", "no", "generation", ")", "are", "not", "added", "as", "a", "noop", "to", "translog" ]
[ "public", "void", "test", "request", "failure", "replication", "(", ")", "throws", "exception", "{", "try", "(", "replication", "group", "shards", "=", "create", "group", "(", "0", ")", ")", "{", "shards", "start", "all", "(", ")", ";", "bulk", "item", "response", "response", "=", "shards", "index", "(", "new", "index", "request", "(", "index", "get", "name", "(", ")", ")", "id", "(", "\"", "1", "\"", ")", "source", "(", "\"", "{", "}", "\"", ",", "x", "content", "type", "json", ")", "version", "(", "2", ")", ")", ";", "assert", "true", "(", "response", "is", "failed", "(", ")", ")", ";", "assert", "that", "(", "response", "get", "failure", "(", ")", "get", "cause", "(", ")", ",", "instance", "of", "(", "version", "conflict", "engine", "exception", "class", ")", ")", ";", "shards", "assert", "all", "equal", "(", "0", ")", ";", "for", "(", "index", "shard", "index", "shard", ":", "shards", ")", "{", "assert", "that", "(", "index", "shard", "routing", "entry", "(", ")", "+", "\"", "has", "the", "wrong", "number", "of", "ops", "in", "the", "translog", "\"", ",", "index", "shard", "translog", "stats", "(", ")", "estimated", "number", "of", "operations", "(", ")", ",", "equal", "to", "(", "0", ")", ")", ";", "}", "/", "/", "add", "some", "replicas", "int", "n", "replica", "=", "random", "int", "between", "(", "1", ",", "3", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", "replica", ";", "i", "+", "+", ")", "{", "shards", "add", "replica", "(", ")", ";", "}", "shards", "start", "replicas", "(", "n", "replica", ")", ";", "response", "=", "shards", "index", "(", "new", "index", "request", "(", "index", "get", "name", "(", ")", ")", "id", "(", "\"", "1", "\"", ")", "source", "(", "\"", "{", "}", "\"", ",", "x", "content", "type", "json", ")", "version", "(", "2", ")", ")", ";", "assert", "true", "(", "response", "is", "failed", "(", ")", ")", ";", "assert", "that", "(", "response", "get", "failure", "(", ")", "get", "cause", "(", ")", ",", "instance", "of", "(", "version", "conflict", "engine", "exception", "class", ")", ")", ";", "shards", "assert", "all", "equal", "(", "0", ")", ";", "for", "(", "index", "shard", "index", "shard", ":", "shards", ")", "{", "assert", "that", "(", "index", "shard", "routing", "entry", "(", ")", "+", "\"", "has", "the", "wrong", "number", "of", "ops", "in", "the", "translog", "\"", ",", "index", "shard", "translog", "stats", "(", ")", "estimated", "number", "of", "operations", "(", ")", ",", "equal", "to", "(", "0", ")", ")", ";", "}", "}", "}" ]
[ "gets", "a", "view", "of", "this", "connection", "from", "the", "remote", "{", "@", "link", "endpoint", "}" ]
[ "endpoint", "<", "http", "2", "remote", "flow", "controller", ">", "remote", "(", ")", ";" ]
[ "called", "after", "all", "plugins", "have", "processed", "arguments", "and", "can", "be", "used", "to", "customize", "the", "java", "compiler", "context" ]
[ "public", "void", "initialize", "context", "(", "context", "context", ")", "{", "this", "context", "=", "context", ";", "}" ]
[ "tests", "for", "journal", "node", "addresses" ]
[ "public", "void", "test", "get", "journal", "nodes", "(", ")", "throws", "exception", "{", "final", "int", "ns", "count", "=", "3", ";", "final", "string", "journals", "base", "uri", "=", "\"", "qjournal", ":", "/", "/", "jn", "0", ":", "8020", ";", "jn", "1", ":", "8020", ";", "jn", "2", ":", "8020", "\"", ";", "setup", "static", "host", "resolution", "(", "ns", "count", ",", "\"", "jn", "\"", ")", ";", "/", "/", "with", "out", "name", "service", "id", "hdfs", "configuration", "conf", "=", "new", "hdfs", "configuration", "(", "false", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", ",", "journals", "base", "uri", "+", "\"", "/", "\"", ")", ";", "set", "<", "string", ">", "expected", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "expected", "add", "(", "\"", "jn", "0", "\"", ")", ";", "expected", "add", "(", "\"", "jn", "1", "\"", ")", ";", "expected", "add", "(", "\"", "jn", "2", "\"", ")", ";", "string", "expected", "1", "=", "\"", "\"", ";", "string", "builder", "buffer", "=", "new", "string", "builder", "(", ")", ";", "for", "(", "string", "val", ":", "expected", ")", "{", "if", "(", "buffer", "length", "(", ")", ">", "0", ")", "{", "buffer", "append", "(", "\"", "\"", ")", ";", "}", "buffer", "append", "(", "val", ")", ";", "}", "buffer", "append", "(", "system", "line", "separator", "(", ")", ")", ";", "expected", "1", "=", "buffer", "to", "string", "(", ")", ";", "set", "<", "string", ">", "actual", "=", "d", "f", "s", "util", "get", "journal", "node", "addresses", "(", "conf", ")", ";", "assert", "equals", "(", "expected", "to", "string", "(", ")", ",", "actual", "to", "string", "(", ")", ")", ";", "string", "actual", "1", "=", "get", "address", "list", "from", "tool", "(", "test", "type", "journalnode", ",", "conf", ",", "true", ")", ";", "assert", "equals", "(", "expected", "1", ",", "actual", "1", ")", ";", "conf", "clear", "(", ")", ";", "/", "/", "with", "out", "name", "service", "id", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", ",", "journals", "base", "uri", "+", "\"", "/", "\"", ")", ";", "actual", "=", "d", "f", "s", "util", "get", "journal", "node", "addresses", "(", "conf", ")", ";", "assert", "equals", "(", "expected", "to", "string", "(", ")", ",", "actual", "to", "string", "(", ")", ")", ";", "actual", "1", "=", "get", "address", "list", "from", "tool", "(", "test", "type", "journalnode", ",", "conf", ",", "true", ")", ";", "assert", "equals", "(", "expected", "1", ",", "actual", "1", ")", ";", "conf", "clear", "(", ")", ";", "/", "/", "federation", "with", "ha", ",", "but", "suffixed", "only", "with", "name", "service", "id", "setup", "name", "services", "(", "conf", ",", "ns", "count", ")", ";", "conf", "set", "(", "dfs", "ha", "namenodes", "key", "prefix", "+", "\"", "ns", "0", "\"", ",", "\"", "nn", "0", ",", "nn", "1", "\"", ")", ";", "conf", "set", "(", "dfs", "ha", "namenodes", "key", "prefix", "+", "\"", "ns", "1", "\"", ",", "\"", "nn", "0", ",", "nn", "1", "\"", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", "+", "\"", "ns", "0", "\"", ",", "journals", "base", "uri", "+", "\"", "/", "ns", "0", "\"", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", "+", "\"", "ns", "1", "\"", ",", "journals", "base", "uri", "+", "\"", "/", "ns", "1", "\"", ")", ";", "actual", "=", "d", "f", "s", "util", "get", "journal", "node", "addresses", "(", "conf", ")", ";", "assert", "equals", "(", "expected", "to", "string", "(", ")", ",", "actual", "to", "string", "(", ")", ")", ";", "expected", "1", "=", "get", "address", "list", "from", "tool", "(", "test", "type", "journalnode", ",", "conf", ",", "true", ")", ";", "assert", "equals", "(", "expected", "1", ",", "actual", "1", ")", ";", "conf", "clear", "(", ")", ";", "/", "/", "federation", "with", "ha", "setup", "name", "services", "(", "conf", ",", "ns", "count", ")", ";", "conf", "set", "(", "dfs", "ha", "namenodes", "key", "prefix", "+", "\"", "ns", "0", "\"", ",", "\"", "nn", "0", ",", "nn", "1", "\"", ")", ";", "conf", "set", "(", "dfs", "ha", "namenodes", "key", "prefix", "+", "\"", "ns", "1", "\"", ",", "\"", "nn", "0", ",", "nn", "1", "\"", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", "+", "\"", "ns", "0", "nn", "0", "\"", ",", "journals", "base", "uri", "+", "\"", "/", "ns", "0", "\"", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", "+", "\"", "ns", "0", "nn", "1", "\"", ",", "journals", "base", "uri", "+", "\"", "/", "ns", "0", "\"", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", "+", "\"", "ns", "1", "nn", "2", "\"", ",", "journals", "base", "uri", "+", "\"", "/", "ns", "1", "\"", ")", ";", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", "+", "\"", "ns", "1", "nn", "3", "\"", ",", "journals", "base", "uri", "+", "\"", "/", "ns", "1", "\"", ")", ";", "actual", "=", "d", "f", "s", "util", "get", "journal", "node", "addresses", "(", "conf", ")", ";", "assert", "equals", "(", "expected", "to", "string", "(", ")", ",", "actual", "to", "string", "(", ")", ")", ";", "actual", "1", "=", "get", "address", "list", "from", "tool", "(", "test", "type", "journalnode", ",", "conf", ",", "true", ")", ";", "assert", "equals", "(", "expected", "1", ",", "actual", "1", ")", ";", "conf", "clear", "(", ")", ";", "/", "/", "name", "service", "setup", ",", "but", "no", "journal", "node", "setup", "name", "services", "(", "conf", ",", "ns", "count", ")", ";", "expected", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "actual", "=", "d", "f", "s", "util", "get", "journal", "node", "addresses", "(", "conf", ")", ";", "assert", "equals", "(", "expected", "to", "string", "(", ")", ",", "actual", "to", "string", "(", ")", ")", ";", "actual", "1", "=", "system", "line", "separator", "(", ")", ";", "expected", "1", "=", "get", "address", "list", "from", "tool", "(", "test", "type", "journalnode", ",", "conf", ",", "true", ")", ";", "assert", "equals", "(", "expected", "1", ",", "actual", "1", ")", ";", "conf", "clear", "(", ")", ";", "/", "/", "name", "node", "edits", "dir", "is", "present", ",", "but", "set", "/", "/", "to", "location", "of", "storage", "shared", "directory", "conf", "set", "(", "dfs", "namenode", "shared", "edits", "dir", "key", ",", "\"", "file", ":", "/", "/", "/", "mnt", "/", "filer", "1", "/", "dfs", "/", "ha", "-", "name", "-", "dir", "-", "shared", "\"", ")", ";", "expected", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "actual", "=", "d", "f", "s", "util", "get", "journal", "node", "addresses", "(", "conf", ")", ";", "assert", "equals", "(", "expected", "to", "string", "(", ")", ",", "actual", "to", "string", "(", ")", ")", ";", "expected", "1", "=", "get", "address", "list", "from", "tool", "(", "test", "type", "journalnode", ",", "conf", ",", "true", ")", ";", "actual", "1", "=", "system", "line", "separator", "(", ")", ";", "assert", "equals", "(", "expected", "1", ",", "actual", "1", ")", ";", "conf", "clear", "(", ")", ";", "}" ]
[ "calculate", "against", "a", "snapshot", "path", "1", "create", "dirs", "foobar", "2", "take", "snapshot", "s", "1", "on", "foo", "3", "create", "a", "10", "byte", "file", "foobarbaz", "make", "sure", "for", "\"", "foobar", "\"", "and", "\"", "foo", "snapshots", "1bar", "\"", "have", "correct", "results", ":", "the", "1", "byte", "file", "is", "not", "included", "in", "snapshot", "s", "1", "4", "create", "another", "snapshot", ",", "append", "to", "the", "file", "foobarbaz", ",", "and", "make", "sure", "file", "count", ",", "directory", "count", "and", "file", "length", "is", "good", "5", "delete", "the", "file", ",", "ensure", "content", "summary", "output", "too" ]
[ "public", "void", "test", "get", "content", "summary", "(", ")", "throws", "i", "o", "exception", "{", "final", "path", "foo", "=", "new", "path", "(", "\"", "/", "foo", "\"", ")", ";", "final", "path", "bar", "=", "new", "path", "(", "foo", ",", "\"", "bar", "\"", ")", ";", "final", "path", "baz", "=", "new", "path", "(", "bar", ",", "\"", "baz", "\"", ")", ";", "final", "path", "qux", "=", "new", "path", "(", "bar", ",", "\"", "qux", "\"", ")", ";", "final", "path", "temp", "=", "new", "path", "(", "\"", "/", "temp", "\"", ")", ";", "dfs", "mkdirs", "(", "bar", ")", ";", "dfs", "mkdirs", "(", "temp", ")", ";", "dfs", "allow", "snapshot", "(", "foo", ")", ";", "dfs", "create", "snapshot", "(", "foo", ",", "\"", "s", "1", "\"", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "dfs", ",", "baz", ",", "10", ",", "replication", ",", "0l", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "dfs", ",", "qux", ",", "10", ",", "replication", ",", "0l", ")", ";", "content", "summary", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "bar", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "20", ",", "summary", "get", "length", "(", ")", ")", ";", "final", "path", "bar", "s", "1", "=", "snapshot", "test", "helper", "get", "snapshot", "path", "(", "foo", ",", "\"", "s", "1", "\"", ",", "\"", "bar", "\"", ")", ";", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "bar", "s", "1", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "0", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "0", ",", "summary", "get", "length", "(", ")", ")", ";", "/", "/", "also", "check", "/", "foo", "and", "/", "foo", "/", "snapshot", "/", "s", "1", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "foo", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "20", ",", "summary", "get", "length", "(", ")", ")", ";", "final", "path", "foo", "s", "1", "=", "snapshot", "test", "helper", "get", "snapshot", "root", "(", "foo", ",", "\"", "s", "1", "\"", ")", ";", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "foo", "s", "1", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "0", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "0", ",", "summary", "get", "length", "(", ")", ")", ";", "/", "/", "create", "a", "new", "snapshot", "s", "2", "and", "update", "the", "file", "dfs", "create", "snapshot", "(", "foo", ",", "\"", "s", "2", "\"", ")", ";", "d", "f", "s", "test", "util", "append", "file", "(", "dfs", ",", "baz", ",", "10", ")", ";", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "bar", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "30", ",", "summary", "get", "length", "(", ")", ")", ";", "final", "path", "foo", "s", "2", "=", "snapshot", "test", "helper", "get", "snapshot", "root", "(", "foo", ",", "\"", "s", "2", "\"", ")", ";", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "foo", "s", "2", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "20", ",", "summary", "get", "length", "(", ")", ")", ";", "cluster", "get", "name", "node", "rpc", "(", ")", "delete", "(", "baz", "to", "string", "(", ")", ",", "false", ")", ";", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "foo", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "0", ",", "summary", "get", "snapshot", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "summary", "get", "snapshot", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "20", ",", "summary", "get", "snapshot", "length", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "30", ",", "summary", "get", "length", "(", ")", ")", ";", "final", "path", "baz", "s", "1", "=", "snapshot", "test", "helper", "get", "snapshot", "path", "(", "foo", ",", "\"", "s", "1", "\"", ",", "\"", "bar", "/", "baz", "\"", ")", ";", "try", "{", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "baz", "s", "1", "to", "string", "(", ")", ")", ";", "assert", "fail", "(", "\"", "should", "get", "file", "not", "found", "exception", "\"", ")", ";", "}", "catch", "(", "file", "not", "found", "exception", "ignored", ")", "{", "}", "cluster", "get", "name", "node", "rpc", "(", ")", "rename", "(", "qux", "to", "string", "(", ")", ",", "\"", "/", "temp", "/", "qux", "\"", ")", ";", "summary", "=", "cluster", "get", "name", "node", "rpc", "(", ")", "get", "content", "summary", "(", "foo", "to", "string", "(", ")", ")", ";", "assert", "assert", "equals", "(", "0", ",", "summary", "get", "snapshot", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "snapshot", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "30", ",", "summary", "get", "snapshot", "length", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "directory", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "summary", "get", "file", "count", "(", ")", ")", ";", "assert", "assert", "equals", "(", "30", ",", "summary", "get", "length", "(", ")", ")", ";", "}" ]
[ "sets", "the", "repository", "names" ]
[ "public", "get", "snapshots", "request", "builder", "set", "repositories", "(", "string", "repositories", ")", "{", "request", "repositories", "(", "repositories", ")", ";", "return", "this", ";", "}" ]
[ "schedule", "replication", "work", "for", "a", "specified", "list", "of", "mis", "-", "replicated", "blocks", "and", "return", "total", "number", "of", "blocks", "scheduled", "for", "replication" ]
[ "public", "int", "process", "mis", "replicated", "blocks", "(", "list", "<", "block", "info", ">", "blocks", ")", "{", "int", "processed", "=", "0", ";", "iterator", "<", "block", "info", ">", "iter", "=", "blocks", "iterator", "(", ")", ";", "try", "{", "while", "(", "is", "populating", "repl", "queues", "(", ")", "&", "&", "namesystem", "is", "running", "(", ")", "&", "&", "!", "thread", "current", "thread", "(", ")", "is", "interrupted", "(", ")", "&", "&", "iter", "has", "next", "(", ")", ")", "{", "int", "limit", "=", "processed", "+", "num", "blocks", "per", "iteration", ";", "namesystem", "write", "lock", "interruptibly", "(", ")", ";", "try", "{", "while", "(", "iter", "has", "next", "(", ")", "&", "&", "processed", "<", "limit", ")", "{", "block", "info", "blk", "=", "iter", "next", "(", ")", ";", "mis", "replication", "result", "r", "=", "process", "mis", "replicated", "block", "(", "blk", ")", ";", "processed", "+", "+", ";", "log", "debug", "(", "\"", "block", "*", "process", "mis", "replicated", "blocks", ":", "\"", "+", "\"", "re", "-", "scanned", "block", "{", "}", ",", "result", "is", "{", "}", "\"", ",", "blk", ",", "r", ")", ";", "}", "}", "finally", "{", "namesystem", "write", "unlock", "(", ")", ";", "}", "}", "}", "catch", "(", "interrupted", "exception", "ex", ")", "{", "log", "info", "(", "\"", "caught", "interrupted", "exception", "while", "scheduling", "replication", "work", "\"", "+", "\"", "for", "mis", "-", "replicated", "blocks", "\"", ")", ";", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "}", "return", "processed", ";", "}" ]
[ "return", "the", "source", "id", "of", "this", "driver", "factory", "a", "driver", "factory", "doesn", "'", "t", "always", "have", "source", "node", "for", "example", ",", "values", "node", "is", "not", "a", "source", "node" ]
[ "public", "optional", "<", "plan", "node", "id", ">", "get", "source", "id", "(", ")", "{", "return", "source", "id", ";", "}" ]
[ "add", "some", "sample", "and", "a", "partial", "sum", "to", "the", "running", "stat", "note", ",", "minmax", "is", "not", "evaluated", "using", "this", "method" ]
[ "public", "sample", "stat", "add", "(", "long", "n", "samples", ",", "double", "x", ")", "{", "num", "samples", "+", "=", "n", "samples", ";", "total", "+", "=", "x", ";", "if", "(", "num", "samples", "=", "=", "1", ")", "{", "a", "0", "=", "a", "1", "=", "x", ";", "s", "0", "=", "0", "0", ";", "}", "else", "{", "/", "/", "the", "welford", "method", "for", "numerical", "stability", "a", "1", "=", "a", "0", "+", "(", "x", "-", "a", "0", ")", "/", "num", "samples", ";", "s", "1", "=", "s", "0", "+", "(", "x", "-", "a", "0", ")", "*", "(", "x", "-", "a", "1", ")", ";", "a", "0", "=", "a", "1", ";", "s", "0", "=", "s", "1", ";", "}", "return", "this", ";", "}" ]
[ "navigates", "to", "the", "album", "list", "page" ]
[ "public", "album", "list", "page", "navigate", "to", "page", "(", ")", "{", "try", "{", "page", "=", "this", "web", "client", "get", "page", "(", "page", "url", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "logger", "error", "(", "\"", "an", "error", "occured", "on", "navigate", "to", "page", "\"", ",", "e", ")", ";", "}", "return", "this", ";", "}" ]
[ "bind", "a", "{", "@", "code", "null", "}", "value", "to", "a", "parameter", "identified", "by", "its", "{", "@", "code", "index", "}" ]
[ "generic", "execute", "spec", "bind", "null", "(", "int", "index", ",", "class", "<", "?", ">", "type", ")", ";" ]
[ "gets", "the", "fraction", "of", "the", "total", "memory", "to", "be", "used", "for", "write", "buffers", "this", "only", "has", "an", "effect", "is", "either", "{", "@", "link", "#", "set", "use", "managed", "memory", "(", "boolean", ")", "}", "or", "{", "@", "link", "#", "set", "fixed", "memory", "per", "slot", "(", "memory", "size", ")", "}", "are", "set", "see", "{", "@", "link", "rocks", "d", "b", "options", "#", "write", "buffer", "ratio", "}", "for", "details" ]
[ "public", "double", "get", "write", "buffer", "ratio", "(", ")", "{", "return", "write", "buffer", "ratio", "!", "=", "null", "?", "write", "buffer", "ratio", ":", "rocks", "d", "b", "options", "write", "buffer", "ratio", "default", "value", "(", ")", ";", "}" ]
[ "gets", "the", "plugin", "'", "s", "interactive", "script" ]
[ "python", "script", "get", "interactive", "script", "(", ")", "{", "return", "interactive", "script", ";", "}" ]
[ "optionally", "add", "some", "actions", "to", "the", "project", "owning", "this", "build" ]
[ "collection", "<", "?", "extends", "action", ">", "get", "project", "actions", "(", ")", ";" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "boolean", "update", "(", "customer", "customer", ")", "throws", "exception", "{", "try", "(", "var", "connection", "=", "get", "connection", "(", ")", ";", "var", "statement", "=", "connection", "prepare", "statement", "(", "\"", "update", "customers", "set", "fname", "=", "?", ",", "lname", "=", "?", "where", "id", "=", "?", "\"", ")", ")", "{", "statement", "set", "string", "(", "1", ",", "customer", "get", "first", "name", "(", ")", ")", ";", "statement", "set", "string", "(", "2", ",", "customer", "get", "last", "name", "(", ")", ")", ";", "statement", "set", "int", "(", "3", ",", "customer", "get", "id", "(", ")", ")", ";", "return", "statement", "execute", "update", "(", ")", ">", "0", ";", "}", "catch", "(", "s", "q", "l", "exception", "ex", ")", "{", "throw", "new", "custom", "exception", "(", "ex", "get", "message", "(", ")", ",", "ex", ")", ";", "}", "}" ]
[ "method", "clean", "tree", "removes", "all", "empty", "fragments", "and", "empty", "modules" ]
[ "private", "void", "clean", "tree", "(", "program", "module", "module", ")", "throws", "not", "empty", "exception", "{", "if", "(", "module", "=", "=", "null", "|", "|", "module", "set", "contains", "(", "module", ")", ")", "{", "return", ";", "}", "module", "set", "add", "(", "module", ")", ";", "if", "(", "module", "get", "num", "children", "(", ")", "=", "=", "0", ")", "{", "return", ";", "}", "/", "/", "/", "for", "each", "child", ",", "if", "fragment", "and", "empty", "delete", "the", "child", "/", "/", "/", "otherwise", ",", "clean", "the", "child", "/", "/", "/", "if", "module", "has", "no", "children", ",", "delete", "it", "group", "[", "]", "children", "=", "module", "get", "children", "(", ")", ";", "for", "(", "group", "child", ":", "children", ")", "{", "if", "(", "child", "instanceof", "program", "module", ")", "{", "program", "module", "child", "module", "=", "(", "program", "module", ")", "child", ";", "clean", "tree", "(", "child", "module", ")", ";", "if", "(", "child", "module", "get", "num", "children", "(", ")", "=", "=", "0", ")", "{", "module", "remove", "child", "(", "child", "module", "get", "name", "(", ")", ")", ";", "}", "}", "else", "{", "program", "fragment", "fragment", "=", "(", "program", "fragment", ")", "child", ";", "if", "(", "fragment", "is", "empty", "(", ")", ")", "{", "module", "remove", "child", "(", "fragment", "get", "name", "(", ")", ")", ";", "}", "}", "}", "if", "(", "module", "get", "parents", "(", ")", "length", "!", "=", "0", ")", "{", "try", "{", "string", "num", "kids", "prefix", "=", "\"", "[", "\"", ";", "string", "current", "name", "=", "module", "get", "name", "(", ")", ";", "int", "prefix", "=", "current", "name", "index", "of", "(", "num", "kids", "prefix", ")", ";", "string", "base", "name", "=", "(", "prefix", "<", "0", ")", "?", "current", "name", ":", "current", "name", "substring", "(", "0", ",", "prefix", ")", ";", "module", "set", "name", "(", "base", "name", "+", "num", "kids", "prefix", "+", "module", "get", "num", "children", "(", ")", "+", "\"", "]", "\"", ")", ";", "}", "catch", "(", "duplicate", "name", "exception", "e", ")", "{", "}", "}", "}" ]
[ "returns", "the", "function", "start", "addresses", "of", "all", "functions", "where", "there", "is", "a", "difference", "in", "tags", "between", "program", "1", "and", "program", "2" ]
[ "private", "address", "set", "get", "function", "tag", "differences", "(", "address", "set", "view", "address", "set", ",", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", "{", "function", "iterator", "iter", "1", "=", "program", "1", "get", "listing", "(", ")", "get", "functions", "(", "address", "set", ",", "true", ")", ";", "address", "set", "address", "set", "2", "=", "diff", "utility", "get", "compatible", "address", "set", "(", "address", "set", ",", "program", "2", ")", ";", "function", "iterator", "iter", "2", "=", "program", "2", "get", "listing", "(", ")", "get", "functions", "(", "address", "set", "2", ",", "true", ")", ";", "return", "get", "object", "diffs", "(", "new", "function", "tag", "comparator", "(", "program", "1", ",", "program", "2", ")", ",", "new", "iterator", "wrapper", "(", "iter", "1", ")", ",", "new", "iterator", "wrapper", "(", "iter", "2", ")", ",", "monitor", ")", ";", "}" ]
[ "configure", "a", "base", "uri", "as", "described", "in", "{", "@", "link", "org", "springframework", "web", "reactive", "function", "client", "web", "client", "#", "create", "(", "string", ")", "web", "client", "create", "(", "string", ")", "}" ]
[ "builder", "base", "url", "(", "string", "base", "url", ")", ";" ]
[ "model", "tests", "for", "additional", "properties", "array" ]
[ "public", "void", "test", "additional", "properties", "array", "(", ")", "{", "/", "/", "todo", ":", "test", "additional", "properties", "array", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "asserts", "that", "permission", "is", "denied", "to", "the", "given", "fsuser", "for", "the", "given", "directory" ]
[ "private", "static", "void", "assert", "dir", "permission", "denied", "(", "file", "system", "fs", ",", "user", "group", "information", "user", ",", "path", "path", "to", "check", ")", "throws", "exception", "{", "try", "{", "fs", "list", "status", "(", "path", "to", "check", ")", ";", "fail", "(", "\"", "expected", "access", "control", "exception", "for", "user", "\"", "+", "user", "+", "\"", ",", "path", "=", "\"", "+", "path", "to", "check", ")", ";", "}", "catch", "(", "access", "control", "exception", "e", ")", "{", "/", "/", "expected", "}", "try", "{", "fs", "access", "(", "path", "to", "check", ",", "fs", "action", "read", ")", ";", "fail", "(", "\"", "the", "access", "call", "should", "have", "failed", "for", "\"", "+", "path", "to", "check", ")", ";", "}", "catch", "(", "access", "control", "exception", "e", ")", "{", "/", "/", "expected", "}", "}" ]
[ "get", "the", "message", "detailing", "the", "problem" ]
[ "public", "string", "get", "message", "(", ")", "{", "return", "this", "message", ";", "}" ]
[ "schedules", "a", "seek", "action", "to", "be", "executed" ]
[ "public", "builder", "seek", "(", "int", "window", "index", ",", "long", "position", "ms", ",", "boolean", "catch", "illegal", "seek", "exception", ")", "{", "return", "apply", "(", "new", "seek", "(", "tag", ",", "window", "index", ",", "position", "ms", ",", "catch", "illegal", "seek", "exception", ")", ")", ";", "}" ]
[ "reason", "why", "method", "is", "not", "camel", "is", "that", "the", "old", "version", "has", "released", ",", "and", "the", "method", "name", "will", "be", "as", "the", "key", "serialize", "and", "deserialize", "for", "json", "so", "ignore", "checkstyle" ]
[ "public", "int", "get", "def", "i", "p", "port", "(", ")", "{", "/", "/", "for", "compatibility", "with", "old", "entries", "return", "def", "ip", "port", "=", "=", "-", "1", "?", "def", "ckport", ":", "def", "ip", "port", ";", "}" ]
[ "this", "test", "validates", "the", "correctness", "of", "{", "@", "link", "r", "m", "web", "service", "protocol", "#", "update", "reservation", "(", ")", "}", "inside", "router" ]
[ "public", "void", "test", "update", "reservation", "x", "m", "l", "(", ")", "throws", "exception", "{", "/", "/", "test", "with", "a", "wrong", "http", "method", "client", "response", "bad", "response", "=", "perform", "call", "(", "rm", "web", "service", "path", "+", "reservation", "update", ",", "null", ",", "null", ",", "null", ",", "put", ")", ";", "assert", "equals", "(", "sc", "internal", "server", "error", ",", "bad", "response", "get", "status", "(", ")", ")", ";", "/", "/", "test", "with", "the", "correct", "http", "method", "string", "reservation", "id", "=", "get", "new", "reservation", "id", "(", ")", "get", "reservation", "id", "(", ")", ";", "reservation", "update", "request", "info", "context", "=", "new", "reservation", "update", "request", "info", "(", ")", ";", "context", "set", "reservation", "id", "(", "reservation", "id", ")", ";", "client", "response", "response", "=", "perform", "call", "(", "rm", "web", "service", "path", "+", "reservation", "update", ",", "null", ",", "null", ",", "context", ",", "post", ")", ";", "assert", "equals", "(", "sc", "bad", "request", ",", "response", "get", "status", "(", ")", ")", ";", "string", "ci", "=", "response", "get", "entity", "(", "string", "class", ")", ";", "assert", "not", "null", "(", "ci", ")", ";", "}" ]
[ "the", "name", "of", "a", "link", "action", "with", "this", "link", "target", "type", ",", "for", "the", "purpose", "of", "crosstool", "feature", "selection" ]
[ "public", "string", "get", "action", "name", "(", ")", "{", "return", "action", "name", ";", "}" ]
[ "recovers", "assigned", "numa", "resources" ]
[ "public", "synchronized", "void", "recover", "numa", "resource", "(", "container", "id", "container", "id", ")", "{", "container", "container", "=", "context", "get", "containers", "(", ")", "get", "(", "container", "id", ")", ";", "resource", "mappings", "resource", "mappings", "=", "container", "get", "resource", "mappings", "(", ")", ";", "list", "<", "serializable", ">", "assigned", "resources", "=", "resource", "mappings", "get", "assigned", "resources", "(", "numa", "resource", "type", ")", ";", "if", "(", "assigned", "resources", "size", "(", ")", "=", "=", "1", ")", "{", "numa", "resource", "allocation", "numa", "resource", "allocation", "=", "(", "numa", "resource", "allocation", ")", "assigned", "resources", "get", "(", "0", ")", ";", "for", "(", "entry", "<", "string", ",", "long", ">", "node", "and", "memory", ":", "numa", "resource", "allocation", "get", "node", "vs", "memory", "(", ")", "entry", "set", "(", ")", ")", "{", "numa", "node", "id", "vs", "resource", "get", "(", "node", "and", "memory", "get", "key", "(", ")", ")", "recover", "memory", "(", "container", "id", ",", "node", "and", "memory", "get", "value", "(", ")", ")", ";", "}", "for", "(", "entry", "<", "string", ",", "integer", ">", "node", "and", "cpus", ":", "numa", "resource", "allocation", "get", "node", "vs", "cpus", "(", ")", "entry", "set", "(", ")", ")", "{", "numa", "node", "id", "vs", "resource", "get", "(", "node", "and", "cpus", "get", "key", "(", ")", ")", "recover", "cpus", "(", "container", "id", ",", "node", "and", "cpus", "get", "value", "(", ")", ")", ";", "}", "}", "else", "{", "log", "error", "(", "\"", "unexpected", "number", ":", "\"", "+", "assigned", "resources", "size", "(", ")", "+", "\"", "of", "assigned", "numa", "resources", "for", "\"", "+", "container", "id", "+", "\"", "while", "recovering", "\"", ")", ";", "}", "}" ]
[ "increment", "an", "atomic", "long", "and", "return", "its", "value", ";", "null", "long", "is", "no", "-", "op", "returning", "0" ]
[ "private", "long", "inc", "atomic", "long", "(", "final", "atomic", "long", "a", "long", ",", "final", "long", "increment", ")", "{", "if", "(", "a", "long", "!", "=", "null", ")", "{", "/", "/", "optimization", ":", "zero", "is", "a", "get", "rather", "than", "add", "and", "get", "(", ")", "return", "increment", "!", "=", "0", "?", "a", "long", "add", "and", "get", "(", "increment", ")", ":", "a", "long", "get", "(", ")", ";", "}", "else", "{", "return", "0", ";", "}", "}" ]
[ "model", "tests", "for", "cat", "all", "of" ]
[ "public", "void", "test", "cat", "all", "of", "(", ")", "{", "/", "/", "todo", ":", "test", "cat", "all", "of", "}" ]
[ "given", "the", "first", "byte", "of", "a", "vintvlong", ",", "determine", "the", "sign" ]
[ "public", "static", "boolean", "is", "negative", "v", "int", "(", "byte", "value", ")", "{", "return", "value", "<", "-", "120", "|", "|", "(", "value", ">", "=", "-", "112", "&", "&", "value", "<", "0", ")", ";", "}" ]
[ "register", "a", "{", "@", "link", "dispatcher", "servlet", "}", "against", "the", "given", "servlet", "context", "this", "method", "will", "create", "a", "{", "@", "code", "dispatcher", "servlet", "}", "with", "the", "name", "returned", "by", "{", "@", "link", "#", "get", "servlet", "name", "(", ")", "}", ",", "initializing", "it", "with", "the", "application", "context", "returned", "from", "{", "@", "link", "#", "create", "servlet", "application", "context", "(", ")", "}", ",", "and", "mapping", "it", "to", "the", "patterns", "returned", "from", "{", "@", "link", "#", "get", "servlet", "mappings", "(", ")", "}", "further", "customization", "can", "be", "achieved", "by", "overriding", "{", "@", "link", "#", "customize", "registration", "(", "servlet", "registration", "dynamic", ")", "}", "or", "{", "@", "link", "#", "create", "dispatcher", "servlet", "(", "web", "application", "context", ")", "}" ]
[ "protected", "void", "register", "dispatcher", "servlet", "(", "servlet", "context", "servlet", "context", ")", "{", "string", "servlet", "name", "=", "get", "servlet", "name", "(", ")", ";", "assert", "has", "length", "(", "servlet", "name", ",", "\"", "get", "servlet", "name", "(", ")", "must", "not", "return", "null", "or", "empty", "\"", ")", ";", "web", "application", "context", "servlet", "app", "context", "=", "create", "servlet", "application", "context", "(", ")", ";", "assert", "not", "null", "(", "servlet", "app", "context", ",", "\"", "create", "servlet", "application", "context", "(", ")", "must", "not", "return", "null", "\"", ")", ";", "framework", "servlet", "dispatcher", "servlet", "=", "create", "dispatcher", "servlet", "(", "servlet", "app", "context", ")", ";", "assert", "not", "null", "(", "dispatcher", "servlet", ",", "\"", "create", "dispatcher", "servlet", "(", "web", "application", "context", ")", "must", "not", "return", "null", "\"", ")", ";", "dispatcher", "servlet", "set", "context", "initializers", "(", "get", "servlet", "application", "context", "initializers", "(", ")", ")", ";", "servlet", "registration", "dynamic", "registration", "=", "servlet", "context", "add", "servlet", "(", "servlet", "name", ",", "dispatcher", "servlet", ")", ";", "if", "(", "registration", "=", "=", "null", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "failed", "to", "register", "servlet", "with", "name", "'", "\"", "+", "servlet", "name", "+", "\"", "'", "\"", "+", "\"", "check", "if", "there", "is", "another", "servlet", "registered", "under", "the", "same", "name", "\"", ")", ";", "}", "registration", "set", "load", "on", "startup", "(", "1", ")", ";", "registration", "add", "mapping", "(", "get", "servlet", "mappings", "(", ")", ")", ";", "registration", "set", "async", "supported", "(", "is", "async", "supported", "(", ")", ")", ";", "filter", "[", "]", "filters", "=", "get", "servlet", "filters", "(", ")", ";", "if", "(", "!", "object", "utils", "is", "empty", "(", "filters", ")", ")", "{", "for", "(", "filter", "filter", ":", "filters", ")", "{", "register", "servlet", "filter", "(", "servlet", "context", ",", "filter", ")", ";", "}", "}", "customize", "registration", "(", "registration", ")", ";", "}" ]
[ "logs", "user", "into", "the", "system" ]
[ "public", "string", "login", "user", "(", "string", "username", ",", "string", "password", ")", "throws", "api", "exception", "{", "api", "response", "<", "string", ">", "local", "var", "response", "=", "login", "user", "with", "http", "info", "(", "username", ",", "password", ")", ";", "return", "local", "var", "response", "get", "data", "(", ")", ";", "}" ]
[ "called", "when", "a", "video", "renderer", "is", "enabled" ]
[ "default", "void", "on", "video", "enabled", "(", "event", "time", "event", "time", ",", "decoder", "counters", "counters", ")", "{", "}" ]
[ "returns", "a", "{", "@", "link", "network", "builder", "}", "for", "building", "undirected", "networks" ]
[ "public", "static", "network", "builder", "<", "object", ",", "object", ">", "undirected", "(", ")", "{", "return", "new", "network", "builder", "<", ">", "(", "false", ")", ";", "}" ]
[ "generate", "n", "random", "and", "different", "numbers", "within", "specified", "non", "-", "negative", "integer", "range" ]
[ "public", "static", "int", "[", "]", "random", "array", "(", "int", "min", ",", "int", "max", ",", "int", "n", ")", "{", "if", "(", "n", ">", "(", "max", "-", "min", "+", "1", ")", "|", "|", "max", "<", "min", "|", "|", "min", "<", "0", "|", "|", "max", "<", "0", ")", "{", "return", "null", ";", "}", "int", "[", "]", "result", "=", "new", "int", "[", "n", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", ";", "i", "+", "+", ")", "{", "result", "[", "i", "]", "=", "-", "1", ";", "}", "int", "count", "=", "0", ";", "while", "(", "count", "<", "n", ")", "{", "int", "num", "=", "(", "int", ")", "(", "math", "random", "(", ")", "*", "(", "max", "-", "min", ")", ")", "+", "min", ";", "boolean", "flag", "=", "true", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "n", ";", "j", "+", "+", ")", "{", "if", "(", "num", "=", "=", "result", "[", "j", "]", ")", "{", "flag", "=", "false", ";", "break", ";", "}", "}", "if", "(", "flag", ")", "{", "result", "[", "count", "]", "=", "num", ";", "count", "+", "+", ";", "}", "}", "return", "result", ";", "}" ]
[ "delegate", "method", "that", "executes", "the", "insert", "using", "the", "passed", "-", "in", "{", "@", "link", "sql", "parameter", "source", "}" ]
[ "protected", "int", "do", "execute", "(", "sql", "parameter", "source", "parameter", "source", ")", "{", "check", "compiled", "(", ")", ";", "list", "<", "object", ">", "values", "=", "match", "in", "parameter", "values", "with", "insert", "columns", "(", "parameter", "source", ")", ";", "return", "execute", "insert", "internal", "(", "values", ")", ";", "}" ]
[ "get", "number", "minimum", ":", "32", "1", "maximum", ":", "543", "2" ]
[ "public", "big", "decimal", "get", "number", "(", ")", "{", "return", "number", ";", "}" ]
[ "connects", "to", "cm", ",", "sets", "up", "container", "launch", "context", "for", "shell", "command", "and", "eventually", "dispatches", "the", "container", "start", "request", "to", "the", "cm" ]
[ "public", "void", "run", "(", ")", "{", "log", "info", "(", "\"", "setting", "up", "container", "launch", "context", "for", "containerid", "=", "\"", "+", "container", "get", "id", "(", ")", "+", "\"", ",", "is", "name", "node", "=", "\"", "+", "is", "name", "node", "launcher", ")", ";", "container", "launch", "context", "ctx", "=", "records", "new", "record", "(", "container", "launch", "context", "class", ")", ";", "/", "/", "set", "the", "environment", "ctx", "set", "environment", "(", "am", "options", "get", "shell", "env", "(", ")", ")", ";", "ctx", "set", "application", "a", "c", "ls", "(", "application", "acls", ")", ";", "try", "{", "ctx", "set", "local", "resources", "(", "get", "local", "resources", "(", ")", ")", ";", "ctx", "set", "commands", "(", "get", "container", "start", "command", "(", ")", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "log", "error", "(", "\"", "error", "while", "configuring", "container", "!", "\"", ",", "e", ")", ";", "return", ";", "}", "/", "/", "set", "up", "tokens", "for", "the", "container", "ctx", "set", "tokens", "(", "all", "tokens", "duplicate", "(", ")", ")", ";", "nm", "client", "async", "start", "container", "async", "(", "container", ",", "ctx", ")", ";", "log", "info", "(", "\"", "starting", "{", "}", ";", "track", "at", ":", "http", ":", "/", "/", "{", "}", "/", "node", "/", "containerlogs", "/", "{", "}", "/", "{", "}", "/", "\"", ",", "is", "name", "node", "launcher", "?", "\"", "namenode", "\"", ":", "\"", "datanode", "\"", ",", "container", "get", "node", "http", "address", "(", ")", ",", "container", "get", "id", "(", ")", ",", "launching", "user", ")", ";", "}" ]
[ "returns", "the", "population", "covariance", "of", "the", "values", "the", "count", "must", "be", "non", "-", "zero", "this", "is", "guaranteed", "to", "return", "zero", "if", "the", "dataset", "contains", "a", "single", "pair", "of", "finite", "values", "it", "is", "not", "guaranteed", "to", "return", "zero", "when", "the", "dataset", "consists", "of", "the", "same", "pair", "of", "values", "multiple", "times", ",", "due", "to", "numerical", "errors", "<", "h", "3", ">", "non", "-", "finite", "values", "<", "h", "3", ">", "if", "the", "dataset", "contains", "any", "non", "-", "finite", "values", "(", "{", "@", "link", "double", "#", "positive", "infinity", "}", ",", "{", "@", "link", "double", "#", "negative", "infinity", "}", ",", "or", "{", "@", "link", "double", "#", "na", "n", "}", ")", "then", "the", "result", "is", "{", "@", "link", "double", "#", "na", "n", "}" ]
[ "public", "double", "population", "covariance", "(", ")", "{", "check", "state", "(", "count", "(", ")", "!", "=", "0", ")", ";", "return", "sum", "of", "products", "of", "deltas", "/", "count", "(", ")", ";", "}" ]
[ "returns", "the", "unsigned", "{", "@", "code", "long", "}", "value", "represented", "by", "a", "string", "with", "the", "given", "radix", "<", "b", ">", "java", "8", "users", ":", "<", "b", ">", "use", "{", "@", "link", "long", "#", "parse", "unsigned", "long", "(", "string", ",", "int", ")", "}", "instead" ]
[ "public", "static", "long", "parse", "unsigned", "long", "(", "string", "string", ",", "int", "radix", ")", "{", "check", "not", "null", "(", "string", ")", ";", "if", "(", "string", "length", "(", ")", "=", "=", "0", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "empty", "string", "\"", ")", ";", "}", "if", "(", "radix", "<", "character", "min", "radix", "|", "|", "radix", ">", "character", "max", "radix", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "illegal", "radix", ":", "\"", "+", "radix", ")", ";", "}", "int", "max", "safe", "pos", "=", "parse", "overflow", "detection", "max", "safe", "digits", "[", "radix", "]", "-", "1", ";", "long", "value", "=", "0", ";", "for", "(", "int", "pos", "=", "0", ";", "pos", "<", "string", "length", "(", ")", ";", "pos", "+", "+", ")", "{", "int", "digit", "=", "character", "digit", "(", "string", "char", "at", "(", "pos", ")", ",", "radix", ")", ";", "if", "(", "digit", "=", "=", "-", "1", ")", "{", "throw", "new", "number", "format", "exception", "(", "string", ")", ";", "}", "if", "(", "pos", ">", "max", "safe", "pos", "&", "&", "parse", "overflow", "detection", "overflow", "in", "parse", "(", "value", ",", "digit", ",", "radix", ")", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "too", "large", "for", "unsigned", "long", ":", "\"", "+", "string", ")", ";", "}", "value", "=", "(", "value", "*", "radix", ")", "+", "digit", ";", "}", "return", "value", ";", "}" ]
[ "gets", "a", "32", "-", "bit", "integer", "at", "the", "specified", "absolute", "{", "@", "code", "index", "}", "in", "this", "buffer", "with", "little", "endian", "byte", "order", "this", "method", "does", "not", "modify", "{", "@", "code", "reader", "index", "}", "or", "{", "@", "code", "writer", "index", "}", "of", "this", "buffer" ]
[ "public", "abstract", "int", "get", "int", "l", "e", "(", "int", "index", ")", ";" ]
[ "returns", "the", "size", "of", "this", "map", "in", "bytes" ]
[ "public", "long", "size", "of", "(", ")", "{", "return", "instance", "size", "+", "size", "of", "size", "of", "(", "key", ")", "+", "size", "of", "size", "of", "(", "value", ")", "+", "size", "of", "size", "of", "(", "used", ")", ";", "}" ]
[ "reloads", "the", "configuration", "synchronously", "beware", "that", "this", "calls", "neither", "{", "@", "link", "item", "listener", "#", "on", "loaded", "}", "nor", "{", "@", "link", "initializer", "}", "s" ]
[ "public", "void", "reload", "(", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", ",", "reactor", "exception", "{", "queue", "save", "(", ")", ";", "execute", "reactor", "(", "null", ",", "load", "tasks", "(", ")", ")", ";", "/", "/", "ensure", "we", "reached", "the", "final", "initialization", "state", "log", "the", "error", "otherwise", "if", "(", "init", "level", "!", "=", "init", "milestone", "completed", ")", "{", "logger", "log", "(", "severe", ",", "\"", "jenkins", "initialization", "has", "not", "reached", "the", "completed", "initialization", "milestone", "after", "the", "configuration", "reload", "\"", "+", "\"", "current", "state", ":", "{", "0", "}", "\"", "+", "\"", "it", "may", "cause", "undefined", "incorrect", "behavior", "in", "jenkins", "plugin", "relying", "on", "this", "state", "\"", "+", "\"", "it", "is", "likely", "an", "issue", "with", "the", "initialization", "task", "graph", "\"", "+", "\"", "example", ":", "usage", "of", "@", "initializer", "(", "after", "=", "init", "milestone", "completed", ")", "in", "a", "plugin", "(", "jenkins", "-", "37759", ")", "\"", "+", "\"", "please", "create", "a", "bug", "in", "jenkins", "bugtracker", "\"", ",", "init", "level", ")", ";", "}", "user", "reload", "(", ")", ";", "queue", "load", "(", ")", ";", "web", "app", "get", "(", "servlet", "context", ")", "set", "app", "(", "this", ")", ";", "}" ]
[ "defines", "a", "helper", "method", "for", "asynchronously", "performing", "a", "request" ]
[ "protected", "final", "<", "req", "extends", "validatable", ",", "resp", ">", "cancellable", "perform", "request", "async", "and", "parse", "entity", "(", "req", "request", ",", "checked", "function", "<", "req", ",", "request", ",", "i", "o", "exception", ">", "request", "converter", ",", "request", "options", "options", ",", "checked", "function", "<", "x", "content", "parser", ",", "resp", ",", "i", "o", "exception", ">", "entity", "parser", ",", "action", "listener", "<", "resp", ">", "listener", ",", "set", "<", "integer", ">", "ignores", ")", "{", "return", "perform", "request", "async", "(", "request", ",", "request", "converter", ",", "options", ",", "response", "-", ">", "parse", "entity", "(", "response", "get", "entity", "(", ")", ",", "entity", "parser", ")", ",", "listener", ",", "ignores", ")", ";", "}" ]
[ "get", "a", "project", "archive", "file", "by", "project", "name", "and", "pathname" ]
[ "public", "domain", "file", "get", "project", "archive", "file", "(", "string", "project", "name", ",", "string", "pathname", ")", "{", "project", "project", "=", "tool", "get", "project", "manager", "(", ")", "get", "active", "project", "(", ")", ";", "if", "(", "project", "!", "=", "null", "&", "&", "project", "get", "name", "(", ")", "equals", "(", "project", "name", ")", ")", "{", "domain", "file", "df", "=", "project", "get", "project", "data", "(", ")", "get", "file", "(", "pathname", ")", ";", "if", "(", "df", "!", "=", "null", "&", "&", "data", "type", "archive", "content", "handler", "data", "type", "archive", "content", "type", "equals", "(", "df", "get", "content", "type", "(", ")", ")", ")", "{", "return", "df", ";", "}", "}", "return", "null", ";", "}" ]
[ "convert", "an", "opaque", "time", "-", "stamp", "returned", "by", "current", "time", "(", ")", "into", "an", "elapsed", "time", "in", "milliseconds", ",", "based", "on", "the", "current", "instant", "in", "time" ]
[ "static", "long", "elapsed", "millis", "(", "long", "start", "time", ")", "{", "return", "clock", "elapsed", "millis", "0", "(", "start", "time", ")", ";", "}" ]
[ "creates", "a", "random", "string", "whose", "length", "is", "between", "the", "inclusive", "minimum", "and", "the", "exclusive", "maximum", "characters", "will", "be", "chosen", "from", "the", "set", "of", "latin", "alphabetic", "characters", "(", "a", "-", "z", ",", "a", "-", "z", ")" ]
[ "public", "static", "string", "random", "alphabetic", "(", "final", "int", "min", "length", "inclusive", ",", "final", "int", "max", "length", "exclusive", ")", "{", "return", "random", "alphabetic", "(", "next", "int", "(", "min", "length", "inclusive", ",", "max", "length", "exclusive", ")", ")", ";", "}" ]
[ "process", "this", "section" ]
[ "void", "process", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "creates", "a", "new", "client", "-", "side", "{", "@", "link", "ssl", "context", "}" ]
[ "public", "static", "ssl", "context", "new", "client", "context", "(", "ssl", "provider", "provider", ",", "file", "trust", "cert", "collection", "file", ",", "trust", "manager", "factory", "trust", "manager", "factory", ",", "file", "key", "cert", "chain", "file", ",", "file", "key", "file", ",", "string", "key", "password", ",", "key", "manager", "factory", "key", "manager", "factory", ",", "iterable", "<", "string", ">", "ciphers", ",", "cipher", "suite", "filter", "cipher", "filter", ",", "application", "protocol", "config", "apn", ",", "long", "session", "cache", "size", ",", "long", "session", "timeout", ")", "throws", "s", "s", "l", "exception", "{", "try", "{", "return", "new", "client", "context", "internal", "(", "provider", ",", "null", ",", "to", "x", "5", "0", "9", "certificates", "(", "trust", "cert", "collection", "file", ")", ",", "trust", "manager", "factory", ",", "to", "x", "5", "0", "9", "certificates", "(", "key", "cert", "chain", "file", ")", ",", "to", "private", "key", "(", "key", "file", ",", "key", "password", ")", ",", "key", "password", ",", "key", "manager", "factory", ",", "ciphers", ",", "cipher", "filter", ",", "apn", ",", "null", ",", "session", "cache", "size", ",", "session", "timeout", ",", "false", ",", "key", "store", "get", "default", "type", "(", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "if", "(", "e", "instanceof", "s", "s", "l", "exception", ")", "{", "throw", "(", "s", "s", "l", "exception", ")", "e", ";", "}", "throw", "new", "s", "s", "l", "exception", "(", "\"", "failed", "to", "initialize", "the", "client", "-", "side", "ssl", "context", "\"", ",", "e", ")", ";", "}", "}" ]
[ "returns", "the", "magic", "number" ]
[ "public", "short", "e", "magic", "(", ")", "{", "return", "e", "magic", ";", "}" ]
[ "convenience", "method", "to", "build", "and", "return", "a", "new", "{", "@", "link", "script", "metadata", "}", "adding", "the", "specified", "stored", "script" ]
[ "static", "script", "metadata", "put", "stored", "script", "(", "script", "metadata", "previous", ",", "string", "id", ",", "stored", "script", "source", "source", ")", "{", "builder", "builder", "=", "new", "builder", "(", "previous", ")", ";", "builder", "store", "script", "(", "id", ",", "source", ")", ";", "return", "builder", "build", "(", ")", ";", "}" ]
[ "it", "will", "be", "removed", "at", "4", "4", "0", "cause", "for", "exception", "handling", "and", "the", "wrong", "semantics", "of", "timeout", "a", "new", "one", "will", "be", "provided", "in", "next", "version" ]
[ "public", "void", "send", "(", "final", "message", "msg", ",", "final", "message", "queue", "selector", "selector", ",", "final", "object", "arg", ",", "final", "send", "callback", "send", "callback", ",", "final", "long", "timeout", ")", "throws", "m", "q", "client", "exception", ",", "remoting", "exception", ",", "interrupted", "exception", "{", "final", "long", "begin", "start", "time", "=", "system", "current", "time", "millis", "(", ")", ";", "executor", "service", "executor", "=", "this", "get", "async", "sender", "executor", "(", ")", ";", "try", "{", "executor", "submit", "(", "new", "runnable", "(", ")", "{", "@", "override", "public", "void", "run", "(", ")", "{", "long", "cost", "time", "=", "system", "current", "time", "millis", "(", ")", "-", "begin", "start", "time", ";", "if", "(", "timeout", ">", "cost", "time", ")", "{", "try", "{", "try", "{", "send", "select", "impl", "(", "msg", ",", "selector", ",", "arg", ",", "communication", "mode", "async", ",", "send", "callback", ",", "timeout", "-", "cost", "time", ")", ";", "}", "catch", "(", "m", "q", "broker", "exception", "e", ")", "{", "throw", "new", "m", "q", "client", "exception", "(", "\"", "unknownn", "exception", "\"", ",", "e", ")", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "send", "callback", "on", "exception", "(", "e", ")", ";", "}", "}", "else", "{", "send", "callback", "on", "exception", "(", "new", "remoting", "too", "much", "request", "exception", "(", "\"", "call", "timeout", "\"", ")", ")", ";", "}", "}", "}", ")", ";", "}", "catch", "(", "rejected", "execution", "exception", "e", ")", "{", "throw", "new", "m", "q", "client", "exception", "(", "\"", "exector", "rejected", "\"", ",", "e", ")", ";", "}", "}" ]
[ "initializes", "the", "authentication", "filter", "and", "signer", "secret", "provider", "it", "instantiates", "and", "initializes", "the", "specified", "{", "@", "link", "authentication", "handler", "}" ]
[ "public", "void", "init", "(", "filter", "config", "filter", "config", ")", "throws", "servlet", "exception", "{", "string", "config", "prefix", "=", "filter", "config", "get", "init", "parameter", "(", "config", "prefix", ")", ";", "config", "prefix", "=", "(", "config", "prefix", "!", "=", "null", ")", "?", "config", "prefix", "+", "\"", "\"", ":", "\"", "\"", ";", "config", "=", "get", "configuration", "(", "config", "prefix", ",", "filter", "config", ")", ";", "string", "auth", "handler", "name", "=", "config", "get", "property", "(", "auth", "type", ",", "null", ")", ";", "string", "auth", "handler", "class", "name", ";", "if", "(", "auth", "handler", "name", "=", "=", "null", ")", "{", "throw", "new", "servlet", "exception", "(", "\"", "authentication", "type", "must", "be", "specified", ":", "\"", "+", "pseudo", "authentication", "handler", "type", "+", "\"", "|", "\"", "+", "kerberos", "authentication", "handler", "type", "+", "\"", "|", "<", "class", ">", "\"", ")", ";", "}", "auth", "handler", "class", "name", "=", "authentication", "handler", "util", "get", "authentication", "handler", "class", "name", "(", "auth", "handler", "name", ")", ";", "max", "inactive", "interval", "=", "long", "parse", "long", "(", "config", "get", "property", "(", "auth", "token", "max", "inactive", "interval", ",", "\"", "-", "1", "\"", ")", ")", ";", "/", "/", "by", "default", ",", "disable", "if", "(", "max", "inactive", "interval", ">", "0", ")", "{", "max", "inactive", "interval", "*", "=", "1000", ";", "}", "validity", "=", "long", "parse", "long", "(", "config", "get", "property", "(", "auth", "token", "validity", ",", "\"", "36000", "\"", ")", ")", "*", "1000", ";", "/", "/", "10", "hours", "initialize", "secret", "provider", "(", "filter", "config", ")", ";", "initialize", "auth", "handler", "(", "auth", "handler", "class", "name", ",", "filter", "config", ")", ";", "cookie", "domain", "=", "config", "get", "property", "(", "cookie", "domain", ",", "null", ")", ";", "cookie", "path", "=", "config", "get", "property", "(", "cookie", "path", ",", "null", ")", ";", "is", "cookie", "persistent", "=", "boolean", "parse", "boolean", "(", "config", "get", "property", "(", "cookie", "persistent", ",", "\"", "false", "\"", ")", ")", ";", "}" ]
[ "called", "to", "determine", "if", "a", "resolver", "instance", "is", "able", "to", "access", "a", "specified", "property", "on", "a", "specified", "target", "object" ]
[ "boolean", "can", "read", "(", "evaluation", "context", "context", ",", "@", "nullable", "object", "target", ",", "string", "name", ")", "throws", "access", "exception", ";" ]
[ "returns", "a", "fully", "-", "populated", "{", "@", "link", "recipient", "}", "and", "associates", "it", "with", "the", "provided", "username" ]
[ "public", "static", "@", "non", "null", "recipient", "external", "username", "(", "@", "non", "null", "context", "context", ",", "@", "non", "null", "uuid", "uuid", ",", "@", "non", "null", "string", "username", ")", "{", "recipient", "recipient", "=", "external", "push", "(", "context", ",", "uuid", ",", "null", ",", "false", ")", ";", "database", "factory", "get", "recipient", "database", "(", "context", ")", "set", "username", "(", "recipient", "get", "id", "(", ")", ",", "username", ")", ";", "return", "recipient", ";", "}" ]
[ "closes", "the", "zip", "file", "closing", "this", "zip", "file", "will", "close", "all", "of", "the", "input", "streams", "previously", "returned", "by", "invocations", "of", "the", "{", "@", "link", "#", "get", "raw", "input", "stream", "(", "zip", "file", "entry", ")", "}", "method" ]
[ "@", "override", "public", "void", "close", "(", ")", "throws", "i", "o", "exception", "{", "in", "close", "(", ")", ";", "}" ]
[ "loads", "(", "but", "doesn", "'", "t", "link", "or", "initialize", ")", "the", "class" ]
[ "public", "class", "<", "?", ">", "load", "(", ")", "{", "try", "{", "return", "loader", "load", "class", "(", "class", "name", ")", ";", "}", "catch", "(", "class", "not", "found", "exception", "e", ")", "{", "/", "/", "shouldn", "'", "t", "happen", ",", "since", "the", "class", "name", "is", "read", "from", "the", "class", "path", "throw", "new", "illegal", "state", "exception", "(", "e", ")", ";", "}", "}" ]
[ "quick", "validation", "on", "the", "input", "to", "check", "some", "obvious", "fail", "conditions", "(", "fail", "fast", ")", "the", "input", "and", "returns", "the", "appropriate", "{", "@", "link", "plan", "}", "associated", "with", "the", "specified", "{", "@", "link", "queue", "}", "or", "throws", "an", "exception", "message", "illustrating", "the", "details", "of", "any", "validation", "check", "failures" ]
[ "public", "plan", "validate", "reservation", "delete", "request", "(", "reservation", "system", "reservation", "system", ",", "reservation", "delete", "request", "request", ")", "throws", "yarn", "exception", "{", "return", "validate", "reservation", "(", "reservation", "system", ",", "request", "get", "reservation", "id", "(", ")", ",", "audit", "constants", "delete", "reservation", "request", ")", ";", "}" ]
[ "tests", "oauthbearer", "client", "and", "server", "channels" ]
[ "public", "void", "test", "valid", "sasl", "oauth", "bearer", "mechanism", "(", ")", "throws", "exception", "{", "string", "node", "=", "\"", "0", "\"", ";", "security", "protocol", "security", "protocol", "=", "security", "protocol", "sasl", "ssl", ";", "configure", "mechanisms", "(", "\"", "oauthbearer", "\"", ",", "arrays", "as", "list", "(", "\"", "oauthbearer", "\"", ")", ")", ";", "server", "=", "create", "echo", "server", "(", "security", "protocol", ")", ";", "create", "and", "check", "client", "connection", "(", "security", "protocol", ",", "node", ")", ";", "}" ]
[ "get", "enum", "string" ]
[ "public", "enum", "string", "enum", "get", "enum", "string", "(", ")", "{", "return", "enum", "string", ";", "}" ]
[ "return", "the", "path", "within", "the", "enclosing", "'", "context", "'", "this", "is", "typically", "path", "relative", "to", "a", "context", "-", "specific", "root", "directory", ",", "e", "g", "a", "servlet", "context", "root", "or", "a", "portlet", "context", "root" ]
[ "string", "get", "path", "within", "context", "(", ")", ";" ]
[ "this", "resolver", "supports", "i", "1", "8n", ",", "so", "cache", "keys", "should", "contain", "the", "locale" ]
[ "protected", "object", "get", "cache", "key", "(", "string", "view", "name", ",", "locale", "locale", ")", "{", "return", "view", "name", "+", "'", "'", "+", "locale", ";", "}" ]
[ "returns", "the", "list", "of", "options", "with", "the", "values", "as", "they", "were", "set", "in", "this", "dialog" ]
[ "public", "list", "<", "option", ">", "get", "options", "(", ")", "{", "return", "options", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "executes", "the", "given", "{", "@", "link", "read", "operation", "}", "against", "the", "{", "@", "link", "readable", "buffer", "}", "s", "required", "to", "satisfy", "the", "requested", "{", "@", "code", "length", "}" ]
[ "private", "void", "execute", "(", "read", "operation", "op", ",", "int", "length", ")", "{", "check", "readable", "(", "length", ")", ";", "if", "(", "!", "buffers", "is", "empty", "(", ")", ")", "{", "advance", "buffer", "if", "necessary", "(", ")", ";", "}", "for", "(", ";", "length", ">", "0", "&", "&", "!", "buffers", "is", "empty", "(", ")", ";", "advance", "buffer", "if", "necessary", "(", ")", ")", "{", "readable", "buffer", "buffer", "=", "buffers", "peek", "(", ")", ";", "int", "length", "to", "copy", "=", "math", "min", "(", "length", ",", "buffer", "readable", "bytes", "(", ")", ")", ";", "/", "/", "perform", "the", "read", "operation", "for", "this", "buffer", "op", "read", "(", "buffer", ",", "length", "to", "copy", ")", ";", "if", "(", "op", "is", "error", "(", ")", ")", "{", "return", ";", "}", "length", "-", "=", "length", "to", "copy", ";", "readable", "bytes", "-", "=", "length", "to", "copy", ";", "}", "if", "(", "length", ">", "0", ")", "{", "/", "/", "should", "never", "get", "here", "throw", "new", "assertion", "error", "(", "\"", "failed", "executing", "read", "operation", "\"", ")", ";", "}", "}" ]
[ "requirement", ":", "noview" ]
[ "public", "vh", "get", "no", "view", "holder", "(", "view", "view", ")", "{", "return", "null", ";", "}" ]
[ "replace", "the", "numbered", "parameters", "of", "the", "form", "$", "n", "where", "n", "is", "from", "0", "to", "the", "length", "of", "params", "-", "1", "normal", "text", "is", "copied", "directly", "and", "$", "n", "is", "replaced", "by", "the", "corresponding", "parameter" ]
[ "static", "string", "replace", "parameters", "(", "string", "format", ",", "string", "[", "]", "params", ")", "throws", "bad", "format", "string", "{", "matcher", "match", "=", "parameter", "pattern", "matcher", "(", "format", ")", ";", "int", "start", "=", "0", ";", "string", "builder", "result", "=", "new", "string", "builder", "(", ")", ";", "while", "(", "start", "<", "format", "length", "(", ")", "&", "&", "match", "find", "(", "start", ")", ")", "{", "result", "append", "(", "match", "group", "(", "1", ")", ")", ";", "string", "param", "num", "=", "match", "group", "(", "3", ")", ";", "if", "(", "param", "num", "!", "=", "null", ")", "{", "try", "{", "int", "num", "=", "integer", "parse", "int", "(", "param", "num", ")", ";", "if", "(", "num", "<", "0", "|", "|", "num", ">", "=", "params", "length", ")", "{", "throw", "new", "bad", "format", "string", "(", "\"", "index", "\"", "+", "num", "+", "\"", "from", "\"", "+", "format", "+", "\"", "is", "outside", "of", "the", "valid", "range", "0", "to", "\"", "+", "(", "params", "length", "-", "1", ")", ")", ";", "}", "result", "append", "(", "params", "[", "num", "]", ")", ";", "}", "catch", "(", "number", "format", "exception", "nfe", ")", "{", "throw", "new", "bad", "format", "string", "(", "\"", "bad", "format", "in", "username", "mapping", "in", "\"", "+", "param", "num", ",", "nfe", ")", ";", "}", "}", "start", "=", "match", "end", "(", ")", ";", "}", "return", "result", "to", "string", "(", ")", ";", "}" ]
[ "get", "the", "result", "code", "'", "s", "message" ]
[ "string", "get", "code", "msg", "(", ")", ";" ]
[ "increment", "the", "statistic", "gauge", "and", "the", "local", "i", "o", "statistics", "equivalent" ]
[ "private", "long", "inc", "all", "gauges", "(", "statistic", "statistic", ",", "long", "v", ")", "{", "increment", "gauge", "(", "statistic", ",", "v", ")", ";", "return", "inc", "gauge", "(", "statistic", "get", "symbol", "(", ")", ",", "v", ")", ";", "}" ]
[ "write", "an", "operation", "to", "the", "edit", "log", "do", "not", "sync", "to", "persistent", "store", "yet" ]
[ "synchronized", "void", "log", "edit", "(", "final", "int", "length", ",", "final", "byte", "[", "]", "data", ")", "{", "long", "start", "=", "begin", "transaction", "(", ")", ";", "try", "{", "edit", "log", "stream", "write", "raw", "(", "data", ",", "0", ",", "length", ")", ";", "}", "catch", "(", "i", "o", "exception", "ex", ")", "{", "/", "/", "all", "journals", "have", "failed", ",", "it", "will", "be", "handled", "in", "log", "sync", "}", "end", "transaction", "(", "start", ")", ";", "}" ]
[ "wrapper", "of", "{", "@", "link", "pl", "droidsonroids", "gif", "gif", "drawable", "#", "gif", "drawable", "(", "android", "content", "content", "resolver", ",", "android", "net", "uri", ")", "}" ]
[ "public", "t", "from", "(", "content", "resolver", "content", "resolver", ",", "uri", "uri", ")", "{", "m", "input", "source", "=", "new", "input", "source", "uri", "source", "(", "content", "resolver", ",", "uri", ")", ";", "return", "self", "(", ")", ";", "}" ]
[ "create", "a", "new", "{", "@", "link", "future", "}", "which", "is", "marked", "as", "failed", "already", "so", "{", "@", "link", "future", "#", "is", "success", "(", ")", "}", "will", "return", "{", "@", "code", "false", "}", "all", "{", "@", "link", "future", "listener", "}", "added", "to", "it", "will", "be", "notified", "directly", "also", "every", "call", "of", "blocking", "methods", "will", "just", "return", "without", "blocking" ]
[ "<", "v", ">", "future", "<", "v", ">", "new", "failed", "future", "(", "throwable", "cause", ")", ";" ]
[ "visit", "a", "parse", "tree", "produced", "by", "{", "@", "link", "painless", "parser", "#", "type", "}" ]
[ "t", "visit", "type", "(", "painless", "parser", "type", "context", "ctx", ")", ";" ]
[ "returns", "true", "if", "the", "dialog", "associated", "with", "the", "task", "is", "modal" ]
[ "public", "boolean", "is", "modal", "(", ")", "{", "return", "is", "modal", ";", "}" ]
[ "this", "implementation", "returns", "the", "underlying", "file", "'", "s", "length" ]
[ "public", "long", "content", "length", "(", ")", "throws", "i", "o", "exception", "{", "return", "files", "size", "(", "this", "path", ")", ";", "}" ]
[ "test", "that", "a", "document", "which", "is", "indexed", "on", "the", "majority", "side", "of", "a", "partition", ",", "is", "available", "from", "the", "minority", "side", ",", "once", "the", "partition", "is", "healed" ]
[ "public", "void", "test", "rejoin", "document", "exists", "in", "all", "shard", "copies", "(", ")", "throws", "exception", "{", "list", "<", "string", ">", "nodes", "=", "start", "cluster", "(", "3", ")", ";", "assert", "acked", "(", "prepare", "create", "(", "\"", "test", "\"", ")", "set", "settings", "(", "settings", "builder", "(", ")", "put", "(", "index", "metadata", "setting", "number", "of", "shards", ",", "1", ")", "put", "(", "index", "metadata", "setting", "number", "of", "replicas", ",", "2", ")", ")", "get", "(", ")", ")", ";", "ensure", "green", "(", "\"", "test", "\"", ")", ";", "nodes", "=", "new", "array", "list", "<", ">", "(", "nodes", ")", ";", "collections", "shuffle", "(", "nodes", ",", "random", "(", ")", ")", ";", "string", "isolated", "node", "=", "nodes", "get", "(", "0", ")", ";", "string", "not", "isolated", "node", "=", "nodes", "get", "(", "1", ")", ";", "two", "partitions", "partitions", "=", "isolate", "node", "(", "isolated", "node", ")", ";", "network", "disruption", "scheme", "=", "add", "random", "disruption", "type", "(", "partitions", ")", ";", "scheme", "start", "disrupting", "(", ")", ";", "ensure", "stable", "cluster", "(", "2", ",", "not", "isolated", "node", ")", ";", "assert", "false", "(", "client", "(", "not", "isolated", "node", ")", "admin", "(", ")", "cluster", "(", ")", "prepare", "health", "(", "\"", "test", "\"", ")", "set", "wait", "for", "yellow", "status", "(", ")", "get", "(", ")", "is", "timed", "out", "(", ")", ")", ";", "index", "response", "index", "response", "=", "internal", "cluster", "(", ")", "client", "(", "not", "isolated", "node", ")", "prepare", "index", "(", "\"", "test", "\"", ")", "set", "source", "(", "\"", "field", "\"", ",", "\"", "value", "\"", ")", "get", "(", ")", ";", "assert", "that", "(", "index", "response", "get", "version", "(", ")", ",", "equal", "to", "(", "1l", ")", ")", ";", "logger", "info", "(", "\"", "verifying", "if", "document", "exists", "via", "node", "[", "{", "}", "]", "\"", ",", "not", "isolated", "node", ")", ";", "get", "response", "get", "response", "=", "internal", "cluster", "(", ")", "client", "(", "not", "isolated", "node", ")", "prepare", "get", "(", "\"", "test", "\"", ",", "index", "response", "get", "id", "(", ")", ")", "set", "preference", "(", "\"", "local", "\"", ")", "get", "(", ")", ";", "assert", "that", "(", "get", "response", "is", "exists", "(", ")", ",", "is", "(", "true", ")", ")", ";", "assert", "that", "(", "get", "response", "get", "version", "(", ")", ",", "equal", "to", "(", "1l", ")", ")", ";", "assert", "that", "(", "get", "response", "get", "id", "(", ")", ",", "equal", "to", "(", "index", "response", "get", "id", "(", ")", ")", ")", ";", "scheme", "stop", "disrupting", "(", ")", ";", "ensure", "stable", "cluster", "(", "3", ")", ";", "ensure", "green", "(", "\"", "test", "\"", ")", ";", "for", "(", "string", "node", ":", "nodes", ")", "{", "logger", "info", "(", "\"", "verifying", "if", "document", "exists", "after", "isolating", "node", "[", "{", "}", "]", "via", "node", "[", "{", "}", "]", "\"", ",", "isolated", "node", ",", "node", ")", ";", "get", "response", "=", "internal", "cluster", "(", ")", "client", "(", "node", ")", "prepare", "get", "(", "\"", "test", "\"", ",", "index", "response", "get", "id", "(", ")", ")", "set", "preference", "(", "\"", "local", "\"", ")", "get", "(", ")", ";", "assert", "that", "(", "get", "response", "is", "exists", "(", ")", ",", "is", "(", "true", ")", ")", ";", "assert", "that", "(", "get", "response", "get", "version", "(", ")", ",", "equal", "to", "(", "1l", ")", ")", ";", "assert", "that", "(", "get", "response", "get", "id", "(", ")", ",", "equal", "to", "(", "index", "response", "get", "id", "(", ")", ")", ")", ";", "}", "}" ]
[ "adds", "the", "default", "values", "available", "through", "the", "rule", "'", "s", "context" ]
[ "static", "builder", "from", "rule", "context", "(", "rule", "context", "rule", "context", ")", "{", "builder", "builder", "=", "new", "builder", "(", ")", ";", "add", "headers", "from", "rule", "context", "(", "builder", ",", "rule", "context", ")", ";", "add", "includes", "from", "rule", "context", "(", "builder", ",", "rule", "context", ")", ";", "add", "sdk", "attributes", "from", "rule", "context", "(", "builder", ",", "rule", "context", ")", ";", "add", "compile", "options", "from", "rule", "context", "(", "builder", ",", "rule", "context", ")", ";", "add", "module", "options", "from", "rule", "context", "(", "builder", ",", "rule", "context", ")", ";", "return", "builder", ";", "}" ]
[ "each", "test", "is", "assumed", "to", "clean", "up", "all", "db", "content", "it", "entered", "after", "a", "test", "method", "executed", ",", "this", "method", "scans", "all", "tables", "to", "see", "if", "the", "db", "is", "completely", "clean", "it", "throws", "assertion", "failed", "in", "case", "the", "db", "is", "not", "clean", "if", "the", "db", "is", "not", "clean", ",", "it", "is", "cleaned", "by", "performing", "a", "create", "a", "drop" ]
[ "public", "static", "void", "assert", "and", "ensure", "clean", "db", "(", "process", "engine", "process", "engine", ")", "{", "log", "debug", "(", "\"", "verifying", "that", "db", "is", "clean", "after", "test", "\"", ")", ";", "map", "<", "string", ",", "long", ">", "table", "counts", "=", "process", "engine", "get", "management", "service", "(", ")", "get", "table", "count", "(", ")", ";", "string", "builder", "output", "message", "=", "new", "string", "builder", "(", ")", ";", "for", "(", "string", "table", "name", ":", "table", "counts", "key", "set", "(", ")", ")", "{", "if", "(", "!", "tablenames", "excluded", "from", "db", "clean", "check", "contains", "(", "table", "name", ")", ")", "{", "long", "count", "=", "table", "counts", "get", "(", "table", "name", ")", ";", "if", "(", "count", "!", "=", "0l", ")", "{", "output", "message", "append", "(", "\"", "\"", ")", "append", "(", "table", "name", ")", "append", "(", "\"", ":", "\"", ")", "append", "(", "count", ")", "append", "(", "\"", "record", "(", "s", ")", "\"", ")", ";", "}", "}", "}", "if", "(", "output", "message", "length", "(", ")", ">", "0", ")", "{", "output", "message", "insert", "(", "0", ",", "\"", "db", "not", "clean", ":", "\\", "n", "\"", ")", ";", "log", "error", "(", "empty", "line", ")", ";", "log", "error", "(", "output", "message", "to", "string", "(", ")", ")", ";", "(", "(", "process", "engine", "impl", ")", "process", "engine", ")", "get", "process", "engine", "configuration", "(", ")", "get", "command", "executor", "(", ")", "execute", "(", "new", "command", "<", "object", ">", "(", ")", "{", "public", "object", "execute", "(", "command", "context", "command", "context", ")", "{", "db", "sql", "session", "db", "sql", "session", "=", "command", "context", "get", "db", "sql", "session", "(", ")", ";", "db", "sql", "session", "db", "schema", "drop", "(", ")", ";", "db", "sql", "session", "db", "schema", "create", "(", ")", ";", "return", "null", ";", "}", "}", ")", ";", "throw", "new", "assertion", "error", "(", "output", "message", "to", "string", "(", ")", ")", ";", "}", "}" ]
[ "add", "an", "sse", "\"", "data", "\"", "line" ]
[ "sse", "event", "builder", "data", "(", "object", "object", ",", "@", "nullable", "media", "type", "media", "type", ")", ";" ]
[ "required", ":", "one", "or", "more", "labels", "that", "indicate", "a", "specific", "set", "of", "pods", "v", "ms", "on", "which", "this", "gateway", "configuration", "should", "be", "applied", "the", "scope", "of", "label", "search", "is", "restricted", "to", "the", "configuration", "namespace", "in", "which", "the", "the", "resource", "is", "present", "in", "other", "words", ",", "the", "gateway", "resource", "must", "reside", "in", "the", "same", "namespace", "as", "the", "gateway", "workload", "instance", "<", "code", ">", "map", "&", "lt", ";", "string", ",", "string", "&", "gt", ";", "selector", "=", "2", ";", "<", "code", ">" ]
[ "public", "boolean", "contains", "selector", "(", "java", "lang", "string", "key", ")", "{", "if", "(", "key", "=", "=", "null", ")", "{", "throw", "new", "java", "lang", "null", "pointer", "exception", "(", ")", ";", "}", "return", "internal", "get", "selector", "(", ")", "get", "map", "(", ")", "contains", "key", "(", "key", ")", ";", "}" ]
[ "override", "the", "http2", "authority", "the", "channel", "claims", "to", "be", "connecting", "to", "this", "is", "not", "generally", "safe", "overriding", "allows", "advanced", "users", "to", "re", "-", "use", "a", "single", "channel", "for", "multiple", "services", ",", "even", "if", "those", "services", "are", "hosted", "on", "different", "domain", "names", "that", "assumes", "the", "server", "is", "virtually", "hosting", "multiple", "domains", "and", "is", "guaranteed", "to", "continue", "doing", "so", "it", "is", "rare", "for", "a", "service", "provider", "to", "make", "such", "a", "guarantee", "at", "this", "time", ",", "there", "is", "no", "security", "verification", "of", "the", "overridden", "value", ",", "such", "as", "making", "sure", "the", "authority", "matches", "the", "server", "'", "s", "tls", "certificate" ]
[ "public", "string", "get", "authority", "(", ")", "{", "return", "authority", ";", "}" ]
[ "sets", "the", "<", "code", ">", "uuid", "<", "code", ">", "property" ]
[ "public", "mixed", "properties", "and", "additional", "properties", "class", "uuid", "(", "uuid", "uuid", ")", "{", "this", "uuid", "=", "uuid", ";", "return", "this", ";", "}" ]
[ "generate", "preferred", "display", "string", "for", "ghidra", "u", "r", "ls", "form", "can", "be", "parsed", "by", "the", "to", "u", "r", "l", "method" ]
[ "public", "static", "string", "get", "display", "string", "(", "url", "url", ")", "{", "if", "(", "is", "local", "project", "u", "r", "l", "(", "url", ")", ")", "{", "string", "path", "=", "url", "get", "path", "(", ")", ";", "if", "(", "path", "index", "of", "(", "\"", ":", "/", "\"", ")", "=", "=", "2", ")", "{", "/", "/", "assume", "windows", "path", "path", "=", "path", "substring", "(", "1", ")", ";", "path", "=", "path", "replace", "(", "'", "/", "'", ",", "'", "\\", "\\", "'", ")", ";", "}", "return", "path", ";", "}", "return", "url", "to", "string", "(", ")", ";", "}" ]
[ "returns", "a", "new", "{", "@", "link", "builder", "}", "for", "{", "@", "link", "graphite", "reporter", "}" ]
[ "public", "static", "builder", "for", "registry", "(", "metric", "registry", "registry", ")", "{", "return", "new", "builder", "(", "registry", ")", ";", "}" ]
[ "clicks", "(", "without", "releasing", ")", "at", "the", "current", "mouse", "location" ]
[ "public", "actions", "click", "and", "hold", "(", ")", "{", "if", "(", "is", "building", "actions", "(", ")", ")", "{", "action", "add", "action", "(", "new", "click", "and", "hold", "action", "(", "json", "mouse", ",", "null", ")", ")", ";", "}", "return", "tick", "(", "default", "mouse", "create", "pointer", "down", "(", "left", "as", "arg", "(", ")", ")", ")", ";", "}" ]
[ "tests", "whether", "a", "bean", "definition", "without", "a", "specified", "bean", "class", "is", "handled", "correctly" ]
[ "void", "post", "processor", "introspects", "inherited", "definitions", "correctly", "(", ")", "{", "bean", "factory", "register", "bean", "definition", "(", "\"", "config", "\"", ",", "new", "root", "bean", "definition", "(", "singleton", "bean", "config", "class", ")", ")", ";", "bean", "factory", "register", "bean", "definition", "(", "\"", "parent", "\"", ",", "new", "root", "bean", "definition", "(", "test", "bean", "class", ")", ")", ";", "bean", "factory", "register", "bean", "definition", "(", "\"", "child", "\"", ",", "new", "child", "bean", "definition", "(", "\"", "parent", "\"", ")", ")", ";", "configuration", "class", "post", "processor", "pp", "=", "new", "configuration", "class", "post", "processor", "(", ")", ";", "pp", "post", "process", "bean", "factory", "(", "bean", "factory", ")", ";", "foo", "foo", "=", "bean", "factory", "get", "bean", "(", "\"", "foo", "\"", ",", "foo", "class", ")", ";", "bar", "bar", "=", "bean", "factory", "get", "bean", "(", "\"", "bar", "\"", ",", "bar", "class", ")", ";", "assert", "that", "(", "bar", "foo", ")", "is", "same", "as", "(", "foo", ")", ";", "}" ]
[ "continues", "a", "read", "from", "the", "provided", "{", "@", "code", "source", "}", "into", "a", "given", "{", "@", "code", "target", "}", "it", "'", "s", "assumed", "that", "the", "data", "should", "be", "written", "into", "{", "@", "code", "target", "}", "starting", "from", "an", "offset", "of", "zero" ]
[ "private", "boolean", "continue", "read", "(", "parsable", "byte", "array", "source", ",", "@", "nullable", "byte", "[", "]", "target", ",", "int", "target", "length", ")", "{", "int", "bytes", "to", "read", "=", "min", "(", "source", "bytes", "left", "(", ")", ",", "target", "length", "-", "bytes", "read", ")", ";", "if", "(", "bytes", "to", "read", "<", "=", "0", ")", "{", "return", "true", ";", "}", "else", "if", "(", "target", "=", "=", "null", ")", "{", "source", "skip", "bytes", "(", "bytes", "to", "read", ")", ";", "}", "else", "{", "source", "read", "bytes", "(", "target", ",", "bytes", "read", ",", "bytes", "to", "read", ")", ";", "}", "bytes", "read", "+", "=", "bytes", "to", "read", ";", "return", "bytes", "read", "=", "=", "target", "length", ";", "}" ]