id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
7,700
all-7701
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "<mask>", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoHar8", "(", "&", "w", ",", "v", ")", "\n", "ret...
7,701
all-7702
[ "Remove", "removes", "a", "point", "." ]
[ "func", "(", "countIndex", "*", "CountIndex", ")", "Remove", "(", "id", "string", ")", "{", "if", "prev", ",", "ok", ":=", "countIndex", ".", "currentPosition", "[", "id", "]", ";", "<mask>", "{", "countIndex", ".", "index", ".", "GetEntryAt", "(", "pr...
7,702
all-7703
[ "Collaborations", "retrieves", "a", "list", "of", "all", "the", "current", "user", "s", "collaborations" ]
[ "func", "(", "c", "*", "Client", ")", "Collaborations", "(", ")", "(", "[", "]", "Collaboration", ",", "error", ")", "{", "<mask>", "cl", "[", "]", "Collaboration", "\n", "_", ",", "err", ":=", "c", ".", "MakeApiRequest", "(", "\"", "\"", ",", "\""...
7,703
all-7704
[ "SetState", "is", "a", "wrapper", "around", "g_simple_action_set_state", "This", "should", "only", "be", "called", "by", "the", "implementor", "of", "the", "action", ".", "Users", "of", "the", "action", "should", "not", "attempt", "to", "directly", "modify", "...
[ "func", "(", "v", "*", "SimpleAction", ")", "SetState", "(", "value", "*", "Variant", ")", "{", "C", ".", "g_simple_action_set_state", "(", "v", ".", "native", "(", ")", ",", "<mask>", ".", "native", "(", ")", ")", "\n", "}" ]
7,704
all-7705
[ "establish", "the", "data", "storage", "format", "dimensions", "and", "number", "of", "samples", "of", "a", "multisample", "texture", "s", "image" ]
[ "func", "TexImage2DMultisample", "(", "target", "uint32", ",", "samples", "int32", ",", "internalformat", "uint32", ",", "width", "int32", ",", "height", "int32", ",", "fixedsamplelocations", "bool", ")", "{", "syscall", ".", "Syscall6", "(", "gpTexImage2DMultisam...
7,705
all-7706
[ "Create", "creates", "the", "metadata", "file", "and", "adds", "the", "metadata", "directory", "to", "the", "container", "s", "mounted", "host", "volumes", "Pointer", "hostConfig", "is", "modified", "directly", "so", "there", "is", "risk", "of", "concurrency", ...
[ "func", "(", "manager", "*", "metadataManager", ")", "Create", "(", "config", "*", "dockercontainer", ".", "Config", ",", "hostConfig", "*", "dockercontainer", ".", "HostConfig", ",", "task", "*", "apitask", ".", "Task", ",", "containerName", "string", ")", ...
7,706
all-7707
[ "ServeReady", "starts", "serving", "the", "readiness", "endpoint" ]
[ "func", "(", "h", "*", "Health", ")", "ServeReady", "(", ")", "{", "h", ".", "healthMux", ".", "HandleFunc", "(", "\"", "\"", ",", "func", "(", "w", "<mask>", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "fmt", ".", "Fp...
7,707
all-7708
[ "CreateZone", "adds", "new", "zone", "if", "not", "present" ]
[ "func", "(", "im", "*", "InMemoryProvider", ")", "CreateZone", "(", "newZone", "string", ")", "error", "{", "return", "im", ".", "<mask>", ".", "CreateZone", "(", "newZone", ")", "\n", "}" ]
7,708
all-7709
[ "create", "a", "stand", "-", "alone", "program", "from", "an", "array", "of", "null", "-", "terminated", "source", "code", "strings" ]
[ "func", "CreateShaderProgramv", "(", "xtype", "uint32", ",", "count", "int32", ",", "strings", "*", "*", "uint8", ")", "uint32", "{", "ret", ":=", "C", ".", "glowCreateShaderProgramv", "(", "gpCreateShaderProgramv", ",", "(", "C", ".", "GLenum", ")", "(", ...
7,709
all-7710
[ "complete", "returns", "true", "if", "all", "fields", "of", "the", "config", "are", "populated", "/", "nonzero" ]
[ "func", "(", "cfg", "*", "Config", ")", "<mask>", "(", ")", "bool", "{", "cfgElem", ":=", "reflect", ".", "ValueOf", "(", "cfg", ")", ".", "Elem", "(", ")", "\n\n", "for", "i", ":=", "0", ";", "i", "<", "cfgElem", ".", "NumField", "(", ")", ";"...
7,710
all-7711
[ "ProfileGet", "returns", "the", "profile", "with", "the", "given", "key", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "ProfileGet", "(", "project", "string", ",", "name", "string", ")", "(", "*", "Profile", ",", "error", ")", "{", "filter", ":=", "ProfileFilter", "{", "}", "\n", "filter", ".", "Project", "=", "project", "\n", ...
7,711
all-7712
[ "CreateCheckoutKey", "creates", "a", "new", "checkout", "key", "for", "a", "project", "Valid", "key", "types", "are", "currently", "deploy", "-", "key", "and", "github", "-", "user", "-", "key", "The", "github", "-", "user", "-", "key", "type", "requires",...
[ "func", "(", "c", "*", "Client", ")", "CreateCheckoutKey", "(", "account", ",", "repo", ",", "keyType", "string", ")", "(", "*", "CheckoutKey", ",", "error", ")", "{", "checkoutKey", ":=", "&", "CheckoutKey", "{", "}", "\n\n", "body", ":=", "struct", "...
7,712
all-7713
[ "TextExtent", "calculates", "the", "width", "and", "the", "height", "of", "the", "text" ]
[ "func", "TextExtent", "(", "text", "string", ")", "(", "int", ",", "int", ")", "{", "if", "text", "==", "\"", "\"", "{", "return", "0", ",", "0", "\n", "}", "\n", "parts", ":=", "strings", ".", "Split", "(", "text", ",", "\"", "\\n", "\"", ")",...
7,713
all-7714
[ "cmdOutput", "runs", "a", "shell", "command", "and", "returns", "its", "output", "." ]
[ "func", "cmdOutput", "(", "name", "string", ",", "args", "...", "string", ")", "(", "string", ",", "error", ")", "{", "cmd", ":=", "exec", ".", "Command", "(", "name", ",", "args", "...", ")", "\n", "log", ".", "Debugf", "(", "\"", "\"", ",", "<m...
7,714
all-7715
[ "Warningf", "logs", "a", "WARNING", "message", "to", "the", "logger", "specified", "in", "opts", "." ]
[ "func", "(", "opt", "*", "Options", ")", "Warningf", "(", "format", "string", ",", "v", "...", "interface", "{", "}", ")", "{", "if", "opt", ".", "Logger", "==", "nil", "{", "return", "\n", "}", "\n", "opt", ".", "Logger", ".", "Warningf", "(", "...
7,715
all-7716
[ "GitClient", "returns", "a", "Git", "client", "." ]
[ "func", "(", "o", "*", "GitHubOptions", ")", "GitClient", "(", "secretAgent", "*", "secret", ".", "Agent", ",", "dryRun", "bool", ")", "(", "client", "*", "git", ".", "<mask>", ",", "err", "error", ")", "{", "client", ",", "err", "=", "git", ".", "...
7,716
all-7717
[ "TransferTokens", "initiates", "JobPreAccountAddBalanceApprove", "or", "JobPreAccountReturnBalance", "job", "depending", "on", "the", "direction", "of", "the", "transfer", "." ]
[ "func", "(", "h", "*", "Handler", ")", "TransferTokens", "(", "tkn", ",", "account", ",", "destination", "string", ",", "amount", ",", "gasPrice", "uint64", ")", "error", "{", "logger", ":=", "h", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\""...
7,717
all-7718
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "the", "current", "program", "object" ]
[ "func", "UniformMatrix3fv", "(", "location", "int32", ",", "<mask>", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpUniformMatrix3fv", ",", "4", ",", "uintptr", "(", "location", ")", ",", "uin...
7,718
all-7719
[ "newStateManager", "creates", "a", "new", "state", "manager", "object", "for", "the", "task", "engine", ".", "Rest", "of", "the", "parameters", "are", "pointers", "and", "it", "s", "expected", "that", "all", "of", "these", "will", "be", "backfilled", "when",...
[ "func", "(", "agent", "*", "ecsAgent", ")", "newStateManager", "(", "taskEngine", "<mask>", ".", "TaskEngine", ",", "cluster", "*", "string", ",", "containerInstanceArn", "*", "string", ",", "savedInstanceID", "*", "string", ",", "availabilityZone", "*", "string...
7,719
all-7720
[ "Connect", "is", "used", "to", "connect", "this", "transport", "to", "another", "transport", "for", "a", "given", "peer", "name", ".", "This", "allows", "for", "local", "routing", "." ]
[ "func", "(", "i", "*", "InmemTransport", ")", "Connect", "(", "<mask>", "ServerAddress", ",", "t", "Transport", ")", "{", "trans", ":=", "t", ".", "(", "*", "InmemTransport", ")", "\n", "i", ".", "Lock", "(", ")", "\n", "defer", "i", ".", "Unlock", ...
7,720
all-7721
[ "GrantAccess", "will", "enforce", "the", "authorization", "without", "any", "changes", "to", "the", "context", ".", "It", "should", "be", "used", "if", "the", "presented", "candidate", "has", "full", "access", "to", "the", "data", "(", ".", "e", ".", "g", ...
[ "func", "GrantAccess", "(", ")", "*", "Enforcer", "{", "return", "E", "(", "\"", "\"", ",", "<mask>", ".", "All", "(", ")", ",", "func", "(", "_", "*", "fire", ".", "Context", ")", "error", "{", "return", "nil", "\n", "}", ")", "\n", "}" ]
7,721
all-7722
[ "DeepCopy", "copies", "the", "receiver", "into", "a", "new", "CreditCard", "." ]
[ "func", "(", "u", "*", "CreditCard", ")", "DeepCopy", "(", ")", "*", "CreditCard", "{", "if", "u", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "CreditCard", ")", "\n", "u", ".", "DeepCopyInto", "(", "out", ")", "\...
7,722
all-7723
[ "PanicHandler", "recovers", "from", "panics", "gracefully", "and", "calls", "the", "error", "handling", "code", "for", "a", "500", "error", "." ]
[ "func", "(", "a", "*", "App", ")", "PanicHandler", "(", "next", "Handler", ")", "Handler", "{", "return", "func", "(", "c", "Context", ")", "error", "{", "defer", "func", "(", ")", "{", "//catch or finally", "r", ":=", "recover", "(", ")", "\n", "var...
7,723
all-7724
[ "LogWithTime", "will", "log", "a", "message", "at", "the", "provided", "level", "to", "all", "added", "loggers", "with", "the", "timestamp", "set", "to", "the", "value", "of", "ts", "." ]
[ "func", "(", "b", "*", "Base", ")", "LogWithTime", "(", "level", "LogLevel", ",", "ts", "time", ".", "Time", ",", "m", "*", "Attrs", ",", "msg", "string", ",", "a", "...", "interface", "{", "}", ")", "error", "{", "if", "!", "b", ".", "shouldLog"...
7,724
all-7725
[ "GetDeletedAtOk", "returns", "a", "tuple", "with", "the", "DeletedAt", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsTest", ")", "GetDeletedAtOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "DeletedAt", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", ...
7,725
all-7726
[ "Duration", "defines", "a", "time", ".", "Duration", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "time", ".", "Duration", "variable", "that", "stores", ...
[ "func", "Duration", "(", "name", "string", ",", "value", "<mask>", ".", "Duration", ",", "usage", "string", ")", "*", "time", ".", "Duration", "{", "return", "EnvironmentFlags", ".", "Duration", "(", "name", ",", "value", ",", "usage", ")", "\n", "}" ]
7,726
all-7727
[ "handleFlushTask", "must", "be", "run", "serially", "." ]
[ "func", "(", "db", "*", "DB", ")", "handleFlushTask", "(", "ft", "flushTask", ")", "error", "{", "if", "!", "ft", ".", "mt", ".", "Empty", "(", ")", "{", "// Store badger head even if vptr is zero, need it for readTs", "db", ".", "opt", ".", "Debugf", "(", ...
7,727
all-7728
[ "MarshalText", "turns", "this", "instance", "into", "text" ]
[ "func", "(", "b", "Base64", ")", "MarshalText", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "enc", ":=", "base64", ".", "URLEncoding", "\n", "src", ":=", "[", "]", "byte", "(", "b", ")", "\n", "buf", ":=", "<mask>", "(", "[", "]", ...
7,728
all-7729
[ "newUntrustedSignature", "returns", "an", "untrustedSignature", "object", "with", "the", "specified", "primary", "contents", "and", "appropriate", "metadata", "." ]
[ "func", "newUntrustedSignature", "(", "dockerManifestDigest", "digest", ".", "Digest", ",", "dockerReference", "string", ")", "untrustedSignature", "{", "// Use intermediate variables for these values so that we can take their addresses.", "// Golang guarantees that they will have a new ...
7,729
all-7730
[ "ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "LedgerEntryChangeType" ]
[ "func", "(", "e", "LedgerEntryChangeType", ")", "ValidEnum", "(", "v", "int32", ")", "bool", "{", "_", ",", "<mask>", ":=", "ledgerEntryChangeTypeMap", "[", "v", "]", "\n", "return", "ok", "\n", "}" ]
7,730
all-7731
[ "TODO", ":", "gtk_container_get_path_for_child", "GetFocusChild", "is", "a", "wrapper", "around", "gtk_container_get_focus_child", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetFocusChild", "(", ")", "*", "Widget", "{", "c", ":=", "C", ".", "gtk_container_get_focus_child", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", "\n", "}", "\n", ...
7,731
all-7732
[ "DeleteNoCloseTagName", "deletes", "name", "from", ".", "NoCloseTagNames", "set", "." ]
[ "func", "(", "opts", "*", "Options", ")", "DeleteNoCloseTagName", "(", "name", "string", ")", "{", "var", "newset", "[", "]", "string", "\n", "for", "_", ",", "n", ":=", "range", "opts", ".", "NoCloseTagNames", "{", "if", "n", "!=", "<mask>", "{", "n...
7,732
all-7733
[ "XXX", "debug", "support", "remove", "when", "debugging", "done", "." ]
[ "func", "addArgsFromEnv", "(", "evar", "string", ",", "args", "*", "[", "]", "string", ")", "{", "if", "e", ":=", "os", ".", "Getenv", "(", "evar", ")", ";", "e", "!=", "\"", "\"", "{", "for", "_", ",", "f", ":=", "range", "strings", ".", "Fiel...
7,733
all-7734
[ "CreateBoard", "creates", "a", "new", "dashboard", "when", "given", "a", "Board", "struct", "." ]
[ "func", "(", "client", "*", "Client", ")", "CreateBoard", "(", "board", "*", "Board", ")", "(", "*", "Board", ",", "error", ")", "{", "<mask>", "createdBoard", "Board", "\n", "if", "err", ":=", "client", ".", "doJsonRequest", "(", "\"", "\"", ",", "\...
7,734
all-7735
[ "AddENIAttachment", "adds", "the", "eni", "into", "the", "state" ]
[ "func", "(", "state", "*", "DockerTaskEngineState", ")", "AddENIAttachment", "(", "eniAttachment", "*", "apieni", ".", "ENIAttachment", ")", "{", "if", "eniAttachment", "==", "nil", "{", "log", ".", "Debug", "(", "\"", "\"", ")", "\n", "return", "\n", "}",...
7,735
all-7736
[ "Drop", "clears", "the", "database" ]
[ "func", "(", "m", "*", "MongoDb", ")", "Drop", "(", ")", "error", "{", "err", ":=", "m", ".", "<mask>", ".", "DropDatabase", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "e", ".", "New", "(", "err", ")", "\n", "}", "\n", "m", ".",...
7,736
all-7737
[ "SetOnConnectCallback", "sets", "a", "callback", "function", "to", "be", "called", "with", "the", "websocket", "connection", "is", "established", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "SetOnConnectCallback", "(", "cb", "func", "(", ")", ")", "{", "c", ".", "callbackLock", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "callbackLock", ".", "Unlock", "(", ")", "\n", "c", ".", "callback", "=",...
7,737
all-7738
[ "InstanceEnvs", "returns", "a", "map", "of", "environment", "variables", "that", "belongs", "to", "the", "given", "service", "and", "service", "instance", "." ]
[ "func", "(", "app", "*", "App", ")", "InstanceEnvs", "(", "serviceName", ",", "instanceName", "string", ")", "map", "[", "string", "]", "<mask>", ".", "EnvVar", "{", "envs", ":=", "make", "(", "map", "[", "string", "]", "bind", ".", "EnvVar", ")", "\...
7,738
all-7739
[ "GlobFile", "returns", "files", "that", "match", "a", "given", "glob", "pattern", "in", "a", "given", "commit", ".", "The", "pattern", "is", "documented", "here", ":", "https", ":", "//", "golang", ".", "org", "/", "pkg", "/", "path", "/", "filepath", ...
[ "func", "(", "c", "APIClient", ")", "GlobFile", "(", "repoName", "string", ",", "commitID", "string", ",", "<mask>", "string", ")", "(", "[", "]", "*", "pfs", ".", "FileInfo", ",", "error", ")", "{", "fs", ",", "err", ":=", "c", ".", "PfsAPIClient", ...
7,739
all-7740
[ "See", "bcd", ".", "Tracer", ".", "AddOptions", "()", "." ]
[ "func", "(", "t", "*", "BTTracer", ")", "AddOptions", "(", "options", "[", "]", "string", ",", "v", "...", "string", ")", "[", "]", "string", "{", "if", "options", "!=", "nil", "{", "return", "append", "(", "options", ",", "v", "...", ")", "\n", ...
7,740
all-7741
[ "mapCdrom", "takes", "a", "CdromSubresource", "and", "attaches", "either", "a", "client", "device", "or", "a", "datastore", "ISO", "." ]
[ "func", "(", "r", "*", "CdromSubresource", ")", "mapCdrom", "(", "<mask>", "*", "types", ".", "VirtualCdrom", ",", "l", "object", ".", "VirtualDeviceList", ")", "error", "{", "dsID", ":=", "r", ".", "Get", "(", "\"", "\"", ")", ".", "(", "string", ")...
7,741
all-7742
[ "SetIconFromStock", "is", "a", "wrapper", "around", "gtk_entry_set_icon_from_stock", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetIconFromStock", "(", "iconPos", "EntryIconPosition", ",", "stockID", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "stockID", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "...
7,742
all-7743
[ "sendSamples", "to", "the", "remote", "storage", "with", "backoff", "for", "recoverable", "errors", "." ]
[ "func", "(", "s", "*", "shards", ")", "sendSamplesWithBackoff", "(", "ctx", "context", ".", "Context", ",", "samples", "[", "]", "prompb", ".", "TimeSeries", ")", "error", "{", "backoff", ":=", "s", ".", "qm", ".", "cfg", ".", "MinBackoff", "\n", "req"...
7,743
all-7744
[ "InitServiceEnv", "initializes", "this", "service", "environment", ".", "This", "dials", "a", "GRPC", "connection", "to", "pachd", "and", "etcd", "(", "in", "a", "background", "goroutine", ")", "and", "creates", "the", "template", "pachClient", "used", "by", "...
[ "func", "InitServiceEnv", "(", "config", "*", "Configuration", ")", "*", "ServiceEnv", "{", "env", ":=", "InitPachOnlyEnv", "(", "config", ")", "\n", "env", ".", "etcdAddress", "=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "<mask>", ".", "JoinHostPort"...
7,744
all-7745
[ "importKeysFromBytes", "imports", "public", "keys", "from", "the", "supplied", "blob", "and", "returns", "their", "identities", ".", "The", "blob", "is", "assumed", "to", "have", "an", "appropriate", "format", "(", "the", "caller", "is", "expected", "to", "kno...
[ "func", "(", "m", "*", "gpgmeSigningMechanism", ")", "importKeysFromBytes", "(", "blob", "[", "]", "byte", ")", "(", "[", "]", "string", ",", "error", ")", "{", "inputData", ",", "err", ":=", "gpgme", ".", "NewDataBytes", "(", "blob", ")", "\n", "if", ...
7,745
all-7746
[ "SetSkipPagerHint", "is", "a", "wrapper", "around", "gtk_window_set_skip_pager_hint", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "SetSkipPagerHint", "(", "setting", "bool", ")", "{", "C", ".", "gtk_window_set_skip_pager_hint", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "<mask>", ")", ")", "\n", "}" ]
7,746
all-7747
[ "SetIntValue", "creates", "a", "Set", "query", "." ]
[ "func", "(", "f", "*", "Field", ")", "SetIntValue", "(", "colIDOrKey", "interface", "{", "}", ",", "value", "int", ")", "*", "PQLBaseQuery", "{", "colStr", ",", "err", ":=", "formatIDKey", "(", "colIDOrKey", ")", "\n", "if", "err", "!=", "nil", "{", ...
7,747
all-7748
[ "AddText", "appends", "a", "text", "to", "the", "end", "of", "the", "control", "content", ".", "View", "position", "may", "be", "changed", "automatically", "depending", "on", "value", "of", "AutoScroll" ]
[ "func", "(", "l", "*", "TextView", ")", "AddText", "(", "text", "[", "]", "string", ")", "{", "l", ".", "<mask>", "=", "append", "(", "l", ".", "lines", ",", "text", "...", ")", "\n", "l", ".", "applyLimit", "(", ")", "\n", "l", ".", "calculate...
7,748
all-7749
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ClearParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomstorage11", "(", "&", "r...
7,749
all-7750
[ "makeRequest", "renders", "a", "branch", "protection", "policy", "into", "the", "corresponding", "GitHub", "api", "request", "." ]
[ "func", "makeRequest", "(", "policy", "branchprotection", ".", "<mask>", ")", "github", ".", "BranchProtectionRequest", "{", "return", "github", ".", "BranchProtectionRequest", "{", "EnforceAdmins", ":", "makeAdmins", "(", "policy", ".", "Admins", ")", ",", "Requi...
7,750
all-7751
[ "Send", "sends", "the", "kick", "request", "." ]
[ "func", "(", "kr", "*", "OutgoingKickChatMember", ")", "Send", "(", ")", "error", "{", "resp", ":=", "&", "baseResponse", "{", "}", "\n", "_", ",", "err", ":=", "kr", ".", "api", ".", "c", ".", "postJSON", "(", "kickChatMember", ",", "resp", ",", "...
7,751
all-7752
[ "RemoveActionWidget", "is", "a", "wrapper", "around", "gtk_assistant_remove_action_widget", "()", "." ]
[ "func", "(", "v", "*", "Assistant", ")", "RemoveActionWidget", "(", "child", "IWidget", ")", "{", "C", ".", "gtk_assistant_remove_action_widget", "(", "v", ".", "native", "(", ")", ",", "<mask>", ".", "toWidget", "(", ")", ")", "\n", "}" ]
7,752
all-7753
[ "ReadUint8", "returns", "a", "uint8", "read", "from", "address", "a", "of", "the", "inferior", "." ]
[ "func", "(", "p", "*", "Process", ")", "ReadUint8", "(", "a", "Address", ")", "uint8", "{", "m", ":=", "p", ".", "findMapping", "(", "a", ")", "\n", "if", "m", "==", "nil", "{", "panic", "(", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "a", "...
7,753
all-7754
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetPressureNotificationsSuppressedParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory3", "(", "&", "w"...
7,754
all-7755
[ "Includes", "returns", "true", "if", "a", "list", "of", "strings", "includes", "another", "list", "of", "strings", "." ]
[ "func", "Includes", "(", "all", ",", "subset", "[", "]", "string", ")", "bool", "{", "for", "_", ",", "item", ":=", "range", "subset", "{", "if", "!", "Contains", "(", "all", ",", "item", ")", "{", "return", "<mask>", "\n", "}", "\n", "}", "\n\n"...
7,755
all-7756
[ "IsPrivate", "determines", "whether", "a", "passed", "IP", "address", "is", "from", "one", "of", "private", "blocks", "or", "not", "." ]
[ "func", "IsPrivate", "(", "ip", "net", ".", "IP", ")", "bool", "{", "for", "_", ",", "ipnet", ":=", "range", "privateNets", "{", "if", "ipnet", ".", "Contains", "(", "<mask>", ")", "{", "return", "true", "\n", "}", "\n", "}", "\n", "return", "false...
7,756
all-7757
[ "newRestSession", "connects", "to", "the", "vSphere", "REST", "API", "endpoint", "necessary", "for", "tags", "." ]
[ "func", "newRestSession", "(", "ctx", "context", ".", "Context", ",", "u", "*", "url", ".", "URL", ",", "insecure", "bool", ")", "(", "*", "<mask>", ".", "RestClient", ",", "error", ")", "{", "logger", ".", "Printf", "(", "\"", "\"", ",", "u", ".",...
7,757
all-7758
[ "ScanASTBody", "creates", "a", "File", "wrapped", "around", "the", "given", "syntax", "tree", ".", "It", "will", "also", "scan", "the", "AST", "for", "a", "function", "matching", "the", "given", "defName", "and", "if", "the", "function", "does", "not", "ex...
[ "func", "ScanASTBody", "(", "pkg", ",", "defName", "string", ",", "bzlFile", "*", "bzl", ".", "File", ")", "*", "File", "{", "f", ":=", "&", "File", "{", "File", ":", "bzlFile", ",", "Pkg", ":", "pkg", ",", "Path", ":", "bzlFile", ".", "Path", ",...
7,758
all-7759
[ "Compact", "invalidate", "all", "caching", "response", "before", "the", "given", "rev", ".", "Replace", "with", "the", "invalidation", "is", "lazy", ".", "The", "actual", "removal", "happens", "when", "the", "entries", "is", "accessed", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "Compact", "(", "revision", "int64", ")", "{", "c", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "mu", ".", "Unlock", "(", ")", "\n\n", "if", "revision", ">", "c", ".", "compactedRev", "{", "c...
7,759
all-7760
[ "OpDelete", "returns", "delete", "operation", "based", "on", "given", "key", "and", "operation", "options", "." ]
[ "func", "OpDelete", "(", "<mask>", "string", ",", "opts", "...", "OpOption", ")", "Op", "{", "// WithPrefix and WithFromKey are not supported together", "if", "isWithPrefix", "(", "opts", ")", "&&", "isWithFromKey", "(", "opts", ")", "{", "panic", "(", "\"", "\"...
7,760
all-7761
[ "Creates", "a", "new", "handler", "that", "parses", "the", "Accept", "-", "Language", "HTTP", "header", ".", "The", "parsed", "structure", "is", "a", "slice", "of", "Accept", "-", "Language", "values", "stored", "in", "an", "AcceptLanguages", "instance", "so...
[ "func", "Languages", "(", ")", "martini", ".", "Handler", "{", "return", "func", "(", "context", "martini", ".", "Context", ",", "request", "*", "http", ".", "<mask>", ")", "{", "header", ":=", "request", ".", "Header", ".", "Get", "(", "acceptLanguageHe...
7,761
all-7762
[ "sendMessage", "sends", "a", "standalone", "message", "(", "typically", "a", "control", "message", ")" ]
[ "func", "(", "c", "*", "Connection", ")", "sendMessage", "(", "msg", "message", ")", "error", "{", "frame", ":=", "c", ".", "opts", ".", "FramePool", ".", "Get", "(", ")", "\n", "if", "err", ":=", "frame", ".", "write", "(", "msg", ")", ";", "err...
7,762
all-7763
[ "Set", "parses", "the", "flag", "value", "into", "a", "CommaSeparatedStrings" ]
[ "func", "(", "r", "*", "CommaSeparatedStrings", ")", "Set", "(", "<mask>", "string", ")", "error", "{", "if", "len", "(", "*", "r", ")", ">", "0", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "for", "_", ",", "rty...
7,763
all-7764
[ "Read", "presents", "one", "or", "more", "IDAT", "chunks", "as", "one", "continuous", "stream", "(", "minus", "the", "intermediate", "chunk", "headers", "and", "footers", ")", ".", "If", "the", "PNG", "data", "looked", "like", ":", "...", "len0", "IDAT", ...
[ "func", "(", "d", "*", "decoder", ")", "Read", "(", "p", "[", "]", "byte", ")", "(", "int", ",", "error", ")", "{", "if", "len", "(", "p", ")", "==", "0", "{", "return", "0", ",", "nil", "\n", "}", "\n", "for", "d", ".", "idatLength", "==",...
7,764
all-7765
[ "NotFound", "sets", "a", "custom", "http", ".", "HandlerFunc", "for", "routing", "paths", "that", "could", "not", "be", "found", ".", "The", "default", "404", "handler", "is", "http", ".", "NotFound", "." ]
[ "func", "(", "mx", "*", "Mux", ")", "NotFound", "(", "handlerFn", "<mask>", ".", "HandlerFunc", ")", "{", "// Build NotFound handler chain", "m", ":=", "mx", "\n", "hFn", ":=", "handlerFn", "\n", "if", "mx", ".", "inline", "&&", "mx", ".", "parent", "!="...
7,765
all-7766
[ "Prepend", "is", "a", "wrapper", "around", "g_menu_prepend", "()", "." ]
[ "func", "(", "v", "*", "Menu", ")", "Prepend", "(", "label", ",", "detailed_action", "string", ")", "{", "cstr1", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "label", ")", ")", "\n", "defer", "C", ".", "<mask>", "(", ...
7,766
all-7767
[ "RenameStoragePoolVolume", "renames", "a", "storage", "volume" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "RenameStoragePoolVolume", "(", "pool", "string", ",", "volType", "string", ",", "name", "string", ",", "volume", "api", ".", "StorageVolumePost", ")", "error", "{", "if", "!", "r", ".", "HasExtension", "(", "\"",...
7,767
all-7768
[ "NewProwJobInformer", "constructs", "a", "new", "informer", "for", "ProwJob", "type", ".", "Always", "prefer", "using", "an", "informer", "factory", "to", "get", "a", "shared", "informer", "instead", "of", "getting", "an", "independent", "one", ".", "This", "r...
[ "func", "NewProwJobInformer", "(", "client", "versioned", ".", "Interface", ",", "namespace", "string", ",", "resyncPeriod", "time", ".", "Duration", ",", "indexers", "<mask>", ".", "Indexers", ")", "cache", ".", "SharedIndexInformer", "{", "return", "NewFilteredP...
7,768
all-7769
[ "GetIP", "returns", "the", "IP", "address", "of", "the", "GCE", "instance", "." ]
[ "func", "(", "d", "*", "Driver", ")", "GetIP", "(", ")", "(", "string", ",", "error", ")", "{", "c", ",", "err", ":=", "newComputeUtil", "(", "d", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "err", "\n", "}", "\n\n", ...
7,769
all-7770
[ "specify", "clear", "values", "for", "the", "color", "buffers" ]
[ "func", "ClearColor", "(", "<mask>", "float32", ",", "green", "float32", ",", "blue", "float32", ",", "alpha", "float32", ")", "{", "C", ".", "glowClearColor", "(", "gpClearColor", ",", "(", "C", ".", "GLfloat", ")", "(", "red", ")", ",", "(", "C", "...
7,770
all-7771
[ "AddWithOpts", "adds", "a", "file", "to", "ipfs", "with", "some", "additional", "options", "Deprecated", ":", "Use", "Add", "()", "with", "option", "functions", "instead" ]
[ "func", "(", "s", "*", "Shell", ")", "AddWithOpts", "(", "r", "<mask>", ".", "Reader", ",", "pin", "bool", ",", "rawLeaves", "bool", ")", "(", "string", ",", "error", ")", "{", "return", "s", ".", "Add", "(", "r", ",", "Pin", "(", "pin", ")", "...
7,771
all-7772
[ "GetStock", "is", "a", "wrapper", "around", "gtk_status_icon_get_stock", "()", "Deprecated", "since", "3", ".", "10", "use", "GetIconName", "(", "gtk_status_icon_get_icon_name", ")", "instead" ]
[ "func", "(", "v", "*", "StatusIcon", ")", "GetStock", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_status_icon_get_stock", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "re...
7,772
all-7773
[ "RateScale", "fetches", "an", "instrument", "from", "the", "registry", "or", "creates", "a", "new", "one", "with", "a", "custom", "scale", ".", "If", "another", "instrument", "type", "is", "already", "registered", "with", "the", "same", "name", "/", "tags", ...
[ "func", "(", "r", "*", "Registry", ")", "RateScale", "(", "name", "string", ",", "<mask>", "[", "]", "string", ",", "d", "time", ".", "Duration", ")", "*", "Rate", "{", "factory", ":=", "func", "(", ")", "interface", "{", "}", "{", "return", "NewRa...
7,773
all-7774
[ "Do", "executes", "Target", ".", "createBrowserContext", "against", "the", "provided", "context", ".", "returns", ":", "browserContextID", "-", "The", "id", "of", "the", "context", "created", "." ]
[ "func", "(", "p", "*", "CreateBrowserContextParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "browserContextID", "BrowserContextID", ",", "err", "error", ")", "{", "// execute", "var", "res", "CreateBrowserContextReturns", "\n", "err", "=", ...
7,774
all-7775
[ "DetachVolume", "detaches", "a", "volume" ]
[ "func", "(", "c", "*", "<mask>", ")", "DetachVolume", "(", "dcid", ",", "srvid", ",", "volid", "string", ")", "(", "*", "http", ".", "Header", ",", "error", ")", "{", "url", ":=", "serverVolumePath", "(", "dcid", ",", "srvid", ",", "volid", ")", "\...
7,775
all-7776
[ "Do", "executes", "Network", ".", "replayXHR", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "ReplayXHRParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandReplayXHR", ",", "p", ",", "nil", ")", "\n", "}" ]
7,776
all-7777
[ "OnKeyDown", "sets", "the", "callback", "that", "is", "called", "when", "a", "user", "presses", "a", "key", "while", "the", "Window", "is", "active" ]
[ "func", "(", "w", "*", "Window", ")", "OnKeyDown", "(", "fn", "func", "(", "Event", ",", "interface", "{", "}", ")", "bool", ",", "<mask>", "interface", "{", "}", ")", "{", "if", "fn", "==", "nil", "{", "w", ".", "onKeyDown", "=", "nil", "\n", ...
7,777
all-7778
[ "GetVisibleChild", "is", "a", "wrapper", "around", "gtk_stack_get_visible_child", "()", "." ]
[ "func", "(", "v", "*", "Stack", ")", "GetVisibleChild", "(", ")", "*", "Widget", "{", "c", ":=", "C", ".", "gtk_stack_get_visible_child", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", "\n", "}", "\n", ...
7,778
all-7779
[ "Process", "is", "the", "main", "Entrypoint" ]
[ "func", "(", "a", "*", "Auth", ")", "<mask>", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "error", "{", "if", "err", ":=", "a", ".", "ValidateRequest", "(", "r", ")", ";", "err", "!=", "nil", "{", "return"...
7,779
all-7780
[ "Used", "to", "update", "the", "cluster", "after", "a", "database", "node", "has", "been", "removed", "and", "possibly", "promote", "another", "one", "as", "database", "node", "." ]
[ "func", "internalClusterPostRebalance", "(", "d", "*", "Daemon", ",", "r", "*", "http", ".", "Request", ")", "Response", "{", "// Redirect all requests to the leader, which is the one with with", "// up-to-date knowledge of what nodes are part of the raft cluster.", "localAddress",...
7,780
all-7781
[ "Do", "executes", "Network", ".", "setCookie", "against", "the", "provided", "context", ".", "returns", ":", "success", "-", "True", "if", "successfully", "set", "cookie", "." ]
[ "func", "(", "p", "*", "SetCookieParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "success", "bool", ",", "err", "error", ")", "{", "// execute", "var", "res", "SetCookieReturns", "\n", "err", "=", "cdp", ".", "Execute", "(", "ctx",...
7,781
all-7782
[ "GetEmail", "returns", "the", "Email", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "SyntheticsUser", ")", "GetEmail", "(", ")", "string", "{", "if", "s", "==", "nil", "||", "s", ".", "Email", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "<mask>", "*", "s", ".", "Email", "\n", "}" ]
7,782
all-7783
[ "Mode", "returns", "an", "os", ".", "FileMode", "for", "the", "file", "calculated", "from", "the", "Attributes", "field", "." ]
[ "func", "(", "f", "*", "FileHeader", ")", "Mode", "(", ")", "os", ".", "FileMode", "{", "var", "m", "os", ".", "FileMode", "\n\n", "if", "f", ".", "IsDir", "{", "m", "=", "os", ".", "ModeDir", "\n", "}", "\n", "if", "f", ".", "HostOS", "==", ...
7,783
all-7784
[ "RunCommand", "parses", "and", "runs", "the", "command", "with", "the", "given", "name", "." ]
[ "func", "(", "a", "*", "API", ")", "RunCommand", "(", "cmd", "string", ")", "(", "*", "http", ".", "<mask>", ",", "error", ")", "{", "c", ",", "err", ":=", "a", ".", "ParseCommand", "(", "cmd", ",", "\"", "\"", ",", "commandValues", ")", "\n", ...
7,784
all-7785
[ "Run", "starts", "the", "Pool", "by", "launching", "the", "workers", ".", "It", "s", "OK", "to", "start", "an", "empty", "Pool", ".", "The", "jobs", "will", "be", "fed", "to", "the", "workers", "as", "soon", "as", "they", "become", "available", "." ]
[ "func", "(", "pool", "*", "Pool", ")", "Run", "(", ")", "{", "if", "pool", ".", "workers_started", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "for", "i", ":=", "uint", "(", "0", ")", ";", "i", "<", "uint", "(", "pool", ".", "num_wor...
7,785
all-7786
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetDeviceOrientationOverrideParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDeviceorient...
7,786
all-7787
[ "flattenStorageDrsOptionSpec", "saves", "a", "StorageDrsOptionSpec", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenStorageDrsOptionSpec", "(", "d", "*", "schema", ".", "ResourceData", ",", "opts", "[", "]", "types", ".", "BaseOptionValue", ")", "error", "{", "m", ":=", "make", "(", "map", "[", "string", "]", "interface", "{", "}", ")", "\n", "for", ...
7,787
all-7788
[ "GetRequiredASMResources", "returns", "the", "list", "of", "ASMAuthData", "that", "has", "to", "be", "retrieved", "from", "AWS", "Secrets", "Manager" ]
[ "func", "(", "auth", "*", "ASMAuthResource", ")", "GetRequiredASMResources", "(", ")", "[", "]", "*", "apicontainer", ".", "ASMAuthData", "{", "auth", ".", "<mask>", ".", "RLock", "(", ")", "\n", "defer", "auth", ".", "lock", ".", "RUnlock", "(", ")", ...
7,788
all-7789
[ "GoToLuaProxy", "is", "like", "GoToLua", "but", "pushes", "a", "proxy", "on", "the", "Lua", "stack", "when", "it", "makes", "sense", ".", "A", "proxy", "is", "a", "Lua", "userdata", "that", "wraps", "a", "Go", "value", ".", "Proxies", "have", "several", ...
[ "func", "GoToLuaProxy", "(", "L", "*", "lua", ".", "State", ",", "a", "interface", "{", "}", ")", "{", "visited", ":=", "newVisitor", "(", "L", ")", "\n", "goToLua", "(", "L", ",", "a", ",", "<mask>", ",", "visited", ")", "\n", "visited", ".", "c...
7,789
all-7790
[ "Stop", "is", "used", "to", "stop", "the", "de", "-", "duplication", "manager" ]
[ "func", "(", "d", "*", "DedupManager", ")", "Stop", "(", ")", "error", "{", "d", ".", "stopLock", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "stopLock", ".", "Unlock", "(", ")", "\n", "if", "d", ".", "stop", "{", "return", "nil", "\n", "}"...
7,790
all-7791
[ "Look", "in", "given", "path", "patterns", "to", "chek", "whether", "given", "parameter", "name", "corresponds", "to", "a", "variable", "name", "." ]
[ "func", "isPathParam", "(", "p", "string", ",", "pathPatterns", "[", "]", "*", "gen", ".", "PathPattern", ")", "bool", "{", "for", "_", ",", "pattern", ":=", "<mask>", "pathPatterns", "{", "for", "_", ",", "v", ":=", "range", "pattern", ".", "Variables...
7,791
all-7792
[ "New", "makes", "an", "Error", "from", "the", "given", "value", ".", "If", "that", "value", "is", "already", "an", "error", "then", "it", "will", "be", "used", "directly", "if", "not", "it", "will", "be", "passed", "to", "fmt", ".", "Errorf", "(", "%...
[ "func", "New", "(", "e", "interface", "{", "}", ")", "*", "Error", "{", "var", "err", "error", "\n\n", "switch", "e", ":=", "e", ".", "(", "<mask>", ")", "{", "case", "error", ":", "err", "=", "e", "\n", "default", ":", "err", "=", "fmt", ".", ...
7,792
all-7793
[ "hasDependency", "returns", "a", "boolean", "value", "indicating", "whether", "the", "image", "depends", "on", "another", "image", "." ]
[ "func", "(", "i", "*", "Image", ")", "hasDependency", "(", ")", "bool", "{", "if", "i", ".", "stale", "{", "return", "<mask>", "\n", "}", "\n", "return", "len", "(", "i", ".", "drawTrianglesHistory", ")", ">", "0", "\n", "}" ]
7,793
all-7794
[ "onPeerChange", "is", "called", "when", "there", "is", "a", "change", "that", "may", "cause", "the", "peer", "s", "score", "to", "change", ".", "The", "new", "score", "is", "calculated", "and", "the", "peer", "heap", "is", "updated", "with", "the", "new"...
[ "func", "(", "l", "*", "PeerList", ")", "onPeerChange", "(", "p", "*", "Peer", ")", "{", "l", ".", "RLock", "(", ")", "\n", "ps", ",", "psScore", ",", "ok", ":=", "l", ".", "getPeerScore", "(", "p", ".", "hostPort", ")", "\n", "sc", ":=", "l", ...
7,794
all-7795
[ "EnsureIndexKey", "ensures", "an", "index", "with", "the", "given", "key", "exists", "creating", "it", "if", "necessary", ".", "This", "example", ":", "err", ":", "=", "collection", ".", "EnsureIndexKey", "(", "a", "b", ")", "Is", "equivalent", "to", ":", ...
[ "func", "(", "c", "*", "Collection", ")", "EnsureIndexKey", "(", "key", "...", "string", ")", "error", "{", "return", "c", ".", "EnsureIndex", "(", "Index", "{", "Key", ":", "<mask>", "}", ")", "\n", "}" ]
7,795
all-7796
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetLifecycleEventsEnabledParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage8", "(", "&", "w", ",", ...
7,796
all-7797
[ "GetTransfers", "get", "transfers", "associated", "with", "an", "account" ]
[ "func", "(", "c", "Client", ")", "GetTransfers", "(", "<mask>", "int", ")", "(", "*", "transfers", ",", "error", ")", "{", "params", ":=", "map", "[", "string", "]", "int", "{", "\"", "\"", ":", "page", ",", "}", "\n", "holder", ":=", "transfersHol...
7,797
all-7798
[ "ExecuteString", "substitutes", "template", "tags", "(", "placeholders", ")", "with", "the", "corresponding", "values", "from", "the", "map", "m", "and", "returns", "the", "result", ".", "Substitution", "map", "m", "may", "contain", "values", "with", "the", "f...
[ "func", "ExecuteString", "(", "template", ",", "startTag", ",", "endTag", "string", ",", "m", "map", "[", "string", "]", "interface", "{", "}", ")", "string", "{", "return", "ExecuteFuncString", "(", "template", ",", "startTag", ",", "endTag", ",", "func",...
7,798
all-7799
[ "Map", "returns", "a", "map", "out", "of", "the", "ordered", "element", "name", "/", "value", "pairs", "in", "d", "." ]
[ "func", "(", "d", "D", ")", "Map", "(", ")", "(", "m", "M", ")", "{", "m", "=", "make", "(", "M", ",", "len", "(", "d", ")", ")", "\n", "for", "_", ",", "item", ":=", "range", "d", "{", "m", "[", "item", ".", "<mask>", "]", "=", "item",...
7,799
all-7800
[ "SetMetaDataAnnotation", "sets", "an", "annotation", "value" ]
[ "func", "SetMetaDataAnnotation", "(", "obj", "metav1", ".", "Object", ",", "key", ",", "value", "string", ")", "{", "a", ":=", "obj", ".", "GetAnnotations", "(", ")", "\n", "if", "a", "==", "nil", "{", "a", "=", "make", "(", "map", "[", "string", "...