docstring_tokens
list
code_tokens
list
[ "get", "number", "item" ]
[ "public", "big", "decimal", "get", "number", "item", "(", ")", "{", "return", "number", "item", ";", "}" ]
[ "set", "of", "tls", "related", "options", "that", "govern", "the", "server", "'", "s", "behavior", "use", "these", "options", "to", "control", "if", "all", "http", "requests", "should", "be", "redirected", "to", "https", ",", "and", "the", "tls", "modes", "to", "use", "<", "code", ">", "istio", "networking", "v", "1alpha", "3", "server", "t", "l", "s", "options", "tls", "=", "3", ";", "<", "code", ">" ]
[ "private", "com", "google", "protobuf", "single", "field", "builder", "v", "3", "<", "com", "alibaba", "nacos", "istio", "model", "server", "t", "l", "s", "options", ",", "com", "alibaba", "nacos", "istio", "model", "server", "t", "l", "s", "options", "builder", ",", "com", "alibaba", "nacos", "istio", "model", "server", "t", "l", "s", "options", "or", "builder", ">", "get", "tls", "field", "builder", "(", ")", "{", "if", "(", "tls", "builder", "=", "=", "null", ")", "{", "tls", "builder", "=", "new", "com", "google", "protobuf", "single", "field", "builder", "v", "3", "<", "com", "alibaba", "nacos", "istio", "model", "server", "t", "l", "s", "options", ",", "com", "alibaba", "nacos", "istio", "model", "server", "t", "l", "s", "options", "builder", ",", "com", "alibaba", "nacos", "istio", "model", "server", "t", "l", "s", "options", "or", "builder", ">", "(", "get", "tls", "(", ")", ",", "get", "parent", "for", "children", "(", ")", ",", "is", "clean", "(", ")", ")", ";", "tls", "=", "null", ";", "}", "return", "tls", "builder", ";", "}" ]
[ "gets", "the", "{", "@", "link", "language", "description", "}", "for", "this", "object", "'", "s", "{", "@", "link", "language", "i", "d", "}" ]
[ "public", "language", "description", "get", "language", "description", "(", "language", "service", "language", "service", ")", "throws", "language", "not", "found", "exception", "{", "return", "language", "service", "get", "language", "description", "(", "language", "i", "d", ")", ";", "}" ]
[ "writes", "all", "the", "given", "bytes", "to", "this", "sink" ]
[ "public", "void", "write", "(", "byte", "[", "]", "bytes", ")", "throws", "i", "o", "exception", "{", "check", "not", "null", "(", "bytes", ")", ";", "closer", "closer", "=", "closer", "create", "(", ")", ";", "try", "{", "output", "stream", "out", "=", "closer", "register", "(", "open", "stream", "(", ")", ")", ";", "out", "write", "(", "bytes", ")", ";", "out", "flush", "(", ")", ";", "/", "/", "https", ":", "/", "/", "code", "google", "com", "/", "p", "/", "guava", "-", "libraries", "/", "issues", "/", "detail", "?", "id", "=", "1330", "}", "catch", "(", "throwable", "e", ")", "{", "throw", "closer", "rethrow", "(", "e", ")", ";", "}", "finally", "{", "closer", "close", "(", ")", ";", "}", "}" ]
[ "verify", "a", "view", "file", "system", "wrapped", "over", "multiple", "federated", "name", "nodes", "will", "dispatch", "the", "x", "attr", "operations", "to", "the", "correct", "name", "node" ]
[ "public", "void", "test", "x", "attr", "on", "mount", "entry", "(", ")", "throws", "exception", "{", "/", "/", "set", "x", "attrs", "on", "the", "first", "namespace", "and", "verify", "they", "are", "correct", "fs", "view", "set", "x", "attr", "(", "mount", "on", "nn", "1", ",", "name", "1", ",", "value", "1", ")", ";", "fs", "view", "set", "x", "attr", "(", "mount", "on", "nn", "1", ",", "name", "2", ",", "value", "2", ")", ";", "assert", "equals", "(", "2", ",", "fs", "view", "get", "x", "attrs", "(", "mount", "on", "nn", "1", ")", "size", "(", ")", ")", ";", "assert", "array", "equals", "(", "value", "1", ",", "fs", "view", "get", "x", "attr", "(", "mount", "on", "nn", "1", ",", "name", "1", ")", ")", ";", "assert", "array", "equals", "(", "value", "2", ",", "fs", "view", "get", "x", "attr", "(", "mount", "on", "nn", "1", ",", "name", "2", ")", ")", ";", "/", "/", "double", "-", "check", "by", "getting", "the", "x", "attrs", "using", "file", "system", "/", "/", "instead", "of", "view", "file", "system", "assert", "array", "equals", "(", "value", "1", ",", "f", "hdfs", "get", "x", "attr", "(", "target", "test", "root", ",", "name", "1", ")", ")", ";", "assert", "array", "equals", "(", "value", "2", ",", "f", "hdfs", "get", "x", "attr", "(", "target", "test", "root", ",", "name", "2", ")", ")", ";", "/", "/", "paranoid", "check", ":", "verify", "the", "other", "namespace", "does", "not", "/", "/", "have", "x", "attrs", "set", "on", "the", "same", "path", "assert", "equals", "(", "0", ",", "fs", "view", "get", "x", "attrs", "(", "mount", "on", "nn", "2", ")", "size", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "f", "hdfs", "2", "get", "x", "attrs", "(", "target", "test", "root", "2", ")", "size", "(", ")", ")", ";", "/", "/", "remove", "the", "x", "attr", "entries", "on", "the", "first", "namespace", "fs", "view", "remove", "x", "attr", "(", "mount", "on", "nn", "1", ",", "name", "1", ")", ";", "fs", "view", "remove", "x", "attr", "(", "mount", "on", "nn", "1", ",", "name", "2", ")", ";", "assert", "equals", "(", "0", ",", "fs", "view", "get", "x", "attrs", "(", "mount", "on", "nn", "1", ")", "size", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "f", "hdfs", "get", "x", "attrs", "(", "target", "test", "root", ")", "size", "(", ")", ")", ";", "/", "/", "now", "set", "x", "attrs", "on", "the", "second", "namespace", "fs", "view", "set", "x", "attr", "(", "mount", "on", "nn", "2", ",", "name", "1", ",", "value", "1", ")", ";", "fs", "view", "set", "x", "attr", "(", "mount", "on", "nn", "2", ",", "name", "2", ",", "value", "2", ")", ";", "assert", "equals", "(", "2", ",", "fs", "view", "get", "x", "attrs", "(", "mount", "on", "nn", "2", ")", "size", "(", ")", ")", ";", "assert", "array", "equals", "(", "value", "1", ",", "fs", "view", "get", "x", "attr", "(", "mount", "on", "nn", "2", ",", "name", "1", ")", ")", ";", "assert", "array", "equals", "(", "value", "2", ",", "fs", "view", "get", "x", "attr", "(", "mount", "on", "nn", "2", ",", "name", "2", ")", ")", ";", "assert", "array", "equals", "(", "value", "1", ",", "f", "hdfs", "2", "get", "x", "attr", "(", "target", "test", "root", "2", ",", "name", "1", ")", ")", ";", "assert", "array", "equals", "(", "value", "2", ",", "f", "hdfs", "2", "get", "x", "attr", "(", "target", "test", "root", "2", ",", "name", "2", ")", ")", ";", "fs", "view", "remove", "x", "attr", "(", "mount", "on", "nn", "2", ",", "name", "1", ")", ";", "fs", "view", "remove", "x", "attr", "(", "mount", "on", "nn", "2", ",", "name", "2", ")", ";", "assert", "equals", "(", "0", ",", "fs", "view", "get", "x", "attrs", "(", "mount", "on", "nn", "2", ")", "size", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "f", "hdfs", "2", "get", "x", "attrs", "(", "target", "test", "root", "2", ")", "size", "(", ")", ")", ";", "}" ]
[ "writes", "an", "unsigned", "integral", "to", "{", "@", "code", "out", "}" ]
[ "public", "static", "void", "write", "unsigned", "integral", "value", "(", "byte", "output", "out", ",", "int", "type", ",", "long", "value", ")", "{", "/", "/", "figure", "out", "how", "many", "bits", "are", "needed", "to", "represent", "the", "value", "int", "required", "bits", "=", "64", "-", "long", "number", "of", "leading", "zeros", "(", "value", ")", ";", "if", "(", "required", "bits", "=", "=", "0", ")", "{", "required", "bits", "=", "1", ";", "}", "/", "/", "round", "up", "the", "required", "bits", "to", "a", "number", "of", "bytes", "int", "required", "bytes", "=", "(", "required", "bits", "+", "0x", "0", "7", ")", ">", ">", "3", ";", "/", "*", "*", "write", "the", "header", "byte", ",", "which", "includes", "the", "type", "and", "*", "required", "bytes", "-", "1", "*", "/", "out", "write", "byte", "(", "type", "|", "(", "(", "required", "bytes", "-", "1", ")", "<", "<", "5", ")", ")", ";", "/", "/", "write", "the", "value", ",", "per", "se", "while", "(", "required", "bytes", ">", "0", ")", "{", "out", "write", "byte", "(", "(", "byte", ")", "value", ")", ";", "value", ">", ">", "=", "8", ";", "required", "bytes", "-", "-", ";", "}", "}" ]
[ "deletes", "all", "entities", "with", "the", "given", "keys", "in", "the", "database", "using", "a", "transaction" ]
[ "public", "void", "delete", "by", "key", "in", "tx", "(", "k", "keys", ")", "{", "delete", "in", "tx", "internal", "(", "null", ",", "arrays", "as", "list", "(", "keys", ")", ")", ";", "}" ]
[ "return", "a", "hadoop", "path", "from", "a", "given", "url", "this", "method", "is", "deprecated", ",", "use", "{", "@", "link", "url", "#", "to", "path", "(", ")", "}", "instead" ]
[ "public", "static", "path", "get", "path", "from", "yarn", "u", "r", "l", "(", "url", "url", ")", "throws", "u", "r", "i", "syntax", "exception", "{", "return", "url", "to", "path", "(", ")", ";", "}", "/", "*", "*", "this", "method", "is", "deprecated", ",", "use", "{", "@", "link", "url", "#", "from", "path", "(", "path", ")", "}" ]
[ "creates", "a", "{", "@", "link", "file", "bit", "pattern", "info", "}", "instance", "from", "xml" ]
[ "public", "static", "file", "bit", "pattern", "info", "from", "xml", "(", "element", "e", ")", "throws", "i", "o", "exception", "{", "string", "ghidra", "u", "r", "l", "=", "e", "get", "attribute", "value", "(", "\"", "ghidra", "u", "r", "l", "\"", ")", ";", "string", "language", "i", "d", "=", "e", "get", "attribute", "value", "(", "\"", "language", "i", "d", "\"", ")", ";", "int", "num", "first", "bytes", "=", "xml", "utilities", "parse", "int", "(", "xml", "utilities", "require", "string", "attr", "(", "e", ",", "\"", "num", "first", "bytes", "\"", ")", ")", ";", "int", "num", "first", "instructions", "=", "xml", "utilities", "parse", "int", "(", "xml", "utilities", "require", "string", "attr", "(", "e", ",", "\"", "num", "first", "instructions", "\"", ")", ")", ";", "int", "num", "pre", "bytes", "=", "xml", "utilities", "parse", "int", "(", "xml", "utilities", "require", "string", "attr", "(", "e", ",", "\"", "num", "pre", "bytes", "\"", ")", ")", ";", "int", "num", "pre", "instructions", "=", "xml", "utilities", "parse", "int", "(", "xml", "utilities", "require", "string", "attr", "(", "e", ",", "\"", "num", "pre", "instructions", "\"", ")", ")", ";", "int", "num", "return", "bytes", "=", "xml", "utilities", "parse", "int", "(", "xml", "utilities", "require", "string", "attr", "(", "e", ",", "\"", "num", "return", "bytes", "\"", ")", ")", ";", "int", "num", "return", "instructions", "=", "xml", "utilities", "parse", "int", "(", "xml", "utilities", "require", "string", "attr", "(", "e", ",", "\"", "num", "return", "instructions", "\"", ")", ")", ";", "list", "<", "function", "bit", "pattern", "info", ">", "func", "bit", "pattern", "info", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "element", "func", "bit", "pattern", "info", "list", "ele", "=", "e", "get", "child", "(", "\"", "func", "bit", "pattern", "info", "list", "\"", ")", ";", "if", "(", "func", "bit", "pattern", "info", "list", "ele", "!", "=", "null", ")", "{", "for", "(", "element", "child", "element", ":", "xml", "utilities", "get", "children", "(", "func", "bit", "pattern", "info", "list", "ele", ",", "function", "bit", "pattern", "info", "xml", "element", "name", ")", ")", "{", "func", "bit", "pattern", "info", "list", "add", "(", "function", "bit", "pattern", "info", "from", "xml", "(", "child", "element", ")", ")", ";", "}", "}", "file", "bit", "pattern", "info", "result", "=", "new", "file", "bit", "pattern", "info", "(", ")", ";", "result", "set", "func", "bit", "pattern", "info", "(", "func", "bit", "pattern", "info", "list", ")", ";", "result", "set", "ghidra", "u", "r", "l", "(", "ghidra", "u", "r", "l", ")", ";", "result", "set", "language", "i", "d", "(", "language", "i", "d", ")", ";", "result", "set", "num", "first", "bytes", "(", "num", "first", "bytes", ")", ";", "result", "set", "num", "first", "instructions", "(", "num", "first", "instructions", ")", ";", "result", "set", "num", "pre", "bytes", "(", "num", "pre", "bytes", ")", ";", "result", "set", "num", "pre", "instructions", "(", "num", "pre", "instructions", ")", ";", "result", "set", "num", "return", "bytes", "(", "num", "return", "bytes", ")", ";", "result", "set", "num", "return", "instructions", "(", "num", "return", "instructions", ")", ";", "return", "result", ";", "}" ]
[ "used", "to", "grab", "the", "loaded", "class", "nodes" ]
[ "public", "static", "array", "list", "<", "class", "node", ">", "get", "loaded", "classes", "(", ")", "{", "return", "the", "bytecode", "club", "bytecodeviewer", "bytecode", "viewer", "get", "loaded", "classes", "(", ")", ";", "}" ]
[ "convert", "a", "collection", "of", "metadata", "entries", "to", "a", "list", "of", "d", "d", "b", "path", "metadata", "entries", "if", "the", "sources", "are", "already", "d", "d", "b", "path", "metadata", "instances", ",", "they", "are", "copied", "directly", "into", "the", "new", "list", ",", "otherwise", "new", "instances", "are", "created" ]
[ "static", "list", "<", "d", "d", "b", "path", "metadata", ">", "path", "meta", "to", "d", "d", "b", "path", "meta", "(", "collection", "<", "?", "extends", "path", "metadata", ">", "path", "metadatas", ")", "{", "return", "path", "metadatas", "stream", "(", ")", "map", "(", "p", "-", ">", "(", "p", "instanceof", "d", "d", "b", "path", "metadata", ")", "?", "(", "d", "d", "b", "path", "metadata", ")", "p", ":", "new", "d", "d", "b", "path", "metadata", "(", "p", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";", "}" ]
[ "build", "json", "web", "key", "set" ]
[ "private", "optional", "<", "json", "web", "key", "set", ">", "build", "json", "web", "key", "set", "(", ")", "{", "try", "{", "val", "jwks", "file", "=", "oidc", "json", "web", "keystore", "generator", "service", "generate", "(", ")", ";", "logger", "debug", "(", "\"", "loading", "default", "json", "web", "key", "from", "[", "{", "}", "]", "\"", ",", "jwks", "file", ")", ";", "if", "(", "jwks", "file", "=", "=", "null", ")", "{", "return", "optional", "empty", "(", ")", ";", "}", "logger", "trace", "(", "\"", "retrieving", "default", "json", "web", "key", "from", "[", "{", "}", "]", "\"", ",", "jwks", "file", ")", ";", "val", "json", "web", "key", "set", "=", "build", "json", "web", "key", "set", "(", "jwks", "file", ")", ";", "if", "(", "json", "web", "key", "set", "=", "=", "null", "|", "|", "json", "web", "key", "set", "get", "json", "web", "keys", "(", ")", "is", "empty", "(", ")", ")", "{", "logger", "warn", "(", "\"", "no", "json", "web", "keys", "could", "be", "found", "\"", ")", ";", "return", "optional", "empty", "(", ")", ";", "}", "val", "bad", "keys", "count", "=", "json", "web", "key", "set", "get", "json", "web", "keys", "(", ")", "stream", "(", ")", "filter", "(", "k", "-", ">", "string", "utils", "is", "blank", "(", "k", "get", "algorithm", "(", ")", ")", "&", "&", "string", "utils", "is", "blank", "(", "k", "get", "key", "id", "(", ")", ")", "&", "&", "string", "utils", "is", "blank", "(", "k", "get", "key", "type", "(", ")", ")", ")", "count", "(", ")", ";", "if", "(", "bad", "keys", "count", "=", "=", "json", "web", "key", "set", "get", "json", "web", "keys", "(", ")", "size", "(", ")", ")", "{", "logger", "warn", "(", "\"", "no", "valid", "json", "web", "keys", "could", "be", "found", "\"", ")", ";", "return", "optional", "empty", "(", ")", ";", "}", "val", "web", "key", "=", "get", "json", "signing", "web", "key", "from", "jwks", "(", "json", "web", "key", "set", ")", ";", "if", "(", "web", "key", "!", "=", "null", "&", "&", "web", "key", "get", "private", "key", "(", ")", "=", "=", "null", ")", "{", "logger", "warn", "(", "\"", "json", "web", "key", "retrieved", "[", "{", "}", "]", "has", "no", "associated", "private", "key", "\"", ",", "web", "key", "get", "key", "id", "(", ")", ")", ";", "return", "optional", "empty", "(", ")", ";", "}", "logger", "trace", "(", "\"", "loaded", "json", "web", "key", "set", "as", "[", "{", "}", "]", "\"", ",", "json", "web", "key", "set", "to", "json", "(", ")", ")", ";", "return", "optional", "of", "(", "json", "web", "key", "set", ")", ";", "}", "catch", "(", "final", "exception", "e", ")", "{", "logger", "debug", "(", "e", "get", "message", "(", ")", ",", "e", ")", ";", "}", "return", "optional", "empty", "(", ")", ";", "}" ]
[ "called", "once", "the", "deferred", "computation", "completes", "normally" ]
[ "void", "on", "complete", "(", ")", ";" ]
[ "removes", "any", "data", "objects", "that", "have", "data", "types", "matching", "the", "given", "data", "type", "ids" ]
[ "public", "void", "clear", "data", "(", "long", "[", "]", "data", "type", "i", "ds", ",", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", "{", "lock", "acquire", "(", ")", ";", "try", "{", "list", "<", "address", ">", "addrs", "=", "new", "array", "list", "<", ">", "(", ")", ";", "record", "iterator", "it", "=", "data", "adapter", "get", "records", "(", ")", ";", "while", "(", "it", "has", "next", "(", ")", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "d", "b", "record", "rec", "=", "it", "next", "(", ")", ";", "long", "id", "=", "rec", "get", "long", "value", "(", "data", "d", "b", "adapter", "data", "type", "id", "col", ")", ";", "for", "(", "long", "data", "type", "i", "d", ":", "data", "type", "i", "ds", ")", "{", "if", "(", "id", "=", "=", "data", "type", "i", "d", ")", "{", "addrs", "add", "(", "addr", "map", "decode", "address", "(", "rec", "get", "key", "(", ")", ")", ")", ";", "break", ";", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "addrs", "size", "(", ")", ";", "i", "+", "+", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "address", "addr", "=", "addrs", "get", "(", "i", ")", ";", "clear", "code", "units", "(", "addr", ",", "addr", ",", "false", ",", "monitor", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "db", "error", "(", "e", ")", ";", "}", "finally", "{", "lock", "release", "(", ")", ";", "}", "}" ]
[ "apply", "the", "given", "transaction", "timeout", "the", "default", "implementation", "will", "call", "{", "@", "code", "user", "transaction", "set", "transaction", "timeout", "}", "for", "a", "non", "-", "default", "timeout", "value" ]
[ "protected", "void", "apply", "timeout", "(", "jta", "transaction", "object", "tx", "object", ",", "int", "timeout", ")", "throws", "system", "exception", "{", "if", "(", "timeout", ">", "transaction", "definition", "timeout", "default", ")", "{", "tx", "object", "get", "user", "transaction", "(", ")", "set", "transaction", "timeout", "(", "timeout", ")", ";", "if", "(", "timeout", ">", "0", ")", "{", "tx", "object", "reset", "transaction", "timeout", "=", "true", ";", "}", "}", "}" ]
[ "gets", "the", "task", "attempt", "start", "time", "to", "be", "used", "while", "publishing", "to", "a", "t", "sv", "2" ]
[ "public", "long", "get", "start", "time", "(", ")", "{", "return", "start", "time", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "make", "a", "prettyprinted", "json", "text", "of", "this", "j", "s", "o", "n", "object", "warning", ":", "this", "method", "assumes", "that", "the", "signal", "data", "structure", "is", "acyclical" ]
[ "string", "to", "string", "(", "int", "indent", "factor", ",", "int", "indent", ")", "throws", "j", "s", "o", "n", "exception", "{", "int", "j", ";", "int", "n", "=", "length", "(", ")", ";", "if", "(", "n", "=", "=", "0", ")", "{", "return", "\"", "{", "}", "\"", ";", "}", "iterator", "keys", "=", "sorted", "keys", "(", ")", ";", "string", "builder", "sb", "=", "new", "string", "builder", "(", "\"", "{", "\"", ")", ";", "int", "newindent", "=", "indent", "+", "indent", "factor", ";", "object", "o", ";", "if", "(", "n", "=", "=", "1", ")", "{", "o", "=", "keys", "next", "(", ")", ";", "sb", "append", "(", "quote", "(", "o", "to", "string", "(", ")", ")", ")", ";", "sb", "append", "(", "\"", ":", "\"", ")", ";", "sb", "append", "(", "value", "to", "string", "(", "this", "map", "get", "(", "o", ")", ",", "indent", "factor", ",", "indent", ")", ")", ";", "}", "else", "{", "while", "(", "keys", "has", "next", "(", ")", ")", "{", "o", "=", "keys", "next", "(", ")", ";", "if", "(", "sb", "length", "(", ")", ">", "1", ")", "{", "sb", "append", "(", "\"", ",", "\\", "n", "\"", ")", ";", "}", "else", "{", "sb", "append", "(", "'", "\\", "n", "'", ")", ";", "}", "for", "(", "j", "=", "0", ";", "j", "<", "newindent", ";", "j", "+", "=", "1", ")", "{", "sb", "append", "(", "'", "'", ")", ";", "}", "sb", "append", "(", "quote", "(", "o", "to", "string", "(", ")", ")", ")", ";", "sb", "append", "(", "\"", ":", "\"", ")", ";", "sb", "append", "(", "value", "to", "string", "(", "this", "map", "get", "(", "o", ")", ",", "indent", "factor", ",", "newindent", ")", ")", ";", "}", "if", "(", "sb", "length", "(", ")", ">", "1", ")", "{", "sb", "append", "(", "'", "\\", "n", "'", ")", ";", "for", "(", "j", "=", "0", ";", "j", "<", "indent", ";", "j", "+", "=", "1", ")", "{", "sb", "append", "(", "'", "'", ")", ";", "}", "}", "}", "sb", "append", "(", "'", "}", "'", ")", ";", "return", "sb", "to", "string", "(", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "returns", "the", "result", "of", "calling", "{", "@", "link", "#", "visit", "children", "}", "on", "{", "@", "code", "ctx", "}" ]
[ "@", "override", "public", "t", "visit", "read", "(", "painless", "parser", "read", "context", "ctx", ")", "{", "return", "visit", "children", "(", "ctx", ")", ";", "}" ]
[ "map", "the", "route", "for", "http", "connect", "requests" ]
[ "public", "void", "connect", "(", "string", "path", ",", "string", "accept", "type", ",", "route", "route", ",", "response", "transformer", "transformer", ")", "{", "add", "route", "(", "http", "method", "connect", ",", "response", "transformer", "route", "impl", "create", "(", "path", ",", "accept", "type", ",", "route", ",", "transformer", ")", ")", ";", "}" ]
[ "test", "inserting", "a", "document", "containing", "an", "array", "of", "metrics", "an", "exception", "must", "be", "thrown" ]
[ "public", "void", "test", "parse", "array", "value", "(", ")", "throws", "exception", "{", "document", "mapper", "mapper", "=", "create", "document", "mapper", "(", "field", "mapping", "(", "this", ":", ":", "minimal", "mapping", ")", ")", ";", "exception", "e", "=", "expect", "throws", "(", "mapper", "parsing", "exception", "class", ",", "(", ")", "-", ">", "mapper", "parse", "(", "source", "(", "b", "-", ">", "b", "start", "array", "(", "\"", "field", "\"", ")", "start", "object", "(", ")", "field", "(", "\"", "min", "\"", ",", "10", "0", ")", "field", "(", "\"", "max", "\"", ",", "50", "0", ")", "field", "(", "\"", "value", "count", "\"", ",", "3", ")", "end", "object", "(", ")", "start", "object", "(", ")", "field", "(", "\"", "min", "\"", ",", "11", "0", ")", "field", "(", "\"", "max", "\"", ",", "51", "0", ")", "field", "(", "\"", "value", "count", "\"", ",", "3", ")", "end", "object", "(", ")", "end", "array", "(", ")", ")", ")", ")", ";", "assert", "that", "(", "e", "get", "cause", "(", ")", "get", "message", "(", ")", ",", "contains", "string", "(", "\"", "field", "[", "field", "]", "of", "type", "[", "aggregate", "metric", "double", "]", "\"", "+", "\"", "does", "not", "support", "indexing", "multiple", "values", "for", "the", "same", "field", "in", "the", "same", "document", "\"", ")", ")", ";", "}" ]
[ "set", "the", "boolean", "{", "@", "code", "secure", "}", "flag", "indicating", "whether", "the", "mock", "request", "was", "made", "using", "a", "secure", "channel", ",", "such", "as", "https" ]
[ "public", "void", "set", "secure", "(", "boolean", "secure", ")", "{", "this", "secure", "=", "secure", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "adds", "each", "element", "of", "{", "@", "code", "elements", "}", "to", "the", "{", "@", "code", "immutable", "sorted", "set", "}", ",", "ignoring", "duplicate", "elements", "(", "only", "the", "first", "duplicate", "element", "is", "added", ")" ]
[ "public", "builder", "<", "e", ">", "add", "(", "e", "elements", ")", "{", "super", "add", "(", "elements", ")", ";", "return", "this", ";", "}" ]
[ "returns", "the", "symbol", "with", "the", "specified", "address", ",", "name", ",", "and", "namespace" ]
[ "public", "final", "symbol", "get", "symbol", "at", "(", "address", "address", ",", "string", "name", ",", "namespace", "namespace", ")", "{", "return", "current", "program", "get", "symbol", "table", "(", ")", "get", "symbol", "(", "name", ",", "address", ",", "namespace", ")", ";", "}" ]
[ "test", "helper", "method", "to", "access", "private", "create", "request", "url", "method" ]
[ "public", "static", "url", "get", "test", "url", "(", "abfs", "client", "client", ",", "string", "path", ")", "throws", "azure", "blob", "file", "system", "exception", "{", "final", "abfs", "uri", "query", "builder", "abfs", "uri", "query", "builder", "=", "client", "create", "default", "uri", "query", "builder", "(", ")", ";", "return", "client", "create", "request", "url", "(", "path", ",", "abfs", "uri", "query", "builder", "to", "string", "(", ")", ")", ";", "}" ]
[ "quick", "sort", "using", "an", "index", "array", "on", "return", ",", "values", "[", "order", "[", "i", "]", "]", "is", "in", "order", "as", "i", "goes", "start", "n" ]
[ "public", "static", "void", "sort", "(", "int", "[", "]", "order", ",", "double", "[", "]", "values", ",", "int", "start", ",", "int", "n", ")", "{", "for", "(", "int", "i", "=", "start", ";", "i", "<", "start", "+", "n", ";", "i", "+", "+", ")", "{", "order", "[", "i", "]", "=", "i", ";", "}", "quick", "sort", "(", "order", ",", "values", ",", "start", ",", "start", "+", "n", ",", "64", ")", ";", "insertion", "sort", "(", "order", ",", "values", ",", "start", ",", "start", "+", "n", ",", "64", ")", ";", "}" ]
[ "extract", "the", "component", "predicates", "as", "a", "list", "of", "list", "in", "which", "is", "grouped", "so", "that", "the", "outer", "level", "has", "same", "conjunctivedisjunctive", "joiner", "as", "original", "predicate", "and", "inner", "level", "has", "opposite", "joiner", "for", "example", ",", "(", "a", "or", "b", ")", "and", "(", "a", "or", "c", ")", "or", "(", "a", "or", "c", ")", "returns", "[", "[", "a", ",", "b", "]", ",", "[", "a", ",", "c", "]", ",", "[", "a", ",", "c", "]", "]" ]
[ "private", "list", "<", "list", "<", "row", "expression", ">", ">", "get", "grouped", "clauses", "(", "special", "form", "expression", "expression", ")", "{", "return", "extract", "predicates", "(", "expression", "get", "form", "(", ")", ",", "expression", ")", "stream", "(", ")", "map", "(", "logical", "row", "expressions", ":", ":", "extract", "predicates", ")", "collect", "(", "to", "list", "(", ")", ")", ";", "}" ]
[ "the", "value", "assigned", "to", "this", "element", "<", "code", ">", "optional", "aapt", "pb", "item", "item", "=", "3", ";", "<", "code", ">" ]
[ "public", "builder", "set", "item", "(", "com", "android", "aapt", "resources", "item", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "set", "item", "(", "value", ")", ";", "return", "this", ";", "}" ]
[ "returns", "whether", "the", "page", "has", "data", "at", "all" ]
[ "default", "boolean", "has", "data", "(", ")", "{", "return", "get", "data", "size", "(", ")", ">", "0", ";", "}" ]
[ "creates", "a", "testable", "that", "checks", "whether", "the", "value", "of", "the", "expression", "is", "a", "sequence", "containing", "the", "expected", "elements" ]
[ "private", "testable", "collection", "testable", "(", "final", "string", "src", ",", "final", "object", "expected", ")", "{", "return", "new", "testable", "(", ")", "{", "@", "override", "public", "void", "run", "(", ")", "throws", "exception", "{", "assert", "that", "(", "(", "iterable", "<", "?", ">", ")", "eval", "(", "src", ")", ")", "contains", "exactly", "(", "expected", ")", "in", "order", "(", ")", ";", "}", "}", ";", "}" ]
[ "predicate", "to", "check", "if", "there", "is", "data", "in", "the", "block" ]
[ "boolean", "has", "data", "(", ")", "{", "return", "data", "size", "(", ")", ">", "0", ";", "}" ]
[ "checking", "all", "{", "@", "link", "rule", "}", "s", "about", "the", "protected", "method" ]
[ "public", "static", "boolean", "entry", "(", "method", "method", ")", "{", "return", "entry", "(", "method", ",", "entry", "type", "out", ",", "1", ",", "objects0", ")", ";", "}" ]
[ "returns", "true", "if", "an", "rpc", "with", "the", "given", "properties", "should", "be", "counted", "when", "calculating", "the", "in", "-", "use", "state", "of", "a", "transport" ]
[ "public", "static", "boolean", "should", "be", "counted", "for", "in", "use", "(", "call", "options", "call", "options", ")", "{", "return", "!", "boolean", "true", "equals", "(", "call", "options", "get", "option", "(", "call", "options", "rpc", "owned", "by", "balancer", ")", ")", ";", "}" ]
[ "release", "all", "buffered", "outbound", "messages", "and", "return", "{", "@", "code", "true", "}", "if", "any", "were", "in", "the", "outbound", "buffer", ",", "{", "@", "code", "false", "}", "otherwise" ]
[ "public", "boolean", "release", "outbound", "(", ")", "{", "return", "release", "all", "(", "outbound", "messages", ")", ";", "}" ]
[ "@", "inherit", "doc" ]
[ "public", "int", "read", "(", ")", "throws", "e", "o", "f", "exception", "{", "try", "{", "int", "value", "=", "array", "[", "cursor", "(", ")", "]", ";", "advance", "(", "1", ")", ";", "return", "value", "&", "0xffff", ";", "}", "catch", "(", "array", "index", "out", "of", "bounds", "exception", "ex", ")", "{", "throw", "new", "e", "o", "f", "exception", "(", ")", ";", "}", "}" ]
[ "testing", "internal", "private", "logic", "due", "to", "the", "complexity", "so", "i", "want", "to", "use", "tdd", "to", "test", "as", "a", "i", "build", "it", "rather", "than", "relying", "purely", "on", "the", "overall", "functionality", "expected", "by", "the", "public", "methods" ]
[ "public", "void", "aggregator", "simple", "(", ")", "{", "publish", "processor", "<", "string", ">", "r", "1", "=", "publish", "processor", "create", "(", ")", ";", "publish", "processor", "<", "string", ">", "r", "2", "=", "publish", "processor", "create", "(", ")", ";", "/", "*", "define", "a", "subscriber", "to", "receive", "aggregated", "events", "*", "/", "subscriber", "<", "string", ">", "subscriber", "=", "test", "helper", "mock", "subscriber", "(", ")", ";", "flowable", "zip", "(", "r", "1", ",", "r", "2", ",", "zipr", "2", ")", "subscribe", "(", "subscriber", ")", ";", "/", "*", "simulate", "the", "flowables", "pushing", "data", "into", "the", "aggregator", "*", "/", "r", "1", "on", "next", "(", "\"", "hello", "\"", ")", ";", "r", "2", "on", "next", "(", "\"", "world", "\"", ")", ";", "in", "order", "in", "order", "=", "in", "order", "(", "subscriber", ")", ";", "verify", "(", "subscriber", ",", "never", "(", ")", ")", "on", "error", "(", "any", "(", "throwable", "class", ")", ")", ";", "verify", "(", "subscriber", ",", "never", "(", ")", ")", "on", "complete", "(", ")", ";", "in", "order", "verify", "(", "subscriber", ",", "times", "(", "1", ")", ")", "on", "next", "(", "\"", "helloworld", "\"", ")", ";", "r", "1", "on", "next", "(", "\"", "hello", "\"", ")", ";", "r", "2", "on", "next", "(", "\"", "again", "\"", ")", ";", "verify", "(", "subscriber", ",", "never", "(", ")", ")", "on", "error", "(", "any", "(", "throwable", "class", ")", ")", ";", "verify", "(", "subscriber", ",", "never", "(", ")", ")", "on", "complete", "(", ")", ";", "in", "order", "verify", "(", "subscriber", ",", "times", "(", "1", ")", ")", "on", "next", "(", "\"", "hello", "again", "\"", ")", ";", "r", "1", "on", "complete", "(", ")", ";", "r", "2", "on", "complete", "(", ")", ";", "in", "order", "verify", "(", "subscriber", ",", "never", "(", ")", ")", "on", "next", "(", "any", "string", "(", ")", ")", ";", "verify", "(", "subscriber", ",", "times", "(", "1", ")", ")", "on", "complete", "(", ")", ";", "}" ]
[ "calculates", "a", "base", "id", "for", "an", "{", "@", "link", "layout", "output", "}", "based", "on", "the", "{", "@", "link", "component", "}", ",", "the", "depth", "in", "the", "view", "hierarchy", ",", "and", "the", "type", "of", "output", "see", "{", "@", "link", "output", "unit", "type", "}" ]
[ "private", "static", "long", "calculate", "layout", "output", "base", "id", "(", "layout", "output", "layout", "output", ",", "int", "level", ",", "@", "output", "unit", "type", "int", "type", ")", "{", "if", "(", "level", "<", "0", "|", "|", "level", ">", "max", "level", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "level", "must", "be", "non", "-", "negative", "and", "no", "greater", "than", "\"", "+", "max", "level", "+", "\"", "actual", "level", "\"", "+", "level", ")", ";", "}", "long", "component", "id", "=", "layout", "output", "get", "component", "(", ")", "!", "=", "null", "?", "layout", "output", "get", "component", "(", ")", "get", "type", "id", "(", ")", ":", "0l", ";", "long", "component", "shifted", "=", "component", "id", "<", "<", "component", "id", "shift", ";", "long", "level", "shifted", "=", "(", "(", "long", ")", "level", ")", "<", "<", "level", "shift", ";", "long", "type", "shifted", "=", "(", "(", "long", ")", "type", ")", "<", "<", "type", "shift", ";", "return", "0l", "|", "component", "shifted", "|", "level", "shifted", "|", "type", "shifted", ";", "}" ]
[ "bind", "the", "given", "namespace", "as", "default", "namespace" ]
[ "public", "void", "bind", "default", "namespace", "uri", "(", "string", "namespace", "uri", ")", "{", "bind", "namespace", "uri", "(", "x", "m", "l", "constants", "default", "ns", "prefix", ",", "namespace", "uri", ")", ";", "}" ]
[ "judge", "the", "table", "name", "is", "an", "generic", "table", "or", "not" ]
[ "public", "static", "boolean", "is", "generic", "table", "(", "string", "table", "name", ",", "s", "q", "lite", "database", "db", ")", "{", "if", "(", "!", "text", "utils", "is", "empty", "(", "table", "name", ")", ")", "{", "if", "(", "table", "name", "matches", "(", "\"", "[", "0", "-", "9a", "-", "z", "a", "-", "z", "]", "+", "[", "0", "-", "9a", "-", "z", "a", "-", "z", "]", "+", "\"", ")", ")", "{", "cursor", "cursor", "=", "null", ";", "try", "{", "cursor", "=", "db", "query", "(", "const", "table", "schema", "table", "name", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ")", ";", "if", "(", "cursor", "move", "to", "first", "(", ")", ")", "{", "do", "{", "string", "table", "name", "d", "b", "=", "cursor", "get", "string", "(", "cursor", "get", "column", "index", "or", "throw", "(", "const", "table", "schema", "column", "name", ")", ")", ";", "if", "(", "table", "name", "equals", "ignore", "case", "(", "table", "name", "d", "b", ")", ")", "{", "int", "table", "type", "=", "cursor", "get", "int", "(", "cursor", "get", "column", "index", "or", "throw", "(", "const", "table", "schema", "column", "type", ")", ")", ";", "if", "(", "table", "type", "=", "=", "const", "table", "schema", "generic", "table", ")", "{", "return", "true", ";", "}", "break", ";", "}", "}", "while", "(", "cursor", "move", "to", "next", "(", ")", ")", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "finally", "{", "if", "(", "cursor", "!", "=", "null", ")", "{", "cursor", "close", "(", ")", ";", "}", "}", "}", "}", "return", "false", ";", "}" ]
[ "this", "test", "is", "mainly", "to", "make", "sure", "we", "can", "read", "the", "default", "roles", "yml", "config" ]
[ "public", "void", "test", "default", "roles", "file", "(", ")", "throws", "exception", "{", "/", "/", "todo", "we", "should", "add", "the", "config", "dir", "to", "the", "resources", "so", "we", "don", "'", "t", "copy", "this", "stuff", "around", "path", "path", "=", "get", "data", "path", "(", "\"", "default", "roles", "yml", "\"", ")", ";", "map", "<", "string", ",", "role", "descriptor", ">", "roles", "=", "file", "roles", "store", "parse", "file", "(", "path", ",", "logger", ",", "settings", "empty", ",", "test", "utils", "new", "test", "license", "state", "(", ")", ",", "x", "content", "registry", "(", ")", ")", ";", "assert", "that", "(", "roles", ",", "not", "null", "value", "(", ")", ")", ";", "assert", "that", "(", "roles", "size", "(", ")", ",", "is", "(", "0", ")", ")", ";", "}" ]
[ "retrieves", "the", "leader", "akka", "url", "and", "the", "current", "leader", "session", "id", "the", "values", "are", "stored", "in", "a", "{", "@", "link", "leader", "connection", "info", "}", "instance" ]
[ "public", "static", "leader", "connection", "info", "retrieve", "leader", "connection", "info", "(", "leader", "retrieval", "service", "leader", "retrieval", "service", ",", "duration", "timeout", ")", "throws", "leader", "retrieval", "exception", "{", "leader", "connection", "info", "listener", "listener", "=", "new", "leader", "connection", "info", "listener", "(", ")", ";", "try", "{", "leader", "retrieval", "service", "start", "(", "listener", ")", ";", "return", "listener", "get", "leader", "connection", "info", "future", "(", ")", "get", "(", "timeout", "to", "millis", "(", ")", ",", "time", "unit", "milliseconds", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "leader", "retrieval", "exception", "(", "\"", "could", "not", "retrieve", "the", "leader", "address", "and", "leader", "\"", "+", "\"", "session", "id", "\"", ",", "e", ")", ";", "}", "finally", "{", "try", "{", "leader", "retrieval", "service", "stop", "(", ")", ";", "}", "catch", "(", "exception", "fe", ")", "{", "log", "warn", "(", "\"", "could", "not", "stop", "the", "leader", "retrieval", "service", "\"", ",", "fe", ")", ";", "}", "}", "}" ]
[ "clear", "all", "blocks", "of", "the", "file" ]
[ "public", "void", "clear", "blocks", "(", ")", "{", "this", "blocks", "=", "block", "info", "empty", "array", ";", "}" ]
[ "sets", "whether", "the", "field", "is", "required", "or", "not", "if", "so", ",", "it", "will", "be", "rendered", "differently", "to", "indicate", "that", "to", "the", "user" ]
[ "public", "void", "set", "required", "(", "boolean", "required", ")", "{", "this", "required", "=", "required", ";", "}" ]
[ "remove", "a", "datanode", "descriptor" ]
[ "private", "void", "remove", "datanode", "(", "datanode", "descriptor", "node", "info", ",", "boolean", "remove", "blocks", "from", "blocks", "map", ")", "{", "assert", "namesystem", "has", "write", "lock", "(", ")", ";", "heartbeat", "manager", "remove", "datanode", "(", "node", "info", ")", ";", "if", "(", "remove", "blocks", "from", "blocks", "map", ")", "{", "block", "manager", "remove", "blocks", "associated", "to", "(", "node", "info", ")", ";", "}", "networktopology", "remove", "(", "node", "info", ")", ";", "decrement", "version", "count", "(", "node", "info", "get", "software", "version", "(", ")", ")", ";", "block", "manager", "get", "block", "report", "lease", "manager", "(", ")", "unregister", "(", "node", "info", ")", ";", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "{", "log", "debug", "(", "\"", "remove", "datanode", "\"", "+", "node", "info", ")", ";", "}", "block", "manager", "check", "safe", "mode", "(", ")", ";", "}" ]
[ "creates", "a", "{", "@", "code", "data", "extractor", "factory", "}", "for", "the", "given", "datafeed", "-", "job", "combination" ]
[ "static", "void", "create", "(", "client", "client", ",", "datafeed", "config", "datafeed", ",", "job", "job", ",", "named", "x", "content", "registry", "x", "content", "registry", ",", "datafeed", "timing", "stats", "reporter", "timing", "stats", "reporter", ",", "action", "listener", "<", "data", "extractor", "factory", ">", "listener", ")", "{", "action", "listener", "<", "data", "extractor", "factory", ">", "factory", "handler", "=", "action", "listener", "wrap", "(", "factory", "-", ">", "listener", "on", "response", "(", "datafeed", "get", "chunking", "config", "(", ")", "is", "enabled", "(", ")", "?", "new", "chunked", "data", "extractor", "factory", "(", "client", ",", "datafeed", ",", "job", ",", "x", "content", "registry", ",", "factory", ",", "timing", "stats", "reporter", ")", ":", "factory", ")", ",", "listener", ":", ":", "on", "failure", ")", ";", "action", "listener", "<", "get", "rollup", "index", "caps", "action", "response", ">", "get", "rollup", "index", "caps", "action", "handler", "=", "action", "listener", "wrap", "(", "response", "-", ">", "{", "if", "(", "response", "get", "jobs", "(", ")", "is", "empty", "(", ")", ")", "{", "/", "/", "this", "means", "no", "rollup", "indexes", "are", "in", "the", "config", "if", "(", "datafeed", "has", "aggregations", "(", ")", ")", "{", "factory", "handler", "on", "response", "(", "new", "aggregation", "data", "extractor", "factory", "(", "client", ",", "datafeed", ",", "job", ",", "x", "content", "registry", ",", "timing", "stats", "reporter", ")", ")", ";", "}", "else", "{", "scroll", "data", "extractor", "factory", "create", "(", "client", ",", "datafeed", ",", "job", ",", "x", "content", "registry", ",", "timing", "stats", "reporter", ",", "factory", "handler", ")", ";", "}", "}", "else", "{", "if", "(", "datafeed", "has", "aggregations", "(", ")", ")", "{", "/", "/", "rollup", "indexes", "require", "aggregations", "rollup", "data", "extractor", "factory", "create", "(", "client", ",", "datafeed", ",", "job", ",", "response", "get", "jobs", "(", ")", ",", "x", "content", "registry", ",", "timing", "stats", "reporter", ",", "factory", "handler", ")", ";", "}", "else", "{", "listener", "on", "failure", "(", "new", "illegal", "argument", "exception", "(", "\"", "aggregations", "are", "required", "when", "using", "rollup", "indices", "\"", ")", ")", ";", "}", "}", "}", ",", "e", "-", ">", "{", "throwable", "cause", "=", "exceptions", "helper", "unwrap", "cause", "(", "e", ")", ";", "if", "(", "cause", "instanceof", "index", "not", "found", "exception", ")", "{", "listener", "on", "failure", "(", "new", "resource", "not", "found", "exception", "(", "\"", "datafeed", "[", "\"", "+", "datafeed", "get", "id", "(", ")", "+", "\"", "]", "cannot", "retrieve", "data", "because", "index", "\"", "+", "(", "(", "index", "not", "found", "exception", ")", "cause", ")", "get", "index", "(", ")", "+", "\"", "does", "not", "exist", "\"", ")", ")", ";", "}", "else", "{", "listener", "on", "failure", "(", "e", ")", ";", "}", "}", ")", ";", "if", "(", "remote", "cluster", "license", "checker", "contains", "remote", "index", "(", "datafeed", "get", "indices", "(", ")", ")", ")", "{", "/", "/", "if", "we", "have", "remote", "indices", "in", "the", "data", "feed", ",", "don", "'", "t", "bother", "checking", "for", "rollup", "support", "/", "/", "rollups", "+", "ccs", "is", "not", "supported", "get", "rollup", "index", "caps", "action", "handler", "on", "response", "(", "new", "get", "rollup", "index", "caps", "action", "response", "(", ")", ")", ";", "}", "else", "{", "client", "helper", "execute", "async", "with", "origin", "(", "client", ",", "client", "helper", "ml", "origin", ",", "get", "rollup", "index", "caps", "action", "instance", ",", "new", "get", "rollup", "index", "caps", "action", "request", "(", "datafeed", "get", "indices", "(", ")", "to", "array", "(", "new", "string", "[", "0", "]", ")", ",", "datafeed", "get", "indices", "options", "(", ")", ")", ",", "get", "rollup", "index", "caps", "action", "handler", ")", ";", "}", "}" ]
[ "logs", "out", "current", "logged", "in", "user", "session", "<", "b", ">", "0", "<", "b", ">", "-", "successful", "operation" ]
[ "public", "void", "logout", "user", "(", ")", "throws", "rest", "client", "exception", "{", "logout", "user", "with", "http", "info", "(", ")", ";", "}" ]
[ "implementations", "should", "set", "{", "@", "link", "#", "values", "missing", "}", "as", "necessary" ]
[ "protected", "abstract", "map", "<", "sky", "key", ",", "value", "or", "untyped", "exception", ">", "get", "value", "or", "untyped", "exceptions", "(", "iterable", "<", "?", "extends", "sky", "key", ">", "dep", "keys", ")", "throws", "interrupted", "exception", ";" ]
[ "remove", "the", "keyvalue", "mapping", "at", "the", "given", "index" ]
[ "public", "v", "remove", "at", "(", "int", "index", ")", "{", "final", "object", "old", "=", "m", "array", "[", "(", "index", "<", "<", "1", ")", "+", "1", "]", ";", "if", "(", "m", "size", "<", "=", "1", ")", "{", "/", "/", "now", "empty", "if", "(", "debug", ")", "log", "d", "(", "tag", ",", "\"", "remove", ":", "shrink", "from", "\"", "+", "m", "hashes", "length", "+", "\"", "to", "0", "\"", ")", ";", "free", "arrays", "(", "m", "hashes", ",", "m", "array", ",", "m", "size", ")", ";", "m", "hashes", "=", "container", "helpers", "empty", "ints", ";", "m", "array", "=", "container", "helpers", "empty", "objects", ";", "m", "size", "=", "0", ";", "}", "else", "{", "if", "(", "m", "hashes", "length", ">", "(", "base", "size", "*", "2", ")", "&", "&", "m", "size", "<", "m", "hashes", "length", "/", "3", ")", "{", "/", "/", "shrunk", "enough", "to", "reduce", "size", "of", "arrays", "we", "don", "'", "t", "allow", "it", "to", "/", "/", "shrink", "smaller", "than", "(", "base", "size", "*", "2", ")", "to", "avoid", "flapping", "between", "/", "/", "that", "and", "base", "size", "final", "int", "n", "=", "m", "size", ">", "(", "base", "size", "*", "2", ")", "?", "(", "m", "size", "+", "(", "m", "size", ">", ">", "1", ")", ")", ":", "(", "base", "size", "*", "2", ")", ";", "if", "(", "debug", ")", "log", "d", "(", "tag", ",", "\"", "remove", ":", "shrink", "from", "\"", "+", "m", "hashes", "length", "+", "\"", "to", "\"", "+", "n", ")", ";", "final", "int", "[", "]", "ohashes", "=", "m", "hashes", ";", "final", "object", "[", "]", "oarray", "=", "m", "array", ";", "alloc", "arrays", "(", "n", ")", ";", "m", "size", "-", "-", ";", "if", "(", "index", ">", "0", ")", "{", "if", "(", "debug", ")", "log", "d", "(", "tag", ",", "\"", "remove", ":", "copy", "from", "0", "-", "\"", "+", "index", "+", "\"", "to", "0", "\"", ")", ";", "system", "arraycopy", "(", "ohashes", ",", "0", ",", "m", "hashes", ",", "0", ",", "index", ")", ";", "system", "arraycopy", "(", "oarray", ",", "0", ",", "m", "array", ",", "0", ",", "index", "<", "<", "1", ")", ";", "}", "if", "(", "index", "<", "m", "size", ")", "{", "if", "(", "debug", ")", "log", "d", "(", "tag", ",", "\"", "remove", ":", "copy", "from", "\"", "+", "(", "index", "+", "1", ")", "+", "\"", "-", "\"", "+", "m", "size", "+", "\"", "to", "\"", "+", "index", ")", ";", "system", "arraycopy", "(", "ohashes", ",", "index", "+", "1", ",", "m", "hashes", ",", "index", ",", "m", "size", "-", "index", ")", ";", "system", "arraycopy", "(", "oarray", ",", "(", "index", "+", "1", ")", "<", "<", "1", ",", "m", "array", ",", "index", "<", "<", "1", ",", "(", "m", "size", "-", "index", ")", "<", "<", "1", ")", ";", "}", "}", "else", "{", "m", "size", "-", "-", ";", "if", "(", "index", "<", "m", "size", ")", "{", "if", "(", "debug", ")", "log", "d", "(", "tag", ",", "\"", "remove", ":", "move", "\"", "+", "(", "index", "+", "1", ")", "+", "\"", "-", "\"", "+", "m", "size", "+", "\"", "to", "\"", "+", "index", ")", ";", "system", "arraycopy", "(", "m", "hashes", ",", "index", "+", "1", ",", "m", "hashes", ",", "index", ",", "m", "size", "-", "index", ")", ";", "system", "arraycopy", "(", "m", "array", ",", "(", "index", "+", "1", ")", "<", "<", "1", ",", "m", "array", ",", "index", "<", "<", "1", ",", "(", "m", "size", "-", "index", ")", "<", "<", "1", ")", ";", "}", "m", "array", "[", "m", "size", "<", "<", "1", "]", "=", "null", ";", "m", "array", "[", "(", "m", "size", "<", "<", "1", ")", "+", "1", "]", "=", "null", ";", "}", "}", "return", "(", "v", ")", "old", ";", "}" ]
[ "create", "a", "single", "split", "from", "the", "list", "of", "blocks", "specified", "in", "valid", "blocks", "add", "this", "new", "split", "into", "split", "list" ]
[ "private", "void", "add", "created", "split", "(", "list", "<", "input", "split", ">", "split", "list", ",", "collection", "<", "string", ">", "locations", ",", "array", "list", "<", "one", "block", "info", ">", "valid", "blocks", ")", "{", "/", "/", "create", "an", "input", "split", "path", "[", "]", "fl", "=", "new", "path", "[", "valid", "blocks", "size", "(", ")", "]", ";", "long", "[", "]", "offset", "=", "new", "long", "[", "valid", "blocks", "size", "(", ")", "]", ";", "long", "[", "]", "length", "=", "new", "long", "[", "valid", "blocks", "size", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "valid", "blocks", "size", "(", ")", ";", "i", "+", "+", ")", "{", "fl", "[", "i", "]", "=", "valid", "blocks", "get", "(", "i", ")", "onepath", ";", "offset", "[", "i", "]", "=", "valid", "blocks", "get", "(", "i", ")", "offset", ";", "length", "[", "i", "]", "=", "valid", "blocks", "get", "(", "i", ")", "length", ";", "}", "/", "/", "add", "this", "split", "to", "the", "list", "that", "is", "returned", "combine", "file", "split", "thissplit", "=", "new", "combine", "file", "split", "(", "fl", ",", "offset", ",", "length", ",", "locations", "to", "array", "(", "new", "string", "[", "0", "]", ")", ")", ";", "split", "list", "add", "(", "thissplit", ")", ";", "}" ]
[ "wait", "for", "the", "named", "gauge", "value", "from", "the", "metrics", "source", "to", "reach", "the", "desired", "value", "there", "'", "s", "an", "initial", "delay", "then", "a", "spin", "cycle", "of", "sleep", "and", "poll", "because", "all", "the", "tests", "use", "a", "shared", "fs", "instance", ",", "these", "tests", "are", "not", "independent", ";", "that", "'", "s", "why", "the", "initial", "sleep", "is", "in", "there" ]
[ "private", "metrics", "record", "builder", "wait", "for", "dn", "metric", "value", "(", "string", "source", ",", "string", "name", ",", "long", "expected", ")", "throws", "exception", "{", "/", "/", "initial", "wait", "wait", "for", "deletion", "(", ")", ";", "return", "wait", "for", "dn", "metric", "value", "(", "source", ",", "name", ",", "expected", ",", "dfs", "redundancy", "interval", "*", "500", ")", ";", "}" ]
[ "generate", "access", "token", "response", "and", "get", "model", "and", "view" ]
[ "protected", "model", "and", "view", "generate", "access", "token", "response", "and", "get", "model", "and", "view", "(", "final", "o", "auth", "registered", "service", "registered", "service", ")", "{", "return", "generate", "access", "token", "response", "and", "get", "model", "and", "view", "(", "registered", "service", ",", "registered", "service", "test", "utils", "get", "authentication", "(", "\"", "casuser", "\"", ")", ",", "o", "auth", "2", "0", "grant", "types", "authorization", "code", ")", ";", "}" ]
[ "returns", "the", "next", "pointer" ]
[ "public", "long", "get", "next", "pointer", "(", ")", "{", "return", "next", "pointer", ";", "}" ]
[ "whether", "to", "interpret", "a", "given", "redirect", "u", "r", "ls", "that", "starts", "with", "a", "slash", "(", "\"", "\"", ")", "as", "relative", "to", "the", "current", "context", "path", "(", "{", "@", "code", "true", "}", ",", "the", "default", ")", "or", "to", "the", "web", "server", "root", "(", "{", "@", "code", "false", "}", ")" ]
[ "public", "void", "set", "context", "relative", "(", "boolean", "context", "relative", ")", "{", "this", "context", "relative", "=", "context", "relative", ";", "}" ]
[ "get", "the", "text", "of", "all", "tokens", "in", "this", "buffer" ]
[ "public", "string", "get", "text", "(", ")", "{", "return", "get", "text", "(", "interval", "of", "(", "0", ",", "size", "(", ")", "-", "1", ")", ")", ";", "}" ]
[ "return", "the", "o", "auth", "token" ]
[ "protected", "o", "auth", "2", "0", "token", "get", "o", "auth", "token", "from", "request", "(", "final", "http", "servlet", "request", "request", ")", "{", "val", "token", "=", "get", "o", "auth", "configuration", "context", "(", ")", "get", "ticket", "registry", "(", ")", "get", "ticket", "(", "get", "o", "auth", "parameter", "(", "request", ")", ",", "o", "auth", "2", "0", "token", "class", ")", ";", "if", "(", "token", "=", "=", "null", "|", "|", "token", "is", "expired", "(", ")", ")", "{", "logger", "error", "(", "\"", "o", "auth", "token", "indicated", "by", "parameter", "[", "{", "}", "]", "has", "expired", "or", "not", "found", ":", "[", "{", "}", "]", "\"", ",", "get", "o", "auth", "parameter", "(", "request", ")", ",", "token", ")", ";", "if", "(", "token", "!", "=", "null", ")", "{", "get", "o", "auth", "configuration", "context", "(", ")", "get", "ticket", "registry", "(", ")", "delete", "ticket", "(", "token", "get", "id", "(", ")", ")", ";", "}", "return", "null", ";", "}", "return", "token", ";", "}" ]
[ "notifies", "the", "component", "provider", "that", "it", "is", "no", "longer", "the", "active", "provider" ]
[ "public", "void", "component", "deactived", "(", ")", "{", "/", "/", "subclasses", "implement", "as", "needed", "}" ]
[ "whether", "optional", "trailing", "slashing", "match", "is", "enabled" ]
[ "public", "boolean", "is", "match", "optional", "trailing", "separator", "(", ")", "{", "return", "this", "match", "optional", "trailing", "separator", ";", "}" ]
[ "these", "drawable", "callback", "methods", "proxy", "the", "calls", "so", "that", "this", "is", "the", "drawable", "that", "is", "actually", "invalidated", ",", "not", "a", "child", "one", "which", "will", "not", "pass", "the", "view", "'", "s", "validate", "drawable", "check" ]
[ "@", "override", "public", "void", "invalidate", "drawable", "(", "@", "non", "null", "drawable", "who", ")", "{", "callback", "callback", "=", "get", "callback", "(", ")", ";", "if", "(", "callback", "=", "=", "null", ")", "{", "return", ";", "}", "callback", "invalidate", "drawable", "(", "this", ")", ";", "}" ]
[ "get", "date", "time" ]
[ "public", "date", "get", "date", "time", "(", ")", "{", "return", "date", "time", ";", "}" ]
[ "convenience", "method", "to", "get", "this", "element", "as", "a", "boolean", "value" ]
[ "public", "boolean", "get", "as", "boolean", "(", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", "get", "class", "(", ")", "get", "simple", "name", "(", ")", ")", ";", "}" ]
[ "parses", "the", "optional", "attribute", "as", "a", "boolean", "value", ",", "returning", "its", "value", "or", "the", "specified", "default", "value", "if", "missing" ]
[ "public", "static", "boolean", "parse", "optional", "boolean", "attr", "(", "element", "ele", ",", "string", "attr", "name", ",", "boolean", "default", "value", ")", "throws", "i", "o", "exception", "{", "string", "value", "=", "ele", "get", "attribute", "value", "(", "attr", "name", ")", ";", "try", "{", "return", "(", "value", "!", "=", "null", ")", "?", "parse", "boolean", "(", "value", ")", ":", "default", "value", ";", "}", "catch", "(", "xml", "attribute", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "attribute", "'", "\"", "+", "attr", "name", "+", "\"", "'", "bad", "boolean", "value", ":", "'", "\"", "+", "value", "+", "\"", "'", "in", "\"", "+", "to", "string", "(", "ele", ")", ")", ";", "}", "}" ]
[ "assert", "the", "given", "model", "attribute", "(", "s", ")", "have", "errors" ]
[ "public", "result", "matcher", "attribute", "error", "count", "(", "string", "name", ",", "int", "expected", "count", ")", "{", "return", "result", "-", ">", "{", "model", "and", "view", "mav", "=", "get", "model", "and", "view", "(", "result", ")", ";", "errors", "errors", "=", "get", "binding", "result", "(", "mav", ",", "name", ")", ";", "assert", "equals", "(", "\"", "binding", "/", "validation", "error", "count", "for", "attribute", "'", "\"", "+", "name", "+", "\"", "'", ",", "\"", ",", "expected", "count", ",", "errors", "get", "error", "count", "(", ")", ")", ";", "}", ";", "}" ]
[ "sign", "this", "challenge", "with", "the", "specified", "ssh", "private", "key" ]
[ "public", "void", "sign", "(", "object", "ssh", "private", "key", ")", "throws", "i", "o", "exception", "{", "if", "(", "ssh", "private", "key", "instanceof", "r", "s", "a", "private", "key", ")", "{", "r", "s", "a", "private", "key", "key", "=", "(", "r", "s", "a", "private", "key", ")", "ssh", "private", "key", ";", "/", "/", "todo", ":", "verify", "correct", "key", "by", "using", "accepted", "public", "key", "fingerprint", "r", "s", "a", "signature", "rsa", "signature", "=", "r", "s", "a", "s", "h", "a", "1", "verify", "generate", "signature", "(", "token", ",", "key", ")", ";", "signature", "=", "r", "s", "a", "s", "h", "a", "1", "verify", "encode", "s", "s", "h", "r", "s", "a", "signature", "(", "rsa", "signature", ")", ";", "}", "else", "if", "(", "ssh", "private", "key", "instanceof", "d", "s", "a", "private", "key", ")", "{", "d", "s", "a", "private", "key", "key", "=", "(", "d", "s", "a", "private", "key", ")", "ssh", "private", "key", ";", "/", "/", "todo", ":", "verify", "correct", "key", "by", "using", "accepted", "public", "key", "fingerprint", "secure", "random", "random", "=", "secure", "random", "factory", "get", "secure", "random", "(", ")", ";", "d", "s", "a", "signature", "dsa", "signature", "=", "d", "s", "a", "s", "h", "a", "1", "verify", "generate", "signature", "(", "token", ",", "key", ",", "random", ")", ";", "signature", "=", "d", "s", "a", "s", "h", "a", "1", "verify", "encode", "s", "s", "h", "d", "s", "a", "signature", "(", "dsa", "signature", ")", ";", "}", "else", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "unsupported", "ssh", "private", "key", "\"", ")", ";", "}", "}" ]
[ "dump", "any", "file", "to", "standard", "out" ]
[ "private", "void", "dump", "(", "file", "file", ")", "throws", "i", "o", "exception", "{", "try", "(", "file", "input", "stream", "in", "=", "new", "file", "input", "stream", "(", "file", ")", ")", "{", "for", "(", "string", "line", ":", "i", "o", "utils", "read", "lines", "(", "in", ")", ")", "{", "log", "info", "(", "line", ")", ";", "}", "}", "}" ]
[ "clean", "up", "resources", "held", "by", "this", "value", "object" ]
[ "void", "cleanup", "(", ")", ";" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "returns", "the", "beginning", "of", "the", "range" ]
[ "public", "long", "get", "start", "(", ")", "{", "return", "start", ";", "}" ]
[ "extension", "point", "to", "create", "the", "model", "attribute", "if", "not", "found", "in", "the", "model", ",", "with", "subsequent", "parameter", "binding", "through", "bean", "properties", "(", "unless", "suppressed", ")", "the", "default", "implementation", "typically", "uses", "the", "unique", "public", "no", "-", "arg", "constructor", "if", "available", "but", "also", "handles", "a", "\"", "primary", "constructor", "\"", "approach", "for", "data", "classes", ":", "it", "understands", "the", "java", "beans", "{", "@", "code", "constructor", "properties", "}", "annotation", "as", "well", "as", "runtime", "-", "retained", "parameter", "names", "in", "the", "bytecode", ",", "associating", "request", "parameters", "with", "constructor", "arguments", "by", "name", "if", "no", "such", "constructor", "is", "found", ",", "the", "default", "constructor", "will", "be", "used", "(", "even", "if", "not", "public", ")", ",", "assuming", "subsequent", "bean", "property", "bindings", "through", "setter", "methods" ]
[ "protected", "object", "create", "attribute", "(", "string", "attribute", "name", ",", "method", "parameter", "parameter", ",", "web", "data", "binder", "factory", "binder", "factory", ",", "native", "web", "request", "web", "request", ")", "throws", "exception", "{", "method", "parameter", "nested", "parameter", "=", "parameter", "nested", "if", "optional", "(", ")", ";", "class", "<", "?", ">", "clazz", "=", "nested", "parameter", "get", "nested", "parameter", "type", "(", ")", ";", "constructor", "<", "?", ">", "ctor", "=", "bean", "utils", "get", "resolvable", "constructor", "(", "clazz", ")", ";", "object", "attribute", "=", "construct", "attribute", "(", "ctor", ",", "attribute", "name", ",", "parameter", ",", "binder", "factory", ",", "web", "request", ")", ";", "if", "(", "parameter", "!", "=", "nested", "parameter", ")", "{", "attribute", "=", "optional", "of", "(", "attribute", ")", ";", "}", "return", "attribute", ";", "}" ]
[ "audit", "the", "fs", "under", "{", "@", "link", "#", "method", "path", "(", ")", "}", "if", "the", "test", "option", "{", "@", "link", "#", "directory", "marker", "audit", "}", "is", "true" ]
[ "public", "void", "maybe", "audit", "test", "path", "(", ")", "{", "final", "s", "3", "a", "file", "system", "fs", "=", "get", "file", "system", "(", ")", ";", "if", "(", "fs", "!", "=", "null", ")", "{", "try", "{", "boolean", "audit", "=", "get", "test", "property", "bool", "(", "fs", "get", "conf", "(", ")", ",", "directory", "marker", "audit", ",", "false", ")", ";", "path", "method", "path", "=", "method", "path", "(", ")", ";", "if", "(", "audit", "&", "&", "!", "fs", "get", "directory", "marker", "policy", "(", ")", "keep", "directory", "markers", "(", "method", "path", ")", "&", "&", "fs", "is", "directory", "(", "method", "path", ")", ")", "{", "marker", "tool", "scan", "result", "result", "=", "marker", "tool", "exec", "marker", "tool", "(", "new", "marker", "tool", "scan", "args", "builder", "(", ")", "with", "source", "f", "s", "(", "fs", ")", "with", "path", "(", "method", "path", ")", "with", "do", "purge", "(", "true", ")", "with", "min", "marker", "count", "(", "0", ")", "with", "max", "marker", "count", "(", "0", ")", "with", "limit", "(", "unlimited", "listing", ")", "with", "non", "auth", "(", "false", ")", "build", "(", ")", ")", ";", "final", "string", "result", "str", "=", "result", "to", "string", "(", ")", ";", "assert", "equals", "(", "\"", "audit", "of", "\"", "+", "method", "path", "+", "\"", "failed", ":", "\"", "+", "result", "str", ",", "0", ",", "result", "get", "exit", "code", "(", ")", ")", ";", "assert", "equals", "(", "\"", "marker", "count", "under", "\"", "+", "method", "path", "+", "\"", "non", "-", "zero", ":", "\"", "+", "result", "str", ",", "0", ",", "result", "get", "filtered", "marker", "count", "(", ")", ")", ";", "}", "}", "catch", "(", "file", "not", "found", "exception", "ignored", ")", "{", "}", "catch", "(", "exception", "e", ")", "{", "/", "/", "if", "is", "this", "is", "not", "due", "to", "the", "fs", "being", "closed", ":", "log", "if", "(", "!", "e", "to", "string", "(", ")", "contains", "(", "e", "fs", "closed", ")", ")", "{", "log", "warn", "(", "\"", "marker", "tool", "failure", "\"", ",", "e", ")", ";", "}", "}", "}", "}" ]
[ "compose", "byte", "-", "to", "-", "char", "map" ]
[ "private", "void", "compose", "byte", "to", "char", "map", "(", ")", "{", "if", "(", "charset", "=", "=", "null", "|", "|", "preview", "text", "=", "=", "null", ")", "return", ";", "charset", "decoder", "decoder", "=", "charset", "for", "name", "(", "charset", ")", "new", "decoder", "(", ")", "on", "malformed", "input", "(", "coding", "error", "action", "replace", ")", "on", "unmappable", "character", "(", "coding", "error", "action", "replace", ")", "replace", "with", "(", "\"", "\"", ")", ";", "byte", "buffer", "bb", "=", "byte", "buffer", "allocate", "(", "1", ")", ";", "char", "buffer", "cb", "=", "char", "buffer", "allocate", "(", "1", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "256", ";", "+", "+", "i", ")", "{", "if", "(", "i", "<", "0x", "2", "0", "|", "|", "i", "=", "=", "0x", "7f", ")", "{", "byte", "to", "char", "[", "i", "]", "=", "(", "char", ")", "(", "160", "+", "i", ")", ";", "}", "else", "{", "bb", "clear", "(", ")", ";", "bb", "put", "(", "(", "byte", ")", "i", ")", ";", "bb", "rewind", "(", ")", ";", "cb", "clear", "(", ")", ";", "decoder", "reset", "(", ")", ";", "decoder", "decode", "(", "bb", ",", "cb", ",", "true", ")", ";", "decoder", "flush", "(", "cb", ")", ";", "cb", "rewind", "(", ")", ";", "char", "decoded", "=", "cb", "get", "(", ")", ";", "/", "/", "neither", "font", "metrics", "nor", "graphic", "context", "work", "for", "charset", "8859", "-", "1", "chars", "between", "128", "and", "/", "/", "159", "/", "/", "it", "works", "too", "slow", "dumn", "with", "it", "byte", "to", "char", "[", "i", "]", "=", "decoded", ";", "}", "}", "}" ]
[ "create", "a", "{", "@", "link", "builder", "}", "starting", "with", "the", "given", "mock", "request" ]
[ "public", "static", "mock", "server", "web", "exchange", "builder", "builder", "(", "mock", "server", "http", "request", "request", ")", "{", "return", "new", "mock", "server", "web", "exchange", "builder", "(", "request", ")", ";", "}" ]
[ "get", "contrast", "color", "custom", "property" ]
[ "public", "final", "color", "get", "contrast", "color", "(", ")", "{", "return", "m", "t", "color", "utils", "contrastify", "background", "(", "dark", ",", "get", "contrast", "color", "resource", "(", ")", ",", "is", "not", "high", "contrast", ")", ";", "}" ]
[ "return", "whether", "applied", "the", "language", "by", "{", "@", "link", "language", "utils", "}" ]
[ "public", "static", "boolean", "is", "applied", "language", "(", "@", "non", "null", "locale", "locale", ")", "{", "locale", "applied", "locale", "=", "get", "applied", "language", "(", ")", ";", "if", "(", "applied", "locale", "=", "=", "null", ")", "{", "return", "false", ";", "}", "return", "is", "same", "locale", "(", "locale", ",", "applied", "locale", ")", ";", "}" ]
[ "method", "used", "to", "trip", "the", "breaker", ",", "delegates", "to", "the", "parent", "to", "determine", "whether", "to", "trip", "the", "breaker", "or", "not" ]
[ "public", "void", "circuit", "break", "(", "string", "field", "name", ",", "long", "bytes", "needed", ")", "{", "final", "long", "memory", "bytes", "limit", "=", "this", "limit", "and", "overhead", "limit", ";", "this", "tripped", "count", "increment", "and", "get", "(", ")", ";", "final", "string", "message", "=", "\"", "[", "\"", "+", "this", "name", "+", "\"", "]", "data", "too", "large", ",", "data", "for", "[", "\"", "+", "field", "name", "+", "\"", "]", "\"", "+", "\"", "would", "be", "[", "\"", "+", "bytes", "needed", "+", "\"", "/", "\"", "+", "new", "byte", "size", "value", "(", "bytes", "needed", ")", "+", "\"", "]", "\"", "+", "\"", ",", "which", "is", "larger", "than", "the", "limit", "of", "[", "\"", "+", "memory", "bytes", "limit", "+", "\"", "/", "\"", "+", "new", "byte", "size", "value", "(", "memory", "bytes", "limit", ")", "+", "\"", "]", "\"", ";", "logger", "debug", "(", "(", ")", "-", ">", "new", "parameterized", "message", "(", "\"", "{", "}", "\"", ",", "message", ")", ")", ";", "throw", "new", "circuit", "breaking", "exception", "(", "message", ",", "bytes", "needed", ",", "memory", "bytes", "limit", ",", "durability", ")", ";", "}" ]
[ "get", "array", "array", "of", "integer" ]
[ "public", "list", "<", "list", "<", "long", ">", ">", "get", "array", "array", "of", "integer", "(", ")", "{", "return", "array", "array", "of", "integer", ";", "}" ]
[ "we", "invoke", "the", "zookeeper", "client", "to", "delete", "the", "node" ]
[ "protected", "abstract", "void", "delete", "path", "(", "string", "path", ")", ";" ]
[ "creates", "a", "serializer", "for", "the", "source", "splits", "splits", "are", "serialized", "when", "sending", "them", "from", "enumerator", "to", "reader", ",", "and", "when", "checkpointing", "the", "reader", "'", "s", "current", "state" ]
[ "simple", "versioned", "serializer", "<", "split", "t", ">", "get", "split", "serializer", "(", ")", ";" ]
[ "transform", "{", "@", "link", "first", "pass", "grouping", "collector", "#", "get", "top", "groups", "(", "int", ")", "}", "output", "in", "{", "@", "link", "collapse", "top", "field", "docs", "}", "the", "collapsing", "needs", "only", "one", "pass", "so", "we", "can", "get", "the", "final", "top", "docs", "at", "the", "end", "of", "the", "first", "pass" ]
[ "public", "collapse", "top", "field", "docs", "get", "top", "docs", "(", ")", "throws", "i", "o", "exception", "{", "collection", "<", "search", "group", "<", "t", ">", ">", "groups", "=", "super", "get", "top", "groups", "(", "0", ")", ";", "if", "(", "groups", "=", "=", "null", ")", "{", "total", "hits", "total", "hits", "=", "new", "total", "hits", "(", "0", ",", "total", "hits", "relation", "equal", "to", ")", ";", "return", "new", "collapse", "top", "field", "docs", "(", "collapse", "field", ",", "total", "hits", ",", "new", "score", "doc", "[", "0", "]", ",", "sort", "get", "sort", "(", ")", ",", "new", "object", "[", "0", "]", ")", ";", "}", "field", "doc", "[", "]", "docs", "=", "new", "field", "doc", "[", "groups", "size", "(", ")", "]", ";", "object", "[", "]", "collapse", "values", "=", "new", "object", "[", "groups", "size", "(", ")", "]", ";", "int", "score", "pos", "=", "-", "1", ";", "for", "(", "int", "index", "=", "0", ";", "index", "<", "sort", "get", "sort", "(", ")", "length", ";", "index", "+", "+", ")", "{", "sort", "field", "sort", "field", "=", "sort", "get", "sort", "(", ")", "[", "index", "]", ";", "if", "(", "sort", "field", "get", "type", "(", ")", "=", "=", "score", ")", "{", "score", "pos", "=", "index", ";", "break", ";", "}", "}", "int", "pos", "=", "0", ";", "iterator", "<", "collected", "search", "group", "<", "t", ">", ">", "it", "=", "ordered", "groups", "iterator", "(", ")", ";", "for", "(", "search", "group", "<", "t", ">", "group", ":", "groups", ")", "{", "assert", "it", "has", "next", "(", ")", ";", "collected", "search", "group", "<", "t", ">", "col", "=", "it", "next", "(", ")", ";", "float", "score", "=", "float", "na", "n", ";", "if", "(", "score", "pos", "!", "=", "-", "1", ")", "{", "score", "=", "(", "float", ")", "group", "sort", "values", "[", "score", "pos", "]", ";", "}", "docs", "[", "pos", "]", "=", "new", "field", "doc", "(", "col", "top", "doc", ",", "score", ",", "group", "sort", "values", ")", ";", "collapse", "values", "[", "pos", "]", "=", "group", "group", "value", ";", "pos", "+", "+", ";", "}", "total", "hits", "total", "hits", "=", "new", "total", "hits", "(", "total", "hit", "count", ",", "total", "hits", "relation", "equal", "to", ")", ";", "return", "new", "collapse", "top", "field", "docs", "(", "collapse", "field", ",", "total", "hits", ",", "docs", ",", "sort", "get", "sort", "(", ")", ",", "collapse", "values", ")", ";", "}" ]
[ "tests", "that", "the", "{", "@", "link", "blob", "library", "cache", "manager", "}", "cleans", "up", "after", "the", "class", "loader", "leases", "for", "different", "jobs", "are", "closed" ]
[ "public", "void", "test", "library", "cache", "manager", "different", "jobs", "cleanup", "(", ")", "throws", "exception", "{", "job", "i", "d", "job", "id", "1", "=", "new", "job", "i", "d", "(", ")", ";", "job", "i", "d", "job", "id", "2", "=", "new", "job", "i", "d", "(", ")", ";", "list", "<", "permanent", "blob", "key", ">", "keys", "1", "=", "new", "array", "list", "<", ">", "(", ")", ";", "list", "<", "permanent", "blob", "key", ">", "keys", "2", "=", "new", "array", "list", "<", ">", "(", ")", ";", "blob", "server", "server", "=", "null", ";", "permanent", "blob", "cache", "cache", "=", "null", ";", "blob", "library", "cache", "manager", "lib", "cache", "=", "null", ";", "final", "byte", "[", "]", "buf", "=", "new", "byte", "[", "128", "]", ";", "try", "{", "configuration", "config", "=", "new", "configuration", "(", ")", ";", "config", "set", "string", "(", "blob", "server", "options", "storage", "directory", ",", "temporary", "folder", "new", "folder", "(", ")", "get", "absolute", "path", "(", ")", ")", ";", "config", "set", "long", "(", "blob", "server", "options", "cleanup", "interval", ",", "1l", ")", ";", "server", "=", "new", "blob", "server", "(", "config", ",", "new", "void", "blob", "store", "(", ")", ")", ";", "server", "start", "(", ")", ";", "inet", "socket", "address", "server", "address", "=", "new", "inet", "socket", "address", "(", "\"", "localhost", "\"", ",", "server", "get", "port", "(", ")", ")", ";", "cache", "=", "new", "permanent", "blob", "cache", "(", "config", ",", "new", "void", "blob", "store", "(", ")", ",", "server", "address", ")", ";", "keys", "1", "add", "(", "server", "put", "permanent", "(", "job", "id", "1", ",", "buf", ")", ")", ";", "buf", "[", "0", "]", "+", "=", "1", ";", "keys", "1", "add", "(", "server", "put", "permanent", "(", "job", "id", "1", ",", "buf", ")", ")", ";", "keys", "2", "add", "(", "server", "put", "permanent", "(", "job", "id", "2", ",", "buf", ")", ")", ";", "lib", "cache", "=", "create", "blob", "library", "cache", "manager", "(", "cache", ")", ";", "cache", "register", "job", "(", "job", "id", "1", ")", ";", "cache", "register", "job", "(", "job", "id", "2", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "managed", "jobs", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "1", ")", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "0", ",", "job", "id", "1", ",", "cache", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "0", ",", "job", "id", "2", ",", "cache", ")", ";", "final", "library", "cache", "manager", "class", "loader", "lease", "class", "loader", "lease", "job", "1", "=", "lib", "cache", "register", "class", "loader", "lease", "(", "job", "id", "1", ")", ";", "final", "user", "code", "class", "loader", "class", "loader", "1", "=", "class", "loader", "lease", "job", "1", "get", "or", "resolve", "class", "loader", "(", "keys", "1", ",", "collections", "empty", "list", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "lib", "cache", "get", "number", "of", "managed", "jobs", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "1", ")", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "2", ")", ")", ";", "assert", "equals", "(", "2", ",", "check", "files", "exist", "(", "job", "id", "1", ",", "keys", "1", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "cache", ")", ";", "assert", "equals", "(", "0", ",", "check", "files", "exist", "(", "job", "id", "2", ",", "keys", "2", ",", "cache", ",", "false", ")", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "0", ",", "job", "id", "2", ",", "cache", ")", ";", "final", "library", "cache", "manager", "class", "loader", "lease", "class", "loader", "lease", "job", "2", "=", "lib", "cache", "register", "class", "loader", "lease", "(", "job", "id", "2", ")", ";", "final", "user", "code", "class", "loader", "class", "loader", "2", "=", "class", "loader", "lease", "job", "2", "get", "or", "resolve", "class", "loader", "(", "keys", "2", ",", "collections", "empty", "list", "(", ")", ")", ";", "assert", "that", "(", "class", "loader", "1", ",", "not", "(", "same", "instance", "(", "class", "loader", "2", ")", ")", ")", ";", "try", "{", "class", "loader", "lease", "job", "2", "get", "or", "resolve", "class", "loader", "(", "keys", "1", ",", "collections", "<", "url", ">", "empty", "list", "(", ")", ")", ";", "fail", "(", "\"", "should", "fail", "with", "an", "illegal", "state", "exception", "\"", ")", ";", "}", "catch", "(", "illegal", "state", "exception", "e", ")", "{", "/", "/", "that", "'", "s", "what", "we", "want", "}", "try", "{", "class", "loader", "lease", "job", "2", "get", "or", "resolve", "class", "loader", "(", "keys", "2", ",", "collections", "singleton", "list", "(", "new", "url", "(", "\"", "file", ":", "/", "/", "/", "tmp", "/", "does", "-", "not", "-", "exist", "\"", ")", ")", ")", ";", "fail", "(", "\"", "should", "fail", "with", "an", "illegal", "state", "exception", "\"", ")", ";", "}", "catch", "(", "illegal", "state", "exception", "e", ")", "{", "/", "/", "that", "'", "s", "what", "we", "want", "}", "assert", "equals", "(", "2", ",", "lib", "cache", "get", "number", "of", "managed", "jobs", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "1", ")", ")", ";", "assert", "equals", "(", "1", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "2", ")", ")", ";", "assert", "equals", "(", "2", ",", "check", "files", "exist", "(", "job", "id", "1", ",", "keys", "1", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "cache", ")", ";", "assert", "equals", "(", "1", ",", "check", "files", "exist", "(", "job", "id", "2", ",", "keys", "2", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "cache", ")", ";", "class", "loader", "lease", "job", "1", "release", "(", ")", ";", "assert", "equals", "(", "1", ",", "lib", "cache", "get", "number", "of", "managed", "jobs", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "1", ")", ")", ";", "assert", "equals", "(", "1", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "2", ")", ")", ";", "assert", "equals", "(", "2", ",", "check", "files", "exist", "(", "job", "id", "1", ",", "keys", "1", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "cache", ")", ";", "assert", "equals", "(", "1", ",", "check", "files", "exist", "(", "job", "id", "2", ",", "keys", "2", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "cache", ")", ";", "class", "loader", "lease", "job", "2", "release", "(", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "managed", "jobs", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "1", ")", ")", ";", "assert", "equals", "(", "0", ",", "lib", "cache", "get", "number", "of", "reference", "holders", "(", "job", "id", "2", ")", ")", ";", "assert", "equals", "(", "2", ",", "check", "files", "exist", "(", "job", "id", "1", ",", "keys", "1", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "2", ",", "job", "id", "1", ",", "cache", ")", ";", "assert", "equals", "(", "1", ",", "check", "files", "exist", "(", "job", "id", "2", ",", "keys", "2", ",", "cache", ",", "true", ")", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "server", ")", ";", "check", "file", "count", "for", "job", "(", "1", ",", "job", "id", "2", ",", "cache", ")", ";", "/", "/", "only", "permanent", "blob", "cache", "#", "release", "job", "(", ")", "calls", "clean", "up", "files", "(", "tested", "in", "/", "/", "blob", "cache", "cleanup", "test", "etc", "}", "finally", "{", "if", "(", "lib", "cache", "!", "=", "null", ")", "{", "lib", "cache", "shutdown", "(", ")", ";", "}", "/", "/", "should", "have", "been", "closed", "by", "the", "library", "cache", "manager", ",", "but", "just", "in", "case", "if", "(", "cache", "!", "=", "null", ")", "{", "cache", "close", "(", ")", ";", "}", "if", "(", "server", "!", "=", "null", ")", "{", "server", "close", "(", ")", ";", "}", "}", "}" ]
[ "get", "the", "field", "of", "the", "associated", "class", "which", "declares", "has", "association", "with", "self", "class" ]
[ "public", "field", "get", "associate", "self", "from", "other", "model", "(", ")", "{", "return", "associate", "self", "from", "other", "model", ";", "}" ]
[ "returns", "the", "known", "aggregate", "results", "for", "the", "given", "target", "at", "the", "current", "moment" ]
[ "public", "test", "summary", "builder", "get", "current", "summary", "for", "testing", "(", "configured", "target", "target", ")", "{", "return", "aggregators", "get", "(", "as", "key", "(", "target", ")", ")", "get", "current", "summary", "for", "testing", "(", ")", ";", "}" ]
[ "an", "action", "'", "s", "inputs", "needed", "for", "execution", "may", "not", "just", "be", "the", "result", "of", "action", "#", "get", "inputs", "(", ")", "if", "the", "action", "cache", "'", "s", "view", "of", "this", "action", "contains", "additional", "inputs", ",", "it", "will", "request", "metadata", "for", "them", ",", "so", "we", "consider", "those", "inputs", "as", "dependencies", "of", "this", "action", "as", "well", "returns", "null", "if", "some", "dependencies", "were", "missing", "and", "this", "action", "execution", "function", "needs", "to", "restart" ]
[ "private", "all", "inputs", "collect", "inputs", "(", "action", "action", ",", "environment", "env", ")", "throws", "interrupted", "exception", "{", "nested", "set", "<", "artifact", ">", "all", "known", "inputs", "=", "action", "get", "inputs", "(", ")", ";", "if", "(", "action", "inputs", "discovered", "(", ")", ")", "{", "return", "new", "all", "inputs", "(", "all", "known", "inputs", ")", ";", "}", "preconditions", "check", "state", "(", "action", "discovers", "inputs", "(", ")", ",", "action", ")", ";", "package", "root", "resolver", "with", "environment", "resolver", "=", "new", "package", "root", "resolver", "with", "environment", "(", "env", ")", ";", "list", "<", "artifact", ">", "action", "cache", "inputs", "=", "skyframe", "action", "executor", "get", "action", "cached", "inputs", "(", "action", ",", "resolver", ")", ";", "if", "(", "action", "cache", "inputs", "=", "=", "null", ")", "{", "preconditions", "check", "state", "(", "env", "values", "missing", "(", ")", ",", "action", ")", ";", "return", "null", ";", "}", "return", "new", "all", "inputs", "(", "all", "known", "inputs", ",", "action", "cache", "inputs", ",", "resolver", "keys", "requested", ")", ";", "}" ]
[ "remove", "snapshottable", "directories", "from", "{", "@", "link", "#", "snapshottables", "}" ]
[ "public", "void", "remove", "snapshottable", "(", "list", "<", "i", "node", "directory", ">", "to", "remove", ")", "{", "if", "(", "to", "remove", "!", "=", "null", ")", "{", "for", "(", "i", "node", "directory", "s", ":", "to", "remove", ")", "{", "remove", "snapshottable", "(", "s", ")", ";", "}", "}", "}" ]
[ "declares", "how", "to", "perform", "the", "conversion", "between", "a", "dynamic", "table", "and", "an", "external", "connector", "in", "append", "mode", ",", "a", "dynamic", "table", "and", "an", "external", "connector", "only", "exchange", "insert", "messages" ]
[ "public", "d", "in", "append", "mode", "(", ")", "{", "update", "mode", "=", "update", "mode", "value", "append", ";", "return", "(", "d", ")", "this", ";", "}" ]
[ "make", "sure", "that", "even", "if", "the", "nn", "which", "initiated", "the", "upgrade", "is", "in", "the", "standby", "state", "that", "we", "'", "re", "allowed", "to", "finalize" ]
[ "public", "void", "test", "finalize", "from", "second", "name", "node", "with", "journal", "nodes", "(", ")", "throws", "i", "o", "exception", ",", "u", "r", "i", "syntax", "exception", "{", "mini", "q", "j", "m", "h", "a", "cluster", "qj", "cluster", "=", "null", ";", "file", "system", "fs", "=", "null", ";", "try", "{", "builder", "builder", "=", "new", "mini", "q", "j", "m", "h", "a", "cluster", "builder", "(", "conf", ")", ";", "builder", "get", "dfs", "builder", "(", ")", "num", "data", "nodes", "(", "0", ")", ";", "qj", "cluster", "=", "builder", "build", "(", ")", ";", "mini", "d", "f", "s", "cluster", "cluster", "=", "qj", "cluster", "get", "dfs", "cluster", "(", ")", ";", "/", "/", "no", "upgrade", "is", "in", "progress", "at", "the", "moment", "check", "jn", "previous", "dir", "existence", "(", "qj", "cluster", ",", "false", ")", ";", "check", "cluster", "previous", "dir", "existence", "(", "cluster", ",", "false", ")", ";", "assert", "c", "times", "equal", "(", "cluster", ")", ";", "/", "/", "transition", "nn0", "to", "active", "and", "do", "some", "fs", "ops", "cluster", "transition", "to", "active", "(", "0", ")", ";", "fs", "=", "h", "a", "test", "util", "configure", "failover", "fs", "(", "cluster", ",", "conf", ")", ";", "assert", "true", "(", "fs", "mkdirs", "(", "new", "path", "(", "\"", "/", "foo", "1", "\"", ")", ")", ")", ";", "/", "/", "do", "the", "upgrade", "shut", "down", "nn1", "and", "then", "restart", "nn0", "with", "the", "upgrade", "/", "/", "flag", "cluster", "shutdown", "name", "node", "(", "1", ")", ";", "cluster", "get", "name", "node", "infos", "(", ")", "[", "0", "]", "set", "start", "opt", "(", "startup", "option", "upgrade", ")", ";", "cluster", "restart", "name", "node", "(", "0", ",", "false", ")", ";", "check", "nn", "previous", "dir", "existence", "(", "cluster", ",", "0", ",", "true", ")", ";", "check", "nn", "previous", "dir", "existence", "(", "cluster", ",", "1", ",", "false", ")", ";", "check", "jn", "previous", "dir", "existence", "(", "qj", "cluster", ",", "true", ")", ";", "/", "/", "now", "bootstrap", "the", "standby", "with", "the", "upgraded", "info", "int", "rc", "=", "bootstrap", "standby", "run", "(", "new", "string", "[", "]", "{", "\"", "-", "force", "\"", "}", ",", "cluster", "get", "configuration", "(", "1", ")", ")", ";", "assert", "equals", "(", "0", ",", "rc", ")", ";", "cluster", "restart", "name", "node", "(", "1", ")", ";", "/", "/", "make", "the", "second", "nn", "(", "not", "the", "one", "that", "initiated", "the", "upgrade", ")", "active", "when", "/", "/", "the", "finalize", "command", "is", "run", "cluster", "transition", "to", "standby", "(", "0", ")", ";", "cluster", "transition", "to", "active", "(", "1", ")", ";", "run", "finalize", "command", "(", "cluster", ")", ";", "check", "cluster", "previous", "dir", "existence", "(", "cluster", ",", "false", ")", ";", "check", "jn", "previous", "dir", "existence", "(", "qj", "cluster", ",", "false", ")", ";", "assert", "c", "times", "equal", "(", "cluster", ")", ";", "}", "finally", "{", "if", "(", "fs", "!", "=", "null", ")", "{", "fs", "close", "(", ")", ";", "}", "if", "(", "qj", "cluster", "!", "=", "null", ")", "{", "qj", "cluster", "shutdown", "(", ")", ";", "}", "}", "}" ]
[ "transition", "to", "standby", "state", "in", "a", "new", "thread", "the", "transition", "operation", "is", "asynchronous", "to", "avoid", "deadlock", "caused", "by", "cyclic", "dependency" ]
[ "private", "void", "handle", "transition", "to", "stand", "by", "in", "new", "thread", "(", ")", "{", "thread", "stand", "by", "transition", "thread", "=", "new", "thread", "(", "active", "services", "stand", "by", "transition", "runnable", ")", ";", "stand", "by", "transition", "thread", "set", "name", "(", "\"", "stand", "by", "transition", "thread", "\"", ")", ";", "stand", "by", "transition", "thread", "start", "(", ")", ";", "}" ]
[ "grab", "all", "the", "decompiler", "options", "from", "the", "program", "specifically", "and", "cache", "them", "in", "this", "object" ]
[ "public", "void", "grab", "from", "program", "(", "program", "program", ")", "{", "/", "/", "default", "values", ",", "even", "if", "there", "is", "no", "program", "display", "language", "=", "basic", "compiler", "spec", "decompiler", "output", "def", ";", "proto", "eval", "model", "=", "\"", "default", "\"", ";", "if", "(", "program", "=", "=", "null", ")", "{", "return", ";", "}", "compiler", "spec", "cspec", "=", "program", "get", "compiler", "spec", "(", ")", ";", "prototype", "model", "model", "=", "(", "prototype", "model", ")", "cspec", "get", "prototype", "evaluation", "model", "(", "program", ")", ";", "if", "(", "model", "!", "=", "null", ")", "{", "string", "modelname", "=", "model", "get", "name", "(", ")", ";", "if", "(", "modelname", "!", "=", "null", ")", "{", "proto", "eval", "model", "=", "modelname", ";", "}", "}", "display", "language", "=", "cspec", "get", "decompiler", "output", "language", "(", "program", ")", ";", "}" ]
[ "counts", "the", "number", "of", "samples", "that", "haven", "'", "t", "been", "read", "that", "have", "a", "timestamp", "smaller", "than", "{", "@", "code", "time", "us", "}" ]
[ "private", "int", "count", "unread", "samples", "before", "(", "long", "time", "us", ")", "{", "int", "count", "=", "length", ";", "int", "relative", "sample", "index", "=", "get", "relative", "index", "(", "length", "-", "1", ")", ";", "while", "(", "count", ">", "read", "position", "&", "&", "times", "us", "[", "relative", "sample", "index", "]", ">", "=", "time", "us", ")", "{", "count", "-", "-", ";", "relative", "sample", "index", "-", "-", ";", "if", "(", "relative", "sample", "index", "=", "=", "-", "1", ")", "{", "relative", "sample", "index", "=", "capacity", "-", "1", ";", "}", "}", "return", "count", ";", "}" ]
[ "resolve", "the", "specified", "bean", "name", ",", "as", "a", "candidate", "result", "of", "the", "matching", "algorithm", "for", "this", "dependency", ",", "to", "a", "bean", "instance", "from", "the", "given", "factory", "the", "default", "implementation", "calls", "{", "@", "link", "bean", "factory", "#", "get", "bean", "(", "string", ")", "}", "subclasses", "may", "provide", "additional", "arguments", "or", "other", "customizations" ]
[ "public", "object", "resolve", "candidate", "(", "string", "bean", "name", ",", "class", "<", "?", ">", "required", "type", ",", "bean", "factory", "bean", "factory", ")", "throws", "beans", "exception", "{", "return", "bean", "factory", "get", "bean", "(", "bean", "name", ")", ";", "}" ]
[ "generates", "an", "index", "fields", "for", "histogram", "fields", "used", "in", "tests", "of", "aggregations", "that", "work", "on", "histogram", "fields" ]
[ "public", "static", "binary", "doc", "values", "field", "histogram", "field", "doc", "values", "(", "string", "field", "name", ",", "double", "[", "]", "values", ")", "throws", "i", "o", "exception", "{", "t", "digest", "histogram", "=", "new", "t", "digest", "state", "(", "100", "0", ")", ";", "/", "/", "default", "for", "(", "double", "value", ":", "values", ")", "{", "histogram", "add", "(", "value", ")", ";", "}", "bytes", "stream", "output", "stream", "output", "=", "new", "bytes", "stream", "output", "(", ")", ";", "histogram", "compress", "(", ")", ";", "for", "(", "centroid", "centroid", ":", "histogram", "centroids", "(", ")", ")", "{", "stream", "output", "write", "v", "int", "(", "centroid", "count", "(", ")", ")", ";", "stream", "output", "write", "double", "(", "centroid", "mean", "(", ")", ")", ";", "}", "return", "new", "binary", "doc", "values", "field", "(", "field", "name", ",", "stream", "output", "bytes", "(", ")", "to", "bytes", "ref", "(", ")", ")", ";", "}" ]
[ "return", "true", "if", "this", "has", "only", "read", "only", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "has", "only", "read", "only", "has", "only", "read", "only", "=", "(", "has", "only", "read", "only", ")", "o", ";", "return", "objects", "equals", "(", "this", "bar", ",", "has", "only", "read", "only", "bar", ")", "&", "&", "objects", "equals", "(", "this", "foo", ",", "has", "only", "read", "only", "foo", ")", ";", "}" ]
[ "set", "the", "request", "body", "as", "a", "utf", "-", "8", "string", "if", "content", "is", "provided", "and", "{", "@", "link", "#", "content", "type", "(", "media", "type", ")", "}", "is", "set", "to", "{", "@", "code", "applicationx", "-", "www", "-", "form", "-", "urlencoded", "}", ",", "the", "content", "will", "be", "parsed", "and", "used", "to", "populate", "the", "{", "@", "link", "#", "param", "(", "string", ",", "string", ")", "request", "parameters", "}", "map" ]
[ "public", "mock", "http", "servlet", "request", "builder", "content", "(", "string", "content", ")", "{", "this", "content", "=", "content", "get", "bytes", "(", "standard", "charsets", "utf", "8", ")", ";", "return", "this", ";", "}" ]
[ "test", "on", "the", "allow", "engine", "the", "evaluation", "result", "of", "one", "cel", "expression", "is", "set", "to", "unknown", ",", "so", "the", "g", "r", "p", "c", "authorization", "returns", "unknown" ]
[ "public", "void", "test", "allow", "engine", "with", "matched", "unmatched", "and", "unknown", "policies", "(", ")", "throws", "interpreter", "exception", "{", "setup", "engine", "single", "rbac", "allow", "(", ")", ";", "/", "/", "policy", "1", "-", "unmatched", ";", "policy", "2", "-", "matched", ";", "policy", "3", "-", "unknown", "do", "return", "(", "false", ")", "when", "(", "spy", "engine", ")", "matches", "(", "eq", "(", "condition", "1", ")", ",", "any", "(", "activation", "class", ")", ")", ";", "do", "return", "(", "true", ")", "when", "(", "spy", "engine", ")", "matches", "(", "eq", "(", "condition", "2", ")", ",", "any", "(", "activation", "class", ")", ")", ";", "do", "throw", "(", "new", "interpreter", "exception", "builder", "(", "\"", "unknown", "result", "\"", ")", "build", "(", ")", ")", "when", "(", "spy", "engine", ")", "matches", "(", "eq", "(", "condition", "3", ")", ",", "any", "(", "activation", "class", ")", ")", ";", "evaluate", "result", "=", "spy", "engine", "evaluate", "(", "args", ")", ";", "assert", "that", "(", "evaluate", "result", "get", "decision", "(", ")", ")", "is", "equal", "to", "(", "authorization", "decision", "output", "allow", ")", ";", "assert", "that", "(", "evaluate", "result", "get", "policy", "names", "(", ")", ")", "has", "size", "(", "1", ")", ";", "assert", "that", "(", "evaluate", "result", "get", "policy", "names", "(", ")", ")", "contains", "(", "\"", "policy", "2", "\"", ")", ";", "assert", "that", "(", "evaluate", "result", "to", "string", "(", ")", ")", "is", "equal", "to", "(", "new", "string", "builder", "(", "\"", "authorization", "decision", ":", "allow", "\\", "n", "\"", "+", "\"", "policy", "2", ";", "\\", "n", "\"", ")", "to", "string", "(", ")", ")", ";", "}" ]
[ "query", "given", "sql", "to", "create", "a", "prepared", "statement", "from", "sql", "and", "a", "list", "of", "arguments", "to", "bind", "to", "the", "query", ",", "mapping", "a", "single", "result", "row", "to", "a", "result", "object", "via", "a", "row", "mapper" ]
[ "<", "t", ">", "t", "query", "for", "object", "(", "string", "sql", ",", "row", "mapper", "<", "t", ">", "row", "mapper", ",", "@", "nullable", "object", "args", ")", "throws", "data", "access", "exception", ";" ]
[ "test", "the", "property", "'", "class", "name", "'" ]
[ "public", "void", "class", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "class", "name", "}" ]
[ "determine", "the", "conventional", "variable", "name", "for", "the", "return", "type", "of", "the", "given", "method", ",", "taking", "the", "generic", "collection", "type", ",", "if", "any", ",", "into", "account" ]
[ "public", "static", "string", "get", "variable", "name", "for", "return", "type", "(", "method", "method", ")", "{", "return", "get", "variable", "name", "for", "return", "type", "(", "method", ",", "method", "get", "return", "type", "(", ")", ",", "null", ")", ";", "}" ]
[ "interrupt", "an", "in", "-", "progress", "discovery", "attempt", "by", "throwing", "a", "{", "@", "link", "wakeup", "exception", "}", "if", "no", "attempt", "is", "in", "progress", ",", "the", "immediate", "next", "attempt", "will", "throw", "a", "{", "@", "link", "wakeup", "exception", "}", "this", "method", "can", "be", "called", "concurrently", "from", "a", "different", "thread" ]
[ "public", "void", "wakeup", "(", ")", "{", "wakeup", "=", "true", ";", "wakeup", "connections", "(", ")", ";", "}" ]
[ "main", "method", "for", "launching", "the", "server", "admin", "application", "via", "ghidra", "launcher", "the", "following", "properties", "may", "be", "set", ":", "user", "admin", "invocation", "-", "identifies", "the", "name", "of", "the", "application", "used", "when", "displaying", "usage", "text", "user", "admin", "server", "dir", "-", "identifies", "the", "server", "directory", "instead", "of", "passing", "on", "command", "line" ]
[ "public", "void", "launch", "(", "ghidra", "application", "layout", "layout", ",", "string", "[", "]", "args", ")", "{", "/", "/", "perform", "static", "initializations", "if", "not", "already", "initialized", "/", "/", "some", "tests", "invoke", "main", "method", "directly", "which", "have", "already", "initialized", "application", "if", "(", "!", "application", "is", "initialized", "(", ")", ")", "{", "application", "configuration", "configuration", "=", "new", "application", "configuration", "(", ")", ";", "configuration", "set", "initialize", "logging", "(", "false", ")", ";", "application", "initialize", "application", "(", "layout", ",", "configuration", ")", ";", "}", "execute", "(", "args", ")", ";", "}" ]
[ "get", "or", "create", "the", "{", "@", "link", "hystrix", "command", "metrics", "}", "instance", "for", "a", "given", "{", "@", "link", "hystrix", "command", "key", "}", "this", "is", "thread", "-", "safe", "and", "ensures", "only", "1", "{", "@", "link", "hystrix", "command", "metrics", "}", "per", "{", "@", "link", "hystrix", "command", "key", "}" ]
[ "public", "static", "hystrix", "command", "metrics", "get", "instance", "(", "hystrix", "command", "key", "key", ",", "hystrix", "command", "group", "key", "command", "group", ",", "hystrix", "thread", "pool", "key", "thread", "pool", "key", ",", "hystrix", "command", "properties", "properties", ")", "{", "/", "/", "attempt", "to", "retrieve", "from", "cache", "first", "hystrix", "command", "metrics", "command", "metrics", "=", "metrics", "get", "(", "key", "name", "(", ")", ")", ";", "if", "(", "command", "metrics", "!", "=", "null", ")", "{", "return", "command", "metrics", ";", "}", "else", "{", "synchronized", "(", "hystrix", "command", "metrics", "class", ")", "{", "hystrix", "command", "metrics", "existing", "metrics", "=", "metrics", "get", "(", "key", "name", "(", ")", ")", ";", "if", "(", "existing", "metrics", "!", "=", "null", ")", "{", "return", "existing", "metrics", ";", "}", "else", "{", "hystrix", "thread", "pool", "key", "non", "null", "thread", "pool", "key", ";", "if", "(", "thread", "pool", "key", "=", "=", "null", ")", "{", "non", "null", "thread", "pool", "key", "=", "hystrix", "thread", "pool", "key", "factory", "as", "key", "(", "command", "group", "name", "(", ")", ")", ";", "}", "else", "{", "non", "null", "thread", "pool", "key", "=", "thread", "pool", "key", ";", "}", "hystrix", "command", "metrics", "new", "command", "metrics", "=", "new", "hystrix", "command", "metrics", "(", "key", ",", "command", "group", ",", "non", "null", "thread", "pool", "key", ",", "properties", ",", "hystrix", "plugins", "get", "instance", "(", ")", "get", "event", "notifier", "(", ")", ")", ";", "metrics", "put", "if", "absent", "(", "key", "name", "(", ")", ",", "new", "command", "metrics", ")", ";", "return", "new", "command", "metrics", ";", "}", "}", "}", "}" ]