docstring_tokens
list
code_tokens
list
[ "creates", "a", "{", "@", "code", "auth", "}", "request" ]
[ "public", "static", "smtp", "request", "auth", "(", "char", "sequence", "parameter", ")", "{", "return", "new", "default", "smtp", "request", "(", "smtp", "command", "auth", ",", "parameter", ")", ";", "}" ]
[ "factory", "method", "to", "provide", "instance", "of", "{", "@", "code", "blocking", "queue", "<", "runnable", ">", "}", "used", "for", "each", "{", "@", "link", "thread", "pool", "executor", "}", "as", "constructed", "in", "{", "@", "link", "#", "get", "thread", "pool", "}", "note", ":", "the", "max", "queue", "size", "value", "is", "provided", "so", "any", "type", "of", "queue", "can", "be", "used", "but", "typically", "an", "implementation", "such", "as", "{", "@", "link", "synchronous", "queue", "}", "without", "a", "queue", "(", "just", "a", "handoff", ")", "is", "preferred", "as", "queueing", "is", "an", "anti", "-", "pattern", "to", "be", "purposefully", "avoided", "for", "latency", "tolerance", "reasons", "<", "b", ">", "default", "implementation", "<", "b", ">", "implementation", "returns", "{", "@", "link", "synchronous", "queue", "}", "when", "max", "queue", "size", "<", "=", "0", "or", "{", "@", "link", "linked", "blocking", "queue", "}", "when", "max", "queue", "size", ">", "0" ]
[ "public", "blocking", "queue", "<", "runnable", ">", "get", "blocking", "queue", "(", "int", "max", "queue", "size", ")", "{", "/", "*", "*", "we", "are", "using", "synchronous", "queue", "if", "max", "queue", "size", "<", "=", "0", "(", "meaning", "a", "queue", "is", "not", "wanted", ")", "*", "<", "p", ">", "*", "synchronous", "queue", "will", "do", "a", "handoff", "from", "calling", "thread", "to", "worker", "thread", "and", "not", "allow", "queuing", "which", "is", "what", "we", "want", "*", "<", "p", ">", "*", "queuing", "results", "in", "added", "latency", "and", "would", "only", "occur", "when", "the", "thread", "-", "pool", "is", "full", "at", "which", "point", "there", "are", "latency", "issues", "*", "and", "rejecting", "is", "the", "preferred", "solution", "*", "/", "if", "(", "max", "queue", "size", "<", "=", "0", ")", "{", "return", "new", "synchronous", "queue", "<", "runnable", ">", "(", ")", ";", "}", "else", "{", "return", "new", "linked", "blocking", "queue", "<", "runnable", ">", "(", "max", "queue", "size", ")", ";", "}", "}" ]
[ "copies", "the", "contents", "of", "this", "byte", "source", "to", "the", "given", "{", "@", "code", "byte", "sink", "}" ]
[ "public", "long", "copy", "to", "(", "byte", "sink", "sink", ")", "throws", "i", "o", "exception", "{", "check", "not", "null", "(", "sink", ")", ";", "closer", "closer", "=", "closer", "create", "(", ")", ";", "try", "{", "input", "stream", "in", "=", "closer", "register", "(", "open", "stream", "(", ")", ")", ";", "output", "stream", "out", "=", "closer", "register", "(", "sink", "open", "stream", "(", ")", ")", ";", "return", "byte", "streams", "copy", "(", "in", ",", "out", ")", ";", "}", "catch", "(", "throwable", "e", ")", "{", "throw", "closer", "rethrow", "(", "e", ")", ";", "}", "finally", "{", "closer", "close", "(", ")", ";", "}", "}" ]
[ "return", "the", "activity", "by", "context" ]
[ "public", "static", "activity", "get", "activity", "by", "context", "(", "context", "context", ")", "{", "activity", "activity", "=", "get", "activity", "by", "context", "inner", "(", "context", ")", ";", "if", "(", "!", "is", "activity", "alive", "(", "activity", ")", ")", "return", "null", ";", "return", "activity", ";", "}" ]
[ "configure", "the", "payload", "metadata", "mime", "type", "to", "specify", "on", "the", "{", "@", "code", "setup", "}", "frame", "that", "applies", "to", "the", "whole", "connection", "by", "default", "this", "is", "set", "to", "{", "@", "code", "\"", "messagex", "rsocket", "composite", "-", "metadata", "v", "0", "\"", "}", "in", "which", "case", "the", "route", ",", "if", "provided", ",", "is", "encoded", "as", "a", "{", "@", "code", "\"", "messagex", "rsocket", "routing", "v", "0", "\"", "}", "composite", "metadata", "entry", "if", "this", "is", "set", "to", "any", "other", "mime", "type", ",", "it", "is", "assumed", "that", "'", "s", "the", "mime", "type", "for", "the", "route", ",", "if", "provided" ]
[ "r", "socket", "requester", "builder", "metadata", "mime", "type", "(", "mime", "type", "mime", "type", ")", ";" ]
[ "used", "to", "collect", "to", "the", "grammar", "file", "name", ",", "token", "names", ",", "rule", "names", "for", "used", "to", "parse", "the", "pattern", "into", "a", "parse", "tree" ]
[ "public", "parser", "get", "parser", "(", ")", "{", "return", "parser", ";", "}", "/", "/", "-", "-", "-", "-", "support", "code", "-", "-", "-", "-" ]
[ "get", "the", "{", "@", "link", "enclosing", "configuration", "}", "mode", "for", "the", "supplied", "class" ]
[ "private", "static", "enclosing", "configuration", "get", "enclosing", "configuration", "(", "class", "<", "?", ">", "clazz", ")", "{", "return", "cached", "enclosing", "configuration", "modes", "get", "(", "clazz", ")", ";", "}" ]
[ "writes", "the", "header", "for", "the", "trace", "format" ]
[ "default", "void", "write", "header", "(", ")", "throws", "i", "o", "exception", "{", "}" ]
[ "if", "a", "request", "body", "contains", "a", "reference", "to", "an", "other", "request", "body", "with", "'", "$", "ref", "'", ",", "returns", "the", "referenced", "request", "body", "if", "it", "is", "found", "or", "the", "actual", "request", "body", "in", "the", "other", "cases" ]
[ "public", "static", "request", "body", "get", "referenced", "request", "body", "(", "open", "a", "p", "i", "open", "a", "p", "i", ",", "request", "body", "request", "body", ")", "{", "if", "(", "request", "body", "!", "=", "null", "&", "&", "string", "utils", "is", "not", "empty", "(", "request", "body", "get", "$", "ref", "(", ")", ")", ")", "{", "string", "name", "=", "get", "simple", "ref", "(", "request", "body", "get", "$", "ref", "(", ")", ")", ";", "request", "body", "referenced", "request", "body", "=", "get", "request", "body", "(", "open", "a", "p", "i", ",", "name", ")", ";", "if", "(", "referenced", "request", "body", "!", "=", "null", ")", "{", "return", "referenced", "request", "body", ";", "}", "}", "return", "request", "body", ";", "}" ]
[ "initialize", "field", "if", "not", "initialized", "and", "return", "the", "actual", "instance" ]
[ "public", "field", "initialization", "report", "initialize", "(", ")", "{", "try", "{", "return", "acquire", "field", "instance", "(", ")", ";", "}", "catch", "(", "illegal", "access", "exception", "e", ")", "{", "throw", "new", "mockito", "exception", "(", "\"", "problems", "initializing", "field", "'", "\"", "+", "field", "get", "name", "(", ")", "+", "\"", "'", "of", "type", "'", "\"", "+", "field", "get", "type", "(", ")", "get", "simple", "name", "(", ")", "+", "\"", "'", "\"", ",", "e", ")", ";", "}", "}" ]
[ "returns", "a", "supplier", "which", "caches", "the", "instance", "retrieved", "during", "the", "first", "call", "to", "{", "@", "code", "get", "(", ")", "}", "and", "returns", "that", "value", "on", "subsequent", "calls", "to", "{", "@", "code", "get", "(", ")", "}", "see", ":", "<", "a", "href", "=", "\"", "http", ":", "en", "wikipedia", "orgwiki", "memoization", "\"", ">", "memoization", "the", "returned", "supplier", "is", "thread", "-", "safe", "the", "delegate", "'", "s", "{", "@", "code", "get", "(", ")", "}", "method", "will", "be", "invoked", "at", "most", "once", "unless", "the", "underlying", "{", "@", "code", "get", "(", ")", "}", "throws", "an", "exception", "the", "supplier", "'", "s", "serialized", "form", "does", "not", "contain", "the", "cached", "value", ",", "which", "will", "be", "recalculated", "when", "{", "@", "code", "get", "(", ")", "}", "is", "called", "on", "the", "reserialized", "instance", "when", "the", "underlying", "delegate", "throws", "an", "exception", "then", "this", "memoizing", "supplier", "will", "keep", "delegating", "calls", "until", "it", "returns", "valid", "data", "if", "{", "@", "code", "delegate", "}", "is", "an", "instance", "created", "by", "an", "earlier", "call", "to", "{", "@", "code", "memoize", "}", ",", "it", "is", "returned", "directly" ]
[ "public", "static", "<", "t", ">", "supplier", "<", "t", ">", "memoize", "(", "supplier", "<", "t", ">", "delegate", ")", "{", "if", "(", "delegate", "instanceof", "non", "serializable", "memoizing", "supplier", "|", "|", "delegate", "instanceof", "memoizing", "supplier", ")", "{", "return", "delegate", ";", "}", "return", "delegate", "instanceof", "serializable", "?", "new", "memoizing", "supplier", "<", "t", ">", "(", "delegate", ")", ":", "new", "non", "serializable", "memoizing", "supplier", "<", "t", ">", "(", "delegate", ")", ";", "}" ]
[ "cancels", "the", "item", "in", "the", "queue", "if", "the", "item", "is", "scheduled", "more", "than", "once", ",", "cancels", "the", "first", "occurrence" ]
[ "public", "boolean", "cancel", "(", "task", "p", ")", "{", "lock", "lock", "(", ")", ";", "try", "{", "try", "{", "logger", "log", "(", "level", "fine", ",", "\"", "cancelling", "{", "0", "}", "\"", ",", "p", ")", ";", "for", "(", "waiting", "item", "item", ":", "waiting", "list", ")", "{", "if", "(", "item", "task", "equals", "(", "p", ")", ")", "{", "return", "item", "cancel", "(", "this", ")", ";", "}", "}", "/", "/", "use", "bitwise", "-", "or", "to", "make", "sure", "that", "both", "branches", "get", "evaluated", "all", "the", "time", "return", "blocked", "projects", "cancel", "(", "p", ")", "!", "=", "null", "|", "buildables", "cancel", "(", "p", ")", "!", "=", "null", ";", "}", "finally", "{", "update", "snapshot", "(", ")", ";", "}", "}", "finally", "{", "lock", "unlock", "(", ")", ";", "}", "}" ]
[ "adds", "{", "@", "code", "element", "}", "to", "the", "{", "@", "code", "immutable", "sorted", "multiset", "}" ]
[ "public", "builder", "<", "e", ">", "add", "(", "e", "element", ")", "{", "super", "add", "(", "element", ")", ";", "return", "this", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "this", "factory", "is", "compatible", "with", "the", "options", "in", "the", "provided", "configuration", ",", "{", "@", "code", "false", "}", "otherwise" ]
[ "boolean", "is", "compatible", "with", "(", "final", "configuration", "configuration", ")", ";" ]
[ "gets", "the", "image", "for", "the", "given", "frame", "index", "it", "is", "the", "caller", "'", "s", "responsibility", "to", "close", "the", "returned", "reference", "once", "not", "needed", "anymore" ]
[ "public", "closeable", "reference", "<", "closeable", "image", ">", "get", "(", "int", "frame", "index", ")", "{", "return", "m", "backing", "cache", "get", "(", "key", "for", "(", "frame", "index", ")", ")", ";", "}" ]
[ "parse", "the", "function", "prototype", "from", "{", "@", "code", "<", "prototype", ">", "}", "tag" ]
[ "public", "void", "read", "prototype", "x", "m", "l", "(", "xml", "pull", "parser", "parser", ",", "pcode", "data", "type", "manager", "dtmanage", ")", "throws", "pcode", "x", "m", "l", "exception", "{", "xml", "element", "node", "=", "parser", "start", "(", "\"", "prototype", "\"", ")", ";", "modelname", "=", "node", "get", "attribute", "(", "\"", "model", "\"", ")", ";", "prototype", "model", "proto", "model", "=", "dtmanage", "get", "program", "(", ")", "get", "compiler", "spec", "(", ")", "get", "calling", "convention", "(", "modelname", ")", ";", "if", "(", "proto", "model", "=", "=", "null", ")", "{", "throw", "new", "pcode", "x", "m", "l", "exception", "(", "\"", "bad", "prototype", "model", "name", ":", "\"", "+", "modelname", ")", ";", "}", "has", "this", "=", "proto", "model", "has", "this", "pointer", "(", ")", ";", "string", "val", "=", "node", "get", "attribute", "(", "\"", "extrapop", "\"", ")", ";", "if", "(", "val", "equals", "(", "\"", "unknown", "\"", ")", ")", "{", "extrapop", "=", "prototype", "model", "unknown", "extrapop", ";", "}", "else", "{", "extrapop", "=", "spec", "xml", "utils", "decode", "int", "(", "val", ")", ";", "}", "modellock", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "modellock", "\"", ")", ")", "{", "modellock", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "modellock", "\"", ")", ")", ";", "}", "dotdotdot", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "dotdotdot", "\"", ")", ")", "{", "dotdotdot", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "dotdotdot", "\"", ")", ")", ";", "}", "voidinputlock", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "voidlock", "\"", ")", ")", "{", "voidinputlock", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "voidlock", "\"", ")", ")", ";", "}", "isinline", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "inline", "\"", ")", ")", "{", "isinline", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "inline", "\"", ")", ")", ";", "}", "noreturn", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "noreturn", "\"", ")", ")", "{", "noreturn", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "noreturn", "\"", ")", ")", ";", "}", "custom", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "custom", "\"", ")", ")", "{", "custom", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "custom", "\"", ")", ")", ";", "}", "is", "construct", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "constructor", "\"", ")", ")", "{", "is", "construct", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "constructor", "\"", ")", ")", ";", "}", "is", "destruct", "=", "false", ";", "if", "(", "node", "has", "attribute", "(", "\"", "destructor", "\"", ")", ")", "{", "is", "destruct", "=", "spec", "xml", "utils", "decode", "boolean", "(", "node", "get", "attribute", "(", "\"", "destructor", "\"", ")", ")", ";", "}", "xml", "element", "retel", "=", "parser", "start", "(", "\"", "returnsym", "\"", ")", ";", "outputlock", "=", "false", ";", "if", "(", "retel", "has", "attribute", "(", "\"", "typelock", "\"", ")", ")", "{", "outputlock", "=", "spec", "xml", "utils", "decode", "boolean", "(", "retel", "get", "attribute", "(", "\"", "typelock", "\"", ")", ")", ";", "}", "parser", "discard", "sub", "tree", "(", ")", ";", "returnstorage", "=", "null", ";", "/", "/", "for", "now", "don", "'", "t", "use", "decompiler", "'", "s", "return", "storage", "returntype", "=", "dtmanage", "read", "x", "m", "l", "data", "type", "(", "parser", ")", ";", "parser", "end", "(", "retel", ")", ";", "xml", "element", "peeknode", "=", "parser", "peek", "(", ")", ";", "if", "(", "(", "peeknode", "!", "=", "null", ")", "&", "&", "peeknode", "is", "start", "(", ")", ")", "{", "parser", "discard", "sub", "tree", "(", ")", ";", "/", "/", "the", "decompiler", "may", "return", "an", "<", "inject", ">", "tag", "}", "parser", "end", "(", "node", ")", ";", "}" ]
[ "dispatches", "{", "@", "link", "#", "on", "drm", "session", "acquired", "(", "int", ",", "media", "period", "id", ")", "}" ]
[ "public", "void", "drm", "session", "acquired", "(", ")", "{", "for", "(", "listener", "and", "handler", "listener", "and", "handler", ":", "listener", "and", "handlers", ")", "{", "drm", "session", "event", "listener", "listener", "=", "listener", "and", "handler", "listener", ";", "post", "or", "run", "(", "listener", "and", "handler", "handler", ",", "(", ")", "-", ">", "listener", "on", "drm", "session", "acquired", "(", "window", "index", ",", "media", "period", "id", ")", ")", ";", "}", "}" ]
[ "creates", "a", "{", "@", "link", "row", "kind", "}", "from", "the", "given", "byte", "value", "each", "{", "@", "link", "row", "kind", "}", "has", "a", "byte", "value", "representation" ]
[ "public", "static", "row", "kind", "from", "byte", "value", "(", "byte", "value", ")", "{", "switch", "(", "value", ")", "{", "case", "0", ":", "return", "insert", ";", "case", "1", ":", "return", "update", "before", ";", "case", "2", ":", "return", "update", "after", ";", "case", "3", ":", "return", "delete", ";", "default", ":", "throw", "new", "unsupported", "operation", "exception", "(", "\"", "unsupported", "byte", "value", "'", "\"", "+", "value", "+", "\"", "'", "for", "row", "kind", "\"", ")", ";", "}", "}" ]
[ "visit", "a", "parse", "tree", "produced", "by", "the", "{", "@", "code", "boolean", "default", "}", "labeled", "alternative", "in", "{", "@", "link", "eql", "base", "parser", "#", "boolean", "expression", "}" ]
[ "t", "visit", "boolean", "default", "(", "eql", "base", "parser", "boolean", "default", "context", "ctx", ")", ";" ]
[ "creates", "a", "cc", "linking", "info", "based", "on", "'", "deps", "'", "and", "an", "explicit", "list", "of", "proto", "runtimes", ",", "in", "the", "context", "of", "a", "java", "xxx", "proto", "library", "and", "its", "aspects" ]
[ "public", "static", "java", "cc", "link", "params", "provider", "create", "cc", "linking", "info", "(", "final", "rule", "context", "rule", "context", ",", "final", "immutable", "list", "<", "transitive", "info", "collection", ">", "proto", "runtimes", ")", "{", "list", "<", "cc", "info", ">", "providers", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "transitive", "info", "collection", "t", ":", "rule", "context", "get", "prerequisites", "(", "\"", "deps", "\"", ")", ")", "{", "java", "cc", "link", "params", "provider", "java", "cc", "link", "params", "provider", "=", "t", "get", "(", "java", "cc", "link", "params", "provider", "provider", ")", ";", "if", "(", "java", "cc", "link", "params", "provider", "!", "=", "null", ")", "{", "providers", "add", "(", "java", "cc", "link", "params", "provider", "get", "cc", "info", "(", ")", ")", ";", "}", "}", "for", "(", "transitive", "info", "collection", "t", ":", "proto", "runtimes", ")", "{", "java", "cc", "link", "params", "provider", "java", "cc", "link", "params", "provider", "=", "t", "get", "(", "java", "cc", "link", "params", "provider", "provider", ")", ";", "if", "(", "java", "cc", "link", "params", "provider", "!", "=", "null", ")", "{", "providers", "add", "(", "java", "cc", "link", "params", "provider", "get", "cc", "info", "(", ")", ")", ";", "}", "cc", "info", "cc", "info", "=", "t", "get", "(", "cc", "info", "provider", ")", ";", "if", "(", "cc", "info", "!", "=", "null", ")", "{", "providers", "add", "(", "cc", "info", ")", ";", "}", "}", "return", "new", "java", "cc", "link", "params", "provider", "(", "cc", "info", "merge", "(", "providers", ")", ")", ";", "}" ]
[ "tear", "-", "down", "method", "for", "this", "function", "it", "can", "be", "used", "for", "clean", "up", "work", "by", "default", ",", "this", "method", "does", "nothing" ]
[ "void", "close", "(", ")", "throws", "exception", ";" ]
[ "subclasses", "must", "override", "this", "method", "to", "perform", "any", "tracing", "around", "the", "supplied", "{", "@", "code", "method", "invocation", "}", "subclasses", "are", "responsible", "for", "ensuring", "that", "the", "{", "@", "code", "method", "invocation", "}", "actually", "executes", "by", "calling", "{", "@", "code", "method", "invocation", "proceed", "(", ")", "}", "by", "default", ",", "the", "passed", "-", "in", "{", "@", "code", "log", "}", "instance", "will", "have", "log", "level", "\"", "trace", "\"", "enabled", "subclasses", "do", "not", "have", "to", "check", "for", "this", "again", ",", "unless", "they", "overwrite", "the", "{", "@", "code", "is", "interceptor", "enabled", "}", "method", "to", "modify", "the", "default", "behavior", ",", "and", "may", "delegate", "to", "{", "@", "code", "write", "to", "log", "}", "for", "actual", "messages", "to", "be", "written" ]
[ "protected", "abstract", "object", "invoke", "under", "trace", "(", "method", "invocation", "invocation", ",", "log", "logger", ")", "throws", "throwable", ";" ]
[ "find", "index", "of", "first", "field", "containing", "a", "clang", "node", "in", "token", "list" ]
[ "public", "static", "int", "find", "index", "of", "first", "field", "(", "list", "<", "clang", "token", ">", "query", "tokens", ",", "field", "[", "]", "fields", ")", "{", "if", "(", "query", "tokens", "is", "empty", "(", ")", ")", "{", "return", "-", "1", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fields", "length", ";", "i", "+", "+", ")", "{", "clang", "text", "field", "f", "=", "(", "clang", "text", "field", ")", "fields", "[", "i", "]", ";", "list", "<", "clang", "token", ">", "field", "tokens", "=", "f", "get", "tokens", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "field", "tokens", "size", "(", ")", ";", "j", "+", "+", ")", "{", "clang", "node", "field", "token", "=", "field", "tokens", "get", "(", "j", ")", ";", "if", "(", "query", "tokens", "contains", "(", "field", "token", ")", ")", "{", "return", "i", ";", "}", "}", "}", "return", "-", "1", ";", "}" ]
[ "updates", "the", "given", "jump", "offsets", "for", "the", "instruction", "at", "the", "given", "offset", ",", "relative", "to", "the", "given", "new", "offset" ]
[ "private", "void", "new", "jump", "offsets", "(", "int", "old", "instruction", "offset", ",", "int", "[", "]", "old", "jump", "offsets", ",", "int", "new", "instruction", "offset", ")", "{", "for", "(", "int", "index", "=", "0", ";", "index", "<", "old", "jump", "offsets", "length", ";", "index", "+", "+", ")", "{", "old", "jump", "offsets", "[", "index", "]", "=", "new", "branch", "offset", "(", "old", "instruction", "offset", ",", "old", "jump", "offsets", "[", "index", "]", ",", "new", "instruction", "offset", ")", ";", "}", "}" ]
[ "double", "checked", "procedure", "setting", "the", "abort", "flag", "and", "closing", "the", "stream" ]
[ "private", "void", "abort", "wait", "(", ")", "{", "this", "aborted", "=", "true", ";", "final", "f", "s", "data", "input", "stream", "in", "stream", "=", "this", "fdis", ";", "this", "fdis", "=", "null", ";", "if", "(", "in", "stream", "!", "=", "null", ")", "{", "try", "{", "in", "stream", "close", "(", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "}", "}", "}" ]
[ "@", "t", "c", "description", ":", "๏ผŒ", "@", "test", "step", ":", "@", "expect", "result", ":" ]
[ "public", "void", "multiple", "tenant", "update", "instance", "not", "exsit", "instance", "(", ")", "throws", "exception", "{", "string", "service", "name", "=", "random", "domain", "name", "(", ")", ";", "naming", "1", "register", "instance", "(", "service", "name", ",", "\"", "11", "11", "11", "11", "\"", ",", "80", ")", ";", "naming", "2", "register", "instance", "(", "service", "name", ",", "\"", "22", "22", "22", "22", "\"", ",", "80", ")", ";", "naming", "register", "instance", "(", "service", "name", ",", "\"", "33", "33", "33", "33", "\"", ",", "8888", ")", ";", "naming", "register", "instance", "(", "service", "name", ",", "\"", "44", "44", "44", "44", "\"", ",", "8888", ")", ";", "time", "unit", "seconds", "sleep", "(", "5l", ")", ";", "response", "entity", "<", "string", ">", "response", "=", "request", "(", "\"", "/", "nacos", "/", "v", "1", "/", "ns", "/", "instance", "\"", ",", "params", "new", "params", "(", ")", "append", "param", "(", "\"", "service", "name", "\"", ",", "service", "name", ")", "append", "param", "(", "\"", "ip", "\"", ",", "\"", "33", "33", "33", "33", "\"", ")", "append", "param", "(", "\"", "port", "\"", ",", "\"", "8888", "\"", ")", "append", "param", "(", "\"", "namespace", "id", "\"", ",", "\"", "namespace", "-", "1", "\"", ")", "/", "/", "done", "(", ")", ",", "string", "class", ",", "http", "method", "post", ")", ";", "assert", "assert", "true", "(", "response", "get", "status", "code", "(", ")", "is", "2xx", "successful", "(", ")", ")", ";", "response", "=", "request", "(", "\"", "/", "nacos", "/", "v", "1", "/", "ns", "/", "instance", "/", "list", "\"", ",", "params", "new", "params", "(", ")", "append", "param", "(", "\"", "service", "name", "\"", ",", "service", "name", ")", "/", "/", "append", "param", "(", "\"", "namespace", "id", "\"", ",", "\"", "namespace", "-", "1", "\"", ")", "done", "(", ")", ",", "string", "class", ")", ";", "assert", "assert", "true", "(", "response", "get", "status", "code", "(", ")", "is", "2xx", "successful", "(", ")", ")", ";", "json", "node", "json", "=", "jackson", "utils", "to", "obj", "(", "response", "get", "body", "(", ")", ")", ";", "assert", "assert", "equals", "(", "2", ",", "json", "get", "(", "\"", "hosts", "\"", ")", "size", "(", ")", ")", ";", "/", "/", "namespace", "-", "response", "=", "request", "(", "\"", "/", "nacos", "/", "v", "1", "/", "ns", "/", "instance", "/", "list", "\"", ",", "params", "new", "params", "(", ")", "append", "param", "(", "\"", "service", "name", "\"", ",", "service", "name", ")", "/", "/", "append", "param", "(", "\"", "namespace", "id", "\"", ",", "\"", "namespace", "-", "2", "\"", ")", "done", "(", ")", ",", "string", "class", ")", ";", "assert", "assert", "true", "(", "response", "get", "status", "code", "(", ")", "is", "2xx", "successful", "(", ")", ")", ";", "json", "=", "jackson", "utils", "to", "obj", "(", "response", "get", "body", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "json", "get", "(", "\"", "hosts", "\"", ")", "size", "(", ")", ")", ";", "}" ]
[ "get", "number", "item" ]
[ "public", "big", "decimal", "get", "number", "item", "(", ")", "{", "return", "number", "item", ";", "}" ]
[ "works", "just", "like", "{", "@", "link", "#", "get", "descriptor", "(", "class", ")", "}", "but", "don", "'", "t", "take", "no", "for", "an", "answer" ]
[ "public", "descriptor", "get", "descriptor", "or", "die", "(", "class", "<", "?", "extends", "describable", ">", "type", ")", "{", "descriptor", "d", "=", "get", "descriptor", "(", "type", ")", ";", "if", "(", "d", "=", "=", "null", ")", "throw", "new", "assertion", "error", "(", "type", "+", "\"", "is", "missing", "its", "descriptor", "\"", ")", ";", "return", "d", ";", "}" ]
[ "model", "tests", "for", "model", "api", "response" ]
[ "public", "void", "test", "model", "api", "response", "(", ")", "{", "/", "/", "todo", ":", "test", "model", "api", "response", "}" ]
[ "b", "s", "patch", "using", "less", "memory", "size", "memory", "size", "=", "diff", "file", "size", "+", "max", "block", "size", "ext", "len", "the", "length", "of", "the", "apk", "external", "info", "set", "0", "if", "has", "no", "external", "info" ]
[ "public", "static", "int", "patch", "less", "memory", "(", "random", "access", "file", "old", "file", ",", "int", "oldsize", ",", "byte", "[", "]", "diff", "buf", ",", "int", "diff", "size", ",", "file", "new", "file", ",", "int", "ext", "len", ")", "throws", "i", "o", "exception", "{", "if", "(", "old", "file", "=", "=", "null", "|", "|", "oldsize", "<", "=", "0", ")", "{", "return", "return", "old", "file", "err", ";", "}", "if", "(", "new", "file", "=", "=", "null", ")", "{", "return", "return", "new", "file", "err", ";", "}", "if", "(", "diff", "buf", "=", "=", "null", "|", "|", "diff", "size", "<", "=", "0", ")", "{", "return", "return", "diff", "file", "err", ";", "}", "/", "/", "int", "comment", "len", "pos", "=", "oldsize", "-", "ext", "len", "-", "2", ";", "/", "/", "if", "(", "comment", "len", "pos", "<", "=", "2", ")", "{", "/", "/", "return", "return", "old", "file", "err", ";", "/", "/", "}", "data", "input", "stream", "diff", "in", "=", "new", "data", "input", "stream", "(", "new", "byte", "array", "input", "stream", "(", "diff", "buf", ",", "0", ",", "diff", "size", ")", ")", ";", "diff", "in", "skip", "(", "8", ")", ";", "/", "/", "skip", "header", "magic", "at", "header", "offset", "0", "(", "length", "8", "bytes", ")", "long", "ctrl", "block", "len", "=", "diff", "in", "read", "long", "(", ")", ";", "/", "/", "ctrl", "block", "len", "after", "bzip", "2", "compression", "at", "heater", "offset", "8", "(", "length", "8", "bytes", ")", "long", "diff", "block", "len", "=", "diff", "in", "read", "long", "(", ")", ";", "/", "/", "diff", "block", "len", "after", "bzip", "2", "compression", "at", "header", "offset", "16", "(", "length", "8", "bytes", ")", "int", "newsize", "=", "(", "int", ")", "diff", "in", "read", "long", "(", ")", ";", "/", "/", "size", "of", "new", "file", "at", "header", "offset", "24", "(", "length", "8", "bytes", ")", "diff", "in", "close", "(", ")", ";", "input", "stream", "in", "=", "new", "byte", "array", "input", "stream", "(", "diff", "buf", ",", "0", ",", "diff", "size", ")", ";", "in", "skip", "(", "b", "s", "util", "header", "size", ")", ";", "data", "input", "stream", "ctrl", "block", "in", "=", "new", "data", "input", "stream", "(", "new", "g", "z", "i", "p", "input", "stream", "(", "in", ")", ")", ";", "in", "=", "new", "byte", "array", "input", "stream", "(", "diff", "buf", ",", "0", ",", "diff", "size", ")", ";", "in", "skip", "(", "ctrl", "block", "len", "+", "b", "s", "util", "header", "size", ")", ";", "input", "stream", "diff", "block", "in", "=", "new", "g", "z", "i", "p", "input", "stream", "(", "in", ")", ";", "in", "=", "new", "byte", "array", "input", "stream", "(", "diff", "buf", ",", "0", ",", "diff", "size", ")", ";", "in", "skip", "(", "diff", "block", "len", "+", "ctrl", "block", "len", "+", "b", "s", "util", "header", "size", ")", ";", "input", "stream", "extra", "block", "in", "=", "new", "g", "z", "i", "p", "input", "stream", "(", "in", ")", ";", "output", "stream", "out", "stream", "=", "new", "file", "output", "stream", "(", "new", "file", ")", ";", "try", "{", "int", "oldpos", "=", "0", ";", "int", "newpos", "=", "0", ";", "int", "[", "]", "ctrl", "=", "new", "int", "[", "3", "]", ";", "/", "/", "int", "nbytes", ";", "while", "(", "newpos", "<", "newsize", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "=", "2", ";", "i", "+", "+", ")", "{", "ctrl", "[", "i", "]", "=", "ctrl", "block", "in", "read", "int", "(", ")", ";", "}", "if", "(", "newpos", "+", "ctrl", "[", "0", "]", ">", "newsize", ")", "{", "out", "stream", "close", "(", ")", ";", "return", "return", "diff", "file", "err", ";", "}", "/", "/", "read", "ctrl", "[", "0", "]", "bytes", "from", "diff", "block", "stream", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "ctrl", "[", "0", "]", "]", ";", "if", "(", "!", "b", "s", "util", "read", "from", "stream", "(", "diff", "block", "in", ",", "buffer", ",", "0", ",", "ctrl", "[", "0", "]", ")", ")", "{", "out", "stream", "close", "(", ")", ";", "return", "return", "diff", "file", "err", ";", "}", "byte", "[", "]", "old", "buffer", "=", "new", "byte", "[", "ctrl", "[", "0", "]", "]", ";", "if", "(", "old", "file", "read", "(", "old", "buffer", ",", "0", ",", "ctrl", "[", "0", "]", ")", "<", "ctrl", "[", "0", "]", ")", "{", "out", "stream", "close", "(", ")", ";", "return", "return", "diff", "file", "err", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ctrl", "[", "0", "]", ";", "i", "+", "+", ")", "{", "/", "/", "if", "(", "oldpos", "+", "i", "=", "=", "comment", "len", "pos", ")", "{", "/", "/", "old", "buffer", "[", "i", "]", "=", "0", ";", "/", "/", "old", "buffer", "[", "i", "+", "1", "]", "=", "0", ";", "/", "/", "}", "if", "(", "(", "oldpos", "+", "i", ">", "=", "0", ")", "&", "&", "(", "oldpos", "+", "i", "<", "oldsize", ")", ")", "{", "buffer", "[", "i", "]", "+", "=", "old", "buffer", "[", "i", "]", ";", "}", "}", "out", "stream", "write", "(", "buffer", ")", ";", "newpos", "+", "=", "ctrl", "[", "0", "]", ";", "oldpos", "+", "=", "ctrl", "[", "0", "]", ";", "if", "(", "newpos", "+", "ctrl", "[", "1", "]", ">", "newsize", ")", "{", "out", "stream", "close", "(", ")", ";", "return", "return", "diff", "file", "err", ";", "}", "buffer", "=", "new", "byte", "[", "ctrl", "[", "1", "]", "]", ";", "if", "(", "!", "b", "s", "util", "read", "from", "stream", "(", "extra", "block", "in", ",", "buffer", ",", "0", ",", "ctrl", "[", "1", "]", ")", ")", "{", "out", "stream", "close", "(", ")", ";", "return", "return", "diff", "file", "err", ";", "}", "out", "stream", "write", "(", "buffer", ")", ";", "out", "stream", "flush", "(", ")", ";", "newpos", "+", "=", "ctrl", "[", "1", "]", ";", "oldpos", "+", "=", "ctrl", "[", "2", "]", ";", "old", "file", "seek", "(", "oldpos", ")", ";", "}", "ctrl", "block", "in", "close", "(", ")", ";", "diff", "block", "in", "close", "(", ")", ";", "extra", "block", "in", "close", "(", ")", ";", "}", "finally", "{", "old", "file", "close", "(", ")", ";", "out", "stream", "close", "(", ")", ";", "}", "return", "return", "success", ";", "}" ]
[ "returns", "true", "if", "the", "specified", "value", "is", "in", "the", "map", "note", "this", "traverses", "the", "entire", "map", "and", "compares", "every", "value", ",", "which", "may", "be", "an", "expensive", "operation" ]
[ "public", "boolean", "contains", "value", "(", "@", "null", "object", "value", ",", "boolean", "identity", ")", "{", "v", "[", "]", "value", "table", "=", "this", "value", "table", ";", "if", "(", "value", "=", "=", "null", ")", "{", "if", "(", "has", "zero", "value", "&", "&", "zero", "value", "=", "=", "null", ")", "return", "true", ";", "long", "[", "]", "key", "table", "=", "this", "key", "table", ";", "for", "(", "int", "i", "=", "value", "table", "length", "-", "1", ";", "i", ">", "=", "0", ";", "i", "-", "-", ")", "if", "(", "key", "table", "[", "i", "]", "!", "=", "0", "&", "&", "value", "table", "[", "i", "]", "=", "=", "null", ")", "return", "true", ";", "}", "else", "if", "(", "identity", ")", "{", "if", "(", "value", "=", "=", "zero", "value", ")", "return", "true", ";", "for", "(", "int", "i", "=", "value", "table", "length", "-", "1", ";", "i", ">", "=", "0", ";", "i", "-", "-", ")", "if", "(", "value", "table", "[", "i", "]", "=", "=", "value", ")", "return", "true", ";", "}", "else", "{", "if", "(", "has", "zero", "value", "&", "&", "value", "equals", "(", "zero", "value", ")", ")", "return", "true", ";", "for", "(", "int", "i", "=", "value", "table", "length", "-", "1", ";", "i", ">", "=", "0", ";", "i", "-", "-", ")", "if", "(", "value", "equals", "(", "value", "table", "[", "i", "]", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "set", "required", "boolean", "group" ]
[ "public", "a", "p", "itest", "group", "parameters", "request", "required", "boolean", "group", "(", "boolean", "required", "boolean", "group", ")", "{", "this", "required", "boolean", "group", "=", "required", "boolean", "group", ";", "return", "this", ";", "}" ]
[ "remove", "the", "given", "machine", "instance", "from", "the", "application", "registry" ]
[ "boolean", "remove", "machine", "(", "string", "app", ",", "string", "ip", ",", "int", "port", ")", ";" ]
[ "similar", "to", "{", "@", "link", "#", "get", "variables", "(", ")", "}", ",", "but", "limited", "to", "only", "the", "variables", "with", "the", "provided", "names" ]
[ "map", "<", "string", ",", "object", ">", "get", "variables", "(", "collection", "<", "string", ">", "variable", "names", ")", ";" ]
[ "gets", "a", "result" ]
[ "int", "get", "(", ")", "throws", "exception", ";" ]
[ "helper", "method", "to", "check", "whether", "the", "(", "key", ",", "value", ")", "is", "valid", "through", "given", "configuration", "and", "returns", "the", "formatted", "value" ]
[ "private", "static", "void", "check", "argument", "valid", "(", "config", "option", "<", "?", ">", "option", ",", "object", "value", ")", "{", "final", "string", "key", "=", "option", "key", "(", ")", ";", "if", "(", "positive", "int", "config", "set", "contains", "(", "option", ")", ")", "{", "preconditions", "check", "argument", "(", "(", "integer", ")", "value", ">", "0", ",", "\"", "configured", "value", "for", "key", ":", "\"", "+", "key", "+", "\"", "must", "be", "larger", "than", "0", "\"", ")", ";", "}", "else", "if", "(", "size", "config", "set", "contains", "(", "option", ")", ")", "{", "preconditions", "check", "argument", "(", "(", "(", "memory", "size", ")", "value", ")", "get", "bytes", "(", ")", ">", "0", ",", "\"", "configured", "size", "for", "key", "\"", "+", "key", "+", "\"", "must", "be", "larger", "than", "0", "\"", ")", ";", "}", "}" ]
[ "utility", "method", "to", "wrap", "a", "<", "code", ">", "scheduled", "future", "<", "code", ">", "as", "a", "<", "code", ">", "scheduled", "cancellable", "<", "code", ">" ]
[ "static", "scheduled", "cancellable", "wrap", "as", "scheduled", "cancellable", "(", "scheduled", "future", "<", "?", ">", "scheduled", "future", ")", "{", "return", "new", "scheduled", "cancellable", "adapter", "(", "scheduled", "future", ")", ";", "}" ]
[ "returns", "a", "list", "of", "all", "checkouts", "for", "this", "fileitem" ]
[ "public", "item", "checkout", "status", "[", "]", "get", "checkouts", "(", "string", "user", ")", "throws", "i", "o", "exception", "{", "synchronized", "(", "file", "system", ")", "{", "validate", "(", ")", ";", "repository", "validate", "read", "privilege", "(", "user", ")", ";", "return", "database", "item", "get", "checkouts", "(", ")", ";", "}", "}" ]
[ "<", "code", ">", "optional", "bytes", "data", "=", "1", ";", "<", "code", ">" ]
[ "public", "builder", "set", "data", "(", "com", "google", "protobuf", "byte", "string", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "set", "data", "(", "value", ")", ";", "return", "this", ";", "}" ]
[ "set", "the", "source", "list", ",", "typically", "populated", "via", "xml", "\"", "list", "\"", "elements" ]
[ "public", "void", "set", "source", "list", "(", "list", "<", "?", ">", "source", "list", ")", "{", "this", "source", "list", "=", "source", "list", ";", "}" ]
[ "returns", "a", "{", "@", "link", "function", "}", "that", "invokes", "{", "@", "link", "#", "escape", "(", "string", ")", "}", "on", "this", "escaper" ]
[ "public", "final", "function", "<", "string", ",", "string", ">", "as", "function", "(", ")", "{", "return", "as", "function", ";", "}" ]
[ "gets", "the", "output", "collector", "for", "a", "multi", "named", "output" ]
[ "public", "output", "collector", "get", "collector", "(", "string", "named", "output", ",", "string", "multi", "name", ",", "reporter", "reporter", ")", "throws", "i", "o", "exception", "{", "check", "named", "output", "name", "(", "named", "output", ")", ";", "if", "(", "!", "named", "outputs", "contains", "(", "named", "output", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "undefined", "named", "output", "'", "\"", "+", "named", "output", "+", "\"", "'", "\"", ")", ";", "}", "boolean", "multi", "=", "is", "multi", "named", "output", "(", "conf", ",", "named", "output", ")", ";", "if", "(", "!", "multi", "&", "&", "multi", "name", "!", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "name", "output", "'", "\"", "+", "named", "output", "+", "\"", "'", "has", "not", "been", "defined", "as", "multi", "\"", ")", ";", "}", "if", "(", "multi", ")", "{", "check", "token", "name", "(", "multi", "name", ")", ";", "}", "string", "base", "file", "name", "=", "(", "multi", ")", "?", "named", "output", "+", "\"", "\"", "+", "multi", "name", ":", "named", "output", ";", "final", "record", "writer", "writer", "=", "get", "record", "writer", "(", "named", "output", ",", "base", "file", "name", ",", "reporter", ")", ";", "return", "new", "output", "collector", "(", ")", "{", "@", "suppress", "warnings", "(", "{", "\"", "unchecked", "\"", "}", ")", "public", "void", "collect", "(", "object", "key", ",", "object", "value", ")", "throws", "i", "o", "exception", "{", "writer", "write", "(", "key", ",", "value", ")", ";", "}", "}", ";", "}" ]
[ "calling", "this", "method", "does", "does", "not", "work", "correctly", "when", "used", "with", "{", "@", "link", "#", "show", "(", "component", ")", "}", "or", "{", "@", "link", "#", "show", "select", "multiple", "(", "component", ")", "}", "to", "use", "this", "method", ",", "you", "must", "show", "the", "dialog", "by", "calling", ":", "docking", "window", "manager", "show", "dialog", "(", "parent", ",", "dialog", ")", ";", "<", "p", ">", "there", "is", "no", "need", "to", "use", "this", "method", "when", "using", "either", "of", "the", "aforementioned", "{", "@", "code", "show", "}", "methods" ]
[ "public", "void", "set", "multi", "selection", "mode", "(", "boolean", "enable", ")", "{", "set", "selection", "mode", "(", "enable", ")", ";", "}" ]
[ "finds", "the", "matching", "set", "method" ]
[ "private", "static", "method", "get", "set", "method", "(", "method", "[", "]", "methods", ",", "string", "set", "name", ",", "boolean", "ignore", "case", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "methods", "length", ";", "i", "+", "+", ")", "{", "method", "method", "=", "methods", "[", "i", "]", ";", "/", "/", "the", "method", "name", "must", "match", "if", "(", "!", "(", "ignore", "case", "?", "method", "get", "name", "(", ")", "equals", "ignore", "case", "(", "set", "name", ")", ":", "method", "get", "name", "(", ")", "equals", "(", "set", "name", ")", ")", "|", "|", "!", "modifier", "is", "public", "(", "method", "get", "modifiers", "(", ")", ")", "|", "|", "!", "modifier", "is", "public", "(", "method", "get", "declaring", "class", "(", ")", "get", "modifiers", "(", ")", ")", "|", "|", "method", "get", "parameter", "types", "(", ")", "length", "!", "=", "1", ")", "continue", ";", "return", "method", ";", "}", "return", "null", ";", "}" ]
[ "parses", "the", "java", "version", "as", "it", "can", "be", "retrieved", "as", "the", "value", "of", "java", "version", "or", "java", "specification", "version", "according", "to", "jep", "223" ]
[ "public", "static", "java", "version", "parse", "(", "string", "value", ")", "{", "objects", "require", "non", "null", "(", "value", ")", ";", "string", "pre", "part", "=", "null", ";", "if", "(", "!", "is", "valid", "(", "value", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "java", "version", "string", "[", "\"", "+", "value", "+", "\"", "]", "could", "not", "be", "parsed", "\"", ")", ";", "}", "list", "<", "integer", ">", "version", "=", "new", "array", "list", "<", ">", "(", ")", ";", "string", "[", "]", "parts", "=", "value", "split", "(", "\"", "-", "\"", ")", ";", "string", "[", "]", "numeric", "components", ";", "if", "(", "parts", "length", "=", "=", "1", ")", "{", "numeric", "components", "=", "value", "split", "(", "\"", "\\", "\\", "\"", ")", ";", "}", "else", "if", "(", "parts", "length", "=", "=", "2", ")", "{", "numeric", "components", "=", "parts", "[", "0", "]", "split", "(", "\"", "\\", "\\", "\"", ")", ";", "pre", "part", "=", "parts", "[", "1", "]", ";", "}", "else", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "java", "version", "string", "[", "\"", "+", "value", "+", "\"", "]", "could", "not", "be", "parsed", "\"", ")", ";", "}", "for", "(", "string", "component", ":", "numeric", "components", ")", "{", "version", "add", "(", "integer", "value", "of", "(", "component", ")", ")", ";", "}", "return", "new", "java", "version", "(", "version", ",", "pre", "part", ")", ";", "}" ]
[ "assert", "the", "request", "content", "type", "is", "compatible", "with", "the", "given", "content", "type", "as", "defined", "by", "{", "@", "link", "media", "type", "#", "is", "compatible", "with", "(", "media", "type", ")", "}" ]
[ "public", "request", "matcher", "content", "type", "compatible", "with", "(", "media", "type", "content", "type", ")", "{", "return", "request", "-", ">", "{", "media", "type", "actual", "content", "type", "=", "request", "get", "headers", "(", ")", "get", "content", "type", "(", ")", ";", "assert", "true", "(", "\"", "content", "type", "not", "set", "\"", ",", "actual", "content", "type", "!", "=", "null", ")", ";", "if", "(", "actual", "content", "type", "!", "=", "null", ")", "{", "assert", "true", "(", "\"", "content", "type", "[", "\"", "+", "actual", "content", "type", "+", "\"", "]", "is", "not", "compatible", "with", "[", "\"", "+", "content", "type", "+", "\"", "]", "\"", ",", "actual", "content", "type", "is", "compatible", "with", "(", "content", "type", ")", ")", ";", "}", "}", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "{", "@", "code", "type", "}", "is", "one", "of", "the", "nine", "primitive", "-", "wrapper", "types", ",", "such", "as", "{", "@", "link", "integer", "}" ]
[ "public", "static", "boolean", "is", "wrapper", "type", "(", "class", "<", "?", ">", "type", ")", "{", "return", "wrapper", "to", "primitive", "type", "contains", "key", "(", "check", "not", "null", "(", "type", ")", ")", ";", "}" ]
[ "this", "method", "is", "solely", "to", "allow", "us", "to", "create", "a", "mixture", "of", "dependencies", "in", "the", "bean", "definitions", "the", "dependencies", "don", "'", "t", "have", "any", "meaning", ",", "and", "don", "'", "t", "<", "b", ">", "do", "<", "b", ">", "anything" ]
[ "public", "void", "set", "dependencies", "(", "list", "<", "?", ">", "l", ")", "{", "}" ]
[ "parses", "the", "specified", "json", "string", "into", "a", "parse", "tree" ]
[ "public", "static", "json", "element", "parse", "reader", "(", "reader", "reader", ")", "throws", "json", "i", "o", "exception", ",", "json", "syntax", "exception", "{", "try", "{", "json", "reader", "json", "reader", "=", "new", "json", "reader", "(", "reader", ")", ";", "json", "element", "element", "=", "parse", "reader", "(", "json", "reader", ")", ";", "if", "(", "!", "element", "is", "json", "null", "(", ")", "&", "&", "json", "reader", "peek", "(", ")", "!", "=", "json", "token", "end", "document", ")", "{", "throw", "new", "json", "syntax", "exception", "(", "\"", "did", "not", "consume", "the", "entire", "document", "\"", ")", ";", "}", "return", "element", ";", "}", "catch", "(", "malformed", "json", "exception", "e", ")", "{", "throw", "new", "json", "syntax", "exception", "(", "e", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "json", "i", "o", "exception", "(", "e", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "throw", "new", "json", "syntax", "exception", "(", "e", ")", ";", "}", "}" ]
[ "compares", "the", "two", "specified", "{", "@", "code", "char", "}", "values", "the", "sign", "of", "the", "value", "returned", "is", "the", "same", "as", "that", "of", "{", "@", "code", "(", "(", "character", ")", "a", ")", "compare", "to", "(", "b", ")", "}", "<", "b", ">", "note", "for", "java", "7", "and", "later", ":", "<", "b", ">", "this", "method", "should", "be", "treated", "as", "deprecated", ";", "use", "the", "equivalent", "{", "@", "link", "character", "#", "compare", "}", "method", "instead" ]
[ "public", "static", "int", "compare", "(", "char", "a", ",", "char", "b", ")", "{", "return", "a", "-", "b", ";", "/", "/", "safe", "due", "to", "restricted", "range", "}" ]
[ "test", "the", "property", "'", "uuid", "'" ]
[ "public", "void", "uuid", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "uuid", "}" ]
[ "test", "the", "property", "'", "capital", "snake", "'" ]
[ "public", "void", "capital", "snake", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "capital", "snake", "}" ]
[ "variant", "of", "{", "@", "link", "#", "body", "to", "mono", "(", "class", ")", "}", "with", "a", "{", "@", "link", "parameterized", "type", "reference", "}" ]
[ "<", "t", ">", "mono", "<", "response", "entity", "<", "t", ">", ">", "to", "entity", "(", "parameterized", "type", "reference", "<", "t", ">", "body", "type", "reference", ")", ";" ]
[ "this", "method", "should", "enable", "certain", "rocks", "d", "b", "metrics", "to", "be", "forwarded", "to", "flink", "'", "s", "metrics", "reporter", "enabling", "these", "monitoring", "options", "may", "degrade", "rock", "d", "b", "performance", "and", "should", "be", "set", "with", "care" ]
[ "default", "rocks", "d", "b", "native", "metric", "options", "create", "native", "metrics", "options", "(", "rocks", "d", "b", "native", "metric", "options", "native", "metric", "options", ")", "{", "return", "native", "metric", "options", ";", "}" ]
[ "returns", "a", "value", "that", "represents", "a", "color" ]
[ "static", "public", "value", "color", "value", "(", "string", "name", ",", "color", "current", "value", ")", "{", "return", "new", "default", "value", "(", "name", ",", "effect", "util", "to", "string", "(", "current", "value", ")", ")", "{", "public", "void", "show", "dialog", "(", ")", "{", "color", "new", "color", "=", "j", "color", "chooser", "show", "dialog", "(", "null", ",", "\"", "choose", "a", "color", "\"", ",", "effect", "util", "from", "string", "(", "value", ")", ")", ";", "if", "(", "new", "color", "!", "=", "null", ")", "value", "=", "effect", "util", "to", "string", "(", "new", "color", ")", ";", "}", "public", "object", "get", "object", "(", ")", "{", "return", "effect", "util", "from", "string", "(", "value", ")", ";", "}", "}", ";", "}" ]
[ "remove", "self", "reference", "import" ]
[ "public", "void", "remove", "self", "reference", "import", "(", ")", "{", "for", "(", "codegen", "property", "cp", ":", "all", "vars", ")", "{", "if", "(", "cp", "=", "=", "null", ")", "{", "/", "/", "todo", "cp", "shouldn", "'", "t", "be", "null", "show", "a", "warning", "message", "instead", "}", "else", "{", "/", "/", "detect", "self", "import", "if", "(", "this", "classname", "equals", "ignore", "case", "(", "cp", "data", "type", ")", "|", "|", "(", "cp", "is", "container", "&", "&", "cp", "items", "!", "=", "null", "&", "&", "this", "classname", "equals", "ignore", "case", "(", "cp", "items", "data", "type", ")", ")", ")", "{", "this", "imports", "remove", "(", "this", "classname", ")", ";", "/", "/", "remove", "self", "import", "cp", "is", "self", "reference", "=", "true", ";", "}", "}", "}", "}" ]
[ "get", "the", "simple", "name", "of", "model", "class", "then", "change", "the", "case", "by", "the", "setting", "rule", "in", "litepal", "xml", "as", "table", "name" ]
[ "protected", "string", "get", "table", "name", "(", "class", "<", "?", ">", "model", "class", ")", "{", "return", "base", "utility", "change", "case", "(", "d", "b", "utility", "get", "table", "name", "by", "class", "name", "(", "model", "class", "get", "name", "(", ")", ")", ")", ";", "}" ]
[ "to", "test", "the", "collection", "format", "in", "query", "parameters" ]
[ "public", "api", "response", "<", "void", ">", "test", "query", "parameter", "collection", "format", "with", "http", "info", "(", "list", "<", "string", ">", "pipe", ",", "list", "<", "string", ">", "ioutil", ",", "list", "<", "string", ">", "http", ",", "list", "<", "string", ">", "url", ",", "list", "<", "string", ">", "context", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "test", "query", "parameter", "collection", "format", "validate", "before", "call", "(", "pipe", ",", "ioutil", ",", "http", ",", "url", ",", "context", ",", "null", ")", ";", "return", "local", "var", "api", "client", "execute", "(", "local", "var", "call", ")", ";", "}" ]
[ "create", "a", "new", "initialized", "{", "@", "link", "open", "ssl", "x", "5", "0", "9", "key", "manager", "factory", "}", "which", "loads", "its", "{", "@", "link", "private", "key", "}", "directly", "from", "an", "{", "@", "code", "open", "s", "s", "l", "engine", "}", "via", "the", "<", "a", "href", "=", "\"", "https", ":", "www", "openssl", "orgdocsman", "1", "1", "0crypto", "e", "n", "g", "i", "n", "e", "load", "private", "key", "html", "\"", ">", "engine", "load", "private", "key", "function" ]
[ "public", "static", "open", "ssl", "x", "5", "0", "9", "key", "manager", "factory", "new", "engine", "based", "(", "x", "5", "0", "9", "certificate", "[", "]", "certificate", "chain", ",", "string", "password", ")", "throws", "certificate", "exception", ",", "i", "o", "exception", ",", "key", "store", "exception", ",", "no", "such", "algorithm", "exception", ",", "unrecoverable", "key", "exception", "{", "key", "store", "store", "=", "new", "open", "ssl", "key", "store", "(", "certificate", "chain", "clone", "(", ")", ",", "false", ")", ";", "store", "load", "(", "null", ",", "null", ")", ";", "open", "ssl", "x", "5", "0", "9", "key", "manager", "factory", "factory", "=", "new", "open", "ssl", "x", "5", "0", "9", "key", "manager", "factory", "(", ")", ";", "factory", "init", "(", "store", ",", "password", "=", "=", "null", "?", "null", ":", "password", "to", "char", "array", "(", ")", ")", ";", "return", "factory", ";", "}" ]
[ "enable", "a", "bundle", "and", "notify", "listeners" ]
[ "public", "boolean", "enable", "(", "ghidra", "bundle", "bundle", ")", "{", "if", "(", "!", "bundle", "is", "enabled", "(", ")", ")", "{", "bundle", "set", "enabled", "(", "true", ")", ";", "fire", "bundle", "enablement", "change", "(", "bundle", ",", "true", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "delegates", "to", "the", "{", "@", "link", "log", "#", "error", "(", "object", ")", "}", "method", "of", "the", "underlying", "{", "@", "link", "log", "}", "instance" ]
[ "public", "void", "error", "(", "string", "msg", ")", "{", "logger", "error", "(", "msg", ")", ";", "}" ]
[ "sets", "the", "preference", "to", "execute", "the", "search", "defaults", "to", "randomize", "across", "shards", "can", "be", "set", "to", "{", "@", "code", "local", "}", "to", "prefer", "local", "shards", "or", "a", "custom", "value", ",", "which", "guarantees", "that", "the", "same", "order", "will", "be", "used", "across", "different", "requests" ]
[ "public", "multi", "get", "shard", "request", "preference", "(", "string", "preference", ")", "{", "this", "preference", "=", "preference", ";", "return", "this", ";", "}" ]
[ "get", "enum", "string", "required" ]
[ "public", "enum", "string", "required", "enum", "get", "enum", "string", "required", "(", ")", "{", "return", "enum", "string", "required", ";", "}" ]
[ "write", "map", "to", "stream", "with", "consistent", "order", "to", "make", "sure", "every", "map", "generated", "bytes", "order", "are", "same", "this", "method", "is", "compatible", "with", "{", "@", "code", "stream", "input", "read", "map", "}", "and", "{", "@", "code", "stream", "input", "read", "generic", "value", "}", "this", "method", "only", "will", "handle", "the", "map", "keys", "order", ",", "not", "maps", "contained", "within", "the", "map" ]
[ "public", "void", "write", "map", "with", "consistent", "order", "(", "@", "nullable", "map", "<", "string", ",", "?", "extends", "object", ">", "map", ")", "throws", "i", "o", "exception", "{", "if", "(", "map", "=", "=", "null", ")", "{", "write", "byte", "(", "(", "byte", ")", "-", "1", ")", ";", "return", ";", "}", "assert", "false", "=", "=", "(", "map", "instanceof", "linked", "hash", "map", ")", ";", "this", "write", "byte", "(", "(", "byte", ")", "10", ")", ";", "this", "write", "v", "int", "(", "map", "size", "(", ")", ")", ";", "iterator", "<", "?", "extends", "map", "entry", "<", "string", ",", "?", ">", ">", "iterator", "=", "map", "entry", "set", "(", ")", "stream", "(", ")", "sorted", "(", "(", "a", ",", "b", ")", "-", ">", "a", "get", "key", "(", ")", "compare", "to", "(", "b", "get", "key", "(", ")", ")", ")", "iterator", "(", ")", ";", "while", "(", "iterator", "has", "next", "(", ")", ")", "{", "map", "entry", "<", "string", ",", "?", ">", "next", "=", "iterator", "next", "(", ")", ";", "this", "write", "string", "(", "next", "get", "key", "(", ")", ")", ";", "this", "write", "generic", "value", "(", "next", "get", "value", "(", ")", ")", ";", "}", "}" ]
[ "unregister", "m", "bean" ]
[ "public", "void", "unregister", "(", "z", "k", "m", "bean", "info", "bean", ")", "{", "if", "(", "bean", "=", "=", "null", ")", "{", "return", ";", "}", "string", "path", "=", "map", "bean", "2", "path", "remove", "(", "bean", ")", ";", "try", "{", "unregister", "(", "path", ",", "bean", ")", ";", "}", "catch", "(", "j", "m", "exception", "e", ")", "{", "log", "warn", "(", "\"", "error", "during", "unregister", "of", "[", "{", "}", "]", "\"", ",", "bean", "get", "name", "(", ")", ",", "e", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "log", "error", "(", "\"", "unexpected", "exception", "during", "unregister", "of", "[", "{", "}", "]", "it", "should", "be", "reviewed", "and", "fixed", "\"", ",", "bean", "get", "name", "(", ")", ",", "t", ")", ";", "}", "}" ]
[ "one", "time", "operation", "that", "extracts", "the", "metadata", "fields", "from", "the", "ingest", "document", "and", "returns", "them", "metadata", "fields", "that", "used", "to", "be", "accessible", "as", "ordinary", "top", "level", "fields", "will", "be", "removed", "as", "part", "of", "this", "call" ]
[ "public", "map", "<", "metadata", ",", "object", ">", "extract", "metadata", "(", ")", "{", "map", "<", "metadata", ",", "object", ">", "metadata", "map", "=", "new", "enum", "map", "<", ">", "(", "metadata", "class", ")", ";", "for", "(", "metadata", "metadata", ":", "metadata", "values", "(", ")", ")", "{", "metadata", "map", "put", "(", "metadata", ",", "source", "and", "metadata", "remove", "(", "metadata", "get", "field", "name", "(", ")", ")", ")", ";", "}", "return", "metadata", "map", ";", "}" ]
[ "the", "search", "type", "to", "execute", ",", "defaults", "to", "{", "@", "link", "org", "elasticsearch", "action", "search", "search", "type", "#", "default", "}" ]
[ "public", "search", "request", "builder", "set", "search", "type", "(", "search", "type", "search", "type", ")", "{", "request", "search", "type", "(", "search", "type", ")", ";", "return", "this", ";", "}" ]
[ "returns", "a", "new", "instance", "with", "the", "same", "type", "and", "subtype", "as", "this", "instance", ",", "but", "without", "any", "parameters" ]
[ "public", "media", "type", "without", "parameters", "(", ")", "{", "return", "parameters", "is", "empty", "(", ")", "?", "this", ":", "create", "(", "type", ",", "subtype", ")", ";", "}" ]
[ "returns", "true", "if", "field", "corresponding", "to", "field", "i", "d", "is", "set", "(", "has", "been", "assigned", "a", "value", ")", "and", "false", "otherwise" ]
[ "public", "boolean", "is", "set", "(", "fields", "field", ")", "{", "if", "(", "field", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "switch", "(", "field", ")", "{", "case", "name", ":", "return", "is", "set", "name", "(", ")", ";", "}", "throw", "new", "illegal", "state", "exception", "(", ")", ";", "}" ]
[ "verifies", "that", "the", "option", "name", "does", "not", "contain", "consecutive", "delimiters" ]
[ "private", "void", "validate", "option", "name", "(", "string", "option", "name", ")", "{", "if", "(", "contains", "unquoted", "text", "(", "option", "name", ",", "illegal", "delimiter", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "name", "cannot", "contain", "consecutive", "delimiters", ":", "\"", "+", "option", "name", "+", "\"", "in", "options", "\"", "+", "name", ")", ";", "}", "if", "(", "option", "name", "starts", "with", "(", "delimiter", "string", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "name", "cannot", "start", "with", "a", "delimiter", ":", "\"", "+", "option", "name", "+", "\"", "in", "options", "\"", "+", "name", ")", ";", "}", "if", "(", "option", "name", "ends", "with", "(", "delimiter", "string", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "name", "cannot", "end", "with", "a", "delimiter", ":", "\"", "+", "option", "name", "+", "\"", "in", "options", "\"", "+", "name", ")", ";", "}", "}" ]
[ "sets", "the", "{", "@", "link", "http", "2", "settings", "}", "to", "use", "for", "the", "initial", "connection", "settings", "exchange" ]
[ "protected", "http", "2", "settings", "initial", "settings", "(", ")", "{", "return", "initial", "settings", ";", "}" ]
[ "test", "set", "permission", "for", "a", "daemon", "user" ]
[ "public", "void", "test", "set", "permission", "for", "daemon", "user", "(", ")", "throws", "throwable", "{", "/", "/", "hive", "user", "is", "already", "setup", "as", "daemon", "user", "/", "/", "this", "test", "validates", "the", "daemon", "user", "can", "do", "set", "permission", "test", "set", "permission", "(", "\"", "/", "test", "set", "permission", "for", "daemon", "user", "\"", ",", "null", ",", "null", ",", "\"", "hive", "\"", ",", "false", ",", "false", ")", ";", "}" ]
[ "declares", "the", "configuration", "fragments", "that", "are", "required", "by", "this", "rule", "for", "the", "specified", "configuration", "valid", "transition", "values", "are", "host", "for", "the", "host", "configuration", "and", "none", "for", "the", "target", "configuration", "in", "contrast", "to", "{", "@", "link", "#", "requires", "configuration", "fragments", "(", "configuration", "transition", ",", "collection", ")", "}", ",", "this", "method", "takes", "the", "names", "of", "fragments", "(", "as", "determined", "by", "{", "@", "link", "starlark", "builtin", "}", ")", "instead", "of", "their", "classes" ]
[ "public", "builder", "requires", "configuration", "fragments", "by", "starlark", "builtin", "name", "(", "configuration", "transition", "transition", ",", "collection", "<", "string", ">", "configuration", "fragment", "names", ")", "{", "/", "/", "we", "can", "relax", "this", "assumption", "if", "needed", "but", "it", "'", "s", "already", "sketchy", "to", "let", "a", "rule", "see", "more", "/", "/", "than", "its", "own", "configuration", "so", "we", "don", "'", "t", "want", "to", "casually", "proliferate", "this", "pattern", "preconditions", "check", "argument", "(", "transition", "=", "=", "no", "transition", "instance", "|", "|", "transition", "is", "host", "transition", "(", ")", ")", ";", "starlark", "required", "configuration", "fragments", "put", "all", "(", "transition", ",", "configuration", "fragment", "names", ")", ";", "return", "this", ";", "}" ]
[ "where", "the", "attribute", "was", "defined", "within", "the", "&", "lt", ";", "declare", "-", "styleable", "&", "gt", ";", "block", "<", "code", ">", "optional", "aapt", "pb", "source", "source", "=", "1", ";", "<", "code", ">" ]
[ "private", "void", "set", "source", "(", "com", "android", "aapt", "resources", "source", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "source", "=", "value", ";", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "1", ";", "}" ]
[ "main", "for", "the", "disk", "balancer", "command", "handling" ]
[ "public", "static", "void", "main", "(", "string", "[", "]", "argv", ")", "throws", "exception", "{", "disk", "balancer", "c", "l", "i", "shell", "=", "new", "disk", "balancer", "c", "l", "i", "(", "new", "hdfs", "configuration", "(", ")", ")", ";", "int", "res", "=", "0", ";", "try", "{", "res", "=", "tool", "runner", "run", "(", "shell", ",", "argv", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "string", "msg", "=", "string", "format", "(", "\"", "exception", "thrown", "while", "running", "%", "s", "\"", ",", "disk", "balancer", "c", "l", "i", "class", "get", "simple", "name", "(", ")", ")", ";", "log", "error", "(", "msg", ",", "ex", ")", ";", "res", "=", "1", ";", "}", "system", "exit", "(", "res", ")", ";", "}" ]
[ "submit", "both", "a", "guaranteed", "and", "an", "opportunistic", "container", ",", "each", "of", "which", "requires", "more", "resources", "than", "available", "at", "the", "node", ",", "and", "make", "sure", "they", "are", "both", "queued" ]
[ "public", "void", "test", "queue", "multiple", "containers", "(", ")", "throws", "exception", "{", "container", "manager", "start", "(", ")", ";", "list", "<", "start", "container", "request", ">", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "list", "add", "(", "start", "container", "request", "new", "instance", "(", "record", "factory", "new", "record", "instance", "(", "container", "launch", "context", "class", ")", ",", "create", "container", "token", "(", "create", "container", "id", "(", "0", ")", ",", "dummy", "rm", "identifier", ",", "context", "get", "node", "id", "(", ")", ",", "user", ",", "builder", "utils", "new", "resource", "(", "3072", ",", "1", ")", ",", "context", "get", "container", "token", "secret", "manager", "(", ")", ",", "null", ",", "execution", "type", "guaranteed", ")", ")", ")", ";", "list", "add", "(", "start", "container", "request", "new", "instance", "(", "record", "factory", "new", "record", "instance", "(", "container", "launch", "context", "class", ")", ",", "create", "container", "token", "(", "create", "container", "id", "(", "1", ")", ",", "dummy", "rm", "identifier", ",", "context", "get", "node", "id", "(", ")", ",", "user", ",", "builder", "utils", "new", "resource", "(", "3072", ",", "1", ")", ",", "context", "get", "container", "token", "secret", "manager", "(", ")", ",", "null", ",", "execution", "type", "opportunistic", ")", ")", ")", ";", "start", "containers", "request", "all", "requests", "=", "start", "containers", "request", "new", "instance", "(", "list", ")", ";", "container", "manager", "start", "containers", "(", "all", "requests", ")", ";", "thread", "sleep", "(", "5000", ")", ";", "/", "/", "ensure", "both", "containers", "are", "queued", "list", "<", "container", "id", ">", "stat", "list", "=", "new", "array", "list", "<", "container", "id", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "2", ";", "i", "+", "+", ")", "{", "stat", "list", "add", "(", "create", "container", "id", "(", "i", ")", ")", ";", "}", "get", "container", "statuses", "request", "stat", "request", "=", "get", "container", "statuses", "request", "new", "instance", "(", "stat", "list", ")", ";", "list", "<", "container", "status", ">", "container", "statuses", "=", "container", "manager", "get", "container", "statuses", "(", "stat", "request", ")", "get", "container", "statuses", "(", ")", ";", "for", "(", "container", "status", "status", ":", "container", "statuses", ")", "{", "assert", "assert", "equals", "(", "container", "sub", "state", "scheduled", ",", "status", "get", "container", "sub", "state", "(", ")", ")", ";", "}", "container", "scheduler", "container", "scheduler", "=", "container", "manager", "get", "container", "scheduler", "(", ")", ";", "/", "/", "ensure", "both", "containers", "are", "properly", "queued", "assert", "assert", "equals", "(", "2", ",", "container", "scheduler", "get", "num", "queued", "containers", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "container", "scheduler", "get", "num", "queued", "guaranteed", "containers", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "container", "scheduler", "get", "num", "queued", "opportunistic", "containers", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "metrics", "get", "queued", "opportunistic", "containers", "(", ")", ")", ";", "assert", "assert", "equals", "(", "1", ",", "metrics", "get", "queued", "guaranteed", "containers", "(", ")", ")", ";", "}" ]
[ "draws", "this", "actor", "'", "s", "debug", "lines", "if", "{", "@", "link", "#", "get", "debug", "(", ")", "}", "is", "true", "and", ",", "regardless", "of", "{", "@", "link", "#", "get", "debug", "(", ")", "}", ",", "calls", "{", "@", "link", "actor", "#", "draw", "debug", "(", "shape", "renderer", ")", "}", "on", "each", "child" ]
[ "public", "void", "draw", "debug", "(", "shape", "renderer", "shapes", ")", "{", "draw", "debug", "bounds", "(", "shapes", ")", ";", "if", "(", "transform", ")", "apply", "transform", "(", "shapes", ",", "compute", "transform", "(", ")", ")", ";", "draw", "debug", "children", "(", "shapes", ")", ";", "if", "(", "transform", ")", "reset", "transform", "(", "shapes", ")", ";", "}" ]
[ "resolve", "the", "index", "name", "to", "the", "index", "id", "specific", "to", "the", "repository", ",", "throwing", "an", "exception", "if", "the", "index", "could", "not", "be", "resolved" ]
[ "public", "index", "id", "resolve", "index", "id", "(", "final", "string", "index", "name", ")", "{", "return", "objects", "require", "non", "null", "(", "indices", "get", "(", "index", "name", ")", ",", "(", ")", "-", ">", "\"", "tried", "to", "resolve", "unknown", "index", "[", "\"", "+", "index", "name", "+", "\"", "]", "\"", ")", ";", "}" ]
[ "returns", "the", "adaption", "based", "on", "the", "amount", ",", "where", "a", "negative", "value", "decreases", "the", "window" ]
[ "public", "static", "adaptation", "adapt", "by", "(", "double", "amount", ")", "{", "if", "(", "amount", "=", "=", "0", ")", "{", "return", "hold", "(", ")", ";", "}", "else", "if", "(", "amount", "<", "0", ")", "{", "return", "decrease", "window", "(", "math", "abs", "(", "amount", ")", ")", ";", "}", "else", "{", "return", "increase", "window", "(", "amount", ")", ";", "}", "}" ]
[ "decode", "string", "representation", "of", "a", "value", "and", "check", "whether", "it", "'", "s", "encoded", "if", "the", "given", "string", "begins", "with", "0x", "or", "0x", ",", "it", "expresses", "a", "hexadecimal", "number", "if", "the", "given", "string", "begins", "with", "0s", "or", "0s", ",", "base", "6", "4", "encoding", "is", "expected", "if", "the", "given", "string", "is", "enclosed", "in", "double", "quotes", ",", "the", "inner", "string", "is", "treated", "as", "text", "otherwise", "the", "given", "string", "is", "treated", "as", "text" ]
[ "public", "static", "byte", "[", "]", "decode", "value", "(", "string", "value", ")", "throws", "i", "o", "exception", "{", "byte", "[", "]", "result", "=", "null", ";", "if", "(", "value", "!", "=", "null", ")", "{", "if", "(", "value", "length", "(", ")", ">", "=", "2", ")", "{", "string", "en", "=", "value", "substring", "(", "0", ",", "2", ")", ";", "if", "(", "value", "starts", "with", "(", "\"", "\\", "\"", "\"", ")", "&", "&", "value", "ends", "with", "(", "\"", "\\", "\"", "\"", ")", ")", "{", "value", "=", "value", "substring", "(", "1", ",", "value", "length", "(", ")", "-", "1", ")", ";", "result", "=", "value", "get", "bytes", "(", "\"", "utf", "-", "8", "\"", ")", ";", "}", "else", "if", "(", "en", "equals", "ignore", "case", "(", "hex", "prefix", ")", ")", "{", "value", "=", "value", "substring", "(", "2", ",", "value", "length", "(", ")", ")", ";", "try", "{", "result", "=", "hex", "decode", "hex", "(", "value", "to", "char", "array", "(", ")", ")", ";", "}", "catch", "(", "decoder", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "e", ")", ";", "}", "}", "else", "if", "(", "en", "equals", "ignore", "case", "(", "base64", "prefix", ")", ")", "{", "value", "=", "value", "substring", "(", "2", ",", "value", "length", "(", ")", ")", ";", "result", "=", "base", "6", "4", "decode", "(", "value", ")", ";", "}", "}", "if", "(", "result", "=", "=", "null", ")", "{", "result", "=", "value", "get", "bytes", "(", "\"", "utf", "-", "8", "\"", ")", ";", "}", "}", "return", "result", ";", "}" ]
[ "returns", "the", "index", "for", "which", "{", "@", "link", "#", "key", "at", "}", "would", "return", "the", "specified", "key", ",", "or", "a", "negative", "number", "if", "the", "specified", "key", "is", "not", "mapped" ]
[ "public", "int", "index", "of", "key", "(", "int", "key", ")", "{", "return", "binary", "search", "(", "m", "keys", ",", "m", "size", ",", "key", ")", ";", "}" ]
[ "add", "a", "list", "of", "event", "to", "the", "existing", "event", "list" ]
[ "public", "void", "add", "events", "(", "list", "<", "timeline", "event", ">", "events", ")", "{", "this", "events", "add", "all", "(", "events", ")", ";", "}" ]
[ "render", "the", "inner", "'", "{", "@", "code", "option", "}", "'", "tags", "using", "the", "supplied", "{", "@", "link", "collection", "}", "of", "objects", "as", "the", "source", "the", "value", "of", "the", "{", "@", "link", "#", "value", "property", "}", "field", "is", "used", "when", "rendering", "the", "'", "{", "@", "code", "value", "}", "'", "of", "the", "'", "{", "@", "code", "option", "}", "'", "and", "the", "value", "of", "the", "{", "@", "link", "#", "label", "property", "}", "property", "is", "used", "when", "rendering", "the", "label" ]
[ "private", "void", "do", "render", "from", "collection", "(", "collection", "<", "?", ">", "option", "collection", ",", "tag", "writer", "tag", "writer", ")", "throws", "jsp", "exception", "{", "for", "(", "object", "item", ":", "option", "collection", ")", "{", "bean", "wrapper", "wrapper", "=", "property", "accessor", "factory", "for", "bean", "property", "access", "(", "item", ")", ";", "object", "value", ";", "if", "(", "this", "value", "property", "!", "=", "null", ")", "{", "value", "=", "wrapper", "get", "property", "value", "(", "this", "value", "property", ")", ";", "}", "else", "if", "(", "item", "instanceof", "enum", ")", "{", "value", "=", "(", "(", "enum", "<", "?", ">", ")", "item", ")", "name", "(", ")", ";", "}", "else", "{", "value", "=", "item", ";", "}", "object", "label", "=", "(", "this", "label", "property", "!", "=", "null", "?", "wrapper", "get", "property", "value", "(", "this", "label", "property", ")", ":", "item", ")", ";", "render", "option", "(", "tag", "writer", ",", "item", ",", "value", ",", "label", ")", ";", "}", "}" ]
[ "any", "time", "that", "is", "not", "measured", "by", "a", "more", "specific", "component", ",", "out", "of", "{", "@", "code", "total", "time", "(", ")", "}" ]
[ "public", "duration", "other", "time", "(", ")", "{", "return", "total", "time", "minus", "(", "parse", "time", ")", "minus", "(", "network", "time", ")", "minus", "(", "queue", "time", ")", "minus", "(", "upload", "time", ")", "minus", "(", "setup", "time", ")", "minus", "(", "execution", "wall", "time", ")", "minus", "(", "fetch", "time", ")", "minus", "(", "retry", "time", "(", ")", ")", "minus", "(", "process", "outputs", "time", ")", ";", "}" ]
[ "get", "the", "underlying", "list" ]
[ "public", "list", "get", "list", "(", ")", "{", "return", "list", ";", "}" ]
[ "flag", "to", "indicate", "that", "a", "failed", "sql", "{", "@", "code", "drop", "}", "statement", "can", "be", "ignored", "this", "is", "useful", "for", "a", "non", "-", "embedded", "database", "whose", "sql", "dialect", "does", "not", "support", "an", "{", "@", "code", "if", "exists", "}", "clause", "in", "a", "{", "@", "code", "drop", "}", "statement", "the", "default", "is", "{", "@", "code", "false", "}", "so", "that", "if", "the", "populator", "runs", "accidentally", ",", "it", "will", "fail", "fast", "if", "a", "script", "starts", "with", "a", "{", "@", "code", "drop", "}", "statement" ]
[ "public", "void", "set", "ignore", "failed", "drops", "(", "boolean", "ignore", "failed", "drops", ")", "{", "this", "ignore", "failed", "drops", "=", "ignore", "failed", "drops", ";", "}" ]
[ "get", "petfind", "by", "status", ":", "finds", "pets", "by", "status", "multiple", "status", "values", "can", "be", "provided", "with", "comma", "separated", "strings" ]
[ "default", "response", "entity", "<", "list", "<", "pet", ">", ">", "find", "pets", "by", "status", "(", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "status", "values", "that", "need", "to", "be", "considered", "for", "filter", "\"", ",", "required", "=", "true", ",", "allowable", "values", "=", "\"", "available", ",", "pending", ",", "sold", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "status", "\"", ",", "required", "=", "true", ")", "list", "<", "string", ">", "status", ",", "@", "api", "ignore", "final", "pageable", "pageable", ")", "{", "return", "get", "delegate", "(", ")", "find", "pets", "by", "status", "(", "status", ",", "pageable", ")", ";", "}" ]
[ "do", "not", "use", "the", "buffer", "passed", "here", "after", ",", "as", "it", "may", "be", "manipulated", "directly" ]
[ "public", "static", "read", "buffer", "wrap", "unsafe", "(", "byte", "buffer", "buffer", ")", "{", "if", "(", "buffer", "has", "array", "(", ")", ")", "{", "int", "offset", "=", "buffer", "array", "offset", "(", ")", "+", "buffer", "position", "(", ")", ";", "return", "wrap", "(", "buffer", "array", "(", ")", ",", "offset", ",", "buffer", "remaining", "(", ")", ")", ";", "}", "return", "buffer", "order", "(", ")", "=", "=", "byte", "order", "big", "endian", "?", "new", "big", "endian", "byte", "buffer", "(", "buffer", ")", ":", "new", "little", "endian", "byte", "buffer", "(", "buffer", ")", ";", "}" ]
[ "add", "an", "input", "split", "to", "this", "collection" ]
[ "public", "void", "add", "(", "input", "split", "s", ")", "throws", "i", "o", "exception", "{", "if", "(", "null", "=", "=", "splits", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "uninitialized", "input", "split", "\"", ")", ";", "}", "if", "(", "fill", "=", "=", "splits", "length", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "too", "many", "splits", "\"", ")", ";", "}", "splits", "[", "fill", "+", "+", "]", "=", "s", ";", "totsize", "+", "=", "s", "get", "length", "(", ")", ";", "}" ]
[ "test", "that", "a", "path", "has", "files", "distributed", "across", "destinations", "evenly", "or", "not" ]
[ "private", "void", "test", "even", "distribution", "(", "final", "string", "path", ",", "final", "boolean", "even", ")", "throws", "i", "o", "exception", "{", "/", "/", "subcluster", "-", ">", "files", "map", "<", "string", ",", "set", "<", "string", ">", ">", "results", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "int", "f", "=", "0", ";", "f", "<", "10000", ";", "f", "+", "+", ")", "{", "string", "filename", "=", "path", "+", "\"", "/", "file", "\"", "+", "f", "+", "\"", "txt", "\"", ";", "path", "location", "destination", "=", "resolver", "get", "destination", "for", "path", "(", "filename", ")", ";", "remote", "location", "loc", "=", "destination", "get", "default", "location", "(", ")", ";", "assert", "equals", "(", "filename", ",", "loc", "get", "dest", "(", ")", ")", ";", "string", "ns", "id", "=", "loc", "get", "nameservice", "id", "(", ")", ";", "if", "(", "!", "results", "contains", "key", "(", "ns", "id", ")", ")", "{", "results", "put", "(", "ns", "id", ",", "new", "tree", "set", "<", ">", "(", ")", ")", ";", "}", "results", "get", "(", "ns", "id", ")", "add", "(", "filename", ")", ";", "}", "if", "(", "!", "even", ")", "{", "/", "/", "all", "files", "should", "be", "in", "one", "subcluster", "assert", "equals", "(", "1", ",", "results", "size", "(", ")", ")", ";", "}", "else", "{", "/", "/", "files", "should", "be", "distributed", "somewhat", "evenly", "assert", "equals", "(", "3", ",", "results", "size", "(", ")", ")", ";", "int", "count", "=", "0", ";", "for", "(", "set", "<", "string", ">", "files", ":", "results", "values", "(", ")", ")", "{", "count", "=", "count", "+", "files", "size", "(", ")", ";", "}", "int", "avg", "=", "count", "/", "results", "key", "set", "(", ")", "size", "(", ")", ";", "for", "(", "set", "<", "string", ">", "files", ":", "results", "values", "(", ")", ")", "{", "int", "files", "count", "=", "files", "size", "(", ")", ";", "/", "/", "check", "that", "the", "count", "in", "each", "namespace", "is", "within", "20", "%", "of", "avg", "assert", "true", "(", "files", "count", ">", "0", ")", ";", "assert", "true", "(", "math", "abs", "(", "files", "count", "-", "avg", ")", "<", "(", "avg", "/", "5", ")", ")", ";", "}", "}", "}" ]
[ "print", "a", "collection", "of", "parse", "trees", "to", "the", "debug", "printer" ]
[ "protected", "static", "void", "dbg", "print", "trees", "(", "collection", "<", "assembly", "parse", "result", ">", "trees", ")", "{", "dbg", "println", "(", "\"", "got", "\"", "+", "trees", "size", "(", ")", "+", "\"", "tree", "(", "s", ")", "\"", ")", ";", "set", "<", "string", ">", "suggestions", "=", "new", "tree", "set", "<", ">", "(", ")", ";", "for", "(", "assembly", "parse", "result", "result", ":", "trees", ")", "{", "if", "(", "!", "result", "is", "error", "(", ")", ")", "{", "assembly", "parse", "accept", "result", "acc", "=", "(", "assembly", "parse", "accept", "result", ")", "result", ";", "assembly", "parse", "tree", "node", "tree", "=", "acc", "get", "tree", "(", ")", ";", "tree", "print", "(", "dbg", ")", ";", "}", "else", "{", "assembly", "parse", "error", "result", "err", "=", "(", "assembly", "parse", "error", "result", ")", "result", ";", "dbg", "println", "(", "err", ")", ";", "if", "(", "err", "get", "buffer", "(", ")", "equals", "(", "\"", "\"", ")", ")", "{", "suggestions", "add", "all", "(", "err", "get", "suggestions", "(", ")", ")", ";", "}", "}", "}", "dbg", "println", "(", "\"", "proposals", ":", "\"", "+", "suggestions", ")", ";", "}" ]
[ "actual", "implementation", "of", "the", "binding", "process", ",", "working", "with", "the", "passed", "-", "in", "mutable", "property", "values", "instance" ]
[ "protected", "void", "do", "bind", "(", "mutable", "property", "values", "mpvs", ")", "{", "check", "allowed", "fields", "(", "mpvs", ")", ";", "check", "required", "fields", "(", "mpvs", ")", ";", "apply", "property", "values", "(", "mpvs", ")", ";", "}" ]
[ "fake", "endpoint", "for", "testing", "various", "parameters", "๊ฐ€์งœ", "์—”๋“œ", "ํฌ์ธํŠธ", "fake", "endpoint", "for", "testing", "various", "parameters", "๊ฐ€์งœ", "์—”๋“œ", "ํฌ์ธํŠธ" ]
[ "public", "void", "test", "endpoint", "parameters", "test", "(", ")", "throws", "i", "o", "exception", "{", "big", "decimal", "number", "=", "null", ";", "double", "double", "=", "null", ";", "string", "pattern", "without", "delimiter", "=", "null", ";", "byte", "[", "]", "byte", "=", "null", ";", "integer", "integer", "=", "null", ";", "integer", "int", "3", "2", "=", "null", ";", "long", "int", "6", "4", "=", "null", ";", "float", "float", "=", "null", ";", "string", "string", "=", "null", ";", "file", "binary", "=", "null", ";", "local", "date", "date", "=", "null", ";", "offset", "date", "time", "date", "time", "=", "null", ";", "string", "password", "=", "null", ";", "string", "param", "callback", "=", "null", ";", "api", "test", "endpoint", "parameters", "(", "number", ",", "double", ",", "pattern", "without", "delimiter", ",", "byte", ",", "integer", ",", "int", "3", "2", ",", "int", "6", "4", ",", "float", ",", "string", ",", "binary", ",", "date", ",", "date", "time", ",", "password", ",", "param", "callback", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "post", "-", "process", "<", "code", ">", "result", "<", "code", ">", "after", "search", "execution" ]
[ "void", "post", "process", "(", "query", "search", "result", "result", ")", "throws", "i", "o", "exception", "{", "}" ]
[ "writes", "bytes", "from", "a", "data", "input", "directly", "into", "the", "buffer" ]
[ "public", "void", "write", "(", "data", "input", "in", ",", "int", "length", ")", "throws", "i", "o", "exception", "{", "buffer", "write", "(", "in", ",", "length", ")", ";", "}" ]
[ "performs", "any", "pending", "maintenance", "operations", "needed", "by", "the", "cache" ]
[ "default", "void", "clean", "up", "(", ")", "{", "}" ]
[ "creates", "a", "new", "middleman", "action" ]
[ "public", "static", "action", "create", "(", "action", "registry", "env", ",", "action", "owner", "owner", ",", "nested", "set", "<", "artifact", ">", "inputs", ",", "artifact", "stamp", "file", ",", "string", "purpose", ",", "middleman", "type", "middleman", "type", ")", "{", "middleman", "action", "action", "=", "new", "middleman", "action", "(", "owner", ",", "inputs", ",", "immutable", "set", "of", "(", "stamp", "file", ")", ",", "purpose", ",", "middleman", "type", ")", ";", "env", "register", "action", "(", "action", ")", ";", "return", "action", ";", "}" ]
[ "returns", "an", "immutable", "sequence" ]
[ "public", "sequence", "build", "(", ")", "{", "return", "new", "sequence", "(", "values", "build", "(", ")", ")", ";", "}" ]
[ "serialize", "the", "dense", "vector", "to", "string", "the", "format", "of", "the", "returned", "is", "described", "at", "{", "@", "link", "#", "parse", "dense", "(", "string", ")", "}" ]
[ "public", "static", "string", "to", "string", "(", "dense", "vector", "dense", "vector", ")", "{", "string", "builder", "sbd", "=", "new", "string", "builder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dense", "vector", "data", "length", ";", "i", "+", "+", ")", "{", "sbd", "append", "(", "dense", "vector", "data", "[", "i", "]", ")", ";", "if", "(", "i", "<", "dense", "vector", "data", "length", "-", "1", ")", "{", "sbd", "append", "(", "element", "delimiter", ")", ";", "}", "}", "return", "sbd", "to", "string", "(", ")", ";", "}" ]
[ "convert", "a", "task", "id", "string", "to", "an", "actual", "task", "and", "handle", "all", "the", "error", "checking" ]
[ "public", "static", "task", "get", "task", "from", "task", "id", "string", "(", "string", "tid", ",", "job", "job", ")", "throws", "not", "found", "exception", "{", "task", "id", "task", "i", "d", ";", "task", "task", ";", "try", "{", "task", "i", "d", "=", "m", "r", "apps", "to", "task", "i", "d", "(", "tid", ")", ";", "}", "catch", "(", "yarn", "runtime", "exception", "e", ")", "{", "/", "/", "todo", ":", "after", "mapreduce", "-", "2793", "yarn", "runtime", "exception", "is", "probably", "not", "expected", "here", "/", "/", "anymore", "but", "keeping", "it", "for", "now", "just", "in", "case", "other", "stuff", "starts", "failing", "/", "/", "also", ",", "the", "webservice", "should", "ideally", "return", "bad", "request", "(", "http", ":", "400", ")", "when", "/", "/", "the", "id", "is", "malformed", "instead", "of", "not", "found", "(", "http", ":", "404", ")", "the", "webserver", "on", "/", "/", "top", "of", "which", "a", "m", "web", "services", "is", "built", "seems", "to", "automatically", "do", "that", "for", "/", "/", "unhandled", "exceptions", "throw", "new", "not", "found", "exception", "(", "e", "get", "message", "(", ")", ")", ";", "}", "catch", "(", "number", "format", "exception", "ne", ")", "{", "throw", "new", "not", "found", "exception", "(", "ne", "get", "message", "(", ")", ")", ";", "}", "catch", "(", "illegal", "argument", "exception", "e", ")", "{", "throw", "new", "not", "found", "exception", "(", "e", "get", "message", "(", ")", ")", ";", "}", "if", "(", "task", "i", "d", "=", "=", "null", ")", "{", "throw", "new", "not", "found", "exception", "(", "\"", "taskid", "\"", "+", "tid", "+", "\"", "not", "found", "or", "invalid", "\"", ")", ";", "}", "task", "=", "job", "get", "task", "(", "task", "i", "d", ")", ";", "if", "(", "task", "=", "=", "null", ")", "{", "throw", "new", "not", "found", "exception", "(", "\"", "task", "not", "found", "with", "id", "\"", "+", "tid", ")", ";", "}", "return", "task", ";", "}" ]