id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
3,200
all-3201
[ "VerifyJSON", "returns", "a", "handler", "that", "verifies", "that", "the", "body", "of", "the", "request", "is", "a", "valid", "JSON", "representation", "matching", "the", "passed", "in", "JSON", "string", ".", "It", "does", "this", "using", "Gomega", "s", ...
[ "func", "VerifyJSON", "(", "expectedJSON", "string", ")", "http", ".", "HandlerFunc", "{", "return", "CombineHandlers", "(", "VerifyMimeType", "(", "\"", "\"", ")", ",", "func", "(", "w", "http", ".", "ResponseWriter", ",", "req", "*", "http", ".", "Reques...
3,201
all-3202
[ "writeClean", "writes", "v", "after", "replacing", "special", "characters", "[", "{}", "/", "\\\\", ":", "\\", "s", ".", "]", "with", "-" ]
[ "func", "writeClean", "(", "buf", "*", "bytes", ".", "<mask>", ",", "v", "string", ")", "{", "for", "i", ":=", "0", ";", "i", "<", "len", "(", "v", ")", ";", "i", "++", "{", "c", ":=", "v", "[", "i", "]", "\n", "switch", "c", "{", "case", ...
3,202
all-3203
[ "GetChangeTrustOp", "retrieves", "the", "ChangeTrustOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "OperationBody", ")", "GetChangeTrustOp", "(", ")", "(", "result", "ChangeTrustOp", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armN...
3,203
all-3204
[ "Returns", "true", "if", "key", "is", "strictly", ">", "n", ".", "key", ".", "If", "n", "is", "nil", "this", "is", "an", "end", "marker", "and", "we", "return", "false", ".", "func", "(", "s", "*", "Skiplist", ")", "keyIsAfterNode", "(", "key", "[]...
[ "func", "randomHeight", "(", ")", "int", "{", "h", ":=", "1", "\n", "for", "h", "<", "maxHeight", "&&", "<mask>", ".", "Uint32", "(", ")", "<=", "heightIncrease", "{", "h", "++", "\n", "}", "\n", "return", "h", "\n", "}" ]
3,204
all-3205
[ "/", "*", "A", "special", "case", "where", "functions", "need", "to", "be", "of", "higher", "precedence", "than", "values", "and", "need", "a", "special", "wrapped", "execution", "stage", "operator", "." ]
[ "func", "planFunction", "(", "stream", "*", "tokenStream", ")", "(", "*", "evaluationStage", ",", "error", ")", "{", "var", "token", "ExpressionToken", "\n", "var", "rightStage", "*", "evaluationStage", "\n", "var", "err", "error", "\n\n", "token", "=", "str...
3,205
all-3206
[ "ContainsFields", "checks", "that", "the", "mapping", "contains", "fields", "with", "the", "same", "type", "and", "name", "of", "given", "ones", "." ]
[ "func", "(", "m", "*", "Mapping", ")", "ContainsFields", "(", "fields", "[", "]", "*", "Field", ")", "bool", "{", "matches", ":=", "map", "[", "*", "Field", "]", "bool", "{", "}", "\n\n", "for", "_", ",", "field", ":=", "range", "m", ".", "Fields...
3,206
all-3207
[ "HasTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "h", "*", "HostmapDefinition", ")", "HasTitleSize", "(", ")", "bool", "{", "if", "h", "!=", "nil", "&&", "h", ".", "TitleSize", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
3,207
all-3208
[ "CreateContainerFile", "tells", "LXD", "to", "create", "a", "file", "in", "the", "container" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "CreateContainerFile", "(", "containerName", "string", ",", "path", "string", ",", "args", "ContainerFileArgs", ")", "error", "{", "if", "args", ".", "Type", "==", "\"", "\"", "{", "if", "!", "r", ".", "HasExten...
3,208
all-3209
[ "DumpProfile", "dumps", "the", "profiles", "given", "to", "writer", "in", "go", "coverage", "format", "." ]
[ "func", "DumpProfile", "(", "profiles", "[", "]", "*", "cover", ".", "Profile", ",", "writer", "io", ".", "Writer", ")", "error", "{", "if", "len", "(", "profiles", ")", "==", "0", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", ...
3,209
all-3210
[ "HasTextAlign", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinition", ")", "HasTextAlign", "(", ")", "bool", "{", "if", "g", "!=", "nil", "&&", "g", ".", "TextAlign", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
3,210
all-3211
[ "BindApp", "makes", "the", "bind", "between", "the", "service", "instance", "and", "an", "app", "." ]
[ "func", "(", "si", "*", "ServiceInstance", ")", "BindApp", "(", "app", "bind", ".", "App", ",", "params", "BindAppParameters", ",", "shouldRestart", "bool", ",", "writer", "io", ".", "<mask>", ",", "evt", "*", "event", ".", "Event", ",", "requestID", "st...
3,211
all-3212
[ "Logf", "writes", "std", "log", "event", "with", "format" ]
[ "func", "(", "g", "*", "Glg", ")", "Logf", "(", "format", "string", ",", "val", "...", "<mask>", "{", "}", ")", "error", "{", "return", "g", ".", "out", "(", "LOG", ",", "format", ",", "val", "...", ")", "\n", "}" ]
3,212
all-3213
[ "setupAppendEntries", "is", "used", "to", "setup", "an", "append", "entries", "request", "." ]
[ "func", "(", "r", "*", "Raft", ")", "setupAppendEntries", "(", "s", "*", "followerReplication", ",", "req", "*", "AppendEntriesRequest", ",", "nextIndex", ",", "lastIndex", "uint64", ")", "error", "{", "req", ".", "RPCHeader", "=", "r", ".", "getRPCHeader", ...
3,213
all-3214
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "KeyPath", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoIndexeddb9", "(", "&", "r", "...
3,214
all-3215
[ "IsLeader", "checks", "if", "we", "are", "currently", "the", "leader", "instance" ]
[ "func", "(", "d", "*", "DedupManager", ")", "IsLeader", "(", "tmpl", "*", "template", ".", "Template", ")", "bool", "{", "d", ".", "leaderLock", ".", "RLock", "(", ")", "\n", "defer", "d", ".", "leaderLock", ".", "RUnlock", "(", ")", "\n\n", "lockCh"...
3,215
all-3216
[ "Do", "-", "fake", "do", "method" ]
[ "func", "(", "s", "*", "ClientDoer", ")", "Do", "(", "req", "*", "http", ".", "Request", ")", "(", "resp", "*", "<mask>", ".", "Response", ",", "err", "error", ")", "{", "s", ".", "SpyRequest", "=", "*", "req", "\n", "return", "s", ".", "Response...
3,216
all-3217
[ "Main", "runs", "the", "common", "functionality", "needed", "in", "a", "go", "main", "function", ".", "appEnv", "will", "be", "populated", "and", "passed", "to", "do", "defaultEnv", "can", "be", "nil", "if", "there", "is", "an", "error", "os", ".", "Exit...
[ "func", "Main", "(", "do", "func", "(", "interface", "{", "}", ")", "error", ",", "appEnv", "<mask>", "{", "}", ",", "decoders", "...", "Decoder", ")", "{", "if", "err", ":=", "Populate", "(", "appEnv", ",", "decoders", "...", ")", ";", "err", "!="...
3,217
all-3218
[ "bind", "one", "or", "more", "named", "textures", "to", "a", "sequence", "of", "consecutive", "texture", "units" ]
[ "func", "BindTextures", "(", "first", "uint32", ",", "count", "int32", ",", "textures", "*", "uint32", ")", "{", "C", ".", "glowBindTextures", "(", "gpBindTextures", ",", "(", "C", ".", "GLuint", ")", "(", "first", ")", ",", "(", "C", ".", "GLsizei", ...
3,218
all-3219
[ "return", "the", "polygon", "stipple", "pattern" ]
[ "func", "GetPolygonStipple", "(", "mask", "*", "uint8", ")", "{", "C", ".", "glowGetPolygonStipple", "(", "gpGetPolygonStipple", ",", "(", "*", "C", ".", "GLubyte", ")", "(", "unsafe", ".", "Pointer", "(", "<mask>", ")", ")", ")", "\n", "}" ]
3,219
all-3220
[ "New", "creates", "a", "new", "Logger", "." ]
[ "func", "New", "(", "config", "Config", ")", "(", "f", "*", "Fluent", ",", "err", "error", ")", "{", "if", "config", ".", "Server", "==", "\"", "\"", "{", "config", ".", "Server", "=", "defaultServer", "\n", "}", "\n", "if", "config", ".", "Timeout...
3,220
all-3221
[ "DisableSvcEventHandler", "creates", "a", "new", "DISABLE_SVC_EVENT_HANDLER", "Nagios", "command", ".", "Disables", "the", "event", "handler", "for", "the", "specified", "service", "." ]
[ "func", "DisableSvcEventHandler", "(", "host_name", "string", ",", "service_description", "<mask>", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\"", "\"", ",", "stringifyArg", "(", "\"", "\"", ",", "\"", ...
3,221
all-3222
[ "push", "a", "named", "debug", "group", "into", "the", "command", "stream" ]
[ "func", "PushDebugGroup", "(", "source", "uint32", ",", "id", "uint32", ",", "length", "int32", ",", "message", "*", "uint8", ")", "{", "syscall", ".", "Syscall6", "(", "gpPushDebugGroup", ",", "4", ",", "uintptr", "(", "source", ")", ",", "uintptr", "("...
3,222
all-3223
[ "Use", "the", "listeners", "associated", "with", "the", "file", "descriptors", "passed", "via", "socket", "-", "based", "activation", "." ]
[ "func", "activatedListeners", "(", "systemdListeners", "[", "]", "net", ".", "Listener", ",", "cert", "*", "shared", ".", "CertInfo", ")", "map", "[", "kind", "]", "net", ".", "Listener", "{", "listeners", ":=", "map", "[", "<mask>", "]", "net", ".", "...
3,223
all-3224
[ "GetLayoutType", "returns", "the", "LayoutType", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "b", "*", "Board", ")", "GetLayoutType", "(", ")", "<mask>", "{", "if", "b", "==", "nil", "||", "b", ".", "LayoutType", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "b", ".", "LayoutType", "\n", "}" ]
3,224
all-3225
[ "PSCAddBalanceERC20", "calls", "addBalanceERC20", "of", "Privatix", "service", "contract", "." ]
[ "func", "(", "b", "*", "backendInstance", ")", "PSCAddBalanceERC20", "(", "opts", "*", "bind", ".", "TransactOpts", ",", "amount", "uint64", ")", "(", "*", "types", ".", "Transaction", ",", "error", ")", "{", "ctx2", ",", "cancel", ":=", "b", ".", "add...
3,225
all-3226
[ "CacheFasthttpFunc", "accepts", "two", "parameters", "first", "is", "the", "fasthttp", ".", "RequestHandler", "which", "you", "want", "to", "cache", "its", "result", "the", "second", "is", "optional", "the", "cache", "Entry", "s", "expiration", "duration", "if",...
[ "func", "CacheFasthttpFunc", "(", "bodyHandler", "fasthttp", ".", "RequestHandler", ",", "expiration", "<mask>", ".", "Duration", ")", "fasthttp", ".", "RequestHandler", "{", "return", "CacheFasthttp", "(", "bodyHandler", ",", "expiration", ")", ".", "ServeHTTP", ...
3,226
all-3227
[ "ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "CryptoKeyType" ]
[ "func", "(", "e", "CryptoKeyType", ")", "ValidEnum", "(", "v", "int32", ")", "bool", "{", "_", ",", "ok", ":=", "cryptoKeyTypeMap", "[", "v", "]", "\n", "return", "<mask>", "\n", "}" ]
3,227
all-3228
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ProfileSnapshotParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoLayertree8", "(", "&", "w", ",", "v", ...
3,228
all-3229
[ "findConflict", "finds", "the", "index", "of", "the", "conflict", ".", "It", "returns", "the", "first", "pair", "of", "conflicting", "entries", "between", "the", "existing", "entries", "and", "the", "given", "entries", "if", "there", "are", "any", ".", "If",...
[ "func", "(", "l", "*", "raftLog", ")", "findConflict", "(", "ents", "[", "]", "pb", ".", "Entry", ")", "uint64", "{", "for", "_", ",", "ne", ":=", "range", "ents", "{", "if", "!", "l", ".", "matchTerm", "(", "ne", ".", "<mask>", ",", "ne", ".",...
3,229
all-3230
[ "AddSystem", "adds", "the", "given", "System", "to", "the", "World", "sorted", "by", "priority", "." ]
[ "func", "(", "w", "*", "World", ")", "AddSystem", "(", "system", "System", ")", "{", "if", "initializer", ",", "ok", ":=", "system", ".", "(", "Initializer", ")", ";", "ok", "{", "initializer", ".", "New", "(", "w", ")", "\n", "}", "\n\n", "w", "...
3,230
all-3231
[ "HTTPCompressHandlerFunc", "wraps", "a", "http", ".", "HandlerFunc", "so", "that", "the", "response", "gets", "gzip", "or", "deflate", "compressed", "if", "the", "Accept", "-", "Encoding", "header", "of", "the", "request", "allows", "it", "." ]
[ "func", "HTTPCompressHandlerFunc", "(", "handlerFunc", "http", ".", "HandlerFunc", ")", "http", ".", "HandlerFunc", "{", "return", "func", "(", "response", "<mask>", ".", "ResponseWriter", ",", "request", "*", "http", ".", "Request", ")", "{", "NewHTTPCompressHa...
3,231
all-3232
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GPUDevice", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoSysteminfo6", "(", "&", "r", ...
3,232
all-3233
[ "Set", "parses", "a", "command", "line", "set", "of", "URLs", "formatted", "like", ":", "http", ":", "//", "127", ".", "0", ".", "0", ".", "1", ":", "2380", "http", ":", "//", "10", ".", "1", ".", "1", ".", "2", ":", "80", "Implements", "flag",...
[ "func", "(", "us", "*", "UniqueURLs", ")", "<mask>", "(", "s", "string", ")", "error", "{", "if", "_", ",", "ok", ":=", "us", ".", "Values", "[", "s", "]", ";", "ok", "{", "return", "nil", "\n", "}", "\n", "if", "_", ",", "ok", ":=", "us", ...
3,233
all-3234
[ "splitDevAddr", "splits", "an", "device", "addres", "into", "its", "inparticular", "parts", "and", "asserts", "that", "we", "have", "all", "the", "correct", "data", "." ]
[ "func", "splitDevAddr", "(", "id", "string", ")", "(", "string", ",", "int", ",", "int", ",", "error", ")", "{", "parts", ":=", "strings", ".", "Split", "(", "id", ",", "\"", "\"", ")", "\n", "if", "len", "(", "parts", ")", "<", "3", "{", "retu...
3,234
all-3235
[ "TaskByArn", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockTaskEngineState", ")", "TaskByArn", "(", "arg0", "string", ")", "(", "*", "task", ".", "Task", ",", "bool", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ",", "arg0", ")", "\n", "re...
3,235
all-3236
[ "saveTenantID", "performs", "an", "atomic", "write", "to", "the", "path", "with", "given", "tenantID", "contents", "." ]
[ "func", "saveTenantID", "(", "path", "string", ",", "tenantID", "string", ")", "error", "{", "var", "perm", "os", ".", "FileMode", "=", "0600", "\n\n", "dir", ":=", "filepath", ".", "Dir", "(", "path", ")", "\n", "if", "err", ":=", "os", ".", "MkdirA...
3,236
all-3237
[ "CompressBlockHC", "compresses", "the", "source", "buffer", "src", "into", "the", "destination", "dst", "with", "max", "search", "depth", "(", "use", "0", "or", "negative", "value", "for", "no", "max", ")", ".", "CompressBlockHC", "compression", "ratio", "is",...
[ "func", "CompressBlockHC", "(", "src", ",", "dst", "[", "]", "byte", ",", "depth", "int", ")", "(", "di", "int", ",", "err", "error", ")", "{", "defer", "func", "(", ")", "{", "if", "recover", "(", ")", "!=", "nil", "{", "err", "=", "ErrInvalidSo...
3,237
all-3238
[ "CDDVDs", "returns", "an", "unordered", "slice", "of", "currently", "attached", "CD", "/", "DVD", "devices", "on", "any", "bus", "." ]
[ "func", "(", "v", "*", "VM", ")", "CDDVDs", "(", ")", "(", "[", "]", "*", "CDDVDDrive", ",", "error", ")", "{", "// Loads VMX file in memory", "err", ":=", "v", ".", "vmxfile", ".", "Read", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
3,238
all-3239
[ "PushLink", "sends", "a", "link", "to", "the", "specific", "device", "with", "the", "given", "title", "and", "url" ]
[ "func", "(", "d", "*", "Device", ")", "PushLink", "(", "<mask>", ",", "u", ",", "body", "string", ")", "error", "{", "return", "d", ".", "Client", ".", "PushLink", "(", "d", ".", "Iden", ",", "title", ",", "u", ",", "body", ")", "\n", "}" ]
3,239
all-3240
[ "On", "returns", "if", "tracing", "methods", "output", "is", "active", "." ]
[ "func", "On", "(", ")", "bool", "{", "tracer", ".", "mu", ".", "RLock", "(", ")", "\n", "on", ":=", "tracer", ".", "<mask>", "\n", "tracer", ".", "mu", ".", "RUnlock", "(", ")", "\n", "return", "on", "\n", "}" ]
3,240
all-3241
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "the", "current", "program", "object" ]
[ "func", "Uniform1iv", "(", "location", "int32", ",", "<mask>", "int32", ",", "value", "*", "int32", ")", "{", "syscall", ".", "Syscall", "(", "gpUniform1iv", ",", "3", ",", "uintptr", "(", "location", ")", ",", "uintptr", "(", "count", ")", ",", "uintp...
3,241
all-3242
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "RemoveAttributeParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom16", "(", "&", ...
3,242
all-3243
[ "GetSortOk", "returns", "a", "tuple", "with", "the", "Sort", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "p", "*", "Params", ")", "GetSortOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "p", "==", "nil", "||", "p", ".", "Sort", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "*", "p", "."...
3,243
all-3244
[ "DecrRef", "decrements", "the", "refcount", "and", "possibly", "deletes", "the", "table" ]
[ "func", "(", "t", "*", "Table", ")", "DecrRef", "(", ")", "error", "{", "newRef", ":=", "atomic", ".", "AddInt32", "(", "&", "t", ".", "ref", ",", "-", "1", ")", "\n", "if", "newRef", "==", "0", "{", "// We can safely delete this file, because for all th...
3,244
all-3245
[ "TimeDurationVal", "returns", "the", "value", "of", "the", "string", "at", "the", "pointer", "or", "0", "if", "the", "pointer", "is", "nil", "." ]
[ "func", "TimeDurationVal", "(", "t", "*", "time", ".", "Duration", ")", "<mask>", ".", "Duration", "{", "if", "t", "==", "nil", "{", "return", "time", ".", "Duration", "(", "0", ")", "\n", "}", "\n", "return", "*", "t", "\n", "}" ]
3,245
all-3246
[ "GetHandleOk", "returns", "a", "tuple", "with", "the", "Handle", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "GetHandleOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "c", "==", "nil", "||", "c", ".", "Handle", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "c", ...
3,246
all-3247
[ "GetValue", "()", "is", "a", "wrapper", "around", "gtk_spin_button_get_value", "()", "." ]
[ "func", "(", "v", "*", "SpinButton", ")", "GetValue", "(", ")", "float64", "{", "c", ":=", "C", ".", "gtk_spin_button_get_value", "(", "v", ".", "native", "(", ")", ")", "\n", "<mask>", "float64", "(", "c", ")", "\n", "}" ]
3,247
all-3248
[ "Get", "blocks", "for", "an", "available", "connection", "." ]
[ "func", "(", "p", "*", "blockingPool", ")", "Get", "(", ")", "(", "net", ".", "Conn", ",", "error", ")", "{", "//in case that pool is closed or pool.conns is set to nil", "conns", ":=", "p", ".", "conns", "\n", "if", "conns", "==", "nil", "{", "return", "n...
3,248
all-3249
[ "GValue", "converts", "a", "Go", "type", "to", "a", "comparable", "GValue", ".", "GValue", "()", "returns", "a", "non", "-", "nil", "error", "if", "the", "conversion", "was", "unsuccessful", "." ]
[ "func", "GValue", "(", "v", "<mask>", "{", "}", ")", "(", "gvalue", "*", "Value", ",", "err", "error", ")", "{", "if", "v", "==", "nil", "{", "val", ",", "err", ":=", "ValueInit", "(", "TYPE_POINTER", ")", "\n", "if", "err", "!=", "nil", "{", "...
3,249
all-3250
[ "export", "FileSequence_SetDirname" ]
[ "func", "FileSequence_SetDirname", "(", "id", "FileSeqId", ",", "dir", "*", "C", ".", "char", ")", "{", "if", "fs", ",", "ok", ":=", "sFileSeqs", ".", "Get", "(", "id", ")", ";", "<mask>", "{", "str", ":=", "C", ".", "GoString", "(", "dir", ")", ...
3,250
all-3251
[ "CIDRValue", "returns", "the", "value", "of", "the", "CIDR", "pointer", "passed", "in", "or", "the", "default", "value", "if", "the", "pointer", "is", "nil", "." ]
[ "func", "CIDRValue", "(", "v", "*", "strfmt", ".", "CIDR", ")", "strfmt", ".", "CIDR", "{", "if", "v", "==", "nil", "{", "<mask>", "strfmt", ".", "CIDR", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "*", "v", "\n", "}" ]
3,251
all-3252
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetFileInfoReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom44", "(", "&", "r...
3,252
all-3253
[ "ScheduleForcedHostSvcChecks", "creates", "a", "new", "SCHEDULE_FORCED_HOST_SVC_CHECKS", "Nagios", "command", ".", "Schedules", "a", "forced", "active", "check", "of", "all", "services", "associated", "with", "a", "particular", "host", "at", "check_time", ".", "The", ...
[ "func", "ScheduleForcedHostSvcChecks", "(", "host_name", "string", ",", "check_time", "<mask>", ".", "Time", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\"", "\"", ",", "stringifyArg", "(", "\"", "\"", "...
3,253
all-3254
[ "Private", "stuff", ".", "load", "loads", "a", "source", "file", "and", "parses", "the", "AST", "tree", ".", "Failures", "are", "ignored", "." ]
[ "func", "(", "c", "*", "cache", ")", "load", "(", "fileName", "string", ")", "{", "if", "_", ",", "ok", ":=", "c", ".", "parsed", "[", "fileName", "]", ";", "ok", "{", "return", "\n", "}", "\n", "c", ".", "parsed", "[", "fileName", "]", "=", ...
3,254
all-3255
[ "RunCommand", "runs", "cmd", "on", "file" ]
[ "func", "RunCommand", "(", "ctx", "context", ".", "Context", ",", "cmd", "string", ",", "args", "...", "string", ")", "(", "string", ",", "error", ")", "{", "var", "c", "*", "exec", ".", "Cmd", "\n\n", "if", "ctx", "!=", "nil", "{", "c", "=", "<m...
3,255
all-3256
[ "AmazonBucket", "returns", "everything", "up", "to", "the", "last", ".", "in", "subdomain", ".", "It", "is", "designed", "to", "be", "used", "with", "the", "Amazon", "service", ".", "johnsmith", ".", "s3", "becomes", "johnsmith", "johnsmith", ".", "s3", "-...
[ "func", "AmazonBucket", "(", "subdomain", "string", ")", "string", "{", "if", "i", ":=", "strings", ".", "LastIndex", "(", "subdomain", ",", "\"", "\"", ")", ";", "i", "!=", "-", "1", "{", "<mask>", "subdomain", "[", ":", "i", "]", "\n", "}", "\n",...
3,256
all-3257
[ "Get", "returns", "the", "public", "information", "about", "one", "key", "." ]
[ "func", "(", "kb", "dbKeybase", ")", "Get", "(", "name", "string", ")", "(", "Info", ",", "error", ")", "{", "bs", ":=", "kb", ".", "<mask>", ".", "Get", "(", "infoKey", "(", "name", ")", ")", "\n", "return", "readInfo", "(", "bs", ")", "\n", "...
3,257
all-3258
[ "HTTPClient", "is", "a", "functional", "parameter", "that", "sets", "the", "internal", "HTTPClient", "of", "the", "roundtrip", "client", "wrapper" ]
[ "func", "HTTPClient", "(", "h", "*", "http", ".", "Client", ")", "ClientParam", "{", "return", "func", "(", "c", "*", "<mask>", ")", "error", "{", "c", ".", "client", "=", "h", "\n", "return", "nil", "\n", "}", "\n", "}" ]
3,258
all-3259
[ "ReadableN", "reports", "whether", "the", "n", "bytes", "starting", "at", "address", "a", "are", "readable", "." ]
[ "func", "(", "p", "*", "Process", ")", "ReadableN", "(", "a", "Address", ",", "n", "int64", ")", "bool", "{", "for", "{", "m", ":=", "p", ".", "findMapping", "(", "a", ")", "\n", "if", "m", "==", "nil", "||", "m", ".", "perm", "&", "Read", "=...
3,259
all-3260
[ "GetTitleOk", "returns", "a", "tuple", "with", "the", "Title", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "e", "*", "EventStreamDefinition", ")", "GetTitleOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "e", "==", "nil", "||", "e", ".", "Title", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", ...
3,260
all-3261
[ "Execute", "adds", "all", "child", "commands", "to", "the", "root", "command", "sets", "flags", "appropriately", ".", "This", "is", "called", "by", "main", ".", "main", "()", ".", "It", "only", "needs", "to", "happen", "once", "to", "the", "rootCmd", "."...
[ "func", "Execute", "(", ")", "{", "if", "err", ":=", "RootCmd", ".", "Execute", "(", ")", ";", "err", "!=", "nil", "{", "if", "strings", ".", "Contains", "(", "err", ".", "Error", "(", ")", ",", "dbNotFound", ")", "||", "strings", ".", "Contains", ...
3,261
all-3262
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventLoadEventFired", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage54", "(", "&", "r...
3,262
all-3263
[ "IsIPv4", "checks", "if", "this", "is", "a", "valid", "IPv4" ]
[ "func", "IsIPv4", "(", "s", "string", ")", "bool", "{", "<mask>", ":=", "net", ".", "ParseIP", "(", "s", ")", "\n", "return", "ip", "!=", "nil", "\n", "}" ]
3,263
all-3264
[ "Properties", "returns", "the", "ResourcePool", "managed", "object", "from", "its", "higher", "-", "level", "object", "." ]
[ "func", "Properties", "(", "obj", "*", "object", ".", "ResourcePool", ")", "(", "*", "mo", ".", "ResourcePool", ",", "error", ")", "{", "ctx", ",", "cancel", ":=", "<mask>", ".", "WithTimeout", "(", "context", ".", "Background", "(", ")", ",", "provide...
3,264
all-3265
[ "StartListening", "starts", "reading", "from", "the", "input", "channel", "and", "writes", "to", "the", "buffer", "When", "context", "is", "cancelled", "stop", "listening" ]
[ "func", "(", "buffer", "*", "InfiniteBuffer", ")", "StartListening", "(", "ctx", "context", ".", "Context", ",", "eventChan", "<-", "chan", "events", ".", "Message", ")", "{", "for", "{", "<mask>", "{", "// If context is cancelled, drain remaining events and return"...
3,265
all-3266
[ "protect", "protects", "branches", "specified", "in", "the", "presubmit", "and", "branch", "-", "protection", "config", "sections", "." ]
[ "func", "(", "p", "*", "protector", ")", "protect", "(", ")", "{", "bp", ":=", "p", ".", "cfg", ".", "BranchProtection", "\n\n", "// Scan the branch-protection configuration", "for", "orgName", ":=", "range", "bp", ".", "Orgs", "{", "org", ":=", "bp", ".",...
3,266
all-3267
[ "WriteGunzip", "writes", "ungzipped", "p", "to", "w", "and", "returns", "the", "number", "of", "uncompressed", "bytes", "written", "to", "w", "." ]
[ "func", "WriteGunzip", "(", "w", "<mask>", ".", "Writer", ",", "p", "[", "]", "byte", ")", "(", "int", ",", "error", ")", "{", "r", ":=", "&", "byteSliceReader", "{", "p", "}", "\n", "zr", ",", "err", ":=", "acquireGzipReader", "(", "r", ")", "\n...
3,267
all-3268
[ "newAction", "creates", "and", "returns", "an", "action", "." ]
[ "func", "newAction", "(", "ln", "*", "line", ",", "rslt", "*", "result", ",", "src", "*", "<mask>", ",", "parent", "element", ",", "opts", "*", "Options", ")", "*", "action", "{", "return", "&", "action", "{", "elementBase", ":", "newElementBase", "(",...
3,268
all-3269
[ "readRequest", "extracts", "the", "request", "from", "the", "AdmissionReview", "reader" ]
[ "func", "readRequest", "(", "r", "<mask>", ".", "Reader", ",", "contentType", "string", ")", "(", "*", "admissionapi", ".", "AdmissionRequest", ",", "error", ")", "{", "if", "contentType", "!=", "contentTypeJSON", "{", "return", "nil", ",", "fmt", ".", "Er...
3,269
all-3270
[ "OwnerHas", "reports", "whether", "the", "owner", "has", "all", "given", "permissions", "." ]
[ "func", "(", "i", "*", "info", ")", "OwnerHas", "(", "p", "...", "perm", ")", "bool", "{", "mode", ":=", "i", ".", "fi", ".", "Mode", "(", ")", "\n\n", "for", "_", ",", "v", ":=", "range", "p", "{", "<mask>", "v", "{", "case", "R", ":", "if...
3,270
all-3271
[ "Index", "returns", "the", "i", "th", "element", "in", "the", "array", "v", ".", "If", "v", ".", "Kind", "()", "!", "=", "Array", "or", "if", "i", "is", "outside", "the", "array", "bounds", "Index", "returns", "a", "null", "Value", "." ]
[ "func", "(", "v", "Value", ")", "Index", "(", "i", "int", ")", "Value", "{", "x", ",", "ok", ":=", "v", ".", "data", ".", "(", "array", ")", "\n", "if", "!", "<mask>", "||", "i", "<", "0", "||", "i", ">=", "len", "(", "x", ")", "{", "retu...
3,271
all-3272
[ "filterHeaders", "iterates", "through", "the", "headers", "skipping", "hidden", "headers", "unless", "DumpFormat", "is", "Verbose", ".", "It", "calls", "the", "given", "iterator", "for", "each", "header", "name", "/", "value", "pair", ".", "The", "values", "ar...
[ "func", "filterHeaders", "(", "dumpFormat", "Format", ",", "hiddenHeaders", "<mask>", "[", "string", "]", "bool", ",", "headers", "http", ".", "Header", ",", "iterator", "headerIterator", ")", "{", "for", "k", ",", "v", ":=", "range", "headers", "{", "if",...
3,272
all-3273
[ "/", "*", "BuildIn", "is", "identical", "to", "Build", "but", "allows", "you", "to", "specify", "a", "custom", "$GOPATH", "(", "the", "first", "argument", ")", "." ]
[ "func", "BuildIn", "(", "gopath", "string", ",", "packagePath", "<mask>", ",", "args", "...", "string", ")", "(", "compiledPath", "string", ",", "err", "error", ")", "{", "return", "doBuild", "(", "gopath", ",", "packagePath", ",", "nil", ",", "args", "....
3,273
all-3274
[ "send", "filters", "out", "repeated", "events", "by", "discarding", "revisions", "older", "than", "the", "last", "one", "sent", "over", "the", "watch", "channel", "." ]
[ "func", "(", "w", "*", "watcher", ")", "send", "(", "wr", "clientv3", ".", "WatchResponse", ")", "{", "if", "wr", ".", "IsProgressNotify", "(", ")", "&&", "!", "w", ".", "progress", "{", "return", "\n", "}", "\n", "if", "w", ".", "nextrev", ">", ...
3,274
all-3275
[ "GetScreenboards", "returns", "a", "list", "of", "all", "screenboards", "created", "on", "this", "account", "." ]
[ "func", "(", "client", "*", "<mask>", ")", "GetScreenboards", "(", ")", "(", "[", "]", "*", "ScreenboardLite", ",", "error", ")", "{", "var", "out", "reqGetScreenboards", "\n", "if", "err", ":=", "client", ".", "doJsonRequest", "(", "\"", "\"", ",", "\...
3,275
all-3276
[ "ResValue", "returns", "the", "string", "value", "of", "the", "attribute" ]
[ "func", "(", "a", "XMLNode", ")", "ResValue", "(", ")", "string", "{", "switch", "a", ".", "NodeType", "{", "case", "tree", ".", "NtAttr", ":", "return", "a", ".", "Token", ".", "(", "*", "xml", ".", "Attr", ")", ".", "Value", "\n", "case", "tree...
3,276
all-3277
[ "Parameters", ":", "-", "Msg" ]
[ "func", "(", "p", "*", "FirstClient", ")", "Echo", "(", "<mask>", "string", ")", "(", "r", "string", ",", "err", "error", ")", "{", "if", "err", "=", "p", ".", "sendEcho", "(", "msg", ")", ";", "err", "!=", "nil", "{", "return", "\n", "}", "\n"...
3,277
all-3278
[ "title", ":", "add", "app", "router", "path", ":", "/", "app", "/", "{", "app", "}", "/", "routers", "method", ":", "POST", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "OK", "404", ":", "App", "or", "router", "not", "f...
[ "func", "addAppRouter", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "var", "appRouter", "appTypes", ".", "AppRouter", "\n", "err", "=", "ParseInput"...
3,278
all-3279
[ "String", "returns", "a", "string", "representation", "of", "the", "Version", "." ]
[ "func", "String", "(", "v", "*", "<mask>", ".", "Version", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "v", ".", "Major", ",", "v", ".", "Minor", ",", "v", ".", "Micro", ",", "v", ".", "Additional", ")", "\n", "}"...
3,279
all-3280
[ "HasRecoveryWindow", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "ThresholdWindows", ")", "HasRecoveryWindow", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "RecoveryWindow", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
3,280
all-3281
[ "HasModifiedAt", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "b", "*", "Board", ")", "HasModifiedAt", "(", ")", "bool", "{", "if", "b", "!=", "nil", "&&", "b", ".", "ModifiedAt", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
3,281
all-3282
[ "Do", "executes", "LayerTree", ".", "compositingReasons", "against", "the", "provided", "context", ".", "returns", ":", "compositingReasons", "-", "A", "list", "of", "strings", "specifying", "reasons", "for", "the", "given", "layer", "to", "become", "composited", ...
[ "func", "(", "p", "*", "CompositingReasonsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "compositingReasons", "[", "]", "string", ",", "err", "error", ")", "{", "// execute", "var", "<mask>", "CompositingReasonsReturns", "\n", "err", "...
3,282
all-3283
[ "HasRole", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "u", "*", "User", ")", "HasRole", "(", ")", "bool", "{", "if", "u", "!=", "nil", "&&", "u", ".", "<mask>", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
3,283
all-3284
[ "GetUser", "fetches", "a", "user", "if", "authenticated", "and", "exists" ]
[ "func", "GetUser", "(", "c", "*", "gin", ".", "Context", ")", "{", "fmt", ".", "Println", "(", "\"", "\"", ")", "\n", "c", ".", "Header", "(", "\"", "\"", ",", "\"", "\"", ")", "\n\n", "id", ",", "_", ":=", "strconv", ".", "Atoi", "(", "c", ...
3,284
all-3285
[ "AddOrgToConfig", "adds", "an", "organization", "to", "the", "cf", "-", "mgmt", "configuration", "." ]
[ "func", "(", "m", "*", "yamlManager", ")", "AddOrgToConfig", "(", "orgConfig", "*", "OrgConfig", ",", "spaces", "*", "Spaces", ")", "error", "{", "orgList", ",", "err", ":=", "m", ".", "Orgs", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
3,285
all-3286
[ "handleRelease", ":", "Handler", "for", "/", "release", "Method", ":", "POST", "URL", "Params", ":", "Required", ":", "name", "=", "[", "string", "]", ":", "name", "of", "finished", "resource", "Required", ":", "owner", "=", "[", "string", "]", ":", "o...
[ "func", "handleRelease", "(", "r", "*", "ranch", ".", "Ranch", ")", "http", ".", "HandlerFunc", "{", "return", "func", "(", "res", "http", ".", "ResponseWriter", ",", "req", "*", "http", ".", "Request", ")", "{", "logrus", ".", "WithField", "(", "\"", ...
3,286
all-3287
[ "NewMemoryStore", "returns", "a", "new", "memory", "store", "for", "the", "cache", "note", "that", "httpcache", "package", "provides", "one", "global", "default", "cache", "service", "which", "provides", "these", "functions", ":", "httpcache", ".", "Cache", "htt...
[ "func", "NewMemoryStore", "(", ")", "Store", "{", "return", "&", "memoryStore", "{", "cache", ":", "make", "(", "map", "[", "string", "]", "*", "entry", ".", "Entry", ")", ",", "mu", ":", "<mask>", ".", "RWMutex", "{", "}", ",", "}", "\n", "}" ]
3,287
all-3288
[ "IterNChildren", "is", "a", "wrapper", "around", "gtk_tree_model_iter_n_children", "()", "." ]
[ "func", "(", "v", "*", "TreeModel", ")", "IterNChildren", "(", "iter", "*", "TreeIter", ")", "int", "{", "<mask>", "cIter", "*", "C", ".", "GtkTreeIter", "\n", "if", "iter", "!=", "nil", "{", "cIter", "=", "iter", ".", "native", "(", ")", "\n", "}"...
3,288
all-3289
[ "QuerySelector", "executes", "querySelector", "on", "a", "given", "node", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "DOM#method", "-", "querySelector", "parameters", ":...
[ "func", "QuerySelector", "(", "nodeID", "cdp", ".", "NodeID", ",", "selector", "<mask>", ")", "*", "QuerySelectorParams", "{", "return", "&", "QuerySelectorParams", "{", "NodeID", ":", "nodeID", ",", "Selector", ":", "selector", ",", "}", "\n", "}" ]
3,289
all-3290
[ "Args", "sets", "the", "Args" ]
[ "func", "(", "e", "*", "execStreamerBuilder", ")", "Args", "(", "args", "...", "<mask>", ")", "ExecStreamerBuilder", "{", "e", ".", "d", ".", "Args", "=", "args", "\n", "return", "e", "\n", "}" ]
3,290
all-3291
[ "ForEach", "iterates", "over", "all", "key", "values", "of", "a", "folder", "decode", "non", "-", "nil", "values", "using", "gob", "." ]
[ "func", "(", "tx", "Tx", ")", "ForEachGob", "(", "folders", "[", "]", "[", "]", "byte", ",", "f", "func", "(", "Bucket", ",", "bytesp", ".", "Slice", ",", "<mask>", "{", "}", ")", "error", ")", "error", "{", "return", "tx", ".", "ForEach", "(", ...
3,291
all-3292
[ "HasRequests", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "h", "*", "HostmapDefinition", ")", "HasRequests", "(", ")", "bool", "{", "if", "h", "!=", "nil", "&&", "h", ".", "Requests", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
3,292
all-3293
[ "resolveCommit", "contains", "the", "essential", "implementation", "of", "inspectCommit", ":", "it", "converts", "commit", "(", "which", "may", "be", "a", "commit", "ID", "or", "branch", "reference", "plus", "~", "and", "/", "or", "^", ")", "to", "a", "rep...
[ "func", "(", "d", "*", "<mask>", ")", "resolveCommit", "(", "stm", "col", ".", "STM", ",", "userCommit", "*", "pfs", ".", "Commit", ")", "(", "*", "pfs", ".", "CommitInfo", ",", "error", ")", "{", "if", "userCommit", "==", "nil", "{", "return", "ni...
3,293
all-3294
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetTargetsReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6", "(", "&", "w", ",", "v", ")", ...
3,294
all-3295
[ "Recognize", "a", "clone", "suffix", ".", "These", "are", "not", "part", "of", "the", "mangling", "API", "but", "are", "added", "by", "GCC", "when", "cloning", "functions", "." ]
[ "func", "(", "st", "*", "<mask>", ")", "cloneSuffix", "(", "a", "AST", ")", "AST", "{", "i", ":=", "0", "\n", "if", "len", "(", "st", ".", "str", ")", ">", "1", "&&", "st", ".", "str", "[", "0", "]", "==", "'.'", "&&", "(", "isLower", "(", ...
3,295
all-3296
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "AppSpec", "." ]
[ "func", "(", "in", "*", "AppSpec", ")", "DeepCopy", "(", ")", "*", "AppSpec", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "<mask>", ":=", "new", "(", "AppSpec", ")", "\n", "in", ".", "DeepCopyInto", "(", "out", ")", "\n",...
3,296
all-3297
[ "SwalkerWrite", "is", "a", "convenience", "wrapper", "around", "swalker", ".", "Write", "that", "automatically", "converts", "value", "to", "an", "appropriate", "int", "uint", "or", "bool", "type", "based", "on", "the", "destination", "field", "s", "type", "if...
[ "func", "SwalkerWrite", "(", "exp", "string", ",", "obj", "interface", "{", "}", ",", "value", "string", ")", "error", "{", "v", ",", "err", ":=", "swalker", ".", "Read", "(", "exp", ",", "obj", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
3,297
all-3298
[ "NoErrorWithinT", "checks", "that", "f", "finishes", "within", "time", "t", "and", "does", "not", "emit", "an", "error" ]
[ "func", "NoErrorWithinT", "(", "tb", "testing", ".", "TB", ",", "t", "time", ".", "Duration", ",", "f", "func", "(", ")", "error", ",", "msgAndArgs", "...", "interface", "{", "}", ")", "{", "tb", ".", "Helper", "(", ")", "\n", "errCh", ":=", "make"...
3,298
all-3299
[ "GetRandomPasswordWithContext", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "GetRandomPasswordWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "secretsmanager", ".", "GetRandomPasswordInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "secretsmanag...
3,299
all-3300
[ "GetPageIterator", "returns", "a", "QueuePageIterator", "with", "the", "given", "page", "filters", ".", "Call", "iterator", ".", "Next", "()", "to", "get", "the", "first", "page", "of", "resources", "(", "and", "again", "to", "retrieve", "subsequent", "pages",...
[ "func", "(", "c", "*", "QueueService", ")", "GetPageIterator", "(", "data", "url", ".", "Values", ")", "*", "QueuePageIterator", "{", "iter", ":=", "NewPageIterator", "(", "c", ".", "<mask>", ",", "data", ",", "queuePathPart", ")", "\n", "return", "&", "...