id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
2,000
all-2001
[ "Error", "returns", "the", "code", "and", "message", "conforming", "to", "the", "error", "interface" ]
[ "func", "(", "se", "SystemError", ")", "Error", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "se", ".", "Code", "(", ")", ",", "se", ".", "<mask>", ")", "\n", "}" ]
2,001
all-2002
[ "Proxy", "is", "not", "implemented", "for", "OSB", "API", "implementations" ]
[ "func", "(", "b", "*", "brokerClient", ")", "Proxy", "(", "path", "string", ",", "evt", "*", "event", ".", "Event", ",", "requestID", "string", ",", "w", "<mask>", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "error", "{", "retu...
2,002
all-2003
[ "expandDVSCreateSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "DVSCreateSpec", "." ]
[ "func", "expandDVSCreateSpec", "(", "d", "*", "schema", ".", "ResourceData", ")", "<mask>", ".", "DVSCreateSpec", "{", "// Since we are only working with the version string from the product spec,", "// we don't have a separate expander/flattener for it. Just do that here.", "obj", ":...
2,003
all-2004
[ "Issues", "is", "the", "main", "work", "function", "of", "the", "TriageFiler", ".", "It", "fetches", "and", "parses", "cluster", "data", "then", "syncs", "the", "top", "issues", "to", "github", "with", "the", "IssueCreator", "." ]
[ "func", "(", "f", "*", "TriageFiler", ")", "Issues", "(", "c", "*", "creator", ".", "IssueCreator", ")", "(", "[", "]", "creator", ".", "Issue", ",", "error", ")", "{", "f", ".", "creator", "=", "c", "\n", "rawjson", ",", "err", ":=", "ReadHTTP", ...
2,004
all-2005
[ "Send", "sends", "the", "request", ".", "On", "success", "the", "photos", "are", "returned", "as", "a", "UserProfilePhotosResponse", "." ]
[ "func", "(", "op", "*", "OutgoingUserProfilePhotosRequest", ")", "Send", "(", ")", "(", "*", "UserProfilePhotosResponse", ",", "error", ")", "{", "resp", ":=", "&", "UserProfilePhotosResponse", "{", "}", "\n", "_", ",", "err", ":=", "op", ".", "api", ".", ...
2,005
all-2006
[ "UnmarshalJSON", "satisfies", "json", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "ShadowRootType", ")", "UnmarshalJSON", "(", "buf", "[", "]", "<mask>", ")", "error", "{", "return", "easyjson", ".", "Unmarshal", "(", "buf", ",", "t", ")", "\n", "}" ]
2,006
all-2007
[ "Extract", "username", "from", "the", "request", "url" ]
[ "func", "(", "this", "LogData", ")", "UrlUsername", "(", ")", "string", "{", "if", "this", ".", "Request", ".", "URL", ".", "User", "!=", "nil", "{", "return", "this", ".", "Request", ".", "URL", ".", "<mask>", ".", "Username", "(", ")", "\n", "}",...
2,007
all-2008
[ "NewInstanceAuthenticator", "returns", "an", "authenticator", "that", "uses", "the", "instance", "facing", "API", "token", "to", "create", "sessions", ".", "This", "is", "the", "token", "found", "on", "RightLink", "instances", "under", "the", "RS_API_TOKEN", "envi...
[ "func", "NewInstanceAuthenticator", "(", "<mask>", "string", ",", "accountID", "int", ")", "Authenticator", "{", "builder", ":=", "instanceLoginRequestBuilder", "{", "token", ":", "token", ",", "accountID", ":", "accountID", "}", "\n", "return", "newCookieSigner", ...
2,008
all-2009
[ "SetWriter", "sets", "writer", "to", "glg", "std", "writers" ]
[ "func", "(", "g", "*", "Glg", ")", "SetWriter", "(", "<mask>", "io", ".", "Writer", ")", "*", "Glg", "{", "if", "writer", "==", "nil", "{", "return", "g", "\n", "}", "\n\n", "g", ".", "logger", ".", "Range", "(", "func", "(", "key", ",", "val",...
2,009
all-2010
[ "createDisk", "performs", "all", "of", "the", "logic", "for", "a", "base", "virtual", "disk", "creation", "." ]
[ "func", "(", "r", "*", "DiskSubresource", ")", "createDisk", "(", "l", "object", ".", "VirtualDeviceList", ")", "(", "*", "types", ".", "VirtualDisk", ",", "error", ")", "{", "disk", ":=", "new", "(", "types", ".", "VirtualDisk", ")", "\n", "disk", "."...
2,010
all-2011
[ "IsHostname", "checks", "if", "this", "is", "a", "hostname" ]
[ "func", "IsHostname", "(", "s", "string", ")", "bool", "{", "addrs", ",", "err", ":=", "net", ".", "LookupHost", "(", "s", ")", "\n", "if", "err", "!=", "nil", "||", "len", "(", "addrs", ")", "==", "0", "{", "return", "false", "\n", "}", "\n", ...
2,011
all-2012
[ "NewRegexp", "creates", "a", "new", "anchored", "Regexp", "and", "returns", "an", "error", "if", "the", "passed", "-", "in", "regular", "expression", "does", "not", "compile", "." ]
[ "func", "NewRegexp", "(", "s", "string", ")", "(", "Regexp", ",", "error", ")", "{", "regex", ",", "err", ":=", "regexp", ".", "Compile", "(", "\"", "\"", "+", "s", "+", "\"", "\"", ")", "\n", "return", "Regexp", "{", "Regexp", ":", "regex", ",",...
2,012
all-2013
[ "NewTokenProvider", "creates", "a", "new", "token", "provider", "." ]
[ "func", "NewTokenProvider", "(", "lg", "*", "zap", ".", "Logger", ",", "tokenOpts", "string", ",", "indexWaiter", "func", "(", "uint64", ")", "<-", "chan", "struct", "{", "}", ")", "(", "TokenProvider", ",", "error", ")", "{", "tokenType", ",", "typeSpec...
2,013
all-2014
[ "RunScript", "runs", "the", "JavaScript", "provided", "in", "the", "body", ".", "Any", "keys", "present", "in", "the", "arguments", "map", "will", "be", "available", "as", "variables", "in", "the", "body", ".", "Values", "provided", "in", "arguments", "are",...
[ "func", "(", "p", "*", "Page", ")", "RunScript", "(", "body", "string", ",", "arguments", "map", "[", "string", "]", "interface", "{", "}", ",", "result", "interface", "{", "}", ")", "error", "{", "var", "(", "keys", "[", "]", "string", "\n", "valu...
2,014
all-2015
[ "Zones", "returns", "filtered", "zones", "if", "filter", "is", "set" ]
[ "func", "(", "p", "*", "RcodeZeroProvider", ")", "Zones", "(", ")", "(", "[", "]", "*", "rc0", ".", "Zone", ",", "error", ")", "{", "var", "result", "[", "]", "*", "rc0", ".", "Zone", "\n\n", "zones", ",", "err", ":=", "p", ".", "fetchZones", "...
2,015
all-2016
[ "AddAlternative", "adds", "an", "alternative", "part", "to", "the", "message", ".", "It", "is", "commonly", "used", "to", "send", "HTML", "emails", "that", "default", "to", "the", "plain", "text", "version", "for", "backward", "compatibility", ".", "AddAlterna...
[ "func", "(", "m", "*", "Message", ")", "AddAlternative", "(", "contentType", ",", "<mask>", "string", ",", "settings", "...", "PartSetting", ")", "{", "m", ".", "AddAlternativeWriter", "(", "contentType", ",", "newCopier", "(", "body", ")", ",", "settings", ...
2,016
all-2017
[ "create", "a", "new", "sync", "object", "and", "insert", "it", "into", "the", "GL", "command", "stream" ]
[ "func", "FenceSync", "(", "condition", "uint32", ",", "<mask>", "uint32", ")", "uintptr", "{", "ret", ":=", "C", ".", "glowFenceSync", "(", "gpFenceSync", ",", "(", "C", ".", "GLenum", ")", "(", "condition", ")", ",", "(", "C", ".", "GLbitfield", ")", ...
2,017
all-2018
[ "HasMin", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionMarker", ")", "HasMin", "(", ")", "bool", "{", "if", "g", "!=", "nil", "&&", "g", ".", "Min", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
2,018
all-2019
[ "NewOUWCStatusPolicy", "returns", "a", "status", "policy", "similar", "to", "that", "returned", "by", "NewDefaultStatusPolicy", "with", "one", "difference", ":", "the", "UNKNOWN", "check", "status", "is", "demoted", "in", "severity", "such", "that", "any", "WARNIN...
[ "func", "NewOUWCStatusPolicy", "(", ")", "*", "statusPolicy", "{", "pol", ",", "_", ":=", "NewStatusPolicy", "(", "[", "]", "Status", "{", "<mask>", ",", "UNKNOWN", ",", "WARNING", ",", "CRITICAL", "}", ")", "\n", "return", "pol", "\n", "}" ]
2,019
all-2020
[ "GetAuthorizationToken", "indicates", "an", "expected", "call", "of", "GetAuthorizationToken" ]
[ "func", "(", "mr", "*", "MockECRSDKMockRecorder", ")", "GetAuthorizationToken", "(", "arg0", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",", ...
2,020
all-2021
[ "String", "returns", "a", "human", "-", "readable", "representation", "of", "the", "frame", "type", "." ]
[ "func", "(", "t", "FrameType", ")", "String", "(", ")", "string", "{", "switch", "t", "{", "case", "FrameTypeResponse", ":", "return", "\"", "\"", "\n\n", "case", "FrameTypeError", ":", "return", "\"", "\"", "\n\n", "case", "FrameTypeMessage", ":", "return...
2,021
all-2022
[ "Loader", "functions" ]
[ "func", "containerLXCCreate", "(", "s", "*", "state", ".", "State", ",", "args", "db", ".", "ContainerArgs", ")", "(", "container", ",", "error", ")", "{", "// Create the container struct", "c", ":=", "&", "containerLXC", "{", "<mask>", ":", "s", ",", "id"...
2,022
all-2023
[ "Wait", "waits", "for", "all", "waitgroups", "at", "or", "below", "the", "given", "sequence", "to", "complete", ".", "Please", "note", "that", "this", "is", "*", "INCLUSIVE", "*", "of", "the", "sequence" ]
[ "func", "(", "s", "*", "SequentialWaitGroup", ")", "Wait", "(", "sequence", "int64", ")", "{", "waitOver", ":=", "func", "(", ")", "bool", "{", "s", ".", "mutex", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mutex", ".", "Unlock", "(", ")", "...
2,023
all-2024
[ "export", "FileSequence_Frame_Int" ]
[ "func", "FileSequence_Frame_Int", "(", "<mask>", "FileSeqId", ",", "frame", "int", ")", "*", "C", ".", "char", "{", "fs", ",", "ok", ":=", "sFileSeqs", ".", "Get", "(", "id", ")", "\n", "// caller must free string", "if", "!", "ok", "{", "return", "C", ...
2,024
all-2025
[ "HasMessage", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "m", "*", "Monitor", ")", "HasMessage", "(", ")", "bool", "{", "if", "m", "!=", "nil", "&&", "m", ".", "Message", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
2,025
all-2026
[ "Get", "returns", "the", "latest", "value", "for", "the", "merge", "operator", "which", "is", "derived", "by", "applying", "the", "merge", "function", "to", "all", "the", "values", "added", "so", "far", ".", "If", "Add", "has", "not", "been", "called", "...
[ "func", "(", "op", "*", "MergeOperator", ")", "Get", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "op", ".", "RLock", "(", ")", "\n", "defer", "op", ".", "RUnlock", "(", ")", "\n", "var", "existing", "[", "]", "byte", "\n", "err", ...
2,026
all-2027
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GenerateTestReportParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage44", "(", "&...
2,027
all-2028
[ "Int64", "adds", "an", "int64", "-", "valued", "key", ":", "value", "pair", "to", "a", "Span", ".", "LogFields", "()", "record" ]
[ "func", "Int64", "(", "<mask>", "string", ",", "val", "int64", ")", "Field", "{", "return", "Field", "{", "key", ":", "key", ",", "fieldType", ":", "int64Type", ",", "numericVal", ":", "val", ",", "}", "\n", "}" ]
2,028
all-2029
[ "Page", "returns", "the", "page", "for", "the", "given", "page", "number", ".", "Page", "numbers", "are", "indexed", "starting", "at", "1", "not", "0", ".", "If", "the", "page", "is", "not", "found", "Page", "returns", "a", "Page", "with", "p", ".", ...
[ "func", "(", "r", "*", "Reader", ")", "Page", "(", "num", "int", ")", "Page", "{", "num", "--", "// now 0-indexed", "\n", "page", ":=", "r", ".", "Trailer", "(", ")", ".", "Key", "(", "\"", "\"", ")", ".", "Key", "(", "\"", "\"", ")", "\n", "...
2,029
all-2030
[ "String", "returns", "a", "human", "readable", "string", "representation", "of", "this", "object" ]
[ "func", "(", "<mask>", "CgroupStatus", ")", "String", "(", ")", "string", "{", "for", "k", ",", "v", ":=", "range", "cgroupStatusMap", "{", "if", "v", "==", "cs", "{", "return", "k", "\n", "}", "\n", "}", "\n", "return", "\"", "\"", "\n", "}" ]
2,030
all-2031
[ "Encode", "writes", "the", "Image", "m", "to", "w", "in", "PNG", "format", ".", "Any", "Image", "may", "be", "encoded", "but", "images", "that", "are", "not", "image", ".", "NRGBA", "might", "be", "encoded", "lossily", "." ]
[ "func", "Encode", "(", "w", "<mask>", ".", "Writer", ",", "m", "image", ".", "Image", ")", "error", "{", "var", "e", "Encoder", "\n", "return", "e", ".", "Encode", "(", "w", ",", "m", ")", "\n", "}" ]
2,031
all-2032
[ "Postpone", "value", "expiration", "time", "to", "current", "time", "added", "to", "its", "lifetime", "duration", "." ]
[ "func", "(", "i", "*", "cacheItem", ")", "Postpone", "(", ")", "{", "i", ".", "expireAt", "=", "<mask>", ".", "Now", "(", ")", ".", "Add", "(", "i", ".", "lifetime", ")", "\n", "}" ]
2,032
all-2033
[ "Trim", "the", "schema", "updates", "to", "the", "given", "version", "(", "included", ")", ".", "Updates", "with", "higher", "versions", "will", "be", "discarded", ".", "Any", "fresh", "schema", "dump", "previously", "set", "will", "be", "unset", "since", ...
[ "func", "(", "s", "*", "Schema", ")", "Trim", "(", "version", "int", ")", "[", "]", "Update", "{", "trimmed", ":=", "s", ".", "updates", "[", "<mask>", ":", "]", "\n", "s", ".", "updates", "=", "s", ".", "updates", "[", ":", "version", "]", "\n...
2,033
all-2034
[ "NewJitteredTicker", "works", "like", "a", "time", ".", "Ticker", "except", "with", "randomly", "distributed", "ticks", "between", "start", "and", "end", "duration", "." ]
[ "func", "NewJitteredTicker", "(", "ctx", "<mask>", ".", "Context", ",", "start", ",", "end", "time", ".", "Duration", ")", "<-", "chan", "time", ".", "Time", "{", "ticker", ":=", "make", "(", "chan", "time", ".", "Time", ",", "1", ")", "\n\n", "go", ...
2,034
all-2035
[ "A", "transformer", "function", "can", "be", "used", "to", "do", "post", "-", "download", "processing", "on", "the", "file", "before", "it", "is", "stored", "in", "the", "cache", "." ]
[ "func", "New", "(", "downloader", "*", "Downloader", ",", "<mask>", "*", "FileCache", ",", "transformer", "CacheTransformer", ",", ")", "*", "cachedDownloader", "{", "os", ".", "MkdirAll", "(", "cache", ".", "CachedPath", ",", "0770", ")", "\n", "return", ...
2,035
all-2036
[ "MarshalEasyJSON", "satisfies", "easyjson", ".", "Marshaler", "." ]
[ "func", "(", "t", "Source", ")", "MarshalEasyJSON", "(", "out", "*", "jwriter", ".", "<mask>", ")", "{", "out", ".", "String", "(", "string", "(", "t", ")", ")", "\n", "}" ]
2,036
all-2037
[ "SetMinValue", "()", "is", "a", "wrapper", "around", "gtk_level_bar_set_min_value", "()", "." ]
[ "func", "(", "v", "*", "LevelBar", ")", "SetMinValue", "(", "value", "float64", ")", "{", "C", ".", "gtk_level_bar_set_min_value", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gdouble", "(", "<mask>", ")", ")", "\n", "}" ]
2,037
all-2038
[ "SetDepth", "sets", "depth", "parameter", "for", "api", "calls" ]
[ "func", "(", "c", "*", "Client", ")", "SetDepth", "(", "depth", "int", ")", "{", "c", ".", "client", ".", "<mask>", "=", "strconv", ".", "Itoa", "(", "depth", ")", "\n", "}" ]
2,038
all-2039
[ "NewClient", "creates", "a", "new", "Hyperbahn", "client", "using", "the", "given", "channel", ".", "config", "is", "the", "environment", "-", "specific", "configuration", "for", "Hyperbahn", "such", "as", "the", "list", "of", "initial", "nodes", ".", "opts", ...
[ "func", "NewClient", "(", "ch", "*", "tchannel", ".", "Channel", ",", "config", "Configuration", ",", "opts", "*", "ClientOptions", ")", "(", "*", "Client", ",", "error", ")", "{", "client", ":=", "&", "Client", "{", "tchan", ":", "ch", ",", "quit", ...
2,039
all-2040
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "NavigateReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage26", "(", "&", "w", ",", "v", ")", "...
2,040
all-2041
[ "UnaryClientInterceptor", "applies", "fn", "to", "errors", "recieved", "by", "client", "." ]
[ "func", "UnaryClientInterceptor", "(", "fn", "ConvertFunc", ")", "grpc", ".", "UnaryClientInterceptor", "{", "return", "func", "(", "ctx", "context", ".", "Context", ",", "method", "string", ",", "req", ",", "<mask>", "interface", "{", "}", ",", "cc", "*", ...
2,041
all-2042
[ "UCount", "iterates", "over", "a", "list", "and", "keeps", "a", "running", "tally", "of", "the", "number", "of", "elements", "satisfy", "a", "predicate", "." ]
[ "func", "UCount", "(", "iter", "Enumerable", ",", "p", "Predicate", ")", "uint", "{", "<mask>", "iter", ".", "Enumerate", "(", "nil", ")", ".", "UCount", "(", "p", ")", "\n", "}" ]
2,042
all-2043
[ "cubehash56", "calculates", "cubuhash256", ".", "length", "of", "data", "must", "be", "32", "bytes", "." ]
[ "func", "cubehash256", "(", "data", "[", "]", "byte", ")", "[", "]", "byte", "{", "c", ":=", "NewCubeHash", "(", ")", "\n", "buf", ":=", "make", "(", "[", "]", "byte", ",", "32", ")", "\n", "buf", "[", "0", "]", "=", "0x80", "\n", "c", ".", ...
2,043
all-2044
[ "List", "takes", "label", "and", "field", "selectors", "and", "returns", "the", "list", "of", "Apps", "that", "match", "those", "selectors", "." ]
[ "func", "(", "c", "*", "apps", ")", "List", "(", "opts", "meta_v1", ".", "ListOptions", ")", "(", "result", "*", "v1", ".", "AppList", ",", "err", "error", ")", "{", "result", "=", "&", "v1", ".", "AppList", "{", "}", "\n", "err", "=", "c", "."...
2,044
all-2045
[ "OthersHave", "reports", "whether", "the", "others", "have", "all", "given", "permissions", "." ]
[ "func", "(", "i", "*", "info", ")", "OthersHave", "(", "p", "...", "perm", ")", "bool", "{", "mode", ":=", "i", ".", "fi", ".", "Mode", "(", ")", "\n\n", "for", "_", ",", "v", ":=", "range", "p", "{", "switch", "v", "{", "case", "R", ":", "...
2,045
all-2046
[ "CompareConfigs", "compares", "two", "config", "maps", "and", "returns", "an", "error", "if", "they", "differ", "." ]
[ "func", "CompareConfigs", "(", "config1", ",", "config2", "map", "[", "string", "]", "string", ",", "exclude", "[", "]", "string", ")", "error", "{", "if", "exclude", "==", "nil", "{", "exclude", "=", "[", "]", "string", "{", "}", "\n", "}", "\n\n", ...
2,046
all-2047
[ "GetDashCount", "is", "a", "wrapper", "around", "cairo_get_dash_count", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetDashCount", "(", ")", "int", "{", "c", ":=", "C", ".", "cairo_get_dash_count", "(", "v", ".", "native", "(", ")", ")", "\n", "return", "int", "(", "c", ")", "\n", "}" ]
2,047
all-2048
[ "ContainerGetSnapshotsFull", "returns", "all", "container", "objects", "for", "snapshots", "of", "a", "given", "container" ]
[ "func", "(", "c", "*", "ClusterTx", ")", "ContainerGetSnapshotsFull", "(", "project", "string", ",", "name", "string", ")", "(", "[", "]", "Container", ",", "error", ")", "{", "filter", ":=", "ContainerFilter", "{", "Parent", ":", "name", ",", "Project", ...
2,048
all-2049
[ "TODO", "export", "FileSequence_Split", "func", "FileSequence_Split", "()", "FileSequences", "{", "/", "*" ]
[ "func", "FramesToFrameRange", "(", "frames", "*", "C", ".", "int", ",", "num", "C", ".", "size_t", ",", "sorted", "bool", ",", "zfill", "int", ")", "*", "C", ".", "char", "{", "// caller must free string", "if", "num", "==", "C", ".", "size_t", "(", ...
2,049
all-2050
[ "serve", "accepts", "incoming", "connections", "on", "the", "listener", "l", "creating", "a", "new", "service", "goroutine", "for", "each", ".", "The", "service", "goroutines", "read", "requests", "and", "then", "call", "handler", "to", "reply", "to", "them", ...
[ "func", "(", "sctx", "*", "serveCtx", ")", "serve", "(", "s", "*", "etcdserver", ".", "EtcdServer", ",", "tlsinfo", "*", "transport", ".", "TLSInfo", ",", "handler", "http", ".", "Handler", ",", "errHandler", "func", "(", "error", ")", ",", "gopts", "....
2,050
all-2051
[ "shortHostname", "returns", "its", "argument", "truncating", "at", "the", "first", "period", ".", "For", "instance", "given", "www", ".", "google", ".", "com", "it", "returns", "www", "." ]
[ "func", "shortHostname", "(", "hostname", "string", ")", "string", "{", "if", "i", ":=", "strings", ".", "<mask>", "(", "hostname", ",", "\"", "\"", ")", ";", "i", ">=", "0", "{", "return", "hostname", "[", ":", "i", "]", "\n", "}", "\n", "return",...
2,051
all-2052
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "SecurityGroupRule", ")", "Locator", "(", "api", "*", "API", ")", "*", "SecurityGroupRuleLocator", "{", "for", "_", ",", "l", ":=", "<mask>", "r", ".", "Links", "{", "if", "l", "[", "\"", "\"", "]", "==", "\"", "\"", "{", "...
2,052
all-2053
[ "SetMarginTop", "is", "a", "wrapper", "around", "gtk_widget_set_margin_top", "()", "." ]
[ "func", "(", "v", "*", "Widget", ")", "SetMarginTop", "(", "<mask>", "int", ")", "{", "C", ".", "gtk_widget_set_margin_top", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "margin", ")", ")", "\n", "}" ]
2,053
all-2054
[ "SetMetadata", "gets", "a", "metadata", "value", "from", "the", "object", "." ]
[ "func", "(", "o", "*", "Object", ")", "GetMetadata", "(", "key", "string", ")", "(", "string", ",", "error", ")", "{", "data", ",", "<mask>", ":=", "o", ".", "Metadata", "[", "key", "]", "\n", "if", "!", "ok", "{", "return", "\"", "\"", ",", "f...
2,054
all-2055
[ "MiddlewareFunc", "makes", "AccessLogJsonMiddleware", "implement", "the", "Middleware", "interface", "." ]
[ "func", "(", "mw", "*", "AccessLogJsonMiddleware", ")", "MiddlewareFunc", "(", "h", "HandlerFunc", ")", "HandlerFunc", "{", "// set the default Logger", "if", "mw", ".", "Logger", "==", "nil", "{", "mw", ".", "Logger", "=", "log", ".", "New", "(", "os", "....
2,055
all-2056
[ "FriendlyPrice", "flips", "the", "sign", "of", "the", "Price", "(", "which", "is", "usually", "reported", "from", "the", "API", "as", "a", "negative", "number", ")", "and", "adds", "an", "appropriate", "currency", "symbol", "in", "front", "of", "it", ".", ...
[ "func", "(", "t", "*", "Transcription", ")", "FriendlyPrice", "(", ")", "string", "{", "if", "t", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "<mask>", "(", "t", ".", "PriceUnit", ",", "t", ".", "Price", ")", "\n", "}" ]
2,056
all-2057
[ "Ask", "will", "call", "UI", ".", "Ask", "with", "message", "then", "wait", "for", "UI", ".", "Ask", "to", "return", "a", "response", "and", "/", "or", "error", ".", "It", "will", "clean", "the", "response", "by", "removing", "any", "carriage", "return...
[ "func", "(", "ui", "*", "PrefixUI", ")", "Ask", "(", "message", ",", "trim", "string", ")", "(", "string", ",", "error", ")", "{", "if", "ui", ".", "AskPrefix", "==", "\"", "\"", "{", "//Lets keep the space if they want one", "message", "=", "ui", ".", ...
2,057
all-2058
[ "recvAck", "notifies", "the", "readonly", "struct", "that", "the", "raft", "state", "machine", "received", "an", "acknowledgment", "of", "the", "heartbeat", "that", "attached", "with", "the", "read", "only", "request", "context", "." ]
[ "func", "(", "ro", "*", "readOnly", ")", "recvAck", "(", "m", "pb", ".", "Message", ")", "int", "{", "rs", ",", "ok", ":=", "ro", ".", "pendingReadIndex", "[", "string", "(", "m", ".", "<mask>", ")", "]", "\n", "if", "!", "ok", "{", "return", "...
2,058
all-2059
[ "RuneLen", "returns", "the", "number", "of", "bytes", "required", "to", "encode", "the", "rune", "." ]
[ "func", "RuneLen", "(", "r", "rune", ")", "int", "{", "switch", "{", "case", "r", "<", "0", ":", "return", "-", "1", "\n", "case", "r", "<=", "rune1Max", ":", "return", "1", "\n", "<mask>", "r", "<=", "rune2Max", ":", "return", "2", "\n", "case",...
2,059
all-2060
[ "NewKeyPair", "generates", "a", "new", "SSH", "keypair", "This", "will", "return", "a", "private", "&", "public", "key", "encoded", "as", "DER", "." ]
[ "func", "NewKeyPair", "(", ")", "(", "keyPair", "*", "KeyPair", ",", "err", "error", ")", "{", "priv", ",", "err", ":=", "rsa", ".", "GenerateKey", "(", "<mask>", ".", "Reader", ",", "2048", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil"...
2,060
all-2061
[ "argReader", "returns", "an", "ArgReader", "that", "can", "be", "used", "to", "read", "an", "argument", ".", "The", "ReadCloser", "must", "be", "closed", "once", "the", "argument", "has", "been", "read", "." ]
[ "func", "(", "r", "*", "reqResReader", ")", "argReader", "(", "last", "bool", ",", "inState", "reqResReaderState", ",", "outState", "reqResReaderState", ")", "(", "ArgReader", ",", "error", ")", "{", "if", "r", ".", "state", "!=", "inState", "{", "return",...
2,061
all-2062
[ "func", "(", "v", "*", "IconView", ")", "SelectedForeach", "()", "{}", "SetSelectionMode", "is", "a", "wrapper", "around", "gtk_icon_view_set_selection_mode", "()", "." ]
[ "func", "(", "v", "*", "IconView", ")", "SetSelectionMode", "(", "mode", "SelectionMode", ")", "{", "C", ".", "gtk_icon_view_set_selection_mode", "(", "v", ".", "native", "(", ")", ",", "C", ".", "GtkSelectionMode", "(", "<mask>", ")", ")", "\n", "}" ]
2,062
all-2063
[ "Fetches", "the", "userId", "given", "a", "valid", "username" ]
[ "func", "getUserId", "(", "username", "string", ")", "(", "int", ",", "error", ")", "{", "url", ":=", "fmt", ".", "Sprintf", "(", "USER_ID_PATH", ",", "API", ",", "username", ",", "APP_VERSION", ")", "\n", "res", ",", "err", ":=", "http", ".", "Get",...
2,063
all-2064
[ "post", "POSTs", "a", "data", "payload", "to", "a", "url", ".", "Returns", "nil", "if", "the", "POST", "succeeds", "error", "on", "any", "failure", "." ]
[ "func", "(", "p", "*", "pipeline", ")", "post", "(", "data", "[", "]", "byte", ")", "(", "err", "error", ")", "{", "u", ":=", "p", ".", "picker", ".", "pick", "(", ")", "\n", "req", ":=", "createPostRequest", "(", "u", ",", "RaftPrefix", ",", "...
2,064
all-2065
[ "GetTopics", "returns", "the", "topics", "this", "node", "is", "subscribed", "to", "." ]
[ "func", "(", "p", "*", "PubSub", ")", "GetTopics", "(", ")", "[", "]", "string", "{", "out", ":=", "make", "(", "chan", "[", "]", "string", ",", "1", ")", "\n", "p", ".", "getTopics", "<-", "&", "topicReq", "{", "resp", ":", "<mask>", "}", "\n"...
2,065
all-2066
[ "NewLexerString", "creates", "a", "new", "Lexer", "reading", "from", "a", "string", ".", "This", "Lexer", "has", "a", "DefaultTokenizer", "according", "to", "posix", "and", "whitespacesplit", "rules", "." ]
[ "func", "NewLexerString", "(", "s", "<mask>", ",", "posix", ",", "whitespacesplit", "bool", ")", "*", "Lexer", "{", "return", "NewLexer", "(", "strings", ".", "NewReader", "(", "s", ")", ",", "posix", ",", "whitespacesplit", ")", "\n", "}" ]
2,066
all-2067
[ "EmptyFile", "creates", "a", "File", "wrapped", "around", "an", "empty", "syntax", "tree", "." ]
[ "func", "EmptyFile", "(", "path", ",", "pkg", "string", ")", "*", "File", "{", "return", "&", "<mask>", "{", "File", ":", "&", "bzl", ".", "File", "{", "Path", ":", "path", ",", "Type", ":", "bzl", ".", "TypeBuild", "}", ",", "Path", ":", "path",...
2,067
all-2068
[ "createACSClient", "creates", "the", "ACS", "Client", "using", "the", "specified", "URL" ]
[ "func", "(", "acsResources", "*", "acsSessionResources", ")", "createACSClient", "(", "<mask>", "string", ",", "cfg", "*", "config", ".", "Config", ")", "wsclient", ".", "ClientServer", "{", "return", "acsclient", ".", "New", "(", "url", ",", "cfg", ",", "...
2,068
all-2069
[ "flattenClusterFailoverLevelAdmissionControlPolicy", "saves", "a", "ClusterFailoverLevelAdmissionControlPolicy", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterFailoverLevelAdmissionControlPolicy", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "types", ".", "ClusterFailoverLevelAdmissionControlPolicy", ",", ")", "error", "{", "if", "err", ":=", "d", ".", "<mask>", "(", "\"", "\"", ...
2,069
all-2070
[ "helper" ]
[ "func", "authFieldSize", "(", "f", "[", "]", "byte", ")", "int", "{", "size", ":=", "len", "(", "f", ")", "\n", "if", "<mask>", ">=", "250", "{", "// - different indicators compared to db field handling", "// - 1-5 bytes? but only 1 resp 3 bytes explained", "panic", ...
2,070
all-2071
[ "define", "an", "array", "of", "generic", "vertex", "attribute", "data" ]
[ "func", "VertexAttribPointer", "(", "index", "uint32", ",", "<mask>", "int32", ",", "xtype", "uint32", ",", "normalized", "bool", ",", "stride", "int32", ",", "pointer", "unsafe", ".", "Pointer", ")", "{", "C", ".", "glowVertexAttribPointer", "(", "gpVertexAtt...
2,071
all-2072
[ "DeepCopyInto", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "writing", "into", "out", ".", "in", "must", "be", "non", "-", "nil", "." ]
[ "func", "(", "in", "*", "DNSEndpointList", ")", "DeepCopyInto", "(", "out", "*", "DNSEndpointList", ")", "{", "*", "out", "=", "*", "in", "\n", "out", ".", "TypeMeta", "=", "in", ".", "TypeMeta", "\n", "<mask>", ".", "ListMeta", "=", "in", ".", "List...
2,072
all-2073
[ "Gauge", "sets", "a", "gauge", "to", "a", "value" ]
[ "func", "(", "m", "*", "CirconusMetrics", ")", "Gauge", "(", "metric", "string", ",", "val", "<mask>", "{", "}", ")", "{", "m", ".", "SetGauge", "(", "metric", ",", "val", ")", "\n", "}" ]
2,073
all-2074
[ "SetAccelGroup", "is", "a", "wrapper", "around", "gtk_menu_set_accel_group", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetAccelGroup", "(", "accelGroup", "*", "AccelGroup", ")", "{", "C", ".", "gtk_menu_set_accel_group", "(", "v", ".", "native", "(", ")", ",", "accelGroup", ".", "native", "(", ")", ")", "\n", "}" ]
2,074
all-2075
[ "PortAt", "returns", "expose", "and", "publish", "port", "information", "at", "especified", "index", "." ]
[ "func", "(", "s", "NetworkSettings", ")", "PortAt", "(", "<mask>", "int", ")", "(", "string", ",", "*", "HostPublish", ")", "{", "counter", ":=", "0", "\n", "for", "k", ",", "v", ":=", "range", "s", ".", "Ports", "{", "if", "counter", "!=", "index"...
2,075
all-2076
[ "setState", "is", "used", "to", "update", "the", "current", "state", ".", "Any", "state", "transition", "causes", "the", "known", "leader", "to", "be", "cleared", ".", "This", "means", "that", "leader", "should", "be", "set", "only", "after", "updating", "...
[ "func", "(", "r", "*", "Raft", ")", "setState", "(", "<mask>", "RaftState", ")", "{", "r", ".", "setLeader", "(", "\"", "\"", ")", "\n", "oldState", ":=", "r", ".", "raftState", ".", "getState", "(", ")", "\n", "r", ".", "raftState", ".", "setState...
2,076
all-2077
[ "Uniq", "squashes", "adjacent", "identical", "items", "in", "arg", ".", "In", "into", "a", "single", "output", "." ]
[ "func", "Uniq", "(", ")", "Filter", "{", "return", "FilterFunc", "(", "func", "(", "arg", "Arg", ")", "error", "{", "first", ":=", "true", "\n", "last", ":=", "\"", "\"", "\n", "for", "s", ":=", "range", "arg", ".", "In", "{", "if", "first", "||"...
2,077
all-2078
[ "Gets", "an", "app", "s", "endpoint", "with", "the", "specified", "path" ]
[ "func", "AppUri", "(", "appName", ",", "path", "string", ",", "config", "helpersinternal", ".", "CurlConfig", ")", "string", "{", "uriCreator", ":=", "&", "helpersinternal", ".", "AppUriCreator", "{", "CurlConfig", ":", "config", "}", "\n\n", "return", "uriCre...
2,078
all-2079
[ "addType", "conditionally", "adds", "a", "new", "type", "trying", "its", "best", "to", "avoid", "type", "collisions", ".", "This", "is", "the", "downside", "of", "swagger", "2", "vs", "swagger", "3", ".", "For", "swagger", "2", "if", "you", "the", "same"...
[ "func", "(", "a", "*", "APIAnalyzer", ")", "addType", "(", "ec", "EvalCtx", ",", "dt", "*", "gen", ".", "ObjectDataType", ",", "r", "Ref", ")", "{", "a", ".", "api", ".", "NeedJSON", "=", "true", "\n", "if", "a", ".", "refByType", "[", "dt", ".",...
2,079
all-2080
[ "Widths", "returns", "the", "widths", "of", "the", "glyphs", "in", "the", "font", ".", "In", "a", "well", "-", "formed", "PDF", "len", "(", "f", ".", "Widths", "()", ")", "==", "f", ".", "LastChar", "()", "+", "1", "-", "f", ".", "FirstChar", "()...
[ "func", "(", "f", "Font", ")", "Widths", "(", ")", "[", "]", "float64", "{", "x", ":=", "f", ".", "V", ".", "Key", "(", "\"", "\"", ")", "\n", "var", "out", "[", "]", "float64", "\n", "for", "i", ":=", "0", ";", "i", "<", "x", ".", "Len",...
2,080
all-2081
[ "ParseTag", "parses", "a", "raw", "tag", "obtained", "from", "a", "struct", "field", "returning", "the", "results", "as", "a", "tag", "value", "." ]
[ "func", "ParseTag", "(", "s", "string", ")", "Tag", "{", "var", "name", "string", "\n", "var", "omitzero", "bool", "\n", "var", "omitempty", "bool", "\n\n", "name", ",", "s", "=", "parseNextTagToken", "(", "s", ")", "\n\n", "for", "len", "(", "s", ")...
2,081
all-2082
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetCookiesReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork34", "(", "&", "...
2,082
all-2083
[ "New", "creates", "and", "initializes", "a", "new", "ScreenBuf", "." ]
[ "func", "New", "(", "w", "<mask>", ".", "Writer", ")", "*", "ScreenBuf", "{", "return", "&", "ScreenBuf", "{", "buf", ":", "&", "bytes", ".", "Buffer", "{", "}", ",", "w", ":", "w", "}", "\n", "}" ]
2,083
all-2084
[ "fuzzValueFor", "Generates", "random", "values", "for", "the", "following", "types", ":", "string", "bool", "int", "int32", "int64", "float32", "float64" ]
[ "func", "fuzzValueFor", "(", "kind", "reflect", ".", "Kind", ")", "reflect", ".", "Value", "{", "r", ":=", "rand", ".", "New", "(", "rand", ".", "NewSource", "(", "time", ".", "Now", "(", ")", ".", "UnixNano", "(", ")", ")", ")", "\n", "switch", ...
2,084
all-2085
[ "TagObject", "applies", "a", "tag", "to", "an", "existing", "object", "." ]
[ "func", "(", "c", "APIClient", ")", "TagObject", "(", "<mask>", "string", ",", "tags", "...", "string", ")", "error", "{", "var", "_tags", "[", "]", "*", "pfs", ".", "Tag", "\n", "for", "_", ",", "tag", ":=", "range", "tags", "{", "_tags", "=", "...
2,085
all-2086
[ "MustAllowTrustOp", "retrieves", "the", "AllowTrustOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "OperationBody", ")", "MustAllowTrustOp", "(", ")", "AllowTrustOp", "{", "val", ",", "<mask>", ":=", "u", ".", "GetAllowTrustOp", "(", ")", "\n\n", "if", "!", "ok", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "v...
2,086
all-2087
[ "Get", "returns", "the", "value", "associated", "with", "the", "key" ]
[ "func", "(", "lru", "*", "lruCache", ")", "Get", "(", "key", "string", ")", "(", "Value", ",", "bool", ")", "{", "lru", ".", "Lock", "(", ")", "\n", "defer", "lru", ".", "Unlock", "(", ")", "\n\n", "entry", ",", "ok", ":=", "lru", ".", "cache",...
2,087
all-2088
[ "MarshalPrivateKey", "converts", "a", "key", "object", "into", "its", "protobuf", "serialized", "form", "." ]
[ "func", "MarshalPrivateKey", "(", "k", "PrivKey", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "pbmes", ":=", "new", "(", "<mask>", ".", "PrivateKey", ")", "\n", "pbmes", ".", "Type", "=", "k", ".", "Type", "(", ")", "\n", "data", ",", "er...
2,088
all-2089
[ "Update", "updates", "the", "uint64", "in", "the", "buffer" ]
[ "func", "(", "<mask>", "Uint64Ref", ")", "Update", "(", "n", "uint64", ")", "{", "if", "ref", "!=", "nil", "{", "binary", ".", "BigEndian", ".", "PutUint64", "(", "ref", ",", "n", ")", "\n", "}", "\n", "}" ]
2,089
all-2090
[ "GetPrivateKeyIDOk", "returns", "a", "tuple", "with", "the", "PrivateKeyID", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "i", "*", "IntegrationGCPCreateRequest", ")", "GetPrivateKeyIDOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "i", "==", "nil", "||", "i", ".", "PrivateKeyID", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "...
2,090
all-2091
[ "GetIdOk", "returns", "a", "tuple", "with", "the", "Id", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "m", "*", "Monitor", ")", "GetIdOk", "(", ")", "(", "int", ",", "bool", ")", "{", "if", "m", "==", "nil", "||", "m", ".", "Id", "==", "nil", "{", "return", "0", ",", "false", "\n", "}", "\n", "return", "*", "m", ".", "Id", ",",...
2,091
all-2092
[ "newVariableDumpClient", "defines", "accessors", "for", "package", "variables", "which", "are", "not", "go", "-", "routine", "safe", "so", "can", "theoretically", "change", "value", "while", "the", "client", "is", "in", "use", ".", "this", "emulates", "the", "...
[ "func", "newVariableDumpClient", "(", "c", "*", "http", ".", "<mask>", ")", "HTTPClient", "{", "dc", ":=", "&", "dumpClient", "{", "Client", ":", "c", "}", "\n", "dc", ".", "isInsecure", "=", "func", "(", ")", "bool", "{", "return", "Insecure", "\n", ...
2,092
all-2093
[ "IsEssential", "returns", "whether", "the", "container", "is", "an", "essential", "container", "or", "not" ]
[ "func", "(", "c", "*", "Container", ")", "IsEssential", "(", ")", "bool", "{", "c", ".", "<mask>", ".", "RLock", "(", ")", "\n", "defer", "c", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "c", ".", "Essential", "\n", "}" ]
2,093
all-2094
[ "GetTime", "returns", "the", "Time", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "e", "*", "EventTimelineDefinition", ")", "GetTime", "(", ")", "WidgetTime", "{", "if", "e", "==", "nil", "||", "e", ".", "Time", "==", "nil", "{", "<mask>", "WidgetTime", "{", "}", "\n", "}", "\n", "return", "*", "e", ".", "Time", "\n...
2,094
all-2095
[ "LoadFromEnv", "iterates", "through", "a", "struct", "s", "fields", "and", "tries", "to", "find", "matching", "environment", "variables", ".", "Returns", "a", "map", "of", "environment", "key", "and", "values", "that", "were", "successfully", "set", "into", "t...
[ "func", "LoadFromEnv", "(", "v", "interface", "{", "}", ",", "prefix", "string", ")", "(", "result", "[", "]", "MarshalledEnvironmentVar", ")", "{", "pointerValue", ":=", "reflect", ".", "ValueOf", "(", "v", ")", "\n", "structValue", ":=", "pointerValue", ...
2,095
all-2096
[ "SearchAnnotations", "returns", "annotations", "matching", "the", "specified", "search", "query", "and", "/", "or", "filter", ".", "If", "nil", "is", "passed", "for", "both", "parameters", "all", "annotations", "will", "be", "returned", "." ]
[ "func", "(", "a", "*", "API", ")", "SearchAnnotations", "(", "searchCriteria", "*", "SearchQueryType", ",", "filterCriteria", "*", "SearchFilterType", ")", "(", "*", "[", "]", "Annotation", ",", "error", ")", "{", "q", ":=", "url", ".", "Values", "{", "}...
2,096
all-2097
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventInspectRequested", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime29", "(", "&...
2,097
all-2098
[ "updateLastActivity", "marks", "when", "the", "last", "message", "was", "received", "/", "sent", "on", "the", "channel", ".", "This", "is", "used", "for", "monitoring", "idle", "connections", "and", "timing", "them", "out", "." ]
[ "func", "(", "c", "*", "Connection", ")", "updateLastActivity", "(", "frame", "*", "Frame", ")", "{", "// Pings are ignored for last activity.", "switch", "frame", ".", "<mask>", ".", "messageType", "{", "case", "messageTypeCallReq", ",", "messageTypeCallReqContinue",...
2,098
all-2099
[ "Firehose", "streams", "all", "data", ".", "All", "clients", "with", "the", "same", "subscriptionId", "will", "receive", "a", "proportionate", "share", "of", "the", "message", "stream", ".", "Each", "pool", "of", "clients", "will", "receive", "the", "entire", ...
[ "func", "(", "c", "*", "Consumer", ")", "Firehose", "(", "subscriptionId", "string", ",", "authToken", "string", ",", ")", "(", "<-", "chan", "*", "<mask>", ".", "Envelope", ",", "<-", "chan", "error", ")", "{", "return", "c", ".", "firehose", "(", "...
2,099
all-2100
[ "ReadCString", "reads", "a", "null", "-", "terminated", "string", "starting", "at", "address", "a", "." ]
[ "func", "(", "p", "*", "Process", ")", "ReadCString", "(", "a", "Address", ")", "string", "{", "for", "n", ":=", "int64", "(", "0", ")", ";", ";", "n", "++", "{", "if", "p", ".", "ReadUint8", "(", "a", ".", "Add", "(", "n", ")", ")", "==", ...