docstring_tokens
list
code_tokens
list
[ "run", "the", "job", "with", "the", "indicating", "the", "input", "format", "key", "should", "be", "emitted" ]
[ "public", "void", "test", "command", "line", "with", "key", "(", ")", "throws", "exception", "{", "run", "stream", "job", "(", "output", "with", "key", ",", "false", ")", ";", "}" ]
[ "release", "all", "internal", "resources", "of", "this", "instance" ]
[ "public", "final", "void", "release", "(", ")", "{", "traffic", "counter", "stop", "(", ")", ";", "}" ]
[ "writes", "the", "serializer", "snapshot", "to", "the", "provided", "{", "@", "link", "data", "output", "view", "}", "the", "current", "version", "of", "the", "written", "serializer", "snapshot", "'", "s", "binary", "format", "is", "specified", "by", "the", "{", "@", "link", "#", "get", "current", "version", "(", ")", "}", "method" ]
[ "void", "write", "snapshot", "(", "data", "output", "view", "out", ")", "throws", "i", "o", "exception", ";" ]
[ "prepends", "the", "given", "{", "@", "link", "resource", "decoder", "}", "into", "the", "list", "of", "available", "{", "@", "link", "resource", "decoder", "}", "s", "in", "the", "same", "bucket", "so", "that", "it", "is", "attempted", "before", "all", "later", "and", "default", "{", "@", "link", "resource", "decoder", "}", "s", "for", "the", "given", "types", "in", "that", "bucket", "this", "method", "allows", "you", "to", "replace", "the", "default", "{", "@", "link", "resource", "decoder", "}", "for", "this", "bucket", "because", "it", "ensures", "the", "registered", "{", "@", "link", "resource", "decoder", "}", "will", "run", "first", "you", "can", "use", "the", "{", "@", "link", "resource", "decoder", "#", "handles", "(", "object", ",", "options", ")", "}", "to", "fall", "back", "to", "the", "default", "{", "@", "link", "resource", "decoder", "}", "s", "if", "you", "only", "want", "to", "change", "the", "default", "functionality", "for", "certain", "types", "of", "data" ]
[ "public", "<", "data", ",", "t", "resource", ">", "registry", "prepend", "(", "@", "non", "null", "string", "bucket", ",", "@", "non", "null", "class", "<", "data", ">", "data", "class", ",", "@", "non", "null", "class", "<", "t", "resource", ">", "resource", "class", ",", "@", "non", "null", "resource", "decoder", "<", "data", ",", "t", "resource", ">", "decoder", ")", "{", "decoder", "registry", "prepend", "(", "bucket", ",", "decoder", ",", "data", "class", ",", "resource", "class", ")", ";", "return", "this", ";", "}" ]
[ "by", "default", "only", "the", "edge", "set", "is", "processed", "for", "the", "computation", "of", "degree", "when", "this", "flag", "is", "set", "an", "additional", "join", "is", "performed", "against", "the", "vertex", "set", "in", "order", "to", "output", "vertices", "with", "a", "degree", "of", "zero" ]
[ "public", "vertex", "degree", "<", "k", ",", "vv", ",", "ev", ">", "set", "include", "zero", "degree", "vertices", "(", "boolean", "include", "zero", "degree", "vertices", ")", "{", "this", "include", "zero", "degree", "vertices", "set", "(", "include", "zero", "degree", "vertices", ")", ";", "return", "this", ";", "}" ]
[ "tests", "the", "independence", "of", "the", "reader", "index", "via", "{", "@", "link", "read", "only", "sliced", "network", "buffer", "#", "set", "reader", "index", "(", "int", ")", "}", "and", "{", "@", "link", "read", "only", "sliced", "network", "buffer", "#", "get", "reader", "index", "(", ")", "}" ]
[ "public", "void", "test", "get", "set", "reader", "index", "1", "(", ")", "{", "test", "get", "set", "reader", "index", "(", "buffer", "read", "only", "slice", "(", ")", ")", ";", "}" ]
[ "adds", "a", "constant", "string", "info", "to", "the", "constant", "pool", "of", "this", "symbol", "table", "does", "nothing", "if", "the", "constant", "pool", "already", "contains", "a", "similar", "item" ]
[ "symbol", "add", "constant", "string", "(", "final", "string", "value", ")", "{", "return", "add", "constant", "utf", "8", "reference", "(", "symbol", "constant", "string", "tag", ",", "value", ")", ";", "}" ]
[ "renders", "a", "bounding", "box", "to", "the", "depth", "buffer", "does", "not", "need", "to", "be", "axis", "aligned", ",", "but", "will", "use", "the", "translation", ",", "rotation", "and", "scale", "from", "the", "matrix", "parameter" ]
[ "public", "void", "draw", "b", "b", "(", "matrix", "4", "world", "transform", ",", "vector", "3", "half", "ext", ")", "{", "vector", "3", "center", "=", "tmp", "v", "1", "set", "zero", "(", ")", ";", "set", "a", "a", "b", "b", "vertices", "(", "center", ",", "half", "ext", ",", "box", ")", ";", "world", "transform", "get", "translation", "(", "center", ")", ";", "for", "(", "vector", "3", "vertex", ":", "box", ")", "{", "vertex", "rot", "(", "world", "transform", ")", ";", "vertex", "add", "(", "center", ")", ";", "}", "draw", "box", "(", "box", ",", "policy", "draw", ")", ";", "}" ]
[ "return", "whether", "the", "activity", "exists", "in", "activity", "'", "s", "stack" ]
[ "public", "static", "boolean", "is", "activity", "exists", "in", "stack", "(", "@", "non", "null", "final", "activity", "activity", ")", "{", "list", "<", "activity", ">", "activities", "=", "utils", "bridge", "get", "activity", "list", "(", ")", ";", "for", "(", "activity", "a", "activity", ":", "activities", ")", "{", "if", "(", "a", "activity", "equals", "(", "activity", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "get", "array", "array", "number" ]
[ "public", "list", "<", "list", "<", "big", "decimal", ">", ">", "get", "array", "array", "number", "(", ")", "{", "return", "array", "array", "number", ";", "}" ]
[ "read", "the", "includes", "and", "excludes", "lists", "from", "the", "named", "files", "any", "previous", "includes", "and", "excludes", "lists", "are", "discarded" ]
[ "private", "void", "refresh", "(", "string", "include", "file", ",", "string", "exclude", "file", ")", "throws", "i", "o", "exception", "{", "host", "set", "new", "includes", "=", "read", "file", "(", "\"", "included", "\"", ",", "include", "file", ")", ";", "host", "set", "new", "excludes", "=", "read", "file", "(", "\"", "excluded", "\"", ",", "exclude", "file", ")", ";", "refresh", "(", "new", "includes", ",", "new", "excludes", ")", ";", "}" ]
[ "increases", "the", "reference", "count", "by", "{", "@", "code", "1", "}" ]
[ "binary", "memcache", "message", "retain", "(", ")", ";" ]
[ "parse", "a", "string", "gap", "policy", "into", "the", "byte", "enum" ]
[ "public", "static", "gap", "policy", "parse", "(", "string", "text", ",", "x", "content", "location", "token", "location", ")", "{", "gap", "policy", "result", "=", "null", ";", "for", "(", "gap", "policy", "policy", ":", "values", "(", ")", ")", "{", "if", "(", "policy", "parse", "field", "match", "(", "text", ",", "logging", "deprecation", "handler", "instance", ")", ")", "{", "if", "(", "result", "=", "=", "null", ")", "{", "result", "=", "policy", ";", "}", "else", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "text", "can", "be", "parsed", "to", "2", "different", "gap", "policies", ":", "text", "=", "[", "\"", "+", "text", "+", "\"", "]", ",", "\"", "+", "\"", "policies", "=", "\"", "+", "arrays", "as", "list", "(", "result", ",", "policy", ")", ")", ";", "}", "}", "}", "if", "(", "result", "=", "=", "null", ")", "{", "final", "list", "<", "string", ">", "valid", "names", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "gap", "policy", "policy", ":", "values", "(", ")", ")", "{", "valid", "names", "add", "(", "policy", "get", "name", "(", ")", ")", ";", "}", "throw", "new", "parsing", "exception", "(", "token", "location", ",", "\"", "invalid", "gap", "policy", ":", "[", "\"", "+", "text", "+", "\"", "]", ",", "accepted", "values", ":", "\"", "+", "valid", "names", ")", ";", "}", "return", "result", ";", "}" ]
[ "for", "testing", "only", "same", "as", "{", "@", "link", "#", "exec", "(", "invocation", "policy", ",", "list", ",", "out", "err", ",", "locking", "mode", ",", "string", ",", "long", ",", "optional", "<", "list", "<", "pair", "<", "string", ",", "string", ">", ">", ">", ")", "}", ",", "but", "automatically", "uses", "the", "current", "time" ]
[ "public", "blaze", "command", "result", "exec", "(", "list", "<", "string", ">", "args", ",", "string", "client", "description", ",", "out", "err", "original", "out", "err", ")", "throws", "interrupted", "exception", "{", "return", "exec", "(", "invocation", "policy", "get", "default", "instance", "(", ")", ",", "args", ",", "original", "out", "err", ",", "locking", "mode", "error", "out", ",", "client", "description", ",", "runtime", "get", "clock", "(", ")", "current", "time", "millis", "(", ")", ",", "/", "*", "startup", "options", "tagged", "with", "bazel", "rc", "=", "*", "/", "optional", "empty", "(", ")", ",", "/", "*", "command", "extensions", "=", "*", "/", "immutable", "list", "of", "(", ")", ")", ";", "}" ]
[ "create", "a", "stats", "notification" ]
[ "private", "static", "notification", "create", "stats", "notification", "(", ")", "{", "final", "notification", "group", "group", "=", "new", "notification", "group", "(", "notify", "channel", ",", "notification", "display", "type", "sticky", "balloon", ",", "true", ")", ";", "final", "m", "t", "statistics", "notification", "notif", "=", "new", "m", "t", "statistics", "notification", "(", ")", ";", "return", "group", "create", "notification", "(", "notif", "get", "title", "(", ")", ",", "notif", "get", "subtitle", "(", ")", ",", "notif", "get", "content", "(", ")", ",", "notif", "get", "type", "(", ")", ",", "notif", "get", "listener", "(", ")", ")", ";", "}" ]
[ "creates", "a", "{", "@", "link", "pem", "x", "5", "0", "9", "certificate", "}", "from", "raw", "{", "@", "code", "byte", "[", "]", "}", "attention", ":", "it", "'", "s", "assumed", "that", "the", "given", "argument", "is", "a", "pempkcs", "#", "8", "encoded", "value", "no", "input", "validation", "is", "performed", "to", "validate", "it" ]
[ "public", "static", "pem", "x", "5", "0", "9", "certificate", "value", "of", "(", "byte", "[", "]", "key", ")", "{", "return", "value", "of", "(", "unpooled", "wrapped", "buffer", "(", "key", ")", ")", ";", "}" ]
[ "set", "environment", "variables", "from", "map", "of", "input", "properties" ]
[ "private", "static", "void", "set", "env", "from", "input", "string", "map", "(", "map", "<", "string", ",", "string", ">", "env", ",", "map", "<", "string", ",", "string", ">", "input", "map", ",", "string", "class", "path", "separator", ")", "{", "for", "(", "map", "entry", "<", "string", ",", "string", ">", "input", "var", ":", "input", "map", "entry", "set", "(", ")", ")", "{", "string", "env", "var", "=", "input", "var", "get", "key", "(", ")", ";", "string", "var", "string", "=", "input", "var", "get", "value", "(", ")", ";", "set", "env", "from", "string", "(", "env", ",", "env", "var", ",", "var", "string", ",", "class", "path", "separator", ")", ";", "}", "}" ]
[ "clears", "the", "value", "of", "a", "request", "header", "the", "change", "will", "apply", "to", "subsequent", "connections", "established", "by", "the", "source" ]
[ "void", "clear", "request", "property", "(", "string", "name", ")", ";" ]
[ "determines", "if", "the", "data", "type", "will", "fit", "in", "a", "single", "memory", "block", "in", "the", "program" ]
[ "protected", "boolean", "fits", "in", "single", "memory", "block", "(", ")", "{", "int", "data", "type", "length", "=", "get", "data", "type", "length", "(", ")", ";", "if", "(", "data", "type", "length", "<", "0", ")", "{", "return", "false", ";", "}", "try", "{", "long", "total", "size", "=", "data", "type", "length", "*", "count", ";", "address", "start", "=", "get", "address", "(", ")", ";", "address", "end", "=", "start", "add", "(", "total", "size", "-", "1", ")", ";", "memory", "memory", "=", "get", "program", "(", ")", "get", "memory", "(", ")", ";", "memory", "block", "start", "block", "=", "memory", "get", "block", "(", "start", ")", ";", "return", "start", "block", "!", "=", "null", "&", "&", "start", "block", "contains", "(", "end", ")", ";", "}", "catch", "(", "address", "out", "of", "bounds", "exception", "e", ")", "{", "return", "false", ";", "}", "}" ]
[ "determine", "if", "the", "attribute", "at", "the", "specified", "index", "could", "throw", "a", "{", "@", "link", "type", "not", "present", "exception", "}", "when", "accessed" ]
[ "boolean", "can", "throw", "type", "not", "present", "exception", "(", "int", "index", ")", "{", "return", "this", "can", "throw", "type", "not", "present", "exception", "[", "index", "]", ";", "}" ]
[ "get", "the", "name", "of", "the", "{", "@", "code", "plan", "}", "that", "corresponds", "to", "the", "name", "of", "the", "{", "@", "link", "queue", "info", "}", "in", "the", "scheduler", "to", "which", "the", "reservation", "will", "be", "submitted", "to" ]
[ "public", "abstract", "string", "get", "queue", "(", ")", ";" ]
[ "writes", "bytes", "to", "a", "file", "this", "utility", "method", "opens", "the", "file", "for", "writing", ",", "creating", "the", "file", "if", "it", "does", "not", "exist", ",", "or", "overwrites", "an", "existing", "file", "all", "bytes", "in", "the", "byte", "array", "are", "written", "to", "the", "file" ]
[ "public", "static", "file", "context", "write", "(", "final", "file", "context", "file", "context", ",", "final", "path", "path", ",", "final", "byte", "[", "]", "bytes", ")", "throws", "i", "o", "exception", "{", "objects", "require", "non", "null", "(", "path", ")", ";", "objects", "require", "non", "null", "(", "bytes", ")", ";", "try", "(", "f", "s", "data", "output", "stream", "out", "=", "file", "context", "create", "(", "path", ")", "overwrite", "(", "true", ")", "build", "(", ")", ")", "{", "out", "write", "(", "bytes", ")", ";", "}", "return", "file", "context", ";", "}" ]
[ "returns", "the", "{", "@", "link", "address", "family", "}", "represented", "by", "the", "highest", "4", "bits", "of", "the", "specified", "byte" ]
[ "public", "static", "address", "family", "value", "of", "(", "byte", "tpaf", "byte", ")", "{", "int", "address", "family", "=", "tpaf", "byte", "&", "family", "mask", ";", "switch", "(", "(", "byte", ")", "address", "family", ")", "{", "case", "af", "ipv4", "byte", ":", "return", "af", "i", "pv", "4", ";", "case", "af", "ipv6", "byte", ":", "return", "af", "i", "pv", "6", ";", "case", "af", "unspec", "byte", ":", "return", "af", "unspec", ";", "case", "af", "unix", "byte", ":", "return", "af", "unix", ";", "default", ":", "throw", "new", "illegal", "argument", "exception", "(", "\"", "unknown", "address", "family", ":", "\"", "+", "address", "family", ")", ";", "}", "}" ]
[ "does", "a", "registerizing", "dump" ]
[ "private", "void", "rop", "dump", "(", "concrete", "method", "meth", ")", "{", "translation", "advice", "advice", "=", "dex", "translation", "advice", "the", "one", ";", "bytecode", "array", "code", "=", "meth", "get", "code", "(", ")", ";", "byte", "array", "bytes", "=", "code", "get", "bytes", "(", ")", ";", "rop", "method", "rmeth", "=", "ropper", "convert", "(", "meth", ",", "advice", ",", "class", "file", "get", "methods", "(", ")", ")", ";", "string", "buffer", "sb", "=", "new", "string", "buffer", "(", "2000", ")", ";", "if", "(", "optimize", ")", "{", "boolean", "is", "static", "=", "access", "flags", "is", "static", "(", "meth", "get", "access", "flags", "(", ")", ")", ";", "int", "param", "width", "=", "compute", "param", "width", "(", "meth", ",", "is", "static", ")", ";", "rmeth", "=", "optimizer", "optimize", "(", "rmeth", ",", "param", "width", ",", "is", "static", ",", "true", ",", "advice", ")", ";", "}", "basic", "block", "list", "blocks", "=", "rmeth", "get", "blocks", "(", ")", ";", "int", "[", "]", "order", "=", "blocks", "get", "labels", "in", "order", "(", ")", ";", "sb", "append", "(", "\"", "first", "\"", "+", "hex", "u", "2", "(", "rmeth", "get", "first", "label", "(", ")", ")", "+", "\"", "\\", "n", "\"", ")", ";", "for", "(", "int", "label", ":", "order", ")", "{", "basic", "block", "bb", "=", "blocks", "get", "(", "blocks", "index", "of", "label", "(", "label", ")", ")", ";", "sb", "append", "(", "\"", "block", "\"", ")", ";", "sb", "append", "(", "hex", "u", "2", "(", "label", ")", ")", ";", "sb", "append", "(", "\"", "\\", "n", "\"", ")", ";", "int", "list", "preds", "=", "rmeth", "label", "to", "predecessors", "(", "label", ")", ";", "int", "psz", "=", "preds", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "psz", ";", "i", "+", "+", ")", "{", "sb", "append", "(", "\"", "pred", "\"", ")", ";", "sb", "append", "(", "hex", "u", "2", "(", "preds", "get", "(", "i", ")", ")", ")", ";", "sb", "append", "(", "\"", "\\", "n", "\"", ")", ";", "}", "insn", "list", "il", "=", "bb", "get", "insns", "(", ")", ";", "int", "ilsz", "=", "il", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ilsz", ";", "i", "+", "+", ")", "{", "insn", "one", "=", "il", "get", "(", "i", ")", ";", "sb", "append", "(", "\"", "\"", ")", ";", "sb", "append", "(", "il", "get", "(", "i", ")", "to", "human", "(", ")", ")", ";", "sb", "append", "(", "\"", "\\", "n", "\"", ")", ";", "}", "int", "list", "successors", "=", "bb", "get", "successors", "(", ")", ";", "int", "ssz", "=", "successors", "size", "(", ")", ";", "if", "(", "ssz", "=", "=", "0", ")", "{", "sb", "append", "(", "\"", "returns", "\\", "n", "\"", ")", ";", "}", "else", "{", "int", "primary", "=", "bb", "get", "primary", "successor", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ssz", ";", "i", "+", "+", ")", "{", "int", "succ", "=", "successors", "get", "(", "i", ")", ";", "sb", "append", "(", "\"", "next", "\"", ")", ";", "sb", "append", "(", "hex", "u", "2", "(", "succ", ")", ")", ";", "if", "(", "(", "ssz", "!", "=", "1", ")", "&", "&", "(", "succ", "=", "=", "primary", ")", ")", "{", "sb", "append", "(", "\"", "*", "\"", ")", ";", "}", "sb", "append", "(", "\"", "\\", "n", "\"", ")", ";", "}", "}", "}", "suppress", "dump", "=", "false", ";", "set", "at", "(", "bytes", ",", "0", ")", ";", "parsed", "(", "bytes", ",", "0", ",", "bytes", "size", "(", ")", ",", "sb", "to", "string", "(", ")", ")", ";", "suppress", "dump", "=", "true", ";", "}" ]
[ "get", "integer", "item" ]
[ "public", "integer", "get", "integer", "item", "(", ")", "{", "return", "integer", "item", ";", "}" ]
[ "process", "all", "queued", "commands", "for", "the", "specified", "server" ]
[ "static", "void", "process", "commands", "(", "repository", "manager", "repository", "mgr", ")", "throws", "i", "o", "exception", "{", "file", "cmd", "dir", "=", "new", "file", "(", "repository", "mgr", "get", "root", "dir", "(", ")", ",", "admin", "cmd", "dir", ")", ";", "if", "(", "!", "cmd", "dir", "exists", "(", ")", ")", "{", "/", "/", "ensure", "process", "owner", "creates", "queued", "command", "directory", "cmd", "dir", "mkdir", "(", ")", ";", "return", ";", "}", "file", "[", "]", "files", "=", "cmd", "dir", "list", "files", "(", "cmd", "file", "filter", ")", ";", "if", "(", "files", "=", "=", "null", ")", "{", "log", "error", "(", "\"", "failed", "to", "access", "command", "queue", "\"", "+", "cmd", "dir", "get", "absolute", "path", "(", ")", "+", "\"", ":", "possible", "permission", "problem", "\"", ")", ";", "return", ";", "}", "arrays", "sort", "(", "files", ",", "file", "date", "comparator", ")", ";", "if", "(", "files", "length", "=", "=", "0", ")", "{", "return", ";", "}", "log", "info", "(", "\"", "processing", "\"", "+", "files", "length", "+", "\"", "queued", "commands", "\"", ")", ";", "for", "(", "file", "file", ":", "files", ")", "{", "list", "<", "string", ">", "cmd", "list", "=", "file", "utilities", "get", "lines", "(", "file", ")", ";", "for", "(", "string", "cmd", "str", ":", "cmd", "list", ")", "{", "if", "(", "cmd", "str", "is", "blank", "(", ")", ")", "{", "continue", ";", "}", "process", "command", "(", "repository", "mgr", ",", "cmd", "str", "trim", "(", ")", ")", ";", "}", "file", "delete", "(", ")", ";", "}", "}" ]
[ "parses", "a", "double", "from", "a", "string" ]
[ "public", "double", "parse", "double", "(", "string", "val", ")", "{", "if", "(", "\"", "pi", "\"", "equals", "ignore", "case", "(", "val", ")", ")", "{", "return", "math", "pi", ";", "}", "if", "(", "\"", "e", "\"", "equals", "ignore", "case", "(", "val", ")", ")", "{", "return", "math", "e", ";", "}", "try", "{", "return", "double", "value", "of", "(", "val", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "invalid", "double", ":", "\"", "+", "val", ")", ";", "}", "}" ]
[ "assert", "that", "two", "json", "strings", "are", "equal", "as", "json", "objects" ]
[ "public", "static", "void", "assert", "equals", "as", "json", "(", "string", "actual", ",", "string", "expected", ")", "{", "try", "{", "json", "node", "json", "a", "=", "mapper", "read", "value", "(", "expected", ",", "json", "node", "class", ")", ";", "json", "node", "json", "b", "=", "mapper", "read", "value", "(", "actual", ",", "json", "node", "class", ")", ";", "if", "(", "!", "json", "a", "equals", "(", "json", "b", ")", ")", "{", "json", "diff", "(", "expected", ",", "actual", ")", ";", "fail", "(", "\"", "objects", "above", "are", "not", "equal", "as", "json", "strings", "\"", ")", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "fail", "(", "\"", "\\", "\"", "\"", "+", "actual", "+", "\"", "\\", "\"", "and", "\\", "\"", "\"", "+", "expected", "+", "\"", "\\", "\"", "are", "not", "equal", "as", "json", "strings", "\"", ")", ";", "}", "}" ]
[ "returns", "true", "if", "the", "given", "name", "is", "a", "valid", "workspace", "name" ]
[ "public", "static", "boolean", "is", "legal", "workspace", "name", "(", "string", "name", ")", "{", "matcher", "matcher", "=", "legal", "workspace", "name", "matcher", "(", "name", ")", ";", "return", "matcher", "matches", "(", ")", ";", "}" ]
[ "create", "the", "ml", "-", "annotations", "-", "6", "index", "with", "correct", "mappings", "if", "it", "does", "not", "already", "exist", "this", "index", "is", "read", "and", "written", "by", "the", "ui", "results", "views", ",", "so", "needs", "to", "exist", "when", "there", "might", "be", "ml", "results", "to", "view" ]
[ "public", "static", "void", "create", "annotations", "index", "if", "necessary", "(", "client", "client", ",", "cluster", "state", "state", ",", "final", "action", "listener", "<", "boolean", ">", "final", "listener", ")", "{", "final", "action", "listener", "<", "boolean", ">", "check", "mappings", "listener", "=", "action", "listener", "wrap", "(", "success", "-", ">", "{", "elasticsearch", "mappings", "add", "doc", "mapping", "if", "missing", "(", "write", "alias", "name", ",", "annotation", "index", ":", ":", "annotations", "mapping", ",", "client", ",", "state", ",", "final", "listener", ")", ";", "}", ",", "final", "listener", ":", ":", "on", "failure", ")", ";", "final", "action", "listener", "<", "boolean", ">", "create", "alias", "listener", "=", "action", "listener", "wrap", "(", "success", "-", ">", "{", "final", "indices", "aliases", "request", "request", "=", "client", "admin", "(", ")", "indices", "(", ")", "prepare", "aliases", "(", ")", "add", "alias", "action", "(", "indices", "aliases", "request", "alias", "actions", "add", "(", ")", "index", "(", "index", "name", ")", "alias", "(", "read", "alias", "name", ")", "is", "hidden", "(", "true", ")", ")", "add", "alias", "action", "(", "indices", "aliases", "request", "alias", "actions", "add", "(", ")", "index", "(", "index", "name", ")", "alias", "(", "write", "alias", "name", ")", "is", "hidden", "(", "true", ")", ")", "request", "(", ")", ";", "execute", "async", "with", "origin", "(", "client", "thread", "pool", "(", ")", "get", "thread", "context", "(", ")", ",", "ml", "origin", ",", "request", ",", "action", "listener", "<", "acknowledged", "response", ">", "wrap", "(", "r", "-", ">", "check", "mappings", "listener", "on", "response", "(", "r", "is", "acknowledged", "(", ")", ")", ",", "final", "listener", ":", ":", "on", "failure", ")", ",", "client", "admin", "(", ")", "indices", "(", ")", ":", ":", "aliases", ")", ";", "}", ",", "final", "listener", ":", ":", "on", "failure", ")", ";", "/", "/", "only", "create", "the", "index", "or", "aliases", "if", "some", "other", "ml", "index", "exists", "-", "saves", "clutter", "if", "ml", "is", "never", "used", "sorted", "map", "<", "string", ",", "index", "abstraction", ">", "ml", "lookup", "=", "state", "get", "metadata", "(", ")", "get", "indices", "lookup", "(", ")", "tail", "map", "(", "\"", "ml", "\"", ")", ";", "if", "(", "ml", "lookup", "is", "empty", "(", ")", "=", "=", "false", "&", "&", "ml", "lookup", "first", "key", "(", ")", "starts", "with", "(", "\"", "ml", "\"", ")", ")", "{", "/", "/", "create", "the", "annotations", "index", "if", "it", "doesn", "'", "t", "exist", "already", "if", "(", "ml", "lookup", "contains", "key", "(", "index", "name", ")", "=", "=", "false", ")", "{", "create", "index", "request", "create", "index", "request", "=", "new", "create", "index", "request", "(", "index", "name", ")", "mapping", "(", "annotations", "mapping", "(", ")", ")", "settings", "(", "settings", "builder", "(", ")", "put", "(", "index", "metadata", "setting", "auto", "expand", "replicas", ",", "\"", "0", "-", "1", "\"", ")", "put", "(", "index", "metadata", "setting", "number", "of", "shards", ",", "\"", "1", "\"", ")", "put", "(", "index", "metadata", "setting", "index", "hidden", ",", "true", ")", ")", ";", "execute", "async", "with", "origin", "(", "client", "thread", "pool", "(", ")", "get", "thread", "context", "(", ")", ",", "ml", "origin", ",", "create", "index", "request", ",", "action", "listener", "<", "create", "index", "response", ">", "wrap", "(", "r", "-", ">", "create", "alias", "listener", "on", "response", "(", "r", "is", "acknowledged", "(", ")", ")", ",", "e", "-", ">", "{", "/", "/", "possible", "that", "the", "index", "was", "created", "while", "the", "request", "was", "executing", ",", "/", "/", "so", "we", "need", "to", "handle", "that", "possibility", "if", "(", "exceptions", "helper", "unwrap", "cause", "(", "e", ")", "instanceof", "resource", "already", "exists", "exception", ")", "{", "/", "/", "create", "the", "alias", "create", "alias", "listener", "on", "response", "(", "true", ")", ";", "}", "else", "{", "final", "listener", "on", "failure", "(", "e", ")", ";", "}", "}", ")", ",", "client", "admin", "(", ")", "indices", "(", ")", ":", ":", "create", ")", ";", "return", ";", "}", "/", "/", "recreate", "the", "aliases", "if", "they", "'", "ve", "gone", "even", "though", "the", "index", "still", "exists", "if", "(", "ml", "lookup", "contains", "key", "(", "read", "alias", "name", ")", "=", "=", "false", "|", "|", "ml", "lookup", "contains", "key", "(", "write", "alias", "name", ")", "=", "=", "false", ")", "{", "create", "alias", "listener", "on", "response", "(", "true", ")", ";", "return", ";", "}", "/", "/", "check", "the", "mappings", "check", "mappings", "listener", "on", "response", "(", "false", ")", ";", "return", ";", "}", "/", "/", "nothing", "to", "do", ",", "but", "respond", "to", "the", "listener", "final", "listener", "on", "response", "(", "false", ")", ";", "}" ]
[ "creates", "a", "string", "representation", "of", "the", "tuple", "in", "the", "form", "(", "f", "0", ",", "f", "1", ",", "f", "2", ",", "f", "3", ",", "f", "4", ",", "f", "5", ",", "f", "6", ",", "f", "7", ",", "f", "8", ",", "f", "9", ",", "f", "1", "0", ",", "f", "1", "1", ",", "f", "1", "2", ",", "f", "1", "3", ",", "f", "1", "4", ")", ",", "where", "the", "individual", "fields", "are", "the", "value", "returned", "by", "calling", "{", "@", "link", "object", "#", "to", "string", "}", "on", "that", "field" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "\"", "(", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "0", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "2", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "3", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "4", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "5", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "6", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "7", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "8", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "9", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", "0", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", "1", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", "2", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", "3", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", "4", ")", "+", "\"", ")", "\"", ";", "}" ]
[ "return", "the", "position", "of", "the", "job", ",", "a", "generic", "to", "be", "passed", "to", "the", "next", "query", "construction" ]
[ "public", "job", "position", "get", "position", "(", ")", "{", "return", "position", ";", "}" ]
[ "obtain", "the", "crypto", "protocol", "version", "from", "the", "provided", "file", "encryption", "info", ",", "checking", "to", "see", "if", "this", "version", "is", "supported", "by" ]
[ "public", "static", "crypto", "protocol", "version", "get", "crypto", "protocol", "version", "(", "file", "encryption", "info", "fe", "info", ")", "throws", "i", "o", "exception", "{", "final", "crypto", "protocol", "version", "version", "=", "fe", "info", "get", "crypto", "protocol", "version", "(", ")", ";", "if", "(", "!", "crypto", "protocol", "version", "supports", "(", "version", ")", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "client", "does", "not", "support", "specified", "\"", "+", "\"", "crypto", "protocol", "version", "\"", "+", "version", "get", "description", "(", ")", "+", "\"", "version", "\"", "+", "\"", "number", "\"", "+", "version", "get", "version", "(", ")", ")", ";", "}", "return", "version", ";", "}" ]
[ "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")", "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")" ]
[ "public", "void", "test", "group", "parameters", "test", "(", ")", "{", "integer", "required", "string", "group", "=", "null", ";", "boolean", "required", "boolean", "group", "=", "null", ";", "long", "required", "int", "6", "4", "group", "=", "null", ";", "integer", "string", "group", "=", "null", ";", "boolean", "boolean", "group", "=", "null", ";", "long", "int", "6", "4", "group", "=", "null", ";", "/", "/", "api", "test", "group", "parameters", "(", "required", "string", "group", ",", "required", "boolean", "group", ",", "required", "int", "6", "4", "group", ",", "string", "group", ",", "boolean", "group", ",", "int", "6", "4", "group", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "returns", "a", "uri", "whose", "scheme", "and", "authority", "identify", "this", "file", "system" ]
[ "public", "uri", "get", "uri", "(", ")", "{", "return", "uri", ";", "}" ]
[ "x", "\\", "cdot", "y" ]
[ "public", "static", "double", "dot", "(", "dense", "vector", "x", ",", "dense", "vector", "y", ")", "{", "return", "dot", "(", "x", "get", "data", "(", ")", ",", "y", "get", "data", "(", ")", ")", ";", "}" ]
[ "put", "drawable", "in", "cache" ]
[ "public", "void", "put", "(", "@", "non", "null", "final", "string", "key", ",", "final", "drawable", "value", ")", "{", "put", "(", "key", ",", "value", ",", "-", "1", ")", ";", "}" ]
[ "returns", "the", "preferred", "address", "of", "this", "section" ]
[ "public", "int", "get", "default", "address", "(", ")", "{", "return", "default", "address", ";", "}" ]
[ "returns", "whether", "the", "entire", "resource", "is", "fully", "unlocked" ]
[ "public", "boolean", "is", "fully", "unlocked", "(", ")", "{", "return", "locked", "ranges", "is", "empty", "(", ")", ";", "}" ]
[ "when", "formatting", "a", "namenode", "-", "we", "must", "provide", "clusterid" ]
[ "public", "static", "void", "format", "name", "node", "(", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "string", "cluster", "id", "=", "startup", "option", "format", "get", "cluster", "id", "(", ")", ";", "if", "(", "cluster", "id", "=", "=", "null", "|", "|", "cluster", "id", "is", "empty", "(", ")", ")", "startup", "option", "format", "set", "cluster", "id", "(", "\"", "test", "cluster", "i", "d", "\"", ")", ";", "/", "/", "use", "a", "copy", "of", "conf", "as", "it", "can", "be", "altered", "by", "namenode", "during", "format", "name", "node", "format", "(", "new", "configuration", "(", "conf", ")", ")", ";", "}" ]
[ "one", "request", "followed", "by", "one", "response" ]
[ "public", "com", "google", "common", "util", "concurrent", "listenable", "future", "<", "io", "grpc", "testing", "integration", "messages", "simple", "response", ">", "unary", "call", "(", "io", "grpc", "testing", "integration", "messages", "simple", "request", "request", ")", "{", "return", "io", "grpc", "stub", "client", "calls", "future", "unary", "call", "(", "get", "channel", "(", ")", "new", "call", "(", "get", "unary", "call", "method", "(", ")", ",", "get", "call", "options", "(", ")", ")", ",", "request", ")", ";", "}" ]
[ "used", "for", "testing", "and", "diagnostics", ":", "list", "the", "constructor", "line", "numbers", "used", "to", "resolve", "this", "encoding", "this", "includes", "braces", "to", "describe", "the", "tree", "structure" ]
[ "public", "string", "dump", "constructor", "tree", "(", ")", "{", "string", "builder", "sb", "=", "new", "string", "builder", "(", ")", ";", "if", "(", "ct", "=", "=", "null", ")", "{", "return", "null", ";", "}", "sb", "append", "(", "ct", "get", "lineno", "(", ")", ")", ";", "/", "/", "todo", ":", "this", "is", "not", "the", "most", "efficient", ",", "but", "it", "'", "s", "diagnostic", "list", "<", "string", ">", "subs", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "construct", "state", "cs", ":", "resolved", "states", ")", "{", "string", "s", "=", "cs", "dump", "constructor", "tree", "(", ")", ";", "if", "(", "s", "!", "=", "null", ")", "{", "subs", "add", "(", "s", ")", ";", "}", "}", "if", "(", "subs", "is", "empty", "(", ")", ")", "{", "return", "sb", "to", "string", "(", ")", ";", "}", "sb", "append", "(", "'", "[", "'", ")", ";", "sb", "append", "(", "string", "utils", "join", "(", "subs", ",", "\"", ",", "\"", ")", ")", ";", "sb", "append", "(", "'", "]", "'", ")", ";", "return", "sb", "to", "string", "(", ")", ";", "}" ]
[ "test", "the", "property", "'", "first", "name", "'" ]
[ "public", "void", "first", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "first", "name", "}" ]
[ "after", "tx", "all", "completed" ]
[ "void", "after", "completion", "(", ")", ";" ]
[ "issue", ":", "add", "at", "least", "one", "assertion", "to", "this", "test", "case", "solution", ":", "inserted", "assertion", "to", "check", "whether", "the", "execution", "of", "the", "main", "method", "in", "{", "@", "link", "app", "#", "main", "(", "string", "[", "]", ")", "}", "throws", "an", "exception" ]
[ "void", "should", "execute", "application", "without", "exception", "(", ")", "{", "assert", "does", "not", "throw", "(", "(", ")", "-", ">", "app", "main", "(", "new", "string", "[", "]", "{", "}", ")", ")", ";", "}" ]
[ "returns", "a", "{", "@", "link", "traverser", "}", "instance", "for", "the", "file", "and", "directory", "tree", "the", "returned", "traverser", "starts", "from", "a", "{", "@", "link", "path", "}", "and", "will", "return", "all", "files", "and", "directories", "it", "encounters", "the", "returned", "traverser", "attempts", "to", "avoid", "following", "symbolic", "links", "to", "directories", "however", ",", "the", "traverser", "cannot", "guarantee", "that", "it", "will", "not", "follow", "symbolic", "links", "to", "directories", "as", "it", "is", "possible", "for", "a", "directory", "to", "be", "replaced", "with", "a", "symbolic", "link", "between", "checking", "if", "the", "file", "is", "a", "directory", "and", "actually", "reading", "the", "contents", "of", "that", "directory", "if", "the", "{", "@", "link", "path", "}", "passed", "to", "one", "of", "the", "traversal", "methods", "does", "not", "exist", "or", "is", "not", "a", "directory", ",", "no", "exception", "will", "be", "thrown", "and", "the", "returned", "{", "@", "link", "iterable", "}", "will", "contain", "a", "single", "element", ":", "that", "path", "{", "@", "link", "directory", "iterator", "exception", "}", "may", "be", "thrown", "when", "iterating", "{", "@", "link", "iterable", "}", "instances", "created", "by", "this", "traverser", "if", "an", "{", "@", "link", "i", "o", "exception", "}", "is", "thrown", "by", "a", "call", "to", "{", "@", "link", "#", "list", "files", "(", "path", ")", "}", "example", ":", "{", "@", "code", "more", "files", "file", "traverser", "(", ")", "depth", "first", "pre", "order", "(", "paths", "get", "(", "\"", "\"", ")", ")", "}", "may", "return", "the", "following", "paths", ":", "{", "@", "code", "[", "\"", "\"", ",", "\"", "etc", "\"", ",", "\"", "etcconfig", "txt", "\"", ",", "\"", "etcfonts", "\"", ",", "\"", "home", "\"", ",", "\"", "homealice", "\"", ",", "]", "}" ]
[ "public", "static", "traverser", "<", "path", ">", "file", "traverser", "(", ")", "{", "return", "traverser", "for", "tree", "(", "file", "tree", ")", ";", "}" ]
[ "test", "fail", "first", "datanode", "in", "the", "pipeline" ]
[ "public", "void", "test", "first", "datanode", "failure", "in", "pipeline", "(", ")", "throws", "exception", "{", "test", "write", "file", "and", "verify", "after", "d", "n", "stop", "(", "2", ",", "0", ",", "10", ",", "false", ")", ";", "}" ]
[ "evict", "all", "items", "from", "the", "memory", "cache" ]
[ "void", "clear", "memory", "(", ")", ";" ]
[ "execute", "a", "query", "for", "a", "result", "object", ",", "given", "static", "sql", "uses", "a", "jdbc", "statement", ",", "not", "a", "prepared", "statement", "if", "you", "want", "to", "execute", "a", "static", "query", "with", "a", "prepared", "statement", ",", "use", "the", "overloaded", "{", "@", "link", "#", "query", "for", "object", "(", "string", ",", "class", ",", "object", ")", "}", "method", "with", "{", "@", "code", "null", "}", "as", "argument", "array", "this", "method", "is", "useful", "for", "running", "static", "sql", "with", "a", "known", "outcome", "the", "query", "is", "expected", "to", "be", "a", "single", "rowsingle", "column", "query", ";", "the", "returned", "result", "will", "be", "directly", "mapped", "to", "the", "corresponding", "object", "type" ]
[ "<", "t", ">", "t", "query", "for", "object", "(", "string", "sql", ",", "class", "<", "t", ">", "required", "type", ")", "throws", "data", "access", "exception", ";" ]
[ "assert", "the", "number", "of", "pruned", "files", "matches", "expectations" ]
[ "protected", "void", "assert", "pruned", "(", "final", "path", "path", ",", "final", "metadata", "store", "prune", "mode", "mode", ",", "final", "long", "limit", ",", "final", "int", "expected", ")", "throws", "i", "o", "exception", "{", "string", "key", "prefix", "=", "path", "metadata", "dynamo", "d", "b", "translation", "path", "to", "parent", "key", "(", "path", ")", ";", "assertions", "assert", "that", "(", "auth", "f", "s", "get", "metadata", "store", "(", ")", "prune", "(", "mode", ",", "limit", ",", "key", "prefix", ")", ")", "described", "as", "(", "\"", "number", "of", "files", "pruned", "under", "%", "s", "\"", ",", "key", "prefix", ")", "is", "equal", "to", "(", "expected", ")", ";", "}" ]
[ "get", "a", "integer", "option", ">", "=", "the", "minimum", "allowed", "value" ]
[ "static", "int", "int", "option", "(", "configuration", "conf", ",", "string", "key", ",", "int", "def", "val", ",", "int", "min", ")", "{", "int", "v", "=", "conf", "get", "int", "(", "key", ",", "def", "val", ")", ";", "preconditions", "check", "argument", "(", "v", ">", "=", "min", ",", "string", "format", "(", "\"", "value", "of", "%", "s", ":", "%", "d", "is", "below", "the", "minimum", "value", "%", "d", "\"", ",", "key", ",", "v", ",", "min", ")", ")", ";", "log", "debug", "(", "\"", "value", "of", "{", "}", "is", "{", "}", "\"", ",", "key", ",", "v", ")", ";", "return", "v", ";", "}" ]
[ "test", "the", "property", "'", "phone", "'" ]
[ "public", "void", "phone", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "phone", "}" ]
[ "set", "to", "{", "@", "code", "true", "}", "to", "include", "yes", "decisions", "for", "a", "particular", "node" ]
[ "public", "void", "include", "yes", "decisions", "(", "boolean", "include", "yes", "decisions", ")", "{", "this", "include", "yes", "decisions", "=", "include", "yes", "decisions", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "does", "nothing" ]
[ "@", "override", "public", "void", "exit", "arithmetic", "binary", "(", "sql", "base", "parser", "arithmetic", "binary", "context", "ctx", ")", "{", "}" ]
[ "specify", "the", "{", "@", "link", "property", "editor", "registrar", "property", "editor", "registrars", "}", "to", "apply", "to", "beans", "defined", "within", "the", "current", "application", "context", "this", "allows", "for", "sharing", "{", "@", "code", "property", "editor", "registrars", "}", "with", "{", "@", "link", "org", "springframework", "validation", "data", "binder", "data", "binders", "}", ",", "etc", "furthermore", ",", "it", "avoids", "the", "need", "for", "synchronization", "on", "custom", "editors", ":", "a", "{", "@", "code", "property", "editor", "registrar", "}", "will", "always", "create", "fresh", "editor", "instances", "for", "each", "bean", "creation", "attempt" ]
[ "public", "void", "set", "property", "editor", "registrars", "(", "property", "editor", "registrar", "[", "]", "property", "editor", "registrars", ")", "{", "this", "property", "editor", "registrars", "=", "property", "editor", "registrars", ";", "}" ]
[ "returns", "the", "expression", "text", "for", "this", "task", "listener", "comes", "in", "handy", "if", "you", "want", "to", "check", "which", "listeners", "you", "already", "have" ]
[ "public", "string", "get", "expression", "text", "(", ")", "{", "return", "expression", "get", "expression", "text", "(", ")", ";", "}" ]
[ "set", "the", "path", "to", "the", "directory", "to", "execute", "the", "result", "process", "this", "method", "must", "be", "called", "before", "calling", "{", "@", "link", "#", "execute", "(", ")", "}" ]
[ "builder", "set", "directory", "(", "file", "path", ")", "{", "this", "directory", "=", "path", ";", "return", "this", ";", "}" ]
[ "verify", "child", "'", "s", "name", "for", "fs", "limit" ]
[ "void", "verify", "max", "component", "length", "(", "byte", "[", "]", "child", "name", ",", "string", "parent", "path", ")", "throws", "path", "component", "too", "long", "exception", "{", "if", "(", "max", "component", "length", "=", "=", "0", ")", "{", "return", ";", "}", "final", "int", "length", "=", "child", "name", "length", ";", "if", "(", "length", ">", "max", "component", "length", ")", "{", "final", "path", "component", "too", "long", "exception", "e", "=", "new", "path", "component", "too", "long", "exception", "(", "max", "component", "length", ",", "length", ",", "parent", "path", ",", "d", "f", "s", "util", "bytes", "2", "string", "(", "child", "name", ")", ")", ";", "if", "(", "namesystem", "is", "image", "loaded", "(", ")", ")", "{", "throw", "e", ";", "}", "else", "{", "/", "/", "do", "not", "throw", "if", "edits", "log", "is", "still", "being", "processed", "name", "node", "log", "error", "(", "\"", "error", "in", "f", "s", "directory", "verify", "i", "node", "name", "\"", ",", "e", ")", ";", "}", "}", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "name", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "name", "(", "string", "name", ")", "{", "return", "by", "name", "get", "(", "name", ")", ";", "}" ]
[ "run", "the", "command", "via", "{", "@", "link", "com", "netflix", "hystrix", "hystrix", "command", "#", "observe", "(", ")", "}", ",", "let", "the", "{", "@", "link", "rx", "observable", "}", "terminal", "states", "unblock", "a", "{", "@", "link", "java", "util", "concurrent", "count", "down", "latch", "}", "and", "then", "assert" ]
[ "protected", "void", "assert", "non", "blocking", "observe", "(", "c", "command", ",", "action", "1", "<", "c", ">", "assertion", ",", "boolean", "is", "success", ")", "{", "system", "out", "println", "(", "\"", "running", "command", "observe", "(", ")", ",", "awaiting", "terminal", "state", "of", "observable", ",", "then", "running", "assertions", "\"", ")", ";", "final", "count", "down", "latch", "latch", "=", "new", "count", "down", "latch", "(", "1", ")", ";", "observable", "<", "integer", ">", "o", "=", "command", "observe", "(", ")", ";", "o", "subscribe", "(", "new", "subscriber", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "void", "on", "completed", "(", ")", "{", "latch", "count", "down", "(", ")", ";", "}", "@", "override", "public", "void", "on", "error", "(", "throwable", "e", ")", "{", "latch", "count", "down", "(", ")", ";", "}", "@", "override", "public", "void", "on", "next", "(", "integer", "i", ")", "{", "/", "/", "do", "nothing", "}", "}", ")", ";", "try", "{", "latch", "await", "(", "3", ",", "time", "unit", "seconds", ")", ";", "assertion", "call", "(", "command", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}", "if", "(", "is", "success", ")", "{", "try", "{", "o", "to", "list", "(", ")", "to", "blocking", "(", ")", "single", "(", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "throw", "new", "runtime", "exception", "(", "ex", ")", ";", "}", "}", "else", "{", "try", "{", "o", "to", "list", "(", ")", "to", "blocking", "(", ")", "single", "(", ")", ";", "fail", "(", "\"", "expected", "a", "command", "failure", "!", "\"", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "system", "out", "println", "(", "\"", "received", "expected", "ex", ":", "\"", "+", "ex", ")", ";", "ex", "print", "stack", "trace", "(", ")", ";", "}", "}", "}" ]
[ "returns", "the", "length" ]
[ "public", "int", "get", "length", "(", ")", "{", "return", "length", ";", "}" ]
[ "tests", "to", "verify", "hdfs", "admin", "satisfy", "storage", "policy", "works", "well", "for", "dir" ]
[ "public", "void", "test", "satisfy", "dir", "with", "hdfs", "admin", "(", ")", "throws", "exception", "{", "try", "{", "create", "cluster", "(", ")", ";", "hdfs", "admin", "hdfs", "admin", "=", "new", "hdfs", "admin", "(", "file", "system", "get", "default", "uri", "(", "config", ")", ",", "config", ")", ";", "final", "string", "sub", "dir", "=", "\"", "/", "sub", "dir", "\"", ";", "final", "string", "sub", "file", "1", "=", "sub", "dir", "+", "\"", "/", "sub", "file", "1", "\"", ";", "final", "string", "sub", "dir", "2", "=", "sub", "dir", "+", "\"", "/", "sub", "dir", "2", "\"", ";", "final", "string", "sub", "file", "2", "=", "sub", "dir", "2", "+", "\"", "/", "sub", "file", "2", "\"", ";", "dfs", "mkdirs", "(", "new", "path", "(", "sub", "dir", ")", ")", ";", "write", "content", "(", "sub", "file", "1", ")", ";", "dfs", "mkdirs", "(", "new", "path", "(", "sub", "dir", "2", ")", ")", ";", "write", "content", "(", "sub", "file", "2", ")", ";", "/", "/", "change", "policy", "to", "cold", "dfs", "set", "storage", "policy", "(", "new", "path", "(", "sub", "dir", ")", ",", "one", "ssd", ")", ";", "storage", "type", "[", "]", "[", "]", "newtypes", "=", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", "}", ";", "start", "additional", "d", "ns", "(", "config", ",", "1", ",", "num", "of", "datanodes", ",", "newtypes", ",", "storages", "per", "datanode", ",", "capacity", ",", "hdfs", "cluster", ")", ";", "hdfs", "admin", "satisfy", "storage", "policy", "(", "new", "path", "(", "sub", "dir", ")", ")", ";", "hdfs", "cluster", "trigger", "heartbeats", "(", ")", ";", "/", "/", "take", "effect", "for", "the", "file", "in", "the", "directory", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "sub", "file", "1", ",", "storage", "type", "ssd", ",", "1", ",", "30000", ",", "dfs", ")", ";", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "sub", "file", "1", ",", "storage", "type", "disk", ",", "2", ",", "30000", ",", "dfs", ")", ";", "/", "/", "take", "no", "effect", "for", "the", "sub", "-", "dir", "'", "s", "file", "in", "the", "directory", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "sub", "file", "2", ",", "storage", "type", "ssd", ",", "1", ",", "30000", ",", "dfs", ")", ";", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "sub", "file", "2", ",", "storage", "type", "disk", ",", "2", ",", "30000", ",", "dfs", ")", ";", "}", "finally", "{", "shutdown", "cluster", "(", ")", ";", "}", "}" ]
[ "invalidates", "an", "o", "auth", "2", "token", "see", "<", "a", "href", "=", "\"", "https", ":", "www", "elastic", "coguideenelasticsearchreferencecurrentsecurity", "-", "api", "-", "invalidate", "-", "token", "html", "\"", ">", "the", "docs", "for", "more" ]
[ "public", "invalidate", "token", "response", "invalidate", "token", "(", "invalidate", "token", "request", "request", ",", "request", "options", "options", ")", "throws", "i", "o", "exception", "{", "return", "rest", "high", "level", "client", "perform", "request", "and", "parse", "entity", "(", "request", ",", "security", "request", "converters", ":", ":", "invalidate", "token", ",", "options", ",", "invalidate", "token", "response", ":", ":", "from", "x", "content", ",", "singleton", "(", "404", ")", ")", ";", "}" ]
[ "sets", "the", "{", "@", "code", "evictor", "}", "that", "should", "be", "used", "to", "evict", "elements", "from", "a", "window", "before", "emission", "note", ":", "when", "using", "an", "evictor", "window", "performance", "will", "degrade", "significantly", ",", "since", "incremental", "aggregation", "of", "window", "results", "cannot", "be", "used" ]
[ "public", "windowed", "operator", "transformation", "<", "t", ",", "k", ",", "w", ">", "evictor", "(", "evictor", "<", "?", "super", "t", ",", "?", "super", "w", ">", "evictor", ")", "{", "builder", "evictor", "(", "evictor", ")", ";", "return", "this", ";", "}" ]
[ "adds", "a", "new", "constant", "method", "handle", "info", "to", "the", "constant", "pool", "of", "this", "symbol", "table" ]
[ "private", "void", "add", "constant", "method", "handle", "(", "final", "int", "index", ",", "final", "int", "reference", "kind", ",", "final", "string", "owner", ",", "final", "string", "name", ",", "final", "string", "descriptor", ")", "{", "final", "int", "tag", "=", "symbol", "constant", "method", "handle", "tag", ";", "int", "hash", "code", "=", "hash", "(", "tag", ",", "owner", ",", "name", ",", "descriptor", ",", "reference", "kind", ")", ";", "add", "(", "new", "entry", "(", "index", ",", "tag", ",", "owner", ",", "name", ",", "descriptor", ",", "reference", "kind", ",", "hash", "code", ")", ")", ";", "}" ]
[ "add", "a", "box", "with", "the", "specified", "dimensions", "requires", "gl", "points", ",", "gl", "lines", "or", "gl", "triangles", "primitive", "type" ]
[ "public", "static", "void", "build", "(", "mesh", "part", "builder", "builder", ",", "float", "width", ",", "float", "height", ",", "float", "depth", ")", "{", "build", "(", "builder", ",", "0", ",", "0", ",", "0", ",", "width", ",", "height", ",", "depth", ")", ";", "}" ]
[ "regression", "test", "for", "b", "1", "4", "2", "9", "6", "6", "8", "8", "4", ":", "blaze", "crashes", "when", "building", "with", "-", "-", "aspects", "and", "-", "-", "keep", "going", "on", "a", "target", "where", "the", "transitive", "deps", "have", "a", "genquery", "which", "finds", "a", "cycle", "over", "foo", ":", "c", "that", "doesn", "'", "t", "happen", "when", "actually", "building", "foo", ":", "c", "because", "of", "a", "select", "(", ")", "on", "its", "deps", "that", "skips", "the", "path", "that", "happens", "to", "make", "the", "cycle", "that", "results", "in", "top", "-", "level", "keys", "that", "aren", "'", "t", "{", "@", "link", "configured", "target", "key", "}", "in", "{", "@", "link", "target", "cycle", "reporter", "#", "get", "additional", "message", "about", "cycle", "}" ]
[ "public", "void", "loading", "phase", "cycle", "with", "different", "top", "level", "key", "types", "(", ")", "throws", "exception", "{", "scratch", "file", "(", "\"", "foo", "/", "build", "\"", ",", "\"", "genrule", "(", "name", "=", "'", "a", "'", ",", "srcs", "=", "[", "]", ",", "outs", "=", "[", "'", "a", "o", "'", "]", ",", "cmd", "=", "'", "echo", "uh", ">", "$", "@", "'", ")", "\"", ",", "\"", "genrule", "(", "name", "=", "'", "b", "'", ",", "srcs", "=", "[", "]", ",", "outs", "=", "[", "'", "b", "o", "'", "]", ",", "cmd", "=", "'", "echo", "hi", ">", "$", "@", "'", ",", "visibility", "=", "[", "'", ":", "c", "'", "]", ")", "\"", ",", "\"", "genrule", "(", "name", "=", "'", "c", "'", ",", "srcs", "=", "[", "]", ",", "outs", "=", "[", "'", "c", "o", "'", "]", ",", "cmd", "=", "'", "echo", "hi", ">", "$", "@", "'", ")", "\"", ")", ";", "target", "cycle", "reporter", "cycle", "reporter", "=", "new", "target", "cycle", "reporter", "(", "get", "package", "manager", "(", ")", ")", ";", "cycle", "info", "cycle", "=", "new", "cycle", "info", "(", "immutable", "list", "of", "(", "transitive", "target", "key", "of", "(", "make", "label", "(", "\"", "/", "/", "foo", ":", "b", "\"", ")", ")", ",", "transitive", "target", "key", "of", "(", "make", "label", "(", "\"", "/", "/", "foo", ":", "c", "\"", ")", ")", ")", ")", ";", "configured", "target", "key", "ct", "key", "=", "configured", "target", "key", "builder", "(", ")", "set", "label", "(", "make", "label", "(", "\"", "/", "/", "foo", ":", "a", "\"", ")", ")", "set", "configuration", "(", "target", "config", ")", "build", "(", ")", ";", "assert", "that", "(", "cycle", "reporter", "get", "additional", "message", "about", "cycle", "(", "reporter", ",", "ct", "key", ",", "cycle", ")", ")", "contains", "(", "\"", "the", "cycle", "is", "caused", "by", "a", "visibility", "edge", "from", "/", "/", "foo", ":", "b", "to", "the", "non", "-", "package", "group", "\"", "+", "\"", "target", "/", "/", "foo", ":", "c", "\"", ")", ";", "sky", "key", "aspect", "key", "=", "aspect", "value", "key", "aspect", "key", "create", "aspect", "key", "(", "ct", "key", ",", "immutable", "list", "of", "(", ")", ",", "null", ",", "build", "configuration", "value", "key", "(", "target", "config", ")", ")", ";", "assert", "that", "(", "cycle", "reporter", "get", "additional", "message", "about", "cycle", "(", "reporter", ",", "aspect", "key", ",", "cycle", ")", ")", "contains", "(", "\"", "the", "cycle", "is", "caused", "by", "a", "visibility", "edge", "from", "/", "/", "foo", ":", "b", "to", "the", "non", "-", "package", "group", "\"", "+", "\"", "target", "/", "/", "foo", ":", "c", "\"", ")", ";", "sky", "key", "starlark", "aspect", "key", "=", "aspect", "value", "key", "create", "starlark", "aspect", "key", "(", "make", "label", "(", "\"", "/", "/", "foo", ":", "a", "\"", ")", ",", "target", "config", ",", "target", "config", ",", "make", "label", "(", "\"", "/", "/", "foo", ":", "b", "\"", ")", ",", "\"", "my", "starlark", "key", "\"", ")", ";", "assert", "that", "(", "cycle", "reporter", "get", "additional", "message", "about", "cycle", "(", "reporter", ",", "starlark", "aspect", "key", ",", "cycle", ")", ")", "contains", "(", "\"", "the", "cycle", "is", "caused", "by", "a", "visibility", "edge", "from", "/", "/", "foo", ":", "b", "to", "the", "non", "-", "package", "group", "\"", "+", "\"", "target", "/", "/", "foo", ":", "c", "\"", ")", ";", "}" ]
[ "ensure", "that", "s", "s", "l", "session", "impl", "is", "available" ]
[ "public", "static", "void", "ensure", "sun", "ssl", "engine", "availability", "(", ")", "{", "if", "(", "unavailability", "cause", "!", "=", "null", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "failed", "to", "find", "s", "s", "l", "session", "impl", "on", "classpath", "\"", ",", "unavailability", "cause", ")", ";", "}", "}" ]
[ "set", "the", "list", "of", "acceptable", "{", "@", "linkplain", "media", "type", "media", "types", "}", ",", "as", "specified", "by", "the", "{", "@", "code", "accept", "}", "header" ]
[ "s", "accept", "(", "media", "type", "acceptable", "media", "types", ")", ";" ]
[ "provides", "an", "implementation", "of", "{", "@", "link", "javax", "ws", "rs", "core", "configurable", "}", "that", "be", "used", "to", "register", "jax", "-", "rs", "resources" ]
[ "configurable", "<", "?", "extends", "configurable", ">", "configurable", "(", ")", ";" ]
[ "reads", "32", "bits", "in", "little", "-", "endian", "byte", "order", "from", "the", "buffer", "at", "the", "given", "offset" ]
[ "static", "int", "get", "3", "2", "(", "byte", "[", "]", "source", ",", "int", "offset", ")", "{", "int", "a", "=", "source", "[", "offset", "+", "0", "]", "&", "0xff", ";", "int", "b", "=", "source", "[", "offset", "+", "1", "]", "&", "0xff", ";", "int", "c", "=", "source", "[", "offset", "+", "2", "]", "&", "0xff", ";", "int", "d", "=", "source", "[", "offset", "+", "3", "]", "&", "0xff", ";", "return", "(", "d", "<", "<", "24", ")", "|", "(", "c", "<", "<", "16", ")", "|", "(", "b", "<", "<", "8", ")", "|", "a", ";", "}" ]
[ "map", "a", "bool", "to", "an", "effect" ]
[ "public", "static", "effects", "effect", "(", "final", "boolean", "allowed", ")", "{", "return", "allowed", "?", "effects", "allow", ":", "effects", "deny", ";", "}" ]
[ "we", "cache", "names", "if", "there", "are", "more", "than", "3", "names", "this", "helps", "people", "getting", "started", ":", "if", "we", "cache", "empty", "results", ",", "users", "have", "more", "questions", "we", "assume", "caching", "becomes", "a", "concern", "when", "zipkin", "is", "in", "active", "use", ",", "and", "active", "use", "usually", "implies", "more", "than", "3", "services" ]
[ "aggregated", "http", "response", "maybe", "cache", "names", "(", "boolean", "should", "cache", "control", ",", "list", "<", "string", ">", "values", ",", "byte", "buf", "allocator", "alloc", ")", "{", "collections", "sort", "(", "values", ")", ";", "int", "size", "estimate", "=", "2", ";", "/", "/", "two", "brackets", "for", "(", "string", "value", ":", "values", ")", "{", "size", "estimate", "+", "=", "value", "length", "(", ")", "+", "1", "/", "*", "comma", "*", "/", ";", "}", "size", "estimate", "-", "=", "1", ";", "/", "/", "last", "element", "doesn", "'", "t", "have", "a", "comma", "/", "/", "if", "the", "values", "don", "'", "t", "require", "escaping", ",", "this", "buffer", "will", "not", "be", "resized", "byte", "buf", "buf", "=", "alloc", "buffer", "(", "size", "estimate", ")", ";", "try", "(", "json", "generator", "gen", "=", "json", "util", "json", "factory", "create", "generator", "(", "(", "output", "stream", ")", "new", "byte", "buf", "output", "stream", "(", "buf", ")", ")", ")", "{", "gen", "write", "start", "array", "(", "values", "size", "(", ")", ")", ";", "for", "(", "string", "value", ":", "values", ")", "{", "gen", "write", "string", "(", "value", ")", ";", "}", "gen", "write", "end", "array", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "buf", "release", "(", ")", ";", "throw", "new", "unchecked", "i", "o", "exception", "(", "e", ")", ";", "}", "response", "headers", "builder", "headers", "=", "response", "headers", "builder", "(", "200", ")", "content", "type", "(", "media", "type", "json", ")", "set", "int", "(", "http", "header", "names", "content", "length", ",", "buf", "readable", "bytes", "(", ")", ")", ";", "if", "(", "should", "cache", "control", ")", "{", "headers", "=", "headers", "add", "(", "cache", "control", ",", "\"", "max", "-", "age", "=", "\"", "+", "names", "max", "age", "+", "\"", ",", "must", "-", "revalidate", "\"", ")", ";", "}", "return", "aggregated", "http", "response", "of", "(", "headers", "build", "(", ")", ",", "http", "data", "wrap", "(", "buf", ")", ")", ";", "}" ]
[ "creates", "list", "of", "users", "with", "given", "input", "array" ]
[ "public", "void", "create", "users", "with", "array", "input", "test", "(", ")", "{", "list", "<", "user", ">", "body", "=", "null", ";", "/", "/", "api", "create", "users", "with", "array", "input", "(", "body", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "called", "when", "the", "{", "@", "link", "address", "index", "map", "}", "or", "the", "{", "@", "link", "program", "}", "changes" ]
[ "public", "void", "model", "data", "changed", "(", "listing", "panel", "listing", "panel", ")", ";" ]
[ "creates", "a", "listener", "that", "delegates", "all", "responses", "it", "receives", "to", "another", "listener" ]
[ "static", "<", "t", ">", "action", "listener", "<", "t", ">", "delegate", "response", "(", "action", "listener", "<", "t", ">", "delegate", ",", "bi", "consumer", "<", "action", "listener", "<", "t", ">", ",", "exception", ">", "bc", ")", "{", "return", "new", "action", "listener", "<", "t", ">", "(", ")", "{", "@", "override", "public", "void", "on", "response", "(", "t", "r", ")", "{", "delegate", "on", "response", "(", "r", ")", ";", "}", "@", "override", "public", "void", "on", "failure", "(", "exception", "e", ")", "{", "bc", "accept", "(", "delegate", ",", "e", ")", ";", "}", "}", ";", "}" ]
[ "write", "the", "record", "fields", "to", "the", "specified", "buffer", "and", "offset" ]
[ "public", "void", "write", "(", "buffer", "buf", ",", "int", "offset", ")", "throws", "i", "o", "exception", "{", "for", "(", "field", "field", "value", ":", "field", "values", ")", "{", "offset", "=", "field", "value", "write", "(", "buf", ",", "offset", ")", ";", "}", "dirty", "=", "false", ";", "}" ]
[ "checks", "if", "there", "'", "s", "any", "update", "in", "scm", ",", "and", "returns", "true", "if", "any", "is", "found", "the", "implementation", "is", "responsible", "for", "ensuring", "mutual", "exclusion", "between", "polling", "and", "builds", "if", "necessary" ]
[ "public", "polling", "result", "poll", "(", "task", "listener", "listener", ")", "{", "scm", "scm", "=", "get", "scm", "(", ")", ";", "if", "(", "scm", "=", "=", "null", ")", "{", "listener", "get", "logger", "(", ")", "println", "(", "messages", "abstract", "project", "no", "s", "c", "m", "(", ")", ")", ";", "return", "no", "changes", ";", "}", "if", "(", "!", "is", "buildable", "(", ")", ")", "{", "listener", "get", "logger", "(", ")", "println", "(", "messages", "abstract", "project", "disabled", "(", ")", ")", ";", "return", "no", "changes", ";", "}", "s", "c", "m", "decision", "handler", "veto", "=", "s", "c", "m", "decision", "handler", "first", "should", "poll", "veto", "(", "this", ")", ";", "if", "(", "veto", "!", "=", "null", ")", "{", "listener", "get", "logger", "(", ")", "println", "(", "messages", "abstract", "project", "polling", "vetoed", "(", "veto", ")", ")", ";", "return", "no", "changes", ";", "}", "r", "lb", "=", "get", "last", "build", "(", ")", ";", "if", "(", "lb", "=", "=", "null", ")", "{", "listener", "get", "logger", "(", ")", "println", "(", "messages", "abstract", "project", "no", "builds", "(", ")", ")", ";", "return", "is", "in", "queue", "(", ")", "?", "no", "changes", ":", "build", "now", ";", "}", "if", "(", "polling", "baseline", "=", "=", "null", ")", "{", "r", "success", "=", "get", "last", "successful", "build", "(", ")", ";", "/", "/", "if", "we", "have", "a", "persisted", "baseline", ",", "we", "'", "ll", "find", "it", "by", "this", "for", "(", "r", "r", "=", "lb", ";", "r", "!", "=", "null", ";", "r", "=", "r", "get", "previous", "build", "(", ")", ")", "{", "s", "c", "m", "revision", "state", "s", "=", "r", "get", "action", "(", "s", "c", "m", "revision", "state", "class", ")", ";", "if", "(", "s", "!", "=", "null", ")", "{", "polling", "baseline", "=", "s", ";", "break", ";", "}", "if", "(", "r", "=", "=", "success", ")", "break", ";", "/", "/", "searched", "far", "enough", "}", "/", "/", "note", "-", "no", "-", "baseline", ":", "/", "/", "if", "we", "don", "'", "t", "have", "baseline", "yet", ",", "it", "means", "the", "data", "is", "built", "by", "old", "hudson", "that", "doesn", "'", "t", "set", "the", "baseline", "/", "/", "as", "action", ",", "so", "we", "need", "to", "compute", "it", "this", "happens", "later", "}", "try", "{", "s", "c", "m", "poll", "listener", "fire", "before", "polling", "(", "this", ",", "listener", ")", ";", "polling", "result", "r", "=", "poll", "(", "listener", ",", "scm", ")", ";", "s", "c", "m", "poll", "listener", "fire", "polling", "success", "(", "this", ",", "listener", ",", "r", ")", ";", "return", "r", ";", "}", "catch", "(", "abort", "exception", "e", ")", "{", "listener", "get", "logger", "(", ")", "println", "(", "e", "get", "message", "(", ")", ")", ";", "listener", "fatal", "error", "(", "messages", "abstract", "project", "aborted", "(", ")", ")", ";", "logger", "log", "(", "level", "fine", ",", "\"", "polling", "\"", "+", "this", "+", "\"", "aborted", "\"", ",", "e", ")", ";", "s", "c", "m", "poll", "listener", "fire", "polling", "failed", "(", "this", ",", "listener", ",", "e", ")", ";", "return", "no", "changes", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "functions", "print", "stack", "trace", "(", "e", ",", "listener", "fatal", "error", "(", "e", "get", "message", "(", ")", ")", ")", ";", "s", "c", "m", "poll", "listener", "fire", "polling", "failed", "(", "this", ",", "listener", ",", "e", ")", ";", "return", "no", "changes", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "functions", "print", "stack", "trace", "(", "e", ",", "listener", "fatal", "error", "(", "messages", "abstract", "project", "polling", "a", "borted", "(", ")", ")", ")", ";", "s", "c", "m", "poll", "listener", "fire", "polling", "failed", "(", "this", ",", "listener", ",", "e", ")", ";", "return", "no", "changes", ";", "}", "catch", "(", "runtime", "exception", "|", "error", "e", ")", "{", "s", "c", "m", "poll", "listener", "fire", "polling", "failed", "(", "this", ",", "listener", ",", "e", ")", ";", "throw", "e", ";", "}", "}" ]
[ "closes", "the", "framer", "and", "releases", "any", "buffers", ",", "but", "does", "not", "flush", "after", "the", "framer", "is", "closed", "or", "disposed", ",", "additional", "calls", "to", "this", "method", "will", "have", "no", "affect" ]
[ "public", "void", "dispose", "(", ")", "{", "closed", "=", "true", ";", "release", "buffer", "(", ")", ";", "}" ]
[ "this", "is", "an", "expensive", "operation", "that", "copies", "the", "image", "in", "place", "with", "the", "pixels", "rotated", "if", "possible", "rather", "use", "get", "orientation", "matrix", ",", "and", "put", "that", "as", "the", "image", "matrix", "on", "an", "image", "view" ]
[ "public", "static", "bitmap", "rotate", "image", "(", "@", "non", "null", "bitmap", "image", "to", "orient", ",", "int", "degrees", "to", "rotate", ")", "{", "bitmap", "result", "=", "image", "to", "orient", ";", "try", "{", "if", "(", "degrees", "to", "rotate", "!", "=", "0", ")", "{", "matrix", "matrix", "=", "new", "matrix", "(", ")", ";", "matrix", "set", "rotate", "(", "degrees", "to", "rotate", ")", ";", "result", "=", "bitmap", "create", "bitmap", "(", "image", "to", "orient", ",", "0", ",", "0", ",", "image", "to", "orient", "get", "width", "(", ")", ",", "image", "to", "orient", "get", "height", "(", ")", ",", "matrix", ",", "true", "/", "*", "filter", "*", "/", ")", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "if", "(", "log", "is", "loggable", "(", "tag", ",", "log", "error", ")", ")", "{", "log", "e", "(", "tag", ",", "\"", "exception", "when", "trying", "to", "orient", "image", "\"", ",", "e", ")", ";", "}", "}", "return", "result", ";", "}" ]
[ "returns", "true", "if", "{", "@", "code", "certificate", "}", "matches", "{", "@", "code", "host", "name", "}" ]
[ "private", "boolean", "verify", "host", "name", "(", "string", "host", "name", ",", "x", "5", "0", "9", "certificate", "certificate", ")", "{", "host", "name", "=", "host", "name", "to", "lower", "case", "(", "locale", "us", ")", ";", "boolean", "has", "dns", "=", "false", ";", "list", "<", "string", ">", "alt", "names", "=", "get", "subject", "alt", "names", "(", "certificate", ",", "alt", "dns", "name", ")", ";", "for", "(", "int", "i", "=", "0", ",", "size", "=", "alt", "names", "size", "(", ")", ";", "i", "<", "size", ";", "i", "+", "+", ")", "{", "has", "dns", "=", "true", ";", "if", "(", "verify", "host", "name", "(", "host", "name", ",", "alt", "names", "get", "(", "i", ")", ")", ")", "{", "return", "true", ";", "}", "}", "if", "(", "!", "has", "dns", ")", "{", "x", "5", "0", "0", "principal", "principal", "=", "certificate", "get", "subject", "x", "5", "0", "0", "principal", "(", ")", ";", "/", "/", "rfc", "2818", "advises", "using", "the", "most", "specific", "name", "for", "matching", "string", "cn", "=", "new", "distinguished", "name", "parser", "(", "principal", ")", "find", "most", "specific", "(", "\"", "cn", "\"", ")", ";", "if", "(", "cn", "!", "=", "null", ")", "{", "return", "verify", "host", "name", "(", "host", "name", ",", "cn", ")", ";", "}", "}", "return", "false", ";", "}" ]
[ "set", "whether", "a", "binder", "should", "attempt", "to", "\"", "auto", "-", "grow", "\"", "a", "nested", "path", "that", "contains", "a", "null", "value", "if", "\"", "true", "\"", ",", "a", "null", "path", "location", "will", "be", "populated", "with", "a", "default", "object", "value", "and", "traversed", "instead", "of", "resulting", "in", "an", "exception", "this", "flag", "also", "enables", "auto", "-", "growth", "of", "collection", "elements", "when", "accessing", "an", "out", "-", "of", "-", "bounds", "index", "default", "is", "\"", "true", "\"", "on", "a", "standard", "data", "binder", "note", "that", "this", "feature", "is", "only", "supported", "for", "bean", "property", "access", "(", "data", "binder", "'", "s", "default", "mode", ")", ",", "not", "for", "field", "access" ]
[ "public", "void", "set", "auto", "grow", "nested", "paths", "(", "boolean", "auto", "grow", "nested", "paths", ")", "{", "this", "auto", "grow", "nested", "paths", "=", "auto", "grow", "nested", "paths", ";", "}" ]
[ "finds", "the", "next", "entry", "in", "the", "current", "chain", "returns", "{", "@", "code", "true", "}", "if", "an", "entry", "was", "found" ]
[ "boolean", "next", "in", "chain", "(", ")", "{", "if", "(", "next", "entry", "!", "=", "null", ")", "{", "for", "(", "next", "entry", "=", "next", "entry", "get", "next", "(", ")", ";", "next", "entry", "!", "=", "null", ";", "next", "entry", "=", "next", "entry", "get", "next", "(", ")", ")", "{", "if", "(", "advance", "to", "(", "next", "entry", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}" ]
[ "sets", "a", "new", "retry", "drawable", "with", "scale", "type" ]
[ "public", "void", "set", "retry", "image", "(", "int", "resource", "id", ",", "scaling", "utils", "scale", "type", "scale", "type", ")", "{", "set", "retry", "image", "(", "m", "resources", "get", "drawable", "(", "resource", "id", ")", ",", "scale", "type", ")", ";", "}" ]
[ "process", "image", "with", "local", "path", "name", "and", "snapshot", "support" ]
[ "private", "void", "process", "local", "name", "i", "nodes", "with", "snapshot", "(", "data", "input", "stream", "in", ",", "image", "visitor", "v", ",", "boolean", "skip", "blocks", ")", "throws", "i", "o", "exception", "{", "/", "/", "process", "root", "process", "i", "node", "(", "in", ",", "v", ",", "skip", "blocks", ",", "\"", "\"", ",", "false", ")", ";", "process", "directory", "with", "snapshot", "(", "in", ",", "v", ",", "skip", "blocks", ")", ";", "}" ]
[ "accept", "fields", "with", "non", "null", "value" ]
[ "private", "static", "filter", "<", "instance", "field", ">", "null", "field", "(", ")", "{", "return", "new", "filter", "<", "instance", "field", ">", "(", ")", "{", "public", "boolean", "is", "out", "(", "instance", "field", "instance", "field", ")", "{", "return", "instance", "field", "is", "null", "(", ")", ";", "}", "}", ";", "}" ]
[ "similar", "with", "test", "key", "group", "snapshot", "restore", "scale", "up", ",", "but", "the", "key", "groups", "were", "distributed", "unevenly" ]
[ "public", "void", "test", "key", "groups", "snapshot", "restore", "scale", "up", "un", "even", "distribute", "(", ")", "throws", "exception", "{", "test", "key", "group", "snapshot", "restore", "(", "15", ",", "77", ",", "128", ")", ";", "}" ]
[ "compares", "the", "contents", "of", "two", "arrays", "to", "determine", "if", "they", "are", "equal" ]
[ "public", "static", "void", "assert", "arrays", "equal", "unordered", "(", "string", "[", "]", "expected", ",", "string", "[", "]", "actual", ")", "{", "assert", "arrays", "equal", "unordered", "(", "null", ",", "expected", ",", "actual", ")", ";", "}" ]
[ "perform", "a", "jta", "resume", "on", "the", "jta", "transaction", "manager", "can", "be", "overridden", "in", "subclasses", ",", "for", "specific", "jta", "implementations" ]
[ "protected", "void", "do", "jta", "resume", "(", "@", "nullable", "jta", "transaction", "object", "tx", "object", ",", "object", "suspended", "transaction", ")", "throws", "invalid", "transaction", "exception", ",", "system", "exception", "{", "if", "(", "get", "transaction", "manager", "(", ")", "=", "=", "null", ")", "{", "throw", "new", "transaction", "suspension", "not", "supported", "exception", "(", "\"", "jta", "transaction", "manager", "needs", "a", "jta", "transaction", "manager", "for", "suspending", "a", "transaction", ":", "\"", "+", "\"", "specify", "the", "'", "transaction", "manager", "'", "or", "'", "transaction", "manager", "name", "'", "property", "\"", ")", ";", "}", "get", "transaction", "manager", "(", ")", "resume", "(", "(", "transaction", ")", "suspended", "transaction", ")", ";", "}" ]
[ "a", "testcase", "to", "produce", "and", "fix", "issue", "act", "-", "862" ]
[ "public", "void", "test", "variable", "names", "scope", "(", ")", "{", "/", "/", "after", "starting", "the", "process", ",", "the", "task", "in", "the", "subprocess", "should", "be", "/", "/", "active", "map", "<", "string", ",", "object", ">", "var", "map", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "var", "map", "put", "(", "\"", "test", "\"", ",", "\"", "test", "\"", ")", ";", "var", "map", "put", "(", "\"", "hello", "world", "\"", ",", "\"", "hello", "world", "\"", ")", ";", "process", "instance", "pi", "=", "runtime", "service", "start", "process", "instance", "by", "key", "(", "\"", "simple", "sub", "process", "\"", ",", "var", "map", ")", ";", "task", "sub", "process", "task", "=", "task", "service", "create", "task", "query", "(", ")", "process", "instance", "id", "(", "pi", "get", "id", "(", ")", ")", "single", "result", "(", ")", ";", "runtime", "service", "set", "variable", "local", "(", "pi", "get", "process", "instance", "id", "(", ")", ",", "\"", "main", "process", "local", "variable", "\"", ",", "\"", "hello", "world", "\"", ")", ";", "assert", "that", "(", "sub", "process", "task", "get", "name", "(", ")", ")", "is", "equal", "to", "(", "\"", "task", "in", "subprocess", "\"", ")", ";", "runtime", "service", "set", "variable", "local", "(", "sub", "process", "task", "get", "execution", "id", "(", ")", ",", "\"", "sub", "process", "local", "variable", "\"", ",", "\"", "hello", "sub", "process", "\"", ")", ";", "/", "/", "returns", "a", "set", "of", "local", "variablenames", "of", "pi", "list", "<", "string", ">", "result", "=", "process", "engine", "configuration", "get", "command", "executor", "(", ")", "execute", "(", "new", "get", "variable", "names", "command", "(", "pi", "get", "process", "instance", "id", "(", ")", ",", "true", ")", ")", ";", "/", "/", "pi", "contains", "local", "the", "variablenames", "\"", "test", "\"", ",", "\"", "hello", "world", "\"", "and", "/", "/", "\"", "main", "process", "local", "variable", "\"", "but", "not", "\"", "sub", "process", "local", "variable", "\"", "assert", "that", "(", "result", "contains", "(", "\"", "test", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "hello", "world", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "main", "process", "local", "variable", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "sub", "process", "local", "variable", "\"", ")", ")", "is", "false", "(", ")", ";", "/", "/", "returns", "a", "set", "of", "global", "variablenames", "of", "pi", "result", "=", "process", "engine", "configuration", "get", "command", "executor", "(", ")", "execute", "(", "new", "get", "variable", "names", "command", "(", "pi", "get", "process", "instance", "id", "(", ")", ",", "false", ")", ")", ";", "/", "/", "pi", "contains", "global", "the", "variablenames", "\"", "test", "\"", ",", "\"", "hello", "world", "\"", "and", "/", "/", "\"", "main", "process", "local", "variable", "\"", "but", "not", "\"", "sub", "process", "local", "variable", "\"", "assert", "that", "(", "result", "contains", "(", "\"", "test", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "main", "process", "local", "variable", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "hello", "world", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "sub", "process", "local", "variable", "\"", ")", ")", "is", "false", "(", ")", ";", "/", "/", "returns", "a", "set", "of", "local", "variablenames", "of", "sub", "process", "task", "execution", "result", "=", "process", "engine", "configuration", "get", "command", "executor", "(", ")", "execute", "(", "new", "get", "variable", "names", "command", "(", "sub", "process", "task", "get", "execution", "id", "(", ")", ",", "true", ")", ")", ";", "/", "/", "sub", "process", "task", "execution", "contains", "local", "the", "variablenames", "\"", "test", "\"", ",", "/", "/", "\"", "sub", "process", "local", "variable", "\"", "but", "not", "\"", "hello", "world", "\"", "and", "/", "/", "\"", "main", "process", "local", "variable", "\"", "assert", "that", "(", "result", "contains", "(", "\"", "test", "\"", ")", ")", "is", "true", "(", ")", ";", "/", "/", "the", "variable", "\"", "test", "\"", "was", "set", "/", "/", "locally", "by", "set", "local", "variable", "task", "assert", "that", "(", "result", "contains", "(", "\"", "sub", "process", "local", "variable", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "hello", "world", "\"", ")", ")", "is", "false", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "main", "process", "local", "variable", "\"", ")", ")", "is", "false", "(", ")", ";", "/", "/", "returns", "a", "set", "of", "global", "variablenames", "of", "sub", "process", "task", "execution", "result", "=", "process", "engine", "configuration", "get", "command", "executor", "(", ")", "execute", "(", "new", "get", "variable", "names", "command", "(", "sub", "process", "task", "get", "execution", "id", "(", ")", ",", "false", ")", ")", ";", "/", "/", "sub", "process", "task", "execution", "contains", "global", "all", "defined", "variablenames", "assert", "that", "(", "result", "contains", "(", "\"", "test", "\"", ")", ")", "is", "true", "(", ")", ";", "/", "/", "the", "variable", "\"", "test", "\"", "was", "set", "/", "/", "locally", "by", "set", "local", "variable", "task", "assert", "that", "(", "result", "contains", "(", "\"", "sub", "process", "local", "variable", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "hello", "world", "\"", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "result", "contains", "(", "\"", "main", "process", "local", "variable", "\"", ")", ")", "is", "true", "(", ")", ";", "task", "service", "complete", "(", "sub", "process", "task", "get", "id", "(", ")", ")", ";", "}" ]
[ "gets", "the", "value", "with", "the", "given", "key", "to", "be", "reused", ",", "or", "null", "if", "there", "is", "no", "such", "value", "the", "item", "can", "be", "reused", "only", "if", "it", "is", "exclusively", "owned", "by", "the", "cache" ]
[ "public", "closeable", "reference", "<", "v", ">", "reuse", "(", "k", "key", ")", "{", "preconditions", "check", "not", "null", "(", "key", ")", ";", "closeable", "reference", "<", "v", ">", "client", "ref", "=", "null", ";", "boolean", "removed", "=", "false", ";", "entry", "<", "k", ",", "v", ">", "old", "exclusive", "=", "null", ";", "synchronized", "(", "this", ")", "{", "old", "exclusive", "=", "m", "least", "frequently", "used", "exclusive", "entries", "remove", "(", "key", ")", ";", "if", "(", "old", "exclusive", "=", "=", "null", ")", "{", "old", "exclusive", "=", "m", "most", "frequently", "used", "exclusive", "entries", "remove", "(", "key", ")", ";", "}", "if", "(", "old", "exclusive", "!", "=", "null", ")", "{", "entry", "<", "k", ",", "v", ">", "entry", "=", "m", "cached", "entries", "remove", "(", "key", ")", ";", "preconditions", "check", "not", "null", "(", "entry", ")", ";", "preconditions", "check", "state", "(", "entry", "client", "count", "=", "=", "0", ")", ";", "/", "/", "optimization", ":", "instead", "of", "cloning", "and", "then", "closing", "the", "original", "reference", ",", "/", "/", "we", "just", "do", "a", "move", "client", "ref", "=", "entry", "value", "ref", ";", "removed", "=", "true", ";", "}", "}", "if", "(", "removed", ")", "{", "maybe", "notify", "exclusive", "entry", "removal", "(", "old", "exclusive", ")", ";", "}", "return", "client", "ref", ";", "}" ]
[ "check", "if", "identity", "is", "allowed", "to", "drop", "the", "specified", "view", "in", "this", "catalog" ]
[ "default", "void", "check", "can", "drop", "view", "(", "connector", "transaction", "handle", "transaction", "handle", ",", "connector", "identity", "identity", ",", "access", "control", "context", "context", ",", "schema", "table", "name", "view", "name", ")", "{", "deny", "drop", "view", "(", "view", "name", "to", "string", "(", ")", ")", ";", "}" ]
[ "callback", "for", "destroying", "a", "singleton", "instance", "subclasses", "may", "override", "this", "to", "destroy", "the", "previously", "created", "instance", "the", "default", "implementation", "is", "empty" ]
[ "protected", "void", "destroy", "instance", "(", "@", "nullable", "t", "instance", ")", "throws", "exception", "{", "}" ]
[ "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")", "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")" ]
[ "public", "void", "test", "group", "parameters", "(", "integer", "required", "string", "group", ",", "boolean", "required", "boolean", "group", ",", "long", "required", "int", "6", "4", "group", ",", "integer", "string", "group", ",", "boolean", "boolean", "group", ",", "long", "int", "6", "4", "group", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "null", ";", "/", "/", "verify", "the", "required", "parameter", "'", "required", "string", "group", "'", "is", "set", "if", "(", "required", "string", "group", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "required", "string", "group", "'", "when", "calling", "test", "group", "parameters", "\"", ")", ";", "}", "/", "/", "verify", "the", "required", "parameter", "'", "required", "boolean", "group", "'", "is", "set", "if", "(", "required", "boolean", "group", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "required", "boolean", "group", "'", "when", "calling", "test", "group", "parameters", "\"", ")", ";", "}", "/", "/", "verify", "the", "required", "parameter", "'", "required", "int", "6", "4", "group", "'", "is", "set", "if", "(", "required", "int", "6", "4", "group", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "required", "int", "6", "4", "group", "'", "when", "calling", "test", "group", "parameters", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "local", "var", "path", "=", "\"", "/", "fake", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "format", "\\", "\\", "}", "\"", ",", "\"", "json", "\"", ")", ";", "/", "/", "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", ">", "(", ")", ";", "local", "var", "query", "params", "add", "all", "(", "api", "client", "parameter", "to", "pairs", "(", "\"", "\"", ",", "\"", "required", "string", "group", "\"", ",", "required", "string", "group", ")", ")", ";", "local", "var", "query", "params", "add", "all", "(", "api", "client", "parameter", "to", "pairs", "(", "\"", "\"", ",", "\"", "required", "int", "6", "4", "group", "\"", ",", "required", "int", "6", "4", "group", ")", ")", ";", "local", "var", "query", "params", "add", "all", "(", "api", "client", "parameter", "to", "pairs", "(", "\"", "\"", ",", "\"", "string", "group", "\"", ",", "string", "group", ")", ")", ";", "local", "var", "query", "params", "add", "all", "(", "api", "client", "parameter", "to", "pairs", "(", "\"", "\"", ",", "\"", "int", "6", "4", "group", "\"", ",", "int", "6", "4", "group", ")", ")", ";", "if", "(", "required", "boolean", "group", "!", "=", "null", ")", "local", "var", "header", "params", "put", "(", "\"", "required", "boolean", "group", "\"", ",", "api", "client", "parameter", "to", "string", "(", "required", "boolean", "group", ")", ")", ";", "if", "(", "boolean", "group", "!", "=", "null", ")", "local", "var", "header", "params", "put", "(", "\"", "boolean", "group", "\"", ",", "api", "client", "parameter", "to", "string", "(", "boolean", "group", ")", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "}", ";", "final", "string", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "}", ";", "final", "string", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "}", ";", "api", "client", "invoke", "a", "p", "i", "(", "local", "var", "path", ",", "\"", "delete", "\"", ",", "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", ")", ";", "}" ]
[ "return", "the", "type", "of", "the", "request", "'", "s", "body" ]
[ "public", "type", "get", "type", "(", ")", "{", "if", "(", "this", "type", "=", "=", "null", ")", "{", "t", "body", "=", "get", "body", "(", ")", ";", "if", "(", "body", "!", "=", "null", ")", "{", "return", "body", "get", "class", "(", ")", ";", "}", "}", "return", "this", "type", ";", "}" ]
[ "causes", "the", "provided", "map", "to", "be", "updated", "with", "output", "groups", "produced", "by", "compile", "action", "registration", "this", "map", "is", "intended", "to", "be", "mutated", "by", "{", "@", "link", "compilation", "support", "#", "register", "compile", "and", "archive", "actions", "}", "the", "added", "output", "groups", "should", "be", "exported", "by", "the", "calling", "rule", "class", "implementation" ]
[ "public", "builder", "set", "output", "group", "collector", "(", "map", "<", "string", ",", "nested", "set", "<", "artifact", ">", ">", "output", "group", "collector", ")", "{", "this", "output", "group", "collector", "=", "output", "group", "collector", ";", "return", "this", ";", "}" ]
[ "adds", "an", "element", "to", "the", "end", "of", "the", "list", "this", "will", "increase", "the", "list", "'", "s", "capacity", "if", "necessary" ]
[ "public", "void", "add", "(", "int", "value", ")", "{", "throw", "if", "immutable", "(", ")", ";", "grow", "if", "needed", "(", ")", ";", "values", "[", "size", "+", "+", "]", "=", "value", ";", "if", "(", "sorted", "&", "&", "(", "size", ">", "1", ")", ")", "{", "sorted", "=", "(", "value", ">", "=", "values", "[", "size", "-", "2", "]", ")", ";", "}", "}" ]
[ "build", "the", "web", "client", "used", "to", "make", "http", "requests" ]
[ "protected", "web", "client", "build", "web", "client", "(", "vertx", "vertx", ",", "json", "object", "config", ")", "{", "if", "(", "!", "config", "contains", "key", "(", "\"", "user", "agent", "\"", ")", ")", "{", "config", "put", "(", "\"", "user", "agent", "\"", ",", "\"", "open", "a", "p", "i", "-", "generator", "/", "1", "0", "0", "/", "java", "\"", ")", ";", "}", "return", "web", "client", "create", "(", "vertx", ",", "new", "web", "client", "options", "(", "config", ")", ")", ";", "}" ]
[ "get", "outer", "enum" ]
[ "public", "outer", "enum", "get", "outer", "enum", "(", ")", "{", "return", "outer", "enum", ";", "}" ]
[ "add", "a", "foreign", "key", "name", "into", "the", "clear", "list" ]
[ "void", "add", "f", "k", "name", "to", "clear", "self", "(", "string", "foreign", "key", "name", ")", "{", "list", "<", "string", ">", "list", "=", "get", "list", "to", "clear", "self", "f", "k", "(", ")", ";", "if", "(", "!", "list", "contains", "(", "foreign", "key", "name", ")", ")", "{", "list", "add", "(", "foreign", "key", "name", ")", ";", "}", "}" ]