id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
7,600
all-7601
[ "InitiateConnections", "creates", "new", "connections", "to", "the", "provided", "peers", "specified", "in", "host", ":", "port", "format", ".", "If", "replace", "is", "true", "any", "existing", "direct", "peers", "are", "forgotten", ".", "TODO", "(", "pb", ...
[ "func", "(", "cm", "*", "connectionMaker", ")", "InitiateConnections", "(", "peers", "[", "]", "string", ",", "replace", "bool", ")", "[", "]", "error", "{", "errors", ":=", "[", "]", "error", "{", "}", "\n", "addrs", ":=", "peerAddrs", "{", "}", "\n...
7,601
all-7602
[ "SetUserValue", "stores", "the", "given", "value", "(", "arbitrary", "object", ")", "under", "the", "given", "key", "in", "ctx", ".", "The", "value", "stored", "in", "ctx", "may", "be", "obtained", "by", "UserValue", "*", ".", "This", "functionality", "may...
[ "func", "(", "ctx", "*", "RequestCtx", ")", "SetUserValue", "(", "<mask>", "string", ",", "value", "interface", "{", "}", ")", "{", "ctx", ".", "userValues", ".", "Set", "(", "key", ",", "value", ")", "\n", "}" ]
7,602
all-7603
[ "GetValue", "returns", "the", "Value", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "p", "*", "Period", ")", "GetValue", "(", ")", "string", "{", "if", "p", "==", "nil", "||", "p", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "p", ".", "Value", "\n", "}" ]
7,603
all-7604
[ "Artifacts", "lists", "all", "artifacts", "available", "for", "the", "given", "job", "source" ]
[ "func", "(", "af", "*", "GCSArtifactFetcher", ")", "artifacts", "(", "key", "string", ")", "(", "[", "]", "string", ",", "error", ")", "{", "src", ",", "err", ":=", "newGCSJobSource", "(", "key", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
7,604
all-7605
[ "Stop", "will", "signal", "the", "workers", "to", "exit", "and", "wait", "for", "them", "to", "actually", "do", "that", ".", "It", "also", "releases", "any", "other", "resources", "(", "e", ".", "g", ".", ":", "it", "stops", "the", "supervisor", "gorou...
[ "func", "(", "pool", "*", "Pool", ")", "Stop", "(", ")", "{", "if", "!", "pool", ".", "workers_started", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "// stop the workers", "for", "i", ":=", "0", ";", "i", "<", "pool", ".", "num_workers", ...
7,605
all-7606
[ "RotateSecret", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "RotateSecret", "(", "arg0", "*", "secretsmanager", ".", "RotateSecretInput", ")", "(", "*", "secretsmanager", ".", "RotateSecretOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call",...
7,606
all-7607
[ "Stab", "returns", "a", "slice", "with", "all", "elements", "in", "the", "tree", "intersecting", "the", "interval", "." ]
[ "func", "(", "ivt", "*", "IntervalTree", ")", "Stab", "(", "<mask>", "Interval", ")", "(", "ivs", "[", "]", "*", "IntervalValue", ")", "{", "if", "ivt", ".", "count", "==", "0", "{", "return", "nil", "\n", "}", "\n", "f", ":=", "func", "(", "n", ...
7,607
all-7608
[ "SetData", "assign", "a", "new", "bar", "list", "to", "a", "chart" ]
[ "func", "(", "b", "*", "SparkChart", ")", "SetData", "(", "data", "[", "]", "float64", ")", "{", "b", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "b", ".", "mtx", ".", "Unlock", "(", ")", "\n\n", "b", ".", "data", "=", "make", "(", "[",...
7,608
all-7609
[ "MarshalLogObject", "implements", "zapcore", "ObjectMarshaler", "." ]
[ "func", "(", "rl", "reportLocation", ")", "MarshalLogObject", "(", "enc", "zapcore", ".", "ObjectEncoder", ")", "<mask>", "{", "enc", ".", "AddString", "(", "\"", "\"", ",", "rl", ".", "FilePath", ")", "\n", "enc", ".", "AddInt", "(", "\"", "\"", ",", ...
7,609
all-7610
[ "Substitute", "replaces", "all", "occurrences", "of", "the", "regular", "expression", "r", "in", "an", "input", "item", "with", "replacement", ".", "The", "replacement", "string", "can", "contain", "$1", "$2", "etc", ".", "which", "represent", "submatches", "o...
[ "func", "Substitute", "(", "r", ",", "replacement", "string", ")", "Filter", "{", "return", "FilterFunc", "(", "func", "(", "arg", "Arg", ")", "error", "{", "re", ",", "err", ":=", "regexp", ".", "Compile", "(", "r", ")", "\n", "if", "err", "!=", "...
7,610
all-7611
[ "GetBool", "()", "is", "a", "wrapper", "around", "gtk_print_settings_get_bool", "()", "." ]
[ "func", "(", "ps", "*", "PrintSettings", ")", "GetBool", "(", "key", "string", ")", "bool", "{", "cstr", ":=", "C", ".", "CString", "(", "<mask>", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "...
7,611
all-7612
[ "URL", "finds", "the", "specified", "URL", "for", "a", "service", "based", "off", "of", "the", "service", "s", "name", "and", "which", "interface", "you", "are", "accessing", ".", "Values", "are", "found", "in", "environment", "variables", "fitting", "the", ...
[ "func", "URL", "(", "service", ",", "name", "string", ")", "(", "string", ",", "error", ")", "{", "proto", ",", "err", ":=", "Proto", "(", "service", ",", "name", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "err", "\n", ...
7,612
all-7613
[ "SetDOMBreakpoint", "sets", "breakpoint", "on", "particular", "operation", "with", "DOM", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "DOMDebugger#method", "-", "setDOMBrea...
[ "func", "SetDOMBreakpoint", "(", "nodeID", "cdp", ".", "NodeID", ",", "typeVal", "DOMBreakpointType", ")", "*", "SetDOMBreakpointParams", "{", "return", "&", "SetDOMBreakpointParams", "{", "NodeID", ":", "nodeID", ",", "<mask>", ":", "typeVal", ",", "}", "\n", ...
7,613
all-7614
[ "This", "sets", "the", "value", "in", "a", "struct", "of", "an", "indeterminate", "type", "to", "the", "matching", "value", "from", "the", "request", "(", "via", "Form", "middleware", ")", "in", "the", "same", "type", "so", "that", "not", "all", "deseria...
[ "func", "setWithProperType", "(", "valueKind", "reflect", ".", "Kind", ",", "val", "string", ",", "structField", "reflect", ".", "Value", ",", "nameInTag", "string", ",", "errors", "Errors", ")", "{", "switch", "valueKind", "{", "<mask>", "reflect", ".", "In...
7,614
all-7615
[ "checkConfiguration", "tests", "a", "cluster", "membership", "configuration", "for", "common", "errors", "." ]
[ "func", "checkConfiguration", "(", "configuration", "Configuration", ")", "error", "{", "idSet", ":=", "make", "(", "map", "[", "ServerID", "]", "bool", ")", "\n", "addressSet", ":=", "make", "(", "map", "[", "ServerAddress", "]", "bool", ")", "\n", "var",...
7,615
all-7616
[ "ChainHandlers", "executes", "each", "function", "from", "the", "arguments", "with", "handler", "from", "the", "next", "function", "to", "construct", "a", "chan", "fo", "callers", "." ]
[ "func", "ChainHandlers", "(", "handlers", "...", "func", "(", "http", ".", "<mask>", ")", "http", ".", "Handler", ")", "(", "h", "http", ".", "Handler", ")", "{", "for", "i", ":=", "len", "(", "handlers", ")", "-", "1", ";", "i", ">=", "0", ";", ...
7,616
all-7617
[ "AskForConfirmation", "prompts", "user", "for", "yes", "/", "no", "response" ]
[ "func", "AskForConfirmation", "(", ")", "bool", "{", "var", "response", "string", "\n", "_", ",", "err", ":=", "fmt", ".", "Scanln", "(", "&", "response", ")", "\n", "if", "err", "!=", "nil", "{", "log", ".", "Fatal", "(", "err", ")", "\n", "}", ...
7,617
all-7618
[ "export", "gogpgme_seekfunc" ]
[ "func", "gogpgme_seekfunc", "(", "<mask>", "unsafe", ".", "Pointer", ",", "offset", "C", ".", "gpgme_off_t", ",", "whence", "C", ".", "int", ")", "C", ".", "gpgme_off_t", "{", "d", ":=", "callbackLookup", "(", "uintptr", "(", "handle", ")", ")", ".", "...
7,618
all-7619
[ "UpdateDashboard", "in", "essence", "takes", "a", "Dashboard", "struct", "and", "persists", "it", "back", "to", "the", "server", ".", "Use", "this", "if", "you", "ve", "updated", "your", "local", "and", "need", "to", "push", "it", "back", "." ]
[ "func", "(", "client", "*", "Client", ")", "UpdateDashboard", "(", "dash", "*", "Dashboard", ")", "error", "{", "return", "client", ".", "doJsonRequest", "(", "\"", "\"", ",", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "*", "dash", ".", "Id", ")", ...
7,619
all-7620
[ "HashHex", "returns", "the", "hex", "-", "encoded", "hash", "of", "this", "builder", "s", "transaction" ]
[ "func", "(", "b", "*", "TransactionBuilder", ")", "HashHex", "(", ")", "(", "string", ",", "error", ")", "{", "hash", ",", "err", ":=", "b", ".", "Hash", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "err", "\n", "}"...
7,620
all-7621
[ "SetHeader", "is", "a", "file", "setting", "to", "set", "the", "MIME", "header", "of", "the", "message", "part", "that", "contains", "the", "file", "content", ".", "Mandatory", "headers", "are", "automatically", "added", "if", "they", "are", "not", "set", ...
[ "func", "SetHeader", "(", "h", "map", "[", "string", "]", "[", "]", "string", ")", "FileSetting", "{", "return", "func", "(", "f", "*", "file", ")", "{", "for", "k", ",", "v", ":=", "<mask>", "h", "{", "f", ".", "Header", "[", "k", "]", "=", ...
7,621
all-7622
[ "ApplyConfChange", "applies", "a", "config", "change", "to", "the", "local", "node", "." ]
[ "func", "(", "rn", "*", "RawNode", ")", "ApplyConfChange", "(", "cc", "pb", ".", "ConfChange", ")", "*", "pb", ".", "ConfState", "{", "if", "cc", ".", "NodeID", "==", "None", "{", "return", "&", "pb", ".", "ConfState", "{", "Nodes", ":", "rn", ".",...
7,622
all-7623
[ "requiresASMDockerAuthData", "returns", "true", "if", "atleast", "one", "container", "in", "the", "task", "needs", "to", "retrieve", "private", "registry", "authentication", "data", "from", "ASM" ]
[ "func", "(", "task", "*", "Task", ")", "requiresASMDockerAuthData", "(", ")", "bool", "{", "for", "_", ",", "container", ":=", "range", "task", ".", "Containers", "{", "if", "container", ".", "ShouldPullWithASMAuth", "(", ")", "{", "return", "<mask>", "\n"...
7,623
all-7624
[ "Do", "executes", "Storage", ".", "trackCacheStorageForOrigin", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "TrackCacheStorageForOriginParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandTrackCacheStorageForOrigin", ",", "p", ",", "nil", ")"...
7,624
all-7625
[ "AllowLargeResults", "is", "a", "configuration", "function", "that", "can", "be", "used", "to", "enable", "the", "AllowLargeResults", "setting", "of", "a", "bigquery", "request", "as", "well", "as", "a", "temp", "table", "name", "to", "use", "to", "build", "...
[ "func", "AllowLargeResults", "(", "shouldAllow", "bool", ",", "tempTableName", "string", ",", "flattenResults", "bool", ")", "func", "(", "*", "Client", ")", "error", "{", "return", "func", "(", "c", "*", "<mask>", ")", "error", "{", "return", "c", ".", ...
7,625
all-7626
[ "UnmarshalJSON", "implements", "the", "json", ".", "Unmarshaler", "interface", "." ]
[ "func", "(", "m", "*", "policyTransportScopesWithTransport", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "// We can't unmarshal directly into map values because it is not possible to take an address of a map value.", "// So, use a temporary map of pointers...
7,626
all-7627
[ "Matches", "checks", "that", "a", "string", "matches", "a", "regular", "-", "expression", "." ]
[ "func", "Matches", "(", "tb", "testing", ".", "TB", ",", "expectedMatch", "string", ",", "actual", "string", ",", "msgAndArgs", "...", "interface", "{", "}", ")", "{", "tb", ".", "Helper", "(", ")", "\n", "r", ",", "err", ":=", "regexp", ".", "Compil...
7,627
all-7628
[ "UseTimer", "set", "timer", "for", "meaturing", "endpoint", "performance", ".", "If", "timer", "is", "nil", "and", "no", "timer", "exists", "then", "a", "new", "timer", "will", "be", "created", "else", "existing", "timer", "will", "be", "returned", ".", "Y...
[ "func", "(", "c4", "*", "Seefor", ")", "UseTimer", "(", "timer", "*", "Timer", ")", "*", "Timer", "{", "if", "timer", "==", "nil", "{", "if", "c4", ".", "timer", "!=", "nil", "{", "return", "c4", ".", "timer", "\n", "}", "\n", "timer", "=", "Ne...
7,628
all-7629
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetShowDebugBordersParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay5", "(", "&", "w", ",", "v"...
7,629
all-7630
[ "UserLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "UserLocator", "(", "href", "string", ")", "*", "UserLocator", "{", "<mask>", "&", "UserLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
7,630
all-7631
[ "StackLines", "prints", "one", "complete", "stack", "trace", "without", "the", "header", "." ]
[ "func", "(", "p", "*", "Palette", ")", "StackLines", "(", "signature", "*", "stack", ".", "Signature", ",", "srcLen", ",", "pkgLen", "int", ",", "fullPath", "bool", ")", "string", "{", "out", ":=", "<mask>", "(", "[", "]", "string", ",", "len", "(", ...
7,631
all-7632
[ "requestVote", "is", "invoked", "when", "we", "get", "an", "request", "vote", "RPC", "call", "." ]
[ "func", "(", "r", "*", "Raft", ")", "requestVote", "(", "rpc", "RPC", ",", "req", "*", "RequestVoteRequest", ")", "{", "defer", "metrics", ".", "MeasureSince", "(", "[", "]", "string", "{", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", "}", ",", ...
7,632
all-7633
[ "FilesystemDetect", "returns", "the", "filesystem", "on", "which", "the", "passed", "-", "in", "path", "sits", "." ]
[ "func", "FilesystemDetect", "(", "path", "string", ")", "(", "string", ",", "error", ")", "{", "fs", ":=", "syscall", ".", "Statfs_t", "{", "}", "\n\n", "err", ":=", "syscall", ".", "Statfs", "(", "path", ",", "&", "fs", ")", "\n", "if", "err", "!=...
7,633
all-7634
[ "GetCookies", "returns", "all", "cookies", "on", "the", "page", "." ]
[ "func", "(", "p", "*", "Page", ")", "GetCookies", "(", ")", "(", "[", "]", "*", "http", ".", "Cookie", ",", "error", ")", "{", "apiCookies", ",", "err", ":=", "p", ".", "session", ".", "GetCookies", "(", ")", "\n", "if", "err", "!=", "nil", "{"...
7,634
all-7635
[ "Append", "writes", "len", "(", "b", ")", "bytes", "at", "the", "end", "of", "the", "File", ".", "It", "returns", "an", "error", "if", "any", "." ]
[ "func", "(", "e", "*", "edit", ")", "Append", "(", "b", "[", "]", "byte", ")", "error", "{", "_", ",", "err", ":=", "e", ".", "file", ".", "Seek", "(", "0", ",", "os", ".", "SEEK_END", ")", "\n", "if", "err", "!=", "nil", "{", "return", "er...
7,635
all-7636
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "the", "current", "program", "object" ]
[ "func", "UniformMatrix4x3fv", "(", "location", "int32", ",", "count", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "C", ".", "glowUniformMatrix4x3fv", "(", "gpUniformMatrix4x3fv", ",", "(", "C", ".", "GLint", ")", "(", "<mask>",...
7,636
all-7637
[ "GetRangeFromIndex", "returns", "a", "subtree", "byte", "range", "in", "a", "serialized", "hashtree", "based", "on", "a", "passed", "in", "prefix", "." ]
[ "func", "GetRangeFromIndex", "(", "r", "io", ".", "Reader", ",", "prefix", "string", ")", "(", "uint64", ",", "uint64", ",", "error", ")", "{", "prefix", "=", "clean", "(", "<mask>", ")", "\n", "pbr", ":=", "pbutil", ".", "NewReader", "(", "r", ")", ...
7,637
all-7638
[ "ToFloat64Or", "parses", "s", "as", "a", "float64", "or", "returns", "defaultValue", "." ]
[ "func", "ToFloat64Or", "(", "s", "string", ",", "defaultValue", "float64", ")", "float64", "{", "f", ",", "err", ":=", "strconv", ".", "ParseFloat", "(", "s", ",", "64", ")", "\n", "if", "<mask>", "!=", "nil", "{", "return", "defaultValue", "\n", "}", ...
7,638
all-7639
[ "ReadIn", "reads", "the", "frame", "from", "the", "given", "io", ".", "Reader", ".", "Deprecated", ":", "Only", "maintained", "for", "backwards", "compatibility", ".", "Callers", "should", "use", "ReadBody", "instead", "." ]
[ "func", "(", "f", "*", "Frame", ")", "ReadIn", "(", "r", "io", ".", "Reader", ")", "error", "{", "header", ":=", "make", "(", "[", "]", "byte", ",", "FrameHeaderSize", ")", "\n", "if", "_", ",", "err", ":=", "<mask>", ".", "ReadFull", "(", "r", ...
7,639
all-7640
[ "InheritedMethods", "returns", "names", "for", "inherited", "methods", "on", "this", "service", "." ]
[ "func", "(", "s", "*", "<mask>", ")", "InheritedMethods", "(", ")", "[", "]", "string", "{", "if", "s", ".", "inheritedMethods", "!=", "nil", "{", "return", "s", ".", "inheritedMethods", "\n", "}", "\n\n", "for", "svc", ":=", "s", ".", "ExtendsService"...
7,640
all-7641
[ "UnmarshalJSON", "implements", "json", ".", "Unmarshaler", ".", "It", "supports", "number", "and", "null", "input", ".", "0", "will", "not", "be", "considered", "a", "null", "Float", ".", "It", "also", "supports", "unmarshalling", "a", "sql", ".", "NullFloat...
[ "func", "(", "f", "*", "Float", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "var", "err", "error", "\n", "var", "v", "interface", "{", "}", "\n", "if", "err", "=", "json", ".", "Unmarshal", "(", "data", ",", "&", "v"...
7,641
all-7642
[ "Parameter", "callback", "has", "type", "C", ".", "GLDEBUGPROCAMD", "." ]
[ "func", "DebugMessageCallbackAMD", "(", "<mask>", "unsafe", ".", "Pointer", ",", "userParam", "unsafe", ".", "Pointer", ")", "{", "C", ".", "glowDebugMessageCallbackAMD", "(", "gpDebugMessageCallbackAMD", ",", "(", "C", ".", "GLDEBUGPROCAMD", ")", "(", "callback",...
7,642
all-7643
[ "SetBuffer", "()", "is", "a", "wrapper", "around", "gtk_entry_set_buffer", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetBuffer", "(", "buffer", "*", "EntryBuffer", ")", "{", "C", ".", "gtk_entry_set_buffer", "(", "v", ".", "native", "(", ")", ",", "buffer", ".", "native", "(", ")", ")", "\n", "}" ]
7,643
all-7644
[ "GetApplication", "is", "a", "wrapper", "around", "gtk_window_get_application", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "GetApplication", "(", ")", "(", "*", "<mask>", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_window_get_application", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", ...
7,644
all-7645
[ "parseParent", "splits", "a", "string", "describing", "a", "RBD", "storage", "entity", "into", "its", "components", "This", "can", "be", "used", "on", "strings", "like", "<osd", "-", "pool", "-", "name", ">", "/", "<lxd", "-", "specific", "-", "prefix", ...
[ "func", "parseParent", "(", "parent", "string", ")", "(", "string", ",", "string", ",", "string", ",", "string", ",", "error", ")", "{", "idx", ":=", "strings", ".", "Index", "(", "parent", ",", "\"", "\"", ")", "\n", "if", "idx", "==", "-", "1", ...
7,645
all-7646
[ "Debugf", "outputs", "formatted", "Debug", "level", "log" ]
[ "func", "(", "g", "*", "Glg", ")", "Debugf", "(", "format", "string", ",", "val", "...", "<mask>", "{", "}", ")", "error", "{", "return", "g", ".", "out", "(", "DEBG", ",", "format", ",", "val", "...", ")", "\n", "}" ]
7,646
all-7647
[ "HasCriticalRecovery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "ThresholdCount", ")", "HasCriticalRecovery", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "CriticalRecovery", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
7,647
all-7648
[ "Parse", "constructs", "a", "new", "KP", "from", "the", "provided", "string", "which", "should", "be", "either", "an", "address", "or", "a", "seed", ".", "If", "the", "provided", "input", "is", "a", "seed", "the", "resulting", "KP", "will", "have", "sign...
[ "func", "Parse", "(", "addressOrSeed", "string", ")", "(", "KP", ",", "error", ")", "{", "_", ",", "err", ":=", "strkey", ".", "Decode", "(", "strkey", ".", "VersionByteAccountID", ",", "addressOrSeed", ")", "\n", "if", "err", "==", "nil", "{", "return...
7,648
all-7649
[ "resourceVSphereStorageDrsVMOverrideFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "config", "in", "a", "Storage", "Pod", "s", "DRS", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ...
[ "func", "resourceVSphereStorageDrsVMOverrideFindEntry", "(", "pod", "*", "<mask>", ".", "StoragePod", ",", "vm", "*", "object", ".", "VirtualMachine", ",", ")", "(", "*", "types", ".", "StorageDrsVmConfigInfo", ",", "error", ")", "{", "props", ",", "err", ":="...
7,649
all-7650
[ "Fatalf", "is", "equivalent", "to", "Errorf", "followed", "by", "a", "call", "to", "os", ".", "Exit", "(", "1", ")", "." ]
[ "func", "(", "t", "*", "T", ")", "Fatalf", "(", "format", "string", ",", "args", "...", "interface", "{", "}", ")", "{", "t", ".", "Errorf", "(", "format", ",", "args", "...", ")", "\n", "<mask>", ".", "Exit", "(", "1", ")", "\n", "}" ]
7,650
all-7651
[ "Do", "executes", "Page", ".", "stopScreencast", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "StopScreencastParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandStopScreencast", ",", "nil", ",", "nil", ")", "\n", "}" ]
7,651
all-7652
[ "ListSecrets", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "ListSecrets", "(", "arg0", "*", "secretsmanager", ".", "ListSecretsInput", ")", "(", "*", "secretsmanager", ".", "ListSecretsOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", ...
7,652
all-7653
[ "GetRepo", "returns", "the", "repo", "for", "the", "provided", "owner", "/", "name", "combination", ".", "See", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "repos", "/", "#get" ]
[ "func", "(", "c", "*", "Client", ")", "GetRepo", "(", "owner", ",", "name", "string", ")", "(", "Repo", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "owner", ",", "name", ")", "\n\n", "var", "repo", "Repo", "\n", "_", ",", "...
7,653
all-7654
[ "Helper", "to", "delete", "an", "image", "file", "from", "the", "local", "images", "directory", "." ]
[ "func", "imageDeleteFromDisk", "(", "fingerprint", "string", ")", "{", "// Remove main image file.", "fname", ":=", "shared", ".", "VarPath", "(", "\"", "\"", ",", "fingerprint", ")", "\n", "if", "shared", ".", "PathExists", "(", "fname", ")", "{", "err", ":...
7,654
all-7655
[ "GetProcessQueryOk", "returns", "a", "tuple", "with", "the", "ProcessQuery", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeseriesRequest", ")", "GetProcessQueryOk", "(", ")", "(", "WidgetProcessQuery", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "ProcessQuery", "==", "nil", "{", "return", "WidgetProcessQuery", "{", "}", ",", "fa...
7,655
all-7656
[ "CertSave", "stores", "a", "CertBaseInfo", "object", "in", "the", "db", "it", "will", "ignore", "the", "ID", "field", "from", "the", "CertInfo", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "CertSave", "(", "cert", "*", "CertInfo", ")", "error", "{", "err", ":=", "c", ".", "Transaction", "(", "func", "(", "tx", "*", "ClusterTx", ")", "error", "{", "stmt", ",", "err", ":=", "tx", ".", "tx", ".",...
7,656
all-7657
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SearchInResponseBodyParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork21", "(", ...
7,657
all-7658
[ "Variant", "returns", "the", "variant", "encoded", "in", "uuid", "." ]
[ "func", "(", "uuid", "UUID", ")", "Variant", "(", ")", "Variant", "{", "<mask>", "{", "case", "(", "uuid", "[", "8", "]", "&", "0xc0", ")", "==", "0x80", ":", "return", "RFC4122", "\n", "case", "(", "uuid", "[", "8", "]", "&", "0xe0", ")", "=="...
7,658
all-7659
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "CompositingReasonsReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoLayertree19", "("...
7,659
all-7660
[ "Do", "executes", "Page", ".", "getFrameTree", "against", "the", "provided", "context", ".", "returns", ":", "frameTree", "-", "Present", "frame", "tree", "structure", "." ]
[ "func", "(", "p", "*", "GetFrameTreeParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "frameTree", "*", "FrameTree", ",", "err", "error", ")", "{", "// execute", "var", "res", "GetFrameTreeReturns", "\n", "err", "=", "cdp", ".", "Execu...
7,660
all-7661
[ "SendSnapshot", "sends", "a", "ZFS", "stream", "of", "a", "snapshot", "to", "the", "input", "io", ".", "Writer", ".", "An", "error", "will", "be", "returned", "if", "the", "input", "dataset", "is", "not", "of", "snapshot", "type", "." ]
[ "func", "(", "d", "*", "Dataset", ")", "SendSnapshot", "(", "output", "io", ".", "Writer", ")", "error", "{", "if", "d", ".", "<mask>", "!=", "DatasetSnapshot", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n\n", "c", ":="...
7,661
all-7662
[ "FieldsFromIncomingContext", "returns", "peer", "information", "and", "MDLogFields", "from", "the", "given", "context" ]
[ "func", "FieldsFromIncomingContext", "(", "ctx", "context", ".", "Context", ")", "ttnlog", ".", "Fields", "{", "fields", ":=", "make", "(", "fieldMap", ")", "\n", "if", "peer", ",", "ok", ":=", "peer", ".", "FromContext", "(", "ctx", ")", ";", "ok", "{...
7,662
all-7663
[ "validateIdentifier", "makes", "sure", "the", "provided", "identifier", "satisfies", "semver", "spec" ]
[ "func", "validateIdentifier", "(", "id", "string", ")", "error", "{", "if", "<mask>", "!=", "\"", "\"", "&&", "!", "reIdentifier", ".", "MatchString", "(", "id", ")", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "id", ")", "\n", "}", ...
7,663
all-7664
[ "SetHeader", "sets", "a", "header", "to", "be", "sent", "with", "the", "request", "for", "internationalization", "https", ":", "//", "developer", ".", "foursquare", ".", "com", "/", "docs", "/", "api", "/", "configuration", "/", "versioning" ]
[ "func", "(", "s", "*", "VenueService", ")", "SetHeader", "(", "key", ",", "<mask>", "string", ")", "*", "VenueService", "{", "s", ".", "sling", ".", "Set", "(", "key", ",", "value", ")", "\n", "return", "s", "\n", "}" ]
7,664
all-7665
[ "ServerTemplateMultiCloudImageLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "ServerTemplateMultiCloudImageLocator", "(", "href", "<mask>", ")", "*", "ServerTemplateMultiCloudImageLocator", "{", "return", "&", "ServerTemplateMultiCloudImageLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", ...
7,665
all-7666
[ "Equal", "gets", "whether", "the", "Data", "and", "specified", "value", "are", "equal", ".", "Supports", "regexp", "values", "." ]
[ "func", "(", "v", "Value", ")", "Equal", "(", "val", "interface", "{", "}", ")", "bool", "{", "var", "str", "string", "\n", "var", "ok", "bool", "\n", "if", "str", ",", "ok", "=", "v", ".", "Data", ".", "(", "string", ")", ";", "!", "<mask>", ...
7,666
all-7667
[ "Subscription", "creates", "a", "subscription", "from", "the", "Cloud", "Pub", "/", "Sub", "Client" ]
[ "func", "(", "c", "*", "pubSubClient", ")", "subscription", "(", "id", "string", ")", "subscriptionInterface", "{", "return", "&", "pubSubSubscription", "{", "sub", ":", "c", ".", "client", ".", "Subscription", "(", "<mask>", ")", ",", "}", "\n", "}" ]
7,667
all-7668
[ "ExpanderNew", "is", "a", "wrapper", "around", "gtk_expander_new", "()", "." ]
[ "func", "ExpanderNew", "(", "label", "string", ")", "(", "*", "Expander", ",", "error", ")", "{", "var", "cstr", "*", "C", ".", "gchar", "\n", "if", "label", "!=", "\"", "\"", "{", "cstr", ":=", "C", ".", "CString", "(", "label", ")", "\n", "defe...
7,668
all-7669
[ "readTags", "reads", "and", "extracts", "build", "tags", "from", "the", "block", "of", "comments", "and", "blank", "lines", "at", "the", "start", "of", "a", "file", "which", "is", "separated", "from", "the", "rest", "of", "the", "file", "by", "a", "blank...
[ "func", "readTags", "(", "path", "string", ")", "(", "[", "]", "tagLine", ",", "error", ")", "{", "f", ",", "err", ":=", "os", ".", "Open", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "...
7,669
all-7670
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "Bucket", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoBrowser20", "(", "&", "w", ",", "v", ")", "\n", ...
7,670
all-7671
[ "WriteString", "writes", "a", "string", "." ]
[ "func", "(", "w", "*", "<mask>", ")", "WriteString", "(", "s", "string", ")", "{", "if", "w", ".", "err", "!=", "nil", "{", "return", "\n", "}", "\n", "w", ".", "wr", ".", "WriteString", "(", "s", ")", "\n", "}" ]
7,671
all-7672
[ "WriteArgs", "writes", "the", "given", "arguments", "to", "the", "call", "and", "returns", "the", "response", "args", "." ]
[ "func", "WriteArgs", "(", "call", "*", "tchannel", ".", "OutboundCall", ",", "arg2", ",", "arg3", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "[", "]", "byte", ",", "*", "tchannel", ".", "OutboundCallResponse", ",", "error", ")", "{", "if", ...
7,672
all-7673
[ "Contains", "searches", "the", "Dictionary", "to", "see", "if", "the", "specified", "word", "is", "present", ".", "Time", "complexity", ":", "O", "(", "m", ")", "where", "m", "is", "the", "length", "of", "word", "." ]
[ "func", "(", "dict", "Dictionary", ")", "Contains", "(", "word", "string", ")", "bool", "{", "if", "dict", ".", "root", "==", "nil", "{", "return", "false", "\n", "}", "\n", "targetNode", ":=", "dict", ".", "<mask>", ".", "Navigate", "(", "word", ")"...
7,673
all-7674
[ "Initialize", "initializes", "the", "resource", "fileds", "in", "cgroup" ]
[ "func", "(", "cgroup", "*", "CgroupResource", ")", "Initialize", "(", "resourceFields", "*", "taskresource", ".", "ResourceFields", ",", "taskKnownStatus", "status", ".", "TaskStatus", ",", "taskDesiredStatus", "status", ".", "TaskStatus", ")", "{", "cgroup", ".",...
7,674
all-7675
[ "Add", "a", "new", "VLAN", "interface", "with", "masterDev", "as", "its", "upper", "device", "This", "is", "identical", "to", "running", ":", "ip", "link", "add", "name", "$name", "link", "$masterdev", "type", "vlan", "id", "$id" ]
[ "func", "NetworkLinkAddVlan", "(", "masterDev", ",", "vlanDev", "string", ",", "vlanId", "uint16", ")", "error", "{", "s", ",", "err", ":=", "getNetlinkSocket", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "defer", "...
7,675
all-7676
[ "Listed", "returns", "the", "lists", "that", "this", "venue", "appears", "on", "https", ":", "//", "developer", ".", "foursquare", ".", "com", "/", "docs", "/", "api", "/", "venues", "/", "listed" ]
[ "func", "(", "s", "*", "VenueService", ")", "Listed", "(", "params", "*", "VenueListedParams", ")", "(", "*", "Listed", ",", "*", "http", ".", "Response", ",", "error", ")", "{", "<mask>", ":=", "new", "(", "venueListedResp", ")", "\n", "response", ":=...
7,676
all-7677
[ "Value", "returns", "the", "current", "ProgressBar", "value" ]
[ "func", "(", "b", "*", "ProgressBar", ")", "<mask>", "(", ")", "int", "{", "b", ".", "mtx", ".", "RLock", "(", ")", "\n", "defer", "b", ".", "mtx", ".", "RUnlock", "(", ")", "\n", "return", "b", ".", "value", "\n", "}" ]
7,677
all-7678
[ "RemoveLogger", "deletes", "logger", "from", "global", "logger", "registry", "." ]
[ "func", "RemoveLogger", "(", "name", "string", ")", "{", "lock", ".", "Lock", "(", ")", "\n", "delete", "(", "loggers", ",", "name", ")", "\n", "if", "name", "==", "\"", "\"", "{", "defaultLogger", "=", "nil", "\n", "}", "\n", "<mask>", ".", "Unloc...
7,678
all-7679
[ "GetMetric", "returns", "the", "Metric", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "t", "*", "TileDefRequest", ")", "GetMetric", "(", ")", "string", "{", "if", "t", "==", "nil", "||", "t", ".", "Metric", "==", "nil", "{", "<mask>", "\"", "\"", "\n", "}", "\n", "return", "*", "t", ".", "Metric", "\n", "}" ]
7,679
all-7680
[ "WithFilter", "creates", "a", "new", "Filtered", "that", "will", "use", "the", "extra", "filters" ]
[ "func", "(", "f", "*", "Filtered", ")", "WithFilters", "(", "filters", "...", "Filter", ")", "*", "Filtered", "{", "return", "&", "Filtered", "{", "Interface", ":", "f", ".", "Interface", ",", "filters", ":", "<mask>", "(", "f", ".", "filters", ",", ...
7,680
all-7681
[ "Ads", "a", "Header", "to", "message" ]
[ "func", "(", "m", "*", "Message", ")", "AddHeader", "(", "key", "string", ",", "value", "string", ")", "Header", "{", "newHeader", ":=", "Header", "{", "Key", ":", "key", ",", "Value", ":", "<mask>", "}", "\n", "m", ".", "Headers", "=", "append", "...
7,681
all-7682
[ "FreeNode", "deallocates", "the", "skiplist", "node", "memory" ]
[ "func", "(", "s", "*", "Skiplist", ")", "FreeNode", "(", "n", "*", "<mask>", ",", "sts", "*", "Stats", ")", "{", "s", ".", "freeNode", "(", "n", ")", "\n", "sts", ".", "AddInt64", "(", "&", "sts", ".", "nodeFrees", ",", "1", ")", "\n", "}" ]
7,682
all-7683
[ "traverse", "tries", "matches", "to", "child", "entries", "." ]
[ "func", "(", "e", "*", "Entry", ")", "traverse", "(", "method", ",", "urlStr", "string", ")", "(", "*", "Route", ",", "[", "]", "string", ")", "{", "for", "_", ",", "<mask>", ":=", "range", "e", ".", "entries", "{", "if", "h", ",", "params", ":...
7,683
all-7684
[ "expr", "parses", "any", "expression", "." ]
[ "func", "(", "p", "*", "parser", ")", "expr", "(", ")", "Expr", "{", "// Parse the starting expression.", "expr", ":=", "p", ".", "unaryExpr", "(", ")", "\n\n", "// Loop through the operations and construct a binary operation tree based", "// on the operators' precedence.",...
7,684
all-7685
[ "ToString", "returns", "the", "list", "of", "hosts", "into", "a", "pretty", "-", "printed", "format" ]
[ "func", "(", "s", "Scan", ")", "ToString", "(", ")", "(", "<mask>", "string", ")", "{", "for", "_", ",", "host", ":=", "range", "s", ".", "Hosts", "{", "out", "+=", "fmt", ".", "Sprintf", "(", "\"", "\\n", "\"", ",", "host", ".", "ToString", "(...
7,685
all-7686
[ "HTTP", "creates", "a", "HTTP", "server", "and", "registers", "it", "with", "the", "sentinel", "." ]
[ "func", "(", "s", "*", "Sentinel", ")", "HTTP", "(", "listener", "net", ".", "Listener", ",", "handler", "http", ".", "Handler", ",", "opts", "...", "ServerOption", ")", "error", "{", "s", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "Unlock", "...
7,686
all-7687
[ "DebugPrintAt", "draws", "the", "string", "str", "on", "the", "image", "at", "(", "x", "y", ")", "position", ".", "The", "available", "runes", "are", "in", "U", "+", "0000", "to", "U", "+", "00FF", "which", "is", "C0", "Controls", "and", "Basic", "La...
[ "func", "DebugPrintAt", "(", "image", "*", "ebiten", ".", "Image", ",", "str", "string", ",", "x", ",", "y", "int", ")", "{", "drawDebugText", "(", "<mask>", ",", "str", ",", "x", "+", "1", ",", "y", "+", "1", ",", "true", ")", "\n", "drawDebugTe...
7,687
all-7688
[ "NewWebDriver", "returns", "an", "instance", "of", "a", "WebDriver", "specified", "by", "a", "templated", "URL", "and", "command", ".", "The", "URL", "should", "be", "the", "location", "of", "the", "WebDriver", "Wire", "Protocol", "web", "service", "brought", ...
[ "func", "NewWebDriver", "(", "url", "string", ",", "command", "[", "]", "string", ",", "options", "...", "Option", ")", "*", "WebDriver", "{", "apiWebDriver", ":=", "api", ".", "NewWebDriver", "(", "<mask>", ",", "command", ")", "\n", "defaultOptions", ":=...
7,688
all-7689
[ "WithContext", "adds", "the", "context", "to", "the", "get", "apps", "app", "params" ]
[ "func", "(", "o", "*", "GetAppsAppParams", ")", "WithContext", "(", "ctx", "context", ".", "<mask>", ")", "*", "GetAppsAppParams", "{", "o", ".", "SetContext", "(", "ctx", ")", "\n", "return", "o", "\n", "}" ]
7,689
all-7690
[ "ContainerAssociationHandler", "returns", "the", "handler", "method", "for", "handling", "container", "association", "requests", "." ]
[ "func", "ContainerAssociationHandler", "(", "state", "dockerstate", ".", "TaskEngineState", ")", "func", "(", "http", ".", "ResponseWriter", ",", "*", "http", ".", "Request", ")", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*",...
7,690
all-7691
[ "ReifyMessage", "takes", "a", "structured", "object", "potentially", "containing", "nested", "Matchers", "and", "returns", "an", "object", "with", "just", "the", "example", "(", "generated", ")", "content", "The", "object", "may", "be", "a", "simple", "JSON", ...
[ "func", "(", "p", "*", "PactClient", ")", "ReifyMessage", "(", "request", "*", "types", ".", "PactReificationRequest", ")", "(", "res", "*", "types", ".", "ReificationResponse", ",", "err", "error", ")", "{", "log", ".", "Println", "(", "\"", "\"", ")", ...
7,691
all-7692
[ "SetPrivateAttr", "associates", "a", "value", "with", "a", "key", ".", "Unlike", "SetAttr", "this", "value", "is", "not", "converted", "to", "a", "build", "syntax", "tree", "and", "will", "not", "be", "written", "to", "a", "build", "file", "." ]
[ "func", "(", "r", "*", "Rule", ")", "SetPrivateAttr", "(", "key", "string", ",", "value", "interface", "{", "}", ")", "{", "r", ".", "private", "[", "<mask>", "]", "=", "value", "\n", "}" ]
7,692
all-7693
[ "Do", "executes", "Profiler", ".", "takePreciseCoverage", "against", "the", "provided", "context", ".", "returns", ":", "result", "-", "Coverage", "data", "for", "the", "current", "isolate", "." ]
[ "func", "(", "p", "*", "TakePreciseCoverageParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "result", "[", "]", "*", "ScriptCoverage", ",", "err", "error", ")", "{", "// execute", "var", "res", "TakePreciseCoverageReturns", "\n", "err", ...
7,693
all-7694
[ "NewErrorReporter", "returns", "a", "very", "basic", "reporter", "that", "writes", "errors", "and", "stack", "traces", "to", "the", "specified", "writer", "." ]
[ "func", "NewErrorReporter", "(", "out", "io", ".", "Writer", ")", "func", "(", "error", ")", "{", "return", "func", "(", "err", "error", ")", "{", "_", ",", "_", "=", "fmt", ".", "Fprintf", "(", "<mask>", ",", "\"", "\\n", "\"", ",", "err", ".", ...
7,694
all-7695
[ "Connect", "connects", "to", "GCM", "CCS", "server", "denoted", "by", "host", "(", "production", "or", "staging", "CCS", "endpoint", "URI", ")", "along", "with", "relevant", "credentials", ".", "Debug", "mode", "dumps", "all", "CSS", "communications", "to", ...
[ "func", "Connect", "(", "<mask>", ",", "senderID", ",", "apiKey", "string", ",", "debug", "bool", ")", "(", "*", "Conn", ",", "error", ")", "{", "if", "!", "strings", ".", "Contains", "(", "senderID", ",", "gcmDomain", ")", "{", "senderID", "+=", "\"...
7,695
all-7696
[ "GetProjectID", "returns", "the", "ProjectID", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "i", "*", "IntegrationGCPCreateRequest", ")", "GetProjectID", "(", ")", "<mask>", "{", "if", "i", "==", "nil", "||", "i", ".", "ProjectID", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "i", ".", "ProjectID", "\...
7,696
all-7697
[ "DeleteUserFromGroup", "removes", "a", "user", "from", "a", "group" ]
[ "func", "(", "c", "*", "Client", ")", "DeleteUserFromGroup", "(", "groupid", "string", ",", "userid", "string", ")", "(", "*", "http", ".", "Header", ",", "error", ")", "{", "url", ":=", "umGroupUsersPath", "(", "groupid", ",", "userid", ")", "+", "`?d...
7,697
all-7698
[ "ReadResponse", "reads", "a", "server", "response", "into", "the", "received", "o", "." ]
[ "func", "(", "o", "*", "GetAppsAppRoutesRouteReader", ")", "ReadResponse", "(", "response", "runtime", ".", "ClientResponse", ",", "consumer", "runtime", ".", "Consumer", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "switch", "response", ".", "Co...
7,698
all-7699
[ "Write", "in", "ProgressWriter", "is", "the", "same", "as", "io", ".", "Write" ]
[ "func", "(", "pt", "*", "ProgressWriter", ")", "Write", "(", "p", "[", "]", "byte", ")", "(", "int", ",", "error", ")", "{", "// Do normal writer tasks", "n", ",", "err", ":=", "pt", ".", "WriteCloser", ".", "Write", "(", "p", ")", "\n\n", "// Do the...
7,699
all-7700
[ "Do", "executes", "Page", ".", "bringToFront", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "BringToFrontParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandBringToFront", ",", "nil", ",", "nil", ")", "\n", "}" ]