id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
4,000
all-4001
[ "UniqueURLsMapFromFlag", "returns", "a", "map", "from", "url", "strings", "got", "from", "the", "flag", "." ]
[ "func", "UniqueURLsMapFromFlag", "(", "fs", "*", "flag", ".", "FlagSet", ",", "urlsFlagName", "string", ")", "map", "[", "string", "]", "struct", "{", "}", "{", "return", "(", "*", "<mask>", ".", "Lookup", "(", "urlsFlagName", ")", ".", "Value", ".", "...
4,001
all-4002
[ "run", "is", "a", "long", "running", "goroutine", "that", "runs", "the", "Raft", "FSM", "." ]
[ "func", "(", "r", "*", "Raft", ")", "run", "(", ")", "{", "for", "{", "// Check if we are doing a shutdown", "select", "{", "case", "<-", "r", ".", "shutdownCh", ":", "// Clear the leader to prevent forwarding", "r", ".", "setLeader", "(", "\"", "\"", ")", "...
4,002
all-4003
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventShadowRootPushed", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom55", "(", "&", "...
4,003
all-4004
[ "DisableExponentialBackoff", "disables", "use", "of", "exponential", "backoff", ".", "If", "a", "request", "using", "exponential", "backoff", "is", "currently", "running", "it", "will", "stop", "using", "exponential", "backoff", "on", "its", "next", "iteration", "...
[ "func", "(", "a", "*", "API", ")", "DisableExponentialBackoff", "(", ")", "{", "a", ".", "useExponentialBackoffmu", ".", "Lock", "(", ")", "\n", "a", ".", "useExponentialBackoff", "=", "<mask>", "\n", "a", ".", "useExponentialBackoffmu", ".", "Unlock", "(", ...
4,004
all-4005
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "StartWorkerParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoServiceworker5", "(", "&", "w", ",", "v", ...
4,005
all-4006
[ "GetSlice", "returns", "a", "slice", "of", "interface", "value", "for", "a", "specific", "column", "." ]
[ "func", "(", "r", "Record", ")", "GetSlice", "(", "column", "string", ")", "(", "[", "]", "<mask>", "{", "}", ",", "error", ")", "{", "v", ",", "err", ":=", "r", ".", "getKey", "(", "reflect", ".", "Slice", ",", "column", ")", "\n", "if", "err"...
4,006
all-4007
[ "CreateRecords", "creates", "a", "given", "set", "of", "DNS", "records", "in", "the", "given", "hosted", "zone", "." ]
[ "func", "(", "p", "*", "AWSProvider", ")", "CreateRecords", "(", "endpoints", "[", "]", "*", "endpoint", ".", "Endpoint", ")", "error", "{", "<mask>", "p", ".", "doRecords", "(", "route53", ".", "ChangeActionCreate", ",", "endpoints", ")", "\n", "}" ]
4,007
all-4008
[ "Constructs", "an", "http", "response", "from", "JSON", "input", "from", "Stdin" ]
[ "func", "CreateJSONResponse", "(", "b", "[", "]", "byte", ")", "(", "resp", "*", "http", ".", "Response", ")", "{", "// Remove UTF-8 Byte Order Mark if it exists", "b", "=", "<mask>", ".", "TrimPrefix", "(", "b", ",", "[", "]", "byte", "{", "0xef", ",", ...
4,008
all-4009
[ "ErrorHandler", "is", "a", "middleware", "to", "handle", "errors", "encountered", "during", "requests" ]
[ "func", "ErrorHandler", "(", "c", "*", "gin", ".", "Context", ")", "{", "c", ".", "Next", "(", ")", "\n\n", "// TODO: Handle it in a better way", "if", "len", "(", "c", ".", "Errors", ")", ">", "0", "{", "c", ".", "<mask>", "(", "http", ".", "StatusB...
4,009
all-4010
[ "GetRemoved", "retrieves", "the", "Removed", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "LedgerEntryChange", ")", "GetRemoved", "(", ")", "(", "result", "LedgerKey", ",", "<mask>", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armNam...
4,010
all-4011
[ "ReachedMaxMsgCountForPeer", "returns", "true", "if", "we", "received", "too", "many", "messages", "from", "peer", "with", "address", "addr", ".", "NOTE", ":", "assumes", "the", "value", "in", "the", "CMap", "is", "non", "-", "nil" ]
[ "func", "(", "r", "*", "PEXReactor", ")", "ReachedMaxMsgCountForPeer", "(", "addr", "string", ")", "bool", "{", "<mask>", "r", ".", "msgCountByPeer", ".", "Get", "(", "addr", ")", ".", "(", "uint16", ")", ">=", "r", ".", "maxMsgCountByPeer", "\n", "}" ]
4,011
all-4012
[ "RegisterServiceOffering", "calls", "registerServiceOffering", "method", "of", "Privatix", "service", "contract", "." ]
[ "func", "(", "b", "*", "backendInstance", ")", "RegisterServiceOffering", "(", "opts", "*", "bind", ".", "TransactOpts", ",", "offeringHash", "[", "common", ".", "HashLength", "]", "byte", ",", "minDeposit", "uint64", ",", "maxSupply", "uint16", ",", "somcType...
4,012
all-4013
[ "Match", "returns", "whether", "the", "regexp", "matches", "the", "given", "string", "." ]
[ "func", "(", "r", "*", "Regexp", ")", "MatchString", "(", "s", "<mask>", ")", "bool", "{", "return", "r", ".", "compiled", ".", "MatchString", "(", "s", ")", "\n", "}" ]
4,013
all-4014
[ "Ping", "returns", "pong" ]
[ "func", "Ping", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "w", ".", "Write", "(", "[", "]", "<mask>", "(", "\"", "\"", ")", ")", "\n", "}" ]
4,014
all-4015
[ "HashedPath", "returns", "a", "URL", "path", "with", "hash", "injected", "into", "the", "filename", "." ]
[ "func", "(", "s", "*", "Server", ")", "HashedPath", "(", "p", "string", ")", "(", "string", ",", "error", ")", "{", "if", "s", ".", "Hasher", "==", "nil", "{", "return", "path", ".", "Join", "(", "s", ".", "root", ",", "p", ")", ",", "nil", "...
4,015
all-4016
[ "MustPathPaymentResult", "retrieves", "the", "PathPaymentResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "OperationResultTr", ")", "MustPathPaymentResult", "(", ")", "PathPaymentResult", "{", "val", ",", "<mask>", ":=", "u", ".", "GetPathPaymentResult", "(", ")", "\n\n", "if", "!", "ok", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n...
4,016
all-4017
[ "PreCreateCheck", "is", "called", "to", "enforce", "pre", "-", "creation", "steps" ]
[ "func", "(", "d", "*", "Driver", ")", "PreCreateCheck", "(", ")", "error", "{", "c", ",", "err", ":=", "newComputeUtil", "(", "d", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "// Check that the project exists. It will also...
4,017
all-4018
[ "Process", "returns", "a", "relabeled", "copy", "of", "the", "given", "label", "set", ".", "The", "relabel", "configurations", "are", "applied", "in", "order", "of", "input", ".", "If", "a", "label", "set", "is", "dropped", "nil", "is", "returned", ".", ...
[ "func", "Process", "(", "labels", "labels", ".", "Labels", ",", "cfgs", "...", "*", "Config", ")", "labels", ".", "Labels", "{", "for", "_", ",", "cfg", ":=", "<mask>", "cfgs", "{", "labels", "=", "relabel", "(", "labels", ",", "cfg", ")", "\n", "i...
4,018
all-4019
[ "diskRelocateListString", "pretty", "-", "prints", "a", "list", "of", "VirtualMachineRelocateSpecDiskLocator", "." ]
[ "func", "diskRelocateListString", "(", "relocators", "[", "]", "types", ".", "VirtualMachineRelocateSpecDiskLocator", ")", "string", "{", "var", "out", "[", "]", "string", "\n", "for", "_", ",", "relocate", ":=", "range", "relocators", "{", "<mask>", "=", "app...
4,019
all-4020
[ "Parameter", "callback", "has", "type", "C", ".", "GLDEBUGPROCARB", "." ]
[ "func", "DebugMessageCallbackARB", "(", "callback", "unsafe", ".", "Pointer", ",", "userParam", "unsafe", ".", "Pointer", ")", "{", "C", ".", "glowDebugMessageCallbackARB", "(", "gpDebugMessageCallbackARB", ",", "(", "C", ".", "GLDEBUGPROCARB", ")", "(", "unsafe",...
4,020
all-4021
[ "pickCompactLevel", "determines", "which", "level", "to", "compact", ".", "Based", "on", ":", "https", ":", "//", "github", ".", "com", "/", "facebook", "/", "rocksdb", "/", "wiki", "/", "Leveled", "-", "Compaction" ]
[ "func", "(", "s", "*", "levelsController", ")", "pickCompactLevels", "(", ")", "(", "prios", "[", "]", "compactionPriority", ")", "{", "// This function must use identical criteria for guaranteeing compaction's progress that", "// addLevel0Table uses.", "// cstatus is checked to ...
4,021
all-4022
[ "Title", "yields", "the", "initial", "title", "text", "of", "the", "github", "issue", "." ]
[ "func", "(", "fj", "*", "FlakyJob", ")", "Title", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "fj", ".", "<mask>", ",", "*", "fj", ".", "FlakeCount", ")", "\n", "}" ]
4,022
all-4023
[ "Run", "runs", "the", "ECS", "Agent", "App", ".", "It", "returns", "an", "exit", "code", "which", "is", "used", "by", "main", "()", "to", "set", "the", "status", "code", "for", "the", "program" ]
[ "func", "Run", "(", "arguments", "[", "]", "string", ")", "int", "{", "defer", "log", ".", "Flush", "(", ")", "\n\n", "parsedArgs", ",", "err", ":=", "args", ".", "New", "(", "arguments", ")", "\n", "if", "err", "!=", "nil", "{", "return", "exitcod...
4,023
all-4024
[ "IncrementByValue", "updates", "counter", "by", "supplied", "value" ]
[ "func", "(", "m", "*", "CirconusMetrics", ")", "IncrementByValue", "(", "metric", "<mask>", ",", "val", "uint64", ")", "{", "m", ".", "Add", "(", "metric", ",", "val", ")", "\n", "}" ]
4,024
all-4025
[ "WaitForAllUnprocessedRecords", "blocks", "execution", "until", "all", "unprocessed", "log", "records", "are", "processed", ".", "Since", "this", "library", "implements", "async", "logging", "it", "is", "possible", "to", "have", "unprocessed", "logs", "at", "the", ...
[ "func", "WaitForAllUnprocessedRecords", "(", ")", "{", "<mask>", ".", "Lock", "(", ")", "\n", "var", "wg", "sync", ".", "WaitGroup", "\n", "for", "_", ",", "logger", ":=", "range", "loggers", "{", "wg", ".", "Add", "(", "1", ")", "\n", "go", "func", ...
4,025
all-4026
[ "KindProperties", "returns", "all", "the", "indexed", "properties", "for", "the", "given", "kind", ".", "The", "properties", "are", "returned", "as", "a", "map", "of", "property", "names", "to", "a", "slice", "of", "the", "representation", "types", ".", "The...
[ "func", "KindProperties", "(", "ctx", "context", ".", "<mask>", ",", "kind", "string", ")", "(", "map", "[", "string", "]", "[", "]", "string", ",", "error", ")", "{", "// TODO(djd): Support range queries.", "kindKey", ":=", "NewKey", "(", "ctx", ",", "kin...
4,026
all-4027
[ "Disconnect", "is", "a", "wrapper", "around", "gtk_accel_group_disconnect", "()", "." ]
[ "func", "(", "v", "*", "AccelGroup", ")", "Disconnect", "(", "f", "<mask>", "{", "}", ")", "{", "closure", ",", "_", ":=", "glib", ".", "ClosureNew", "(", "f", ")", "\n", "cl", ":=", "(", "*", "C", ".", "struct__GClosure", ")", "(", "unsafe", "."...
4,027
all-4028
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "<mask>", ")", "Locator", "(", "api", "*", "API", ")", "*", "ServerLocator", "{", "return", "api", ".", "ServerLocator", "(", "r", ".", "Href", ")", "\n", "}" ]
4,028
all-4029
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform4iv", "(", "program", "uint32", ",", "location", "int32", ",", "count", "int32", ",", "<mask>", "*", "int32", ")", "{", "syscall", ".", "Syscall6", "(", "gpProgramUniform4iv", ",", "4", ",", "uintptr", "(", "program", ")", ",", "uint...
4,029
all-4030
[ "Kind", "is", "an", "option", "for", "Dag", ".", "Put", "which", "specifies", "the", "format", "that", "the", "dag", "will", "be", "added", "as", ".", "Default", "is", "cbor", "." ]
[ "func", "(", "dagOpts", ")", "Kind", "(", "<mask>", "string", ")", "DagPutOption", "{", "return", "func", "(", "opts", "*", "DagPutSettings", ")", "error", "{", "opts", ".", "Kind", "=", "kind", "\n", "return", "nil", "\n", "}", "\n", "}" ]
4,030
all-4031
[ "PutSignatures", "adds", "the", "given", "signatures", "to", "the", "docker", "tarfile", "(", "currently", "not", "supported", ")", ".", "MUST", "be", "called", "after", "PutManifest", "(", "signatures", "reference", "manifest", "contents", ")" ]
[ "func", "(", "d", "*", "Destination", ")", "PutSignatures", "(", "ctx", "context", ".", "Context", ",", "signatures", "[", "]", "[", "]", "<mask>", ")", "error", "{", "if", "len", "(", "signatures", ")", "!=", "0", "{", "return", "errors", ".", "Erro...
4,031
all-4032
[ "GetTitleAlignOk", "returns", "a", "tuple", "with", "the", "TitleAlign", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "d", "*", "DistributionDefinition", ")", "GetTitleAlignOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "d", "==", "nil", "||", "d", ".", "TitleAlign", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "...
4,032
all-4033
[ "Stability", ":", "***", "EXPERIMENTAL", "***", "Get", "all", "active", "provisioners", ".", "The", "term", "provisioner", "is", "taken", "broadly", "to", "mean", "anything", "with", "a", "provisionerId", ".", "This", "does", "not", "necessarily", "mean", "the...
[ "func", "(", "queue", "*", "Queue", ")", "ListProvisioners", "(", "continuationToken", ",", "limit", "string", ")", "(", "*", "ListProvisionersResponse", ",", "error", ")", "{", "v", ":=", "url", ".", "Values", "{", "}", "\n", "if", "continuationToken", "!...
4,033
all-4034
[ "acquireDirectoryLock", "gets", "a", "lock", "on", "the", "directory", "(", "using", "flock", ")", ".", "If", "this", "is", "not", "read", "-", "only", "it", "will", "also", "write", "our", "pid", "to", "dirPath", "/", "pidFileName", "for", "convenience", ...
[ "func", "acquireDirectoryLock", "(", "dirPath", "string", ",", "pidFileName", "string", ",", "readOnly", "bool", ")", "(", "*", "directoryLockGuard", ",", "error", ")", "{", "// Convert to absolute path so that Release still works even if we do an unbalanced", "// chdir in th...
4,034
all-4035
[ "export", "FindSequenceOnDiskPad" ]
[ "func", "FindSequenceOnDiskPad", "(", "pattern", "*", "C", ".", "char", ",", "padStyle", "C", ".", "int", ")", "(", "FileSeqId", ",", "Error", ")", "{", "str", ":=", "C", ".", "GoString", "(", "pattern", ")", "\n", "// Caller is responsible for freeing error...
4,035
all-4036
[ "tryMerge", "attempts", "1", "merge", "and", "returns", "a", "bool", "indicating", "if", "we", "should", "try", "to", "merge", "the", "remaining", "PRs", "and", "possibly", "an", "error", "." ]
[ "func", "tryMerge", "(", "mergeFunc", "func", "(", ")", "error", ")", "(", "bool", ",", "error", ")", "{", "var", "err", "error", "\n", "const", "maxRetries", "=", "3", "\n", "backoff", ":=", "time", ".", "Second", "*", "4", "\n", "for", "retry", "...
4,036
all-4037
[ "Copy", "returns", "a", "deep", "copy", "of", "the", "current", "configuration", ".", "This", "is", "useful", "because", "the", "nested", "data", "structures", "may", "be", "shared", "." ]
[ "func", "(", "c", "*", "Config", ")", "Copy", "(", ")", "*", "Config", "{", "<mask>", "o", "Config", "\n\n", "o", ".", "Consul", "=", "c", ".", "Consul", "\n\n", "if", "c", ".", "Consul", "!=", "nil", "{", "o", ".", "Consul", "=", "c", ".", "...
4,037
all-4038
[ "Merge", "combines", "all", "values", "in", "this", "configuration", "with", "the", "values", "in", "the", "other", "configuration", "with", "values", "in", "the", "other", "configuration", "taking", "precedence", ".", "Maps", "and", "slices", "are", "merged", ...
[ "func", "(", "c", "*", "VaultConfig", ")", "Merge", "(", "o", "*", "VaultConfig", ")", "*", "VaultConfig", "{", "if", "c", "==", "nil", "{", "if", "o", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "return", "o", ".", "Copy", "(", ")", "\...
4,038
all-4039
[ "SetDecorationLayout", "is", "a", "wrapper", "around", "gtk_header_bar_set_decoration_layout", "()", "." ]
[ "func", "(", "v", "*", "HeaderBar", ")", "SetDecorationLayout", "(", "layout", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "<mask>", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "...
4,039
all-4040
[ "/", "*", "polymorph", "RouteWrapper", "error", "false", "/", "*", "polymorph", "RouteWrapper", "message", "false", "/", "*", "polymorph", "RouteWrapper", "route", "false", "Validate", "validates", "this", "route", "wrapper" ]
[ "func", "(", "m", "*", "RouteWrapper", ")", "Validate", "(", "formats", "strfmt", ".", "Registry", ")", "error", "{", "var", "res", "[", "]", "error", "\n\n", "if", "err", ":=", "m", ".", "validateError", "(", "formats", ")", ";", "err", "!=", "nil",...
4,040
all-4041
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetInlineStylesForNodeParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44", "(", ...
4,041
all-4042
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "TakeResponseBodyAsStreamReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoFetch", "(", "&", "w", ",", ...
4,042
all-4043
[ "GetLabelOk", "returns", "a", "tuple", "with", "the", "Label", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TileDefMarker", ")", "GetLabelOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "...
4,043
all-4044
[ "Write", "writes", "p", "into", "response", "body", "." ]
[ "func", "(", "ctx", "*", "RequestCtx", ")", "Write", "(", "p", "[", "]", "byte", ")", "(", "int", ",", "error", ")", "{", "ctx", ".", "<mask>", ".", "AppendBody", "(", "p", ")", "\n", "return", "len", "(", "p", ")", ",", "nil", "\n", "}" ]
4,044
all-4045
[ "Compact", "implements", "gRPC", "KVServer", ".", "Compact", "compacts", "the", "event", "history", "in", "s", ".", "User", "should", "compact", "the", "event", "history", "periodically", "or", "it", "will", "grow", "infinitely", "." ]
[ "func", "(", "s", "*", "etcdStore", ")", "Compact", "(", "ctx", "context", ".", "Context", ",", "req", "*", "etcdserverpb", ".", "CompactionRequest", ")", "(", "*", "etcdserverpb", ".", "CompactionResponse", ",", "error", ")", "{", "// We don't have snapshotti...
4,045
all-4046
[ "DisconnectKey", "is", "a", "wrapper", "around", "gtk_accel_group_disconnect_key", "()", "." ]
[ "func", "(", "v", "*", "AccelGroup", ")", "DisconnectKey", "(", "key", "uint", ",", "mods", "gdk", ".", "ModifierType", ")", "{", "C", ".", "gtk_accel_group_disconnect_key", "(", "v", ".", "native", "(", ")", ",", "C", ".", "guint", "(", "key", ")", ...
4,046
all-4047
[ "/", "*", "1" ]
[ "func", "(", "n", "ACFullname", ")", "Version", "(", ")", "string", "{", "split", ":=", "strings", ".", "Split", "(", "string", "(", "n", ")", ",", "\"", "\"", ")", "\n", "if", "len", "(", "split", ")", "==", "1", "{", "return", "\"", "\"", "\n...
4,047
all-4048
[ "Count", "returns", "the", "total", "number", "of", "documents", "in", "the", "collection", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "Count", "(", ")", "(", "n", "int", ",", "err", "error", ")", "{", "return", "c", ".", "Find", "(", "nil", ")", ".", "Count", "(", ")", "\n", "}" ]
4,048
all-4049
[ "The", "Add", "method", "takes", "a", "variable", "number", "of", "string", "arguments", "and", "adds", "those", "files", "to", "the", "watch", "list", "returning", "the", "number", "of", "files", "added", "." ]
[ "func", "(", "w", "*", "Watcher", ")", "Add", "(", "inpaths", "...", "string", ")", "{", "var", "paths", "[", "]", "string", "\n", "for", "_", ",", "path", ":=", "range", "inpaths", "{", "matches", ",", "err", ":=", "filepath", ".", "Glob", "(", ...
4,049
all-4050
[ "Fill", "fills", "the", "image", "with", "a", "color", ".", "This", "affects", "not", "only", "the", "(", "0", "0", ")", "-", "(", "width", "height", ")", "region", "but", "also", "the", "whole", "framebuffer", "region", "." ]
[ "func", "(", "i", "*", "<mask>", ")", "Fill", "(", "r", ",", "g", ",", "b", ",", "a", "uint8", ")", "{", "backendsM", ".", "Lock", "(", ")", "\n", "if", "i", ".", "disposed", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "i", ".", ...
4,050
all-4051
[ "NewMemoryStore", "创建敏感词内存存储" ]
[ "func", "NewMemoryStore", "(", "config", "MemoryConfig", ")", "(", "*", "MemoryStore", ",", "error", ")", "{", "memStore", ":=", "&", "MemoryStore", "{", "dataStore", ":", "cmap", ".", "NewConcurrencyMap", "(", ")", ",", "}", "\n", "if", "config", ".", "...
4,051
all-4052
[ "pack9", "packs", "9", "values", "from", "in", "using", "3", "bits", "each" ]
[ "func", "pack9", "(", "in", "[", "]", "uint32", ")", "uint32", "{", "return", "2", "<<", "28", "|", "in", "[", "0", "]", "<<", "1", "|", "in", "[", "1", "]", "<<", "4", "|", "in", "[", "2", "]", "<<", "7", "|", "<mask>", "[", "3", "]", ...
4,052
all-4053
[ "isHTMLComment", "returns", "true", "if", "the", "line", "is", "an", "HTML", "comment", "." ]
[ "func", "(", "l", "*", "<mask>", ")", "isHTMLComment", "(", ")", "bool", "{", "return", "len", "(", "l", ".", "tokens", ")", ">", "0", "&&", "l", ".", "tokens", "[", "0", "]", "==", "slash", "+", "slash", "\n", "}" ]
4,053
all-4054
[ "expandVMwareDVSConfigSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VMwareDVSConfigSpec", "." ]
[ "func", "expandVMwareDVSConfigSpec", "(", "d", "*", "schema", ".", "ResourceData", ")", "*", "<mask>", ".", "VMwareDVSConfigSpec", "{", "obj", ":=", "&", "types", ".", "VMwareDVSConfigSpec", "{", "DVSConfigSpec", ":", "types", ".", "DVSConfigSpec", "{", "Name", ...
4,054
all-4055
[ "inventoryMetrics", "creates", "list", "of", "active", "metrics", "in", "check", "bundle" ]
[ "func", "(", "cm", "*", "CheckManager", ")", "inventoryMetrics", "(", ")", "{", "availableMetrics", ":=", "<mask>", "(", "map", "[", "string", "]", "bool", ")", "\n", "for", "_", ",", "metric", ":=", "range", "cm", ".", "checkBundle", ".", "Metrics", "...
4,055
all-4056
[ "readPixelsFromGPU", "reads", "the", "pixels", "from", "GPU", "and", "resolves", "the", "image", "s", "stale", "state", "." ]
[ "func", "(", "i", "*", "<mask>", ")", "readPixelsFromGPU", "(", ")", "{", "pix", ":=", "i", ".", "image", ".", "Pixels", "(", ")", "\n", "i", ".", "basePixels", "=", "&", "Pixels", "{", "pixels", ":", "pix", ",", "length", ":", "len", "(", "pix",...
4,056
all-4057
[ "AddSystemGroup", "adds", "a", "system", "group", "." ]
[ "func", "AddSystemGroup", "(", "name", "string", ",", "members", "...", "string", ")", "(", "gid", "int", ",", "err", "error", ")", "{", "s", ":=", "NewGShadow", "(", "name", ",", "<mask>", "...", ")", "\n", "if", "err", "=", "s", ".", "Add", "(", ...
4,057
all-4058
[ "SetLevel", "sets", "an", "individual", "level", "and", "its", "associated", "display", "effect", "." ]
[ "func", "(", "w", "*", "<mask>", ")", "SetLevel", "(", "level", "string", ",", "effect", "string", ")", "{", "levels", ":=", "w", ".", "Levels", "(", ")", "\n", "levels", "[", "level", "]", "=", "effect", "\n", "w", ".", "SetLevels", "(", "levels",...
4,058
all-4059
[ "GetProjectUsage", "returns", "the", "current", "consumption" ]
[ "func", "GetProjectUsage", "(", "path", "string", ",", "id", "uint32", ")", "(", "int64", ",", "error", ")", "{", "// Get the backing device", "devPath", ",", "err", ":=", "devForPath", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "-"...
4,059
all-4060
[ "interface", "similar", "to", "fmt", "package", "Errorm", "returns", "error", "instance", "with", "formatted", "error", "message", ".", "This", "is", "same", "as", "fmt", ".", "Errorf", "but", "uses", "gstring", "formatting", "." ]
[ "func", "Errorm", "(", "format", "string", ",", "args", "map", "[", "string", "]", "interface", "{", "}", ")", "error", "{", "f", ",", "a", ":=", "gformat", "(", "<mask>", ",", "args", ")", "\n", "return", "fmt", ".", "Errorf", "(", "f", ",", "a"...
4,060
all-4061
[ "NewShowCmd", "creates", "a", "new", "ShowCmd", "instance", "." ]
[ "func", "NewShowCmd", "(", "releaseRepo", "<mask>", ".", "Release", ",", "release", "string", ")", "*", "ShowCmd", "{", "return", "&", "ShowCmd", "{", "releaseRepo", ":", "releaseRepo", ",", "release", ":", "release", ",", "}", "\n", "}" ]
4,061
all-4062
[ "GetLayoutTypeOk", "returns", "a", "tuple", "with", "the", "LayoutType", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GroupDefinition", ")", "GetLayoutTypeOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "LayoutType", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return",...
4,062
all-4063
[ "NewState", "creates", "a", "MultiState", "instance", "based", "on", "the", "statesDescription", "string", ".", "statesDescription", "is", "a", "comma", "separated", "list", "of", "events", ".", "Events", "can", "be", "prepended", "with", "!", "(", "bang", ")"...
[ "func", "NewState", "(", "statesDescription", "string", ")", "State", "{", "states", ":=", "[", "]", "State", "{", "}", "\n\n", "if", "statesDescription", "==", "\"", "\"", "{", "// Create an infinite inactive state", "return", "&", "InactiveState", "{", "entry"...
4,063
all-4064
[ "/", "*", "func", "(", "ipvs", "*", "IpvsClient", ")", "modifyFWMDest", "(", "method", "string", "fwmark", "uint32", "rip", "string", "vaf", "uint16", "port", "uint16", "amap", "map", "[", "string", "]", "SerDes", ")", "{" ]
[ "func", "(", "ipvs", "*", "IpvsClient", ")", "AddFWMDest", "(", "fwmark", "uint32", ",", "rip", "string", ",", "vaf", "uint16", ",", "port", "uint16", ",", "weight", "int32", ")", "error", "{", "return", "ipvs", ".", "AddFWMDestFWD", "(", "fwmark", ",", ...
4,064
all-4065
[ "cmps", "guards", "the", "txn", "from", "updates", "to", "read", "set" ]
[ "func", "(", "<mask>", "readSet", ")", "cmps", "(", ")", "[", "]", "v3", ".", "Cmp", "{", "cmps", ":=", "make", "(", "[", "]", "v3", ".", "Cmp", ",", "0", ",", "len", "(", "rs", ")", ")", "\n", "for", "k", ",", "rk", ":=", "range", "rs", ...
4,065
all-4066
[ "GetTransactions", "gets", "transactions", "associated", "with", "an", "account" ]
[ "func", "(", "c", "Client", ")", "GetTransactions", "(", "<mask>", "int", ")", "(", "*", "transactions", ",", "error", ")", "{", "params", ":=", "map", "[", "string", "]", "int", "{", "\"", "\"", ":", "page", ",", "}", "\n", "holder", ":=", "transa...
4,066
all-4067
[ "GorillaHost", "----------------------------------------------------------------" ]
[ "func", "NewGorillaHost", "(", "<mask>", "string", ")", "(", "*", "GorillaHost", ",", "error", ")", "{", "pattern", ",", "err", ":=", "gorillaPattern", "(", "pattern", ",", "true", ",", "false", ",", "false", ")", "\n", "if", "err", "!=", "nil", "{", ...
4,067
all-4068
[ "NewLogger", "returns", "a", "Logger", "that", "writes", "to", "the", "given", "writer", "." ]
[ "func", "NewLogger", "(", "writer", "<mask>", ".", "Writer", ",", "fields", "...", "LogField", ")", "Logger", "{", "return", "&", "writerLogger", "{", "writer", ",", "fields", "}", "\n", "}" ]
4,068
all-4069
[ "ClientIP", "returns", "the", "client", "IP", "embedded", "in", "the", "context", "or", "nil", "if", "none", "were", "found", "." ]
[ "func", "ClientIP", "(", "ctx", "context", ".", "<mask>", ")", "net", ".", "IP", "{", "ip", ",", "_", ":=", "ctx", ".", "Value", "(", "clientIPKey", "{", "}", ")", ".", "(", "net", ".", "IP", ")", "\n", "return", "ip", "\n", "}" ]
4,069
all-4070
[ "VerifyLeader", "is", "used", "to", "ensure", "the", "current", "node", "is", "still", "the", "leader", ".", "This", "can", "be", "done", "to", "prevent", "stale", "reads", "when", "a", "new", "leader", "has", "potentially", "been", "elected", "." ]
[ "func", "(", "r", "*", "Raft", ")", "VerifyLeader", "(", ")", "Future", "{", "metrics", ".", "IncrCounter", "(", "[", "]", "string", "{", "\"", "\"", ",", "\"", "\"", "}", ",", "1", ")", "\n", "verifyFuture", ":=", "&", "verifyFuture", "{", "}", ...
4,070
all-4071
[ "UseProbe", "returns", "an", "option", "that", "specifies", "an", "APICheckProbe", "implementation", "to", "use", "." ]
[ "func", "UseProbe", "(", "probe", "APICheckProbe", ")", "APICheckOption", "{", "<mask>", "func", "(", "s", "*", "APICheckSuite", ")", "{", "s", ".", "opts", ".", "Probe", "=", "probe", "\n", "}", "\n", "}" ]
4,071
all-4072
[ "Do", "executes", "Runtime", ".", "awaitPromise", "against", "the", "provided", "context", ".", "returns", ":", "result", "-", "Promise", "result", ".", "Will", "contain", "rejected", "value", "if", "promise", "was", "rejected", ".", "exceptionDetails", "-", "...
[ "func", "(", "p", "*", "AwaitPromiseParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "result", "*", "RemoteObject", ",", "exceptionDetails", "*", "ExceptionDetails", ",", "err", "error", ")", "{", "// execute", "var", "res", "AwaitPromise...
4,072
all-4073
[ "SetTolerance", "is", "a", "wrapper", "around", "cairo_set_tolerance", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetTolerance", "(", "tolerance", "float64", ")", "{", "C", ".", "cairo_set_tolerance", "(", "v", ".", "native", "(", ")", ",", "C", ".", "double", "(", "tolerance", ")", ")", "\n", "}" ]
4,073
all-4074
[ "BindUnit", "makes", "the", "bind", "between", "the", "binder", "and", "an", "unit", "." ]
[ "func", "(", "si", "*", "ServiceInstance", ")", "BindUnit", "(", "app", "bind", ".", "App", ",", "unit", "bind", ".", "Unit", ")", "error", "{", "s", ",", "err", ":=", "Get", "(", "si", ".", "ServiceName", ")", "\n", "if", "err", "!=", "nil", "{"...
4,074
all-4075
[ "DropDatabase", "drop", "database", "of", "any", "given", "name" ]
[ "func", "(", "s", "*", "<mask>", ")", "DropDatabase", "(", "name", "string", ")", "error", "{", "return", "s", ".", "session", ".", "DB", "(", "name", ")", ".", "DropDatabase", "(", ")", "\n", "}" ]
4,075
all-4076
[ "SelectedItemText", "returns", "text", "of", "currently", "selected", "item", "or", "empty", "sting", "if", "nothing", "is", "selected", "or", "ListBox", "is", "empty", "." ]
[ "func", "(", "l", "*", "ListBox", ")", "SelectedItemText", "(", ")", "string", "{", "if", "l", ".", "currSelection", "==", "-", "1", "{", "return", "\"", "\"", "\n", "}", "\n\n", "return", "l", ".", "<mask>", "[", "l", ".", "currSelection", "]", "\...
4,076
all-4077
[ "FirstError", "returns", "the", "first", "non", "nil", "error", "or", "nil" ]
[ "func", "FirstError", "(", "errs", "...", "error", ")", "error", "{", "for", "_", ",", "err", ":=", "<mask>", "errs", "{", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "}", "\n", "return", "nil", "\n", "}" ]
4,077
all-4078
[ "SetNodeValue", "sets", "node", "value", "for", "a", "node", "with", "given", "id", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "DOM#method", "-", "setNodeValue", "pa...
[ "func", "SetNodeValue", "(", "nodeID", "cdp", ".", "NodeID", ",", "value", "string", ")", "*", "SetNodeValueParams", "{", "return", "&", "SetNodeValueParams", "{", "NodeID", ":", "nodeID", ",", "Value", ":", "<mask>", ",", "}", "\n", "}" ]
4,078
all-4079
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventContextChanged", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio4", "(", "&", "w", ",", "v", "...
4,079
all-4080
[ "Do", "executes", "DOM", ".", "setFileInputFiles", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetFileInputFilesParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetFileInputFiles", ",", "p", ",", "nil", ")", "\n", "}" ]
4,080
all-4081
[ "GenericCommentHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "." ]
[ "func", "(", "pa", "*", "ConfigAgent", ")", "GenericCommentHandlers", "(", "owner", ",", "repo", "string", ")", "<mask>", "[", "string", "]", "GenericCommentHandler", "{", "pa", ".", "mut", ".", "Lock", "(", ")", "\n", "defer", "pa", ".", "mut", ".", "...
4,081
all-4082
[ "Labels", "returns", "the", "labels", "from", "the", "builder", ".", "If", "no", "modifications", "were", "made", "the", "original", "labels", "are", "returned", "." ]
[ "func", "(", "b", "*", "Builder", ")", "Labels", "(", ")", "Labels", "{", "if", "len", "(", "b", ".", "del", ")", "==", "0", "&&", "len", "(", "b", ".", "add", ")", "==", "0", "{", "return", "b", ".", "base", "\n", "}", "\n\n", "// In the gen...
4,082
all-4083
[ "export", "FileSequence_Copy" ]
[ "func", "FileSequence_Copy", "(", "id", "FileSeqId", ")", "FileSeqId", "{", "fs", ",", "ok", ":=", "sFileSeqs", ".", "Get", "(", "id", ")", "\n", "if", "!", "ok", "{", "return", "0", "\n", "}", "\n\n", "copyFs", ",", "_", ":=", "fileseq", ".", "New...
4,083
all-4084
[ "goAttach", "creates", "a", "goroutine", "on", "a", "given", "function", "and", "tracks", "it", "using", "the", "etcdserver", "waitgroup", "." ]
[ "func", "(", "s", "*", "EtcdServer", ")", "goAttach", "(", "f", "func", "(", ")", ")", "{", "s", ".", "wgMu", ".", "RLock", "(", ")", "// this blocks with ongoing close(s.stopping)", "\n", "defer", "s", ".", "wgMu", ".", "RUnlock", "(", ")", "\n", "<ma...
4,084
all-4085
[ "Draw", "the", "droid", "on", "a", "certain", "position", "." ]
[ "func", "Draw", "(", "gc", "draw2d", ".", "GraphicContext", ",", "x", ",", "y", "float64", ")", "{", "// set the fill and stroke color of the droid", "gc", ".", "SetFillColor", "(", "<mask>", ".", "RGBA", "{", "0x44", ",", "0xff", ",", "0x44", ",", "0xff", ...
4,085
all-4086
[ "Various", "ways", "to", "sort", "the", "player", "standings", "using", "helper", "structs", "that", "implement", "different", "comparison", "methods", "." ]
[ "func", "(", "s", "PlayerStandings", ")", "ByWinnings", "(", "oldTieBreak", "bool", ")", "{", "if", "oldTieBreak", "{", "sort", ".", "Sort", "(", "<mask>", ".", "Reverse", "(", "ByWinningsOld", "{", "s", "}", ")", ")", "\n", "}", "else", "{", "sort", ...
4,086
all-4087
[ "NewFloodsubWithProtocols", "returns", "a", "new", "floodsub", "-", "enabled", "PubSub", "objecting", "using", "the", "protocols", "specified", "in", "ps", "." ]
[ "func", "NewFloodsubWithProtocols", "(", "ctx", "context", ".", "Context", ",", "h", "<mask>", ".", "Host", ",", "ps", "[", "]", "protocol", ".", "ID", ",", "opts", "...", "Option", ")", "(", "*", "PubSub", ",", "error", ")", "{", "rt", ":=", "&", ...
4,087
all-4088
[ "GetOther", "returns", "node", "for", "given", "access", "token", ".", "Returns", "false", "if", "cluster", "is", "nil", "has", "only", "one", "element", "or", "if", "node", "that", "was", "found", "has", "same", "listen", "address", "as", "current", "one"...
[ "func", "(", "c", "*", "Cluster", ")", "GetOther", "(", "accessToken", "string", ")", "(", "*", "Node", ",", "bool", ")", "{", "if", "c", "==", "nil", "{", "return", "nil", ",", "false", "\n", "}", "\n", "if", "c", ".", "Len", "(", ")", "==", ...
4,088
all-4089
[ "Restart", "a", "host", ".", "This", "may", "just", "call", "Stop", "()", ";", "Start", "()", "if", "the", "provider", "does", "not", "have", "any", "special", "restart", "behaviour", "." ]
[ "func", "(", "d", "*", "SerialDriver", ")", "Restart", "(", ")", "<mask>", "{", "d", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "Unlock", "(", ")", "\n", "return", "d", ".", "Driver", ".", "Restart", "(", ")", "\n", "}" ]
4,089
all-4090
[ "Helper", "function" ]
[ "func", "rcodezeroChangesByZone", "(", "zones", "[", "]", "*", "rc0", ".", "Zone", ",", "changeSet", "[", "]", "*", "rc0", ".", "RRSetChange", ")", "map", "[", "string", "]", "[", "]", "*", "rc0", ".", "RRSetChange", "{", "changes", ":=", "make", "("...
4,090
all-4091
[ "SetLevel", "sets", "the", "log", "level", "for", "the", "given", "module", "." ]
[ "func", "(", "l", "*", "moduleLeveled", ")", "SetLevel", "(", "level", "Level", ",", "module", "string", ")", "{", "l", ".", "levels", "[", "module", "]", "=", "<mask>", "\n", "}" ]
4,091
all-4092
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetShowHitTestBordersParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay3", "(", "&", "w", ",", ...
4,092
all-4093
[ "ListIssueEvents", "returns", "issue", "events" ]
[ "func", "(", "f", "*", "FakeClient", ")", "ListIssueEvents", "(", "<mask>", ",", "repo", "string", ",", "number", "int", ")", "(", "[", "]", "github", ".", "ListedIssueEvent", ",", "error", ")", "{", "return", "append", "(", "[", "]", "github", ".", ...
4,093
all-4094
[ "ReceiveComment", "calls", "plugin", ".", "ReceiveComment", "()", "if", "the", "author", "is", "not", "filtered" ]
[ "func", "(", "a", "*", "AuthorFilterPluginWrapper", ")", "ReceiveComment", "(", "comment", "sql", ".", "Comment", ")", "[", "]", "Point", "{", "if", "a", ".", "<mask>", "(", "comment", ".", "User", ")", "{", "return", "nil", "\n", "}", "\n", "return", ...
4,094
all-4095
[ "Write", "writes", "the", "configuration", "in", "c", "to", "this", "machine", "s", "Pachyderm", "config", "file", "." ]
[ "func", "(", "c", "*", "Config", ")", "Write", "(", ")", "error", "{", "rawConfig", ",", "err", ":=", "json", ".", "MarshalIndent", "(", "c", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}"...
4,095
all-4096
[ "ParseURL", "parses", "a", "MongoDB", "URL", "as", "accepted", "by", "the", "Dial", "function", "and", "returns", "a", "value", "suitable", "for", "providing", "into", "DialWithInfo", ".", "See", "Dial", "for", "more", "details", "on", "the", "format", "of",...
[ "func", "ParseURL", "(", "url", "string", ")", "(", "*", "DialInfo", ",", "error", ")", "{", "uinfo", ",", "err", ":=", "extractURL", "(", "url", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "direct", ":...
4,096
all-4097
[ "newPolicyRequirementFromJSON", "parses", "JSON", "data", "into", "a", "PolicyRequirement", "implementation", "." ]
[ "func", "newPolicyRequirementFromJSON", "(", "data", "[", "]", "byte", ")", "(", "PolicyRequirement", ",", "error", ")", "{", "var", "typeField", "prCommon", "\n", "if", "err", ":=", "json", ".", "Unmarshal", "(", "data", ",", "&", "typeField", ")", ";", ...
4,097
all-4098
[ "needDemux", "returns", "whether", "there", "are", "any", "external", "plugins", "that", "need", "to", "get", "the", "present", "event", "." ]
[ "func", "(", "s", "*", "Server", ")", "needDemux", "(", "eventType", ",", "srcRepo", "string", ")", "[", "]", "plugins", ".", "ExternalPlugin", "{", "var", "matching", "[", "]", "plugins", ".", "ExternalPlugin", "\n", "srcOrg", ":=", "strings", ".", "Spl...
4,098
all-4099
[ "change", "an", "active", "shader", "storage", "block", "binding" ]
[ "func", "ShaderStorageBlockBinding", "(", "<mask>", "uint32", ",", "storageBlockIndex", "uint32", ",", "storageBlockBinding", "uint32", ")", "{", "C", ".", "glowShaderStorageBlockBinding", "(", "gpShaderStorageBlockBinding", ",", "(", "C", ".", "GLuint", ")", "(", "...
4,099
all-4100
[ "ReplaceRegion", "copies", "a", "block", "of", "pixels", "from", "the", "caller", "s", "pointer", "into", "the", "storage", "allocation", "for", "slice", "0", "of", "a", "texture", ".", "Reference", ":", "https", ":", "//", "developer", ".", "apple", ".", ...
[ "func", "(", "t", "Texture", ")", "ReplaceRegion", "(", "region", "Region", ",", "level", "int", ",", "pixelBytes", "unsafe", ".", "Pointer", ",", "bytesPerRow", "int", ")", "{", "r", ":=", "region", ".", "c", "(", ")", "\n", "C", ".", "Texture_Replace...