id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
21,100
all-21101
[ "hostSystemNameFromID", "returns", "the", "name", "of", "a", "host", "via", "its", "its", "managed", "object", "reference", "ID", "." ]
[ "func", "hostSystemNameFromID", "(", "client", "*", "govmomi", ".", "Client", ",", "id", "string", ")", "(", "string", ",", "error", ")", "{", "hs", ",", "err", ":=", "FromID", "(", "client", ",", "id", ")", "\n", "if", "err", "!=", "nil", "{", "re...
21,101
all-21102
[ "Out", "returns", "the", "data", "to", "be", "sent", "to", "the", "server", "in", "the", "current", "step", "." ]
[ "func", "(", "c", "*", "Client", ")", "Out", "(", ")", "[", "]", "byte", "{", "if", "c", ".", "out", ".", "Len", "(", ")", "==", "0", "{", "return", "nil", "\n", "}", "\n", "return", "c", ".", "<mask>", ".", "Bytes", "(", ")", "\n", "}" ]
21,102
all-21103
[ "Records", "gets", "the", "current", "records", ".", "Returns", "the", "current", "records", "or", "an", "error", "if", "the", "operation", "failed", "." ]
[ "func", "(", "p", "*", "AlibabaCloudProvider", ")", "Records", "(", ")", "(", "endpoints", "[", "]", "*", "endpoint", ".", "Endpoint", ",", "err", "error", ")", "{", "if", "p", ".", "privateZone", "{", "endpoints", ",", "<mask>", "=", "p", ".", "priv...
21,103
all-21104
[ "Draw", "draws", "the", "current", "game", "to", "the", "given", "screen", "." ]
[ "func", "(", "g", "*", "Game", ")", "Draw", "(", "screen", "*", "ebiten", ".", "Image", ")", "{", "if", "g", ".", "boardImage", "==", "nil", "{", "w", ",", "h", ":=", "g", ".", "<mask>", ".", "Size", "(", ")", "\n", "g", ".", "boardImage", ",...
21,104
all-21105
[ "Returns", "a", "Typed", "helper", "at", "the", "key", "or", "the", "specified", "default", "if", "the", "key", "doesn", "t", "exist", "or", "if", "the", "key", "isn", "t", "a", "map", "[", "string", "]", "interface", "{}" ]
[ "func", "(", "t", "Typed", ")", "ObjectOr", "(", "key", "string", ",", "d", "map", "[", "string", "]", "<mask>", "{", "}", ")", "Typed", "{", "if", "value", ",", "exists", ":=", "t", ".", "ObjectIf", "(", "key", ")", ";", "exists", "{", "return",...
21,105
all-21106
[ "GetMinOk", "returns", "a", "tuple", "with", "the", "Min", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetAxis", ")", "GetMinOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Min", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "*", "w", "...
21,106
all-21107
[ "requirementsForImageRef", "selects", "the", "appropriate", "requirements", "for", "ref", "." ]
[ "func", "(", "pc", "*", "PolicyContext", ")", "requirementsForImageRef", "(", "ref", "types", ".", "ImageReference", ")", "PolicyRequirements", "{", "// Do we have a PolicyTransportScopes for this transport?", "transportName", ":=", "ref", ".", "Transport", "(", ")", "....
21,107
all-21108
[ "FirehoseWithoutReconnect", "functions", "identically", "to", "Firehose", "but", "without", "any", "reconnect", "attempts", "when", "errors", "occur", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "FirehoseWithoutReconnect", "(", "subscriptionId", "string", ",", "authToken", "string", ",", ")", "(", "<-", "chan", "*", "events", ".", "Envelope", ",", "<-", "chan", "error", ")", "{", "return", "c", ".", "firehos...
21,108
all-21109
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetRuleSelectorParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16", "(", "&", "w", ",", "v", ")"...
21,109
all-21110
[ "HasShowErrors", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TraceServiceDefinition", ")", "HasShowErrors", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "ShowErrors", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
21,110
all-21111
[ "Patch", "applies", "patch", "to", "old", "according", "to", "the", "bspatch", "algorithm", "and", "writes", "the", "result", "to", "new", "." ]
[ "func", "Patch", "(", "old", "io", ".", "Reader", ",", "new", "io", ".", "Writer", ",", "patch", "io", ".", "Reader", ")", "error", "{", "var", "hdr", "header", "\n", "err", ":=", "binary", ".", "Read", "(", "patch", ",", "signMagLittleEndian", "{", ...
21,111
all-21112
[ "Offsets", "returns", "the", "latest", "stashed", "offsets", "by", "topic", "-", "partition" ]
[ "func", "(", "s", "*", "OffsetStash", ")", "Offsets", "(", ")", "map", "[", "string", "]", "int64", "{", "s", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mu", ".", "Unlock", "(", ")", "\n\n", "res", ":=", "make", "(", "map", "...
21,112
all-21113
[ "GetAuthconfig", "retrieves", "the", "correct", "auth", "configuration", "for", "the", "given", "repository" ]
[ "func", "(", "authProvider", "*", "ecrAuthProvider", ")", "GetAuthconfig", "(", "image", "string", ",", "registryAuthData", "*", "apicontainer", ".", "RegistryAuthenticationData", ")", "(", "types", ".", "AuthConfig", ",", "error", ")", "{", "if", "registryAuthDat...
21,113
all-21114
[ "SetParams", "sets", "r", ".", "Params", "to", "the", "JSON", "representation", "of", "v", ".", "If", "JSON", "marshaling", "fails", "it", "returns", "an", "error", "." ]
[ "func", "(", "r", "*", "<mask>", ")", "SetParams", "(", "v", "interface", "{", "}", ")", "error", "{", "b", ",", "err", ":=", "json", ".", "Marshal", "(", "v", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "r", "...
21,114
all-21115
[ "IsHash", "checks", "is", "provided", "string", "a", "valid", "hash", "." ]
[ "func", "(", "s", "MD5Hasher", ")", "IsHash", "(", "h", "string", ")", "bool", "{", "if", "len", "(", "h", ")", "!=", "s", ".", "HashLength", "{", "return", "false", "\n", "}", "\n", "var", "found", "bool", "\n", "for", "_", ",", "c", ":=", "ra...
21,115
all-21116
[ "IsFinished", "()", "is", "a", "wrapper", "around", "gtk_print_operation_is_finished", "()", "." ]
[ "func", "(", "po", "*", "PrintOperation", ")", "IsFinished", "(", ")", "bool", "{", "c", ":=", "C", ".", "gtk_print_operation_is_finished", "(", "<mask>", ".", "native", "(", ")", ")", "\n", "return", "gobool", "(", "c", ")", "\n", "}" ]
21,116
all-21117
[ "ProcessServiceCheckResult", "creates", "a", "new", "PROCESS_SERVICE_CHECK_RESULT", "Nagios", "command", ".", "This", "is", "used", "to", "submit", "a", "passive", "check", "result", "for", "a", "particular", "service", ".", "The", "return_code", "field", "should", ...
[ "func", "ProcessServiceCheckResult", "(", "host_name", "string", ",", "service_description", "<mask>", ",", "return_code", "int", ",", "plugin_output", "string", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\""...
21,117
all-21118
[ "SetNline", "sets", "the", "number", "of", "line", "where", "secret", "should", "be", "found", "." ]
[ "func", "(", "x", "*", "<mask>", ")", "SetNline", "(", "nLine", "int", ")", "error", "{", "x", ".", "Nline", "=", "&", "nLine", "\n", "return", "nil", "\n", "}" ]
21,118
all-21119
[ "TargetEntryNew", "is", "a", "wrapper", "around", "gtk_target_entry_new", "()", "." ]
[ "func", "TargetEntryNew", "(", "target", "string", ",", "<mask>", "TargetFlags", ",", "info", "uint", ")", "(", "*", "TargetEntry", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "target", ")", "\n", "defer", "C", ".", "free", "(", "...
21,119
all-21120
[ "DeleteResourcePolicy", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "DeleteResourcePolicy", "(", "arg0", "*", "secretsmanager", ".", "DeleteResourcePolicyInput", ")", "(", "*", "secretsmanager", ".", "DeleteResourcePolicyOutput", ",", "error", ")", "{", "<mask>", ":=", "m", ".",...
21,120
all-21121
[ "Reset", "resets", "the", "GeoM", "as", "identity", "." ]
[ "func", "(", "g", "*", "GeoM", ")", "Reset", "(", ")", "{", "g", ".", "a_1", "=", "0", "\n", "g", ".", "b", "=", "0", "\n", "g", ".", "c", "=", "0", "\n", "g", ".", "d_1", "=", "0", "\n", "g", ".", "<mask>", "=", "0", "\n", "g", ".", ...
21,121
all-21122
[ "writeByte", "writes", "c", "to", "the", "end", "of", "the", "window" ]
[ "func", "(", "w", "*", "<mask>", ")", "writeByte", "(", "c", "byte", ")", "{", "w", ".", "buf", "[", "w", ".", "w", "]", "=", "c", "\n", "w", ".", "w", "=", "(", "w", ".", "w", "+", "1", ")", "&", "w", ".", "mask", "\n", "}" ]
21,122
all-21123
[ "ListenAndServe", "starts", "the", "AWS", "Lambda", "runtime", "(", "aws", "-", "lambda", "-", "go", "lambda", ".", "Start", ")", "with", "a", "given", "handler", "." ]
[ "func", "ListenAndServe", "(", "handler", "<mask>", ".", "Handler", ",", "opts", "*", "Options", ")", "{", "if", "handler", "==", "nil", "{", "handler", "=", "http", ".", "DefaultServeMux", "\n", "}", "\n", "if", "opts", "==", "nil", "{", "opts", "=", ...
21,123
all-21124
[ "retrieve", "the", "index", "of", "a", "named", "uniform", "block" ]
[ "func", "GetUniformIndices", "(", "<mask>", "uint32", ",", "uniformCount", "int32", ",", "uniformNames", "*", "*", "uint8", ",", "uniformIndices", "*", "uint32", ")", "{", "syscall", ".", "Syscall6", "(", "gpGetUniformIndices", ",", "4", ",", "uintptr", "(", ...
21,124
all-21125
[ "getRBDFilesystem", "returns", "the", "filesystem", "the", "RBD", "storage", "volume", "is", "supposed", "to", "be", "created", "with" ]
[ "func", "(", "s", "*", "storageCeph", ")", "getRBDFilesystem", "(", ")", "string", "{", "if", "s", ".", "volume", ".", "Config", "[", "\"", "\"", "]", "!=", "\"", "\"", "{", "return", "s", ".", "volume", ".", "Config", "[", "\"", "\"", "]", "\n",...
21,125
all-21126
[ "Preallocate", "tries", "to", "allocate", "the", "space", "for", "given", "file", ".", "This", "operation", "is", "only", "supported", "on", "linux", "by", "a", "few", "filesystems", "(", "btrfs", "ext4", "etc", ".", ")", ".", "If", "the", "operation", "...
[ "func", "Preallocate", "(", "f", "*", "os", ".", "<mask>", ",", "sizeInBytes", "int64", ",", "extendFile", "bool", ")", "error", "{", "if", "sizeInBytes", "==", "0", "{", "// fallocate will return EINVAL if length is 0; skip", "return", "nil", "\n", "}", "\n", ...
21,126
all-21127
[ "New", "creates", "Cmp", "for", "multiple", "comparison", "mode", "." ]
[ "func", "NewMultiple", "(", "buf", "[", "]", "byte", ",", "options", "<mask>", ",", "h", "hash", ".", "Hash", ",", "compareOnMatch", "bool", ")", "*", "Cmp", "{", "c", ":=", "&", "Cmp", "{", "Opt", ":", "options", ",", "hashType", ":", "h", ",", ...
21,127
all-21128
[ "mergeChunk", "merges", "the", "datum", "hashtrees", "into", "a", "chunk", "hashtree", "and", "stores", "it", "." ]
[ "func", "(", "a", "*", "APIServer", ")", "mergeChunk", "(", "logger", "*", "taggedLogger", ",", "high", "int64", ",", "result", "*", "processResult", ")", "(", "retErr", "error", ")", "{", "logger", ".", "Logf", "(", "\"", "\"", ")", "\n", "defer", "...
21,128
all-21129
[ "Parent", "is", "a", "wrapper", "around", "g_type_parent", "()", "." ]
[ "func", "(", "t", "Type", ")", "Parent", "(", ")", "Type", "{", "return", "<mask>", "(", "C", ".", "g_type_parent", "(", "C", ".", "GType", "(", "t", ")", ")", ")", "\n", "}" ]
21,129
all-21130
[ "Replace", "replaces", "the", "previous", "input", "with", "whatever", "is", "specified", "and", "moves", "the", "cursor", "to", "the", "end", "position" ]
[ "func", "(", "c", "*", "Cursor", ")", "Replace", "(", "input", "string", ")", "{", "c", ".", "input", "=", "[", "]", "rune", "(", "<mask>", ")", "\n", "c", ".", "End", "(", ")", "\n", "}" ]
21,130
all-21131
[ "Less", "helps", "implement", "sort", ".", "Interface", "for", "virtualDiskSubresourceSorter", "." ]
[ "func", "(", "s", "virtualDiskSubresourceSorter", ")", "Less", "(", "i", ",", "j", "int", ")", "bool", "{", "mi", ":=", "s", "[", "i", "]", ".", "(", "map", "[", "string", "]", "interface", "{", "}", ")", "\n", "mj", ":=", "s", "[", "j", "]", ...
21,131
all-21132
[ "Returns", "true", "if", "parameter", "with", "given", "name", "is", "mandatory" ]
[ "func", "mandatory", "(", "a", "gen", ".", "Action", ",", "param", "string", ")", "bool", "{", "for", "_", ",", "p", ":=", "range", "a", ".", "Params", "{", "if", "p", ".", "<mask>", "==", "param", "{", "return", "p", ".", "Mandatory", "\n", "}",...
21,132
all-21133
[ "title", ":", "webhook", "list", "path", ":", "/", "events", "/", "webhooks", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "List", "webhooks", "204", ":", "No", "content" ]
[ "func", "webhookList", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "ctxs", ":=", "permission", ".", "ContextsForPermission", "(", "t", ",", "permission", ".", "PermWeb...
21,133
all-21134
[ "MergeProfiles", "merges", "two", "coverage", "profiles", ".", "The", "profiles", "are", "expected", "to", "be", "similar", "-", "that", "is", "from", "multiple", "invocations", "of", "a", "single", "binary", "or", "multiple", "binaries", "using", "the", "same...
[ "func", "MergeProfiles", "(", "a", "[", "]", "*", "cover", ".", "Profile", ",", "b", "[", "]", "*", "cover", ".", "Profile", ")", "(", "[", "]", "*", "cover", ".", "Profile", ",", "error", ")", "{", "var", "result", "[", "]", "*", "cover", ".",...
21,134
all-21135
[ "RunInBackground", "runs", "f", "in", "a", "background", "goroutine", "in", "this", "process", ".", "f", "is", "provided", "a", "context", "that", "may", "outlast", "the", "context", "provided", "to", "RunInBackground", ".", "This", "is", "only", "valid", "t...
[ "func", "RunInBackground", "(", "c", "context", ".", "Context", ",", "f", "func", "(", "c", "<mask>", ".", "Context", ")", ")", "error", "{", "req", ":=", "&", "pb", ".", "StartBackgroundRequestRequest", "{", "}", "\n", "res", ":=", "&", "pb", ".", "...
21,135
all-21136
[ "GetString", "returns", "the", "value", "of", "the", "given", "key", "which", "must", "be", "of", "type", "String", "." ]
[ "func", "(", "m", "*", "Map", ")", "GetString", "(", "<mask>", "string", ")", "string", "{", "m", ".", "schema", ".", "assertKeyType", "(", "name", ",", "String", ")", "\n", "return", "m", ".", "GetRaw", "(", "name", ")", "\n", "}" ]
21,136
all-21137
[ "ImageID", "computes", "an", "ID", "which", "can", "uniquely", "identify", "this", "image", "by", "its", "contents", "." ]
[ "func", "(", "m", "*", "Schema1", ")", "ImageID", "(", "diffIDs", "[", "]", "digest", ".", "Digest", ")", "(", "string", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "m", ".", "ToSchema2Config", "(", "diffIDs", ")", "\n", "if", "err", "!=", ...
21,137
all-21138
[ "LedgerKey", "returns", "the", "key", "for", "the", "ledger", "entry", "that", "was", "changed", "in", "change", "." ]
[ "func", "(", "change", "*", "LedgerEntryChange", ")", "LedgerKey", "(", ")", "LedgerKey", "{", "switch", "change", ".", "Type", "{", "case", "LedgerEntryChangeTypeLedgerEntryCreated", ":", "change", ":=", "change", ".", "MustCreated", "(", ")", "\n", "return", ...
21,138
all-21139
[ "netifKey", "renders", "a", "specific", "network_interface", "key", "for", "a", "specific", "resource", "index", "." ]
[ "func", "netifKey", "(", "<mask>", "string", ",", "n", "int", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "cNetifKeyPrefix", ",", "n", ",", "key", ")", "\n", "}" ]
21,139
all-21140
[ "NewOutgoingChatAction", "creates", "a", "new", "outgoing", "chat", "action", "." ]
[ "func", "(", "api", "*", "TelegramBotAPI", ")", "NewOutgoingChatAction", "(", "recipient", "Recipient", ",", "action", "ChatAction", ")", "*", "OutgoingChatAction", "{", "return", "&", "OutgoingChatAction", "{", "outgoingBase", ":", "outgoingBase", "{", "api", ":"...
21,140
all-21141
[ "GetQueryOk", "returns", "a", "tuple", "with", "the", "Query", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetEvent", ")", "GetQueryOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Query", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "*", "w"...
21,141
all-21142
[ "New", "archive", "If", "the", "exentions", "of", "the", "target", "file", "is", ".", "zip", "the", "archive", "will", "be", "in", "the", "zip", "format", "otherwise", "it", "will", "be", "a", "tar", ".", "gz", "archive", "." ]
[ "func", "New", "(", "file", "*", "os", ".", "<mask>", ")", "Archive", "{", "if", "filepath", ".", "Ext", "(", "file", ".", "Name", "(", ")", ")", "==", "\"", "\"", "{", "return", "zip", ".", "New", "(", "file", ")", "\n", "}", "\n", "return", ...
21,142
all-21143
[ "SetBodyWriter", "sets", "the", "body", "of", "the", "message", ".", "It", "can", "be", "useful", "with", "the", "text", "/", "template", "or", "html", "/", "template", "packages", "." ]
[ "func", "(", "m", "*", "Message", ")", "SetBodyWriter", "(", "contentType", "string", ",", "f", "func", "(", "io", ".", "Writer", ")", "error", ",", "<mask>", "...", "PartSetting", ")", "{", "m", ".", "parts", "=", "[", "]", "*", "part", "{", "m", ...
21,143
all-21144
[ "GetProperty", "returns", "the", "Property", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "SyntheticsAssertion", ")", "GetProperty", "(", ")", "string", "{", "if", "s", "==", "nil", "||", "s", ".", "Property", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "<mask>", "*", "s", ".", "Property", "\n", "}" ]
21,144
all-21145
[ "Startup", "is", "not", "required", "to", "use", "the", "ReplGroupStore", ";", "it", "will", "automatically", "connect", "to", "backend", "stores", "as", "needed", ".", "However", "if", "you", "d", "like", "to", "use", "the", "ring", "service", "to", "rece...
[ "func", "(", "rs", "*", "ReplGroupStore", ")", "Startup", "(", "ctx", "context", ".", "Context", ")", "error", "{", "rs", ".", "ringLock", ".", "Lock", "(", ")", "\n", "if", "rs", ".", "ringServerExitChan", "==", "nil", "{", "rs", ".", "ringServerExitC...
21,145
all-21146
[ "Names", "returns", "the", "names", "of", "all", "variables", "within", "the", "template", "." ]
[ "func", "(", "self", "*", "UriTemplate", ")", "Names", "(", ")", "[", "]", "string", "{", "names", ":=", "make", "(", "[", "]", "string", ",", "0", ",", "len", "(", "self", ".", "parts", ")", ")", "\n\n", "for", "_", ",", "p", ":=", "range", ...
21,146
all-21147
[ "Download", "renders", "a", "file", "attachment", "automatically", "setting", "following", "headers", ":", "Content", "-", "Type", "Content", "-", "Length", "Content", "-", "Disposition", "Content", "-", "Type", "is", "set", "using", "mime#TypeByExtension", "with"...
[ "func", "(", "e", "*", "Engine", ")", "Download", "(", "ctx", "context", ".", "Context", ",", "<mask>", "string", ",", "r", "io", ".", "Reader", ")", "Renderer", "{", "return", "Download", "(", "ctx", ",", "name", ",", "r", ")", "\n", "}" ]
21,147
all-21148
[ "Get", "gets", "a", "key", "s", "value", "by", "returning", "an", "io", ".", "ReadCloser", "that", "should", "be", "closed", "when", "done", "." ]
[ "func", "(", "c", "*", "Cache", ")", "Get", "(", "key", "string", ")", "(", "io", ".", "ReadCloser", ",", "error", ")", "{", "c", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "mu", ".", "Unlock", "(", ")", "\n", "if", "!", "c"...
21,148
all-21149
[ "decodeConfiguration", "deserializes", "a", "Configuration", "using", "MsgPack", "or", "panics", "on", "errors", "." ]
[ "func", "decodeConfiguration", "(", "buf", "[", "]", "byte", ")", "<mask>", "{", "var", "configuration", "Configuration", "\n", "if", "err", ":=", "decodeMsgPack", "(", "buf", ",", "&", "configuration", ")", ";", "err", "!=", "nil", "{", "panic", "(", "f...
21,149
all-21150
[ "Stop", "shuts", "down", "the", "notification", "handler", "." ]
[ "func", "(", "n", "*", "Manager", ")", "Stop", "(", ")", "{", "level", ".", "Info", "(", "n", ".", "logger", ")", ".", "<mask>", "(", "\"", "\"", ",", "\"", "\"", ")", "\n", "n", ".", "cancel", "(", ")", "\n", "}" ]
21,150
all-21151
[ "flattenClusterVMHostRuleInfo", "saves", "a", "ClusterVmHostRuleInfo", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterVMHostRuleInfo", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "types", ".", "ClusterVmHostRuleInfo", ")", "error", "{", "return", "structure", ".", "SetBatch", "(", "d", ",", "map", "[", "string", "]", "<mask>", "{", ...
21,151
all-21152
[ "GetPaperHeight", "()", "is", "a", "wrapper", "around", "gtk_page_setup_get_paper_height", "()", "." ]
[ "func", "(", "ps", "*", "PageSetup", ")", "GetPaperHeight", "(", "<mask>", "Unit", ")", "float64", "{", "c", ":=", "C", ".", "gtk_page_setup_get_paper_height", "(", "ps", ".", "native", "(", ")", ",", "C", ".", "GtkUnit", "(", "unit", ")", ")", "\n", ...
21,152
all-21153
[ "UnmarshalYAML", "implements", "the", "yaml", ".", "Unmarshaler", "interface", "." ]
[ "func", "(", "c", "*", "SDConfig", ")", "UnmarshalYAML", "(", "unmarshal", "func", "(", "interface", "{", "}", ")", "error", ")", "error", "{", "*", "c", "=", "DefaultSDConfig", "\n", "<mask>", "plain", "SDConfig", "\n", "err", ":=", "unmarshal", "(", ...
21,153
all-21154
[ "newWritableChunk", "creates", "a", "new", "writable", "chunk", "around", "a", "checksum", "and", "a", "buffer", "to", "hold", "data" ]
[ "func", "newWritableChunk", "(", "checksum", "Checksum", ",", "contents", "*", "typed", ".", "WriteBuffer", ")", "*", "writableChunk", "{", "return", "&", "writableChunk", "{", "<mask>", ":", "0", ",", "sizeRef", ":", "contents", ".", "DeferUint16", "(", ")"...
21,154
all-21155
[ "JobSummary", "produces", "a", "JobSummary", "instance", "with", "values", "populated", "from", "the", "import", "result", ".", "The", "summary", "object", "won", "t", "have", "its", "Description", "populated", "since", "import", "results", "do", "not", "include...
[ "func", "(", "r", "*", "jobImportResult", ")", "JobSummary", "(", ")", "*", "JobSummary", "{", "return", "&", "JobSummary", "{", "ID", ":", "r", ".", "ID", ",", "Name", ":", "r", ".", "<mask>", ",", "GroupName", ":", "r", ".", "GroupName", ",", "Pr...
21,155
all-21156
[ "JobPath", "returns", "a", "link", "to", "the", "GCS", "directory", "for", "the", "job", "specified", "in", "src" ]
[ "func", "(", "s", "*", "Spyglass", ")", "JobPath", "(", "src", "string", ")", "(", "string", ",", "error", ")", "{", "src", "=", "strings", ".", "TrimSuffix", "(", "src", ",", "\"", "\"", ")", "\n", "keyType", ",", "key", ",", "err", ":=", "split...
21,156
all-21157
[ "Backoff", "causes", "the", "current", "thread", "/", "routine", "to", "sleep", "for", "NextDuration", "." ]
[ "func", "(", "b", "*", "Backoff", ")", "Backoff", "(", ")", "{", "time", ".", "Sleep", "(", "b", ".", "NextDuration", ")", "\n", "b", ".", "<mask>", "++", "\n", "b", ".", "LastDuration", "=", "b", ".", "NextDuration", "\n", "b", ".", "NextDuration"...
21,157
all-21158
[ "NewClientWithFields", "creates", "a", "new", "fully", "operational", "GitHub", "client", ".", "With", "added", "logging", "fields", ".", "getToken", "is", "a", "generator", "for", "the", "GitHub", "access", "token", "to", "use", ".", "bases", "is", "a", "va...
[ "func", "NewClientWithFields", "(", "fields", "logrus", ".", "Fields", ",", "getToken", "func", "(", ")", "[", "]", "byte", ",", "graphqlEndpoint", "string", ",", "bases", "...", "string", ")", "*", "Client", "{", "return", "&", "Client", "{", "logger", ...
21,158
all-21159
[ "Setup", "implements", "storage", "interface", "." ]
[ "func", "(", "s", "*", "Storage", ")", "Setup", "(", ")", "error", "{", "query", ":=", "fmt", ".", "Sprintf", "(", "`\n\t\tCREATE SCHEMA IF NOT EXISTS %s;\n\t\tCREATE TABLE IF NOT EXISTS %s.%s (\n\t\t\taccess_token BYTEA PRIMARY KEY,\n\t\t\trefresh_token BYTEA,\n\t\t\tsubject_id TE...
21,159
all-21160
[ "Columns", "returns", "the", "list", "of", "the", "record", "columns", "." ]
[ "func", "(", "r", "Record", ")", "Columns", "(", ")", "[", "]", "string", "{", "cols", ":=", "[", "]", "string", "{", "}", "\n", "for", "k", ":=", "range", "r", "{", "cols", "=", "append", "(", "cols", ",", "k", ")", "\n", "}", "\n", "<mask>"...
21,160
all-21161
[ "Implement", "the", "io", ".", "Reader", "interface" ]
[ "func", "(", "f", "FileEntry", ")", "Read", "(", "p", "[", "]", "byte", ")", "(", "n", "int", ",", "err", "error", ")", "{", "file", ":=", "f", ".", "pbo", ".", "file", "\n\n", "offset", ",", "err", ":=", "file", ".", "Seek", "(", "0", ",", ...
21,161
all-21162
[ "Do", "executes", "Input", ".", "setIgnoreInputEvents", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetIgnoreInputEventsParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetIgnoreInputEvents", ",", "p", ",", "nil", ")", "\n", ...
21,162
all-21163
[ "TODO", ":", "TEST" ]
[ "func", "(", "cdc", "*", "Codec", ")", "encodeReflectJSONMap", "(", "w", "io", ".", "<mask>", ",", "info", "*", "TypeInfo", ",", "rv", "reflect", ".", "Value", ",", "fopts", "FieldOptions", ")", "(", "err", "error", ")", "{", "if", "printLog", "{", "...
21,163
all-21164
[ "Set", "is", "required", "for", "kingpin", "interfaces", "to", "allow", "command", "line", "params", "to", "be", "set", "to", "our", "map", "datatype" ]
[ "func", "(", "o", "*", "ListUint8Option", ")", "<mask>", "(", "value", "string", ")", "error", "{", "val", ":=", "Uint8Option", "{", "}", "\n", "val", ".", "Set", "(", "value", ")", "\n", "*", "o", "=", "append", "(", "*", "o", ",", "val", ")", ...
21,164
all-21165
[ "initTables", "replaces", "s", ".", "tables", "with", "given", "tables", ".", "This", "is", "done", "during", "loading", "." ]
[ "func", "(", "s", "*", "levelHandler", ")", "initTables", "(", "tables", "[", "]", "*", "table", ".", "Table", ")", "{", "s", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "Unlock", "(", ")", "\n\n", "s", ".", "tables", "=", "tables", "\n", "...
21,165
all-21166
[ "SetLimits", "set", "new", "ProgressBar", "limits", ".", "The", "current", "value", "is", "adjusted", "if", "it", "exceeds", "new", "limits" ]
[ "func", "(", "b", "*", "ProgressBar", ")", "SetLimits", "(", "min", ",", "max", "int", ")", "{", "b", ".", "min", "=", "min", "\n", "b", ".", "max", "=", "<mask>", "\n\n", "if", "b", ".", "value", "<", "b", ".", "min", "{", "b", ".", "value",...
21,166
all-21167
[ "Draw", "draws", "the", "board", "to", "the", "given", "boardImage", "." ]
[ "func", "(", "b", "*", "Board", ")", "Draw", "(", "boardImage", "*", "ebiten", ".", "<mask>", ")", "{", "boardImage", ".", "Fill", "(", "frameColor", ")", "\n", "for", "j", ":=", "0", ";", "j", "<", "b", ".", "size", ";", "j", "++", "{", "for",...
21,167
all-21168
[ "doRequestWithRetries", "performs", "an", "HTTP", "request", "repeatedly", "for", "maxTime", "or", "until", "no", "error", "and", "no", "acceptable", "HTTP", "response", "code", "was", "returned", "." ]
[ "func", "(", "client", "*", "Client", ")", "doRequestWithRetries", "(", "req", "*", "http", ".", "Request", ",", "maxTime", "time", ".", "Duration", ")", "(", "*", "http", ".", "Response", ",", "error", ")", "{", "var", "(", "err", "error", "\n", "re...
21,168
all-21169
[ "podPort", "extracts", "the", "proper", "port", "for", "the", "address", "from", "the", "given", "pod", "for", "a", "non", "-", "empty", "annotation", ".", "Pre", "-", "condition", ":", "annotation", "is", "non", "-", "empty" ]
[ "func", "podPort", "(", "pod", "*", "corev1", ".", "Pod", ",", "annotation", "string", ",", "host", "bool", ")", "(", "int32", ",", "error", ")", "{", "// First look for a matching port matching the value of the annotation.", "for", "_", ",", "container", ":=", ...
21,169
all-21170
[ "Exec", "executes", "the", "drawTrianglesCommand", "." ]
[ "func", "(", "c", "*", "drawTrianglesCommand", ")", "Exec", "(", "indexOffset", "int", ")", "error", "{", "// TODO: Is it ok not to bind any framebuffer here?", "if", "c", ".", "nindices", "==", "0", "{", "return", "nil", "\n", "}", "\n\n", "c", ".", "dst", ...
21,170
all-21171
[ "Handle", "increments", "Prometheus", "counter", "metrics", "based", "on", "record", "log", "level", "." ]
[ "func", "(", "h", "*", "Handler", ")", "Handle", "(", "record", "*", "logging", ".", "Record", ")", "error", "{", "switch", "record", ".", "Level", "{", "<mask>", "logging", ".", "EMERGENCY", ":", "h", ".", "Counter", ".", "emergencyCounter", ".", "Inc...
21,171
all-21172
[ "SetMediaText", "modifies", "the", "rule", "selector", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "CSS#method", "-", "setMediaText", "parameters", ":", "styleSheetID", "...
[ "func", "SetMediaText", "(", "styleSheetID", "StyleSheetID", ",", "rangeVal", "*", "SourceRange", ",", "text", "string", ")", "*", "SetMediaTextParams", "{", "return", "&", "SetMediaTextParams", "{", "StyleSheetID", ":", "styleSheetID", ",", "Range", ":", "rangeVa...
21,172
all-21173
[ "render", "multiple", "sets", "of", "primitives", "from", "array", "data" ]
[ "func", "MultiDrawArrays", "(", "mode", "uint32", ",", "first", "*", "int32", ",", "count", "*", "int32", ",", "drawcount", "int32", ")", "{", "C", ".", "glowMultiDrawArrays", "(", "gpMultiDrawArrays", ",", "(", "C", ".", "GLenum", ")", "(", "mode", ")",...
21,173
all-21174
[ "ListFirewallRules", "lists", "all", "firewall", "rules" ]
[ "func", "(", "c", "*", "<mask>", ")", "ListFirewallRules", "(", "dcID", "string", ",", "serverID", "string", ",", "nicID", "string", ")", "(", "*", "FirewallRules", ",", "error", ")", "{", "url", ":=", "fwruleColPath", "(", "dcID", ",", "serverID", ",", ...
21,174
all-21175
[ "GetOrderDir", "returns", "the", "OrderDir", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "c", "*", "ChangeRequest", ")", "GetOrderDir", "(", ")", "<mask>", "{", "if", "c", "==", "nil", "||", "c", ".", "OrderDir", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "c", ".", "OrderDir", "\n", "}" ]
21,175
all-21176
[ "/", "*", "ClearLoggers", "will", "shut", "down", "and", "remove", "any", "loggers", "added", "to", "the", "Base", ".", "If", "an", "error", "occurs", "while", "shutting", "down", "one", "of", "the", "loggers", "the", "list", "will", "not", "be", "cleare...
[ "func", "(", "b", "*", "Base", ")", "ClearLoggers", "(", ")", "error", "{", "for", "_", ",", "logger", ":=", "range", "b", ".", "loggers", "{", "err", ":=", "logger", ".", "ShutdownLogger", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
21,176
all-21177
[ "GetLineWidth", "returns", "the", "LineWidth", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "t", "*", "TimeseriesRequestStyle", ")", "GetLineWidth", "(", ")", "string", "{", "if", "t", "==", "nil", "||", "t", ".", "LineWidth", "==", "nil", "{", "<mask>", "\"", "\"", "\n", "}", "\n", "return", "*", "t", ".", "LineWidth", "\n", ...
21,177
all-21178
[ "EtagCheck", "validates", "the", "hash", "of", "the", "current", "state", "with", "the", "hash", "provided", "by", "the", "client" ]
[ "func", "EtagCheck", "(", "r", "*", "<mask>", ".", "Request", ",", "data", "interface", "{", "}", ")", "error", "{", "match", ":=", "r", ".", "Header", ".", "Get", "(", "\"", "\"", ")", "\n", "if", "match", "==", "\"", "\"", "{", "return", "nil",...
21,178
all-21179
[ "AgentMetadataHandler", "creates", "response", "for", "v1", "/", "metadata", "API", "." ]
[ "func", "AgentMetadataHandler", "(", "containerInstanceArn", "*", "string", ",", "cfg", "*", "config", ".", "Config", ")", "func", "(", "<mask>", ".", "ResponseWriter", ",", "*", "http", ".", "Request", ")", "{", "return", "func", "(", "w", "http", ".", ...
21,179
all-21180
[ "/", "*", "LoadConfiguration", "takes", "a", "path", "treats", "it", "as", "a", "file", "and", "scans", "it", "for", "an", "ini", "configuration", "." ]
[ "func", "LoadConfiguration", "(", "path", "string", ")", "(", "*", "Config", ",", "error", ")", "{", "config", ":=", "new", "(", "Config", ")", "\n", "err", ":=", "config", ".", "InitializeFromPath", "(", "<mask>", ")", "\n\n", "if", "err", "!=", "nil"...
21,180
all-21181
[ "NewReader", "returns", "a", "reader", "that", "reads", "typed", "values", "from", "the", "reader", "." ]
[ "func", "NewReader", "(", "reader", "<mask>", ".", "Reader", ")", "*", "Reader", "{", "r", ":=", "readerPool", ".", "Get", "(", ")", ".", "(", "*", "Reader", ")", "\n", "r", ".", "reader", "=", "reader", "\n", "r", ".", "err", "=", "nil", "\n", ...
21,181
all-21182
[ "SetPrintPages", "()", "is", "a", "wrapper", "around", "gtk_print_settings_set_print_pages", "()", "." ]
[ "func", "(", "ps", "*", "PrintSettings", ")", "SetPrintPages", "(", "pages", "PrintPages", ")", "{", "C", ".", "gtk_print_settings_set_print_pages", "(", "ps", ".", "native", "(", ")", ",", "C", ".", "GtkPrintPages", "(", "<mask>", ")", ")", "\n", "}" ]
21,182
all-21183
[ "createFiles", "creates", "all", "the", "log", "files", "for", "severity", "from", "sev", "down", "to", "infoLog", ".", "l", ".", "mu", "is", "held", "." ]
[ "func", "(", "l", "*", "Log", ")", "createFiles", "(", "sev", "Severity", ")", "error", "{", "<mask>", ":=", "time", ".", "Now", "(", ")", "\n", "// Files are created in decreasing severity order, so as soon as we find one", "// has already been created, we can stop.", ...
21,183
all-21184
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetRequestPostDataReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork32", "(", "&", "w", ",", "v...
21,184
all-21185
[ "tickHeartbeat", "is", "run", "by", "leaders", "to", "send", "a", "MsgBeat", "after", "r", ".", "heartbeatTimeout", "." ]
[ "func", "(", "r", "*", "raft", ")", "tickHeartbeat", "(", ")", "{", "r", ".", "heartbeatElapsed", "++", "\n", "r", ".", "electionElapsed", "++", "\n\n", "if", "r", ".", "electionElapsed", ">=", "r", ".", "electionTimeout", "{", "r", ".", "electionElapsed...
21,185
all-21186
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform3f", "(", "program", "uint32", ",", "<mask>", "int32", ",", "v0", "float32", ",", "v1", "float32", ",", "v2", "float32", ")", "{", "C", ".", "glowProgramUniform3f", "(", "gpProgramUniform3f", ",", "(", "C", ".", "GLuint", ")", "(", ...
21,186
all-21187
[ "NodeRemove", "removes", "the", "node", "with", "the", "given", "id", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "NodeRemove", "(", "id", "int64", ")", "error", "{", "result", ",", "err", ":=", "c", ".", "<mask>", ".", "Exec", "(", "\"", "\"", ",", "id", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\...
21,187
all-21188
[ "ServerConfig", "generates", "a", "tls", ".", "Config", "object", "for", "use", "by", "an", "HTTP", "server", "." ]
[ "func", "(", "<mask>", "TLSInfo", ")", "ServerConfig", "(", ")", "(", "*", "tls", ".", "Config", ",", "error", ")", "{", "cfg", ",", "err", ":=", "info", ".", "baseConfig", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err...
21,188
all-21189
[ "Shutdown", "will", "close", "any", "existing", "connections", ";", "note", "that", "Startup", "may", "automatically", "get", "called", "with", "any", "further", "activity", "but", "it", "will", "use", "a", "new", "connection", ".", "To", "ensure", "the", "g...
[ "func", "(", "stor", "*", "groupStore", ")", "Shutdown", "(", "ctx", "context", ".", "<mask>", ")", "error", "{", "stor", ".", "lock", ".", "Lock", "(", ")", "\n", "err", ":=", "stor", ".", "shutdown", "(", ")", "\n", "stor", ".", "lock", ".", "U...
21,189
all-21190
[ "ObjectStat", "gets", "stats", "for", "the", "DAG", "object", "named", "by", "key", ".", "It", "returns", "the", "stats", "of", "the", "requested", "Object", "or", "an", "error", "." ]
[ "func", "(", "s", "*", "Shell", ")", "ObjectStat", "(", "key", "string", ")", "(", "*", "ObjectStats", ",", "error", ")", "{", "<mask>", "stat", "ObjectStats", "\n", "err", ":=", "s", ".", "Request", "(", "\"", "\"", ",", "key", ")", ".", "Exec", ...
21,190
all-21191
[ "NewStmt", "return", "a", "new", "statement", "code", "snippet", "for", "running", "the", "given", "kind", "of", "query", "against", "the", "given", "database", "entity", "." ]
[ "func", "NewStmt", "(", "database", ",", "pkg", ",", "entity", ",", "kind", "string", ",", "config", "map", "[", "string", "]", "string", ")", "(", "*", "Stmt", ",", "error", ")", "{", "packages", ",", "err", ":=", "Packages", "(", ")", "\n", "if",...
21,191
all-21192
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventJavascriptDialogOpening", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage56", "(", ...
21,192
all-21193
[ "ShouldCreateWithSSMSecret", "returns", "true", "if", "this", "container", "needs", "to", "get", "secret", "value", "from", "SSM", "Parameter", "Store" ]
[ "func", "(", "c", "*", "Container", ")", "ShouldCreateWithSSMSecret", "(", ")", "bool", "{", "c", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "c", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "// Secrets field will be nil if there is no secrets for c...
21,193
all-21194
[ "MustGenerateRandomBytes", "generates", "random", "bytes", "or", "panics", "if", "it", "can", "t" ]
[ "func", "MustGenerateRandomBytes", "(", "length", "int", ")", "[", "]", "byte", "{", "res", ",", "err", ":=", "GenerateRandomBytes", "(", "<mask>", ")", "\n\n", "if", "err", "!=", "nil", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", ...
21,194
all-21195
[ "Failf", "outputs", "formatted", "Failed", "log" ]
[ "func", "(", "g", "*", "Glg", ")", "Failf", "(", "<mask>", "string", ",", "val", "...", "interface", "{", "}", ")", "error", "{", "return", "g", ".", "out", "(", "FAIL", ",", "format", ",", "val", "...", ")", "\n", "}" ]
21,195
all-21196
[ "AccelMapLookupEntry", "is", "a", "wrapper", "around", "gtk_accel_map_lookup_entry", "()", "." ]
[ "func", "AccelMapLookupEntry", "(", "path", "string", ")", "*", "AccelKey", "{", "cstr", ":=", "C", ".", "CString", "(", "path", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n\n", "<mask>", "v", "*", ...
21,196
all-21197
[ "IsRunningImageAllowed", "returns", "true", "iff", "the", "policy", "allows", "running", "the", "image", ".", "If", "it", "returns", "false", "err", "must", "be", "non", "-", "nil", "and", "should", "be", "an", "PolicyRequirementError", "if", "evaluation", "su...
[ "func", "(", "pc", "*", "PolicyContext", ")", "IsRunningImageAllowed", "(", "ctx", "context", ".", "Context", ",", "image", "types", ".", "UnparsedImage", ")", "(", "res", "bool", ",", "finalErr", "error", ")", "{", "if", "err", ":=", "pc", ".", "changeS...
21,197
all-21198
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetTargetInfoParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9", "(", "&", ...
21,198
all-21199
[ "CreateNetwork", "defines", "a", "new", "network", "using", "the", "provided", "Network", "struct" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "CreateNetwork", "(", "network", "api", ".", "NetworksPost", ")", "error", "{", "if", "!", "r", ".", "HasExtension", "(", "\"", "\"", ")", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\\\"", "\\\"", "\""...
21,199
all-21200
[ "UpdateImage", "updates", "the", "image", "definition" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "UpdateImage", "(", "fingerprint", "string", ",", "image", "api", ".", "ImagePut", ",", "ETag", "string", ")", "error", "{", "// Send the request", "_", ",", "_", ",", "err", ":=", "r", ".", "<mask>", "(", "\"...