id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
7,500
all-7501
[ "updates", "a", "subset", "of", "a", "buffer", "object", "s", "data", "store" ]
[ "func", "NamedBufferSubData", "(", "buffer", "uint32", ",", "offset", "int", ",", "<mask>", "int", ",", "data", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall6", "(", "gpNamedBufferSubData", ",", "4", ",", "uintptr", "(", "buffer", ")", ",", ...
7,501
all-7502
[ "NewAWSProvider", "initializes", "a", "new", "AWS", "Route53", "based", "Provider", "." ]
[ "func", "NewAWSProvider", "(", "awsConfig", "AWSConfig", ")", "(", "*", "AWSProvider", ",", "error", ")", "{", "config", ":=", "aws", ".", "NewConfig", "(", ")", ".", "WithMaxRetries", "(", "awsConfig", ".", "APIRetries", ")", "\n\n", "config", ".", "WithH...
7,502
all-7503
[ "SetTabReorderable", "()", "is", "a", "wrapper", "around", "gtk_notebook_set_tab_reorderable", "()", "." ]
[ "func", "(", "v", "*", "Notebook", ")", "SetTabReorderable", "(", "<mask>", "IWidget", ",", "reorderable", "bool", ")", "{", "C", ".", "gtk_notebook_set_tab_reorderable", "(", "v", ".", "native", "(", ")", ",", "child", ".", "toWidget", "(", ")", ",", "g...
7,503
all-7504
[ "/", "*", "polymorph", "Route", "config", "false", "/", "*", "polymorph", "Route", "format", "false", "/", "*", "polymorph", "Route", "headers", "false", "/", "*", "polymorph", "Route", "idle_timeout", "false", "/", "*", "polymorph", "Route", "image", "false...
[ "func", "(", "m", "*", "Route", ")", "Validate", "(", "formats", "strfmt", ".", "Registry", ")", "error", "{", "var", "<mask>", "[", "]", "error", "\n\n", "if", "err", ":=", "m", ".", "validateFormat", "(", "formats", ")", ";", "err", "!=", "nil", ...
7,504
all-7505
[ "LookupIP", "returns", "the", "given", "host", "s", "IP", "addresses", "." ]
[ "func", "LookupIP", "(", "ctx", "context", ".", "Context", ",", "host", "string", ")", "(", "addrs", "[", "]", "net", ".", "IP", ",", "err", "error", ")", "{", "packedAddrs", ",", "_", ",", "err", ":=", "resolve", "(", "ctx", ",", "ipFamilies", ","...
7,505
all-7506
[ "Get", "returns", "a", "get", "event", ".", "If", "recursive", "is", "true", "it", "will", "return", "all", "the", "content", "under", "the", "node", "path", ".", "If", "sorted", "is", "true", "it", "will", "sort", "the", "content", "by", "keys", "." ]
[ "func", "(", "s", "*", "store", ")", "Get", "(", "nodePath", "string", ",", "recursive", ",", "sorted", "bool", ")", "(", "*", "Event", ",", "error", ")", "{", "var", "err", "*", "v2error", ".", "<mask>", "\n\n", "s", ".", "worldLock", ".", "RLock"...
7,506
all-7507
[ "NewRuleIndex", "creates", "a", "new", "index", ".", "kindToResolver", "is", "a", "map", "from", "rule", "kinds", "(", "for", "example", "go_library", ")", "to", "Resolvers", "that", "support", "those", "kinds", "." ]
[ "func", "NewRuleIndex", "(", "mrslv", "func", "(", "r", "*", "<mask>", ".", "Rule", ",", "pkgRel", "string", ")", "Resolver", ")", "*", "RuleIndex", "{", "return", "&", "RuleIndex", "{", "labelMap", ":", "make", "(", "map", "[", "label", ".", "Label", ...
7,507
all-7508
[ "Do", "executes", "ApplicationCache", ".", "getFramesWithManifests", "against", "the", "provided", "context", ".", "returns", ":", "frameIds", "-", "Array", "of", "frame", "identifiers", "with", "manifest", "urls", "for", "each", "frame", "containing", "a", "docum...
[ "func", "(", "p", "*", "GetFramesWithManifestsParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "frameIds", "[", "]", "*", "FrameWithManifest", ",", "err", "error", ")", "{", "// execute", "var", "res", "GetFramesWithManifestsReturns", "\n", ...
7,508
all-7509
[ "Set", "is", "required", "for", "kingpin", "interfaces", "to", "allow", "command", "line", "params", "to", "be", "set", "to", "our", "map", "datatype" ]
[ "func", "(", "o", "*", "MapRuneOption", ")", "Set", "(", "value", "string", ")", "error", "{", "parts", ":=", "stringMapRegex", ".", "Split", "(", "value", ",", "2", ")", "\n", "if", "len", "(", "parts", ")", "!=", "2", "{", "return", "fmt", ".", ...
7,509
all-7510
[ "NewParser", "constructs", "a", "parser", "from", "a", "list", "of", "destination", "structs" ]
[ "func", "NewParser", "(", "config", "Config", ",", "dests", "...", "interface", "{", "}", ")", "(", "*", "Parser", ",", "error", ")", "{", "p", ":=", "Parser", "{", "config", ":", "config", ",", "}", "\n", "for", "_", ",", "dest", ":=", "range", ...
7,510
all-7511
[ "specify", "storage", "for", "a", "two", "-", "dimensional", "multisample", "array", "texture" ]
[ "func", "TextureStorage3DMultisample", "(", "texture", "uint32", ",", "samples", "int32", ",", "internalformat", "uint32", ",", "width", "int32", ",", "height", "int32", ",", "depth", "int32", ",", "fixedsamplelocations", "bool", ")", "{", "syscall", ".", "Sysca...
7,511
all-7512
[ "/", "*", "GetTasks", "gets", "next", "task" ]
[ "func", "(", "a", "*", "Client", ")", "GetTasks", "(", "params", "*", "GetTasksParams", ")", "(", "*", "GetTasksOK", ",", "error", ")", "{", "// TODO: Validate the params before sending", "if", "params", "==", "nil", "{", "params", "=", "NewGetTasksParams", "(...
7,512
all-7513
[ "NewPathPrefixStripper", "returns", "path", "rewriter", "which", "removes", "prefixSize", "bytes", "from", "the", "path", "prefix", ".", "Examples", ":", "*", "prefixSize", "=", "0", "original", "path", ":", "/", "foo", "/", "bar", "result", ":", "/", "foo",...
[ "func", "NewPathPrefixStripper", "(", "prefixSize", "int", ")", "PathRewriteFunc", "{", "return", "func", "(", "ctx", "*", "RequestCtx", ")", "[", "]", "byte", "{", "<mask>", ":=", "ctx", ".", "Path", "(", ")", "\n", "if", "len", "(", "path", ")", ">="...
7,513
all-7514
[ "detectPropertiesHelper", "performs", "the", "work", "of", "detectProperties", "which", "executes", "it", "at", "most", "once", "." ]
[ "func", "(", "c", "*", "dockerClient", ")", "detectPropertiesHelper", "(", "ctx", "context", ".", "Context", ")", "error", "{", "if", "c", ".", "scheme", "!=", "\"", "\"", "{", "return", "nil", "\n", "}", "\n\n", "// We overwrite the TLS clients `InsecureSkipV...
7,514
all-7515
[ "Suppress", "instructs", "the", "writer", "to", "suppress", "any", "message", "with", "the", "specified", "level", "." ]
[ "func", "(", "w", "*", "Writer", ")", "Suppress", "(", "levels", "...", "string", ")", "{", "p", ":=", "w", ".", "Levels", "(", ")", "\n", "for", "_", ",", "<mask>", ":=", "range", "levels", "{", "p", "[", "level", "]", "=", "\"", "\"", "\n", ...
7,515
all-7516
[ "StartExec", "will", "execute", "the", "command", "using", "the", "given", "executor", "and", "return", "(", "without", "waiting", "for", "completion", ")", "with", "the", "exec", ".", "Cmd" ]
[ "func", "(", "e", "*", "execStreamer", ")", "StartExec", "(", ")", "(", "*", "exec", ".", "Cmd", ",", "error", ")", "{", "x", ",", "err", ":=", "NewExecutorFromName", "(", "e", ".", "ExecutorName", ")", "\n", "if", "err", "!=", "nil", "{", "return"...
7,516
all-7517
[ "If", "remoteAddr", "is", "set", "then", "return", "is", "without", "the", "port", "number", "apache", "log", "style", "." ]
[ "func", "(", "u", "*", "accessLogUtil", ")", "ApacheRemoteAddr", "(", ")", "string", "{", "remoteAddr", ":=", "u", ".", "R", ".", "RemoteAddr", "\n", "if", "remoteAddr", "!=", "\"", "\"", "{", "if", "ip", ",", "_", ",", "err", ":=", "<mask>", ".", ...
7,517
all-7518
[ "exec", "executes", "the", "query", ".", "At", "this", "point", "per", "query", "only", "one", "EvalStmt", "is", "evaluated", ".", "Alert", "and", "record", "statements", "are", "not", "handled", "by", "the", "Engine", "." ]
[ "func", "(", "ng", "*", "Engine", ")", "exec", "(", "ctx", "context", ".", "Context", ",", "q", "*", "query", ")", "(", "Value", ",", "storage", ".", "Warnings", ",", "error", ")", "{", "ng", ".", "metrics", ".", "currentQueries", ".", "Inc", "(", ...
7,518
all-7519
[ "liveBootstrap", "attempts", "to", "seed", "an", "initial", "configuration", "for", "the", "cluster", ".", "See", "the", "Raft", "object", "s", "member", "BootstrapCluster", "for", "more", "details", ".", "This", "must", "only", "be", "called", "on", "the", ...
[ "func", "(", "r", "*", "Raft", ")", "liveBootstrap", "(", "configuration", "Configuration", ")", "error", "{", "// Use the pre-init API to make the static updates.", "err", ":=", "BootstrapCluster", "(", "&", "r", ".", "conf", ",", "r", ".", "logs", ",", "r", ...
7,519
all-7520
[ "GetLicense", "is", "a", "wrapper", "around", "gtk_about_dialog_get_license", "()", "." ]
[ "func", "(", "v", "*", "AboutDialog", ")", "GetLicense", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_about_dialog_get_license", "(", "v", ".", "native", "(", ")", ")", "\n", "return", "C", ".", "GoString", "(", "(", "*", "C", ".", "<mask>", ...
7,520
all-7521
[ "HTTPRespondMarshalXML", "marshals", "response", "as", "XML", "to", "responseWriter", "sets", "Content", "-", "Type", "to", "application", "/", "xml", "and", "compresses", "the", "response", "if", "Content", "-", "Encoding", "from", "the", "request", "allows", "...
[ "func", "HTTPRespondMarshalXML", "(", "response", "interface", "{", "}", ",", "rootElement", "string", ",", "responseWriter", "http", ".", "ResponseWriter", ",", "request", "*", "http", ".", "Request", ")", "(", "err", "error", ")", "{", "NewHTTPCompressHandlerF...
7,521
all-7522
[ "GetRequests", "returns", "the", "Requests", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "ScatterplotDefinition", ")", "GetRequests", "(", ")", "ScatterplotRequests", "{", "if", "s", "==", "nil", "||", "s", ".", "Requests", "==", "nil", "{", "return", "ScatterplotRequests", "{", "}", "\n", "}", "\n", "<mask>", "*", "s"...
7,522
all-7523
[ "GetResolutionY", "()", "is", "a", "wrapper", "around", "gtk_print_settings_get_resolution_y", "()", "." ]
[ "func", "(", "ps", "*", "PrintSettings", ")", "GetResolutionY", "(", ")", "int", "{", "c", ":=", "C", ".", "gtk_print_settings_get_resolution_y", "(", "<mask>", ".", "native", "(", ")", ")", "\n", "return", "int", "(", "c", ")", "\n", "}" ]
7,523
all-7524
[ "AccelMapLoad", "is", "a", "wrapper", "around", "gtk_accel_map_load", "()", "." ]
[ "func", "AccelMapLoad", "(", "fileName", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "fileName", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n\n", "C", ".", "gtk_accel_map_load", "(", ...
7,524
all-7525
[ "CandidateLocations", "returns", "a", "prioritized", "limited", "number", "of", "blobs", "and", "their", "locations", "that", "could", "possibly", "be", "reused", "within", "the", "specified", "(", "transport", "scope", ")", "(", "if", "they", "still", "exist", ...
[ "func", "(", "noCache", ")", "CandidateLocations", "(", "transport", "<mask>", ".", "ImageTransport", ",", "scope", "types", ".", "BICTransportScope", ",", "digest", "digest", ".", "Digest", ",", "canSubstitute", "bool", ")", "[", "]", "types", ".", "BICReplac...
7,525
all-7526
[ "ReadAll", "will", "either", "read", "the", "entire", "file", "or", "throw", "an", "error", "if", "file", "size", "is", "too", "big" ]
[ "func", "(", "a", "*", "GCSArtifact", ")", "ReadAll", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "size", ",", "err", ":=", "a", ".", "Size", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "fmt", ".", "Error...
7,526
all-7527
[ "Output", "a", "line", "of", "code", "that", "registers", "the", "given", "statement", "and", "declares", "the", "associated", "statement", "code", "global", "variable", "." ]
[ "func", "(", "s", "*", "Stmt", ")", "register", "(", "buf", "*", "<mask>", ".", "Buffer", ",", "sql", "string", ",", "filters", "...", "string", ")", "{", "kind", ":=", "strings", ".", "Replace", "(", "s", ".", "kind", ",", "\"", "\"", ",", "\"",...
7,527
all-7528
[ "VerifyContentType", "returns", "a", "handler", "that", "verifies", "that", "a", "request", "has", "a", "Content", "-", "Type", "header", "set", "to", "the", "specified", "value" ]
[ "func", "VerifyContentType", "(", "contentType", "string", ")", "<mask>", ".", "HandlerFunc", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "req", "*", "http", ".", "Request", ")", "{", "Expect", "(", "req", ".", "Header", ".", "Ge...
7,528
all-7529
[ "CouldRun", "determines", "if", "the", "presubmit", "could", "run", "against", "a", "specific", "base", "ref" ]
[ "func", "(", "ps", "Presubmit", ")", "CouldRun", "(", "baseRef", "string", ")", "bool", "{", "return", "<mask>", ".", "Brancher", ".", "ShouldRun", "(", "baseRef", ")", "\n", "}" ]
7,529
all-7530
[ "Wrap", "makes", "an", "Error", "from", "the", "given", "value", ".", "If", "that", "value", "is", "already", "an", "error", "then", "it", "will", "be", "used", "directly", "if", "not", "it", "will", "be", "passed", "to", "fmt", ".", "Errorf", "(", "...
[ "func", "Wrap", "(", "e", "interface", "{", "}", ",", "skip", "int", ")", "*", "Error", "{", "if", "e", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "var", "err", "error", "\n\n", "switch", "e", ":=", "e", ".", "(", "type", ")", "{", ...
7,530
all-7531
[ "flattenVmwareDistributedVirtualSwitchPvlanSpec", "reads", "various", "fields", "from", "a", "VmwareDistributedVirtualSwitchPvlanSpec", "into", "the", "passed", "in", "ResourceData", "." ]
[ "func", "flattenVmwareDistributedVirtualSwitchPvlanSpec", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "<mask>", ".", "VmwareDistributedVirtualSwitchPvlanSpec", ")", "error", "{", "d", ".", "Set", "(", "\"", "\"", ",", "obj", ".", "PvlanId", ")...
7,531
all-7532
[ "native", "()", "returns", "a", "pointer", "to", "the", "underlying", "GtkMenu", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "native", "(", ")", "*", "C", ".", "GtkMenu", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "(", "v", "."...
7,532
all-7533
[ "GetCreatedAt", "sets", "the", "timestamp", "for", "resource", "s", "creation", "time" ]
[ "func", "(", "cgroup", "*", "CgroupResource", ")", "GetCreatedAt", "(", ")", "time", ".", "Time", "{", "cgroup", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "cgroup", ".", "<mask>", ".", "RUnlock", "(", ")", "\n\n", "return", "cgroup", ".", "...
7,533
all-7534
[ "synthesizeMain", "generates", "a", "new", "main", "func", "and", "writes", "it", "to", "the", "tarball", "." ]
[ "func", "synthesizeMain", "(", "tw", "*", "tar", ".", "Writer", ",", "appFiles", "[", "]", "string", ")", "error", "{", "appMap", ":=", "make", "(", "map", "[", "string", "]", "bool", ")", "\n", "for", "_", ",", "f", ":=", "range", "appFiles", "{",...
7,534
all-7535
[ "export", "FileSequence_SetBasename" ]
[ "func", "FileSequence_SetBasename", "(", "id", "FileSeqId", ",", "<mask>", "*", "C", ".", "char", ")", "{", "if", "fs", ",", "ok", ":=", "sFileSeqs", ".", "Get", "(", "id", ")", ";", "ok", "{", "str", ":=", "C", ".", "GoString", "(", "base", ")", ...
7,535
all-7536
[ "Restore", "restores", "*", "graphicscommand", ".", "Image", "from", "the", "pixels", "using", "its", "state", "." ]
[ "func", "(", "i", "*", "Image", ")", "restore", "(", ")", "error", "{", "w", ",", "h", ":=", "i", ".", "image", ".", "Size", "(", ")", "\n", "if", "i", ".", "screen", "{", "// The screen image should also be recreated because framebuffer might", "// be chang...
7,536
all-7537
[ "Name", "returns", "the", "pysical", "button", "s", "name", "for", "the", "given", "virtual", "button", "." ]
[ "func", "(", "c", "*", "gamepadConfig", ")", "ButtonName", "(", "b", "virtualGamepadButton", ")", "string", "{", "if", "!", "c", ".", "gamepadIDInitialized", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "c", ".", "initializeIfNeeded", "(", ")",...
7,537
all-7538
[ "UnmarshalJSON", "is", "a", "custom", "JSON", "parser", "for", "MapMatcher", "It", "treats", "the", "matchers", "as", "strings" ]
[ "func", "(", "m", "*", "MapMatcher", ")", "UnmarshalJSON", "(", "bytes", "[", "]", "byte", ")", "(", "err", "error", ")", "{", "sk", ":=", "make", "(", "map", "[", "string", "]", "string", ")", "\n", "err", "=", "json", ".", "Unmarshal", "(", "by...
7,538
all-7539
[ "CreateVolume", "creates", "a", "volume" ]
[ "func", "(", "c", "*", "Client", ")", "CreateVolume", "(", "dcid", "string", ",", "request", "Volume", ")", "(", "*", "Volume", ",", "error", ")", "{", "url", ":=", "volumeColPath", "(", "dcid", ")", "+", "`?depth=`", "+", "c", ".", "client", ".", ...
7,539
all-7540
[ "GetStartOk", "returns", "a", "tuple", "with", "the", "Start", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "Series", ")", "GetStartOk", "(", ")", "(", "float64", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "Start", "==", "nil", "{", "return", "0", ",", "false", "\n", "}", "\n", "return", "*", "s", ".", "St...
7,540
all-7541
[ "RemoveAccelerator", "is", "a", "wrapper", "around", "gtk_widget_remove_accelerator", "()", "." ]
[ "func", "(", "v", "*", "Widget", ")", "RemoveAccelerator", "(", "<mask>", "*", "AccelGroup", ",", "key", "uint", ",", "mods", "gdk", ".", "ModifierType", ")", "bool", "{", "return", "gobool", "(", "C", ".", "gtk_widget_remove_accelerator", "(", "v", ".", ...
7,541
all-7542
[ "NewBucketEntry", "creates", "a", "new", "BucketEntry", "." ]
[ "func", "NewBucketEntry", "(", "aType", "BucketEntryType", ",", "value", "<mask>", "{", "}", ")", "(", "result", "BucketEntry", ",", "err", "error", ")", "{", "result", ".", "Type", "=", "aType", "\n", "switch", "BucketEntryType", "(", "aType", ")", "{", ...
7,542
all-7543
[ "ExtractToFile", "extracts", "a", "given", "file", "from", "the", "archive", "to", "a", "file", "on", "disk" ]
[ "func", "(", "a", "*", "Archive", ")", "ExtractToFile", "(", "dstPath", "string", ",", "name", "string", ")", "error", "{", "f", ",", "err", ":=", "<mask>", ".", "Create", "(", "dstPath", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "...
7,543
all-7544
[ "HasSizeVersion", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasSizeVersion", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "SizeVersion", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
7,544
all-7545
[ "GetUsername", "returns", "the", "user", "name", "from", "the", "password", "database", "for", "the", "actual", "process", ".", "It", "panics", "whther", "there", "is", "an", "error", "at", "searching", "the", "UID", "." ]
[ "func", "GetUsername", "(", ")", "string", "{", "entry", ",", "err", ":=", "LookupUID", "(", "os", ".", "Getuid", "(", ")", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "return", "<mask>", ".", "Name", "\n"...
7,545
all-7546
[ "Things", "we", "don", "t", "need", "to", "care", "about" ]
[ "func", "(", "s", "*", "storageZfs", ")", "ContainerMount", "(", "c", "<mask>", ")", "(", "bool", ",", "error", ")", "{", "return", "s", ".", "doContainerMount", "(", "c", ".", "Project", "(", ")", ",", "c", ".", "Name", "(", ")", ",", "c", ".", ...
7,546
all-7547
[ "Create", "a", "dynamic", "secret", "to", "use", "with", "a", "new", "check" ]
[ "func", "(", "cm", "*", "CheckManager", ")", "makeSecret", "(", ")", "(", "string", ",", "error", ")", "{", "<mask>", ":=", "sha256", ".", "New", "(", ")", "\n", "x", ":=", "make", "(", "[", "]", "byte", ",", "2048", ")", "\n", "if", "_", ",", ...
7,547
all-7548
[ "Match", "determines", "whether", "a", "file", "given", "here", "by", "its", "full", "path", "is", "included", "in", "the", "generated", "files", "group", "." ]
[ "func", "(", "g", "*", "Group", ")", "Match", "(", "path", "string", ")", "bool", "{", "if", "g", ".", "Paths", "[", "path", "]", "{", "return", "true", "\n", "}", "\n\n", "for", "prefix", ":=", "range", "g", ".", "PathPrefixes", "{", "if", "stri...
7,548
all-7549
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GlobalLexicalScopeNamesParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime20", "(", "&", "w", ",", ...
7,549
all-7550
[ "validateVersion", "checks", "whether", "current", "version", "is", "greater", "or", "equal", "to", "supported", "version", "." ]
[ "func", "validateVersion", "(", "<mask>", ",", "current", "string", ")", "bool", "{", "if", "supported", "==", "\"", "\"", "{", "return", "true", "\n", "}", "\n", "vSupported", ",", "err", ":=", "goVersion", ".", "NewVersion", "(", "supported", ")", "\n"...
7,550
all-7551
[ "updateContainerDesiredStatusUnsafe", "sets", "all", "container", "s", "desired", "status", "s", "to", "the", "task", "s", "desired", "status", "Invariant", ":", "container", "desired", "status", "is", "<", "=", "task", "desired", "status", "converted", "to", "c...
[ "func", "(", "<mask>", "*", "Task", ")", "updateContainerDesiredStatusUnsafe", "(", "taskDesiredStatus", "apitaskstatus", ".", "TaskStatus", ")", "{", "for", "_", ",", "container", ":=", "range", "task", ".", "Containers", "{", "taskDesiredStatusToContainerStatus", ...
7,551
all-7552
[ "Pop", "returns", "the", "entry", "at", "the", "top", "of", "the", "Stack", "then", "removes", "it", "." ]
[ "func", "(", "stack", "*", "Stack", ")", "Pop", "(", ")", "(", "<mask>", "{", "}", ",", "bool", ")", "{", "stack", ".", "key", ".", "Lock", "(", ")", "\n", "defer", "stack", ".", "key", ".", "Unlock", "(", ")", "\n\n", "if", "nil", "==", "sta...
7,552
all-7553
[ "UnmarshalEasyJSON", "sets", "the", "Duration", "from", "a", "easyjson", ".", "Lexer" ]
[ "func", "(", "d", "*", "Duration", ")", "UnmarshalEasyJSON", "(", "in", "*", "jlexer", ".", "Lexer", ")", "{", "if", "data", ":=", "in", ".", "String", "(", ")", ";", "<mask>", ".", "Ok", "(", ")", "{", "tt", ",", "err", ":=", "ParseDuration", "(...
7,553
all-7554
[ "scalarBinop", "evaluates", "a", "binary", "operation", "between", "two", "Scalars", "." ]
[ "func", "scalarBinop", "(", "op", "ItemType", ",", "lhs", ",", "rhs", "float64", ")", "float64", "{", "switch", "op", "{", "case", "ItemADD", ":", "return", "lhs", "+", "rhs", "\n", "case", "ItemSUB", ":", "return", "lhs", "-", "rhs", "\n", "case", "...
7,554
all-7555
[ "Scan", "reads", "a", "Duration", "value", "from", "database", "driver", "type", "." ]
[ "func", "(", "d", "*", "Duration", ")", "Scan", "(", "raw", "interface", "{", "}", ")", "error", "{", "switch", "v", ":=", "raw", ".", "(", "type", ")", "{", "// TODO: case []byte: // ?", "case", "int64", ":", "*", "d", "=", "Duration", "(", "v", "...
7,555
all-7556
[ "AppendString", "is", "like", "Append", "but", "writes", "the", "contents", "of", "string", "s", "rather", "than", "an", "array", "of", "bytes", "." ]
[ "func", "(", "e", "*", "edit", ")", "AppendString", "(", "s", "string", ")", "error", "{", "return", "e", ".", "Append", "(", "[", "]", "<mask>", "(", "s", ")", ")", "\n", "}" ]
7,556
all-7557
[ "simultaneously", "specify", "and", "enable", "several", "interleaved", "arrays" ]
[ "func", "InterleavedArrays", "(", "format", "uint32", ",", "stride", "int32", ",", "pointer", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall", "(", "gpInterleavedArrays", ",", "3", ",", "uintptr", "(", "<mask>", ")", ",", "uintptr", "(", "str...
7,557
all-7558
[ "GetHandlers", "returns", "all", "handlers", "registered", "on", "this", "subchannel", "by", "method", "name", ".", "This", "function", "panics", "if", "the", "Handler", "for", "the", "SubChannel", "was", "overwritten", "with", "SetHandler", "." ]
[ "func", "(", "c", "*", "SubChannel", ")", "GetHandlers", "(", ")", "map", "[", "string", "]", "Handler", "{", "handlers", ",", "ok", ":=", "c", ".", "handler", ".", "(", "*", "handlerMap", ")", "\n", "if", "!", "ok", "{", "panic", "(", "fmt", "."...
7,558
all-7559
[ "Stem", "an", "English", "word", ".", "This", "is", "the", "only", "exported", "function", "in", "this", "package", "." ]
[ "func", "Stem", "(", "word", "string", ",", "stemStopwWords", "bool", ")", "string", "{", "word", "=", "strings", ".", "ToLower", "(", "strings", ".", "TrimSpace", "(", "word", ")", ")", "\n\n", "// Return small words and stop words", "if", "len", "(", "word...
7,559
all-7560
[ "IsA", "is", "a", "wrapper", "around", "g_type_is_a", "()", "." ]
[ "func", "(", "v", "*", "Object", ")", "IsA", "(", "typ", "<mask>", ")", "bool", "{", "return", "gobool", "(", "C", ".", "g_type_is_a", "(", "C", ".", "GType", "(", "v", ".", "TypeFromInstance", "(", ")", ")", ",", "C", ".", "GType", "(", "typ", ...
7,560
all-7561
[ "ValidSecret", "implements", "the", "flame", ".", "Client", "interface", "." ]
[ "func", "(", "a", "*", "<mask>", ")", "ValidSecret", "(", "secret", "string", ")", "bool", "{", "return", "bcrypt", ".", "CompareHashAndPassword", "(", "a", ".", "SecretHash", ",", "[", "]", "byte", "(", "secret", ")", ")", "==", "nil", "\n", "}" ]
7,561
all-7562
[ "MustSync", "returns", "true", "if", "the", "hard", "state", "and", "count", "of", "Raft", "entries", "indicate", "that", "a", "synchronous", "write", "to", "persistent", "storage", "is", "required", "." ]
[ "func", "MustSync", "(", "st", ",", "prevst", "<mask>", ".", "HardState", ",", "entsnum", "int", ")", "bool", "{", "// Persistent state on all servers:", "// (Updated on stable storage before responding to RPCs)", "// currentTerm", "// votedFor", "// log entries[]", "return",...
7,562
all-7563
[ "Returns", "an", "slice", "of", "ints64", "or", "the", "specified", "slice", "Some", "conversion", "is", "done", "to", "handle", "the", "fact", "that", "JSON", "ints", "are", "represented", "as", "floats", "." ]
[ "func", "(", "t", "Typed", ")", "Ints64", "(", "key", "string", ")", "[", "]", "int64", "{", "return", "t", ".", "Ints64Or", "(", "<mask>", ",", "nil", ")", "\n", "}" ]
7,563
all-7564
[ "URLParts", "spliths", "a", "path", "into", "parts", "and", "caches", "it", "in", "the", "context" ]
[ "func", "URLParts", "(", "ctx", "context", ".", "<mask>", ",", "r", "*", "http", ".", "Request", ")", "(", "context", ".", "Context", ",", "[", "]", "string", ")", "{", "if", "ctx", "==", "nil", "{", "ctx", "=", "context", ".", "Background", "(", ...
7,564
all-7565
[ "ApiKeyAuth", "instantiates", "ApiKeyAuthentication", "with", "the", "API", "key", "&", "secret" ]
[ "func", "apiKeyAuth", "(", "key", "string", ",", "<mask>", "string", ")", "*", "apiKeyAuthentication", "{", "a", ":=", "apiKeyAuthentication", "{", "Key", ":", "key", ",", "Secret", ":", "secret", ",", "BaseUrl", ":", "config", ".", "BaseUrl", ",", "Client...
7,565
all-7566
[ "Propose", "proposes", "data", "be", "appended", "to", "the", "raft", "log", "." ]
[ "func", "(", "rn", "*", "RawNode", ")", "Propose", "(", "data", "[", "]", "byte", ")", "error", "{", "return", "rn", ".", "raft", ".", "Step", "(", "pb", ".", "<mask>", "{", "Type", ":", "pb", ".", "MsgProp", ",", "From", ":", "rn", ".", "raft"...
7,566
all-7567
[ "GetActionParameterType", "is", "a", "wrapper", "around", "g_action_group_get_action_parameter_type", "()", "." ]
[ "func", "(", "v", "*", "ActionGroup", ")", "GetActionParameterType", "(", "actionName", "string", ")", "*", "VariantType", "{", "c", ":=", "C", ".", "g_action_group_get_action_parameter_type", "(", "v", ".", "native", "(", ")", ",", "(", "*", "C", ".", "gc...
7,567
all-7568
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "Animation", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19", "(", "&", "w", ",", "v", ")", "\...
7,568
all-7569
[ "FindNodeByPos", "finds", "a", "node", "from", "the", "given", "position", ".", "Returns", "nil", "if", "the", "node", "is", "not", "found", "." ]
[ "func", "FindNodeByPos", "(", "n", "Node", ",", "pos", "int", ")", "Node", "{", "if", "n", ".", "Pos", "(", ")", "==", "pos", "{", "return", "n", "\n", "}", "\n\n", "if", "elem", ",", "ok", ":=", "n", ".", "(", "Elem", ")", ";", "ok", "{", ...
7,569
all-7570
[ "Parameter", "clientBuffer", "has", "type", "C", ".", "GLeglClientBufferEXT", "." ]
[ "func", "NamedBufferStorageExternalEXT", "(", "buffer", "uint32", ",", "offset", "int", ",", "size", "int", ",", "clientBuffer", "unsafe", ".", "Pointer", ",", "flags", "uint32", ")", "{", "syscall", ".", "Syscall6", "(", "gpNamedBufferStorageExternalEXT", ",", ...
7,570
all-7571
[ "GetViz", "returns", "the", "Viz", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "t", "*", "TileDef", ")", "GetViz", "(", ")", "<mask>", "{", "if", "t", "==", "nil", "||", "t", ".", "Viz", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "t", ".", "Viz", "\n", "}" ]
7,571
all-7572
[ "LoggerWithPrefix", "appends", "given", "prefix", "to", "log", "strings", "." ]
[ "func", "LoggerWithPrefix", "(", "prefix", "string", ")", "func", "(", "ctx", "*", "neptulon", ".", "ReqCtx", ")", "error", "{", "if", "prefix", "!=", "\"", "\"", "{", "prefix", "=", "prefix", "+", "\"", "\"", "\n", "}", "\n\n", "return", "func", "("...
7,572
all-7573
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "UtilityImages", "." ]
[ "func", "(", "in", "*", "UtilityImages", ")", "DeepCopy", "(", ")", "*", "UtilityImages", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "UtilityImages", ")", "\n", "<mask>", ".", "DeepCopyInto", "(", "o...
7,573
all-7574
[ "Fatalln", "logs", "a", "line", "with", "a", "FATAL", "prefix", "and", "exits", "the", "process", "with", "exit", "code", "1", "." ]
[ "func", "(", "l", "*", "logger", ")", "Fatalln", "(", "vals", "...", "interface", "{", "}", ")", "{", "l", ".", "mut", ".", "Lock", "(", ")", "\n", "defer", "l", ".", "mut", ".", "Unlock", "(", ")", "\n", "s", ":=", "fmt", ".", "Sprintln", "(...
7,574
all-7575
[ "SetSecureCookie", "sets", "given", "cookie", "value", "to", "response", "header", "with", "default", "secret", "string", "." ]
[ "func", "(", "ctx", "*", "Context", ")", "SetSecureCookie", "(", "name", ",", "value", "string", ",", "others", "...", "interface", "{", "}", ")", "{", "ctx", ".", "SetSuperSecureCookie", "(", "defaultCookieSecret", ",", "<mask>", ",", "value", ",", "other...
7,575
all-7576
[ "return", "a", "binary", "representation", "of", "a", "program", "object", "s", "compiled", "and", "linked", "executable", "source" ]
[ "func", "GetProgramBinary", "(", "program", "uint32", ",", "bufSize", "int32", ",", "length", "*", "int32", ",", "binaryFormat", "*", "uint32", ",", "binary", "unsafe", ".", "Pointer", ")", "{", "C", ".", "glowGetProgramBinary", "(", "gpGetProgramBinary", ",",...
7,576
all-7577
[ "SetModel", "is", "a", "wrapper", "around", "gtk_icon_view_set_model", "()", "." ]
[ "func", "(", "v", "*", "IconView", ")", "SetModel", "(", "model", "ITreeModel", ")", "{", "<mask>", "mptr", "*", "C", ".", "GtkTreeModel", "\n", "if", "model", "!=", "nil", "{", "mptr", "=", "model", ".", "toTreeModel", "(", ")", "\n", "}", "\n", "...
7,577
all-7578
[ "NewInlineQueryResultMpeg4Gif", "returns", "a", "new", "InlineQueryResultMpeg4Gif", "with", "all", "mandatory", "fields", "set", "." ]
[ "func", "NewInlineQueryResultMpeg4Gif", "(", "<mask>", ",", "mpeg4URL", ",", "thumbURL", "string", ")", "*", "InlineQueryResultMpeg4Gif", "{", "return", "&", "InlineQueryResultMpeg4Gif", "{", "InlineQueryResultBase", ":", "InlineQueryResultBase", "{", "Type", ":", "Phot...
7,578
all-7579
[ "flattenClusterDpmHostConfigInfo", "saves", "a", "ClusterDpmHostConfigInfo", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterDpmHostConfigInfo", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "types", ".", "ClusterDpmHostConfigInfo", ")", "error", "{", "return", "structure", ".", "SetBatch", "(", "d", ",", "map", "[", "string", "]", "<mask>", ...
7,579
all-7580
[ "Pin", "is", "an", "option", "for", "Dag", ".", "Put", "which", "specifies", "whether", "to", "pin", "the", "added", "dags", ".", "Default", "is", "false", "." ]
[ "func", "(", "dagOpts", ")", "Pin", "(", "<mask>", "string", ")", "DagPutOption", "{", "return", "func", "(", "opts", "*", "DagPutSettings", ")", "error", "{", "opts", ".", "Pin", "=", "pin", "\n", "return", "nil", "\n", "}", "\n", "}" ]
7,580
all-7581
[ "WriteUint32", "writes", "a", "big", "endian", "uint32", "value", "to", "the", "buffer" ]
[ "func", "(", "w", "*", "WriteBuffer", ")", "WriteUint32", "(", "n", "uint32", ")", "{", "if", "b", ":=", "w", ".", "reserve", "(", "4", ")", ";", "b", "!=", "nil", "{", "<mask>", ".", "BigEndian", ".", "PutUint32", "(", "b", ",", "n", ")", "\n"...
7,581
all-7582
[ "printJSON", "prints", "v", "as", "JSON", "encoded", "with", "indent", "to", "stdout", ".", "It", "panics", "on", "any", "error", "." ]
[ "func", "printJSON", "(", "v", "<mask>", "{", "}", ")", "{", "w", ":=", "json", ".", "NewEncoder", "(", "os", ".", "Stdout", ")", "\n", "w", ".", "SetIndent", "(", "\"", "\"", ",", "\"", "\\t", "\"", ")", "\n", "err", ":=", "w", ".", "Encode", ...
7,582
all-7583
[ "isPlainText", "returns", "true", "if", "the", "line", "is", "a", "plain", "text", "." ]
[ "func", "(", "l", "*", "line", ")", "isPlainText", "(", ")", "bool", "{", "return", "len", "(", "l", ".", "tokens", ")", ">", "0", "&&", "(", "l", ".", "tokens", "[", "0", "]", "==", "<mask>", "||", "l", ".", "tokens", "[", "0", "]", "==", ...
7,583
all-7584
[ "RegisterTransactionSetter", "registers", "a", "function", "that", "sets", "transaction", "information", "in", "a", "protocol", "buffer", "message", ".", "f", "should", "be", "a", "function", "with", "two", "arguments", "the", "first", "being", "a", "protocol", ...
[ "func", "RegisterTransactionSetter", "(", "f", "interface", "{", "}", ")", "{", "v", ":=", "reflect", ".", "ValueOf", "(", "f", ")", "\n", "transactionSetters", "[", "v", ".", "<mask>", "(", ")", ".", "In", "(", "0", ")", "]", "=", "v", "\n", "}" ]
7,584
all-7585
[ "v2MembersURL", "add", "the", "necessary", "path", "to", "the", "provided", "endpoint", "to", "route", "requests", "to", "the", "default", "v2", "members", "API", "." ]
[ "func", "v2MembersURL", "(", "ep", "url", ".", "URL", ")", "*", "url", ".", "URL", "{", "ep", ".", "Path", "=", "path", ".", "Join", "(", "ep", ".", "<mask>", ",", "defaultV2MembersPrefix", ")", "\n", "return", "&", "ep", "\n", "}" ]
7,585
all-7586
[ "rootType", "recurses", "through", "typedefs", "and", "returns", "the", "underlying", "type", "." ]
[ "func", "(", "s", "*", "State", ")", "rootType", "(", "thriftType", "*", "<mask>", ".", "Type", ")", "*", "parser", ".", "Type", "{", "if", "state", ",", "newType", ",", "include", ":=", "s", ".", "checkInclude", "(", "thriftType", ")", ";", "include...
7,586
all-7587
[ "Open", "creates", "pubsub", "hub", "connected", "to", "nats", "server", "." ]
[ "func", "Open", "(", "URL", "...", "string", ")", "(", "pubsub", ".", "Hub", ",", "error", ")", "{", "if", "len", "(", "<mask>", ")", "==", "0", "{", "URL", "=", "[", "]", "string", "{", "nats", ".", "DefaultURL", "}", "\n", "}", "\n\n", "log",...
7,587
all-7588
[ "specify", "implementation", "-", "specific", "hints" ]
[ "func", "Hint", "(", "target", "uint32", ",", "mode", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpHint", ",", "2", ",", "uintptr", "(", "<mask>", ")", ",", "uintptr", "(", "mode", ")", ",", "0", ")", "\n", "}" ]
7,588
all-7589
[ "Fetch", "queries", "the", "Consul", "API", "defined", "by", "the", "given", "client", "and", "returns", "a", "slice", "of", "Node", "objects" ]
[ "func", "(", "d", "*", "CatalogNodesQuery", ")", "Fetch", "(", "clients", "*", "ClientSet", ",", "opts", "*", "QueryOptions", ")", "(", "interface", "{", "}", ",", "*", "ResponseMetadata", ",", "error", ")", "{", "select", "{", "case", "<-", "d", ".", ...
7,589
all-7590
[ "Performs", "a", "rebalance", "part", "of", "the", "mainLoop", "()" ]
[ "func", "(", "c", "*", "<mask>", ")", "rebalance", "(", ")", "(", "map", "[", "string", "]", "[", "]", "int32", ",", "error", ")", "{", "memberID", ",", "_", ":=", "c", ".", "membership", "(", ")", "\n", "sarama", ".", "Logger", ".", "Printf", ...
7,590
all-7591
[ "ContainerProfilesRef", "returns", "entities", "used", "by", "containers", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "ContainerProfilesRef", "(", "filter", "ContainerFilter", ")", "(", "<mask>", "[", "string", "]", "map", "[", "string", "]", "[", "]", "string", ",", "error", ")", "{", "// Result slice.", "objects", ":=", "make", ...
7,591
all-7592
[ "checkCompatibility", "(", "for", "linux", ")", "ensures", "that", "the", "running", "task", "engine", "is", "capable", "for", "running", "with", "the", "TaskCPUMemLimit", "flag", "enabled", ".", "It", "will", "disable", "the", "feature", "if", "it", "determin...
[ "func", "(", "agent", "*", "ecsAgent", ")", "checkCompatibility", "(", "engine", "engine", ".", "TaskEngine", ")", "error", "{", "// We don't need to do these checks if CPUMemLimit is disabled", "if", "!", "agent", ".", "cfg", ".", "TaskCPUMemLimit", ".", "Enabled", ...
7,592
all-7593
[ "DenyAccess", "will", "enforce", "the", "authorization", "by", "directly", "returning", "an", "access", "denied", "error", ".", "It", "should", "be", "used", "if", "the", "operation", "should", "not", "be", "authorized", "in", "any", "case", "(", ".", "e", ...
[ "func", "DenyAccess", "(", ")", "*", "Enforcer", "{", "return", "E", "(", "\"", "\"", ",", "<mask>", ".", "All", "(", ")", ",", "func", "(", "_", "*", "fire", ".", "Context", ")", "error", "{", "return", "fire", ".", "ErrAccessDenied", "\n", "}", ...
7,593
all-7594
[ "Validate", "checks", "if", "the", "API", "and", "application", "keys", "are", "valid", "." ]
[ "func", "(", "client", "*", "Client", ")", "Validate", "(", ")", "(", "bool", ",", "error", ")", "{", "var", "out", "valid", "\n", "var", "resp", "*", "http", ".", "Response", "\n\n", "uri", ",", "err", ":=", "client", ".", "uriForAPI", "(", "\"", ...
7,594
all-7595
[ "SetHandler", "reigsters", "the", "given", "handler", "that", "matches", "with", "any", "method", "." ]
[ "func", "(", "e", "*", "Entry", ")", "SetHandler", "(", "h", "*", "Route", ")", "error", "{", "if", "e", ".", "<mask>", "!=", "nil", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "e", ".", "handler", "=", "h", "\...
7,595
all-7596
[ "getExecutionCredentialsID", "returns", "the", "execution", "role", "s", "credential", "ID" ]
[ "func", "(", "secret", "*", "ASMSecretResource", ")", "getExecutionCredentialsID", "(", ")", "string", "{", "<mask>", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "secret", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "secret", ".", "e...
7,596
all-7597
[ "ProcessFile", "creates", "a", "new", "PROCESS_FILE", "Nagios", "command", ".", "Directs", "Nagios", "to", "process", "all", "external", "commands", "that", "are", "found", "in", "the", "file", "specified", "by", "the", "<file_name", ">", "argument", ".", "If"...
[ "func", "ProcessFile", "(", "file_name", "string", ",", "delete", "bool", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\"", "\"", ",", "stringifyArg", "(", "\"", "\"", ",", "\"", "\"", ",", "file_name...
7,597
all-7598
[ "Execute", "the", "our", "task", "function", "according", "to", "our", "schedule", "until", "the", "given", "context", "gets", "cancelled", "." ]
[ "func", "(", "t", "*", "<mask>", ")", "loop", "(", "ctx", "context", ".", "Context", ")", "{", "// Kick off the task immediately (as long as the the schedule is", "// greater than zero, see below).", "delay", ":=", "immediately", "\n\n", "for", "{", "var", "timer", "<...
7,598
all-7599
[ "DeleteMulti", "is", "a", "batch", "version", "of", "Delete", "." ]
[ "func", "DeleteMulti", "(", "c", "context", ".", "Context", ",", "key", "[", "]", "*", "Key", ")", "error", "{", "if", "len", "(", "key", ")", "==", "0", "{", "return", "nil", "\n", "}", "\n", "if", "err", ":=", "multiValid", "(", "key", ")", "...
7,599
all-7600
[ "GetSelection", "is", "a", "wrapper", "around", "gtk_tree_view_get_selection", "()", "." ]
[ "func", "(", "v", "*", "TreeView", ")", "GetSelection", "(", ")", "(", "*", "TreeSelection", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_tree_view_get_selection", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "ret...