id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
24,900
all-24901
[ "Uint32", "returns", "the", "uint32", "value", "stored", "in", "r", ".", "r", "must", "have", "type", "uint32", "." ]
[ "func", "(", "r", "region", ")", "Uint32", "(", ")", "uint32", "{", "if", "r", ".", "typ", ".", "Kind", "!=", "KindUint", "||", "r", ".", "typ", ".", "Size", "!=", "4", "{", "panic", "(", "\"", "\"", "+", "r", ".", "typ", ".", "<mask>", ")", ...
24,901
all-24902
[ "==", "Set", "variables", "_Set", "sets", "the", "value", "named", "by", "the", "key", "in", "the", "given", "filename", "." ]
[ "func", "_Set", "(", "filename", ",", "key", ",", "value", "string", ")", "error", "{", "// Check if the key is already used.", "conf", ",", "err", ":=", "shconf", ".", "ParseFile", "(", "filename", ")", "\n", "if", "err", "!=", "nil", "{", "if", "err", ...
24,902
all-24903
[ "returns", "the", "message", "price", "by", "country" ]
[ "func", "(", "cmps", "*", "CountryMessagingPriceService", ")", "Get", "(", "ctx", "context", ".", "<mask>", ",", "isoCountry", "string", ")", "(", "*", "MessagePrice", ",", "error", ")", "{", "messagePrice", ":=", "new", "(", "MessagePrice", ")", "\n", "er...
24,903
all-24904
[ "HasOverride", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "h", "*", "HostActionMute", ")", "HasOverride", "(", ")", "bool", "{", "if", "h", "!=", "nil", "&&", "h", ".", "Override", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
24,904
all-24905
[ "CreatedByString", "return", "a", "short", "context", "about", "the", "origin", "of", "this", "goroutine", "signature", "." ]
[ "func", "(", "s", "*", "Signature", ")", "CreatedByString", "(", "fullPath", "bool", ")", "string", "{", "created", ":=", "s", ".", "CreatedBy", ".", "Func", ".", "PkgDotName", "(", ")", "\n", "if", "<mask>", "==", "\"", "\"", "{", "return", "\"", "\...
24,905
all-24906
[ "calcKeys50", "calculates", "the", "keys", "used", "in", "RAR", "5", "archive", "processing", ".", "The", "returned", "slice", "of", "byte", "slices", "contains", "3", "keys", ".", "Key", "0", "is", "used", "for", "block", "or", "file", "decryption", ".", ...
[ "func", "calcKeys50", "(", "pass", ",", "salt", "[", "]", "byte", ",", "kdfCount", "int", ")", "[", "]", "[", "]", "byte", "{", "if", "len", "(", "salt", ")", ">", "maxPbkdf2Salt", "{", "salt", "=", "salt", "[", ":", "maxPbkdf2Salt", "]", "\n", "...
24,906
all-24907
[ "Flush", "the", "current", "batch", "." ]
[ "func", "(", "h", "*", "Handler", ")", "Flush", "(", ")", "{", "h", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "h", ".", "mu", ".", "Unlock", "(", ")", "\n", "if", "h", ".", "<mask>", "!=", "nil", "{", "go", "h", ".", "flush", "(", ...
24,907
all-24908
[ "Apply", "will", "compare", "the", "actual", "and", "expected", "firewall", "config", "if", "needed", "it", "will", "create", "the", "firewall", "." ]
[ "func", "(", "r", "*", "Firewall", ")", "Apply", "(", "actual", ",", "expected", "cloud", ".", "Resource", ",", "immutable", "*", "cluster", ".", "Cluster", ")", "(", "*", "cluster", ".", "Cluster", ",", "cloud", ".", "Resource", ",", "error", ")", "...
24,908
all-24909
[ "ReplayManifestFile", "reads", "the", "manifest", "file", "and", "constructs", "two", "manifest", "objects", ".", "(", "We", "need", "one", "immutable", "copy", "and", "one", "mutable", "copy", "of", "the", "manifest", ".", "Easiest", "way", "is", "to", "con...
[ "func", "ReplayManifestFile", "(", "fp", "*", "os", ".", "File", ")", "(", "<mask>", "Manifest", ",", "truncOffset", "int64", ",", "err", "error", ")", "{", "r", ":=", "countingReader", "{", "wrapped", ":", "bufio", ".", "NewReader", "(", "fp", ")", "}...
24,909
all-24910
[ "WithMessageSigning", "enables", "or", "disables", "message", "signing", "(", "enabled", "by", "default", ")", "." ]
[ "func", "WithMessageSigning", "(", "<mask>", "bool", ")", "Option", "{", "return", "func", "(", "p", "*", "PubSub", ")", "error", "{", "if", "enabled", "{", "p", ".", "signKey", "=", "p", ".", "host", ".", "Peerstore", "(", ")", ".", "PrivKey", "(", ...
24,910
all-24911
[ "HasCustomImageUrl", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "d", "*", "DashboardConditionalFormat", ")", "HasCustomImageUrl", "(", ")", "bool", "{", "if", "d", "!=", "nil", "&&", "d", ".", "CustomImageUrl", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
24,911
all-24912
[ "GetType", "returns", "the", "Type", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetType", "(", ")", "string", "{", "if", "w", "==", "nil", "||", "w", ".", "Type", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "w", ".", "<mask>", "\n", "}" ]
24,912
all-24913
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "PrepareForLeakDetectionParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory6", "(", "&", "w", ",", ...
24,913
all-24914
[ "native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTextBuffer", "." ]
[ "func", "(", "v", "*", "TextBuffer", ")", "native", "(", ")", "*", "C", ".", "GtkTextBuffer", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "(", ...
24,914
all-24915
[ "Return", "true", "if", "the", "input", "word", "is", "a", "Swedish", "stop", "word", "." ]
[ "func", "isStopWord", "(", "word", "string", ")", "bool", "{", "switch", "word", "{", "<mask>", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\""...
24,915
all-24916
[ "resourceVSphereDatastoreClusterHasSDRSConfigChange", "checks", "all", "resource", "keys", "associated", "with", "storage", "DRS", "to", "see", "if", "there", "has", "been", "a", "change", "in", "the", "configuration", "of", "those", "keys", ".", "This", "helper", ...
[ "func", "resourceVSphereDatastoreClusterHasSDRSConfigChange", "(", "d", "*", "schema", ".", "ResourceData", ")", "bool", "{", "for", "k", ":=", "range", "resourceVSphereDatastoreCluster", "(", ")", ".", "Schema", "{", "<mask>", "{", "case", "resourceVSphereDatastoreCl...
24,916
all-24917
[ "Decode", "reads", "a", "PNG", "image", "from", "r", "and", "returns", "it", "as", "an", "image", ".", "Image", ".", "The", "type", "of", "Image", "returned", "depends", "on", "the", "PNG", "contents", "." ]
[ "func", "Decode", "(", "r", "io", ".", "Reader", ")", "(", "image", ".", "Image", ",", "error", ")", "{", "d", ":=", "&", "decoder", "{", "r", ":", "r", ",", "crc", ":", "crc32", ".", "NewIEEE", "(", ")", ",", "}", "\n", "if", "err", ":=", ...
24,917
all-24918
[ "LoadOCIConfig", "reads", "and", "parses", "the", "OCI", "ExternalDNS", "config", "file", "at", "the", "given", "path", "." ]
[ "func", "LoadOCIConfig", "(", "<mask>", "string", ")", "(", "*", "OCIConfig", ",", "error", ")", "{", "contents", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "errors", ".",...
24,918
all-24919
[ "NewBase", "creates", "a", "new", "instance", "of", "Base", "with", "default", "values", "set", "." ]
[ "func", "NewBase", "(", "configs", "...", "baseConfigFunc", ")", "*", "Base", "{", "b", ":=", "&", "Base", "{", "clock", ":", "glock", ".", "NewRealClock", "(", ")", ",", "config", ":", "NewConfig", "(", ")", ",", "logLevel", ":", "LevelDebug", ",", ...
24,919
all-24920
[ "Func", "declares", "a", "new", "Function", ".", "The", "second", "argument", "must", "be", "a", "function", "with", "a", "first", "argument", "of", "type", "context", ".", "Context", ".", "This", "function", "must", "be", "called", "at", "program", "initi...
[ "func", "Func", "(", "key", "string", ",", "i", "interface", "{", "}", ")", "*", "Function", "{", "f", ":=", "&", "Function", "{", "fv", ":", "reflect", ".", "ValueOf", "(", "i", ")", "}", "\n\n", "// Derive unique, somewhat stable key for this func.", "_"...
24,920
all-24921
[ "GetShowHitsOk", "returns", "a", "tuple", "with", "the", "ShowHits", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TraceServiceDefinition", ")", "GetShowHitsOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "ShowHits", "==", "nil", "{", "return", "false", ",", "<mask>", "\n", "}", "\n", "return", ...
24,921
all-24922
[ "Close", "would", "close", "the", "iterator", ".", "It", "is", "important", "to", "call", "this", "when", "you", "re", "done", "with", "iteration", "." ]
[ "func", "(", "it", "*", "Iterator", ")", "Close", "(", ")", "{", "if", "it", ".", "closed", "{", "return", "\n", "}", "\n", "it", ".", "closed", "=", "true", "\n\n", "it", ".", "iitr", ".", "Close", "(", ")", "\n", "// It is important to wait for the...
24,922
all-24923
[ "StoragePoolDriver", "returns", "the", "driver", "of", "the", "pool", "with", "the", "given", "ID", "." ]
[ "func", "storagePoolDriverGet", "(", "tx", "*", "sql", ".", "Tx", ",", "id", "int64", ")", "(", "string", ",", "error", ")", "{", "stmt", ":=", "\"", "\"", "\n", "drivers", ",", "err", ":=", "query", ".", "SelectStrings", "(", "tx", ",", "stmt", ",...
24,923
all-24924
[ "Del", "deletes", "argument", "with", "the", "given", "key", "from", "query", "args", "." ]
[ "func", "(", "a", "*", "Args", ")", "Del", "(", "key", "string", ")", "{", "a", ".", "args", "=", "delAllArgs", "(", "a", ".", "args", ",", "<mask>", ")", "\n", "}" ]
24,924
all-24925
[ "ParseUfloat", "parses", "unsigned", "float", "from", "buf", "." ]
[ "func", "ParseUfloat", "(", "buf", "[", "]", "byte", ")", "(", "float64", ",", "error", ")", "{", "if", "len", "(", "buf", ")", "==", "0", "{", "return", "-", "1", ",", "errEmptyFloat", "\n", "}", "\n", "b", ":=", "buf", "\n", "var", "v", "uint...
24,925
all-24926
[ "query", "the", "name", "of", "an", "active", "shader", "subroutine" ]
[ "func", "GetActiveSubroutineName", "(", "program", "uint32", ",", "shadertype", "uint32", ",", "index", "uint32", ",", "bufsize", "int32", ",", "<mask>", "*", "int32", ",", "name", "*", "uint8", ")", "{", "C", ".", "glowGetActiveSubroutineName", "(", "gpGetAct...
24,926
all-24927
[ "Construct", "an", "empty", "state", "object", "ready", "to", "receive", "updates", ".", "This", "is", "suitable", "to", "use", "at", "program", "start", ".", "Other", "peers", "will", "populate", "us", "with", "data", "." ]
[ "func", "newState", "(", "self", "mesh", ".", "PeerName", ")", "*", "<mask>", "{", "return", "&", "state", "{", "set", ":", "map", "[", "mesh", ".", "PeerName", "]", "int", "{", "}", ",", "self", ":", "self", ",", "}", "\n", "}" ]
24,927
all-24928
[ "ActivateItem", "is", "a", "wrapper", "around", "gtk_menu_shell_activate_item", "()", "." ]
[ "func", "(", "v", "*", "MenuShell", ")", "ActivateItem", "(", "child", "IMenuItem", ",", "forceDeactivate", "bool", ")", "{", "C", ".", "gtk_menu_shell_activate_item", "(", "v", ".", "native", "(", ")", ",", "<mask>", ".", "toWidget", "(", ")", ",", "gbo...
24,928
all-24929
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "AppList", "." ]
[ "func", "(", "<mask>", "*", "AppList", ")", "DeepCopy", "(", ")", "*", "AppList", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "AppList", ")", "\n", "in", ".", "DeepCopyInto", "(", "out", ")", "\n"...
24,929
all-24930
[ "NewCounter", "creates", "new", "Counter", "instance", ".", "Options", "value", "can", "be", "nil", "." ]
[ "func", "NewCounter", "(", "options", "*", "CounterOptions", ")", "(", "c", "*", "Counter", ")", "{", "if", "options", "==", "nil", "{", "options", "=", "new", "(", "CounterOptions", ")", "\n", "}", "\n", "if", "options", ".", "Name", "==", "\"", "\"...
24,930
all-24931
[ "private", "handler", "implementation", "details" ]
[ "func", "(", "h", "*", "gerritInstanceHandler", ")", "queryAllChanges", "(", "lastUpdate", "time", ".", "Time", ",", "rateLimit", "int", ")", "[", "]", "gerrit", ".", "ChangeInfo", "{", "result", ":=", "[", "]", "gerrit", ".", "ChangeInfo", "{", "}", "\n...
24,931
all-24932
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "TouchPoint", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoInput", "(", "&", "w", ",", "v", ")", "\n", ...
24,932
all-24933
[ "Get", "looks", "for", "key", "and", "returns", "corresponding", "Item", ".", "If", "key", "is", "not", "found", "ErrKeyNotFound", "is", "returned", "." ]
[ "func", "(", "txn", "*", "Txn", ")", "Get", "(", "key", "[", "]", "byte", ")", "(", "item", "*", "Item", ",", "rerr", "error", ")", "{", "if", "len", "(", "key", ")", "==", "0", "{", "return", "nil", ",", "ErrEmptyKey", "\n", "}", "else", "if...
24,933
all-24934
[ "SetUnit", "()", "is", "a", "wrapper", "around", "gtk_print_operation_set_unit", "()", "." ]
[ "func", "(", "po", "*", "PrintOperation", ")", "SetUnit", "(", "unit", "Unit", ")", "{", "C", ".", "gtk_print_operation_set_unit", "(", "<mask>", ".", "native", "(", ")", ",", "C", ".", "GtkUnit", "(", "unit", ")", ")", "\n", "}" ]
24,934
all-24935
[ "findTarComponent", "returns", "a", "header", "and", "a", "reader", "matching", "path", "within", "inputFile", "or", "(", "nil", "nil", "nil", ")", "if", "not", "found", "." ]
[ "func", "findTarComponent", "(", "inputFile", "io", ".", "Reader", ",", "path", "string", ")", "(", "*", "tar", ".", "Reader", ",", "*", "tar", ".", "Header", ",", "error", ")", "{", "t", ":=", "<mask>", ".", "NewReader", "(", "inputFile", ")", "\n",...
24,935
all-24936
[ "String", "returns", "the", "value", "of", "the", "string", "stored", "in", "r", "." ]
[ "func", "(", "r", "region", ")", "String", "(", ")", "string", "{", "if", "r", ".", "typ", ".", "Kind", "!=", "KindString", "{", "panic", "(", "\"", "\"", "+", "r", ".", "typ", ".", "Name", ")", "\n", "}", "\n", "p", ":=", "r", ".", "p", "....
24,936
all-24937
[ "Help", "describes", "the", "format", "of", "the", "configuration", "string", "for", "address", "discovery", "and", "the", "various", "provider", "specific", "options", "." ]
[ "func", "(", "d", "*", "Discover", ")", "Help", "(", ")", "string", "{", "d", ".", "once", ".", "Do", "(", "d", ".", "initProviders", ")", "\n\n", "h", ":=", "[", "]", "string", "{", "globalHelp", "}", "\n", "for", "_", ",", "name", ":=", "rang...
24,937
all-24938
[ "GetTitleSizeOk", "returns", "a", "tuple", "with", "the", "TitleSize", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "ScatterplotDefinition", ")", "GetTitleSizeOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "TitleSize", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "ret...
24,938
all-24939
[ "Intersect", "creates", "an", "Intersect", "query", ".", "Intersect", "performs", "a", "logical", "AND", "on", "the", "results", "of", "each", "ROW_CALL", "query", "passed", "to", "it", "." ]
[ "func", "(", "idx", "*", "Index", ")", "Intersect", "(", "rows", "...", "*", "PQLRowQuery", ")", "*", "PQLRowQuery", "{", "if", "len", "(", "<mask>", ")", "<", "1", "{", "return", "NewPQLRowQuery", "(", "\"", "\"", ",", "idx", ",", "NewError", "(", ...
24,939
all-24940
[ "HashSecret", "will", "hash", "Secret", "and", "set", "SecretHash", "." ]
[ "func", "(", "a", "*", "<mask>", ")", "HashSecret", "(", ")", "error", "{", "// check length", "if", "len", "(", "a", ".", "Secret", ")", "==", "0", "{", "return", "nil", "\n", "}", "\n\n", "// generate hash from password", "hash", ",", "err", ":=", "b...
24,940
all-24941
[ "GetName", "returns", "the", "Name", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "SyntheticsDevice", ")", "GetName", "(", ")", "string", "{", "if", "s", "==", "nil", "||", "s", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "s", ".", "Name", "\n", "}" ]
24,941
all-24942
[ "/", "*", "ProcessEvent", "processes", "all", "events", "come", "from", "the", "control", "parent", ".", "If", "a", "control", "processes", "an", "event", "it", "should", "return", "true", ".", "If", "the", "method", "returns", "false", "it", "means", "tha...
[ "func", "(", "b", "*", "Button", ")", "ProcessEvent", "(", "event", "Event", ")", "bool", "{", "if", "!", "b", ".", "Enabled", "(", ")", "{", "return", "false", "\n", "}", "\n\n", "if", "event", ".", "Type", "==", "EventKey", "{", "if", "event", ...
24,942
all-24943
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "CollectGarbageParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler22", "(", "&", "w", ",", ...
24,943
all-24944
[ "Do", "executes", "DOM", ".", "performSearch", "against", "the", "provided", "context", ".", "returns", ":", "searchID", "-", "Unique", "search", "session", "identifier", ".", "resultCount", "-", "Number", "of", "search", "results", "." ]
[ "func", "(", "p", "*", "PerformSearchParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "searchID", "string", ",", "resultCount", "int64", ",", "err", "error", ")", "{", "// execute", "var", "res", "PerformSearchReturns", "\n", "err", "=",...
24,944
all-24945
[ "the", "zones", "we", "are", "allowed", "to", "touch", ".", "Currently", "only", "exact", "matches", "are", "considered", "not", "all", "zones", "with", "the", "given", "suffix" ]
[ "func", "(", "d", "*", "dynProviderState", ")", "zones", "(", "client", "*", "dynect", ".", "<mask>", ")", "[", "]", "string", "{", "return", "d", ".", "ZoneIDFilter", ".", "zoneIDs", "\n", "}" ]
24,945
all-24946
[ "title", ":", "revoke", "access", "to", "app", "path", ":", "/", "apps", "/", "{", "app", "}", "/", "teams", "/", "{", "team", "}", "method", ":", "DELETE", "responses", ":", "200", ":", "Access", "revoked", "401", ":", "Unauthorized", "403", ":", ...
[ "func", "revokeAppAccess", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "appName", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", "...
24,946
all-24947
[ "random", "select", "will", "return", "a", "random", "selection", "from", "an", "int", "slice" ]
[ "func", "randomSelect", "(", "a", "[", "]", "int", ")", "int", "{", "var", "tmpIndex", "int", "\n", "length", ":=", "len", "(", "a", ")", "\n", "randBytes", ":=", "make", "(", "[", "]", "byte", ",", "length", ")", "\n", "if", "_", ",", "err", "...
24,947
all-24948
[ "GetCompletion", "()", "is", "a", "wrapper", "around", "gtk_entry_get_completion", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetCompletion", "(", ")", "(", "*", "EntryCompletion", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_entry_get_completion", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "retur...
24,948
all-24949
[ "setCommandFunc", "executes", "the", "set", "command", "." ]
[ "func", "setCommandFunc", "(", "c", "*", "cli", ".", "Context", ",", "ki", "client", ".", "KeysAPI", ")", "{", "if", "len", "(", "c", ".", "Args", "(", ")", ")", "==", "0", "{", "handleError", "(", "c", ",", "ExitBadArgs", ",", "errors", ".", "Ne...
24,949
all-24950
[ "scroll", "scrolls", "the", "provided", "scroll", "region", "by", "param", "lines", ".", "The", "scroll", "region", "is", "in", "buffer", "coordinates", "." ]
[ "func", "(", "h", "*", "windowsAnsiEventHandler", ")", "scroll", "(", "param", "int", ",", "sr", "scrollRegion", ",", "info", "*", "CONSOLE_SCREEN_BUFFER_INFO", ")", "error", "{", "h", ".", "logf", "(", "\"", "\"", ",", "sr", ".", "top", ",", "sr", "."...
24,950
all-24951
[ "DoesHandle", "satisfies", "hookHandler", "." ]
[ "func", "(", "b", "BitbucketHook", ")", "DoesHandle", "(", "h", "http", ".", "Header", ")", "bool", "{", "<mask>", ":=", "h", ".", "Get", "(", "\"", "\"", ")", "\n\n", "// for Gitlab you can only use X-Gitlab-Event header to test if you could handle the request", "i...
24,951
all-24952
[ "copyTaskMetrics", "copies", "a", "slice", "of", "TaskMetric", "objects", "to", "another", "slice", ".", "This", "is", "needed", "as", "we", "reset", "the", "source", "slice", "after", "creating", "a", "new", "PublishMetricsRequest", "object", "." ]
[ "func", "copyTaskMetrics", "(", "from", "[", "]", "*", "ecstcs", ".", "TaskMetric", ")", "[", "]", "*", "ecstcs", ".", "TaskMetric", "{", "to", ":=", "make", "(", "[", "]", "*", "ecstcs", ".", "TaskMetric", ",", "len", "(", "from", ")", ")", "\n", ...
24,952
all-24953
[ "If", "you", "need", "to", "you", "can", "use", "this", "to", "construct", "the", "data", "map", "that", "will", "be", "cascaded", "down", "to", "related", "documents", ".", "Doing", "this", "is", "not", "recommended", "unless", "the", "cascaded", "fields"...
[ "func", "MapFromCascadeProperties", "(", "properties", "[", "]", "string", ",", "doc", "Document", ")", "map", "[", "string", "]", "interface", "{", "}", "{", "data", ":=", "make", "(", "map", "[", "string", "]", "interface", "{", "}", ")", "\n\n", "fo...
24,953
all-24954
[ "Delete", "deletes", "an", "app", "." ]
[ "func", "Delete", "(", "app", "*", "App", ",", "evt", "*", "event", ".", "Event", ",", "requestID", "string", ")", "error", "{", "w", ":=", "evt", "\n", "isSwapped", ",", "swappedWith", ",", "err", ":=", "router", ".", "IsSwapped", "(", "app", ".", ...
24,954
all-24955
[ "MemberByName", "returns", "a", "Member", "with", "the", "given", "name", "if", "exists", ".", "If", "more", "than", "one", "member", "has", "the", "given", "name", "it", "will", "panic", "." ]
[ "func", "(", "c", "*", "RaftCluster", ")", "MemberByName", "(", "name", "string", ")", "*", "Member", "{", "c", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "Unlock", "(", ")", "\n", "var", "memb", "*", "Member", "\n", "for", "_", ",", "m", ...
24,955
all-24956
[ "releaseIPInIPAM", "releases", "the", "ip", "used", "by", "the", "task", "for", "awsvpc" ]
[ "func", "(", "mtask", "*", "managedTask", ")", "releaseIPInIPAM", "(", ")", "{", "if", "mtask", ".", "ENI", "==", "nil", "{", "return", "\n", "}", "\n", "seelog", ".", "Infof", "(", "\"", "\"", ",", "mtask", ".", "Arn", ")", "\n\n", "cfg", ",", "...
24,956
all-24957
[ "updateTaskKnownStatus", "updates", "the", "given", "task", "s", "status", "based", "on", "its", "container", "s", "status", ".", "It", "updates", "to", "the", "minimum", "of", "all", "containers", "no", "matter", "what", "It", "returns", "a", "TaskStatus", ...
[ "func", "(", "task", "*", "Task", ")", "updateTaskKnownStatus", "(", ")", "(", "newStatus", "apitaskstatus", ".", "TaskStatus", ")", "{", "seelog", ".", "Debugf", "(", "\"", "\"", ",", "task", ".", "String", "(", ")", ")", "\n", "// Set to a large 'impossi...
24,957
all-24958
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "AddRuleReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63", "(", "&", "w", ",", "v", ")", "\n...
24,958
all-24959
[ "GetIP", "returns", "the", "ip" ]
[ "func", "(", "d", "*", "BaseDriver", ")", "GetIP", "(", ")", "(", "string", ",", "error", ")", "{", "if", "d", ".", "IPAddress", "==", "\"", "\"", "{", "return", "\"", "\"", ",", "<mask>", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "r...
24,959
all-24960
[ "GetTimings", "is", "a", "wrapper", "around", "gdk_frame_clock_get_timings", "()", "." ]
[ "func", "(", "v", "*", "FrameClock", ")", "GetTimings", "(", "frameCounter", "int64", ")", "(", "*", "FrameTimings", ",", "<mask>", ")", "{", "c", ":=", "C", ".", "gdk_frame_clock_get_timings", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint64"...
24,960
all-24961
[ "NewContext", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "Thrift", "calls", "." ]
[ "func", "NewContext", "(", "timeout", "time", ".", "Duration", ")", "(", "Context", ",", "<mask>", ".", "CancelFunc", ")", "{", "ctx", ",", "cancel", ":=", "tchannel", ".", "NewContext", "(", "timeout", ")", "\n", "return", "Wrap", "(", "ctx", ")", ","...
24,961
all-24962
[ "MustDontHave", "retrieves", "the", "DontHave", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "StellarMessage", ")", "MustDontHave", "(", ")", "DontHave", "{", "val", ",", "ok", ":=", "u", ".", "GetDontHave", "(", ")", "\n\n", "if", "!", "<mask>", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "val", "\n"...
24,962
all-24963
[ "GetActivateOnSingleClick", "gtk_flow_box_get_activate_on_single_click", "()" ]
[ "func", "(", "fb", "*", "FlowBox", ")", "GetActivateOnSingleClick", "(", ")", "bool", "{", "c", ":=", "C", ".", "gtk_flow_box_get_activate_on_single_click", "(", "fb", ".", "native", "(", ")", ")", "\n", "<mask>", "gobool", "(", "c", ")", "\n", "}" ]
24,963
all-24964
[ "ListFile", "returns", "info", "about", "all", "files", "in", "a", "Commit", "under", "path", "." ]
[ "func", "(", "c", "APIClient", ")", "ListFile", "(", "repoName", "string", ",", "commitID", "string", ",", "<mask>", "string", ")", "(", "[", "]", "*", "pfs", ".", "FileInfo", ",", "error", ")", "{", "var", "result", "[", "]", "*", "pfs", ".", "Fil...
24,964
all-24965
[ "Convert", "converts", "build", "metadata", "stored", "in", "gcp", "into", "the", "corresponding", "ResultStore", "Invocation", "Target", "and", "Test", "." ]
[ "func", "convert", "(", "project", ",", "details", "string", ",", "url", "gcs", ".", "Path", ",", "result", "downloadResult", ")", "(", "resultstore", ".", "Invocation", ",", "resultstore", ".", "Target", ",", "resultstore", ".", "Test", ")", "{", "started...
24,965
all-24966
[ "TokenMigrator", "is", "a", "middleware", "that", "detects", "access", "tokens", "passed", "via", "query", "parameters", "and", "migrates", "them", "to", "a", "Bearer", "Token", "header", ".", "Additionally", "it", "may", "remove", "the", "migrated", "query", ...
[ "func", "TokenMigrator", "(", "remove", "bool", ")", "func", "(", "http", ".", "Handler", ")", "http", ".", "Handler", "{", "return", "func", "(", "next", "http", ".", "Handler", ")", "http", ".", "Handler", "{", "return", "http", ".", "HandlerFunc", "...
24,966
all-24967
[ "Text", "returns", "the", "most", "recents", "tokens", "generated", "by", "a", "call", "to", "Scan", "as", "a", "newly", "allocated", "string", "holding", "its", "bytes", "." ]
[ "func", "(", "s", "*", "Scanner", ")", "Text", "(", ")", "(", "key", ",", "<mask>", "string", ")", "{", "return", "string", "(", "s", ".", "key", ")", ",", "string", "(", "s", ".", "value", ")", "\n", "}" ]
24,967
all-24968
[ "ImageSourceGetCachedFingerprint", "tries", "to", "find", "a", "source", "entry", "of", "a", "locally", "cached", "image", "that", "matches", "the", "given", "remote", "details", "(", "server", "protocol", "and", "alias", ")", ".", "Return", "the", "fingerprint"...
[ "func", "(", "c", "*", "Cluster", ")", "ImageSourceGetCachedFingerprint", "(", "server", "string", ",", "protocol", "string", ",", "alias", "string", ")", "(", "string", ",", "error", ")", "{", "protocolInt", ":=", "-", "1", "\n", "for", "protoInt", ",", ...
24,968
all-24969
[ "title", ":", "role", "info", "path", ":", "/", "roles", "/", "{", "name", "}", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "OK", "401", ":", "Unauthorized", "404", ":", "Role", "not", "found" ]
[ "func", "roleInfo", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "if", "!", "(", "permission", ".", "Check", "(", "t", ",", "permission", ".", "PermRoleUpdate", ")"...
24,969
all-24970
[ "SquashRules", "copies", "information", "from", "src", "into", "dst", "without", "discarding", "information", "in", "dst", ".", "SquashRules", "detects", "duplicate", "elements", "in", "lists", "and", "dictionaries", "but", "it", "doesn", "t", "sort", "elements", ...
[ "func", "SquashRules", "(", "src", ",", "dst", "*", "Rule", ",", "filename", "string", ")", "error", "{", "if", "dst", ".", "ShouldKeep", "(", ")", "{", "return", "nil", "\n", "}", "\n\n", "for", "key", ",", "srcAttr", ":=", "range", "src", ".", "a...
24,970
all-24971
[ "resourceVSphereComputeClusterApplyDelete", "process", "the", "removal", "of", "a", "cluster", "." ]
[ "func", "resourceVSphereComputeClusterApplyDelete", "(", "d", "structure", ".", "ResourceIDStringer", ",", "cluster", "*", "<mask>", ".", "ClusterComputeResource", ")", "error", "{", "log", ".", "Printf", "(", "\"", "\"", ",", "resourceVSphereComputeClusterIDString", ...
24,971
all-24972
[ "===", "min_over_time", "(", "Matrix", "ValueTypeMatrix", ")", "Vector", "===" ]
[ "func", "funcMinOverTime", "(", "vals", "[", "]", "<mask>", ",", "args", "Expressions", ",", "enh", "*", "EvalNodeHelper", ")", "Vector", "{", "return", "aggrOverTime", "(", "vals", ",", "enh", ",", "func", "(", "values", "[", "]", "Point", ")", "float64...
24,972
all-24973
[ "SetIconSensitive", "()", "is", "a", "wrapper", "around", "gtk_entry_set_icon_sensitive", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetIconSensitive", "(", "iconPos", "EntryIconPosition", ",", "sensitive", "bool", ")", "{", "C", ".", "gtk_entry_set_icon_sensitive", "(", "v", ".", "native", "(", ")", ",", "C", ".", "GtkEntryIconPosition", "(", "iconP...
24,973
all-24974
[ "OpenCluster", "creates", "a", "new", "Cluster", "object", "for", "interacting", "with", "the", "dqlite", "database", ".", "-", "name", ":", "Basename", "of", "the", "database", "file", "holding", "the", "data", ".", "Typically", "db", ".", "bin", ".", "-"...
[ "func", "OpenCluster", "(", "name", "string", ",", "store", "dqlite", ".", "ServerStore", ",", "address", ",", "dir", "string", ",", "timeout", "time", ".", "Duration", ",", "options", "...", "dqlite", ".", "DriverOption", ")", "(", "*", "Cluster", ",", ...
24,974
all-24975
[ "RetType", "returns", "the", "go", "return", "type", "of", "the", "method", "." ]
[ "func", "(", "m", "*", "Method", ")", "RetType", "(", ")", "string", "{", "if", "!", "m", ".", "HasReturn", "(", ")", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "m", ".", "<mask>", ".", ...
24,975
all-24976
[ "Write", "serializes", "the", "command", "to", "the", "given", "buffered", "output", "satisfies", "the", "Command", "interface", "." ]
[ "func", "(", "c", "Nop", ")", "Write", "(", "w", "*", "bufio", ".", "Writer", ")", "(", "err", "error", ")", "{", "if", "_", ",", "err", "=", "w", ".", "WriteString", "(", "\"", "\\n", "\"", ")", ";", "err", "!=", "nil", "{", "err", "=", "<...
24,976
all-24977
[ "ExeDirJoin", "composes", "a", "file", "name", "relative", "to", "a", "running", "executable", "." ]
[ "func", "ExeDirJoin", "(", "elem", "...", "string", ")", "string", "{", "exe", ",", "err", ":=", "<mask>", ".", "Executable", "(", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "elem", "=", "append", "(", "[...
24,977
all-24978
[ "append", "digits", "to", "string" ]
[ "func", "(", "g", "Garbler", ")", "addNums", "(", "p", "string", ",", "numDigits", "int", ")", "string", "{", "if", "numDigits", "<=", "0", "{", "return", "p", "\n", "}", "\n", "ret", ":=", "p", "\n", "remaining", ":=", "numDigits", "\n", "for", "r...
24,978
all-24979
[ "DecodeOAuth2Code", "inverse", "of", "EncodeOAuth2Code" ]
[ "func", "DecodeOAuth2Code", "(", "code", ",", "sharedKey", "string", ")", "(", "response", "<mask>", ",", "err", "error", ")", "{", "object", ",", "err", ":=", "jose", ".", "ParseSigned", "(", "code", ")", "\n", "if", "err", "!=", "nil", "{", "return",...
24,979
all-24980
[ "Do", "executes", "Runtime", ".", "discardConsoleEntries", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "DiscardConsoleEntriesParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandDiscardConsoleEntries", ",", "nil", ",", "nil", ")", "\n"...
24,980
all-24981
[ "Handle", "registers", "a", "handler", "that", "will", "be", "called", "for", "every", "logging", "event", ".", "The", "function", "receives", "a", "message", "which", "is", "a", "structured", "representation", "of", "the", "log", "message", "text", ".", "Th...
[ "func", "(", "w", "*", "Writer", ")", "Handle", "(", "h", "Handler", ")", "{", "w", ".", "mutex", ".", "Lock", "(", ")", "\n", "defer", "w", ".", "mutex", ".", "Unlock", "(", ")", "\n\n", "if", "h", "!=", "nil", "{", "w", ".", "handlers", "="...
24,981
all-24982
[ "Try", "converts", "a", "handler", "to", "a", "standard", "http", ".", "Handler", "storing", "any", "error", "in", "the", "request", "s", "context", "." ]
[ "func", "Try", "(", "h", "Handler", ")", "http", ".", "Handler", "{", "return", "<mask>", ".", "HandlerFunc", "(", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "err", ":=", "h", ".", "ServeHTTP", ...
24,982
all-24983
[ "GoStr", "takes", "a", "null", "-", "terminated", "string", "returned", "by", "OpenGL", "and", "constructs", "a", "corresponding", "Go", "string", "." ]
[ "func", "GoStr", "(", "cstr", "*", "uint8", ")", "string", "{", "return", "C", ".", "GoString", "(", "(", "*", "C", ".", "<mask>", ")", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", ")", "\n", "}" ]
24,983
all-24984
[ "paramsByLocation", "is", "a", "helper", "method", "that", "returns", "the", "names", "of", "the", "parameters", "at", "the", "given", "location", "(", "path", "query", "string", "or", "payload", ")", "." ]
[ "func", "(", "a", "*", "Action", ")", "paramsByLocation", "(", "loc", "Location", ")", "[", "]", "string", "{", "var", "res", "[", "]", "string", "\n", "for", "_", ",", "p", ":=", "range", "a", ".", "APIParams", "{", "if", "p", ".", "Location", "...
24,984
all-24985
[ "returns", "user", "-", "readable", "cause", "of", "failed", "comparison" ]
[ "func", "getCompareFailCause", "(", "n", "*", "node", ",", "which", "int", ",", "prevValue", "string", ",", "prevIndex", "uint64", ")", "string", "{", "<mask>", "which", "{", "case", "CompareIndexNotMatch", ":", "return", "fmt", ".", "Sprintf", "(", "\"", ...
24,985
all-24986
[ "/", "*", "from", "zfs", "diff", "s", "escape", "function", ":", "Prints", "a", "file", "name", "out", "a", "character", "at", "a", "time", ".", "If", "the", "character", "is", "not", "in", "the", "range", "of", "what", "we", "consider", "printable", ...
[ "func", "unescapeFilepath", "(", "path", "string", ")", "(", "string", ",", "error", ")", "{", "buf", ":=", "make", "(", "[", "]", "byte", ",", "0", ",", "len", "(", "path", ")", ")", "\n", "llen", ":=", "len", "(", "path", ")", "\n", "for", "i...
24,986
all-24987
[ "AppendEntries", "is", "used", "to", "pipeline", "a", "new", "append", "entries", "request", "." ]
[ "func", "(", "n", "*", "netPipeline", ")", "AppendEntries", "(", "args", "*", "AppendEntriesRequest", ",", "resp", "*", "AppendEntriesResponse", ")", "(", "AppendFuture", ",", "error", ")", "{", "// Create a new future", "future", ":=", "&", "appendFuture", "{",...
24,987
all-24988
[ "Average", "accumulating", "counter", ".", "Expect", "adding", "and", "removing", "CountPoints", "." ]
[ "func", "newAverageAccumulatingCounter", "(", "<mask>", "Point", ")", "accumulatingCounter", "{", "return", "&", "averageAccumulatingCounter", "{", "newSingleValueAccumulatingCounter", "(", "point", ")", ".", "(", "*", "singleValueAccumulatingCounter", ")", ",", "point", ...
24,988
all-24989
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetDOMStorageItemsReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomstorage3", "(", ...
24,989
all-24990
[ "SetEncoder", "can", "be", "used", "to", "set", "the", "implementation", "of", "a", "compression", "algorithm", ".", "The", "encoding", "should", "be", "a", "standardised", "identifier", ".", "See", ":", "https", ":", "//", "developer", ".", "mozilla", ".", ...
[ "func", "SetEncoder", "(", "encoding", "<mask>", ",", "fn", "EncoderFunc", ")", "{", "if", "defaultCompressor", "==", "nil", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "defaultCompressor", ".", "SetEncoder", "(", "encoding", ",", "fn", ")", "\n...
24,990
all-24991
[ "UpdateRuleSet", "updates", "passed", "rule", "set", "." ]
[ "func", "(", "a", "*", "API", ")", "UpdateRuleSet", "(", "cfg", "*", "RuleSet", ")", "(", "*", "RuleSet", ",", "error", ")", "{", "if", "cfg", "==", "nil", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", "\n\n"...
24,991
all-24992
[ "FSSize", "gets", "the", "size", "of", "the", "hashtree" ]
[ "func", "(", "h", "*", "dbHashTree", ")", "FSSize", "(", ")", "int64", "{", "rootNode", ",", "err", ":=", "h", ".", "Get", "(", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "<mask>", "0", "\n", "}", "\n", "return", "rootNode", ".", "Su...
24,992
all-24993
[ "ContainerConfigRemove", "removes", "the", "given", "key", "from", "the", "config", "of", "the", "container", "with", "the", "given", "ID", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "ContainerConfigRemove", "(", "<mask>", "int", ",", "key", "string", ")", "error", "{", "err", ":=", "exec", "(", "c", ".", "db", ",", "\"", "\"", ",", "key", ",", "id", ")", "\n", "return", "err", "\n", "}"...
24,993
all-24994
[ "/", "*" ]
[ "func", "(", "s", "*", "SkuM1Small", ")", "PollForTasks", "(", ")", "{", "if", "<mask>", ",", "err", ":=", "s", ".", "TaskManager", ".", "FindAndStallTaskForCaller", "(", "SkuName", ")", ";", "err", "==", "nil", "{", "fmt", ".", "Println", "(", "task",...
24,994
all-24995
[ "forwardPeerFrame", "forwards", "a", "frame", "from", "a", "peer", "to", "the", "message", "exchange", "where", "it", "can", "be", "pulled", "by", "whatever", "application", "thread", "is", "handling", "the", "exchange" ]
[ "func", "(", "mex", "*", "messageExchange", ")", "forwardPeerFrame", "(", "frame", "*", "Frame", ")", "error", "{", "// We want a very specific priority here:", "// 1. Timeouts/cancellation (mex.ctx errors)", "// 2. Whether recvCh has buffer space (non-blocking select over mex.recvCh...
24,995
all-24996
[ "Stop", "all", "tasks", "in", "the", "group", ".", "This", "works", "by", "sending", "a", "cancellation", "signal", "to", "all", "tasks", "of", "the", "group", "and", "waiting", "for", "them", "to", "terminate", ".", "If", "a", "task", "is", "idle", "(...
[ "func", "(", "g", "*", "Group", ")", "Stop", "(", "timeout", "time", ".", "Duration", ")", "error", "{", "if", "g", ".", "cancel", "==", "nil", "{", "// We were not even started", "return", "nil", "\n", "}", "\n", "g", ".", "cancel", "(", ")", "\n\n"...
24,996
all-24997
[ "OnSignalGo", "calls", "the", "given", "ProcessFunc", "every", "time", "the", "signal", "fires", ".", "This", "is", "not", "rate", "limited", "multiple", "calls", "could", "be", "in", "-", "flight", "at", "the", "same", "time", ".", "sig", ":", "=", "mak...
[ "func", "OnSignalGo", "(", "sig", "<-", "chan", "struct", "{", "}", ",", "procfunc", "gp", ".", "ProcessFunc", ")", "gp", ".", "Process", "{", "return", "gp", ".", "Go", "(", "func", "(", "proc", "gp", ".", "<mask>", ")", "{", "for", "{", "select",...
24,997
all-24998
[ "Run", "makes", "a", "new", "cobra", "run", "function", "that", "wraps", "the", "given", "function", "." ]
[ "func", "Run", "(", "run", "func", "(", "args", "[", "]", "string", ")", "error", ")", "func", "(", "*", "cobra", ".", "Command", ",", "[", "]", "string", ")", "{", "return", "func", "(", "_", "*", "cobra", ".", "Command", ",", "args", "[", "]"...
24,998
all-24999
[ "HasBytes", "returns", "true", "if", "the", "given", "key", "exists", "in", "Args", "." ]
[ "func", "(", "a", "*", "Args", ")", "HasBytes", "(", "<mask>", "[", "]", "byte", ")", "bool", "{", "return", "hasArg", "(", "a", ".", "args", ",", "b2s", "(", "key", ")", ")", "\n", "}" ]
24,999
all-25000
[ "GetData", "is", "a", "wrapper", "around", "gtk_selection_data_get_data_with_length", ".", "It", "returns", "a", "slice", "of", "the", "correct", "size", "with", "the", "selection", "s", "data", "." ]
[ "func", "(", "v", "*", "SelectionData", ")", "GetData", "(", ")", "(", "data", "[", "]", "byte", ")", "{", "<mask>", "length", "C", ".", "gint", "\n", "c", ":=", "C", ".", "gtk_selection_data_get_data_with_length", "(", "v", ".", "native", "(", ")", ...