id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
23,900
all-23901
[ "ReceiveIssueEvent", "injects", "an", "extra", "opened", "event", "before", "calling", "plugin", ".", "ReceiveIssueEvent", "()" ]
[ "func", "(", "o", "*", "FakeOpenPluginWrapper", ")", "ReceiveIssueEvent", "(", "event", "sql", ".", "IssueEvent", ")", "[", "]", "Point", "{", "points", ":=", "[", "]", "<mask>", "{", "}", "\n\n", "// Inject extra \"opened\" events. Inject \"opened\" before other ev...
23,901
all-23902
[ "ReadNewLogs", "returns", "new", "log", "messages", "of", "the", "provided", "log", "type", ".", "For", "example", "page", ".", "ReadNewLogs", "(", "browser", ")", "returns", "browser", "console", "logs", "such", "as", "JavaScript", "logs", "and", "errors", ...
[ "func", "(", "p", "*", "Page", ")", "ReadNewLogs", "(", "logType", "string", ")", "(", "[", "]", "Log", ",", "error", ")", "{", "if", "p", ".", "logs", "==", "nil", "{", "p", ".", "logs", "=", "map", "[", "string", "]", "[", "]", "Log", "{", ...
23,902
all-23903
[ "IsVTXDisabledInTheVM", "checks", "if", "VT", "-", "X", "is", "disabled", "in", "the", "started", "vm", "." ]
[ "func", "(", "d", "*", "Driver", ")", "IsVTXDisabledInTheVM", "(", ")", "(", "bool", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "d", ".", "readVBoxLog", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "true", ",", "err", "\n", "...
23,903
all-23904
[ "AutoOfferingPopUp", "creates", "AgentPreOfferingPopUp", "jobs", "for", "active", "offerings", ".", "Taken", "into", "account", "a", "current", "balance", "of", "agent", "ETH", ".", "If", "ETH", "is", "not", "enough", "to", "pop", "up", "all", "offerings", "th...
[ "func", "AutoOfferingPopUp", "(", "logger", "log", ".", "Logger", ",", "abi", "abi", ".", "ABI", ",", "db", "*", "reform", ".", "DB", ",", "ethBack", "eth", ".", "Backend", ",", "timeNowFunc", "func", "(", ")", "time", ".", "Time", ",", "period", "ui...
23,904
all-23905
[ "GetEvaluationDelay", "returns", "the", "EvaluationDelay", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "o", "*", "<mask>", ")", "GetEvaluationDelay", "(", ")", "int", "{", "if", "o", "==", "nil", "||", "o", ".", "EvaluationDelay", "==", "nil", "{", "return", "0", "\n", "}", "\n", "return", "*", "o", ".", "EvaluationDelay", "\n", "}" ]
23,905
all-23906
[ "MoveHostsOutOf", "moves", "a", "supplied", "list", "of", "hosts", "out", "of", "the", "specified", "cluster", ".", "The", "host", "is", "moved", "to", "the", "root", "host", "folder", "for", "the", "datacenter", "that", "the", "cluster", "is", "in", ".", ...
[ "func", "MoveHostsOutOf", "(", "cluster", "*", "object", ".", "ClusterComputeResource", ",", "hosts", "[", "]", "*", "object", ".", "HostSystem", ",", "timeout", "int", ")", "error", "{", "for", "_", ",", "host", ":=", "<mask>", "hosts", "{", "if", "err"...
23,906
all-23907
[ "generateProto", "creates", "a", "new", "proto_library", "rule", "for", "a", "package", ".", "The", "rule", "may", "be", "empty", "if", "there", "are", "no", "sources", "." ]
[ "func", "generateProto", "(", "pc", "*", "ProtoConfig", ",", "rel", "string", ",", "pkg", "*", "Package", ",", "shouldSetVisibility", "bool", ")", "*", "rule", ".", "Rule", "{", "var", "name", "string", "\n", "if", "pc", ".", "Mode", "==", "DefaultMode",...
23,907
all-23908
[ "Patch", "changes", "only", "the", "configuration", "keys", "in", "the", "given", "map", "." ]
[ "func", "(", "c", "*", "Config", ")", "Patch", "(", "patch", "map", "[", "string", "]", "interface", "{", "}", ")", "(", "map", "[", "string", "]", "string", ",", "error", ")", "{", "values", ":=", "c", ".", "Dump", "(", ")", "// Use current values...
23,908
all-23909
[ "Add", "a", "new", "update", "to", "the", "schema", ".", "It", "will", "be", "appended", "at", "the", "end", "of", "the", "existing", "series", "." ]
[ "func", "(", "s", "*", "Schema", ")", "Add", "(", "<mask>", "Update", ")", "{", "s", ".", "updates", "=", "append", "(", "s", ".", "updates", ",", "update", ")", "\n", "}" ]
23,909
all-23910
[ "match", "reports", "whether", "the", "file", "matches", "the", "pattern", ".", "It", "uses", "a", "string", "comparison", "if", "the", "pattern", "contains", "no", "metacharacters", "." ]
[ "func", "(", "m", "*", "modulePat", ")", "match", "(", "<mask>", "string", ")", "bool", "{", "if", "m", ".", "literal", "{", "return", "file", "==", "m", ".", "pattern", "\n", "}", "\n", "match", ",", "_", ":=", "filepath", ".", "Match", "(", "m"...
23,910
all-23911
[ "GetSelectedRows", "is", "a", "wrapper", "around", "gtk_tree_selection_get_selected_rows", "()", ".", "All", "the", "elements", "of", "returned", "list", "are", "wrapped", "into", "(", "*", "gtk", ".", "TreePath", ")", "values", ".", "Please", "note", "that", ...
[ "func", "(", "v", "*", "TreeSelection", ")", "GetSelectedRows", "(", "model", "ITreeModel", ")", "*", "glib", ".", "List", "{", "var", "pcmodel", "*", "*", "C", ".", "GtkTreeModel", "\n", "if", "model", "!=", "nil", "{", "cmodel", ":=", "model", ".", ...
23,911
all-23912
[ "Copy", "returns", "a", "deep", "copy", "of", "this", "configuration", "." ]
[ "func", "(", "c", "*", "ExecConfig", ")", "Copy", "(", ")", "*", "ExecConfig", "{", "if", "c", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "<mask>", "o", "ExecConfig", "\n\n", "o", ".", "Command", "=", "c", ".", "Command", "\n\n", "o", ...
23,912
all-23913
[ "ReplaceAtLine", "replaces", "all", "regular", "expressions", "mathed", "in", "r", "for", "the", "named", "file", "if", "the", "line", "is", "matched", "at", "the", "first", "." ]
[ "func", "ReplaceAtLine", "(", "filename", "string", ",", "r", "[", "]", "ReplacerAtLine", ")", "error", "{", "e", ",", "err", ":=", "NewEdit", "(", "<mask>", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "err", "=", ...
23,913
all-23914
[ "SyncMetrics", "records", "metrics", "for", "the", "cached", "prowjobs", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "SyncMetrics", "(", ")", "{", "c", ".", "pjLock", ".", "RLock", "(", ")", "\n", "defer", "c", ".", "pjLock", ".", "RUnlock", "(", ")", "\n", "kube", ".", "GatherProwJobMetrics", "(", "c", ".", "pjs", ")", "\n...
23,914
all-23915
[ "Collect", "cache", "metrics" ]
[ "func", "(", "api", "*", "Api", ")", "Stat", "(", "<mask>", "helper", ".", "StatCallback", ")", "{", "helper", ".", "SendAndSubstractUint32", "(", "\"", "\"", ",", "&", "api", ".", "stat", ".", "cacheRequests", ",", "send", ")", "\n", "helper", ".", ...
23,915
all-23916
[ "CheckNamedValue", "implements", "NamedValueChecker", "interface", ".", "implemented", "for", "conn", ":", "if", "querier", "or", "execer", "is", "called", "sql", "checks", "parameters", "before", "in", "case", "of", "parameters", "the", "method", "can", "be", "...
[ "func", "(", "c", "*", "conn", ")", "CheckNamedValue", "(", "nv", "*", "<mask>", ".", "NamedValue", ")", "error", "{", "switch", "nv", ".", "Value", ".", "(", "type", ")", "{", "case", "Lob", ",", "*", "Lob", ":", "nv", ".", "Value", "=", "nil", ...
23,916
all-23917
[ "NewServersetDiscovery", "returns", "a", "new", "Discovery", "for", "the", "given", "serverset", "config", "." ]
[ "func", "NewServersetDiscovery", "(", "conf", "*", "ServersetSDConfig", ",", "logger", "<mask>", ".", "Logger", ")", "(", "*", "Discovery", ",", "error", ")", "{", "return", "NewDiscovery", "(", "conf", ".", "Servers", ",", "time", ".", "Duration", "(", "c...
23,917
all-23918
[ "RegisterQueueTask", "registers", "the", "internal", "bs", "queue", "task", "for", "later", "execution", "." ]
[ "func", "RegisterQueueTask", "(", "p", "DockerProvisioner", ")", "error", "{", "q", ",", "err", ":=", "<mask>", ".", "Queue", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "return", "q", ".", "RegisterTask", "(", "&...
23,918
all-23919
[ "ReadFile", "reads", "a", "file", "content", "from", "the", "embedded", "filesystem", "." ]
[ "func", "ReadFile", "(", "name", "string", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "fs", ".", "New", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "ErrOpenFS", "\n", "}", "\n\n", "f...
23,919
all-23920
[ "Do", "executes", "Runtime", ".", "runScript", "against", "the", "provided", "context", ".", "returns", ":", "result", "-", "Run", "result", ".", "exceptionDetails", "-", "Exception", "details", "." ]
[ "func", "(", "p", "*", "RunScriptParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "result", "*", "RemoteObject", ",", "exceptionDetails", "*", "ExceptionDetails", ",", "err", "error", ")", "{", "// execute", "var", "res", "RunScriptReturns...
23,920
all-23921
[ "dialSetupOpts", "gives", "the", "dial", "opts", "prior", "to", "any", "authentication", "." ]
[ "func", "(", "c", "*", "Client", ")", "dialSetupOpts", "(", "creds", "*", "credentials", ".", "TransportCredentials", ",", "dopts", "...", "grpc", ".", "DialOption", ")", "(", "opts", "[", "]", "grpc", ".", "DialOption", ",", "err", "error", ")", "{", ...
23,921
all-23922
[ "Negotiate", "inspects", "the", "request", "for", "the", "accept", "header", "and", "encodes", "the", "response", "appropriately", "." ]
[ "func", "(", "cn", "*", "ContentNegotiator", ")", "Negotiate", "(", "req", "*", "http", ".", "<mask>", ",", "data", "interface", "{", "}", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "len", "(", "cn", ".", "encoderMap", ")", "<=", "...
23,922
all-23923
[ "GetColor", "returns", "the", "Color", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "f", "*", "FreeTextDefinition", ")", "GetColor", "(", ")", "string", "{", "if", "f", "==", "nil", "||", "f", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "f", ".", "Color", "\n", "}" ]
23,923
all-23924
[ "GetNetworkSettings", "returns", "the", "networks", "field", "in", "a", "container" ]
[ "func", "(", "c", "*", "Container", ")", "GetNetworkSettings", "(", ")", "*", "types", ".", "NetworkSettings", "{", "c", ".", "<mask>", ".", "RLock", "(", ")", "\n", "defer", "c", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "c", ".", "...
23,924
all-23925
[ "OnStart", "implements", "Service", "." ]
[ "func", "(", "a", "*", "AddrBook", ")", "OnStart", "(", ")", "error", "{", "a", ".", "BaseService", ".", "OnStart", "(", ")", "\n", "a", ".", "loadFromFile", "(", "a", ".", "filePath", ")", "\n", "a", ".", "wg", ".", "Add", "(", "1", ")", "\n",...
23,925
all-23926
[ "LockResource", "locks", "a", "resource", "against", "destroy", "requests", ".", "Support", "brightbox", ".", "CloudIP", "brightbox", ".", "Server", "brightbox", ".", "Image", "and", "brightbox", ".", "LoadBalancer" ]
[ "func", "(", "c", "*", "Client", ")", "LockResource", "(", "resource", "interface", "{", "}", ")", "error", "{", "rpath", ",", "err", ":=", "resourcePath", "(", "<mask>", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "...
23,926
all-23927
[ "GetEvent", "gets", "a", "single", "event", "given", "an", "identifier", "." ]
[ "func", "(", "<mask>", "*", "Client", ")", "GetEvent", "(", "id", "int", ")", "(", "*", "Event", ",", "error", ")", "{", "var", "out", "reqGetEvent", "\n", "if", "err", ":=", "client", ".", "doJsonRequest", "(", "\"", "\"", ",", "fmt", ".", "Sprint...
23,927
all-23928
[ "GetOperatorOk", "returns", "a", "tuple", "with", "the", "Operator", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsAssertion", ")", "GetOperatorOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "Operator", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return",...
23,928
all-23929
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "DOMNode", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomsnapshot12", "(", "&", "r", ...
23,929
all-23930
[ "MakeCommand", "returns", "a", "filter", "command", "." ]
[ "func", "MakeCommand", "(", ")", "*", "cobra", ".", "Command", "{", "<mask>", ":=", "&", "flags", "{", "}", "\n", "cmd", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "Long", ":", "`Filters a...
23,930
all-23931
[ "IsLinguistGenerated", "determines", "whether", "a", "file", "given", "here", "by", "its", "full", "path", "is", "included", "in", "the", ".", "gitattributes", "linguist", "-", "generated", "group", ".", "These", "files", "are", "excluded", "from", "language", ...
[ "func", "(", "g", "*", "Group", ")", "IsLinguistGenerated", "(", "path", "string", ")", "bool", "{", "for", "_", ",", "p", ":=", "range", "g", ".", "LinguistGeneratedPatterns", "{", "if", "p", ".", "Match", "(", "path", ")", "{", "return", "true", "\...
23,931
all-23932
[ "Has", "returns", "true", "if", "sym", "is", "loaded", "by", "this", "statement", "." ]
[ "func", "(", "l", "*", "Load", ")", "Has", "(", "sym", "string", ")", "bool", "{", "_", ",", "ok", ":=", "l", ".", "symbols", "[", "sym", "]", "\n", "return", "<mask>", "\n", "}" ]
23,932
all-23933
[ "Max", "returns", "the", "larger", "of", "a", "and", "b", "." ]
[ "func", "(", "a", "<mask>", ")", "Max", "(", "b", "Address", ")", "Address", "{", "if", "a", ">", "b", "{", "return", "a", "\n", "}", "\n", "return", "b", "\n", "}" ]
23,933
all-23934
[ "SetProjectQuota", "sets", "the", "quota", "on", "the", "project", "id" ]
[ "func", "SetProjectQuota", "(", "<mask>", "string", ",", "id", "uint32", ",", "bytes", "int64", ")", "error", "{", "// Get the backing device", "devPath", ",", "err", ":=", "devForPath", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err...
23,934
all-23935
[ "erase", "deletes", "written", "characters", "Caller", "must", "already", "hold", "s", ".", "lock", "." ]
[ "func", "(", "s", "*", "Spinner", ")", "erase", "(", ")", "{", "n", ":=", "utf8", ".", "RuneCountInString", "(", "s", ".", "lastOutput", ")", "\n", "if", "runtime", ".", "GOOS", "==", "\"", "\"", "{", "clearString", ":=", "\"", "\\r", "\"", "\n", ...
23,935
all-23936
[ "NewMemberAddCommand", "returns", "the", "cobra", "command", "for", "member", "add", "." ]
[ "func", "NewMemberAddCommand", "(", ")", "*", "cobra", ".", "Command", "{", "<mask>", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "Run", ":", "memberAddCommandFunc", ",", "}", "\n\n", "cc", "."...
23,936
all-23937
[ "GetBottomMargin", "()", "is", "a", "wrapper", "around", "gtk_page_setup_get_bottom_margin", "()", "." ]
[ "func", "(", "ps", "*", "PageSetup", ")", "GetBottomMargin", "(", "unit", "Unit", ")", "float64", "{", "c", ":=", "C", ".", "gtk_page_setup_get_bottom_margin", "(", "<mask>", ".", "native", "(", ")", ",", "C", ".", "GtkUnit", "(", "unit", ")", ")", "\n...
23,937
all-23938
[ "newHypervisorDiscovery", "returns", "a", "new", "hypervisor", "discovery", "." ]
[ "func", "newHypervisorDiscovery", "(", "provider", "*", "gophercloud", ".", "ProviderClient", ",", "opts", "*", "gophercloud", ".", "AuthOptions", ",", "port", "int", ",", "region", "string", ",", "l", "log", ".", "Logger", ")", "*", "HypervisorDiscovery", "{"...
23,938
all-23939
[ "JobInput", "fills", "in", "the", "commits", "for", "a", "JobInfo" ]
[ "func", "JobInput", "(", "pipelineInfo", "*", "pps", ".", "PipelineInfo", ",", "outputCommitInfo", "*", "pfs", ".", "CommitInfo", ")", "*", "pps", ".", "Input", "{", "// branchToCommit maps strings of the form \"<repo>/<branch>\" to PFS commits", "branchToCommit", ":=", ...
23,939
all-23940
[ "Get", "returns", "a", "HTTP", "handler", "which", "is", "a", "chain", "of", "middlewares", "and", "then", "the", "specified", "handler", "." ]
[ "func", "(", "s", "Chain", ")", "Get", "(", "handler", "http", ".", "Handler", ")", "http", ".", "Handler", "{", "for", "i", ":=", "len", "(", "s", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", "{", "handler", "=", "s", "[", "i", "]",...
23,940
all-23941
[ "ENIByMac", "returns", "the", "eni", "object", "that", "match", "the", "give", "mac", "address" ]
[ "func", "(", "state", "*", "DockerTaskEngineState", ")", "ENIByMac", "(", "mac", "string", ")", "(", "*", "apieni", ".", "ENIAttachment", ",", "bool", ")", "{", "state", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "state", ".", "lock", ".", "...
23,941
all-23942
[ "Purge", "is", "used", "to", "completely", "clear", "the", "cache", "." ]
[ "func", "(", "c", "*", "LRU", ")", "Purge", "(", ")", "{", "for", "k", ":=", "range", "c", ".", "<mask>", "{", "delete", "(", "c", ".", "items", ",", "k", ")", "\n", "}", "\n", "c", ".", "evictList", ".", "Init", "(", ")", "\n", "}" ]
23,942
all-23943
[ "WithTimeout", "adds", "the", "timeout", "to", "the", "find", "vms", "by", "filters", "params" ]
[ "func", "(", "o", "*", "FindVmsByFiltersParams", ")", "WithTimeout", "(", "timeout", "<mask>", ".", "Duration", ")", "*", "FindVmsByFiltersParams", "{", "o", ".", "SetTimeout", "(", "timeout", ")", "\n", "return", "o", "\n", "}" ]
23,943
all-23944
[ "VersionAtLeast", "returns", "whether", "the", "BuildInfo", "version", "is", "greater", "than", "or", "equal", "to", "the", "provided", "version", "number", ".", "If", "more", "than", "one", "number", "is", "provided", "numbers", "will", "be", "considered", "a...
[ "func", "(", "bi", "*", "BuildInfo", ")", "VersionAtLeast", "(", "<mask>", "...", "int", ")", "bool", "{", "for", "i", ":=", "range", "version", "{", "if", "i", "==", "len", "(", "bi", ".", "VersionArray", ")", "{", "return", "false", "\n", "}", "\...
23,944
all-23945
[ "Between", "check", "time", "between", "the", "begin", "end", "time", "or", "not" ]
[ "func", "(", "<mask>", "*", "Now", ")", "Between", "(", "begin", ",", "end", "string", ")", "bool", "{", "beginTime", ":=", "now", ".", "MustParse", "(", "begin", ")", "\n", "endTime", ":=", "now", ".", "MustParse", "(", "end", ")", "\n", "return", ...
23,945
all-23946
[ "Through", "appends", "a", "new", "asset", "to", "the", "path" ]
[ "func", "(", "pathSend", "PayWithPath", ")", "Through", "(", "asset", "Asset", ")", "PayWithPath", "{", "pathSend", ".", "Path", "=", "append", "(", "pathSend", ".", "<mask>", ",", "asset", ")", "\n", "return", "pathSend", "\n", "}" ]
23,946
all-23947
[ "finalizeJobConfig", "mutates", "and", "fixes", "entries", "for", "jobspecs" ]
[ "func", "(", "c", "*", "Config", ")", "finalizeJobConfig", "(", ")", "error", "{", "if", "c", ".", "decorationRequested", "(", ")", "{", "if", "c", ".", "Plank", ".", "DefaultDecorationConfig", "==", "nil", "{", "return", "errors", ".", "New", "(", "\"...
23,947
all-23948
[ "resetRecv", "opens", "a", "new", "lease", "stream", "and", "starts", "sending", "keep", "alive", "requests", "." ]
[ "func", "(", "l", "*", "lessor", ")", "resetRecv", "(", ")", "(", "pb", ".", "Lease_LeaseKeepAliveClient", ",", "error", ")", "{", "sctx", ",", "cancel", ":=", "context", ".", "WithCancel", "(", "l", ".", "stopCtx", ")", "\n", "stream", ",", "err", "...
23,948
all-23949
[ "label", "a", "named", "object", "identified", "within", "a", "namespace" ]
[ "func", "ObjectLabel", "(", "identifier", "uint32", ",", "name", "uint32", ",", "length", "int32", ",", "<mask>", "*", "uint8", ")", "{", "syscall", ".", "Syscall6", "(", "gpObjectLabel", ",", "4", ",", "uintptr", "(", "identifier", ")", ",", "uintptr", ...
23,949
all-23950
[ "getValue", "returns", "the", "handle", "registered", "with", "the", "given", "path", "(", "key", ")", ".", "The", "values", "of", "wildcards", "are", "saved", "to", "a", "map", ".", "If", "no", "handle", "can", "be", "found", "a", "TSR", "(", "trailin...
[ "func", "(", "n", "*", "node", ")", "getValue", "(", "path", "string", ",", "po", "Params", ",", "unescape", "bool", ")", "(", "handlers", "RouterHandlerChain", ",", "p", "Params", ",", "tsr", "bool", ")", "{", "p", "=", "po", "\n", "walk", ":", "/...
23,950
all-23951
[ "BufferToWindowCoords", "is", "a", "wrapper", "around", "gtk_text_view_buffer_to_window_coords", "()", "." ]
[ "func", "(", "v", "*", "TextView", ")", "BufferToWindowCoords", "(", "win", "TextWindowType", ",", "buffer_x", ",", "buffer_y", "int", ")", "(", "window_x", ",", "window_y", "int", ")", "{", "<mask>", "wx", ",", "wy", "C", ".", "gint", "\n", "C", ".", ...
23,951
all-23952
[ "Enable", "or", "disable", "a", "generic", "vertex", "attribute", "array" ]
[ "func", "EnableVertexArrayAttrib", "(", "vaobj", "uint32", ",", "index", "uint32", ")", "{", "C", ".", "glowEnableVertexArrayAttrib", "(", "gpEnableVertexArrayAttrib", ",", "(", "C", ".", "GLuint", ")", "(", "vaobj", ")", ",", "(", "C", ".", "GLuint", ")", ...
23,952
all-23953
[ "old", "version", ".", "for", "benchmarks", "only" ]
[ "func", "oldPlain", "(", "body", "[", "]", "byte", ")", "(", "[", "]", "*", "points", ".", "Points", ",", "error", ")", "{", "result", ":=", "make", "(", "[", "]", "*", "points", ".", "Points", ",", "4", ")", "\n\n", "reader", ":=", "bytes", "....
23,953
all-23954
[ "JsonRead", "tries", "to", "read", "client", "sent", "content", "using", "JSON", "deserialization", "and", "writes", "it", "to", "defined", "object", "." ]
[ "func", "JsonRead", "(", "body", "io", ".", "ReadCloser", ",", "obj", "interface", "{", "}", ",", "w", "http", ".", "ResponseWriter", ")", "bool", "{", "content", ",", "err", ":=", "ioutil", ".", "ReadAll", "(", "io", ".", "LimitReader", "(", "body", ...
23,954
all-23955
[ "GetMessageArea", "()", "is", "a", "wrapper", "around", "gtk_statusbar_get_message_area", "()", "." ]
[ "func", "(", "v", "*", "Statusbar", ")", "GetMessageArea", "(", ")", "(", "*", "Box", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_statusbar_get_message_area", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return"...
23,955
all-23956
[ "recover", "is", "the", "handler", "that", "turns", "panics", "into", "returns", "from", "the", "top", "level", "of", "evaluation", "." ]
[ "func", "(", "ev", "*", "evaluator", ")", "recover", "(", "errp", "*", "error", ")", "{", "e", ":=", "recover", "(", ")", "\n", "if", "e", "==", "nil", "{", "return", "\n", "}", "\n", "if", "err", ",", "ok", ":=", "e", ".", "(", "runtime", "....
23,956
all-23957
[ "Do", "sends", "an", "HTTP", "request", "with", "the", "provided", "http", ".", "Client", "and", "returns", "an", "HTTP", "response", ".", "If", "the", "client", "is", "nil", "http", ".", "DefaultClient", "is", "used", ".", "The", "provided", "ctx", "mus...
[ "func", "ctxhttpDo", "(", "ctx", "context", ".", "<mask>", ",", "client", "*", "http", ".", "Client", ",", "req", "*", "http", ".", "Request", ")", "(", "*", "http", ".", "Response", ",", "error", ")", "{", "if", "client", "==", "nil", "{", "client...
23,957
all-23958
[ "HasFacet", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "a", "*", "ApmOrLogQueryCompute", ")", "HasFacet", "(", ")", "bool", "{", "if", "a", "!=", "nil", "&&", "a", ".", "Facet", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
23,958
all-23959
[ "next", "advances", "to", "the", "next", "packed", "file", "in", "the", "RAR", "archive", "." ]
[ "func", "(", "f", "*", "packedFileReader", ")", "next", "(", ")", "(", "*", "fileBlockHeader", ",", "error", ")", "{", "if", "f", ".", "h", "!=", "nil", "{", "// skip to last block in current file", "for", "!", "f", ".", "h", ".", "<mask>", "{", "// di...
23,959
all-23960
[ "FindRange", "finds", "the", "elements", "of", "an", "array", "between", "the", "specified", "indexes", ";", "inclusive" ]
[ "func", "FindRange", "(", "in", "[", "]", "byte", ",", "pos", ",", "from", ",", "to", "int", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "to", "<", "from", "{", "return", "nil", ",", "errToLessThanFrom", "\n", "}", "\n\n", "pos", ...
23,960
all-23961
[ "MarshalJSON", "returns", "the", "HexColor", "as", "JSON" ]
[ "func", "(", "h", "HexColor", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "var", "w", "jwriter", ".", "<mask>", "\n", "h", ".", "MarshalEasyJSON", "(", "&", "w", ")", "\n", "return", "w", ".", "BuildBytes", "(", "...
23,961
all-23962
[ "LinkList", "indicates", "an", "expected", "call", "of", "LinkList" ]
[ "func", "(", "mr", "*", "MockNetLinkMockRecorder", ")", "LinkList", "(", ")", "*", "gomock", ".", "Call", "{", "<mask>", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",", "\"", "\"", ",", "reflect", ".", "Typ...
23,962
all-23963
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "DescribeNodeParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom73", "(", "&", "r...
23,963
all-23964
[ "URLParam", "returns", "the", "corresponding", "URL", "parameter", "value", "from", "the", "request", "routing", "context", "." ]
[ "func", "(", "x", "*", "<mask>", ")", "URLParam", "(", "key", "string", ")", "string", "{", "for", "k", ":=", "len", "(", "x", ".", "URLParams", ".", "Keys", ")", "-", "1", ";", "k", ">=", "0", ";", "k", "--", "{", "if", "x", ".", "URLParams"...
23,964
all-23965
[ "NetworkDelete", "deletes", "the", "network", "with", "the", "given", "name", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "NetworkDelete", "(", "name", "string", ")", "error", "{", "id", ",", "_", ",", "err", ":=", "c", ".", "NetworkGet", "(", "name", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n",...
23,965
all-23966
[ "Do", "executes", "Tracing", ".", "requestMemoryDump", "against", "the", "provided", "context", ".", "returns", ":", "dumpGUID", "-", "GUID", "of", "the", "resulting", "global", "memory", "dump", ".", "success", "-", "True", "iff", "the", "global", "memory", ...
[ "func", "(", "p", "*", "RequestMemoryDumpParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "dumpGUID", "string", ",", "success", "bool", ",", "err", "error", ")", "{", "// execute", "var", "<mask>", "RequestMemoryDumpReturns", "\n", "err",...
23,966
all-23967
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventConsoleProfileFinished", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoProfiler23", "(", "&", "w", ",", ...
23,967
all-23968
[ "GetBlob", "returns", "a", "stream", "for", "the", "specified", "blob", "and", "the", "blob’s", "size", "(", "or", "-", "1", "if", "unknown", ")", ".", "The", "Digest", "field", "in", "BlobInfo", "is", "guaranteed", "to", "be", "provided", "Size", "may",...
[ "func", "(", "s", "*", "dirImageSource", ")", "GetBlob", "(", "ctx", "context", ".", "Context", ",", "info", "types", ".", "BlobInfo", ",", "cache", "types", ".", "BlobInfoCache", ")", "(", "io", ".", "ReadCloser", ",", "int64", ",", "error", ")", "{",...
23,968
all-23969
[ "GetAuthorizationToken", "indicates", "an", "expected", "call", "of", "GetAuthorizationToken" ]
[ "func", "(", "mr", "*", "MockECRClientMockRecorder", ")", "GetAuthorizationToken", "(", "arg0", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ","...
23,969
all-23970
[ "AcquireByStateWait", "blocks", "until", "AcquireByState", "returns", "the", "specified", "resource", "(", "s", ")", "or", "the", "provided", "context", "is", "cancelled", "or", "its", "deadline", "exceeded", "." ]
[ "func", "(", "c", "*", "Client", ")", "AcquireByStateWait", "(", "ctx", "context", ".", "Context", ",", "state", ",", "dest", "string", ",", "<mask>", "[", "]", "string", ")", "(", "[", "]", "common", ".", "Resource", ",", "error", ")", "{", "if", ...
23,970
all-23971
[ "getPRBuildData", "concurrently", "fetches", "metadata", "on", "each", "build", "of", "each", "job", "run", "on", "a", "PR" ]
[ "func", "getPRBuildData", "(", "bucket", "storageBucket", ",", "jobs", "[", "]", "jobBuilds", ")", "[", "]", "buildData", "{", "buildch", ":=", "make", "(", "chan", "buildData", ")", "\n", "defer", "close", "(", "buildch", ")", "\n", "expected", ":=", "0...
23,971
all-23972
[ "EtcdHeadlessService", "returns", "a", "headless", "etcd", "service", "which", "is", "only", "for", "DNS", "resolution", "." ]
[ "func", "EtcdHeadlessService", "(", "opts", "*", "AssetOpts", ")", "*", "v1", ".", "Service", "{", "return", "&", "v1", ".", "Service", "{", "TypeMeta", ":", "metav1", ".", "TypeMeta", "{", "Kind", ":", "\"", "\"", ",", "APIVersion", ":", "\"", "\"", ...
23,972
all-23973
[ "SetLastModified", "sets", "Last", "-", "Modified", "header", "to", "the", "given", "value", "." ]
[ "func", "(", "h", "*", "ResponseHeader", ")", "SetLastModified", "(", "t", "time", ".", "Time", ")", "{", "h", ".", "bufKV", ".", "value", "=", "AppendHTTPDate", "(", "h", ".", "bufKV", ".", "value", "[", ":", "0", "]", ",", "t", ")", "\n", "h", ...
23,973
all-23974
[ "SetResolution", "()", "is", "a", "wrapper", "around", "gtk_print_settings_set_resolution", "()", "." ]
[ "func", "(", "ps", "*", "PrintSettings", ")", "SetResolution", "(", "resolution", "int", ")", "{", "C", ".", "gtk_print_settings_set_resolution", "(", "<mask>", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "resolution", ")", ")", "\n", "}" ]
23,974
all-23975
[ "DrawImage", "draws", "the", "raster", "image", "in", "the", "current", "canvas" ]
[ "func", "(", "gc", "*", "GraphicContext", ")", "DrawImage", "(", "image", "image", ".", "Image", ")", "{", "bounds", ":=", "image", ".", "Bounds", "(", ")", "\n\n", "svgImage", ":=", "&", "Image", "{", "Href", ":", "imageToSvgHref", "(", "<mask>", ")",...
23,975
all-23976
[ "runWithAgentCmds", "returns", "the", "list", "of", "commands", "that", "should", "be", "passed", "when", "the", "provisioner", "will", "run", "a", "unit", "using", "tsuru_unit_agent", "to", "start", ".", "This", "will", "only", "be", "called", "for", "legacy"...
[ "func", "runWithAgentCmds", "(", "app", "provision", ".", "App", ")", "(", "[", "]", "string", ",", "error", ")", "{", "runCmd", ",", "err", ":=", "config", ".", "GetString", "(", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "runCmd", "=",...
23,976
all-23977
[ "nextEnts", "returns", "all", "the", "available", "entries", "for", "execution", ".", "If", "applied", "is", "smaller", "than", "the", "index", "of", "snapshot", "it", "returns", "all", "committed", "entries", "after", "the", "index", "of", "snapshot", "." ]
[ "func", "(", "l", "*", "raftLog", ")", "nextEnts", "(", ")", "(", "ents", "[", "]", "pb", ".", "Entry", ")", "{", "off", ":=", "<mask>", "(", "l", ".", "applied", "+", "1", ",", "l", ".", "firstIndex", "(", ")", ")", "\n", "if", "l", ".", "...
23,977
all-23978
[ "MiddlewareFunc", "returns", "a", "HandlerFunc", "that", "implements", "the", "middleware", "." ]
[ "func", "(", "mw", "*", "JsonpMiddleware", ")", "MiddlewareFunc", "(", "h", "HandlerFunc", ")", "HandlerFunc", "{", "if", "mw", ".", "CallbackNameKey", "==", "\"", "\"", "{", "mw", ".", "CallbackNameKey", "=", "\"", "\"", "\n", "}", "\n\n", "return", "fu...
23,978
all-23979
[ "Describe", "implements", "prometheus", "Collector", "interface", "." ]
[ "func", "(", "s", "*", "Storage", ")", "Describe", "(", "in", "chan", "<-", "*", "prometheus", ".", "Desc", ")", "{", "s", ".", "connections", ".", "Describe", "(", "in", ")", "\n", "s", ".", "queriesTotal", ".", "Describe", "(", "in", ")", "\n", ...
23,979
all-23980
[ "establish", "data", "storage", "format", "dimensions", "and", "sample", "count", "of", "a", "renderbuffer", "object", "s", "image" ]
[ "func", "NamedRenderbufferStorageMultisample", "(", "renderbuffer", "uint32", ",", "samples", "int32", ",", "internalformat", "uint32", ",", "width", "int32", ",", "height", "int32", ")", "{", "C", ".", "glowNamedRenderbufferStorageMultisample", "(", "gpNamedRenderbuffe...
23,980
all-23981
[ "Columns", "returns", "the", "current", "list", "of", "table", "columns" ]
[ "func", "(", "l", "*", "TableView", ")", "Columns", "(", ")", "[", "]", "Column", "{", "c", ":=", "make", "(", "[", "]", "Column", ",", "len", "(", "l", ".", "columns", ")", ")", "\n", "<mask>", "(", "c", ",", "l", ".", "columns", ")", "\n", ...
23,981
all-23982
[ "User", "Data", "are", "used", "to", "store", "custom", "information", "mainly", "by", "Mason", "and", "Masonable", "implementation", ".", "Mason", "used", "a", "LeasedResource", "keys", "to", "store", "information", "about", "other", "resources", "that", "used"...
[ "func", "(", "ud", "*", "UserData", ")", "Set", "(", "id", "string", ",", "in", "<mask>", "{", "}", ")", "error", "{", "b", ",", "err", ":=", "yaml", ".", "Marshal", "(", "in", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", ...
23,982
all-23983
[ "GetImage", "returns", "an", "Image", "struct", "for", "the", "provided", "fingerprint" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetImage", "(", "fingerprint", "string", ")", "(", "*", "api", ".", "<mask>", ",", "string", ",", "error", ")", "{", "return", "r", ".", "GetPrivateImage", "(", "fingerprint", ",", "\"", "\"", ")", "\n", "}...
23,983
all-23984
[ "NewHTTPClient", "returns", "a", "client", "that", "speaks", "to", "tor", "open", "sock", "." ]
[ "func", "NewHTTPClient", "(", "sock", "uint", ")", "(", "*", "http", ".", "Client", ",", "error", ")", "{", "torProxyURL", ",", "err", ":=", "url", ".", "Parse", "(", "fmt", ".", "Sprint", "(", "\"", "\"", ",", "sock", ")", ")", "\n", "if", "err"...
23,984
all-23985
[ "Log", "adds", "a", "log", "message", "to", "the", "app", ".", "Specifying", "a", "good", "source", "is", "good", "so", "the", "user", "can", "filter", "where", "the", "message", "come", "from", "." ]
[ "func", "(", "app", "*", "App", ")", "Log", "(", "message", ",", "source", ",", "unit", "string", ")", "error", "{", "messages", ":=", "strings", ".", "Split", "(", "message", ",", "\"", "\\n", "\"", ")", "\n", "logs", ":=", "make", "(", "[", "]"...
23,985
all-23986
[ "LastNLinesChunked", "reads", "the", "last", "n", "lines", "from", "an", "artifact", "by", "reading", "chunks", "of", "size", "chunkSize", "from", "the", "end", "of", "the", "artifact", ".", "Best", "performance", "is", "achieved", "by", ":", "argmin", "0<ch...
[ "func", "LastNLinesChunked", "(", "a", "Artifact", ",", "n", ",", "chunkSize", "int64", ")", "(", "[", "]", "string", ",", "error", ")", "{", "toRead", ":=", "chunkSize", "+", "1", "// Add 1 for exclusive upper bound read range", "\n", "chunks", ":=", "int64",...
23,986
all-23987
[ "WithMetadata", "specifies", "message", "-", "implementation", "specific", "metadata", "to", "go", "with", "the", "content" ]
[ "func", "(", "p", "*", "Message", ")", "WithMetadata", "(", "<mask>", "MapMatcher", ")", "*", "Message", "{", "p", ".", "Metadata", "=", "metadata", "\n", "return", "p", "\n", "}" ]
23,987
all-23988
[ "Put", "saves", "src", "to", "the", "index", ".", "If", "id", "is", "empty", "a", "new", "ID", "is", "allocated", "by", "the", "service", "and", "returned", ".", "If", "id", "is", "not", "empty", "any", "existing", "index", "entry", "for", "that", "I...
[ "func", "(", "x", "*", "Index", ")", "Put", "(", "c", "context", ".", "<mask>", ",", "id", "string", ",", "src", "interface", "{", "}", ")", "(", "string", ",", "error", ")", "{", "ids", ",", "err", ":=", "x", ".", "PutMulti", "(", "c", ",", ...
23,988
all-23989
[ "GetNameOk", "returns", "a", "tuple", "with", "the", "Name", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "Creator", ")", "GetNameOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "c", "==", "nil", "||", "c", ".", "Name", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "c", "."...
23,989
all-23990
[ "CreateSystemDefaultDevice", "returns", "the", "preferred", "system", "default", "Metal", "device", ".", "Reference", ":", "https", ":", "//", "developer", ".", "apple", ".", "com", "/", "documentation", "/", "metal", "/", "1433401", "-", "mtlcreatesystemdefaultde...
[ "func", "CreateSystemDefaultDevice", "(", ")", "(", "Device", ",", "error", ")", "{", "d", ":=", "C", ".", "CreateSystemDefaultDevice", "(", ")", "\n", "if", "d", ".", "Device", "==", "nil", "{", "return", "Device", "{", "}", ",", "errors", ".", "New",...
23,990
all-23991
[ "MakeFakeSku", "---" ]
[ "func", "MakeFakeSku", "(", "<mask>", "string", ")", "(", "*", "FakeSku", ",", "*", "taskmanager", ".", "Task", ",", "*", "taskmanager", ".", "Task", ")", "{", "spyTask", ":=", "&", "taskmanager", ".", "Task", "{", "ID", ":", "bson", ".", "NewObjectId"...
23,991
all-23992
[ "updateContainerMetadata", "sets", "the", "container", "metadata", "from", "the", "docker", "inspect" ]
[ "func", "updateContainerMetadata", "(", "metadata", "*", "dockerapi", ".", "DockerContainerMetadata", ",", "container", "*", "apicontainer", ".", "Container", ",", "task", "*", "apitask", ".", "Task", ")", "{", "container", ".", "SetCreatedAt", "(", "metadata", ...
23,992
all-23993
[ "GetTitleOk", "returns", "a", "tuple", "with", "the", "Title", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "a", "*", "AlertGraphDefinition", ")", "GetTitleOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "a", "==", "nil", "||", "a", ".", "Title", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*...
23,993
all-23994
[ "Returns", "a", "boolean", "at", "the", "key", "or", "the", "specified", "value", "if", "it", "doesn", "t", "exist", "or", "isn", "t", "a", "bool" ]
[ "func", "(", "t", "Typed", ")", "BoolOr", "(", "key", "string", ",", "d", "bool", ")", "bool", "{", "if", "value", ",", "exists", ":=", "t", ".", "BoolIf", "(", "key", ")", ";", "exists", "{", "return", "<mask>", "\n", "}", "\n", "return", "d", ...
23,994
all-23995
[ "increment", "nonce", "big", "-", "endian", "by", "1", "with", "wraparound", "." ]
[ "func", "incrNonce", "(", "nonce", "*", "[", "24", "]", "<mask>", ")", "{", "for", "i", ":=", "23", ";", "0", "<=", "i", ";", "i", "--", "{", "nonce", "[", "i", "]", "+=", "1", "\n", "if", "nonce", "[", "i", "]", "!=", "0", "{", "return", ...
23,995
all-23996
[ "verifyCNIPluginsCapabilities", "returns", "an", "error", "if", "there", "s", "an", "error", "querying", "capabilities", "or", "if", "the", "required", "capability", "is", "absent", "from", "the", "capabilities", "of", "the", "following", "plugins", ":", "a", "....
[ "func", "(", "agent", "*", "ecsAgent", ")", "verifyCNIPluginsCapabilities", "(", ")", "error", "{", "// Check if we can get capabilities from each plugin", "for", "_", ",", "plugin", ":=", "range", "awsVPCCNIPlugins", "{", "capabilities", ",", "err", ":=", "<mask>", ...
23,996
all-23997
[ "MarshalBinary", "interface", "implementation" ]
[ "func", "(", "m", "*", "<mask>", ")", "MarshalBinary", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "m", "==", "nil", "{", "return", "nil", ",", "nil", "\n", "}", "\n", "return", "swag", ".", "WriteJSON", "(", "m", ")", "\n", ...
23,997
all-23998
[ "DeclareVar", "puts", "a", "new", "variable", "in", "the", "stack", "and", "returns", "the", "index", "where", "it", "now", "resides" ]
[ "func", "(", "f", "*", "Frame", ")", "DeclareVar", "(", "v", "<mask>", "{", "}", ")", "int", "{", "f", ".", "stack", ".", "Push", "(", "v", ")", "\n", "return", "f", ".", "stack", ".", "Size", "(", ")", "-", "1", "\n", "}" ]
23,998
all-23999
[ "printECSAttributes", "prints", "the", "Agent", "s", "ECS", "Attributes", "based", "on", "its", "environment" ]
[ "func", "(", "agent", "*", "ecsAgent", ")", "printECSAttributes", "(", ")", "int", "{", "capabilities", ",", "err", ":=", "<mask>", ".", "capabilities", "(", ")", "\n", "if", "err", "!=", "nil", "{", "seelog", ".", "Warnf", "(", "\"", "\"", ",", "err...
23,999
all-24000
[ "Next", "returns", "the", "index", "of", "the", "element", "after", "from", "or", "-", "1", "if", "no", "more", ".", "returns", "-", "2", "if", "erroneous", "input", "(", "bad", "from", ")", "." ]
[ "func", "(", "f", "*", "FixedSizeRingBuf", ")", "Nextpos", "(", "from", "int", ")", "int", "{", "if", "from", ">=", "f", ".", "N", "||", "from", "<", "0", "{", "return", "-", "2", "\n", "}", "\n", "if", "f", ".", "Readable", "==", "0", "{", "...