docstring_tokens
list
code_tokens
list
[ "verify", "that", "writing", "to", "ssd", "and", "disk", "will", "write", "to", "the", "correct", "storage", "types" ]
[ "public", "void", "test", "target", "storage", "types", "(", ")", "throws", "reconfiguration", "exception", ",", "interrupted", "exception", ",", "timeout", "exception", ",", "i", "o", "exception", "{", "/", "/", "disk", "and", "not", "anything", "else", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", "}", ",", "\"", "one", "ssd", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "archive", ",", "storage", "type", "nvdimm", "}", ")", ";", "/", "/", "only", "on", "ssd", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", "}", ",", "\"", "all", "ssd", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ssd", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "disk", ",", "storage", "type", "archive", ",", "storage", "type", "nvdimm", "}", ")", ";", "/", "/", "only", "on", "ssd", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "disk", ",", "storage", "type", "disk", ",", "storage", "type", "disk", "}", "}", ",", "\"", "all", "ssd", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ssd", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "disk", ",", "storage", "type", "archive", ",", "storage", "type", "nvdimm", "}", ")", ";", "/", "/", "disk", "and", "not", "anything", "else", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", "}", ",", "\"", "hot", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "disk", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", ",", "storage", "type", "archive", ",", "storage", "type", "nvdimm", "}", ")", ";", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "archive", ",", "storage", "type", "archive", "}", ",", "{", "storage", "type", "archive", ",", "storage", "type", "archive", "}", "}", ",", "\"", "warm", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "disk", ",", "storage", "type", "archive", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", ",", "storage", "type", "nvdimm", "}", ")", ";", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "archive", ",", "storage", "type", "archive", "}", ",", "{", "storage", "type", "archive", ",", "storage", "type", "archive", "}", "}", ",", "\"", "cold", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "archive", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", ",", "storage", "type", "disk", ",", "storage", "type", "nvdimm", "}", ")", ";", "/", "/", "we", "wait", "for", "lasy", "persist", "to", "write", "to", "disk", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", ",", "{", "storage", "type", "ssd", ",", "storage", "type", "disk", "}", "}", ",", "\"", "lazy", "persist", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "disk", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", ",", "storage", "type", "archive", ",", "storage", "type", "nvdimm", "}", ")", ";", "test", "storage", "types", "(", "new", "storage", "type", "[", "]", "[", "]", "{", "{", "storage", "type", "nvdimm", ",", "storage", "type", "disk", ",", "storage", "type", "ssd", "}", ",", "{", "storage", "type", "nvdimm", ",", "storage", "type", "disk", ",", "storage", "type", "ssd", "}", "}", ",", "\"", "all", "nvdimm", "\"", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "nvdimm", "}", ",", "new", "storage", "type", "[", "]", "{", "storage", "type", "ram", "disk", ",", "storage", "type", "ssd", ",", "storage", "type", "disk", ",", "storage", "type", "archive", "}", ")", ";", "}" ]
[ "create", "a", "map", "block", "directly", "from", "columnar", "nulls", ",", "keys", ",", "values", ",", "and", "offsets", "into", "the", "keys", "and", "values", "a", "null", "map", "must", "have", "no", "entries" ]
[ "public", "static", "map", "block", "from", "key", "value", "block", "(", "int", "position", "count", ",", "optional", "<", "boolean", "[", "]", ">", "map", "is", "null", ",", "int", "[", "]", "offsets", ",", "block", "key", "block", ",", "block", "value", "block", ")", "{", "validate", "constructor", "arguments", "(", "0", ",", "position", "count", ",", "map", "is", "null", "or", "else", "(", "null", ")", ",", "offsets", ",", "key", "block", ",", "value", "block", ")", ";", "return", "create", "map", "block", "internal", "(", "0", ",", "position", "count", ",", "map", "is", "null", ",", "offsets", ",", "key", "block", ",", "value", "block", ",", "new", "hash", "tables", "(", "optional", "empty", "(", ")", ",", "position", "count", ",", "key", "block", "get", "position", "count", "(", ")", "*", "hash", "multiplier", ")", ")", ";", "}" ]
[ "return", "the", "nested", "path", "of", "the", "object", "wrapped", "by", "this", "accessor" ]
[ "public", "final", "string", "get", "nested", "path", "(", ")", "{", "return", "this", "nested", "path", ";", "}" ]
[ "bubbles", "a", "value", "from", "{", "@", "code", "index", "}", "up", "the", "levels", "of", "this", "heap", ",", "and", "returns", "the", "index", "the", "element", "ended", "up", "at" ]
[ "int", "bubble", "up", "alternating", "levels", "(", "int", "index", ",", "e", "x", ")", "{", "while", "(", "index", ">", "2", ")", "{", "int", "grand", "parent", "index", "=", "get", "grandparent", "index", "(", "index", ")", ";", "e", "e", "=", "element", "data", "(", "grand", "parent", "index", ")", ";", "if", "(", "ordering", "compare", "(", "e", ",", "x", ")", "<", "=", "0", ")", "{", "break", ";", "}", "queue", "[", "index", "]", "=", "e", ";", "index", "=", "grand", "parent", "index", ";", "}", "queue", "[", "index", "]", "=", "x", ";", "return", "index", ";", "}" ]
[ "a", "shortcut", "for", "{", "@", "link", "#", "set", "wait", "for", "active", "shards", "(", "active", "shard", "count", ")", "}", "where", "the", "numerical", "shard", "count", "is", "passed", "in", ",", "instead", "of", "having", "to", "first", "call", "{", "@", "link", "active", "shard", "count", "#", "from", "(", "int", ")", "}", "to", "get", "the", "active", "shard", "count" ]
[ "public", "open", "index", "request", "builder", "set", "wait", "for", "active", "shards", "(", "final", "int", "wait", "for", "active", "shards", ")", "{", "return", "set", "wait", "for", "active", "shards", "(", "active", "shard", "count", "from", "(", "wait", "for", "active", "shards", ")", ")", ";", "}" ]
[ "skip", "tests", "that", "check", "for", "the", "ability", "to", "detect", "bad", "data", "this", "may", "be", "useful", "for", "simpler", "codecs", "which", "don", "'", "t", "do", "any", "error", "verification" ]
[ "public", "builder", "<", "t", ">", "skip", "bad", "data", "test", "(", ")", "{", "this", "skip", "bad", "data", "test", "=", "true", ";", "return", "this", ";", "}" ]
[ "static", "factory", "method", "to", "create", "an", "r", "socket", "{", "@", "link", "socket", "acceptor", "}", "backed", "by", "handlers", "with", "annotated", "methods", "effectively", "a", "shortcut", "for", ":", "<", "pre", "class", "=", "\"", "code", "\"", ">", "r", "socket", "message", "handler", "handler", "=", "new", "r", "socket", "message", "handler", "(", ")", ";", "handler", "set", "handlers", "(", "handlers", ")", ";", "handler", "set", "r", "socket", "strategies", "(", "strategies", ")", ";", "handler", "after", "properties", "set", "(", ")", ";", "socket", "acceptor", "acceptor", "=", "handler", "responder", "(", ")", ";", "this", "is", "intended", "for", "programmatic", "creation", "and", "registration", "of", "a", "client", "-", "side", "responder", "for", "example", ":", "<", "pre", "class", "=", "\"", "code", "\"", ">", "socket", "acceptor", "responder", "=", "r", "socket", "message", "handler", "responder", "(", "strategies", ",", "new", "client", "handler", "(", ")", ")", ";", "r", "socket", "requester", "builder", "(", ")", "rsocket", "connector", "(", "connector", "-", ">", "connector", "acceptor", "(", "responder", ")", ")", "connect", "tcp", "(", "\"", "localhost", "\"", ",", "server", "address", "(", ")", "get", "port", "(", ")", ")", ";", "note", "that", "the", "given", "handlers", "do", "not", "need", "to", "have", "any", "stereotype", "annotations", "such", "as", "{", "@", "code", "@", "controller", "}", "which", "helps", "to", "avoid", "overlap", "with", "server", "side", "handlers", "that", "may", "be", "used", "in", "the", "same", "application", "however", ",", "for", "more", "advanced", "scenarios", ",", "e", "g", "discovering", "handlers", "through", "a", "custom", "stereotype", "annotation", ",", "consider", "declaring", "{", "@", "code", "r", "socket", "message", "handler", "}", "as", "a", "bean", ",", "and", "then", "obtain", "the", "responder", "from", "it" ]
[ "public", "static", "socket", "acceptor", "responder", "(", "r", "socket", "strategies", "strategies", ",", "object", "candidate", "handlers", ")", "{", "assert", "not", "empty", "(", "candidate", "handlers", ",", "\"", "no", "handlers", "\"", ")", ";", "list", "<", "object", ">", "handlers", "=", "new", "array", "list", "<", ">", "(", "candidate", "handlers", "length", ")", ";", "for", "(", "object", "obj", ":", "candidate", "handlers", ")", "{", "handlers", "add", "(", "obj", "instanceof", "class", "?", "bean", "utils", "instantiate", "class", "(", "(", "class", "<", "?", ">", ")", "obj", ")", ":", "obj", ")", ";", "}", "r", "socket", "message", "handler", "handler", "=", "new", "r", "socket", "message", "handler", "(", ")", ";", "handler", "set", "handlers", "(", "handlers", ")", ";", "handler", "set", "r", "socket", "strategies", "(", "strategies", ")", ";", "handler", "after", "properties", "set", "(", ")", ";", "return", "handler", "responder", "(", ")", ";", "}" ]
[ "returns", "a", "list", "of", "{", "@", "link", "grid", "point", "2", "}", "instances", "along", "the", "given", "line", ",", "at", "integer", "coordinates" ]
[ "public", "array", "<", "grid", "point", "2", ">", "line", "(", "int", "start", "x", ",", "int", "start", "y", ",", "int", "end", "x", ",", "int", "end", "y", ")", "{", "pool", "free", "all", "(", "points", ")", ";", "points", "clear", "(", ")", ";", "return", "line", "(", "start", "x", ",", "start", "y", ",", "end", "x", ",", "end", "y", ",", "pool", ",", "points", ")", ";", "}" ]
[ "read", "exif", "info", "and", "get", "orientation", "value", "of", "the", "photo" ]
[ "public", "static", "int", "get", "exif", "orientation", "(", "string", "filepath", ")", "{", "exif", "interface", "exif", ";", "try", "{", "/", "/", "exif", "interface", "does", "not", "check", "whether", "file", "path", "is", "null", "or", "not", ",", "/", "/", "so", "passing", "null", "file", "path", "argument", "to", "its", "constructor", "causing", "sigsegv", "/", "/", "we", "should", "avoid", "such", "a", "situation", "by", "checking", "file", "path", "string", "exif", "=", "new", "instance", "(", "filepath", ")", ";", "}", "catch", "(", "i", "o", "exception", "ex", ")", "{", "log", "e", "(", "tag", ",", "\"", "cannot", "read", "exif", "\"", ",", "ex", ")", ";", "return", "exif", "degree", "fallback", "value", ";", "}", "int", "orientation", "=", "exif", "get", "attribute", "int", "(", "exif", "interface", "tag", "orientation", ",", "exif", "degree", "fallback", "value", ")", ";", "if", "(", "orientation", "=", "=", "exif", "degree", "fallback", "value", ")", "{", "return", "0", ";", "}", "/", "/", "we", "only", "recognize", "a", "subset", "of", "orientation", "tag", "values", "switch", "(", "orientation", ")", "{", "case", "exif", "interface", "orientation", "rotate", "90", ":", "return", "90", ";", "case", "exif", "interface", "orientation", "rotate", "180", ":", "return", "180", ";", "case", "exif", "interface", "orientation", "rotate", "270", ":", "return", "270", ";", "default", ":", "return", "0", ";", "}", "}" ]
[ "returns", "the", "size", "in", "bytes", "of", "this", "symbol", "table", "'", "s", "bootstrap", "methods", "attribute", "also", "adds", "the", "attribute", "name", "in", "the", "constant", "pool" ]
[ "int", "compute", "bootstrap", "methods", "size", "(", ")", "{", "if", "(", "bootstrap", "methods", "!", "=", "null", ")", "{", "add", "constant", "utf", "8", "(", "constants", "bootstrap", "methods", ")", ";", "return", "8", "+", "bootstrap", "methods", "length", ";", "}", "else", "{", "return", "0", ";", "}", "}" ]
[ "test", "that", "the", "writer", "is", "kicked", "out", "of", "a", "node" ]
[ "public", "void", "test", "evict", "writer", "(", ")", "throws", "exception", "{", "configuration", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "mini", "d", "f", "s", "cluster", "cluster", "=", "null", ";", "try", "{", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "(", "int", ")", "3", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "file", "system", "fs", "=", "cluster", "get", "file", "system", "(", ")", ";", "path", "file", "=", "new", "path", "(", "\"", "test", "evict", "writer", "dat", "\"", ")", ";", "f", "s", "data", "output", "stream", "out", "=", "fs", "create", "(", "file", ",", "(", "short", ")", "2", ")", ";", "out", "write", "(", "0x", "3", "1", ")", ";", "out", "hflush", "(", ")", ";", "/", "/", "get", "nodes", "in", "the", "pipeline", "d", "f", "s", "output", "stream", "dfs", "out", "=", "(", "d", "f", "s", "output", "stream", ")", "out", "get", "wrapped", "stream", "(", ")", ";", "datanode", "info", "[", "]", "nodes", "=", "dfs", "out", "get", "pipeline", "(", ")", ";", "assert", "assert", "equals", "(", "2", ",", "nodes", "length", ")", ";", "string", "dn", "addr", "=", "nodes", "[", "1", "]", "get", "ipc", "addr", "(", "false", ")", ";", "/", "/", "evict", "the", "writer", "from", "the", "second", "datanode", "and", "wait", "until", "/", "/", "the", "pipeline", "is", "rebuilt", "d", "f", "s", "admin", "dfsadmin", "=", "new", "d", "f", "s", "admin", "(", "conf", ")", ";", "final", "string", "[", "]", "args", "1", "=", "{", "\"", "-", "evict", "writers", "\"", ",", "dn", "addr", "}", ";", "assert", "assert", "equals", "(", "0", ",", "dfsadmin", "run", "(", "args", "1", ")", ")", ";", "out", "write", "(", "0x", "3", "1", ")", ";", "out", "hflush", "(", ")", ";", "/", "/", "get", "the", "new", "pipline", "and", "check", "the", "node", "is", "not", "in", "there", "nodes", "=", "dfs", "out", "get", "pipeline", "(", ")", ";", "try", "{", "assert", "assert", "true", "(", "nodes", "length", ">", "0", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nodes", "length", ";", "i", "+", "+", ")", "{", "assert", "assert", "false", "(", "dn", "addr", "equals", "(", "nodes", "[", "i", "]", "get", "ipc", "addr", "(", "false", ")", ")", ")", ";", "}", "}", "finally", "{", "out", "close", "(", ")", ";", "}", "}", "finally", "{", "if", "(", "cluster", "!", "=", "null", ")", "{", "cluster", "shutdown", "(", ")", ";", "}", "}", "}" ]
[ "a", "general", "helper", "api", "for", "creating", "an", "audit", "log", "for", "a", "successful", "event" ]
[ "static", "string", "create", "success", "log", "(", "string", "user", ",", "string", "operation", ",", "string", "target", ",", "inet", "address", "ip", ",", "args", "builder", "args", ")", "{", "string", "builder", "b", "=", "create", "string", "builder", "for", "success", "event", "(", "user", ",", "operation", ",", "target", ",", "ip", ")", ";", "if", "(", "args", "!", "=", "null", ")", "{", "add", "(", "args", ",", "b", ")", ";", "}", "return", "b", "to", "string", "(", ")", ";", "}" ]
[ "return", "the", "configured", "logging", "period", "frequency", "in", "milliseconds" ]
[ "public", "long", "get", "logging", "period", "(", ")", "{", "return", "this", "logging", "period", ";", "}" ]
[ "enter", "terminal", "state", "causes", "the", "health", "status", "manager", "to", "mark", "all", "services", "as", "not", "serving", ",", "and", "prevents", "future", "updates", "to", "services", "this", "method", "is", "meant", "to", "be", "called", "prior", "to", "server", "shutdown", "as", "a", "way", "to", "indicate", "that", "clients", "should", "redirect", "their", "traffic", "elsewhere" ]
[ "public", "void", "enter", "terminal", "state", "(", ")", "{", "health", "service", "enter", "terminal", "state", "(", ")", ";", "}" ]
[ "register", "a", "listener", "that", "will", "be", "called", "when", "this", "model", "is", "bound", "to", "a", "view", "the", "listener", "will", "contribute", "to", "this", "model", "'", "s", "hash", "code", "state", "per", "the", "{", "@", "link", "com", "airbnb", "epoxy", "epoxy", "attribute", "option", "#", "do", "not", "hash", "}", "rules", "you", "may", "clear", "the", "listener", "by", "setting", "a", "null", "value", ",", "or", "by", "calling", "{", "@", "link", "#", "reset", "(", ")", "}" ]
[ "public", "abstract", "model", "with", "holder", "on", "bind", "(", "on", "model", "bound", "listener", "<", "abstract", "model", "with", "holder", ",", "abstract", "model", "with", "holder", "holder", ">", "listener", ")", "{", "on", "mutation", "(", ")", ";", "this", "on", "model", "bound", "listener", "epoxy", "generated", "model", "=", "listener", ";", "return", "this", ";", "}" ]
[ "returns", "the", "first", "pdb", "-", "type", "file", "found", "assumes", "list", "of", "potential", "pdb", "dirs", "is", "in", "the", "order", "in", "which", "the", "directories", "should", "be", "searched" ]
[ "private", "static", "file", "check", "for", "p", "d", "bor", "x", "m", "l", "(", "set", "<", "file", ">", "potential", "pdb", "dirs", ",", "list", "<", "string", ">", "potential", "pdb", "names", ",", "boolean", "find", "x", "m", "l", ")", "{", "file", "pdb", ";", "for", "(", "file", "pdb", "path", ":", "potential", "pdb", "dirs", ")", "{", "for", "(", "string", "filename", ":", "potential", "pdb", "names", ")", "{", "if", "(", "find", "x", "m", "l", ")", "{", "pdb", "=", "new", "file", "(", "pdb", "path", ",", "filename", "+", "pdb", "file", "type", "xml", "to", "string", "(", ")", ")", ";", "}", "else", "{", "pdb", "=", "new", "file", "(", "pdb", "path", ",", "filename", ")", ";", "}", "/", "/", "note", ":", "is", "file", "(", ")", "also", "checks", "for", "existence", "if", "(", "pdb", "is", "file", "(", ")", ")", "{", "return", "pdb", ";", "}", "}", "}", "return", "null", ";", "}" ]
[ "update", "an", "existing", "pet" ]
[ "public", "void", "update", "pet", "(", "pet", "body", ",", "handler", "<", "async", "result", "<", "void", ">", ">", "result", "handler", ")", "{", "update", "pet", "(", "body", ",", "null", ",", "result", "handler", ")", ";", "}" ]
[ "returns", "a", "new", "{", "@", "link", "fake", "data", "}", "with", "the", "given", "{", "@", "code", "uri", "}" ]
[ "public", "fake", "data", "new", "data", "(", "uri", "uri", ")", "{", "fake", "data", "data", "=", "new", "fake", "data", "(", "this", ",", "uri", ")", ";", "data", "map", "put", "(", "uri", ",", "data", ")", ";", "return", "data", ";", "}" ]
[ "returns", "true", "if", "this", "data", "'", "s", "function", "is", "equal", "to", "the", "given", "function" ]
[ "boolean", "is", "function", "(", "function", "f", ")", ";" ]
[ "returns", "the", "currently", "tabbed", "model" ]
[ "public", "field", "format", "model", "get", "current", "model", "(", ")", "{", "return", "format", "manager", "get", "model", "(", "get", "selected", "index", "(", ")", ")", ";", "}" ]
[ "the", "java", "compatible", "android", "package", "name", "of", "the", "app", "<", "code", ">", "optional", "string", "package", "name", "=", "2", ";", "<", "code", ">" ]
[ "public", "builder", "set", "package", "name", "(", "java", "lang", "string", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "set", "package", "name", "(", "value", ")", ";", "return", "this", ";", "}" ]
[ "returns", "a", "set", "of", "{", "@", "link", "frequent", "sequence", "item", "}", "s", "composed", "of", "all", "{", "@", "link", "frequent", "sequence", "item", "}", "s", "in", "{", "@", "code", "globally", "frequent", "items", "}", "which", "occur", "after", "the", "projection", "index", "and", "in", "at", "least", "{", "@", "code", "min", "support", "}", "sequences", "in", "the", "projected", "database" ]
[ "public", "tree", "set", "<", "frequent", "sequence", "item", ">", "get", "locally", "frequent", "items", "(", "set", "<", "frequent", "sequence", "item", ">", "globally", "frequent", "items", ",", "int", "min", "support", ")", "{", "map", "<", "sequence", "item", ",", "integer", ">", "frequent", "item", "bag", "=", "new", "hash", "map", "<", "sequence", "item", ",", "integer", ">", "(", ")", ";", "for", "(", "projected", "sequence", "info", "current", "proj", "seq", ":", "projected", "info", ")", "{", "for", "(", "frequent", "sequence", "item", "glob", "freq", "item", ":", "globally", "frequent", "items", ")", "{", "sequence", "item", "global", "item", "=", "glob", "freq", "item", "get", "item", "(", ")", ";", "int", "index", "=", "global", "item", "get", "index", "(", ")", ";", "if", "(", "index", "<", "current", "proj", "seq", "get", "projected", "index", "(", ")", ")", "{", "continue", ";", "/", "/", "the", "globally", "frequent", "item", "is", "in", "a", "position", "in", "the", "prefix", ",", "no", "need", "to", "check", "}", "sequence", "full", "sequence", "=", "database", "get", "sequences", "(", ")", "get", "(", "current", "proj", "seq", "get", "sequence", "index", "(", ")", ")", ";", "string", "symbol", "=", "full", "sequence", "get", "sequence", "as", "string", "(", ")", "substring", "(", "index", ",", "index", "+", "1", ")", ";", "if", "(", "!", "symbol", "equals", "(", "global", "item", "get", "symbol", "(", ")", ")", ")", "{", "continue", ";", "/", "/", "symbols", "are", "different", ",", "check", "next", "item", "}", "integer", "count", "=", "frequent", "item", "bag", "get", "(", "global", "item", ")", ";", "if", "(", "count", "=", "=", "null", ")", "{", "frequent", "item", "bag", "put", "(", "global", "item", ",", "new", "integer", "(", "full", "sequence", "get", "count", "(", ")", ")", ")", ";", "}", "else", "{", "frequent", "item", "bag", "put", "(", "global", "item", ",", "count", "+", "full", "sequence", "get", "count", "(", ")", ")", ";", "}", "}", "}", "tree", "set", "<", "frequent", "sequence", "item", ">", "frequent", "item", "set", "=", "new", "tree", "set", "<", "frequent", "sequence", "item", ">", "(", ")", ";", "for", "(", "entry", "<", "sequence", "item", ",", "integer", ">", "item", "and", "count", ":", "frequent", "item", "bag", "entry", "set", "(", ")", ")", "{", "int", "count", "=", "item", "and", "count", "get", "value", "(", ")", ";", "if", "(", "count", ">", "=", "min", "support", ")", "{", "frequent", "item", "set", "add", "(", "new", "frequent", "sequence", "item", "(", "count", ",", "item", "and", "count", "get", "key", "(", ")", ")", ")", ";", "}", "}", "return", "frequent", "item", "set", ";", "}" ]
[ "return", "the", "body", "content", "as", "a", "string" ]
[ "public", "string", "get", "body", "as", "string", "(", "charset", "charset", ")", "{", "return", "stream", "utils", "copy", "to", "string", "(", "this", "body", ",", "charset", ")", ";", "}" ]
[ "see", "{", "@", "link", "get", "trained", "models", "request", "#", "set", "tags", "(", "list", ")", "}" ]
[ "public", "get", "trained", "models", "request", "set", "tags", "(", "string", "tags", ")", "{", "return", "set", "tags", "(", "arrays", "as", "list", "(", "tags", ")", ")", ";", "}" ]
[ "find", "for", "a", "native", "theme", "or", "a", "bundled", "theme", "by", "its", "id" ]
[ "public", "static", "m", "t", "theme", "facade", "get", "theme", "for", "(", "final", "string", "theme", "i", "d", ")", "{", "return", "themes", "map", "get", "(", "theme", "i", "d", ")", ";", "}" ]
[ "reducing", "the", "resources", "with", "no", "timeout", "should", "prevent", "new", "containers", "but", "wait", "for", "the", "current", "ones", "without", "killing" ]
[ "public", "void", "test", "reduce", "no", "timeout", "(", ")", "throws", "exception", "{", "/", "/", "new", "2gb", "container", "should", "give", "4", "gb", "used", "(", "2", "+", "2", ")", "and", "0", "gb", "available", "container", "c", "1", "=", "create", "container", "(", "am", ",", "2", "*", "gb", ")", ";", "assert", "memory", "(", "scheduler", ",", "nm", "id", ",", "4", "*", "gb", ",", "0", ")", ";", "/", "/", "update", "node", "resource", "to", "2", "gb", ",", "so", "resource", "is", "over", "-", "consumed", "update", "node", "resource", "(", "rm", ",", "nm", "id", ",", "2", "*", "gb", ",", "2", ",", "-", "1", ")", ";", "/", "/", "the", "used", "resource", "should", "still", "be", "4", "gb", "and", "negative", "available", "resource", "wait", "memory", "(", "scheduler", ",", "nm", "id", ",", "4", "*", "gb", ",", "-", "2", "*", "gb", ",", "interval", ",", "2", "*", "1000", ")", ";", "/", "/", "check", "that", "the", "nm", "got", "the", "updated", "resources", "nm", "node", "heartbeat", "(", "true", ")", ";", "assert", "equals", "(", "2", "*", "gb", ",", "nm", "get", "capability", "(", ")", "get", "memory", "size", "(", ")", ")", ";", "/", "/", "check", "that", "we", "did", "not", "get", "a", "preemption", "request", "assert", "no", "preemption", "(", "am", "schedule", "(", ")", "get", "preemption", "message", "(", ")", ")", ";", "/", "/", "check", "container", "can", "complete", "successfully", "with", "resource", "over", "-", "commitment", "container", "status", "container", "status", "=", "builder", "utils", "new", "container", "status", "(", "c", "1", "get", "id", "(", ")", ",", "container", "state", "complete", ",", "\"", "\"", ",", "0", ",", "c", "1", "get", "resource", "(", ")", ")", ";", "nm", "container", "status", "(", "container", "status", ")", ";", "log", "info", "(", "\"", "waiting", "for", "container", "to", "be", "finished", "for", "app", "\"", ")", ";", "generic", "test", "utils", "wait", "for", "(", "(", ")", "-", ">", "attempt", "get", "just", "finished", "containers", "(", ")", "size", "(", ")", "=", "=", "1", ",", "interval", ",", "2", "*", "1000", ")", ";", "assert", "equals", "(", "1", ",", "am", "schedule", "(", ")", "get", "completed", "containers", "statuses", "(", ")", "size", "(", ")", ")", ";", "assert", "memory", "(", "scheduler", ",", "nm", "id", ",", "2", "*", "gb", ",", "0", ")", ";", "/", "/", "verify", "no", "npe", "is", "trigger", "in", "schedule", "after", "resource", "is", "updated", "am", "add", "requests", "(", "new", "string", "[", "]", "{", "\"", "127", "0", "0", "1", "\"", ",", "\"", "127", "0", "0", "2", "\"", "}", ",", "3", "*", "gb", ",", "1", ",", "1", ")", ";", "allocate", "response", "alloc", "response", "2", "=", "am", "schedule", "(", ")", ";", "assert", "true", "(", "\"", "shouldn", "'", "t", "have", "enough", "resource", "to", "allocate", "containers", "\"", ",", "alloc", "response", "2", "get", "allocated", "containers", "(", ")", "is", "empty", "(", ")", ")", ";", "/", "/", "try", "10", "times", "as", "scheduling", "is", "an", "async", "process", "for", "(", "int", "i", "=", "0", ";", "i", "<", "10", ";", "i", "+", "+", ")", "{", "thread", "sleep", "(", "interval", ")", ";", "alloc", "response", "2", "=", "am", "schedule", "(", ")", ";", "assert", "true", "(", "\"", "shouldn", "'", "t", "have", "enough", "resource", "to", "allocate", "containers", "\"", ",", "alloc", "response", "2", "get", "allocated", "containers", "(", ")", "is", "empty", "(", ")", ")", ";", "}", "}" ]
[ "partial", "listing", "of", "the", "path", "being", "listed", "in", "the", "case", "where", "the", "path", "is", "a", "file", "the", "list", "will", "be", "a", "singleton", "with", "the", "file", "itself" ]
[ "public", "list", "<", "t", ">", "get", "(", ")", "throws", "i", "o", "exception", "{", "if", "(", "exception", "!", "=", "null", ")", "{", "throw", "exception", "unwrap", "remote", "exception", "(", ")", ";", "}", "return", "partial", "listing", ";", "}" ]
[ "post", "fakeouterstring", "test", "serialization", "of", "outer", "string", "types" ]
[ "default", "response", "entity", "<", "string", ">", "fake", "outer", "string", "serialize", "(", "@", "api", "param", "(", "value", "=", "\"", "input", "string", "as", "post", "body", "\"", ")", "@", "valid", "@", "request", "body", "(", "required", "=", "false", ")", "string", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "returns", "a", "set", "with", "the", "names", "of", "all", "currently", "registered", "broadcast", "states" ]
[ "set", "<", "string", ">", "get", "registered", "broadcast", "state", "names", "(", ")", ";" ]
[ "overwrite", "a", "file", ",", "verify", "that", "the", "text", "is", "different", "as", "is", "the", "timestamp", "there", "are", "some", "pauses", "in", "the", "test", "to", "ensure", "that", "timestamps", "are", "different" ]
[ "private", "void", "overwrite", "file", "in", "listing", "(", "string", "first", "text", ",", "string", "second", "text", ")", "throws", "exception", "{", "boolean", "allow", "authoritative", "=", "authoritative", ";", "log", "info", "(", "\"", "authoritative", "mode", "enabled", ":", "{", "}", "\"", ",", "allow", "authoritative", ")", ";", "string", "r", "u", "u", "i", "d", "=", "uuid", "random", "u", "u", "i", "d", "(", ")", "to", "string", "(", ")", ";", "string", "test", "dir", "=", "\"", "dir", "-", "\"", "+", "r", "u", "u", "i", "d", "+", "\"", "/", "\"", ";", "string", "test", "file", "=", "test", "dir", "+", "\"", "file", "-", "1", "-", "\"", "+", "r", "u", "u", "i", "d", ";", "path", "test", "dir", "path", "=", "path", "(", "test", "dir", ")", ";", "path", "test", "file", "path", "=", "guarded", "fs", "qualify", "(", "path", "(", "test", "file", ")", ")", ";", "try", "{", "/", "/", "create", "initial", "status", "iterator", "with", "guarded", "ms", "write", "text", "file", "(", "guarded", "fs", ",", "test", "file", "path", ",", "first", "text", ",", "true", ")", ";", "/", "/", "and", "cache", "the", "value", "for", "later", "final", "s", "3", "a", "file", "status", "orig", "status", "=", "await", "file", "status", "(", "raw", "f", "s", ",", "test", "file", "path", ")", ";", "assert", "not", "null", "(", "\"", "no", "etag", "in", "raw", "status", "\"", "+", "orig", "status", ",", "orig", "status", "get", "e", "tag", "(", ")", ")", ";", "/", "/", "do", "a", "listing", "to", "cache", "the", "lists", "should", "be", "authoritative", "if", "it", "'", "s", "set", "final", "s", "3", "a", "file", "status", "[", "]", "orig", "list", "=", "(", "s", "3", "a", "file", "status", "[", "]", ")", "guarded", "fs", "list", "status", "(", "test", "dir", "path", ")", ";", "assert", "array", "size", "(", "\"", "added", "one", "file", "to", "the", "new", "dir", ",", "so", "the", "number", "of", "\"", "+", "\"", "files", "in", "the", "dir", "should", "be", "one", "\"", ",", "1", ",", "orig", "list", ")", ";", "s", "3", "a", "file", "status", "orig", "guarded", "file", "status", "=", "orig", "list", "[", "0", "]", ";", "assert", "not", "null", "(", "\"", "no", "etag", "in", "orig", "guarded", "file", "status", "\"", "+", "orig", "guarded", "file", "status", ",", "orig", "guarded", "file", "status", "get", "e", "tag", "(", ")", ")", ";", "final", "dir", "listing", "metadata", "dir", "listing", "metadata", "=", "real", "ms", "list", "children", "(", "guarded", "fs", "qualify", "(", "test", "dir", "path", ")", ")", ";", "assert", "listing", "authority", "(", "allow", "authoritative", ",", "dir", "listing", "metadata", ")", ";", "/", "/", "a", "brief", "pause", "to", "guarantee", "timestamps", "are", "different", "wait", "for", "different", "timestamps", "(", ")", ";", "/", "/", "update", "file", "with", "second", "text", "without", "s", "3", "guard", "(", "raw", ")", "delete", "file", "(", "raw", "f", "s", ",", "test", "file", "path", ")", ";", "/", "/", "write", "to", "the", "test", "path", "with", "the", "second", "text", "write", "text", "file", "(", "raw", "f", "s", ",", "test", "file", "path", ",", "second", "text", ",", "true", ")", ";", "/", "/", "and", "await", "it", "becoming", "visible", "again", "final", "file", "status", "raw", "file", "status", "=", "await", "file", "status", "(", "raw", "f", "s", ",", "test", "file", "path", ")", ";", "/", "/", "check", "listing", "in", "guarded", "store", "final", "s", "3", "a", "file", "status", "[", "]", "mod", "list", "=", "(", "s", "3", "a", "file", "status", "[", "]", ")", "guarded", "fs", "list", "status", "(", "test", "dir", "path", ")", ";", "assert", "array", "size", "(", "\"", "added", "one", "file", "to", "the", "new", "dir", "then", "modified", "it", ",", "\"", "+", "\"", "so", "the", "number", "of", "files", "in", "the", "dir", "should", "be", "one", "\"", ",", "1", ",", "mod", "list", ")", ";", "assert", "equals", "(", "\"", "the", "only", "file", "path", "in", "the", "directory", "listing", "should", "be", "\"", "+", "\"", "equal", "to", "the", "test", "file", "path", "\"", ",", "test", "file", "path", ",", "mod", "list", "[", "0", "]", "get", "path", "(", ")", ")", ";", "/", "/", "read", "the", "file", "and", "verify", "the", "data", "eventually", "(", "stabilization", "time", ",", "probe", "interval", "millis", ",", "(", ")", "-", ">", "{", "final", "file", "status", "guarded", "file", "status", "=", "guarded", "fs", "get", "file", "status", "(", "test", "file", "path", ")", ";", "verify", "file", "status", "as", "expected", "(", "first", "text", ",", "second", "text", ",", "allow", "authoritative", ",", "orig", "status", ",", "raw", "file", "status", ",", "guarded", "file", "status", ")", ";", "}", ")", ";", "}", "finally", "{", "guarded", "fs", "delete", "(", "test", "dir", "path", ",", "true", ")", ";", "}", "}" ]
[ "get", "the", "<", "code", ">", "timeline", "entity", "group", "id", "<", "code", ">" ]
[ "public", "string", "get", "timeline", "entity", "group", "id", "(", ")", "{", "return", "this", "id", ";", "}" ]
[ "post", "fakeouternumber", "test", "serialization", "of", "outer", "number", "types" ]
[ "default", "response", "entity", "<", "big", "decimal", ">", "fake", "outer", "number", "serialize", "(", "@", "api", "param", "(", "value", "=", "\"", "input", "number", "as", "post", "body", "\"", ")", "@", "valid", "@", "request", "body", "(", "required", "=", "false", ")", "big", "decimal", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "return", "the", "latitude", "(", "in", "degrees", ")", "of", "the", "north", "edge", "of", "the", "tile" ]
[ "public", "static", "double", "tile", "y", "to", "latitude", "(", "int", "tile", "y", ",", "int", "zoom", "level", ")", "{", "int", "map", "tile", "size", "=", "1", "<", "<", "zoom", "level", ";", "double", "y", "=", "0", "5", "-", "(", "clip", "(", "tile", "y", ",", "0", ",", "map", "tile", "size", ")", "/", "map", "tile", "size", ")", ";", "return", "90", "-", "360", "*", "math", "atan", "(", "math", "exp", "(", "-", "y", "*", "2", "*", "math", "pi", ")", ")", "/", "math", "pi", ";", "}" ]
[ "sets", "the", "uniform", "with", "the", "given", "name", "the", "{", "@", "link", "shader", "program", "}", "must", "be", "bound", "for", "this", "to", "work" ]
[ "public", "void", "set", "uniformf", "(", "string", "name", ",", "vector", "3", "values", ")", "{", "set", "uniformf", "(", "name", ",", "values", "x", ",", "values", "y", ",", "values", "z", ")", ";", "}" ]
[ "marks", "up", "this", "{", "@", "link", "dyld", "cache", "local", "symbols", "info", "}", "with", "data", "structures", "and", "comments" ]
[ "public", "void", "markup", "(", "program", "program", ",", "address", "local", "symbols", "info", "addr", ",", "task", "monitor", "monitor", ",", "message", "log", "log", ")", "throws", "cancelled", "exception", "{", "markup", "n", "list", "(", "program", ",", "local", "symbols", "info", "addr", ",", "monitor", ",", "log", ")", ";", "markup", "local", "symbols", "(", "program", ",", "local", "symbols", "info", "addr", ",", "monitor", ",", "log", ")", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "the", "result", "of", "{", "@", "code", "spawn", "}", "may", "be", "cached", "remotely" ]
[ "public", "static", "boolean", "may", "be", "cached", "remotely", "(", "spawn", "spawn", ")", "{", "return", "may", "be", "cached", "(", "spawn", ")", "&", "&", "!", "spawn", "get", "execution", "info", "(", ")", "contains", "key", "(", "execution", "requirements", "no", "remote", ")", "&", "&", "!", "spawn", "get", "execution", "info", "(", ")", "contains", "key", "(", "execution", "requirements", "no", "remote", "cache", ")", ";", "}" ]
[ "logs", "out", "current", "logged", "in", "user", "session" ]
[ "public", "void", "logout", "user", "(", ")", "{", "/", "/", "todo", ":", "implement", "}" ]
[ "returns", "the", "task", "state", "stats", "for", "the", "given", "job", "vertex", "id", "or", "<", "code", ">", "null", "<", "code", ">", "if", "no", "task", "with", "such", "an", "id", "is", "available" ]
[ "public", "task", "state", "stats", "get", "task", "state", "stats", "(", "job", "vertex", "i", "d", "job", "vertex", "id", ")", "{", "return", "task", "stats", "get", "(", "job", "vertex", "id", ")", ";", "}" ]
[ "returns", "an", "array", "of", "class", "objects", "that", "represent", "the", "formal", "parameter", "types", ",", "in", "declaration", "order", ",", "of", "the", "method" ]
[ "public", "class", "[", "]", "get", "parameter", "types", "(", ")", "{", "parameter", "[", "]", "parameters", "=", "method", "get", "parameters", "(", ")", ";", "class", "[", "]", "parameter", "types", "=", "new", "class", "[", "parameters", "length", "]", ";", "for", "(", "int", "i", "=", "0", ",", "j", "=", "parameters", "length", ";", "i", "<", "j", ";", "i", "+", "+", ")", "{", "parameter", "types", "[", "i", "]", "=", "parameters", "[", "i", "]", "get", "clazz", "(", ")", ";", "}", "return", "parameter", "types", ";", "}" ]
[ "ping", "pong", "test", "with", "small", "frame", "and", "small", "buffer" ]
[ "public", "static", "void", "ping", "pong", "small", "frame", "small", "buffer", "test", "(", "int", "frame", "protector", "overhead", ",", "handshakers", "handshakers", ",", "register", "ref", "ref", ")", "throws", "general", "security", "exception", "{", "perform", "handshake", "(", "default", "transport", "buffer", "size", ",", "handshakers", ")", ";", "/", "/", "we", "send", "messages", "using", "small", "non", "-", "aligned", "buffers", "we", "use", "3", "and", "5", ",", "small", "primes", "tsi", "frame", "protector", "client", "protector", "=", "handshakers", "get", "client", "(", ")", "create", "frame", "protector", "(", "frame", "protector", "overhead", "+", "3", ",", "alloc", ")", ";", "tsi", "frame", "protector", "server", "protector", "=", "handshakers", "get", "server", "(", ")", "create", "frame", "protector", "(", "frame", "protector", "overhead", "+", "5", ",", "alloc", ")", ";", "send", "message", "(", "client", "protector", ",", "server", "protector", ",", "example", "message1", "len", ",", "example", "message1", ",", "ref", ")", ";", "send", "message", "(", "server", "protector", ",", "client", "protector", ",", "example", "message2", "len", ",", "example", "message2", ",", "ref", ")", ";", "send", "message", "(", "client", "protector", ",", "server", "protector", ",", "example", "message1", "len", ",", "example", "message1", ",", "ref", ")", ";", "send", "message", "(", "server", "protector", ",", "client", "protector", ",", "example", "message2", "len", ",", "example", "message2", ",", "ref", ")", ";", "client", "protector", "destroy", "(", ")", ";", "server", "protector", "destroy", "(", ")", ";", "}" ]
[ "returns", "a", "free", "index", "resource", "from", "the", "free", "list", "if", "there", "are", "no", "free", "index", "values", ",", "then", "this", "method", "will", "attempt", "to", "grow", "the", "index", "resource", "pool" ]
[ "private", "short", "allocate", "(", ")", "{", "if", "(", "free", "ptr", "=", "=", "end", "of", "list", ")", "{", "grow", "capacity", "(", "get", "new", "capacity", "(", ")", ")", ";", "if", "(", "free", "ptr", "=", "=", "end", "of", "list", ")", "{", "return", "end", "of", "list", ";", "}", "}", "short", "p", "=", "free", "ptr", ";", "free", "ptr", "=", "links", "[", "free", "ptr", "]", ";", "links", "[", "p", "]", "=", "end", "of", "list", ";", "+", "+", "size", ";", "return", "p", ";", "}" ]
[ "set", "the", "models", "to", "add", "to", "this", "controller", "clears", "any", "previous", "models", "and", "adds", "this", "new", "list" ]
[ "public", "void", "set", "models", "(", "list", "<", "?", "extends", "epoxy", "model", "<", "?", ">", ">", "models", ")", "{", "current", "models", "=", "models", ";", "inside", "set", "models", "=", "true", ";", "request", "model", "build", "(", ")", ";", "inside", "set", "models", "=", "false", ";", "}" ]
[ "returns", "a", "predicate", "that", "returns", "true", "for", "filenames", "contained", "in", "the", "given", "zip", "file" ]
[ "public", "static", "predicate", "<", "string", ">", "entries", "in", "(", "string", "filter", "zip", ")", "throws", "i", "o", "exception", "{", "/", "/", "aggregate", "filenames", "into", "a", "set", "so", "predicates", "in", "is", "efficient", "immutable", "set", "builder", "<", "string", ">", "filenames", "=", "immutable", "set", "builder", "(", ")", ";", "@", "suppress", "warnings", "(", "\"", "resource", "\"", ")", "/", "/", "zip", "in", "takes", "ownership", "but", "isn", "'", "t", "closable", "zip", "in", "zip", "=", "new", "zip", "in", "(", "new", "file", "input", "stream", "(", "filter", "zip", ")", "get", "channel", "(", ")", ",", "filter", "zip", ")", ";", "for", "(", "directory", "entry", "entry", ":", "zip", "central", "directory", "(", ")", "list", "(", ")", ")", "{", "filenames", "add", "(", "entry", "get", "filename", "(", ")", ")", ";", "}", "return", "predicates", "in", "(", "filenames", "build", "(", ")", ")", ";", "}" ]
[ "get", "the", "active", "kafka", "streams", "instance", "for", "given", "key" ]
[ "public", "host", "info", "get", "active", "host", "(", ")", "{", "return", "active", "host", ";", "}" ]
[ "scan", "includes", "in", "a", "swig", "file" ]
[ "void", "extract", "swig", "includes", "(", "set", "<", "artifact", ">", "includes", ",", "action", "execution", "metadata", "action", "execution", "metadata", ",", "action", "execution", "context", "action", "exec", "context", ",", "artifact", "source", ",", "immutable", "set", "<", "artifact", ">", "legal", "output", "paths", ",", "immutable", "list", "<", "path", "fragment", ">", "swig", "include", "paths", ",", "artifact", "grep", "includes", ")", "throws", "i", "o", "exception", ",", "exec", "exception", ",", "interrupted", "exception", ";" ]
[ "test", "is", "file", "closed", "when", "the", "result", "is", "false" ]
[ "public", "void", "test", "is", "file", "closed", "(", ")", "throws", "exception", "{", "path", "test", "path", "=", "new", "path", "(", "\"", "/", "is", "file", "closed", "txt", "\"", ")", ";", "distributed", "file", "system", "router", "fs", "=", "(", "distributed", "file", "system", ")", "get", "router", "file", "system", "(", ")", ";", "f", "s", "data", "output", "stream", "fs", "data", "output", "stream", "=", "null", ";", "try", "{", "fs", "data", "output", "stream", "=", "router", "fs", "create", "(", "test", "path", ")", ";", "fs", "data", "output", "stream", "write", "(", "\"", "hello", "world", "\"", "get", "bytes", "(", ")", ")", ";", "fs", "data", "output", "stream", "hflush", "(", ")", ";", "boolean", "result", "=", "router", "fs", "is", "file", "closed", "(", "test", "path", ")", ";", "assert", "false", "(", "result", ")", ";", "}", "finally", "{", "i", "o", "utils", "close", "stream", "(", "fs", "data", "output", "stream", ")", ";", "router", "fs", "delete", "(", "test", "path", ",", "true", ")", ";", "}", "}" ]
[ "gets", "the", "address", "of", "the", "try", "block", "map", ",", "if", "there", "is", "one", "otherwise", ",", "this", "returns", "null" ]
[ "public", "address", "get", "try", "block", "map", "address", "(", ")", "throws", "invalid", "data", "type", "exception", "{", "check", "validity", "(", ")", ";", "/", "/", "component", "4", "is", "try", "block", "map", "pointer", "or", "displacement", "address", "map", "address", "=", "e", "h", "data", "type", "utilities", "get", "address", "(", "get", "data", "type", "(", ")", ",", "try", "block", "map", "ordinal", ",", "get", "mem", "buffer", "(", ")", ")", ";", "return", "get", "adjusted", "address", "(", "map", "address", ",", "get", "try", "block", "count", "(", ")", ")", ";", "}" ]
[ "being", "called", "when", "a", "fatal", "error", "occurs", "important", ":", "this", "call", "should", "never", "be", "blocking", "since", "it", "might", "be", "called", "from", "within", "the", "main", "thread", "of", "an", "{", "@", "link", "rpc", "endpoint", "}" ]
[ "void", "on", "fatal", "error", "(", "throwable", "exception", ")", ";" ]
[ "gets", "information", "about", "who", "is", "consuming", "the", "outputs", "of", "this", "component", ",", "and", "how" ]
[ "public", "map", "<", "string", ",", "map", "<", "string", ",", "grouping", ">", ">", "get", "this", "targets", "(", ")", "{", "return", "get", "targets", "(", "get", "this", "component", "id", "(", ")", ")", ";", "}" ]
[ "record", "some", "set", "of", "values", "at", "the", "specified", "time", "into", "this", "helper", "this", "can", "be", "useful", "to", "avoid", "fetching", "the", "current", "time", "twice", "if", "the", "caller", "has", "already", "done", "so", "for", "other", "purposes", "this", "additionally", "allows", "the", "caller", "to", "specify", "a", "name", "for", "this", "recorder", "when", "multiple", "names", "are", "used", ",", "one", "is", "denoted", "as", "the", "primary", "recorder", "only", "recorders", "named", "as", "the", "primary", "will", "trigger", "logging", ";", "other", "names", "not", "matching", "the", "primary", "can", "only", "be", "triggered", "by", "following", "the", "primary", "this", "is", "used", "to", "coordinate", "multiple", "logging", "points", "a", "primary", "can", "be", "set", "via", "the", "{", "@", "link", "#", "log", "throttling", "helper", "(", "long", ",", "string", ")", "}", "constructor", "if", "no", "primary", "is", "set", "in", "the", "constructor", ",", "then", "the", "first", "recorder", "name", "used", "becomes", "the", "primary", "if", "multiple", "names", "are", "used", ",", "they", "maintain", "entirely", "different", "sets", "of", "values", "and", "summary", "information", "for", "example", ":", "{", "@", "code", "initialize", "\"", "pre", "\"", "as", "the", "primary", "recorder", "name", "log", "throttling", "helper", "helper", "=", "new", "log", "throttling", "helper", "(", "1000", ",", "\"", "pre", "\"", ")", ";", "log", "action", "pre", "log", "=", "helper", "record", "(", "\"", "pre", "\"", ",", "time", "monotonic", "now", "(", ")", ")", ";", "if", "(", "pre", "log", "should", "log", "(", ")", ")", "{", "}", "double", "events", "processed", "=", "perform", "some", "action", "log", "action", "post", "log", "=", "helper", "record", "(", "\"", "post", "\"", ",", "time", "monotonic", "now", "(", ")", ",", "events", "processed", ")", ";", "if", "(", "post", "log", "should", "log", "(", ")", ")", "{", "can", "use", "post", "log", "get", "stats", "(", "0", ")", "to", "access", "events", "processed", "information", "}", "}", "since", "\"", "pre", "\"", "is", "the", "primary", "recorder", "name", ",", "logging", "to", "\"", "pre", "\"", "will", "trigger", "a", "log", "action", "if", "enough", "time", "has", "elapsed", "this", "will", "indicate", "that", "\"", "post", "\"", "should", "log", "as", "well", "this", "ensures", "that", "\"", "post", "\"", "is", "always", "logged", "in", "the", "same", "iteration", "as", "\"", "pre", "\"", ",", "yet", "each", "one", "is", "able", "to", "maintain", "its", "own", "summary", "information", "other", "behavior", "is", "the", "same", "as", "{", "@", "link", "#", "record", "(", "double", ")", "}" ]
[ "public", "log", "action", "record", "(", "string", "recorder", "name", ",", "long", "current", "time", "ms", ",", "double", "values", ")", "{", "if", "(", "primary", "recorder", "name", "=", "=", "null", ")", "{", "primary", "recorder", "name", "=", "recorder", "name", ";", "}", "logging", "action", "current", "log", "=", "current", "logs", "get", "(", "recorder", "name", ")", ";", "if", "(", "current", "log", "=", "=", "null", "|", "|", "current", "log", "has", "logged", "(", ")", ")", "{", "current", "log", "=", "new", "logging", "action", "(", "values", "length", ")", ";", "if", "(", "!", "current", "logs", "contains", "key", "(", "recorder", "name", ")", ")", "{", "/", "/", "always", "log", "newly", "created", "loggers", "current", "log", "set", "should", "log", "(", ")", ";", "}", "current", "logs", "put", "(", "recorder", "name", ",", "current", "log", ")", ";", "}", "current", "log", "record", "values", "(", "values", ")", ";", "if", "(", "primary", "recorder", "name", "equals", "(", "recorder", "name", ")", "&", "&", "current", "time", "ms", "-", "min", "log", "period", "ms", ">", "=", "last", "log", "timestamp", "ms", ")", "{", "last", "log", "timestamp", "ms", "=", "current", "time", "ms", ";", "for", "(", "logging", "action", "log", ":", "current", "logs", "values", "(", ")", ")", "{", "log", "set", "should", "log", "(", ")", ";", "}", "}", "if", "(", "current", "log", "should", "log", "(", ")", ")", "{", "current", "log", "set", "has", "logged", "(", ")", ";", "return", "current", "log", ";", "}", "else", "{", "return", "do", "not", "log", ";", "}", "}" ]
[ "create", "a", "proxy", "for", "the", "wrapped", "object", "allowing", "to", "typesafely", "invoke", "methods", "on", "it", "using", "a", "custom", "interface" ]
[ "public", "<", "p", ">", "p", "proxy", "(", "final", "class", "<", "p", ">", "proxy", "type", ")", "{", "final", "boolean", "is", "map", "=", "(", "object", "instanceof", "map", ")", ";", "final", "invocation", "handler", "handler", "=", "new", "invocation", "handler", "(", ")", "{", "@", "override", "@", "suppress", "warnings", "(", "\"", "null", "\"", ")", "public", "object", "invoke", "(", "object", "proxy", ",", "method", "method", ",", "object", "[", "]", "args", ")", "{", "string", "name", "=", "method", "get", "name", "(", ")", ";", "try", "{", "return", "reflect", "(", "object", ")", "method", "(", "name", ",", "args", ")", "get", "(", ")", ";", "}", "catch", "(", "reflect", "exception", "e", ")", "{", "if", "(", "is", "map", ")", "{", "map", "<", "string", ",", "object", ">", "map", "=", "(", "map", "<", "string", ",", "object", ">", ")", "object", ";", "int", "length", "=", "(", "args", "=", "=", "null", "?", "0", ":", "args", "length", ")", ";", "if", "(", "length", "=", "=", "0", "&", "&", "name", "starts", "with", "(", "\"", "get", "\"", ")", ")", "{", "return", "map", "get", "(", "property", "(", "name", "substring", "(", "3", ")", ")", ")", ";", "}", "else", "if", "(", "length", "=", "=", "0", "&", "&", "name", "starts", "with", "(", "\"", "is", "\"", ")", ")", "{", "return", "map", "get", "(", "property", "(", "name", "substring", "(", "2", ")", ")", ")", ";", "}", "else", "if", "(", "length", "=", "=", "1", "&", "&", "name", "starts", "with", "(", "\"", "set", "\"", ")", ")", "{", "map", "put", "(", "property", "(", "name", "substring", "(", "3", ")", ")", ",", "args", "[", "0", "]", ")", ";", "return", "null", ";", "}", "}", "throw", "e", ";", "}", "}", "}", ";", "return", "(", "p", ")", "proxy", "new", "proxy", "instance", "(", "proxy", "type", "get", "class", "loader", "(", ")", ",", "new", "class", "[", "]", "{", "proxy", "type", "}", ",", "handler", ")", ";", "}" ]
[ "tests", "that", "a", "slot", "request", "which", "can", "be", "fulfilled", "will", "trigger", "a", "slot", "allocation" ]
[ "public", "void", "test", "slot", "request", "with", "free", "slot", "(", ")", "throws", "exception", "{", "final", "resource", "manager", "id", "resource", "manager", "id", "=", "resource", "manager", "id", "generate", "(", ")", ";", "final", "resource", "i", "d", "resource", "i", "d", "=", "resource", "i", "d", "generate", "(", ")", ";", "final", "job", "i", "d", "job", "id", "=", "new", "job", "i", "d", "(", ")", ";", "final", "slot", "i", "d", "slot", "id", "=", "new", "slot", "i", "d", "(", "resource", "i", "d", ",", "0", ")", ";", "final", "string", "target", "address", "=", "\"", "localhost", "\"", ";", "final", "allocation", "i", "d", "allocation", "id", "=", "new", "allocation", "i", "d", "(", ")", ";", "final", "resource", "profile", "resource", "profile", "=", "resource", "profile", "from", "resources", "(", "42", "0", ",", "1337", ")", ";", "final", "slot", "request", "slot", "request", "=", "new", "slot", "request", "(", "job", "id", ",", "allocation", "id", ",", "resource", "profile", ",", "target", "address", ")", ";", "resource", "actions", "resource", "manager", "actions", "=", "new", "testing", "resource", "actions", "builder", "(", ")", "build", "(", ")", ";", "try", "(", "slot", "manager", "impl", "slot", "manager", "=", "create", "slot", "manager", "(", "resource", "manager", "id", ",", "resource", "manager", "actions", ")", ")", "{", "final", "completable", "future", "<", "tuple", "6", "<", "slot", "i", "d", ",", "job", "i", "d", ",", "allocation", "i", "d", ",", "resource", "profile", ",", "string", ",", "resource", "manager", "id", ">", ">", "request", "future", "=", "new", "completable", "future", "<", ">", "(", ")", ";", "/", "/", "accept", "an", "incoming", "slot", "request", "final", "task", "executor", "gateway", "task", "executor", "gateway", "=", "new", "testing", "task", "executor", "gateway", "builder", "(", ")", "set", "request", "slot", "function", "(", "tuple", "6", "-", ">", "{", "request", "future", "complete", "(", "tuple", "6", "of", "(", "tuple", "6", "f", "0", ",", "tuple", "6", "f", "1", ",", "tuple", "6", "f", "2", ",", "tuple", "6", "f", "3", ",", "tuple", "6", "f", "4", ",", "tuple", "6", "f", "5", ")", ")", ";", "return", "completable", "future", "completed", "future", "(", "acknowledge", "get", "(", ")", ")", ";", "}", ")", "create", "testing", "task", "executor", "gateway", "(", ")", ";", "final", "task", "executor", "connection", "task", "executor", "connection", "=", "new", "task", "executor", "connection", "(", "resource", "i", "d", ",", "task", "executor", "gateway", ")", ";", "final", "slot", "status", "slot", "status", "=", "new", "slot", "status", "(", "slot", "id", ",", "resource", "profile", ")", ";", "final", "slot", "report", "slot", "report", "=", "new", "slot", "report", "(", "slot", "status", ")", ";", "slot", "manager", "register", "task", "manager", "(", "task", "executor", "connection", ",", "slot", "report", ",", "resource", "profile", "any", ",", "resource", "profile", "any", ")", ";", "assert", "true", "(", "\"", "the", "slot", "request", "should", "be", "accepted", "\"", ",", "slot", "manager", "register", "slot", "request", "(", "slot", "request", ")", ")", ";", "assert", "that", "(", "request", "future", "get", "(", ")", ",", "is", "(", "equal", "to", "(", "tuple", "6", "of", "(", "slot", "id", ",", "job", "id", ",", "allocation", "id", ",", "resource", "profile", ",", "target", "address", ",", "resource", "manager", "id", ")", ")", ")", ")", ";", "task", "manager", "slot", "slot", "=", "slot", "manager", "get", "slot", "(", "slot", "id", ")", ";", "assert", "equals", "(", "\"", "the", "slot", "has", "not", "been", "allocated", "to", "the", "expected", "allocation", "id", "\"", ",", "allocation", "id", ",", "slot", "get", "allocation", "id", "(", ")", ")", ";", "}", "}" ]
[ "gets", "the", "value", "to", "use", "when", "the", "aggregation", "finds", "a", "missing", "value", "in", "a", "document" ]
[ "public", "map", "<", "string", ",", "object", ">", "missing", "map", "(", ")", "{", "return", "missing", "map", ";", "}" ]
[ "set", "the", "remote", "invocation", "factory", "to", "use", "for", "this", "accessor", "default", "is", "a", "{", "@", "link", "default", "remote", "invocation", "factory", "}", "a", "custom", "invocation", "factory", "can", "add", "further", "context", "information", "to", "the", "invocation", ",", "for", "example", "user", "credentials" ]
[ "public", "void", "set", "remote", "invocation", "factory", "(", "remote", "invocation", "factory", "remote", "invocation", "factory", ")", "{", "this", "remote", "invocation", "factory", "=", "remote", "invocation", "factory", ";", "}" ]
[ "returns", "the", "datanode", "from", "which", "the", "stream", "is", "currently", "reading" ]
[ "public", "synchronized", "datanode", "info", "get", "current", "datanode", "(", ")", "{", "return", "current", "node", ";", "}" ]
[ "put", "pet", ":", "update", "an", "existing", "pet" ]
[ "public", "response", "entity", "<", "void", ">", "update", "pet", "(", "@", "api", "param", "(", "value", "=", "\"", "pet", "object", "that", "needs", "to", "be", "added", "to", "the", "store", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "pet", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "reads", "the", "state", "from", "a", "given", "file", "and", "compares", "the", "expected", "version", "against", "the", "actual", "version", "of", "the", "state" ]
[ "public", "final", "t", "read", "(", "named", "x", "content", "registry", "named", "x", "content", "registry", ",", "path", "file", ")", "throws", "i", "o", "exception", "{", "try", "(", "directory", "dir", "=", "new", "directory", "(", "file", "get", "parent", "(", ")", ")", ")", "{", "try", "(", "index", "input", "index", "input", "=", "dir", "open", "input", "(", "file", "get", "file", "name", "(", ")", "to", "string", "(", ")", ",", "i", "o", "context", "default", ")", ")", "{", "/", "/", "we", "checksum", "the", "entire", "file", "before", "we", "even", "go", "and", "parse", "it", "if", "it", "'", "s", "corrupted", "we", "barf", "right", "here", "codec", "util", "checksum", "entire", "file", "(", "index", "input", ")", ";", "codec", "util", "check", "header", "(", "index", "input", ",", "state", "file", "codec", ",", "min", "compatible", "state", "file", "version", ",", "state", "file", "version", ")", ";", "final", "x", "content", "type", "x", "content", "type", "=", "x", "content", "type", "values", "(", ")", "[", "index", "input", "read", "int", "(", ")", "]", ";", "if", "(", "x", "content", "type", "!", "=", "format", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "expected", "state", "in", "\"", "+", "file", "+", "\"", "to", "be", "\"", "+", "format", "+", "\"", "format", "but", "was", "\"", "+", "x", "content", "type", ")", ";", "}", "long", "file", "pointer", "=", "index", "input", "get", "file", "pointer", "(", ")", ";", "long", "content", "size", "=", "index", "input", "length", "(", ")", "-", "codec", "util", "footer", "length", "(", ")", "-", "file", "pointer", ";", "try", "(", "index", "input", "slice", "=", "index", "input", "slice", "(", "\"", "state", "xcontent", "\"", ",", "file", "pointer", ",", "content", "size", ")", ")", "{", "try", "(", "x", "content", "parser", "parser", "=", "x", "content", "factory", "x", "content", "(", "format", ")", "create", "parser", "(", "named", "x", "content", "registry", ",", "logging", "deprecation", "handler", "instance", ",", "new", "input", "stream", "index", "input", "(", "slice", ",", "content", "size", ")", ")", ")", "{", "return", "from", "x", "content", "(", "parser", ")", ";", "}", "}", "}", "catch", "(", "corrupt", "index", "exception", "|", "index", "format", "too", "old", "exception", "|", "index", "format", "too", "new", "exception", "ex", ")", "{", "/", "/", "we", "trick", "this", "into", "a", "dedicated", "exception", "with", "the", "original", "stacktrace", "throw", "new", "corrupt", "state", "exception", "(", "ex", ")", ";", "}", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "int", "execute", "update", "(", "string", "sql", ",", "int", "auto", "generated", "keys", ")", "throws", "s", "q", "l", "exception", "{", "connection", "mark", "commit", "state", "dirty", "(", ")", ";", "return", "delegate", "execute", "update", "(", "sql", ",", "auto", "generated", "keys", ")", ";", "}" ]
[ "create", "{", "@", "link", "annotation", "type", "mappings", "}", "for", "the", "specified", "annotation", "type" ]
[ "static", "annotation", "type", "mappings", "for", "annotation", "type", "(", "class", "<", "?", "extends", "annotation", ">", "annotation", "type", ",", "repeatable", "containers", "repeatable", "containers", ",", "annotation", "filter", "annotation", "filter", ")", "{", "if", "(", "repeatable", "containers", "=", "=", "repeatable", "containers", "standard", "repeatables", "(", ")", ")", "{", "return", "standard", "repeatables", "cache", "compute", "if", "absent", "(", "annotation", "filter", ",", "key", "-", ">", "new", "cache", "(", "repeatable", "containers", ",", "key", ")", ")", "get", "(", "annotation", "type", ")", ";", "}", "if", "(", "repeatable", "containers", "=", "=", "repeatable", "containers", "none", "(", ")", ")", "{", "return", "no", "repeatables", "cache", "compute", "if", "absent", "(", "annotation", "filter", ",", "key", "-", ">", "new", "cache", "(", "repeatable", "containers", ",", "key", ")", ")", "get", "(", "annotation", "type", ")", ";", "}", "return", "new", "annotation", "type", "mappings", "(", "repeatable", "containers", ",", "annotation", "filter", ",", "annotation", "type", ")", ";", "}" ]
[ "model", "tests", "for", "mixed", "properties", "and", "additional", "properties", "class" ]
[ "public", "void", "test", "mixed", "properties", "and", "additional", "properties", "class", "(", ")", "{", "/", "/", "todo", ":", "test", "mixed", "properties", "and", "additional", "properties", "class", "}" ]
[ "removes", "and", "returns", "the", "item", "at", "the", "specified", "index" ]
[ "public", "short", "remove", "index", "(", "int", "index", ")", "{", "if", "(", "index", ">", "=", "size", ")", "throw", "new", "index", "out", "of", "bounds", "exception", "(", "\"", "index", "can", "'", "t", "be", ">", "=", "size", ":", "\"", "+", "index", "+", "\"", ">", "=", "\"", "+", "size", ")", ";", "short", "[", "]", "items", "=", "this", "items", ";", "short", "value", "=", "items", "[", "index", "]", ";", "size", "-", "-", ";", "if", "(", "ordered", ")", "system", "arraycopy", "(", "items", ",", "index", "+", "1", ",", "items", ",", "index", ",", "size", "-", "index", ")", ";", "else", "items", "[", "index", "]", "=", "items", "[", "size", "]", ";", "return", "value", ";", "}" ]
[ "returns", "delete", "result", "for", "each", "matching", "acl", "binding" ]
[ "public", "collection", "<", "acl", "binding", "delete", "result", ">", "acl", "binding", "delete", "results", "(", ")", "{", "return", "acl", "binding", "delete", "results", ";", "}" ]
[ "function", "that", "produces", "an", "array", "list", "of", "edges" ]
[ "public", "static", "list", "<", "edge", "<", "long", ",", "long", ">", ">", "get", "long", "long", "edges", "(", ")", "{", "list", "<", "edge", "<", "long", ",", "long", ">", ">", "edges", "=", "new", "array", "list", "<", ">", "(", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "1l", ",", "2l", ",", "12l", ")", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "1l", ",", "3l", ",", "13l", ")", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "2l", ",", "3l", ",", "23l", ")", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "3l", ",", "4l", ",", "34l", ")", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "3l", ",", "5l", ",", "35l", ")", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "4l", ",", "5l", ",", "45l", ")", ")", ";", "edges", "add", "(", "new", "edge", "<", ">", "(", "5l", ",", "1l", ",", "51l", ")", ")", ";", "return", "edges", ";", "}" ]
[ "test", "date", "values", "after", "the", "run", "of", "date", "format", "runnalbe", "a", "correct", "run", "should", "deliver", "5", "times", "15", "12", "2015", "by", "each", "thread" ]
[ "public", "void", "test", "date", "values", "(", ")", "{", "for", "(", "var", "created", "date", "value", ":", "created", "date", "values", ")", "{", "assert", "equals", "(", "expected", "date", "values", ",", "created", "date", "value", ")", ";", "}", "}" ]
[ "returns", "{", "@", "code", "\"", "-", "context", "xml", "\"", "}", "in", "order", "to", "support", "detection", "of", "a", "default", "xml", "config", "file" ]
[ "protected", "string", "get", "resource", "suffix", "(", ")", "{", "return", "\"", "-", "context", "xml", "\"", ";", "}" ]
[ "get", "full", "qualified", "class", "name" ]
[ "protected", "string", "get", "qualified", "class", "name", "(", "string", "class", "name", ")", "{", "if", "(", "class", "name", "contains", "(", "\"", "\"", ")", ")", "{", "return", "class", "name", ";", "}", "if", "(", "full", "names", "contains", "key", "(", "class", "name", ")", ")", "{", "return", "full", "names", "get", "(", "class", "name", ")", ";", "}", "return", "class", "utils", "for", "name", "(", "imports", "to", "array", "(", "new", "string", "[", "0", "]", ")", ",", "class", "name", ")", "get", "name", "(", ")", ";", "}" ]
[ "return", "a", "{", "@", "link", "string", "}", "that", "is", "the", "json", "representation", "of", "the", "provided", "{", "@", "link", "to", "x", "content", "}", "wraps", "the", "output", "into", "an", "anonymous", "object", "if", "needed", "the", "content", "is", "not", "pretty", "-", "printed", "nor", "human", "readable" ]
[ "public", "static", "string", "to", "string", "(", "to", "x", "content", "to", "x", "content", ")", "{", "return", "to", "string", "(", "to", "x", "content", ",", "false", ",", "false", ")", ";", "}" ]
[ "create", "a", "new", "query", "of", "a", "random", "type" ]
[ "public", "static", "query", "builder", "create", "query", "(", "random", "r", ")", "{", "switch", "(", "random", "numbers", "random", "int", "between", "(", "r", ",", "0", ",", "3", ")", ")", "{", "case", "0", ":", "return", "new", "match", "all", "query", "builder", "tests", "(", ")", "create", "test", "query", "builder", "(", ")", ";", "case", "1", ":", "return", "new", "term", "query", "builder", "tests", "(", ")", "create", "test", "query", "builder", "(", ")", ";", "case", "2", ":", "/", "/", "we", "make", "sure", "this", "query", "has", "no", "types", "to", "avoid", "deprecation", "warnings", "in", "the", "/", "/", "tests", "that", "use", "this", "method", "return", "new", "ids", "query", "builder", "tests", "(", ")", "create", "test", "query", "builder", "(", ")", ";", "case", "3", ":", "return", "create", "multi", "term", "query", "(", "r", ")", ";", "default", ":", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}", "}" ]
[ "get", "the", "broadcast", "variables", "of", "the", "gather", "function" ]
[ "public", "list", "<", "tuple", "2", "<", "string", ",", "data", "set", "<", "?", ">", ">", ">", "get", "gather", "bcast", "vars", "(", ")", "{", "return", "this", "bc", "vars", "gather", ";", "}" ]
[ "our", "threaded", "callback" ]
[ "void", "dispose", "callback", "(", ")", "{", "close", "program", "(", ")", ";", "}" ]
[ "set", "the", "body", "of", "the", "response", "to", "the", "given", "{", "@", "code", "object", "}", "and", "return", "it", "asynchronous", "response", "bodies", "are", "supported", "by", "providing", "a", "{", "@", "link", "completion", "stage", "}", "or", "{", "@", "link", "publisher", "}", "as", "body", "(", "or", "any", "asynchronous", "producer", "of", "a", "single", "entity", "that", "can", "be", "adapted", "via", "the", "{", "@", "link", "reactive", "adapter", "registry", "}", ")" ]
[ "server", "response", "body", "(", "object", "body", ")", ";" ]
[ "sets", "the", "minimum", "interval", "between", "time", "bar", "position", "updates", "note", "that", "smaller", "intervals", ",", "e", "g", "3", "3ms", ",", "will", "result", "in", "a", "smooth", "movement", "but", "will", "use", "more", "cpu", "resources", "while", "the", "time", "bar", "is", "visible", ",", "whereas", "larger", "intervals", ",", "e", "g", "2", "0", "0ms", ",", "will", "result", "in", "a", "step", "-", "wise", "update", "with", "less", "cpu", "usage" ]
[ "public", "void", "set", "time", "bar", "min", "update", "interval", "(", "int", "min", "update", "interval", "ms", ")", "{", "/", "/", "do", "not", "accept", "values", "below", "1", "6ms", "(", "6", "0fps", ")", "and", "larger", "than", "the", "maximum", "update", "interval", "time", "bar", "min", "update", "interval", "ms", "=", "util", "constrain", "value", "(", "min", "update", "interval", "ms", ",", "16", ",", "max", "update", "interval", "ms", ")", ";", "}" ]
[ "return", "a", "future", "which", "yields", "all", "consumer", "group", "description", "objects", ",", "if", "all", "the", "describes", "succeed" ]
[ "public", "kafka", "future", "<", "map", "<", "string", ",", "consumer", "group", "description", ">", ">", "all", "(", ")", "{", "return", "kafka", "future", "all", "of", "(", "futures", "values", "(", ")", "to", "array", "(", "new", "kafka", "future", "[", "0", "]", ")", ")", "then", "apply", "(", "new", "kafka", "future", "base", "function", "<", "void", ",", "map", "<", "string", ",", "consumer", "group", "description", ">", ">", "(", ")", "{", "@", "override", "public", "map", "<", "string", ",", "consumer", "group", "description", ">", "apply", "(", "void", "v", ")", "{", "try", "{", "map", "<", "string", ",", "consumer", "group", "description", ">", "descriptions", "=", "new", "hash", "map", "<", ">", "(", "futures", "size", "(", ")", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "kafka", "future", "<", "consumer", "group", "description", ">", ">", "entry", ":", "futures", "entry", "set", "(", ")", ")", "{", "descriptions", "put", "(", "entry", "get", "key", "(", ")", ",", "entry", "get", "value", "(", ")", "get", "(", ")", ")", ";", "}", "return", "descriptions", ";", "}", "catch", "(", "interrupted", "exception", "|", "execution", "exception", "e", ")", "{", "/", "/", "this", "should", "be", "unreachable", ",", "since", "the", "kafka", "future", "#", "all", "of", "already", "ensured", "/", "/", "that", "all", "of", "the", "futures", "completed", "successfully", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}", "}", "}", ")", ";", "}" ]
[ "formats", "an", "{", "@", "code", "int", "}", "as", "a", "1", "-", "byte", "unsigned", "hex", "value" ]
[ "public", "static", "string", "u", "1", "(", "int", "v", ")", "{", "char", "[", "]", "result", "=", "new", "char", "[", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "2", ";", "i", "+", "+", ")", "{", "result", "[", "1", "-", "i", "]", "=", "character", "for", "digit", "(", "v", "&", "0x", "0f", ",", "16", ")", ";", "v", ">", ">", "=", "4", ";", "}", "return", "new", "string", "(", "result", ")", ";", "}" ]
[ "gets", "the", "text" ]
[ "public", "string", "get", "text", "(", ")", "{", "return", "text", ";", "}" ]
[ "log", "a", "message", "with", "debug", "log", "level" ]
[ "public", "void", "debug", "(", "char", "sequence", "message", ")", "{", "this", "log", "debug", "(", "message", ")", ";", "}" ]
[ "creates", "a", "versioned", "server", "repository", "filesystem", "prior", "to", "starting", "a", "ghidra", "server", "the", "following", "test", "user", "permissions", "are", "granted", ":", "test", "=", "admin", "user", "a", "=", "read", "only", "user", "b", "=", "write" ]
[ "public", "static", "local", "file", "system", "create", "repository", "(", "string", "dir", "path", ",", "string", "repo", "name", ",", "string", "user", "access", "lines", ")", "throws", "i", "o", "exception", "{", "file", "repo", "dir", "=", "new", "file", "(", "dir", "path", ",", "naming", "utilities", "mangle", "(", "repo", "name", ")", ")", ";", "file", "utilities", "mkdirs", "(", "repo", "dir", ")", ";", "local", "file", "system", "repo", "file", "system", "=", "local", "file", "system", "get", "local", "file", "system", "(", "repo", "dir", "get", "absolute", "path", "(", ")", ",", "true", ",", "true", ",", "false", ",", "false", ")", ";", "file", "user", "access", "file", "=", "new", "file", "(", "repo", "dir", ",", "\"", "user", "access", "acl", "\"", ")", ";", "write", "file", "(", "user", "access", "file", ",", "user", "access", "lines", ")", ";", "return", "repo", "file", "system", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "throwing", "an", "exception", "if", "it", "is", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "or", "throw", "(", "int", "field", "id", ")", "{", "fields", "fields", "=", "find", "by", "thrift", "id", "(", "field", "id", ")", ";", "if", "(", "fields", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "field", "\"", "+", "field", "id", "+", "\"", "doesn", "'", "t", "exist", "!", "\"", ")", ";", "return", "fields", ";", "}" ]
[ "initialize", "the", "common", "actions", "and", "build", "various", "collections", "of", "artifacts", "for", "the", "initialization", "hook", "(", ")", "methods", "of", "the", "subclasses", "note", "that", "not", "all", "subclasses", "call", "this", "method" ]
[ "public", "java", "target", "attributes", "builder", "init", "common", "(", "collection", "<", "artifact", ">", "extra", "srcs", ",", "iterable", "<", "string", ">", "extra", "javac", "opts", ")", "{", "preconditions", "check", "state", "(", "javac", "opts", "=", "=", "null", ")", ";", "javac", "opts", "=", "compute", "javac", "opts", "(", "immutable", "list", "copy", "of", "(", "extra", "javac", "opts", ")", ")", ";", "active", "plugins", "=", "collect", "plugins", "(", ")", ";", "java", "target", "attributes", "builder", "java", "target", "attributes", "=", "new", "java", "target", "attributes", "builder", "(", "semantics", ")", ";", "java", "compilation", "helper", "=", "new", "java", "compilation", "helper", "(", "rule", "context", ",", "semantics", ",", "javac", "opts", ",", "java", "target", "attributes", ")", ";", "process", "srcs", "(", "java", "target", "attributes", ")", ";", "java", "target", "attributes", "add", "source", "artifacts", "(", "sources", ")", ";", "java", "target", "attributes", "add", "source", "artifacts", "(", "extra", "srcs", ")", ";", "process", "runtime", "deps", "(", "java", "target", "attributes", ")", ";", "if", "(", "disallow", "deps", "without", "srcs", "(", "rule", "context", "get", "rule", "(", ")", "get", "rule", "class", "(", ")", ")", "&", "&", "rule", "context", "attributes", "(", ")", "get", "(", "\"", "srcs", "\"", ",", "build", "type", "label", "list", ")", "is", "empty", "(", ")", "&", "&", "!", "rule", "context", "attributes", "(", ")", "get", "(", "\"", "deps", "\"", ",", "build", "type", "label", "list", ")", "is", "empty", "(", ")", ")", "{", "rule", "context", "attribute", "error", "(", "\"", "deps", "\"", ",", "\"", "deps", "not", "allowed", "without", "srcs", ";", "move", "to", "runtime", "deps", "?", "\"", ")", ";", "}", "for", "(", "artifact", "resource", ":", "semantics", "collect", "resources", "(", "rule", "context", ")", ")", "{", "java", "target", "attributes", "add", "resource", "(", "java", "helper", "get", "java", "resource", "path", "(", "semantics", ",", "rule", "context", ",", "resource", ")", ",", "resource", ")", ";", "}", "if", "(", "rule", "context", "attributes", "(", ")", "has", "(", "\"", "resource", "jars", "\"", ",", "build", "type", "label", "list", ")", "&", "&", "rule", "context", "get", "rule", "(", ")", "is", "attribute", "value", "explicitly", "specified", "(", "\"", "resource", "jars", "\"", ")", ")", "{", "if", "(", "rule", "context", "get", "fragment", "(", "java", "configuration", "class", ")", "disallow", "resource", "jars", "(", ")", ")", "{", "rule", "context", "attribute", "error", "(", "\"", "resource", "jars", "\"", ",", "\"", "resource", "jars", "are", "not", "supported", ";", "use", "java", "import", "and", "deps", "or", "runtime", "deps", "instead", "\"", ")", ";", "}", "java", "target", "attributes", "add", "resource", "jars", "(", "prerequisite", "artifacts", "nested", "set", "(", "rule", "context", ",", "\"", "resource", "jars", "\"", ")", ")", ";", "}", "add", "plugins", "(", "java", "target", "attributes", ")", ";", "java", "target", "attributes", "set", "target", "label", "(", "rule", "context", "get", "label", "(", ")", ")", ";", "return", "java", "target", "attributes", ";", "}" ]
[ "resolves", "and", "returns", "a", "more", "friendly", "display", "name", "for", "a", "given", "enum", "value", "several", "ghidra", "enumerated", "types", "provide", "functions", "for", "retrieving", "formatted", "name", "for", "a", "value", ";", "this", "attempts", "to", "locate", "one", "such", "function", "within", "the", "enum", "class", "this", "searches", "the", "enum", "class", "for", "a", "zero", "-", "argument", ",", "string", "-", "returning", "method", "called", "<", "code", ">", "get", "name", "(", ")", "<", "code", ">", ",", "<", "code", ">", "get", "display", "name", "(", ")", "<", "code", ">", ",", "or", "<", "code", ">", "get", "display", "string", "(", ")", "<", "code", ">", "before", "falling", "back", "to", "<", "code", ">", "to", "string", "(", ")", "<", "code", ">" ]
[ "public", "string", "get", "element", "display", "name", "(", "t", "value", ")", "{", "string", "display", "name", "=", "get", "display", "name", "using", "method", "named", "(", "\"", "get", "name", "\"", ",", "value", ")", ";", "if", "(", "display", "name", "!", "=", "null", ")", "{", "return", "display", "name", ";", "}", "display", "name", "=", "get", "display", "name", "using", "method", "named", "(", "\"", "get", "display", "name", "\"", ",", "value", ")", ";", "if", "(", "display", "name", "!", "=", "null", ")", "{", "return", "display", "name", ";", "}", "display", "name", "=", "get", "display", "name", "using", "method", "named", "(", "\"", "get", "display", "string", "\"", ",", "value", ")", ";", "if", "(", "display", "name", "!", "=", "null", ")", "{", "return", "display", "name", ";", "}", "return", "value", "to", "string", "(", ")", ";", "}" ]
[ "get", "map", "map", "of", "string" ]
[ "public", "map", "<", "string", ",", "map", "<", "string", ",", "string", ">", ">", "get", "map", "map", "of", "string", "(", ")", "{", "return", "map", "map", "of", "string", ";", "}" ]
[ "gets", "the", "number", "of", "blocks", "written", "by", "this", "output", "view" ]
[ "public", "int", "get", "block", "count", "(", ")", "{", "return", "num", "blocks", "written", ";", "}" ]
[ "create", "json", "web", "encryption", "json", "web", "encryption" ]
[ "protected", "string", "encrypt", "token", "(", "final", "string", "encryption", "alg", ",", "final", "string", "encryption", "encoding", ",", "final", "string", "key", "id", "header", "value", ",", "final", "key", "public", "key", ",", "final", "string", "payload", ")", "{", "return", "encoding", "utils", "encrypt", "value", "as", "jwt", "(", "public", "key", ",", "payload", ",", "encryption", "alg", ",", "encryption", "encoding", ",", "key", "id", "header", "value", ",", "new", "hash", "map", "<", ">", "(", "0", ")", ")", ";", "}" ]
[ "change", "the", "visibility", "of", "the", "model", "'", "s", "view", "this", "only", "works", "if", "the", "model", "is", "used", "in", "{", "@", "link", "epoxy", "adapter", "}", "or", "a", "{", "@", "link", "epoxy", "model", "group", "}", ",", "but", "is", "not", "supported", "in", "{", "@", "link", "epoxy", "controller", "}" ]
[ "public", "epoxy", "model", "<", "t", ">", "show", "(", "boolean", "show", ")", "{", "on", "mutation", "(", ")", ";", "shown", "=", "show", ";", "return", "this", ";", "}" ]
[ "the", "start", "&", "end", "patterns", "must", "be", "prepost", "fixed", "by", "a", "quiet", "zone", "this", "zone", "must", "be", "at", "least", "10", "times", "the", "width", "of", "a", "narrow", "line", "scan", "back", "until", "we", "either", "get", "to", "the", "start", "of", "the", "barcode", "or", "match", "the", "necessary", "number", "of", "quiet", "zone", "pixels", "note", ":", "its", "assumed", "the", "row", "is", "reversed", "when", "using", "this", "method", "to", "find", "quiet", "zone", "after", "the", "end", "pattern", "ref", ":", "http", ":", "www", "barcode", "-", "1", "neti", "2", "5code", "html" ]
[ "private", "void", "validate", "quiet", "zone", "(", "bit", "array", "row", ",", "int", "start", "pattern", ")", "throws", "not", "found", "exception", "{", "int", "quiet", "count", "=", "this", "narrow", "line", "width", "*", "10", ";", "/", "/", "expect", "to", "find", "this", "many", "pixels", "of", "quiet", "zone", "/", "/", "if", "there", "are", "not", "so", "many", "pixel", "at", "all", "let", "'", "s", "try", "as", "many", "as", "possible", "quiet", "count", "=", "math", "min", "(", "quiet", "count", ",", "start", "pattern", ")", ";", "for", "(", "int", "i", "=", "start", "pattern", "-", "1", ";", "quiet", "count", ">", "0", "&", "&", "i", ">", "=", "0", ";", "i", "-", "-", ")", "{", "if", "(", "row", "get", "(", "i", ")", ")", "{", "break", ";", "}", "quiet", "count", "-", "-", ";", "}", "if", "(", "quiet", "count", "!", "=", "0", ")", "{", "/", "/", "unable", "to", "find", "the", "necessary", "number", "of", "quiet", "zone", "pixels", "throw", "not", "found", "exception", "get", "not", "found", "instance", "(", ")", ";", "}", "}" ]
[ "appends", "the", "value", "at", "{", "@", "code", "position", "}", "to", "{", "@", "code", "block", "builder", "}", "and", "close", "the", "entry" ]
[ "void", "write", "position", "to", "(", "int", "position", ",", "block", "builder", "block", "builder", ")", ";" ]
[ "sets", "the", "acl", "entry", "type" ]
[ "public", "builder", "set", "type", "(", "acl", "entry", "type", "type", ")", "{", "this", "type", "=", "type", ";", "return", "this", ";", "}" ]
[ "reads", "tns", "names", "from", "a", "specified", "file" ]
[ "private", "static", "map", "<", "string", ",", "string", ">", "parse", "tns", "names", "(", "file", "tnsnames", "ora", ")", "{", "map", "<", "string", ",", "string", ">", "aliases", "=", "new", "tree", "map", "<", ">", "(", ")", ";", "if", "(", "tnsnames", "ora", "exists", "(", ")", ")", "{", "try", "{", "buffered", "reader", "reader", "=", "new", "buffered", "reader", "(", "new", "file", "reader", "(", "tnsnames", "ora", ")", ")", ";", "string", "builder", "tns", "description", "=", "new", "string", "builder", "(", ")", ";", "string", "cur", "alias", "=", "null", ";", "string", "line", ";", "while", "(", "(", "line", "=", "reader", "read", "line", "(", ")", ")", "!", "=", "null", ")", "{", "final", "string", "trimmed", "line", "=", "line", "trim", "(", ")", ";", "if", "(", "trimmed", "line", "is", "empty", "(", ")", "|", "|", "trimmed", "line", "starts", "with", "(", "\"", "#", "\"", ")", ")", "{", "continue", ";", "}", "if", "(", "!", "line", "starts", "with", "(", "\"", "\"", ")", "&", "&", "!", "line", "starts", "with", "(", "\"", "\\", "t", "\"", ")", "&", "&", "!", "line", "starts", "with", "(", "\"", "(", "\"", ")", "&", "&", "line", "contains", "(", "\"", "=", "\"", ")", ")", "{", "final", "int", "div", "pos", "=", "line", "index", "of", "(", "\"", "=", "\"", ")", ";", "if", "(", "div", "pos", "<", "0", ")", "{", "continue", ";", "}", "final", "string", "alias", "=", "line", "substring", "(", "0", ",", "div", "pos", ")", ";", "if", "(", "alias", "equals", "ignore", "case", "(", "\"", "ifile", "\"", ")", ")", "{", "string", "file", "path", "=", "line", "substring", "(", "div", "pos", "+", "1", ")", "trim", "(", ")", ";", "file", "ext", "file", "=", "new", "file", "(", "file", "path", ")", ";", "if", "(", "!", "ext", "file", "exists", "(", ")", ")", "{", "ext", "file", "=", "new", "file", "(", "tnsnames", "ora", "get", "parent", "(", ")", ",", "file", "path", ")", ";", "}", "aliases", "put", "all", "(", "parse", "tns", "names", "(", "ext", "file", ")", ")", ";", "}", "else", "{", "if", "(", "cur", "alias", "!", "=", "null", ")", "{", "aliases", "put", "(", "cur", "alias", ",", "get", "plain", "tns", "description", "(", "tns", "description", "to", "string", "(", ")", ")", ")", ";", "}", "cur", "alias", "=", "alias", "trim", "(", ")", ";", "tns", "description", "set", "length", "(", "0", ")", ";", "tns", "description", "append", "(", "line", "substring", "(", "div", "pos", "+", "1", ")", ")", ";", "}", "}", "else", "{", "if", "(", "cur", "alias", "!", "=", "null", ")", "{", "tns", "description", "append", "(", "line", ")", ";", "}", "}", "}", "if", "(", "cur", "alias", "!", "=", "null", ")", "{", "aliases", "put", "(", "cur", "alias", ",", "get", "plain", "tns", "description", "(", "tns", "description", "to", "string", "(", ")", ")", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "/", "/", "do", "nothing", "log", "debug", "(", "e", ")", ";", "}", "}", "else", "{", "log", "debug", "(", "\"", "tns", "names", "file", "'", "\"", "+", "tnsnames", "ora", "+", "\"", "'", "doesn", "'", "t", "exist", "\"", ")", ";", "}", "return", "aliases", ";", "}" ]
[ "returns", "whether", "remote", "execution", "should", "be", "available" ]
[ "public", "static", "boolean", "should", "enable", "remote", "execution", "(", "remote", "options", "options", ")", "{", "return", "!", "strings", "is", "null", "or", "empty", "(", "options", "remote", "executor", ")", ";", "}" ]
[ "pet", "status", "in", "the", "store" ]
[ "public", "status", "enum", "get", "status", "(", ")", "{", "return", "status", ";", "}" ]
[ "applies", "the", "given", "{", "@", "link", "transformation", "}", "for", "{", "@", "link", "bitmap", "bitmaps", "}", "to", "the", "default", "types", "(", "{", "@", "link", "bitmap", "}", ",", "{", "@", "link", "android", "graphics", "drawable", "bitmap", "drawable", "}", ",", "and", "{", "@", "link", "com", "bumptech", "glide", "load", "resource", "gif", "gif", "drawable", "}", ")", "and", "throws", "an", "exception", "if", "asked", "to", "transform", "an", "unknown", "type", "this", "will", "override", "previous", "calls", "to", "{", "@", "link", "#", "dont", "transform", "(", ")", "}" ]
[ "public", "t", "transform", "(", "@", "non", "null", "transformation", "<", "bitmap", ">", "transformation", ")", "{", "return", "transform", "(", "transformation", ",", "/", "*", "is", "required", "=", "*", "/", "true", ")", ";", "}" ]
[ "logs", "user", "into", "the", "system" ]
[ "public", "void", "login", "user", "test", "(", ")", "{", "string", "username", "=", "null", ";", "string", "password", "=", "null", ";", "/", "/", "string", "response", "=", "api", "login", "user", "(", "username", ",", "password", ")", ";", "/", "/", "assert", "not", "null", "(", "response", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "sets", "the", "timeline", "on", "this", "fake", "player", ",", "which", "notifies", "listeners", "with", "the", "changed", "timeline" ]
[ "public", "void", "update", "timeline", "(", "timeline", "timeline", ",", "@", "timeline", "change", "reason", "int", "reason", ")", "{", "for", "(", "player", "event", "listener", "listener", ":", "listeners", ")", "{", "listener", "on", "timeline", "changed", "(", "timeline", ",", "reason", ")", ";", "}", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "checks", "that", "if", "the", "request", "is", "trying", "to", "apply", "settings", "changes", "to", "any", "system", "indices", ",", "then", "the", "settings", "'", "values", "match", "those", "that", "the", "system", "index", "'", "s", "descriptor", "expects" ]
[ "private", "map", "<", "string", ",", "list", "<", "string", ">", ">", "check", "for", "system", "index", "violations", "(", "index", "[", "]", "concrete", "indices", ",", "settings", "request", "settings", ")", "{", "final", "map", "<", "string", ",", "list", "<", "string", ">", ">", "violations", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "index", "index", ":", "concrete", "indices", ")", "{", "final", "system", "index", "descriptor", "descriptor", "=", "system", "indices", "find", "matching", "descriptor", "(", "index", "get", "name", "(", ")", ")", ";", "if", "(", "descriptor", "!", "=", "null", "&", "&", "descriptor", "is", "automatically", "managed", "(", ")", ")", "{", "final", "settings", "descriptor", "settings", "=", "descriptor", "get", "settings", "(", ")", ";", "list", "<", "string", ">", "failed", "keys", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "string", "key", ":", "request", "settings", "key", "set", "(", ")", ")", "{", "final", "string", "expected", "value", "=", "descriptor", "settings", "get", "(", "key", ")", ";", "final", "string", "actual", "value", "=", "request", "settings", "get", "(", "key", ")", ";", "if", "(", "objects", "equals", "(", "expected", "value", ",", "actual", "value", ")", "=", "=", "false", ")", "{", "failed", "keys", "add", "(", "key", ")", ";", "}", "}", "if", "(", "failed", "keys", "is", "empty", "(", ")", "=", "=", "false", ")", "{", "violations", "put", "(", "descriptor", "get", "index", "pattern", "(", ")", ",", "failed", "keys", ")", ";", "}", "}", "}", "return", "violations", ";", "}" ]
[ "removes", "leading", "and", "trailing", "angle", "brackets" ]
[ "private", "string", "get", "variable", "name", "(", "string", "str", ")", "{", "return", "str", "substring", "(", "1", ",", "str", "length", "(", ")", "-", "1", ")", ";", "}" ]
[ "specify", "whether", "or", "not", "parsing", "is", "to", "be", "lenient", "default", "is", "false", "with", "lenient", "parsing", ",", "the", "parser", "may", "allow", "inputs", "that", "do", "not", "precisely", "match", "the", "format", "with", "strict", "parsing", ",", "inputs", "must", "match", "the", "format", "exactly" ]
[ "public", "void", "set", "lenient", "(", "boolean", "lenient", ")", "{", "this", "lenient", "=", "lenient", ";", "}" ]
[ "optional", ":", "default", "value", "is", "0" ]
[ "public", "prop", "defaults", "view", "model", "primitives", "have", "implicit", "defaults", "and", "cannot", "be", "required", "(", "int", "primitives", "have", "implicit", "defaults", "and", "cannot", "be", "required", ")", "{", "on", "mutation", "(", ")", ";", "this", "primitives", "have", "implicit", "defaults", "and", "cannot", "be", "required", "int", "=", "primitives", "have", "implicit", "defaults", "and", "cannot", "be", "required", ";", "return", "this", ";", "}" ]
[ "method", "to", "capture", "symbol", "type", "that", "was", "unexpected", "as", "a", "public", "symbol" ]
[ "void", "witness", "public", "symbol", "type", "(", "abstract", "ms", "symbol", "symbol", ")", "{", "if", "(", "!", "(", "symbol", "instanceof", "abstract", "public", "ms", "symbol", ")", ")", "{", "unexpected", "public", "symbols", "add", "(", "symbol", "get", "class", "(", ")", ")", ";", "}", "}" ]
[ "gets", "the", "source", "specs" ]
[ "public", "final", "register", "spec", "list", "get", "sources", "(", ")", "{", "return", "sources", ";", "}" ]