docstring_tokens
list
code_tokens
list
[ "unsafe", "version", "of", "{" ]
[ "return", "rect", "create", "(", "struct", "+", "monitorinfoex", "rcmonitor", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "rect", "create", "(", "struct", "+", "monitorinfoex", "rcwork", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "unsafe", "get", "int", "(", "null", ",", "struct", "+", "monitorinfoex", "dwflags", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "mem", "byte", "buffer", "(", "struct", "+", "monitorinfoex", "szdevice", ",", "32", "*", "2", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "mem", "u", "t", "f", "1", "6", "(", "struct", "+", "monitorinfoex", "szdevice", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "unsafe", "put", "int", "(", "null", ",", "struct", "+", "monitorinfoex", "cbsize", ",", "value", ")", ";" ]
[ "returns", "a", "{" ]
[ "return", "monitorinfoex", "nrc", "monitor", "(", "address", "(", ")", ")", ";" ]
[ "passes", "the", "{" ]
[ "consumer", "accept", "(", "rc", "monitor", "(", ")", ")", ";", "return", "this", ";" ]
[ "returns", "a", "{" ]
[ "return", "monitorinfoex", "nrc", "work", "(", "address", "(", ")", ")", ";" ]
[ "passes", "the", "{" ]
[ "consumer", "accept", "(", "rc", "work", "(", ")", ")", ";", "return", "this", ";" ]
[ "the", "number", "of", "threads", "in", "the", "thread", "pool", "that", "will", "run", "the", "map", "function" ]
[ "return", "job", "get", "configuration", "(", ")", "get", "int", "(", "num", "threads", ",", "10", ")", ";" ]
[ "set", "the", "number", "of", "threads", "in", "the", "pool", "for", "running", "maps" ]
[ "job", "get", "configuration", "(", ")", "set", "int", "(", "num", "threads", ",", "threads", ")", ";" ]
[ "total", "physical", "memory", "of", "the", "system", "in", "bytes" ]
[ "return", "total", "physical", "memory", ";" ]
[ "of", "the", "total", "physical", "memory", "of", "the", "system", "available", "bytes" ]
[ "return", "available", "physical", "memory", ";" ]
[ "total", "number", "of", "swap", "space", "in", "bytes" ]
[ "return", "total", "swap", "space", ";" ]
[ "available", "swap", "space", "in", "bytes" ]
[ "return", "available", "swap", "space", ";" ]
[ "return", "an", "absolute", "path", "to", "the", "given", "class", "where", "segments", "are", "separated", "using", "{", "@", "code", "delim", "}", "character", "and", "{", "@", "code", "path", "}", "is", "appended", "to", "this", "path" ]
[ "return", "'", "/", "'", "+", "resource", "class", "get", "name", "(", ")", "replace", "(", "'", "'", ",", "'", "/", "'", ")", "replace", "(", "'", "$", "'", ",", "delim", ")", "+", "delim", "+", "path", ";" ]
[ "get", "media", "types", "for", "which", "the", "{", "@", "link", "org", "glassfish", "jersey", "server", "mvc", "spi", "resolved", "viewable", "resolved", "viewable", "}", "could", "be", "produced" ]
[ "final", "list", "<", "media", "type", ">", "produced", "types", "=", "get", "resource", "method", "producible", "types", "(", "extended", "uri", "info", ")", ";", "final", "media", "type", "[", "]", "media", "types", "=", "produced", "types", "to", "array", "(", "new", "media", "type", "[", "produced", "types", "size", "(", ")", "]", ")", ";", "final", "list", "<", "variant", ">", "variants", "=", "variant", "selector", "select", "variants", "(", "container", "request", ",", "variant", "media", "types", "(", "media", "types", ")", "build", "(", ")", ",", "vary", "header", "value", "=", "=", "null", "?", "refs", "<", "string", ">", "empty", "ref", "(", ")", ":", "vary", "header", "value", ")", ";", "return", "variants", "stream", "(", ")", "map", "(", "variant", "-", ">", "media", "types", "strip", "quality", "params", "(", "variant", "get", "media", "type", "(", ")", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";" ]
[ "return", "a", "list", "of", "producible", "media", "types", "of", "the", "last", "matched", "resource", "method" ]
[ "if", "(", "extended", "uri", "info", "get", "matched", "resource", "method", "(", ")", "!", "=", "null", "&", "&", "!", "extended", "uri", "info", "get", "matched", "resource", "method", "(", ")", "get", "produced", "types", "(", ")", "is", "empty", "(", ")", ")", "{", "return", "extended", "uri", "info", "get", "matched", "resource", "method", "(", ")", "get", "produced", "types", "(", ")", ";", "}", "return", "arrays", "as", "list", "(", "media", "type", "wildcard", "type", ")", ";" ]
[ "extract", "{", "@", "link", "org", "glassfish", "jersey", "server", "mvc", "template", "template", "}", "annotation", "from", "given", "list" ]
[ "if", "(", "annotations", "!", "=", "null", "&", "&", "annotations", "length", ">", "0", ")", "{", "for", "(", "annotation", "annotation", ":", "annotations", ")", "{", "if", "(", "annotation", "instanceof", "template", ")", "{", "return", "(", "template", ")", "annotation", ";", "}", "}", "}", "return", "null", ";" ]
[ "get", "output", "encoding", "from", "configuration", "@", "param", "configuration", "configuration", "@", "param", "suffix", "template", "processor", "suffix", "of", "the", "to", "configuration", "property", "{", "@", "link", "org", "glassfish", "jersey", "server", "mvc", "mvc", "feature", "#", "encoding", "}" ]
[ "final", "string", "enc", "=", "properties", "helper", "get", "value", "(", "configuration", "get", "properties", "(", ")", ",", "mvc", "feature", "encoding", "+", "suffix", ",", "string", "class", ",", "null", ")", ";", "if", "(", "enc", "=", "=", "null", ")", "{", "return", "default", "encoding", ";", "}", "else", "{", "return", "charset", "for", "name", "(", "enc", ")", ";", "}" ]
[ "setup", "bottom", "navigation" ]
[ "setup", "with", "bottom", "navigation", "(", "ah", "bottom", "navigation", ",", "null", ")", ";" ]
[ "setup", "bottom", "navigation", "(", "with", "colors", ")" ]
[ "if", "(", "navigation", "items", "=", "=", "null", ")", "{", "navigation", "items", "=", "new", "array", "list", "<", ">", "(", ")", ";", "}", "else", "{", "navigation", "items", "clear", "(", ")", ";", "}", "if", "(", "m", "menu", "!", "=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "m", "menu", "size", "(", ")", ";", "i", "+", "+", ")", "{", "menu", "item", "item", "=", "m", "menu", "get", "item", "(", "i", ")", ";", "if", "(", "colors", "!", "=", "null", "&", "&", "colors", "length", ">", "=", "m", "menu", "size", "(", ")", "&", "&", "colors", "[", "i", "]", "!", "=", "0", ")", "{", "a", "h", "bottom", "navigation", "item", "navigation", "item", "=", "new", "a", "h", "bottom", "navigation", "item", "(", "string", "value", "of", "(", "item", "get", "title", "(", ")", ")", ",", "item", "get", "icon", "(", ")", ",", "colors", "[", "i", "]", ")", ";", "navigation", "items", "add", "(", "navigation", "item", ")", ";", "}", "else", "{", "a", "h", "bottom", "navigation", "item", "navigation", "item", "=", "new", "a", "h", "bottom", "navigation", "item", "(", "string", "value", "of", "(", "item", "get", "title", "(", ")", ")", ",", "item", "get", "icon", "(", ")", ")", ";", "navigation", "items", "add", "(", "navigation", "item", ")", ";", "}", "}", "ah", "bottom", "navigation", "remove", "all", "items", "(", ")", ";", "ah", "bottom", "navigation", "add", "items", "(", "navigation", "items", ")", ";", "}" ]
[ "get", "menu", "item" ]
[ "return", "m", "menu", "get", "item", "(", "index", ")", ";" ]
[ "get", "navigation", "item" ]
[ "return", "navigation", "items", "get", "(", "index", ")", ";" ]
[ "get", "position", "by", "menu", "id" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "m", "menu", "size", "(", ")", ";", "i", "+", "+", ")", "{", "if", "(", "m", "menu", "get", "item", "(", "i", ")", "get", "item", "id", "(", ")", "=", "=", "menu", "id", ")", "return", "i", ";", "}", "return", "null", ";" ]
[ "get", "shared", "connection" ]
[ "string", "key", "=", "url", "get", "address", "(", ")", ";", "reference", "count", "exchange", "client", "client", "=", "reference", "client", "map", "get", "(", "key", ")", ";", "if", "(", "client", "!", "=", "null", ")", "{", "if", "(", "!", "client", "is", "closed", "(", ")", ")", "{", "client", "increment", "and", "get", "count", "(", ")", ";", "return", "client", ";", "}", "else", "{", "reference", "client", "map", "remove", "(", "key", ")", ";", "}", "}", "locks", "put", "if", "absent", "(", "key", ",", "new", "object", "(", ")", ")", ";", "synchronized", "(", "locks", "get", "(", "key", ")", ")", "{", "if", "(", "reference", "client", "map", "contains", "key", "(", "key", ")", ")", "{", "return", "reference", "client", "map", "get", "(", "key", ")", ";", "}", "exchange", "client", "exchange", "client", "=", "init", "client", "(", "url", ")", ";", "client", "=", "new", "reference", "count", "exchange", "client", "(", "exchange", "client", ",", "ghost", "client", "map", ")", ";", "reference", "client", "map", "put", "(", "key", ",", "client", ")", ";", "ghost", "client", "map", "remove", "(", "key", ")", ";", "locks", "remove", "(", "key", ")", ";", "return", "client", ";", "}" ]
[ "<", "p", ">", "the", "key", "of", "the", "attribute", "being", "updated", "<", "/", "p", ">" ]
[ "set", "attribute", "key", "(", "attribute", "key", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "action", "to", "perform", "as", "part", "of", "the", "attribute", "update", "<", "/", "p", ">" ]
[ "this", "attribute", "action", "=", "attribute", "action", ";" ]
[ "<", "p", ">", "the", "action", "to", "perform", "as", "part", "of", "the", "attribute", "update", "<", "/", "p", ">" ]
[ "return", "this", "attribute", "action", ";" ]
[ "<", "p", ">", "the", "action", "to", "perform", "as", "part", "of", "the", "attribute", "update", "<", "/", "p", ">" ]
[ "set", "attribute", "action", "(", "attribute", "action", ")", ";", "return", "this", ";" ]
[ "retrieve", "the", "conformance", "statement", "using", "the", "given", "model", "type" ]
[ "i", "fetch", "conformance", "typed", "<", "t", ">", "fetch", "conformance", "typed", "=", "client", "capabilities", "(", ")", "of", "type", "(", "type", ")", ";", "extra", "parameters", "process", "(", "extra", "parameters", ",", "fetch", "conformance", "typed", ")", ";", "return", "fetch", "conformance", "typed", "execute", "(", ")", ";" ]
[ "escapes", "new", "line", "characters", "of", "a", "given", "string", "it", "also", "escapes", "the", "forward", "slash", "characters" ]
[ "final", "int", "len", "=", "str", "length", "(", ")", ";", "string", "writer", "out", "=", "new", "string", "writer", "(", "len", "*", "2", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "{", "char", "c", "=", "str", "char", "at", "(", "i", ")", ";", "switch", "(", "c", ")", "{", "case", "'", "\\", "\\", "'", ":", "out", "write", "(", "'", "\\", "\\", "'", ")", ";", "out", "write", "(", "'", "\\", "\\", "'", ")", ";", "break", ";", "case", "'", "\\", "n", "'", ":", "out", "write", "(", "'", "\\", "\\", "'", ")", ";", "out", "write", "(", "'", "n", "'", ")", ";", "break", ";", "default", ":", "out", "write", "(", "c", ")", ";", "}", "}", "return", "out", "to", "string", "(", ")", ";" ]
[ "inverse", "function", "to", "{" ]
[ "boolean", "had", "slash", "=", "false", ";", "final", "int", "len", "=", "str", "length", "(", ")", ";", "string", "writer", "out", "=", "new", "string", "writer", "(", "len", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "{", "char", "c", "=", "str", "char", "at", "(", "i", ")", ";", "if", "(", "had", "slash", ")", "{", "switch", "(", "c", ")", "{", "case", "'", "n", "'", ":", "out", "write", "(", "'", "\\", "n", "'", ")", ";", "break", ";", "case", "'", "\\", "\\", "'", ":", "out", "write", "(", "'", "\\", "\\", "'", ")", ";", "break", ";", "default", ":", "out", "write", "(", "c", ")", ";", "}", "had", "slash", "=", "false", ";", "}", "else", "{", "if", "(", "c", "=", "=", "'", "\\", "\\", "'", ")", "had", "slash", "=", "true", ";", "else", "out", "write", "(", "c", ")", ";", "}", "}", "return", "out", "to", "string", "(", ")", ";" ]
[ "gets", "configuration", "for", "ignite", "binary", "objects" ]
[ "return", "binary", "cfg", ";" ]
[ "{" ]
[ "return", "s", "to", "string", "(", "client", "configuration", "class", ",", "this", ")", ";" ]
[ "returns", "the", "bag", "-", "of", "-", "words", "features", "of", "a", "document", "the", "features", "are", "real", "-", "valued", "in", "convenience", "of", "most", "learning", "algorithms", "although", "they", "take", "only", "integer", "or", "binary", "values" ]
[ "double", "[", "]", "bag", "=", "new", "double", "[", "features", "size", "(", ")", "]", ";", "if", "(", "binary", ")", "{", "for", "(", "t", "word", ":", "x", ")", "{", "integer", "f", "=", "features", "get", "(", "word", ")", ";", "if", "(", "f", "!", "=", "null", ")", "{", "bag", "[", "f", "]", "=", "1", "0", ";", "}", "}", "}", "else", "{", "for", "(", "t", "word", ":", "x", ")", "{", "integer", "f", "=", "features", "get", "(", "word", ")", ";", "if", "(", "f", "!", "=", "null", ")", "{", "bag", "[", "f", "]", "+", "+", ";", "}", "}", "}", "return", "bag", ";" ]
[ "get", "log", "file", "base", "directory", "path", "the", "returned", "path", "is", "guaranteed", "end", "with", "{", "@", "link", "file", "#", "separator", "}" ]
[ "return", "log", "base", "dir", ";" ]
[ "just", "for", "testing" ]
[ "return", "is", "query", "result", "limit", "enabled", ";" ]
[ "just", "for", "testing" ]
[ "return", "is", "pre", "check", "enabled", ";" ]
[ "computes", "the", "initial", "size", "and", "collects", "garbage", "as", "a", "part", "of", "opening", "the", "cache", "dirty", "entries", "are", "assumed", "to", "be", "inconsistent", "and", "will", "be", "deleted" ]
[ "delete", "if", "exists", "(", "journal", "file", "tmp", ")", ";", "for", "(", "iterator", "<", "entry", ">", "i", "=", "lru", "entries", "values", "(", ")", "iterator", "(", ")", ";", "i", "has", "next", "(", ")", ";", ")", "{", "entry", "entry", "=", "i", "next", "(", ")", ";", "if", "(", "entry", "current", "editor", "=", "=", "null", ")", "{", "for", "(", "int", "t", "=", "0", ";", "t", "<", "value", "count", ";", "t", "+", "+", ")", "{", "size", "+", "=", "entry", "lengths", "[", "t", "]", ";", "file", "count", "+", "+", ";", "}", "}", "else", "{", "entry", "current", "editor", "=", "null", ";", "for", "(", "int", "t", "=", "0", ";", "t", "<", "value", "count", ";", "t", "+", "+", ")", "{", "delete", "if", "exists", "(", "entry", "get", "clean", "file", "(", "t", ")", ")", ";", "delete", "if", "exists", "(", "entry", "get", "dirty", "file", "(", "t", ")", ")", ";", "}", "i", "remove", "(", ")", ";", "}", "}" ]
[ "returns", "the", "maximum", "number", "of", "files", "that", "this", "cache", "should", "store" ]
[ "return", "max", "file", "count", ";" ]
[ "returns", "the", "number", "of", "files", "currently", "being", "used", "to", "store", "the", "values", "in", "this", "cache", "this", "may", "be", "greater", "than", "the", "max", "file", "count", "if", "a", "background", "deletion", "is", "pending" ]
[ "return", "file", "count", ";" ]
[ "force", "buffered", "operations", "to", "the", "filesystem" ]
[ "check", "not", "closed", "(", ")", ";", "trim", "to", "size", "(", ")", ";", "trim", "to", "file", "count", "(", ")", ";", "journal", "writer", "flush", "(", ")", ";" ]
[ "returns", "file", "with", "the", "value", "for", "{" ]
[ "return", "files", "[", "index", "]", ";" ]
[ "returns", "true", "if", "field", "corresponding", "to", "field", "i", "d", "is", "set", "(", "has", "been", "assigned", "a", "value", ")", "and", "false", "otherwise" ]
[ "if", "(", "field", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "switch", "(", "field", ")", "{", "case", "session", "handle", ":", "return", "is", "set", "session", "handle", "(", ")", ";", "case", "catalog", "name", ":", "return", "is", "set", "catalog", "name", "(", ")", ";", "case", "schema", "name", ":", "return", "is", "set", "schema", "name", "(", ")", ";", "}", "throw", "new", "illegal", "state", "exception", "(", ")", ";" ]
[ "/", "*", "basically", "every", "time", "we", "get", "an", "array", "of", "chunks", "we", "will", "generate", "certain", "parts", "of", "the", "gram", "matrix", "for", "only", "this", "block" ]
[ "gram", "=", "new", "gram", "(", "(", "int", ")", "dinfo", "adapted", "frame", "num", "rows", "(", ")", ",", "0", ",", "dinfo", "num", "nums", "(", ")", ",", "dinfo", "cats", ",", "intercept", ")", ";" ]
[ "/", "*", "since", "each", "chunk", "only", "change", "a", "certain", "part", "of", "the", "gram", "matrix", "we", "can", "add", "them", "all", "together", "when", "we", "are", "doing", "the", "reduce", "job", "hence", "this", "part", "should", "be", "left", "alone" ]
[ "gram", "add", "(", "gt", "gram", ")", ";", "nobs", "+", "=", "gt", "nobs", ";" ]
[ "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=" ]
[ "return", "this", "m", "values", ";" ]
[ "add", "a", "configuration", "resource" ]
[ "add", "resource", "object", "(", "name", ")", ";" ]
[ "add", "a", "configuration", "resource" ]
[ "add", "resource", "object", "(", "url", ")", ";" ]
[ "add", "a", "configuration", "resource" ]
[ "add", "resource", "object", "(", "in", ")", ";" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "<", "code", ">", "null", "<", "/", "code", ">", "if", "no", "such", "property", "exists" ]
[ "return", "substitute", "vars", "(", "get", "props", "(", ")", "get", "property", "(", "name", ")", ")", ";" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "without", "doing", "<", "a", "href", "=", "#", "variable", "expansion", ">", "variable", "expansion", "<", "/", "a", ">" ]
[ "return", "get", "props", "(", ")", "get", "property", "(", "name", ")", ";" ]
[ "get", "the", "char", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "<", "code", ">", "null", "<", "/", "code", ">", "if", "no", "such", "property", "exists" ]
[ "return", "get", "props", "(", ")", "get", "property", "(", "name", ")", "char", "at", "(", "0", ")", ";" ]
[ "get", "the", "char", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "<", "code", ">", "null", "<", "/", "code", ">", "if", "no", "such", "property", "exists" ]
[ "return", "get", "props", "(", ")", "get", "property", "(", "name", ",", "string", "value", "of", "(", "default", "value", ")", ")", "char", "at", "(", "0", ")", ";" ]
[ "set", "the", "<", "code", ">", "value", "<", "/", "code", ">", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property" ]
[ "get", "overlay", "(", ")", "set", "property", "(", "name", ",", "value", ")", ";", "get", "props", "(", ")", "set", "property", "(", "name", ",", "value", ")", ";" ]
[ "sets", "a", "property", "if", "it", "is", "currently", "unset" ]
[ "if", "(", "get", "(", "name", ")", "=", "=", "null", ")", "{", "set", "(", "name", ",", "value", ")", ";", "}" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "if", "no", "such", "property", "exists", "then", "<", "code", ">", "default", "value", "<", "/", "code", ">", "is", "returned" ]
[ "return", "substitute", "vars", "(", "get", "props", "(", ")", "get", "property", "(", "name", ",", "default", "value", ")", ")", ";" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "as", "an", "<", "code", ">", "int", "<", "/", "code", ">" ]
[ "string", "value", "string", "=", "get", "(", "name", ")", ";", "if", "(", "value", "string", "=", "=", "null", ")", "return", "default", "value", ";", "try", "{", "string", "hex", "string", "=", "get", "hex", "digits", "(", "value", "string", ")", ";", "if", "(", "hex", "string", "!", "=", "null", ")", "{", "return", "integer", "parse", "int", "(", "hex", "string", ",", "16", ")", ";", "}", "return", "integer", "parse", "int", "(", "value", "string", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "return", "default", "value", ";", "}" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "as", "a", "<", "code", ">", "long", "<", "/", "code", ">", "if", "no", "such", "property", "is", "specified", "or", "if", "the", "specified", "value", "is", "not", "a", "valid", "<", "code", ">", "long", "<", "/", "code", ">", "then", "<", "code", ">", "default", "value", "<", "/", "code", ">", "is", "returned" ]
[ "string", "value", "string", "=", "get", "(", "name", ")", ";", "if", "(", "value", "string", "=", "=", "null", ")", "return", "default", "value", ";", "try", "{", "string", "hex", "string", "=", "get", "hex", "digits", "(", "value", "string", ")", ";", "if", "(", "hex", "string", "!", "=", "null", ")", "{", "return", "long", "parse", "long", "(", "hex", "string", ",", "16", ")", ";", "}", "return", "long", "parse", "long", "(", "value", "string", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "return", "default", "value", ";", "}" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "as", "a", "<", "code", ">", "float", "<", "/", "code", ">", "if", "no", "such", "property", "is", "specified", "or", "if", "the", "specified", "value", "is", "not", "a", "valid", "<", "code", ">", "float", "<", "/", "code", ">", "then", "<", "code", ">", "default", "value", "<", "/", "code", ">", "is", "returned" ]
[ "string", "value", "string", "=", "get", "(", "name", ")", ";", "if", "(", "value", "string", "=", "=", "null", ")", "return", "default", "value", ";", "try", "{", "return", "float", "parse", "float", "(", "value", "string", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "return", "default", "value", ";", "}" ]
[ "set", "the", "given", "property", "to", "<", "code", ">", "pattern", "<", "/", "code", ">", "if", "the", "pattern", "is", "passed", "as", "null", "sets", "the", "empty", "pattern", "which", "results", "in", "further", "calls", "to", "get", "pattern", "(", ")", "returning", "the", "default", "value" ]
[ "if", "(", "null", "=", "=", "pattern", ")", "{", "set", "(", "name", ",", "null", ")", ";", "}", "else", "{", "set", "(", "name", ",", "pattern", "pattern", "(", ")", ")", ";", "}" ]
[ "get", "the", "comma", "delimited", "values", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "as", "a", "collection", "of", "<", "code", ">", "string", "<", "/", "code", ">", "s", "trimmed", "of", "the", "leading", "and", "trailing", "whitespace", "if", "no", "such", "property", "is", "specified", "then", "empty", "<", "code", ">", "collection", "<", "/", "code", ">", "is", "returned" ]
[ "string", "value", "string", "=", "get", "(", "name", ")", ";", "if", "(", "null", "=", "=", "value", "string", ")", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "return", "string", "utils", "get", "trimmed", "string", "collection", "(", "value", "string", ")", ";" ]
[ "load", "a", "class", "by", "name" ]
[ "map", "<", "string", ",", "class", "<", "?", ">", ">", "map", "=", "cache", "classes", "get", "(", "class", "loader", ")", ";", "if", "(", "map", "=", "=", "null", ")", "{", "map", "<", "string", ",", "class", "<", "?", ">", ">", "new", "map", "=", "new", "concurrent", "hash", "map", "<", ">", "(", ")", ";", "map", "=", "cache", "classes", "put", "if", "absent", "(", "class", "loader", ",", "new", "map", ")", ";", "if", "(", "map", "=", "=", "null", ")", "{", "map", "=", "new", "map", ";", "}", "}", "class", "clazz", "=", "map", "get", "(", "name", ")", ";", "if", "(", "clazz", "=", "=", "null", ")", "{", "clazz", "=", "class", "for", "name", "(", "name", ",", "true", ",", "class", "loader", ")", ";", "if", "(", "clazz", "!", "=", "null", ")", "{", "map", "put", "(", "name", ",", "clazz", ")", ";", "}", "}", "return", "clazz", ";" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "as", "an", "array", "of", "<", "code", ">", "class", "<", "/", "code", ">", "the", "value", "of", "the", "property", "specifies", "a", "list", "of", "comma", "separated", "class", "names", "if", "no", "such", "property", "is", "specified", "then", "<", "code", ">", "default", "value", "<", "/", "code", ">", "is", "returned" ]
[ "string", "[", "]", "classnames", "=", "get", "strings", "(", "name", ")", ";", "if", "(", "classnames", "=", "=", "null", ")", "return", "default", "value", ";", "try", "{", "class", "<", "?", ">", "[", "]", "classes", "=", "new", "class", "<", "?", ">", "[", "classnames", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "classnames", "length", ";", "i", "+", "+", ")", "{", "classes", "[", "i", "]", "=", "get", "class", "by", "name", "(", "classnames", "[", "i", "]", ")", ";", "}", "return", "classes", ";", "}", "catch", "(", "class", "not", "found", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "/", "code", ">", "property", "as", "a", "<", "code", ">", "class", "<", "/", "code", ">", "if", "no", "such", "property", "is", "specified", "then", "<", "code", ">", "default", "value", "<", "/", "code", ">", "is", "returned" ]
[ "string", "value", "string", "=", "get", "(", "name", ")", ";", "if", "(", "value", "string", "=", "=", "null", ")", "return", "default", "value", ";", "try", "{", "return", "get", "class", "by", "name", "(", "value", "string", ")", ";", "}", "catch", "(", "class", "not", "found", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "{" ]
[ "u", "write", "string", "(", "out", ",", "cache", "name", ")", ";", "u", "write", "string", "(", "out", ",", "filter", ")", ";", "out", "write", "boolean", "(", "reg", "ex", ")", ";", "out", "write", "boolean", "(", "case", "sensitive", ")", ";", "out", "write", "boolean", "(", "near", ")", ";", "out", "write", "boolean", "(", "loc", ")", ";", "out", "write", "int", "(", "page", "size", ")", ";" ]
[ "{" ]
[ "cache", "name", "=", "u", "read", "string", "(", "in", ")", ";", "filter", "=", "u", "read", "string", "(", "in", ")", ";", "reg", "ex", "=", "in", "read", "boolean", "(", ")", ";", "case", "sensitive", "=", "in", "read", "boolean", "(", ")", ";", "near", "=", "in", "read", "boolean", "(", ")", ";", "loc", "=", "in", "read", "boolean", "(", ")", ";", "page", "size", "=", "in", "read", "int", "(", ")", ";" ]
[ "{" ]
[ "return", "s", "to", "string", "(", "visor", "scan", "query", "task", "arg", "class", ",", "this", ")", ";" ]
[ "add", "extra", "headers", "these", "extra", "headers", "will", "be", "applied", "to", "all", "http", "methods", "before", "they", "are", "removed", "if", "any", "header", "is", "not", "used", "any", "more", "client", "needs", "to", "remove", "it", "explicitly" ]
[ "extra", "headers", "put", "(", "name", ",", "value", ")", ";" ]
[ "get", "an", "extra", "header", "value" ]
[ "return", "extra", "headers", "get", "(", "name", ")", ";" ]
[ "get", "all", "extra", "headers", "(", "read", "-", "only", ")" ]
[ "return", "collections", "unmodifiable", "map", "(", "extra", "headers", ")", ";" ]
[ "remove", "an", "extra", "header" ]
[ "extra", "headers", "remove", "(", "name", ")", ";" ]
[ "send", "a", "head", "request" ]
[ "return", "head", "(", "cluster", ",", "path", ",", "null", ")", ";" ]
[ "send", "a", "head", "request" ]
[ "http", "head", "method", "=", "new", "http", "head", "(", "path", ")", ";", "try", "{", "http", "response", "resp", "=", "execute", "(", "cluster", ",", "method", ",", "null", ",", "path", ")", ";", "return", "new", "response", "(", "resp", "get", "status", "line", "(", ")", "get", "status", "code", "(", ")", ",", "resp", "get", "all", "headers", "(", ")", ",", "null", ")", ";", "}", "finally", "{", "method", "release", "connection", "(", ")", ";", "}" ]
[ "send", "a", "get", "request" ]
[ "return", "get", "(", "cluster", ",", "path", ")", ";" ]
[ "send", "a", "get", "request" ]
[ "return", "get", "(", "cluster", ",", "path", ",", "empty", "header", "array", ")", ";" ]
[ "send", "a", "get", "request" ]
[ "return", "get", "(", "cluster", ",", "path", ",", "accept", ")", ";" ]
[ "send", "a", "get", "request" ]
[ "return", "get", "(", "cluster", ",", "path", ",", "headers", ")", ";" ]
[ "send", "a", "get", "request" ]
[ "if", "(", "http", "get", "!", "=", "null", ")", "{", "http", "get", "release", "connection", "(", ")", ";", "}", "http", "get", "=", "new", "http", "get", "(", "path", ")", ";", "http", "response", "resp", "=", "execute", "(", "c", ",", "http", "get", ",", "headers", ",", "path", ")", ";", "return", "new", "response", "(", "resp", "get", "status", "line", "(", ")", "get", "status", "code", "(", ")", ",", "resp", "get", "all", "headers", "(", ")", ",", "resp", ",", "resp", "get", "entity", "(", ")", "=", "=", "null", "?", "null", ":", "resp", "get", "entity", "(", ")", "get", "content", "(", ")", ")", ";" ]
[ "send", "a", "put", "request" ]
[ "return", "put", "(", "cluster", ",", "path", ",", "content", "type", ",", "content", ")", ";" ]
[ "send", "a", "put", "request" ]
[ "return", "put", "(", "cluster", ",", "path", ",", "content", "type", ",", "content", ",", "extra", "hdr", ")", ";" ]
[ "send", "a", "put", "request" ]
[ "return", "put", "(", "cluster", ",", "path", ",", "headers", ",", "content", ")", ";" ]
[ "send", "a", "put", "request" ]
[ "http", "put", "method", "=", "new", "http", "put", "(", "path", ")", ";", "try", "{", "method", "set", "entity", "(", "new", "input", "stream", "entity", "(", "new", "byte", "array", "input", "stream", "(", "content", ")", ",", "content", "length", ")", ")", ";", "http", "response", "resp", "=", "execute", "(", "cluster", ",", "method", ",", "headers", ",", "path", ")", ";", "headers", "=", "resp", "get", "all", "headers", "(", ")", ";", "content", "=", "get", "response", "body", "(", "resp", ")", ";", "return", "new", "response", "(", "resp", "get", "status", "line", "(", ")", "get", "status", "code", "(", ")", ",", "headers", ",", "content", ")", ";", "}", "finally", "{", "method", "release", "connection", "(", ")", ";", "}" ]
[ "send", "a", "post", "request" ]
[ "return", "post", "(", "cluster", ",", "path", ",", "content", "type", ",", "content", ")", ";" ]
[ "send", "a", "post", "request" ]
[ "return", "post", "(", "cluster", ",", "path", ",", "content", "type", ",", "content", ",", "extra", "hdr", ")", ";" ]
[ "send", "a", "post", "request" ]
[ "return", "post", "(", "cluster", ",", "path", ",", "headers", ",", "content", ")", ";" ]
[ "send", "a", "post", "request" ]
[ "http", "post", "method", "=", "new", "http", "post", "(", "path", ")", ";", "try", "{", "method", "set", "entity", "(", "new", "input", "stream", "entity", "(", "new", "byte", "array", "input", "stream", "(", "content", ")", ",", "content", "length", ")", ")", ";", "http", "response", "resp", "=", "execute", "(", "cluster", ",", "method", ",", "headers", ",", "path", ")", ";", "headers", "=", "resp", "get", "all", "headers", "(", ")", ";", "content", "=", "get", "response", "body", "(", "resp", ")", ";", "return", "new", "response", "(", "resp", "get", "status", "line", "(", ")", "get", "status", "code", "(", ")", ",", "headers", ",", "content", ")", ";", "}", "finally", "{", "method", "release", "connection", "(", ")", ";", "}" ]
[ "send", "a", "delete", "request" ]
[ "return", "delete", "(", "cluster", ",", "path", ")", ";" ]
[ "send", "a", "delete", "request" ]
[ "return", "delete", "(", "cluster", ",", "path", ",", "extra", "hdr", ")", ";" ]
[ "send", "a", "delete", "request" ]
[ "http", "delete", "method", "=", "new", "http", "delete", "(", "path", ")", ";", "try", "{", "http", "response", "resp", "=", "execute", "(", "cluster", ",", "method", ",", "null", ",", "path", ")", ";", "header", "[", "]", "headers", "=", "resp", "get", "all", "headers", "(", ")", ";", "byte", "[", "]", "content", "=", "get", "response", "body", "(", "resp", ")", ";", "return", "new", "response", "(", "resp", "get", "status", "line", "(", ")", "get", "status", "code", "(", ")", ",", "headers", ",", "content", ")", ";", "}", "finally", "{", "method", "release", "connection", "(", ")", ";", "}" ]
[ "send", "a", "delete", "request" ]
[ "http", "delete", "method", "=", "new", "http", "delete", "(", "path", ")", ";", "try", "{", "header", "[", "]", "headers", "=", "{", "extra", "hdr", "}", ";", "http", "response", "resp", "=", "execute", "(", "cluster", ",", "method", ",", "headers", ",", "path", ")", ";", "headers", "=", "resp", "get", "all", "headers", "(", ")", ";", "byte", "[", "]", "content", "=", "get", "response", "body", "(", "resp", ")", ";", "return", "new", "response", "(", "resp", "get", "status", "line", "(", ")", "get", "status", "code", "(", ")", ",", "headers", ",", "content", ")", ";", "}", "finally", "{", "method", "release", "connection", "(", ")", ";", "}" ]
[ "attempts", "to", "locate", "member", "artifact", "in", "local", "maven", "repository", "then", "downloads" ]
[ "file", "artifact", "=", "new", "file", "(", "local", "m2", "repository", "prefix", "+", "construct", "path", "for", "member", "(", "version", ",", "enterprise", ")", ")", ";", "if", "(", "artifact", "exists", "(", ")", ")", "{", "return", "artifact", ";", "}", "else", "{", "return", "download", "member", "(", "version", ",", "target", ",", "enterprise", ")", ";", "}" ]
[ "attempts", "to", "locate", "member", "tests", "artifact", "in", "local", "maven", "repository", "then", "downloads" ]
[ "file", "artifact", "=", "new", "file", "(", "local", "m2", "repository", "prefix", "+", "construct", "path", "for", "member", "tests", "(", "version", ",", "enterprise", ")", ")", ";", "if", "(", "artifact", "exists", "(", ")", ")", "{", "return", "artifact", ";", "}", "else", "{", "return", "download", "member", "tests", "(", "version", ",", "target", ",", "enterprise", ")", ";", "}" ]
[ "first", "attempt", "to", "locate", "artifact", "in", "local", "maven", "repository", "then", "download" ]
[ "file", "artifact", "=", "new", "file", "(", "local", "m2", "repository", "prefix", "+", "construct", "path", "for", "client", "(", "version", ",", "enterprise", ")", ")", ";", "if", "(", "artifact", "exists", "(", ")", ")", "{", "return", "artifact", ";", "}", "else", "{", "return", "download", "client", "(", "version", ",", "target", ",", "enterprise", ")", ";", "}" ]
[ "the", "i", "d", "3v", "2", "frame", "identifier" ]
[ "return", "i", "d", "3v", "2", "3", "frames", "frame", "id", "v3", "tyer", ";" ]
[ "setter", "/", "getter" ]
[ "m", "name", "=", "name", ";" ]
[ "return", "the", "configured", "message", "converters" ]
[ "return", "this", "message", "writers", ";" ]
[ "write", "a", "given", "body", "to", "the", "response", "with", "{" ]
[ "return", "this", "write", "body", "(", "body", ",", "body", "parameter", ",", "null", ",", "exchange", ")", ";" ]