id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
24,100
all-24101
[ "newExchange", "creates", "and", "adds", "a", "new", "message", "exchange", "to", "this", "set" ]
[ "func", "(", "mexset", "*", "messageExchangeSet", ")", "newExchange", "(", "ctx", "context", ".", "Context", ",", "framePool", "FramePool", ",", "msgType", "messageType", ",", "msgID", "uint32", ",", "bufferSize", "int", ")", "(", "*", "messageExchange", ",", ...
24,101
all-24102
[ "PrintFunc", "outputs", "Print", "log", "returned", "from", "the", "function" ]
[ "func", "(", "g", "*", "Glg", ")", "PrintFunc", "(", "f", "func", "(", ")", "string", ")", "error", "{", "if", "g", ".", "isModeEnable", "(", "PRINT", ")", "{", "return", "g", ".", "<mask>", "(", "PRINT", ",", "\"", "\"", ",", "f", "(", ")", ...
24,102
all-24103
[ "Uniq", "returns", "a", "slice", "containing", "the", "unique", "strings", "found", "in", "items" ]
[ "func", "Uniq", "(", "items", "[", "]", "string", ")", "(", "uniqItems", "[", "]", "string", ")", "{", "sort", ".", "Strings", "(", "items", ")", "\n\n", "lastitem", ":=", "\"", "\"", "\n", "for", "_", ",", "<mask>", ":=", "range", "items", "{", ...
24,103
all-24104
[ "FocusCell", "()", "is", "a", "wrapper", "around", "gtk_tree_view_column_focus_cell", "()", "." ]
[ "func", "(", "v", "*", "TreeViewColumn", ")", "FocusCell", "(", "cell", "*", "CellRenderer", ")", "{", "C", ".", "gtk_tree_view_column_focus_cell", "(", "v", ".", "native", "(", ")", ",", "<mask>", ".", "native", "(", ")", ")", "\n", "}" ]
24,104
all-24105
[ "CertificateSubjContainsTLD", "checks", "whether", "the", "provided", "Certificate", "has", "a", "Subject", "Common", "Name", "or", "DNS", "Subject", "Alternate", "Name", "that", "ends", "in", "the", "provided", "TLD", "label", ".", "If", "IsInTLDMap", "(", "lab...
[ "func", "CertificateSubjInTLD", "(", "c", "*", "x509", ".", "Certificate", ",", "label", "string", ")", "bool", "{", "label", "=", "strings", ".", "ToLower", "(", "label", ")", "\n", "if", "strings", ".", "HasPrefix", "(", "label", ",", "\"", "\"", ")"...
24,105
all-24106
[ "HasExposedPorts", "returns", "whether", "current", "container", "has", "exposed", "ports", "." ]
[ "func", "(", "s", "*", "Container", ")", "HasExposedPorts", "(", ")", "bool", "{", "nodes", ",", "err", ":=", "s", ".", "NetworkNodes", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "false", "\n", "}", "\n\n", "for", "_", ",", "v", ":=...
24,106
all-24107
[ "A", "bit", "-", "mask", "representing", "the", "state", "of", "the", "modifier", "keys", "(", "e", ".", "g", ".", "Control", "Shift", "and", "Alt", ")", "and", "the", "pointer", "buttons", ".", "See", "gdk", ".", "ModifierType", "constants", "." ]
[ "func", "(", "v", "*", "EventMotion", ")", "State", "(", ")", "ModifierType", "{", "c", ":=", "v", ".", "native", "(", ")", ".", "<mask>", "\n", "return", "ModifierType", "(", "c", ")", "\n", "}" ]
24,107
all-24108
[ "MarshalBinary", "interface", "implementation" ]
[ "func", "(", "m", "*", "AppsWrapper", ")", "MarshalBinary", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "if", "m", "==", "nil", "{", "return", "nil", ",", "nil", "\n", "}", "\n", "return", "swag", ".", "WriteJSON", "(", "m", ")", ...
24,108
all-24109
[ "userAddCommandFunc", "executes", "the", "user", "add", "command", "." ]
[ "func", "userAddCommandFunc", "(", "cmd", "*", "cobra", ".", "Command", ",", "args", "[", "]", "string", ")", "{", "if", "len", "(", "args", ")", "!=", "1", "{", "ExitWithError", "(", "ExitBadArgs", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")", ...
24,109
all-24110
[ "PeakHeader", "get", "only", "header", "part", "from", "tail", "segment", "from", "stack", "without", "remove" ]
[ "func", "(", "s", "*", "Stack", ")", "PeakHeader", "(", ")", "(", "header", "[", "]", "byte", ",", "err", "error", ")", "{", "if", "s", ".", "depth", "==", "0", "{", "return", "nil", ",", "nil", "\n", "}", "\n", "s", ".", "guard", ".", "Lock"...
24,110
all-24111
[ "Close", "removes", "resources", "associated", "with", "an", "initialized", "ImageDestination", "if", "any", "." ]
[ "func", "(", "d", "*", "ostreeImageDestination", ")", "Close", "(", ")", "error", "{", "if", "d", ".", "repo", "!=", "nil", "{", "C", ".", "g_object_unref", "(", "C", ".", "gpointer", "(", "d", ".", "repo", ")", ")", "\n", "}", "\n", "return", "<...
24,111
all-24112
[ "RestServer", "creates", "an", "http", ".", "Server", "capable", "of", "handling", "requests", "against", "the", "LXD", "REST", "API", "endpoint", "." ]
[ "func", "RestServer", "(", "d", "*", "Daemon", ")", "*", "http", ".", "Server", "{", "/* Setup the web server */", "mux", ":=", "mux", ".", "NewRouter", "(", ")", "\n", "mux", ".", "StrictSlash", "(", "false", ")", "\n\n", "mux", ".", "HandleFunc", "(", ...
24,112
all-24113
[ "Config", "returns", "the", "agent", "current", "Configuration", "." ]
[ "func", "(", "pa", "*", "ConfigAgent", ")", "Config", "(", ")", "*", "<mask>", "{", "pa", ".", "mut", ".", "Lock", "(", ")", "\n", "defer", "pa", ".", "mut", ".", "Unlock", "(", ")", "\n", "return", "pa", ".", "configuration", "\n", "}" ]
24,113
all-24114
[ "Removes", "given", "channel", "called", "by", "Channel", ".", "Close", "." ]
[ "func", "(", "hub", "*", "hub", ")", "remove", "(", "cn", "*", "<mask>", ")", "{", "hub", ".", "Lock", "(", ")", "\n", "defer", "hub", ".", "Unlock", "(", ")", "\n", "cn", ",", "ok", ":=", "hub", ".", "channels", "[", "cn", ".", "name", "]", ...
24,114
all-24115
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "InheritedStyleEntry", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34", "(", "&", "...
24,115
all-24116
[ "Repaint", "draws", "the", "control", "on", "its", "View", "surface" ]
[ "func", "(", "e", "*", "EditField", ")", "Draw", "(", ")", "{", "if", "e", ".", "hidden", "{", "return", "\n", "}", "\n\n", "PushAttributes", "(", ")", "\n", "defer", "PopAttributes", "(", ")", "\n\n", "x", ",", "y", ":=", "e", ".", "Pos", "(", ...
24,116
all-24117
[ "Length", "returns", "the", "number", "of", "elements", "present", "in", "the", "LinkedList", "." ]
[ "func", "(", "list", "*", "LinkedList", ")", "Length", "(", ")", "uint", "{", "list", ".", "key", ".", "RLock", "(", ")", "\n", "defer", "list", ".", "key", ".", "RUnlock", "(", ")", "\n\n", "return", "list", ".", "<mask>", "\n", "}" ]
24,117
all-24118
[ "SetRightMargin", "()", "is", "a", "wrapper", "around", "gtk_page_setup_set_right_margin", "()", "." ]
[ "func", "(", "ps", "*", "PageSetup", ")", "SetRightMargin", "(", "margin", "float64", ",", "unit", "Unit", ")", "{", "C", ".", "gtk_page_setup_set_right_margin", "(", "ps", ".", "native", "(", ")", ",", "C", ".", "gdouble", "(", "<mask>", ")", ",", "C"...
24,118
all-24119
[ "PutFileRecords", "returns", "a", "collection", "of", "putFileRecords" ]
[ "func", "PutFileRecords", "(", "etcdClient", "*", "etcd", ".", "Client", ",", "etcdPrefix", "string", ")", "col", ".", "Collection", "{", "return", "col", ".", "NewCollection", "(", "etcdClient", ",", "<mask>", ".", "Join", "(", "etcdPrefix", ",", "putFileRe...
24,119
all-24120
[ "newPeriodic", "creates", "a", "new", "instance", "of", "Periodic", "compactor", "that", "purges", "the", "log", "older", "than", "h", "Duration", "." ]
[ "func", "newPeriodic", "(", "lg", "*", "zap", ".", "Logger", ",", "<mask>", "clockwork", ".", "Clock", ",", "h", "time", ".", "Duration", ",", "rg", "RevGetter", ",", "c", "Compactable", ")", "*", "Periodic", "{", "pc", ":=", "&", "Periodic", "{", "l...
24,120
all-24121
[ "RunsAgainstChanges", "returns", "true", "if", "any", "of", "the", "changed", "input", "paths", "match", "the", "run_if_changed", "regex", "." ]
[ "func", "(", "cm", "RegexpChangeMatcher", ")", "RunsAgainstChanges", "(", "changes", "[", "]", "string", ")", "bool", "{", "for", "_", ",", "<mask>", ":=", "range", "changes", "{", "if", "cm", ".", "reChanges", ".", "MatchString", "(", "change", ")", "{"...
24,121
all-24122
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetIgnoreCertificateErrorsParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1", ...
24,122
all-24123
[ "This", "is", "only", "for", "classic", "App", "Engine", "adapters", "." ]
[ "func", "ClassicContextFromContext", "(", "ctx", "netcontext", ".", "<mask>", ")", "(", "appengine", ".", "Context", ",", "error", ")", "{", "c", ":=", "fromContext", "(", "ctx", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", ",", "errNotAppEng...
24,123
all-24124
[ "Internal", "fast", "path", "for", "Frame", "()", "when", "we", "know", "we", "have", "an", "int", "frame" ]
[ "func", "(", "s", "*", "FileSequence", ")", "frameInt", "(", "frame", "int", ")", "string", "{", "var", "zframe", "string", "\n", "if", "s", ".", "frameSet", "!=", "nil", "{", "zframe", "=", "zfillInt", "(", "frame", ",", "s", ".", "zfill", ")", "\...
24,124
all-24125
[ "Returns", "an", "float", "or", "panics" ]
[ "func", "(", "t", "Typed", ")", "FloatMust", "(", "<mask>", "string", ")", "float64", "{", "f", ",", "exists", ":=", "t", ".", "FloatIf", "(", "key", ")", "\n", "if", "exists", "==", "false", "{", "panic", "(", "\"", "\"", "+", "key", ")", "\n", ...
24,125
all-24126
[ "SortContainerMetrics", "sorts", "a", "slice", "of", "containerMetrics", "by", "InstanceIndex", ".", "The", "input", "slice", "is", "sorted", ";", "the", "return", "value", "is", "simply", "a", "pointer", "to", "the", "same", "slice", "." ]
[ "func", "SortContainerMetrics", "(", "messages", "[", "]", "*", "events", ".", "ContainerMetric", ")", "[", "]", "*", "events", ".", "ContainerMetric", "{", "<mask>", ".", "Sort", "(", "containerMetricSlice", "(", "messages", ")", ")", "\n", "return", "messa...
24,126
all-24127
[ "IsEnabledFor", "returns", "true", "if", "the", "logger", "is", "enabled", "for", "the", "given", "level", "." ]
[ "func", "(", "l", "*", "Logger", ")", "IsEnabledFor", "(", "level", "Level", ")", "bool", "{", "return", "defaultBackend", ".", "IsEnabledFor", "(", "level", ",", "l", ".", "<mask>", ")", "\n", "}" ]
24,127
all-24128
[ "ToFloat32Or", "parses", "as", "a", "float32", "or", "returns", "defaultValue", "on", "error", "." ]
[ "func", "ToFloat32Or", "(", "s", "<mask>", ",", "defaultValue", "float32", ")", "float32", "{", "f", ",", "err", ":=", "strconv", ".", "ParseFloat", "(", "s", ",", "32", ")", "\n", "if", "err", "!=", "nil", "{", "return", "defaultValue", "\n", "}", "...
24,128
all-24129
[ "defaultServerURL", "is", "a", "modified", "copy", "of", "k8s", ".", "io", "/", "kubernets", "/", "pkg", "/", "client", "/", "restclient", ".", "DefaultServerURL", ".", "DefaultServerURL", "converts", "a", "host", "host", ":", "port", "or", "URL", "string", ...
[ "func", "defaultServerURL", "(", "host", "string", ",", "defaultTLS", "bool", ")", "(", "*", "url", ".", "URL", ",", "error", ")", "{", "if", "host", "==", "\"", "\"", "{", "return", "nil", ",", "errors", ".", "Errorf", "(", "\"", "\"", ")", "\n", ...
24,129
all-24130
[ "String", "returns", "the", "name", "of", "e" ]
[ "func", "(", "e", "TrustLineFlags", ")", "String", "(", ")", "string", "{", "<mask>", ",", "_", ":=", "trustLineFlagsMap", "[", "int32", "(", "e", ")", "]", "\n", "return", "name", "\n", "}" ]
24,130
all-24131
[ "MonoRMS", "converts", "the", "buffer", "to", "mono", "and", "apply", "an", "RMS", "treatment", ".", "rms", "=", "sqrt", "(", "(", "1", "/", "n", ")", "*", "(", "x12", "+", "x22", "+", "…", "+", "xn2", ")", ")", "multiplying", "by", "1", "/", "...
[ "func", "MonoRMS", "(", "b", "*", "audio", ".", "FloatBuffer", ",", "windowSize", "int", ")", "error", "{", "if", "b", "==", "nil", "{", "return", "audio", ".", "ErrInvalidBuffer", "\n", "}", "\n", "if", "len", "(", "b", ".", "Data", ")", "==", "0"...
24,131
all-24132
[ "Schema2FromManifest", "creates", "a", "Schema2", "manifest", "instance", "from", "a", "manifest", "blob", "." ]
[ "func", "Schema2FromManifest", "(", "manifest", "[", "]", "<mask>", ")", "(", "*", "Schema2", ",", "error", ")", "{", "s2", ":=", "Schema2", "{", "}", "\n", "if", "err", ":=", "json", ".", "Unmarshal", "(", "manifest", ",", "&", "s2", ")", ";", "er...
24,132
all-24133
[ "SetTimestamp", "creates", "a", "Set", "query", "with", "timestamp", ".", "Set", "assigns", "a", "value", "of", "1", "to", "a", "column", "in", "the", "binary", "matrix", "thus", "associating", "the", "given", "row", "in", "the", "given", "field", "with", ...
[ "func", "(", "f", "*", "Field", ")", "SetTimestamp", "(", "rowIDOrKey", ",", "colIDOrKey", "interface", "{", "}", ",", "timestamp", "<mask>", ".", "Time", ")", "*", "PQLBaseQuery", "{", "rowStr", ",", "colStr", ",", "err", ":=", "formatRowColIDKey", "(", ...
24,133
all-24134
[ "bicTransportScope", "returns", "a", "BICTransportScope", "appropriate", "for", "ref", "." ]
[ "func", "bicTransportScope", "(", "ref", "dockerReference", ")", "<mask>", ".", "BICTransportScope", "{", "// Blobs can be reused across the whole registry.", "return", "types", ".", "BICTransportScope", "{", "Opaque", ":", "reference", ".", "Domain", "(", "ref", ".", ...
24,134
all-24135
[ "lintReversedIPAddressLabels", "lints", "the", "given", "name", "as", "either", "a", "reversed", "IPv4", "or", "IPv6", "address", "under", "the", "respective", "ARPA", "zone", "based", "on", "the", "address", "class", ".", "An", "error", "is", "returned", "if"...
[ "func", "lintReversedIPAddressLabels", "(", "name", "string", ",", "ipv6", "bool", ")", "error", "{", "numRequiredLabels", ":=", "rdnsIPv4Labels", "\n", "zoneSuffix", ":=", "rdnsIPv4Suffix", "\n\n", "if", "ipv6", "{", "numRequiredLabels", "=", "rdnsIPv6Labels", "\n"...
24,135
all-24136
[ "WithLogFunc", "sets", "the", "function", "that", "will", "perform", "message", "logging", ".", "Default", "is", "log", ".", "Printf", "." ]
[ "func", "WithLogFunc", "(", "logf", "func", "(", "format", "string", ",", "a", "...", "<mask>", "{", "}", ")", ")", "Option", "{", "return", "func", "(", "o", "*", "Options", ")", "{", "o", ".", "logf", "=", "logf", "}", "\n", "}" ]
24,136
all-24137
[ "Do", "executes", "Emulation", ".", "setPageScaleFactor", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetPageScaleFactorParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetPageScaleFactor", ",", "p", ",", "nil", ")", "\n", "}" ...
24,137
all-24138
[ "NewContainerStateChangeEvent", "creates", "a", "new", "container", "state", "change", "event" ]
[ "func", "NewContainerStateChangeEvent", "(", "task", "*", "apitask", ".", "<mask>", ",", "cont", "*", "apicontainer", ".", "Container", ",", "reason", "string", ")", "(", "ContainerStateChange", ",", "error", ")", "{", "var", "event", "ContainerStateChange", "\n...
24,138
all-24139
[ "SetTooltipColumn", "is", "a", "wrapper", "around", "gtk_icon_view_set_tooltip_column", "()", "." ]
[ "func", "(", "v", "*", "IconView", ")", "SetTooltipColumn", "(", "column", "int", ")", "{", "C", ".", "gtk_icon_view_set_tooltip_column", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "<mask>", ")", ")", "\n", "}" ]
24,139
all-24140
[ "UnaryServerInterceptor", "applies", "fn", "to", "errors", "returned", "by", "server", "." ]
[ "func", "UnaryServerInterceptor", "(", "fn", "ConvertFunc", ")", "grpc", ".", "UnaryServerInterceptor", "{", "return", "func", "(", "ctx", "context", ".", "<mask>", ",", "req", "interface", "{", "}", ",", "info", "*", "grpc", ".", "UnaryServerInfo", ",", "ha...
24,140
all-24141
[ "respWithMetadata", "is", "a", "short", "wrapper", "to", "return", "the", "given", "interface", "with", "fake", "response", "metadata", "for", "non", "-", "Consul", "dependencies", "." ]
[ "func", "respWithMetadata", "(", "i", "interface", "{", "}", ")", "(", "interface", "{", "}", ",", "*", "ResponseMetadata", ",", "error", ")", "{", "return", "i", ",", "&", "ResponseMetadata", "{", "LastContact", ":", "0", ",", "LastIndex", ":", "uint64"...
24,141
all-24142
[ "FlushJob", "calls", "f", "with", "all", "the", "jobs", "which", "were", "triggered", "by", "commits", ".", "If", "toPipelines", "is", "non", "-", "nil", "then", "only", "the", "jobs", "between", "commits", "and", "those", "pipelines", "in", "the", "DAG", ...
[ "func", "(", "c", "APIClient", ")", "FlushJob", "(", "commits", "[", "]", "*", "pfs", ".", "Commit", ",", "toPipelines", "[", "]", "string", ",", "f", "func", "(", "*", "pps", ".", "JobInfo", ")", "error", ")", "error", "{", "req", ":=", "&", "pp...
24,142
all-24143
[ "optionOrDefault", "defaults", "to", "a", "value", "if", "option", "is", "the", "zero", "value" ]
[ "func", "optionOrDefault", "(", "option", ",", "defaultValue", "time", ".", "Duration", ")", "time", ".", "Duration", "{", "if", "option", "==", "0", "{", "return", "defaultValue", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
24,143
all-24144
[ "Add", "implements", "storage", ".", "Appender", "." ]
[ "func", "(", "t", "*", "timestampTracker", ")", "Add", "(", "_", "labels", ".", "Labels", ",", "ts", "int64", ",", "v", "float64", ")", "(", "uint64", ",", "error", ")", "{", "t", ".", "samples", "++", "\n", "if", "<mask>", ">", "t", ".", "highes...
24,144
all-24145
[ "WithMinRepeatCount", "the", "maximum", "number", "of", "times", "to", "replay", "the", "snapshot", "(", "1", "if", "not", "specified", ")", "." ]
[ "func", "(", "p", "ProfileSnapshotParams", ")", "WithMinRepeatCount", "(", "minRepeatCount", "int64", ")", "*", "ProfileSnapshotParams", "{", "p", ".", "MinRepeatCount", "=", "minRepeatCount", "\n", "<mask>", "&", "p", "\n", "}" ]
24,145
all-24146
[ "NetworkConfigAdd", "adds", "a", "new", "entry", "in", "the", "networks_config", "table" ]
[ "func", "(", "c", "*", "ClusterTx", ")", "NetworkConfigAdd", "(", "networkID", ",", "nodeID", "int64", ",", "config", "<mask>", "[", "string", "]", "string", ")", "error", "{", "return", "networkConfigAdd", "(", "c", ".", "tx", ",", "networkID", ",", "no...
24,146
all-24147
[ "ClearMilestone", "removes", "the", "milestone" ]
[ "func", "(", "f", "*", "FakeClient", ")", "ClearMilestone", "(", "org", ",", "repo", "<mask>", ",", "issueNum", "int", ")", "error", "{", "f", ".", "Milestone", "=", "0", "\n", "return", "nil", "\n", "}" ]
24,147
all-24148
[ "ReturnWriter", "returns", "a", "gzip", ".", "Writer", "to", "the", "pool", "that", "can", "late", "be", "reused", "via", "GetWriter", ".", "Don", "t", "close", "the", "writer", "Flush", "will", "be", "called", "before", "returning", "it", "to", "the", "...
[ "func", "(", "pool", "*", "GzipPool", ")", "ReturnWriter", "(", "<mask>", "*", "gzip", ".", "Writer", ")", "{", "writer", ".", "Close", "(", ")", "\n", "pool", ".", "pool", ".", "Put", "(", "writer", ")", "\n", "}" ]
24,148
all-24149
[ "DeepCopyInto", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "writing", "into", "out", ".", "in", "must", "be", "non", "-", "nil", "." ]
[ "func", "(", "in", "*", "ProwJobSpec", ")", "DeepCopyInto", "(", "out", "*", "ProwJobSpec", ")", "{", "*", "out", "=", "*", "in", "\n", "if", "in", ".", "Refs", "!=", "nil", "{", "in", ",", "out", ":=", "&", "in", ".", "Refs", ",", "&", "out", ...
24,149
all-24150
[ "RunAPIChecks", "runs", "a", "test", "suite", "to", "check", "a", "Tracer", "against", "the", "OpenTracing", "API", ".", "It", "is", "provided", "a", "function", "that", "will", "be", "executed", "to", "create", "and", "destroy", "a", "tracer", "for", "eac...
[ "func", "RunAPIChecks", "(", "t", "*", "testing", ".", "T", ",", "newTracer", "func", "(", ")", "(", "tracer", "opentracing", ".", "Tracer", ",", "closer", "func", "(", ")", ")", ",", "opts", "...", "APICheckOption", ",", ")", "{", "s", ":=", "&", ...
24,150
all-24151
[ "BackwardVisibleLines", "is", "a", "wrapper", "around", "gtk_text_iter_backward_visible_lines", "()", "." ]
[ "func", "(", "v", "*", "TextIter", ")", "BackwardVisibleLines", "(", "v1", "int", ")", "bool", "{", "<mask>", "gobool", "(", "C", ".", "gtk_text_iter_backward_visible_lines", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "v1", ")", ")"...
24,151
all-24152
[ "logFailedRegistrationRetry", "logs", "either", "a", "warning", "or", "info", "depending", "on", "the", "number", "of", "consecutiveFailures", ".", "If", "consecutiveFailures", ">", "maxAdvertiseFailures", "then", "we", "log", "a", "warning", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "logFailedRegistrationRetry", "(", "errLogger", "tchannel", ".", "Logger", ",", "consecutiveFailures", "uint", ")", "{", "logFn", ":=", "errLogger", ".", "Info", "\n", "if", "consecutiveFailures", ">", "maxAdvertiseFailures", ...
24,152
all-24153
[ "resultMetric", "returns", "the", "metric", "for", "the", "given", "sample", "(", "s", ")", "based", "on", "the", "Vector", "binary", "operation", "and", "the", "matching", "options", "." ]
[ "func", "resultMetric", "(", "lhs", ",", "rhs", "labels", ".", "Labels", ",", "op", "ItemType", ",", "matching", "*", "VectorMatching", ",", "enh", "*", "EvalNodeHelper", ")", "labels", ".", "Labels", "{", "if", "enh", ".", "resultMetric", "==", "nil", "...
24,153
all-24154
[ "AddComments", "appends", "the", "comment", "to", "the", "list", "of", "comments", "for", "the", "section", "." ]
[ "func", "(", "c", "*", "Config", ")", "AddComment", "(", "sect", ",", "comment", "string", ")", "{", "if", "sect", "==", "\"", "\"", "{", "c", ".", "comments", "=", "<mask>", "(", "c", ".", "comments", ",", "comment", ")", "\n", "return", "\n", "...
24,154
all-24155
[ "Slice", "is", "splitting", "input", "byte", "array", "into", "slice", "of", "subarrays", ".", "Each", "of", "count", "length", "." ]
[ "func", "Slice", "(", "arr", "[", "]", "byte", ",", "count", "int", ")", "[", "]", "[", "]", "byte", "{", "sliceCount", ":=", "len", "(", "arr", ")", "/", "count", "\n", "result", ":=", "make", "(", "[", "]", "[", "]", "byte", ",", "sliceCount"...
24,155
all-24156
[ "Put", "md5", "file", "in", ".", "md5", "subdirectory", "of", "bucket", "where", "the", "file", "is", "stored", "e", ".", "g", ".", "the", "md5", "for", "https", ":", "//", "mybucket", ".", "s3", ".", "amazonaws", ".", "com", "/", "gof3r", "will", ...
[ "func", "(", "p", "*", "putter", ")", "putMd5", "(", ")", "(", "err", "error", ")", "{", "calcMd5", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "p", ".", "md5", ".", "Sum", "(", "nil", ")", ")", "\n", "md5Reader", ":=", "strings", ".", ...
24,156
all-24157
[ "GetModifiedAtOk", "returns", "a", "tuple", "with", "the", "ModifiedAt", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "b", "*", "Board", ")", "GetModifiedAtOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "b", "==", "nil", "||", "b", ".", "ModifiedAt", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", ...
24,157
all-24158
[ "GetNamed", "is", "a", "wrapper", "around", "gtk_css_provider_get_named", "()", "." ]
[ "func", "CssProviderGetNamed", "(", "name", "string", ",", "variant", "string", ")", "(", "*", "CssProvider", ",", "error", ")", "{", "cname", ":=", "C", ".", "CString", "(", "name", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer"...
24,158
all-24159
[ "Offering", "gets", "offering", "message", "through", "tor", "net", "." ]
[ "func", "(", "c", "*", "Client", ")", "Offering", "(", "hash", "data", ".", "HexString", ")", "(", "<mask>", ".", "Base64String", ",", "error", ")", "{", "return", "c", ".", "requestWithPayload", "(", "\"", "\"", ",", "string", "(", "hash", ")", ")",...
24,159
all-24160
[ "SearchUsers", "returns", "users", "matching", "a", "filter", "(", "search", "queries", "are", "not", "suppoted", "by", "the", "user", "endpoint", ")", ".", "Pass", "nil", "as", "filter", "for", "all", "users", "available", "to", "the", "API", "Token", "."...
[ "func", "(", "a", "*", "API", ")", "SearchUsers", "(", "filterCriteria", "*", "SearchFilterType", ")", "(", "*", "[", "]", "User", ",", "error", ")", "{", "q", ":=", "url", ".", "Values", "{", "}", "\n\n", "if", "filterCriteria", "!=", "nil", "&&", ...
24,160
all-24161
[ "Request", "generates", "a", "random", "/", "fake", "GDPR", "request" ]
[ "func", "(", "c", "*", "Controller", ")", "Request", "(", ")", "error", "{", "req", ":=", "&", "gdpr", ".", "Request", "{", "ApiVersion", ":", "gdpr", ".", "ApiVersion", ",", "SubjectRequestId", ":", "uuid", ".", "NewV4", "(", ")", ".", "String", "("...
24,161
all-24162
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetRealtimeDataParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio1", "(", "&", "w", ",", "v",...
24,162
all-24163
[ "HasDeletedAt", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsTest", ")", "HasDeletedAt", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "DeletedAt", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
24,163
all-24164
[ "DelByName", "removes", "the", "format", "by", "the", "specified", "name", "returns", "true", "when", "an", "item", "was", "actually", "removed" ]
[ "func", "(", "f", "*", "defaultFormats", ")", "DelByName", "(", "name", "string", ")", "bool", "{", "f", ".", "Lock", "(", ")", "\n", "defer", "f", ".", "Unlock", "(", ")", "\n\n", "nme", ":=", "f", ".", "normalizeName", "(", "name", ")", "\n\n", ...
24,164
all-24165
[ "Create", "a", "new", "connection", "and", "run", "Connect", "()" ]
[ "func", "Connect", "(", "config", "*", "Config", ")", "(", "*", "Connection", ",", "error", ")", "{", "conn", ":=", "&", "Connection", "{", "Config", ":", "config", ",", "Context", ":", "&", "Context", "{", "}", ",", "}", "\n\n", "err", ":=", "conn...
24,165
all-24166
[ "----------------------------------------", "Other" ]
[ "func", "DecodeBool", "(", "bz", "[", "]", "byte", ")", "(", "b", "bool", ",", "n", "int", ",", "err", "error", ")", "{", "const", "size", "int", "=", "1", "\n", "if", "len", "(", "bz", ")", "<", "size", "{", "err", "=", "errors", ".", "New",...
24,166
all-24167
[ "HasType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasType", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "Type", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
24,167
all-24168
[ "Copy", "copies", "a", "byte", "slice", "and", "returns", "the", "copied", "slice", "." ]
[ "func", "Copy", "(", "a", "[", "]", "byte", ")", "[", "]", "byte", "{", "b", ":=", "<mask>", "(", "[", "]", "byte", ",", "len", "(", "a", ")", ")", "\n", "copy", "(", "b", ",", "a", ")", "\n", "return", "b", "\n", "}" ]
24,168
all-24169
[ "Simple", "authentication", "middleware" ]
[ "func", "IsAuthenticated", "(", "h", "<mask>", ".", "HandlerFunc", ")", "http", ".", "HandlerFunc", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "if", "r", ".", "Header", ".", "Get", ...
24,169
all-24170
[ "Adopt", "()", ":", "non", "-", "standard", ".", "For", "efficiency", "s", "sake", "(", "possibly", ")", "take", "ownership", "of", "already", "allocated", "slice", "offered", "in", "me", ".", "If", "me", "is", "large", "we", "will", "adopt", "it", "an...
[ "func", "(", "b", "*", "AtomicFixedSizeRingBuf", ")", "Adopt", "(", "me", "[", "]", "byte", ")", "{", "b", ".", "tex", ".", "Lock", "(", ")", "\n", "defer", "b", ".", "tex", ".", "Unlock", "(", ")", "\n\n", "n", ":=", "len", "(", "<mask>", ")",...
24,170
all-24171
[ "flushDaemon", "periodically", "flushes", "the", "log", "file", "buffers", "." ]
[ "func", "(", "l", "*", "Log", ")", "flushDaemon", "(", ")", "{", "for", "_", "=", "range", "<mask>", ".", "NewTicker", "(", "flushInterval", ")", ".", "C", "{", "l", ".", "lockAndFlushAll", "(", ")", "\n", "}", "\n", "}" ]
24,171
all-24172
[ "title", ":", "update", "platform", "path", ":", "/", "platforms", "/", "{", "name", "}", "method", ":", "PUT", "produce", ":", "application", "/", "x", "-", "json", "-", "stream", "responses", ":", "200", ":", "Platform", "updated", "401", ":", "Unaut...
[ "func", "platformUpdate", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "name", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", "(", ...
24,172
all-24173
[ "IterChildren", "is", "a", "wrapper", "around", "gtk_tree_model_iter_children", "()", "." ]
[ "func", "(", "v", "*", "TreeModel", ")", "IterChildren", "(", "iter", ",", "child", "*", "TreeIter", ")", "bool", "{", "var", "cIter", ",", "cChild", "*", "C", ".", "GtkTreeIter", "\n", "if", "iter", "!=", "nil", "{", "cIter", "=", "iter", ".", "na...
24,173
all-24174
[ "UnmarshalText", "hydrates", "this", "instance", "from", "text" ]
[ "func", "(", "u", "*", "UUID3", ")", "UnmarshalText", "(", "data", "[", "]", "byte", ")", "error", "{", "// validation is performed later on", "*", "u", "=", "UUID3", "(", "string", "(", "<mask>", ")", ")", "\n", "return", "nil", "\n", "}" ]
24,174
all-24175
[ "GetPullRequestPatch", "gets", "the", "patch", "version", "of", "a", "pull", "request", ".", "See", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "media", "/", "#commits", "-", "commit", "-", "comparison", "-", "and", "-", ...
[ "func", "(", "c", "*", "Client", ")", "GetPullRequestPatch", "(", "org", ",", "repo", "string", ",", "number", "int", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "org", ",", "repo", ",", "number", ...
24,175
all-24176
[ "Watch", "function", "returns", "a", "Watcher", ".", "If", "recursive", "is", "true", "the", "first", "change", "after", "index", "under", "key", "will", "be", "sent", "to", "the", "event", "channel", "of", "the", "watcher", ".", "If", "recursive", "is", ...
[ "func", "(", "wh", "*", "watcherHub", ")", "watch", "(", "key", "string", ",", "recursive", ",", "stream", "bool", ",", "index", ",", "storeIndex", "uint64", ")", "(", "Watcher", ",", "*", "v2error", ".", "Error", ")", "{", "reportWatchRequest", "(", "...
24,176
all-24177
[ "StringWithinTransport", "returns", "a", "string", "representation", "of", "the", "reference", "which", "MUST", "be", "such", "that", "reference", ".", "Transport", "()", ".", "ParseReference", "(", "reference", ".", "StringWithinTransport", "()", ")", "returns", ...
[ "func", "(", "<mask>", "archiveReference", ")", "StringWithinTransport", "(", ")", "string", "{", "if", "ref", ".", "destinationRef", "==", "nil", "{", "return", "ref", ".", "path", "\n", "}", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", ...
24,177
all-24178
[ "AddItem", "add", "a", "new", "radio", "button", "to", "group" ]
[ "func", "(", "c", "*", "RadioGroup", ")", "AddItem", "(", "r", "*", "Radio", ")", "{", "c", ".", "<mask>", "=", "append", "(", "c", ".", "items", ",", "r", ")", "\n", "r", ".", "SetGroup", "(", "c", ")", "\n", "}" ]
24,178
all-24179
[ "Copy", "()", "is", "a", "wrapper", "around", "gtk_paper_size_copy", "()", "." ]
[ "func", "(", "<mask>", "*", "PaperSize", ")", "Copy", "(", ")", "(", "*", "PaperSize", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_paper_size_copy", "(", "ps", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil"...
24,179
all-24180
[ "Format", "formats", "the", "node", "." ]
[ "func", "(", "node", "*", "DDL", ")", "Format", "(", "buf", "*", "TrackedBuffer", ")", "{", "switch", "node", ".", "Action", "{", "case", "CreateStr", ":", "if", "node", ".", "TableSpec", "==", "nil", "{", "buf", ".", "Myprintf", "(", "\"", "\"", "...
24,180
all-24181
[ "Authenticate", "creates", "a", "Rackspace", "-", "specific", "Gophercloud", "client", "." ]
[ "func", "(", "c", "*", "Client", ")", "Authenticate", "(", "d", "*", "openstack", ".", "Driver", ")", "error", "{", "if", "c", ".", "Provider", "!=", "nil", "{", "return", "nil", "\n", "}", "\n\n", "log", ".", "Debug", "(", "\"", "\"", ",", "map"...
24,181
all-24182
[ "GetRecordsForSerial", "retrieves", "from", "memory", "the", "last", "known", "recordset", "for", "the", "(", "zone", "serial", ")", "tuple" ]
[ "func", "(", "snap", "*", "ZoneSnapshot", ")", "GetRecordsForSerial", "(", "zone", "string", ",", "serial", "int", ")", "[", "]", "*", "endpoint", ".", "Endpoint", "{", "lastSerial", ",", "ok", ":=", "snap", ".", "serials", "[", "<mask>", "]", "\n", "i...
24,182
all-24183
[ "Add", "an", "item", "to", "the", "cache", "replacing", "any", "existing", "item", ".", "If", "the", "duration", "is", "0", "(", "DefaultExpiration", ")", "the", "cache", "s", "default", "expiration", "time", "is", "used", ".", "If", "it", "is", "-", "...
[ "func", "(", "c", "*", "cache", ")", "Set", "(", "k", "string", ",", "x", "interface", "{", "}", ",", "d", "time", ".", "Duration", ")", "{", "// \"Inlining\" of set", "var", "e", "int64", "\n", "if", "d", "==", "DefaultExpiration", "{", "d", "=", ...
24,183
all-24184
[ "GetNoGroupHosts", "returns", "the", "NoGroupHosts", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "h", "*", "HostmapDefinition", ")", "GetNoGroupHosts", "(", ")", "bool", "{", "if", "h", "==", "nil", "||", "h", ".", "NoGroupHosts", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "*", "h", ".", "NoGroupHosts", "\n", "...
24,184
all-24185
[ "Monotonic", "returns", "a", "time", "duration", "from", "some", "fixed", "point", "in", "the", "past", "." ]
[ "func", "Monotonic", "(", ")", "time", ".", "Duration", "{", "sec", ",", "nsec", ":=", "monotime", "(", ")", "\n", "return", "<mask>", ".", "Duration", "(", "sec", "*", "1000000000", "+", "int64", "(", "nsec", ")", ")", "\n", "}" ]
24,185
all-24186
[ "matchingConfigs", "filters", "irrelevant", "RequireMtchingLabel", "configs", "from", "the", "list", "of", "all", "configs", ".", "branch", "should", "be", "empty", "for", "Issues", "and", "non", "-", "empty", "for", "PRs", ".", "label", "should", "be", "omitt...
[ "func", "matchingConfigs", "(", "org", ",", "repo", ",", "branch", ",", "label", "string", ",", "allConfigs", "[", "]", "plugins", ".", "RequireMatchingLabel", ")", "[", "]", "plugins", ".", "RequireMatchingLabel", "{", "var", "filtered", "[", "]", "plugins"...
24,186
all-24187
[ "ListShares", "lists", "all", "shares" ]
[ "func", "(", "c", "*", "Client", ")", "ListShares", "(", "grpid", "string", ")", "(", "*", "Shares", ",", "error", ")", "{", "url", ":=", "umGroupShares", "(", "grpid", ")", "+", "`?depth=`", "+", "c", ".", "client", ".", "depth", "+", "`&pretty=`", ...
24,187
all-24188
[ "NewLexer", "creates", "a", "new", "scanner", "from", "the", "input" ]
[ "func", "NewLexer", "(", "name", ",", "input", "string", ",", "h", "Handler", ")", "*", "Lexer", "{", "return", "&", "Lexer", "{", "Name", ":", "name", ",", "input", ":", "input", "+", "\"", "\\n", "\"", ",", "<mask>", ":", "lexText", ",", "handler...
24,188
all-24189
[ "/", "*", "AddVM", "adds", "a", "new", "vm", "to", "the", "pool" ]
[ "func", "(", "a", "*", "Client", ")", "AddVM", "(", "params", "*", "AddVMParams", ")", "(", "*", "AddVMOK", ",", "error", ")", "{", "// TODO: Validate the params before sending", "if", "params", "==", "nil", "{", "params", "=", "NewAddVMParams", "(", ")", ...
24,189
all-24190
[ "AddEdit", "is", "a", "convenience", "function", "to", "add", "a", "new", "edit", "to", "a", "window", ".", "Capacity", "and", "width", "determine", "the", "maxima", "of", "the", "returned", "value", ".", "It", "wraps", "the", "AddWidget", "call", ".", "...
[ "func", "(", "w", "*", "Window", ")", "AddEdit", "(", "x", ",", "y", ",", "width", "int", ",", "target", "*", "string", ")", "*", "Edit", "{", "// we can ignore error for builtins", "e", ",", "_", ":=", "w", ".", "AddWidget", "(", "WidgetEdit", ",", ...
24,190
all-24191
[ "HasOrderDirection", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "HasOrderDirection", "(", ")", "bool", "{", "if", "g", "!=", "nil", "&&", "g", ".", "OrderDirection", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
24,191
all-24192
[ "Get", "gets", "a", "hashtree", "node", "." ]
[ "func", "Get", "(", "rs", "[", "]", "io", ".", "ReadCloser", ",", "filePath", "string", ")", "(", "*", "NodeProto", ",", "error", ")", "{", "filePath", "=", "clean", "(", "filePath", ")", "\n", "var", "fileNode", "*", "NodeProto", "\n", "if", "err", ...
24,192
all-24193
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SignedExchangeError", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork8", "(", "&", ...
24,193
all-24194
[ "HasPermission", "check", "roles", "has", "permission", "for", "mode", "or", "not" ]
[ "func", "(", "permission", "Permission", ")", "HasPermission", "(", "mode", "PermissionMode", ",", "roles", "...", "interface", "{", "}", ")", "bool", "{", "var", "roleNames", "[", "]", "string", "\n", "for", "_", ",", "role", ":=", "range", "roles", "{"...
24,194
all-24195
[ "Write", "delegates", "p", "to", "a", "running", "instance", "of", "BatchingWriter", "and", "spawns", "new", "instances", "as", "required", "." ]
[ "func", "(", "w", "*", "BatchingWriter", ")", "Write", "(", "bpConf", "influxdb", ".", "BatchPointsConfig", ",", "p", "*", "influxdb", ".", "Point", ")", "error", "{", "log", ":=", "w", ".", "log", ".", "WithField", "(", "\"", "\"", ",", "bpConf", ")...
24,195
all-24196
[ "Zones", "returns", "the", "list", "of", "hosted", "zones", "." ]
[ "func", "(", "p", "*", "LinodeProvider", ")", "Zones", "(", ")", "(", "[", "]", "*", "linodego", ".", "<mask>", ",", "error", ")", "{", "zones", ",", "err", ":=", "p", ".", "fetchZones", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
24,196
all-24197
[ "NewClusterProxy", "takes", "optional", "prefix", "to", "fetch", "grpc", "-", "proxy", "member", "endpoints", ".", "The", "returned", "channel", "is", "closed", "when", "there", "is", "grpc", "-", "proxy", "endpoint", "registered", "and", "the", "client", "s",...
[ "func", "NewClusterProxy", "(", "c", "*", "clientv3", ".", "Client", ",", "advaddr", "string", ",", "prefix", "string", ")", "(", "pb", ".", "ClusterServer", ",", "<-", "chan", "struct", "{", "}", ")", "{", "cp", ":=", "&", "clusterProxy", "{", "clus",...
24,197
all-24198
[ "title", ":", "token", "update", "path", ":", "/", "tokens", "/", "{", "token_id", "}", "method", ":", "PUT", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "Token", "updated", "401", ":", "Unauthorized", "404", ":", "Token", ...
[ "func", "tokenUpdate", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "var", "args", "authTypes", ".", "TeamTokenUpdateArgs", "\n", "err", "=", "ParseI...
24,198
all-24199
[ "Create", "creates", "any", "isolation", "segments", "that", "do", "not", "yet", "exist" ]
[ "func", "(", "u", "*", "Updater", ")", "Remove", "(", ")", "error", "{", "desired", ",", "err", ":=", "u", ".", "allDesiredSegments", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "current", ",", "err", ":=", "u...
24,199
all-24200
[ "/", "*", "Initializes", "preallocated", "CvMatND", "header" ]
[ "func", "(", "mat", "*", "MatND", ")", "InitMatNDHeader", "(", "sizes", "[", "]", "int", ",", "type_", "int", ",", "data", "unsafe", ".", "Pointer", ")", "{", "dims", ":=", "C", ".", "int", "(", "len", "(", "sizes", ")", ")", "\n", "sizes_c", ":=...