id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
3,000
all-3001
[ "ReadResponse", "reads", "a", "server", "response", "into", "the", "received", "o", "." ]
[ "func", "(", "o", "*", "OrderVMByFilterReader", ")", "ReadResponse", "(", "response", "runtime", ".", "ClientResponse", ",", "consumer", "runtime", ".", "Consumer", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "switch", "response", ".", "Code", ...
3,001
all-3002
[ "GetCreatedAtOk", "returns", "a", "tuple", "with", "the", "CreatedAt", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsTest", ")", "GetCreatedAtOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "CreatedAt", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", ...
3,002
all-3003
[ "GetOrderDirectionOk", "returns", "a", "tuple", "with", "the", "OrderDirection", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "GetOrderDirectionOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "OrderDirection", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\...
3,003
all-3004
[ "check", "the", "completeness", "status", "of", "a", "framebuffer" ]
[ "func", "CheckFramebufferStatus", "(", "target", "uint32", ")", "uint32", "{", "ret", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpCheckFramebufferStatus", ",", "1", ",", "uintptr", "(", "<mask>", ")", ",", "0", ",", "0", ")", "\n", "re...
3,004
all-3005
[ "Return", "value", "has", "type", "C", ".", "GLVULKANPROCNV", "." ]
[ "func", "GetVkProcAddrNV", "(", "<mask>", "*", "uint8", ")", "unsafe", ".", "Pointer", "{", "ret", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpGetVkProcAddrNV", ",", "1", ",", "uintptr", "(", "unsafe", ".", "Pointer", "(", "name", ")",...
3,005
all-3006
[ "diskRelocateString", "prints", "out", "information", "from", "a", "VirtualMachineRelocateSpecDiskLocator", "in", "a", "friendly", "way", ".", "The", "format", "depends", "on", "whether", "or", "not", "a", "backing", "has", "been", "defined", "." ]
[ "func", "diskRelocateString", "(", "relocate", "types", ".", "VirtualMachineRelocateSpecDiskLocator", ")", "string", "{", "key", ":=", "relocate", ".", "DiskId", "\n", "var", "locstring", "string", "\n", "if", "backing", ",", "<mask>", ":=", "relocate", ".", "Di...
3,006
all-3007
[ "ParseTemplateConfig", "parses", "a", "string", "in", "the", "form", "source", ":", "destination", ":", "command", "into", "a", "TemplateConfig", "." ]
[ "func", "ParseTemplateConfig", "(", "s", "string", ")", "(", "*", "TemplateConfig", ",", "error", ")", "{", "if", "len", "(", "strings", ".", "TrimSpace", "(", "s", ")", ")", "<", "1", "{", "return", "nil", ",", "ErrTemplateStringEmpty", "\n", "}", "\n...
3,007
all-3008
[ "FromFile", "loads", "Google", "service", "account", "credentials", "from", "a", "reader", "." ]
[ "func", "FromFile", "(", "<mask>", "string", ",", "opts", "...", "Option", ")", "(", "*", "GServiceAccount", ",", "error", ")", "{", "buf", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
3,008
all-3009
[ "newEphemeralKV", "creates", "a", "new", "key", "/", "value", "pair", "associated", "with", "a", "session", "lease" ]
[ "func", "newEphemeralKV", "(", "s", "*", "concurrency", ".", "Session", ",", "<mask>", ",", "val", "string", ")", "(", "*", "EphemeralKV", ",", "error", ")", "{", "k", ",", "err", ":=", "newKV", "(", "s", ".", "Client", "(", ")", ",", "key", ",", ...
3,009
all-3010
[ "Contains", "returns", "whether", "the", "set", "contains", "the", "given", "value" ]
[ "func", "(", "us", "*", "unsafeSet", ")", "Contains", "(", "<mask>", "string", ")", "(", "exists", "bool", ")", "{", "_", ",", "exists", "=", "us", ".", "d", "[", "value", "]", "\n", "return", "exists", "\n", "}" ]
3,010
all-3011
[ "GetSpanNameOk", "returns", "a", "tuple", "with", "the", "SpanName", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TraceServiceDefinition", ")", "GetSpanNameOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "SpanName", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "retu...
3,011
all-3012
[ "GetUrl", "returns", "the", "Url", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "e", "*", "<mask>", ")", "GetUrl", "(", ")", "string", "{", "if", "e", "==", "nil", "||", "e", ".", "Url", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "e", ".", "Url", "\n", "}" ]
3,012
all-3013
[ "OptQueryExcludeColumns", "enables", "discarding", "columns", "from", "a", "result" ]
[ "func", "OptQueryExcludeColumns", "(", "enable", "bool", ")", "QueryOption", "{", "return", "func", "(", "options", "*", "QueryOptions", ")", "error", "{", "options", ".", "ExcludeColumns", "=", "<mask>", "\n", "return", "nil", "\n", "}", "\n", "}" ]
3,013
all-3014
[ "MarshalJSON", "implements", "json", ".", "Marshaler", ".", "It", "will", "encode", "null", "if", "this", "time", "is", "null", "." ]
[ "func", "(", "t", "Time", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "if", "!", "t", ".", "Valid", "{", "return", "[", "]", "byte", "(", "\"", "\"", ")", ",", "nil", "\n", "}", "\n", "return", "t", ".", "...
3,014
all-3015
[ "NewSSMClient", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSSMClientCreator", ")", "NewSSMClient", "(", "arg0", "string", ",", "arg1", "credentials", ".", "IAMRoleCredentials", ")", "ssm", ".", "SSMClient", "{", "<mask>", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"",...
3,015
all-3016
[ "specify", "a", "two", "-", "dimensional", "texture", "subimage" ]
[ "func", "TexSubImage2D", "(", "target", "uint32", ",", "level", "int32", ",", "xoffset", "int32", ",", "yoffset", "int32", ",", "width", "int32", ",", "height", "int32", ",", "format", "uint32", ",", "xtype", "uint32", ",", "pixels", "unsafe", ".", "Pointe...
3,016
all-3017
[ "buildState", "is", "used", "to", "build", "a", "state", "of", "the", "system", "for", "reconciliation" ]
[ "func", "(", "udevWatcher", "*", "UdevWatcher", ")", "buildState", "(", "links", "[", "]", "netlink", ".", "Link", ")", "map", "[", "string", "]", "string", "{", "state", ":=", "make", "(", "map", "[", "string", "]", "string", ")", "\n", "for", "_", ...
3,017
all-3018
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventRecordingStateChanged", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoBackgroundservice3...
3,018
all-3019
[ "NewDeployServer", "creates", "a", "deploy", "server" ]
[ "func", "NewDeployServer", "(", "kubeClient", "*", "kube", ".", "Clientset", ",", "kubeNamespace", "<mask>", ")", "deploy", ".", "APIServer", "{", "return", "&", "apiServer", "{", "kubeClient", ":", "kubeClient", ",", "kubeNamespace", ":", "kubeNamespace", ",", ...
3,019
all-3020
[ "NewStringsValue", "implements", "string", "slice", "as", "flag", ".", "Value", "interface", ".", "Given", "value", "is", "to", "be", "separated", "by", "comma", "." ]
[ "func", "NewStringsValue", "(", "s", "string", ")", "(", "ss", "*", "StringsValue", ")", "{", "if", "s", "==", "\"", "\"", "{", "return", "&", "StringsValue", "{", "}", "\n", "}", "\n", "<mask>", "=", "new", "(", "StringsValue", ")", "\n", "if", "e...
3,020
all-3021
[ "Close", "will", "close", "the", "stream", "." ]
[ "func", "(", "s", "*", "Stream", ")", "Close", "(", ")", "{", "// get mutex", "s", ".", "mutex", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mutex", ".", "Unlock", "(", ")", "\n\n", "// set flag", "s", ".", "closed", "=", "true", "\n\n", "//...
3,021
all-3022
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetNodeValueParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom3", "(", "&", "r"...
3,022
all-3023
[ "toTOML", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "TOML", "string", "." ]
[ "func", "toTOML", "(", "m", "map", "[", "string", "]", "interface", "{", "}", ")", "(", "string", ",", "error", ")", "{", "buf", ":=", "bytes", ".", "NewBuffer", "(", "[", "]", "byte", "{", "}", ")", "\n", "enc", ":=", "toml", ".", "NewEncoder", ...
3,023
all-3024
[ "CreateRandom", "returns", "a", "random", "byte", "string", "of", "given", "length", "from", "given", "byte", "string" ]
[ "func", "CreateRandom", "(", "bs", "[", "]", "byte", ",", "length", "int", ")", "[", "]", "byte", "{", "filled", ":=", "make", "(", "[", "]", "<mask>", ",", "length", ")", "\n", "max", ":=", "len", "(", "bs", ")", "\n\n", "for", "i", ":=", "0",...
3,024
all-3025
[ "flattenDistributedVirtualSwitchHostMemberConfigSpec", "reads", "various", "fields", "from", "a", "DistributedVirtualSwitchHostMemberConfigSpec", "and", "returns", "a", "Set", "object", "map", ".", "This", "is", "the", "flatten", "counterpart", "to", "expandDistributedVirtual...
[ "func", "flattenDistributedVirtualSwitchHostMember", "(", "obj", "types", ".", "DistributedVirtualSwitchHostMember", ")", "map", "[", "string", "]", "interface", "{", "}", "{", "d", ":=", "make", "(", "map", "[", "string", "]", "interface", "{", "}", ")", "\n"...
3,025
all-3026
[ "Finish", "constructs", "the", "import", "index", "and", "performs", "any", "other", "necessary", "indexing", "actions", "after", "all", "rules", "have", "been", "added", ".", "This", "step", "is", "necessary", "because", "a", "rule", "may", "be", "indexed", ...
[ "func", "(", "ix", "*", "RuleIndex", ")", "Finish", "(", ")", "{", "for", "_", ",", "r", ":=", "<mask>", "ix", ".", "rules", "{", "ix", ".", "collectEmbeds", "(", "r", ")", "\n", "}", "\n", "ix", ".", "buildImportIndex", "(", ")", "\n", "}" ]
3,026
all-3027
[ "GetCursorHAdjustment", "()", "is", "a", "wrapper", "around", "gtk_entry_get_cursor_hadjustment", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetCursorHAdjustment", "(", ")", "(", "*", "Adjustment", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_entry_get_cursor_hadjustment", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{"...
3,027
all-3028
[ "buildImportIndex", "constructs", "the", "map", "used", "by", "FindRulesByImport", "." ]
[ "func", "(", "ix", "*", "RuleIndex", ")", "buildImportIndex", "(", ")", "{", "ix", ".", "importMap", "=", "make", "(", "map", "[", "ImportSpec", "]", "[", "]", "*", "ruleRecord", ")", "\n", "for", "_", ",", "r", ":=", "<mask>", "ix", ".", "rules", ...
3,028
all-3029
[ "FindFirstActiveControl", "returns", "the", "first", "active", "control", "of", "a", "parent" ]
[ "func", "FindFirstActiveControl", "(", "parent", "Control", ")", "Control", "{", "for", "_", ",", "curr", ":=", "<mask>", "getLinearControlList", "(", "parent", ",", "nil", ")", "{", "if", "curr", ".", "Active", "(", ")", "{", "return", "curr", "\n", "}"...
3,029
all-3030
[ "NewGRPCLoggerV2FromZapCore", "creates", "grpclog", ".", "LoggerV2", "from", "zap", ".", "Core", "and", "zapcore", ".", "WriteSyncer", ".", "It", "discards", "all", "INFO", "level", "logging", "in", "gRPC", "if", "debug", "level", "is", "not", "enabled", "in",...
[ "func", "NewGRPCLoggerV2FromZapCore", "(", "cr", "zapcore", ".", "Core", ",", "syncer", "zapcore", ".", "WriteSyncer", ")", "grpclog", ".", "LoggerV2", "{", "// \"AddCallerSkip\" to annotate caller outside of \"logutil\"", "lg", ":=", "zap", ".", "New", "(", "cr", "...
3,030
all-3031
[ "String", "returns", "the", "string", "representation", "of", "the", "FetchingInfo", "." ]
[ "func", "(", "f", "*", "FetchingInfo", ")", "<mask>", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "f", ".", "Page", ",", "f", ".", "PageSize", ",", "f", ".", "TotalCount", ")", "\n", "}" ]
3,031
all-3032
[ "Match", "processes", "the", "given", "string", "until", "it", "encounters", "a", "rune", "that", "doesn", "t", "match", "." ]
[ "func", "(", "f", "RuneMatcherFunc", ")", "Match", "(", "str", "string", ")", "(", "offset", "int", ",", "matchStr", "string", ")", "{", "offset", "=", "-", "1", "\n", "length", ":=", "len", "(", "str", ")", "\n", "if", "length", "==", "0", "{", ...
3,032
all-3033
[ "UUID", "s", "8", "13", "23", "18", "is", "-", "e", ".", "g", ".", "9E242A66", "-", "4EA6", "-", "4323", "-", "AD5C", "-", "66A76F4472FE" ]
[ "func", "hasUUIDPrefix", "(", "s", "string", ")", "bool", "{", "if", "len", "(", "s", ")", "<", "36", "{", "return", "false", "\n", "}", "\n", "var", "count", "int", "\n", "for", "i", ",", "r", ":=", "range", "s", "{", "// should not be multi byte ch...
3,033
all-3034
[ "APICall", "is", "the", "generic", "REST", "API", "calling", "method", "which", "performs", "all", "REST", "API", "calls", "for", "this", "library", ".", "Each", "auto", "-", "generated", "REST", "API", "method", "simply", "is", "a", "wrapper", "around", "...
[ "func", "(", "client", "*", "Client", ")", "APICall", "(", "payload", "interface", "{", "}", ",", "method", ",", "route", "string", ",", "result", "interface", "{", "}", ",", "query", "<mask>", ".", "Values", ")", "(", "interface", "{", "}", ",", "*"...
3,034
all-3035
[ "Index", "returns", "the", "index", "for", "a", "hashtree", "writer", "." ]
[ "func", "(", "w", "*", "Writer", ")", "Index", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "buf", ":=", "&", "bytes", ".", "<mask>", "{", "}", "\n", "pbw", ":=", "pbutil", ".", "NewWriter", "(", "buf", ")", "\n", "for", "_", ",",...
3,035
all-3036
[ "SetMultipartFormBoundaryBytes", "sets", "the", "following", "Content", "-", "Type", ":", "multipart", "/", "form", "-", "data", ";", "boundary", "=", "...", "where", "...", "is", "substituted", "by", "the", "given", "boundary", "." ]
[ "func", "(", "h", "*", "RequestHeader", ")", "SetMultipartFormBoundaryBytes", "(", "boundary", "[", "]", "byte", ")", "{", "h", ".", "parseRawHeaders", "(", ")", "\n\n", "b", ":=", "h", ".", "bufKV", ".", "value", "[", ":", "0", "]", "\n", "b", "=", ...
3,036
all-3037
[ "Do", "executes", "CSS", ".", "addRule", "against", "the", "provided", "context", ".", "returns", ":", "rule", "-", "The", "newly", "created", "rule", "." ]
[ "func", "(", "p", "*", "AddRuleParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "<mask>", "*", "Rule", ",", "err", "error", ")", "{", "// execute", "var", "res", "AddRuleReturns", "\n", "err", "=", "cdp", ".", "Execute", "(", "ctx...
3,037
all-3038
[ "Info", "logging" ]
[ "func", "(", "l", "*", "StdLevelLogger", ")", "Info", "(", "args", "...", "interface", "{", "}", ")", "{", "l", ".", "logFunc", "(", "InfoLevel", ",", "l", ".", "<mask>", ",", "args", "...", ")", "\n", "}" ]
3,038
all-3039
[ "MutateSetOptions", "for", "Signer", "sets", "the", "SetOptionsOp", "s", "signer", "field" ]
[ "func", "(", "m", "Signer", ")", "MutateSetOptions", "(", "o", "*", "xdr", ".", "SetOptionsOp", ")", "(", "err", "error", ")", "{", "<mask>", "signer", "xdr", ".", "Signer", "\n", "signer", ".", "Weight", "=", "xdr", ".", "Uint32", "(", "m", ".", "...
3,039
all-3040
[ "New", "returns", "a", "new", "Random", "in", "most", "cases", "you", "can", "also", "just", "use", "the", "global", "funcs" ]
[ "func", "New", "(", "seed", "int64", ")", "<mask>", ".", "Interface", "{", "return", "&", "TTNRandom", "{", "Interface", ":", "&", "random", ".", "TTNRandom", "{", "Source", ":", "rand", ".", "New", "(", "rand", ".", "NewSource", "(", "seed", ")", ")...
3,040
all-3041
[ "Data", "contains", "all", "the", "values", "set", "through", "Get", "/", "Set", "." ]
[ "func", "(", "d", "*", "DefaultContext", ")", "Data", "(", ")", "map", "[", "string", "]", "interface", "{", "}", "{", "d", ".", "moot", ".", "Lock", "(", ")", "\n", "m", ":=", "map", "[", "string", "]", "<mask>", "{", "}", "{", "}", "\n", "f...
3,041
all-3042
[ "initLocales", "initializes", "language", "type", "list", "and", "Accept", "-", "Language", "header", "matcher", "." ]
[ "func", "initLocales", "(", "opt", "Options", ")", "language", ".", "Matcher", "{", "tags", ":=", "make", "(", "[", "]", "language", ".", "Tag", ",", "len", "(", "opt", ".", "Langs", ")", ")", "\n", "for", "i", ",", "lang", ":=", "range", "opt", ...
3,042
all-3043
[ "SetLogger", "sets", "the", "logger", "for", "this", "streambuffer" ]
[ "func", "(", "s", "*", "Stream", ")", "SetLogger", "(", "<mask>", "ttnlog", ".", "Interface", ")", "{", "s", ".", "mu", ".", "Lock", "(", ")", "\n", "s", ".", "log", "=", "log", "\n", "s", ".", "mu", ".", "Unlock", "(", ")", "\n", "}" ]
3,043
all-3044
[ "buildEgressIgnoredPorts", "creates", "egress", "ignored", "ports", "from", "proxy", "config" ]
[ "func", "buildEgressIgnoredPorts", "(", "proxyConfig", "*", "ecsacs", ".", "ProxyConfiguration", ")", "[", "]", "string", "{", "<mask>", "inputEgressIgnoredPorts", "[", "]", "string", "\n", "if", "proxyConfig", ".", "Properties", "[", "egressIgnoredPorts", "]", "!...
3,044
all-3045
[ "Disk", "device", "handling" ]
[ "func", "(", "c", "*", "containerLXC", ")", "createDiskDevice", "(", "name", "string", ",", "m", "types", ".", "Device", ")", "(", "string", ",", "error", ")", "{", "// source paths", "relativeDestPath", ":=", "strings", ".", "TrimPrefix", "(", "m", "[", ...
3,045
all-3046
[ "GetMustShowErrors", "returns", "the", "MustShowErrors", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetMustShowErrors", "(", ")", "bool", "{", "if", "w", "==", "nil", "||", "w", ".", "MustShowErrors", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "*", "w", ".", "MustShowErrors", "\n", "}" ]
3,046
all-3047
[ "DelCookie", "removes", "cookie", "under", "the", "given", "key", "from", "response", "header", ".", "Note", "that", "DelCookie", "doesn", "t", "remove", "the", "cookie", "from", "the", "client", ".", "Use", "DelClientCookie", "instead", "." ]
[ "func", "(", "h", "*", "ResponseHeader", ")", "DelCookie", "(", "key", "string", ")", "{", "h", ".", "cookies", "=", "delAllArgs", "(", "h", ".", "cookies", ",", "<mask>", ")", "\n", "}" ]
3,047
all-3048
[ "GetPageWidth", "()", "is", "a", "wrapper", "around", "gtk_page_setup_get_page_width", "()", "." ]
[ "func", "(", "ps", "*", "PageSetup", ")", "GetPageWidth", "(", "unit", "Unit", ")", "float64", "{", "c", ":=", "C", ".", "gtk_page_setup_get_page_width", "(", "<mask>", ".", "native", "(", ")", ",", "C", ".", "GtkUnit", "(", "unit", ")", ")", "\n", "...
3,048
all-3049
[ "UnmarshalEasyJSON", "satisfies", "easyjson", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "ScreencastFormat", ")", "UnmarshalEasyJSON", "(", "in", "*", "jlexer", ".", "Lexer", ")", "{", "<mask>", "ScreencastFormat", "(", "in", ".", "String", "(", ")", ")", "{", "case", "ScreencastFormatJpeg", ":", "*", "t", "=", "Screen...
3,049
all-3050
[ "Cancel", "cancels", "the", "given", "subscription", "." ]
[ "func", "(", "s", "*", "PubSubSubscription", ")", "Cancel", "(", ")", "<mask>", "{", "if", "s", ".", "resp", ".", "Output", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "return", "s", ".", "resp", ".", "Output", ".", "Close", "(", ")", "...
3,050
all-3051
[ "Set", "or", "change", "an", "individual", "key", ".", "Empty", "string", "means", "delete", "this", "value", "and", "effectively", "revert", "it", "to", "the", "default", ".", "Return", "a", "boolean", "indicating", "whether", "the", "value", "has", "change...
[ "func", "(", "m", "*", "Map", ")", "<mask>", "(", "name", "string", ",", "value", "string", ",", "initial", "bool", ")", "(", "bool", ",", "error", ")", "{", "key", ",", "ok", ":=", "m", ".", "schema", "[", "name", "]", "\n", "if", "!", "ok", ...
3,051
all-3052
[ "Done", "is", "called", "on", "a", "completed", "request" ]
[ "func", "(", "NopTracer", ")", "Done", "(", "re", "*", "Response", ",", "err", "error", ")", "(", "*", "<mask>", ",", "error", ")", "{", "return", "re", ",", "err", "\n", "}" ]
3,052
all-3053
[ "Warn", "logging" ]
[ "func", "(", "l", "*", "StdLevelLogger", ")", "Warn", "(", "args", "...", "<mask>", "{", "}", ")", "{", "l", ".", "logFunc", "(", "WarnLevel", ",", "l", ".", "context", ",", "args", "...", ")", "\n", "}" ]
3,053
all-3054
[ "Screenshot", "takes", "a", "screenshot", "and", "saves", "it", "to", "the", "provided", "filename", ".", "The", "provided", "filename", "may", "be", "an", "absolute", "or", "relative", "path", "." ]
[ "func", "(", "p", "*", "Page", ")", "Screenshot", "(", "<mask>", "string", ")", "error", "{", "absFilePath", ",", "err", ":=", "filepath", ".", "Abs", "(", "filename", ")", "\n", "if", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "...
3,054
all-3055
[ "makeTrustedSubnetsSlice", "makes", "a", "human", "-", "readable", "copy", "of", "the", "trustedSubnets", "." ]
[ "func", "makeTrustedSubnetsSlice", "(", "trustedSubnets", "[", "]", "*", "net", ".", "IPNet", ")", "[", "]", "string", "{", "trustedSubnetStrs", ":=", "[", "]", "string", "{", "}", "\n", "for", "_", ",", "trustedSubnet", ":=", "<mask>", "trustedSubnets", "...
3,055
all-3056
[ "Left", "returns", "the", "left", "substring", "of", "length", "n", "." ]
[ "func", "Left", "(", "s", "<mask>", ",", "n", "int", ")", "string", "{", "if", "n", "<", "0", "{", "return", "Right", "(", "s", ",", "-", "n", ")", "\n", "}", "\n", "return", "Substr", "(", "s", ",", "0", ",", "n", ")", "\n", "}" ]
3,056
all-3057
[ "GetGeometry", "is", "a", "wrapper", "around", "gdk_monitor_get_geometry", "()", "." ]
[ "func", "(", "v", "*", "Monitor", ")", "GetGeometry", "(", ")", "*", "Rectangle", "{", "<mask>", "rect", "C", ".", "GdkRectangle", "\n\n", "C", ".", "gdk_monitor_get_geometry", "(", "v", ".", "native", "(", ")", ",", "&", "rect", ")", "\n\n", "return",...
3,057
all-3058
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetAllCookiesParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork39", "(", "&", "w", ",", "v", "...
3,058
all-3059
[ "AddTag", "adds", "a", "key", "-", "value", "pair", "to", "be", "sent", "to", "the", "CPI", "for", "VM", "tagging", ".", "This", "feature", "is", "available", "in", "bosh", "release", "v258", "+", ".", "https", ":", "//", "bosh", ".", "io", "/", "d...
[ "func", "(", "s", "*", "DeploymentManifest", ")", "AddTag", "(", "key", ",", "value", "string", ")", "{", "if", "s", ".", "Tags", "==", "nil", "{", "s", ".", "Tags", "=", "<mask>", "(", "map", "[", "string", "]", "string", ")", "\n", "}", "\n", ...
3,059
all-3060
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetTargetsParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7", "(", "&", "r...
3,060
all-3061
[ "SanitizerEnabled", "will", "enable", "the", "input", "sanitizer", "which", "passes", "the", "URL", "path", "through", "a", "strict", "whitelist", "." ]
[ "func", "SanitizerEnabled", "(", "sanitizerEnabled", "bool", ")", "ClientParam", "{", "return", "func", "(", "c", "*", "<mask>", ")", "error", "{", "c", ".", "sanitizerEnabled", "=", "sanitizerEnabled", "\n", "return", "nil", "\n", "}", "\n", "}" ]
3,061
all-3062
[ "reduceUncommittedSize", "accounts", "for", "the", "newly", "committed", "entries", "by", "decreasing", "the", "uncommitted", "entry", "size", "limit", "." ]
[ "func", "(", "r", "*", "raft", ")", "reduceUncommittedSize", "(", "ents", "[", "]", "pb", ".", "<mask>", ")", "{", "if", "r", ".", "uncommittedSize", "==", "0", "{", "// Fast-path for followers, who do not track or enforce the limit.", "return", "\n", "}", "\n\n...
3,062
all-3063
[ "GatherInfo", "gathers", "information", "about", "the", "specified", "struct" ]
[ "func", "gatherInfo", "(", "prefix", "string", ",", "spec", "interface", "{", "}", ")", "(", "[", "]", "varInfo", ",", "error", ")", "{", "s", ":=", "reflect", ".", "ValueOf", "(", "spec", ")", "\n\n", "if", "s", ".", "Kind", "(", ")", "!=", "ref...
3,063
all-3064
[ "getPath", "gets", "the", "path", "of", "the", "auth", ".", "json", "file", "The", "path", "can", "be", "overriden", "by", "the", "user", "if", "the", "overwrite", "-", "path", "flag", "is", "set", "If", "the", "flag", "is", "not", "set", "and", "XDG...
[ "func", "getPathToAuth", "(", "sys", "*", "types", ".", "SystemContext", ")", "(", "string", ",", "error", ")", "{", "if", "sys", "!=", "nil", "{", "if", "sys", ".", "AuthFilePath", "!=", "\"", "\"", "{", "return", "sys", ".", "AuthFilePath", ",", "n...
3,064
all-3065
[ "native", "returns", "a", "pointer", "to", "the", "underlying", "GtkFrame", "." ]
[ "func", "(", "v", "*", "Frame", ")", "native", "(", ")", "*", "C", ".", "GtkFrame", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "<mask>", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "(", "v", "."...
3,065
all-3066
[ "GetId", "returns", "the", "Id", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "d", "*", "DashboardLite", ")", "GetId", "(", ")", "int", "{", "if", "d", "==", "nil", "||", "d", ".", "Id", "==", "nil", "{", "return", "0", "\n", "}", "\n", "return", "*", "d", ".", "<mask>", "\n", "}" ]
3,066
all-3067
[ "map", "all", "of", "a", "buffer", "object", "s", "data", "store", "into", "the", "client", "s", "address", "space" ]
[ "func", "MapNamedBuffer", "(", "buffer", "uint32", ",", "access", "uint32", ")", "unsafe", ".", "Pointer", "{", "<mask>", ":=", "C", ".", "glowMapNamedBuffer", "(", "gpMapNamedBuffer", ",", "(", "C", ".", "GLuint", ")", "(", "buffer", ")", ",", "(", "C",...
3,067
all-3068
[ "imagePullRequired", "returns", "true", "if", "pulling", "image", "is", "required", "or", "return", "false", "if", "local", "image", "cache", "should", "be", "used", "by", "inspecting", "the", "agent", "pull", "behavior", "variable", "defined", "in", "config", ...
[ "func", "(", "engine", "*", "DockerTaskEngine", ")", "imagePullRequired", "(", "imagePullBehavior", "config", ".", "ImagePullBehaviorType", ",", "container", "*", "apicontainer", ".", "Container", ",", "taskArn", "string", ")", "bool", "{", "switch", "imagePullBehav...
3,068
all-3069
[ "Copy", "returns", "a", "deep", "copy", "of", "this", "configuration", "." ]
[ "func", "(", "c", "*", "DedupConfig", ")", "Copy", "(", ")", "*", "DedupConfig", "{", "if", "c", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "<mask>", "o", "DedupConfig", "\n", "o", ".", "Enabled", "=", "c", ".", "Enabled", "\n", "o", "...
3,069
all-3070
[ "aggregateContainersBy", "aggregates", "and", "counts", "how", "many", "containers", "exist", "each", "node", "that", "matches", "received", "filters" ]
[ "func", "(", "s", "*", "segregatedScheduler", ")", "aggregateContainersBy", "(", "matcher", "bson", ".", "M", ")", "(", "map", "[", "string", "]", "int", ",", "error", ")", "{", "coll", ":=", "s", ".", "provisioner", ".", "Collection", "(", ")", "\n", ...
3,070
all-3071
[ "title", ":", "remove", "key", "path", ":", "/", "users", "/", "keys", "/", "{", "key", "}", "method", ":", "DELETE", "responses", ":", "200", ":", "Ok", "400", ":", "Invalid", "data", "401", ":", "Unauthorized", "404", ":", "Not", "found" ]
[ "func", "removeKeyFromUser", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "key", ":=", "repository", ".", "Key", "{", "<mask>", ":", "r", ".", "U...
3,071
all-3072
[ "Init", "prepares", "ctx", "for", "passing", "to", "RequestHandler", ".", "remoteAddr", "and", "logger", "are", "optional", ".", "They", "are", "used", "by", "RequestCtx", ".", "Logger", "()", ".", "This", "function", "is", "intended", "for", "custom", "Serv...
[ "func", "(", "ctx", "*", "RequestCtx", ")", "Init", "(", "req", "*", "Request", ",", "remoteAddr", "<mask>", ".", "Addr", ",", "logger", "Logger", ")", "{", "if", "remoteAddr", "==", "nil", "{", "remoteAddr", "=", "zeroTCPAddr", "\n", "}", "\n", "c", ...
3,072
all-3073
[ "title", ":", "token", "create", "path", ":", "/", "tokens", "method", ":", "POST", "produce", ":", "application", "/", "json", "responses", ":", "201", ":", "Token", "created", "401", ":", "Unauthorized", "409", ":", "Token", "already", "exists" ]
[ "func", "tokenCreate", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "var", "args", "authTypes", ".", "TeamTokenCreateArgs", "\n", "err", "=", "ParseI...
3,073
all-3074
[ "GetDashboardOk", "returns", "a", "tuple", "with", "the", "Dashboard", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "r", "*", "reqGetDashboard", ")", "GetDashboardOk", "(", ")", "(", "Dashboard", ",", "bool", ")", "{", "if", "r", "==", "nil", "||", "r", ".", "Dashboard", "==", "nil", "{", "return", "Dashboard", "{", "}", ",", "false", "\n", "}", "\n...
3,074
all-3075
[ "FetchChecks", "retrieves", "all", "checks", "available", "to", "the", "API", "Token", "." ]
[ "func", "(", "a", "*", "API", ")", "FetchChecks", "(", ")", "(", "*", "[", "]", "Check", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "a", ".", "Get", "(", "config", ".", "CheckPrefix", ")", "\n", "if", "err", "!=", "nil", "{", "return",...
3,075
all-3076
[ "GetJobsForProject", "returns", "the", "full", "job", "details", "of", "the", "jobs", "belonging", "to", "the", "named", "project", "." ]
[ "func", "(", "c", "*", "Client", ")", "GetJobsForProject", "(", "projectName", "string", ")", "(", "[", "]", "JobDetail", ",", "error", ")", "{", "jobList", ":=", "&", "jobDetailList", "{", "}", "\n", "err", ":=", "c", ".", "<mask>", "(", "[", "]", ...
3,076
all-3077
[ "Capitalize", "all", "Y", "s", "preceded", "by", "vowels", "or", "starting", "a", "word" ]
[ "func", "capitalizeYs", "(", "word", "*", "snowballword", ".", "SnowballWord", ")", "(", "numCapitalizations", "int", ")", "{", "for", "i", ",", "r", ":=", "<mask>", "word", ".", "RS", "{", "// (Note: Y & y unicode code points = 89 & 121)", "if", "r", "==", "1...
3,077
all-3078
[ "With", "returns", "a", "new", "list", "with", "keyvals", "appended", ".", "The", "original", "list", "(", "l", ")", "is", "not", "modified", "." ]
[ "func", "(", "l", "List", ")", "With", "(", "keyvals", "...", "interface", "{", "}", ")", "List", "{", "keyvals", "=", "flattenFix", "(", "keyvals", ")", "\n", "list", ":=", "l", ".", "clone", "(", "len", "(", "l", ")", "+", "len", "(", "keyvals"...
3,078
all-3079
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ProcessInfo", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoSysteminfo", "(", "&", "w", ",", "v", ")", ...
3,079
all-3080
[ "connectionCloseStateChange", "is", "called", "when", "a", "connection", "s", "close", "state", "changes", "." ]
[ "func", "(", "ch", "*", "Channel", ")", "connectionCloseStateChange", "(", "c", "*", "Connection", ")", "{", "ch", ".", "removeClosedConn", "(", "c", ")", "\n", "if", "peer", ",", "ok", ":=", "ch", ".", "RootPeers", "(", ")", ".", "Get", "(", "c", ...
3,080
all-3081
[ "ServeHTTP", "implements", "http", ".", "Handler", "interface", "." ]
[ "func", "(", "h", "Handler", ")", "ServeHTTP", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "defer", "func", "(", ")", "{", "if", "err", ":=", "recover", "(", ")", ";", "err", "!=", "nil", "{", "debugM...
3,081
all-3082
[ "Dial", "initializes", "a", "new", "connection", "and", "releases", "a", "blocked", "call", "to", "Accept", "()" ]
[ "func", "(", "l", "*", "TestListener", ")", "Dial", "(", "context", ".", "Context", ",", "string", ",", "string", ")", "(", "<mask>", ".", "Conn", ",", "error", ")", "{", "l", ".", "connMu", ".", "Lock", "(", ")", "\n", "defer", "l", ".", "connMu...
3,082
all-3083
[ "Build", "creates", "or", "reuses", "an", "etcd", "resolver", "for", "the", "etcd", "cluster", "name", "identified", "by", "the", "authority", "part", "of", "the", "target", "." ]
[ "func", "(", "b", "*", "builder", ")", "Build", "(", "target", "resolver", ".", "Target", ",", "cc", "resolver", ".", "ClientConn", ",", "opts", "resolver", ".", "BuildOption", ")", "(", "resolver", ".", "Resolver", ",", "error", ")", "{", "if", "len",...
3,083
all-3084
[ "MapFilter", "lifts", "the", "filter", "to", "also", "work", "on", "maps", ".", "It", "loses", "the", "type", "information", "of", "the", "map", "fields" ]
[ "func", "MapFilter", "(", "filter", "Filter", ")", "Filter", "{", "return", "FilterFunc", "(", "func", "(", "k", "string", ",", "v", "interface", "{", "}", ")", "interface", "{", "}", "{", "r", ":=", "reflect", ".", "ValueOf", "(", "v", ")", "\n", ...
3,084
all-3085
[ "NewRL10", "returns", "a", "RL10", "client", "that", "uses", "the", "information", "stored", "in", "/", "var", "/", "run", "/", "rightlink", "/", "secret", "to", "do", "auth", "and", "configure", "the", "host", ".", "The", "client", "behaves", "identically...
[ "func", "NewRL10", "(", ")", "(", "*", "API", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "rsapi", ".", "NewRL10", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "return", "fromAPI", "(", "r...
3,085
all-3086
[ "RemoveHistogram", "removes", "a", "histogram" ]
[ "func", "(", "m", "*", "CirconusMetrics", ")", "RemoveHistogram", "(", "metric", "string", ")", "{", "m", ".", "hm", ".", "Lock", "(", ")", "\n", "<mask>", "(", "m", ".", "histograms", ",", "metric", ")", "\n", "m", ".", "hm", ".", "Unlock", "(", ...
3,086
all-3087
[ "HasFrom", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeRange", ")", "HasFrom", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "From", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
3,087
all-3088
[ "MoveBefore", "()", "is", "a", "wrapper", "around", "gtk_list_store_move_before", "()", "." ]
[ "func", "(", "v", "*", "ListStore", ")", "MoveBefore", "(", "iter", ",", "<mask>", "*", "TreeIter", ")", "{", "C", ".", "gtk_list_store_move_before", "(", "v", ".", "native", "(", ")", ",", "iter", ".", "native", "(", ")", ",", "position", ".", "nati...
3,088
all-3089
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "<mask>", ")", "Locator", "(", "api", "*", "API", ")", "*", "OperationLocator", "{", "return", "api", ".", "OperationLocator", "(", "r", ".", "Href", ")", "\n", "}" ]
3,089
all-3090
[ "GetExistingAliases", "returns", "the", "intersection", "between", "a", "list", "of", "aliases", "and", "all", "the", "existing", "ones", "." ]
[ "func", "GetExistingAliases", "(", "aliases", "[", "]", "string", ",", "allAliases", "[", "]", "api", ".", "ImageAliasesEntry", ")", "[", "]", "api", ".", "ImageAliasesEntry", "{", "existing", ":=", "[", "]", "api", ".", "ImageAliasesEntry", "{", "}", "\n"...
3,090
all-3091
[ "GetTerminalReason", "retrieves", "the", "terminalReason", "string" ]
[ "func", "(", "task", "*", "Task", ")", "GetTerminalReason", "(", ")", "string", "{", "task", ".", "<mask>", ".", "RLock", "(", ")", "\n", "defer", "task", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "task", ".", "terminalReason", "\n", "...
3,091
all-3092
[ "waitLeader", "waits", "until", "given", "members", "agree", "on", "the", "same", "leader", "." ]
[ "func", "(", "c", "*", "cluster", ")", "waitLeader", "(", "t", "testing", ".", "TB", ",", "membs", "[", "]", "*", "member", ")", "int", "{", "possibleLead", ":=", "make", "(", "map", "[", "uint64", "]", "bool", ")", "\n", "var", "lead", "uint64", ...
3,092
all-3093
[ "Do", "executes", "Debugger", ".", "evaluateOnCallFrame", "against", "the", "provided", "context", ".", "returns", ":", "result", "-", "Object", "wrapper", "for", "the", "evaluation", "result", ".", "exceptionDetails", "-", "Exception", "details", "." ]
[ "func", "(", "p", "*", "EvaluateOnCallFrameParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "result", "*", "runtime", ".", "RemoteObject", ",", "exceptionDetails", "*", "runtime", ".", "ExceptionDetails", ",", "err", "error", ")", "{", ...
3,093
all-3094
[ "newImageSource", "returns", "an", "ImageSource", "for", "reading", "from", "an", "existing", "directory", "." ]
[ "func", "newImageSource", "(", "sys", "*", "types", ".", "SystemContext", ",", "ref", "ociReference", ")", "(", "types", ".", "ImageSource", ",", "error", ")", "{", "tr", ":=", "tlsclientconfig", ".", "NewTransport", "(", ")", "\n", "tr", ".", "TLSClientCo...
3,094
all-3095
[ "New", "creates", "a", "nodetable", "instance" ]
[ "func", "New", "(", "hfn", "HashFn", ",", "kfn", "EqualKeyFn", ")", "*", "NodeTable", "{", "nt", ":=", "&", "NodeTable", "{", "fastHT", ":", "<mask>", "(", "map", "[", "uint32", "]", "uint64", ")", ",", "slowHT", ":", "make", "(", "map", "[", "uint...
3,095
all-3096
[ "Endpoints", "collects", "endpoints", "from", "its", "wrapped", "source", "and", "returns", "them", "without", "duplicates", "." ]
[ "func", "(", "ms", "*", "dedupSource", ")", "Endpoints", "(", ")", "(", "[", "]", "*", "endpoint", ".", "Endpoint", ",", "error", ")", "{", "result", ":=", "[", "]", "*", "endpoint", ".", "Endpoint", "{", "}", "\n", "collected", ":=", "map", "[", ...
3,096
all-3097
[ "resourceVSphereDPMHostOverrideFlattenID", "makes", "an", "ID", "for", "the", "vsphere_dpm_host_override", "resource", "." ]
[ "func", "resourceVSphereDPMHostOverrideFlattenID", "(", "cluster", "*", "object", ".", "ClusterComputeResource", ",", "host", "*", "object", ".", "HostSystem", ")", "(", "string", ",", "error", ")", "{", "return", "strings", ".", "Join", "(", "[", "]", "string...
3,097
all-3098
[ "handleRequestJobViews", "handles", "requests", "to", "get", "all", "available", "artifact", "views", "for", "a", "given", "job", ".", "The", "url", "must", "specify", "a", "storage", "key", "type", "such", "as", "prowjob", "or", "gcs", ":", "/", "view", "...
[ "func", "handleRequestJobViews", "(", "sg", "*", "spyglass", ".", "Spyglass", ",", "cfg", "config", ".", "Getter", ",", "o", "options", ")", "http", ".", "HandlerFunc", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http"...
3,098
all-3099
[ "NewService", "creates", "a", "new", "PublishService", "with", "default", "settings", ".", "Arguments", "allowed", ":", "--", "provider", "-", "base", "-", "url", "--", "pact", "-", "urls", "--", "provider", "-", "states", "-", "url", "--", "provider", "-"...
[ "func", "(", "v", "*", "PublishService", ")", "NewService", "(", "args", "[", "]", "string", ")", "Service", "{", "log", ".", "Printf", "(", "\"", "\\n", "\"", ",", "args", ")", "\n\n", "v", ".", "Args", "=", "[", "]", "string", "{", "\"", "\"", ...
3,099
all-3100
[ "Update", "updates", "the", "one", "record", ".", "The", "obj", "must", "be", "struct", "and", "must", "have", "field", "that", "specified", "pk", "struct", "tag", ".", "Update", "will", "try", "to", "update", "record", "which", "searched", "by", "value", ...
[ "func", "(", "db", "*", "DB", ")", "Update", "(", "obj", "interface", "{", "}", ")", "(", "affected", "int64", ",", "err", "error", ")", "{", "rv", ",", "rtype", ",", "tableName", ",", "err", ":=", "db", ".", "tableValueOf", "(", "\"", "\"", ",",...