id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
20,800
all-20801
[ "VolumeCreate", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockClient", ")", "VolumeCreate", "(", "arg0", "context", ".", "Context", ",", "arg1", "volume", ".", "VolumeCreateBody", ")", "(", "types", ".", "Volume", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(...
20,801
all-20802
[ "WithField", "adds", "a", "field", "to", "the", "logger" ]
[ "func", "(", "n", "*", "Namespaced", ")", "WithField", "(", "k", "string", ",", "v", "interface", "{", "}", ")", "log", ".", "Interface", "{", "if", "k", "==", "NamespaceKey", "{", "if", "str", ",", "ok", ":=", "v", ".", "(", "string", ")", ";", ...
20,802
all-20803
[ "Update", "the", "rule", "manager", "s", "state", "as", "the", "config", "requires", ".", "If", "loading", "the", "new", "rules", "failed", "the", "old", "rule", "set", "is", "restored", "." ]
[ "func", "(", "m", "*", "<mask>", ")", "Update", "(", "interval", "time", ".", "Duration", ",", "files", "[", "]", "string", ",", "externalLabels", "labels", ".", "Labels", ")", "error", "{", "m", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "m...
20,803
all-20804
[ "PopupAtPointer", "()", "is", "a", "wrapper", "for", "gtk_menu_popup_at_pointer", "()", "on", "older", "versions", "it", "uses", "PopupAtMouseCursor" ]
[ "func", "(", "v", "*", "Menu", ")", "PopupAtPointer", "(", "_", "*", "gdk", ".", "<mask>", ")", "{", "C", ".", "gtk_menu_popup", "(", "v", ".", "native", "(", ")", ",", "nil", ",", "nil", ",", "nil", ",", "nil", ",", "C", ".", "guint", "(", "...
20,804
all-20805
[ "Parse", "parses", "f", "and", "returns", "a", "list", "of", "actions", ".", "An", "action", "may", "either", "be", "a", "literal", "string", "or", "a", "Verb", "." ]
[ "func", "Parse", "(", "f", "string", ")", "(", "[", "]", "interface", "{", "}", ",", "error", ")", "{", "var", "out", "[", "]", "interface", "{", "}", "\n", "for", "len", "(", "f", ")", ">", "0", "{", "if", "f", "[", "0", "]", "==", "'%'", ...
20,805
all-20806
[ "purgeFile", "is", "the", "internal", "implementation", "for", "PurgeFile", "which", "can", "post", "purged", "files", "to", "purgec", "if", "non", "-", "nil", "." ]
[ "func", "purgeFile", "(", "lg", "*", "zap", ".", "Logger", ",", "dirname", "string", ",", "suffix", "string", ",", "max", "uint", ",", "interval", "time", ".", "Duration", ",", "stop", "<-", "chan", "struct", "{", "}", ",", "purgec", "chan", "<-", "s...
20,806
all-20807
[ "NewWithLogger", "creates", "a", "bare", "bones", "Macaron", "instance", ".", "Use", "this", "method", "if", "you", "want", "to", "have", "full", "control", "over", "the", "middleware", "that", "is", "used", ".", "You", "can", "specify", "logger", "output", ...
[ "func", "NewWithLogger", "(", "out", "io", ".", "Writer", ")", "*", "Macaron", "{", "m", ":=", "&", "Macaron", "{", "Injector", ":", "inject", ".", "New", "(", ")", ",", "action", ":", "func", "(", ")", "{", "}", ",", "Router", ":", "NewRouter", ...
20,807
all-20808
[ "UpsertId", "is", "a", "convenience", "helper", "equivalent", "to", ":", "info", "err", ":", "=", "collection", ".", "Upsert", "(", "bson", ".", "M", "{", "_id", ":", "id", "}", "update", ")", "See", "the", "Upsert", "method", "for", "more", "details",...
[ "func", "(", "c", "*", "Collection", ")", "UpsertId", "(", "id", "interface", "{", "}", ",", "update", "interface", "{", "}", ")", "(", "<mask>", "*", "ChangeInfo", ",", "err", "error", ")", "{", "return", "c", ".", "Upsert", "(", "bson", ".", "D",...
20,808
all-20809
[ "Remove", "key", "from", "queue" ]
[ "func", "(", "q", "*", "Queue", ")", "delete", "(", "key", "[", "]", "<mask>", ")", "{", "err", ":=", "q", ".", "db", ".", "Delete", "(", "[", "]", "byte", "(", "key", ")", ",", "nil", ")", "\n", "atomic", ".", "AddUint32", "(", "&", "q", "...
20,809
all-20810
[ "PutFileSplit", "writes", "a", "file", "to", "PFS", "from", "a", "reader", "delimiter", "is", "used", "to", "tell", "PFS", "how", "to", "break", "the", "input", "into", "blocks" ]
[ "func", "(", "c", "*", "putFileClient", ")", "PutFileSplit", "(", "repoName", "string", ",", "commitID", "string", ",", "<mask>", "string", ",", "delimiter", "pfs", ".", "Delimiter", ",", "targetFileDatums", "int64", ",", "targetFileBytes", "int64", ",", "head...
20,810
all-20811
[ "NewEnterpriseClient", "creates", "a", "new", "GitHub", "GraphQL", "API", "v4", "client", "for", "the", "GitHub", "Enterprise", "instance", "with", "the", "specified", "GraphQL", "endpoint", "URL", "using", "the", "provided", "http", ".", "Client", ".", "If", ...
[ "func", "NewEnterpriseClient", "(", "url", "string", ",", "httpClient", "*", "<mask>", ".", "Client", ")", "*", "Client", "{", "return", "&", "Client", "{", "client", ":", "graphql", ".", "NewClient", "(", "url", ",", "httpClient", ")", ",", "}", "\n", ...
20,811
all-20812
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventWebSocketWillSendHandshakeRequest", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork4...
20,812
all-20813
[ "Dump", "produces", "printable", "debug", "representation", "of", "byte", "array", "as", "string" ]
[ "func", "Dump", "(", "arr", "[", "]", "byte", ")", "string", "{", "var", "buf", "bytes", ".", "<mask>", "\n\n", "buf", ".", "WriteString", "(", "\"", "\"", ")", "\n", "buf", ".", "WriteString", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "l...
20,813
all-20814
[ "Return", "a", "list", "of", "SQL", "statements", "that", "can", "be", "used", "to", "create", "all", "tables", "in", "the", "database", "." ]
[ "func", "selectTablesSQL", "(", "tx", "*", "sql", ".", "Tx", ")", "(", "[", "]", "string", ",", "error", ")", "{", "statement", ":=", "`\nSELECT sql FROM sqlite_master WHERE\n type IN ('table', 'index', 'view') AND\n name != 'schema' AND\n name NOT LIKE 'sqlite_%'\nORDER BY ...
20,814
all-20815
[ "query", "the", "name", "of", "an", "indexed", "resource", "within", "a", "program" ]
[ "func", "GetProgramResourceName", "(", "program", "uint32", ",", "programInterface", "uint32", ",", "index", "uint32", ",", "bufSize", "int32", ",", "length", "*", "int32", ",", "name", "*", "uint8", ")", "{", "C", ".", "glowGetProgramResourceName", "(", "gpGe...
20,815
all-20816
[ "validateClusterInfo", "is", "a", "modified", "copy", "of", "k8s", ".", "io", "/", "kubernetes", "/", "pkg", "/", "client", "/", "unversioned", "/", "clientcmd", ".", "DirectClientConfig", ".", "validateClusterInfo", ".", "validateClusterInfo", "looks", "for", "...
[ "func", "validateClusterInfo", "(", "clusterName", "string", ",", "clusterInfo", "clientcmdCluster", ")", "[", "]", "error", "{", "var", "validationErrors", "[", "]", "error", "\n\n", "if", "reflect", ".", "DeepEqual", "(", "clientcmdCluster", "{", "}", ",", "...
20,816
all-20817
[ "Start", "issues", "a", "power", "on", "for", "the", "virtual", "machine", "instance", "." ]
[ "func", "(", "d", "*", "Driver", ")", "Start", "(", ")", "error", "{", "if", "err", ":=", "d", ".", "checkLegacyDriver", "(", "<mask>", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "c", ",", "err", ":=", "d", ".", "new...
20,817
all-20818
[ "Reset", "resets", "the", "message", "so", "it", "can", "be", "reused", ".", "The", "message", "keeps", "its", "previous", "settings", "so", "it", "is", "in", "the", "same", "state", "that", "after", "a", "call", "to", "NewMessage", "." ]
[ "func", "(", "m", "*", "Message", ")", "Reset", "(", ")", "{", "for", "k", ":=", "<mask>", "m", ".", "header", "{", "delete", "(", "m", ".", "header", ",", "k", ")", "\n", "}", "\n", "m", ".", "parts", "=", "nil", "\n", "m", ".", "attachments...
20,818
all-20819
[ "Returns", "the", "current", "stage", "in", "the", "daemonization", "process", "that", "s", "kept", "in", "an", "environment", "variable", ".", "The", "variable", "is", "instrumented", "with", "a", "digital", "signature", "to", "avoid", "misbehavior", "if", "i...
[ "func", "getStage", "(", ")", "(", "stage", "int", ",", "advanceStage", "func", "(", ")", "error", ",", "resetEnv", "func", "(", ")", "error", ")", "{", "var", "origValue", "string", "\n", "stage", "=", "0", "\n\n", "daemonStage", ":=", "os", ".", "G...
20,819
all-20820
[ "DiscoverPollEndpoint", "indicates", "an", "expected", "call", "of", "DiscoverPollEndpoint" ]
[ "func", "(", "mr", "*", "MockECSClientMockRecorder", ")", "DiscoverPollEndpoint", "(", "arg0", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",",...
20,820
all-20821
[ "New", "returns", "the", "location", "middleware", "with", "user", "-", "defined", "custom", "configuration", "." ]
[ "func", "New", "(", "config", "Config", ")", "gin", ".", "HandlerFunc", "{", "location", ":=", "newLocation", "(", "config", ")", "\n\n", "return", "func", "(", "c", "*", "gin", ".", "<mask>", ")", "{", "location", ".", "applyToContext", "(", "c", ")",...
20,821
all-20822
[ "Next", "returns", "the", "ID", "of", "the", "next", "result", ".", "When", "there", "are", "no", "more", "results", "Done", "is", "returned", "as", "the", "error", ".", "dst", "must", "be", "a", "non", "-", "nil", "struct", "pointer", "implement", "th...
[ "func", "(", "t", "*", "Iterator", ")", "Next", "(", "dst", "interface", "{", "}", ")", "(", "string", ",", "error", ")", "{", "t", ".", "fetchMore", "(", ")", "\n", "if", "t", ".", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "t", "."...
20,822
all-20823
[ "UnColorizeText", "removes", "all", "color", "-", "related", "tags", "from", "the", "string", ".", "Tags", "to", "remove", ":", "<", "(", "f|t|b|c", ")", ":", ".", "*", ">" ]
[ "func", "UnColorizeText", "(", "str", "string", ")", "<mask>", "{", "rx", ":=", "regexp", ".", "MustCompile", "(", "\"", "\"", ")", "\n\n", "return", "rx", ".", "ReplaceAllString", "(", "str", ",", "\"", "\"", ")", "\n", "}" ]
20,823
all-20824
[ "SetDefaultResponse", "()", "is", "a", "wrapper", "around", "gtk_dialog_set_default_response", "()", "." ]
[ "func", "(", "v", "*", "Dialog", ")", "SetDefaultResponse", "(", "id", "ResponseType", ")", "{", "C", ".", "gtk_dialog_set_default_response", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "<mask>", ")", ")", "\n", "}" ]
20,824
all-20825
[ "Output", "simply", "writes", "to", "Writer", "." ]
[ "func", "(", "ui", "*", "BasicUI", ")", "Output", "(", "message", "string", ")", "{", "fmt", ".", "Fprint", "(", "ui", ".", "Writer", ",", "<mask>", ")", "\n", "fmt", ".", "Fprint", "(", "ui", ".", "Writer", ",", "\"", "\\n", "\"", ")", "\n", "...
20,825
all-20826
[ "Set", "indicates", "an", "expected", "call", "of", "Set" ]
[ "func", "(", "mr", "*", "MockCacheMockRecorder", ")", "<mask>", "(", "arg0", ",", "arg1", "interface", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",...
20,826
all-20827
[ "SetTerminalReason", "sets", "the", "terminalReason", "string", "and", "this", "can", "only", "be", "set", "once", "per", "the", "task", "s", "lifecycle", ".", "This", "field", "does", "not", "accept", "updates", "." ]
[ "func", "(", "task", "*", "Task", ")", "SetTerminalReason", "(", "reason", "string", ")", "{", "seelog", ".", "Infof", "(", "\"", "\"", ",", "task", ".", "Arn", ",", "reason", ")", "\n", "task", ".", "terminalReasonOnce", ".", "Do", "(", "func", "(",...
20,827
all-20828
[ "WrapBuffaloHandler", "wraps", "a", "buffalo", ".", "Handler", "to", "standard", "http", ".", "Handler" ]
[ "func", "WrapBuffaloHandler", "(", "h", "Handler", ")", "<mask>", ".", "Handler", "{", "a", ":=", "New", "(", "Options", "{", "}", ")", "\n", "// it doesn't matter what we actually map it", "// GET, POST, etc... we just need the underlying", "// RouteInfo, which implements ...
20,828
all-20829
[ "configureTeamMembers", "will", "add", "/", "update", "people", "to", "the", "appropriate", "role", "on", "the", "team", "and", "remove", "anyone", "else", "." ]
[ "func", "configureTeamMembers", "(", "client", "teamMembersClient", ",", "gt", "github", ".", "Team", ",", "team", "org", ".", "Team", ")", "error", "{", "// Get desired state", "wantMaintainers", ":=", "sets", ".", "NewString", "(", "team", ".", "Maintainers", ...
20,829
all-20830
[ "attach", "a", "range", "of", "a", "buffer", "object", "s", "data", "store", "to", "a", "buffer", "texture", "object" ]
[ "func", "TextureBufferRange", "(", "texture", "uint32", ",", "internalformat", "uint32", ",", "buffer", "uint32", ",", "offset", "int", ",", "size", "int", ")", "{", "syscall", ".", "Syscall6", "(", "gpTextureBufferRange", ",", "5", ",", "uintptr", "(", "tex...
20,830
all-20831
[ "submitChanges", "takes", "a", "zone", "and", "a", "collection", "of", "Changes", "and", "sends", "them", "as", "a", "single", "transaction", "." ]
[ "func", "(", "p", "*", "DigitalOceanProvider", ")", "submitChanges", "(", "changes", "[", "]", "*", "DigitalOceanChange", ")", "error", "{", "// return early if there is nothing to change", "if", "len", "(", "changes", ")", "==", "0", "{", "return", "nil", "\n",...
20,831
all-20832
[ "Commit", "executes", "a", "database", "commit", "." ]
[ "func", "(", "s", "*", "Session", ")", "Commit", "(", ")", "error", "{", "s", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mu", ".", "Unlock", "(", ")", "\n\n", "if", "err", ":=", "s", ".", "writeRequest", "(", "mtCommit", ",", ...
20,832
all-20833
[ "Make", "a", "boot2docker", "VM", "disk", "image", "." ]
[ "func", "(", "c", "*", "defaultDiskCreator", ")", "Create", "(", "size", "int", ",", "publicSSHKeyPath", ",", "diskPath", "string", ")", "error", "{", "log", ".", "Debugf", "(", "\"", "\"", ",", "size", ")", "\n\n", "tarBuf", ",", "err", ":=", "mcnutil...
20,833
all-20834
[ "GetSelectionBounds", "is", "a", "wrapper", "around", "gtk_label_get_selection_bounds", "()", "." ]
[ "func", "(", "v", "*", "Label", ")", "GetSelectionBounds", "(", ")", "(", "<mask>", ",", "end", "int", ",", "nonEmpty", "bool", ")", "{", "var", "cstart", ",", "cend", "C", ".", "gint", "\n", "c", ":=", "C", ".", "gtk_label_get_selection_bounds", "(", ...
20,834
all-20835
[ "VolumeTypeLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "VolumeTypeLocator", "(", "href", "string", ")", "*", "VolumeTypeLocator", "{", "<mask>", "&", "VolumeTypeLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
20,835
all-20836
[ "title", ":", "update", "nodes", "path", ":", "/", "{", "provisioner", "}", "/", "node", "method", ":", "PUT", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "responses", ":", "200", ":", "Ok", "400", ":", "Inval...
[ "func", "updateNodeHandler", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "<mask>", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "var", "params", "provision", ".", "UpdateNodeOptions", "\n", "err", "=", ...
20,836
all-20837
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventFrameNavigated", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage64", "(", "&", "w", ",", "v", ")",...
20,837
all-20838
[ "UnmarshalText", "implements", "TextUnmarsheler" ]
[ "func", "(", "t", "*", "Type", ")", "UnmarshalText", "(", "text", "[", "]", "byte", ")", "error", "{", "e", ",", "err", ":=", "fromString", "(", "string", "(", "<mask>", ")", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", ...
20,838
all-20839
[ "UniqueURLsFromFlag", "returns", "a", "slice", "from", "urls", "got", "from", "the", "flag", "." ]
[ "func", "UniqueURLsFromFlag", "(", "fs", "*", "flag", ".", "FlagSet", ",", "urlsFlagName", "string", ")", "[", "]", "url", ".", "URL", "{", "return", "(", "*", "fs", ".", "Lookup", "(", "urlsFlagName", ")", ".", "<mask>", ".", "(", "*", "UniqueURLs", ...
20,839
all-20840
[ "injectEnvironment", "will", "add", "rawEnv", "to", "the", "build", "steps", "and", "/", "or", "template", "arguments", "." ]
[ "func", "injectEnvironment", "(", "b", "*", "buildv1alpha1", ".", "Build", ",", "rawEnv", "<mask>", "[", "string", "]", "string", ")", "{", "for", "i", ":=", "range", "b", ".", "Spec", ".", "Steps", "{", "// Inject environment variables to each step", "default...
20,840
all-20841
[ "HasMessage", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsTest", ")", "HasMessage", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "<mask>", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
20,841
all-20842
[ "PutFile", "puts", "a", "file", "in", "the", "hashtree", "." ]
[ "func", "(", "u", "*", "Unordered", ")", "PutFile", "(", "path", "string", ",", "hash", "[", "]", "byte", ",", "size", "int64", ",", "blockRefs", "...", "*", "pfs", ".", "BlockRef", ")", "{", "path", "=", "join", "(", "u", ".", "root", ",", "<mas...
20,842
all-20843
[ "HasValue", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TileDefMarker", ")", "HasValue", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "Value", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
20,843
all-20844
[ "returnConn", "returns", "a", "connection", "back", "to", "the", "pool", "." ]
[ "func", "(", "n", "*", "NetworkTransport", ")", "returnConn", "(", "conn", "*", "netConn", ")", "{", "n", ".", "connPoolLock", ".", "Lock", "(", ")", "\n", "defer", "n", ".", "connPoolLock", ".", "Unlock", "(", ")", "\n\n", "key", ":=", "<mask>", "."...
20,844
all-20845
[ "ToString", "converts", "the", "host", "into", "a", "nicely", "formatted", "string" ]
[ "func", "(", "h", "Host", ")", "ToString", "(", ")", "(", "out", "string", ")", "{", "out", "+=", "fmt", ".", "Sprintf", "(", "\"", "\\n", "\"", ",", "h", ".", "Address", ",", "h", ".", "State", ")", "\n", "if", "len", "(", "h", ".", "Hostnam...
20,845
all-20846
[ "ReifyMessage", "takes", "a", "structured", "object", "potentially", "containing", "nested", "Matchers", "and", "returns", "an", "object", "with", "just", "the", "example", "(", "generated", ")", "content", "The", "object", "may", "be", "a", "simple", "JSON", ...
[ "func", "(", "p", "*", "mockClient", ")", "ReifyMessage", "(", "request", "*", "types", ".", "PactReificationRequest", ")", "(", "res", "*", "<mask>", ".", "ReificationResponse", ",", "err", "error", ")", "{", "return", "p", ".", "ReifyMessageResponse", ",",...
20,846
all-20847
[ "Rewind", "seeks", "to", "first", "element", "(", "or", "last", "element", "for", "reverse", "iterator", ")", "." ]
[ "func", "(", "s", "*", "MergeIterator", ")", "Rewind", "(", ")", "{", "for", "_", ",", "itr", ":=", "range", "s", ".", "<mask>", "{", "itr", ".", "Rewind", "(", ")", "\n", "}", "\n", "s", ".", "initHeap", "(", ")", "\n", "}" ]
20,847
all-20848
[ "CC", "returns", "a", "copy", "of", "MailBuilder", "with", "this", "name", "&", "address", "appended", "to", "the", "CC", "header", ".", "name", "may", "be", "empty", "." ]
[ "func", "(", "p", "MailBuilder", ")", "CC", "(", "<mask>", ",", "addr", "string", ")", "MailBuilder", "{", "p", ".", "cc", "=", "append", "(", "p", ".", "cc", ",", "mail", ".", "Address", "{", "Name", ":", "name", ",", "Address", ":", "addr", "}"...
20,848
all-20849
[ "Ptr", "takes", "a", "slice", "or", "pointer", "(", "to", "a", "singular", "scalar", "value", "or", "the", "first", "element", "of", "an", "array", "or", "slice", ")", "and", "returns", "its", "GL", "-", "compatible", "address", ".", "For", "example", ...
[ "func", "Ptr", "(", "data", "<mask>", "{", "}", ")", "unsafe", ".", "Pointer", "{", "if", "data", "==", "nil", "{", "return", "unsafe", ".", "Pointer", "(", "nil", ")", "\n", "}", "\n", "var", "addr", "unsafe", ".", "Pointer", "\n", "v", ":=", "r...
20,849
all-20850
[ "getBrokeredService", "retrieves", "the", "service", "information", "from", "a", "service", "that", "is", "offered", "by", "a", "broker", ".", "name", "is", "in", "the", "format", "<broker", ">", "serviceNameBrokerSep<service", ">", "." ]
[ "func", "getBrokeredService", "(", "name", "string", ")", "(", "Service", ",", "error", ")", "{", "catalogName", ",", "serviceName", ",", "err", ":=", "splitBrokerService", "(", "name", ")", "\n", "if", "err", "!=", "nil", "{", "return", "<mask>", "{", "...
20,850
all-20851
[ "ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "AllowTrustResult" ]
[ "func", "(", "u", "AllowTrustResult", ")", "ArmForSwitch", "(", "sw", "int32", ")", "(", "string", ",", "bool", ")", "{", "switch", "AllowTrustResultCode", "(", "sw", ")", "{", "case", "AllowTrustResultCodeAllowTrustSuccess", ":", "return", "\"", "\"", ",", ...
20,851
all-20852
[ "RotateSecretRequest", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "RotateSecretRequest", "(", "arg0", "*", "secretsmanager", ".", "RotateSecretInput", ")", "(", "*", "<mask>", ".", "Request", ",", "*", "secretsmanager", ".", "RotateSecretOutput", ")", "{", "ret", ":=", "m"...
20,852
all-20853
[ "GetRandomPasswordRequest", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "GetRandomPasswordRequest", "(", "arg0", "*", "secretsmanager", ".", "GetRandomPasswordInput", ")", "(", "*", "request", ".", "Request", ",", "*", "secretsmanager", ".", "GetRandomPasswordOutput", ")", "{", "ret...
20,853
all-20854
[ "Address", "returns", "the", "strkey", "encoded", "form", "of", "this", "AccountId", ".", "This", "method", "will", "panic", "if", "the", "accountid", "is", "backed", "by", "a", "public", "key", "of", "an", "unknown", "type", "." ]
[ "func", "(", "aid", "*", "AccountId", ")", "Address", "(", ")", "string", "{", "if", "aid", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n\n", "<mask>", "aid", ".", "Type", "{", "case", "CryptoKeyTypeKeyTypeEd25519", ":", "ed", ":=", "aid", "...
20,854
all-20855
[ "title", ":", "token", "list", "path", ":", "/", "tokens", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "List", "tokens", "204", ":", "No", "content", "401", ":", "Unauthorized" ]
[ "func", "tokenList", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "<mask>", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "tokens", ",", "err", ":=", "servicemanager", ".", "TeamToken", ".", "FindByUserToken", "(", "t", ...
20,855
all-20856
[ "HasTriggeringValue", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GroupData", ")", "HasTriggeringValue", "(", ")", "bool", "{", "if", "g", "!=", "nil", "&&", "g", ".", "TriggeringValue", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
20,856
all-20857
[ "Place", "moves", "the", "cursor", "to", "the", "absolute", "array", "index", "specified", "by", "position" ]
[ "func", "(", "c", "*", "Cursor", ")", "Place", "(", "position", "int", ")", "{", "c", ".", "Position", "=", "<mask>", "\n", "c", ".", "correctPosition", "(", ")", "\n", "}" ]
20,857
all-20858
[ "String", "returns", "the", "name", "of", "e" ]
[ "func", "(", "e", "EnvelopeType", ")", "String", "(", ")", "string", "{", "<mask>", ",", "_", ":=", "envelopeTypeMap", "[", "int32", "(", "e", ")", "]", "\n", "return", "name", "\n", "}" ]
20,858
all-20859
[ "KeepAlive", "is", "meant", "to", "run", "as", "a", "goroutine", ".", "It", "sends", "a", "single", "whitespace", "character", "to", "HipChat", "every", "60", "seconds", ".", "This", "keeps", "the", "connection", "from", "idling", "after", "150", "seconds", ...
[ "func", "(", "c", "*", "Client", ")", "KeepAlive", "(", ")", "{", "for", "_", "=", "range", "time", ".", "Tick", "(", "60", "*", "time", ".", "Second", ")", "{", "c", ".", "<mask>", ".", "KeepAlive", "(", ")", "\n", "}", "\n", "}" ]
20,859
all-20860
[ "Private", "function", "for", "now" ]
[ "func", "(", "n", "*", "node", ")", "printDebug", "(", "level", "int", ")", "{", "level", "++", "\n", "// *splat branch", "if", "n", ".", "SplatChild", "!=", "nil", "{", "printFPadding", "(", "level", ",", "\"", "\\n", "\"", ")", "\n", "n", ".", "S...
20,860
all-20861
[ "StoragePoolVolumesGetType", "get", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "volume", "type", "on", "the", "given", "node", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "StoragePoolVolumesGetType", "(", "project", "string", ",", "volumeType", "int", ",", "poolID", ",", "nodeID", "int64", ")", "(", "[", "]", "string", ",", "error", ")", "{", "var", "poolName", "string", "\n", "query...
20,861
all-20862
[ "title", ":", "service", "create", "path", ":", "/", "services", "method", ":", "POST", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "responses", ":", "201", ":", "Service", "created", "400", ":", "Invalid", "data"...
[ "func", "serviceCreate", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "s", ":=", "service", ".", "Service", "{", "Name", ":", "InputValue", "(", ...
20,862
all-20863
[ "With", "returns", "a", "copy", "of", "c", "that", "uses", "session", "s", "." ]
[ "func", "(", "c", "*", "Collection", ")", "With", "(", "s", "*", "Session", ")", "*", "Collection", "{", "newdb", ":=", "*", "c", ".", "<mask>", "\n", "newdb", ".", "Session", "=", "s", "\n", "newc", ":=", "*", "c", "\n", "newc", ".", "Database",...
20,863
all-20864
[ "string" ]
[ "func", "convertNvString", "(", "v", "<mask>", "{", "}", ")", "(", "driver", ".", "Value", ",", "error", ")", "{", "if", "v", "==", "nil", "{", "return", "v", ",", "nil", "\n", "}", "\n\n", "switch", "v", ":=", "v", ".", "(", "type", ")", "{", ...
20,864
all-20865
[ "Print", "the", "most", "recent", "inner", "type", ".", "If", "save", "is", "not", "nil", "only", "print", "prefixes", "." ]
[ "func", "(", "ps", "*", "printState", ")", "printOneInner", "(", "save", "*", "[", "]", "AST", ")", "{", "if", "len", "(", "ps", ".", "inner", ")", "==", "0", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "ln", ":=", "len", "(", "ps", ...
20,865
all-20866
[ "PTCIncreaseApproval", "calls", "increaseApproval", "method", "of", "Privatix", "token", "contract", "." ]
[ "func", "(", "b", "*", "backendInstance", ")", "PTCIncreaseApproval", "(", "opts", "*", "bind", ".", "TransactOpts", ",", "spender", "common", ".", "Address", ",", "addedVal", "*", "big", ".", "Int", ")", "(", "*", "<mask>", ".", "Transaction", ",", "err...
20,866
all-20867
[ "squashCgoLibrary", "removes", "cgo_library", "rules", "with", "the", "default", "name", "and", "merges", "their", "attributes", "with", "go_library", "with", "the", "default", "name", ".", "If", "no", "go_library", "rule", "exists", "a", "new", "one", "will", ...
[ "func", "squashCgoLibrary", "(", "c", "*", "config", ".", "Config", ",", "f", "*", "rule", ".", "File", ")", "{", "// Find the default cgo_library and go_library rules.", "var", "cgoLibrary", ",", "goLibrary", "*", "rule", ".", "Rule", "\n", "for", "_", ",", ...
20,867
all-20868
[ "non", "-", "blocking", "push" ]
[ "func", "(", "s", "*", "State", ")", "gopush", "(", ")", "{", "s", ".", "push", ".", "mut", ".", "Lock", "(", ")", "\n", "t0", ":=", "time", ".", "Now", "(", ")", "\n", "//queue cleanup", "defer", "func", "(", ")", "{", "//measure time passed, ensu...
20,868
all-20869
[ "WithHeaders", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "a", "call", "with", "request", "headers", "." ]
[ "func", "WithHeaders", "(", "ctx", "<mask>", ".", "Context", ",", "headers", "map", "[", "string", "]", "string", ")", "Context", "{", "return", "tchannel", ".", "WrapWithHeaders", "(", "ctx", ",", "headers", ")", "\n", "}" ]
20,869
all-20870
[ "InstallSnapshot", "implements", "the", "Transport", "interface", "." ]
[ "func", "(", "n", "*", "NetworkTransport", ")", "InstallSnapshot", "(", "id", "ServerID", ",", "target", "ServerAddress", ",", "args", "*", "InstallSnapshotRequest", ",", "resp", "*", "InstallSnapshotResponse", ",", "data", "io", ".", "Reader", ")", "error", "...
20,870
all-20871
[ "setBrancherRegexes", "compiles", "and", "validates", "all", "the", "regular", "expressions", "for", "the", "provided", "branch", "specifiers", "." ]
[ "func", "setBrancherRegexes", "(", "br", "Brancher", ")", "(", "Brancher", ",", "error", ")", "{", "if", "len", "(", "br", ".", "Branches", ")", ">", "0", "{", "if", "re", ",", "err", ":=", "regexp", ".", "Compile", "(", "strings", ".", "Join", "("...
20,871
all-20872
[ "UpdateBytes", "updates", "uri", ".", "The", "following", "newURI", "types", "are", "accepted", ":", "*", "Absolute", "i", ".", "e", ".", "http", ":", "//", "foobar", ".", "com", "/", "aaa", "/", "bb?cc", ".", "In", "this", "case", "the", "original", ...
[ "func", "(", "u", "*", "URI", ")", "UpdateBytes", "(", "newURI", "[", "]", "<mask>", ")", "{", "u", ".", "requestURI", "=", "u", ".", "updateBytes", "(", "newURI", ",", "u", ".", "requestURI", ")", "\n", "}" ]
20,872
all-20873
[ "GrantPermissions", "grant", "specific", "permissions", "to", "the", "given", "origin", "and", "reject", "all", "others", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "B...
[ "func", "GrantPermissions", "(", "<mask>", "string", ",", "permissions", "[", "]", "PermissionType", ")", "*", "GrantPermissionsParams", "{", "return", "&", "GrantPermissionsParams", "{", "Origin", ":", "origin", ",", "Permissions", ":", "permissions", ",", "}", ...
20,873
all-20874
[ "Load", "indicates", "an", "expected", "call", "of", "Load" ]
[ "func", "(", "mr", "*", "MockCgroupFactoryMockRecorder", ")", "Load", "(", "arg0", ",", "arg1", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ...
20,874
all-20875
[ "Where", "iterates", "over", "a", "list", "and", "returns", "only", "the", "elements", "that", "satisfy", "a", "predicate", "." ]
[ "func", "(", "iter", "Enumerator", ")", "Where", "(", "predicate", "Predicate", ")", "Enumerator", "{", "retval", ":=", "make", "(", "chan", "interface", "{", "}", ")", "\n", "<mask>", "func", "(", ")", "{", "for", "item", ":=", "range", "iter", "{", ...
20,875
all-20876
[ "Match", "processes", "the", "given", "string", "until", "it", "has", "its", "suffix", "in", "the", "next", "or", "encounters", "a", "rune", "that", "doesn", "t", "match", "." ]
[ "func", "(", "m", "*", "SuffixMatcher", ")", "Match", "(", "str", "string", ")", "(", "<mask>", "int", ",", "matchStr", "string", ")", "{", "offset", "=", "-", "1", "\n\n", "// at least 1 character is required to match suffix and matcher", "d", ":=", "len", "(...
20,876
all-20877
[ "Dump", "-", "will", "dump", "a", "mysql", "to", "the", "given", "writer" ]
[ "func", "(", "s", "*", "MysqlDump", ")", "Dump", "(", "<mask>", "io", ".", "Writer", ")", "(", "err", "error", ")", "{", "err", "=", "s", ".", "Caller", ".", "Execute", "(", "dest", ",", "s", ".", "getDumpCommand", "(", ")", ")", "\n", "lo", "....
20,877
all-20878
[ "return", "a", "compressed", "texture", "image" ]
[ "func", "GetCompressedTextureImage", "(", "texture", "uint32", ",", "level", "int32", ",", "bufSize", "int32", ",", "pixels", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall6", "(", "gpGetCompressedTextureImage", ",", "4", ",", "uintptr", "(", "te...
20,878
all-20879
[ "SetStyleSheetText", "sets", "the", "new", "stylesheet", "text", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "CSS#method", "-", "setStyleSheetText", "parameters", ":", "s...
[ "func", "SetStyleSheetText", "(", "styleSheetID", "StyleSheetID", ",", "<mask>", "string", ")", "*", "SetStyleSheetTextParams", "{", "return", "&", "SetStyleSheetTextParams", "{", "StyleSheetID", ":", "styleSheetID", ",", "Text", ":", "text", ",", "}", "\n", "}" ]
20,879
all-20880
[ "SyncConfig", "syncs", "current", "cronAgent", "with", "current", "prow", "config", "which", "add", "/", "delete", "jobs", "accordingly", "." ]
[ "func", "(", "c", "*", "Cron", ")", "SyncConfig", "(", "cfg", "*", "config", ".", "Config", ")", "error", "{", "c", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "<mask>", ".", "Unlock", "(", ")", "\n\n", "for", "_", ",", "p", ...
20,880
all-20881
[ "UnparsedInstance", "returns", "a", "types", ".", "UnparsedImage", "implementation", "for", "(", "source", "instanceDigest", ")", ".", "If", "instanceDigest", "is", "not", "nil", "it", "contains", "a", "digest", "of", "the", "specific", "manifest", "instance", "...
[ "func", "UnparsedInstance", "(", "src", "<mask>", ".", "ImageSource", ",", "instanceDigest", "*", "digest", ".", "Digest", ")", "*", "UnparsedImage", "{", "return", "&", "UnparsedImage", "{", "src", ":", "src", ",", "instanceDigest", ":", "instanceDigest", ","...
20,881
all-20882
[ "FileSize", "returns", "the", "size", "of", "a", "file", "or", "zero", "in", "case", "of", "an", "error", "." ]
[ "func", "FileSize", "(", "filename", "string", ")", "int64", "{", "info", ",", "err", ":=", "os", ".", "Stat", "(", "filename", ")", "\n", "if", "err", "!=", "nil", "{", "return", "0", "\n", "}", "\n", "return", "<mask>", ".", "Size", "(", ")", "...
20,882
all-20883
[ "Context", "returns", "a", "new", "context", "with", "the", "latest", "span", "stored", "as", "a", "reference", "for", "handlers", "that", "will", "call", "NewTracerFromRequest", "or", "similar", "." ]
[ "func", "(", "t", "*", "Tracer", ")", "Context", "(", "ctx", "<mask>", ".", "Context", ")", "context", ".", "Context", "{", "return", "opentracing", ".", "ContextWithSpan", "(", "ctx", ",", "t", ".", "Last", "(", ")", ")", "\n", "}" ]
20,883
all-20884
[ "getStructCodec", "returns", "the", "structCodec", "for", "the", "given", "struct", "type", "." ]
[ "func", "getStructCodec", "(", "t", "reflect", ".", "<mask>", ")", "(", "*", "structCodec", ",", "error", ")", "{", "structCodecsMutex", ".", "Lock", "(", ")", "\n", "defer", "structCodecsMutex", ".", "Unlock", "(", ")", "\n", "return", "getStructCodecLocked...
20,884
all-20885
[ "SetMediaType", "()", "is", "a", "wrapper", "around", "gtk_print_settings_set_media_type", "()", "." ]
[ "func", "(", "<mask>", "*", "PrintSettings", ")", "SetMediaType", "(", "mediaType", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "mediaType", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "...
20,885
all-20886
[ "MergeAttrs", "accepts", "another", "existing", "Attrs", "and", "merges", "the", "attributes", "into", "its", "own", "." ]
[ "func", "(", "a", "*", "Attrs", ")", "MergeAttrs", "(", "attrs", "*", "Attrs", ")", "{", "if", "attrs", "==", "nil", "{", "return", "\n", "}", "\n", "a", ".", "attrsLock", ".", "Lock", "(", ")", "\n", "defer", "a", ".", "attrsLock", ".", "Unlock"...
20,886
all-20887
[ "FromSource", "returns", "a", "types", ".", "ImageCloser", "implementation", "for", "the", "default", "instance", "of", "source", ".", "If", "source", "is", "a", "manifest", "list", ".", "Manifest", "()", "still", "returns", "the", "manifest", "list", "but", ...
[ "func", "FromSource", "(", "ctx", "context", ".", "<mask>", ",", "sys", "*", "types", ".", "SystemContext", ",", "src", "types", ".", "ImageSource", ")", "(", "types", ".", "ImageCloser", ",", "error", ")", "{", "img", ",", "err", ":=", "FromUnparsedImag...
20,887
all-20888
[ "FinalHandler", "is", "a", "helper", "function", "to", "wrap", "the", "last", "http", ".", "Handler", "element", "in", "the", "ChainHandlers", "function", "." ]
[ "func", "FinalHandler", "(", "h", "http", ".", "Handler", ")", "func", "(", "http", ".", "<mask>", ")", "http", ".", "Handler", "{", "return", "func", "(", "_", "http", ".", "Handler", ")", "http", ".", "Handler", "{", "return", "h", "\n", "}", "\n...
20,888
all-20889
[ "Update", "updates", "the", "bytes", "in", "the", "buffer" ]
[ "func", "(", "ref", "BytesRef", ")", "Update", "(", "b", "[", "]", "byte", ")", "{", "if", "ref", "!=", "nil", "{", "copy", "(", "<mask>", ",", "b", ")", "\n", "}", "\n", "}" ]
20,889
all-20890
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetInstallabilityErrorsReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage38", "(", "&", "w", ",", ...
20,890
all-20891
[ "Eventually", "is", "used", "to", "make", "asynchronous", "assertions", ".", "See", "documentation", "for", "Eventually", "." ]
[ "func", "(", "g", "*", "WithT", ")", "Eventually", "(", "actual", "<mask>", "{", "}", ",", "intervals", "...", "interface", "{", "}", ")", "AsyncAssertion", "{", "timeoutInterval", ":=", "defaultEventuallyTimeout", "\n", "pollingInterval", ":=", "defaultEventual...
20,891
all-20892
[ "Seek", "advances", "to", "the", "first", "entry", "with", "a", "key", ">", "=", "target", "." ]
[ "func", "(", "s", "*", "Iterator", ")", "Seek", "(", "target", "[", "]", "byte", ")", "{", "s", ".", "n", ",", "_", "=", "s", ".", "<mask>", ".", "findNear", "(", "target", ",", "false", ",", "true", ")", "// find >=.", "\n", "}" ]
20,892
all-20893
[ "CreateStoragePoolVolume", "defines", "a", "new", "storage", "volume" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "CreateStoragePoolVolume", "(", "pool", "string", ",", "volume", "api", ".", "StorageVolumesPost", ")", "error", "{", "if", "!", "r", ".", "HasExtension", "(", "\"", "\"", ")", "{", "return", "fmt", ".", "Errorf...
20,893
all-20894
[ "FromAbsolutePath", "returns", "an", "*", "object", ".", "Folder", "from", "a", "given", "absolute", "path", ".", "If", "no", "such", "folder", "is", "found", "an", "appropriate", "error", "will", "be", "returned", "." ]
[ "func", "FromAbsolutePath", "(", "client", "*", "govmomi", ".", "Client", ",", "path", "string", ")", "(", "*", "object", ".", "Folder", ",", "error", ")", "{", "finder", ":=", "find", ".", "NewFinder", "(", "client", ".", "<mask>", ",", "false", ")", ...
20,894
all-20895
[ "VerifyFormKV", "returns", "a", "handler", "that", "verifies", "a", "request", "contains", "a", "form", "key", "with", "the", "specified", "values", ".", "It", "is", "a", "convenience", "wrapper", "around", "VerifyForm", "that", "lets", "you", "avoid", "having...
[ "func", "VerifyFormKV", "(", "<mask>", "string", ",", "values", "...", "string", ")", "http", ".", "HandlerFunc", "{", "return", "VerifyForm", "(", "url", ".", "Values", "{", "key", ":", "values", "}", ")", "\n", "}" ]
20,895
all-20896
[ "LoadPivnetRelease", "creates", "an", "initialized", "pivnetRelease", "instance", "from", "the", "specified", ".", "pivotal", "file", "." ]
[ "func", "LoadPivnetRelease", "(", "releaseRepo", "pull", ".", "Release", ",", "path", "string", ")", "(", "release", "*", "PivnetRelease", ",", "err", "error", ")", "{", "<mask>", "=", "&", "PivnetRelease", "{", "}", "\n", "var", "localPath", "string", "\n...
20,896
all-20897
[ "Get", "returns", "a", "peer", "for", "the", "given", "hostPort", "if", "it", "exists", "." ]
[ "func", "(", "l", "*", "RootPeerList", ")", "Get", "(", "hostPort", "string", ")", "(", "*", "Peer", ",", "bool", ")", "{", "l", ".", "RLock", "(", ")", "\n", "p", ",", "<mask>", ":=", "l", ".", "peersByHostPort", "[", "hostPort", "]", "\n", "l",...
20,897
all-20898
[ "UnmarshalEasyJSON", "satisfies", "easyjson", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "TransitionType", ")", "UnmarshalEasyJSON", "(", "in", "*", "jlexer", ".", "Lexer", ")", "{", "switch", "TransitionType", "(", "in", ".", "String", "(", ")", ")", "{", "<mask>", "TransitionTypeLink", ":", "*", "t", "=", "Transition...
20,898
all-20899
[ "GenerateKeyPair", "is", "used", "during", "encrypted", "protocol", "introduction", "." ]
[ "func", "generateKeyPair", "(", ")", "(", "publicKey", ",", "privateKey", "*", "[", "32", "]", "byte", ",", "err", "error", ")", "{", "return", "box", ".", "GenerateKey", "(", "<mask>", ".", "Reader", ")", "\n", "}" ]
20,899
all-20900
[ "Can", "we", "change", "this", "to", "be", "an", "io", ".", "ReadCloser", "return" ]
[ "func", "(", "e", "*", "FileCacheEntry", ")", "readCloser", "(", ")", "(", "*", "CachedFile", ",", "error", ")", "{", "var", "f", "*", "os", ".", "File", "\n", "var", "err", "error", "\n\n", "if", "e", ".", "fileDoesNotExist", "(", ")", "{", "f", ...