id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
8,000
all-8001
[ "ReadConfigJSON", "reads", "a", "new", "-", "style", "peers", ".", "json", "and", "returns", "a", "configuration", "structure", ".", "This", "can", "be", "used", "to", "perform", "manual", "recovery", "when", "running", "protocol", "versions", "that", "use", ...
[ "func", "ReadConfigJSON", "(", "path", "string", ")", "(", "Configuration", ",", "error", ")", "{", "// Read in the file.", "buf", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "Configuration"...
8,001
all-8002
[ "Get", "finds", "the", "value", "from", "the", "LinkedList", ".", "pos", "is", "expressed", "as", "a", "zero", "-", "based", "index", "begining", "from", "the", "front", "of", "the", "list", "." ]
[ "func", "(", "list", "*", "LinkedList", ")", "Get", "(", "pos", "uint", ")", "(", "interface", "{", "}", ",", "bool", ")", "{", "list", ".", "key", ".", "RLock", "(", ")", "\n", "defer", "list", ".", "key", ".", "RUnlock", "(", ")", "\n", "node...
8,002
all-8003
[ "flattenClusterConfigSpecEx", "saves", "a", "ClusterConfigSpecEx", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterConfigSpecEx", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "types", ".", "ClusterConfigInfoEx", ",", "version", "viapi", ".", "VSphereVersion", ")", "error", "{", "if", "err", ":=", "flattenClusterDasConfigInfo", "(", "d...
8,003
all-8004
[ "PurgeMissing", "removes", "from", "collections", "any", "state", "that", "refers", "to", "transaction", "documents", "that", "for", "whatever", "reason", "have", "been", "lost", "from", "the", "system", "(", "removed", "by", "accident", "or", "lost", "in", "a...
[ "func", "(", "r", "*", "Runner", ")", "PurgeMissing", "(", "collections", "...", "string", ")", "error", "{", "type", "M", "map", "[", "string", "]", "interface", "{", "}", "\n", "type", "S", "[", "]", "interface", "{", "}", "\n\n", "type", "TDoc", ...
8,004
all-8005
[ "LastIndex", "implements", "the", "LogStore", "interface", "." ]
[ "func", "(", "i", "*", "InmemStore", ")", "LastIndex", "(", ")", "(", "uint64", ",", "error", ")", "{", "i", ".", "l", ".", "RLock", "(", ")", "\n", "defer", "i", ".", "l", ".", "RUnlock", "(", ")", "\n", "<mask>", "i", ".", "highIndex", ",", ...
8,005
all-8006
[ "Usaget", "writes", "usage", "information", "to", "the", "specified", "io", ".", "Writer", "using", "the", "specified", "template" ]
[ "func", "Usaget", "(", "prefix", "string", ",", "<mask>", "interface", "{", "}", ",", "out", "io", ".", "Writer", ",", "tmpl", "*", "template", ".", "Template", ")", "error", "{", "// gather first", "infos", ",", "err", ":=", "gatherInfo", "(", "prefix",...
8,006
all-8007
[ "ToFile", "downloads", "the", "specified", "src", "URL", "to", "dest", "file", "using", "the", "specified", "FileOptions", "." ]
[ "func", "ToFile", "(", "src", ",", "dest", "string", ",", "options", "FileOptions", ")", "error", "{", "u", ",", "err", ":=", "url", ".", "Parse", "(", "src", ")", "\n", "if", "err", "!=", "nil", "{", "return", "errors", ".", "Wrap", "(", "err", ...
8,007
all-8008
[ "IsNetPort", "checks", "if", "this", "is", "a", "valid", "net", "port" ]
[ "func", "IsNetPort", "(", "str", "string", ")", "bool", "{", "if", "_", ",", "err", ":=", "strconv", ".", "ParseUint", "(", "str", ",", "10", ",", "16", ")", ";", "err", "!=", "nil", "{", "return", "false", "\n", "}", "\n", "return", "<mask>", "\...
8,008
all-8009
[ "AddTickCallback", "is", "a", "wrapper", "around", "gtk_widget_add_tick_callback", "()", "." ]
[ "func", "(", "v", "*", "Widget", ")", "AddTickCallback", "(", "fn", "TickCallback", ",", "userData", "uintptr", ")", "int", "{", "tickCallbackRegistry", ".", "Lock", "(", ")", "\n", "id", ":=", "tickCallbackRegistry", ".", "next", "\n", "tickCallbackRegistry",...
8,009
all-8010
[ "GetUsernameFromEnv", "returns", "the", "user", "name", "from", "the", "environment", "variable", "for", "the", "actual", "process", "." ]
[ "func", "GetUsernameFromEnv", "(", ")", "string", "{", "user_env", ":=", "[", "]", "string", "{", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", "}", "\n\n", "for", "_", ",", "val", ":=", "range", "user_env", "{", "name", ":=", "<...
8,010
all-8011
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "CaptureScreenshotReturns", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage79", "(", "&...
8,011
all-8012
[ "Write", "serializes", "the", "command", "to", "the", "given", "buffered", "output", "satisfies", "the", "Command", "interface", "." ]
[ "func", "(", "c", "Auth", ")", "Write", "(", "w", "*", "bufio", ".", "<mask>", ")", "(", "err", "error", ")", "{", "if", "_", ",", "err", "=", "w", ".", "WriteString", "(", "\"", "\\n", "\"", ")", ";", "err", "!=", "nil", "{", "err", "=", "...
8,012
all-8013
[ "CreatePipeline", "creates", "a", "new", "pipeline", "pipelines", "are", "the", "main", "computation", "object", "in", "PPS", "they", "create", "a", "flow", "of", "data", "from", "a", "set", "of", "input", "Repos", "to", "an", "output", "Repo", "(", "which...
[ "func", "(", "c", "APIClient", ")", "CreatePipeline", "(", "name", "string", ",", "image", "string", ",", "cmd", "[", "]", "string", ",", "stdin", "[", "]", "string", ",", "parallelismSpec", "*", "pps", ".", "ParallelismSpec", ",", "input", "*", "pps", ...
8,013
all-8014
[ "UpdateServer", "updates", "the", "server", "status", "to", "match", "the", "provided", "Server", "struct" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "UpdateServer", "(", "<mask>", "api", ".", "ServerPut", ",", "ETag", "string", ")", "error", "{", "// Send the request", "_", ",", "_", ",", "err", ":=", "r", ".", "query", "(", "\"", "\"", ",", "\"", "\"", ...
8,014
all-8015
[ "RandomAccessToken", "generate", "Access", "Token", "with", "given", "key", "and", "generated", "hash", "of", "length", "64", "." ]
[ "func", "RandomAccessToken", "(", ")", "(", "string", ",", "error", ")", "{", "buf", ",", "err", ":=", "generateRandomBytes", "(", "128", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "err", "\n", "}", "\n\n", "// A hash needs to...
8,015
all-8016
[ "sortedFids", "returns", "the", "file", "id", "s", "not", "pending", "deletion", "sorted", ".", "Assumes", "we", "have", "shared", "access", "to", "filesMap", "." ]
[ "func", "(", "vlog", "*", "valueLog", ")", "sortedFids", "(", ")", "[", "]", "uint32", "{", "toBeDeleted", ":=", "make", "(", "map", "[", "uint32", "]", "struct", "{", "}", ")", "\n", "for", "_", ",", "fid", ":=", "range", "vlog", ".", "filesToBeDe...
8,016
all-8017
[ "RegisterGenericCommentHandler", "registers", "a", "plugin", "s", "github", ".", "GenericCommentEvent", "handler", "." ]
[ "func", "RegisterGenericCommentHandler", "(", "name", "string", ",", "fn", "GenericCommentHandler", ",", "help", "HelpProvider", ")", "{", "pluginHelp", "[", "name", "]", "=", "help", "\n", "genericCommentHandlers", "[", "<mask>", "]", "=", "fn", "\n", "}" ]
8,017
all-8018
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ExceptionDetails", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime28", "(", "&", ...
8,018
all-8019
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ClearObjectStoreParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoIndexeddb19", "(", "&", "w", ",", "v"...
8,019
all-8020
[ "Returns", "a", "boolean", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "a", "bolean" ]
[ "func", "(", "t", "Typed", ")", "BoolIf", "(", "key", "string", ")", "(", "bool", ",", "bool", ")", "{", "value", ",", "exists", ":=", "t", "[", "key", "]", "\n", "if", "exists", "==", "false", "{", "return", "false", ",", "false", "\n", "}", "...
8,020
all-8021
[ "GetRecordings", "returns", "an", "iterator", "of", "recording", "pages", "for", "this", "Call", ".", "Note", "there", "may", "be", "more", "than", "one", "Page", "of", "results", "." ]
[ "func", "(", "c", "*", "CallService", ")", "GetRecordingsIterator", "(", "callSid", "string", ",", "data", "url", ".", "Values", ")", "*", "RecordingPageIterator", "{", "if", "data", "==", "nil", "{", "data", "=", "<mask>", ".", "Values", "{", "}", "\n",...
8,021
all-8022
[ "Allow", "allows", "permission", "mode", "for", "roles" ]
[ "func", "(", "role", "*", "Role", ")", "Allow", "(", "<mask>", "PermissionMode", ",", "roles", "...", "string", ")", "*", "Permission", "{", "return", "role", ".", "NewPermission", "(", ")", ".", "Allow", "(", "mode", ",", "roles", "...", ")", "\n", ...
8,022
all-8023
[ "GetId", "returns", "the", "Id", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "ScreenboardLite", ")", "GetId", "(", ")", "int", "{", "if", "s", "==", "nil", "||", "s", ".", "<mask>", "==", "nil", "{", "return", "0", "\n", "}", "\n", "return", "*", "s", ".", "Id", "\n", "}" ]
8,023
all-8024
[ "Publish", "sends", "the", "Pacts", "to", "a", "broker", "optionally", "tagging", "them" ]
[ "func", "(", "p", "*", "<mask>", ")", "Publish", "(", "request", "types", ".", "PublishRequest", ")", "error", "{", "log", ".", "Println", "(", "\"", "\"", ")", "\n\n", "if", "p", ".", "pactClient", "==", "nil", "{", "c", ":=", "NewClient", "(", ")...
8,024
all-8025
[ "HasName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "a", "*", "APIKey", ")", "HasName", "(", ")", "bool", "{", "if", "a", "!=", "nil", "&&", "a", ".", "<mask>", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
8,025
all-8026
[ "title", ":", "volume", "info", "path", ":", "/", "volumes", "/", "{", "name", "}", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "Show", "volume", "401", ":", "Unauthorized", "404", ":", "Volume", "not...
[ "func", "volumeInfo", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "v", ",", "err", ":=", "volume", ".", "Load", "(", "r", ".", "URL", ".", "Query", "(", ")", ...
8,026
all-8027
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetPlaybackRateReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9", "(", "&", "w", ",", "v...
8,027
all-8028
[ "UpdatedImageNeedsLayerDiffIDs", "returns", "true", "iff", "UpdatedImage", "(", "options", ")", "needs", "InformationOnly", ".", "LayerDiffIDs", ".", "This", "is", "a", "horribly", "specific", "interface", "but", "computing", "InformationOnly", ".", "LayerDiffIDs", "c...
[ "func", "(", "m", "*", "manifestSchema1", ")", "UpdatedImageNeedsLayerDiffIDs", "(", "options", "types", ".", "ManifestUpdateOptions", ")", "bool", "{", "return", "(", "<mask>", ".", "ManifestMIMEType", "==", "manifest", ".", "DockerV2Schema2MediaType", "||", "optio...
8,028
all-8029
[ "Do", "executes", "Memory", ".", "stopSampling", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "StopSamplingParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandStopSampling", ",", "nil", ",", "nil", ")", "\n", "}" ]
8,029
all-8030
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetManifestForFrameParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache2",...
8,030
all-8031
[ "NewInclusiveRange", "creates", "a", "new", "InclusiveRange", "instance" ]
[ "func", "NewInclusiveRange", "(", "start", ",", "end", ",", "step", "int", ")", "*", "InclusiveRange", "{", "if", "step", "==", "0", "{", "if", "start", "<=", "end", "{", "step", "=", "1", "\n\n", "}", "else", "{", "step", "=", "-", "1", "\n", "}...
8,031
all-8032
[ "title", ":", "token", "delete", "path", ":", "/", "tokens", "/", "{", "token_id", "}", "method", ":", "DELETE", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "Token", "created", "401", ":", "Unauthorized", "404", ":", "Token"...
[ "func", "tokenDelete", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "tokenID", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", "(", ...
8,032
all-8033
[ "AddMessageError", "adds", "a", "new", "Error", "isntance", "with", "a", "code", "and", "message", "to", "the", "registry", ".", "It", "there", "already", "is", "an", "error", "or", "handler", "with", "the", "same", "code", "ErrErrorAlreadyRegistered", "will",...
[ "func", "(", "r", "*", "MapErrorRegistry", ")", "AddMessageError", "(", "code", "int", ",", "message", "string", ")", "(", "*", "Error", ",", "error", ")", "{", "if", "_", ",", "ok", ":=", "r", ".", "<mask>", "[", "code", "]", ";", "ok", "{", "re...
8,033
all-8034
[ "addArrayType", "adds", "an", "accessor", "for", "a", "array", "type", "for", "a", "given", "receiver", "and", "field" ]
[ "func", "(", "t", "*", "templateData", ")", "addArrayType", "(", "x", "*", "ast", ".", "ArrayType", ",", "receiverType", ",", "fieldName", "string", ")", "{", "// TODO: should we make this dynamic? Could handle more cases than string only", "var", "eltType", "string", ...
8,034
all-8035
[ "Start", "performs", "any", "initialization", "of", "the", "Server", "necessary", "for", "it", "to", "begin", "serving", "requests", ".", "It", "must", "be", "called", "before", "Do", "or", "Process", ".", "Start", "must", "be", "non", "-", "blocking", ";"...
[ "func", "(", "s", "*", "EtcdServer", ")", "Start", "(", ")", "{", "s", ".", "<mask>", "(", ")", "\n", "s", ".", "goAttach", "(", "func", "(", ")", "{", "s", ".", "adjustTicks", "(", ")", "}", ")", "\n", "s", ".", "goAttach", "(", "func", "(",...
8,035
all-8036
[ "appliedCursor", "extracts", "from", "the", "Ready", "the", "highest", "index", "the", "client", "has", "applied", "(", "once", "the", "Ready", "is", "confirmed", "via", "Advance", ")", ".", "If", "no", "information", "is", "contained", "in", "the", "Ready",...
[ "func", "(", "rd", "Ready", ")", "appliedCursor", "(", ")", "uint64", "{", "if", "n", ":=", "len", "(", "rd", ".", "CommittedEntries", ")", ";", "n", ">", "0", "{", "return", "rd", ".", "CommittedEntries", "[", "n", "-", "1", "]", ".", "Index", "...
8,036
all-8037
[ "View", "all", "active", "purge", "requests", ".", "This", "is", "useful", "mostly", "for", "administors", "to", "view", "the", "set", "of", "open", "purge", "requests", ".", "It", "should", "not", "be", "used", "by", "workers", ".", "They", "should", "u...
[ "func", "(", "purgeCache", "*", "PurgeCache", ")", "AllPurgeRequests", "(", "continuationToken", ",", "limit", "string", ")", "(", "*", "OpenAllPurgeRequestsList", ",", "error", ")", "{", "v", ":=", "<mask>", ".", "Values", "{", "}", "\n", "if", "continuatio...
8,037
all-8038
[ "dispatchLog", "is", "called", "on", "the", "leader", "to", "push", "a", "log", "to", "disk", "mark", "it", "as", "inflight", "and", "begin", "replication", "of", "it", "." ]
[ "func", "(", "r", "*", "Raft", ")", "dispatchLogs", "(", "applyLogs", "[", "]", "*", "logFuture", ")", "{", "now", ":=", "time", ".", "Now", "(", ")", "\n", "defer", "metrics", ".", "MeasureSince", "(", "[", "]", "string", "{", "\"", "\"", ",", "...
8,038
all-8039
[ "Fatalf", "logs", "a", "formatted", "line", "with", "a", "FATAL", "prefix", "and", "exits", "the", "process", "with", "exit", "code", "1", "." ]
[ "func", "(", "l", "*", "logger", ")", "Fatalf", "(", "format", "string", ",", "vals", "...", "<mask>", "{", "}", ")", "{", "l", ".", "mut", ".", "Lock", "(", ")", "\n", "defer", "l", ".", "mut", ".", "Unlock", "(", ")", "\n", "s", ":=", "fmt"...
8,039
all-8040
[ "Exe", "sets", "the", "Exe" ]
[ "func", "(", "e", "*", "execStreamerBuilder", ")", "Exe", "(", "exe", "<mask>", ")", "ExecStreamerBuilder", "{", "e", ".", "d", ".", "Exe", "=", "exe", "\n", "return", "e", "\n", "}" ]
8,040
all-8041
[ "Read", "loads", "a", "double", "array", "." ]
[ "func", "Read", "(", "r", "io", ".", "Reader", ")", "(", "DoubleArray", ",", "error", ")", "{", "var", "sz", "int64", "\n", "if", "e", ":=", "binary", ".", "Read", "(", "r", ",", "binary", ".", "LittleEndian", ",", "&", "sz", ")", ";", "e", "!=...
8,041
all-8042
[ "printLs", "writes", "a", "response", "out", "in", "a", "manner", "similar", "to", "the", "ls", "command", "in", "unix", ".", "Non", "-", "empty", "directories", "list", "their", "contents", "and", "files", "list", "their", "name", "." ]
[ "func", "printLs", "(", "c", "*", "cli", ".", "Context", ",", "resp", "*", "client", ".", "Response", ")", "{", "if", "c", ".", "GlobalString", "(", "\"", "\"", ")", "==", "\"", "\"", "{", "if", "!", "resp", ".", "Node", ".", "Dir", "{", "fmt",...
8,042
all-8043
[ "Parse", "parses", "the", "JSON", "-", "encoded", "data", "and", "stores", "the", "result", "into", "the", "value", "pointed", "at", "by", "c", ".", "Panics", "if", "unsuccessful" ]
[ "func", "Parse", "(", "jsondata", "[", "]", "byte", ",", "v", "interface", "{", "}", ")", "{", "err", ":=", "json", ".", "Unmarshal", "(", "jsondata", ",", "v", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ".", "<mask>", "(", ...
8,043
all-8044
[ "WithTimeout", "adds", "the", "timeout", "to", "the", "list", "Vm", "params" ]
[ "func", "(", "o", "*", "ListVMParams", ")", "WithTimeout", "(", "timeout", "<mask>", ".", "Duration", ")", "*", "ListVMParams", "{", "o", ".", "SetTimeout", "(", "timeout", ")", "\n", "return", "o", "\n", "}" ]
8,044
all-8045
[ "String", "generates", "a", "textual", "representation", "of", "the", "List", "for", "the", "sake", "of", "debugging", "." ]
[ "func", "(", "l", "*", "List", ")", "String", "(", ")", "string", "{", "l", ".", "key", ".", "RLock", "(", ")", "\n", "defer", "l", ".", "key", ".", "RUnlock", "(", ")", "\n\n", "builder", ":=", "bytes", ".", "NewBufferString", "(", "\"", "\"", ...
8,045
all-8046
[ "title", ":", "add", "team", "too", "pool", "path", ":", "/", "pools", "/", "{", "name", "}", "/", "team", "method", ":", "POST", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "responses", ":", "200", ":", "Po...
[ "func", "addTeamToPoolHandler", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "poolName", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get...
8,046
all-8047
[ "PluginList", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockClient", ")", "PluginList", "(", "arg0", "context", ".", "Context", ",", "arg1", "filters", ".", "Args", ")", "(", "types", ".", "PluginsListResponse", ",", "error", ")", "{", "<mask>", ":=", "m", ".", "ctrl", ".", "Call", ...
8,047
all-8048
[ "FlushSession", "closes", "the", "current", "barrier", "session", "and", "starts", "the", "new", "session", ".", "The", "caller", "should", "provide", "the", "destructor", "pointer", "for", "the", "new", "session", "." ]
[ "func", "(", "ab", "*", "AccessBarrier", ")", "FlushSession", "(", "<mask>", "unsafe", ".", "Pointer", ")", "{", "if", "ab", ".", "active", "{", "ab", ".", "Lock", "(", ")", "\n", "defer", "ab", ".", "Unlock", "(", ")", "\n\n", "bsPtr", ":=", "atom...
8,048
all-8049
[ "change", "an", "active", "shader", "storage", "block", "binding" ]
[ "func", "ShaderStorageBlockBinding", "(", "program", "uint32", ",", "storageBlockIndex", "uint32", ",", "storageBlockBinding", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpShaderStorageBlockBinding", ",", "3", ",", "uintptr", "(", "<mask>", ")", ",", "ui...
8,049
all-8050
[ "Do", "executes", "Emulation", ".", "setDocumentCookieDisabled", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetDocumentCookieDisabledParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDocumentCookieDisabled", ",", "p", ",", "nil", ")", ...
8,050
all-8051
[ "POST", "/", "api", "/", "current_user", "/", "actions", "/", "cloud_accounts", "Creates", "a", "cloud", "account", "in", "the", "first", "available", "child", "account", "or", "the", "account", "used", "to", "login", "if", "there", "are", "no", "available",...
[ "func", "(", "loc", "*", "CurrentUserLocator", ")", "CloudAccounts", "(", "awsAccessKeyId", "string", ",", "awsAccountNumber", "string", ",", "awsSecretAccessKey", "string", ",", "cloudVendorName", "string", ")", "error", "{", "if", "awsAccessKeyId", "==", "\"", "...
8,051
all-8052
[ "BootstrapCluster", "initializes", "a", "server", "s", "storage", "with", "the", "given", "cluster", "configuration", ".", "This", "should", "only", "be", "called", "at", "the", "beginning", "of", "time", "for", "the", "cluster", "and", "you", "absolutely", "m...
[ "func", "BootstrapCluster", "(", "conf", "*", "Config", ",", "logs", "LogStore", ",", "stable", "StableStore", ",", "snaps", "SnapshotStore", ",", "trans", "Transport", ",", "configuration", "Configuration", ")", "error", "{", "// Validate the Raft server config.", ...
8,052
all-8053
[ "HasUrl", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "i", "*", "ImageDefinition", ")", "HasUrl", "(", ")", "bool", "{", "if", "i", "!=", "nil", "&&", "i", ".", "Url", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
8,053
all-8054
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "PseudoElementMatches", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26", "(", "&", "w", ",", "v", ")",...
8,054
all-8055
[ "SetQueryString", "sets", "URI", "query", "string", "." ]
[ "func", "(", "u", "*", "URI", ")", "SetQueryString", "(", "queryString", "string", ")", "{", "u", ".", "queryString", "=", "<mask>", "(", "u", ".", "queryString", "[", ":", "0", "]", ",", "queryString", "...", ")", "\n", "u", ".", "parsedQueryArgs", ...
8,055
all-8056
[ "Print", "outputs", "Print", "log" ]
[ "func", "Print", "(", "val", "...", "interface", "{", "}", ")", "error", "{", "return", "glg", ".", "<mask>", "(", "PRINT", ",", "blankFormat", "(", "len", "(", "val", ")", ")", ",", "val", "...", ")", "\n", "}" ]
8,056
all-8057
[ "Only", "initialize", "the", "minimal", "information", "we", "need", "about", "a", "given", "storage", "type", "." ]
[ "func", "(", "s", "*", "storageZfs", ")", "StorageCoreInit", "(", ")", "error", "{", "s", ".", "sType", "=", "storageTypeZfs", "\n", "typeName", ",", "err", ":=", "storageTypeToString", "(", "s", ".", "sType", ")", "\n", "if", "err", "!=", "nil", "{", ...
8,057
all-8058
[ "specify", "mapping", "of", "depth", "values", "from", "normalized", "device", "coordinates", "to", "window", "coordinates", "for", "a", "specified", "viewport" ]
[ "func", "DepthRangeIndexed", "(", "<mask>", "uint32", ",", "n", "float64", ",", "f", "float64", ")", "{", "syscall", ".", "Syscall", "(", "gpDepthRangeIndexed", ",", "3", ",", "uintptr", "(", "index", ")", ",", "uintptr", "(", "math", ".", "Float64bits", ...
8,058
all-8059
[ "BucketHeader", "prints", "the", "header", "of", "a", "goroutine", "signature", "." ]
[ "func", "(", "p", "*", "Palette", ")", "BucketHeader", "(", "bucket", "*", "stack", ".", "Bucket", ",", "fullPath", ",", "multipleBuckets", "bool", ")", "string", "{", "<mask>", ":=", "\"", "\"", "\n", "if", "s", ":=", "bucket", ".", "SleepString", "("...
8,059
all-8060
[ "Accept", "a", "new", "node", "and", "add", "it", "to", "the", "cluster", ".", "This", "instance", "must", "already", "be", "clustered", ".", "Return", "an", "updated", "list", "raft", "database", "nodes", "(", "possibly", "including", "the", "newly", "acc...
[ "func", "Accept", "(", "state", "*", "state", ".", "State", ",", "gateway", "*", "Gateway", ",", "name", ",", "address", "string", ",", "schema", ",", "api", "int", ")", "(", "[", "]", "db", ".", "RaftNode", ",", "error", ")", "{", "// Check paramete...
8,060
all-8061
[ "ServeExternalPluginHelp", "returns", "a", "HandlerFunc", "that", "serves", "plugin", "help", "information", "that", "is", "provided", "by", "the", "specified", "ExternalPluginHelpProvider", "." ]
[ "func", "ServeExternalPluginHelp", "(", "mux", "*", "http", ".", "ServeMux", ",", "log", "*", "logrus", ".", "Entry", ",", "provider", "ExternalPluginHelpProvider", ")", "{", "mux", ".", "HandleFunc", "(", "\"", "\"", ",", "func", "(", "w", "http", ".", ...
8,061
all-8062
[ "IfMode", "adjusts", "f", "so", "it", "only", "matches", "nodes", "for", "which", "fn", "(", "mode", ")", "returns", "true", "." ]
[ "func", "(", "f", "*", "FindFilter", ")", "IfMode", "(", "fn", "func", "(", "<mask>", ".", "FileMode", ")", "bool", ")", "*", "FindFilter", "{", "f", ".", "ifmode", "=", "fn", "\n", "return", "f", "\n", "}" ]
8,062
all-8063
[ "StatusCode", "attempts", "to", "return", "a", "HTTP", "status", "code", "for", "this", "Alert", ".", "Returns", "0", "if", "the", "status", "code", "cannot", "be", "found", "." ]
[ "func", "(", "a", "*", "Alert", ")", "StatusCode", "(", ")", "int", "{", "vals", ",", "err", ":=", "<mask>", ".", "ParseQuery", "(", "a", ".", "AlertText", ")", "\n", "if", "err", "!=", "nil", "{", "return", "0", "\n", "}", "\n", "if", "code", ...
8,063
all-8064
[ "Map", "a", "function", "on", "each", "element", "of", "a", "slice", "of", "strings", "." ]
[ "func", "StringMap", "(", "f", "func", "(", "string", ")", "string", ",", "data", "[", "]", "string", ")", "[", "]", "string", "{", "size", ":=", "len", "(", "data", ")", "\n", "result", ":=", "make", "(", "[", "]", "string", ",", "size", ",", ...
8,064
all-8065
[ "Printf", "formats", "its", "arguments", "with", "fmt", ".", "Sprintf", "and", "adds", "the", "result", "to", "the", "event", "log", "." ]
[ "func", "(", "e", "*", "EventLog", ")", "Printf", "(", "format", "string", ",", "a", "...", "interface", "{", "}", ")", "{", "newfmt", ",", "newvals", ":=", "addEvent", "(", "e", ",", "format", ",", "a", "...", ")", "\n", "Log", ".", "Printf", "(...
8,065
all-8066
[ "Errorf", "writes", "the", "formatted", "string", "to", "the", "Target", "logger", "." ]
[ "func", "(", "t", "*", "Target", ")", "Errorf", "(", "format", "string", ",", "v", "...", "interface", "{", "}", ")", "{", "t", ".", "mut", ".", "RLock", "(", ")", "\n", "defer", "t", ".", "mut", ".", "RUnlock", "(", ")", "\n", "if", "t", "."...
8,066
all-8067
[ "NewOfferEntryExt", "creates", "a", "new", "OfferEntryExt", "." ]
[ "func", "NewOfferEntryExt", "(", "v", "int32", ",", "value", "interface", "{", "}", ")", "(", "result", "OfferEntryExt", ",", "err", "error", ")", "{", "result", ".", "V", "=", "v", "\n", "<mask>", "int32", "(", "v", ")", "{", "case", "0", ":", "//...
8,067
all-8068
[ "Do", "executes", "Emulation", ".", "setDeviceMetricsOverride", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetDeviceMetricsOverrideParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDeviceMetricsOverride", ",", "p", ",", "nil", ")", ...
8,068
all-8069
[ "Next", "returns", "the", "next", "page", "of", "resources", ".", "If", "there", "are", "no", "more", "resources", "NoMoreResults", "is", "returned", "." ]
[ "func", "(", "c", "*", "IncomingPhoneNumberPageIterator", ")", "Next", "(", "ctx", "context", ".", "Context", ")", "(", "*", "IncomingPhoneNumberPage", ",", "error", ")", "{", "cp", ":=", "<mask>", "(", "IncomingPhoneNumberPage", ")", "\n", "err", ":=", "c",...
8,069
all-8070
[ "LoadWithEnvJSON", "loads", "JSON", "files", "with", "Env" ]
[ "func", "LoadWithEnvJSON", "(", "conf", "<mask>", "{", "}", ",", "configPaths", "...", "string", ")", "error", "{", "return", "loadWithFunc", "(", "conf", ",", "configPaths", ",", "envReplacer", ",", "json", ".", "Unmarshal", ")", "\n", "}" ]
8,070
all-8071
[ "Parse", "takes", "a", "string", "representation", "of", "a", "selector", "and", "returns", "the", "corresponding", "Op", "definition" ]
[ "func", "Parse", "(", "selector", "string", ")", "(", "Op", ",", "error", ")", "{", "segments", ":=", "strings", ".", "Split", "(", "selector", ",", "\"", "\"", ")", "\n\n", "ops", ":=", "make", "(", "[", "]", "Op", ",", "0", ",", "len", "(", "...
8,071
all-8072
[ "ValidateDiff", "performs", "any", "complex", "validation", "of", "an", "individual", "network_interface", "sub", "-", "resource", "that", "can", "t", "be", "done", "in", "schema", "alone", "." ]
[ "func", "(", "r", "*", "NetworkInterfaceSubresource", ")", "ValidateDiff", "(", ")", "error", "{", "log", ".", "Printf", "(", "\"", "\"", ",", "r", ")", "\n\n", "// Ensure that network resource allocation options are only set on vSphere", "// 6.0 and higher.", "<mask>",...
8,072
all-8073
[ "NamespacedContext", "wraps", "a", "Context", "to", "support", "namespaces", "." ]
[ "func", "NamespacedContext", "(", "ctx", "netcontext", ".", "Context", ",", "namespace", "string", ")", "netcontext", ".", "<mask>", "{", "return", "withNamespace", "(", "ctx", ",", "namespace", ")", "\n", "}" ]
8,073
all-8074
[ "ContextWithSpan", "returns", "a", "new", "context", ".", "Context", "that", "holds", "a", "reference", "to", "span", "s", "SpanContext", "." ]
[ "func", "ContextWithSpan", "(", "ctx", "context", ".", "Context", ",", "span", "Span", ")", "context", ".", "Context", "{", "return", "<mask>", ".", "WithValue", "(", "ctx", ",", "activeSpanKey", ",", "span", ")", "\n", "}" ]
8,074
all-8075
[ "GetIncludeUngroupedHostsOk", "returns", "a", "tuple", "with", "the", "IncludeUngroupedHosts", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinition", ")", "GetIncludeUngroupedHostsOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "IncludeUngroupedHosts", "==", "nil", "{", "return", "<mask>", ",", "false", "\n", "}", "...
8,075
all-8076
[ "IsDup", "returns", "whether", "err", "informs", "of", "a", "duplicate", "key", "error", "because", "a", "primary", "key", "index", "or", "a", "secondary", "unique", "index", "already", "has", "an", "entry", "with", "the", "given", "value", "." ]
[ "func", "IsDup", "(", "err", "error", ")", "bool", "{", "// Besides being handy, helps with MongoDB bugs SERVER-7164 and SERVER-11493.", "// What follows makes me sad. Hopefully conventions will be more clear over time.", "switch", "e", ":=", "err", ".", "(", "type", ")", "{", ...
8,076
all-8077
[ "Handle", "the", "REST", "routing", "and", "run", "the", "user", "code", "." ]
[ "func", "(", "rt", "*", "router", ")", "AppFunc", "(", ")", "HandlerFunc", "{", "return", "func", "(", "writer", "ResponseWriter", ",", "request", "*", "Request", ")", "{", "// find the route", "route", ",", "params", ",", "pathMatched", ":=", "rt", ".", ...
8,077
all-8078
[ "export", "FileSequence_Ext" ]
[ "func", "FileSequence_Ext", "(", "id", "FileSeqId", ")", "*", "C", ".", "char", "{", "fs", ",", "ok", ":=", "sFileSeqs", ".", "Get", "(", "id", ")", "\n", "// caller must free string", "if", "!", "ok", "{", "return", "C", ".", "CString", "(", "\"", "...
8,078
all-8079
[ "TwoContig", "returns", "all", "readable", "float64", "but", "in", "two", "separate", "slices", "to", "avoid", "copying", ".", "The", "two", "slices", "are", "from", "the", "same", "buffer", "but", "are", "not", "contiguous", ".", "Either", "or", "both", "...
[ "func", "(", "b", "*", "Float64RingBuf", ")", "TwoContig", "(", "makeCopy", "bool", ")", "(", "<mask>", "[", "]", "float64", ",", "second", "[", "]", "float64", ")", "{", "extent", ":=", "b", ".", "Beg", "+", "b", ".", "Readable", "\n", "if", "exte...
8,079
all-8080
[ "expandHostVirtualSwitchSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "HostVirtualSwitchSpec", "." ]
[ "func", "expandHostVirtualSwitchSpec", "(", "d", "*", "schema", ".", "ResourceData", ")", "*", "types", ".", "HostVirtualSwitchSpec", "{", "obj", ":=", "&", "types", ".", "HostVirtualSwitchSpec", "{", "Mtu", ":", "int32", "(", "d", ".", "Get", "(", "\"", "...
8,080
all-8081
[ "GetStartOk", "returns", "a", "tuple", "with", "the", "Start", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "p", "*", "Params", ")", "GetStartOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "p", "==", "nil", "||", "p", ".", "Start", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "p", "....
8,081
all-8082
[ "Ping", "returns", "an", "error", "if", "remote", "enpoint", "cannot", "be", "reached", "." ]
[ "func", "(", "c", "*", "Client", ")", "Ping", "(", ")", "error", "{", "_", ",", "err", ":=", "c", ".", "client", ".", "Head", "(", "c", ".", "<mask>", "(", ")", ")", "\n", "return", "err", "\n", "}" ]
8,082
all-8083
[ "setNetworkRoutes", "applies", "any", "static", "routes", "configured", "from", "the", "host", "to", "the", "container", "nic", "." ]
[ "func", "(", "c", "*", "containerLXC", ")", "setNetworkRoutes", "(", "m", "types", ".", "Device", ")", "error", "{", "if", "!", "shared", ".", "PathExists", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "m", "[", "\"", "\"", "]", ")", ")", "{...
8,083
all-8084
[ "ReportError", "reports", "an", "error", "that", "occured", "during", "the", "transaction", "." ]
[ "func", "(", "t", "*", "<mask>", ")", "ReportError", "(", "exceptionType", ",", "errorMessage", ",", "stackTrace", ",", "stackFrameDelim", "string", ")", "error", "{", "t", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "t", ".", "mtx", ".", "Unlock...
8,084
all-8085
[ "SetCredentialsID", "sets", "the", "credentials", "ID", "for", "the", "task" ]
[ "func", "(", "<mask>", "*", "Task", ")", "SetCredentialsID", "(", "id", "string", ")", "{", "task", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "task", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "task", ".", "credentialsID", "=", "id", "\...
8,085
all-8086
[ "Contains", "checks", "if", "a", "given", "device", "exists", "in", "the", "set", "and", "if", "it", "s", "identical", "to", "that", "provided" ]
[ "func", "(", "list", "Devices", ")", "Contains", "(", "k", "string", ",", "d", "Device", ")", "bool", "{", "// If it didn't exist, it's different", "if", "list", "[", "k", "]", "==", "nil", "{", "return", "false", "\n", "}", "\n\n", "old", ":=", "<mask>"...
8,086
all-8087
[ "Create", "a", "new", "FrameSet", "from", "a", "given", "frame", "range", "string", "Returns", "an", "error", "if", "the", "frame", "range", "could", "not", "be", "parsed", "." ]
[ "func", "NewFrameSet", "(", "frange", "string", ")", "(", "*", "FrameSet", ",", "error", ")", "{", "// Process the frame range and get a slice of match slices", "matches", ",", "err", ":=", "frameRangeMatches", "(", "frange", ")", "\n", "if", "err", "!=", "nil", ...
8,087
all-8088
[ "KVToBytes", "encodes", "key", "-", "value", "pair", "to", "item", "bytes", "which", "can", "be", "passed", "to", "the", "Put", "()", "and", "Delete", "()", "methods", "." ]
[ "func", "KVToBytes", "(", "k", ",", "v", "[", "]", "byte", ")", "[", "]", "<mask>", "{", "klen", ":=", "len", "(", "k", ")", "\n", "buf", ":=", "make", "(", "[", "]", "byte", ",", "2", ",", "len", "(", "k", ")", "+", "len", "(", "v", ")",...
8,088
all-8089
[ "define", "an", "array", "of", "color", "indexes" ]
[ "func", "IndexPointer", "(", "xtype", "uint32", ",", "stride", "int32", ",", "<mask>", "unsafe", ".", "Pointer", ")", "{", "C", ".", "glowIndexPointer", "(", "gpIndexPointer", ",", "(", "C", ".", "GLenum", ")", "(", "xtype", ")", ",", "(", "C", ".", ...
8,089
all-8090
[ "BoolPolicy", "converts", "a", "bool", "into", "a", "VMware", "BoolPolicy", "value", "." ]
[ "func", "BoolPolicy", "(", "b", "bool", ")", "*", "types", ".", "BoolPolicy", "{", "bp", ":=", "&", "types", ".", "BoolPolicy", "{", "<mask>", ":", "BoolPtr", "(", "b", ")", ",", "}", "\n", "return", "bp", "\n", "}" ]
8,090
all-8091
[ "From", "https", ":", "//", "github", ".", "com", "/", "golang", "/", "go", "/", "blob", "/", "31d19c0ba34782d16b91e9d41aa88147e858bb34", "/", "src", "/", "net", "/", "url", "/", "url", ".", "go#L710", "validEncodedPath", "reports", "whether", "s", "is", "...
[ "func", "validEncodedPath", "(", "s", "string", ")", "bool", "{", "for", "i", ":=", "0", ";", "i", "<", "len", "(", "s", ")", ";", "i", "++", "{", "// RFC 3986, Appendix A.", "// pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\".", "// shouldEscape is no...
8,091
all-8092
[ "ShouldReport", "returns", "if", "this", "prowjob", "should", "be", "reported", "by", "the", "gerrit", "reporter" ]
[ "func", "(", "c", "*", "Client", ")", "ShouldReport", "(", "pj", "*", "v1", ".", "ProwJob", ")", "bool", "{", "if", "pj", ".", "Status", ".", "State", "==", "v1", ".", "TriggeredState", "||", "pj", ".", "Status", ".", "State", "==", "v1", ".", "P...
8,092
all-8093
[ "NewSerialDispatcher", "creates", "a", "new", "PrallelDispatcher", "with", "the", "given", "handlers" ]
[ "func", "NewSerialDispatcher", "(", "handlers", "[", "]", "<mask>", ")", "Dispatcher", "{", "return", "&", "SerialDispatcher", "{", "handlers", ":", "handlers", ",", "mutex", ":", "sync", ".", "RWMutex", "{", "}", ",", "}", "\n", "}" ]
8,093
all-8094
[ "Listen", "for", "a", "Shutdown", "signal", "or", "Outbound", "messages", "." ]
[ "func", "(", "m", "*", "MessageStream", ")", "outbound", "(", ")", "{", "for", "{", "select", "{", "case", "<-", "m", ".", "Shutdown", ":", "log", ".", "Infof", "(", "\"", "\"", ")", "\n", "m", ".", "conn", ".", "Close", "(", ")", "\n", "return...
8,094
all-8095
[ "Stabilize", "tries", "to", "move", "the", "player", "in", "the", "stable", "position", "(", "lean", ")", "." ]
[ "func", "(", "p", "*", "<mask>", ")", "Stabilize", "(", ")", "{", "if", "0", "<", "p", ".", "lean", "{", "p", ".", "lean", "--", "\n", "}", "\n", "if", "p", ".", "lean", "<", "0", "{", "p", ".", "lean", "++", "\n", "}", "\n", "}" ]
8,095
all-8096
[ "NewPeerHandler", "generates", "an", "http", ".", "Handler", "to", "handle", "etcd", "peer", "requests", "." ]
[ "func", "NewPeerHandler", "(", "lg", "*", "zap", ".", "Logger", ",", "s", "etcdserver", ".", "ServerPeer", ")", "http", ".", "<mask>", "{", "return", "newPeerHandler", "(", "lg", ",", "s", ".", "Cluster", "(", ")", ",", "s", ".", "RaftHandler", "(", ...
8,096
all-8097
[ "MetadataAsMap", "parses", "the", "Response", "metadata", "into", "a", "map" ]
[ "func", "(", "r", "*", "Response", ")", "MetadataAsMap", "(", ")", "(", "map", "[", "string", "]", "<mask>", "{", "}", ",", "error", ")", "{", "ret", ":=", "map", "[", "string", "]", "interface", "{", "}", "{", "}", "\n", "err", ":=", "r", ".",...
8,097
all-8098
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventLayerPainted", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoLayertree16", "(", "&",...
8,098
all-8099
[ "BuildResourceDependency", "adds", "a", "new", "resource", "dependency", "by", "taking", "in", "the", "required", "status", "of", "the", "resource", "that", "satisfies", "the", "dependency", "and", "the", "dependent", "container", "status", "whose", "transition", ...
[ "func", "(", "c", "*", "Container", ")", "BuildResourceDependency", "(", "resourceName", "string", ",", "requiredStatus", "resourcestatus", ".", "ResourceStatus", ",", "dependentStatus", "apicontainerstatus", ".", "ContainerStatus", ")", "{", "resourceDep", ":=", "Res...
8,099
all-8100
[ "Accept", "waits", "for", "and", "returns", "the", "next", "connection", "to", "the", "listener", "." ]
[ "func", "(", "l", "*", "inMemoryListener", ")", "Accept", "(", ")", "(", "net", ".", "Conn", ",", "error", ")", "{", "select", "{", "case", "conn", ":=", "<-", "l", ".", "conns", ":", "return", "conn", ",", "nil", "\n", "case", "<-", "l", ".", ...