docstring_tokens
list
code_tokens
list
[ "check", "if", "the", "offset", "is", "large", "enough", "to", "possibly", "be", "an", "address", "it", "shouldn", "'", "t", "be", "smaller", "than", "+", "-", "min", "bounds" ]
[ "private", "boolean", "check", "possible", "offset", "addr", "(", "long", "offset", ")", "{", "long", "max", "addr", "offset", "=", "this", "pointer", "mask", ";", "if", "(", "(", "offset", ">", "=", "0", "&", "&", "offset", "<", "pointer", "min", "bounds", ")", "|", "|", "(", "math", "abs", "(", "max", "addr", "offset", "-", "offset", ")", "<", "pointer", "min", "bounds", ")", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}" ]
[ "finishes", "reporting", "of", "timing", "stats", "makes", "timing", "stats", "persisted", "immediately" ]
[ "public", "void", "finish", "reporting", "(", ")", "{", "/", "/", "don", "'", "t", "flush", "if", "current", "timing", "stats", "are", "identical", "to", "the", "persisted", "ones", "if", "(", "current", "timing", "stats", "equals", "(", "persisted", "timing", "stats", ")", "=", "=", "false", ")", "{", "flush", "(", "write", "request", "refresh", "policy", "immediate", ")", ";", "}", "}" ]
[ "return", "whether", "the", "current", "transaction", "is", "marked", "as", "read", "-", "only", "to", "be", "called", "by", "resource", "management", "code", "when", "preparing", "a", "newly", "created", "resource", "(", "for", "example", ",", "a", "hibernate", "session", ")", "note", "that", "transaction", "synchronizations", "receive", "the", "read", "-", "only", "flag", "as", "argument", "for", "the", "{", "@", "code", "before", "commit", "}", "callback", ",", "to", "be", "able", "to", "suppress", "change", "detection", "on", "commit", "the", "present", "method", "is", "meant", "to", "be", "used", "for", "earlier", "read", "-", "only", "checks", ",", "for", "example", "to", "set", "the", "flush", "mode", "of", "a", "hibernate", "session", "to", "\"", "flush", "mode", "manual", "\"", "upfront" ]
[ "public", "static", "boolean", "is", "current", "transaction", "read", "only", "(", ")", "{", "return", "(", "current", "transaction", "read", "only", "get", "(", ")", "!", "=", "null", ")", ";", "}" ]
[ "clears", "all", "stats" ]
[ "public", "indices", "stats", "request", "clear", "(", ")", "{", "flags", "clear", "(", ")", ";", "return", "this", ";", "}" ]
[ "parse", "the", "given", "value", "into", "a", "seconds", "{", "@", "code", "cron", "field", "}", ",", "the", "first", "entry", "of", "a", "cron", "expression" ]
[ "public", "static", "cron", "field", "parse", "seconds", "(", "string", "value", ")", "{", "return", "bits", "cron", "field", "parse", "seconds", "(", "value", ")", ";", "}" ]
[ "releases", "and", "removes", "this", "agent" ]
[ "public", "void", "terminate", "(", ")", "throws", "interrupted", "exception", ",", "i", "o", "exception", "{", "final", "computer", "computer", "=", "to", "computer", "(", ")", ";", "if", "(", "computer", "!", "=", "null", ")", "{", "computer", "record", "termination", "(", ")", ";", "}", "try", "{", "/", "/", "todo", ":", "send", "the", "output", "to", "somewhere", "real", "terminate", "(", "new", "stream", "task", "listener", "(", "system", "out", ",", "charset", "default", "charset", "(", ")", ")", ")", ";", "}", "finally", "{", "try", "{", "jenkins", "get", "(", ")", "remove", "node", "(", "this", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "logger", "log", "(", "level", "warning", ",", "\"", "failed", "to", "remove", "\"", "+", "name", ",", "e", ")", ";", "}", "}", "}" ]
[ "register", "a", "{", "@", "link", "job", "listener", "}", "in", "this", "environment", "the", "{", "@", "link", "job", "listener", "}", "will", "be", "notified", "on", "specific", "job", "status", "changed" ]
[ "public", "void", "register", "job", "listener", "(", "job", "listener", "job", "listener", ")", "{", "check", "not", "null", "(", "job", "listener", ",", "\"", "job", "listener", "cannot", "be", "null", "\"", ")", ";", "job", "listeners", "add", "(", "job", "listener", ")", ";", "}" ]
[ "tests", "loading", "a", "license", "when", "{", "@", "link", "license", "service", "#", "allowed", "license", "types", "setting", "}", "is", "on", "its", "default", "value", "(", "all", "license", "types", ")" ]
[ "public", "void", "test", "register", "license", "without", "type", "restrictions", "(", ")", "throws", "exception", "{", "assert", "register", "valid", "license", "(", "settings", "empty", ",", "random", "value", "other", "than", "(", "license", "license", "type", "basic", ",", "(", ")", "-", ">", "random", "from", "(", "license", "license", "type", "values", "(", ")", ")", ")", ")", ";", "}" ]
[ "set", "to", "{", "@", "code", "true", "}", "to", "include", "information", "about", "the", "gathered", "disk", "information", "of", "nodes", "in", "the", "cluster" ]
[ "public", "void", "include", "disk", "info", "(", "boolean", "include", "disk", "info", ")", "{", "this", "include", "disk", "info", "=", "include", "disk", "info", ";", "}" ]
[ "required", ":", "address", "associated", "with", "the", "network", "endpoint", "without", "the", "port", "domain", "names", "can", "be", "used", "if", "and", "only", "if", "the", "resolution", "is", "set", "to", "dns", ",", "and", "must", "be", "fully", "-", "qualified", "without", "wildcards", "use", "the", "form", "unix", ":", "absolutepathtosocket", "for", "unix", "domain", "socket", "endpoints", "<", "code", ">", "string", "address", "=", "1", ";", "<", "code", ">" ]
[ "public", "com", "google", "protobuf", "byte", "string", "get", "address", "bytes", "(", ")", "{", "java", "lang", "object", "ref", "=", "address", ";", "if", "(", "ref", "instanceof", "string", ")", "{", "com", "google", "protobuf", "byte", "string", "b", "=", "com", "google", "protobuf", "byte", "string", "copy", "from", "utf", "8", "(", "(", "java", "lang", "string", ")", "ref", ")", ";", "address", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}", "}" ]
[ "returns", "the", "internal", "entry", "for", "the", "specified", "key", "the", "entry", "may", "be", "loading", ",", "expired", ",", "or", "partially", "collected" ]
[ "reference", "entry", "<", "k", ",", "v", ">", "get", "entry", "(", "@", "nullable", "decl", "object", "key", ")", "{", "/", "/", "does", "not", "impact", "recency", "ordering", "if", "(", "key", "=", "=", "null", ")", "{", "return", "null", ";", "}", "int", "hash", "=", "hash", "(", "key", ")", ";", "return", "segment", "for", "(", "hash", ")", "get", "entry", "(", "key", ",", "hash", ")", ";", "}" ]
[ "returns", "an", "unmodifiable", "map", "describing", "keys", "that", "appear", "in", "both", "maps", ",", "but", "with", "different", "values" ]
[ "map", "<", "k", ",", "value", "difference", "<", "v", ">", ">", "entries", "differing", "(", ")", ";" ]
[ "get", "ship", "date" ]
[ "public", "offset", "date", "time", "get", "ship", "date", "(", ")", "{", "return", "ship", "date", ";", "}" ]
[ "returns", "the", "closest", "non", "-", "failing", "destination", "'", "s", "result" ]
[ "public", "file", "status", "[", "]", "list", "status", "(", "path", "f", ")", "throws", "file", "not", "found", "exception", ",", "i", "o", "exception", "{", "final", "list", "<", "i", "o", "exception", ">", "io", "exceptions", "=", "new", "array", "list", "<", "i", "o", "exception", ">", "(", "nodes", "length", ")", ";", "final", "m", "r", "nfly", "node", "[", "]", "mr", "nodes", "=", "work", "set", "(", ")", ";", "if", "(", "nfly", "flags", "contains", "(", "nfly", "key", "read", "most", "recent", ")", ")", "{", "int", "num", "not", "founds", "=", "0", ";", "for", "(", "final", "m", "r", "nfly", "node", "nfly", "node", ":", "mr", "nodes", ")", "{", "try", "{", "nfly", "node", "update", "file", "status", "(", "f", ")", ";", "}", "catch", "(", "file", "not", "found", "exception", "fnfe", ")", "{", "num", "not", "founds", "+", "+", ";", "process", "throwable", "(", "nfly", "node", ",", "\"", "list", "status", "\"", ",", "fnfe", ",", "io", "exceptions", ",", "f", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "process", "throwable", "(", "nfly", "node", ",", "\"", "list", "status", "\"", ",", "t", ",", "io", "exceptions", ",", "f", ")", ";", "}", "}", "may", "throw", "file", "not", "found", "(", "io", "exceptions", ",", "num", "not", "founds", ")", ";", "arrays", "sort", "(", "mr", "nodes", ")", ";", "}", "int", "num", "not", "founds", "=", "0", ";", "for", "(", "final", "m", "r", "nfly", "node", "nfly", "node", ":", "mr", "nodes", ")", "{", "try", "{", "final", "file", "status", "[", "]", "real", "stats", "=", "nfly", "node", "get", "fs", "(", ")", "list", "status", "(", "f", ")", ";", "final", "file", "status", "[", "]", "nfly", "stats", "=", "new", "file", "status", "[", "real", "stats", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "real", "stats", "length", ";", "i", "+", "+", ")", "{", "nfly", "stats", "[", "i", "]", "=", "new", "nfly", "status", "(", "nfly", "node", "get", "fs", "(", ")", ",", "real", "stats", "[", "i", "]", ")", ";", "}", "return", "nfly", "stats", ";", "}", "catch", "(", "file", "not", "found", "exception", "fnfe", ")", "{", "num", "not", "founds", "+", "+", ";", "process", "throwable", "(", "nfly", "node", ",", "\"", "list", "status", "\"", ",", "fnfe", ",", "io", "exceptions", ",", "f", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "process", "throwable", "(", "nfly", "node", ",", "\"", "list", "status", "\"", ",", "t", ",", "io", "exceptions", ",", "f", ")", ";", "}", "}", "may", "throw", "file", "not", "found", "(", "io", "exceptions", ",", "num", "not", "founds", ")", ";", "throw", "multiple", "i", "o", "exception", "create", "i", "o", "exception", "(", "io", "exceptions", ")", ";", "}" ]
[ "deprecated", ":", "change", "usages", "of", "this", "to", "{", "@", "link", "#", "on", "execution", "start", "}", "invoked", "before", "{", "@", "link", "hystrix", "command", "#", "run", "(", ")", "}", "is", "about", "to", "be", "executed" ]
[ "public", "<", "t", ">", "void", "on", "run", "start", "(", "hystrix", "command", "<", "t", ">", "command", "instance", ")", "{", "/", "/", "do", "nothing", "by", "default", "}" ]
[ "retrieves", "a", "{", "@", "link", "timeline", "event", "}", "from", "{", "@", "link", "timeline", "entity", "#", "events", "}" ]
[ "public", "static", "timeline", "event", "fetch", "event", "(", "timeline", "entity", "timeline", "entity", ",", "string", "event", "type", ")", "{", "for", "(", "timeline", "event", "event", ":", "timeline", "entity", "get", "events", "(", ")", ")", "{", "if", "(", "event", "get", "id", "(", ")", "equals", "(", "event", "type", ")", ")", "{", "return", "event", ";", "}", "}", "return", "null", ";", "}" ]
[ "long", "argument", "that", "matches", "both", "given", "argument", "matchers", "see", "examples", "in", "javadoc", "for", "{", "@", "link", "additional", "matchers", "}", "class" ]
[ "public", "static", "long", "and", "(", "long", "first", ",", "long", "second", ")", "{", "mocking", "progress", "(", ")", "get", "argument", "matcher", "storage", "(", ")", "report", "and", "(", ")", ";", "return", "0", ";", "}" ]
[ "add", "the", "metadata", "information", "to", "the", "manifest", "of", "the", "lord", "as", "a", "solution", "for", "atals" ]
[ "private", "static", "void", "add", "application", "meta", "data", "(", "document", "document", ",", "map", "<", "string", ",", "file", ">", "lib", "manifest", "map", ",", "file", "base", "bunfle", "info", "file", ",", "manifest", "options", "manifest", "options", ",", "set", "<", "string", ">", "remote", "bundles", ",", "set", "<", "string", ">", "inside", "bundles", ")", "throws", "i", "o", "exception", ",", "document", "exception", "{", "map", "<", "string", ",", "bundle", "info", ">", "bundle", "file", "map", "=", "maps", "new", "hash", "map", "(", ")", ";", "/", "/", "parsing", "basic", "information", "if", "(", "null", "!", "=", "base", "bunfle", "info", "file", "&", "&", "base", "bunfle", "info", "file", "exists", "(", ")", "&", "&", "base", "bunfle", "info", "file", "can", "read", "(", ")", ")", "{", "string", "bundle", "base", "info", "=", "file", "utils", "read", "file", "to", "string", "(", "base", "bunfle", "info", "file", ",", "\"", "utf", "-", "8", "\"", ")", ";", "bundle", "file", "map", "=", "json", "parse", "object", "(", "bundle", "base", "info", ",", "new", "type", "reference", "<", "map", "<", "string", ",", "bundle", "info", ">", ">", "(", ")", "{", "}", ")", ";", "}", "map", "<", "string", ",", "lib", "bundle", "info", ">", "awb", "manifest", "map", "=", "maps", "new", "hash", "map", "(", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "file", ">", "entry", ":", "lib", "manifest", "map", "entry", "set", "(", ")", ")", "{", "string", "artifact", "id", "=", "entry", "get", "key", "(", ")", ";", "string", "lib", "name", "=", "artifact", "id", "substring", "(", "artifact", "id", "index", "of", "(", "\"", "-", "\"", ")", "+", "1", ")", ";", "file", "lib", "manifest", "=", "entry", "get", "value", "(", ")", ";", "if", "(", "lib", "manifest", "exists", "(", ")", ")", "{", "s", "a", "x", "reader", "reader", "=", "new", "s", "a", "x", "reader", "(", ")", ";", "document", "lib", "document", "=", "reader", "read", "(", "lib", "manifest", ")", ";", "/", "/", "read", "the", "xml", "file", "element", "lib", "root", "=", "lib", "document", "get", "root", "element", "(", ")", ";", "/", "/", "get", "the", "root", "node", "string", "package", "name", "=", "lib", "root", "attribute", "value", "(", "\"", "package", "\"", ")", ";", "element", "application", "element", "=", "lib", "root", "element", "(", "\"", "application", "\"", ")", ";", "string", "application", "name", "=", "null", ";", "if", "(", "null", "!", "=", "application", "element", ")", "{", "application", "name", "=", "application", "element", "attribute", "value", "(", "\"", "name", "\"", ")", ";", "}", "lib", "bundle", "info", "lib", "bundle", "info", "=", "new", "lib", "bundle", "info", "(", "artifact", "id", ",", "package", "name", ",", "application", "name", ",", "bundle", "file", "map", "get", "(", "lib", "name", ")", ",", "lib", "name", ")", ";", "awb", "manifest", "map", "put", "(", "artifact", "id", ",", "lib", "bundle", "info", ")", ";", "}", "}", "/", "/", "write", "meta", "-", "data", "information", "element", "root", "=", "document", "get", "root", "element", "(", ")", ";", "/", "/", "get", "the", "root", "node", "list", "<", "?", "extends", "node", ">", "nodes", "=", "root", "select", "nodes", "(", "\"", "/", "/", "application", "\"", ")", ";", "for", "(", "node", "node", ":", "nodes", ")", "{", "element", "element", "=", "(", "element", ")", "node", ";", "for", "(", "string", "artifact", "id", ":", "lib", "manifest", "map", "key", "set", "(", ")", ")", "{", "lib", "bundle", "info", "lib", "bundle", "info", "=", "awb", "manifest", "map", "get", "(", "artifact", "id", ")", ";", "if", "(", "string", "utils", "is", "not", "blank", "(", "lib", "bundle", "info", "application", "name", ")", ")", "{", "string", "bundle", "package", "name", "=", "lib", "bundle", "info", "package", "name", ";", "bundle", "info", "bundle", "info", "=", "lib", "bundle", "info", "bundle", "info", ";", "element", "meta", "data", "=", "element", "add", "element", "(", "\"", "meta", "-", "data", "\"", ")", ";", "string", "bundle", "dep", "value", "=", "\"", "\"", ";", "if", "(", "null", "!", "=", "bundle", "info", "&", "&", "bundle", "info", "get", "dependency", "(", ")", "!", "=", "null", ")", "{", "bundle", "dep", "value", "=", "string", "utils", "join", "(", "bundle", "info", "get", "dependency", "(", ")", ",", "\"", "|", "\"", ")", ";", "}", "string", "value", "=", "lib", "bundle", "info", "application", "name", "+", "\"", ",", "\"", "+", "!", "(", "remote", "bundles", "contains", "(", "lib", "bundle", "info", "lib", "name", ")", "|", "|", "inside", "bundles", "contains", "(", "lib", "bundle", "info", "lib", "name", ")", ")", "+", "\"", ",", "\"", "+", "bundle", "dep", "value", ";", "logger", "info", "(", "\"", "[", "bundle", "info", "]", "add", "bundle", "value", ":", "\"", "+", "value", "+", "\"", "to", "manifest", "\"", ")", ";", "meta", "data", "add", "attribute", "(", "\"", "android", ":", "name", "\"", ",", "\"", "bundle", "\"", "+", "bundle", "package", "name", ")", ";", "meta", "data", "add", "attribute", "(", "\"", "android", ":", "value", "\"", ",", "value", ")", ";", "}", "}", "}", "}" ]
[ "whether", "this", "provider", "has", "any", "protos", "or", "filters" ]
[ "public", "boolean", "is", "empty", "(", ")", "{", "return", "proto", "files", "is", "empty", "(", ")", "&", "&", "portable", "proto", "filters", "is", "empty", "(", ")", ";", "}" ]
[ "return", "the", "aspect", "name" ]
[ "public", "string", "get", "aspect", "name", "(", ")", "{", "return", "this", "aspect", "name", ";", "}" ]
[ "same", "as", "{", "@", "link", "#", "get", "children", "}", ",", "except", "propagates", "{", "@", "link", "interrupted", "exception", "}" ]
[ "object", "get", "children", "interruptibly", "(", ")", "throws", "interrupted", "exception", "{", "return", "children", "instanceof", "listenable", "future", "?", "more", "futures", "wait", "for", "future", "and", "get", "(", "(", "listenable", "future", "<", "object", "[", "]", ">", ")", "children", ")", ":", "children", ";", "}" ]
[ "if", "{", "@", "code", "code", "point", "}", "is", "<", "=", "u", "+", "ffff", ",", "returns", "a", "new", "{", "@", "link", "atom", "transition", "}", "otherwise", ",", "returns", "a", "new", "{", "@", "link", "set", "transition", "}" ]
[ "public", "static", "transition", "create", "with", "code", "point", "(", "a", "t", "n", "state", "target", ",", "int", "code", "point", ")", "{", "if", "(", "character", "is", "supplementary", "code", "point", "(", "code", "point", ")", ")", "{", "return", "new", "set", "transition", "(", "target", ",", "interval", "set", "of", "(", "code", "point", ")", ")", ";", "}", "else", "{", "return", "new", "atom", "transition", "(", "target", ",", "code", "point", ")", ";", "}", "}" ]
[ "set", "the", "socket", "address", "a", "client", "can", "use", "to", "connect", "for", "the", "<", "code", ">", "name", "<", "code", ">", "property", "as", "a", "<", "code", ">", "host", ":", "port", "<", "code", ">", "the", "wildcard", "address", "is", "replaced", "with", "the", "local", "host", "'", "s", "address" ]
[ "public", "inet", "socket", "address", "update", "connect", "addr", "(", "string", "name", ",", "inet", "socket", "address", "addr", ")", "{", "final", "inet", "socket", "address", "connect", "addr", "=", "net", "utils", "get", "connect", "address", "(", "addr", ")", ";", "set", "socket", "addr", "(", "name", ",", "connect", "addr", ")", ";", "return", "connect", "addr", ";", "}" ]
[ "test", "the", "property", "'", "name", "string", "'" ]
[ "public", "void", "name", "string", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "string", "}" ]
[ "called", "when", "the", "backend", "started", "drawing", "the", "given", "frame" ]
[ "void", "on", "draw", "frame", "start", "(", "bitmap", "animation", "backend", "backend", ",", "int", "frame", "number", ")", ";" ]
[ "delete", "purchase", "order", "by", "id", "for", "valid", "response", "try", "integer", "i", "ds", "with", "value", "&", "lt", ";", "1000", "anything", "above", "1000", "or", "nonintegers", "will", "generate", "api", "errors" ]
[ "public", "api", "response", "<", "void", ">", "delete", "order", "with", "http", "info", "(", "string", "order", "id", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "delete", "order", "validate", "before", "call", "(", "order", "id", ",", "null", ")", ";", "return", "local", "var", "api", "client", "execute", "(", "local", "var", "call", ")", ";", "}" ]
[ "return", "null", "if", "the", "{", "@", "link", "hystrix", "request", "context", "}", "has", "not", "been", "initialized", "for", "the", "current", "thread", "if", "{", "@", "link", "hystrix", "request", "context", "}", "has", "been", "initialized", "then", "call", "method", "in", "superclass", ":", "{", "@", "link", "hystrix", "request", "variable", "default", "#", "get", "(", ")", "}" ]
[ "public", "t", "get", "(", ")", "{", "if", "(", "!", "hystrix", "request", "context", "is", "current", "thread", "initialized", "(", ")", ")", "{", "return", "null", ";", "}", "return", "super", "get", "(", ")", ";", "}" ]
[ "creates", "a", "{", "@", "code", "ehlo", "}", "request" ]
[ "public", "static", "smtp", "request", "ehlo", "(", "char", "sequence", "hostname", ")", "{", "return", "new", "default", "smtp", "request", "(", "smtp", "command", "ehlo", ",", "hostname", ")", ";", "}" ]
[ "number", "of", "version", "conflicts", "this", "request", "has", "hit" ]
[ "public", "long", "get", "version", "conflicts", "(", ")", "{", "return", "version", "conflicts", ";", "}" ]
[ "gets", "the", "size", "of", "a", "packed", "table", "for", "the", "given", "cases", ",", "in", "16", "-", "bit", "code", "units" ]
[ "private", "static", "long", "packed", "code", "size", "(", "int", "list", "cases", ")", "{", "int", "sz", "=", "cases", "size", "(", ")", ";", "long", "low", "=", "cases", "get", "(", "0", ")", ";", "long", "high", "=", "cases", "get", "(", "sz", "-", "1", ")", ";", "long", "result", "=", "(", "(", "high", "-", "low", "+", "1", ")", ")", "*", "2", "+", "4", ";", "return", "(", "result", "<", "=", "0x", "7fffffff", ")", "?", "result", ":", "-", "1", ";", "}" ]
[ "returns", "data", "for", "tree", "artifacts", "that", "was", "computed", "during", "execution", "may", "contain", "copies", "of", "{", "@", "link", "tree", "artifact", "value", "#", "missing", "tree", "artifact", "}" ]
[ "immutable", "map", "<", "artifact", ",", "tree", "artifact", "value", ">", "get", "all", "tree", "artifact", "data", "(", ")", "{", "return", "immutable", "map", "copy", "of", "(", "tree", "artifact", "data", ")", ";", "}" ]
[ "parse", "item", "path", "name", "from", "url", "and", "establish", "initial", "values", "for", "folder", "path", "and", "folder", "item", "name" ]
[ "protected", "string", "parse", "item", "path", "(", ")", "throws", "malformed", "u", "r", "l", "exception", "{", "string", "path", "=", "url", "get", "path", "(", ")", ";", "if", "(", "repository", "name", "=", "=", "null", ")", "{", "return", "null", ";", "/", "/", "presumed", "server", "-", "only", "url", "}", "/", "/", "strip", "off", "repository", "name", "from", "path", "path", "=", "path", "substring", "(", "repository", "name", "length", "(", ")", "+", "1", ")", ";", "if", "(", "path", "length", "(", ")", "<", "=", "1", ")", "{", "/", "/", "root", "path", "specified", "folder", "path", "=", "file", "system", "separator", ";", "return", "folder", "path", ";", "/", "/", "repository", "url", ",", "root", "folder", "}", "/", "/", "handles", "server", "repository", "url", "case", "ghidra", ":", "/", "/", "<", "host", ">", ":", "<", "port", ">", "/", "<", "repository", "-", "name", ">", "[", "/", "<", "folder", "-", "path", ">", "]", "/", "[", "<", "folder", "item", "name", ">", "]", "boolean", "is", "folder", "=", "path", "ends", "with", "(", "file", "system", "separator", ")", ";", "folder", "path", "=", "\"", "\"", ";", "string", "path", "to", "split", "=", "is", "folder", "?", "path", "substring", "(", "0", ",", "path", "length", "(", ")", "-", "1", ")", ":", "path", ";", "string", "[", "]", "pieces", "=", "string", "utils", "split", "by", "whole", "separator", "preserve", "all", "tokens", "(", "path", "to", "split", ",", "file", "system", "separator", ")", ";", "if", "(", "pieces", "length", "=", "=", "0", ")", "{", "throw", "new", "malformed", "u", "r", "l", "exception", "(", "\"", "invalid", "repository", "path", "specification", "\"", ")", ";", "}", "for", "(", "int", "i", "=", "1", ";", "i", "<", "pieces", "length", ";", "i", "+", "+", ")", "{", "string", "p", "=", "pieces", "[", "i", "]", ";", "if", "(", "p", "length", "(", ")", "=", "=", "0", ")", "{", "throw", "new", "malformed", "u", "r", "l", "exception", "(", "\"", "invalid", "repository", "path", "specification", "\"", ")", ";", "}", "if", "(", "!", "is", "folder", "&", "&", "i", "=", "=", "(", "pieces", "length", "-", "1", ")", ")", "{", "folder", "item", "name", "=", "p", ";", "}", "else", "{", "folder", "path", "=", "folder", "path", "+", "file", "system", "separator", "+", "p", ";", "}", "}", "if", "(", "folder", "path", "length", "(", ")", "=", "=", "0", ")", "{", "folder", "path", "=", "file", "system", "separator", ";", "}", "return", "path", ";", "}" ]
[ "returns", "the", "set", "of", "addresses", "containing", "register", "changes" ]
[ "address", "set", "view", "get", "register", "address", "set", "(", ")", ";" ]
[ "returns", "a", "{", "@", "link", "cache", "loader", "}", "that", "returns", "the", "key", "for", "every", "request" ]
[ "static", "<", "t", ">", "identity", "loader", "<", "t", ">", "identity", "loader", "(", ")", "{", "return", "new", "identity", "loader", "<", "t", ">", "(", ")", ";", "}" ]
[ "timeout", "to", "wait", "for", "the", "shards", "on", "to", "be", "available", "for", "each", "bulk", "request" ]
[ "public", "self", "timeout", "(", "time", "value", "timeout", ")", "{", "request", "set", "timeout", "(", "timeout", ")", ";", "return", "self", "(", ")", ";", "}" ]
[ "build", "not", "found", "response", "entity", "response", "entity" ]
[ "protected", "response", "entity", "build", "not", "found", "response", "entity", "(", "final", "string", "message", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "collection", "utils", "wrap", "(", "\"", "message", "\"", ",", "message", ")", ",", "http", "status", "not", "found", ")", ";", "}" ]
[ "given", "the", "byte", "offset", "into", "a", "unit", ",", "get", "the", "column", "position" ]
[ "public", "int", "get", "column", "position", "(", "byte", "block", "block", ",", "int", "byte", "offset", ")", "{", "return", "0", ";", "}" ]
[ "associates", "the", "specified", "value", "with", "the", "specified", "keys", "if", "the", "table", "already", "contained", "a", "mapping", "for", "those", "keys", ",", "the", "old", "value", "is", "replaced", "with", "the", "specified", "value" ]
[ "v", "put", "(", "r", "row", "key", ",", "c", "column", "key", ",", "v", "value", ")", ";" ]
[ "returns", "a", "{", "@", "code", "top", "k", "selector", "}", "that", "collects", "the", "lowest", "{", "@", "code", "k", "}", "elements", "added", "to", "it", ",", "relative", "to", "the", "specified", "comparator", ",", "and", "returns", "them", "via", "{", "@", "link", "#", "top", "k", "}", "in", "ascending", "order" ]
[ "public", "static", "<", "t", ">", "top", "k", "selector", "<", "t", ">", "least", "(", "int", "k", ",", "comparator", "<", "?", "super", "t", ">", "comparator", ")", "{", "return", "new", "top", "k", "selector", "<", "t", ">", "(", "comparator", ",", "k", ")", ";", "}" ]
[ "asynchronously", "send", "a", "record", "to", "a", "topic", "and", "invoke", "the", "provided", "callback", "when", "the", "send", "has", "been", "acknowledged", "the", "send", "is", "asynchronous", "and", "this", "method", "will", "return", "immediately", "once", "the", "record", "has", "been", "stored", "in", "the", "buffer", "of", "records", "waiting", "to", "be", "sent", "this", "allows", "sending", "many", "records", "in", "parallel", "without", "blocking", "to", "wait", "for", "the", "response", "after", "each", "one", "the", "result", "of", "the", "send", "is", "a", "{", "@", "link", "record", "metadata", "}", "specifying", "the", "partition", "the", "record", "was", "sent", "to", ",", "the", "offset", "it", "was", "assigned", "and", "the", "timestamp", "of", "the", "record", "if", "{", "@", "link", "org", "apache", "kafka", "common", "record", "timestamp", "type", "#", "create", "time", "create", "time", "}", "is", "used", "by", "the", "topic", ",", "the", "timestamp", "will", "be", "the", "user", "provided", "timestamp", "or", "the", "record", "send", "time", "if", "the", "user", "did", "not", "specify", "a", "timestamp", "for", "the", "record", "if", "{", "@", "link", "org", "apache", "kafka", "common", "record", "timestamp", "type", "#", "log", "append", "time", "log", "append", "time", "}", "is", "used", "for", "the", "topic", ",", "the", "timestamp", "will", "be", "the", "kafka", "broker", "local", "time", "when", "the", "message", "is", "appended", "since", "the", "send", "call", "is", "asynchronous", "it", "returns", "a", "{", "@", "link", "java", "util", "concurrent", "future", "future", "}", "for", "the", "{", "@", "link", "record", "metadata", "}", "that", "will", "be", "assigned", "to", "this", "record", "invoking", "{", "@", "link", "java", "util", "concurrent", "future", "#", "get", "(", ")", "get", "(", ")", "}", "on", "this", "future", "will", "block", "until", "the", "associated", "request", "completes", "and", "then", "return", "the", "metadata", "for", "the", "record", "or", "throw", "any", "exception", "that", "occurred", "while", "sending", "the", "record", "if", "you", "want", "to", "simulate", "a", "simple", "blocking", "call", "you", "can", "call", "the", "<", "code", ">", "get", "(", ")", "<", "code", ">", "method", "immediately", ":", "{", "@", "code", "byte", "[", "]", "key", "=", "\"", "key", "\"", "get", "bytes", "(", ")", ";", "byte", "[", "]", "value", "=", "\"", "value", "\"", "get", "bytes", "(", ")", ";", "producer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "record", "=", "new", "producer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "(", "\"", "my", "-", "topic", "\"", ",", "key", ",", "value", ")", "producer", "send", "(", "record", ")", "get", "(", ")", ";", "}", "fully", "non", "-", "blocking", "usage", "can", "make", "use", "of", "the", "{", "@", "link", "callback", "}", "parameter", "to", "provide", "a", "callback", "that", "will", "be", "invoked", "when", "the", "request", "is", "complete", "{", "@", "code", "producer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "record", "=", "new", "producer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "(", "\"", "the", "-", "topic", "\"", ",", "key", ",", "value", ")", ";", "producer", "send", "(", "my", "record", ",", "new", "callback", "(", ")", "{", "public", "void", "on", "completion", "(", "record", "metadata", "metadata", ",", "exception", "e", ")", "{", "if", "(", "e", "!", "=", "null", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "else", "{", "system", "out", "println", "(", "\"", "the", "offset", "of", "the", "record", "we", "just", "sent", "is", ":", "\"", "+", "metadata", "offset", "(", ")", ")", ";", "}", "}", "}", ")", ";", "}", "callbacks", "for", "records", "being", "sent", "to", "the", "same", "partition", "are", "guaranteed", "to", "execute", "in", "order", "that", "is", ",", "in", "the", "following", "example", "<", "code", ">", "callback", "1", "<", "code", ">", "is", "guaranteed", "to", "execute", "before", "<", "code", ">", "callback", "2", "<", "code", ">", ":", "{", "@", "code", "producer", "send", "(", "new", "producer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "(", "topic", ",", "partition", ",", "key", "1", ",", "value", "1", ")", ",", "callback", "1", ")", ";", "producer", "send", "(", "new", "producer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "(", "topic", ",", "partition", ",", "key", "2", ",", "value", "2", ")", ",", "callback", "2", ")", ";", "}", "when", "used", "as", "part", "of", "a", "transaction", ",", "it", "is", "not", "necessary", "to", "define", "a", "callback", "or", "check", "the", "result", "of", "the", "future", "in", "order", "to", "detect", "errors", "from", "<", "code", ">", "send", "<", "code", ">", "if", "any", "of", "the", "send", "calls", "failed", "with", "an", "irrecoverable", "error", ",", "the", "final", "{", "@", "link", "#", "commit", "transaction", "(", ")", "}", "call", "will", "fail", "and", "throw", "the", "exception", "from", "the", "last", "failed", "send", "when", "this", "happens", ",", "your", "application", "should", "call", "{", "@", "link", "#", "abort", "transaction", "(", ")", "}", "to", "reset", "the", "state", "and", "continue", "to", "send", "data", "some", "transactional", "send", "errors", "cannot", "be", "resolved", "with", "a", "call", "to", "{", "@", "link", "#", "abort", "transaction", "(", ")", "}", "in", "particular", ",", "if", "a", "transactional", "send", "finishes", "with", "a", "{", "@", "link", "producer", "fenced", "exception", "}", ",", "a", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "out", "of", "order", "sequence", "exception", "}", ",", "a", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "unsupported", "version", "exception", "}", ",", "or", "an", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "authorization", "exception", "}", ",", "then", "the", "only", "option", "left", "is", "to", "call", "{", "@", "link", "#", "close", "(", ")", "}", "fatal", "errors", "cause", "the", "producer", "to", "enter", "a", "defunct", "state", "in", "which", "future", "api", "calls", "will", "continue", "to", "raise", "the", "same", "underyling", "error", "wrapped", "in", "a", "new", "{", "@", "link", "kafka", "exception", "}", "it", "is", "a", "similar", "picture", "when", "idempotence", "is", "enabled", ",", "but", "no", "<", "code", ">", "transactional", "id", "<", "code", ">", "has", "been", "configured", "in", "this", "case", ",", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "unsupported", "version", "exception", "}", "and", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "authorization", "exception", "}", "are", "considered", "fatal", "errors", "however", ",", "{", "@", "link", "producer", "fenced", "exception", "}", "does", "not", "need", "to", "be", "handled", "additionally", ",", "it", "is", "possible", "to", "continue", "sending", "after", "receiving", "an", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "out", "of", "order", "sequence", "exception", "}", ",", "but", "doing", "so", "can", "result", "in", "out", "of", "order", "delivery", "of", "pending", "messages", "to", "ensure", "proper", "ordering", ",", "you", "should", "close", "the", "producer", "and", "create", "a", "new", "instance", "if", "the", "message", "format", "of", "the", "destination", "topic", "is", "not", "upgraded", "to", "0", "11", "0", "0", ",", "idempotent", "and", "transactional", "produce", "requests", "will", "fail", "with", "an", "{", "@", "link", "org", "apache", "kafka", "common", "errors", "unsupported", "for", "message", "format", "exception", "}", "error", "if", "this", "is", "encountered", "during", "a", "transaction", ",", "it", "is", "possible", "to", "abort", "and", "continue", "but", "note", "that", "future", "sends", "to", "the", "same", "topic", "will", "continue", "receiving", "the", "same", "exception", "until", "the", "topic", "is", "upgraded", "note", "that", "callbacks", "will", "generally", "execute", "in", "the", "io", "thread", "of", "the", "producer", "and", "so", "should", "be", "reasonably", "fast", "or", "they", "will", "delay", "the", "sending", "of", "messages", "from", "other", "threads", "if", "you", "want", "to", "execute", "blocking", "or", "computationally", "expensive", "callbacks", "it", "is", "recommended", "to", "use", "your", "own", "{", "@", "link", "java", "util", "concurrent", "executor", "}", "in", "the", "callback", "body", "to", "parallelize", "processing" ]
[ "public", "future", "<", "record", "metadata", ">", "send", "(", "producer", "record", "<", "k", ",", "v", ">", "record", ",", "callback", "callback", ")", "{", "/", "/", "intercept", "the", "record", ",", "which", "can", "be", "potentially", "modified", ";", "this", "method", "does", "not", "throw", "exceptions", "producer", "record", "<", "k", ",", "v", ">", "intercepted", "record", "=", "this", "interceptors", "on", "send", "(", "record", ")", ";", "return", "do", "send", "(", "intercepted", "record", ",", "callback", ")", ";", "}" ]
[ "updates", "the", "gui", "when", "the", "user", "has", "made", "a", "new", "selection", "for", "simplicity", ",", "this", "removes", "the", "entire", "work", "panel", "and", "recreates", "it", "with", "the", "new", "instructions" ]
[ "protected", "void", "revalidate", "(", ")", "throws", "invalid", "input", "exception", "{", "remove", "existing", "gui", "components", "(", ")", ";", "create", "gui", "components", "(", ")", ";", "}" ]
[ "tests", "the", "invariant", "that", "the", "http", "client", "for", "the", "api", "client", "must", "never", "be", "null" ]
[ "public", "void", "test", "null", "http", "client", "(", ")", "{", "api", "client", "set", "http", "client", "(", "null", ")", ";", "}" ]
[ "returns", "an", "iterator", "over", "the", "indices", "having", "the", "given", "property", "value" ]
[ "public", "long", "iterator", "get", "property", "iterator", "(", "long", "start", ")", "{", "return", "new", "long", "iterator", "impl", "(", "this", ",", "start", ",", "true", ")", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "empty", ",", "{", "@", "code", "false", "}", "otherwise" ]
[ "boolean", "is", "empty", "(", ")", "{", "return", "name", "server", "count", "=", "=", "0", ";", "}" ]
[ "returns", "the", "configured", "target", "for", "an", "existing", "configured", "target", "value", ",", "or", "{", "@", "code", "null", "}", "if", "there", "is", "not", "an", "appropriate", "configured", "target", "value", "key", "in", "the", "graph", "this", "helper", "is", "provided", "so", "legacy", "tests", "don", "'", "t", "need", "to", "know", "about", "details", "of", "skyframe", "keys" ]
[ "public", "static", "configured", "target", "get", "existing", "configured", "target", "(", "skyframe", "executor", "skyframe", "executor", ",", "label", "label", ",", "build", "configuration", "config", ")", "throws", "interrupted", "exception", "{", "configured", "target", "value", "value", "=", "get", "existing", "configured", "target", "value", "(", "skyframe", "executor", ",", "label", ",", "config", ")", ";", "if", "(", "value", "=", "=", "null", ")", "{", "return", "null", ";", "}", "return", "value", "get", "configured", "target", "(", ")", ";", "}" ]
[ "handle", "abstract", "transaction", "response" ]
[ "public", "abstract", "abstract", "transaction", "response", "handle", "(", "rpc", "context", "rpc", "context", ")", ";" ]
[ "covert", "a", "string", "to", "a", "long", "this", "support", "comma", "separated", "number", "format" ]
[ "public", "static", "long", "string", "2long", "(", "string", "s", ")", "{", "return", "long", "parse", "long", "(", "s", "trim", "(", ")", "replace", "(", "\"", ",", "\"", ",", "\"", "\"", ")", ")", ";", "}" ]
[ "note", ":", "nm", "node", "heartbeat", "is", "explicitly", "invoked", ",", "don", "'", "t", "invoke", "it", "before", "calling", "launch", "a", "m" ]
[ "public", "static", "mock", "a", "m", "launch", "a", "m", "(", "r", "m", "app", "app", ",", "mock", "r", "m", "rm", ",", "mock", "n", "m", "nm", ")", "throws", "exception", "{", "rm", "drain", "events", "implicitly", "(", ")", ";", "r", "m", "app", "attempt", "attempt", "=", "wait", "for", "attempt", "scheduled", "(", "app", ",", "rm", ")", ";", "log", "info", "(", "\"", "launch", "am", "\"", "+", "attempt", "get", "app", "attempt", "id", "(", ")", ")", ";", "nm", "node", "heartbeat", "(", "true", ")", ";", "(", "(", "abstract", "yarn", "scheduler", ")", "rm", "get", "resource", "scheduler", "(", ")", ")", "update", "(", ")", ";", "rm", "drain", "events", "implicitly", "(", ")", ";", "nm", "node", "heartbeat", "(", "true", ")", ";", "mock", "a", "m", "am", "=", "rm", "send", "a", "m", "launched", "(", "attempt", "get", "app", "attempt", "id", "(", ")", ")", ";", "rm", "wait", "for", "state", "(", "attempt", "get", "app", "attempt", "id", "(", ")", ",", "r", "m", "app", "attempt", "state", "launched", ")", ";", "return", "am", ";", "}" ]
[ "get", "an", "array", "of", "boolean", "parameters", ",", "throwing", "an", "exception", "if", "not", "found", "or", "one", "isn", "'", "t", "a", "boolean", "accepts", "\"", "true", "\"", ",", "\"", "on", "\"", ",", "\"", "yes", "\"", "(", "any", "case", ")", "and", "\"", "1", "\"", "as", "values", "for", "true", ";", "treats", "every", "other", "non", "-", "empty", "value", "as", "false", "(", "i", "e", "parses", "leniently", ")" ]
[ "public", "static", "boolean", "[", "]", "get", "required", "boolean", "parameters", "(", "servlet", "request", "request", ",", "string", "name", ")", "throws", "servlet", "request", "binding", "exception", "{", "return", "boolean", "parser", "parse", "booleans", "(", "name", ",", "request", "get", "parameter", "values", "(", "name", ")", ")", ";", "}" ]
[ "returns", "a", "view", "of", "the", "specified", "{", "@", "code", "char", "sequence", "}", "as", "a", "{", "@", "code", "list", "<", "character", ">", "}", ",", "viewing", "{", "@", "code", "sequence", "}", "as", "a", "sequence", "of", "unicode", "code", "units", "the", "view", "does", "not", "support", "any", "modification", "operations", ",", "but", "reflects", "any", "changes", "to", "the", "underlying", "character", "sequence" ]
[ "public", "static", "list", "<", "character", ">", "characters", "of", "(", "char", "sequence", "sequence", ")", "{", "return", "new", "char", "sequence", "as", "list", "(", "check", "not", "null", "(", "sequence", ")", ")", ";", "}" ]
[ "generates", "zero", "or", "more", "resulting", "timeout", "elements", "given", "a", "map", "of", "partial", "pattern", "events", "and", "the", "timestamp", "of", "the", "timeout", "the", "events", "are", "identified", "by", "their", "specified", "names" ]
[ "void", "timeout", "(", "map", "<", "string", ",", "list", "<", "in", ">", ">", "pattern", ",", "long", "timeout", "timestamp", ",", "collector", "<", "out", ">", "out", ")", "throws", "exception", ";" ]
[ "fires", "the", "{", "@", "link", "#", "on", "initialize", "(", "run", ")", "}", "event" ]
[ "public", "static", "void", "fire", "initialize", "(", "run", "r", ")", "{", "for", "(", "run", "listener", "l", ":", "all", "(", ")", ")", "{", "if", "(", "l", "target", "type", "is", "instance", "(", "r", ")", ")", "try", "{", "l", "on", "initialize", "(", "r", ")", ";", "}", "catch", "(", "throwable", "e", ")", "{", "report", "(", "e", ")", ";", "}", "}", "}" ]
[ "get", "unallocated", "resources", "on", "the", "node" ]
[ "public", "synchronized", "resource", "get", "unallocated", "resource", "(", ")", "{", "return", "this", "unallocated", "resource", ";", "}" ]
[ "returns", "type", "information", "for", "a", "table", "api", "interval", "of", "months" ]
[ "public", "static", "type", "information", "<", "integer", ">", "interval", "months", "(", ")", "{", "return", "time", "interval", "type", "info", "interval", "months", ";", "}" ]
[ "if", "the", "current", "class", "is", "not", "immediately", "enclosed", "by", "a", "method", "or", "constructor", ",", "then", "the", "value", "of", "the", "method", "index", "item", "must", "be", "zero", "otherwise", ",", "the", "value", "of", "the", "method", "index", "item", "must", "be", "a", "valid", "index", "into", "the", "constant", "pool", "table", "the", "constant", "pool", "entry", "at", "that", "index", "must", "be", "a", "constant", "name", "and", "type", "info", "structure", "representing", "the", "name", "and", "type", "of", "a", "method", "in", "the", "class", "referenced", "by", "the", "class", "index", "attribute", "above" ]
[ "public", "int", "get", "method", "index", "(", ")", "{", "return", "method", "index", "&", "0xffff", ";", "}" ]
[ "see", "{", "@", "link", "socket", "#", "get", "channel", "(", ")", "}", "calling", "this", "method", "does", "not", "trigger", "mode", "detection" ]
[ "public", "socket", "channel", "get", "channel", "(", ")", "{", "return", "get", "socket", "allow", "unknown", "mode", "(", ")", "get", "channel", "(", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "returns", "the", "{", "@", "code", "big", "integer", "}", "value", "that", "is", "equal", "to", "{", "@", "code", "x", "}", "rounded", "with", "the", "specified", "rounding", "mode", ",", "if", "possible" ]
[ "public", "static", "big", "integer", "round", "to", "big", "integer", "(", "double", "x", ",", "rounding", "mode", "mode", ")", "{", "x", "=", "round", "intermediate", "(", "x", ",", "mode", ")", ";", "if", "(", "min", "long", "as", "double", "-", "x", "<", "1", "0", "&", "x", "<", "max", "long", "as", "double", "plus", "one", ")", "{", "return", "big", "integer", "value", "of", "(", "(", "long", ")", "x", ")", ";", "}", "int", "exponent", "=", "get", "exponent", "(", "x", ")", ";", "long", "significand", "=", "get", "significand", "(", "x", ")", ";", "big", "integer", "result", "=", "big", "integer", "value", "of", "(", "significand", ")", "shift", "left", "(", "exponent", "-", "significand", "bits", ")", ";", "return", "(", "x", "<", "0", ")", "?", "result", "negate", "(", ")", ":", "result", ";", "}" ]
[ "get", "the", "name", "of", "the", "method", "that", "is", "calling", "this", "function" ]
[ "static", "string", "get", "method", "name", "(", ")", "{", "final", "stack", "trace", "element", "[", "]", "stack", "=", "thread", "current", "thread", "(", ")", "get", "stack", "trace", "(", ")", ";", "string", "method", "name", "=", "stack", "[", "3", "]", "get", "method", "name", "(", ")", ";", "return", "method", "name", ";", "}" ]
[ "add", "a", "new", "sink", "that", "forwards", "records", "from", "upstream", "parent", "processor", "andor", "source", "nodes", "to", "the", "named", "kafka", "topic", "the", "sink", "will", "use", "the", "specified", "key", "and", "value", "serializers" ]
[ "public", "synchronized", "<", "k", ",", "v", ">", "topology", "add", "sink", "(", "final", "string", "name", ",", "final", "string", "topic", ",", "final", "serializer", "<", "k", ">", "key", "serializer", ",", "final", "serializer", "<", "v", ">", "value", "serializer", ",", "final", "string", "parent", "names", ")", "{", "internal", "topology", "builder", "add", "sink", "(", "name", ",", "topic", ",", "key", "serializer", ",", "value", "serializer", ",", "null", ",", "parent", "names", ")", ";", "return", "this", ";", "}" ]
[ "provides", "a", "custom", "executor", "that", "will", "be", "used", "for", "operations", "that", "block", "or", "are", "expensive", "it", "'", "s", "an", "optional", "parameter", "if", "the", "user", "has", "not", "provided", "an", "executor", "when", "the", "channel", "is", "built", ",", "the", "builder", "will", "use", "a", "static", "cached", "thread", "pool", "the", "channel", "won", "'", "t", "take", "ownership", "of", "the", "given", "executor", "it", "'", "s", "caller", "'", "s", "responsibility", "to", "shut", "down", "the", "executor", "when", "it", "'", "s", "desired" ]
[ "public", "t", "offload", "executor", "(", "executor", "executor", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "the", "position", "in", "the", "file", "at", "which", "this", "symbol", "is", "defined", "for", "debug", "use", "<", "code", ">", "optional", "aapt", "pb", "source", "position", "source", "=", "2", ";", "<", "code", ">" ]
[ "private", "void", "clear", "source", "(", ")", "{", "source", "=", "null", ";", "bit", "field", "0", "=", "(", "bit", "field", "0", "&", "~", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ")", ";", "}" ]
[ "adds", "compiler", "settings", "to", "the", "project" ]
[ "public", "static", "void", "configure", "compile", "(", "project", "project", ")", "{", "project", "get", "extensions", "(", ")", "get", "extra", "properties", "(", ")", "set", "(", "\"", "compact", "profile", "\"", ",", "\"", "full", "\"", ")", ";", "java", "plugin", "extension", "java", "=", "project", "get", "extensions", "(", ")", "get", "by", "type", "(", "java", "plugin", "extension", "class", ")", ";", "java", "set", "source", "compatibility", "(", "build", "params", "get", "minimum", "runtime", "version", "(", ")", ")", ";", "java", "set", "target", "compatibility", "(", "build", "params", "get", "minimum", "runtime", "version", "(", ")", ")", ";", "project", "after", "evaluate", "(", "p", "-", ">", "{", "project", "get", "tasks", "(", ")", "with", "type", "(", "java", "compile", "class", ")", "configure", "each", "(", "compile", "task", "-", ">", "{", "compile", "options", "compile", "options", "=", "compile", "task", "get", "options", "(", ")", ";", "/", "*", "*", "-", "path", "because", "gradle", "will", "send", "in", "paths", "that", "don", "'", "t", "always", "exist", "*", "-", "missing", "because", "we", "have", "tons", "of", "missing", "@", "returns", "and", "@", "param", "*", "-", "serial", "because", "we", "don", "'", "t", "use", "java", "serialization", "*", "/", "/", "/", "don", "'", "t", "even", "think", "about", "passing", "args", "with", "-", "j", "-", "xxx", ",", "oracle", "will", "ask", "you", "to", "submit", "a", "bug", "report", ":", ")", "/", "/", "fail", "on", "all", "javac", "warnings", "/", "/", "todo", "discuss", "moving", "compile", "options", "get", "compiler", "args", "(", ")", "to", "use", "provider", "api", "with", "gradle", "team", "list", "<", "string", ">", "compiler", "args", "=", "compile", "options", "get", "compiler", "args", "(", ")", ";", "compiler", "args", "add", "(", "\"", "-", "werror", "\"", ")", ";", "compiler", "args", "add", "(", "\"", "-", "xlint", ":", "all", ",", "-", "path", ",", "-", "serial", ",", "-", "options", ",", "-", "deprecation", ",", "-", "try", "\"", ")", ";", "compiler", "args", "add", "(", "\"", "-", "xdoclint", ":", "all", "\"", ")", ";", "compiler", "args", "add", "(", "\"", "-", "xdoclint", ":", "-", "missing", "\"", ")", ";", "/", "/", "either", "disable", "annotation", "processor", "completely", "(", "default", ")", "or", "allow", "to", "enable", "them", "if", "an", "annotation", "processor", "is", "explicitly", "/", "/", "defined", "if", "(", "compiler", "args", "contains", "(", "\"", "-", "processor", "\"", ")", "=", "=", "false", ")", "{", "compiler", "args", "add", "(", "\"", "-", "proc", ":", "none", "\"", ")", ";", "}", "compile", "options", "set", "encoding", "(", "\"", "utf", "-", "8", "\"", ")", ";", "compile", "options", "set", "incremental", "(", "true", ")", ";", "/", "/", "workaround", "for", "https", ":", "/", "/", "github", "com", "/", "gradle", "/", "gradle", "/", "issues", "/", "14141", "compile", "task", "get", "convention", "mapping", "(", ")", "map", "(", "\"", "source", "compatibility", "\"", ",", "(", ")", "-", ">", "java", "get", "source", "compatibility", "(", ")", "to", "string", "(", ")", ")", ";", "compile", "task", "get", "convention", "mapping", "(", ")", "map", "(", "\"", "target", "compatibility", "\"", ",", "(", ")", "-", ">", "java", "get", "target", "compatibility", "(", ")", "to", "string", "(", ")", ")", ";", "compile", "options", "get", "release", "(", ")", "set", "(", "release", "version", "provider", "from", "compile", "task", "(", "project", ",", "compile", "task", ")", ")", ";", "}", ")", ";", "/", "/", "also", "apply", "release", "flag", "to", "groovy", ",", "which", "is", "used", "in", "build", "-", "tools", "project", "get", "tasks", "(", ")", "with", "type", "(", "groovy", "compile", "class", ")", "configure", "each", "(", "compile", "task", "-", ">", "{", "/", "/", "todo", ":", "this", "probably", "shouldn", "'", "t", "apply", "to", "groovy", "at", "all", "?", "compile", "task", "get", "options", "(", ")", "get", "release", "(", ")", "set", "(", "release", "version", "provider", "from", "compile", "task", "(", "project", ",", "compile", "task", ")", ")", ";", "}", ")", ";", "}", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "name", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "name", "(", "string", "name", ")", "{", "return", "by", "name", "get", "(", "name", ")", ";", "}" ]
[ "specify", "a", "custom", "message", "interpolator", "to", "use", "for", "this", "validator", "factory", "and", "its", "exposed", "default", "validator" ]
[ "public", "void", "set", "message", "interpolator", "(", "message", "interpolator", "message", "interpolator", ")", "{", "this", "message", "interpolator", "=", "message", "interpolator", ";", "}" ]
[ "get", "attribute", "integer" ]
[ "public", "integer", "get", "attribute", "integer", "(", ")", "{", "return", "attribute", "integer", ";", "}" ]
[ "write", "the", "given", "stream", "of", "{", "@", "link", "data", "buffer", "data", "buffers", "}", "to", "the", "given", "{", "@", "code", "asynchronous", "file", "channel", "}", "does", "not", "close", "the", "channel", "when", "the", "flux", "is", "terminated", ",", "and", "does", "not", "{", "@", "linkplain", "#", "release", "(", "data", "buffer", ")", "release", "}", "the", "data", "buffers", "in", "the", "source", "if", "releasing", "is", "required", ",", "then", "subscribe", "to", "the", "returned", "{", "@", "code", "flux", "}", "with", "a", "{", "@", "link", "#", "release", "consumer", "(", ")", "}", "note", "that", "the", "writing", "process", "does", "not", "start", "until", "the", "returned", "{", "@", "code", "flux", "}", "is", "subscribed", "to" ]
[ "public", "static", "flux", "<", "data", "buffer", ">", "write", "(", "publisher", "<", "?", "extends", "data", "buffer", ">", "source", ",", "asynchronous", "file", "channel", "channel", ",", "long", "position", ")", "{", "assert", "not", "null", "(", "source", ",", "\"", "'", "source", "'", "must", "not", "be", "null", "\"", ")", ";", "assert", "not", "null", "(", "channel", ",", "\"", "'", "channel", "'", "must", "not", "be", "null", "\"", ")", ";", "assert", "is", "true", "(", "position", ">", "=", "0", ",", "\"", "'", "position", "'", "must", "be", ">", "=", "0", "\"", ")", ";", "flux", "<", "data", "buffer", ">", "flux", "=", "flux", "from", "(", "source", ")", ";", "return", "flux", "create", "(", "sink", "-", ">", "{", "write", "completion", "handler", "handler", "=", "new", "write", "completion", "handler", "(", "sink", ",", "channel", ",", "position", ")", ";", "sink", "on", "dispose", "(", "handler", ")", ";", "flux", "subscribe", "(", "handler", ")", ";", "}", ")", ";", "}" ]
[ "gets", "the", "{", "@", "link", "standard", "socket", "options", "#", "so", "reuseaddr", "}", "option" ]
[ "boolean", "is", "reuse", "address", "(", ")", ";" ]
[ "repeat", "a", "string", "{", "@", "code", "repeat", "}", "times", "to", "form", "a", "new", "string", "string", "utils", "repeat", "(", "null", ",", "2", ")", "=", "null", "string", "utils", "repeat", "(", "\"", "\"", ",", "0", ")", "=", "\"", "\"", "string", "utils", "repeat", "(", "\"", "\"", ",", "2", ")", "=", "\"", "\"", "string", "utils", "repeat", "(", "\"", "a", "\"", ",", "3", ")", "=", "\"", "aaa", "\"", "string", "utils", "repeat", "(", "\"", "ab", "\"", ",", "2", ")", "=", "\"", "abab", "\"", "string", "utils", "repeat", "(", "\"", "a", "\"", ",", "-", "2", ")", "=", "\"", "\"" ]
[ "public", "static", "string", "repeat", "(", "final", "string", "str", ",", "final", "int", "repeat", ")", "{", "/", "/", "performance", "tuned", "for", "2", "0", "(", "jdk1", "4", ")", "if", "(", "str", "=", "=", "null", ")", "{", "return", "null", ";", "}", "if", "(", "repeat", "<", "=", "0", ")", "{", "return", "empty", ";", "}", "final", "int", "input", "length", "=", "str", "length", "(", ")", ";", "if", "(", "repeat", "=", "=", "1", "|", "|", "input", "length", "=", "=", "0", ")", "{", "return", "str", ";", "}", "if", "(", "input", "length", "=", "=", "1", "&", "&", "repeat", "<", "=", "pad", "limit", ")", "{", "return", "repeat", "(", "str", "char", "at", "(", "0", ")", ",", "repeat", ")", ";", "}", "final", "int", "output", "length", "=", "input", "length", "*", "repeat", ";", "switch", "(", "input", "length", ")", "{", "case", "1", ":", "return", "repeat", "(", "str", "char", "at", "(", "0", ")", ",", "repeat", ")", ";", "case", "2", ":", "final", "char", "ch", "0", "=", "str", "char", "at", "(", "0", ")", ";", "final", "char", "ch", "1", "=", "str", "char", "at", "(", "1", ")", ";", "final", "char", "[", "]", "output", "2", "=", "new", "char", "[", "output", "length", "]", ";", "for", "(", "int", "i", "=", "repeat", "*", "2", "-", "2", ";", "i", ">", "=", "0", ";", "i", "-", "-", ",", "i", "-", "-", ")", "{", "output", "2", "[", "i", "]", "=", "ch", "0", ";", "output", "2", "[", "i", "+", "1", "]", "=", "ch", "1", ";", "}", "return", "new", "string", "(", "output", "2", ")", ";", "default", ":", "final", "string", "builder", "buf", "=", "new", "string", "builder", "(", "output", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "repeat", ";", "i", "+", "+", ")", "{", "buf", "append", "(", "str", ")", ";", "}", "return", "buf", "to", "string", "(", ")", ";", "}", "}" ]
[ "register", "a", "contact", "filter", "to", "provide", "specific", "control", "over", "collision", "otherwise", "the", "default", "filter", "is", "used", "(", "b", "2", "default", "filter", ")", "the", "listener", "is", "owned", "by", "you", "and", "must", "remain", "in", "scope" ]
[ "public", "void", "set", "contact", "filter", "(", "contact", "filter", "filter", ")", "{", "this", "contact", "filter", "=", "filter", ";", "set", "use", "default", "contact", "filter", "(", "filter", "=", "=", "null", ")", ";", "}" ]
[ "sets", "an", "id", "for", "this", "{", "@", "link", "transformation", "}", "this", "is", "will", "later", "be", "hashed", "to", "a", "uid", "hash", "which", "is", "then", "used", "to", "create", "the", "job", "vertex", "i", "d", "(", "that", "is", "shown", "in", "logs", "and", "the", "web", "ui", ")", "the", "specified", "id", "is", "used", "to", "assign", "the", "same", "operator", "id", "across", "job", "submissions", "(", "for", "example", "when", "starting", "a", "job", "from", "a", "savepoint", ")", "important", ":", "this", "id", "needs", "to", "be", "unique", "per", "transformation", "and", "job", "otherwise", ",", "job", "submission", "will", "fail" ]
[ "public", "void", "set", "uid", "(", "string", "uid", ")", "{", "this", "uid", "=", "uid", ";", "}" ]
[ "test", "whether", "the", "remaining", "space", "per", "storage", "is", "individually", "considered" ]
[ "public", "void", "test", "choose", "node", "with", "multiple", "storages", "1", "(", ")", "throws", "exception", "{", "update", "heartbeat", "with", "usage", "(", "data", "nodes", "[", "5", "]", ",", "2", "*", "hdfs", "server", "constants", "min", "blocks", "for", "write", "*", "block", "size", ",", "0l", ",", "(", "2", "*", "hdfs", "server", "constants", "min", "blocks", "for", "write", "*", "block", "size", ")", "/", "3", ",", "0l", ",", "0l", ",", "0l", ",", "0", ",", "0", ")", ";", "update", "heartbeat", "for", "extra", "storage", "(", "2", "*", "hdfs", "server", "constants", "min", "blocks", "for", "write", "*", "block", "size", ",", "0l", ",", "(", "2", "*", "hdfs", "server", "constants", "min", "blocks", "for", "write", "*", "block", "size", ")", "/", "3", ",", "0l", ")", ";", "datanode", "storage", "info", "[", "]", "targets", ";", "targets", "=", "choose", "target", "(", "1", ",", "data", "nodes", "[", "5", "]", ",", "new", "array", "list", "<", "datanode", "storage", "info", ">", "(", ")", ",", "null", ")", ";", "assert", "equals", "(", "1", ",", "targets", "length", ")", ";", "assert", "equals", "(", "storages", "[", "4", "]", ",", "targets", "[", "0", "]", ")", ";", "reset", "heartbeat", "for", "storages", "(", ")", ";", "}" ]
[ "returns", "the", "internal", "array", "type", "of", "a", "given", "class", "name", "with", "a", "given", "number", "of", "dimensions", "if", "the", "number", "of", "dimensions", "is", "0", ",", "the", "class", "name", "itself", "is", "returned" ]
[ "public", "static", "string", "internal", "array", "type", "from", "class", "name", "(", "string", "internal", "class", "name", ",", "int", "dimension", "count", ")", "{", "string", "buffer", "buffer", "=", "new", "string", "buffer", "(", "internal", "class", "name", "length", "(", ")", "+", "dimension", "count", "+", "2", ")", ";", "for", "(", "int", "dimension", "=", "0", ";", "dimension", "<", "dimension", "count", ";", "dimension", "+", "+", ")", "{", "buffer", "append", "(", "class", "constants", "type", "array", ")", ";", "}", "return", "buffer", "append", "(", "class", "constants", "type", "class", "start", ")", "append", "(", "internal", "class", "name", ")", "append", "(", "class", "constants", "type", "class", "end", ")", "to", "string", "(", ")", ";", "}" ]
[ "destroy", "the", "given", "bean", "delegates", "to", "{", "@", "code", "destroy", "bean", "}", "if", "a", "corresponding", "disposable", "bean", "instance", "is", "found" ]
[ "public", "void", "destroy", "singleton", "(", "string", "bean", "name", ")", "{", "/", "/", "remove", "a", "registered", "singleton", "of", "the", "given", "name", ",", "if", "any", "remove", "singleton", "(", "bean", "name", ")", ";", "/", "/", "destroy", "the", "corresponding", "disposable", "bean", "instance", "disposable", "bean", "disposable", "bean", ";", "synchronized", "(", "this", "disposable", "beans", ")", "{", "disposable", "bean", "=", "(", "disposable", "bean", ")", "this", "disposable", "beans", "remove", "(", "bean", "name", ")", ";", "}", "destroy", "bean", "(", "bean", "name", ",", "disposable", "bean", ")", ";", "}" ]
[ "specifies", "a", "channel", "option", "as", "the", "underlying", "channel", "as", "well", "as", "network", "implementation", "may", "ignore", "this", "value", "applications", "should", "consider", "it", "a", "hint" ]
[ "public", "<", "t", ">", "netty", "server", "builder", "with", "option", "(", "channel", "option", "<", "t", ">", "option", ",", "t", "value", ")", "{", "this", "channel", "options", "put", "(", "option", ",", "value", ")", ";", "return", "this", ";", "}" ]
[ "simple", "test", "for", "list", "panel", "class" ]
[ "public", "static", "void", "main", "(", "string", "[", "]", "args", ")", "{", "try", "{", "u", "i", "manager", "set", "look", "and", "feel", "(", "u", "i", "manager", "get", "system", "look", "and", "feel", "class", "name", "(", ")", ")", ";", "}", "catch", "(", "exception", "exc", ")", "{", "system", "out", "println", "(", "\"", "error", "loading", "l", "&", "f", ":", "\"", "+", "exc", ")", ";", "}", "final", "j", "frame", "frame", "=", "new", "j", "frame", "(", "\"", "list", "panel", "\"", ")", ";", "frame", "get", "content", "pane", "(", ")", "set", "layout", "(", "new", "grid", "layout", "(", "1", ",", "1", ")", ")", ";", "final", "list", "panel", "lbp", "=", "new", "list", "panel", "(", ")", ";", "final", "default", "list", "model", "<", "string", ">", "list", "model", "=", "new", "default", "list", "model", "<", ">", "(", ")", ";", "frame", "get", "content", "pane", "(", ")", "add", "(", "lbp", ")", ";", "frame", "add", "window", "listener", "(", "new", "window", "adapter", "(", ")", "{", "@", "override", "public", "void", "window", "closing", "(", "window", "event", "e", ")", "{", "system", "exit", "(", "0", ")", ";", "}", "}", ")", ";", "list", "model", "add", "element", "(", "\"", "ellen", "\"", ")", ";", "list", "model", "add", "element", "(", "\"", "bill", "\"", ")", ";", "list", "model", "add", "element", "(", "\"", "mike", "\"", ")", ";", "list", "model", "add", "element", "(", "\"", "dennis", "\"", ")", ";", "lbp", "set", "list", "model", "(", "list", "model", ")", ";", "lbp", "set", "list", "title", "(", "\"", "developers", "\"", ")", ";", "frame", "pack", "(", ")", ";", "frame", "set", "visible", "(", "true", ")", ";", "}" ]
[ "<", "code", ">", "optional", "aapt", "pb", "file", "reference", "file", "=", "5", ";", "<", "code", ">" ]
[ "private", "void", "set", "file", "(", "com", "android", "aapt", "resources", "file", "reference", "builder", "builder", "for", "value", ")", "{", "file", "=", "builder", "for", "value", "build", "(", ")", ";", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "1", "0", ";", "}" ]
[ "fetching", "live", "data", "nodes", "by", "passing", "remove", "decommissioned", "node", "value", "as", "false", "-", "returns", "live", "node", "list", "with", "node", "in", "decommissioned", "state", "true", "-", "returns", "live", "node", "list", "without", "node", "in", "decommissioned", "state" ]
[ "public", "void", "test", "count", "on", "decommissioned", "node", "list", "(", ")", "throws", "i", "o", "exception", "{", "get", "conf", "(", ")", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "heartbeat", "interval", "key", ",", "1", ")", ";", "get", "conf", "(", ")", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "heartbeat", "recheck", "interval", "key", ",", "1", ")", ";", "try", "{", "start", "cluster", "(", "1", ",", "1", ")", ";", "array", "list", "<", "array", "list", "<", "datanode", "info", ">", ">", "namenode", "decom", "list", "=", "new", "array", "list", "<", "array", "list", "<", "datanode", "info", ">", ">", "(", "1", ")", ";", "namenode", "decom", "list", "add", "(", "0", ",", "new", "array", "list", "<", "datanode", "info", ">", "(", "1", ")", ")", ";", "/", "/", "move", "datanode", "1", "to", "decommissioned", "state", "array", "list", "<", "datanode", "info", ">", "decommissioned", "node", "=", "namenode", "decom", "list", "get", "(", "0", ")", ";", "take", "node", "outof", "service", "(", "0", ",", "null", ",", "0", ",", "decommissioned", "node", ",", "admin", "states", "decommissioned", ")", ";", "f", "s", "namesystem", "ns", "=", "get", "cluster", "(", ")", "get", "namesystem", "(", "0", ")", ";", "datanode", "manager", "datanode", "manager", "=", "ns", "get", "block", "manager", "(", ")", "get", "datanode", "manager", "(", ")", ";", "list", "<", "datanode", "descriptor", ">", "live", "=", "new", "array", "list", "<", "datanode", "descriptor", ">", "(", ")", ";", "/", "/", "fetch", "datanode", "with", "false", "should", "return", "livedecommisioned", "node", "datanode", "manager", "fetch", "datanodes", "(", "live", ",", "null", ",", "false", ")", ";", "assert", "true", "(", "1", "=", "=", "live", "size", "(", ")", ")", ";", "/", "/", "fetch", "datanode", "with", "true", "should", "not", "return", "livedecommisioned", "node", "datanode", "manager", "fetch", "datanodes", "(", "live", ",", "null", ",", "true", ")", ";", "assert", "true", "(", "0", "=", "=", "live", "size", "(", ")", ")", ";", "}", "finally", "{", "shutdown", "cluster", "(", ")", ";", "}", "}" ]
[ "returns", "the", "value", "of", "a", "header", "with", "the", "specified", "name", "in", "milliseconds", "if", "there", "is", "more", "than", "one", "value", "for", "the", "specified", "name", ",", "the", "first", "value", "in", "insertion", "order", "is", "returned" ]
[ "long", "get", "time", "millis", "(", "k", "name", ",", "long", "default", "value", ")", ";" ]
[ "organizes", "the", "list", "of", "constraint", "sets", "into", "groups", "that", "will", "first", "be", "\"", "a", "n", "ded", "\"", "together", ",", "then", "those", "\"", "and", "\"", "groups", "will", "be", "\"", "o", "red", "\"", "together" ]
[ "private", "or", "list", "build", "or", "list", "(", ")", "{", "or", "list", "local", "or", "list", "=", "new", "or", "list", "(", ")", ";", "if", "(", "constraint", "sets", "is", "empty", "(", ")", ")", "{", "return", "local", "or", "list", ";", "}", "and", "list", "current", "and", "list", "=", "new", "and", "list", "(", ")", ";", "local", "or", "list", "add", "and", "list", "(", "current", "and", "list", ")", ";", "current", "and", "list", "add", "constraint", "set", "(", "constraint", "sets", "get", "(", "0", ")", ")", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "constraint", "sets", "size", "(", ")", ";", "i", "+", "+", ")", "{", "column", "constraint", "set", "<", "r", ",", "?", ">", "column", "constraint", "set", "=", "constraint", "sets", "get", "(", "i", ")", ";", "/", "/", "if", "the", "logical", "operation", "is", "or", ",", "start", "a", "new", "list", "of", "a", "n", "ded", "sets", "if", "(", "column", "constraint", "set", "get", "logic", "operation", "(", ")", "=", "=", "logic", "operation", "or", ")", "{", "current", "and", "list", "=", "new", "and", "list", "(", ")", ";", "local", "or", "list", "add", "and", "list", "(", "current", "and", "list", ")", ";", "}", "current", "and", "list", "add", "constraint", "set", "(", "column", "constraint", "set", ")", ";", "}", "return", "local", "or", "list", ";", "}" ]
[ "all", "input", "artifacts", "in", "the", "javabase" ]
[ "public", "nested", "set", "<", "artifact", ">", "java", "base", "inputs", "(", ")", "{", "return", "java", "base", "inputs", ";", "}" ]
[ "creates", "a", "new", "{", "@", "link", "job", "}", "with", "no", "particular", "{", "@", "link", "cluster", "}", "and", "a", "given", "{", "@", "link", "configuration", "}", "the", "<", "code", ">", "job", "<", "code", ">", "makes", "a", "copy", "of", "the", "<", "code", ">", "configuration", "<", "code", ">", "so", "that", "any", "necessary", "internal", "modifications", "do", "not", "reflect", "on", "the", "incoming", "parameter", "a", "cluster", "will", "be", "created", "from", "the", "conf", "parameter", "only", "when", "it", "'", "s", "needed" ]
[ "public", "static", "job", "get", "instance", "(", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "/", "/", "create", "with", "a", "null", "cluster", "job", "conf", "job", "conf", "=", "new", "job", "conf", "(", "conf", ")", ";", "return", "new", "job", "(", "job", "conf", ")", ";", "}" ]
[ "return", "a", "window", "definition", "with", "the", "original", "size", ",", "but", "advance", "(", "\"", "hop", "\"", ")", "the", "window", "by", "the", "given", "interval", ",", "which", "specifies", "by", "how", "much", "a", "window", "moves", "forward", "relative", "to", "the", "previous", "one", "the", "time", "interval", "represented", "by", "the", "n", "-", "th", "window", "is", ":", "{", "@", "code", "[", "n", "advance", ",", "n", "advance", "+", "size", ")", "}", "this", "provides", "the", "semantics", "of", "hopping", "windows", ",", "which", "are", "fixed", "-", "sized", ",", "overlapping", "windows" ]
[ "public", "time", "windows", "advance", "by", "(", "final", "long", "advance", "ms", ")", "{", "if", "(", "advance", "ms", "<", "=", "0", "|", "|", "advance", "ms", ">", "size", "ms", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "string", "format", "(", "\"", "window", "advancement", "interval", "should", "be", "more", "than", "zero", "\"", "+", "\"", "and", "less", "than", "window", "duration", "which", "is", "%", "d", "ms", ",", "but", "given", "advancement", "interval", "is", ":", "%", "d", "ms", "\"", ",", "size", "ms", ",", "advance", "ms", ")", ")", ";", "}", "return", "new", "time", "windows", "(", "size", "ms", ",", "advance", "ms", ",", "grace", "ms", ",", "maintain", "duration", "ms", ",", "segments", ")", ";", "}" ]
[ "test", "to", "check", "the", "local", "dir", "allocation", "for", "the", "invalid", "path", "hadoop", "-", "8437" ]
[ "public", "void", "test", "get", "local", "path", "for", "write", "for", "invalid", "paths", "(", ")", "throws", "exception", "{", "conf", "set", "(", "context", ",", "\"", "\"", ")", ";", "try", "{", "dir", "allocator", "get", "local", "path", "for", "write", "(", "\"", "/", "test", "\"", ",", "conf", ")", ";", "fail", "(", "\"", "not", "throwing", "the", "exception", "\"", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "assert", "equals", "(", "\"", "incorrect", "exception", "message", "\"", ",", "\"", "no", "space", "available", "in", "any", "of", "the", "local", "directories", "\"", ",", "e", "get", "message", "(", ")", ")", ";", "}", "}" ]
[ "get", "the", "maximum", "percentage", "of", "reduce", "tasks", "that", "can", "fail", "without", "the", "job", "being", "aborted", "each", "reduce", "task", "is", "executed", "a", "minimum", "of", "{", "@", "link", "#", "get", "max", "reduce", "attempts", "(", ")", "}", "attempts", "before", "being", "declared", "as", "failed", "defaults", "to", "<", "code", ">", "zero", "<", "code", ">", ",", "i", "e", "any", "failed", "reduce", "-", "task", "results", "in", "the", "job", "being", "declared", "as", "{", "@", "link", "job", "status", "#", "failed", "}" ]
[ "public", "int", "get", "max", "reduce", "task", "failures", "percent", "(", ")", "{", "return", "get", "int", "(", "job", "context", "reduce", "failures", "maxpercent", ",", "0", ")", ";", "}" ]
[ "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")", "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")" ]
[ "public", "void", "test", "group", "parameters", "test", "(", "test", "context", "test", "context", ")", "{", "async", "async", "=", "test", "context", "async", "(", ")", ";", "integer", "required", "string", "group", "=", "null", ";", "boolean", "required", "boolean", "group", "=", "null", ";", "long", "required", "int", "6", "4", "group", "=", "null", ";", "integer", "string", "group", "=", "null", ";", "boolean", "boolean", "group", "=", "null", ";", "long", "int", "6", "4", "group", "=", "null", ";", "api", "test", "group", "parameters", "(", "required", "string", "group", ",", "required", "boolean", "group", ",", "required", "int", "6", "4", "group", ",", "string", "group", ",", "boolean", "group", ",", "int", "6", "4", "group", ",", "result", "-", ">", "{", "/", "/", "todo", ":", "test", "validations", "async", "complete", "(", ")", ";", "}", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "throws", "{", "@", "link", "illegal", "argument", "exception", "}", "if", "the", "precondition", "for", "{", "@", "link", "#", "unsafe", "shallow", "freeze", "}", "is", "violated", "to", "be", "used", "by", "implementors", "of", "{", "@", "link", "#", "unsafe", "shallow", "freeze", "}" ]
[ "static", "void", "check", "unsafe", "shallow", "freeze", "precondition", "(", "freezable", "freezable", ")", "{", "mutability", "mutability", "=", "freezable", "mutability", "(", ")", ";", "if", "(", "mutability", "is", "frozen", "(", ")", ")", "{", "/", "/", "it", "'", "s", "not", "safe", "to", "rewrite", "the", "mutability", "pointer", "if", "this", "is", "already", "frozen", ",", "because", "we", "/", "/", "could", "be", "accessed", "by", "multiple", "threads", "throw", "new", "illegal", "argument", "exception", "(", "\"", "cannot", "call", "unsafe", "shallow", "freeze", "(", ")", "on", "an", "object", "whose", "mutability", "is", "already", "frozen", "\"", ")", ";", "}", "if", "(", "!", "mutability", "allows", "unsafe", "shallow", "freeze", "(", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "cannot", "call", "unsafe", "shallow", "freeze", "(", ")", "on", "a", "mutable", "object", "whose", "mutability", "'", "s", "\"", "+", "\"", "allows", "unsafe", "shallow", "freeze", "(", ")", "=", "=", "false", "\"", ")", ";", "}", "}" ]
[ "release", "the", "given", "value", "after", "calling", "this", "method", ",", "the", "caller", "is", "no", "longer", "responsible", "for", "managing", "lifetime", "of", "the", "value", "this", "method", "is", "not", "permitted", "to", "throw", "an", "exception", "and", "is", "always", "required", "to", "succeed", "it", "is", "often", "called", "from", "contexts", "like", "catch", "blocks", "or", "finally", "blocks", "to", "cleanup", "resources", "throwing", "an", "exception", "could", "result", "in", "swallowing", "the", "original", "exception" ]
[ "void", "release", "(", "t", "value", ")", ";" ]
[ "moves", "this", "history", "list", "'", "s", "current", "item", "pointer", "back", "one", "and", "then", "calls", "the", "user", "-", "provided", "callback", "to", "signal", "the", "newly", "selected", "item", "no", "action", "is", "taken", "if", "the", "current", "pointer", "is", "already", "at", "the", "beginning", "of", "the", "list" ]
[ "public", "void", "go", "back", "(", ")", "{", "if", "(", "history", "index", "=", "=", "0", ")", "{", "return", ";", "}", "t", "leaving", "=", "get", "current", "history", "item", "(", ")", ";", "t", "t", "=", "history", "stack", "get", "(", "-", "-", "history", "index", ")", ";", "drop", "null", "(", ")", ";", "broadcast", "(", "t", ",", "leaving", ")", ";", "}" ]
[ "create", "column", "statistics", "from", "the", "given", "hive", "column", "stats", "of", "a", "hive", "table" ]
[ "public", "static", "column", "statistics", "create", "table", "column", "stats", "(", "table", "hive", "table", ",", "map", "<", "string", ",", "catalog", "column", "statistics", "data", "base", ">", "col", "stats", ",", "string", "hive", "version", ")", "{", "column", "statistics", "desc", "desc", "=", "new", "column", "statistics", "desc", "(", "true", ",", "hive", "table", "get", "db", "name", "(", ")", ",", "hive", "table", "get", "table", "name", "(", ")", ")", ";", "return", "create", "hive", "column", "statistics", "(", "col", "stats", ",", "hive", "table", "get", "sd", "(", ")", ",", "desc", ",", "hive", "version", ")", ";", "}" ]
[ "determine", "the", "conventional", "variable", "name", "for", "the", "return", "type", "of", "the", "given", "method", ",", "taking", "the", "generic", "collection", "type", ",", "if", "any", ",", "into", "account", ",", "falling", "back", "on", "the", "given", "actual", "return", "value", "if", "the", "method", "declaration", "is", "not", "specific", "enough", ",", "e", "g", "{", "@", "code", "object", "}", "return", "type", "or", "untyped", "collection" ]
[ "public", "static", "string", "get", "variable", "name", "for", "return", "type", "(", "method", "method", ",", "@", "nullable", "object", "value", ")", "{", "return", "get", "variable", "name", "for", "return", "type", "(", "method", ",", "method", "get", "return", "type", "(", ")", ",", "value", ")", ";", "}" ]
[ "<", "code", ">", "repeated", "org", "apache", "dubbo", "common", "serialize", "protobuf", "model", "phone", "number", "phone", "=", "8", ";", "<", "code", ">" ]
[ "public", "google", "p", "b", "phone", "number", "get", "phone", "(", "int", "index", ")", "{", "if", "(", "phone", "builder", "=", "=", "null", ")", "{", "return", "phone", "get", "(", "index", ")", ";", "}", "else", "{", "return", "phone", "builder", "get", "message", "(", "index", ")", ";", "}", "}" ]
[ "delete", "user", "{", "username", "}", ":", "delete", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "default", "response", "entity", "<", "void", ">", "delete", "user", "(", "@", "api", "param", "(", "value", "=", "\"", "the", "name", "that", "needs", "to", "be", "deleted", "\"", ",", "required", "=", "true", ")", "@", "path", "variable", "(", "\"", "username", "\"", ")", "string", "username", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "gets", "the", "type", "stored", "at", "the", "given", "local", "index", ",", "which", "is", "expected", "to", "be", "an", "initialized", "category", "-", "1", "value" ]
[ "public", "abstract", "type", "bearer", "get", "category", "1", "(", "int", "idx", ")", ";" ]
[ "return", "whether", "to", "always", "apply", "the", "message", "format", "rules", ",", "parsing", "even", "messages", "without", "arguments" ]
[ "protected", "boolean", "is", "always", "use", "message", "format", "(", ")", "{", "return", "this", "always", "use", "message", "format", ";", "}" ]
[ "return", "true", "if", "the", "given", "data", "type", "is", "in", "this", "cycle", "group" ]
[ "public", "boolean", "contains", "(", "data", "type", "dt", ")", "{", "return", "exists", "(", "dt", ")", ";", "}" ]
[ "creates", "an", "{", "@", "link", "artifact", "name", "pattern", "}", "from", "a", "{", "@", "link", "starlark", "info", "}" ]
[ "static", "artifact", "name", "pattern", "artifact", "name", "pattern", "from", "starlark", "(", "starlark", "info", "artifact", "name", "pattern", "struct", ")", "throws", "eval", "exception", "{", "check", "right", "provider", "type", "(", "artifact", "name", "pattern", "struct", ",", "\"", "artifact", "name", "pattern", "\"", ")", ";", "string", "category", "name", "=", "get", "mandatory", "field", "from", "starlark", "provider", "(", "artifact", "name", "pattern", "struct", ",", "\"", "category", "name", "\"", ",", "string", "class", ")", ";", "if", "(", "category", "name", "=", "=", "null", "|", "|", "category", "name", "is", "empty", "(", ")", ")", "{", "throw", "info", "error", "(", "artifact", "name", "pattern", "struct", ",", "\"", "the", "'", "category", "name", "'", "field", "of", "artifact", "name", "pattern", "must", "be", "a", "nonempty", "string", "\"", ")", ";", "}", "artifact", "category", "found", "category", "=", "null", ";", "for", "(", "artifact", "category", "artifact", "category", ":", "artifact", "category", "values", "(", ")", ")", "{", "if", "(", "category", "name", "equals", "(", "artifact", "category", "get", "category", "name", "(", ")", ")", ")", "{", "found", "category", "=", "artifact", "category", ";", "}", "}", "if", "(", "found", "category", "=", "=", "null", ")", "{", "throw", "info", "error", "(", "artifact", "name", "pattern", "struct", ",", "\"", "artifact", "category", "%", "s", "not", "recognized", "\"", ",", "category", "name", ")", ";", "}", "string", "extension", "=", "strings", "null", "to", "empty", "(", "get", "mandatory", "field", "from", "starlark", "provider", "(", "artifact", "name", "pattern", "struct", ",", "\"", "extension", "\"", ",", "string", "class", ")", ")", ";", "if", "(", "!", "found", "category", "get", "allowed", "extensions", "(", ")", "contains", "(", "extension", ")", ")", "{", "throw", "info", "error", "(", "artifact", "name", "pattern", "struct", ",", "\"", "unrecognized", "file", "extension", "'", "%", "s", "'", ",", "allowed", "extensions", "are", "%", "s", ",", "\"", "+", "\"", "please", "check", "artifact", "name", "pattern", "configuration", "for", "%", "s", "in", "your", "rule", "\"", ",", "extension", ",", "string", "util", "join", "english", "list", "(", "found", "category", "get", "allowed", "extensions", "(", ")", ",", "\"", "or", "\"", ",", "\"", "'", "\"", ")", ",", "found", "category", "get", "category", "name", "(", ")", ")", ";", "}", "string", "prefix", "=", "strings", "null", "to", "empty", "(", "get", "mandatory", "field", "from", "starlark", "provider", "(", "artifact", "name", "pattern", "struct", ",", "\"", "prefix", "\"", ",", "string", "class", ")", ")", ";", "return", "new", "artifact", "name", "pattern", "(", "found", "category", ",", "prefix", ",", "extension", ")", ";", "}" ]
[ "modify", "the", "config", "and", "start", "up", "additional", "data", "nodes", "the", "info", "port", "for", "data", "nodes", "is", "guaranteed", "to", "use", "a", "free", "port", "data", "nodes", "can", "run", "with", "the", "name", "node", "in", "the", "mini", "cluster", "or", "a", "real", "name", "node", "for", "example", ",", "running", "with", "a", "real", "name", "node", "is", "useful", "when", "running", "simulated", "data", "nodes", "with", "a", "real", "name", "node", "if", "minicluster", "'", "s", "name", "node", "is", "null", "assume", "that", "the", "conf", "has", "been", "set", "with", "the", "right", "address", ":", "port", "of", "the", "name", "node" ]
[ "public", "synchronized", "void", "start", "data", "nodes", "(", "configuration", "conf", ",", "int", "num", "data", "nodes", ",", "boolean", "manage", "dfs", "dirs", ",", "startup", "option", "operation", ",", "string", "[", "]", "racks", ",", "string", "[", "]", "hosts", ",", "long", "[", "]", "simulated", "capacities", ")", "throws", "i", "o", "exception", "{", "start", "data", "nodes", "(", "conf", ",", "num", "data", "nodes", ",", "manage", "dfs", "dirs", ",", "operation", ",", "racks", ",", "hosts", ",", "simulated", "capacities", ",", "false", ")", ";", "}" ]
[ "shortcut", "to", "build", "the", "test", "client" ]
[ "web", "test", "client", "build", "(", ")", ";" ]