id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
4,700
all-4701
[ "helpers" ]
[ "func", "(", "peer", "*", "localPeer", ")", "broadcastPeerUpdate", "(", "peers", "...", "*", "Peer", ")", "{", "// Some tests run without a router. This should be fixed so", "// that the relevant part of Router can be easily run in the", "// context of a test, but that will involve ...
4,701
all-4702
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "CrashGpuProcessParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoBrowser18", "(", "&", "w", ",", "v",...
4,702
all-4703
[ "HasTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "ChangeDefinition", ")", "HasTitleSize", "(", ")", "bool", "{", "if", "c", "!=", "nil", "&&", "c", ".", "TitleSize", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
4,703
all-4704
[ "NumInstances", "returns", "the", "number", "of", "instances", "of", "the", "given", "module", "/", "version", ".", "If", "either", "argument", "is", "the", "empty", "string", "it", "means", "the", "default", "." ]
[ "func", "NumInstances", "(", "c", "context", ".", "Context", ",", "module", ",", "version", "string", ")", "(", "int", ",", "error", ")", "{", "req", ":=", "&", "pb", ".", "GetNumInstancesRequest", "{", "}", "\n", "if", "module", "!=", "\"", "\"", "{...
4,704
all-4705
[ "Token", "returns", "the", "token", "string", "stored", "in", "the", "request", "context", "or", "an", "empty", "string", "." ]
[ "func", "Token", "(", "r", "*", "http", ".", "Request", ")", "string", "{", "if", "token", ",", "ok", ":=", "r", ".", "<mask>", "(", ")", ".", "Value", "(", "TokenKey", ")", ".", "(", "string", ")", ";", "ok", "{", "return", "token", "\n", "}",...
4,705
all-4706
[ "UpdateServer", "partial", "update", "of", "server", "properties", "passed", "in", "as", "jason", "[]", "byte", "Returns", "Instance", "struct" ]
[ "func", "(", "c", "*", "Client", ")", "UpdateServer", "(", "dcid", "string", ",", "srvid", "string", ",", "props", "ServerProperties", ")", "(", "*", "Server", ",", "error", ")", "{", "url", ":=", "serverPath", "(", "dcid", ",", "srvid", ")", "+", "`...
4,706
all-4707
[ "WithTimeout", "adds", "the", "timeout", "to", "the", "delete", "apps", "app", "params" ]
[ "func", "(", "o", "*", "DeleteAppsAppParams", ")", "WithTimeout", "(", "timeout", "<mask>", ".", "Duration", ")", "*", "DeleteAppsAppParams", "{", "o", ".", "SetTimeout", "(", "timeout", ")", "\n", "return", "o", "\n", "}" ]
4,707
all-4708
[ "GetUrl", "returns", "the", "Url", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "b", "*", "Board", ")", "GetUrl", "(", ")", "<mask>", "{", "if", "b", "==", "nil", "||", "b", ".", "Url", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "b", ".", "Url", "\n", "}" ]
4,708
all-4709
[ "GetGroup", "retrieves", "a", "group", "from", "a", "domain", "with", "the", "given", "group", "name" ]
[ "func", "(", "dom", "*", "Domain", ")", "GetGroup", "(", "name", "string", ")", "(", "*", "Group", ",", "error", ")", "{", "var", "d", "dictionary", "\n", "err", ":=", "dom", ".", "cgp", ".", "<mask>", "(", "getGroup", "{", "Name", ":", "fmt", "....
4,709
all-4710
[ "Stability", ":", "***", "EXPERIMENTAL", "***", "Get", "a", "list", "of", "all", "active", "workers", "of", "a", "workerType", ".", "listWorkers", "allows", "a", "response", "to", "be", "filtered", "by", "quarantined", "and", "non", "quarantined", "workers", ...
[ "func", "(", "queue", "*", "Queue", ")", "ListWorkers", "(", "provisionerId", ",", "workerType", ",", "continuationToken", ",", "limit", ",", "quarantined", "string", ")", "(", "*", "ListWorkersResponse", ",", "error", ")", "{", "v", ":=", "url", ".", "Val...
4,710
all-4711
[ "draw", "a", "bitmap" ]
[ "func", "Bitmap", "(", "<mask>", "int32", ",", "height", "int32", ",", "xorig", "float32", ",", "yorig", "float32", ",", "xmove", "float32", ",", "ymove", "float32", ",", "bitmap", "*", "uint8", ")", "{", "C", ".", "glowBitmap", "(", "gpBitmap", ",", "...
4,711
all-4712
[ "ensureManifestIsLoaded", "sets", "s", ".", "cachedManifest", "and", "s", ".", "cachedManifestMIMEType", "ImageSource", "implementations", "are", "not", "required", "or", "expected", "to", "do", "any", "caching", "but", "because", "our", "signatures", "are", "“attac...
[ "func", "(", "s", "*", "dockerImageSource", ")", "ensureManifestIsLoaded", "(", "ctx", "context", ".", "Context", ")", "error", "{", "if", "s", ".", "cachedManifest", "!=", "nil", "{", "return", "nil", "\n", "}", "\n\n", "<mask>", ",", "err", ":=", "s", ...
4,712
all-4713
[ "RemoveFront", "returns", "the", "entry", "logically", "stored", "at", "the", "front", "of", "this", "list", "and", "removes", "it", "." ]
[ "func", "(", "list", "*", "LinkedList", ")", "RemoveFront", "(", ")", "(", "interface", "{", "}", ",", "bool", ")", "{", "list", ".", "key", ".", "Lock", "(", ")", "\n", "defer", "list", ".", "key", ".", "Unlock", "(", ")", "\n\n", "if", "list", ...
4,713
all-4714
[ "OpenCommits", "returns", "a", "collection", "of", "open", "commits" ]
[ "func", "OpenCommits", "(", "etcdClient", "*", "etcd", ".", "Client", ",", "etcdPrefix", "string", ")", "col", ".", "Collection", "{", "return", "<mask>", ".", "NewCollection", "(", "etcdClient", ",", "path", ".", "Join", "(", "etcdPrefix", ",", "openCommits...
4,714
all-4715
[ "GetCombinedStatus", "returns", "the", "latest", "statuses", "for", "a", "given", "ref", ".", "See", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "statuses", "/", "#get", "-", "the", "-", "combined", "-", "s...
[ "func", "(", "c", "*", "Client", ")", "GetCombinedStatus", "(", "org", ",", "repo", ",", "ref", "string", ")", "(", "*", "CombinedStatus", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "org", ",", "repo", ",", "ref", ")", "\n", ...
4,715
all-4716
[ "buildLayerInfosForCopy", "builds", "a", "LayerInfosForCopy", "return", "value", "based", "on", "manifestInfos", "from", "the", "original", "manifest", "but", "using", "layer", "data", "which", "we", "can", "actually", "produce", "—", "physicalInfos", "for", "non", ...
[ "func", "buildLayerInfosForCopy", "(", "manifestInfos", "[", "]", "manifest", ".", "LayerInfo", ",", "physicalInfos", "[", "]", "types", ".", "BlobInfo", ")", "(", "[", "]", "types", ".", "BlobInfo", ",", "error", ")", "{", "nextPhysical", ":=", "0", "\n",...
4,716
all-4717
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetVersionReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoBrowser9", "(", "&", ...
4,717
all-4718
[ "ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ThresholdIndexes" ]
[ "func", "(", "e", "ThresholdIndexes", ")", "ValidEnum", "(", "v", "int32", ")", "bool", "{", "_", ",", "<mask>", ":=", "thresholdIndexesMap", "[", "v", "]", "\n", "return", "ok", "\n", "}" ]
4,718
all-4719
[ "GetContainerFile", "retrieves", "the", "provided", "path", "from", "the", "container" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetContainerFile", "(", "containerName", "string", ",", "path", "string", ")", "(", "io", ".", "ReadCloser", ",", "*", "ContainerFileResponse", ",", "error", ")", "{", "// Prepare the HTTP request", "requestURL", ",", ...
4,719
all-4720
[ "/", "*", "Peer", "exchange", "GetSelection", "randomly", "selects", "some", "addresses", "(", "old", "&", "new", ")", ".", "Suitable", "for", "peer", "-", "exchange", "protocols", "." ]
[ "func", "(", "a", "*", "AddrBook", ")", "GetSelection", "(", ")", "[", "]", "*", "NetAddress", "{", "a", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "a", ".", "mtx", ".", "Unlock", "(", ")", "\n\n", "if", "a", ".", "size", "(", ")", "==...
4,720
all-4721
[ "CanAuthenticate", "makes", "a", "test", "request", "to", "CM", "1", ".", "5", "and", "returns", "nil", "if", "it", "is", "successful", "." ]
[ "func", "(", "t", "*", "tokenAuthenticator", ")", "CanAuthenticate", "(", "<mask>", "string", ")", "error", "{", "client", ":=", "httpclient", ".", "New", "(", ")", "\n", "return", "testAuth", "(", "t", ",", "client", ",", "host", ",", "false", ")", "\...
4,721
all-4722
[ "FromPath", "takes", "a", "relative", "folder", "path", "an", "object", "type", "and", "an", "optional", "supplied", "datacenter", "and", "returns", "the", "respective", "*", "object", ".", "Folder", "if", "it", "exists", ".", "The", "datacenter", "supplied", ...
[ "func", "FromPath", "(", "c", "*", "govmomi", ".", "Client", ",", "p", "string", ",", "ft", "VSphereFolderType", ",", "dc", "*", "object", ".", "Datacenter", ")", "(", "*", "object", ".", "Folder", ",", "error", ")", "{", "var", "fp", "string", "\n",...
4,722
all-4723
[ "PeerNameFromString", "parses", "PeerName", "from", "a", "generic", "string", "." ]
[ "func", "PeerNameFromString", "(", "nameStr", "string", ")", "(", "PeerName", ",", "error", ")", "{", "if", "_", ",", "err", ":=", "<mask>", ".", "DecodeString", "(", "nameStr", ")", ";", "err", "!=", "nil", "{", "return", "UnknownPeerName", ",", "err", ...
4,723
all-4724
[ "verifyTasksMetadata", "verifies", "the", "number", "of", "tasks", "in", "tasks", "metadata", "." ]
[ "func", "verifyTasksMetadata", "(", "tasksMetadataRawMsg", "json", ".", "RawMessage", ")", "error", "{", "<mask>", "tasksMetadataMap", "map", "[", "string", "]", "json", ".", "RawMessage", "\n", "json", ".", "Unmarshal", "(", "tasksMetadataRawMsg", ",", "&", "ta...
4,724
all-4725
[ "nolint", ":", "deadcode", "used", "from", "unit", "test" ]
[ "func", "instanceToInstanceSummary", "(", "<mask>", "*", "sd", ".", "Instance", ")", "*", "sd", ".", "InstanceSummary", "{", "if", "instance", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "return", "&", "sd", ".", "InstanceSummary", "{", "Id", "...
4,725
all-4726
[ "Stability", ":", "***", "EXPERIMENTAL", "***", "Return", "a", "list", "of", "recent", "errors", "encountered", "See", "https", ":", "//", "docs", ".", "taskcluster", ".", "net", "/", "reference", "/", "core", "/", "ec2", "-", "manager", "/", "api", "-",...
[ "func", "(", "eC2Manager", "*", "EC2Manager", ")", "GetRecentErrors", "(", ")", "(", "*", "Errors", ",", "error", ")", "{", "<mask>", ":=", "tcclient", ".", "Client", "(", "*", "eC2Manager", ")", "\n", "responseObject", ",", "_", ",", "err", ":=", "(",...
4,726
all-4727
[ "Do", "executes", "Page", ".", "waitForDebugger", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "WaitForDebuggerParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandWaitForDebugger", ",", "nil", ",", "nil", ")", "\n", "}" ]
4,727
all-4728
[ "Recover", "converts", "a", "seedphrase", "to", "a", "private", "key", "and", "persists", "it", "encrypted", "with", "the", "given", "passphrase", ".", "Functions", "like", "Create", "but", "seedphrase", "is", "input", "not", "output", "." ]
[ "func", "(", "kb", "dbKeybase", ")", "Recover", "(", "name", ",", "passphrase", ",", "seedphrase", "string", ")", "(", "Info", ",", "error", ")", "{", "words", ":=", "strings", ".", "Split", "(", "strings", ".", "TrimSpace", "(", "seedphrase", ")", ","...
4,728
all-4729
[ "title", ":", "webhook", "info", "path", ":", "/", "events", "/", "webhooks", "/", "{", "name", "}", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "Get", "webhook", "404", ":", "Not", "found", "401", ...
[ "func", "webhookInfo", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "<mask>", ")", "error", "{", "webhookName", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", "(", "\"", "\"", ...
4,729
all-4730
[ "ListenAndServe", "serves", "HTTP", "requests", "from", "the", "given", "TCP4", "addr", ".", "Pass", "custom", "listener", "to", "Serve", "if", "you", "need", "listening", "on", "non", "-", "TCP4", "media", "such", "as", "IPv6", ".", "Accepted", "connections...
[ "func", "(", "s", "*", "Server", ")", "ListenAndServe", "(", "addr", "string", ")", "error", "{", "ln", ",", "err", ":=", "net", ".", "Listen", "(", "\"", "\"", ",", "addr", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", ...
4,730
all-4731
[ "CommitWith", "acts", "like", "Commit", "but", "takes", "a", "callback", "which", "gets", "run", "via", "a", "goroutine", "to", "avoid", "blocking", "this", "function", ".", "The", "callback", "is", "guaranteed", "to", "run", "so", "it", "is", "safe", "to"...
[ "func", "(", "txn", "*", "Txn", ")", "CommitWith", "(", "cb", "func", "(", "error", ")", ")", "{", "txn", ".", "commitPrecheck", "(", ")", "// Precheck before discarding txn.", "\n", "defer", "txn", ".", "Discard", "(", ")", "\n\n", "if", "cb", "==", "...
4,731
all-4732
[ "WriteIndented", "indents", "all", "lines", "four", "spaces", "." ]
[ "func", "WriteIndented", "(", "w", "io", ".", "<mask>", ",", "b", "[", "]", "byte", ")", "error", "{", "return", "WriteIndentedN", "(", "w", ",", "b", ",", "4", ")", "\n", "}" ]
4,732
all-4733
[ "GetTooltipText", "is", "a", "wrapper", "around", "gtk_status_icon_get_tooltip_text", "()" ]
[ "func", "(", "v", "*", "StatusIcon", ")", "GetTooltipText", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_status_icon_get_tooltip_text", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", ...
4,733
all-4734
[ "<tagged", "-", "name", ">", "::", "=", "<name", ">", "B", "<source", "-", "name", ">" ]
[ "func", "(", "st", "*", "state", ")", "taggedName", "(", "a", "AST", ")", "AST", "{", "for", "len", "(", "st", ".", "str", ")", ">", "0", "&&", "st", ".", "str", "[", "0", "]", "==", "'B'", "{", "st", ".", "advance", "(", "1", ")", "\n", ...
4,734
all-4735
[ "MergePattern", "add", "entry", "patterns", "with", "given", "pattern", "strings", ".", "If", "a", "pattern", "already", "exists", "on", "the", "entry", "it", "adds", "remaining", "patterns", "to", "the", "existing", "entry", "." ]
[ "func", "(", "e", "*", "Entry", ")", "MergePatterns", "(", "patterns", "[", "]", "string", ")", "*", "Entry", "{", "pat", ",", "<mask>", ":=", "PeekNextPattern", "(", "patterns", ")", "\n", "if", "child", ":=", "e", ".", "getChildEntry", "(", "pat", ...
4,735
all-4736
[ "Execute", "-", "updates", "space", "configuration" ]
[ "func", "(", "c", "*", "UpdateSpaceConfigurationCommand", ")", "Execute", "(", "args", "[", "]", "string", ")", "error", "{", "c", ".", "initConfig", "(", ")", "\n", "spaceConfig", ",", "err", ":=", "c", ".", "ConfigManager", ".", "GetSpaceConfig", "(", ...
4,736
all-4737
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "Location", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30", "(", "&", "w", ",", "v", ")", "\n"...
4,737
all-4738
[ "String", "returns", "a", "human", "readable", "string", "representation", "of", "this", "object" ]
[ "func", "(", "c", "*", "ContainerStateChange", ")", "String", "(", ")", "string", "{", "res", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "c", ".", "TaskArn", ",", "c", ".", "ContainerName", ",", "c", ".", "Status", ".", "String", "(", ")", ...
4,738
all-4739
[ "TryReusingBlob", "checks", "whether", "the", "transport", "already", "contains", "or", "can", "efficiently", "reuse", "a", "blob", "and", "if", "so", "applies", "it", "to", "the", "current", "destination", "(", "e", ".", "g", ".", "if", "the", "blob", "is...
[ "func", "(", "d", "*", "ociArchiveImageDestination", ")", "TryReusingBlob", "(", "ctx", "context", ".", "Context", ",", "<mask>", "types", ".", "BlobInfo", ",", "cache", "types", ".", "BlobInfoCache", ",", "canSubstitute", "bool", ")", "(", "bool", ",", "typ...
4,739
all-4740
[ "Iterator", "returns", "a", "new", "Iterator", "to", "iterate", "through", "values", "in", "the", "set", ".", "Each", "call", "to", "this", "method", "creates", "a", "new", "Iterator", ".", "Therefore", "the", "returned", "Iterator", "should", "be", "assigne...
[ "func", "(", "s", "*", "Set", ")", "Iterator", "(", ")", "Iterator", "{", "s", ".", "RLock", "(", ")", "\n", "defer", "s", ".", "RUnlock", "(", ")", "\n", "iterChan", ":=", "make", "(", "chan", "interface", "{", "}", ",", "len", "(", "s", ".", ...
4,740
all-4741
[ "CancelableWait", "waits", "for", "an", "operation", "and", "cancel", "it", "on", "SIGINT", "/", "SIGTERM" ]
[ "func", "CancelableWait", "(", "rawOp", "interface", "{", "}", ",", "progress", "*", "ProgressRenderer", ")", "error", "{", "var", "op", "lxd", ".", "Operation", "\n", "var", "rop", "lxd", ".", "RemoteOperation", "\n\n", "// Check what type of operation we're deal...
4,741
all-4742
[ "NewBranch", "creates", "a", "pfs", ".", "Branch" ]
[ "func", "NewBranch", "(", "repoName", "string", ",", "branchName", "string", ")", "*", "pfs", ".", "Branch", "{", "return", "&", "pfs", ".", "Branch", "{", "Repo", ":", "NewRepo", "(", "repoName", ")", ",", "<mask>", ":", "branchName", ",", "}", "\n", ...
4,742
all-4743
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "StopAllWorkersParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoServiceworker4", "(", "&", "w", ",", "v...
4,743
all-4744
[ "IconViewNewWithModel", "is", "a", "wrapper", "around", "gtk_icon_view_new_with_model", "()", "." ]
[ "func", "IconViewNewWithModel", "(", "<mask>", "ITreeModel", ")", "(", "*", "IconView", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_icon_view_new_with_model", "(", "model", ".", "toTreeModel", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "retu...
4,744
all-4745
[ "SuggestCodeChange", "returns", "code", "suggestions", "for", "a", "given", "lint", ".", "Problem", "Returns", "empty", "string", "if", "no", "suggestion", "can", "be", "given" ]
[ "func", "SuggestCodeChange", "(", "p", "lint", ".", "Problem", ")", "string", "{", "var", "suggestion", "=", "\"", "\"", "\n", "for", "regex", ",", "handler", ":=", "range", "lintHandlersMap", "{", "matches", ":=", "regex", ".", "FindStringSubmatch", "(", ...
4,745
all-4746
[ "DateFormat", "is", "used", "to", "format", "the", "timestamp", "." ]
[ "func", "DateFormat", "(", "f", "string", ")", "Option", "{", "return", "Option", "{", "func", "(", "o", "*", "<mask>", ")", "{", "o", ".", "dateFormat", "=", "f", "\n", "}", "}", "\n", "}" ]
4,746
all-4747
[ "Count", "iterates", "over", "a", "list", "and", "keeps", "a", "running", "tally", "of", "the", "number", "of", "elements", "satisfy", "a", "predicate", "." ]
[ "func", "(", "iter", "Enumerator", ")", "Count", "(", "p", "Predicate", ")", "int", "{", "tally", ":=", "0", "\n", "for", "entry", ":=", "range", "iter", "{", "if", "p", "(", "<mask>", ")", "{", "tally", "++", "\n", "}", "\n", "}", "\n", "return"...
4,747
all-4748
[ "SetHashBytes", "sets", "URI", "hash", "." ]
[ "func", "(", "u", "*", "URI", ")", "SetHashBytes", "(", "hash", "[", "]", "byte", ")", "{", "u", ".", "hash", "=", "append", "(", "u", ".", "<mask>", "[", ":", "0", "]", ",", "hash", "...", ")", "\n", "}" ]
4,748
all-4749
[ "GetAll", "returns", "all", "registered", "error", "descriptors" ]
[ "func", "(", "r", "*", "registry", ")", "GetAll", "(", ")", "[", "]", "*", "ErrDescriptor", "{", "r", ".", "RLock", "(", ")", "\n", "defer", "r", ".", "RUnlock", "(", ")", "\n\n", "res", ":=", "make", "(", "[", "]", "*", "ErrDescriptor", ",", "...
4,749
all-4750
[ "OpCompact", "wraps", "slice", "CompactOption", "to", "create", "a", "CompactOp", "." ]
[ "func", "OpCompact", "(", "rev", "int64", ",", "opts", "...", "CompactOption", ")", "CompactOp", "{", "ret", ":=", "CompactOp", "{", "revision", ":", "rev", "}", "\n", "<mask>", ".", "applyCompactOpts", "(", "opts", ")", "\n", "return", "ret", "\n", "}" ...
4,750
all-4751
[ "DeleteComment", "deletes", "a", "comment", "." ]
[ "func", "(", "f", "*", "FakeClient", ")", "DeleteComment", "(", "owner", ",", "repo", "string", ",", "ID", "int", ")", "error", "{", "f", ".", "IssueCommentsDeleted", "=", "append", "(", "f", ".", "IssueCommentsDeleted", ",", "fmt", ".", "Sprintf", "(", ...
4,751
all-4752
[ "Using", "the", "classic", "API", "posts", "a", "count", "to", "a", "stat", "using", "DefaultReporter", "." ]
[ "func", "PostCount", "(", "statKey", ",", "userKey", "string", ",", "<mask>", "int", ")", "error", "{", "return", "DefaultReporter", ".", "PostCount", "(", "statKey", ",", "userKey", ",", "count", ")", "\n", "}" ]
4,752
all-4753
[ "DecodeUnverifiedToken", "decodes", "a", "token", "into", "the", "provided", "UnverifiedToken", "." ]
[ "func", "DecodeUnverifiedToken", "(", "buf", "[", "]", "byte", ",", "ut", "*", "UnverifiedToken", ")", "error", "{", "b", ":=", "bytes", ".", "Split", "(", "buf", ",", "tokenSep", ")", "\n", "if", "len", "(", "b", ")", "!=", "3", "{", "return", "Er...
4,753
all-4754
[ "Initialize", "the", "gateway", "creating", "a", "new", "raft", "factory", "and", "gRPC", "server", "(", "if", "this", "node", "is", "a", "database", "node", ")", "and", "a", "gRPC", "dialer", "." ]
[ "func", "(", "g", "*", "Gateway", ")", "init", "(", ")", "error", "{", "logger", ".", "Debugf", "(", "\"", "\"", ")", "\n", "raft", ",", "err", ":=", "newRaft", "(", "g", ".", "db", ",", "g", ".", "cert", ",", "g", ".", "options", ".", "laten...
4,754
all-4755
[ "Read", "-", "satisfies", "reader", "interface" ]
[ "func", "(", "r", "*", "MockReadWriteCloser", ")", "Read", "(", "p", "[", "]", "<mask>", ")", "(", "n", "int", ",", "err", "error", ")", "{", "if", "err", "=", "r", ".", "ReadErr", ";", "err", "==", "nil", "{", "r", ".", "BytesRead", "=", "p", ...
4,755
all-4756
[ "SetLink", "is", "a", "wrapper", "around", "g_menu_item_Set_link", "()", "." ]
[ "func", "(", "v", "*", "MenuItem", ")", "SetLink", "(", "link", "string", ",", "<mask>", "*", "MenuModel", ")", "{", "cstr1", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "link", ")", ")", "\n", "defer", "C", ".", "fre...
4,756
all-4757
[ "Set", "is", "required", "for", "kingpin", "interfaces", "to", "allow", "command", "line", "params", "to", "be", "set", "to", "our", "map", "datatype" ]
[ "func", "(", "o", "*", "MapByteOption", ")", "Set", "(", "value", "string", ")", "error", "{", "parts", ":=", "stringMapRegex", ".", "Split", "(", "<mask>", ",", "2", ")", "\n", "if", "len", "(", "parts", ")", "!=", "2", "{", "return", "fmt", ".", ...
4,757
all-4758
[ "insert", "the", "cursor", "rune", "array", "into", "r", "before", "the", "provided", "index" ]
[ "func", "format", "(", "a", "[", "]", "rune", ",", "c", "*", "Cursor", ")", "string", "{", "i", ":=", "c", ".", "Position", "\n", "var", "b", "[", "]", "rune", "\n\n", "out", ":=", "<mask>", "(", "[", "]", "rune", ",", "0", ")", "\n", "if", ...
4,758
all-4759
[ "CheckoutNewBranch", "does", "git", "checkout", "-", "b", "." ]
[ "func", "(", "lg", "*", "LocalGit", ")", "CheckoutNewBranch", "(", "org", ",", "repo", ",", "branch", "<mask>", ")", "error", "{", "rdir", ":=", "filepath", ".", "Join", "(", "lg", ".", "Dir", ",", "org", ",", "repo", ")", "\n", "return", "runCmd", ...
4,759
all-4760
[ "Initialize", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockTaskResource", ")", "Initialize", "(", "arg0", "*", "taskresource", ".", "ResourceFields", ",", "arg1", ",", "arg2", "<mask>", ".", "TaskStatus", ")", "{", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ",", "ar...
4,760
all-4761
[ "GetMetricOk", "returns", "a", "tuple", "with", "the", "Metric", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetProcessQuery", ")", "GetMetricOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Metric", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "...
4,761
all-4762
[ "hash", "returns", "an", "identifying", "hash", "for", "the", "target", "." ]
[ "func", "(", "t", "*", "Target", ")", "hash", "(", ")", "uint64", "{", "h", ":=", "fnv", ".", "New64a", "(", ")", "\n", "h", ".", "Write", "(", "[", "]", "byte", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "t", ".", "labels", ".", "Ha...
4,762
all-4763
[ "walk", "walks", "through", "the", "revisions", "in", "the", "generation", "in", "descending", "order", ".", "It", "passes", "the", "revision", "to", "the", "given", "function", ".", "walk", "returns", "until", ":", "1", ".", "it", "finishes", "walking", "...
[ "func", "(", "g", "*", "generation", ")", "walk", "(", "f", "func", "(", "rev", "revision", ")", "bool", ")", "int", "{", "l", ":=", "len", "(", "g", ".", "revs", ")", "\n", "for", "i", ":=", "range", "g", ".", "revs", "{", "<mask>", ":=", "f...
4,763
all-4764
[ "SettingsSchemaSourceNewFromDirectory", "()", "is", "a", "wrapper", "around", "g_settings_schema_source_new_from_directory", "()", "." ]
[ "func", "SettingsSchemaSourceNewFromDirectory", "(", "dir", "string", ",", "parent", "*", "SettingsSchemaSource", ",", "trusted", "bool", ")", "*", "SettingsSchemaSource", "{", "cstr", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "d...
4,764
all-4765
[ "buildFunction", "builds", "SSA", "code", "for", "the", "body", "of", "function", "fn", ".", "Idempotent", "." ]
[ "func", "(", "b", "*", "builder", ")", "buildFunction", "(", "fn", "*", "Function", ")", "{", "if", "fn", ".", "Blocks", "!=", "nil", "{", "return", "// building already started", "\n", "}", "\n\n", "var", "recvField", "*", "ast", ".", "FieldList", "\n",...
4,765
all-4766
[ "Unzip", "unzips", "archive", "to", "target", "location" ]
[ "func", "Unzip", "(", "archive", ",", "target", "string", ")", "error", "{", "// fmt.Println(\"Unzip archive \", target)", "reader", ",", "err", ":=", "zip", ".", "OpenReader", "(", "archive", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", ...
4,766
all-4767
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetScriptExecutionDisabledParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoEmulation5", "(", "&", "w", "...
4,767
all-4768
[ "dudupe", "removes", "duplicate", "characters", "from", "s", "." ]
[ "func", "dedupe", "(", "s", "[", "]", "string", ")", "[", "]", "string", "{", "var", "out", "[", "]", "string", "\n", "m", ":=", "make", "(", "map", "[", "string", "]", "bool", ")", "\n\n", "for", "_", ",", "char", ":=", "range", "s", "{", "i...
4,768
all-4769
[ "OperationsUUIDs", "returns", "the", "UUIDs", "of", "all", "operations", "associated", "with", "this", "node", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "OperationsUUIDs", "(", ")", "(", "[", "]", "string", ",", "error", ")", "{", "stmt", ":=", "\"", "\"", "\n", "return", "query", ".", "SelectStrings", "(", "c", ".", "<mask>", ",", "stmt", ",", "c", ".", "...
4,769
all-4770
[ "NewIstioClient", "returns", "a", "new", "Istio", "client", "object", ".", "It", "uses", "the", "configured", "KubeConfig", "attribute", "to", "connect", "to", "the", "cluster", ".", "If", "KubeConfig", "isn", "t", "provided", "it", "defaults", "to", "using", ...
[ "func", "NewIstioClient", "(", "kubeConfig", "string", ")", "(", "*", "istiocrd", ".", "Client", ",", "error", ")", "{", "if", "kubeConfig", "==", "\"", "\"", "{", "if", "_", ",", "err", ":=", "os", ".", "Stat", "(", "clientcmd", ".", "RecommendedHomeF...
4,770
all-4771
[ "ScaleSimple", "is", "a", "wrapper", "around", "gdk_pixbuf_scale_simple", "()", "." ]
[ "func", "(", "v", "*", "Pixbuf", ")", "ScaleSimple", "(", "destWidth", ",", "destHeight", "int", ",", "interpType", "InterpType", ")", "(", "*", "Pixbuf", ",", "error", ")", "{", "c", ":=", "C", ".", "gdk_pixbuf_scale_simple", "(", "v", ".", "native", ...
4,771
all-4772
[ "MacroName", "returns", "the", "name", "of", "the", "macro", "function", "that", "this", "file", "is", "editing", "or", "an", "empty", "string", "if", "a", "macro", "function", "is", "not", "being", "edited", "." ]
[ "func", "(", "f", "*", "File", ")", "MacroName", "(", ")", "string", "{", "if", "f", ".", "function", "!=", "nil", "&&", "f", ".", "function", ".", "stmt", "!=", "nil", "{", "return", "f", ".", "function", ".", "stmt", ".", "<mask>", "\n", "}", ...
4,772
all-4773
[ "PrintSettingsNewFromKeyFile", "()", "is", "a", "wrapper", "around", "gtk_print_settings_new_from_key_file", "()", ".", "LoadFile", "()", "is", "a", "wrapper", "around", "gtk_print_settings_load_file", "()", "." ]
[ "func", "(", "ps", "*", "PrintSettings", ")", "LoadFile", "(", "name", "string", ")", "error", "{", "cstr", ":=", "C", ".", "CString", "(", "name", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", ...
4,773
all-4774
[ "DockerStateToState", "converts", "the", "container", "status", "from", "docker", "to", "status", "recognized", "by", "the", "agent" ]
[ "func", "DockerStateToState", "(", "state", "*", "types", ".", "ContainerState", ")", "apicontainerstatus", ".", "ContainerStatus", "{", "if", "state", ".", "Running", "{", "return", "apicontainerstatus", ".", "ContainerRunning", "\n", "}", "\n\n", "if", "state", ...
4,774
all-4775
[ "Endpoints", "returns", "endpoint", "objects", "for", "each", "host", "-", "target", "combination", "that", "should", "be", "processed", ".", "Retrieves", "all", "ingress", "resources", "on", "all", "namespaces" ]
[ "func", "(", "sc", "*", "ingressSource", ")", "Endpoints", "(", ")", "(", "[", "]", "*", "endpoint", ".", "Endpoint", ",", "error", ")", "{", "ingresses", ",", "err", ":=", "sc", ".", "ingressInformer", ".", "Lister", "(", ")", ".", "Ingresses", "(",...
4,775
all-4776
[ "Errorf", "outputs", "formatted", "Error", "log" ]
[ "func", "(", "g", "*", "Glg", ")", "Errorf", "(", "<mask>", "string", ",", "val", "...", "interface", "{", "}", ")", "error", "{", "return", "g", ".", "out", "(", "ERR", ",", "format", ",", "val", "...", ")", "\n", "}" ]
4,776
all-4777
[ "ArgWriter", "returns", "an", "ArgWriter", "to", "write", "an", "argument", ".", "The", "ArgWriter", "will", "handle", "fragmentation", "as", "needed", ".", "Once", "the", "argument", "is", "written", "the", "ArgWriter", "must", "be", "closed", "." ]
[ "func", "(", "w", "*", "fragmentingWriter", ")", "ArgWriter", "(", "last", "bool", ")", "(", "ArgWriter", ",", "error", ")", "{", "if", "err", ":=", "w", ".", "BeginArgument", "(", "<mask>", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", ...
4,777
all-4778
[ "NewUUID", "returns", "a", "Version", "1", "UUID", "based", "on", "the", "current", "NodeID", "and", "clock", "sequence", "and", "the", "current", "time", ".", "If", "the", "NodeID", "has", "not", "been", "set", "by", "SetNodeID", "or", "SetNodeInterface", ...
[ "func", "NewUUID", "(", ")", "(", "UUID", ",", "error", ")", "{", "nodeMu", ".", "Lock", "(", ")", "\n", "if", "nodeID", "==", "zeroID", "{", "setNodeInterface", "(", "\"", "\"", ")", "\n", "}", "\n", "nodeMu", ".", "Unlock", "(", ")", "\n\n", "v...
4,778
all-4779
[ "String", "returns", "the", "name", "of", "e" ]
[ "func", "(", "e", "AccountFlags", ")", "<mask>", "(", ")", "string", "{", "name", ",", "_", ":=", "accountFlagsMap", "[", "int32", "(", "e", ")", "]", "\n", "return", "name", "\n", "}" ]
4,779
all-4780
[ "httpRequest", "makes", "a", "request", "to", "the", "cluster", "-", "use", "this", "when", "you", "want", "the", "client", "to", "choose", "a", "host", "and", "it", "doesn", "t", "matter", "if", "the", "request", "goes", "to", "a", "specific", "host" ]
[ "func", "(", "c", "*", "Client", ")", "httpRequest", "(", "method", "string", ",", "path", "string", ",", "data", "[", "]", "byte", ",", "headers", "map", "[", "string", "]", "string", ",", "useCoordinator", "bool", ")", "(", "*", "http", ".", "Respo...
4,780
all-4781
[ "WithFunctions", "adds", "function", "map", "to", "templates", "." ]
[ "func", "WithFunctions", "(", "fns", "template", ".", "FuncMap", ")", "Option", "{", "return", "func", "(", "o", "*", "<mask>", ")", "{", "for", "name", ",", "fn", ":=", "range", "fns", "{", "o", ".", "functions", "[", "name", "]", "=", "fn", "\n",...
4,781
all-4782
[ "LabelsForTarget", "returns", "labels", "that", "have", "a", "given", "target" ]
[ "func", "LabelsForTarget", "(", "labels", "[", "]", "<mask>", ",", "target", "LabelTarget", ")", "(", "filteredLabels", "[", "]", "Label", ")", "{", "for", "_", ",", "label", ":=", "range", "labels", "{", "if", "target", "==", "label", ".", "Target", "...
4,782
all-4783
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "NameValue", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomsnapshot5", "(", "&", "w", ",", "v", ")", "...
4,783
all-4784
[ "HasTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "e", "*", "EventStreamDefinition", ")", "HasTitleSize", "(", ")", "bool", "{", "if", "e", "!=", "nil", "&&", "e", ".", "TitleSize", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
4,784
all-4785
[ "note", ":", "this", "is", "not", "a", "standard", "s3", "error" ]
[ "func", "invalidDelimiterError", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "<mask>", ".", "Request", ")", "{", "writeError", "(", "w", ",", "r", ",", "http", ".", "StatusBadRequest", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "}" ]
4,785
all-4786
[ "HasTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TraceServiceDefinition", ")", "HasTitleSize", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "TitleSize", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
4,786
all-4787
[ "Stop", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockTimer", ")", "Stop", "(", ")", "bool", "{", "<mask>", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ")", "\n", "ret0", ",", "_", ":=", "ret", "[", "0", "]", ".", "(", "bool", ")", "\n", "return"...
4,787
all-4788
[ "DeleteFirewallRule", "deletes", "a", "firewall", "rule" ]
[ "func", "(", "c", "*", "Client", ")", "DeleteFirewallRule", "(", "dcID", "string", ",", "serverID", "string", ",", "nicID", "string", ",", "fwID", "string", ")", "(", "*", "http", ".", "Header", ",", "error", ")", "{", "url", ":=", "fwrulePath", "(", ...
4,788
all-4789
[ "String", "prints", "a", "humanly", "-", "readable", "summary", "of", "coalesced", "records", ".", "Example", ":", "diffStats", "{", "Name", ":", "Field", "NumIgnored", ":", "5", "}", ".", "String", "()", "=", ">", "5", "ignored", "fields" ]
[ "func", "(", "s", "diffStats", ")", "String", "(", ")", "string", "{", "var", "ss", "[", "]", "string", "\n", "var", "sum", "int", "\n", "labels", ":=", "[", "...", "]", "string", "{", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", ...
4,789
all-4790
[ "WithProcessClosing", "returns", "a", "context", ".", "Context", "derived", "from", "ctx", "that", "is", "cancelled", "as", "p", "is", "Closing", "(", "after", ":", "<", "-", "p", ".", "Closing", "()", ")", ".", "It", "is", "simply", ":", "func", "With...
[ "func", "WithProcessClosing", "(", "ctx", "context", ".", "Context", ",", "p", "goprocess", ".", "Process", ")", "<mask>", ".", "Context", "{", "ctx", ",", "cancel", ":=", "context", ".", "WithCancel", "(", "ctx", ")", "\n", "go", "func", "(", ")", "{"...
4,790
all-4791
[ "Rename", "renames", "a", "StoragePod", "." ]
[ "func", "Rename", "(", "pod", "*", "<mask>", ".", "StoragePod", ",", "name", "string", ")", "error", "{", "log", ".", "Printf", "(", "\"", "\"", ",", "pod", ".", "InventoryPath", ",", "name", ")", "\n", "ctx", ",", "cancel", ":=", "context", ".", "...
4,791
all-4792
[ "Dbgf", "is", "a", "short", "-", "hand", "version", "of", "Debugf" ]
[ "func", "(", "b", "*", "Base", ")", "Dbgf", "(", "msg", "string", ",", "a", "...", "interface", "{", "}", ")", "error", "{", "return", "b", ".", "Debugf", "(", "<mask>", ",", "a", "...", ")", "\n", "}" ]
4,792
all-4793
[ "HostVolumeByName", "returns", "the", "task", "Volume", "for", "the", "given", "a", "volume", "name", "in", "that", "task", ".", "The", "second", "return", "value", "indicates", "the", "presence", "of", "that", "volume" ]
[ "func", "(", "task", "*", "Task", ")", "HostVolumeByName", "(", "name", "string", ")", "(", "taskresourcevolume", ".", "Volume", ",", "bool", ")", "{", "for", "_", ",", "v", ":=", "<mask>", "task", ".", "Volumes", "{", "if", "v", ".", "Name", "==", ...
4,793
all-4794
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "RuleMatch", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24", "(", "&", "w", ",", "v", ")", "\n", ...
4,794
all-4795
[ "===", "sqrt", "(", "Vector", "VectorNode", ")", "Vector", "===" ]
[ "func", "funcSqrt", "(", "vals", "[", "]", "<mask>", ",", "args", "Expressions", ",", "enh", "*", "EvalNodeHelper", ")", "Vector", "{", "return", "simpleFunc", "(", "vals", ",", "enh", ",", "math", ".", "Sqrt", ")", "\n", "}" ]
4,795
all-4796
[ "List", "takes", "label", "and", "field", "selectors", "and", "returns", "the", "list", "of", "ProwJobs", "that", "match", "those", "selectors", "." ]
[ "func", "(", "c", "*", "FakeProwJobs", ")", "List", "(", "opts", "v1", ".", "ListOptions", ")", "(", "result", "*", "prowjobsv1", ".", "ProwJobList", ",", "err", "error", ")", "{", "obj", ",", "err", ":=", "c", ".", "Fake", ".", "Invokes", "(", "te...
4,796
all-4797
[ "retrieve", "messages", "from", "the", "debug", "message", "log" ]
[ "func", "GetDebugMessageLog", "(", "count", "uint32", ",", "bufSize", "int32", ",", "sources", "*", "uint32", ",", "types", "*", "uint32", ",", "ids", "*", "uint32", ",", "severities", "*", "uint32", ",", "lengths", "*", "int32", ",", "messageLog", "*", ...
4,797
all-4798
[ "retrieve", "the", "label", "of", "a", "sync", "object", "identified", "by", "a", "pointer" ]
[ "func", "GetObjectPtrLabel", "(", "ptr", "unsafe", ".", "Pointer", ",", "bufSize", "int32", ",", "length", "*", "int32", ",", "<mask>", "*", "uint8", ")", "{", "syscall", ".", "Syscall6", "(", "gpGetObjectPtrLabel", ",", "4", ",", "uintptr", "(", "ptr", ...
4,798
all-4799
[ "CopyImage", "copies", "an", "image", "from", "a", "remote", "server", ".", "Additional", "options", "can", "be", "passed", "using", "ImageCopyArgs" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "CopyImage", "(", "source", "ImageServer", ",", "image", "api", ".", "Image", ",", "args", "*", "ImageCopyArgs", ")", "(", "RemoteOperation", ",", "error", ")", "{", "// Sanity checks", "if", "r", "==", "<mask>", ...
4,799
all-4800
[ "Run", "implements", "the", "Discoverer", "interface", "." ]
[ "func", "(", "e", "*", "Endpoints", ")", "Run", "(", "ctx", "context", ".", "Context", ",", "ch", "chan", "<-", "[", "]", "*", "targetgroup", ".", "<mask>", ")", "{", "defer", "e", ".", "queue", ".", "ShutDown", "(", ")", "\n\n", "if", "!", "cach...