id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
24,300
all-24301
[ "unicastResponse", "sends", "a", "watch", "response", "to", "a", "specific", "watch", "substream", "." ]
[ "func", "(", "w", "*", "watchGrpcStream", ")", "unicastResponse", "(", "wr", "*", "WatchResponse", ",", "watchId", "int64", ")", "bool", "{", "<mask>", ",", "ok", ":=", "w", ".", "substreams", "[", "watchId", "]", "\n", "if", "!", "ok", "{", "return", ...
24,301
all-24302
[ "Start", "is", "called", "on", "start", "of", "a", "request" ]
[ "func", "(", "t", "*", "WriterTracer", ")", "Start", "(", "r", "*", "http", ".", "Request", ")", "{", "t", ".", "StartTime", "=", "time", ".", "Now", "(", ")", ".", "UTC", "(", ")", "\n", "t", ".", "<mask>", ".", "URL", "=", "r", ".", "URL", ...
24,302
all-24303
[ "Skip", "a", "specified", "piece", "of", "middleware", "the", "specified", "Handlers", ".", "This", "is", "useful", "for", "things", "like", "wrapping", "your", "application", "in", "an", "authorization", "middleware", "but", "skipping", "it", "for", "things", ...
[ "func", "(", "ms", "*", "MiddlewareStack", ")", "Skip", "(", "mw", "MiddlewareFunc", ",", "handlers", "...", "Handler", ")", "{", "for", "_", ",", "h", ":=", "range", "handlers", "{", "key", ":=", "funcKey", "(", "mw", ",", "h", ")", "\n", "<mask>", ...
24,303
all-24304
[ "EnvForSpec", "returns", "a", "mapping", "of", "environment", "variables", "to", "their", "values", "that", "should", "be", "available", "for", "a", "job", "spec" ]
[ "func", "EnvForSpec", "(", "spec", "JobSpec", ")", "(", "map", "[", "string", "]", "string", ",", "error", ")", "{", "env", ":=", "map", "[", "string", "]", "string", "{", "jobNameEnv", ":", "spec", ".", "Job", ",", "buildIDEnv", ":", "spec", ".", ...
24,304
all-24305
[ "validateRepoName", "determines", "if", "a", "repo", "name", "is", "valid" ]
[ "func", "validateRepoName", "(", "name", "string", ")", "error", "{", "match", ",", "_", ":=", "regexp", ".", "MatchString", "(", "\"", "\"", ",", "name", ")", "\n", "if", "!", "match", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "<m...
24,305
all-24306
[ "SplitPathAndImage", "tries", "to", "split", "the", "provided", "OCI", "reference", "into", "the", "OCI", "path", "and", "image", ".", "Neither", "path", "nor", "image", "parts", "are", "validated", "at", "this", "stage", "." ]
[ "func", "SplitPathAndImage", "(", "<mask>", "string", ")", "(", "string", ",", "string", ")", "{", "if", "runtime", ".", "GOOS", "==", "\"", "\"", "{", "return", "splitPathAndImageWindows", "(", "reference", ")", "\n", "}", "\n", "return", "splitPathAndImage...
24,306
all-24307
[ "Union", "returns", "the", "smallest", "rectangle", "that", "contains", "both", "r", "and", "s", "." ]
[ "func", "(", "r", "Rectangle", ")", "Union", "(", "s", "Rectangle", ")", "Rectangle", "{", "if", "r", ".", "Empty", "(", ")", "{", "return", "s", "\n", "}", "\n", "if", "s", ".", "Empty", "(", ")", "{", "<mask>", "r", "\n", "}", "\n", "if", "...
24,307
all-24308
[ "AddWidget", "is", "the", "generic", "function", "to", "add", "a", "widget", "to", "a", "window", ".", "This", "function", "should", "only", "be", "called", "by", "widgets", ".", "Application", "code", "by", "convention", "should", "call", "the", "non", "-...
[ "func", "(", "w", "*", "Window", ")", "AddWidget", "(", "<mask>", "string", ",", "x", ",", "y", "int", ")", "(", "Widgeter", ",", "error", ")", "{", "rw", ",", "found", ":=", "registeredWidgets", "[", "id", "]", "\n", "if", "!", "found", "{", "re...
24,308
all-24309
[ "GetCreated", "retrieves", "the", "Created", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "LedgerEntryChange", ")", "GetCreated", "(", ")", "(", "result", "LedgerEntry", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName"...
24,309
all-24310
[ "FriendlyPrice", "flips", "the", "sign", "of", "the", "Price", "(", "which", "is", "usually", "reported", "from", "the", "API", "as", "a", "negative", "number", ")", "and", "adds", "an", "appropriate", "currency", "symbol", "in", "front", "of", "it", ".", ...
[ "func", "(", "c", "*", "Call", ")", "FriendlyPrice", "(", ")", "string", "{", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "<mask>", "(", "c", ".", "PriceUnit", ",", "c", ".", "Price", ")", "\n", "}" ]
24,310
all-24311
[ "OptClientConnectTimeout", "is", "the", "maximum", "time", "to", "connect", "in", "nanoseconds", "." ]
[ "func", "OptClientConnectTimeout", "(", "timeout", "time", ".", "Duration", ")", "ClientOption", "{", "return", "func", "(", "options", "*", "ClientOptions", ")", "error", "{", "<mask>", ".", "ConnectTimeout", "=", "timeout", "\n", "return", "nil", "\n", "}", ...
24,311
all-24312
[ "expandClusterFailoverResourcesAdmissionControlPolicy", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterFailoverResourcesAdmissionControlPolicy", "." ]
[ "func", "expandClusterFailoverResourcesAdmissionControlPolicy", "(", "d", "*", "schema", ".", "ResourceData", ",", "version", "viapi", ".", "VSphereVersion", ",", ")", "*", "types", ".", "ClusterFailoverResourcesAdmissionControlPolicy", "{", "obj", ":=", "&", "<mask>", ...
24,312
all-24313
[ "GetText", "returns", "the", "Text", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "e", "*", "Event", ")", "GetText", "(", ")", "string", "{", "if", "e", "==", "nil", "||", "e", ".", "Text", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "e", ".", "<mask>", "\n", "}" ]
24,313
all-24314
[ "PutUint8", "sets", "an", "8", "-", "bit", "unsigned", "value", "for", "the", "given", "string", "name", ".", "The", "field", "name", "must", "be", "a", "Uint8Field", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer...
[ "func", "(", "b", "*", "TupleBuilder", ")", "PutUint8", "(", "field", "string", ",", "value", "uint8", ")", "(", "wrote", "uint64", ",", "err", "error", ")", "{", "// field type should be a Uint8Field", "if", "err", "=", "b", ".", "typeCheck", "(", "field"...
24,314
all-24315
[ "GetTitle", "is", "a", "wrapper", "around", "gtk_window_get_title", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "GetTitle", "(", ")", "(", "string", ",", "<mask>", ")", "{", "return", "stringReturn", "(", "C", ".", "gtk_window_get_title", "(", "v", ".", "native", "(", ")", ")", ")", "\n", "}" ]
24,315
all-24316
[ "SetURLPrefix", "sets", "URL", "prefix", "of", "router", "layer", "so", "that", "it", "support", "suburl", "." ]
[ "func", "(", "m", "*", "Macaron", ")", "SetURLPrefix", "(", "<mask>", "string", ")", "{", "m", ".", "urlPrefix", "=", "prefix", "\n", "m", ".", "hasURLPrefix", "=", "len", "(", "m", ".", "urlPrefix", ")", ">", "0", "\n", "}" ]
24,316
all-24317
[ "Getfloat", "returns", "the", "float", "value", "for", "a", "given", "key", "." ]
[ "func", "(", "c", "*", "Config", ")", "Getfloat", "(", "<mask>", "string", ")", "(", "float64", ",", "error", ")", "{", "if", "value", ",", "found", ":=", "c", ".", "data", "[", "key", "]", ";", "found", "{", "return", "strconv", ".", "ParseFloat",...
24,317
all-24318
[ "Namespaces", "returns", "all", "the", "datastore", "namespaces", "." ]
[ "func", "Namespaces", "(", "ctx", "context", ".", "<mask>", ")", "(", "[", "]", "string", ",", "error", ")", "{", "// TODO(djd): Support range queries.", "q", ":=", "NewQuery", "(", "namespaceKind", ")", ".", "KeysOnly", "(", ")", "\n", "keys", ",", "err",...
24,318
all-24319
[ "AddRelayTransport", "constructs", "a", "relay", "and", "adds", "it", "as", "a", "transport", "to", "the", "host", "network", "." ]
[ "func", "AddRelayTransport", "(", "ctx", "<mask>", ".", "Context", ",", "h", "host", ".", "Host", ",", "upgrader", "*", "tptu", ".", "Upgrader", ",", "opts", "...", "RelayOpt", ")", "error", "{", "n", ",", "ok", ":=", "h", ".", "Network", "(", ")", ...
24,319
all-24320
[ "determineSkippedPresubmits", "identifies", "the", "largest", "set", "of", "contexts", "we", "can", "actually", "post", "skipped", "contexts", "for", "given", "a", "set", "of", "presubmits", "we", "re", "triggering", ".", "We", "don", "t", "want", "to", "skip"...
[ "func", "determineSkippedPresubmits", "(", "toTrigger", ",", "toSkipSuperset", "[", "]", "config", ".", "Presubmit", ",", "logger", "*", "logrus", ".", "Entry", ")", "[", "]", "config", ".", "Presubmit", "{", "triggeredContexts", ":=", "sets", ".", "NewString"...
24,320
all-24321
[ "schemaVMwareDVSConfigSpec", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "VMwareDVSConfigSpec", "." ]
[ "func", "schemaVMwareDVSConfigSpec", "(", ")", "map", "[", "string", "]", "*", "schema", ".", "Schema", "{", "s", ":=", "map", "[", "string", "]", "*", "schema", ".", "Schema", "{", "// DVSContactInfo", "\"", "\"", ":", "{", "Type", ":", "schema", ".",...
24,321
all-24322
[ "Delete", "a", "container", "template" ]
[ "func", "containerMetadataTemplatesDelete", "(", "d", "*", "Daemon", ",", "r", "*", "http", ".", "Request", ")", "<mask>", "{", "project", ":=", "projectParam", "(", "r", ")", "\n\n", "name", ":=", "mux", ".", "Vars", "(", "r", ")", "[", "\"", "\"", ...
24,322
all-24323
[ "StoragePoolCreatePending", "creates", "a", "new", "pending", "storage", "pool", "on", "the", "node", "with", "the", "given", "name", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "StoragePoolCreatePending", "(", "node", ",", "name", ",", "driver", "string", ",", "conf", "map", "[", "string", "]", "string", ")", "error", "{", "// First check if a storage pool with the given name exists, and, if", "// s...
24,323
all-24324
[ "This", "helper", "deletes", "any", "node", "-", "specific", "values", "from", "the", "config", "object", "since", "they", "should", "not", "be", "part", "of", "the", "calculated", "etag", "." ]
[ "func", "storagePoolClusterConfigForEtag", "(", "dbConfig", "map", "[", "string", "]", "string", ")", "map", "[", "string", "]", "string", "{", "config", ":=", "util", ".", "CopyConfig", "(", "dbConfig", ")", "\n", "for", "_", ",", "key", ":=", "range", ...
24,324
all-24325
[ "SetUseES", "is", "a", "wrapper", "around", "gdk_gl_context_set_use_es", "()", "." ]
[ "func", "(", "v", "*", "GLContext", ")", "SetUseES", "(", "<mask>", "int", ")", "{", "C", ".", "gdk_gl_context_set_use_es", "(", "v", ".", "native", "(", ")", ",", "(", "C", ".", "int", ")", "(", "es", ")", ")", "\n", "}" ]
24,325
all-24326
[ "GetOffer", "retrieves", "the", "Offer", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "LedgerEntryData", ")", "GetOffer", "(", ")", "(", "result", "OfferEntry", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName", "...
24,326
all-24327
[ "/", "*", "display", "image", "within", "window", "(", "highgui", "windows", "remember", "their", "content", ")" ]
[ "func", "(", "win", "*", "Window", ")", "ShowImage", "(", "image", "*", "IplImage", ")", "{", "win", ".", "image", "=", "<mask>", "\n", "C", ".", "cvShowImage", "(", "win", ".", "name_c", ",", "unsafe", ".", "Pointer", "(", "image", ")", ")", "\n",...
24,327
all-24328
[ "FillString", "draws", "the", "text", "at", "point", "(", "0", "0", ")" ]
[ "func", "(", "gc", "*", "GraphicContext", ")", "FillString", "(", "text", "string", ")", "(", "cursor", "float64", ")", "{", "return", "gc", ".", "FillStringAt", "(", "<mask>", ",", "0", ",", "0", ")", "\n", "}" ]
24,328
all-24329
[ "ComboBoxNewWithModel", "()", "is", "a", "wrapper", "around", "gtk_combo_box_new_with_model", "()", "." ]
[ "func", "ComboBoxNewWithModel", "(", "model", "ITreeModel", ")", "(", "*", "ComboBox", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_combo_box_new_with_model", "(", "<mask>", ".", "toTreeModel", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "retu...
24,329
all-24330
[ "ListTasks", "returns", "the", "tasks", "currently", "managed", "by", "the", "DockerTaskEngine" ]
[ "func", "(", "engine", "*", "DockerTaskEngine", ")", "ListTasks", "(", ")", "(", "[", "]", "*", "apitask", ".", "Task", ",", "error", ")", "{", "return", "<mask>", ".", "state", ".", "AllTasks", "(", ")", ",", "nil", "\n", "}" ]
24,330
all-24331
[ "ApplyChanges", "applies", "Kubernetes", "changes", "in", "endpoints", "to", "AWS", "API" ]
[ "func", "(", "p", "*", "AWSSDProvider", ")", "ApplyChanges", "(", "changes", "*", "plan", ".", "Changes", ")", "error", "{", "// return early if there is nothing to change", "if", "len", "(", "changes", ".", "Create", ")", "==", "0", "&&", "len", "(", "chang...
24,331
all-24332
[ "NewBasics", "creates", "an", "amount", "of", "new", "entities", "with", "a", "new", "unique", "identifiers", ".", "It", "is", "safe", "for", "concurrent", "use", "and", "performs", "better", "than", "NewBasic", "for", "large", "numbers", "of", "entities", "...
[ "func", "NewBasics", "(", "amount", "int", ")", "[", "]", "BasicEntity", "{", "entities", ":=", "make", "(", "[", "]", "BasicEntity", ",", "amount", ")", "\n\n", "lastID", ":=", "atomic", ".", "AddUint64", "(", "&", "idInc", ",", "uint64", "(", "amount...
24,332
all-24333
[ "PageSetupNewFromFile", "()", "is", "a", "wrapper", "around", "gtk_page_setup_new_from_file", "()", "." ]
[ "func", "PageSetupNewFromFile", "(", "fileName", "string", ")", "(", "*", "PageSetup", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "fileName", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ...
24,333
all-24334
[ "Renderer", "is", "a", "Middleware", "that", "maps", "a", "render", ".", "Render", "service", "into", "the", "Martini", "handler", "chain", ".", "An", "single", "variadic", "render", ".", "RenderOptions", "struct", "can", "be", "optionally", "provided", "to", ...
[ "func", "Renderer", "(", "<mask>", "...", "RenderOptions", ")", "Handler", "{", "opt", ":=", "prepareRenderOptions", "(", "options", ")", "\n", "cs", ":=", "prepareCharset", "(", "opt", ".", "Charset", ")", "\n", "t", ":=", "compile", "(", "opt", ")", "\...
24,334
all-24335
[ "WithStreamCompression", "compression", "format", "to", "use", ".", "This", "only", "applies", "when", "using", "ReturnAsStream", "transfer", "mode", "(", "defaults", "to", "none", ")", "." ]
[ "func", "(", "p", "StartParams", ")", "WithStreamCompression", "(", "streamCompression", "StreamCompression", ")", "*", "StartParams", "{", "p", ".", "StreamCompression", "=", "streamCompression", "\n", "<mask>", "&", "p", "\n", "}" ]
24,335
all-24336
[ "WithBody", "adds", "the", "body", "to", "the", "post", "apps", "params" ]
[ "func", "(", "o", "*", "PostAppsParams", ")", "WithBody", "(", "body", "*", "models", ".", "AppWrapper", ")", "*", "PostAppsParams", "{", "o", ".", "SetBody", "(", "<mask>", ")", "\n", "return", "o", "\n", "}" ]
24,336
all-24337
[ "Restore", "cluster", "state", "from", "an", "extract", "series", "of", "operations", "." ]
[ "func", "(", "c", "APIClient", ")", "Restore", "(", "ops", "[", "]", "*", "admin", ".", "Op", ")", "(", "retErr", "error", ")", "{", "restoreClient", ",", "err", ":=", "c", ".", "AdminAPIClient", ".", "Restore", "(", "c", ".", "Ctx", "(", ")", ")...
24,337
all-24338
[ "connectionError", "handles", "a", "connection", "level", "error" ]
[ "func", "(", "c", "*", "Connection", ")", "connectionError", "(", "site", "string", ",", "err", "error", ")", "error", "{", "var", "closeLogFields", "LogFields", "\n", "if", "err", "==", "io", ".", "EOF", "{", "closeLogFields", "=", "LogFields", "{", "{"...
24,338
all-24339
[ "ApplyConfig", "updates", "the", "state", "as", "the", "new", "config", "requires", "." ]
[ "func", "(", "s", "*", "Storage", ")", "ApplyConfig", "(", "conf", "*", "config", ".", "Config", ")", "error", "{", "s", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mtx", ".", "Unlock", "(", ")", "\n\n", "cfgBytes", ",", "err", ...
24,339
all-24340
[ "commandsForBaseRef", "returns", "the", "list", "of", "commands", "needed", "to", "initialize", "and", "configure", "a", "local", "git", "directory", "as", "well", "as", "fetch", "and", "check", "out", "the", "provided", "base", "ref", "." ]
[ "func", "(", "g", "*", "gitCtx", ")", "commandsForBaseRef", "(", "refs", "prowapi", ".", "Refs", ",", "gitUserName", ",", "gitUserEmail", ",", "cookiePath", "string", ")", "[", "]", "cloneCommand", "{", "commands", ":=", "[", "]", "cloneCommand", "{", "{",...
24,340
all-24341
[ "MustParse", "must", "parse", "string", "to", "time", "or", "it", "will", "panic" ]
[ "func", "(", "now", "*", "Now", ")", "MustParse", "(", "strs", "...", "string", ")", "(", "t", "<mask>", ".", "Time", ")", "{", "t", ",", "err", ":=", "now", ".", "Parse", "(", "strs", "...", ")", "\n", "if", "err", "!=", "nil", "{", "panic", ...
24,341
all-24342
[ "UnmarshalEasyJSON", "satisfies", "easyjson", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "SetTimeDomainTimeDomain", ")", "UnmarshalEasyJSON", "(", "<mask>", "*", "jlexer", ".", "Lexer", ")", "{", "switch", "SetTimeDomainTimeDomain", "(", "in", ".", "String", "(", ")", ")", "{", "case", "SetTimeDomainTimeDomainTimeTicks", ":", ...
24,342
all-24343
[ "Scan", "scans", "a", "DateTime", "value", "from", "database", "driver", "type", "." ]
[ "func", "(", "t", "*", "DateTime", ")", "Scan", "(", "raw", "interface", "{", "}", ")", "error", "{", "// TODO: case int64: and case float64: ?", "switch", "v", ":=", "raw", ".", "(", "type", ")", "{", "case", "[", "]", "byte", ":", "return", "t", ".",...
24,343
all-24344
[ "WriteTempFile", "creates", "a", "temp", "file", "with", "the", "specified", "content" ]
[ "func", "WriteTempFile", "(", "dir", "string", ",", "<mask>", "string", ",", "content", "string", ")", "(", "string", ",", "error", ")", "{", "f", ",", "err", ":=", "ioutil", ".", "TempFile", "(", "dir", ",", "prefix", ")", "\n", "if", "err", "!=", ...
24,344
all-24345
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "PseudoElementMatches", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26", "(", "&", ...
24,345
all-24346
[ "OptImportClear", "sets", "clear", "import", "which", "clears", "bits", "instead", "of", "setting", "them", "." ]
[ "func", "OptImportClear", "(", "clear", "bool", ")", "ImportOption", "{", "return", "func", "(", "<mask>", "*", "ImportOptions", ")", "error", "{", "options", ".", "clear", "=", "clear", "\n", "return", "nil", "\n", "}", "\n", "}" ]
24,346
all-24347
[ "SetHasSelection", "()", "is", "a", "wrapper", "around", "gtk_print_operation_set_has_selection", "()", "." ]
[ "func", "(", "<mask>", "*", "PrintOperation", ")", "SetHasSelection", "(", "selection", "bool", ")", "{", "C", ".", "gtk_print_operation_set_has_selection", "(", "po", ".", "native", "(", ")", ",", "gbool", "(", "selection", ")", ")", "\n", "}" ]
24,347
all-24348
[ "ReadDir", "returns", "the", "filenames", "in", "the", "given", "directory", "in", "sorted", "order", "." ]
[ "func", "ReadDir", "(", "d", "string", ",", "opts", "...", "ReadDirOption", ")", "(", "[", "]", "string", ",", "error", ")", "{", "op", ":=", "&", "ReadDirOp", "{", "}", "\n", "op", ".", "applyOpts", "(", "opts", ")", "\n\n", "dir", ",", "err", "...
24,348
all-24349
[ "Equals", "-", "you", "probably", "don", "t", "need", "to", "use", "this", ".", "Runs", "in", "constant", "time", "based", "on", "length", "of", "the", "keys", "." ]
[ "func", "(", "privKey", "PrivKeyEd25519", ")", "Equals", "(", "other", "PrivKey", ")", "bool", "{", "if", "otherEd", ",", "ok", ":=", "other", ".", "(", "PrivKeyEd25519", ")", ";", "<mask>", "{", "return", "subtle", ".", "ConstantTimeCompare", "(", "privKe...
24,349
all-24350
[ "find", "the", "exact", "node", "for", "a", "given", "interval" ]
[ "func", "(", "ivt", "*", "IntervalTree", ")", "find", "(", "ivl", "Interval", ")", "(", "ret", "*", "intervalNode", ")", "{", "f", ":=", "func", "(", "n", "*", "intervalNode", ")", "bool", "{", "if", "n", ".", "iv", ".", "Ivl", "!=", "ivl", "{", ...
24,350
all-24351
[ "BumpMinor", "increments", "the", "Minor", "field", "by", "1", "and", "resets", "all", "other", "fields", "to", "their", "default", "values" ]
[ "func", "(", "v", "*", "<mask>", ")", "BumpMinor", "(", ")", "{", "v", ".", "Minor", "+=", "1", "\n", "v", ".", "Patch", "=", "0", "\n", "v", ".", "PreRelease", "=", "PreRelease", "(", "\"", "\"", ")", "\n", "v", ".", "Metadata", "=", "\"", "...
24,351
all-24352
[ "Usagef", "writes", "usage", "information", "to", "the", "specified", "io", ".", "Writer", "using", "the", "specifed", "template", "specification" ]
[ "func", "Usagef", "(", "prefix", "string", ",", "spec", "interface", "{", "}", ",", "out", "io", ".", "Writer", ",", "format", "string", ")", "error", "{", "// Specify the default usage template functions", "functions", ":=", "template", ".", "FuncMap", "{", "...
24,352
all-24353
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetStyleSheetTextParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14", "(", "&", "w", ",", "v", "...
24,353
all-24354
[ "Run", "implements", "the", "Discoverer", "interface", "." ]
[ "func", "(", "i", "*", "Ingress", ")", "Run", "(", "ctx", "context", ".", "Context", ",", "ch", "chan", "<-", "[", "]", "*", "targetgroup", ".", "Group", ")", "{", "defer", "i", ".", "<mask>", ".", "ShutDown", "(", ")", "\n\n", "if", "!", "cache"...
24,354
all-24355
[ "Update", "updates", "existing", "UserData", "with", "new", "UserData", ".", "If", "a", "key", "as", "an", "empty", "string", "the", "key", "will", "be", "deleted" ]
[ "func", "(", "ud", "*", "UserData", ")", "Update", "(", "new", "*", "UserData", ")", "{", "if", "new", "==", "nil", "{", "return", "\n", "}", "\n", "new", ".", "Range", "(", "func", "(", "key", ",", "value", "interface", "{", "}", ")", "bool", ...
24,355
all-24356
[ "IsAdmin", "returns", "true", "if", "the", "current", "user", "is", "signed", "in", "and", "is", "currently", "registered", "as", "an", "administrator", "of", "the", "application", "." ]
[ "func", "IsAdmin", "(", "c", "context", ".", "<mask>", ")", "bool", "{", "h", ":=", "internal", ".", "IncomingHeaders", "(", "c", ")", "\n", "return", "h", ".", "Get", "(", "\"", "\"", ")", "==", "\"", "\"", "\n", "}" ]
24,356
all-24357
[ "TokenGenerator", "returns", "a", "handler", "that", "will", "read", "a", "username", "and", "password", "from", "a", "request", "form", "create", "a", "jwt", "token", "if", "they", "are", "valid", "and", "store", "the", "signed", "token", "in", "the", "re...
[ "func", "TokenGenerator", "(", "h", "http", ".", "Handler", ",", "auth", "Authenticator", ",", "secret", "[", "]", "byte", ",", "opts", "...", "TokenOpt", ")", "http", ".", "Handler", "{", "o", ":=", "options", "{", "logger", ":", "handler", ".", "NopL...
24,357
all-24358
[ "List", "returns", "objects", "sorted", "based", "on", "the", "options", "passed", "in", ".", "f", "will", "be", "called", "with", "each", "key", "val", "will", "contain", "the", "corresponding", "value", ".", "Val", "is", "not", "an", "argument", "to", ...
[ "func", "(", "c", "*", "readonlyCollection", ")", "List", "(", "val", "proto", ".", "Message", ",", "opts", "*", "Options", ",", "f", "func", "(", "string", ")", "error", ")", "error", "{", "if", "err", ":=", "watch", ".", "CheckType", "(", "c", "....
24,358
all-24359
[ "ProxyIpairs", "implements", "Lua", "5", ".", "2", "ipairs", "functions", ".", "It", "respects", "the", "__ipairs", "metamethod", ".", "It", "is", "only", "useful", "for", "compatibility", "with", "Lua", "5", ".", "1", ".", "Because", "it", "cannot", "call...
[ "func", "ProxyIpairs", "(", "L", "*", "lua", ".", "State", ")", "int", "{", "// See Lua >=5.2 source code.", "if", "L", ".", "GetMetaField", "(", "1", ",", "\"", "\"", ")", "{", "L", ".", "PushValue", "(", "1", ")", "\n", "L", ".", "Call", "(", "1"...
24,359
all-24360
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ReleaseAnimationsParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6", "(", "...
24,360
all-24361
[ "Errorf", "calls", "Logger", ".", "Errorf", "method", "with", "provided", "arguments", "." ]
[ "func", "(", "g", "GRPCLoggerV2", ")", "Errorf", "(", "format", "string", ",", "args", "...", "interface", "{", "}", ")", "{", "g", ".", "l", ".", "Errorf", "(", "<mask>", ",", "args", "...", ")", "\n", "}" ]
24,361
all-24362
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "CreateBrowserContextParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25", "(", "&", "w", ",", ...
24,362
all-24363
[ "NewMonitor", "creates", "a", "new", "client", "billing", "monitor", "." ]
[ "func", "NewMonitor", "(", "conf", "*", "Config", ",", "logger", "log", ".", "Logger", ",", "db", "*", "reform", ".", "<mask>", ",", "pr", "*", "proc", ".", "Processor", ",", "pscAddr", "string", ",", "pw", "data", ".", "PWDGetter", ")", "*", "Monito...
24,363
all-24364
[ "ClientAfterOfferingMsgBCPublish", "creates", "offering", "." ]
[ "func", "(", "w", "*", "Worker", ")", "ClientAfterOfferingMsgBCPublish", "(", "job", "*", "data", ".", "Job", ")", "error", "{", "logger", ":=", "w", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "<mask>", ")", ...
24,364
all-24365
[ "FetchDashboards", "retrieves", "all", "dashboards", "available", "to", "the", "API", "Token", "." ]
[ "func", "(", "a", "*", "API", ")", "FetchDashboards", "(", ")", "(", "*", "[", "]", "Dashboard", ",", "error", ")", "{", "result", ",", "err", ":=", "a", ".", "Get", "(", "config", ".", "DashboardPrefix", ")", "\n", "if", "err", "!=", "nil", "{",...
24,365
all-24366
[ "Object", "adds", "an", "object", "-", "valued", "key", ":", "value", "pair", "to", "a", "Span", ".", "LogFields", "()", "record" ]
[ "func", "Object", "(", "key", "string", ",", "obj", "interface", "{", "}", ")", "Field", "{", "return", "Field", "{", "<mask>", ":", "key", ",", "fieldType", ":", "objectType", ",", "interfaceVal", ":", "obj", ",", "}", "\n", "}" ]
24,366
all-24367
[ "GetWidth", "returns", "the", "Width", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "t", "*", "TileDefRequestStyle", ")", "GetWidth", "(", ")", "<mask>", "{", "if", "t", "==", "nil", "||", "t", ".", "Width", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "t", ".", "Width", "\n", "}" ]
24,367
all-24368
[ "Delete", "deletes", "a", "task", "from", "a", "named", "queue", "." ]
[ "func", "Delete", "(", "c", "context", ".", "Context", ",", "task", "*", "Task", ",", "queueName", "string", ")", "error", "{", "err", ":=", "DeleteMulti", "(", "c", ",", "[", "]", "*", "Task", "{", "<mask>", "}", ",", "queueName", ")", "\n", "if",...
24,368
all-24369
[ "GetIncludeUnits", "returns", "the", "IncludeUnits", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "y", "*", "Yaxis", ")", "GetIncludeUnits", "(", ")", "bool", "{", "if", "y", "==", "nil", "||", "y", ".", "IncludeUnits", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "*", "y", ".", "IncludeUnits", "\n", "}" ]
24,369
all-24370
[ "flattenKeys", "is", "a", "function", "that", "takes", "a", "map", "[", "string", "]", "interface", "{}", "and", "recursively", "flattens", "any", "keys", "that", "are", "a", "[]", "map", "[", "string", "]", "interface", "{}", "where", "the", "key", "is"...
[ "func", "flattenKeys", "(", "m", "map", "[", "string", "]", "interface", "{", "}", ",", "keys", "[", "]", "string", ")", "{", "keyMap", ":=", "make", "(", "map", "[", "string", "]", "struct", "{", "}", ")", "\n", "for", "_", ",", "key", ":=", "...
24,370
all-24371
[ "creates", "and", "initializes", "a", "buffer", "object", "s", "immutable", "data", "store" ]
[ "func", "BufferStorage", "(", "target", "uint32", ",", "size", "int", ",", "data", "unsafe", ".", "Pointer", ",", "<mask>", "uint32", ")", "{", "syscall", ".", "Syscall6", "(", "gpBufferStorage", ",", "4", ",", "uintptr", "(", "target", ")", ",", "uintpt...
24,371
all-24372
[ "Link", "returns", "the", "URL", "to", "the", "repository", "that", "is", "intended", "for", "access", "by", "humans", "using", "a", "Web", "browser", "(", "i", ".", "e", ".", "not", "the", "URL", "to", "the", "API", "resource", ")", "." ]
[ "func", "(", "r", "*", "RepoInfo", ")", "Link", "(", ")", "string", "{", "switch", "r", ".", "RepoHost", "{", "case", "GoogleCode", ":", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "r", ".", "FullName", ")", "\n", "default", ":", "return...
24,372
all-24373
[ "Add", "MAC", "VLAN", "network", "interface", "with", "masterDev", "as", "its", "upper", "device", "This", "is", "identical", "to", "running", ":", "ip", "link", "add", "name", "$name", "link", "$masterdev", "type", "macvlan", "mode", "$mode" ]
[ "func", "networkLinkMacVlan", "(", "dev_type", "string", ",", "mcvln", "*", "MacVlanLink", ")", "error", "{", "s", ",", "err", ":=", "getNetlinkSocket", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "defer", "s", ".",...
24,373
all-24374
[ "XXX_OneofFuncs", "is", "for", "the", "internal", "use", "of", "the", "proto", "package", "." ]
[ "func", "(", "*", "RequestOp", ")", "XXX_OneofFuncs", "(", ")", "(", "func", "(", "msg", "proto", ".", "Message", ",", "b", "*", "proto", ".", "Buffer", ")", "error", ",", "func", "(", "msg", "proto", ".", "Message", ",", "tag", ",", "wire", "int",...
24,374
all-24375
[ "String", "returns", "a", "string", "representation", "of", "the", "Livestatus", "command", "." ]
[ "func", "(", "c", "Command", ")", "String", "(", ")", "string", "{", "s", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "<mask>", ".", "Now", "(", ")", ".", "Unix", "(", ")", ",", "c", ".", "name", ")", "\n", "if", "len", "(", "c", "."...
24,375
all-24376
[ "builtin", "emits", "to", "fn", "SSA", "instructions", "to", "implement", "a", "call", "to", "the", "built", "-", "in", "function", "obj", "with", "the", "specified", "arguments", "and", "return", "type", ".", "It", "returns", "the", "value", "defined", "b...
[ "func", "(", "b", "*", "builder", ")", "builtin", "(", "fn", "*", "Function", ",", "obj", "*", "types", ".", "Builtin", ",", "args", "[", "]", "ast", ".", "Expr", ",", "typ", "types", ".", "Type", ",", "pos", "token", ".", "Pos", ")", "Value", ...
24,376
all-24377
[ "Queues", "a", "message", "to", "be", "sent", "to", "channel", "." ]
[ "func", "(", "c", "*", "MConnection", ")", "Send", "(", "chID", "byte", ",", "msg", "interface", "{", "}", ")", "bool", "{", "if", "!", "c", ".", "IsRunning", "(", ")", "{", "return", "false", "\n", "}", "\n\n", "<mask>", ".", "Debug", "(", "\"",...
24,377
all-24378
[ "Value", "tries", "to", "get", "a", "value", "from", "the", "transaction", ".", "If", "the", "key", "does", "not", "exist", "the", "f", "is", "not", "called", "and", "nil", "is", "return", "." ]
[ "func", "(", "tx", "Tx", ")", "<mask>", "(", "k", "[", "]", "[", "]", "byte", ",", "f", "func", "(", "v", "bytesp", ".", "Slice", ")", "error", ")", "error", "{", "return", "tx", ".", "Bucket", "(", "k", "[", ":", "len", "(", "k", ")", "-",...
24,378
all-24379
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ReadReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoIo2", "(", "&", "r", ",", ...
24,379
all-24380
[ "nolint", ":", "deadcode", "used", "from", "unit", "test" ]
[ "func", "serviceToServiceSummary", "(", "service", "*", "sd", ".", "Service", ")", "*", "sd", ".", "ServiceSummary", "{", "if", "service", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "return", "&", "sd", ".", "ServiceSummary", "{", "Name", ":",...
24,380
all-24381
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetPlatformFontsForNodeReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37", "(",...
24,381
all-24382
[ "Disconnect", "is", "used", "to", "remove", "the", "ability", "to", "route", "to", "a", "given", "peer", "." ]
[ "func", "(", "i", "*", "InmemTransport", ")", "Disconnect", "(", "peer", "ServerAddress", ")", "{", "i", ".", "Lock", "(", ")", "\n", "defer", "i", ".", "Unlock", "(", ")", "\n", "delete", "(", "i", ".", "peers", ",", "<mask>", ")", "\n\n", "// Dis...
24,382
all-24383
[ "NewDockerClient", "initializes", "a", "new", "API", "client", "based", "on", "the", "passed", "SystemContext", "." ]
[ "func", "newDockerClient", "(", "sys", "*", "types", ".", "SystemContext", ")", "(", "*", "dockerclient", ".", "Client", ",", "error", ")", "{", "host", ":=", "dockerclient", ".", "DefaultDockerHost", "\n", "if", "sys", "!=", "nil", "&&", "sys", ".", "Do...
24,383
all-24384
[ "parseItem", "is", "a", "complex", "function", "because", "it", "needs", "to", "handle", "both", "forward", "and", "reverse", "iteration", "implementation", ".", "We", "store", "keys", "such", "that", "their", "versions", "are", "sorted", "in", "descending", "...
[ "func", "(", "it", "*", "Iterator", ")", "parseItem", "(", ")", "bool", "{", "mi", ":=", "it", ".", "iitr", "\n", "key", ":=", "mi", ".", "Key", "(", ")", "\n\n", "setItem", ":=", "func", "(", "item", "*", "Item", ")", "{", "if", "it", ".", "...
24,384
all-24385
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "RareIntegerData", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomsnapshot2", "(", "&", ...
24,385
all-24386
[ "LayoutNew", "is", "a", "wrapper", "around", "gtk_layout_new", "()", "." ]
[ "func", "LayoutNew", "(", "hadjustment", ",", "vadjustment", "*", "Adjustment", ")", "(", "*", "Layout", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_layout_new", "(", "hadjustment", ".", "native", "(", ")", ",", "vadjustment", ".", "native", "(", ...
24,386
all-24387
[ "Create", "a", "new", "raftFactory", "instantiating", "all", "needed", "raft", "dependencies", "." ]
[ "func", "raftInstanceInit", "(", "db", "*", "db", ".", "Node", ",", "node", "*", "db", ".", "RaftNode", ",", "cert", "*", "shared", ".", "CertInfo", ",", "latency", "float64", ")", "(", "*", "raftInstance", ",", "error", ")", "{", "// FIXME: should be a ...
24,387
all-24388
[ "SetConnectTimeout", "sets", "the", "ConnectionTimeout", "for", "this", "context", ".", "The", "context", "timeout", "applies", "to", "the", "whole", "call", "while", "the", "connect", "timeout", "only", "applies", "to", "creating", "a", "new", "connection", "."...
[ "func", "(", "cb", "*", "ContextBuilder", ")", "SetConnectTimeout", "(", "d", "<mask>", ".", "Duration", ")", "*", "ContextBuilder", "{", "cb", ".", "ConnectTimeout", "=", "d", "\n", "return", "cb", "\n", "}" ]
24,388
all-24389
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetReturnValueParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger7", "(", "&", ...
24,389
all-24390
[ "SendRequest", "sends", "a", "JSON", "-", "RPC", "request", "through", "the", "connection", "denoted", "by", "the", "connection", "ID", "with", "an", "auto", "generated", "request", "ID", ".", "resHandler", "is", "called", "when", "a", "response", "is", "ret...
[ "func", "(", "s", "*", "Server", ")", "SendRequest", "(", "connID", "string", ",", "method", "string", ",", "params", "interface", "{", "}", ",", "resHandler", "func", "(", "ctx", "*", "ResCtx", ")", "error", ")", "(", "reqID", "string", ",", "err", ...
24,390
all-24391
[ "appendOrMergeKindMapping", "adds", "LoadInfo", "for", "the", "given", "replacement", "." ]
[ "func", "appendOrMergeKindMapping", "(", "mappedLoads", "[", "]", "rule", ".", "LoadInfo", ",", "mappedKind", "config", ".", "MappedKind", ")", "[", "]", "rule", ".", "LoadInfo", "{", "// If mappedKind.KindLoad already exists in the list, create a merged copy.", "for", ...
24,391
all-24392
[ "unlinkGRs", "unlinks", "two", "goroutines" ]
[ "func", "unlinkGRs", "(", ")", "{", "childID", ":=", "curGoroutineID", "(", ")", "\n", "dataLock", ".", "Lock", "(", ")", "\n", "<mask>", "(", "data", ",", "childID", ")", "\n", "dataLock", ".", "Unlock", "(", ")", "\n", "}" ]
24,392
all-24393
[ "UniqueStringsMapFromFlag", "returns", "a", "map", "of", "strings", "from", "the", "flag", "." ]
[ "func", "UniqueStringsMapFromFlag", "(", "fs", "*", "flag", ".", "FlagSet", ",", "flagName", "string", ")", "map", "[", "string", "]", "struct", "{", "}", "{", "return", "(", "*", "<mask>", ".", "Lookup", "(", "flagName", ")", ".", "Value", ".", "(", ...
24,393
all-24394
[ "SetFormat", "sets", "the", "format", "for", "logging", "." ]
[ "func", "(", "l", "*", "templateLogger", ")", "SetFormat", "(", "format", "string", ")", "error", "{", "l", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "l", ".", "m", ".", "Unlock", "(", ")", "\n", "t", ",", "err", ":=", "template", ".", "N...
24,394
all-24395
[ "UnmarshalJSON", "satisfies", "json", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "DetachReason", ")", "UnmarshalJSON", "(", "buf", "[", "]", "<mask>", ")", "error", "{", "return", "easyjson", ".", "Unmarshal", "(", "buf", ",", "t", ")", "\n", "}" ]
24,395
all-24396
[ "Typecheck1", "is", "the", "recursive", "form", "of", "typecheck", ".", "It", "is", "like", "typecheck", "but", "adds", "to", "the", "information", "in", "typeof", "instead", "of", "allocating", "a", "new", "map", "." ]
[ "func", "typecheck1", "(", "cfg", "*", "TypeConfig", ",", "f", "interface", "{", "}", ",", "typeof", "map", "[", "interface", "{", "}", "]", "string", ",", "assign", "map", "[", "string", "]", "[", "]", "interface", "{", "}", ")", "{", "// set sets t...
24,396
all-24397
[ "Run", "executes", "the", "test", "process", "then", "writes", "the", "exit", "code", "to", "the", "marker", "file", ".", "This", "function", "returns", "the", "status", "code", "that", "should", "be", "passed", "to", "os", ".", "Exit", "()", "." ]
[ "func", "(", "o", "Options", ")", "Run", "(", ")", "int", "{", "code", ",", "err", ":=", "o", ".", "ExecuteProcess", "(", ")", "\n", "if", "err", "!=", "nil", "{", "logrus", ".", "WithError", "(", "err", ")", ".", "Error", "(", "\"", "\"", ")",...
24,397
all-24398
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ExposeDevToolsProtocolParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12", "(", "&", "w", ",", ...
24,398
all-24399
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetNavigationHistoryReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage34", "(", "&", "w", ",", "v"...
24,399
all-24400
[ "Signatures", "is", "like", "ImageSource", ".", "GetSignatures", "but", "the", "result", "is", "cached", ";", "it", "is", "OK", "to", "call", "this", "however", "often", "you", "need", "." ]
[ "func", "(", "i", "*", "memoryImage", ")", "Signatures", "(", "ctx", "context", ".", "Context", ")", "(", "[", "]", "[", "]", "byte", ",", "error", ")", "{", "// Modifying an image invalidates signatures; a caller asking the updated image for signatures", "// is proba...