docstring_tokens
list
code_tokens
list
[ "submit", "distcp", "job", "and", "return", "job", "id" ]
[ "private", "string", "submit", "dist", "cp", "job", "(", "string", "src", "param", ",", "string", "dst", "param", ",", "boolean", "use", "snapshot", "diff", ")", "throws", "i", "o", "exception", "{", "list", "<", "string", ">", "command", "=", "new", "array", "list", "<", ">", "(", ")", ";", "command", "add", "all", "(", "arrays", "as", "list", "(", "new", "string", "[", "]", "{", "\"", "-", "async", "\"", ",", "\"", "-", "update", "\"", ",", "\"", "-", "append", "\"", ",", "\"", "-", "pruxgpcab", "\"", "}", ")", ")", ";", "if", "(", "use", "snapshot", "diff", ")", "{", "command", "add", "(", "\"", "-", "diff", "\"", ")", ";", "command", "add", "(", "last", "snapshot", "name", ")", ";", "command", "add", "(", "current", "snapshot", "name", ")", ";", "}", "command", "add", "(", "\"", "-", "m", "\"", ")", ";", "command", "add", "(", "map", "num", "+", "\"", "\"", ")", ";", "command", "add", "(", "\"", "-", "bandwidth", "\"", ")", ";", "command", "add", "(", "band", "width", "+", "\"", "\"", ")", ";", "command", "add", "(", "src", "param", ")", ";", "command", "add", "(", "dst", "param", ")", ";", "configuration", "config", "=", "new", "configuration", "(", "conf", ")", ";", "dist", "cp", "dist", "cp", ";", "try", "{", "dist", "cp", "=", "new", "dist", "cp", "(", "config", ",", "options", "parser", "parse", "(", "command", "to", "array", "(", "new", "string", "[", "]", "{", "}", ")", ")", ")", ";", "job", "job", "=", "dist", "cp", "create", "and", "submit", "job", "(", ")", ";", "log", "info", "(", "\"", "submit", "distcp", "job", "=", "{", "}", "\"", ",", "job", ")", ";", "if", "(", "enabled", "for", "test", ")", "{", "local", "job", "=", "job", ";", "}", "return", "job", "get", "job", "i", "d", "(", ")", "to", "string", "(", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "submit", "job", "failed", "\"", ",", "e", ")", ";", "}", "}" ]
[ "the", "search", "source", "to", "execute" ]
[ "public", "search", "source", "builder", "source", "(", ")", "{", "return", "source", ";", "}" ]
[ "returns", "the", "quotient", "of", "this", "double", "value", "and", "the", "given", "specific", "double", "value" ]
[ "public", "double", "value", "divide", "(", "specific", "double", "value", "other", ")", "{", "return", "divide", "(", "(", "double", "value", ")", "other", ")", ";", "}" ]
[ "tests", "the", "{", "@", "link", "x", "5", "0", "9", "credentials", "authentication", "handler", "#", "authenticate", "(", "credential", ")", "}", "method" ]
[ "public", "void", "verify", "authenticate", "(", "final", "x", "5", "0", "9", "credentials", "authentication", "handler", "handler", ",", "final", "credential", "credential", ",", "final", "boolean", "expected", "supports", ",", "final", "authentication", "handler", "execution", "result", "expected", "result", ",", "final", "general", "security", "exception", "expected", "exception", ")", "{", "assert", "throws", "or", "not", "(", "expected", "exception", ",", "(", ")", "-", ">", "{", "if", "(", "expected", "supports", ")", "{", "assert", "true", "(", "handler", "supports", "(", "credential", ")", ")", ";", "val", "result", "=", "handler", "authenticate", "(", "credential", ")", ";", "assert", "equals", "(", "expected", "result", ",", "result", ")", ";", "}", "}", ")", ";", "assert", "equals", "(", "expected", "supports", ",", "handler", "supports", "(", "credential", ")", ")", ";", "}" ]
[ "ask", "for", "the", "next", "listing", "for", "the", "first", "invocation", ",", "this", "returns", "the", "initial", "set", ",", "with", "no", "remote", "io", "for", "later", "requests", ",", "obs", "will", "be", "queried", ",", "hence", "the", "calls", "may", "block", "or", "fail" ]
[ "public", "object", "listing", "next", "(", ")", "throws", "i", "o", "exception", "{", "if", "(", "first", "listing", ")", "{", "/", "/", "on", "the", "first", "listing", ",", "don", "'", "t", "request", "more", "data", "/", "/", "instead", "just", "clear", "the", "first", "listing", "flag", "so", "that", "it", "future", "/", "/", "calls", "will", "request", "new", "data", "first", "listing", "=", "false", ";", "}", "else", "{", "try", "{", "if", "(", "!", "objects", "is", "truncated", "(", ")", ")", "{", "/", "/", "nothing", "more", "to", "request", ":", "fail", "throw", "new", "no", "such", "element", "exception", "(", "\"", "no", "more", "results", "in", "listing", "of", "\"", "+", "list", "path", ")", ";", "}", "/", "/", "need", "to", "request", "a", "new", "set", "of", "objects", "log", "debug", "(", "\"", "[", "{", "}", "]", ",", "requesting", "next", "{", "}", "objects", "under", "{", "}", "\"", ",", "listing", "count", ",", "max", "keys", ",", "list", "path", ")", ";", "objects", "=", "o", "b", "s", "common", "utils", "continue", "list", "objects", "(", "owner", ",", "objects", ")", ";", "listing", "count", "+", "+", ";", "log", "debug", "(", "\"", "new", "listing", "status", ":", "{", "}", "\"", ",", "this", ")", ";", "}", "catch", "(", "obs", "exception", "e", ")", "{", "throw", "o", "b", "s", "common", "utils", "translate", "exception", "(", "\"", "list", "objects", "(", ")", "\"", ",", "list", "path", ",", "e", ")", ";", "}", "}", "return", "objects", ";", "}" ]
[ "specify", "the", "portion", "of", "the", "request", "u", "r", "i", "that", "represents", "the", "context", "path", "the", "context", "path", ",", "if", "specified", ",", "must", "match", "to", "the", "start", "of", "the", "request", "uri", "in", "most", "cases", ",", "tests", "can", "be", "written", "by", "omitting", "the", "context", "path", "from", "the", "request", "u", "r", "i", "this", "is", "because", "most", "applications", "don", "'", "t", "actually", "depend", "on", "the", "name", "under", "which", "they", "'", "re", "deployed", "if", "specified", "here", ",", "the", "context", "path", "must", "start", "with", "a", "\"", "\"", "and", "must", "not", "end", "with", "a", "\"", "\"" ]
[ "public", "mock", "http", "servlet", "request", "builder", "context", "path", "(", "string", "context", "path", ")", "{", "if", "(", "string", "utils", "has", "text", "(", "context", "path", ")", ")", "{", "assert", "is", "true", "(", "context", "path", "starts", "with", "(", "\"", "/", "\"", ")", ",", "\"", "context", "path", "must", "start", "with", "a", "'", "/", "'", "\"", ")", ";", "assert", "is", "true", "(", "!", "context", "path", "ends", "with", "(", "\"", "/", "\"", ")", ",", "\"", "context", "path", "must", "not", "end", "with", "a", "'", "/", "'", "\"", ")", ";", "}", "this", "context", "path", "=", "context", "path", ";", "return", "this", ";", "}" ]
[ "get", "the", "groups", "for", "the", "users", "given", "and", "print", "formatted", "output", "to", "the", "{", "@", "link", "print", "stream", "}", "configured", "earlier" ]
[ "public", "int", "run", "(", "string", "[", "]", "args", ")", "throws", "exception", "{", "if", "(", "args", "length", "=", "=", "0", ")", "{", "args", "=", "new", "string", "[", "]", "{", "user", "group", "information", "get", "current", "user", "(", ")", "get", "user", "name", "(", ")", "}", ";", "}", "for", "(", "string", "username", ":", "args", ")", "{", "string", "builder", "sb", "=", "new", "string", "builder", "(", ")", ";", "sb", "append", "(", "username", "+", "\"", ":", "\"", ")", ";", "for", "(", "string", "group", ":", "get", "ugm", "protocol", "(", ")", "get", "groups", "for", "user", "(", "username", ")", ")", "{", "sb", "append", "(", "\"", "\"", ")", "append", "(", "group", ")", ";", "}", "out", "println", "(", "sb", ")", ";", "}", "return", "0", ";", "}" ]
[ "post", "the", "final", "test", "result", "based", "on", "the", "last", "attempt", "and", "the", "list", "of", "failed", "attempts" ]
[ "void", "finalize", "cancelled", "test", "(", "list", "<", "failed", "attempt", "result", ">", "failed", "attempts", ")", "throws", "i", "o", "exception", ";" ]
[ "same", "contract", "as", "for", "{", "@", "link", "javax", "servlet", "http", "http", "servlet", "#", "get", "last", "modified", "(", "http", "servlet", "request", ")", "}" ]
[ "protected", "abstract", "long", "get", "last", "modified", "internal", "(", "http", "servlet", "request", "request", ",", "handler", "method", "handler", "method", ")", ";" ]
[ "ensures", "that", "this", "{", "@", "code", "compact", "hash", "set", "}", "has", "the", "smallest", "representation", "in", "memory", ",", "given", "its", "current", "size" ]
[ "public", "void", "trim", "to", "size", "(", ")", "{", "int", "size", "=", "this", "size", ";", "if", "(", "size", "<", "entries", "length", ")", "{", "resize", "entries", "(", "size", ")", ";", "}", "/", "/", "size", "/", "load", "factor", "gives", "the", "table", "size", "of", "the", "appropriate", "load", "factor", ",", "/", "/", "but", "that", "may", "not", "be", "a", "power", "of", "two", "we", "floor", "it", "to", "a", "power", "of", "two", "by", "/", "/", "keeping", "its", "highest", "bit", "but", "the", "smaller", "table", "may", "have", "a", "load", "factor", "/", "/", "larger", "than", "what", "we", "want", ";", "then", "we", "want", "to", "go", "to", "the", "next", "power", "of", "2", "if", "we", "can", "int", "minimum", "table", "size", "=", "math", "max", "(", "1", ",", "integer", "highest", "one", "bit", "(", "(", "int", ")", "(", "size", "/", "load", "factor", ")", ")", ")", ";", "if", "(", "minimum", "table", "size", "<", "maximum", "capacity", ")", "{", "double", "load", "=", "(", "double", ")", "size", "/", "minimum", "table", "size", ";", "if", "(", "load", ">", "load", "factor", ")", "{", "minimum", "table", "size", "<", "<", "=", "1", ";", "/", "/", "increase", "to", "next", "power", "if", "possible", "}", "}", "if", "(", "minimum", "table", "size", "<", "table", "length", ")", "{", "resize", "table", "(", "minimum", "table", "size", ")", ";", "}", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "java", "lang", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "tests", "that", "emulates", "a", "frozen", "elected", "master", "node", "that", "unfreezes", "and", "pushes", "its", "cluster", "state", "to", "other", "nodes", "that", "already", "are", "following", "another", "elected", "master", "node", "these", "nodes", "should", "reject", "this", "cluster", "state", "and", "prevent", "them", "from", "following", "the", "stale", "master" ]
[ "public", "void", "test", "stale", "master", "not", "hijacking", "majority", "(", ")", "throws", "exception", "{", "final", "list", "<", "string", ">", "nodes", "=", "internal", "cluster", "(", ")", "start", "nodes", "(", "3", ",", "settings", "builder", "(", ")", "put", "(", "leader", "checker", "leader", "check", "timeout", "setting", "get", "key", "(", ")", ",", "\"", "1s", "\"", ")", "put", "(", "coordinator", "publish", "timeout", "setting", "get", "key", "(", ")", ",", "\"", "1s", "\"", ")", "build", "(", ")", ")", ";", "ensure", "stable", "cluster", "(", "3", ")", ";", "/", "/", "save", "the", "current", "master", "node", "as", "old", "master", "node", ",", "because", "that", "node", "will", "get", "frozen", "final", "string", "old", "master", "node", "=", "internal", "cluster", "(", ")", "get", "master", "name", "(", ")", ";", "/", "/", "simulating", "a", "painful", "gc", "by", "suspending", "all", "threads", "for", "a", "long", "time", "on", "the", "current", "elected", "master", "node", "single", "node", "disruption", "master", "node", "disruption", "=", "new", "long", "g", "c", "disruption", "(", "random", "(", ")", ",", "old", "master", "node", ")", ";", "/", "/", "save", "the", "majority", "side", "final", "list", "<", "string", ">", "majority", "side", "=", "new", "array", "list", "<", ">", "(", "nodes", ")", ";", "majority", "side", "remove", "(", "old", "master", "node", ")", ";", "/", "/", "keeps", "track", "of", "the", "previous", "and", "current", "master", "when", "a", "master", "node", "transition", "took", "place", "on", "each", "node", "on", "the", "majority", "side", ":", "final", "map", "<", "string", ",", "list", "<", "tuple", "<", "string", ",", "string", ">", ">", ">", "masters", "=", "collections", "synchronized", "map", "(", "new", "hash", "map", "<", ">", "(", ")", ")", ";", "for", "(", "final", "string", "node", ":", "majority", "side", ")", "{", "masters", "put", "(", "node", ",", "new", "array", "list", "<", ">", "(", ")", ")", ";", "internal", "cluster", "(", ")", "get", "instance", "(", "cluster", "service", "class", ",", "node", ")", "add", "listener", "(", "event", "-", ">", "{", "discovery", "node", "previous", "master", "=", "event", "previous", "state", "(", ")", "nodes", "(", ")", "get", "master", "node", "(", ")", ";", "discovery", "node", "current", "master", "=", "event", "state", "(", ")", "nodes", "(", ")", "get", "master", "node", "(", ")", ";", "if", "(", "!", "objects", "equals", "(", "previous", "master", ",", "current", "master", ")", ")", "{", "logger", "info", "(", "\"", "-", "-", ">", "node", "{", "}", "received", "new", "cluster", "state", ":", "{", "}", "\\", "n", "and", "had", "previous", "cluster", "state", ":", "{", "}", "\"", ",", "node", ",", "event", "state", "(", ")", ",", "event", "previous", "state", "(", ")", ")", ";", "string", "previous", "master", "node", "name", "=", "previous", "master", "!", "=", "null", "?", "previous", "master", "get", "name", "(", ")", ":", "null", ";", "string", "current", "master", "node", "name", "=", "current", "master", "!", "=", "null", "?", "current", "master", "get", "name", "(", ")", ":", "null", ";", "masters", "get", "(", "node", ")", "add", "(", "new", "tuple", "<", ">", "(", "previous", "master", "node", "name", ",", "current", "master", "node", "name", ")", ")", ";", "}", "}", ")", ";", "}", "final", "count", "down", "latch", "old", "master", "node", "stepped", "down", "=", "new", "count", "down", "latch", "(", "1", ")", ";", "internal", "cluster", "(", ")", "get", "instance", "(", "cluster", "service", "class", ",", "old", "master", "node", ")", "add", "listener", "(", "event", "-", ">", "{", "if", "(", "event", "state", "(", ")", "nodes", "(", ")", "get", "master", "node", "id", "(", ")", "=", "=", "null", ")", "{", "old", "master", "node", "stepped", "down", "count", "down", "(", ")", ";", "}", "}", ")", ";", "internal", "cluster", "(", ")", "set", "disruption", "scheme", "(", "master", "node", "disruption", ")", ";", "logger", "info", "(", "\"", "-", "-", ">", "freezing", "node", "[", "{", "}", "]", "\"", ",", "old", "master", "node", ")", ";", "master", "node", "disruption", "start", "disrupting", "(", ")", ";", "/", "/", "wait", "for", "majority", "side", "to", "elect", "a", "new", "master", "assert", "busy", "(", "(", ")", "-", ">", "{", "for", "(", "final", "map", "entry", "<", "string", ",", "list", "<", "tuple", "<", "string", ",", "string", ">", ">", ">", "entry", ":", "masters", "entry", "set", "(", ")", ")", "{", "final", "list", "<", "tuple", "<", "string", ",", "string", ">", ">", "transitions", "=", "entry", "get", "value", "(", ")", ";", "assert", "true", "(", "entry", "get", "key", "(", ")", "+", "\"", ":", "\"", "+", "transitions", ",", "transitions", "stream", "(", ")", "any", "match", "(", "transition", "-", ">", "transition", "v", "2", "(", ")", "!", "=", "null", ")", ")", ";", "}", "}", ")", ";", "/", "/", "the", "old", "master", "node", "is", "frozen", ",", "but", "here", "we", "submit", "a", "cluster", "state", "update", "task", "that", "doesn", "'", "t", "get", "executed", ",", "but", "will", "be", "queued", "and", "/", "/", "once", "the", "old", "master", "node", "un", "-", "freezes", "it", "gets", "executed", "the", "old", "master", "node", "will", "send", "this", "update", "+", "the", "cluster", "state", "where", "it", "is", "/", "/", "flagged", "as", "master", "to", "the", "other", "nodes", "that", "follow", "the", "new", "master", "these", "nodes", "should", "ignore", "this", "update", "internal", "cluster", "(", ")", "get", "instance", "(", "cluster", "service", "class", ",", "old", "master", "node", ")", "submit", "state", "update", "task", "(", "\"", "sneaky", "-", "update", "\"", ",", "new", "cluster", "state", "update", "task", "(", "priority", "immediate", ")", "{", "@", "override", "public", "cluster", "state", "execute", "(", "cluster", "state", "current", "state", ")", "{", "return", "cluster", "state", "builder", "(", "current", "state", ")", "build", "(", ")", ";", "}", "@", "override", "public", "void", "on", "failure", "(", "string", "source", ",", "exception", "e", ")", "{", "logger", "warn", "(", "(", ")", "-", ">", "new", "parameterized", "message", "(", "\"", "failure", "[", "{", "}", "]", "\"", ",", "source", ")", ",", "e", ")", ";", "}", "}", ")", ";", "/", "/", "save", "the", "new", "elected", "master", "node", "final", "string", "new", "master", "node", "=", "internal", "cluster", "(", ")", "get", "master", "name", "(", "majority", "side", "get", "(", "0", ")", ")", ";", "logger", "info", "(", "\"", "-", "-", ">", "new", "detected", "master", "node", "[", "{", "}", "]", "\"", ",", "new", "master", "node", ")", ";", "/", "/", "stop", "disruption", "logger", "info", "(", "\"", "-", "-", ">", "unfreezing", "node", "[", "{", "}", "]", "\"", ",", "old", "master", "node", ")", ";", "master", "node", "disruption", "stop", "disrupting", "(", ")", ";", "old", "master", "node", "stepped", "down", "await", "(", "30", ",", "time", "unit", "seconds", ")", ";", "logger", "info", "(", "\"", "-", "-", ">", "[", "{", "}", "]", "stepped", "down", "as", "master", "\"", ",", "old", "master", "node", ")", ";", "ensure", "stable", "cluster", "(", "3", ")", ";", "assert", "that", "(", "masters", "size", "(", ")", ",", "equal", "to", "(", "2", ")", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "list", "<", "tuple", "<", "string", ",", "string", ">", ">", ">", "entry", ":", "masters", "entry", "set", "(", ")", ")", "{", "string", "node", "name", "=", "entry", "get", "key", "(", ")", ";", "list", "<", "tuple", "<", "string", ",", "string", ">", ">", "transitions", "=", "entry", "get", "value", "(", ")", ";", "assert", "true", "(", "\"", "[", "\"", "+", "node", "name", "+", "\"", "]", "should", "not", "apply", "state", "from", "old", "master", "[", "\"", "+", "old", "master", "node", "+", "\"", "]", "but", "it", "did", ":", "\"", "+", "transitions", ",", "transitions", "stream", "(", ")", "none", "match", "(", "t", "-", ">", "old", "master", "node", "equals", "(", "t", "v", "2", "(", ")", ")", ")", ")", ";", "}", "}" ]
[ "sets", "this", "frame", "to", "the", "value", "of", "the", "given", "frame", "warning", ":", "after", "this", "method", "is", "called", "the", "two", "frames", "share", "the", "same", "data", "structures", "it", "is", "recommended", "to", "discard", "the", "given", "frame", "to", "avoid", "unexpected", "side", "effects" ]
[ "final", "void", "copy", "from", "(", "final", "frame", "frame", ")", "{", "input", "locals", "=", "frame", "input", "locals", ";", "input", "stack", "=", "frame", "input", "stack", ";", "output", "stack", "start", "=", "0", ";", "output", "locals", "=", "frame", "output", "locals", ";", "output", "stack", "=", "frame", "output", "stack", ";", "output", "stack", "top", "=", "frame", "output", "stack", "top", ";", "initialization", "count", "=", "frame", "initialization", "count", ";", "initializations", "=", "frame", "initializations", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "static", "methods", "to", "get", "abstract", "types", "from", "other", "type", "formats", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "build", "the", "path", "to", "a", "user", "home", "folder", ";" ]
[ "public", "static", "string", "mk", "user", "home", "path", "(", "string", "username", ")", "{", "return", "svc", "users", "+", "\"", "/", "\"", "+", "username", ";", "}" ]
[ "returns", "{", "@", "code", "null", "}", "if", "unable", "to", "parse", "into", "a", "{", "@", "code", "byte", "[", "]", "}" ]
[ "private", "static", "byte", "[", "]", "ip", "string", "to", "bytes", "(", "string", "ip", "string", ")", "{", "/", "/", "make", "a", "first", "pass", "to", "categorize", "the", "characters", "in", "this", "string", "boolean", "has", "colon", "=", "false", ";", "boolean", "has", "dot", "=", "false", ";", "int", "percent", "index", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ip", "string", "length", "(", ")", ";", "i", "+", "+", ")", "{", "char", "c", "=", "ip", "string", "char", "at", "(", "i", ")", ";", "if", "(", "c", "=", "=", "'", "'", ")", "{", "has", "dot", "=", "true", ";", "}", "else", "if", "(", "c", "=", "=", "'", ":", "'", ")", "{", "if", "(", "has", "dot", ")", "{", "return", "null", ";", "/", "/", "colons", "must", "not", "appear", "after", "dots", "}", "has", "colon", "=", "true", ";", "}", "else", "if", "(", "c", "=", "=", "'", "%", "'", ")", "{", "percent", "index", "=", "i", ";", "break", ";", "/", "/", "everything", "after", "a", "'", "%", "'", "is", "ignored", "(", "it", "'", "s", "a", "scope", "id", ")", ":", "http", ":", "/", "/", "superuser", "com", "/", "a", "/", "99753", "}", "else", "if", "(", "character", "digit", "(", "c", ",", "16", ")", "=", "=", "-", "1", ")", "{", "return", "null", ";", "/", "/", "everything", "else", "must", "be", "a", "decimal", "or", "hex", "digit", "}", "}", "/", "/", "now", "decide", "which", "address", "family", "to", "parse", "if", "(", "has", "colon", ")", "{", "if", "(", "has", "dot", ")", "{", "ip", "string", "=", "convert", "dotted", "quad", "to", "hex", "(", "ip", "string", ")", ";", "if", "(", "ip", "string", "=", "=", "null", ")", "{", "return", "null", ";", "}", "}", "if", "(", "percent", "index", "!", "=", "-", "1", ")", "{", "ip", "string", "=", "ip", "string", "substring", "(", "0", ",", "percent", "index", ")", ";", "}", "return", "text", "to", "numeric", "format", "v", "6", "(", "ip", "string", ")", ";", "}", "else", "if", "(", "has", "dot", ")", "{", "if", "(", "percent", "index", "!", "=", "-", "1", ")", "{", "return", "null", ";", "/", "/", "scope", "i", "ds", "are", "not", "supported", "for", "ipv4", "}", "return", "text", "to", "numeric", "format", "v", "4", "(", "ip", "string", ")", ";", "}", "return", "null", ";", "}" ]
[ "method", "called", "when", "the", "action", "is", "invoked" ]
[ "public", "void", "action", "performed", "(", "program", "action", "context", "context", ")", "{", "function", "function", "=", "null", ";", "if", "(", "context", "instanceof", "listing", "action", "context", ")", "{", "listing", "action", "context", "listing", "context", "=", "(", "listing", "action", "context", ")", "context", ";", "program", "location", "loc", "=", "listing", "context", "get", "location", "(", ")", ";", "if", "(", "loc", "instanceof", "function", "location", ")", "{", "function", "=", "function", "plugin", "get", "function", "(", "listing", "context", ")", ";", "}", "else", "if", "(", "loc", "instanceof", "operand", "field", "location", ")", "{", "function", "=", "function", "plugin", "get", "function", "in", "operand", "field", "(", "context", "get", "program", "(", ")", ",", "(", "operand", "field", "location", ")", "loc", ")", ";", "}", "}", "else", "{", "program", "symbol", "action", "context", "symbol", "context", "=", "(", "program", "symbol", "action", "context", ")", "context", ";", "symbol", "symbol", "=", "symbol", "context", "get", "first", "symbol", "(", ")", ";", "if", "(", "symbol", "=", "=", "null", ")", "{", "return", ";", "/", "/", "assume", "symbol", "removed", "}", "function", "=", "(", "function", ")", "symbol", "get", "object", "(", ")", ";", "}", "if", "(", "function", "!", "=", "null", ")", "{", "plugin", "tool", "tool", "=", "function", "plugin", "get", "tool", "(", ")", ";", "data", "type", "manager", "service", "service", "=", "tool", "get", "service", "(", "data", "type", "manager", "service", "class", ")", ";", "function", "editor", "dialog", "dialog", "=", "new", "function", "editor", "dialog", "(", "service", ",", "function", ")", ";", "tool", "show", "dialog", "(", "dialog", ",", "context", "get", "component", "provider", "(", ")", ")", ";", "}", "}" ]
[ "gets", "the", "node", "uuid" ]
[ "public", "string", "get", "node", "u", "u", "i", "d", "(", ")", "{", "return", "node", "u", "u", "i", "d", ";", "}" ]
[ "controls", "the", "shard", "routing", "of", "the", "request", "using", "this", "value", "to", "hash", "the", "shard", "and", "not", "the", "id" ]
[ "public", "index", "request", "builder", "set", "routing", "(", "string", "routing", ")", "{", "request", "routing", "(", "routing", ")", ";", "return", "this", ";", "}" ]
[ "map", "{", "@", "code", "scan", "foo", "bar", "}", "to", "{", "@", "code", "flink", "foo", "bar", "}" ]
[ "private", "static", "string", "translate", "aws", "key", "(", "string", "key", ")", "{", "if", "(", "!", "key", "ends", "with", "(", "\"", "credentials", "provider", "\"", ")", ")", "{", "return", "key", "replace", "(", "\"", "credentials", "\"", ",", "\"", "credentials", "provider", "\"", ")", ";", "}", "else", "{", "return", "key", ";", "}", "}" ]
[ "test", "serialization", "of", "outer", "number", "types" ]
[ "public", "void", "fake", "outer", "number", "serialize", "test", "(", ")", "{", "big", "decimal", "body", "=", "null", ";", "big", "decimal", "response", "=", "api", "fake", "outer", "number", "serialize", "(", "body", ")", "block", "(", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "return", "the", "configured", "model", "keys" ]
[ "public", "final", "set", "<", "string", ">", "get", "model", "keys", "(", ")", "{", "return", "this", "model", "keys", ";", "}" ]
[ "gets", "the", "checkpoint", "config", ",", "which", "defines", "values", "like", "checkpoint", "interval", ",", "delay", "between", "checkpoints", ",", "etc" ]
[ "public", "checkpoint", "config", "get", "checkpoint", "config", "(", ")", "{", "return", "checkpoint", "cfg", ";", "}" ]
[ "ensures", "that", "an", "object", "reference", "passed", "as", "a", "parameter", "to", "the", "calling", "method", "is", "not", "null", "see", "{", "@", "link", "#", "check", "not", "null", "(", "object", ",", "string", ",", "object", ")", "}", "for", "details" ]
[ "public", "static", "<", "t", "extends", "object", ">", "t", "check", "not", "null", "(", "@", "non", "null", "decl", "t", "obj", ",", "@", "nullable", "decl", "string", "error", "message", "template", ",", "char", "p", "1", ")", "{", "if", "(", "obj", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", "lenient", "format", "(", "error", "message", "template", ",", "p", "1", ")", ")", ";", "}", "return", "obj", ";", "}" ]
[ "finds", "the", "index", "of", "the", "given", "method", "in", "the", "target", "class" ]
[ "private", "int", "find", "method", "index", "(", "method", "method", ")", "{", "int", "methods", "count", "=", "target", "class", "u", "2methods", "count", ";", "method", "[", "]", "methods", "=", "target", "class", "methods", ";", "for", "(", "int", "index", "=", "0", ";", "index", "<", "methods", "count", ";", "index", "+", "+", ")", "{", "if", "(", "methods", "[", "index", "]", "equals", "(", "method", ")", ")", "{", "return", "index", ";", "}", "}", "return", "methods", "count", ";", "}" ]
[ "rpc", "context", "constructor" ]
[ "public", "static", "void", "setup", "(", ")", "{", "rpc", "context", "=", "new", "rpc", "context", "(", ")", ";", "}" ]
[ "<", "code", ">", "required", "string", "declaring", "class", "protocol", "name", "=", "2", ";", "<", "code", ">", "r", "p", "cs", "for", "a", "particular", "interface", "(", "ie", "protocol", ")", "are", "done", "using", "a", "ipc", "connection", "that", "is", "setup", "using", "rpc", "proxy", "the", "rpc", "proxy", "'", "s", "has", "a", "declared", "protocol", "name", "that", "is", "sent", "form", "client", "to", "server", "at", "connection", "time", "each", "rpc", "call", "also", "sends", "a", "protocol", "name", "(", "called", "declaring", "classprotocol", "name", ")", "this", "name", "is", "usually", "the", "same", "as", "the", "connection", "protocol", "name", "except", "in", "some", "cases", "for", "example", "meta", "protocols", "such", "protocol", "info", "proto", "which", "get", "metainfo", "about", "the", "protocol", "reuse", "the", "connection", "but", "need", "to", "indicate", "that", "the", "actual", "protocol", "is", "different", "(", "i", "e", "the", "protocol", "is", "protocol", "info", "proto", ")", "since", "they", "reuse", "the", "connection", ";", "in", "this", "case", "the", "declaring", "class", "protocol", "name", "field", "is", "set", "to", "the", "protocol", "info", "proto" ]
[ "public", "builder", "set", "declaring", "class", "protocol", "name", "(", "java", "lang", "string", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "declaring", "class", "protocol", "name", "=", "value", ";", "on", "changed", "(", ")", ";", "return", "this", ";", "}" ]
[ "gets", "the", "{", "@", "link", "channel", "option", "#", "so", "sndbuf", "}", "option" ]
[ "int", "get", "send", "buffer", "size", "(", ")", ";" ]
[ "produce", "response", "entity" ]
[ "public", "response", "entity", "<", "object", ">", "produce", "(", "final", "http", "servlet", "request", "request", ",", "final", "http", "servlet", "response", "response", ")", "{", "val", "username", "=", "request", "get", "parameter", "(", "\"", "username", "\"", ")", ";", "val", "password", "=", "request", "get", "parameter", "(", "\"", "password", "\"", ")", ";", "val", "entity", "id", "=", "request", "get", "parameter", "(", "saml", "protocol", "constants", "parameter", "entity", "id", ")", ";", "try", "{", "val", "selected", "service", "=", "this", "service", "factory", "create", "service", "(", "entity", "id", ")", ";", "val", "registered", "service", "=", "this", "services", "manager", "find", "service", "by", "(", "selected", "service", ",", "saml", "registered", "service", "class", ")", ";", "registered", "service", "access", "strategy", "utils", "ensure", "service", "access", "is", "allowed", "(", "registered", "service", ")", ";", "val", "authn", "request", "=", "new", "authn", "request", "builder", "(", ")", "build", "object", "(", ")", ";", "authn", "request", "set", "issuer", "(", "saml", "2", "0", "object", "builder", "new", "issuer", "(", "entity", "id", ")", ")", ";", "val", "adaptor", "result", "=", "saml", "registered", "service", "service", "provider", "metadata", "facade", "get", "(", "default", "saml", "registered", "service", "caching", "metadata", "resolver", ",", "registered", "service", ",", "entity", "id", ")", ";", "if", "(", "adaptor", "result", "is", "present", "(", ")", ")", "{", "val", "adaptor", "=", "adaptor", "result", "get", "(", ")", ";", "val", "message", "context", "=", "new", "message", "context", "(", ")", ";", "val", "scratch", "=", "message", "context", "get", "subcontext", "(", "scratch", "context", "class", ",", "true", ")", ";", "val", "map", "=", "(", "map", ")", "objects", "require", "non", "null", "(", "scratch", ")", "get", "map", "(", ")", ";", "map", "put", "(", "saml", "protocol", "constants", "parameter", "encode", "response", ",", "boolean", "false", ")", ";", "val", "assertion", "=", "get", "assertion", "(", "username", ",", "password", ",", "entity", "id", ")", ";", "val", "object", "=", "this", "response", "builder", "build", "(", "authn", "request", ",", "request", ",", "response", ",", "assertion", ",", "registered", "service", ",", "adaptor", ",", "s", "a", "m", "l", "constants", "saml2", "post", "binding", "uri", ",", "message", "context", ")", ";", "val", "encoded", "=", "saml", "utils", "transform", "saml", "object", "(", "saml", "2", "0", "object", "builder", "get", "open", "saml", "config", "bean", "(", ")", ",", "object", ")", "to", "string", "(", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "encoded", ",", "http", "status", "ok", ")", ";", "}", "}", "catch", "(", "final", "exception", "e", ")", "{", "logging", "utils", "error", "(", "logger", ",", "e", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "e", "get", "message", "(", ")", ",", "http", "status", "bad", "request", ")", ";", "}", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "internal", "server", "error", ")", ";", "}" ]
[ "whether", "the", "state", "backend", "uses", "flink", "'", "s", "managed", "memory" ]
[ "default", "boolean", "use", "managed", "memory", "(", ")", "{", "return", "false", ";", "}" ]
[ "appends", "an", "optimized", "{", "@", "code", "byte", "array", "}", "value", "to", "the", "stream", "as", "an", "optimized", "array", ",", "the", "{", "@", "code", "int", "8", "}", "value", "type", "marker", "and", "element", "count", "are", "encoded", "once", "at", "the", "array", "marker", "instead", "of", "repeating", "the", "type", "marker", "for", "each", "element" ]
[ "public", "u", "b", "json", "writer", "value", "(", "byte", "[", "]", "values", ")", "throws", "i", "o", "exception", "{", "array", "(", ")", ";", "out", "write", "byte", "(", "'", "$", "'", ")", ";", "out", "write", "byte", "(", "'", "i", "'", ")", ";", "out", "write", "byte", "(", "'", "#", "'", ")", ";", "value", "(", "values", "length", ")", ";", "for", "(", "int", "i", "=", "0", ",", "n", "=", "values", "length", ";", "i", "<", "n", ";", "i", "+", "+", ")", "{", "out", "write", "byte", "(", "values", "[", "i", "]", ")", ";", "}", "pop", "(", "true", ")", ";", "return", "this", ";", "}" ]
[ "enables", "untrusted", "alts", "for", "testing", "if", "this", "function", "is", "called", ",", "we", "will", "not", "check", "whether", "alts", "is", "running", "on", "google", "cloud", "platform" ]
[ "public", "builder", "enable", "untrusted", "alts", "for", "testing", "(", ")", "{", "enable", "untrusted", "alts", "=", "true", ";", "return", "this", ";", "}" ]
[ "namespaces", "defined", "on", "this", "element", "<", "code", ">", "repeated", "aapt", "pb", "xml", "namespace", "namespace", "declaration", "=", "1", ";", "<", "code", ">" ]
[ "private", "void", "add", "namespace", "declaration", "(", "com", "android", "aapt", "resources", "xml", "namespace", "builder", "builder", "for", "value", ")", "{", "ensure", "namespace", "declaration", "is", "mutable", "(", ")", ";", "namespace", "declaration", "add", "(", "builder", "for", "value", "build", "(", ")", ")", ";", "}" ]
[ "test", "the", "property", "'", "prefix", "wrapped", "array", "'" ]
[ "public", "void", "prefix", "wrapped", "array", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "prefix", "wrapped", "array", "}" ]
[ "get", "or", "create", "a", "sensor", "with", "the", "given", "unique", "name", "and", "zero", "or", "more", "parent", "sensors", "all", "parent", "sensors", "will", "receive", "every", "value", "recorded", "with", "this", "sensor", "this", "uses", "a", "default", "recording", "level", "of", "info" ]
[ "public", "synchronized", "sensor", "sensor", "(", "string", "name", ",", "metric", "config", "config", ",", "long", "inactive", "sensor", "expiration", "time", "seconds", ",", "sensor", "parents", ")", "{", "return", "this", "sensor", "(", "name", ",", "config", ",", "inactive", "sensor", "expiration", "time", "seconds", ",", "sensor", "recording", "level", "info", ",", "parents", ")", ";", "}" ]
[ "returns", "an", "instance", "of", "an", "open", "ghidra", "project", "that", "can", "be", "used", "to", "opensave", "programs" ]
[ "public", "static", "ghidra", "project", "open", "project", "(", "string", "projects", "dir", ",", "string", "project", "name", ",", "boolean", "restore", "project", ")", "throws", "i", "o", "exception", "{", "return", "new", "ghidra", "project", "(", "projects", "dir", ",", "project", "name", ",", "restore", "project", ")", ";", "}" ]
[ "register", "a", "listener", "that", "will", "be", "called", "when", "this", "model", "visibility", "state", "has", "changed", "the", "listener", "will", "contribute", "to", "this", "model", "'", "s", "hash", "code", "state", "per", "the", "{", "@", "link", "com", "airbnb", "epoxy", "epoxy", "attribute", "option", "#", "do", "not", "hash", "}", "rules" ]
[ "public", "ignore", "require", "hash", "code", "view", "model", "on", "visibility", "state", "changed", "(", "on", "model", "visibility", "state", "changed", "listener", "<", "ignore", "require", "hash", "code", "view", "model", ",", "ignore", "require", "hash", "code", "view", ">", "listener", ")", "{", "on", "mutation", "(", ")", ";", "this", "on", "model", "visibility", "state", "changed", "listener", "epoxy", "generated", "model", "=", "listener", ";", "return", "this", ";", "}" ]
[ "the", "set", "of", "attribute", "declarations", "<", "code", ">", "repeated", "aapt", "pb", "styleable", "entry", "entry", "=", "1", ";", "<", "code", ">" ]
[ "private", "void", "add", "entry", "(", "int", "index", ",", "com", "android", "aapt", "resources", "styleable", "entry", "builder", "builder", "for", "value", ")", "{", "ensure", "entry", "is", "mutable", "(", ")", ";", "entry", "add", "(", "index", ",", "builder", "for", "value", "build", "(", ")", ")", ";", "}" ]
[ "return", "the", "lines", "in", "file" ]
[ "public", "static", "list", "<", "string", ">", "read", "file", "2", "list", "(", "final", "string", "file", "path", ",", "final", "int", "st", ",", "final", "int", "end", ")", "{", "return", "read", "file", "2", "list", "(", "utils", "bridge", "get", "file", "by", "path", "(", "file", "path", ")", ",", "st", ",", "end", ",", "null", ")", ";", "}" ]
[ "the", "s", "s", "l", "context", "{", "@", "link", "provider", "}", "to", "use", "{", "@", "code", "null", "}", "uses", "the", "default", "one", "this", "is", "only", "used", "with", "{", "@", "link", "ssl", "provider", "#", "jdk", "}" ]
[ "public", "ssl", "context", "builder", "ssl", "context", "provider", "(", "provider", "ssl", "context", "provider", ")", "{", "this", "ssl", "context", "provider", "=", "ssl", "context", "provider", ";", "return", "this", ";", "}" ]
[ "register", "code", "to", "invoke", "when", "the", "async", "request", "completes", "this", "method", "is", "called", "from", "a", "container", "thread", "when", "an", "async", "request", "completed", "for", "any", "reason", "including", "timeout", "and", "network", "error", "this", "is", "useful", "for", "detecting", "that", "a", "{", "@", "code", "deferred", "result", "}", "instance", "is", "no", "longer", "usable" ]
[ "public", "void", "on", "completion", "(", "runnable", "callback", ")", "{", "this", "completion", "callback", "=", "callback", ";", "}" ]
[ "close", "the", "consumer", ",", "waiting", "for", "up", "to", "the", "default", "timeout", "of", "30", "seconds", "for", "any", "needed", "cleanup", "if", "auto", "-", "commit", "is", "enabled", ",", "this", "will", "commit", "the", "current", "offsets", "if", "possible", "within", "the", "default", "timeout", "see", "{", "@", "link", "#", "close", "(", "duration", ")", "}", "for", "details", "note", "that", "{", "@", "link", "#", "wakeup", "(", ")", "}", "cannot", "be", "used", "to", "interrupt", "close" ]
[ "public", "void", "close", "(", ")", "{", "close", "(", "duration", "of", "millis", "(", "default", "close", "timeout", "ms", ")", ")", ";", "}" ]
[ "get", "integer", "item" ]
[ "public", "integer", "get", "integer", "item", "(", ")", "{", "return", "integer", "item", ";", "}" ]
[ "string", "operator", "describes", "all", "the", "current", "statistics", "<", "b", ">", "important", ":", "there", "are", "no", "guarantees", "as", "to", "the", "stability", "of", "this", "value", "<", "b", ">" ]
[ "public", "string", "to", "string", "(", ")", "{", "final", "string", "builder", "sb", "=", "new", "string", "builder", "(", "\"", "stream", "statistics", "{", "\"", ")", ";", "sb", "append", "(", "i", "o", "statistics", "logging", "io", "statistics", "to", "string", "(", "local", "i", "o", "statistics", "(", ")", ")", ")", ";", "sb", "append", "(", "'", "}", "'", ")", ";", "return", "sb", "to", "string", "(", ")", ";", "}" ]
[ "should", "fetch", "source", "?", "defaults", "to", "{", "@", "code", "true", "}" ]
[ "protected", "boolean", "should", "fetch", "source", "(", ")", "{", "return", "true", ";", "}" ]
[ "return", "the", "actual", "value", "in", "the", "cache" ]
[ "object", "get", "(", ")", ";" ]
[ "<", "code", ">", "optional", "bool", "sex", "=", "5", ";", "<", "code", ">" ]
[ "public", "builder", "clear", "sex", "(", ")", "{", "bit", "field", "0", "=", "(", "bit", "field", "0", "&", "~", "0x", "0", "0", "0", "0", "0", "0", "1", "0", ")", ";", "sex", "=", "false", ";", "on", "changed", "(", ")", ";", "return", "this", ";", "}" ]
[ "build", "message", "codes", "for", "the", "given", "error", "code", "and", "object", "name", "used", "for", "building", "the", "codes", "list", "of", "an", "object", "error" ]
[ "string", "[", "]", "resolve", "message", "codes", "(", "string", "error", "code", ",", "string", "object", "name", ")", ";" ]
[ "set", "the", "{", "@", "link", "cache", "resolver", "}", "to", "resolve", "exception", "caches", "if", "none", "is", "set", ",", "a", "default", "implementation", "using", "the", "specified", "cache", "manager", "will", "be", "used" ]
[ "public", "void", "set", "exception", "cache", "resolver", "(", "@", "nullable", "cache", "resolver", "exception", "cache", "resolver", ")", "{", "this", "exception", "cache", "resolver", "=", "singleton", "supplier", "of", "nullable", "(", "exception", "cache", "resolver", ")", ";", "}" ]
[ "emits", "a", "new", "tuple", "to", "the", "default", "output", "stream", "with", "the", "given", "message", "id", "when", "storm", "detects", "that", "this", "tuple", "has", "been", "fully", "processed", ",", "or", "has", "failed", "to", "be", "fully", "processed", ",", "the", "spout", "will", "receive", "an", "ack", "or", "fail", "callback", "respectively", "with", "the", "message", "id", "as", "long", "as", "the", "message", "id", "was", "not", "null", "if", "the", "message", "id", "was", "null", ",", "storm", "will", "not", "track", "the", "tuple", "and", "no", "callback", "will", "be", "received", "the", "emitted", "values", "must", "be", "immutable" ]
[ "public", "list", "<", "integer", ">", "emit", "(", "list", "<", "object", ">", "tuple", ",", "object", "message", "id", ")", "{", "return", "emit", "(", "utils", "default", "stream", "id", ",", "tuple", ",", "message", "id", ")", ";", "}" ]
[ "generate", "json", "web", "key" ]
[ "public", "static", "key", "generate", "json", "web", "key", "(", "final", "map", "<", "string", ",", "object", ">", "params", ")", "{", "val", "jwk", "=", "json", "web", "key", "factory", "new", "jwk", "(", "params", ")", ";", "return", "jwk", "get", "key", "(", ")", ";", "}" ]
[ "normally", "we", "should", "finish", "all", "applications", "before", "stop", "if", "there", "are", "still", "u", "a", "ms", "running", ",", "force", "kill", "all", "of", "them", "do", "parallel", "kill", "because", "of", "performance", "reasons", "todo", ":", "move", "waiting", "for", "the", "kill", "to", "finish", "into", "a", "separate", "thread", ",", "without", "blocking", "the", "service", "stop" ]
[ "protected", "void", "service", "stop", "(", ")", "throws", "exception", "{", "executor", "completion", "service", "<", "kill", "application", "response", ">", "completion", "service", "=", "new", "executor", "completion", "service", "<", ">", "(", "this", "threadpool", ")", ";", "if", "(", "this", "unmanaged", "app", "master", "map", "is", "empty", "(", ")", ")", "{", "return", ";", "}", "/", "/", "save", "a", "local", "copy", "of", "the", "key", "set", "so", "that", "it", "won", "'", "t", "change", "with", "the", "map", "set", "<", "string", ">", "address", "list", "=", "new", "hash", "set", "<", ">", "(", "this", "unmanaged", "app", "master", "map", "key", "set", "(", ")", ")", ";", "log", "warn", "(", "\"", "abnormal", "shutdown", "of", "u", "a", "m", "pool", "manager", ",", "still", "{", "}", "u", "a", "ms", "in", "map", "\"", ",", "address", "list", "size", "(", ")", ")", ";", "for", "(", "final", "string", "uam", "id", ":", "address", "list", ")", "{", "completion", "service", "submit", "(", "new", "callable", "<", "kill", "application", "response", ">", "(", ")", "{", "@", "override", "public", "kill", "application", "response", "call", "(", ")", "throws", "exception", "{", "try", "{", "log", "info", "(", "\"", "force", "-", "killing", "uam", "id", "\"", "+", "uam", "id", "+", "\"", "for", "application", "\"", "+", "app", "id", "map", "get", "(", "uam", "id", ")", ")", ";", "return", "unmanaged", "app", "master", "map", "remove", "(", "uam", "id", ")", "force", "kill", "application", "(", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "log", "error", "(", "\"", "failed", "to", "kill", "unmanaged", "application", "master", "\"", ",", "e", ")", ";", "return", "null", ";", "}", "}", "}", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "address", "list", "size", "(", ")", ";", "+", "+", "i", ")", "{", "try", "{", "future", "<", "kill", "application", "response", ">", "future", "=", "completion", "service", "take", "(", ")", ";", "future", "get", "(", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "log", "error", "(", "\"", "failed", "to", "kill", "unmanaged", "application", "master", "\"", ",", "e", ")", ";", "}", "}", "this", "app", "id", "map", "clear", "(", ")", ";", "super", "service", "stop", "(", ")", ";", "}" ]
[ "quiet", "down", "jenkins", "-", "preparation", "for", "a", "restart", "presented", "for", "compatibility" ]
[ "public", "synchronized", "http", "redirect", "do", "quiet", "down", "(", "boolean", "block", ",", "int", "timeout", ")", "{", "try", "{", "return", "do", "quiet", "down", "(", "block", ",", "timeout", ",", "null", ")", ";", "}", "catch", "(", "i", "o", "exception", "|", "interrupted", "exception", "e", ")", "{", "throw", "new", "assertion", "error", "(", ")", ";", "/", "/", "impossible", "}", "}" ]
[ "returns", "all", "the", "descriptors", "that", "produce", "types", "assignable", "to", "the", "property", "type" ]
[ "public", "list", "<", "?", "extends", "descriptor", ">", "get", "applicable", "descriptors", "(", ")", "{", "return", "jenkins", "get", "(", ")", "get", "descriptor", "list", "(", "clazz", ")", ";", "}" ]
[ "returns", "a", "stream", "for", "reading", "this", "file", "as", "bytes", "@", "throw", "runtime", "exception", "if", "the", "file", "handle", "represents", "a", "directory", ",", "doesn", "'", "t", "exist", ",", "or", "could", "not", "be", "read" ]
[ "public", "input", "stream", "read", "(", ")", "{", "if", "(", "type", "=", "=", "file", "type", "classpath", "&", "&", "!", "file", "exists", "(", ")", ")", "{", "input", "stream", "input", "=", "file", "descriptor", "class", "get", "resource", "as", "stream", "(", "\"", "/", "\"", "+", "file", "get", "path", "(", ")", "replace", "(", "'", "\\", "\\", "'", ",", "'", "/", "'", ")", ")", ";", "if", "(", "input", "=", "=", "null", ")", "throw", "new", "runtime", "exception", "(", "\"", "file", "not", "found", ":", "\"", "+", "file", "+", "\"", "(", "\"", "+", "type", "+", "\"", ")", "\"", ")", ";", "return", "input", ";", "}", "try", "{", "return", "new", "file", "input", "stream", "(", "file", "(", ")", ")", ";", "}", "catch", "(", "file", "not", "found", "exception", "ex", ")", "{", "if", "(", "file", "(", ")", "is", "directory", "(", ")", ")", "throw", "new", "runtime", "exception", "(", "\"", "cannot", "open", "a", "stream", "to", "a", "directory", ":", "\"", "+", "file", "+", "\"", "(", "\"", "+", "type", "+", "\"", ")", "\"", ",", "ex", ")", ";", "throw", "new", "runtime", "exception", "(", "\"", "error", "reading", "file", ":", "\"", "+", "file", "+", "\"", "(", "\"", "+", "type", "+", "\"", ")", "\"", ",", "ex", ")", ";", "}", "}" ]
[ "adjust", "the", "alignment", ",", "packing", "and", "padding", "of", "components", "within", "this", "structure", "based", "upon", "the", "current", "alignment", "and", "packing", "attributes", "for", "this", "structure", "this", "method", "should", "be", "called", "to", "fix", "up", "the", "layout", "of", "the", "internal", "components", "of", "the", "structure", "after", "other", "code", "has", "changed", "the", "attributes", "of", "the", "structure", "<", "br", ">", "when", "switching", "between", "internally", "aligned", "and", "unaligned", "this", "method", "corrects", "the", "component", "ordinal", "numbering", "also" ]
[ "protected", "boolean", "adjust", "components", "(", ")", "{", "int", "old", "length", "=", "struct", "length", ";", "boolean", "changed", "=", "false", ";", "alignment", "=", "-", "1", ";", "if", "(", "!", "is", "internally", "aligned", "(", ")", ")", "{", "changed", "|", "=", "adjust", "unaligned", "components", "(", ")", ";", "if", "(", "changed", ")", "{", "if", "(", "old", "length", "!", "=", "struct", "length", ")", "{", "notify", "size", "changed", "(", ")", ";", "}", "}", "return", "changed", ";", "}", "structure", "pack", "result", "pack", "result", "=", "aligned", "structure", "packer", "pack", "components", "(", "this", ",", "components", ")", ";", "changed", "=", "pack", "result", "components", "changed", ";", "/", "/", "adjust", "the", "structure", "changed", "|", "=", "update", "composite", "(", "pack", "result", "num", "components", ",", "pack", "result", "structure", "length", ",", "pack", "result", "alignment", ")", ";", "if", "(", "changed", ")", "{", "if", "(", "old", "length", "!", "=", "struct", "length", ")", "{", "notify", "size", "changed", "(", ")", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "obtain", "data", "according", "to", "the", "request" ]
[ "response", "get", "data", "(", "read", "request", "request", ")", "throws", "exception", ";" ]
[ "gets", "called", "when", "the", "user", "clicks", "on", "the", "cancel", "action", "for", "the", "dialog" ]
[ "protected", "void", "cancel", "callback", "(", ")", "{", "close", "(", ")", ";", "}" ]
[ "returns", "the", "url", "where", "documentation", "for", "the", "srcs", "version", "attr", "lives" ]
[ "string", "get", "srcs", "version", "doc", "u", "r", "l", "(", ")", ";" ]
[ "called", "by", "the", "activity", "base", "class", "after", "the", "activity", "'", "s", "<", "code", ">", "on", "activity", "create", "<", "code", ">", "method", "has", "run" ]
[ "void", "on", "activity", "create", "(", "activity", "activity", ")", ";" ]
[ "return", "the", "path", "of", "storageemulated", "0", "androiddatapackage" ]
[ "public", "static", "string", "get", "external", "app", "data", "path", "(", ")", "{", "if", "(", "!", "utils", "bridge", "is", "s", "d", "card", "enable", "by", "environment", "(", ")", ")", "return", "\"", "\"", ";", "file", "external", "cache", "dir", "=", "utils", "get", "app", "(", ")", "get", "external", "cache", "dir", "(", ")", ";", "if", "(", "external", "cache", "dir", "=", "=", "null", ")", "return", "\"", "\"", ";", "return", "get", "absolute", "path", "(", "external", "cache", "dir", "get", "parent", "file", "(", ")", ")", ";", "}" ]
[ "get", "sc", "a", "e", "t", "h", "flow", "points" ]
[ "public", "string", "get", "sc", "a", "e", "t", "h", "flow", "points", "(", ")", "{", "return", "sc", "a", "e", "t", "h", "flow", "points", ";", "}" ]
[ "set", "task", "timeout" ]
[ "void", "set", "timeout", "(", "long", "timeout", ")", ";" ]
[ "returns", "the", "{", "@", "link", "org", "apache", "flink", "runtime", "io", "network", "buffer", "buffer", "data", "type", "}", "of", "the", "next", "buffer", "in", "line", "returns", "the", "next", "data", "type", "only", "if", "the", "next", "buffer", "is", "an", "event", "or", "the", "reader", "has", "both", "available", "credits", "and", "buffers", "@", "impl", "spec", "beware", ":", "this", "must", "be", "in", "sync", "with", "{", "@", "link", "#", "is", "available", "(", ")", "}", ",", "such", "that", "{", "@", "code", "get", "next", "data", "type", "(", "buffer", "and", "backlog", ")", "!", "=", "none", "<", "=", ">", "is", "available", "(", ")", "}", "!" ]
[ "private", "buffer", "data", "type", "get", "next", "data", "type", "(", "buffer", "and", "backlog", "buffer", "and", "backlog", ")", "{", "final", "buffer", "data", "type", "next", "data", "type", "=", "buffer", "and", "backlog", "get", "next", "data", "type", "(", ")", ";", "if", "(", "num", "credits", "available", ">", "0", "|", "|", "next", "data", "type", "is", "event", "(", ")", ")", "{", "return", "next", "data", "type", ";", "}", "return", "buffer", "data", "type", "none", ";", "}" ]
[ "returns", "a", "path", "representing", "the", "es", "keystore", "in", "the", "given", "config", "dir" ]
[ "public", "static", "path", "keystore", "path", "(", "path", "config", "dir", ")", "{", "return", "config", "dir", "resolve", "(", "keystore", "filename", ")", ";", "}" ]
[ "derives", "options", "to", "use", "in", "dex", "builder", "actions", "from", "the", "given", "context", "and", "dx", "flags", ",", "where", "the", "latter", "typically", "come", "from", "a", "{", "@", "code", "dexopts", "}", "attribute", "on", "a", "top", "-", "level", "target", "this", "should", "be", "a", "superset", "of", "{", "@", "link", "#", "incremental", "dexopts", "}" ]
[ "static", "immutable", "set", "<", "string", ">", "top", "level", "dexbuilder", "dexopts", "(", "iterable", "<", "string", ">", "tokenized", "dexopts", ")", "{", "/", "/", "we", "don", "'", "t", "need", "an", "ordered", "set", "but", "might", "as", "well", "return", "normalize", "dexopts", "(", "iterables", "filter", "(", "tokenized", "dexopts", ",", "dexopts", "supported", "in", "dexbuilder", ")", ")", ";", "}" ]
[ "get", "my", "string" ]
[ "public", "string", "get", "my", "string", "(", ")", "{", "return", "my", "string", ";", "}" ]
[ "reads", "an", "unsigned", "{", "@", "code", "short", "}", "as", "specified", "by", "{", "@", "link", "data", "input", "stream", "#", "read", "unsigned", "short", "(", ")", "}", ",", "except", "using", "little", "-", "endian", "byte", "order" ]
[ "public", "int", "read", "unsigned", "short", "(", ")", "throws", "i", "o", "exception", "{", "byte", "b", "1", "=", "read", "and", "check", "byte", "(", ")", ";", "byte", "b", "2", "=", "read", "and", "check", "byte", "(", ")", ";", "return", "ints", "from", "bytes", "(", "(", "byte", ")", "0", ",", "(", "byte", ")", "0", ",", "b", "2", ",", "b", "1", ")", ";", "}" ]
[ "sets", "the", "maximum", "number", "of", "parallel", "downloads" ]
[ "public", "void", "set", "max", "parallel", "downloads", "(", "int", "max", "parallel", "downloads", ")", "{", "assertions", "check", "argument", "(", "max", "parallel", "downloads", ">", "0", ")", ";", "if", "(", "this", "max", "parallel", "downloads", "=", "=", "max", "parallel", "downloads", ")", "{", "return", ";", "}", "this", "max", "parallel", "downloads", "=", "max", "parallel", "downloads", ";", "pending", "messages", "+", "+", ";", "internal", "handler", "obtain", "message", "(", "msg", "set", "max", "parallel", "downloads", ",", "max", "parallel", "downloads", ",", "/", "*", "unused", "*", "/", "0", ")", "send", "to", "target", "(", ")", ";", "}" ]
[ "writes", "a", "non", "-", "negative", "long", "in", "a", "variable", "-", "length", "format", "writes", "between", "one", "and", "ten", "bytes", "smaller", "values", "take", "fewer", "bytes", "negative", "numbers", "use", "ten", "bytes", "and", "trip", "assertions", "(", "if", "running", "in", "tests", ")", "so", "prefer", "{", "@", "link", "#", "write", "long", "(", "long", ")", "}", "or", "{", "@", "link", "#", "write", "z", "long", "(", "long", ")", "}", "for", "negative", "numbers" ]
[ "public", "void", "write", "v", "long", "(", "long", "i", ")", "throws", "i", "o", "exception", "{", "if", "(", "i", "<", "0", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "negative", "longs", "unsupported", ",", "use", "write", "long", "or", "write", "z", "long", "for", "negative", "numbers", "[", "\"", "+", "i", "+", "\"", "]", "\"", ")", ";", "}", "write", "v", "long", "no", "check", "(", "i", ")", ";", "}" ]
[ "when", "set", "to", "{", "@", "code", "true", "}", ",", "the", "{", "@", "linkplain", "part", "#", "content", "(", ")", "part", "content", "}", "is", "streamed", "directly", "from", "the", "parsed", "input", "buffer", "stream", ",", "and", "not", "stored", "in", "memory", "nor", "file", "when", "{", "@", "code", "false", "}", ",", "parts", "are", "backed", "by", "in", "-", "memory", "andor", "file", "storage", "defaults", "to", "{", "@", "code", "false", "}", "note", "that", "with", "streaming", "enabled", ",", "the", "{", "@", "code", "flux", "<", "part", ">", "}", "that", "is", "produced", "by", "this", "message", "reader", "must", "be", "consumed", "in", "the", "original", "order", ",", "i", "e", "the", "order", "of", "the", "http", "message", "additionally", ",", "the", "{", "@", "linkplain", "part", "#", "content", "(", ")", "body", "contents", "}", "must", "either", "be", "completely", "consumed", "or", "canceled", "before", "moving", "to", "the", "next", "part", "also", "note", "that", "enabling", "this", "property", "effectively", "ignores", "{", "@", "link", "#", "set", "max", "in", "memory", "size", "(", "int", ")", "max", "in", "memory", "size", "}", ",", "{", "@", "link", "#", "set", "max", "disk", "usage", "per", "part", "(", "long", ")", "max", "disk", "usage", "per", "part", "}", ",", "{", "@", "link", "#", "set", "file", "storage", "directory", "(", "path", ")", "file", "storage", "directory", "}", ",", "and", "{", "@", "link", "#", "set", "blocking", "operation", "scheduler", "(", "scheduler", ")", "file", "creation", "scheduler", "}" ]
[ "public", "void", "set", "streaming", "(", "boolean", "streaming", ")", "{", "this", "streaming", "=", "streaming", ";", "}" ]
[ "this", "verifies", "that", "the", "granted", "credentials", "only", "access", "the", "target", "bucket", "by", "using", "the", "credentials", "in", "a", "new", "s3", "client", "to", "query", "the", "aws", "-", "owned", "landsat", "bucket" ]
[ "protected", "void", "verify", "restricted", "permissions", "(", "final", "s", "3", "a", "file", "system", "delegated", "f", "s", ")", "throws", "exception", "{", "intercept", "(", "access", "denied", "exception", "class", ",", "(", ")", "-", ">", "read", "landsat", "metadata", "(", "delegated", "f", "s", ")", ")", ";", "}" ]
[ "updated", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "public", "void", "update", "user", "test", "(", ")", "throws", "exception", "{", "string", "username", "=", "null", ";", "user", "body", "=", "null", ";", "response", "entity", "<", "void", ">", "response", "=", "api", "update", "user", "(", "username", ",", "body", ",", "accept", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "enabledisable", "the", "joint", "motor" ]
[ "public", "void", "enable", "motor", "(", "boolean", "flag", ")", "{", "jni", "enable", "motor", "(", "addr", ",", "flag", ")", ";", "}" ]
[ "run", "future", "action", "get", "(", ")", "and", "check", "that", "it", "throws", "an", "exception", "of", "the", "right", "type" ]
[ "public", "static", "<", "e", "extends", "throwable", ">", "void", "assert", "future", "throws", "(", "action", "future", "<", "?", ">", "future", ",", "class", "<", "e", ">", "exception", "class", ")", "{", "assert", "future", "throws", "(", "future", ",", "exception", "class", ",", "null", ",", "null", ")", ";", "}" ]
[ "load", "a", "new", "web", "page", "in", "the", "current", "browser", "window", "this", "is", "done", "using", "an", "http", "post", "operation", ",", "and", "the", "method", "will", "block", "until", "the", "load", "is", "complete", "this", "will", "follow", "redirects", "issued", "either", "by", "the", "server", "or", "as", "a", "meta", "-", "redirect", "from", "within", "the", "returned", "html", "should", "a", "meta", "-", "redirect", "\"", "rest", "\"", "for", "any", "duration", "of", "time", ",", "it", "is", "best", "to", "wait", "until", "this", "timeout", "is", "over", ",", "since", "should", "the", "underlying", "page", "change", "whilst", "your", "test", "is", "executing", "the", "results", "of", "future", "calls", "against", "this", "interface", "will", "be", "against", "the", "freshly", "loaded", "page", "see", "<", "a", "href", "=", "\"", "https", ":", "w", "3c", "github", "iowebdriver", "#", "navigate", "-", "to", "\"", ">", "w3c", "web", "driver", "specification", "for", "more", "details" ]
[ "void", "to", "(", "string", "url", ")", ";" ]
[ "print", "the", "supplied", "cookies", "in", "a", "human", "-", "readable", "form", ",", "assuming", "the", "{", "@", "link", "cookie", "}", "implementation", "does", "not", "provide", "its", "own", "{", "@", "code", "to", "string", "(", ")", "}" ]
[ "private", "void", "print", "cookies", "(", "cookie", "[", "]", "cookies", ")", "{", "string", "[", "]", "cookie", "strings", "=", "new", "string", "[", "cookies", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "cookies", "length", ";", "i", "+", "+", ")", "{", "cookie", "cookie", "=", "cookies", "[", "i", "]", ";", "cookie", "strings", "[", "i", "]", "=", "new", "to", "string", "creator", "(", "cookie", ")", "append", "(", "\"", "name", "\"", ",", "cookie", "get", "name", "(", ")", ")", "append", "(", "\"", "value", "\"", ",", "cookie", "get", "value", "(", ")", ")", "append", "(", "\"", "comment", "\"", ",", "cookie", "get", "comment", "(", ")", ")", "append", "(", "\"", "domain", "\"", ",", "cookie", "get", "domain", "(", ")", ")", "append", "(", "\"", "max", "age", "\"", ",", "cookie", "get", "max", "age", "(", ")", ")", "append", "(", "\"", "path", "\"", ",", "cookie", "get", "path", "(", ")", ")", "append", "(", "\"", "secure", "\"", ",", "cookie", "get", "secure", "(", ")", ")", "append", "(", "\"", "version", "\"", ",", "cookie", "get", "version", "(", ")", ")", "append", "(", "\"", "http", "only", "\"", ",", "cookie", "is", "http", "only", "(", ")", ")", "to", "string", "(", ")", ";", "}", "this", "printer", "print", "value", "(", "\"", "cookies", "\"", ",", "cookie", "strings", ")", ";", "}" ]
[ "returns", "the", "bitmap", "that", "has", "been", "stored", "for", "this", "image", "asset", "if", "one", "was", "explicitly", "set" ]
[ "@", "nullable", "public", "bitmap", "get", "bitmap", "(", ")", "{", "return", "bitmap", ";", "}" ]
[ "tests", "that", "a", "dependency", "is", "valid", "if", "both", "rules", "implicitly", "inherit", "all", "default", "environments" ]
[ "public", "void", "all", "defaults", "(", ")", "throws", "exception", "{", "new", "environment", "group", "maker", "(", "\"", "buildenv", "/", "foo", "\"", ")", "set", "environments", "(", "\"", "a", "\"", ",", "\"", "b", "\"", ")", "set", "defaults", "(", "\"", "a", "\"", ")", "make", "(", ")", ";", "scratch", "file", "(", "\"", "hello", "/", "build", "\"", ",", "get", "dependency", "rule", "(", ")", ",", "get", "depending", "rule", "(", ")", ")", ";", "assert", "that", "(", "get", "configured", "target", "(", "\"", "/", "/", "hello", ":", "main", "\"", ")", ")", "is", "not", "null", "(", ")", ";", "assert", "no", "events", "(", ")", ";", "}" ]
[ "perform", "the", "actual", "reading", "of", "an", "invocation", "object", "from", "the", "given", "object", "input", "stream", "the", "default", "implementation", "simply", "calls", "{", "@", "code", "read", "object", "}", "can", "be", "overridden", "for", "deserialization", "of", "a", "custom", "wrapper", "object", "rather", "than", "the", "plain", "invocation", ",", "for", "example", "an", "encryption", "-", "aware", "holder" ]
[ "protected", "remote", "invocation", "result", "do", "read", "remote", "invocation", "result", "(", "object", "input", "stream", "ois", ")", "throws", "i", "o", "exception", ",", "class", "not", "found", "exception", "{", "object", "obj", "=", "ois", "read", "object", "(", ")", ";", "if", "(", "!", "(", "obj", "instanceof", "remote", "invocation", "result", ")", ")", "{", "throw", "new", "remote", "exception", "(", "\"", "deserialized", "object", "needs", "to", "be", "assignable", "to", "type", "[", "\"", "+", "remote", "invocation", "result", "class", "get", "name", "(", ")", "+", "\"", "]", ":", "\"", "+", "class", "utils", "get", "descriptive", "type", "(", "obj", ")", ")", ";", "}", "return", "(", "remote", "invocation", "result", ")", "obj", ";", "}" ]
[ "adds", "a", "list", "of", "rows", "to", "the", "model", "and", "fires", "off", "a", "notification" ]
[ "public", "void", "add", "rows", "to", "top", "(", "list", "<", "string", ">", "rows", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "rows", "size", "(", ")", ";", "i", "+", "+", ")", "{", "add", "row", "(", "rows", "get", "(", "i", ")", ",", "i", ",", "false", ")", ";", "}", "fire", "table", "data", "changed", "(", ")", ";", "}" ]
[ "test", "node", "heartbeat", "response", "p", "b", "impl" ]
[ "public", "void", "test", "node", "heartbeat", "response", "p", "b", "impl", "(", ")", "throws", "i", "o", "exception", "{", "node", "heartbeat", "response", "p", "b", "impl", "original", "=", "new", "node", "heartbeat", "response", "p", "b", "impl", "(", ")", ";", "original", "set", "diagnostics", "message", "(", "\"", "test", "diagnostic", "message", "\"", ")", ";", "original", "set", "container", "token", "master", "key", "(", "get", "master", "key", "(", ")", ")", ";", "original", "set", "n", "m", "token", "master", "key", "(", "get", "master", "key", "(", ")", ")", ";", "original", "set", "next", "heart", "beat", "interval", "(", "1000", ")", ";", "original", "set", "node", "action", "(", "node", "action", "normal", ")", ";", "original", "set", "response", "id", "(", "100", ")", ";", "map", "<", "application", "id", ",", "app", "collector", "data", ">", "collectors", "=", "get", "collectors", "(", "false", ")", ";", "original", "set", "app", "collectors", "(", "collectors", ")", ";", "/", "/", "create", "token", "1", "text", "user", "text", "1", "=", "new", "text", "(", "\"", "user", "1", "\"", ")", ";", "delegation", "token", "identifier", "dt", "id", "1", "=", "new", "delegation", "token", "identifier", "(", "user", "text", "1", ",", "new", "text", "(", "\"", "renewer", "1", "\"", ")", ",", "user", "text", "1", ")", ";", "final", "token", "<", "delegation", "token", "identifier", ">", "expected", "token", "1", "=", "new", "token", "<", "delegation", "token", "identifier", ">", "(", "dt", "id", "1", "get", "bytes", "(", ")", ",", "\"", "password", "1", "2", "\"", "get", "bytes", "(", ")", ",", "dt", "id", "1", "get", "kind", "(", ")", ",", "new", "text", "(", "\"", "service", "1", "\"", ")", ")", ";", "credentials", "credentials", "1", "=", "new", "credentials", "(", ")", ";", "credentials", "1", "add", "token", "(", "expected", "token", "1", "get", "service", "(", ")", ",", "expected", "token", "1", ")", ";", "data", "output", "buffer", "dob", "1", "=", "new", "data", "output", "buffer", "(", ")", ";", "credentials", "1", "write", "token", "storage", "to", "stream", "(", "dob", "1", ")", ";", "byte", "buffer", "byte", "buffer", "1", "=", "byte", "buffer", "wrap", "(", "dob", "1", "get", "data", "(", ")", ",", "0", ",", "dob", "1", "get", "length", "(", ")", ")", ";", "map", "<", "application", "id", ",", "byte", "buffer", ">", "system", "credentials", "=", "new", "hash", "map", "<", "application", "id", ",", "byte", "buffer", ">", "(", ")", ";", "system", "credentials", "put", "(", "get", "application", "id", "(", "1", ")", ",", "byte", "buffer", "1", ")", ";", "original", "set", "system", "credentials", "for", "apps", "(", "yarn", "server", "builder", "utils", "convert", "to", "proto", "format", "(", "system", "credentials", ")", ")", ";", "node", "heartbeat", "response", "p", "b", "impl", "copy", "=", "new", "node", "heartbeat", "response", "p", "b", "impl", "(", "original", "get", "proto", "(", ")", ")", ";", "assert", "equals", "(", "100", ",", "copy", "get", "response", "id", "(", ")", ")", ";", "assert", "equals", "(", "node", "action", "normal", ",", "copy", "get", "node", "action", "(", ")", ")", ";", "assert", "equals", "(", "1000", ",", "copy", "get", "next", "heart", "beat", "interval", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "copy", "get", "container", "token", "master", "key", "(", ")", "get", "key", "id", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "copy", "get", "n", "m", "token", "master", "key", "(", ")", "get", "key", "id", "(", ")", ")", ";", "assert", "equals", "(", "\"", "test", "diagnostic", "message", "\"", ",", "copy", "get", "diagnostics", "message", "(", ")", ")", ";", "assert", "equals", "(", "collectors", ",", "copy", "get", "app", "collectors", "(", ")", ")", ";", "assert", "equals", "(", "false", ",", "copy", "get", "are", "node", "labels", "accepted", "by", "r", "m", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "copy", "get", "system", "credentials", "for", "apps", "(", ")", "size", "(", ")", ")", ";", "credentials", "credentials", "1", "out", "=", "new", "credentials", "(", ")", ";", "data", "input", "byte", "buffer", "buf", "=", "new", "data", "input", "byte", "buffer", "(", ")", ";", "byte", "buffer", "buffer", "=", "yarn", "server", "builder", "utils", "convert", "from", "proto", "format", "(", "copy", "get", "system", "credentials", "for", "apps", "(", ")", ")", "get", "(", "get", "application", "id", "(", "1", ")", ")", ";", "assert", "assert", "not", "null", "(", "buffer", ")", ";", "buffer", "rewind", "(", ")", ";", "buf", "reset", "(", "buffer", ")", ";", "credentials", "1", "out", "read", "token", "storage", "stream", "(", "buf", ")", ";", "assert", "equals", "(", "1", ",", "credentials", "1", "out", "get", "all", "tokens", "(", ")", "size", "(", ")", ")", ";", "/", "/", "ensure", "token", "1", "'", "s", "password", "\"", "password", "1", "2", "\"", "is", "available", "from", "proto", "response", "assert", "equals", "(", "10", ",", "credentials", "1", "out", "get", "all", "tokens", "(", ")", "iterator", "(", ")", "next", "(", ")", "get", "password", "(", ")", "length", ")", ";", "}" ]
[ "stores", "another", "multimap", "'", "s", "entries", "in", "the", "built", "multimap", "the", "generated", "multimap", "'", "s", "key", "and", "value", "orderings", "correspond", "to", "the", "iteration", "ordering", "of", "the", "{", "@", "code", "multimap", "as", "map", "(", ")", "}", "view", ",", "with", "new", "keys", "and", "values", "following", "any", "existing", "keys", "and", "values" ]
[ "public", "builder", "<", "k", ",", "v", ">", "put", "all", "(", "multimap", "<", "?", "extends", "k", ",", "?", "extends", "v", ">", "multimap", ")", "{", "for", "(", "entry", "<", "?", "extends", "k", ",", "?", "extends", "collection", "<", "?", "extends", "v", ">", ">", "entry", ":", "multimap", "as", "map", "(", ")", "entry", "set", "(", ")", ")", "{", "put", "all", "(", "entry", "get", "key", "(", ")", ",", "entry", "get", "value", "(", ")", ")", ";", "}", "return", "this", ";", "}" ]
[ "required", "the", "ports", "associated", "with", "the", "external", "service", "if", "the", "endpoints", "are", "unix", "domain", "socket", "addresses", ",", "there", "must", "be", "exactly", "one", "port", "<", "code", ">", "repeated", "istio", "networking", "v", "1alpha", "3", "port", "ports", "=", "3", ";", "<", "code", ">" ]
[ "public", "java", "util", "list", "<", "?", "extends", "com", "alibaba", "nacos", "istio", "model", "port", "or", "builder", ">", "get", "ports", "or", "builder", "list", "(", ")", "{", "if", "(", "ports", "builder", "!", "=", "null", ")", "{", "return", "ports", "builder", "get", "message", "or", "builder", "list", "(", ")", ";", "}", "else", "{", "return", "java", "util", "collections", "unmodifiable", "list", "(", "ports", ")", ";", "}", "}" ]
[ "gets", "the", "path", "to", "the", "stderr", "associated", "with", "this", "event", "(", "which", "the", "caller", "must", "not", "access", ")", ",", "or", "null", "if", "there", "is", "no", "such", "path" ]
[ "public", "path", "fragment", "get", "std", "err", "path", "fragment", "(", ")", "{", "file", "out", "err", "out", "err", "=", "get", "property", "(", "file", "out", "err", "class", ")", ";", "return", "out", "err", "=", "=", "null", "?", "null", ":", "out", "err", "get", "error", "path", "fragment", "(", ")", ";", "}" ]
[ "returns", "an", "array", "containing", "all", "the", "key", "objects" ]
[ "public", "t", "[", "]", "get", "keys", "(", "t", "[", "]", "key", "array", ")", "{", "return", "indexer", "get", "keys", "(", "key", "array", ")", ";", "}" ]
[ "if", "receive", "a", "frame", "with", "end", "-", "of", "-", "stream", "set", ",", "send", "a", "pre", "-", "canned", "response" ]
[ "private", "static", "void", "on", "headers", "read", "(", "channel", "handler", "context", "ctx", ",", "http", "2", "headers", "frame", "headers", ")", "throws", "exception", "{", "if", "(", "headers", "is", "end", "stream", "(", ")", ")", "{", "byte", "buf", "content", "=", "ctx", "alloc", "(", ")", "buffer", "(", ")", ";", "content", "write", "bytes", "(", "response", "bytes", "duplicate", "(", ")", ")", ";", "byte", "buf", "util", "write", "ascii", "(", "content", ",", "\"", "-", "via", "http", "/", "2", "\"", ")", ";", "send", "response", "(", "ctx", ",", "headers", "stream", "(", ")", ",", "content", ")", ";", "}", "}" ]
[ "describe", "a", "test", "in", "the", "logs" ]
[ "protected", "void", "describe", "(", "string", "text", ",", "object", "args", ")", "{", "log", "info", "(", "\"", "\\", "n", "\\", "n", "{", "}", ":", "{", "}", "\\", "n", "\"", ",", "method", "name", "get", "method", "name", "(", ")", ",", "string", "format", "(", "text", ",", "args", ")", ")", ";", "}" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "code", ">" ]
[ "public", "builder", "merge", "blah", "(", "second", "msg", "value", ")", "{", "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "if", "(", "(", "(", "bit", "field", "0", "&", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ")", "=", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ")", "&", "&", "blah", "!", "=", "second", "msg", "get", "default", "instance", "(", ")", ")", "{", "blah", "=", "second", "msg", "new", "builder", "(", "blah", ")", "merge", "from", "(", "value", ")", "build", "partial", "(", ")", ";", "}", "else", "{", "blah", "=", "value", ";", "}", "on", "changed", "(", ")", ";", "}", "else", "{", "blah", "builder", "merge", "from", "(", "value", ")", ";", "}", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "return", "this", ";", "}" ]
[ "debug", "method", "for", "dumping", "information", "from", "this", "{", "@", "link", "abstract", "symbol", "information", "}" ]
[ "void", "dump", "(", "writer", "writer", ")", "throws", "i", "o", "exception", "{", "string", "builder", "builder", "=", "new", "string", "builder", "(", ")", ";", "builder", "append", "(", "\"", "abstract", "symbol", "information", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "\\", "n", "\"", ")", ";", "dump", "hash", "header", "(", "builder", ")", ";", "dump", "hash", "basics", "(", "builder", ")", ";", "dump", "hash", "records", "(", "builder", ")", ";", "builder", "append", "(", "\"", "\\", "n", "end", "abstract", "symbol", "information", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "\\", "n", "\"", ")", ";", "writer", "write", "(", "builder", "to", "string", "(", ")", ")", ";", "}" ]
[ "delete", "user", "{", "username", "}", ":", "delete", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "com", "netflix", "hystrix", "hystrix", "command", "<", "response", "entity", "<", "void", ">", ">", "delete", "user", "(", "@", "api", "param", "(", "value", "=", "\"", "the", "name", "that", "needs", "to", "be", "deleted", "\"", ",", "required", "=", "true", ")", "@", "path", "variable", "(", "\"", "username", "\"", ")", "string", "username", ")", ";" ]
[ "find", "a", "token", "for", "the", "fs", "user", "and", "canonical", "filesystem", "uri" ]
[ "public", "token", "<", "abstract", "s", "3", "a", "token", "identifier", ">", "select", "token", "from", "f", "s", "owner", "(", ")", "throws", "i", "o", "exception", "{", "return", "lookup", "token", "(", "user", "get", "credentials", "(", ")", ",", "service", ",", "token", "binding", "get", "kind", "(", ")", ")", ";", "}" ]
[ "creates", "a", "new", "array", "list", "to", "hold", "incoming", "block", "transfer", "notifications", "before", "they", "'", "re", "processed" ]
[ "private", "static", "array", "list", "<", "block", "transfer", "window", ">", "create", "new", "to", "process", "queue", "(", ")", "{", "return", "new", "array", "list", "<", "block", "transfer", "window", ">", "(", "process", "queue", "initial", "capacity", ")", ";", "}" ]
[ "deletes", "a", "version", "marker", ";", "spins", "briefly", "to", "await", "it", "disappearing" ]
[ "private", "void", "delete", "version", "marker", "item", "(", "table", "table", ")", "throws", "exception", "{", "table", "delete", "item", "(", "version", "marker", "primary", "key", ")", ";", "eventually", "(", "30", "000", ",", "1", "0", ",", "(", ")", "-", ">", "assert", "null", "(", "\"", "version", "marker", "should", "be", "null", "after", "deleting", "it", "\"", "+", "\"", "from", "the", "table", "\"", ",", "table", "get", "item", "(", "version", "marker", "primary", "key", ")", ")", ")", ";", "}" ]
[ "gets", "the", "fraction", "of", "the", "total", "memory", "to", "be", "used", "for", "high", "priority", "blocks", "like", "indexes", ",", "dictionaries", ",", "etc", "this", "only", "has", "an", "effect", "is", "either", "{", "@", "link", "#", "set", "use", "managed", "memory", "(", "boolean", ")", "}", "or", "{", "@", "link", "#", "set", "fixed", "memory", "per", "slot", "(", "memory", "size", ")", "}", "are", "set", "see", "{", "@", "link", "rocks", "d", "b", "options", "#", "high", "priority", "pool", "ratio", "}", "for", "details" ]
[ "public", "double", "get", "high", "priority", "pool", "ratio", "(", ")", "{", "return", "high", "priority", "pool", "ratio", "!", "=", "null", "?", "high", "priority", "pool", "ratio", ":", "rocks", "d", "b", "options", "high", "priority", "pool", "ratio", "default", "value", "(", ")", ";", "}" ]
[ "return", "the", "actual", "type", "of", "the", "instance", "found" ]
[ "public", "class", "<", "?", ">", "get", "actual", "type", "(", ")", "{", "return", "this", "actual", "type", ";", "}" ]
[ "uploads", "an", "image", "(", "required", ")", "<", "b", ">", "200", "<", "b", ">", "-", "successful", "operation" ]
[ "public", "mono", "<", "model", "api", "response", ">", "upload", "file", "with", "required", "file", "(", "long", "pet", "id", ",", "file", "required", "file", ",", "string", "additional", "metadata", ")", "throws", "web", "client", "response", "exception", "{", "object", "post", "body", "=", "null", ";", "/", "/", "verify", "the", "required", "parameter", "'", "pet", "id", "'", "is", "set", "if", "(", "pet", "id", "=", "=", "null", ")", "{", "throw", "new", "web", "client", "response", "exception", "(", "\"", "missing", "the", "required", "parameter", "'", "pet", "id", "'", "when", "calling", "upload", "file", "with", "required", "file", "\"", ",", "http", "status", "bad", "request", "value", "(", ")", ",", "http", "status", "bad", "request", "get", "reason", "phrase", "(", ")", ",", "null", ",", "null", ",", "null", ")", ";", "}", "/", "/", "verify", "the", "required", "parameter", "'", "required", "file", "'", "is", "set", "if", "(", "required", "file", "=", "=", "null", ")", "{", "throw", "new", "web", "client", "response", "exception", "(", "\"", "missing", "the", "required", "parameter", "'", "required", "file", "'", "when", "calling", "upload", "file", "with", "required", "file", "\"", ",", "http", "status", "bad", "request", "value", "(", ")", ",", "http", "status", "bad", "request", "get", "reason", "phrase", "(", ")", ",", "null", ",", "null", ",", "null", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "final", "map", "<", "string", ",", "object", ">", "path", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "path", "params", "put", "(", "\"", "pet", "id", "\"", ",", "pet", "id", ")", ";", "final", "multi", "value", "map", "<", "string", ",", "string", ">", "query", "params", "=", "new", "linked", "multi", "value", "map", "<", "string", ",", "string", ">", "(", ")", ";", "final", "http", "headers", "header", "params", "=", "new", "http", "headers", "(", ")", ";", "final", "multi", "value", "map", "<", "string", ",", "string", ">", "cookie", "params", "=", "new", "linked", "multi", "value", "map", "<", "string", ",", "string", ">", "(", ")", ";", "final", "multi", "value", "map", "<", "string", ",", "object", ">", "form", "params", "=", "new", "linked", "multi", "value", "map", "<", "string", ",", "object", ">", "(", ")", ";", "if", "(", "additional", "metadata", "!", "=", "null", ")", "form", "params", "add", "(", "\"", "additional", "metadata", "\"", ",", "additional", "metadata", ")", ";", "if", "(", "required", "file", "!", "=", "null", ")", "form", "params", "add", "(", "\"", "required", "file", "\"", ",", "new", "file", "system", "resource", "(", "required", "file", ")", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "\"", "application", "/", "json", "\"", "}", ";", "final", "list", "<", "media", "type", ">", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "\"", "multipart", "/", "form", "-", "data", "\"", "}", ";", "final", "media", "type", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "\"", "petstore", "auth", "\"", "}", ";", "parameterized", "type", "reference", "<", "model", "api", "response", ">", "local", "var", "return", "type", "=", "new", "parameterized", "type", "reference", "<", "model", "api", "response", ">", "(", ")", "{", "}", ";", "return", "api", "client", "invoke", "a", "p", "i", "(", "\"", "/", "fake", "/", "{", "pet", "id", "}", "/", "upload", "image", "with", "required", "file", "\"", ",", "http", "method", "post", ",", "path", "params", ",", "query", "params", ",", "post", "body", ",", "header", "params", ",", "cookie", "params", ",", "form", "params", ",", "local", "var", "accept", ",", "local", "var", "content", "type", ",", "local", "var", "auth", "names", ",", "local", "var", "return", "type", ")", ";", "}" ]
[ "requests", "a", "{", "@", "link", "kv", "state", "location", "}", "for", "the", "specified", "{", "@", "link", "internal", "kv", "state", "}", "registration", "name" ]
[ "completable", "future", "<", "kv", "state", "location", ">", "request", "kv", "state", "location", "(", "final", "job", "i", "d", "job", "id", ",", "final", "string", "registration", "name", ")", ";" ]
[ "registers", "a", "{", "@", "link", "table", "function", "}", "under", "a", "unique", "name", "in", "the", "table", "environment", "'", "s", "catalog", "registered", "functions", "can", "be", "referenced", "in", "table", "api", "and", "sql", "queries" ]
[ "<", "t", ">", "void", "register", "function", "(", "string", "name", ",", "table", "function", "<", "t", ">", "table", "function", ")", ";" ]
[ "transforms", "the", "given", "obfuscated", "frame", "back", "to", "one", "or", "more", "original", "frames" ]
[ "public", "list", "<", "frame", "info", ">", "transform", "(", "frame", "info", "obfuscated", "frame", ")", "{", "/", "/", "first", "remap", "the", "class", "name", "string", "original", "class", "name", "=", "original", "class", "name", "(", "obfuscated", "frame", "get", "class", "name", "(", ")", ")", ";", "if", "(", "original", "class", "name", "=", "=", "null", ")", "{", "return", "null", ";", "}", "list", "<", "frame", "info", ">", "original", "frames", "=", "new", "array", "list", "<", "frame", "info", ">", "(", ")", ";", "/", "/", "create", "any", "transformed", "frames", "with", "remapped", "field", "names", "transform", "field", "info", "(", "obfuscated", "frame", ",", "original", "class", "name", ",", "original", "frames", ")", ";", "/", "/", "create", "any", "transformed", "frames", "with", "remapped", "method", "names", "transform", "method", "info", "(", "obfuscated", "frame", ",", "original", "class", "name", ",", "original", "frames", ")", ";", "if", "(", "original", "frames", "is", "empty", "(", ")", ")", "{", "/", "/", "create", "a", "transformed", "frame", "with", "the", "remapped", "class", "name", "original", "frames", "add", "(", "new", "frame", "info", "(", "original", "class", "name", ",", "source", "file", "name", "(", "original", "class", "name", ")", ",", "obfuscated", "frame", "get", "line", "number", "(", ")", ",", "obfuscated", "frame", "get", "type", "(", ")", ",", "obfuscated", "frame", "get", "field", "name", "(", ")", ",", "obfuscated", "frame", "get", "method", "name", "(", ")", ",", "obfuscated", "frame", "get", "arguments", "(", ")", ")", ")", ";", "}", "return", "original", "frames", ";", "}" ]
[ "model", "tests", "for", "inline", "object" ]
[ "public", "void", "test", "inline", "object", "(", ")", "{", "/", "/", "todo", ":", "test", "inline", "object", "}" ]