id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
8,900
all-8901
[ "Vcpus", "returns", "number", "of", "virtual", "CPUs", "configured", "for", "the", "virtual", "machine", "." ]
[ "func", "(", "v", "*", "VM", ")", "Vcpus", "(", ")", "(", "uint8", ",", "error", ")", "{", "var", "err", "C", ".", "VixError", "=", "C", ".", "VIX_OK", "\n", "vcpus", ":=", "C", ".", "VIX_PROPERTY_NONE", "\n\n", "err", "=", "C", ".", "get_propert...
8,901
all-8902
[ "NewMatcher", "returns", "a", "matcher", "object", "." ]
[ "func", "NewMatcher", "(", "t", "MatchType", ",", "n", ",", "v", "string", ")", "(", "*", "Matcher", ",", "error", ")", "{", "m", ":=", "&", "Matcher", "{", "Type", ":", "t", ",", "<mask>", ":", "n", ",", "Value", ":", "v", ",", "}", "\n", "i...
8,902
all-8903
[ "GetExecutionCredentialsID", "gets", "the", "credentials", "ID", "for", "the", "task" ]
[ "func", "(", "task", "*", "Task", ")", "GetExecutionCredentialsID", "(", ")", "string", "{", "<mask>", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "task", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "task", ".", "ExecutionCredentials...
8,903
all-8904
[ "WithTransform", "applies", "the", "transform", "to", "the", "actual", "value", "and", "matches", "it", "against", "matcher", ".", "The", "given", "transform", "must", "be", "a", "function", "of", "one", "parameter", "that", "returns", "one", "value", ".", "...
[ "func", "WithTransform", "(", "<mask>", "interface", "{", "}", ",", "matcher", "types", ".", "GomegaMatcher", ")", "types", ".", "GomegaMatcher", "{", "return", "matchers", ".", "NewWithTransformMatcher", "(", "transform", ",", "matcher", ")", "\n", "}" ]
8,904
all-8905
[ "Create", "goes", "through", "the", "TemplatesDir", "creating", "the", "template", "structure", "for", "rendering", ".", "Returns", "the", "Render", "instance", "." ]
[ "func", "(", "r", "*", "Render", ")", "Create", "(", ")", "*", "Render", "{", "r", ".", "Validate", "(", ")", "\n\n", "<mask>", ":=", "r", ".", "TemplatesDir", "+", "r", ".", "Layout", "+", "r", ".", "Ext", "\n\n", "// root dir", "tplRoot", ",", ...
8,905
all-8906
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform1fv", "(", "<mask>", "uint32", ",", "location", "int32", ",", "count", "int32", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpProgramUniform1fv", ",", "4", ",", "uintptr", "(", "program", ")", ",", "uint...
8,906
all-8907
[ "RemoveAttr", "will", "remove", "the", "attribute", "with", "the", "provided", "name", "." ]
[ "func", "(", "a", "*", "Attrs", ")", "RemoveAttr", "(", "key", "string", ")", "{", "a", ".", "attrsLock", ".", "Lock", "(", ")", "\n", "defer", "a", ".", "attrsLock", ".", "Unlock", "(", ")", "\n\n", "<mask>", "(", "a", ".", "attrs", ",", "getAtt...
8,907
all-8908
[ "GetYOk", "returns", "a", "tuple", "with", "the", "Y", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetLayout", ")", "GetYOk", "(", ")", "(", "float64", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Y", "==", "nil", "{", "return", "0", ",", "false", "\n", "}", "\n", "return", "*", "w", ".", "Y", ...
8,908
all-8909
[ "Extract", "is", "a", "helper", "function", "to", "extract", "information", "from", "an", "xdr", ".", "Asset", "structure", ".", "It", "extracts", "the", "asset", "s", "type", "to", "the", "typ", "input", "parameter", "(", "which", "must", "be", "either", ...
[ "func", "(", "a", "Asset", ")", "Extract", "(", "typ", "interface", "{", "}", ",", "code", "interface", "{", "}", ",", "issuer", "interface", "{", "}", ")", "error", "{", "switch", "typ", ":=", "typ", ".", "(", "type", ")", "{", "case", "*", "Ass...
8,909
all-8910
[ "listChangedFiles", "lists", "(", "in", "lexicographic", "order", ")", "the", "files", "changed", "as", "part", "of", "a", "Gerrit", "patchset" ]
[ "func", "listChangedFiles", "(", "changeInfo", "client", ".", "ChangeInfo", ")", "config", ".", "ChangedFilesProvider", "{", "return", "func", "(", ")", "(", "[", "]", "string", ",", "error", ")", "{", "var", "<mask>", "[", "]", "string", "\n", "revision",...
8,910
all-8911
[ "Flush", "sends", "all", "pending", "data", "and", "returns", "true", "if", "anything", "was", "sent", "since", "the", "previous", "flush", ".", "For", "testing", "." ]
[ "func", "(", "s", "*", "gossipSender", ")", "Flush", "(", ")", "bool", "{", "ch", ":=", "<mask>", "(", "chan", "bool", ")", "\n", "s", ".", "flush", "<-", "ch", "\n", "return", "<-", "ch", "\n", "}" ]
8,911
all-8912
[ "Return", "the", "time", "-", "based", "OTP", "for", "the", "given", "period", "." ]
[ "func", "(", "totp", "*", "TOTP", ")", "ForPeriod", "(", "period", "int64", ")", "int32", "{", "data", ":=", "int_to_bytestring", "(", "period", ")", "\n\n", "hmacHash", ":=", "hmac", ".", "New", "(", "sha1", ".", "New", ",", "totp", ".", "key", ")",...
8,912
all-8913
[ "Match", "searches", "the", "routing", "tree", "for", "a", "handler", "that", "matches", "the", "method", "/", "path", ".", "It", "s", "similar", "to", "routing", "a", "http", "request", "but", "without", "executing", "the", "handler", "thereafter", ".", "...
[ "func", "(", "mx", "*", "Mux", ")", "Match", "(", "rctx", "*", "Context", ",", "method", ",", "<mask>", "string", ")", "bool", "{", "m", ",", "ok", ":=", "methodMap", "[", "method", "]", "\n", "if", "!", "ok", "{", "return", "false", "\n", "}", ...
8,913
all-8914
[ "Less", "helps", "implement", "sort", ".", "Interface", "for", "virtualDeviceListSorter", ".", "A", "BaseVirtualDevice", "is", "less", "than", "another", "device", "if", "its", "controller", "s", "bus", "number", "and", "unit", "number", "combination", "are", "e...
[ "func", "(", "l", "virtualDeviceListSorter", ")", "Less", "(", "i", ",", "j", "int", ")", "bool", "{", "li", ":=", "l", ".", "Sort", "[", "i", "]", "\n", "lj", ":=", "l", ".", "Sort", "[", "j", "]", "\n", "liCtlr", ":=", "l", ".", "DeviceList",...
8,914
all-8915
[ "Errorf", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelError", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "." ]
[ "func", "(", "l", "*", "slog", ")", "Errorf", "(", "format", "string", ",", "args", "...", "interface", "{", "}", ")", "{", "lvl", ":=", "l", ".", "Level", "(", ")", "\n", "if", "lvl", "<=", "LevelError", "{", "l", ".", "b", ".", "printf", "(",...
8,915
all-8916
[ "HasOptionalParams", "returns", "true", "if", "the", "action", "takes", "optional", "parameters", "false", "otherwise", "." ]
[ "func", "(", "a", "*", "<mask>", ")", "HasOptionalParams", "(", ")", "bool", "{", "for", "_", ",", "param", ":=", "range", "a", ".", "Params", "{", "if", "!", "param", ".", "Mandatory", "{", "return", "true", "\n", "}", "\n", "}", "\n", "return", ...
8,916
all-8917
[ "DeleteRef", "deletes", "the", "given", "ref", "See", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "git", "/", "refs", "/", "#delete", "-", "a", "-", "reference" ]
[ "func", "(", "c", "*", "Client", ")", "DeleteRef", "(", "org", ",", "repo", ",", "ref", "string", ")", "error", "{", "c", ".", "<mask>", "(", "\"", "\"", ",", "org", ",", "repo", ",", "ref", ")", "\n", "_", ",", "err", ":=", "c", ".", "reques...
8,917
all-8918
[ "Expands", "a", "start", "end", "and", "stepping", "value", "into", "the", "full", "range", "of", "int", "values", "." ]
[ "func", "toRange", "(", "start", ",", "end", ",", "step", "int", ")", "[", "]", "int", "{", "nums", ":=", "[", "]", "int", "{", "}", "\n", "if", "step", "<", "1", "{", "step", "=", "1", "\n", "}", "\n", "if", "start", "<=", "end", "{", "for...
8,918
all-8919
[ "UnmarshalJSON", "satisfies", "json", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "ScrollRectType", ")", "UnmarshalJSON", "(", "buf", "[", "]", "<mask>", ")", "error", "{", "return", "easyjson", ".", "Unmarshal", "(", "buf", ",", "t", ")", "\n", "}" ]
8,919
all-8920
[ "Warnf", "is", "a", "short", "-", "hand", "version", "of", "Warningf" ]
[ "func", "(", "la", "*", "LogAdapter", ")", "Warnf", "(", "<mask>", "string", ",", "a", "...", "interface", "{", "}", ")", "error", "{", "return", "la", ".", "Warningf", "(", "msg", ",", "a", "...", ")", "\n", "}" ]
8,920
all-8921
[ "AccelGroupFromClosure", "is", "a", "wrapper", "around", "gtk_accel_group_from_accel_closure", "()", "." ]
[ "func", "AccelGroupFromClosure", "(", "f", "<mask>", "{", "}", ")", "*", "AccelGroup", "{", "closure", ",", "_", ":=", "glib", ".", "ClosureNew", "(", "f", ")", "\n", "cl", ":=", "(", "*", "C", ".", "struct__GClosure", ")", "(", "unsafe", ".", "Point...
8,921
all-8922
[ "title", ":", "logs", "config", "set", "path", ":", "/", "docker", "/", "logs", "method", ":", "POST", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "produce", ":", "application", "/", "x", "-", "json", "-", "st...
[ "func", "logsConfigSetHandler", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "pool", ":=", "api", ".", "InputValue", "(", "r", ",", "\"", "\"", "...
8,922
all-8923
[ "title", ":", "list", "units", "by", "app", "path", ":", "/", "docker", "/", "node", "/", "apps", "/", "{", "appname", "}", "/", "containers", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "Ok", "204"...
[ "func", "listUnitsByApp", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "appName", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", "(", "\"", "\"", ")...
8,923
all-8924
[ "Finish", "ends", "the", "check", "prints", "its", "output", "(", "to", "stdout", ")", "and", "exits", "with", "the", "correct", "status", "." ]
[ "func", "(", "c", "*", "Check", ")", "Finish", "(", ")", "{", "if", "r", ":=", "recover", "(", ")", ";", "r", "!=", "nil", "{", "c", ".", "Exitf", "(", "CRITICAL", ",", "\"", "\"", ",", "r", ")", "\n", "}", "\n", "if", "len", "(", "c", "....
8,924
all-8925
[ "Send", "sends", "the", "callback", "response", "." ]
[ "func", "(", "cbr", "*", "OutgoingCallbackQueryResponse", ")", "Send", "(", ")", "error", "{", "resp", ":=", "&", "baseResponse", "{", "}", "\n", "_", ",", "err", ":=", "cbr", ".", "api", ".", "c", ".", "postJSON", "(", "answerCallbackQuery", ",", "res...
8,925
all-8926
[ "Run", "dispatches", "notifications", "continuously", "." ]
[ "func", "(", "n", "*", "Manager", ")", "Run", "(", "tsets", "<-", "chan", "map", "[", "string", "]", "[", "]", "*", "targetgroup", ".", "Group", ")", "{", "for", "{", "<mask>", "{", "case", "<-", "n", ".", "ctx", ".", "Done", "(", ")", ":", "...
8,926
all-8927
[ "TryReusingBlob", "checks", "whether", "the", "transport", "already", "contains", "or", "can", "efficiently", "reuse", "a", "blob", "and", "if", "so", "applies", "it", "to", "the", "current", "destination", "(", "e", ".", "g", ".", "if", "the", "blob", "is...
[ "func", "(", "d", "*", "openshiftImageDestination", ")", "TryReusingBlob", "(", "ctx", "context", ".", "Context", ",", "info", "types", ".", "BlobInfo", ",", "cache", "<mask>", ".", "BlobInfoCache", ",", "canSubstitute", "bool", ")", "(", "bool", ",", "types...
8,927
all-8928
[ "newChanges", "returns", "a", "collection", "of", "Changes", "based", "on", "the", "given", "records", "and", "action", "." ]
[ "func", "(", "p", "*", "AWSProvider", ")", "newChanges", "(", "action", "string", ",", "endpoints", "[", "]", "*", "endpoint", ".", "Endpoint", ",", "recordsCache", "[", "]", "*", "endpoint", ".", "Endpoint", ",", "zones", "map", "[", "string", "]", "*...
8,928
all-8929
[ "Valid", "determines", "if", "the", "provided", "when", "time", "is", "within", "the", "GTLDPeriod", "for", "the", "gTLD", ".", "E", ".", "g", ".", "whether", "a", "certificate", "issued", "at", "when", "with", "a", "subject", "identifier", "using", "the",...
[ "func", "(", "p", "GTLDPeriod", ")", "Valid", "(", "when", "time", ".", "Time", ")", "error", "{", "// NOTE: We can throw away the errors from time.Parse in this function because", "// the zlint-gtld-update command only writes entries to the generated gTLD map", "// after the dates h...
8,929
all-8930
[ "Write", "writes", "the", "next", "merge", "node", "." ]
[ "func", "(", "w", "*", "Writer", ")", "Write", "(", "n", "*", "MergeNode", ")", "error", "{", "// Marshal node if it was merged", "if", "n", ".", "nodeProto", "!=", "nil", "{", "<mask>", "err", "error", "\n", "n", ".", "v", ",", "err", "=", "n", ".",...
8,930
all-8931
[ "GetTitleTextOk", "returns", "a", "tuple", "with", "the", "TitleText", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetTitleTextOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "TitleText", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "...
8,931
all-8932
[ "GetProjectColumns", "returns", "the", "list", "of", "columns", "in", "a", "project", ".", "See", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "projects", "/", "columns", "/", "#list", "-", "project", "-", "columns" ]
[ "func", "(", "c", "*", "Client", ")", "GetProjectColumns", "(", "projectID", "int", ")", "(", "[", "]", "ProjectColumn", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "projectID", ")", "\n", "path", ":=", "(", "fmt", ".", "Sprintf"...
8,932
all-8933
[ "New", "returns", "the", "interface", "to", "handle", "the", "package", "manager", "." ]
[ "func", "New", "(", "pkg", "PackageType", ")", "Packager", "{", "switch", "pkg", "{", "case", "Deb", ":", "return", "new", "(", "deb", ")", "\n", "case", "RPM", ":", "return", "new", "(", "rpm", ")", "\n", "case", "Pacman", ":", "return", "new", "(...
8,933
all-8934
[ "HasMustShowLatency", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasMustShowLatency", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "MustShowLatency", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
8,934
all-8935
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniformMatrix3x2fv", "(", "program", "uint32", ",", "<mask>", "int32", ",", "count", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "C", ".", "glowProgramUniformMatrix3x2fv", "(", "gpProgramUniformMatrix3x2fv", ",", "(",...
8,935
all-8936
[ "NewHTTPClient", "creates", "a", "new", "soft", "layer", "VM", "pool", "HTTP", "client", "." ]
[ "func", "NewHTTPClient", "(", "formats", "strfmt", ".", "Registry", ")", "*", "SoftLayerVMPool", "{", "if", "formats", "==", "nil", "{", "formats", "=", "strfmt", ".", "<mask>", "\n", "}", "\n", "transport", ":=", "httptransport", ".", "New", "(", "\"", ...
8,936
all-8937
[ "GetAccountMergeResult", "retrieves", "the", "AccountMergeResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "OperationResultTr", ")", "GetAccountMergeResult", "(", ")", "(", "result", "AccountMergeResult", ",", "<mask>", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n...
8,937
all-8938
[ "CheckCmd", "returns", "a", "cobra", "command", "that", "sends", "an", "Authorize", "RPC", "to", "Pachd", "to", "determine", "whether", "the", "specified", "user", "has", "access", "to", "the", "specified", "repo", "." ]
[ "func", "CheckCmd", "(", "noMetrics", ",", "noPortForwarding", "*", "bool", ")", "*", "cobra", ".", "Command", "{", "check", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "Long", ":", "\"", "\"...
8,938
all-8939
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetPropertiesReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime21", "(", "&", "w", ",", "v", ...
8,939
all-8940
[ "StartContainers", "starts", "containers", "created", "by", "the", "benchmark", "." ]
[ "func", "StartContainers", "(", "c", "lxd", ".", "ContainerServer", ",", "containers", "[", "]", "api", ".", "Container", ",", "parallel", "int", ")", "(", "time", ".", "Duration", ",", "error", ")", "{", "var", "duration", "time", ".", "Duration", "\n\n...
8,940
all-8941
[ "JUnitReportXML", "writes", "a", "JUnit", "xml", "representation", "of", "the", "given", "report", "to", "w", "in", "the", "format", "described", "at", "http", ":", "//", "windyroad", ".", "org", "/", "dl", "/", "Open%20Source", "/", "JUnit", ".", "xsd" ]
[ "func", "JUnitReportXML", "(", "report", "*", "parser", ".", "Report", ",", "noXMLHeader", "bool", ",", "goVersion", "string", ",", "w", "io", ".", "Writer", ")", "error", "{", "suites", ":=", "JUnitTestSuites", "{", "}", "\n\n", "// convert Report to JUnit te...
8,941
all-8942
[ "GetStacked", "returns", "the", "Stacked", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "GetStacked", "(", ")", "bool", "{", "if", "g", "==", "nil", "||", "g", ".", "Stacked", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "*", "g", ".", "Stacked", "\n", "}" ]
8,942
all-8943
[ "GetPageType", "is", "a", "wrapper", "around", "gtk_assistant_get_page_type", "()", "." ]
[ "func", "(", "v", "*", "Assistant", ")", "GetPageType", "(", "<mask>", "IWidget", ")", "AssistantPageType", "{", "c", ":=", "C", ".", "gtk_assistant_get_page_type", "(", "v", ".", "native", "(", ")", ",", "page", ".", "toWidget", "(", ")", ")", "\n", "...
8,943
all-8944
[ "Zones", "returns", "the", "list", "of", "hosted", "zones", "." ]
[ "func", "(", "p", "*", "CloudFlareProvider", ")", "Zones", "(", ")", "(", "[", "]", "cloudflare", ".", "Zone", ",", "error", ")", "{", "result", ":=", "[", "]", "cloudflare", ".", "Zone", "{", "}", "\n", "ctx", ":=", "context", ".", "TODO", "(", ...
8,944
all-8945
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "CreateBrowserContextReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24", "(",...
8,945
all-8946
[ "NewValue", "builds", "a", "Value", "using", "typ", "and", "val", ".", "If", "the", "value", "and", "typ", "don", "t", "match", "it", "returns", "an", "error", "." ]
[ "func", "NewValue", "(", "typ", "querypb", ".", "Type", ",", "val", "[", "]", "byte", ")", "(", "v", "<mask>", ",", "err", "error", ")", "{", "switch", "{", "case", "IsSigned", "(", "typ", ")", ":", "if", "_", ",", "err", ":=", "strconv", ".", ...
8,946
all-8947
[ "readVarint", "reads", "a", "varint", "from", "the", "core", "file", ".", "val", "is", "the", "value", "n", "is", "the", "number", "of", "bytes", "consumed", "." ]
[ "func", "readVarint", "(", "core", "*", "core", ".", "<mask>", ",", "a", "core", ".", "Address", ")", "(", "val", ",", "n", "int64", ")", "{", "for", "{", "b", ":=", "core", ".", "ReadUint8", "(", "a", ")", "\n", "val", "|=", "int64", "(", "b",...
8,947
all-8948
[ "upgradeDVS", "upgrades", "a", "DVS", "to", "a", "specific", "version", ".", "Downgrades", "are", "not", "supported", "and", "will", "result", "in", "an", "error", ".", "This", "should", "be", "checked", "before", "running", "this", "function", "." ]
[ "func", "upgradeDVS", "(", "client", "*", "govmomi", ".", "Client", ",", "dvs", "*", "object", ".", "VmwareDistributedVirtualSwitch", ",", "version", "string", ")", "error", "{", "req", ":=", "&", "types", ".", "PerformDvsProductSpecOperation_Task", "{", "This",...
8,948
all-8949
[ "ConfirmPopup", "confirms", "an", "alert", "confirm", "or", "prompt", "popup", "." ]
[ "func", "(", "p", "*", "Page", ")", "ConfirmPopup", "(", ")", "error", "{", "if", "err", ":=", "p", ".", "<mask>", ".", "AcceptAlert", "(", ")", ";", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n...
8,949
all-8950
[ "creates", "and", "initializes", "a", "buffer", "object", "s", "data", "store" ]
[ "func", "NamedBufferData", "(", "buffer", "uint32", ",", "size", "int", ",", "<mask>", "unsafe", ".", "Pointer", ",", "usage", "uint32", ")", "{", "C", ".", "glowNamedBufferData", "(", "gpNamedBufferData", ",", "(", "C", ".", "GLuint", ")", "(", "buffer", ...
8,950
all-8951
[ "This", "task", "function", "expires", "logs", "when", "executed", ".", "It", "s", "started", "by", "the", "Daemon", "and", "will", "run", "once", "every", "24h", "." ]
[ "func", "expireLogsTask", "(", "state", "*", "state", ".", "State", ")", "(", "task", ".", "Func", ",", "task", ".", "Schedule", ")", "{", "f", ":=", "func", "(", "ctx", "context", ".", "Context", ")", "{", "opRun", ":=", "func", "(", "op", "*", ...
8,951
all-8952
[ "Send", "sends", "emails", "using", "the", "given", "Sender", "." ]
[ "func", "Send", "(", "s", "Sender", ",", "msg", "...", "*", "Message", ")", "error", "{", "for", "i", ",", "m", ":=", "range", "msg", "{", "if", "err", ":=", "<mask>", "(", "s", ",", "m", ")", ";", "err", "!=", "nil", "{", "return", "&", "Sen...
8,952
all-8953
[ "Parse", "a", "size", "string", "in", "bytes", "(", "e", ".", "g", ".", "200kB", "or", "5GB", ")", "into", "the", "number", "of", "bytes", "it", "represents", ".", "Supports", "suffixes", "up", "to", "EB", ".", "==", "0", "." ]
[ "func", "ParseByteSizeString", "(", "input", "string", ")", "(", "int64", ",", "error", ")", "{", "// Empty input", "if", "input", "==", "\"", "\"", "{", "return", "0", ",", "nil", "\n", "}", "\n\n", "// Find where the suffix begins", "suffixLen", ":=", "0",...
8,953
all-8954
[ "Stop", "the", "WALWatcher", "." ]
[ "func", "(", "w", "*", "WALWatcher", ")", "Stop", "(", ")", "{", "close", "(", "w", ".", "quit", ")", "\n", "<-", "w", ".", "done", "\n\n", "// Records read metric has series and samples.", "watcherRecordsRead", ".", "DeleteLabelValues", "(", "w", ".", "name...
8,954
all-8955
[ "NewUniIterator", "returns", "a", "UniIterator", "." ]
[ "func", "(", "s", "*", "Skiplist", ")", "NewUniIterator", "(", "reversed", "bool", ")", "*", "UniIterator", "{", "<mask>", "&", "UniIterator", "{", "iter", ":", "s", ".", "NewIterator", "(", ")", ",", "reversed", ":", "reversed", ",", "}", "\n", "}" ]
8,955
all-8956
[ "statement" ]
[ "func", "(", "s", "*", "stmt", ")", "QueryContext", "(", "ctx", "context", ".", "Context", ",", "args", "[", "]", "driver", ".", "NamedValue", ")", "(", "rows", "driver", ".", "Rows", ",", "err", "error", ")", "{", "if", "s", ".", "session", ".", ...
8,956
all-8957
[ "String", "returns", "a", "string", "representation", "of", "GeoM", "." ]
[ "func", "(", "g", "*", "GeoM", ")", "<mask>", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "g", ".", "a_1", "+", "1", ",", "g", ".", "b", ",", "g", ".", "tx", ",", "g", ".", "c", ",", "g", ".", "d_1", ...
8,957
all-8958
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventDistributedNodesUpdated", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom62", "(", "&", "w", ",", "...
8,958
all-8959
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "RequestMemoryDumpParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTracing3", "(", "&"...
8,959
all-8960
[ "Convert", "the", "Apache", "access", "log", "format", "into", "a", "text", "/", "template" ]
[ "func", "(", "mw", "*", "AccessLogApacheMiddleware", ")", "convertFormat", "(", ")", "{", "tmplText", ":=", "apacheAdapter", ".", "Replace", "(", "string", "(", "mw", ".", "Format", ")", ")", "\n\n", "funcMap", ":=", "<mask>", ".", "FuncMap", "{", "\"", ...
8,960
all-8961
[ "WithScriptToEvaluateOnLoad", "if", "set", "the", "script", "will", "be", "injected", "into", "all", "frames", "of", "the", "inspected", "page", "after", "reload", ".", "Argument", "will", "be", "ignored", "if", "reloading", "dataURL", "origin", "." ]
[ "func", "(", "p", "ReloadParams", ")", "WithScriptToEvaluateOnLoad", "(", "scriptToEvaluateOnLoad", "<mask>", ")", "*", "ReloadParams", "{", "p", ".", "ScriptToEvaluateOnLoad", "=", "scriptToEvaluateOnLoad", "\n", "return", "&", "p", "\n", "}" ]
8,961
all-8962
[ "getAccessToken", "retrieves", "Azure", "API", "access", "token", "." ]
[ "func", "getAccessToken", "(", "cfg", "config", ",", "environment", "azure", ".", "Environment", ")", "(", "*", "adal", ".", "ServicePrincipalToken", ",", "error", ")", "{", "// Try to retrive token with MSI.", "if", "cfg", ".", "UseManagedIdentityExtension", "{", ...
8,962
all-8963
[ "Get", "returns", "the", "status", "code", "and", "body", "of", "url", ".", "The", "contents", "of", "dst", "will", "be", "replaced", "by", "the", "body", "and", "returned", "if", "the", "dst", "is", "too", "small", "a", "new", "slice", "will", "be", ...
[ "func", "(", "c", "*", "HostClient", ")", "Get", "(", "dst", "[", "]", "byte", ",", "url", "string", ")", "(", "statusCode", "int", ",", "body", "[", "]", "<mask>", ",", "err", "error", ")", "{", "return", "clientGetURL", "(", "dst", ",", "url", ...
8,963
all-8964
[ "IsRepoNotFoundErr", "returns", "true", "if", "err", "is", "an", "error", "message", "about", "a", "repo", "not", "being", "found" ]
[ "func", "IsRepoNotFoundErr", "(", "err", "error", ")", "bool", "{", "if", "err", "==", "nil", "{", "return", "false", "\n", "}", "\n", "return", "repoNotFoundRe", ".", "MatchString", "(", "err", ".", "<mask>", "(", ")", ")", "\n", "}" ]
8,964
all-8965
[ "DialTimeout", "dials", "the", "given", "TCP", "addr", "using", "tcp4", "using", "the", "given", "timeout", ".", "This", "function", "has", "the", "following", "additional", "features", "comparing", "to", "net", ".", "Dial", ":", "*", "It", "reduces", "load"...
[ "func", "DialTimeout", "(", "addr", "string", ",", "timeout", "time", ".", "Duration", ")", "(", "<mask>", ".", "Conn", ",", "error", ")", "{", "return", "defaultDialer", ".", "DialTimeout", "(", "addr", ",", "timeout", ")", "\n", "}" ]
8,965
all-8966
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "RemoveAttributeParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom16", "(", "&", "w", ",", "v", ")"...
8,966
all-8967
[ "Call", "Parse", "()", "on", "the", "FlagSet" ]
[ "func", "parse", "(", "args", "[", "]", "string", ")", "{", "if", "!", "FlagSet", ".", "Parsed", "(", ")", "{", "FlagSet", ".", "Parse", "(", "args", ")", "\n", "}", "\n\n", "for", "_", ",", "name", ":=", "<mask>", "defaultedFlags", "(", ")", "{"...
8,967
all-8968
[ "expectOneOf", "consumes", "the", "next", "token", "and", "guarantees", "it", "has", "one", "of", "the", "required", "types", "." ]
[ "func", "(", "p", "*", "<mask>", ")", "expectOneOf", "(", "exp1", ",", "exp2", "ItemType", ",", "context", "string", ")", "item", "{", "token", ":=", "p", ".", "next", "(", ")", "\n", "if", "token", ".", "typ", "!=", "exp1", "&&", "token", ".", "...
8,968
all-8969
[ "ReadSCSIBusType", "checks", "the", "SCSI", "bus", "state", "and", "returns", "a", "device", "type", "depending", "on", "if", "all", "controllers", "are", "one", "specific", "kind", "or", "not", ".", "Only", "the", "first", "number", "of", "controllers", "sp...
[ "func", "ReadSCSIBusType", "(", "l", "object", ".", "VirtualDeviceList", ",", "count", "int", ")", "string", "{", "ctlrs", ":=", "make", "(", "[", "]", "types", ".", "BaseVirtualSCSIController", ",", "count", ")", "\n", "for", "_", ",", "dev", ":=", "ran...
8,969
all-8970
[ "render", "primitives", "using", "a", "count", "derived", "from", "a", "specifed", "stream", "of", "a", "transform", "feedback", "object" ]
[ "func", "DrawTransformFeedbackStream", "(", "mode", "uint32", ",", "id", "uint32", ",", "stream", "uint32", ")", "{", "C", ".", "glowDrawTransformFeedbackStream", "(", "gpDrawTransformFeedbackStream", ",", "(", "C", ".", "GLenum", ")", "(", "mode", ")", ",", "...
8,970
all-8971
[ "Get", "gets", "a", "hashtree", "node", "." ]
[ "func", "(", "h", "*", "dbHashTree", ")", "Get", "(", "path", "string", ")", "(", "*", "NodeProto", ",", "error", ")", "{", "path", "=", "clean", "(", "path", ")", "\n", "var", "node", "*", "NodeProto", "\n", "if", "err", ":=", "h", ".", "View", ...
8,971
all-8972
[ "Pause", "pauses", "periodic", "compactor", "." ]
[ "func", "(", "pc", "*", "Periodic", ")", "Pause", "(", ")", "{", "<mask>", ".", "mu", ".", "Lock", "(", ")", "\n", "pc", ".", "paused", "=", "true", "\n", "pc", ".", "mu", ".", "Unlock", "(", ")", "\n", "}" ]
8,972
all-8973
[ "Printf", "logs", "internal", "messages", "from", "a", "reporter", "." ]
[ "func", "(", "l", "*", "reportLogger", ")", "Printf", "(", "format", "string", ",", "v", "...", "<mask>", "{", "}", ")", "{", "if", "l", ".", "logger", "!=", "nil", "{", "l", ".", "logger", ".", "Debug", "(", "fmt", ".", "Sprintf", "(", "format",...
8,973
all-8974
[ "/", "*", "Kill", "sends", "a", "SIGKILL", "signal", "to", "all", "the", "processes", "started", "by", "Run", ".", "It", "does", "not", "wait", "for", "the", "processes", "to", "exit", "." ]
[ "func", "Kill", "(", ")", "{", "trackedSessionsMutex", ".", "Lock", "(", ")", "\n", "defer", "trackedSessionsMutex", ".", "Unlock", "(", ")", "\n", "for", "_", ",", "session", ":=", "<mask>", "trackedSessions", "{", "session", ".", "Kill", "(", ")", "\n"...
8,974
all-8975
[ "HasValue", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "ConditionalFormat", ")", "HasValue", "(", ")", "bool", "{", "if", "c", "!=", "nil", "&&", "c", ".", "Value", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
8,975
all-8976
[ "Stop", "the", "server", "." ]
[ "func", "(", "s", "*", "Server", ")", "Stop", "(", ")", "{", "if", "s", ".", "isStarted", "&&", "s", ".", "quit", "!=", "nil", "{", "log", ".", "Info", "(", "\"", "\"", ")", "\n", "s", ".", "quit", "<-", "true", "\n", "}", "else", "{", "<ma...
8,976
all-8977
[ "Run", "implements", "the", "Discoverer", "interface", "." ]
[ "func", "(", "d", "*", "Discovery", ")", "Run", "(", "ctx", "context", ".", "Context", ",", "ch", "chan", "<-", "[", "]", "*", "targetgroup", ".", "Group", ")", "{", "watcher", ",", "err", ":=", "fsnotify", ".", "NewWatcher", "(", ")", "\n", "if", ...
8,977
all-8978
[ "NewSystemGroup", "adds", "a", "system", "group", "." ]
[ "func", "NewSystemGroup", "(", "name", "string", ",", "members", "...", "string", ")", "*", "<mask>", "{", "return", "&", "Group", "{", "Name", ":", "name", ",", "password", ":", "\"", "\"", ",", "GID", ":", "-", "1", ",", "UserList", ":", "members",...
8,978
all-8979
[ "----------------------------------------", "*", "Codec", "methods", "MarshalBinaryLengthPrefixed", "encodes", "the", "object", "o", "according", "to", "the", "Amino", "spec", "but", "prefixed", "by", "a", "uvarint", "encoding", "of", "the", "object", "to", "encode", ...
[ "func", "(", "cdc", "*", "Codec", ")", "MarshalBinaryLengthPrefixed", "(", "o", "interface", "{", "}", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "// Write the bytes here.", "var", "buf", "=", "new", "(", "<mask>", ".", "Buffer", ")", "\n\n", ...
8,979
all-8980
[ "NewFolderFontCache", "creates", "FolderFontCache" ]
[ "func", "NewFolderFontCache", "(", "folder", "string", ")", "*", "FolderFontCache", "{", "return", "&", "FolderFontCache", "{", "fonts", ":", "make", "(", "<mask>", "[", "string", "]", "*", "truetype", ".", "Font", ")", ",", "folder", ":", "folder", ",", ...
8,980
all-8981
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "NetworkInterface", ")", "Locator", "(", "api", "*", "API", ")", "*", "NetworkInterfaceLocator", "{", "<mask>", "api", ".", "NetworkInterfaceLocator", "(", "r", ".", "Href", ")", "\n", "}" ]
8,981
all-8982
[ "Mask", "returns", "a", "new", "masked", "NetworkNumber", "from", "given", "NetworkNumber", "." ]
[ "func", "(", "m", "NetworkNumberMask", ")", "Mask", "(", "n", "NetworkNumber", ")", "(", "NetworkNumber", ",", "error", ")", "{", "if", "len", "(", "m", ")", "!=", "len", "(", "n", ")", "{", "return", "nil", ",", "ErrVersionMismatch", "\n", "}", "\n"...
8,982
all-8983
[ "NewClient", "return", "SOAP", "client" ]
[ "func", "NewClient", "(", "url", "string", ",", "tls", "bool", ",", "header", "interface", "{", "}", ")", "*", "Client", "{", "return", "&", "Client", "{", "<mask>", ":", "url", ",", "tls", ":", "tls", ",", "header", ":", "header", ",", "}", "\n", ...
8,983
all-8984
[ "SetShowTitles", "turns", "on", "and", "off", "horizontal", "axis", "and", "bar", "titles" ]
[ "func", "(", "b", "*", "BarChart", ")", "SetShowTitles", "(", "show", "bool", ")", "{", "b", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "b", ".", "mtx", ".", "Unlock", "(", ")", "\n\n", "b", ".", "showTitles", "=", "<mask>", "\n", "}" ]
8,984
all-8985
[ "Writers", "sets", "the", "Writers" ]
[ "func", "(", "e", "*", "execStreamerBuilder", ")", "Writers", "(", "writers", "<mask>", ".", "Writer", ")", "ExecStreamerBuilder", "{", "e", ".", "d", ".", "StdoutWriter", "=", "writers", "\n", "e", ".", "d", ".", "StderrWriter", "=", "writers", "\n", "r...
8,985
all-8986
[ "assert", "verifies", "that", "all", "assertions", "in", "t", "match", "the", "content", "that", "t", "will", "be", "applied", "upon", ".", "If", "an", "assertion", "fails", "the", "transaction", "state", "is", "changed", "to", "aborted", "." ]
[ "func", "(", "f", "*", "flusher", ")", "assert", "(", "t", "*", "transaction", ",", "revnos", "[", "]", "int64", ",", "pull", "map", "[", "bson", ".", "ObjectId", "]", "*", "transaction", ")", "error", "{", "f", ".", "debugf", "(", "\"", "\"", ",...
8,986
all-8987
[ "queueFilter", "adds", "a", "filterBlock", "to", "the", "end", "decodeReader", "s", "filters", "." ]
[ "func", "(", "d", "*", "decodeReader", ")", "queueFilter", "(", "f", "*", "filterBlock", ")", "error", "{", "if", "f", ".", "reset", "{", "d", ".", "filters", "=", "nil", "\n", "}", "\n", "if", "len", "(", "d", ".", "filters", ")", ">=", "maxQueu...
8,987
all-8988
[ "MutatePayment", "for", "PayWithPath", "sets", "the", "PathPaymentOp", "s", "SendAsset", "SendMax", "and", "Path", "fields" ]
[ "func", "(", "m", "PayWithPath", ")", "MutatePayment", "(", "o", "interface", "{", "}", ")", "(", "err", "error", ")", "{", "var", "pathPaymentOp", "*", "xdr", ".", "PathPaymentOp", "\n", "var", "ok", "bool", "\n", "if", "pathPaymentOp", ",", "ok", "="...
8,988
all-8989
[ "ContainerLastUsedUpdate", "updates", "the", "last_use_date", "field", "of", "the", "container", "with", "the", "given", "ID", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "ContainerLastUsedUpdate", "(", "id", "int", ",", "<mask>", "time", ".", "Time", ")", "error", "{", "stmt", ":=", "`UPDATE containers SET last_use_date=? WHERE id=?`", "\n", "err", ":=", "exec", "(", "c", ".", "db", ","...
8,989
all-8990
[ "PutDir", "creates", "a", "directory", "(", "or", "does", "nothing", "if", "one", "exists", ")", "." ]
[ "func", "(", "h", "*", "dbHashTree", ")", "PutDir", "(", "path", "string", ")", "error", "{", "path", "=", "clean", "(", "path", ")", "\n", "return", "h", ".", "Batch", "(", "func", "(", "tx", "*", "bolt", ".", "Tx", ")", "error", "{", "node", ...
8,990
all-8991
[ "maybeAppend", "returns", "(", "0", "false", ")", "if", "the", "entries", "cannot", "be", "appended", ".", "Otherwise", "it", "returns", "(", "last", "index", "of", "new", "entries", "true", ")", "." ]
[ "func", "(", "l", "*", "raftLog", ")", "maybeAppend", "(", "index", ",", "logTerm", ",", "committed", "uint64", ",", "ents", "...", "pb", ".", "Entry", ")", "(", "lastnewi", "uint64", ",", "ok", "bool", ")", "{", "if", "l", ".", "matchTerm", "(", "...
8,991
all-8992
[ "GetATime", "the", "atime", "for", "a", "file", "logging", "errors", "instead", "of", "failing", "and", "returning", "defaultTime", "instead" ]
[ "func", "GetATime", "(", "path", "string", ",", "defaultTime", "<mask>", ".", "Time", ")", "time", ".", "Time", "{", "at", ",", "err", ":=", "atime", ".", "Stat", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "log", ".", "WithError", "(", ...
8,992
all-8993
[ "GetAccelsForAction", "is", "a", "wrapper", "around", "gtk_application_get_accels_for_action", "()", "." ]
[ "func", "(", "v", "*", "Application", ")", "GetAccelsForAction", "(", "act", "string", ")", "[", "]", "string", "{", "cstr1", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "act", ")", ")", "\n", "defer", "C", ".", "free",...
8,993
all-8994
[ "NewServer", "initializes", "a", "new", "DHT", "node", "server", "." ]
[ "func", "NewServer", "(", "c", "*", "ServerConfig", ")", "(", "s", "*", "Server", ",", "err", "error", ")", "{", "if", "c", "==", "nil", "{", "c", "=", "&", "ServerConfig", "{", "Conn", ":", "mustListen", "(", "\"", "\"", ")", ",", "NoSecurity", ...
8,994
all-8995
[ "Stop", "listening", "for", "changes", "to", "the", "files", "." ]
[ "func", "(", "w", "*", "Watcher", ")", "Stop", "(", ")", "{", "if", "w", ".", "notify_chan", "!=", "nil", "{", "close", "(", "w", ".", "notify_chan", ")", "\n", "}", "\n\n", "if", "w", ".", "add_chan", "!=", "nil", "{", "<mask>", "(", "w", ".",...
8,995
all-8996
[ "ScheduleForcedSvcCheck", "creates", "a", "new", "SCHEDULE_FORCED_SVC_CHECK", "Nagios", "command", ".", "Schedules", "a", "forced", "active", "check", "of", "a", "particular", "service", "at", "check_time", ".", "The", "check_time", "argument", "is", "specified", "i...
[ "func", "ScheduleForcedSvcCheck", "(", "host_name", "string", ",", "service_description", "string", ",", "check_time", "<mask>", ".", "Time", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\"", "\"", ",", "st...
8,996
all-8997
[ "setLog", "sets", "the", "logger", "." ]
[ "func", "setLog", "(", "l", "*", "log", ".", "Logger", ")", "{", "if", "l", "!=", "nil", "{", "logger", "=", "l", "\n", "}", "else", "{", "logger", "=", "<mask>", ".", "New", "(", "ioutil", ".", "Discard", ",", "\"", "\"", ",", "0", ")", "\n"...
8,997
all-8998
[ "UpdateAll", "finds", "all", "documents", "matching", "the", "provided", "selector", "document", "and", "modifies", "them", "according", "to", "the", "update", "document", ".", "If", "the", "session", "is", "in", "safe", "mode", "(", "see", "SetSafe", ")", "...
[ "func", "(", "c", "*", "Collection", ")", "UpdateAll", "(", "selector", "<mask>", "{", "}", ",", "update", "interface", "{", "}", ")", "(", "info", "*", "ChangeInfo", ",", "err", "error", ")", "{", "lerr", ",", "err", ":=", "c", ".", "writeQuery", ...
8,998
all-8999
[ "MarshalEasyJSON", "satisfies", "easyjson", ".", "Marshaler", "." ]
[ "func", "(", "t", "ExceptionsState", ")", "MarshalEasyJSON", "(", "out", "*", "jwriter", ".", "Writer", ")", "{", "<mask>", ".", "String", "(", "string", "(", "t", ")", ")", "\n", "}" ]
8,999
all-9000
[ "MenuNew", "()", "is", "a", "wrapper", "around", "gtk_menu_new", "()", "." ]
[ "func", "MenuNew", "(", ")", "(", "*", "<mask>", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_menu_new", "(", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", ",", "nilPtrErr", "\n", "}", "\n", "return", "wrapMenu", "(", "glib", ".",...