docstring_tokens
sequence
code_tokens
sequence
[ "allow", "to", "plugin", "a", "custom", "org", "apache", "camel", "spi", "scheduled", "poll", "consumer", "scheduler", "to", "use", "as", "the", "scheduler", "for", "firing", "when", "the", "polling", "consumer", "runs", "this", "option", "is", "used", "for", "referring", "to", "one", "of", "the", "built", "-", "in", "schedulers", "either", "<", "tt", ">", "spring", "<", "/", "tt", ">", "or", "<", "tt", ">", "quartz", "2", "<", "/", "tt", ">", "using", "<", "tt", ">", "none", "<", "/", "tt", ">", "refers", "to", "no", "scheduler", "to", "be", "used" ]
[ "this", "scheduler", "name", "=", "scheduler", "name", ";" ]
[ "/", "*", "if", "authentication", "and", "authorization", "is", "enabled", "and", "if", "the", "auth", "role", "is", "one", "of", "proxy", "roles", "we", "want", "to", "enforce", "-", "the", "original", "principal", "is", "given", "while", "connecting", "-", "original", "principal", "is", "not", "blank", "-", "original", "principal", "is", "not", "a", "proxy", "principal" ]
[ "return", "(", "service", "is", "authentication", "enabled", "(", ")", "&", "&", "service", "is", "authorization", "enabled", "(", ")", "&", "&", "proxy", "roles", "contains", "(", "auth", "role", ")", "&", "&", "(", "string", "utils", "is", "blank", "(", "original", "principal", ")", "|", "|", "proxy", "roles", "contains", "(", "original", "principal", ")", ")", ")", ";" ]
[ "it", "closes", "the", "connection", "with", "client", "which", "triggers", "{" ]
[ "ctx", "close", "(", ")", ";" ]
[ "register", "a", "{", "@", "link", "transport", "callback", "}", "to", "be", "invoked", "for", "success", "/", "error", "responses" ]
[ "context", "put", "local", "attr", "(", "callback", "attr", ",", "callback", ")", ";" ]
[ "load", "font", "from", "file", "path" ]
[ "s", "typeface", "=", "typeface", "create", "from", "asset", "(", "context", "get", "assets", "(", ")", ",", "file", "name", ")", ";", "return", "s", "typeface", ";" ]
[ "sets", "the", "font", "on", "all", "text", "views", "in", "the", "view", "group", "searches", "recursively", "for", "all", "inner", "view", "groups", "as", "well", "just", "add", "a", "check", "for", "any", "other", "views", "you", "want", "to", "set", "as", "well", "(", "edit", "text", "etc", ")" ]
[ "int", "count", "=", "group", "get", "child", "count", "(", ")", ";", "view", "v", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "{", "v", "=", "group", "get", "child", "at", "(", "i", ")", ";", "if", "(", "v", "instanceof", "text", "view", ")", "{", "(", "(", "text", "view", ")", "v", ")", "set", "typeface", "(", "s", "typeface", ")", ";", "}", "else", "if", "(", "v", "instanceof", "view", "group", ")", "set", "font", "(", "(", "view", "group", ")", "v", ")", ";", "}" ]
[ "sets", "the", "font", "on", "text", "view" ]
[ "if", "(", "v", "instanceof", "text", "view", ")", "{", "(", "(", "text", "view", ")", "v", ")", "set", "typeface", "(", "s", "typeface", ")", ";", "}" ]
[ "release", "closeable", "object" ]
[ "if", "(", "obj", "!", "=", "null", ")", "{", "try", "{", "obj", "close", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "}" ]
[ "private", "helper", "method", "that", "writes", "a", "file", "to", "the", "given", "file", "system" ]
[ "output", "stream", "out", ";", "out", "=", "fs", "create", "(", "path", ",", "true", ",", "buffer", "size", ",", "(", "short", ")", "1", ",", "1024", ")", ";", "out", "write", "(", "buffer", ",", "0", ",", "buffer", "size", ")", ";", "out", "close", "(", ")", ";" ]
[ "create", "empty", "directories", "if", "a", "specified", "directory", "already", "exists", "then", "it", "is", "first", "removed" ]
[ "for", "(", "string", "d", ":", "dirs", ")", "{", "file", "dir", "=", "new", "file", "(", "d", ")", ";", "if", "(", "dir", "exists", "(", ")", ")", "{", "file", "util", "fully", "delete", "(", "dir", ")", ";", "}", "dir", "mkdirs", "(", ")", ";", "}" ]
[ "return", "the", "checksum", "for", "the", "singleton", "master", "storage", "directory", "for", "namenode" ]
[ "return", "namenode", "storage", "checksum", ";" ]
[ "return", "the", "checksum", "for", "the", "singleton", "master", "storage", "directory", "for", "datanode" ]
[ "return", "datanode", "storage", "checksum", ";" ]
[ "return", "the", "checksum", "for", "the", "singleton", "master", "storage", "directory", "for", "block", "pool" ]
[ "return", "block", "pool", "storage", "checksum", ";" ]
[ "return", "the", "checksum", "for", "the", "singleton", "master", "storage", "directory", "for", "finalized", "dir", "under", "block", "pool" ]
[ "return", "block", "pool", "finalized", "storage", "checksum", ";" ]
[ "return", "the", "checksum", "for", "the", "singleton", "master", "storage", "directory", "for", "rbw", "dir", "under", "block", "pool" ]
[ "return", "block", "pool", "rbw", "storage", "checksum", ";" ]
[ "compute", "the", "checksum", "of", "all", "the", "files", "in", "the", "specified", "directory", "this", "method", "provides", "an", "easy", "way", "to", "ensure", "equality", "between", "the", "contents", "of", "two", "directories" ]
[ "crc32", "checksum", "=", "new", "crc32", "(", ")", ";", "checksum", "contents", "helper", "(", "node", "type", ",", "dir", ",", "checksum", ",", "recursive", ")", ";", "return", "checksum", "get", "value", "(", ")", ";" ]
[ "create", "a", "<", "code", ">", "version", "<", "/", "code", ">", "file", "for", "datanode", "inside", "the", "specified", "parent", "directory", "if", "such", "a", "file", "already", "exists", "it", "will", "be", "overwritten", "the", "given", "version", "string", "will", "be", "written", "to", "the", "file", "as", "the", "layout", "version", "none", "of", "the", "parameters", "may", "be", "null" ]
[ "create", "data", "node", "version", "file", "(", "parent", ",", "version", ",", "bpid", ",", "bpid", ")", ";" ]
[ "return", "the", "layout", "version", "inherent", "in", "the", "current", "version", "of", "the", "namenode", "whether", "it", "is", "running", "or", "not" ]
[ "return", "hdfs", "server", "constants", "namenode", "layout", "version", ";" ]
[ "return", "the", "namespace", "id", "inherent", "in", "the", "currently", "running", "namenode", "if", "no", "namenode", "is", "running", "return", "the", "namespace", "id", "of", "the", "master", "namenode", "storage", "directory" ]
[ "if", "(", "cluster", "!", "=", "null", ")", "{", "return", "cluster", "get", "name", "node", "rpc", "(", ")", "version", "request", "(", ")", "get", "namespace", "i", "d", "(", ")", ";", "}", "return", "namenode", "storage", "namespace", "i", "d", ";" ]
[ "return", "the", "cluster", "id", "inherent", "in", "the", "currently", "running", "namenode" ]
[ "if", "(", "cluster", "!", "=", "null", ")", "{", "return", "cluster", "get", "name", "node", "rpc", "(", ")", "version", "request", "(", ")", "get", "cluster", "i", "d", "(", ")", ";", "}", "return", "namenode", "storage", "cluster", "i", "d", ";" ]
[ "return", "the", "blockpool", "id", "inherent", "in", "the", "currently", "running", "namenode" ]
[ "if", "(", "cluster", "!", "=", "null", ")", "{", "return", "cluster", "get", "name", "node", "rpc", "(", ")", "version", "request", "(", ")", "get", "block", "pool", "i", "d", "(", ")", ";", "}", "return", "namenode", "storage", "block", "pool", "i", "d", ";" ]
[ "return", "the", "file", "system", "state", "creation", "timestamp", "(", "f", "s", "s", "c", "time", ")", "inherent", "in", "the", "currently", "running", "namenode", "if", "no", "namenode", "is", "running", "return", "the", "f", "s", "s", "c", "time", "of", "the", "master", "namenode", "storage", "directory" ]
[ "if", "(", "cluster", "!", "=", "null", ")", "{", "return", "cluster", "get", "name", "node", "rpc", "(", ")", "version", "request", "(", ")", "get", "c", "time", "(", ")", ";", "}", "return", "namenode", "storage", "fssc", "time", ";" ]
[ "create", "empty", "block", "pool", "directories" ]
[ "string", "[", "]", "bp", "dirs", "=", "new", "string", "[", "base", "dirs", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "base", "dirs", "length", ";", "i", "+", "+", ")", "{", "bp", "dirs", "[", "i", "]", "=", "mini", "d", "f", "s", "cluster", "get", "b", "p", "dir", "(", "new", "file", "(", "base", "dirs", "[", "i", "]", ")", ",", "bpid", ")", ";", "}", "create", "empty", "dirs", "(", "bp", "dirs", ")", ";", "return", "bp", "dirs", ";" ]
[ "create", "the", "initial", "execution", "context", "for", "executing", "the", "supplied", "{", "@", "linkplain", "execution", "request", "request", "}" ]
[ "protected", "abstract", "c", "create", "execution", "context", "(", "execution", "request", "request", ")", ";" ]
[ "initializes", "this", "struct", "with", "the", "specified", "values" ]
[ "s", "type", "(", "s", "type", ")", ";", "p", "next", "(", "p", "next", ")", ";", "swapchain", "(", "swapchain", ")", ";", "return", "this", ";" ]