id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
22,200
all-22201
[ "HasMax", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetAxis", ")", "HasMax", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "Max", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
22,201
all-22202
[ "WithTimeout", "adds", "the", "timeout", "to", "the", "delete", "apps", "app", "routes", "route", "params" ]
[ "func", "(", "o", "*", "DeleteAppsAppRoutesRouteParams", ")", "WithTimeout", "(", "timeout", "<mask>", ".", "Duration", ")", "*", "DeleteAppsAppRoutesRouteParams", "{", "o", ".", "SetTimeout", "(", "timeout", ")", "\n", "return", "o", "\n", "}" ]
22,202
all-22203
[ "WithTargetID", "devtools", "agent", "host", "id", ".", "If", "called", "as", "a", "part", "of", "the", "session", "associated", "targetId", "is", "used", "." ]
[ "func", "(", "p", "GetWindowForTargetParams", ")", "WithTargetID", "(", "targetID", "target", ".", "<mask>", ")", "*", "GetWindowForTargetParams", "{", "p", ".", "TargetID", "=", "targetID", "\n", "return", "&", "p", "\n", "}" ]
22,203
all-22204
[ "Code", "returns", "the", "error", "code", "of", "err", "if", "it", "was", "returned", "by", "one", "of", "the", "HashTree", "methods", "or", "Unknown", "if", "err", "was", "emitted", "by", "some", "other", "function", "(", "error", "codes", "are", "defi...
[ "func", "Code", "(", "err", "error", ")", "ErrCode", "{", "if", "err", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "hte", ",", "ok", ":=", "err", ".", "(", "*", "hashTreeError", ")", "\n", "if", "!", "ok", "{", "return", "Unknown", "...
22,204
all-22205
[ "GetJobInfo", "retrieves", "Jenkins", "job", "information" ]
[ "func", "(", "c", "*", "Client", ")", "GetJobInfo", "(", "spec", "*", "prowapi", ".", "ProwJobSpec", ")", "(", "*", "JobInfo", ",", "error", ")", "{", "path", ":=", "getJobInfoPath", "(", "spec", ")", "\n", "c", ".", "logger", ".", "Debugf", "(", "...
22,205
all-22206
[ "GetLegendOk", "returns", "a", "tuple", "with", "the", "Legend", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetLegendOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Legend", "==", "nil", "{", "return", "false", ",", "<mask>", "\n", "}", "\n", "return", "*", "w", ".", ...
22,206
all-22207
[ "export", "FileSequence_FrameSet" ]
[ "func", "FileSequence_FrameSet", "(", "id", "FileSeqId", ")", "(", "fsetId", "FrameSetId", ")", "{", "fsetId", "=", "0", "\n", "fs", ",", "ok", ":=", "sFileSeqs", ".", "Get", "(", "id", ")", "\n", "if", "!", "ok", "{", "return", "fsetId", "\n", "}", ...
22,207
all-22208
[ "flattenVmwareDistributedVirtualSwitchVlanIDSpec", "reads", "various", "fields", "from", "a", "VmwareDistributedVirtualSwitchVlanIdSpec", "into", "the", "passed", "in", "ResourceData", "." ]
[ "func", "flattenVmwareDistributedVirtualSwitchVlanIDSpec", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "types", ".", "VmwareDistributedVirtualSwitchVlanIdSpec", ")", "error", "{", "d", ".", "<mask>", "(", "\"", "\"", ",", "obj", ".", "VlanId", ...
22,208
all-22209
[ "ParseCarbonlinkRequest", "from", "pickle", "encoded", "data" ]
[ "func", "ParseCarbonlinkRequest", "(", "d", "[", "]", "byte", ")", "(", "*", "CarbonlinkRequest", ",", "error", ")", "{", "if", "!", "(", "expectBytes", "(", "&", "d", ",", "[", "]", "byte", "(", "\"", "\\x80", "\\x02", "\"", ")", ")", "&&", "pickl...
22,209
all-22210
[ "SnapshotIDsAndNames", "returns", "a", "map", "of", "snapshot", "IDs", "to", "snapshot", "names", "for", "the", "container", "with", "the", "given", "name", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "SnapshotIDsAndNames", "(", "name", "string", ")", "(", "map", "[", "int", "]", "string", ",", "error", ")", "{", "prefix", ":=", "name", "+", "shared", ".", "SnapshotDelimiter", "\n", "length", ":=", "len", "("...
22,210
all-22211
[ "clearASMDockerAuthConfig", "cycles", "through", "the", "collection", "of", "docker", "private", "registry", "auth", "data", "and", "removes", "them", "from", "the", "task" ]
[ "func", "(", "auth", "*", "ASMAuthResource", ")", "clearASMDockerAuthConfig", "(", ")", "{", "auth", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "auth", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "for", "k", ":=", "<mask>", "auth", ".", "do...
22,211
all-22212
[ "PeekBack", "returns", "the", "entry", "logicall", "stored", "at", "the", "back", "of", "the", "list", "without", "removing", "it", "." ]
[ "func", "(", "list", "*", "LinkedList", ")", "PeekBack", "(", ")", "(", "interface", "{", "}", ",", "bool", ")", "{", "list", ".", "key", ".", "RLock", "(", ")", "\n", "defer", "list", ".", "key", ".", "RUnlock", "(", ")", "\n\n", "if", "list", ...
22,212
all-22213
[ "GetHash", "retrieves", "the", "Hash", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "Memo", ")", "GetHash", "(", ")", "(", "<mask>", "Hash", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName", "==", "\"", "\"...
22,213
all-22214
[ "Dump", "returns", "a", "SQL", "text", "dump", "of", "all", "rows", "across", "all", "tables", "similar", "to", "sqlite3", "s", "dump", "feature" ]
[ "func", "Dump", "(", "tx", "*", "sql", ".", "Tx", ",", "schema", "string", ",", "schemaOnly", "bool", ")", "(", "string", ",", "error", ")", "{", "schemas", ":=", "dumpParseSchema", "(", "schema", ")", "\n\n", "// Begin", "dump", ":=", "`PRAGMA foreign_k...
22,214
all-22215
[ "title", ":", "assign", "role", "to", "user", "path", ":", "/", "roles", "/", "{", "name", "}", "/", "user", "method", ":", "POST", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "responses", ":", "200", ":", "...
[ "func", "assignRole", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "<mask>", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "if", "!", "permission", ".", "Check", "(", "t", ",", "permission", ".", "PermR...
22,215
all-22216
[ "expandVmwareDistributedVirtualSwitchVlanIDSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VmwareDistributedVirtualSwitchVlanIdSpec", "." ]
[ "func", "expandVmwareDistributedVirtualSwitchVlanIDSpec", "(", "d", "*", "schema", ".", "ResourceData", ")", "*", "types", ".", "VmwareDistributedVirtualSwitchVlanIdSpec", "{", "obj", ":=", "&", "<mask>", ".", "VmwareDistributedVirtualSwitchVlanIdSpec", "{", "VlanId", ":"...
22,216
all-22217
[ "AddAttachment", "returns", "a", "copy", "of", "MailBuilder", "that", "includes", "the", "specified", "attachment", "." ]
[ "func", "(", "p", "MailBuilder", ")", "AddAttachment", "(", "b", "[", "]", "byte", ",", "contentType", "string", ",", "fileName", "string", ")", "MailBuilder", "{", "part", ":=", "NewPart", "(", "contentType", ")", "\n", "part", ".", "Content", "=", "b",...
22,217
all-22218
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "TakeResponseBodyForInterceptionAsStreamParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork4", "(", "&",...
22,218
all-22219
[ "DiscoverPollEndpoint", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockECSSDK", ")", "DiscoverPollEndpoint", "(", "arg0", "*", "ecs", ".", "DiscoverPollEndpointInput", ")", "(", "*", "ecs", ".", "DiscoverPollEndpointOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", ...
22,219
all-22220
[ "DeepCopy", "copies", "the", "receiver", "into", "a", "new", "SSN", "." ]
[ "func", "(", "u", "*", "SSN", ")", "DeepCopy", "(", ")", "*", "SSN", "{", "if", "u", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "SSN", ")", "\n", "u", ".", "DeepCopyInto", "(", "<mask>", ")", "\n", "return", ...
22,220
all-22221
[ "SetValue", "()", "is", "a", "wrapper", "around", "gtk_level_bar_set_value", "()", "." ]
[ "func", "(", "v", "*", "LevelBar", ")", "SetValue", "(", "value", "float64", ")", "{", "C", ".", "gtk_level_bar_set_value", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gdouble", "(", "<mask>", ")", ")", "\n", "}" ]
22,221
all-22222
[ "entriesForFile", "returns", "a", "set", "of", "users", "who", "are", "assignees", "to", "the", "requested", "file", ".", "The", "path", "variable", "should", "be", "a", "full", "path", "to", "a", "filename", "and", "not", "directory", "as", "the", "final"...
[ "func", "(", "o", "*", "RepoOwners", ")", "entriesForFile", "(", "path", "string", ",", "people", "map", "[", "string", "]", "map", "[", "*", "regexp", ".", "Regexp", "]", "sets", ".", "String", ",", "leafOnly", "bool", ")", "sets", ".", "String", "{...
22,222
all-22223
[ "VerifySuspendedChannelsAndTryToUnsuspend", "scans", "all", "supsended", "channels", "and", "checks", "if", "all", "conditions", "are", "met", "to", "unsuspend", "them", ".", "Is", "so", "-", "schedules", "task", "for", "appropriate", "channel", "unsuspending", "." ...
[ "func", "(", "m", "*", "Monitor", ")", "VerifySuspendedChannelsAndTryToUnsuspend", "(", ")", "error", "{", "// All channels, that are suspended,", "// but now seems to be payed - must be unsuspended.", "<mask>", ":=", "`\n SELECT channels.id :: text\n\t\tFROM channels\n ...
22,223
all-22224
[ "AddAction", "is", "a", "wrapper", "around", "g_action_map_add_action" ]
[ "func", "(", "v", "*", "ActionMap", ")", "AddAction", "(", "<mask>", "IAction", ")", "{", "C", ".", "g_action_map_add_action", "(", "v", ".", "native", "(", ")", ",", "action", ".", "toGAction", "(", ")", ")", "\n", "}" ]
22,224
all-22225
[ "NewAllowTrustResult", "creates", "a", "new", "AllowTrustResult", "." ]
[ "func", "NewAllowTrustResult", "(", "code", "AllowTrustResultCode", ",", "value", "interface", "{", "}", ")", "(", "result", "AllowTrustResult", ",", "err", "error", ")", "{", "result", ".", "Code", "=", "<mask>", "\n", "switch", "AllowTrustResultCode", "(", "...
22,225
all-22226
[ "Text", "sets", "the", "next", "sort", "key", "to", "sort", "by", "column", "n", "in", "lexicographic", "order", ".", "Column", "0", "means", "the", "entire", "string", ".", "Items", "that", "do", "not", "have", "column", "n", "sort", "to", "the", "fro...
[ "func", "(", "s", "*", "SortFilter", ")", "Text", "(", "n", "int", ")", "*", "SortFilter", "{", "s", ".", "add", "(", "func", "(", "a", ",", "b", "string", ")", "int", "{", "a1", ",", "a2", ":=", "column", "(", "a", ",", "n", ")", "\n", "b1...
22,226
all-22227
[ "cacheConsoleInfo", "ensures", "that", "the", "current", "console", "screen", "information", "has", "been", "queried", "since", "the", "last", "call", "to", "Flush", "()", ".", "It", "must", "be", "called", "before", "accessing", "h", ".", "curInfo", "or", "...
[ "func", "(", "h", "*", "windowsAnsiEventHandler", ")", "getCurrentInfo", "(", ")", "(", "COORD", ",", "*", "CONSOLE_SCREEN_BUFFER_INFO", ",", "error", ")", "{", "if", "h", ".", "curInfo", "==", "nil", "{", "<mask>", ",", "err", ":=", "GetConsoleScreenBufferI...
22,227
all-22228
[ "GetLogTail", "returns", "the", "last", "n", "bytes", "of", "the", "log", "of", "the", "specified", "container", "in", "the", "specified", "pod", "in", "the", "client", "s", "specified", "namespace", ".", "Analogous", "to", "kubectl", "logs", "pod", "--", ...
[ "func", "(", "c", "*", "<mask>", ")", "GetLogTail", "(", "pod", ",", "container", "string", ",", "n", "int64", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "pod", ",", "n", ")", "\n", "return", "c...
22,228
all-22229
[ "allowMethod", "verifies", "that", "the", "given", "method", "is", "one", "of", "the", "allowed", "methods", "and", "if", "not", "it", "writes", "an", "error", "to", "w", ".", "A", "boolean", "is", "returned", "indicating", "whether", "or", "not", "the", ...
[ "func", "allowMethod", "(", "w", "http", ".", "ResponseWriter", ",", "m", "string", ",", "ms", "...", "string", ")", "bool", "{", "for", "_", ",", "meth", ":=", "range", "ms", "{", "if", "m", "==", "meth", "{", "return", "<mask>", "\n", "}", "\n", ...
22,229
all-22230
[ "Body", "returns", "request", "body", ".", "The", "returned", "body", "is", "valid", "until", "the", "request", "modification", "." ]
[ "func", "(", "req", "*", "Request", ")", "Body", "(", ")", "[", "]", "<mask>", "{", "if", "req", ".", "bodyStream", "!=", "nil", "{", "bodyBuf", ":=", "req", ".", "bodyBuffer", "(", ")", "\n", "bodyBuf", ".", "Reset", "(", ")", "\n", "_", ",", ...
22,230
all-22231
[ "New", "creates", "a", "new", "Registry", "with", "a", "flushInterval", "at", "which", "metrics", "are", "reported", "to", "the", "subscribed", "Reporter", "instances", "a", "custom", "prefix", "which", "is", "prepended", "to", "every", "metric", "name", "and"...
[ "func", "New", "(", "flushInterval", "time", ".", "Duration", ",", "prefix", "string", ",", "tags", "...", "string", ")", "*", "Registry", "{", "if", "flushInterval", "<", "time", ".", "Second", "{", "flushInterval", "=", "30", "*", "time", ".", "Second"...
22,231
all-22232
[ "Subscribe", "registers", "the", "channel", "for", "messages", "on", "config", "reload", ".", "The", "caller", "can", "expect", "a", "copy", "of", "the", "previous", "and", "current", "config", "to", "be", "sent", "down", "the", "subscribed", "channel", "whe...
[ "func", "(", "ca", "*", "Agent", ")", "Subscribe", "(", "subscription", "DeltaChan", ")", "{", "<mask>", ".", "mut", ".", "Lock", "(", ")", "\n", "defer", "ca", ".", "mut", ".", "Unlock", "(", ")", "\n", "ca", ".", "subscriptions", "=", "append", "...
22,232
all-22233
[ "Init", "initalizes", "ElasticSearch", "for", "use", "with", "malice" ]
[ "func", "(", "db", "*", "Database", ")", "Init", "(", ")", "error", "{", "// Create URL from host/port", "db", ".", "getURL", "(", ")", "\n\n", "// Test connection to ElasticSearch", "err", ":=", "db", ".", "TestConnection", "(", ")", "\n", "if", "err", "!="...
22,233
all-22234
[ "Returns", "the", "location", "of", "a", "uniform", "variable" ]
[ "func", "GetUniformLocation", "(", "program", "uint32", ",", "name", "*", "uint8", ")", "int32", "{", "ret", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpGetUniformLocation", ",", "2", ",", "uintptr", "(", "<mask>", ")", ",", "uintptr", ...
22,234
all-22235
[ "New", "initializes", "a", "new", "instance", "of", "Server", "." ]
[ "func", "New", "(", "root", ",", "dir", "string", ",", "<mask>", "*", "Options", ")", "*", "Server", "{", "if", "options", "==", "nil", "{", "options", "=", "&", "Options", "{", "}", "\n", "}", "\n", "return", "&", "Server", "{", "Options", ":", ...
22,235
all-22236
[ "readFull", "reads", "len", "(", "p", ")", "bytes", "into", "p", ".", "If", "fewer", "bytes", "are", "read", "an", "error", "is", "returned", "." ]
[ "func", "(", "r", "*", "rarBitReader", ")", "readFull", "(", "p", "[", "]", "<mask>", ")", "error", "{", "for", "i", ":=", "range", "p", "{", "c", ",", "err", ":=", "r", ".", "ReadByte", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
22,236
all-22237
[ "AuthHandler", "is", "a", "HTTP", "request", "middleware", "that", "enforces", "authentication", "." ]
[ "func", "(", "self", "HttpBasicAuthenticator", ")", "AuthHandler", "(", "next", "<mask>", ".", "Handler", ")", "http", ".", "Handler", "{", "if", "self", ".", "HttpAuthenticable", "==", "nil", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "f", ...
22,237
all-22238
[ "PrintRunPageSetupDialogAsync", "()", "is", "a", "wrapper", "around", "gtk_print_run_page_setup_dialog_async", "()", "." ]
[ "func", "PrintRunPageSetupDialogAsync", "(", "parent", "*", "Window", ",", "setup", "*", "PageSetup", ",", "settings", "*", "PrintSettings", ",", "cb", "PageSetupDoneCallback", ",", "data", "uintptr", ")", "{", "pageSetupDoneCallbackRegistry", ".", "Lock", "(", ")...
22,238
all-22239
[ "Email", "returns", "the", "alias", "email", "on", "the", "primary", "domain", "name" ]
[ "func", "(", "a", "Alias", ")", "Email", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "a", ".", "Name", ",", "a", ".", "account", ".", "Domain", ".", "<mask>", ")", "\n", "}" ]
22,239
all-22240
[ "Images", "retrieves", "a", "list", "of", "all", "images" ]
[ "func", "(", "c", "*", "<mask>", ")", "Images", "(", ")", "(", "[", "]", "Image", ",", "error", ")", "{", "var", "images", "[", "]", "Image", "\n", "_", ",", "err", ":=", "c", ".", "MakeApiRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil...
22,240
all-22241
[ "retrieve", "retrives", "the", "mac", "address", "of", "a", "network", "device", ".", "If", "the", "retrieved", "mac", "address", "is", "empty", "it", "retries", "the", "operation", "with", "a", "timeout", "specified", "by", "the", "caller" ]
[ "func", "(", "retriever", "*", "macAddressRetriever", ")", "retrieve", "(", ")", "(", "string", ",", "error", ")", "{", "backoff", ":=", "retry", ".", "NewExponentialBackoff", "(", "macAddressBackoffMin", ",", "macAddressBackoffMax", ",", "macAddressBackoffJitter", ...
22,241
all-22242
[ "UnmarshalJSON", "decodes", "the", "container", "type", "field", "in", "the", "JSON", "encoded", "string", "into", "the", "ContainerType", "object" ]
[ "func", "(", "containerType", "*", "ContainerType", ")", "UnmarshalJSON", "(", "b", "[", "]", "byte", ")", "error", "{", "strType", ":=", "string", "(", "b", ")", "\n\n", "switch", "strType", "{", "case", "\"", "\"", ":", "*", "containerType", "=", "Co...
22,242
all-22243
[ "DeepCopy", "copies", "the", "receiver", "into", "a", "new", "UUID5", "." ]
[ "func", "(", "u", "*", "UUID5", ")", "DeepCopy", "(", ")", "*", "UUID5", "{", "if", "u", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "UUID5", ")", "\n", "u", ".", "DeepCopyInto", "(", "out", ")", "\n", "return",...
22,243
all-22244
[ "Returns", "an", "encoder", "where", "the", "line", "-", "endings", "of", "the", "resulting", "stream", "is", "not", "the", "standard", "value", "(", "CRLF", ")", "Standard", "requires", "CRLF", "line", "endings", "but", "there", "are", "some", "variants", ...
[ "func", "NewEncoderWithEOL", "(", "eol", "string", ",", "enc", "*", "Encoding", ",", "w", "<mask>", ".", "Writer", ")", "io", ".", "WriteCloser", "{", "return", "&", "encoder", "{", "eol", ":", "eol", ",", "enc", ":", "enc", ",", "w", ":", "w", "}"...
22,244
all-22245
[ "Screenshot", "captures", "the", "screen", "of", "the", "guest", "operating", "system", ".", "Remarks", ":", "*", "This", "function", "captures", "the", "current", "screen", "image", "and", "returns", "it", "as", "a", "[]", "byte", "result", ".", "*", "For...
[ "func", "(", "v", "*", "VM", ")", "Screenshot", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "var", "jobHandle", "C", ".", "VixHandle", "=", "C", ".", "VIX_INVALID_HANDLE", "\n", "var", "err", "C", ".", "VixError", "=", "C", ".", "VIX...
22,245
all-22246
[ "Next", "asks", "for", "the", "next", "page", "of", "resources", "and", "decodes", "the", "results", "into", "v", "." ]
[ "func", "(", "p", "*", "PageIterator", ")", "Next", "(", "ctx", "context", ".", "Context", ",", "v", "interface", "{", "}", ")", "error", "{", "var", "err", "error", "\n", "switch", "{", "case", "p", ".", "nextPageURI", ".", "Valid", ":", "err", "=...
22,246
all-22247
[ "Save", "saves", "the", "static", "state", "of", "the", "store", "system", ".", "It", "will", "not", "be", "able", "to", "save", "the", "state", "of", "watchers", ".", "It", "will", "not", "save", "the", "parent", "field", "of", "the", "node", ".", "...
[ "func", "(", "s", "*", "<mask>", ")", "Save", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "b", ",", "err", ":=", "json", ".", "Marshal", "(", "s", ".", "Clone", "(", ")", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil...
22,247
all-22248
[ "PackStart", "is", "a", "wrapper", "around", "gtk_header_bar_pack_start", "()", "." ]
[ "func", "(", "v", "*", "HeaderBar", ")", "PackStart", "(", "<mask>", "IWidget", ")", "{", "C", ".", "gtk_header_bar_pack_start", "(", "v", ".", "native", "(", ")", ",", "child", ".", "toWidget", "(", ")", ")", "\n", "}" ]
22,248
all-22249
[ "RespondError", "sends", "a", "response", "with", "a", "given", "error", "." ]
[ "func", "(", "s", "*", "Server", ")", "RespondError", "(", "logger", "log", ".", "Logger", ",", "w", "http", ".", "ResponseWriter", ",", "err", "*", "Error", ")", "{", "s", ".", "respond", "(", "logger", ",", "w", ",", "&", "<mask>", "{", "Error", ...
22,249
all-22250
[ "UnmarshalEasyJSON", "satisfies", "easyjson", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "ServiceName", ")", "UnmarshalEasyJSON", "(", "in", "*", "jlexer", ".", "Lexer", ")", "{", "switch", "ServiceName", "(", "in", ".", "String", "(", ")", ")", "{", "case", "ServiceNameBackgroundFetch", ":", "*", "t", "=", "ServiceNam...
22,250
all-22251
[ "Go", "1", ".", "8", "compatible", "GOPATH", "." ]
[ "func", "getGoPath", "(", ")", "string", "{", "path", ":=", "os", ".", "Getenv", "(", "\"", "\"", ")", "\n", "if", "path", "==", "\"", "\"", "{", "user", ",", "err", ":=", "user", ".", "Current", "(", ")", "\n", "kingpin", ".", "FatalIfError", "(...
22,251
all-22252
[ "Do", "executes", "Runtime", ".", "queryObjects", "against", "the", "provided", "context", ".", "returns", ":", "objects", "-", "Array", "with", "objects", "." ]
[ "func", "(", "p", "*", "QueryObjectsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "objects", "*", "RemoteObject", ",", "err", "error", ")", "{", "// execute", "<mask>", "res", "QueryObjectsReturns", "\n", "err", "=", "cdp", ".", "E...
22,252
all-22253
[ "MustAccountMergeResult", "retrieves", "the", "AccountMergeResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "OperationResultTr", ")", "MustAccountMergeResult", "(", ")", "AccountMergeResult", "{", "val", ",", "<mask>", ":=", "u", ".", "GetAccountMergeResult", "(", ")", "\n\n", "if", "!", "ok", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\...
22,253
all-22254
[ "CreateTemplate", "creates", "template", "." ]
[ "func", "(", "h", "*", "Handler", ")", "CreateTemplate", "(", "tkn", "string", ",", "template", "*", "data", ".", "<mask>", ")", "(", "*", "string", ",", "error", ")", "{", "logger", ":=", "h", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\"...
22,254
all-22255
[ "configureInstance", "configures", "an", "existing", "instance", "for", "use", "with", "Docker", "Machine", "." ]
[ "func", "(", "c", "*", "ComputeUtil", ")", "configureInstance", "(", "d", "*", "Driver", ")", "error", "{", "<mask>", ".", "Infof", "(", "\"", "\"", ")", "\n\n", "instance", ",", "err", ":=", "c", ".", "instance", "(", ")", "\n", "if", "err", "!=",...
22,255
all-22256
[ "ListPipeline", "returns", "info", "about", "all", "pipelines", "." ]
[ "func", "(", "c", "APIClient", ")", "ListPipeline", "(", ")", "(", "[", "]", "*", "pps", ".", "PipelineInfo", ",", "<mask>", ")", "{", "pipelineInfos", ",", "err", ":=", "c", ".", "PpsAPIClient", ".", "ListPipeline", "(", "c", ".", "Ctx", "(", ")", ...
22,256
all-22257
[ "Walk", "traverses", "the", "directory", "tree", "rooted", "at", "c", ".", "RepoRoot", ".", "Walk", "visits", "subdirectories", "in", "depth", "-", "first", "post", "-", "order", ".", "When", "Walk", "visits", "a", "directory", "it", "lists", "the", "files...
[ "func", "Walk", "(", "c", "*", "config", ".", "Config", ",", "cexts", "[", "]", "config", ".", "Configurer", ",", "dirs", "[", "]", "string", ",", "mode", "Mode", ",", "wf", "WalkFunc", ")", "{", "knownDirectives", ":=", "make", "(", "map", "[", "s...
22,257
all-22258
[ "HasMetricQuery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeseriesRequest", ")", "HasMetricQuery", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "MetricQuery", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
22,258
all-22259
[ "HasName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "l", "*", "LogSet", ")", "HasName", "(", ")", "bool", "{", "if", "l", "!=", "nil", "&&", "l", ".", "Name", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
22,259
all-22260
[ "Destroy", "closes", "any", "open", "browsers", "by", "ending", "the", "session", "." ]
[ "func", "(", "p", "*", "Page", ")", "Destroy", "(", ")", "error", "{", "if", "err", ":=", "p", ".", "<mask>", ".", "Delete", "(", ")", ";", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n", "}", ...
22,260
all-22261
[ "Symbols", "returns", "a", "mapping", "from", "name", "to", "inferior", "address", "along", "with", "any", "error", "encountered", "during", "reading", "the", "symbol", "information", ".", "(", "There", "may", "be", "both", "an", "error", "and", "some", "ret...
[ "func", "(", "p", "*", "<mask>", ")", "Symbols", "(", ")", "(", "map", "[", "string", "]", "Address", ",", "error", ")", "{", "return", "p", ".", "syms", ",", "p", ".", "symErr", "\n", "}" ]
22,261
all-22262
[ "GetMongo", "returns", "a", "Mongo", "configurations" ]
[ "func", "GetMongo", "(", "source", "interface", "{", "}", ",", "<mask>", "string", ")", "(", "mongo", "Config", ",", "err", "error", ")", "{", "var", "env", "Environment", "\n", "i", ",", "err", ":=", "config", ".", "Get", "(", "source", ",", "enviro...
22,262
all-22263
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "StopWorkerParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoServiceworker3", "(", "&...
22,263
all-22264
[ "GetSuggestedApprovers", "solves", "the", "exact", "cover", "problem", "finding", "an", "approver", "capable", "of", "approving", "every", "OWNERS", "file", "in", "the", "PR" ]
[ "func", "(", "o", "Owners", ")", "GetSuggestedApprovers", "(", "reverseMap", "map", "[", "string", "]", "sets", ".", "String", ",", "potentialApprovers", "[", "]", "string", ")", "sets", ".", "String", "{", "ap", ":=", "NewApprovers", "(", "o", ")", "\n"...
22,264
all-22265
[ "ListCommitByRepo", "lists", "all", "commits", "in", "a", "repo", "." ]
[ "func", "(", "c", "APIClient", ")", "ListCommitByRepo", "(", "repoName", "<mask>", ")", "(", "[", "]", "*", "pfs", ".", "CommitInfo", ",", "error", ")", "{", "return", "c", ".", "ListCommit", "(", "repoName", ",", "\"", "\"", ",", "\"", "\"", ",", ...
22,265
all-22266
[ "BeginCall", "starts", "a", "new", "call", "to", "a", "remote", "peer", "returning", "an", "OutboundCall", "that", "can", "be", "used", "to", "write", "the", "arguments", "of", "the", "call", "." ]
[ "func", "(", "ch", "*", "<mask>", ")", "BeginCall", "(", "ctx", "context", ".", "Context", ",", "hostPort", ",", "serviceName", ",", "methodName", "string", ",", "callOptions", "*", "CallOptions", ")", "(", "*", "OutboundCall", ",", "error", ")", "{", "p...
22,266
all-22267
[ "Do", "performs", "the", "given", "http", "request", "and", "fills", "the", "given", "http", "response", ".", "Request", "must", "contain", "at", "least", "non", "-", "zero", "RequestURI", "with", "full", "url", "(", "including", "scheme", "and", "host", "...
[ "func", "(", "c", "*", "Client", ")", "Do", "(", "req", "*", "Request", ",", "resp", "*", "Response", ")", "error", "{", "uri", ":=", "req", ".", "URI", "(", ")", "\n", "host", ":=", "uri", ".", "Host", "(", ")", "\n\n", "isTLS", ":=", "false",...
22,267
all-22268
[ "Do", "executes", "Emulation", ".", "setScriptExecutionDisabled", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetScriptExecutionDisabledParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetScriptExecutionDisabled", ",", "p", ",", "nil", ")"...
22,268
all-22269
[ "addServiceMonitor", "watches", "a", "channel", "to", "add", "services", "into", "operation", "." ]
[ "func", "(", "s", "*", "ServiceManager", ")", "addServiceMonitor", "(", ")", "{", "log", ".", "Println", "(", "\"", "\"", ")", "\n", "for", "{", "select", "{", "case", "p", ":=", "<-", "s", ".", "commandCreatedChan", ":", "if", "p", "!=", "nil", "&...
22,269
all-22270
[ "NewRL10", "returns", "a", "API", "client", "that", "uses", "the", "information", "stored", "in", "/", "var", "/", "run", "/", "rightlink", "/", "secret", "to", "do", "auth", "and", "configure", "the", "host", ".", "The", "client", "behaves", "identically"...
[ "func", "NewRL10", "(", ")", "(", "*", "API", ",", "error", ")", "{", "client", ":=", "httpclient", ".", "New", "(", ")", "\n", "rllConfig", ",", "err", ":=", "os", ".", "Open", "(", "RllSecret", ")", "\n", "if", "err", "!=", "nil", "{", "return"...
22,270
all-22271
[ "NewDecoder", "returns", "a", "decoder", "object", "that", "uses", "p", "will", "panic", "if", "p", "is", "nil", "." ]
[ "func", "NewDecoder", "(", "p", "<mask>", ")", "*", "Decoder", "{", "if", "p", "==", "nil", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "return", "&", "Decoder", "{", "Parser", ":", "p", "}", "\n", "}" ]
22,271
all-22272
[ "Value", "converts", "a", "value", "to", "a", "database", "driver", "value" ]
[ "func", "(", "r", "RGBColor", ")", "<mask>", "(", ")", "(", "driver", ".", "Value", ",", "error", ")", "{", "return", "driver", ".", "Value", "(", "string", "(", "r", ")", ")", ",", "nil", "\n", "}" ]
22,272
all-22273
[ "flushFragment", "sends", "a", "fragment", "to", "the", "peer", "over", "the", "connection" ]
[ "func", "(", "w", "*", "reqResWriter", ")", "flushFragment", "(", "fragment", "*", "writableFragment", ")", "error", "{", "if", "w", ".", "err", "!=", "nil", "{", "return", "w", ".", "err", "\n", "}", "\n\n", "frame", ":=", "fragment", ".", "frame", ...
22,273
all-22274
[ "MayContinue", "returns", "true", "if", "the", "request", "contains", "Expect", ":", "100", "-", "continue", "header", ".", "The", "caller", "must", "do", "one", "of", "the", "following", "actions", "if", "MayContinue", "returns", "true", ":", "-", "Either",...
[ "func", "(", "req", "*", "Request", ")", "MayContinue", "(", ")", "bool", "{", "return", "bytes", ".", "Equal", "(", "req", ".", "<mask>", ".", "peek", "(", "strExpect", ")", ",", "str100Continue", ")", "\n", "}" ]
22,274
all-22275
[ "Clone", "clones", "a", "repository", ".", "Pass", "the", "full", "repository", "name", "such", "as", "kubernetes", "/", "test", "-", "infra", "as", "the", "repo", ".", "This", "function", "may", "take", "a", "long", "time", "if", "it", "is", "the", "f...
[ "func", "(", "c", "*", "Client", ")", "Clone", "(", "repo", "string", ")", "(", "*", "Repo", ",", "error", ")", "{", "c", ".", "lockRepo", "(", "repo", ")", "\n", "defer", "c", ".", "unlockRepo", "(", "repo", ")", "\n\n", "base", ":=", "c", "."...
22,275
all-22276
[ "GetFillMaxOk", "returns", "a", "tuple", "with", "the", "FillMax", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TileDefStyle", ")", "GetFillMaxOk", "(", ")", "(", "json", ".", "Number", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "FillMax", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", ...
22,276
all-22277
[ "query", "the", "properties", "of", "a", "sync", "object" ]
[ "func", "GetSynciv", "(", "sync", "uintptr", ",", "pname", "uint32", ",", "bufSize", "int32", ",", "length", "*", "int32", ",", "values", "*", "int32", ")", "{", "C", ".", "glowGetSynciv", "(", "gpGetSynciv", ",", "(", "C", ".", "GLsync", ")", "(", "...
22,277
all-22278
[ "Call", "makes", "a", "JSON", "call", "with", "retries", "." ]
[ "func", "(", "c", "*", "Client", ")", "Call", "(", "ctx", "Context", ",", "method", "string", ",", "arg", ",", "resp", "interface", "{", "}", ")", "error", "{", "var", "(", "headers", "=", "ctx", ".", "Headers", "(", ")", "\n\n", "respHeaders", "ma...
22,278
all-22279
[ "Reset", "resets", "the", "session", "meaning", "a", "new", "Ask", "()", "call", "will", "appear", "as", "new", "conversation", "from", "bots", "point", "of", "view", "." ]
[ "func", "(", "s", "*", "<mask>", ")", "Reset", "(", ")", "{", "s", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mu", ".", "Unlock", "(", ")", "\n", "s", ".", "Values", ".", "Del", "(", "\"", "\"", ")", "\n", "// Clear the json ...
22,279
all-22280
[ "LayerInfosForCopy", "()", "returns", "updated", "layer", "info", "that", "should", "be", "used", "when", "reading", "in", "preference", "to", "values", "in", "the", "manifest", "if", "specified", "." ]
[ "func", "(", "*", "tarballImageSource", ")", "LayerInfosForCopy", "(", "ctx", "<mask>", ".", "Context", ")", "(", "[", "]", "types", ".", "BlobInfo", ",", "error", ")", "{", "return", "nil", ",", "nil", "\n", "}" ]
22,280
all-22281
[ "TrimBelowName", "returns", "a", "slice", "of", "the", "Trace", "with", "all", "entries", "below", "the", "lowest", "with", "function", "name", "name", "removed", "." ]
[ "func", "(", "pcs", "Trace", ")", "TrimBelowName", "(", "name", "string", ")", "Trace", "{", "for", "len", "(", "pcs", ")", ">", "0", "&&", "pcs", "[", "0", "]", ".", "name", "(", ")", "!=", "<mask>", "{", "pcs", "=", "pcs", "[", "1", ":", "]...
22,281
all-22282
[ "NewDLock", "attempts", "to", "acquire", "a", "distributed", "lock", "that", "locks", "a", "given", "prefix", "in", "the", "data", "store", "." ]
[ "func", "NewDLock", "(", "<mask>", "*", "etcd", ".", "Client", ",", "prefix", "string", ")", "DLock", "{", "return", "&", "etcdImpl", "{", "client", ":", "client", ",", "prefix", ":", "prefix", ",", "}", "\n", "}" ]
22,282
all-22283
[ "The", "4", "print", "functions", "below", "print", "the", "entry", "format", "based", "on", "there", "types", "printInternalRaftRequest", "is", "used", "to", "print", "entry", "information", "for", "IRRRange", "IRRPut", "IRRDeleteRange", "and", "IRRTxn", "entries...
[ "func", "printInternalRaftRequest", "(", "<mask>", "raftpb", ".", "Entry", ")", "{", "var", "rr", "etcdserverpb", ".", "InternalRaftRequest", "\n", "if", "err", ":=", "rr", ".", "Unmarshal", "(", "entry", ".", "Data", ")", ";", "err", "==", "nil", "{", "...
22,283
all-22284
[ "Register", "registers", "a", "server", "its", "shutdown", "func", "and", "ignore", "error", "funcs", "." ]
[ "func", "(", "s", "*", "Sentinel", ")", "Register", "(", "server", ",", "shutdown", "interface", "{", "}", ",", "ignore", "...", "func", "(", "error", ")", "bool", ")", "error", "{", "// add server and shutdown funcs", "var", "err", "error", "\n", "s", "...
22,284
all-22285
[ "HasOrderBy", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "HasOrderBy", "(", ")", "bool", "{", "if", "g", "!=", "nil", "&&", "g", ".", "OrderBy", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
22,285
all-22286
[ "UpdateMaintenanceWindow", "updates", "passed", "maintenance", "[", "window", "]", "." ]
[ "func", "(", "a", "*", "API", ")", "UpdateMaintenanceWindow", "(", "cfg", "*", "Maintenance", ")", "(", "*", "Maintenance", ",", "error", ")", "{", "if", "cfg", "==", "nil", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n...
22,286
all-22287
[ "GetConfigs", "returns", "all", "configs" ]
[ "func", "(", "s", "*", "Storage", ")", "GetConfigs", "(", ")", "(", "[", "]", "common", ".", "ResourcesConfig", ",", "error", ")", "{", "var", "configs", "[", "]", "common", ".", "ResourcesConfig", "\n", "items", ",", "err", ":=", "s", ".", "configs"...
22,287
all-22288
[ "Return", "a", "map", "from", "table", "names", "to", "their", "schema", "definition", "taking", "a", "full", "schema", "SQL", "text", "generated", "with", "schema", ".", "Schema", ".", "Dump", "()", "." ]
[ "func", "dumpParseSchema", "(", "schema", "string", ")", "map", "[", "string", "]", "string", "{", "tables", ":=", "map", "[", "string", "]", "string", "{", "}", "\n", "for", "_", ",", "statement", ":=", "range", "strings", ".", "Split", "(", "schema",...
22,288
all-22289
[ "Valid", "returns", "true", "when", "iterator", "reaches", "the", "end" ]
[ "func", "(", "it", "*", "Iterator", ")", "Valid", "(", ")", "bool", "{", "if", "it", ".", "valid", "&&", "<mask>", ".", "curr", "==", "it", ".", "s", ".", "tail", "{", "it", ".", "valid", "=", "false", "\n", "}", "\n\n", "return", "it", ".", ...
22,289
all-22290
[ "isCall", "returns", "true", "if", "t", "is", "a", "call", "to", "pkg", ".", "name", "." ]
[ "func", "isCall", "(", "t", "ast", ".", "Expr", ",", "pkg", ",", "name", "string", ")", "bool", "{", "<mask>", ",", "ok", ":=", "t", ".", "(", "*", "ast", ".", "CallExpr", ")", "\n", "return", "ok", "&&", "isPkgDot", "(", "call", ".", "Fun", ",...
22,290
all-22291
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetBrowserContextsParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11", "(", "&", "w", ",", "v",...
22,291
all-22292
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EnableParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoLayertree17", "(", "&", "w", ",", "v", ")",...
22,292
all-22293
[ "valid", "returns", "whether", "the", "key", "is", "valid", "." ]
[ "func", "(", "k", "*", "Key", ")", "valid", "(", ")", "bool", "{", "if", "k", "==", "nil", "{", "return", "false", "\n", "}", "\n", "for", ";", "k", "!=", "nil", ";", "k", "=", "k", ".", "parent", "{", "if", "k", ".", "<mask>", "==", "\"", ...
22,293
all-22294
[ "KeyValue", "extracts", "the", "key", "and", "value", "encoded", "in", "the", "given", "string", "and", "separated", "by", "=", "(", "foo", "=", "bar", "-", ">", "foo", "bar", ")", "." ]
[ "func", "KeyValue", "(", "s", "string", ")", "(", "string", ",", "string", ",", "error", ")", "{", "parts", ":=", "strings", ".", "Split", "(", "s", ",", "\"", "\"", ")", "\n\n", "if", "len", "(", "parts", ")", "!=", "2", "{", "return", "\"", "...
22,294
all-22295
[ "NewFileSnapshotStoreWithLogger", "creates", "a", "new", "FileSnapshotStore", "based", "on", "a", "base", "directory", ".", "The", "retain", "parameter", "controls", "how", "many", "snapshots", "are", "retained", ".", "Must", "be", "at", "least", "1", "." ]
[ "func", "NewFileSnapshotStoreWithLogger", "(", "base", "string", ",", "retain", "int", ",", "logger", "*", "log", ".", "Logger", ")", "(", "*", "FileSnapshotStore", ",", "error", ")", "{", "if", "retain", "<", "1", "{", "return", "nil", ",", "fmt", ".", ...
22,295
all-22296
[ "PrintSettingsNewFromFile", "()", "is", "a", "wrapper", "around", "gtk_print_settings_new_from_file", "()", "." ]
[ "func", "PrintSettingsNewFromFile", "(", "name", "string", ")", "(", "*", "PrintSettings", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "name", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ...
22,296
all-22297
[ "Cancel", "will", "attempt", "to", "cancel", "all", "ongoing", "operations" ]
[ "func", "(", "c", "*", "Canceler", ")", "Cancel", "(", ")", "error", "{", "if", "!", "c", ".", "Cancelable", "(", ")", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", "\n\n", "c", ".", "lock", ".", "Lock", "(", ")", "\n"...
22,297
all-22298
[ "indicate", "modifications", "to", "a", "range", "of", "a", "mapped", "buffer" ]
[ "func", "FlushMappedBufferRange", "(", "<mask>", "uint32", ",", "offset", "int", ",", "length", "int", ")", "{", "syscall", ".", "Syscall", "(", "gpFlushMappedBufferRange", ",", "3", ",", "uintptr", "(", "target", ")", ",", "uintptr", "(", "offset", ")", "...
22,298
all-22299
[ "Returns", "an", "string", "or", "panics" ]
[ "func", "(", "t", "Typed", ")", "StringMust", "(", "key", "string", ")", "string", "{", "s", ",", "exists", ":=", "t", ".", "StringIf", "(", "key", ")", "\n", "if", "exists", "==", "<mask>", "{", "panic", "(", "\"", "\"", "+", "key", ")", "\n", ...
22,299
all-22300
[ "startServer", "starts", "a", "new", "server", "process", ".", "This", "is", "called", "by", "the", "client", "." ]
[ "func", "startServer", "(", ")", "error", "{", "exe", ",", "err", ":=", "<mask>", ".", "Executable", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "args", ":=", "[", "]", "string", "{", "\"", "\"", "}", "\n", ...