docstring_tokens
list
code_tokens
list
[ "assure", "nulls", "in", "probe", "readahead", "does", "not", "leak", "into", "connectors" ]
[ "public", "void", "test", "probe", "null", "in", "readahead", "(", ")", "{", "assert", "query", "(", "\"", "select", "count", "(", "*", ")", "from", "(", "values", "(", "1", ")", ",", "(", "cast", "(", "null", "as", "bigint", ")", ")", ")", "x", "(", "orderkey", ")", "join", "orders", "using", "(", "orderkey", ")", "\"", ",", "\"", "select", "count", "(", "*", ")", "from", "orders", "where", "orderkey", "=", "1", "\"", ")", ";", "}" ]
[ "exit", "a", "parse", "tree", "produced", "by", "{", "@", "link", "sql", "base", "parser", "#", "string", "}" ]
[ "void", "exit", "string", "(", "sql", "base", "parser", "string", "context", "ctx", ")", ";" ]
[ "test", "the", "property", "'", "attribute", "number", "'" ]
[ "public", "void", "attribute", "number", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "attribute", "number", "}" ]
[ "sends", "the", "response", "to", "the", "given", "channel", "this", "method", "should", "be", "used", "to", "send", "{", "@", "link", "transport", "response", "}", "objects", "back", "to", "the", "caller" ]
[ "void", "send", "response", "(", "final", "version", "node", "version", ",", "final", "tcp", "channel", "channel", ",", "final", "long", "request", "id", ",", "final", "string", "action", ",", "final", "transport", "response", "response", ",", "final", "boolean", "compress", ",", "final", "boolean", "is", "handshake", ")", "throws", "i", "o", "exception", "{", "version", "version", "=", "version", "min", "(", "this", "version", ",", "node", "version", ")", ";", "outbound", "message", "response", "message", "=", "new", "outbound", "message", "response", "(", "thread", "pool", "get", "thread", "context", "(", ")", ",", "response", ",", "version", ",", "request", "id", ",", "is", "handshake", ",", "compress", ")", ";", "action", "listener", "<", "void", ">", "listener", "=", "action", "listener", "wrap", "(", "(", ")", "-", ">", "message", "listener", "on", "response", "sent", "(", "request", "id", ",", "action", ",", "response", ")", ")", ";", "send", "message", "(", "channel", ",", "message", ",", "listener", ")", ";", "}" ]
[ "returns", "the", "certificate", "provider", "provider", "for", "the", "given", "name", ",", "or", "{", "@", "code", "null", "}", "if", "no", "provider", "is", "found", "each", "provider", "declares", "its", "name", "via", "{", "@", "link", "certificate", "provider", "provider", "#", "get", "name", "}", "this", "is", "an", "internal", "method", "of", "the", "registry", "only", "used", "by", "the", "framework" ]
[ "synchronized", "certificate", "provider", "provider", "get", "provider", "(", "string", "name", ")", "{", "return", "providers", "get", "(", "check", "not", "null", "(", "name", ",", "\"", "name", "\"", ")", ")", ";", "}" ]
[ "adds", "a", "route", "to", "the", "given", "handler", "function", "that", "handles", "all", "http", "{", "@", "code", "delete", "}", "requests", "that", "match", "the", "given", "pattern", "and", "predicate" ]
[ "builder", "delete", "(", "string", "pattern", ",", "request", "predicate", "predicate", ",", "handler", "function", "<", "server", "response", ">", "handler", "function", ")", ";" ]
[ "specify", "the", "pointcut", "targeting", "the", "advice", "default", "is", "{", "@", "code", "pointcut", "true", "}" ]
[ "public", "void", "set", "pointcut", "(", "@", "nullable", "pointcut", "pointcut", ")", "{", "this", "pointcut", "=", "(", "pointcut", "!", "=", "null", "?", "pointcut", ":", "pointcut", "true", ")", ";", "}" ]
[ "invoke", "{", "@", "link", "#", "remove", "keys", "s", "3", "(", "list", ",", "boolean", ",", "boolean", ")", "}", "with", "handling", "of", "{", "@", "code", "multi", "object", "delete", "exception", "}", "before", "the", "exception", "is", "rethrown", "specifically", ":", "failure", "and", "!", "delete", "fake", "dir", ":", "s", "3", "guard", "is", "updated", "with", "all", "deleted", "entries", "failure", "where", "delete", "fake", "dir", "=", "=", "true", ":", "do", "nothing", "with", "s", "3", "guard", "success", ":", "do", "nothing", "with", "s", "3", "guard" ]
[ "delete", "objects", "result", "remove", "keys", "(", "final", "list", "<", "delete", "objects", "request", "key", "version", ">", "keys", "to", "delete", ",", "final", "boolean", "delete", "fake", "dir", ",", "final", "list", "<", "path", ">", "undeleted", "objects", "on", "failure", ",", "final", "bulk", "operation", "state", "operation", "state", ",", "final", "boolean", "quiet", ")", "throws", "multi", "object", "delete", "exception", ",", "amazon", "client", "exception", ",", "i", "o", "exception", "{", "undeleted", "objects", "on", "failure", "clear", "(", ")", ";", "try", "(", "duration", "info", "ignored", "=", "new", "duration", "info", "(", "log", ",", "false", ",", "\"", "deleting", "%", "d", "keys", "\"", ",", "keys", "to", "delete", "size", "(", ")", ")", ")", "{", "return", "remove", "keys", "s", "3", "(", "keys", "to", "delete", ",", "delete", "fake", "dir", ",", "quiet", ")", ";", "}", "catch", "(", "multi", "object", "delete", "exception", "ex", ")", "{", "log", "debug", "(", "\"", "partial", "delete", "failure", "\"", ")", ";", "/", "/", "what", "to", "do", "if", "an", "ioe", "was", "raised", "?", "given", "an", "exception", "was", "being", "/", "/", "raised", "anyway", ",", "and", "the", "failures", "are", "logged", ",", "do", "nothing", "if", "(", "!", "delete", "fake", "dir", ")", "{", "/", "/", "when", "deleting", "fake", "directories", "we", "don", "'", "t", "want", "to", "delete", "metastore", "/", "/", "entries", "so", "we", "only", "process", "these", "failures", "on", "\"", "real", "\"", "deletes", "triple", "<", "list", "<", "path", ">", ",", "list", "<", "path", ">", ",", "list", "<", "pair", "<", "path", ",", "i", "o", "exception", ">", ">", ">", "results", "=", "new", "multi", "object", "delete", "support", "(", "create", "store", "context", "(", ")", ",", "operation", "state", ")", "process", "delete", "failure", "(", "ex", ",", "keys", "to", "delete", ",", "new", "array", "list", "<", "path", ">", "(", ")", ")", ";", "undeleted", "objects", "on", "failure", "add", "all", "(", "results", "get", "left", "(", ")", ")", ";", "}", "throw", "ex", ";", "}", "catch", "(", "amazon", "client", "exception", "|", "i", "o", "exception", "ex", ")", "{", "list", "<", "path", ">", "paths", "=", "new", "multi", "object", "delete", "support", "(", "create", "store", "context", "(", ")", ",", "operation", "state", ")", "process", "delete", "failure", "generic", "exception", "(", "ex", ",", "keys", "to", "delete", ")", ";", "/", "/", "other", "failures", "assume", "nothing", "was", "deleted", "undeleted", "objects", "on", "failure", "add", "all", "(", "paths", ")", ";", "throw", "ex", ";", "}", "}" ]
[ "get", "anytype", "3" ]
[ "public", "object", "get", "anytype", "3", "(", ")", "{", "return", "anytype", "3", ";", "}" ]
[ "check", "if", "the", "given", "i", "node", "(", "or", "one", "of", "its", "descendants", ")", "is", "snapshottable", "and", "already", "has", "snapshots" ]
[ "private", "static", "void", "check", "snapshot", "(", "i", "node", "target", ",", "list", "<", "i", "node", "directory", ">", "snapshottable", "dirs", ")", "throws", "snapshot", "exception", "{", "if", "(", "target", "is", "directory", "(", ")", ")", "{", "i", "node", "directory", "target", "dir", "=", "target", "as", "directory", "(", ")", ";", "directory", "snapshottable", "feature", "sf", "=", "target", "dir", "get", "directory", "snapshottable", "feature", "(", ")", ";", "if", "(", "sf", "!", "=", "null", ")", "{", "if", "(", "sf", "get", "num", "snapshots", "(", ")", ">", "0", ")", "{", "string", "full", "path", "=", "target", "dir", "get", "full", "path", "name", "(", ")", ";", "throw", "new", "snapshot", "exception", "(", "\"", "the", "directory", "\"", "+", "full", "path", "+", "\"", "cannot", "be", "deleted", "since", "\"", "+", "full", "path", "+", "\"", "is", "snapshottable", "and", "already", "has", "snapshots", "\"", ")", ";", "}", "else", "{", "if", "(", "snapshottable", "dirs", "!", "=", "null", ")", "{", "snapshottable", "dirs", "add", "(", "target", "dir", ")", ";", "}", "}", "}", "for", "(", "i", "node", "child", ":", "target", "dir", "get", "children", "list", "(", "snapshot", "current", "state", "id", ")", ")", "{", "check", "snapshot", "(", "child", ",", "snapshottable", "dirs", ")", ";", "}", "}", "}" ]
[ "test", "to", "ensure", "metrics", "reflects", "missing", "blocks" ]
[ "public", "void", "test", "missing", "block", "(", ")", "throws", "exception", "{", "/", "/", "create", "a", "file", "with", "single", "block", "with", "two", "replicas", "path", "file", "=", "get", "test", "path", "(", "\"", "test", "missing", "blocks", "\"", ")", ";", "create", "file", "(", "file", ",", "100", ",", "(", "short", ")", "1", ")", ";", "/", "/", "corrupt", "the", "only", "replica", "of", "the", "block", "to", "result", "in", "a", "missing", "block", "located", "block", "block", "=", "name", "node", "adapter", "get", "block", "locations", "(", "cluster", "get", "name", "node", "(", ")", ",", "file", "to", "string", "(", ")", ",", "0", ",", "1", ")", "get", "(", "0", ")", ";", "cluster", "get", "namesystem", "(", ")", "write", "lock", "(", ")", ";", "try", "{", "bm", "find", "and", "mark", "block", "as", "corrupt", "(", "block", "get", "block", "(", ")", ",", "block", "get", "locations", "(", ")", "[", "0", "]", ",", "\"", "storage", "id", "\"", ",", "\"", "test", "\"", ")", ";", "}", "finally", "{", "cluster", "get", "namesystem", "(", ")", "write", "unlock", "(", ")", ";", "}", "thread", "sleep", "(", "1000", ")", ";", "/", "/", "wait", "for", "block", "to", "be", "marked", "corrupt", "metrics", "record", "builder", "rb", "=", "get", "metrics", "(", "ns", "metrics", ")", ";", "assert", "gauge", "(", "\"", "under", "replicated", "blocks", "\"", ",", "1l", ",", "rb", ")", ";", "assert", "gauge", "(", "\"", "missing", "blocks", "\"", ",", "1l", ",", "rb", ")", ";", "assert", "gauge", "(", "\"", "missing", "repl", "one", "blocks", "\"", ",", "1l", ",", "rb", ")", ";", "assert", "gauge", "(", "\"", "highest", "priority", "low", "redundancy", "replicated", "blocks", "\"", ",", "0l", ",", "rb", ")", ";", "assert", "gauge", "(", "\"", "highest", "priority", "low", "redundancy", "e", "c", "blocks", "\"", ",", "0l", ",", "rb", ")", ";", "fs", "delete", "(", "file", ",", "true", ")", ";", "wait", "for", "dn", "metric", "value", "(", "ns", "metrics", ",", "\"", "under", "replicated", "blocks", "\"", ",", "0l", ")", ";", "}" ]
[ "get", "enum", "string", "required" ]
[ "public", "enum", "string", "required", "enum", "get", "enum", "string", "required", "(", ")", "{", "return", "enum", "string", "required", ";", "}" ]
[ "write", "an", "given", "stream", "of", "object", "to", "the", "output", "message" ]
[ "mono", "<", "void", ">", "write", "(", "publisher", "<", "?", "extends", "t", ">", "input", "stream", ",", "resolvable", "type", "element", "type", ",", "@", "nullable", "media", "type", "media", "type", ",", "reactive", "http", "output", "message", "message", ",", "map", "<", "string", ",", "object", ">", "hints", ")", ";" ]
[ "get", "last", "name" ]
[ "public", "string", "get", "last", "name", "(", ")", "{", "return", "last", "name", ";", "}" ]
[ "returns", "an", "array", "of", "new", "{", "@", "link", "extractor", "}", "instances" ]
[ "extractor", "[", "]", "create", "extractors", "(", ")", ";" ]
[ "dispatch", "a", "visibility", "events", "to", "all", "the", "components", "hosted", "in", "this", "litho", "view", "marked", "as", "@", "deprecated", "to", "indicate", "this", "method", "is", "experimental", "and", "should", "not", "be", "widely", "used", "note", ":", "can", "only", "be", "used", "when", "incremental", "mount", "is", "disabled", "!", "call", "this", "method", "when", "the", "litho", "view", "is", "considered", "eligible", "for", "the", "visibility", "event", "(", "i", "e", "only", "dispatch", "visible", "event", "when", "the", "litho", "view", "is", "visible", "in", "its", "container", ")" ]
[ "public", "void", "dispatch", "visibility", "event", "(", "class", "<", "?", ">", "visibility", "event", "type", ")", "{", "if", "(", "is", "incremental", "mount", "enabled", "(", ")", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "dispatch", "visibility", "event", "-", "\"", "+", "\"", "can", "'", "t", "manually", "trigger", "visibility", "events", "when", "incremental", "mount", "is", "enabled", "\"", ")", ";", "}", "layout", "state", "layout", "state", "=", "m", "component", "tree", "=", "=", "null", "?", "null", ":", "m", "component", "tree", "get", "main", "thread", "layout", "state", "(", ")", ";", "if", "(", "layout", "state", "!", "=", "null", "&", "&", "visibility", "event", "type", "!", "=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "layout", "state", "get", "visibility", "output", "count", "(", ")", ";", "i", "+", "+", ")", "{", "dispatch", "visibility", "event", "(", "layout", "state", "get", "visibility", "output", "at", "(", "i", ")", ",", "visibility", "event", "type", ")", ";", "}", "list", "<", "litho", "view", ">", "child", "views", "=", "get", "child", "litho", "views", "from", "currently", "mounted", "items", "(", ")", ";", "for", "(", "litho", "view", "litho", "view", ":", "child", "views", ")", "{", "litho", "view", "dispatch", "visibility", "event", "(", "visibility", "event", "type", ")", ";", "}", "}", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "returns", "the", "logical", "xor", "of", "this", "integer", "value", "and", "the", "given", "specific", "integer", "value" ]
[ "public", "integer", "value", "xor", "(", "specific", "integer", "value", "other", ")", "{", "return", "xor", "(", "(", "integer", "value", ")", "other", ")", ";", "}" ]
[ "merge", "the", "latest", "version", "(", "in", "the", "repository", ")", "of", "each", "checked", "out", "file", "in", "file", "list", "upon", "completion", "of", "the", "merge", ",", "the", "domain", "file", "appears", "as", "though", "the", "latest", "version", "was", "checked", "out" ]
[ "public", "void", "merge", "(", "plugin", "tool", "tool", ",", "list", "<", "domain", "file", ">", "file", "list", ",", "task", "listener", "task", "listener", ")", "{", "if", "(", "!", "check", "repository", "connected", "(", "tool", ")", ")", "{", "return", ";", "}", "array", "list", "<", "domain", "file", ">", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "array", "list", "<", "domain", "file", ">", "changed", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "file", "list", "size", "(", ")", ";", "i", "+", "+", ")", "{", "domain", "file", "df", "=", "file", "list", "get", "(", "i", ")", ";", "if", "(", "df", "!", "=", "null", "&", "&", "df", "can", "merge", "(", ")", ")", "{", "if", "(", "!", "can", "close", "domain", "file", "(", "df", ")", ")", "{", "continue", ";", "}", "list", "add", "(", "df", ")", ";", "if", "(", "df", "is", "changed", "(", ")", ")", "{", "changed", "list", "add", "(", "df", ")", ";", "}", "}", "}", "if", "(", "changed", "list", "size", "(", ")", ">", "0", ")", "{", "changed", "files", "dialog", "dialog", "=", "new", "changed", "files", "dialog", "(", "tool", ",", "changed", "list", ")", ";", "dialog", "set", "cancel", "tool", "tip", "text", "(", "\"", "cancel", "merge", "\"", ")", ";", "if", "(", "!", "dialog", "show", "dialog", "(", ")", ")", "{", "/", "/", "blocks", "until", "the", "user", "hits", "save", "or", "cancel", "msg", "info", "(", "this", ",", "\"", "merge", "canceled", "\"", ")", ";", "return", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "changed", "list", "size", "(", ")", ";", "i", "+", "+", ")", "{", "domain", "file", "df", "=", "changed", "list", "get", "(", "i", ")", ";", "if", "(", "df", "is", "changed", "(", ")", ")", "{", "list", "remove", "(", "df", ")", ";", "}", "}", "}", "if", "(", "list", "size", "(", ")", ">", "0", ")", "{", "execute", "(", "new", "merge", "task", "(", "tool", ",", "list", ",", "task", "listener", ")", ")", ";", "}", "else", "{", "msg", "show", "error", "(", "this", ",", "tool", "get", "tool", "frame", "(", ")", ",", "\"", "update", "failed", "\"", ",", "\"", "unable", "to", "update", "file", "(", "s", ")", "\"", ")", ";", "}", "}" ]
[ "returns", "a", "pseudorandom", ",", "uniformly", "distributed", "value", "between", "the", "given", "least", "value", "(", "inclusive", ")", "and", "bound", "(", "exclusive", ")" ]
[ "public", "long", "next", "long", "(", "long", "least", ",", "long", "bound", ")", "{", "if", "(", "least", ">", "=", "bound", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "return", "next", "long", "(", "bound", "-", "least", ")", "+", "least", ";", "}" ]
[ "sets", "new", "data", "filter" ]
[ "boolean", "set", "data", "filter", "(", "d", "b", "d", "data", "filter", "data", "filter", ")", "{", "this", "data", "filter", "=", "data", "filter", ";", "/", "/", "check", "if", "filter", "misses", "some", "attributes", "list", "<", "d", "b", "d", "attribute", "constraint", ">", "new", "constraints", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "d", "b", "d", "attribute", "binding", "binding", ":", "attributes", ")", "{", "if", "(", "data", "filter", "get", "constraint", "(", "binding", ")", "=", "=", "null", ")", "{", "add", "constraints", "(", "new", "constraints", ",", "binding", ")", ";", "}", "}", "if", "(", "!", "new", "constraints", "is", "empty", "(", ")", ")", "{", "data", "filter", "add", "constraints", "(", "new", "constraints", ")", ";", "}", "list", "<", "d", "b", "d", "attribute", "binding", ">", "new", "bindings", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "d", "b", "s", "attribute", "base", "attr", ":", "this", "data", "filter", "get", "ordered", "visible", "attributes", "(", ")", ")", "{", "d", "b", "d", "attribute", "binding", "binding", "=", "get", "attribute", "binding", "(", "attr", ")", ";", "if", "(", "binding", "!", "=", "null", ")", "{", "new", "bindings", "add", "(", "binding", ")", ";", "}", "}", "if", "(", "!", "new", "bindings", "equals", "(", "visible", "attributes", ")", ")", "{", "visible", "attributes", "=", "new", "bindings", ";", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "return", "the", "int", "that", "{", "@", "code", "n", "}", "stores", ",", "or", "throws", "an", "exception", "if", "the", "stored", "value", "cannot", "be", "converted", "to", "an", "int", "that", "stores", "the", "exact", "same", "value" ]
[ "public", "static", "int", "to", "int", "exact", "(", "number", "n", ")", "{", "return", "math", "to", "int", "exact", "(", "to", "long", "exact", "(", "n", ")", ")", ";", "}" ]
[ "get", "the", "metadata", "format", "version", "for", "the", "keystore" ]
[ "public", "int", "get", "format", "version", "(", ")", "{", "return", "format", "version", ";", "}" ]
[ "returns", "the", "rva", "of", "the", "first", "code", "byte" ]
[ "public", "int", "get", "first", "byte", "of", "code", "r", "v", "a", "(", ")", "{", "return", "rva", "to", "first", "byte", "of", "code", ";", "}" ]
[ "gets", "branch", "status" ]
[ "public", "branch", "status", "get", "branch", "status", "(", ")", "{", "return", "branch", "status", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "object", "get", "object", "(", "int", "column", "index", ")", "throws", "s", "q", "l", "exception", "{", "return", "null", ";", "}" ]
[ "like", "{", "@", "code", "inputs", "to", "string", "(", ")", "}", ",", "but", "with", "the", "nonsense", "{", "@", "code", "to", "string", "}", "representations", "replaced", "with", "the", "name", "of", "each", "future", "from", "{", "@", "link", "#", "all", "futures", "}" ]
[ "string", "smart", "to", "string", "(", "immutable", "set", "<", "listenable", "future", "<", "string", ">", ">", "inputs", ")", "{", "iterable", "<", "string", ">", "input", "names", "=", "iterables", "transform", "(", "inputs", ",", "name", "getter", ")", ";", "return", "joiner", "on", "(", "\"", ",", "\"", ")", "join", "(", "input", "names", ")", ";", "}" ]
[ "returns", "the", "peer", "extracted", "from", "a", "completed", "handshake" ]
[ "object", "extract", "peer", "object", "(", ")", "throws", "general", "security", "exception", "{", "check", "state", "(", "!", "internal", "handshaker", "is", "in", "progress", "(", ")", ")", ";", "return", "internal", "handshaker", "extract", "peer", "object", "(", ")", ";", "}" ]
[ "returns", "list", "of", "all", "boxes", "{", "@", "link", "computer", "panel", "box", "}", "s" ]
[ "public", "list", "<", "computer", "panel", "box", ">", "get", "computer", "panel", "boxs", "(", ")", "{", "return", "computer", "panel", "box", "all", "(", "this", ")", ";", "}" ]
[ "drops", "the", "underlying", "database", "table" ]
[ "public", "static", "void", "drop", "table", "(", "database", "db", ",", "boolean", "if", "exists", ")", "{", "string", "sql", "=", "\"", "drop", "table", "\"", "+", "(", "if", "exists", "?", "\"", "if", "exists", "\"", ":", "\"", "\"", ")", "+", "\"", "\\", "\"", "to", "many", "entity", "\\", "\"", "\"", ";", "db", "exec", "s", "q", "l", "(", "sql", ")", ";", "}" ]
[ "retrieves", "all", "{", "@", "link", "span", "#", "local", "endpoint", "(", ")", "local", "}", "and", "{", "@", "link", "span", "#", "remote", "endpoint", "(", ")", "remote", "}", "{", "@", "link", "endpoint", "#", "service", "name", "(", ")", "service", "names", "}", ",", "sorted", "lexicographically" ]
[ "@", "deprecated", "call", "<", "list", "<", "string", ">", ">", "get", "service", "names", "(", ")", ";" ]
[ "shuts", "this", "scheduler", "down" ]
[ "void", "shutdown", "(", ")", ";" ]
[ "insert", "a", "new", "entry", "into", "this", "node", "it", "is", "assumed", "that", "there", "is", "sufficient", "space", "for", "the", "new", "entry" ]
[ "var", "key", "node", "insert", "(", "int", "id", ",", "field", "key", ",", "var", "key", "node", "node", ")", "throws", "i", "o", "exception", "{", "/", "/", "insert", "key", "into", "this", "node", "int", "index", "=", "-", "(", "get", "key", "index", "(", "key", ")", "+", "1", ")", ";", "if", "(", "index", "<", "0", "|", "|", "id", "=", "=", "0", ")", "throw", "new", "assert", "exception", "(", ")", ";", "insert", "entry", "(", "index", ",", "key", ",", "id", ")", ";", "/", "/", "set", "child", "node", "'", "s", "parent", "node", "parent", "=", "this", ";", "if", "(", "index", "=", "=", "0", "&", "&", "parent", "!", "=", "null", ")", "{", "parent", "key", "changed", "(", "get", "key", "field", "(", "1", ")", ",", "key", ",", "this", ")", ";", "}", "return", "get", "root", "(", ")", ";", "}" ]
[ "returns", "the", "offset", "into", "the", "originally", "imported", "file", "that", "provided", "the", "byte", "value", "for", "the", "associated", "address", "or", "-", "1", "if", "there", "is", "no", "source", "information", "for", "this", "location" ]
[ "public", "long", "get", "file", "offset", "(", ")", "{", "if", "(", "mapped", "info", "!", "=", "null", ")", "{", "return", "mapped", "info", "get", "file", "offset", "(", ")", ";", "}", "if", "(", "file", "bytes", "!", "=", "null", ")", "{", "return", "source", "info", "get", "file", "bytes", "offset", "(", "address", ")", "+", "file", "bytes", "get", "file", "offset", "(", ")", ";", "}", "return", "-", "1", ";", "}" ]
[ "test", "the", "property", "'", "just", "symbol", "'" ]
[ "public", "void", "just", "symbol", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "just", "symbol", "}" ]
[ "set", "the", "list", "of", "custom", "{", "@", "code", "handler", "method", "return", "value", "handler", "}", "s", "that", "will", "be", "used", "after", "return", "value", "handlers", "for", "known", "types" ]
[ "public", "void", "set", "custom", "return", "value", "handlers", "(", "@", "nullable", "list", "<", "handler", "method", "return", "value", "handler", ">", "custom", "return", "value", "handlers", ")", "{", "this", "custom", "return", "value", "handlers", "clear", "(", ")", ";", "if", "(", "custom", "return", "value", "handlers", "!", "=", "null", ")", "{", "this", "custom", "return", "value", "handlers", "add", "all", "(", "custom", "return", "value", "handlers", ")", ";", "}", "}" ]
[ "reads", "an", "ldif", "into", "a", "collection", "of", "ldap", "entries", "the", "components", "performs", "a", "simple", "property", "replacement", "in", "the", "ldif", "data", "where", "&", "lt", ";", "pre", "&", "gt", ";", "$", "{", "ldap", "base", "dn", "}", "&", "lt", ";", "pre", "&", "gt", ";", "is", "replaced", "with", "the", "environment", "-", "specific", "base", "dn" ]
[ "public", "static", "collection", "<", "ldap", "entry", ">", "read", "ldif", "(", "final", "input", "stream", "ldif", ",", "final", "string", "base", "dn", ")", "throws", "i", "o", "exception", "{", "var", "ldap", "string", "=", "string", "utils", "empty", ";", "try", "(", "val", "reader", "=", "new", "buffered", "reader", "(", "new", "input", "stream", "reader", "(", "ldif", ",", "standard", "charsets", "utf", "8", ")", ")", ")", "{", "ldap", "string", "=", "reader", "lines", "(", ")", "map", "(", "line", "-", ">", "{", "logger", "debug", "(", "\"", "reading", "ldap", "entry", "line", "[", "{", "}", "]", "\"", ",", "line", ")", ";", "if", "(", "line", "contains", "(", "base", "dn", "placeholder", ")", ")", "{", "return", "line", "replace", "(", "base", "dn", "placeholder", ",", "base", "dn", ")", ";", "}", "return", "line", ";", "}", ")", "collect", "(", "collectors", "joining", "(", "newline", ")", ")", ";", "logger", "debug", "(", "\"", "ldif", "to", "process", "is", "[", "{", "}", "]", "\"", ",", "ldap", "string", ")", ";", "val", "entries", "=", "new", "ldif", "reader", "(", "new", "string", "reader", "(", "ldap", "string", ")", ")", "read", "(", ")", "get", "entries", "(", ")", ";", "logger", "debug", "(", "\"", "total", "entries", "read", "from", "ldap", "are", "[", "{", "}", "]", "with", "base", "dn", "[", "{", "}", "]", "\"", ",", "entries", "size", "(", ")", ",", "base", "dn", ")", ";", "return", "entries", ";", "}", "}" ]
[ "creates", "an", "xml", "item", "this", "route", "creates", "an", "xml", "item" ]
[ "public", "api", "response", "<", "void", ">", "create", "xml", "item", "with", "http", "info", "(", "xml", "item", "xml", "item", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "xml", "item", ";", "/", "/", "verify", "the", "required", "parameter", "'", "xml", "item", "'", "is", "set", "if", "(", "xml", "item", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "xml", "item", "'", "when", "calling", "create", "xml", "item", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "local", "var", "path", "=", "\"", "/", "fake", "/", "create", "xml", "item", "\"", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "local", "var", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "cookie", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "local", "var", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "}", ";", "final", "string", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "\"", "application", "/", "xml", "\"", ",", "\"", "application", "/", "xml", ";", "charset", "=", "utf", "-", "8", "\"", ",", "\"", "application", "/", "xml", ";", "charset", "=", "utf", "-", "16", "\"", ",", "\"", "text", "/", "xml", "\"", ",", "\"", "text", "/", "xml", ";", "charset", "=", "utf", "-", "8", "\"", ",", "\"", "text", "/", "xml", ";", "charset", "=", "utf", "-", "16", "\"", "}", ";", "final", "string", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "}", ";", "return", "api", "client", "invoke", "a", "p", "i", "(", "\"", "fake", "api", "create", "xml", "item", "\"", ",", "local", "var", "path", ",", "\"", "post", "\"", ",", "local", "var", "query", "params", ",", "local", "var", "post", "body", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ",", "local", "var", "form", "params", ",", "local", "var", "accept", ",", "local", "var", "content", "type", ",", "local", "var", "auth", "names", ",", "null", ",", "false", ")", ";", "}" ]
[ "get", "a", "sub", "level", "error", "when", "the", "request", "is", "in", "batch", "if", "given", "key", "was", "not", "found", ",", "return", "an", "{", "@", "link", "illegal", "argument", "exception", "}" ]
[ "static", "<", "k", ">", "throwable", "get", "sub", "level", "error", "(", "map", "<", "k", ",", "errors", ">", "sub", "level", "errors", ",", "k", "sub", "key", ",", "string", "key", "not", "found", "msg", ")", "{", "if", "(", "!", "sub", "level", "errors", "contains", "key", "(", "sub", "key", ")", ")", "{", "return", "new", "illegal", "argument", "exception", "(", "key", "not", "found", "msg", ")", ";", "}", "else", "{", "return", "sub", "level", "errors", "get", "(", "sub", "key", ")", "exception", "(", ")", ";", "}", "}" ]
[ "returns", "the", "index", "of", "the", "first", "character", "in", "the", "string", "that", "is", "not", "a", "digit", ",", "starting", "at", "offset" ]
[ "private", "static", "int", "index", "of", "non", "digit", "(", "string", "string", ",", "int", "offset", ")", "{", "for", "(", "int", "i", "=", "offset", ";", "i", "<", "string", "length", "(", ")", ";", "i", "+", "+", ")", "{", "char", "c", "=", "string", "char", "at", "(", "i", ")", ";", "if", "(", "c", "<", "'", "0", "'", "|", "|", "c", ">", "'", "9", "'", ")", "return", "i", ";", "}", "return", "string", "length", "(", ")", ";", "}" ]
[ "equivalent", "to", "{", "@", "code", "milliseconds", "convert", "(", "duration", ",", "this", ")", "}" ]
[ "public", "long", "to", "millis", "(", "long", "duration", ")", "{", "throw", "new", "abstract", "method", "error", "(", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "calls", "the", "{", "@", "code", "init", "filter", "bean", "(", ")", "}", "method", "that", "might", "contain", "custom", "initialization", "of", "a", "subclass", "only", "relevant", "in", "case", "of", "initialization", "as", "bean", ",", "where", "the", "standard", "{", "@", "code", "init", "(", "filter", "config", ")", "}", "method", "won", "'", "t", "be", "called" ]
[ "public", "void", "after", "properties", "set", "(", ")", "throws", "servlet", "exception", "{", "init", "filter", "bean", "(", ")", ";", "}" ]
[ "gets", "the", "task", "type" ]
[ "public", "task", "type", "get", "task", "type", "(", ")", "{", "return", "task", "type", ";", "}" ]
[ "generate", "salted", "hash", "for", "specified", "message", "using", "random", "salt", "first", "4", "-", "characters", "of", "returned", "hash", "correspond", "to", "the", "salt", "data" ]
[ "public", "static", "char", "[", "]", "get", "salted", "hash", "(", "string", "algorithm", ",", "char", "[", "]", "msg", ")", "{", "char", "[", "]", "salt", "=", "new", "char", "[", "salt", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "salt", "length", ";", "i", "+", "+", ")", "{", "salt", "[", "i", "]", "=", "get", "random", "letter", "or", "digit", "(", ")", ";", "}", "return", "get", "salted", "hash", "(", "algorithm", ",", "salt", ",", "msg", ")", ";", "}" ]
[ "determine", "whether", "memory", "between", "the", "two", "programs", "matches", "for", "example", ",", "if", "one", "program", "has", "more", "memory", "than", "the", "other", "then", "it", "doesn", "'", "t", "match", "or", "if", "the", "address", "ranges", "for", "memory", "are", "different", "for", "the", "two", "programs", "then", "they", "don", "'", "t", "match" ]
[ "public", "boolean", "memory", "matches", "(", ")", "{", "return", "program", "diff", "memory", "matches", "(", ")", ";", "}" ]
[ "notifies", "the", "listener", "that", "the", "content", "has", "just", "been", "changed" ]
[ "void", "modified", "(", ")", ";" ]
[ "get", "the", "world", "contact", "list", "with", "the", "returned", "contact", ",", "use", "contact", "get", "next", "to", "get", "the", "next", "contact", "in", "the", "world", "list", "a", "null", "contact", "indicates", "the", "end", "of", "the", "list" ]
[ "public", "contact", "get", "contact", "list", "(", ")", "{", "return", "m", "contact", "manager", "m", "contact", "list", ";", "}" ]
[ "returns", "the", "{", "@", "link", "string", "}", "property", ",", "if", "any", ",", "asssociated", "with", "the", "event", "when", "non", "-", "null", ",", "this", "value", "typically", "describes", "some", "property", "of", "the", "action", "that", "generated", "the", "event" ]
[ "public", "string", "get", "tag", "(", ")", "{", "return", "get", "property", "(", "string", "class", ")", ";", "}" ]
[ "checks", "that", "when", "nodes", "leave", "the", "cluster", "that", "the", "auto", "-", "expand", "-", "replica", "functionality", "only", "triggers", "after", "failing", "the", "shards", "on", "the", "removed", "nodes", "this", "ensures", "that", "active", "shards", "on", "other", "live", "nodes", "are", "not", "failed", "if", "the", "primary", "resided", "on", "a", "now", "dead", "node", "instead", ",", "one", "of", "the", "replicas", "on", "the", "live", "nodes", "first", "gets", "promoted", "to", "primary", ",", "and", "the", "auto", "-", "expansion", "(", "removing", "replicas", ")", "only", "triggers", "in", "a", "follow", "-", "up", "step" ]
[ "public", "void", "test", "auto", "expand", "when", "node", "leaves", "and", "possibly", "rejoins", "(", ")", "throws", "interrupted", "exception", "{", "final", "thread", "pool", "thread", "pool", "=", "new", "test", "thread", "pool", "(", "get", "class", "(", ")", "get", "name", "(", ")", ")", ";", "final", "cluster", "state", "changes", "cluster", "=", "new", "cluster", "state", "changes", "(", "x", "content", "registry", "(", ")", ",", "thread", "pool", ")", ";", "try", "{", "list", "<", "discovery", "node", ">", "all", "nodes", "=", "new", "array", "list", "<", ">", "(", ")", ";", "discovery", "node", "local", "node", "=", "create", "node", "(", "discovery", "node", "role", "master", "role", ")", ";", "/", "/", "local", "node", "is", "the", "master", "all", "nodes", "add", "(", "local", "node", ")", ";", "int", "num", "data", "nodes", "=", "random", "int", "between", "(", "3", ",", "5", ")", ";", "list", "<", "discovery", "node", ">", "data", "nodes", "=", "new", "array", "list", "<", ">", "(", "num", "data", "nodes", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "data", "nodes", ";", "i", "+", "+", ")", "{", "data", "nodes", "add", "(", "create", "node", "(", "discovery", "node", "role", "data", "role", ")", ")", ";", "}", "all", "nodes", "add", "all", "(", "data", "nodes", ")", ";", "cluster", "state", "state", "=", "cluster", "state", "creation", "utils", "state", "(", "local", "node", ",", "local", "node", ",", "all", "nodes", "to", "array", "(", "new", "discovery", "node", "[", "0", "]", ")", ")", ";", "create", "index", "request", "request", "=", "new", "create", "index", "request", "(", "\"", "index", "\"", ",", "settings", "builder", "(", ")", "put", "(", "setting", "number", "of", "shards", ",", "1", ")", "put", "(", "setting", "auto", "expand", "replicas", ",", "\"", "0", "-", "all", "\"", ")", "build", "(", ")", ")", "wait", "for", "active", "shards", "(", "active", "shard", "count", "none", ")", ";", "state", "=", "cluster", "create", "index", "(", "state", ",", "request", ")", ";", "assert", "true", "(", "state", "metadata", "(", ")", "has", "index", "(", "\"", "index", "\"", ")", ")", ";", "while", "(", "state", "routing", "table", "(", ")", "index", "(", "\"", "index", "\"", ")", "shard", "(", "0", ")", "all", "shards", "started", "(", ")", "=", "=", "false", ")", "{", "logger", "info", "(", "state", ")", ";", "state", "=", "cluster", "apply", "started", "shards", "(", "state", ",", "state", "routing", "table", "(", ")", "index", "(", "\"", "index", "\"", ")", "shard", "(", "0", ")", "shards", "with", "state", "(", "shard", "routing", "state", "initializing", ")", ")", ";", "state", "=", "cluster", "reroute", "(", "state", ",", "new", "cluster", "reroute", "request", "(", ")", ")", ";", "}", "index", "shard", "routing", "table", "pre", "table", "=", "state", "routing", "table", "(", ")", "index", "(", "\"", "index", "\"", ")", "shard", "(", "0", ")", ";", "final", "set", "<", "string", ">", "unchanged", "node", "ids", ";", "final", "index", "shard", "routing", "table", "post", "table", ";", "if", "(", "random", "boolean", "(", ")", ")", "{", "/", "/", "simulate", "node", "removal", "list", "<", "discovery", "node", ">", "nodes", "to", "remove", "=", "random", "subset", "of", "(", "2", ",", "data", "nodes", ")", ";", "unchanged", "node", "ids", "=", "data", "nodes", "stream", "(", ")", "filter", "(", "n", "-", ">", "nodes", "to", "remove", "contains", "(", "n", ")", "=", "=", "false", ")", "map", "(", "discovery", "node", ":", ":", "get", "id", ")", "collect", "(", "collectors", "to", "set", "(", ")", ")", ";", "state", "=", "cluster", "remove", "nodes", "(", "state", ",", "nodes", "to", "remove", ")", ";", "post", "table", "=", "state", "routing", "table", "(", ")", "index", "(", "\"", "index", "\"", ")", "shard", "(", "0", ")", ";", "assert", "true", "(", "\"", "not", "all", "shards", "started", "in", "\"", "+", "state", "to", "string", "(", ")", ",", "post", "table", "all", "shards", "started", "(", ")", ")", ";", "assert", "that", "(", "post", "table", "to", "string", "(", ")", ",", "post", "table", "get", "all", "allocation", "ids", "(", ")", ",", "every", "item", "(", "is", "(", "in", "(", "pre", "table", "get", "all", "allocation", "ids", "(", ")", ")", ")", ")", ")", ";", "}", "else", "{", "/", "/", "fake", "an", "election", "where", "conflicting", "nodes", "are", "removed", "and", "readded", "state", "=", "cluster", "state", "builder", "(", "state", ")", "nodes", "(", "discovery", "nodes", "builder", "(", "state", "nodes", "(", ")", ")", "master", "node", "id", "(", "null", ")", "build", "(", ")", ")", "build", "(", ")", ";", "list", "<", "discovery", "node", ">", "conflicting", "nodes", "=", "random", "subset", "of", "(", "2", ",", "data", "nodes", ")", ";", "unchanged", "node", "ids", "=", "data", "nodes", "stream", "(", ")", "filter", "(", "n", "-", ">", "conflicting", "nodes", "contains", "(", "n", ")", "=", "=", "false", ")", "map", "(", "discovery", "node", ":", ":", "get", "id", ")", "collect", "(", "collectors", "to", "set", "(", ")", ")", ";", "list", "<", "discovery", "node", ">", "nodes", "to", "add", "=", "conflicting", "nodes", "stream", "(", ")", "map", "(", "n", "-", ">", "new", "discovery", "node", "(", "n", "get", "name", "(", ")", ",", "n", "get", "id", "(", ")", ",", "build", "new", "fake", "transport", "address", "(", ")", ",", "n", "get", "attributes", "(", ")", ",", "n", "get", "roles", "(", ")", ",", "n", "get", "version", "(", ")", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";", "if", "(", "random", "boolean", "(", ")", ")", "{", "nodes", "to", "add", "add", "(", "create", "node", "(", "discovery", "node", "role", "data", "role", ")", ")", ";", "}", "state", "=", "cluster", "join", "nodes", "and", "become", "master", "(", "state", ",", "nodes", "to", "add", ")", ";", "post", "table", "=", "state", "routing", "table", "(", ")", "index", "(", "\"", "index", "\"", ")", "shard", "(", "0", ")", ";", "}", "set", "<", "string", ">", "unchanged", "allocation", "ids", "=", "pre", "table", "get", "shards", "(", ")", "stream", "(", ")", "filter", "(", "shr", "-", ">", "unchanged", "node", "ids", "contains", "(", "shr", "current", "node", "id", "(", ")", ")", ")", "map", "(", "shr", "-", ">", "shr", "allocation", "id", "(", ")", "get", "id", "(", ")", ")", "collect", "(", "collectors", "to", "set", "(", ")", ")", ";", "assert", "that", "(", "post", "table", "to", "string", "(", ")", ",", "unchanged", "allocation", "ids", ",", "every", "item", "(", "is", "(", "in", "(", "post", "table", "get", "all", "allocation", "ids", "(", ")", ")", ")", ")", ")", ";", "post", "table", "get", "shards", "(", ")", "for", "each", "(", "shard", "routing", "-", ">", "{", "if", "(", "shard", "routing", "assigned", "to", "node", "(", ")", "&", "&", "unchanged", "allocation", "ids", "contains", "(", "shard", "routing", "allocation", "id", "(", ")", "get", "id", "(", ")", ")", ")", "{", "assert", "true", "(", "\"", "shard", "should", "be", "active", ":", "\"", "+", "shard", "routing", ",", "shard", "routing", "active", "(", ")", ")", ";", "}", "}", ")", ";", "}", "finally", "{", "terminate", "(", "thread", "pool", ")", ";", "}", "}" ]
[ "read", "the", "boolean", "value" ]
[ "static", "boolean", "read", "boolean", "(", "data", "input", "in", ")", "throws", "i", "o", "exception", "{", "boolean", "writable", "u", "boolean", "=", "tl", "data", "get", "(", ")", "u", "boolean", ";", "u", "boolean", "read", "fields", "(", "in", ")", ";", "return", "u", "boolean", "get", "(", ")", ";", "}" ]
[ "returns", "the", "{", "@", "code", "stream", "operator", "factory", "}", "of", "this", "transformation" ]
[ "public", "stream", "operator", "factory", "<", "out", ">", "get", "operator", "factory", "(", ")", "{", "return", "operator", "factory", ";", "}" ]
[ "reads", "the", "entire", "file", "into", "a", "byte", "array", "@", "throw", "runtime", "exception", "if", "the", "file", "handle", "represents", "a", "directory", ",", "doesn", "'", "t", "exist", ",", "or", "could", "not", "be", "read" ]
[ "public", "byte", "[", "]", "read", "bytes", "(", ")", "{", "int", "length", "=", "(", "int", ")", "length", "(", ")", ";", "if", "(", "length", "=", "=", "0", ")", "length", "=", "512", ";", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "length", "]", ";", "int", "position", "=", "0", ";", "input", "stream", "input", "=", "read", "(", ")", ";", "try", "{", "while", "(", "true", ")", "{", "int", "count", "=", "input", "read", "(", "buffer", ",", "position", ",", "buffer", "length", "-", "position", ")", ";", "if", "(", "count", "=", "=", "-", "1", ")", "break", ";", "position", "+", "=", "count", ";", "if", "(", "position", "=", "=", "buffer", "length", ")", "{", "/", "/", "grow", "buffer", "byte", "[", "]", "new", "buffer", "=", "new", "byte", "[", "buffer", "length", "*", "2", "]", ";", "system", "arraycopy", "(", "buffer", ",", "0", ",", "new", "buffer", ",", "0", ",", "position", ")", ";", "buffer", "=", "new", "buffer", ";", "}", "}", "}", "catch", "(", "i", "o", "exception", "ex", ")", "{", "throw", "new", "runtime", "exception", "(", "\"", "error", "reading", "file", ":", "\"", "+", "this", ",", "ex", ")", ";", "}", "finally", "{", "try", "{", "if", "(", "input", "!", "=", "null", ")", "input", "close", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "ignored", ")", "{", "}", "}", "if", "(", "position", "<", "buffer", "length", ")", "{", "/", "/", "shrink", "buffer", "byte", "[", "]", "new", "buffer", "=", "new", "byte", "[", "position", "]", ";", "system", "arraycopy", "(", "buffer", ",", "0", ",", "new", "buffer", ",", "0", ",", "position", ")", ";", "buffer", "=", "new", "buffer", ";", "}", "return", "buffer", ";", "}" ]
[ "set", "the", "key", "to", "use", "for", "the", "bucket", "for", "documents", "not", "matching", "any", "filter" ]
[ "public", "filters", "aggregation", "builder", "other", "bucket", "key", "(", "string", "other", "bucket", "key", ")", "{", "if", "(", "other", "bucket", "key", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "[", "other", "bucket", "key", "]", "must", "not", "be", "null", ":", "[", "\"", "+", "name", "+", "\"", "]", "\"", ")", ";", "}", "this", "other", "bucket", "key", "=", "other", "bucket", "key", ";", "return", "this", ";", "}" ]
[ "force", "disposal", "of", "all", "transient", "projects", "associated", "with", "remote", "ghidra", "url", "connections", "warning", ":", "this", "method", "intended", "for", "testing", "only" ]
[ "public", "synchronized", "void", "dispose", "(", ")", "{", "/", "/", "todo", ":", "server", "handles", "may", "be", "shared", "with", "non", "-", "transient", "projects", "transient", "project", "data", "[", "]", "project", "data", "array", "=", "repository", "map", "values", "(", ")", "to", "array", "(", "new", "transient", "project", "data", "[", "repository", "map", "size", "(", ")", "]", ")", ";", "for", "(", "transient", "project", "data", "project", "data", ":", "project", "data", "array", ")", "{", "project", "data", "forced", "dispose", "(", ")", ";", "}", "repository", "map", "clear", "(", ")", ";", "}" ]
[ "put", "all", "keys", "that", "do", "not", "start", "with", "{", "@", "code", "prefix", "}", "and", "their", "parsed", "values", "in", "the", "result", "map", "and", "then", "put", "all", "the", "remaining", "keys", "with", "the", "prefix", "stripped", "and", "their", "parsed", "values", "in", "the", "result", "map", "this", "is", "useful", "if", "one", "wants", "to", "allow", "prefixed", "configs", "to", "override", "default", "ones", "two", "forms", "of", "prefixes", "are", "supported", ":", "listener", "name", "{", "listener", "name", "}", "some", "prop", ":", "if", "the", "provided", "prefix", "is", "`", "listener", "name", "{", "listener", "name", "}", "`", ",", "the", "key", "`", "some", "prop", "`", "with", "the", "value", "parsed", "using", "the", "definition", "of", "`", "some", "prop", "`", "is", "returned", "listener", "name", "{", "listener", "name", "}", "{", "mechanism", "}", "some", "prop", ":", "if", "the", "provided", "prefix", "is", "`", "listener", "name", "{", "listener", "name", "}", "`", ",", "the", "key", "`", "{", "mechanism", "}", "some", "prop", "`", "with", "the", "value", "parsed", "using", "the", "definition", "of", "`", "some", "prop", "`", "is", "returned", "this", "is", "used", "to", "provide", "per", "-", "mechanism", "configs", "for", "a", "broker", "listener", "(", "e", "g", "sasl", "jaas", "config", ")" ]
[ "public", "map", "<", "string", ",", "object", ">", "values", "with", "prefix", "override", "(", "string", "prefix", ")", "{", "map", "<", "string", ",", "object", ">", "result", "=", "new", "recording", "map", "<", ">", "(", "values", "(", ")", ",", "prefix", ",", "true", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "?", ">", "entry", ":", "originals", "entry", "set", "(", ")", ")", "{", "if", "(", "entry", "get", "key", "(", ")", "starts", "with", "(", "prefix", ")", "&", "&", "entry", "get", "key", "(", ")", "length", "(", ")", ">", "prefix", "length", "(", ")", ")", "{", "string", "key", "with", "no", "prefix", "=", "entry", "get", "key", "(", ")", "substring", "(", "prefix", "length", "(", ")", ")", ";", "config", "def", "config", "key", "config", "key", "=", "definition", "config", "keys", "(", ")", "get", "(", "key", "with", "no", "prefix", ")", ";", "if", "(", "config", "key", "!", "=", "null", ")", "result", "put", "(", "key", "with", "no", "prefix", ",", "definition", "parse", "value", "(", "config", "key", ",", "entry", "get", "value", "(", ")", ",", "true", ")", ")", ";", "else", "{", "string", "key", "with", "no", "secondary", "prefix", "=", "key", "with", "no", "prefix", "substring", "(", "key", "with", "no", "prefix", "index", "of", "(", "'", "'", ")", "+", "1", ")", ";", "config", "key", "=", "definition", "config", "keys", "(", ")", "get", "(", "key", "with", "no", "secondary", "prefix", ")", ";", "if", "(", "config", "key", "!", "=", "null", ")", "result", "put", "(", "key", "with", "no", "prefix", ",", "definition", "parse", "value", "(", "config", "key", ",", "entry", "get", "value", "(", ")", ",", "true", ")", ")", ";", "}", "}", "}", "return", "result", ";", "}" ]
[ "set", "the", "load", "more", "listener", "of", "recyclerview" ]
[ "public", "void", "set", "on", "load", "more", "listener", "(", "on", "load", "more", "listener", "on", "load", "more", "listener", ")", "{", "this", "on", "load", "more", "listener", "=", "on", "load", "more", "listener", ";", "}" ]
[ "when", "a", "pkcs", "#", "11", "token", "is", "used", "as", "the", "system", "default", "keystoretruststore", ",", "we", "need", "to", "pass", "the", "keystore", "password", "when", "loading", ",", "even", "for", "reading", "certificates", "only", "(", "as", "opposed", "to", "i", "e", "jks", "keystores", "where", "we", "only", "need", "to", "pass", "the", "password", "for", "reading", "private", "key", "entries", ")" ]
[ "private", "key", "store", "get", "system", "trust", "store", "(", ")", "throws", "key", "store", "exception", ",", "certificate", "exception", ",", "no", "such", "algorithm", "exception", ",", "i", "o", "exception", "{", "if", "(", "system", "get", "property", "(", "\"", "javax", "net", "ssl", "trust", "store", "type", "\"", ",", "\"", "\"", ")", "equals", "ignore", "case", "(", "\"", "pkcs11", "\"", ")", "&", "&", "trust", "store", "password", "!", "=", "null", ")", "{", "key", "store", "key", "store", "=", "key", "store", "get", "instance", "(", "\"", "pkcs11", "\"", ")", ";", "key", "store", "load", "(", "null", ",", "trust", "store", "password", "get", "chars", "(", ")", ")", ";", "return", "key", "store", ";", "}", "return", "null", ";", "}" ]
[ "loads", "the", "given", "target", "patterns", "after", "applying", "filters", "configured", "through", "parameters", "and", "options", "(", "such", "as", "removing", "non", "-", "test", "targets", "if", "{", "@", "code", "-", "-", "build", "tests", "only", "}", "is", "set", ")" ]
[ "public", "target", "pattern", "phase", "value", "load", "target", "patterns", "with", "filters", "(", "extended", "event", "handler", "event", "handler", ",", "list", "<", "string", ">", "target", "patterns", ",", "path", "fragment", "relative", "working", "directory", ",", "loading", "options", "options", ",", "int", "thread", "count", ",", "boolean", "keep", "going", ",", "boolean", "determine", "tests", ")", "throws", "target", "parsing", "exception", ",", "interrupted", "exception", "{", "sky", "key", "key", "=", "target", "pattern", "phase", "value", "key", "(", "immutable", "list", "copy", "of", "(", "target", "patterns", ")", ",", "relative", "working", "directory", ",", "options", "compile", "one", "dependency", ",", "options", "build", "tests", "only", ",", "determine", "tests", ",", "immutable", "list", "copy", "of", "(", "options", "build", "tag", "filter", "list", ")", ",", "options", "build", "manual", "tests", ",", "options", "expand", "test", "suites", ",", "test", "filter", "for", "options", "(", "options", ",", "event", "handler", ",", "pkg", "factory", "get", "rule", "class", "names", "(", ")", ")", ")", ";", "return", "get", "target", "pattern", "phase", "value", "(", "event", "handler", ",", "target", "patterns", ",", "thread", "count", ",", "keep", "going", ",", "key", ")", ";", "}" ]
[ "uploads", "an", "image", "(", "required", ")" ]
[ "public", "void", "upload", "file", "with", "required", "file", "(", "long", "pet", "id", ",", "async", "file", "required", "file", ",", "string", "additional", "metadata", ",", "handler", "<", "async", "result", "<", "model", "api", "response", ">", ">", "result", "handler", ")", "{", "delegate", "upload", "file", "with", "required", "file", "(", "pet", "id", ",", "required", "file", ",", "additional", "metadata", ",", "result", "handler", ")", ";", "}" ]
[ "sets", "the", "memory", "for", "materializing", "the", "channel", "'", "s", "result", "from", "this", "channel" ]
[ "public", "void", "set", "relative", "temp", "memory", "(", "double", "relative", "temp", "memory", ")", "{", "this", "relative", "temp", "memory", "=", "relative", "temp", "memory", ";", "}" ]
[ "deletes", "a", "pet" ]
[ "public", "api", "response", "<", "void", ">", "delete", "pet", "with", "http", "info", "(", "long", "pet", "id", ",", "string", "api", "key", ")", "throws", "api", "exception", "{", "http", "request", "builder", "local", "var", "request", "builder", "=", "delete", "pet", "request", "builder", "(", "pet", "id", ",", "api", "key", ")", ";", "try", "{", "http", "response", "<", "input", "stream", ">", "local", "var", "response", "=", "member", "var", "http", "client", "send", "(", "local", "var", "request", "builder", "build", "(", ")", ",", "http", "response", "body", "handlers", "of", "input", "stream", "(", ")", ")", ";", "if", "(", "member", "var", "response", "interceptor", "!", "=", "null", ")", "{", "member", "var", "response", "interceptor", "accept", "(", "local", "var", "response", ")", ";", "}", "if", "(", "local", "var", "response", "status", "code", "(", ")", "/", "100", "!", "=", "2", ")", "{", "throw", "new", "api", "exception", "(", "local", "var", "response", "status", "code", "(", ")", ",", "\"", "delete", "pet", "call", "received", "non", "-", "success", "response", "\"", ",", "local", "var", "response", "headers", "(", ")", ",", "local", "var", "response", "body", "(", ")", "=", "=", "null", "?", "null", ":", "new", "string", "(", "local", "var", "response", "body", "(", ")", "read", "all", "bytes", "(", ")", ")", ")", ";", "}", "return", "new", "api", "response", "<", "void", ">", "(", "local", "var", "response", "status", "code", "(", ")", ",", "local", "var", "response", "headers", "(", ")", "map", "(", ")", ",", "null", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "api", "exception", "(", "e", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "throw", "new", "api", "exception", "(", "e", ")", ";", "}", "}" ]
[ "highlights", "any", "y", "-", "value", "at", "the", "given", "x", "-", "value", "in", "the", "given", "data", "set", "provide", "-", "1", "as", "the", "data", "set", "index", "to", "undo", "all", "highlighting" ]
[ "public", "void", "highlight", "value", "(", "float", "x", ",", "int", "data", "set", "index", ",", "boolean", "call", "listener", ")", "{", "highlight", "value", "(", "x", ",", "float", "na", "n", ",", "data", "set", "index", ",", "-", "1", ",", "call", "listener", ")", ";", "}" ]
[ "return", "cors", "configuration", "thread", "-", "safe", "for", "concurrent", "use" ]
[ "public", "cors", "configuration", "get", "cors", "configuration", "(", "handler", "method", "handler", "method", ")", "{", "handler", "method", "original", "=", "handler", "method", "get", "resolved", "from", "handler", "method", "(", ")", ";", "return", "this", "cors", "lookup", "get", "(", "original", "!", "=", "null", "?", "original", ":", "handler", "method", ")", ";", "}" ]
[ "synchronously", "get", "role", "mapping", "(", "s", ")", "see", "<", "a", "href", "=", "\"", "https", ":", "www", "elastic", "coguideenelasticsearchreferencecurrentsecurity", "-", "api", "-", "get", "-", "role", "-", "mapping", "html", "\"", ">", "the", "docs", "for", "more" ]
[ "public", "get", "role", "mappings", "response", "get", "role", "mappings", "(", "final", "get", "role", "mappings", "request", "request", ",", "final", "request", "options", "options", ")", "throws", "i", "o", "exception", "{", "return", "rest", "high", "level", "client", "perform", "request", "and", "parse", "entity", "(", "request", ",", "security", "request", "converters", ":", ":", "get", "role", "mappings", ",", "options", ",", "get", "role", "mappings", "response", ":", ":", "from", "x", "content", ",", "empty", "set", "(", ")", ")", ";", "}" ]
[ "overrides", "and", "commits", "the", "given", "current", "term", "and", "cluster", "state" ]
[ "public", "void", "write", "full", "state", "and", "commit", "(", "long", "current", "term", ",", "cluster", "state", "cluster", "state", ")", "throws", "i", "o", "exception", "{", "ensure", "open", "(", ")", ";", "try", "{", "final", "long", "start", "time", "millis", "=", "relative", "time", "millis", "supplier", "get", "as", "long", "(", ")", ";", "final", "writer", "stats", "stats", "=", "overwrite", "metadata", "(", "cluster", "state", "metadata", "(", ")", ")", ";", "commit", "(", "current", "term", ",", "cluster", "state", "version", "(", ")", ")", ";", "full", "state", "written", "=", "true", ";", "final", "long", "duration", "millis", "=", "relative", "time", "millis", "supplier", "get", "as", "long", "(", ")", "-", "start", "time", "millis", ";", "final", "time", "value", "final", "slow", "write", "logging", "threshold", "=", "slow", "write", "logging", "threshold", "supplier", "get", "(", ")", ";", "if", "(", "duration", "millis", ">", "=", "final", "slow", "write", "logging", "threshold", "get", "millis", "(", ")", ")", "{", "logger", "warn", "(", "\"", "writing", "cluster", "state", "took", "[", "{", "}", "ms", "]", "which", "is", "above", "the", "warn", "threshold", "of", "[", "{", "}", "]", ";", "\"", "+", "\"", "wrote", "full", "state", "with", "[", "{", "}", "]", "indices", "\"", ",", "duration", "millis", ",", "final", "slow", "write", "logging", "threshold", ",", "stats", "num", "indices", "updated", ")", ";", "}", "else", "{", "logger", "debug", "(", "\"", "writing", "cluster", "state", "took", "[", "{", "}", "ms", "]", ";", "\"", "+", "\"", "wrote", "full", "state", "with", "[", "{", "}", "]", "indices", "\"", ",", "duration", "millis", ",", "stats", "num", "indices", "updated", ")", ";", "}", "}", "finally", "{", "close", "if", "any", "index", "writer", "has", "tragedy", "or", "is", "closed", "(", ")", ";", "}", "}" ]
[ "gets", "where", "the", "mr", "job", "places", "its", "data", "+", "output", "+", "results" ]
[ "private", "static", "file", "get", "flow", "location", "(", ")", "{", "return", "new", "file", "(", "get", "write", "loc", "(", ")", ",", "\"", "flow", "\"", ")", ";", "}" ]
[ "test", "inserting", "a", "document", "containing", "a", "metric", "that", "has", "not", "been", "defined", "in", "the", "field", "mapping" ]
[ "public", "void", "test", "unmapped", "metric", "(", ")", "throws", "exception", "{", "document", "mapper", "mapper", "=", "create", "document", "mapper", "(", "field", "mapping", "(", "this", ":", ":", "minimal", "mapping", ")", ")", ";", "exception", "e", "=", "expect", "throws", "(", "mapper", "parsing", "exception", "class", ",", "(", ")", "-", ">", "mapper", "parse", "(", "source", "(", "b", "-", ">", "b", "start", "object", "(", "\"", "field", "\"", ")", "field", "(", "\"", "min", "\"", ",", "-", "10", "1", ")", "field", "(", "\"", "max", "\"", ",", "50", "0", ")", "field", "(", "\"", "value", "count", "\"", ",", "14", ")", "field", "(", "\"", "sum", "\"", ",", "55", ")", "end", "object", "(", ")", ")", ")", ")", ";", "assert", "that", "(", "e", "get", "cause", "(", ")", "get", "message", "(", ")", ",", "contains", "string", "(", "\"", "aggregate", "metric", "[", "sum", "]", "does", "not", "exist", "in", "the", "mapping", "of", "field", "[", "field", "]", "\"", ")", ")", ";", "}" ]
[ "set", "the", "start", "time", "of", "the", "entity" ]
[ "public", "void", "set", "start", "time", "(", "long", "start", "time", ")", "{", "this", "start", "time", "=", "start", "time", ";", "}" ]
[ "return", "the", "name", "of", "the", "bean" ]
[ "public", "string", "get", "bean", "name", "(", ")", "{", "return", "string", "value", "of", "(", "super", "get", "bean", "name", "(", ")", ")", ";", "}" ]
[ "retrieves", "the", "unicode", "code", "point", "value", "that", "precedes", "the", "{", "@", "code", "index", "}" ]
[ "public", "int", "code", "point", "before", "(", "int", "index", ")", "{", "if", "(", "index", "<", "1", "|", "|", "index", ">", "length", ")", "{", "throw", "new", "string", "index", "out", "of", "bounds", "exception", "(", "index", ")", ";", "}", "return", "character", "code", "point", "before", "(", "chars", ",", "index", ")", ";", "}" ]
[ "sets", "{", "@", "link", "#", "flavor", "}" ]
[ "config", "with", "flavor", "(", "boolean", "flavor", ")", ";" ]
[ "locate", "mdui", "for", "entity", "id", "simple", "metadata", "ui", "info" ]
[ "public", "static", "saml", "metadata", "u", "i", "info", "locate", "metadata", "user", "interface", "for", "entity", "id", "(", "final", "metadata", "resolver", "adapter", "metadata", "adapter", ",", "final", "string", "entity", "id", ",", "final", "registered", "service", "registered", "service", ",", "final", "http", "servlet", "request", "request", "context", ")", "{", "val", "entity", "descriptor", "=", "metadata", "adapter", "get", "entity", "descriptor", "for", "entity", "id", "(", "entity", "id", ")", ";", "return", "locate", "metadata", "user", "interface", "for", "entity", "id", "(", "entity", "descriptor", ",", "entity", "id", ",", "registered", "service", ",", "request", "context", ")", ";", "}" ]
[ "checks", "that", "a", "gc", "disruption", "never", "blocks", "threads", "while", "they", "are", "doing", "something", "\"", "unsafe", "\"", "but", "does", "keep", "retrying", "until", "all", "threads", "can", "be", "safely", "paused" ]
[ "public", "void", "test", "not", "blocking", "unsafe", "stack", "traces", "(", ")", "throws", "exception", "{", "final", "string", "node", "name", "=", "\"", "test", "node", "\"", ";", "long", "g", "c", "disruption", "disruption", "=", "new", "long", "g", "c", "disruption", "(", "random", "(", ")", ",", "node", "name", ")", "{", "@", "override", "protected", "pattern", "[", "]", "get", "unsafe", "classes", "(", ")", "{", "return", "new", "pattern", "[", "]", "{", "pattern", "compile", "(", "locked", "executor", "class", "get", "simple", "name", "(", ")", ")", "}", ";", "}", "}", ";", "final", "atomic", "boolean", "stop", "=", "new", "atomic", "boolean", "(", ")", ";", "final", "locked", "executor", "locked", "executor", "=", "new", "locked", "executor", "(", ")", ";", "final", "atomic", "long", "ops", "=", "new", "atomic", "long", "(", ")", ";", "final", "thread", "[", "]", "threads", "=", "new", "thread", "[", "5", "]", ";", "final", "runnable", "yield", "and", "increment", "=", "(", ")", "-", ">", "{", "thread", "yield", "(", ")", ";", "/", "/", "give", "some", "chance", "to", "catch", "this", "stack", "trace", "ops", "increment", "and", "get", "(", ")", ";", "}", ";", "try", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "threads", "length", ";", "i", "+", "+", ")", "{", "threads", "[", "i", "]", "=", "new", "thread", "(", "(", ")", "-", ">", "{", "for", "(", "int", "iter", "=", "0", ";", "stop", "get", "(", ")", "=", "=", "false", ";", "iter", "+", "+", ")", "{", "if", "(", "iter", "%", "2", "=", "=", "0", ")", "{", "locked", "executor", "execute", "locked", "(", "yield", "and", "increment", ")", ";", "}", "else", "{", "yield", "and", "increment", "run", "(", ")", ";", "}", "}", "}", ")", ";", "threads", "[", "i", "]", "set", "name", "(", "\"", "[", "\"", "+", "node", "name", "+", "\"", "]", "[", "\"", "+", "i", "+", "\"", "]", "\"", ")", ";", "threads", "[", "i", "]", "start", "(", ")", ";", "}", "/", "/", "make", "sure", "some", "threads", "are", "under", "lock", "try", "{", "disruption", "start", "disrupting", "(", ")", ";", "}", "catch", "(", "runtime", "exception", "e", ")", "{", "if", "(", "e", "get", "message", "(", ")", "contains", "(", "\"", "suspending", "node", "threads", "took", "too", "long", "\"", ")", "&", "&", "disruption", "saw", "slow", "suspend", "bug", "(", ")", ")", "{", "return", ";", "}", "throw", "new", "assertion", "error", "(", "e", ")", ";", "}", "long", "first", "=", "ops", "get", "(", ")", ";", "assert", "that", "(", "locked", "executor", "lock", "is", "locked", "(", ")", ",", "equal", "to", "(", "false", ")", ")", ";", "/", "/", "no", "threads", "should", "own", "the", "lock", "thread", "sleep", "(", "100", ")", ";", "assert", "that", "(", "ops", "get", "(", ")", ",", "equal", "to", "(", "first", ")", ")", ";", "disruption", "stop", "disrupting", "(", ")", ";", "assert", "busy", "(", "(", ")", "-", ">", "assert", "that", "(", "ops", "get", "(", ")", ",", "greater", "than", "(", "first", ")", ")", ")", ";", "}", "finally", "{", "disruption", "stop", "disrupting", "(", ")", ";", "stop", "set", "(", "true", ")", ";", "for", "(", "final", "thread", "thread", ":", "threads", ")", "{", "thread", "join", "(", ")", ";", "}", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "prepared", "statement", "prepare", "statement", "(", "string", "sql", ",", "string", "[", "]", "column", "names", ")", "throws", "s", "q", "l", "exception", "{", "return", "proxy", "factory", "get", "proxy", "prepared", "statement", "(", "this", ",", "track", "statement", "(", "delegate", "prepare", "statement", "(", "sql", ",", "column", "names", ")", ")", ")", ";", "}" ]
[ "user", "not", "found" ]
[ "public", "void", "should", "see", "4", "0", "4", "after", "update", "user", "(", ")", "{", "string", "username", "=", "null", ";", "user", "body", "=", "null", ";", "api", "update", "user", "(", ")", "username", "path", "(", "username", ")", "body", "(", "body", ")", "execute", "(", "r", "-", ">", "r", "pretty", "peek", "(", ")", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "send", "a", "new", "request", "note", "that", "the", "request", "is", "not", "actually", "transmitted", "on", "the", "network", "until", "one", "of", "the", "{", "@", "link", "#", "poll", "(", "timer", ")", "}", "variants", "is", "invoked", "at", "this", "point", "the", "request", "will", "either", "be", "transmitted", "successfully", "or", "will", "fail", "use", "the", "returned", "future", "to", "obtain", "the", "result", "of", "the", "send", "note", "that", "there", "is", "no", "need", "to", "check", "for", "disconnects", "explicitly", "on", "the", "{", "@", "link", "client", "response", "}", "object", ";", "instead", ",", "the", "future", "will", "be", "failed", "with", "a", "{", "@", "link", "disconnect", "exception", "}" ]
[ "public", "request", "future", "<", "client", "response", ">", "send", "(", "node", "node", ",", "abstract", "request", "builder", "<", "?", ">", "request", "builder", ",", "int", "request", "timeout", "ms", ")", "{", "long", "now", "=", "time", "milliseconds", "(", ")", ";", "request", "future", "completion", "handler", "completion", "handler", "=", "new", "request", "future", "completion", "handler", "(", ")", ";", "client", "request", "client", "request", "=", "client", "new", "client", "request", "(", "node", "id", "string", "(", ")", ",", "request", "builder", ",", "now", ",", "true", ",", "request", "timeout", "ms", ",", "completion", "handler", ")", ";", "unsent", "put", "(", "node", ",", "client", "request", ")", ";", "/", "/", "wakeup", "the", "client", "in", "case", "it", "is", "blocking", "in", "poll", "so", "that", "we", "can", "send", "the", "queued", "request", "client", "wakeup", "(", ")", ";", "return", "completion", "handler", "future", ";", "}" ]
[ "get", "the", "server", "-", "side", "encryption", "algorithm", "this", "includes", "validation", "of", "the", "configuration", ",", "checking", "the", "state", "of", "the", "encryption", "key", "given", "the", "chosen", "algorithm" ]
[ "public", "static", "s", "3", "a", "encryption", "methods", "get", "encryption", "algorithm", "(", "string", "bucket", ",", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "s", "3", "a", "encryption", "methods", "sse", "=", "s", "3", "a", "encryption", "methods", "get", "method", "(", "lookup", "password", "(", "bucket", ",", "conf", ",", "server", "side", "encryption", "algorithm", ")", ")", ";", "string", "sse", "key", "=", "get", "server", "side", "encryption", "key", "(", "bucket", ",", "conf", ")", ";", "int", "sse", "key", "len", "=", "string", "utils", "is", "blank", "(", "sse", "key", ")", "?", "0", ":", "sse", "key", "length", "(", ")", ";", "string", "diagnostics", "=", "password", "diagnostics", "(", "sse", "key", ",", "\"", "key", "\"", ")", ";", "switch", "(", "sse", ")", "{", "case", "sse", "c", ":", "log", "debug", "(", "\"", "using", "sse", "-", "c", "with", "{", "}", "\"", ",", "diagnostics", ")", ";", "if", "(", "sse", "key", "len", "=", "=", "0", ")", "{", "throw", "new", "i", "o", "exception", "(", "sse", "c", "no", "key", "error", ")", ";", "}", "break", ";", "case", "sse", "s3", ":", "if", "(", "sse", "key", "len", "!", "=", "0", ")", "{", "throw", "new", "i", "o", "exception", "(", "sse", "s3", "with", "key", "error", "+", "\"", "(", "\"", "+", "diagnostics", "+", "\"", ")", "\"", ")", ";", "}", "break", ";", "case", "sse", "kms", ":", "log", "debug", "(", "\"", "using", "sse", "-", "kms", "with", "{", "}", "\"", ",", "diagnostics", ")", ";", "break", ";", "case", "none", ":", "default", ":", "log", "debug", "(", "\"", "data", "is", "unencrypted", "\"", ")", ";", "break", ";", "}", "return", "sse", ";", "}" ]
[ "set", "caller", "remote", "host" ]
[ "private", "void", "set", "remote", "host", "(", "string", "remote", "host", ")", "{", "set", "(", "remote", "host", ",", "remote", "host", ")", ";", "}" ]
[ "test", "to", "verify", "that", "the", "checksum", "can", "be", "computed", "by", "giving", "less", "than", "block", "group", "size", "length", "of", "file", "range", "for", "checksum", "calculation" ]
[ "public", "void", "test", "striped", "file", "checksum", "with", "missed", "data", "blocks", "range", "query", "1", "1", "(", ")", "throws", "exception", "{", "test", "striped", "file", "checksum", "with", "missed", "data", "blocks", "range", "query", "(", "striped", "file", "1", ",", "block", "group", "size", "-", "1", ")", ";", "}" ]
[ "release", "the", "snapshot" ]
[ "public", "void", "release", "(", ")", "{", "}" ]
[ "returns", "the", "retention", "lease", "with", "the", "specified", "id", ",", "or", "null", "if", "no", "such", "retention", "lease", "exists" ]
[ "public", "retention", "lease", "get", "(", "final", "string", "id", ")", "{", "return", "leases", "get", "(", "id", ")", ";", "}" ]
[ "model", "tests", "for", "additional", "properties", "class" ]
[ "public", "void", "test", "additional", "properties", "class", "(", ")", "{", "/", "/", "todo", ":", "test", "additional", "properties", "class", "}" ]
[ "disable", "x", "509", "certificate", "validation", "in", "tls", "connections", "please", "note", "that", "trusting", "all", "certificates", "is", "extremely", "risky", "this", "may", "be", "useful", "in", "a", "development", "environment", "with", "self", "-", "signed", "certificates" ]
[ "protected", "void", "disable", "certificate", "validation", "(", "client", "builder", "client", "builder", ")", "throws", "key", "management", "exception", ",", "no", "such", "algorithm", "exception", "{", "trust", "manager", "[", "]", "trust", "all", "certs", "=", "new", "x", "5", "0", "9", "trust", "manager", "[", "]", "{", "new", "x", "5", "0", "9", "trust", "manager", "(", ")", "{", "@", "override", "public", "x", "5", "0", "9", "certificate", "[", "]", "get", "accepted", "issuers", "(", ")", "{", "return", "null", ";", "}", "@", "override", "public", "void", "check", "client", "trusted", "(", "x", "5", "0", "9", "certificate", "[", "]", "certs", ",", "string", "auth", "type", ")", "{", "}", "@", "override", "public", "void", "check", "server", "trusted", "(", "x", "5", "0", "9", "certificate", "[", "]", "certs", ",", "string", "auth", "type", ")", "{", "}", "}", "}", ";", "s", "s", "l", "context", "ssl", "context", "=", "s", "s", "l", "context", "get", "instance", "(", "\"", "tls", "\"", ")", ";", "ssl", "context", "init", "(", "null", ",", "trust", "all", "certs", ",", "new", "secure", "random", "(", ")", ")", ";", "client", "builder", "ssl", "context", "(", "ssl", "context", ")", ";", "}" ]
[ "subclasses", "may", "override", "this", "for", "custom", "initialization", "based", "on", "the", "servlet", "context", "that", "this", "application", "object", "runs", "in", "the", "default", "implementation", "is", "empty", "called", "by", "{", "@", "link", "#", "init", "application", "context", "(", "org", "springframework", "context", "application", "context", ")", "}", "as", "well", "as", "{", "@", "link", "#", "set", "servlet", "context", "(", "javax", "servlet", "servlet", "context", ")", "}" ]
[ "protected", "void", "init", "servlet", "context", "(", "servlet", "context", "servlet", "context", ")", "{", "}" ]
[ "freezes", "this", "object", "(", "and", "not", "its", "contents", ")", "use", "with", "care", "this", "method", "is", "optional", "(", "i", "e", "may", "throw", "{", "@", "link", "not", "implemented", "exception", "}", ")", "if", "this", "object", "'", "s", "{", "@", "link", "mutability", "}", "is", "1", ")", "not", "frozen", ",", "and", "2", ")", "has", "{", "@", "link", "#", "allow", "unsafe", "shallow", "freeze", "}", "return", "true", ",", "then", "the", "object", "'", "s", "{", "@", "code", "mutability", "}", "reference", "is", "updated", "to", "point", "to", "{", "@", "link", "#", "immutable", "}", "otherwise", ",", "this", "method", "throws", "{", "@", "link", "illegal", "argument", "exception", "}", "it", "is", "up", "to", "the", "caller", "to", "ensure", "that", "any", "contents", "of", "this", "{", "@", "code", "freezable", "}", "are", "also", "frozen", "in", "order", "to", "preserverestore", "the", "invariant", "that", "an", "immutable", "value", "cannot", "contain", "a", "mutable", "one", "note", "that", "{", "@", "link", "starlark", "mutable", "#", "is", "immutable", "}", "correctness", "and", "thread", "-", "safety", "are", "not", "guaranteed", "otherwise" ]
[ "default", "void", "unsafe", "shallow", "freeze", "(", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "returns", "the", "{", "@", "link", "socks", "address", "type", "}", "of", "this", "{", "@", "link", "socks", "cmd", "response", "}" ]
[ "public", "socks", "address", "type", "address", "type", "(", ")", "{", "return", "address", "type", ";", "}" ]
[ "returns", "the", "field", "at", "{", "@", "code", "position", "}", "or", "null", "if", "that", "is", "out", "of", "range" ]
[ "public", "string", "get", "field", "name", "(", "int", "index", ")", "{", "int", "field", "name", "index", "=", "index", "*", "2", ";", "if", "(", "field", "name", "index", "<", "0", "|", "|", "field", "name", "index", ">", "=", "names", "and", "values", "size", "(", ")", ")", "{", "return", "null", ";", "}", "return", "names", "and", "values", "get", "(", "field", "name", "index", ")", ";", "}" ]
[ "returns", "true", "if", "there", "is", "an", "edge", "that", "directly", "connects", "{", "@", "code", "node", "u", "}", "to", "{", "@", "code", "node", "v", "}", "this", "is", "equivalent", "to", "{", "@", "code", "nodes", "(", ")", "contains", "(", "node", "u", ")", "&", "&", "successors", "(", "node", "u", ")", "contains", "(", "node", "v", ")", "}", "in", "an", "undirected", "graph", ",", "this", "is", "equal", "to", "{", "@", "code", "has", "edge", "connecting", "(", "node", "v", ",", "node", "u", ")", "}" ]
[ "boolean", "has", "edge", "connecting", "(", "n", "node", "u", ",", "n", "node", "v", ")", ";" ]
[ "get", "float", "minimum", ":", "54", "3", "maximum", ":", "987", "6" ]
[ "public", "float", "get", "float", "(", ")", "{", "return", "float", ";", "}" ]
[ "writes", "chars", "from", "the", "given", "char", "array", "to", "the", "current", "position", "and", "increases", "the", "position", "by", "the", "number", "of", "chars", "written", "calling", "this", "method", "has", "the", "same", "effect", "as", "{", "@", "code", "put", "(", "src", ",", "0", ",", "src", "length", ")", "}" ]
[ "public", "final", "char", "buffer", "put", "(", "char", "[", "]", "src", ")", "{", "return", "put", "(", "src", ",", "0", ",", "src", "length", ")", ";", "}" ]
[ "test", "the", "property", "'", "outer", "enum", "'" ]
[ "public", "void", "outer", "enum", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "outer", "enum", "}" ]
[ "code", "units", "are", "compared", "between", "the", "indicated", "listings", "starting", "at", "the", "indicated", "address", "the", "listings", "are", "searched", "in", "reverse", "address", "order", "until", "the", "address", "is", "found", "where", "all", "the", "listings", "have", "a", "code", "unit", "with", "the", "same", "minimum", "address" ]
[ "private", "address", "backward", "to", "common", "(", "listing", "[", "]", "listings", ",", "address", "start", ")", "{", "code", "unit", "iterator", "iter", "=", "listings", "[", "0", "]", "get", "code", "units", "(", "start", ",", "false", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "boolean", "matches", "=", "true", ";", "code", "unit", "cu", "=", "iter", "next", "(", ")", ";", "if", "(", "cu", "instanceof", "instruction", ")", "{", "instruction", "check", "instr", "=", "(", "instruction", ")", "cu", ";", "while", "(", "check", "instr", "!", "=", "null", "&", "&", "check", "instr", "is", "in", "delay", "slot", "(", ")", "&", "&", "iter", "has", "next", "(", ")", ")", "{", "cu", "=", "iter", "next", "(", ")", ";", "if", "(", "cu", "instanceof", "instruction", ")", "{", "check", "instr", "=", "(", "instruction", ")", "cu", ";", "}", "else", "{", "check", "instr", "=", "null", ";", "}", "}", "}", "address", "addr", "=", "cu", "get", "min", "address", "(", ")", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "listings", "length", ";", "i", "+", "+", ")", "{", "code", "unit", "check", "c", "u", "=", "listings", "[", "i", "]", "get", "code", "unit", "at", "(", "addr", ")", ";", "if", "(", "check", "c", "u", "=", "=", "null", ")", "{", "matches", "=", "false", ";", "break", ";", "}", "if", "(", "check", "c", "u", "instanceof", "instruction", ")", "{", "instruction", "check", "instr", "=", "(", "instruction", ")", "check", "c", "u", ";", "if", "(", "check", "instr", "is", "in", "delay", "slot", "(", ")", ")", "{", "matches", "=", "false", ";", "break", ";", "}", "}", "}", "if", "(", "matches", ")", "{", "return", "addr", ";", "}", "}", "return", "null", ";", "}" ]
[ "uses", "the", "given", "<", "code", ">", "patterns", "<", "code", ">", "to", "remove", "elements", "from", "the", "given", "stack", "trace", "the", "current", "implementation", "will", "simply", "perform", "a", "<", "code", ">", "to", "string", "(", ")", "<", "code", ">", "on", "each", "element", "and", "then", "check", "to", "see", "if", "that", "string", "contains", "any", "of", "the", "<", "code", ">", "patterns", "<", "code", ">" ]
[ "public", "static", "stack", "trace", "element", "[", "]", "filter", "stack", "trace", "(", "stack", "trace", "element", "[", "]", "trace", ",", "string", "patterns", ")", "{", "list", "<", "stack", "trace", "element", ">", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "stack", "trace", "element", "element", ":", "trace", ")", "{", "string", "trace", "string", "=", "element", "to", "string", "(", ")", ";", "if", "(", "contains", "any", "(", "trace", "string", ",", "patterns", ")", ")", "{", "continue", ";", "}", "list", "add", "(", "element", ")", ";", "}", "return", "list", "to", "array", "(", "new", "stack", "trace", "element", "[", "list", "size", "(", ")", "]", ")", ";", "}" ]
[ "get", "namespace", "number" ]
[ "public", "big", "decimal", "get", "namespace", "number", "(", ")", "{", "return", "namespace", "number", ";", "}" ]
[ "get", "the", "full", "path", "of", "this", "replica", "'", "s", "data", "file" ]
[ "public", "file", "get", "block", "file", "(", ")", "{", "return", "new", "file", "(", "get", "dir", "(", ")", ",", "get", "block", "name", "(", ")", ")", ";", "}" ]
[ "close", "all", "the", "proxy", "objects", "which", "have", "been", "opened", "over", "the", "lifetime", "of", "this", "proxy", "provider" ]
[ "public", "synchronized", "void", "close", "(", ")", "throws", "i", "o", "exception", "{", "for", "(", "proxy", "info", "<", "t", ">", "proxy", ":", "proxies", ")", "{", "if", "(", "proxy", "proxy", "!", "=", "null", ")", "{", "if", "(", "proxy", "proxy", "instanceof", "closeable", ")", "{", "(", "(", "closeable", ")", "proxy", "proxy", ")", "close", "(", ")", ";", "}", "else", "{", "rpc", "stop", "proxy", "(", "proxy", "proxy", ")", ";", "}", "}", "}", "}" ]
[ "allocates", "data", "buffer", "and", "checksums", "buffer", "as", "direct", "byte", "buffers" ]
[ "private", "void", "allocate", "direct", "byte", "buffers", "(", ")", "{", "data", "=", "byte", "buffer", "allocate", "direct", "(", "bytes", "per", "checksum", "*", "num", "chunks", ")", ";", "checksums", "=", "byte", "buffer", "allocate", "direct", "(", "num", "chunks", "*", "checksum", "type", "size", ")", ";", "}" ]
[ "binds", "the", "channel", "on", "provided", "port" ]
[ "public", "abstract", "void", "bind", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "asserts", "the", "queue", "is", "not", "present", "in", "the", "store" ]
[ "public", "void", "assert", "queue", "not", "present", "(", "c", "s", "queue", "store", "store", ",", "c", "s", "queue", "queue", ")", "{", "assert", "not", "equals", "(", "queue", ",", "store", "get", "(", "queue", "get", "queue", "short", "name", "(", ")", ")", ")", ";", "assert", "null", "(", "store", "get", "(", "queue", "get", "queue", "path", "(", ")", ")", ")", ";", "}" ]