docstring_tokens
list
code_tokens
list
[ "returns", "true", "if", "the", "end", "of", "the", "compressed", "data", "output", "stream", "has", "been", "reached" ]
[ "public", "synchronized", "boolean", "finished", "(", ")", "{", "/", "/", "check", "if", "all", "uncompressed", "data", "has", "been", "consumed", "return", "(", "finish", "&", "&", "finished", "&", "&", "compressed", "direct", "buf", "remaining", "(", ")", "=", "=", "0", ")", ";", "}" ]
[ "given", "a", "map", ",", "produce", "a", "string", "with", "all", "the", "values", ",", "sorted", "needs", "to", "create", "a", "treemap", "and", "insert", "all", "the", "entries" ]
[ "private", "static", "<", "e", ">", "void", "map", "to", "sorted", "string", "(", "string", "builder", "sb", ",", "final", "string", "type", ",", "final", "map", "<", "string", ",", "e", ">", "map", ",", "final", "predicate", "<", "e", ">", "is", "empty", ")", "{", "map", "to", "string", "(", "sb", ",", "type", ",", "sorted", "map", "(", "map", ",", "is", "empty", ")", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "invoked", "at", "completion", "of", "thread", "execution", "when", "{", "@", "link", "hystrix", "command", "}", "is", "executed", "using", "{", "@", "link", "execution", "isolation", "strategy", "#", "thread", "}", "this", "will", "get", "invoked", "whenever", "the", "hystrix", "thread", "is", "done", "executing", ",", "regardless", "of", "whether", "the", "thread", "finished", "naturally", ",", "or", "was", "unsubscribed", "externally" ]
[ "public", "<", "t", ">", "void", "on", "thread", "complete", "(", "hystrix", "invokable", "<", "t", ">", "command", "instance", ")", "{", "/", "/", "do", "nothing", "by", "default", "}" ]
[ "release", "any", "resources", "held", "by", "this", "emitter" ]
[ "void", "close", "(", ")", ";" ]
[ "remaps", "unversioned", "registers" ]
[ "public", "void", "map", "registers", "(", "register", "mapper", "mapper", ")", "{", "for", "(", "ssa", "basic", "block", "block", ":", "get", "blocks", "(", ")", ")", "{", "for", "(", "ssa", "insn", "insn", ":", "block", "get", "insns", "(", ")", ")", "{", "insn", "map", "registers", "(", "mapper", ")", ";", "}", "}", "register", "count", "=", "mapper", "get", "new", "register", "count", "(", ")", ";", "spare", "register", "base", "=", "register", "count", ";", "}" ]
[ "replaces", "the", "given", "table", "switch", "instruction", ",", "if", "it", "is", "based", "on", "the", "value", "of", "a", "fixed", "array", "this", "is", "typical", "for", "switches", "on", "simple", "enums" ]
[ "private", "void", "replace", "simple", "enum", "switch", "instruction", "(", "clazz", "clazz", ",", "code", "attribute", "code", "attribute", ",", "int", "offset", ",", "table", "switch", "instruction", "table", "switch", "instruction", ")", "{", "/", "/", "check", "if", "the", "switch", "instruction", "is", "consuming", "a", "single", "value", "loaded", "/", "/", "from", "a", "fully", "specified", "array", "instruction", "offset", "value", "producer", "offsets", "=", "partial", "evaluator", "get", "stack", "before", "(", "offset", ")", "get", "top", "producer", "value", "(", "0", ")", "instruction", "offset", "value", "(", ")", ";", "if", "(", "producer", "offsets", "instruction", "offset", "count", "(", ")", "=", "=", "1", ")", "{", "int", "producer", "offset", "=", "producer", "offsets", "instruction", "offset", "(", "0", ")", ";", "if", "(", "code", "attribute", "code", "[", "producer", "offset", "]", "=", "=", "instruction", "constants", "op", "iaload", "&", "&", "!", "code", "attribute", "editor", "is", "modified", "(", "producer", "offset", ")", ")", "{", "reference", "value", "reference", "value", "=", "partial", "evaluator", "get", "stack", "before", "(", "producer", "offset", ")", "get", "top", "(", "1", ")", "reference", "value", "(", ")", ";", "if", "(", "reference", "value", "is", "particular", "(", ")", ")", "{", "/", "/", "simplify", "the", "entire", "construct", "replace", "simple", "enum", "switch", "instruction", "(", "clazz", ",", "code", "attribute", ",", "producer", "offset", ",", "offset", ",", "table", "switch", "instruction", ",", "reference", "value", ")", ";", "}", "}", "}", "}" ]
[ "invert", "the", "sort", "order", "of", "each", "sort", "definition", "contained", "by", "this", "compound", "comparator" ]
[ "public", "void", "invert", "order", "(", ")", "{", "for", "(", "invertible", "comparator", "comparator", ":", "this", "comparators", ")", "{", "comparator", "invert", "order", "(", ")", ";", "}", "}" ]
[ "gets", "the", "directories", "that", "the", "io", "manager", "spills", "to", ",", "as", "path", "strings" ]
[ "public", "string", "[", "]", "get", "spilling", "directories", "paths", "(", ")", "{", "file", "[", "]", "paths", "=", "file", "channel", "manager", "get", "paths", "(", ")", ";", "string", "[", "]", "strings", "=", "new", "string", "[", "paths", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "strings", "length", ";", "i", "+", "+", ")", "{", "strings", "[", "i", "]", "=", "paths", "[", "i", "]", "get", "absolute", "path", "(", ")", ";", "}", "return", "strings", ";", "}" ]
[ "waits", "for", "the", "j", "dialog", "with", "the", "indicated", "title", "and", "that", "is", "parented", "to", "the", "indicated", "window", "<", "p", ">", "note", ":", "sometimes", "the", "task", "dialog", "might", "have", "the", "same", "title", "as", "the", "dialog", "you", "pop", "up", "and", "you", "want", "to", "get", "yours", "instead", "of", "the", "one", "for", "the", "task", "monitor" ]
[ "public", "static", "j", "dialog", "wait", "for", "j", "dialog", "(", "window", "window", ",", "string", "title", ",", "int", "timeout", "m", "s", ")", "{", "int", "total", "time", "=", "0", ";", "while", "(", "total", "time", "<", "=", "default", "wait", "timeout", ")", "{", "set", "<", "window", ">", "win", "list", "=", "get", "windows", "(", "window", ")", ";", "iterator", "<", "window", ">", "iter", "=", "win", "list", "iterator", "(", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "window", "w", "=", "iter", "next", "(", ")", ";", "if", "(", "(", "w", "instanceof", "j", "dialog", ")", "&", "&", "w", "is", "showing", "(", ")", ")", "{", "string", "window", "title", "=", "get", "title", "for", "window", "(", "w", ")", ";", "if", "(", "title", "equals", "(", "window", "title", ")", ")", "{", "return", "(", "j", "dialog", ")", "w", ";", "}", "}", "}", "total", "time", "+", "=", "sleep", "(", "default", "wait", "delay", ")", ";", "}", "throw", "new", "assertion", "failed", "error", "(", "\"", "timed", "-", "out", "waiting", "for", "window", "with", "title", "'", "\"", "+", "title", "+", "\"", "'", "\"", ")", ";", "}" ]
[ "locate", "consistency", "'", "s", "datum", "by", "all", "or", "instances", "provided" ]
[ "public", "list", "<", "instance", ">", "get", "located", "instance", "(", "string", "namespace", "id", ",", "string", "service", "name", ",", "boolean", "is", "ephemeral", ",", "boolean", "all", ",", "list", "<", "instance", ">", "wait", "locate", "instance", ")", "throws", "nacos", "exception", "{", "list", "<", "instance", ">", "located", "instance", ";", "/", "/", "need", "the", "newest", "data", "from", "consistency", "service", "datum", "datum", "=", "consistency", "service", "get", "(", "key", "builder", "build", "instance", "list", "key", "(", "namespace", "id", ",", "service", "name", ",", "is", "ephemeral", ")", ")", ";", "if", "(", "datum", "=", "=", "null", ")", "{", "throw", "new", "nacos", "exception", "(", "nacos", "exception", "not", "found", ",", "\"", "instances", "from", "consistency", "service", "not", "exist", ",", "namespace", ":", "\"", "+", "namespace", "id", "+", "\"", ",", "service", ":", "\"", "+", "service", "name", "+", "\"", ",", "ephemeral", ":", "\"", "+", "is", "ephemeral", ")", ";", "}", "if", "(", "all", ")", "{", "located", "instance", "=", "(", "(", "instances", ")", "datum", "value", ")", "get", "instance", "list", "(", ")", ";", "}", "else", "{", "located", "instance", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "instance", "instance", ":", "wait", "locate", "instance", ")", "{", "instance", "located", "=", "locate", "instance", "(", "(", "(", "instances", ")", "datum", "value", ")", "get", "instance", "list", "(", ")", ",", "instance", ")", ";", "if", "(", "located", "=", "=", "null", ")", "{", "continue", ";", "}", "located", "instance", "add", "(", "located", ")", ";", "}", "}", "return", "located", "instance", ";", "}" ]
[ "deletes", "a", "directory", "from", "swift", "this", "is", "not", "recursive" ]
[ "public", "boolean", "rmdir", "(", "path", "path", ")", "throws", "i", "o", "exception", "{", "return", "delete", "object", "(", "path", ")", ";", "}" ]
[ "test", "the", "property", "'", "small", "snake", "'" ]
[ "public", "void", "small", "snake", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "small", "snake", "}" ]
[ "adds", "'", "value", "'", "to", "wrapped", "collection", "replacing", "this", "collection", "instance", "for", "compact", "hash", "set", "from", "array", "list" ]
[ "public", "synchronized", "boolean", "add", "(", "t", "value", ")", "{", "collection", "<", "t", ">", "collection", "=", "this", "collection", ";", "if", "(", "collection", "=", "=", "null", ")", "{", "/", "/", "null", "-", ">", "singleton", "list", "this", "collection", "=", "collections", "singleton", "list", "(", "value", ")", ";", "return", "true", ";", "}", "if", "(", "collection", "contains", "(", "value", ")", ")", "{", "/", "/", "already", "exists", "in", "this", "collection", "return", "false", ";", "}", "int", "previous", "size", "=", "collection", "size", "(", ")", ";", "if", "(", "previous", "size", "=", "=", "1", ")", "{", "/", "/", "singleton", "list", "-", ">", "array", "list", "collection", "<", "t", ">", "new", "list", "=", "new", "array", "list", "<", ">", "(", "arraylist", "threshold", ")", ";", "new", "list", "add", "all", "(", "collection", ")", ";", "new", "list", "add", "(", "value", ")", ";", "this", "collection", "=", "new", "list", ";", "}", "else", "if", "(", "previous", "size", "<", "arraylist", "threshold", ")", "{", "/", "/", "array", "list", "collection", "add", "(", "value", ")", ";", "}", "else", "if", "(", "previous", "size", "=", "=", "arraylist", "threshold", ")", "{", "/", "/", "array", "list", "-", ">", "compact", "hash", "set", "collection", "<", "t", ">", "new", "set", "=", "compact", "hash", "set", "create", "with", "expected", "size", "(", "initial", "hashset", "capacity", ")", ";", "new", "set", "add", "all", "(", "collection", ")", ";", "new", "set", "add", "(", "value", ")", ";", "this", "collection", "=", "new", "set", ";", "}", "else", "{", "/", "/", "hash", "set", "collection", "add", "(", "value", ")", ";", "}", "return", "true", ";", "}" ]
[ "helper", "method", "to", "set", "password", "for", "the", "first", "http", "basic", "authentication" ]
[ "public", "api", "client", "set", "password", "(", "string", "password", ")", "{", "for", "(", "authentication", "auth", ":", "authentications", "values", "(", ")", ")", "{", "if", "(", "auth", "instanceof", "http", "basic", "auth", ")", "{", "(", "(", "http", "basic", "auth", ")", "auth", ")", "set", "password", "(", "password", ")", ";", "return", "this", ";", "}", "}", "throw", "new", "runtime", "exception", "(", "\"", "no", "http", "basic", "authentication", "configured", "!", "\"", ")", ";", "}" ]
[ "ensures", "that", "the", "given", "option", "satisfies", "all", "the", "requirements", "on", "incompatible", "change", "options", "enumerated", "above", "if", "any", "of", "these", "requirements", "are", "not", "satisfied", ",", "{", "@", "link", "illegal", "argument", "exception", "}", "is", "thrown", ",", "as", "this", "constitutes", "an", "internal", "error", "in", "the", "declaration", "of", "the", "option" ]
[ "private", "static", "void", "validate", "incompatible", "change", "(", "option", "definition", "option", "definition", ")", "{", "string", "prefix", "=", "string", "format", "(", "\"", "incompatible", "change", "%", "s", "\"", ",", "option", "definition", ")", ";", "/", "/", "to", "avoid", "ambiguity", ",", "and", "the", "suggestion", "of", "using", "is", "empty", "(", ")", "string", "default", "string", "=", "\"", "\"", ";", "/", "/", "validate", "that", "disallowed", "fields", "aren", "'", "t", "used", "these", "will", "need", "updating", "if", "the", "default", "values", "/", "/", "in", "option", "ever", "change", ",", "and", "perhaps", "if", "new", "fields", "are", "added", "if", "(", "option", "definition", "get", "abbreviation", "(", ")", "!", "=", "'", "\\", "0", "'", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "not", "use", "the", "abbrev", "field", "\"", ")", ";", "}", "if", "(", "!", "option", "definition", "get", "value", "type", "help", "text", "(", ")", "equals", "(", "default", "string", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "not", "use", "the", "value", "help", "field", "\"", ")", ";", "}", "if", "(", "option", "definition", "get", "provided", "converter", "(", ")", "!", "=", "converter", "class", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "not", "use", "the", "converter", "field", "\"", ")", ";", "}", "if", "(", "option", "definition", "allows", "multiple", "(", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "not", "use", "the", "allow", "multiple", "field", "\"", ")", ";", "}", "if", "(", "option", "definition", "has", "implicit", "requirements", "(", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "not", "use", "the", "implicit", "requirements", "field", "\"", ")", ";", "}", "if", "(", "!", "option", "definition", "get", "old", "option", "name", "(", ")", "equals", "(", "default", "string", ")", "&", "&", "!", "option", "definition", "get", "old", "option", "name", "(", ")", "starts", "with", "(", "\"", "experimental", "\"", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "not", "use", "the", "old", "name", "field", "\"", ")", ";", "}", "/", "/", "validate", "the", "fields", "that", "are", "actually", "allowed", "if", "(", "!", "option", "definition", "get", "option", "name", "(", ")", "starts", "with", "(", "incompatible", "name", "prefix", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "have", "name", "starting", "with", "\\", "\"", "incompatible", "\\", "\"", "\"", ")", ";", "}", "if", "(", "!", "immutable", "list", "copy", "of", "(", "option", "definition", "get", "option", "metadata", "tags", "(", ")", ")", "contains", "(", "option", "metadata", "tag", "triggered", "by", "all", "incompatible", "changes", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "have", "metadata", "tag", "option", "metadata", "tag", "triggered", "by", "all", "incompatible", "changes", "\"", ")", ";", "}", "if", "(", "!", "immutable", "list", "copy", "of", "(", "option", "definition", "get", "option", "metadata", "tags", "(", ")", ")", "contains", "(", "option", "metadata", "tag", "incompatible", "change", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "have", "metadata", "tag", "option", "metadata", "tag", "incompatible", "change", "\"", ")", ";", "}", "if", "(", "!", "option", "definition", "is", "expansion", "option", "(", ")", ")", "{", "if", "(", "!", "option", "definition", "get", "type", "(", ")", "equals", "(", "boolean", "type", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "have", "boolean", "type", "(", "unless", "it", "'", "s", "an", "expansion", "option", ")", "\"", ")", ";", "}", "}", "if", "(", "option", "definition", "get", "help", "text", "(", ")", "equals", "(", "default", "string", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "prefix", "+", "\"", "must", "have", "a", "\\", "\"", "help", "\\", "\"", "string", "that", "refers", "the", "user", "to", "\"", "+", "\"", "information", "about", "this", "change", "and", "how", "to", "migrate", "their", "code", "\"", ")", ";", "}", "}" ]
[ "ensures", "the", "truth", "of", "an", "expression", "involving", "the", "state", "of", "the", "calling", "instance", ",", "but", "not", "involving", "any", "parameters", "to", "the", "calling", "method" ]
[ "public", "static", "void", "check", "state", "(", "boolean", "expression", ")", "{", "if", "(", "!", "expression", ")", "{", "throw", "new", "illegal", "state", "exception", "(", ")", ";", "}", "}" ]
[ "test", "the", "property", "'", "photo", "urls", "'" ]
[ "public", "void", "photo", "urls", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "photo", "urls", "}" ]
[ "the", "{", "@", "link", "values", "source", "registry", "}", "to", "resolve", "{", "@", "link", "aggregator", "}", "s", "and", "the", "like" ]
[ "public", "abstract", "values", "source", "registry", "get", "values", "source", "registry", "(", ")", ";" ]
[ "return", "the", "number", "of", "tasks", "that", "are", "pending", "for", "processing", "be", "aware", "that", "this", "operation", "may", "be", "expensive", "as", "it", "depends", "on", "the", "internal", "implementation", "of", "the", "single", "thread", "event", "executor", "so", "use", "it", "with", "care", "!" ]
[ "public", "int", "pending", "tasks", "(", ")", "{", "return", "task", "queue", "size", "(", ")", ";", "}" ]
[ "returns", "the", "absolute", "timestamp", "when", "this", "measurement", "was", "taken" ]
[ "public", "long", "get", "timestamp", "(", ")", "{", "return", "timestamp", ";", "}" ]
[ "test", "encode", "undo", "log" ]
[ "public", "void", "test", "encode", "undo", "log", "(", ")", "{", "branch", "undo", "log", "branch", "undo", "log", "=", "new", "branch", "undo", "log", "(", ")", ";", "branch", "undo", "log", "set", "branch", "id", "(", "641789253l", ")", ";", "branch", "undo", "log", "set", "xid", "(", "\"", "xid", ":", "xxx", "\"", ")", ";", "array", "list", "<", "s", "q", "l", "undo", "log", ">", "items", "=", "new", "array", "list", "<", ">", "(", ")", ";", "s", "q", "l", "undo", "log", "item", "=", "new", "s", "q", "l", "undo", "log", "(", ")", ";", "item", "set", "sql", "type", "(", "s", "q", "l", "type", "update", ")", ";", "table", "meta", "table", "meta", "=", "new", "table", "meta", "(", ")", ";", "table", "meta", "set", "table", "name", "(", "\"", "product", "\"", ")", ";", "table", "records", "before", "image", "=", "new", "table", "records", "(", "table", "meta", ")", ";", "row", "rowb", "=", "new", "row", "(", ")", ";", "rowb", "add", "(", "new", "field", "(", "\"", "id", "\"", ",", "types", "integer", ",", "1", ")", ")", ";", "rowb", "add", "(", "new", "field", "(", "\"", "name", "\"", ",", "types", "varchar", ",", "\"", "seata", "\"", ")", ")", ";", "rowb", "add", "(", "new", "field", "(", "\"", "since", "\"", ",", "types", "varchar", ",", "\"", "2014", "\"", ")", ")", ";", "before", "image", "add", "(", "rowb", ")", ";", "item", "set", "before", "image", "(", "before", "image", ")", ";", "table", "records", "after", "image", "=", "new", "table", "records", "(", "table", "meta", ")", ";", "row", "rowa", "=", "new", "row", "(", ")", ";", "rowa", "add", "(", "new", "field", "(", "\"", "id", "\"", ",", "types", "integer", ",", "1", ")", ")", ";", "rowa", "add", "(", "new", "field", "(", "\"", "name", "\"", ",", "types", "varchar", ",", "\"", "seata", "io", "\"", ")", ")", ";", "rowa", "add", "(", "new", "field", "(", "\"", "since", "\"", ",", "types", "varchar", ",", "\"", "2014", "\"", ")", ")", ";", "after", "image", "add", "(", "rowa", ")", ";", "item", "set", "after", "image", "(", "after", "image", ")", ";", "items", "add", "(", "item", ")", ";", "branch", "undo", "log", "set", "sql", "undo", "logs", "(", "items", ")", ";", "byte", "[", "]", "bs", "=", "undo", "log", "parser", "factory", "get", "instance", "(", ")", "encode", "(", "branch", "undo", "log", ")", ";", "branch", "undo", "log", "decode", "obj", "=", "undo", "log", "parser", "factory", "get", "instance", "(", ")", "decode", "(", "bs", ")", ";", "assertions", "assert", "equals", "(", "decode", "obj", "get", "branch", "id", "(", ")", ",", "branch", "undo", "log", "get", "branch", "id", "(", ")", ")", ";", "}" ]
[ "delete", "recognizer", "test", "0" ]
[ "public", "void", "delete", "recognizer", "test", "0", "(", ")", "{", "parameters", "holder", "parameters", "holder", "=", "new", "parameters", "holder", "(", ")", "{", "@", "override", "public", "map", "<", "integer", ",", "array", "list", "<", "object", ">", ">", "get", "parameters", "(", ")", "{", "return", "collections", "empty", "map", ";", "}", "}", ";", "string", "sql", "=", "\"", "delete", "from", "t", "1", "where", "id", "=", "'", "id", "1", "'", "order", "by", "id", "asc", ",", "name", "desc", "limit", "1", ",", "2", "\"", ";", "s", "q", "l", "statement", "statement", "=", "get", "s", "q", "l", "statement", "(", "sql", ")", ";", "array", "list", "<", "list", "<", "object", ">", ">", "param", "appender", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "my", "s", "q", "l", "delete", "recognizer", "my", "s", "q", "l", "delete", "recognizer", "=", "new", "my", "s", "q", "l", "delete", "recognizer", "(", "sql", ",", "statement", ")", ";", "string", "order", "by", "=", "my", "s", "q", "l", "delete", "recognizer", "get", "order", "by", "(", ")", ";", "assertions", "assert", "true", "(", "order", "by", "equals", "ignore", "case", "(", "\"", "order", "by", "id", "asc", ",", "name", "desc", "\"", ")", ")", ";", "assertions", "assert", "equals", "(", "sql", ",", "my", "s", "q", "l", "delete", "recognizer", "get", "original", "s", "q", "l", "(", ")", ")", ";", "assertions", "assert", "equals", "(", "\"", "t", "1", "\"", ",", "my", "s", "q", "l", "delete", "recognizer", "get", "table", "name", "(", ")", ")", ";", "assertions", "assert", "equals", "(", "\"", "id", "=", "'", "id", "1", "'", "\"", ",", "my", "s", "q", "l", "delete", "recognizer", "get", "where", "condition", "(", ")", ")", ";", "string", "limit", "=", "my", "s", "q", "l", "delete", "recognizer", "get", "limit", "(", "parameters", "holder", ",", "param", "appender", "list", ")", ";", "assertions", "assert", "equals", "(", "\"", "limit", "1", ",", "2", "\"", ",", "limit", ")", ";", "sql", "=", "\"", "delete", "from", "t", "1", "where", "id", ">", "1", "order", "by", "id", ",", "name", "desc", "limit", "1", "\"", ";", "statement", "=", "get", "s", "q", "l", "statement", "(", "sql", ")", ";", "my", "s", "q", "l", "delete", "recognizer", "=", "new", "my", "s", "q", "l", "delete", "recognizer", "(", "sql", ",", "statement", ")", ";", "order", "by", "=", "my", "s", "q", "l", "delete", "recognizer", "get", "order", "by", "(", ")", ";", "assertions", "assert", "true", "(", "order", "by", "equals", "ignore", "case", "(", "\"", "order", "by", "id", ",", "name", "desc", "\"", ")", ")", ";", "assertions", "assert", "equals", "(", "\"", "limit", "1", "\"", ",", "my", "s", "q", "l", "delete", "recognizer", "get", "limit", "(", "parameters", "holder", ",", "param", "appender", "list", ")", ")", ";", "sql", "=", "\"", "delete", "from", "t", "1", "where", "id", ">", "1", "\"", ";", "statement", "=", "get", "s", "q", "l", "statement", "(", "sql", ")", ";", "my", "s", "q", "l", "delete", "recognizer", "=", "new", "my", "s", "q", "l", "delete", "recognizer", "(", "sql", ",", "statement", ")", ";", "assertions", "assert", "equals", "(", "null", ",", "my", "s", "q", "l", "delete", "recognizer", "get", "limit", "(", "parameters", "holder", ",", "param", "appender", "list", ")", ")", ";", "order", "by", "=", "my", "s", "q", "l", "delete", "recognizer", "get", "order", "by", "(", ")", ";", "assertions", "assert", "equals", "(", "null", ",", "my", "s", "q", "l", "delete", "recognizer", "get", "order", "by", "(", ")", ")", ";", "}" ]
[ "adds", "a", "global", "{", "@", "link", "state", "store", "}", "to", "the", "topology", "the", "{", "@", "link", "state", "store", "}", "sources", "its", "data", "from", "all", "partitions", "of", "the", "provided", "input", "topic", "there", "will", "be", "exactly", "one", "instance", "of", "this", "{", "@", "link", "state", "store", "}", "per", "kafka", "streams", "instance", "a", "{", "@", "link", "source", "node", "}", "with", "the", "provided", "source", "name", "will", "be", "added", "to", "consume", "the", "data", "arriving", "from", "the", "partitions", "of", "the", "input", "topic", "the", "provided", "{", "@", "link", "org", "apache", "kafka", "streams", "processor", "processor", "supplier", "}", "will", "be", "used", "to", "create", "an", "{", "@", "link", "processor", "node", "}", "that", "will", "receive", "all", "records", "forwarded", "from", "the", "{", "@", "link", "source", "node", "}", "the", "supplier", "should", "always", "generate", "a", "new", "instance", "each", "time", "{", "@", "link", "org", "apache", "kafka", "streams", "processor", "processor", "supplier", "#", "get", "(", ")", "}", "gets", "called", "creating", "a", "single", "{", "@", "link", "org", "apache", "kafka", "streams", "processor", "processor", "}", "object", "and", "returning", "the", "same", "object", "reference", "in", "{", "@", "link", "org", "apache", "kafka", "streams", "processor", "processor", "supplier", "#", "get", "(", ")", "}", "would", "be", "a", "violation", "of", "the", "supplier", "pattern", "and", "leads", "to", "runtime", "exceptions", "this", "{", "@", "link", "processor", "node", "}", "should", "be", "used", "to", "keep", "the", "{", "@", "link", "state", "store", "}", "up", "-", "to", "-", "date" ]
[ "public", "synchronized", "<", "k", ",", "v", ">", "topology", "add", "global", "store", "(", "final", "store", "builder", "<", "?", ">", "store", "builder", ",", "final", "string", "source", "name", ",", "final", "timestamp", "extractor", "timestamp", "extractor", ",", "final", "deserializer", "<", "k", ">", "key", "deserializer", ",", "final", "deserializer", "<", "v", ">", "value", "deserializer", ",", "final", "string", "topic", ",", "final", "string", "processor", "name", ",", "final", "org", "apache", "kafka", "streams", "processor", "processor", "supplier", "<", "k", ",", "v", ">", "state", "update", "supplier", ")", "{", "internal", "topology", "builder", "add", "global", "store", "(", "store", "builder", ",", "source", "name", ",", "timestamp", "extractor", ",", "key", "deserializer", ",", "value", "deserializer", ",", "topic", ",", "processor", "name", ",", "(", ")", "-", ">", "processor", "adapter", "adapt", "(", "state", "update", "supplier", "get", "(", ")", ")", ")", ";", "return", "this", ";", "}" ]
[ "open", "the", "file", "as", "a", "blocking", "call", "to", "{", "@", "link", "#", "open", "(", "path", ",", "int", ")", "}", "{", "@", "inherit", "doc", "}" ]
[ "protected", "completable", "future", "<", "f", "s", "data", "input", "stream", ">", "open", "file", "with", "options", "(", "final", "path", "path", ",", "final", "open", "file", "parameters", "parameters", ")", "throws", "i", "o", "exception", "{", "abstract", "f", "s", "builder", "impl", "reject", "unknown", "mandatory", "keys", "(", "parameters", "get", "mandatory", "keys", "(", ")", ",", "collections", "empty", "set", "(", ")", ",", "\"", "for", "\"", "+", "path", ")", ";", "return", "lambda", "utils", "eval", "(", "new", "completable", "future", "<", ">", "(", ")", ",", "(", ")", "-", ">", "open", "(", "path", ",", "parameters", "get", "buffer", "size", "(", ")", ")", ")", ";", "}" ]
[ "sets", "the", "value", "of", "the", "value", "property" ]
[ "public", "void", "set", "value", "(", "final", "object", "value", ")", "{", "this", "value", "=", "value", ";", "}" ]
[ "job", "completion", "notification", "triggered", "by", "self" ]
[ "public", "void", "job", "finished", "by", "other", "(", ")", "{", "result", "future", "complete", "(", "job", "manager", "runner", "result", "for", "job", "not", "finished", "(", ")", ")", ";", "}" ]
[ "if", "replica", "with", "expected", "storage", "type", "already", "exist", "in", "source", "dn", "then", "that", "dn", "should", "be", "skipped" ]
[ "public", "void", "test", "s", "p", "s", "when", "replica", "with", "expected", "storage", "already", "available", "in", "source", "(", ")", "throws", "exception", "{", "storage", "type", "[", "]", "[", "]", "disk", "types", "=", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "disk", ",", "storage", "type", "archive", "}", ",", "{", "storage", "type", "disk", ",", "storage", "type", "archive", "}", ",", "{", "storage", "type", "disk", ",", "storage", "type", "archive", "}", "}", ";", "try", "{", "hdfs", "cluster", "=", "start", "cluster", "(", "config", ",", "disk", "types", ",", "disk", "types", "length", ",", "storages", "per", "datanode", ",", "capacity", ")", ";", "dfs", "=", "hdfs", "cluster", "get", "file", "system", "(", ")", ";", "/", "/", "1", "write", "two", "replica", "on", "disk", "d", "f", "s", "test", "util", "create", "file", "(", "dfs", ",", "new", "path", "(", "file", ")", ",", "default", "block", "size", ",", "(", "short", ")", "2", ",", "0", ")", ";", "/", "/", "2", "change", "policy", "to", "cold", ",", "so", "third", "replica", "will", "be", "written", "to", "archive", "dfs", "set", "storage", "policy", "(", "new", "path", "(", "file", ")", ",", "\"", "cold", "\"", ")", ";", "/", "/", "3", "change", "replication", "factor", "to", "3", "dfs", "set", "replication", "(", "new", "path", "(", "file", ")", ",", "(", "short", ")", "3", ")", ";", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "file", ",", "storage", "type", "disk", ",", "2", ",", "30000", ",", "dfs", ")", ";", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "file", ",", "storage", "type", "archive", ",", "1", ",", "30000", ",", "dfs", ")", ";", "/", "/", "4", "change", "policy", "to", "hot", ",", "so", "we", "can", "move", "the", "all", "block", "to", "disk", "dfs", "set", "storage", "policy", "(", "new", "path", "(", "file", ")", ",", "\"", "hot", "\"", ")", ";", "/", "/", "4", "satisfy", "the", "policy", "dfs", "satisfy", "storage", "policy", "(", "new", "path", "(", "file", ")", ")", ";", "/", "/", "5", "block", "should", "move", "successfully", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "file", ",", "storage", "type", "disk", ",", "3", ",", "30000", ",", "dfs", ")", ";", "}", "finally", "{", "shutdown", "cluster", "(", ")", ";", "}", "}" ]
[ "add", "a", "configuration", "resource", "the", "properties", "of", "this", "resource", "will", "override", "properties", "of", "previously", "added", "resources", ",", "unless", "they", "were", "marked", "<", "a", "href", "=", "\"", "#", "final", "\"", ">", "final" ]
[ "public", "void", "add", "resource", "(", "configuration", "conf", ")", "{", "add", "resource", "object", "(", "new", "resource", "(", "conf", "get", "props", "(", ")", ",", "conf", "restrict", "system", "props", ")", ")", ";", "}" ]
[ "return", "a", "specified", "binding", "for", "groovy", "variables", ",", "if", "any" ]
[ "public", "binding", "get", "binding", "(", ")", "{", "return", "this", "binding", ";", "}", "/", "/", "traditional", "bean", "definition", "reader", "methods" ]
[ "returns", "the", "backing", "delegate", "instance", "that", "methods", "are", "forwarded", "to", "abstract", "subclasses", "generally", "override", "this", "method", "with", "an", "abstract", "method", "that", "has", "a", "more", "specific", "return", "type", ",", "such", "as", "{", "@", "link", "forwarding", "set", "#", "delegate", "}", "concrete", "subclasses", "override", "this", "method", "to", "supply", "the", "instance", "being", "decorated" ]
[ "protected", "abstract", "object", "delegate", "(", ")", ";" ]
[ "return", "whether", "the", "plugin", "corresponding", "to", "the", "given", "plugin", "description", "has", "other", "plugins", "depending", "on", "a", "service", "it", "provides" ]
[ "public", "boolean", "has", "dependencies", "(", "plugin", "description", "plugin", "dependency", ")", "{", "return", "plugins", "with", "dependencies", "set", "contains", "(", "plugin", "dependency", ")", ";", "}" ]
[ "performs", "some", "sanity", "checks", "on", "the", "class", "paths" ]
[ "private", "void", "check", "conflicts", "(", "class", "path", "class", "path", "1", ",", "class", "path", "class", "path", "2", ")", "throws", "i", "o", "exception", "{", "if", "(", "class", "path", "1", "=", "=", "null", "|", "|", "class", "path", "2", "=", "=", "null", ")", "{", "return", ";", "}", "for", "(", "int", "index", "1", "=", "0", ";", "index", "1", "<", "class", "path", "1", "size", "(", ")", ";", "index", "1", "+", "+", ")", "{", "class", "path", "entry", "entry", "1", "=", "class", "path", "1", "get", "(", "index", "1", ")", ";", "for", "(", "int", "index", "2", "=", "0", ";", "index", "2", "<", "class", "path", "2", "size", "(", ")", ";", "index", "2", "+", "+", ")", "{", "if", "(", "class", "path", "1", "!", "=", "class", "path", "2", "|", "|", "index", "1", "!", "=", "index", "2", ")", "{", "class", "path", "entry", "entry", "2", "=", "class", "path", "2", "get", "(", "index", "2", ")", ";", "if", "(", "entry", "2", "get", "name", "(", ")", "equals", "(", "entry", "1", "get", "name", "(", ")", ")", ")", "{", "if", "(", "entry", "1", "is", "output", "(", ")", ")", "{", "if", "(", "entry", "2", "is", "output", "(", ")", ")", "{", "/", "/", "output", "/", "output", "throw", "new", "i", "o", "exception", "(", "\"", "the", "same", "output", "jar", "[", "\"", "+", "entry", "1", "get", "name", "(", ")", "+", "\"", "]", "is", "specified", "twice", "\"", ")", ";", "}", "else", "{", "/", "/", "output", "/", "input", "throw", "new", "i", "o", "exception", "(", "\"", "input", "jars", "and", "output", "jars", "must", "be", "different", "[", "\"", "+", "entry", "1", "get", "name", "(", ")", "+", "\"", "]", "\"", ")", ";", "}", "}", "else", "{", "if", "(", "entry", "2", "is", "output", "(", ")", ")", "{", "/", "/", "input", "/", "output", "throw", "new", "i", "o", "exception", "(", "\"", "input", "jars", "and", "output", "jars", "must", "be", "different", "[", "\"", "+", "entry", "1", "get", "name", "(", ")", "+", "\"", "]", "\"", ")", ";", "}", "else", "if", "(", "!", "entry", "1", "is", "filtered", "(", ")", "|", "|", "!", "entry", "2", "is", "filtered", "(", ")", ")", "{", "/", "/", "input", "/", "input", "throw", "new", "i", "o", "exception", "(", "\"", "the", "same", "input", "jar", "[", "\"", "+", "entry", "1", "get", "name", "(", ")", "+", "\"", "]", "is", "specified", "twice", "\"", ")", ";", "}", "}", "}", "}", "}", "}", "}" ]
[ "an", "advice", "method", "can", "never", "be", "a", "constructor", "in", "spring" ]
[ "public", "string", "[", "]", "get", "parameter", "names", "(", "constructor", "<", "?", ">", "ctor", ")", "{", "if", "(", "this", "raise", "exceptions", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", "\"", "an", "advice", "method", "can", "never", "be", "a", "constructor", "\"", ")", ";", "}", "else", "{", "/", "/", "we", "return", "null", "rather", "than", "throw", "an", "exception", "so", "that", "we", "behave", "well", "/", "/", "in", "a", "chain", "-", "of", "-", "responsibility", "return", "null", ";", "}", "}" ]
[ "load", "a", "class", "by", "name" ]
[ "public", "class", "<", "?", ">", "get", "class", "by", "name", "(", "string", "name", ")", "throws", "class", "not", "found", "exception", "{", "class", "<", "?", ">", "ret", "=", "get", "class", "by", "name", "or", "null", "(", "name", ")", ";", "if", "(", "ret", "=", "=", "null", ")", "{", "throw", "new", "class", "not", "found", "exception", "(", "\"", "class", "\"", "+", "name", "+", "\"", "not", "found", "\"", ")", ";", "}", "return", "ret", ";", "}" ]
[ "prepends", "the", "given", "{", "@", "link", "encoder", "}", "into", "the", "list", "of", "available", "{", "@", "link", "encoder", "}", "s", "so", "that", "it", "is", "attempted", "before", "all", "later", "and", "default", "{", "@", "link", "encoder", "}", "s", "for", "the", "given", "data", "class", "this", "method", "allows", "you", "to", "replace", "the", "default", "{", "@", "link", "encoder", "}", "because", "it", "ensures", "the", "registered", "{", "@", "link", "encoder", "}", "will", "run", "first", "if", "multiple", "{", "@", "link", "encoder", "}", "s", "are", "registered", "for", "the", "same", "type", "or", "super", "type", ",", "the", "{", "@", "link", "encoder", "}", "that", "is", "registered", "first", "will", "be", "used" ]
[ "public", "<", "data", ">", "registry", "prepend", "(", "@", "non", "null", "class", "<", "data", ">", "data", "class", ",", "@", "non", "null", "encoder", "<", "data", ">", "encoder", ")", "{", "encoder", "registry", "prepend", "(", "data", "class", ",", "encoder", ")", ";", "return", "this", ";", "}" ]
[ "apply", "alpha", "for", "the", "views", "'", "click" ]
[ "public", "static", "void", "apply", "pressed", "view", "alpha", "(", "final", "view", "[", "]", "views", ",", "final", "float", "[", "]", "alphas", ")", "{", "if", "(", "views", "=", "=", "null", "|", "|", "views", "length", "=", "=", "0", ")", "return", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "views", "length", ";", "i", "+", "+", ")", "{", "if", "(", "alphas", "=", "=", "null", "|", "|", "i", ">", "=", "alphas", "length", ")", "{", "apply", "pressed", "view", "alpha", "(", "views", "[", "i", "]", ",", "pressed", "view", "alpha", "default", "value", ")", ";", "}", "else", "{", "apply", "pressed", "view", "alpha", "(", "views", "[", "i", "]", ",", "alphas", "[", "i", "]", ")", ";", "}", "}", "}" ]
[ "has", "the", "job", "closed", "or", "not" ]
[ "public", "boolean", "is", "closed", "(", ")", "{", "return", "closed", ";", "}" ]
[ "convert", "the", "field", "type", "to", "a", "json", "string" ]
[ "string", "to", "string", "(", ")", ";" ]
[ "prepares", "the", "texture", "data", "for", "a", "call", "to", "{", "@", "link", "#", "consume", "pixmap", "(", ")", "}", "or", "{", "@", "link", "#", "consume", "custom", "data", "(", "int", ")", "}", "this", "method", "can", "be", "called", "from", "a", "non", "open", "g", "l", "thread", "and", "should", "thus", "not", "interact", "with", "open", "g", "l" ]
[ "public", "void", "prepare", "(", ")", ";" ]
[ "returns", "a", "name", "from", "the", "{", "@", "link", "name", "table", "}", "pertaining", "to", "the", "index", "argument" ]
[ "public", "string", "get", "name", "from", "name", "index", "(", "int", "index", ")", "{", "return", "name", "table", "get", "name", "from", "stream", "number", "(", "index", ")", ";", "}" ]
[ "return", "the", "output", "stream", "to", "use", "for", "writing", "remote", "invocations", ",", "potentially", "decorating", "the", "given", "original", "output", "stream", "the", "default", "implementation", "returns", "the", "given", "stream", "as", "-", "is", "can", "be", "overridden", ",", "for", "example", ",", "for", "custom", "encryption", "or", "compression" ]
[ "protected", "output", "stream", "decorate", "output", "stream", "(", "output", "stream", "os", ")", "throws", "i", "o", "exception", "{", "return", "os", ";", "}" ]
[ "returns", "the", "set", "of", "values", "that", "are", "contained", "in", "both", "this", "set", "and", "the", "other", "this", "method", "should", "always", "be", "used", "instead", "of", "{", "@", "link", "sets", "#", "intersection", "}", "for", "{", "@", "link", "contiguous", "set", "}", "instances" ]
[ "public", "abstract", "contiguous", "set", "<", "c", ">", "intersection", "(", "contiguous", "set", "<", "c", ">", "other", ")", ";" ]
[ "emit", "either", "a", "space", "or", "a", "newline", "character" ]
[ "void", "wrapping", "space", "(", "int", "indent", "level", ")", "throws", "i", "o", "exception", "{", "if", "(", "closed", ")", "throw", "new", "illegal", "state", "exception", "(", "\"", "closed", "\"", ")", ";", "if", "(", "this", "next", "flush", "!", "=", "null", ")", "flush", "(", "next", "flush", ")", ";", "column", "+", "+", ";", "/", "/", "increment", "the", "column", "even", "though", "the", "space", "is", "deferred", "to", "next", "call", "to", "flush", "(", ")", "this", "next", "flush", "=", "flush", "type", "space", ";", "this", "indent", "level", "=", "indent", "level", ";", "}" ]
[ "sets", "extra", "data" ]
[ "public", "void", "set", "extra", "data", "(", "string", "extra", "data", ")", "{", "this", "extra", "data", "=", "extra", "data", ";", "}" ]
[ "get", "name", "string" ]
[ "public", "string", "get", "name", "string", "(", ")", "{", "return", "name", "string", ";", "}" ]
[ "before", "the", "self", "model", "is", "saved", ",", "it", "will", "be", "analyzed", "first", "put", "all", "the", "data", "contained", "by", "the", "model", "into", "content", "values", ",", "including", "the", "fields", "value", "and", "foreign", "key", "value" ]
[ "private", "void", "before", "save", "(", "lite", "pal", "support", "base", "obj", ",", "list", "<", "field", ">", "supported", "fields", ",", "content", "values", "values", ")", "throws", "security", "exception", ",", "illegal", "argument", "exception", ",", "no", "such", "method", "exception", ",", "illegal", "access", "exception", ",", "invocation", "target", "exception", "{", "put", "fields", "value", "(", "base", "obj", ",", "supported", "fields", ",", "values", ")", ";", "put", "foreign", "key", "value", "(", "values", ",", "base", "obj", ")", ";", "}" ]
[ "sets", "the", "is", "wizard", "shown", "of", "this", "m", "t", "config", "object" ]
[ "public", "void", "set", "is", "wizard", "shown", "(", "final", "boolean", "is", "wizard", "shown", ")", "{", "this", "is", "wizard", "shown", "=", "is", "wizard", "shown", ";", "}" ]
[ "switch", "to", "the", "upload", "state", "and", "return", "a", "stream", "for", "uploading", "base", "class", "calls", "{", "@", "link", "#", "enter", "state", "(", "dest", "state", ",", "dest", "state", ")", "}", "to", "manage", "the", "state", "machine" ]
[ "object", "start", "upload", "(", ")", "throws", "i", "o", "exception", "{", "log", "debug", "(", "\"", "start", "datablock", "[", "{", "}", "]", "upload", "\"", ",", "index", ")", ";", "enter", "state", "(", "dest", "state", "writing", ",", "dest", "state", "upload", ")", ";", "return", "null", ";", "}" ]
[ "parse", "the", "given", "{", "@", "code", "text", "}", "into", "a", "{", "@", "link", "number", "}", "instance", "of", "the", "given", "target", "class", ",", "using", "the", "supplied", "{", "@", "link", "number", "format", "}", "trims", "the", "input", "{", "@", "code", "string", "}", "before", "attempting", "to", "parse", "the", "number" ]
[ "public", "static", "<", "t", "extends", "number", ">", "t", "parse", "number", "(", "string", "text", ",", "class", "<", "t", ">", "target", "class", ",", "@", "nullable", "number", "format", "number", "format", ")", "{", "if", "(", "number", "format", "!", "=", "null", ")", "{", "assert", "not", "null", "(", "text", ",", "\"", "text", "must", "not", "be", "null", "\"", ")", ";", "assert", "not", "null", "(", "target", "class", ",", "\"", "target", "class", "must", "not", "be", "null", "\"", ")", ";", "decimal", "format", "decimal", "format", "=", "null", ";", "boolean", "reset", "big", "decimal", "=", "false", ";", "if", "(", "number", "format", "instanceof", "decimal", "format", ")", "{", "decimal", "format", "=", "(", "decimal", "format", ")", "number", "format", ";", "if", "(", "big", "decimal", "class", "=", "=", "target", "class", "&", "&", "!", "decimal", "format", "is", "parse", "big", "decimal", "(", ")", ")", "{", "decimal", "format", "set", "parse", "big", "decimal", "(", "true", ")", ";", "reset", "big", "decimal", "=", "true", ";", "}", "}", "try", "{", "number", "number", "=", "number", "format", "parse", "(", "string", "utils", "trim", "all", "whitespace", "(", "text", ")", ")", ";", "return", "convert", "number", "to", "target", "class", "(", "number", ",", "target", "class", ")", ";", "}", "catch", "(", "parse", "exception", "ex", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "could", "not", "parse", "number", ":", "\"", "+", "ex", "get", "message", "(", ")", ")", ";", "}", "finally", "{", "if", "(", "reset", "big", "decimal", ")", "{", "decimal", "format", "set", "parse", "big", "decimal", "(", "false", ")", ";", "}", "}", "}", "else", "{", "return", "parse", "number", "(", "text", ",", "target", "class", ")", ";", "}", "}" ]
[ "backward", "compatibility", "-", "-", "it", "would", "backup", "static", "config", "file", "on", "bootup", "if", "users", "write", "dynamic", "configuration", "in", "\"", "zoo", "cfg", "\"" ]
[ "private", "void", "backup", "old", "config", "(", ")", "throws", "i", "o", "exception", "{", "new", "atomic", "file", "writing", "idiom", "(", "new", "file", "(", "config", "file", "str", "+", "\"", "bak", "\"", ")", ",", "new", "output", "stream", "statement", "(", ")", "{", "@", "override", "public", "void", "write", "(", "output", "stream", "output", ")", "throws", "i", "o", "exception", "{", "input", "stream", "input", "=", "null", ";", "try", "{", "input", "=", "new", "file", "input", "stream", "(", "new", "file", "(", "config", "file", "str", ")", ")", ";", "byte", "[", "]", "buf", "=", "new", "byte", "[", "1024", "]", ";", "int", "bytes", "read", ";", "while", "(", "(", "bytes", "read", "=", "input", "read", "(", "buf", ")", ")", ">", "0", ")", "{", "output", "write", "(", "buf", ",", "0", ",", "bytes", "read", ")", ";", "}", "}", "finally", "{", "if", "(", "input", "!", "=", "null", ")", "{", "input", "close", "(", ")", ";", "}", "}", "}", "}", ")", ";", "}" ]
[ "initialize", "the", "bodies", ",", "anchors", ",", "and", "reference", "angle", "using", "the", "world", "anchor" ]
[ "public", "void", "initialize", "(", "final", "body", "b", "1", ",", "final", "body", "b", "2", ",", "final", "vec", "2", "anchor", ")", "{", "body", "a", "=", "b", "1", ";", "body", "b", "=", "b", "2", ";", "body", "a", "get", "local", "point", "to", "out", "(", "anchor", ",", "local", "anchor", "a", ")", ";", "body", "b", "get", "local", "point", "to", "out", "(", "anchor", ",", "local", "anchor", "b", ")", ";", "reference", "angle", "=", "body", "b", "get", "angle", "(", ")", "-", "body", "a", "get", "angle", "(", ")", ";", "}" ]
[ "mount", "only", "similar", "shape", "to", "render", "core", "'", "s", "mount", "for", "extras", "such", "as", "incremental", "mount", ",", "visibility", "outputs", "etc", "register", "an", "extension", "to", "do", ":", "extract", "transitions", "logic", "from", "here" ]
[ "void", "mount", "(", "layout", "state", "layout", "state", ",", "boolean", "process", "visibility", "outputs", ")", "{", "assert", "main", "thread", "(", ")", ";", "if", "(", "layout", "state", "=", "=", "null", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "trying", "to", "mount", "a", "null", "layout", "state", "\"", ")", ";", "}", "m", "layout", "state", "=", "layout", "state", ";", "if", "(", "m", "is", "mounting", ")", "{", "components", "reporter", "emit", "message", "(", "components", "reporter", "log", "level", "fatal", ",", "invalid", "reentrant", "mounts", ",", "\"", "trying", "to", "mount", "while", "already", "mounting", "!", "\"", "+", "get", "mount", "item", "debug", "message", "(", "m", "root", "host", "mount", "item", ")", ")", ";", "}", "m", "is", "mounting", "=", "true", ";", "final", "component", "tree", "component", "tree", "=", "m", "litho", "view", "get", "component", "tree", "(", ")", ";", "final", "boolean", "is", "tracing", "=", "components", "systrace", "is", "tracing", "(", ")", ";", "if", "(", "is", "tracing", ")", "{", "components", "systrace", "begin", "section", "with", "args", "(", "\"", "mount", "\"", ")", "arg", "(", "\"", "tree", "id", "\"", ",", "layout", "state", "get", "component", "tree", "id", "(", ")", ")", "arg", "(", "\"", "component", "\"", ",", "component", "tree", "get", "simple", "name", "(", ")", ")", "arg", "(", "\"", "log", "tag", "\"", ",", "component", "tree", "get", "context", "(", ")", "get", "log", "tag", "(", ")", ")", "flush", "(", ")", ";", "}", "final", "components", "logger", "logger", "=", "component", "tree", "get", "context", "(", ")", "get", "logger", "(", ")", ";", "final", "int", "component", "tree", "id", "=", "layout", "state", "get", "component", "tree", "id", "(", ")", ";", "if", "(", "component", "tree", "id", "!", "=", "m", "last", "mounted", "component", "tree", "id", ")", "{", "/", "/", "if", "we", "'", "re", "mounting", "a", "new", "component", "tree", ",", "don", "'", "t", "keep", "around", "and", "use", "the", "previous", "layout", "state", "/", "/", "since", "things", "like", "transition", "animations", "aren", "'", "t", "relevant", "m", "last", "mounted", "layout", "state", "=", "null", ";", "}", "final", "perf", "event", "mount", "perf", "event", "=", "logger", "=", "=", "null", "?", "null", ":", "log", "tree", "populator", "populate", "perf", "event", "from", "logger", "(", "component", "tree", "get", "context", "(", ")", ",", "logger", ",", "logger", "new", "performance", "event", "(", "component", "tree", "get", "context", "(", ")", ",", "event", "mount", ")", ")", ";", "/", "/", "prepare", "the", "data", "structure", "for", "the", "new", "layout", "state", "and", "removes", "mount", "items", "/", "/", "that", "are", "not", "present", "anymore", "if", "is", "update", "mount", "in", "place", "is", "enabled", "if", "(", "mount", "perf", "event", "!", "=", "null", ")", "{", "mount", "perf", "event", "marker", "point", "(", "\"", "prepare", "mount", "start", "\"", ")", ";", "}", "prepare", "mount", "(", "layout", "state", ",", "mount", "perf", "event", ")", ";", "if", "(", "mount", "perf", "event", "!", "=", "null", ")", "{", "mount", "perf", "event", "marker", "point", "(", "\"", "prepare", "mount", "end", "\"", ")", ";", "}", "m", "mount", "stats", "reset", "(", ")", ";", "if", "(", "mount", "perf", "event", "!", "=", "null", "&", "&", "logger", "is", "tracing", "(", "mount", "perf", "event", ")", ")", "{", "m", "mount", "stats", "enable", "logging", "(", ")", ";", "}", "for", "(", "int", "i", "=", "0", ",", "size", "=", "layout", "state", "get", "mountable", "output", "count", "(", ")", ";", "i", "<", "size", ";", "i", "+", "+", ")", "{", "final", "render", "tree", "node", "render", "tree", "node", "=", "layout", "state", "get", "mountable", "output", "at", "(", "i", ")", ";", "final", "layout", "output", "layout", "output", "=", "get", "layout", "output", "(", "render", "tree", "node", ")", ";", "final", "component", "component", "=", "layout", "output", "get", "component", "(", ")", ";", "if", "(", "is", "tracing", ")", "{", "components", "systrace", "begin", "section", "(", "component", "get", "simple", "name", "(", ")", ")", ";", "}", "final", "mount", "item", "current", "mount", "item", "=", "get", "item", "at", "(", "i", ")", ";", "final", "boolean", "is", "mounted", "=", "current", "mount", "item", "!", "=", "null", ";", "final", "boolean", "is", "mountable", "=", "is", "mountable", "(", "render", "tree", "node", ",", "i", ")", ";", "if", "(", "!", "is", "mountable", ")", "{", "if", "(", "is", "mounted", ")", "{", "unmount", "item", "(", "i", ",", "m", "hosts", "by", "marker", ")", ";", "}", "}", "else", "if", "(", "!", "is", "mounted", ")", "{", "mount", "layout", "output", "(", "i", ",", "render", "tree", "node", ",", "layout", "output", ",", "layout", "state", ")", ";", "apply", "mount", "binders", "(", "layout", "output", ",", "get", "item", "at", "(", "i", ")", ",", "i", ")", ";", "}", "else", "{", "final", "boolean", "use", "update", "value", "from", "layout", "output", "=", "m", "last", "mounted", "layout", "state", "!", "=", "null", "&", "&", "m", "last", "mounted", "layout", "state", "get", "id", "(", ")", "=", "=", "layout", "state", "get", "previous", "layout", "state", "id", "(", ")", ";", "final", "long", "start", "time", "=", "system", "nano", "time", "(", ")", ";", "final", "boolean", "item", "updated", "=", "update", "mount", "item", "if", "needed", "(", "render", "tree", "node", ",", "current", "mount", "item", ",", "use", "update", "value", "from", "layout", "output", ",", "component", "tree", "id", ",", "i", ")", ";", "if", "(", "m", "mount", "stats", "is", "logging", "enabled", ")", "{", "if", "(", "item", "updated", ")", "{", "m", "mount", "stats", "updated", "names", "add", "(", "component", "get", "simple", "name", "(", ")", ")", ";", "m", "mount", "stats", "updated", "times", "add", "(", "(", "system", "nano", "time", "(", ")", "-", "start", "time", ")", "/", "ns", "in", "ms", ")", ";", "m", "mount", "stats", "updated", "count", "+", "+", ";", "}", "else", "{", "m", "mount", "stats", "no", "op", "count", "+", "+", ";", "}", "}", "apply", "bind", "binders", "(", "current", "mount", "item", ")", ";", "}", "if", "(", "is", "tracing", ")", "{", "components", "systrace", "end", "section", "(", ")", ";", "}", "}", "final", "boolean", "was", "dirty", "=", "m", "is", "dirty", ";", "m", "is", "dirty", "=", "false", ";", "m", "needs", "remount", "=", "false", ";", "m", "is", "first", "mount", "of", "component", "tree", "=", "false", ";", "m", "last", "mounted", "layout", "state", "=", "null", ";", "m", "last", "mounted", "component", "tree", "id", "=", "component", "tree", "id", ";", "m", "last", "mounted", "layout", "state", "=", "layout", "state", ";", "if", "(", "mount", "perf", "event", "!", "=", "null", ")", "{", "log", "mount", "perf", "event", "(", "logger", ",", "mount", "perf", "event", ",", "was", "dirty", ")", ";", "}", "if", "(", "is", "tracing", ")", "{", "components", "systrace", "end", "section", "(", ")", ";", "}", "litho", "stats", "increment", "component", "mount", "count", "(", ")", ";", "m", "is", "mounting", "=", "false", ";", "}" ]
[ "ask", "the", "remote", "zkfc", "to", "cede", "its", "active", "status", "and", "wait", "for", "the", "specified", "timeout", "before", "attempting", "to", "claim", "leader", "status" ]
[ "private", "z", "k", "f", "c", "protocol", "cede", "remote", "active", "(", "h", "a", "service", "target", "remote", ",", "int", "timeout", ")", "throws", "i", "o", "exception", "{", "log", "info", "(", "\"", "asking", "\"", "+", "remote", "+", "\"", "to", "cede", "its", "active", "state", "for", "\"", "+", "timeout", "+", "\"", "ms", "\"", ")", ";", "z", "k", "f", "c", "protocol", "old", "zkfc", "=", "remote", "get", "z", "k", "f", "c", "proxy", "(", "conf", ",", "timeout", ")", ";", "old", "zkfc", "cede", "active", "(", "timeout", ")", ";", "return", "old", "zkfc", ";", "}" ]
[ "the", "analysis", "options", "object" ]
[ "public", "analysis", "limits", "get", "analysis", "limits", "(", ")", "{", "return", "analysis", "limits", ";", "}" ]
[ "@", "note", "if", "count", "is", "negative", ",", "the", "value", "of", "the", "aggregation", "will", "be", "null", ";", "if", "count", "is", "0", ",", "this", "is", "a", "no", "-", "op", "(", "since", ",", "in", "the", "context", "of", "entropy", ",", "0", "log", "(", "0", ")", "=", "0", ";", "if", "count", "is", "null", ",", "this", "is", "a", "no", "op" ]
[ "public", "static", "void", "input", "(", "@", "aggregation", "state", "entropy", "state", "state", ",", "@", "sql", "type", "(", "standard", "types", "bigint", ")", "long", "count", ")", "{", "if", "(", "count", "<", "0", ")", "{", "throw", "new", "presto", "exception", "(", "invalid", "function", "argument", ",", "\"", "entropy", "count", "argument", "must", "be", "non", "-", "negative", "\"", ")", ";", "}", "if", "(", "count", "=", "=", "0", ")", "{", "return", ";", "}", "state", "set", "sum", "c", "(", "state", "get", "sum", "c", "(", ")", "+", "count", ")", ";", "state", "set", "sum", "c", "log", "c", "(", "state", "get", "sum", "c", "log", "c", "(", ")", "+", "count", "*", "math", "log", "(", "count", ")", ")", ";", "}" ]
[ "ensures", "that", "the", "argument", "expression", "is", "true" ]
[ "static", "void", "require", "argument", "(", "boolean", "expression", ",", "string", "template", ",", "@", "nullable", "object", "args", ")", "{", "if", "(", "!", "expression", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "string", "format", "(", "template", ",", "args", ")", ")", ";", "}", "}" ]
[ "interrupt", "the", "execution", ",", "but", "instead", "of", "marking", "the", "build", "as", "aborted", ",", "mark", "it", "as", "specified", "result" ]
[ "public", "void", "interrupt", "(", "result", "result", ")", "{", "interrupt", "(", "result", ",", "false", ")", ";", "}" ]
[ "disabled", "the", "filter", "text", "field", ",", "but", "allows", "the", "tree", "to", "still", "filter", "this", "is", "useful", "if", "you", "want", "to", "allow", "programmatic", "filtering", ",", "but", "to", "not", "allow", "the", "user", "to", "filter" ]
[ "public", "void", "set", "filter", "field", "enabled", "(", "boolean", "enabled", ")", "{", "filter", "provider", "set", "enabled", "(", "enabled", ")", ";", "}" ]
[ "specifies", "whether", "the", "graph", "will", "allow", "self", "-", "loops", "(", "edges", "that", "connect", "a", "node", "to", "itself", ")", "attempting", "to", "add", "a", "self", "-", "loop", "to", "a", "graph", "that", "does", "not", "allow", "them", "will", "throw", "an", "{", "@", "link", "unsupported", "operation", "exception", "}", "the", "default", "value", "is", "{", "@", "code", "false", "}" ]
[ "public", "value", "graph", "builder", "<", "n", ",", "v", ">", "allows", "self", "loops", "(", "boolean", "allows", "self", "loops", ")", "{", "this", "allows", "self", "loops", "=", "allows", "self", "loops", ";", "return", "this", ";", "}" ]
[ "return", "true", "if", "the", "state", "moves", "from", "the", "index", "existing", "to", "the", "index", "not", "existing" ]
[ "public", "static", "boolean", "is", "index", "deleted", "(", "state", "previous", "state", ",", "state", "current", "state", ")", "{", "return", "previous", "state", "index", "health", "!", "=", "null", "&", "&", "current", "state", "index", "health", "=", "=", "null", ";", "}" ]
[ "close", "the", "given", "jms", "queue", "browser", "and", "ignore", "any", "thrown", "exception", "this", "is", "useful", "for", "typical", "{", "@", "code", "finally", "}", "blocks", "in", "manual", "jms", "code" ]
[ "public", "static", "void", "close", "queue", "browser", "(", "@", "nullable", "queue", "browser", "browser", ")", "{", "if", "(", "browser", "!", "=", "null", ")", "{", "try", "{", "browser", "close", "(", ")", ";", "}", "catch", "(", "j", "m", "s", "exception", "ex", ")", "{", "logger", "trace", "(", "\"", "could", "not", "close", "jms", "queue", "browser", "\"", ",", "ex", ")", ";", "}", "catch", "(", "throwable", "ex", ")", "{", "/", "/", "we", "don", "'", "t", "trust", "the", "jms", "provider", ":", "it", "might", "throw", "runtime", "exception", "or", "error", "logger", "trace", "(", "\"", "unexpected", "exception", "on", "closing", "jms", "queue", "browser", "\"", ",", "ex", ")", ";", "}", "}", "}" ]
[ "determines", "the", "full", "path", "name", "for", "the", "composite", "data", "type", "based", "on", "the", "original", "composite", "and", "original", "category" ]
[ "public", "final", "data", "type", "path", "get", "original", "data", "type", "path", "(", ")", "{", "return", "original", "data", "type", "path", ";", "}" ]
[ "handle", "deserialization", "of", "the", "'", "null", "'", "value" ]
[ "public", "fruit", "get", "null", "value", "(", "deserialization", "context", "ctxt", ")", "throws", "json", "mapping", "exception", "{", "throw", "new", "json", "mapping", "exception", "(", "ctxt", "get", "parser", "(", ")", ",", "\"", "fruit", "cannot", "be", "null", "\"", ")", ";", "}" ]
[ "increase", "the", "number", "of", "partitions", "of", "the", "topics", "given", "as", "the", "keys", "of", "{", "@", "code", "new", "partitions", "}", "according", "to", "the", "corresponding", "values", "if", "partitions", "are", "increased", "for", "a", "topic", "that", "has", "a", "key", ",", "the", "partition", "logic", "or", "ordering", "of", "the", "messages", "will", "be", "affected", "this", "operation", "is", "not", "transactional", "so", "it", "may", "succeed", "for", "some", "topics", "while", "fail", "for", "others", "it", "may", "take", "several", "seconds", "after", "this", "method", "returns", "success", "for", "all", "the", "brokers", "to", "become", "aware", "that", "the", "partitions", "have", "been", "created", "during", "this", "time", ",", "{", "@", "link", "#", "describe", "topics", "(", "collection", ")", "}", "may", "not", "return", "information", "about", "the", "new", "partitions", "this", "operation", "is", "supported", "by", "brokers", "with", "version", "1", "0", "0", "or", "higher", "the", "following", "exceptions", "can", "be", "anticipated", "when", "calling", "{", "@", "code", "get", "(", ")", "}", "on", "the", "futures", "obtained", "from", "the", "{", "@", "link", "create", "partitions", "result", "#", "values", "(", ")", "values", "(", ")", "}", "method", "of", "the", "returned", "{", "@", "link", "create", "partitions", "result", "}", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "authorization", "exception", "}", "if", "the", "authenticated", "user", "is", "not", "authorized", "to", "alter", "the", "topic", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "timeout", "exception", "}", "if", "the", "request", "was", "not", "completed", "in", "within", "the", "given", "{", "@", "link", "create", "partitions", "options", "#", "timeout", "ms", "(", ")", "}", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "reassignment", "in", "progress", "exception", "}", "if", "a", "partition", "reassignment", "is", "currently", "in", "progress", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "broker", "not", "available", "exception", "}", "if", "the", "requested", "{", "@", "link", "new", "partitions", "#", "assignments", "(", ")", "}", "contain", "a", "broker", "that", "is", "currently", "unavailable", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "invalid", "replication", "factor", "exception", "}", "if", "no", "{", "@", "link", "new", "partitions", "#", "assignments", "(", ")", "}", "are", "given", "and", "it", "is", "impossible", "for", "the", "broker", "to", "assign", "replicas", "with", "the", "topics", "replication", "factor", "subclasses", "of", "{", "@", "link", "org", "apache", "kafka", "common", "kafka", "exception", "}", "if", "the", "request", "is", "invalid", "in", "some", "way" ]
[ "create", "partitions", "result", "create", "partitions", "(", "map", "<", "string", ",", "new", "partitions", ">", "new", "partitions", ",", "create", "partitions", "options", "options", ")", ";" ]
[ "test", "the", "property", "'", "prefix", "boolean", "'" ]
[ "public", "void", "prefix", "boolean", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "prefix", "boolean", "}" ]
[ "returns", "the", "{", "@", "link", "async", "task", "}", "if", "the", "provided", "<", "code", ">", "async", "task", "id", "<", "code", ">", "is", "registered", "in", "the", "task", "manager", ",", "<", "code", ">", "null", "<", "code", ">", "otherwise", "this", "method", "throws", "a", "{", "@", "link", "resource", "not", "found", "exception", "}", "if", "the", "authenticated", "user", "is", "not", "the", "creator", "of", "the", "original", "task" ]
[ "public", "<", "t", "extends", "async", "task", ">", "t", "get", "task", "(", "task", "manager", "task", "manager", ",", "async", "execution", "id", "async", "execution", "id", ",", "class", "<", "t", ">", "t", "class", ")", "throws", "i", "o", "exception", "{", "task", "task", "=", "task", "manager", "get", "task", "(", "async", "execution", "id", "get", "task", "id", "(", ")", "get", "id", "(", ")", ")", ";", "if", "(", "t", "class", "is", "instance", "(", "task", ")", "=", "=", "false", ")", "{", "return", "null", ";", "}", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "t", "async", "task", "=", "(", "t", ")", "task", ";", "if", "(", "async", "task", "get", "execution", "id", "(", ")", "equals", "(", "async", "execution", "id", ")", "=", "=", "false", ")", "{", "return", "null", ";", "}", "/", "/", "check", "authentication", "for", "the", "user", "final", "authentication", "auth", "=", "security", "context", "get", "authentication", "(", ")", ";", "if", "(", "ensure", "authenticated", "user", "is", "same", "(", "async", "task", "get", "origin", "headers", "(", ")", ",", "auth", ")", "=", "=", "false", ")", "{", "throw", "new", "resource", "not", "found", "exception", "(", "async", "execution", "id", "get", "encoded", "(", ")", "+", "\"", "not", "found", "\"", ")", ";", "}", "return", "async", "task", ";", "}" ]
[ "iterates", "the", "set" ]
[ "int", "iterator", "iterator", "(", ")", ";" ]
[ "removes", "the", "mapping", "for", "the", "composite", "of", "active", "key", "and", "given", "namespace", ",", "returning", "the", "state", "that", "was", "found", "under", "the", "entry" ]
[ "public", "abstract", "s", "remove", "and", "get", "old", "(", "k", "key", ",", "n", "namespace", ")", ";" ]
[ "creates", "a", "string", "containing", "html", "tags", "to", "represent", "the", "address", "in", "color" ]
[ "public", "static", "string", "get", "address", "string", "(", "address", "address", ",", "boolean", "show", "address", "space", ")", "{", "return", "color", "string", "(", "address", "color", ",", "(", "(", "address", "!", "=", "null", ")", "?", "h", "t", "m", "l", "utilities", "escape", "h", "t", "m", "l", "(", "address", "to", "string", "(", "show", "address", "space", ")", ")", ":", "\"", "\"", ")", ")", ";", "}" ]
[ "this", "method", "has", "to", "exist", "because", "{", "@", "link", "alias", "configured", "target", "#", "get", "label", "(", ")", "}", "returns", "the", "label", "of", "the", "\"", "actual", "\"", "target", "instead", "of", "the", "alias", "target", "grr" ]
[ "public", "label", "get", "correct", "label", "(", "keyed", "configured", "target", "target", ")", "{", "/", "/", "dereference", "any", "aliases", "that", "might", "be", "present", "return", "target", "get", "configured", "target", "(", ")", "get", "original", "label", "(", ")", ";", "}" ]
[ "specify", "the", "set", "of", "cache", "names", "for", "this", "cache", "manager", "'", "s", "'", "static", "'", "mode", "the", "number", "of", "caches", "and", "their", "names", "will", "be", "fixed", "after", "a", "call", "to", "this", "method", ",", "with", "no", "creation", "of", "further", "cache", "regions", "at", "runtime", "calling", "this", "with", "a", "{", "@", "code", "null", "}", "collection", "argument", "resets", "the", "mode", "to", "'", "dynamic", "'", ",", "allowing", "for", "further", "creation", "of", "caches", "again" ]
[ "public", "void", "set", "cache", "names", "(", "@", "nullable", "collection", "<", "string", ">", "cache", "names", ")", "{", "if", "(", "cache", "names", "!", "=", "null", ")", "{", "for", "(", "string", "name", ":", "cache", "names", ")", "{", "this", "cache", "map", "put", "(", "name", ",", "create", "concurrent", "map", "cache", "(", "name", ")", ")", ";", "}", "this", "dynamic", "=", "false", ";", "}", "else", "{", "this", "dynamic", "=", "true", ";", "}", "}" ]
[ "process", "any", "additional", "records", "indicated", "for", "both", "the", "answer", "and", "authority", "sections", "of", "the", "response" ]
[ "private", "void", "add", "additional", "(", "message", "response", ",", "int", "flags", ")", "{", "add", "additional", "2", "(", "response", ",", "section", "answer", ",", "flags", ")", ";", "add", "additional", "2", "(", "response", ",", "section", "authority", ",", "flags", ")", ";", "}" ]
[ "returns", "the", "array", "of", "names", "defined", "in", "the", "non", "-", "resident", "name", "table" ]
[ "public", "length", "string", "ordinal", "set", "[", "]", "get", "names", "(", ")", "{", "return", "names", ";", "}" ]
[ "add", "the", "id", "of", "an", "associated", "model", "into", "self", "model", "'", "s", "associated", "ids", "with", "f", "k", "map", "the", "associated", "model", "has", "a", "foreign", "key", "column", "in", "the", "corresponding", "table" ]
[ "void", "add", "associated", "model", "with", "f", "k", "(", "string", "associated", "table", "name", ",", "long", "associated", "id", ")", "{", "set", "<", "long", ">", "associated", "ids", "with", "f", "k", "set", "=", "get", "associated", "models", "map", "with", "f", "k", "(", ")", "get", "(", "associated", "table", "name", ")", ";", "if", "(", "associated", "ids", "with", "f", "k", "set", "=", "=", "null", ")", "{", "associated", "ids", "with", "f", "k", "set", "=", "new", "hash", "set", "<", "long", ">", "(", ")", ";", "associated", "ids", "with", "f", "k", "set", "add", "(", "associated", "id", ")", ";", "associated", "models", "map", "with", "f", "k", "put", "(", "associated", "table", "name", ",", "associated", "ids", "with", "f", "k", "set", ")", ";", "}", "else", "{", "associated", "ids", "with", "f", "k", "set", "add", "(", "associated", "id", ")", ";", "}", "}" ]
[ "returns", "the", "internal", "directory", "(", "used", "for", "middlemen", ")", "for", "this", "build", "configuration" ]
[ "artifact", "root", "get", "middleman", "directory", "(", "repository", "name", "repository", "name", ")", "{", "return", "sibling", "repository", "layout", "?", "build", "middleman", "root", "(", "repository", "name", ")", ":", "middleman", "directory", ";", "}" ]
[ "returns", "true", "iff", "this", "file", "has", "its", "\"", "set", "uid", "\"", "bit", "set" ]
[ "public", "boolean", "is", "set", "user", "id", "(", ")", "{", "return", "(", "st", "mode", "&", "s", "isuid", ")", "!", "=", "0", ";", "}" ]
[ "rebind", "cas", "configuration", "properties" ]
[ "public", "static", "void", "rebind", "cas", "configuration", "properties", "(", "final", "configuration", "properties", "binding", "post", "processor", "binder", ",", "final", "application", "context", "application", "context", ")", "{", "val", "map", "=", "application", "context", "get", "beans", "of", "type", "(", "cas", "configuration", "properties", "class", ")", ";", "val", "name", "=", "map", "key", "set", "(", ")", "iterator", "(", ")", "next", "(", ")", ";", "logger", "trace", "(", "\"", "reloading", "cas", "configuration", "via", "[", "{", "}", "]", "\"", ",", "name", ")", ";", "val", "e", "=", "application", "context", "get", "bean", "(", "name", ")", ";", "binder", "post", "process", "before", "initialization", "(", "e", ",", "name", ")", ";", "val", "bean", "=", "application", "context", "get", "autowire", "capable", "bean", "factory", "(", ")", "initialize", "bean", "(", "e", ",", "name", ")", ";", "application", "context", "get", "autowire", "capable", "bean", "factory", "(", ")", "autowire", "bean", "(", "bean", ")", ";", "logger", "debug", "(", "\"", "reloaded", "cas", "configuration", "[", "{", "}", "]", "\"", ",", "name", ")", ";", "}" ]
[ "return", "the", "map", "of", "custom", "editors", ",", "with", "classes", "as", "keys", "and", "property", "editor", "classes", "as", "values" ]
[ "public", "map", "<", "class", "<", "?", ">", ",", "class", "<", "?", "extends", "property", "editor", ">", ">", "get", "custom", "editors", "(", ")", "{", "return", "this", "custom", "editors", ";", "}" ]
[ "adds", "each", "member", "of", "{", "@", "code", "elements", "}", "as", "a", "candidate", "for", "the", "top", "{", "@", "code", "k", "}", "elements", "this", "operation", "takes", "amortized", "linear", "time", "in", "the", "length", "of", "{", "@", "code", "elements", "}", "the", "iterator", "is", "consumed", "after", "this", "operation", "completes", "if", "all", "input", "data", "to", "this", "{", "@", "code", "top", "k", "selector", "}", "is", "in", "a", "single", "{", "@", "code", "iterator", "}", ",", "prefer", "{", "@", "link", "ordering", "#", "least", "of", "(", "iterator", ",", "int", ")", "}", ",", "which", "provides", "a", "simpler", "api", "for", "that", "use", "case" ]
[ "public", "void", "offer", "all", "(", "iterator", "<", "?", "extends", "t", ">", "elements", ")", "{", "while", "(", "elements", "has", "next", "(", ")", ")", "{", "offer", "(", "elements", "next", "(", ")", ")", ";", "}", "}" ]
[ "return", "the", "(", "always", "non", "-", "null", "but", "possibly", "empty", ")", "network", "receive", "response", "that", "arrived", "during", "re", "-", "authentication", "that", "is", "unrelated", "to", "re", "-", "authentication", ",", "if", "any", "this", "corresponds", "to", "a", "request", "sent", "prior", "to", "the", "beginning", "of", "re", "-", "authentication", ";", "the", "request", "was", "made", "when", "the", "channel", "was", "successfully", "authenticated", ",", "and", "the", "response", "arrived", "during", "the", "re", "-", "authentication", "process" ]
[ "public", "optional", "<", "network", "receive", ">", "poll", "response", "received", "during", "reauthentication", "(", ")", "{", "if", "(", "pending", "authenticated", "receives", "is", "empty", "(", ")", ")", "return", "optional", "empty", "(", ")", ";", "return", "optional", "of", "(", "pending", "authenticated", "receives", "remove", "(", "0", ")", ")", ";", "}" ]
[ "test", "various", "configuration", "options", "of", "dfs", "namenode", "name", "dir", "and", "dfs", "namenode", "edits", "dir", "this", "test", "tries", "to", "simulate", "failure", "scenarios", "1", "start", "cluster", "with", "shared", "name", "and", "edits", "dir", "2", "restart", "cluster", "by", "adding", "separate", "name", "and", "edits", "dirs", "3", "restart", "cluster", "by", "removing", "shared", "name", "and", "edits", "dir", "4", "restart", "cluster", "with", "old", "shared", "name", "and", "edits", "dir", ",", "but", "only", "latest", "name", "dir", "this", "should", "fail", "since", "we", "don", "'", "t", "have", "latest", "edits", "dir", "5", "restart", "cluster", "with", "old", "shared", "name", "and", "edits", "dir", ",", "but", "only", "latest", "edits", "dir", "this", "should", "succeed", "since", "the", "latest", "edits", "will", "have", "segments", "leading", "all", "the", "way", "from", "the", "image", "in", "name", "and", "edits" ]
[ "public", "void", "test", "name", "edits", "configs", "failure", "(", ")", "throws", "i", "o", "exception", "{", "path", "file", "1", "=", "new", "path", "(", "\"", "test", "name", "edits", "configs", "1", "\"", ")", ";", "path", "file", "2", "=", "new", "path", "(", "\"", "test", "name", "edits", "configs", "2", "\"", ")", ";", "path", "file", "3", "=", "new", "path", "(", "\"", "test", "name", "edits", "configs", "3", "\"", ")", ";", "mini", "d", "f", "s", "cluster", "cluster", "=", "null", ";", "configuration", "conf", "=", "null", ";", "file", "system", "file", "sys", "=", "null", ";", "file", "name", "only", "dir", "=", "new", "file", "(", "base", "dir", ",", "\"", "name", "\"", ")", ";", "file", "edits", "only", "dir", "=", "new", "file", "(", "base", "dir", ",", "\"", "edits", "\"", ")", ";", "file", "name", "and", "edits", "dir", "=", "new", "file", "(", "base", "dir", ",", "\"", "name", "and", "edits", "\"", ")", ";", "/", "/", "1", "/", "/", "start", "namenode", "with", "same", "dfs", "namenode", "name", "dir", "and", "dfs", "namenode", "edits", "dir", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "name", "dir", "key", ",", "name", "and", "edits", "dir", "get", "path", "(", ")", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "edits", "dir", "key", ",", "name", "and", "edits", "dir", "get", "path", "(", ")", ")", ";", "replication", "=", "(", "short", ")", "conf", "get", "int", "(", "d", "f", "s", "config", "keys", "dfs", "replication", "key", ",", "3", ")", ";", "try", "{", "/", "/", "manage", "our", "own", "dfs", "directories", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "manage", "name", "dfs", "dirs", "(", "false", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "/", "/", "check", "that", "the", "dir", "has", "a", "version", "file", "assert", "true", "(", "new", "file", "(", "name", "and", "edits", "dir", ",", "\"", "current", "/", "version", "\"", ")", "exists", "(", ")", ")", ";", "file", "sys", "=", "cluster", "get", "file", "system", "(", ")", ";", "assert", "true", "(", "!", "file", "sys", "exists", "(", "file", "1", ")", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "file", "sys", ",", "file", "1", ",", "file", "size", ",", "file", "size", ",", "block", "size", ",", "replication", ",", "seed", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "1", ",", "replication", ")", ";", "}", "finally", "{", "file", "sys", "close", "(", ")", ";", "cluster", "shutdown", "(", ")", ";", "}", "/", "/", "2", "/", "/", "start", "namenode", "with", "additional", "dfs", "namenode", "name", "dir", "and", "dfs", "namenode", "edits", "dir", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "assert", "true", "(", "name", "only", "dir", "mkdir", "(", ")", ")", ";", "assert", "true", "(", "edits", "only", "dir", "mkdir", "(", ")", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "name", "dir", "key", ",", "name", "and", "edits", "dir", "get", "path", "(", ")", "+", "\"", ",", "\"", "+", "name", "only", "dir", "get", "path", "(", ")", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "edits", "dir", "key", ",", "name", "and", "edits", "dir", "get", "path", "(", ")", "+", "\"", ",", "\"", "+", "edits", "only", "dir", "get", "path", "(", ")", ")", ";", "replication", "=", "(", "short", ")", "conf", "get", "int", "(", "d", "f", "s", "config", "keys", "dfs", "replication", "key", ",", "3", ")", ";", "try", "{", "/", "/", "manage", "our", "own", "dfs", "directories", "do", "not", "format", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "format", "(", "false", ")", "manage", "name", "dfs", "dirs", "(", "false", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "/", "/", "check", "that", "the", "dirs", "have", "a", "version", "file", "assert", "true", "(", "new", "file", "(", "name", "and", "edits", "dir", ",", "\"", "current", "/", "version", "\"", ")", "exists", "(", ")", ")", ";", "assert", "true", "(", "new", "file", "(", "name", "only", "dir", ",", "\"", "current", "/", "version", "\"", ")", "exists", "(", ")", ")", ";", "assert", "true", "(", "new", "file", "(", "edits", "only", "dir", ",", "\"", "current", "/", "version", "\"", ")", "exists", "(", ")", ")", ";", "file", "sys", "=", "cluster", "get", "file", "system", "(", ")", ";", "assert", "true", "(", "file", "sys", "exists", "(", "file", "1", ")", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "1", ",", "replication", ")", ";", "cleanup", "file", "(", "file", "sys", ",", "file", "1", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "file", "sys", ",", "file", "2", ",", "file", "size", ",", "file", "size", ",", "block", "size", ",", "replication", ",", "seed", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "2", ",", "replication", ")", ";", "}", "finally", "{", "file", "sys", "close", "(", ")", ";", "cluster", "shutdown", "(", ")", ";", "}", "/", "/", "3", "/", "/", "now", "remove", "common", "directory", "both", "have", "and", "start", "namenode", "with", "/", "/", "separate", "name", "and", "edits", "dirs", "try", "{", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "name", "dir", "key", ",", "name", "only", "dir", "get", "path", "(", ")", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "edits", "dir", "key", ",", "edits", "only", "dir", "get", "path", "(", ")", ")", ";", "replication", "=", "(", "short", ")", "conf", "get", "int", "(", "d", "f", "s", "config", "keys", "dfs", "replication", "key", ",", "3", ")", ";", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "format", "(", "false", ")", "manage", "name", "dfs", "dirs", "(", "false", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "file", "sys", "=", "cluster", "get", "file", "system", "(", ")", ";", "assert", "false", "(", "file", "sys", "exists", "(", "file", "1", ")", ")", ";", "assert", "true", "(", "file", "sys", "exists", "(", "file", "2", ")", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "2", ",", "replication", ")", ";", "cleanup", "file", "(", "file", "sys", ",", "file", "2", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "file", "sys", ",", "file", "3", ",", "file", "size", ",", "file", "size", ",", "block", "size", ",", "replication", ",", "seed", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "3", ",", "replication", ")", ";", "}", "finally", "{", "file", "sys", "close", "(", ")", ";", "cluster", "shutdown", "(", ")", ";", "}", "/", "/", "4", "/", "/", "add", "old", "shared", "directory", "for", "name", "and", "edits", "along", "with", "latest", "name", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "name", "dir", "key", ",", "name", "only", "dir", "get", "path", "(", ")", "+", "\"", ",", "\"", "+", "name", "and", "edits", "dir", "get", "path", "(", ")", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "edits", "dir", "key", ",", "name", "and", "edits", "dir", "get", "path", "(", ")", ")", ";", "replication", "=", "(", "short", ")", "conf", "get", "int", "(", "d", "f", "s", "config", "keys", "dfs", "replication", "key", ",", "3", ")", ";", "try", "{", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "format", "(", "false", ")", "manage", "name", "dfs", "dirs", "(", "false", ")", "build", "(", ")", ";", "fail", "(", "\"", "successfully", "started", "cluster", "but", "should", "not", "have", "been", "able", "to", "\"", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "/", "/", "expect", "to", "fail", "log", "info", "(", "\"", "expected", ":", "cluster", "start", "failed", "due", "to", "missing", "\"", "+", "\"", "latest", "edits", "dir", "\"", ",", "e", ")", ";", "}", "finally", "{", "if", "(", "cluster", "!", "=", "null", ")", "{", "cluster", "shutdown", "(", ")", ";", "}", "cluster", "=", "null", ";", "}", "/", "/", "5", "/", "/", "add", "old", "shared", "directory", "for", "name", "and", "edits", "along", "with", "latest", "edits", "/", "/", "this", "is", "ok", ",", "since", "the", "latest", "edits", "will", "have", "segments", "leading", "all", "/", "/", "the", "way", "from", "the", "image", "in", "name", "and", "edits", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "name", "dir", "key", ",", "name", "and", "edits", "dir", "get", "path", "(", ")", ")", ";", "conf", "set", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "edits", "dir", "key", ",", "edits", "only", "dir", "get", "path", "(", ")", "+", "\"", ",", "\"", "+", "name", "and", "edits", "dir", "get", "path", "(", ")", ")", ";", "replication", "=", "(", "short", ")", "conf", "get", "int", "(", "d", "f", "s", "config", "keys", "dfs", "replication", "key", ",", "3", ")", ";", "try", "{", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "format", "(", "false", ")", "manage", "name", "dfs", "dirs", "(", "false", ")", "build", "(", ")", ";", "file", "sys", "=", "cluster", "get", "file", "system", "(", ")", ";", "assert", "false", "(", "file", "sys", "exists", "(", "file", "1", ")", ")", ";", "assert", "false", "(", "file", "sys", "exists", "(", "file", "2", ")", ")", ";", "assert", "true", "(", "file", "sys", "exists", "(", "file", "3", ")", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "3", ",", "replication", ")", ";", "cleanup", "file", "(", "file", "sys", ",", "file", "3", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "file", "sys", ",", "file", "3", ",", "file", "size", ",", "file", "size", ",", "block", "size", ",", "replication", ",", "seed", ")", ";", "check", "file", "(", "file", "sys", ",", "file", "3", ",", "replication", ")", ";", "}", "finally", "{", "file", "sys", "close", "(", ")", ";", "cluster", "shutdown", "(", ")", ";", "}", "}" ]
[ "removes", "the", "channel", "with", "the", "given", "id" ]
[ "public", "<", "t", ">", "void", "remove", "array", "(", "int", "id", ")", "{", "arrays", "remove", "index", "(", "find", "index", "(", "id", ")", ")", ";", "}" ]
[ "return", "the", "additional", "(", "undeclared", ")", "property" ]
[ "public", "map", "<", "string", ",", "big", "decimal", ">", "get", "additional", "properties", "(", ")", "{", "return", "additional", "properties", ";", "}" ]
[ "the", "content", "of", "this", "page", "is", "the", "job", "block" ]
[ "@", "override", "protected", "class", "<", "?", "extends", "sub", "view", ">", "content", "(", ")", "{", "return", "hs", "job", "block", "class", ";", "}" ]
[ "returns", "all", "the", "registered", "{", "@", "link", "retention", "strategy", "}", "descriptors" ]
[ "public", "static", "descriptor", "extension", "list", "<", "retention", "strategy", "<", "?", ">", ",", "descriptor", "<", "retention", "strategy", "<", "?", ">", ">", ">", "all", "(", ")", "{", "return", "(", "descriptor", "extension", "list", ")", "jenkins", "get", "(", ")", "get", "descriptor", "list", "(", "retention", "strategy", "class", ")", ";", "}" ]
[ "creates", "an", "{", "@", "link", "ad", "display", "container", "}", "to", "hold", "the", "player", "for", "audio", "ads" ]
[ "ad", "display", "container", "create", "audio", "ad", "display", "container", "(", "context", "context", ",", "video", "ad", "player", "player", ")", ";" ]
[ "simple", "job", ":", "map", "-", ">", "reduce", "-", ">", "map", "-", ">", "reduce", "all", "functions", "preserve", "all", "fields", "(", "hence", "all", "properties", ")", "increases", "parallelism", "between", "1st", "reduce", "and", "2nd", "map", ",", "such", "that", "more", "tasks", "are", "on", "one", "instance", "expected", "to", "re", "-", "establish", "partitioning", "between", "map", "and", "reduce", "via", "a", "local", "hash" ]
[ "public", "void", "check", "property", "handling", "with", "increasing", "local", "parallelism", "(", ")", "{", "final", "int", "p", "=", "default", "parallelism", "*", "2", ";", "/", "/", "construct", "the", "plan", "execution", "environment", "env", "=", "execution", "environment", "get", "execution", "environment", "(", ")", ";", "env", "set", "parallelism", "(", "p", ")", ";", "data", "set", "<", "long", ">", "set", "1", "=", "env", "generate", "sequence", "(", "0", ",", "1", ")", "set", "parallelism", "(", "p", ")", ";", "set", "1", "map", "(", "new", "identity", "mapper", "<", "long", ">", "(", ")", ")", "with", "forwarded", "fields", "(", "\"", "*", "\"", ")", "set", "parallelism", "(", "p", ")", "name", "(", "\"", "map", "1", "\"", ")", "group", "by", "(", "\"", "*", "\"", ")", "reduce", "group", "(", "new", "identity", "group", "reducer", "<", "long", ">", "(", ")", ")", "with", "forwarded", "fields", "(", "\"", "*", "\"", ")", "set", "parallelism", "(", "p", ")", "name", "(", "\"", "reduce", "1", "\"", ")", "map", "(", "new", "identity", "mapper", "<", "long", ">", "(", ")", ")", "with", "forwarded", "fields", "(", "\"", "*", "\"", ")", "set", "parallelism", "(", "p", "*", "2", ")", "name", "(", "\"", "map", "2", "\"", ")", "group", "by", "(", "\"", "*", "\"", ")", "reduce", "group", "(", "new", "identity", "group", "reducer", "<", "long", ">", "(", ")", ")", "with", "forwarded", "fields", "(", "\"", "*", "\"", ")", "set", "parallelism", "(", "p", "*", "2", ")", "name", "(", "\"", "reduce", "2", "\"", ")", "output", "(", "new", "discarding", "output", "format", "<", "long", ">", "(", ")", ")", "set", "parallelism", "(", "p", "*", "2", ")", "name", "(", "\"", "sink", "\"", ")", ";", "plan", "plan", "=", "env", "create", "program", "plan", "(", ")", ";", "/", "/", "submit", "the", "plan", "to", "the", "compiler", "optimized", "plan", "o", "plan", "=", "compile", "no", "stats", "(", "plan", ")", ";", "/", "/", "check", "the", "optimized", "plan", "/", "/", "when", "reducer", "1", "distributes", "its", "data", "across", "the", "instances", "of", "map", "2", ",", "it", "needs", "to", "employ", "a", "/", "/", "local", "hash", "method", ",", "/", "/", "because", "map", "2", "has", "twice", "as", "many", "instances", "and", "key", "/", "value", "pairs", "with", "the", "same", "key", "need", "to", "be", "/", "/", "processed", "by", "the", "same", "/", "/", "mapper", "respectively", "reducer", "sink", "plan", "node", "sink", "node", "=", "o", "plan", "get", "data", "sinks", "(", ")", "iterator", "(", ")", "next", "(", ")", ";", "single", "input", "plan", "node", "red", "2", "node", "=", "(", "single", "input", "plan", "node", ")", "sink", "node", "get", "predecessor", "(", ")", ";", "single", "input", "plan", "node", "map", "2", "node", "=", "(", "single", "input", "plan", "node", ")", "red", "2", "node", "get", "predecessor", "(", ")", ";", "ship", "strategy", "type", "map", "in", "=", "map", "2", "node", "get", "input", "(", ")", "get", "ship", "strategy", "(", ")", ";", "ship", "strategy", "type", "reduce", "in", "=", "red", "2", "node", "get", "input", "(", ")", "get", "ship", "strategy", "(", ")", ";", "assert", "assert", "true", "(", "\"", "invalid", "ship", "strategy", "for", "an", "operator", "\"", ",", "(", "ship", "strategy", "type", "partition", "random", "=", "=", "map", "in", "&", "&", "ship", "strategy", "type", "partition", "hash", "=", "=", "reduce", "in", ")", "|", "|", "(", "ship", "strategy", "type", "partition", "hash", "=", "=", "map", "in", "&", "&", "ship", "strategy", "type", "forward", "=", "=", "reduce", "in", ")", ")", ";", "}" ]
[ "create", "a", "task", "attempt", "for", "a", "job", "this", "is", "based", "on", "the", "code", "run", "in", "the", "mr", "am", ",", "creating", "a", "task", "(", "0", ")", "for", "the", "job", ",", "then", "a", "task", "attempt", "(", "0", ")" ]
[ "public", "static", "task", "attempt", "context", "task", "attempt", "for", "job", "(", "job", "id", "job", "id", ",", "job", "context", "j", "context", ")", "{", "org", "apache", "hadoop", "mapreduce", "v", "2", "api", "records", "task", "id", "task", "i", "d", "=", "m", "r", "builder", "utils", "new", "task", "id", "(", "job", "id", ",", "0", ",", "org", "apache", "hadoop", "mapreduce", "v", "2", "api", "records", "task", "type", "map", ")", ";", "org", "apache", "hadoop", "mapreduce", "v", "2", "api", "records", "task", "attempt", "id", "attempt", "i", "d", "=", "m", "r", "builder", "utils", "new", "task", "attempt", "id", "(", "task", "i", "d", ",", "0", ")", ";", "return", "new", "task", "attempt", "context", "impl", "(", "j", "context", "get", "configuration", "(", ")", ",", "type", "converter", "from", "yarn", "(", "attempt", "i", "d", ")", ")", ";", "}" ]
[ "returns", "the", "current", "{", "@", "link", "shard", "routing", "state", "}", "of", "the", "shard" ]
[ "public", "shard", "routing", "state", "get", "shard", "state", "(", ")", "{", "return", "shard", "routing", "state", "(", ")", ";", "}" ]
[ "@", "inherit", "doc" ]
[ "public", "void", "set", "(", "register", "spec", "spec", ")", "{", "set", "(", "spec", "get", "reg", "(", ")", ",", "spec", ")", ";", "}" ]
[ "initializes", "an", "nfly", "mountpoint", "in", "viewfs" ]
[ "static", "file", "system", "create", "file", "system", "(", "uri", "[", "]", "uris", ",", "configuration", "conf", ",", "string", "settings", ",", "fs", "getter", "fs", "getter", ")", "throws", "i", "o", "exception", "{", "/", "/", "assert", "settings", "!", "=", "null", "int", "min", "repl", "=", "default", "min", "replication", ";", "enum", "set", "<", "nfly", "key", ">", "nfly", "flags", "=", "enum", "set", "none", "of", "(", "nfly", "key", "class", ")", ";", "final", "string", "[", "]", "kv", "pairs", "=", "string", "utils", "split", "(", "settings", ")", ";", "for", "(", "string", "kv", ":", "kv", "pairs", ")", "{", "final", "string", "[", "]", "kv", "pair", "=", "string", "utils", "split", "(", "kv", ",", "'", "=", "'", ")", ";", "if", "(", "kv", "pair", "length", "!", "=", "2", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "kv", ")", ";", "}", "nfly", "key", "nfly", "key", "=", "nfly", "key", "value", "of", "(", "kv", "pair", "[", "0", "]", ")", ";", "switch", "(", "nfly", "key", ")", "{", "case", "min", "replication", ":", "min", "repl", "=", "integer", "parse", "int", "(", "kv", "pair", "[", "1", "]", ")", ";", "break", ";", "case", "repair", "on", "read", ":", "case", "read", "most", "recent", ":", "if", "(", "boolean", "value", "of", "(", "kv", "pair", "[", "1", "]", ")", ")", "{", "nfly", "flags", "add", "(", "nfly", "key", ")", ";", "}", "break", ";", "default", ":", "throw", "new", "illegal", "argument", "exception", "(", "nfly", "key", "+", "\"", ":", "infeasible", "\"", ")", ";", "}", "}", "return", "new", "nfly", "f", "system", "(", "uris", ",", "conf", ",", "min", "repl", ",", "nfly", "flags", ",", "fs", "getter", ")", ";", "}" ]
[ "the", "job", "id", "referencing", "the", "job", "for", "these", "statistics" ]
[ "public", "string", "get", "job", "id", "(", ")", "{", "return", "job", "id", ";", "}" ]
[ "test", "the", "property", "'", "username", "'" ]
[ "public", "void", "username", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "username", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "string", "to", "string", "(", ")", "{", "int", "n", "=", "0", ";", "for", "(", "summation", "s", ":", "parts", ")", "if", "(", "s", "get", "value", "(", ")", "=", "=", "null", ")", "n", "+", "+", ";", "return", "get", "class", "(", ")", "get", "simple", "name", "(", ")", "+", "\"", "{", "\"", "+", "parameter", "+", "\"", ":", "\"", "+", "sigma", "+", "\"", ",", "remaining", "=", "\"", "+", "n", "+", "\"", "}", "\"", ";", "}" ]
[ "determine", "whether", "the", "current", "invoker", "should", "be", "rescheduled", ",", "given", "that", "it", "might", "not", "have", "received", "a", "message", "in", "a", "while" ]
[ "private", "boolean", "should", "reschedule", "invoker", "(", "int", "idle", "task", "execution", "count", ")", "{", "boolean", "superfluous", "=", "(", "idle", "task", "execution", "count", ">", "=", "this", "idle", "task", "execution", "limit", "&", "&", "get", "idle", "invoker", "count", "(", ")", ">", "1", ")", ";", "return", "(", "this", "scheduled", "invokers", "size", "(", ")", "<", "=", "(", "superfluous", "?", "this", "concurrent", "consumers", ":", "this", "max", "concurrent", "consumers", ")", ")", ";", "}" ]
[ "get", "the", "set", "of", "voters", "which", "have", "not", "been", "counted", "as", "granted", "or", "rejected", "yet" ]
[ "public", "set", "<", "integer", ">", "unrecorded", "voters", "(", ")", "{", "return", "voters", "in", "state", "(", "state", "unrecorded", ")", ";", "}" ]
[ "a", "map", "of", "highlighted", "fields" ]
[ "public", "map", "<", "string", ",", "highlight", "field", ">", "get", "highlight", "fields", "(", ")", "{", "return", "highlight", "fields", "=", "=", "null", "?", "empty", "map", "(", ")", ":", "highlight", "fields", ";", "}" ]
[ "sets", "rename", "replacement", "see", "{", "@", "link", "#", "set", "rename", "pattern", "(", "string", ")", "}", "for", "more", "information" ]
[ "public", "restore", "snapshot", "request", "builder", "set", "rename", "replacement", "(", "string", "rename", "replacement", ")", "{", "request", "rename", "replacement", "(", "rename", "replacement", ")", ";", "return", "this", ";", "}" ]
[ "returns", "the", "uri", "to", "the", "web", "socket", "e", "g", "\"", "ws", ":", "myhost", "compath", "\"" ]
[ "public", "uri", "uri", "(", ")", "{", "return", "uri", ";", "}" ]
[ "get", "wrapped", "array" ]
[ "public", "list", "<", "integer", ">", "get", "wrapped", "array", "(", ")", "{", "return", "wrapped", "array", ";", "}" ]