id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
21,500
all-21501
[ "Copy", "creates", "a", "new", "copy", "of", "the", "given", "LexSymbolSet" ]
[ "func", "(", "l", "*", "LexSymbolSet", ")", "Copy", "(", ")", "*", "LexSymbolSet", "{", "c", ":=", "NewLexSymbolSet", "(", ")", "\n", "for", "k", ",", "v", ":=", "range", "l", ".", "Map", "{", "c", ".", "<mask>", "[", "k", "]", "=", "LexSymbol", ...
21,501
all-21502
[ "Validate", "validates", "this", "task" ]
[ "func", "(", "m", "*", "Task", ")", "Validate", "(", "formats", "strfmt", ".", "Registry", ")", "error", "{", "var", "res", "[", "]", "error", "\n\n", "if", "err", ":=", "m", ".", "NewTask", ".", "Validate", "(", "formats", ")", ";", "err", "!=", ...
21,502
all-21503
[ "FilterGetAll", "provides", "a", "mock", "function", "with", "given", "fields", ":", "filter", "count", "skip", "store", "opts" ]
[ "func", "(", "_m", "*", "ObjectStore", ")", "FilterGetAll", "(", "filter", "map", "[", "string", "]", "interface", "{", "}", ",", "count", "int", ",", "skip", "int", ",", "store", "string", ",", "opts", "gostore", ".", "ObjectStoreOptions", ")", "(", "...
21,503
all-21504
[ "StatusHandler", "can", "be", "used", "in", "JSON", "-", "encoded", "HTTP", "API", "to", "check", "the", "status", "of", "maintenance", "." ]
[ "func", "(", "s", "Service", ")", "StatusHandler", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "<mask>", ",", "err", ":=", "s", ".", "store", ".", "Status", "(", ")", "\n", "if", "err", "!=", "nil", "...
21,504
all-21505
[ "SetBufferLength", "sets", "length", "of", "buffer", "for", "accepting", "log", "records", "." ]
[ "func", "(", "logger", "*", "Logger", ")", "SetBufferLength", "(", "length", "int", ")", "{", "logger", ".", "lock", ".", "Lock", "(", ")", "\n\n", "if", "length", "==", "0", "{", "logger", ".", "buffer", "=", "nil", "\n", "}", "else", "if", "lengt...
21,505
all-21506
[ "GetTideContextPolicy", "parses", "the", "prow", "config", "to", "find", "context", "merge", "options", ".", "If", "none", "are", "set", "it", "will", "use", "the", "prow", "jobs", "configured", "and", "use", "the", "default", "github", "combined", "status", ...
[ "func", "(", "c", "Config", ")", "GetTideContextPolicy", "(", "org", ",", "repo", ",", "branch", "string", ")", "(", "*", "TideContextPolicy", ",", "error", ")", "{", "options", ":=", "parseTideContextPolicyOptions", "(", "org", ",", "repo", ",", "branch", ...
21,506
all-21507
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetResponseBodyParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoFetch5", "(", "&", ...
21,507
all-21508
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventResetProfiles", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler15", "(", ...
21,508
all-21509
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "the", "current", "program", "object" ]
[ "func", "UniformMatrix3x4fv", "(", "location", "int32", ",", "count", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpUniformMatrix3x4fv", ",", "4", ",", "uintptr", "(", "location", ")", ",", "...
21,509
all-21510
[ "PrefixRangeEnd", "allows", "Get", "Delete", "and", "Watch", "requests", "to", "operate", "on", "all", "keys", "with", "a", "matching", "prefix", ".", "Pass", "the", "prefix", "to", "this", "function", "and", "use", "the", "result", "as", "the", "RangeEnd", ...
[ "func", "PrefixRangeEnd", "(", "prefix", "[", "]", "<mask>", ")", "[", "]", "byte", "{", "// https://github.com/coreos/etcd/blob/17e32b6/clientv3/op.go#L187", "end", ":=", "make", "(", "[", "]", "byte", ",", "len", "(", "prefix", ")", ")", "\n", "copy", "(", ...
21,510
all-21511
[ "Respond", "without", "doing", "anything", ".", "This", "endpoint", "is", "used", "to", "check", "that", "the", "service", "is", "up", ".", "See", "#ping" ]
[ "func", "(", "login", "*", "Login", ")", "Ping", "(", ")", "error", "{", "cd", ":=", "tcclient", ".", "<mask>", "(", "*", "login", ")", "\n", "_", ",", "_", ",", "err", ":=", "(", "&", "cd", ")", ".", "APICall", "(", "nil", ",", "\"", "\"", ...
21,511
all-21512
[ "processLogs", "is", "used", "to", "apply", "all", "the", "committed", "entries", "that", "haven", "t", "been", "applied", "up", "to", "the", "given", "index", "limit", ".", "This", "can", "be", "called", "from", "both", "leaders", "and", "followers", ".",...
[ "func", "(", "r", "*", "Raft", ")", "processLogs", "(", "index", "uint64", ",", "future", "*", "logFuture", ")", "{", "// Reject logs we've applied already", "lastApplied", ":=", "r", ".", "getLastApplied", "(", ")", "\n", "if", "index", "<=", "lastApplied", ...
21,512
all-21513
[ "MarshalEasyJSON", "satisfies", "easyjson", ".", "Marshaler", "." ]
[ "func", "(", "t", "AuthChallengeSource", ")", "MarshalEasyJSON", "(", "out", "*", "jwriter", ".", "Writer", ")", "{", "<mask>", ".", "String", "(", "string", "(", "t", ")", ")", "\n", "}" ]
21,513
all-21514
[ "title", ":", "healthcheck", "path", ":", "/", "healthcheck", "method", ":", "GET", "responses", ":", "200", ":", "OK", "500", ":", "Internal", "server", "error" ]
[ "func", "healthcheck", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "<mask>", "checks", "[", "]", "string", "\n", "values", ":=", "r", ".", "URL", ".", "Query", "(", ")", "\n", "if", "values", "!=", "nil...
21,514
all-21515
[ "NewRemoteOperationsWithPath", "-" ]
[ "func", "NewRemoteOperationsWithPath", "(", "sshCfg", "<mask>", ".", "SshConfig", ",", "remoteImportPath", "string", ")", "*", "RemoteOperations", "{", "if", "len", "(", "remoteImportPath", ")", "==", "0", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n",...
21,515
all-21516
[ "errorf", "causes", "a", "panic", "with", "the", "input", "formatted", "into", "an", "error", "." ]
[ "func", "(", "ev", "*", "evaluator", ")", "errorf", "(", "format", "string", ",", "args", "...", "interface", "{", "}", ")", "{", "ev", ".", "error", "(", "errors", ".", "Errorf", "(", "<mask>", ",", "args", "...", ")", ")", "\n", "}" ]
21,516
all-21517
[ "Metric", "appends", "a", "new", "metric", "to", "the", "reporter", ".", "The", "value", "v", "must", "be", "either", "an", "int64", "or", "float64", "otherwise", "an", "error", "is", "returned" ]
[ "func", "(", "r", "*", "Reporter", ")", "Metric", "(", "name", "string", ",", "tags", "[", "]", "string", ",", "v", "float32", ")", "{", "r", ".", "metrics", "=", "append", "(", "r", ".", "metrics", ",", "Metric", "{", "Name", ":", "name", ",", ...
21,517
all-21518
[ "IsSelected", "()", "()", "is", "a", "wrapper", "around", "gtk_print_operation_preview_is_selected", "()", "." ]
[ "func", "(", "pop", "*", "PrintOperationPreview", ")", "IsSelected", "(", "<mask>", "int", ")", "bool", "{", "c", ":=", "C", ".", "gtk_print_operation_preview_is_selected", "(", "pop", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "page", ")", ")"...
21,518
all-21519
[ "enqueue", "a", "sample", ".", "If", "we", "are", "currently", "in", "the", "process", "of", "shutting", "down", "or", "resharding", "will", "return", "false", ";", "in", "this", "case", "you", "should", "back", "off", "and", "retry", "." ]
[ "func", "(", "s", "*", "shards", ")", "enqueue", "(", "ref", "uint64", ",", "sample", "prompb", ".", "TimeSeries", ")", "bool", "{", "s", ".", "mtx", ".", "RLock", "(", ")", "\n", "defer", "s", ".", "mtx", ".", "RUnlock", "(", ")", "\n\n", "<mask...
21,519
all-21520
[ "TODO", "needs", "test", "since", "it", "is", "not", "quiet", "right" ]
[ "func", "getPrec", "(", "num", "float64", ",", "better", "bool", ")", "int", "{", "max", ":=", "3", "\n", "eps", ":=", "0.0005", "\n", "if", "better", "{", "<mask>", "=", "6", "\n", "eps", "=", "0.0000005", "\n", "}", "\n", "prec", ":=", "0", "\n...
21,520
all-21521
[ "BodyWriteTo", "writes", "request", "body", "to", "w", "." ]
[ "func", "(", "req", "*", "<mask>", ")", "BodyWriteTo", "(", "w", "io", ".", "Writer", ")", "error", "{", "if", "req", ".", "bodyStream", "!=", "nil", "{", "_", ",", "err", ":=", "copyZeroAlloc", "(", "w", ",", "req", ".", "bodyStream", ")", "\n", ...
21,521
all-21522
[ "===", "count_over_time", "(", "Matrix", "ValueTypeMatrix", ")", "Vector", "===" ]
[ "func", "funcCountOverTime", "(", "vals", "[", "]", "Value", ",", "args", "Expressions", ",", "enh", "*", "EvalNodeHelper", ")", "Vector", "{", "return", "aggrOverTime", "(", "vals", ",", "enh", ",", "func", "(", "values", "[", "]", "<mask>", ")", "float...
21,522
all-21523
[ "RawQuery", "allows", "directly", "querying", "the", "LXD", "API", "This", "should", "only", "be", "used", "by", "internal", "LXD", "tools", "." ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "RawQuery", "(", "method", "string", ",", "path", "string", ",", "data", "interface", "{", "}", ",", "ETag", "string", ")", "(", "*", "api", ".", "Response", ",", "string", ",", "error", ")", "{", "// Genera...
21,523
all-21524
[ "NewClient", "returns", "a", "client", "for", "the", "given", "host", ".", "All", "communication", "will", "be", "performed", "over", "SSL", "unless", "the", "host", "is", "localhost", "." ]
[ "func", "NewClient", "(", "host", "string", ",", "client", "*", "http", ".", "Client", ")", "(", "*", "Client", ",", "error", ")", "{", "// Add an appcfg header to outgoing requests.", "wrapClient", ":=", "new", "(", "http", ".", "Client", ")", "\n", "*", ...
21,524
all-21525
[ "attach", "a", "buffer", "object", "s", "data", "store", "to", "a", "buffer", "texture", "object" ]
[ "func", "TextureBuffer", "(", "texture", "uint32", ",", "internalformat", "uint32", ",", "<mask>", "uint32", ")", "{", "C", ".", "glowTextureBuffer", "(", "gpTextureBuffer", ",", "(", "C", ".", "GLuint", ")", "(", "texture", ")", ",", "(", "C", ".", "GLe...
21,525
all-21526
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "the", "current", "program", "object" ]
[ "func", "Uniform2i", "(", "location", "int32", ",", "v0", "int32", ",", "v1", "int32", ")", "{", "C", ".", "glowUniform2i", "(", "gpUniform2i", ",", "(", "C", ".", "GLint", ")", "(", "<mask>", ")", ",", "(", "C", ".", "GLint", ")", "(", "v0", ")"...
21,526
all-21527
[ "createTaskResponse", "creates", "JSON", "response", "and", "sets", "the", "http", "status", "code", "for", "the", "task", "queried", "." ]
[ "func", "createTaskResponse", "(", "task", "*", "apitask", ".", "Task", ",", "found", "bool", ",", "resourceID", "string", ",", "state", "dockerstate", ".", "TaskEngineState", ")", "(", "[", "]", "<mask>", ",", "int", ")", "{", "var", "responseJSON", "[", ...
21,527
all-21528
[ "Merge", "combines", "all", "values", "in", "this", "configuration", "with", "the", "values", "in", "the", "other", "configuration", "with", "values", "in", "the", "other", "configuration", "taking", "precedence", ".", "Maps", "and", "slices", "are", "merged", ...
[ "func", "(", "c", "*", "SSLConfig", ")", "Merge", "(", "o", "*", "SSLConfig", ")", "*", "SSLConfig", "{", "if", "c", "==", "nil", "{", "if", "o", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "return", "o", ".", "Copy", "(", ")", "\n", ...
21,528
all-21529
[ "ClientForResource", "returns", "the", "ResourceClient", "for", "a", "given", "object" ]
[ "func", "ClientForResource", "(", "client", "dynamic", ".", "Interface", ",", "mapper", "meta", ".", "RESTMapper", ",", "obj", "runtime", ".", "Object", ",", "defNs", "string", ")", "(", "dynamic", ".", "ResourceInterface", ",", "error", ")", "{", "gvk", "...
21,529
all-21530
[ "DelUser", "removes", "an", "user", "from", "the", "system", "." ]
[ "func", "DelUser", "(", "name", "string", ")", "(", "err", "error", ")", "{", "err", "=", "del", "(", "<mask>", ",", "&", "User", "{", "}", ")", "\n", "if", "err", "==", "nil", "{", "err", "=", "del", "(", "name", ",", "&", "Shadow", "{", "}"...
21,530
all-21531
[ "getExtHeader", "generates", "the", "hawk", "ext", "header", "based", "on", "the", "authorizedScopes", "and", "the", "certificate", "used", "in", "the", "case", "of", "temporary", "credentials", ".", "The", "header", "is", "a", "base64", "encoded", "json", "ob...
[ "func", "getExtHeader", "(", "credentials", "*", "Credentials", ")", "(", "<mask>", "string", ",", "err", "error", ")", "{", "ext", ":=", "&", "ExtHeader", "{", "}", "\n", "if", "credentials", ".", "Certificate", "!=", "\"", "\"", "{", "certObj", ":=", ...
21,531
all-21532
[ "ProcLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "ProcLocator", "(", "href", "string", ")", "*", "ProcLocator", "{", "<mask>", "&", "ProcLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
21,532
all-21533
[ "Read", "Read" ]
[ "func", "(", "<mask>", "*", "MemoryStore", ")", "Read", "(", ")", "<-", "chan", "string", "{", "chResult", ":=", "make", "(", "chan", "string", ")", "\n", "go", "func", "(", ")", "{", "for", "ele", ":=", "range", "ms", ".", "dataStore", ".", "Eleme...
21,533
all-21534
[ "getSettingsForUid", "returns", "the", "settings", "files", "of", "the", "given", "user", "id", "." ]
[ "func", "getSettingsForUid", "(", "id", "int", ")", "(", "settings", ",", "error", ")", "{", "u", ",", "err", ":=", "user", ".", "LookupUID", "(", "id", ")", "\n", "if", "err", "!=", "nil", "{", "return", "settings", "{", "}", ",", "err", "\n", "...
21,534
all-21535
[ "SetTitle", "is", "a", "wrapper", "around", "gtk_header_bar_set_title", "()", "." ]
[ "func", "(", "v", "*", "HeaderBar", ")", "SetTitle", "(", "title", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "title", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ".", ...
21,535
all-21536
[ "Responder", "returns", "a", "responder", "based", "on", "the", "mime", "if", "none", "can", "be", "matched", "the", "default", "is", "returned" ]
[ "func", "(", "e", "*", "Encoder", ")", "Responder", "(", "r", "*", "http", ".", "Request", ")", "Responder", "{", "accept", ":=", "r", ".", "Header", ".", "Get", "(", "\"", "\"", ")", "\n", "infoList", ":=", "parseAcceptHeader", "(", "accept", ")", ...
21,536
all-21537
[ "QuadVertices", "returns", "the", "vertices", "for", "rendering", "a", "quad", ".", "QuadVertices", "is", "highly", "optimized", "for", "rendering", "quads", "and", "that", "s", "the", "most", "significant", "difference", "from", "PutVertices", "." ]
[ "func", "(", "i", "*", "Image", ")", "QuadVertices", "(", "sx0", ",", "sy0", ",", "sx1", ",", "sy1", "int", ",", "a", ",", "b", ",", "c", ",", "d", ",", "tx", ",", "ty", "float32", ",", "cr", ",", "cg", ",", "cb", ",", "ca", "float32", ")",...
21,537
all-21538
[ "ImportPathToBazelRepoName", "converts", "a", "Go", "import", "path", "into", "a", "bazel", "repo", "name", "following", "the", "guidelines", "in", "http", ":", "//", "bazel", ".", "io", "/", "docs", "/", "be", "/", "functions", ".", "html#workspace" ]
[ "func", "ImportPathToBazelRepoName", "(", "importpath", "string", ")", "string", "{", "importpath", "=", "strings", ".", "ToLower", "(", "importpath", ")", "\n", "components", ":=", "strings", ".", "Split", "(", "importpath", ",", "\"", "\"", ")", "\n", "lab...
21,538
all-21539
[ "WaitForGuestIP", "waits", "for", "a", "virtual", "machine", "to", "have", "an", "IP", "address", ".", "The", "timeout", "is", "specified", "in", "minutes", ".", "If", "zero", "or", "a", "negative", "value", "is", "passed", "the", "waiter", "returns", "wit...
[ "func", "WaitForGuestIP", "(", "client", "*", "govmomi", ".", "Client", ",", "vm", "*", "<mask>", ".", "VirtualMachine", ",", "timeout", "int", ",", "ignoredGuestIPs", "[", "]", "interface", "{", "}", ")", "error", "{", "if", "timeout", "<", "1", "{", ...
21,539
all-21540
[ "String", "returns", "a", "string", "representation", "of", "the", "key", "." ]
[ "func", "(", "k", "*", "Key", ")", "String", "(", ")", "string", "{", "if", "k", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "b", ":=", "bytes", ".", "NewBuffer", "(", "make", "(", "[", "]", "<mask>", ",", "0", ",", "512", ")", ...
21,540
all-21541
[ "addRequest", "adds", "a", "read", "only", "reuqest", "into", "readonly", "struct", ".", "index", "is", "the", "commit", "index", "of", "the", "raft", "state", "machine", "when", "it", "received", "the", "read", "only", "request", ".", "m", "is", "the", ...
[ "func", "(", "ro", "*", "readOnly", ")", "addRequest", "(", "<mask>", "uint64", ",", "m", "pb", ".", "Message", ")", "{", "ctx", ":=", "string", "(", "m", ".", "Entries", "[", "0", "]", ".", "Data", ")", "\n", "if", "_", ",", "ok", ":=", "ro", ...
21,541
all-21542
[ "Update", "the", "application", "with", "the", "given", "data", ".", "Valid", "parameters", "may", "be", "found", "here", ":", "https", ":", "//", "www", ".", "twilio", ".", "com", "/", "docs", "/", "api", "/", "rest", "/", "applications#instance", "-", ...
[ "func", "(", "a", "*", "ApplicationService", ")", "Update", "(", "ctx", "context", ".", "Context", ",", "sid", "string", ",", "data", "url", ".", "Values", ")", "(", "*", "Application", ",", "error", ")", "{", "application", ":=", "new", "(", "Applicat...
21,542
all-21543
[ "getUserIdentificationPartialConfig", "is", "a", "modified", "copy", "of", "k8s", ".", "io", "/", "kubernetes", "/", "pkg", "/", "client", "/", "unversioned", "/", "clientcmd", ".", "getUserIdentificationPartialConfig", ".", "clientauth", ".", "Info", "object", "c...
[ "func", "getUserIdentificationPartialConfig", "(", "configAuthInfo", "clientcmdAuthInfo", ")", "(", "*", "restConfig", ",", "error", ")", "{", "mergedConfig", ":=", "&", "restConfig", "{", "}", "\n\n", "// blindly overwrite existing values based on precedence", "if", "len...
21,543
all-21544
[ "PutUint32", "sets", "a", "32", "-", "bit", "unsigned", "value", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "a", "Uint32Field", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffe...
[ "func", "(", "b", "*", "TupleBuilder", ")", "PutUint32", "(", "field", "string", ",", "value", "uint32", ")", "(", "wrote", "uint64", ",", "err", "error", ")", "{", "// field type should be", "if", "err", "=", "b", ".", "typeCheck", "(", "field", ",", ...
21,544
all-21545
[ "putToTop", "puts", "Sentinel", "address", "to", "the", "top", "of", "address", "list", "-", "this", "means", "that", "all", "next", "requests", "will", "use", "Sentinel", "on", "this", "address", "first", ".", "From", "Sentinel", "guidelines", ":", "The", ...
[ "func", "(", "s", "*", "Sentinel", ")", "putToTop", "(", "addr", "string", ")", "{", "addrs", ":=", "s", ".", "Addrs", "\n", "if", "addrs", "[", "0", "]", "==", "addr", "{", "// Already on top.", "return", "\n", "}", "\n", "newAddrs", ":=", "[", "]...
21,545
all-21546
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SnapshotCommandLogReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoLayertree1", "(",...
21,546
all-21547
[ "LoadPlugins", "will", "add", "listeners", "for", "any", "plugins", "that", "support", "events" ]
[ "func", "LoadPlugins", "(", ")", "error", "{", "var", "err", "error", "\n", "oncer", ".", "Do", "(", "\"", "\"", ",", "func", "(", ")", "{", "// don't send plugins events during testing", "if", "envy", ".", "Get", "(", "\"", "\"", ",", "\"", "\"", ")",...
21,547
all-21548
[ "Add", "a", "random", "value", "generated", "by", "Generate", "()", "." ]
[ "func", "(", "c", "*", "chdHasher", ")", "Add", "(", "r", "uint64", ")", "{", "c", ".", "r", "=", "<mask>", "(", "c", ".", "r", ",", "r", ")", "\n", "}" ]
21,548
all-21549
[ "Invert", "returns", "a", "new", "FrameSet", "that", "represents", "all", "frames", "*", "not", "*", "within", "the", "current", "FrameSet", ".", "That", "is", "it", "will", "create", "a", "range", "that", "fills", "in", "the", "current", "one", "." ]
[ "func", "(", "s", "*", "FrameSet", ")", "Invert", "(", ")", "*", "FrameSet", "{", "ptr", ":=", "s", ".", "rangePtr", ".", "Inverted", "(", ")", "\n", "return", "&", "FrameSet", "{", "ptr", ".", "<mask>", "(", ")", ",", "ptr", "}", "\n", "}" ]
21,549
all-21550
[ "ServeHTTP", "serves", "a", "JSON", "mapping", "from", "pool", "key", "-", ">", "sorted", "records", "for", "the", "pool", "." ]
[ "func", "(", "h", "*", "History", ")", "ServeHTTP", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "<mask>", ")", "{", "b", ",", "err", ":=", "json", ".", "Marshal", "(", "h", ".", "AllRecords", "(", ")", ")", "\n", "if", ...
21,550
all-21551
[ "Filter", "creates", "a", "new", "filter", "with", "rules", "r", "for", "l", "backend", "." ]
[ "func", "<mask>", "(", "l", "LogBackend", ",", "r", "Ruler", ")", "LogBackend", "{", "return", "&", "filter", "{", "LogBackend", ":", "l", ",", "r", ":", "r", ",", "}", "\n", "}" ]
21,551
all-21552
[ "GetInnkeeperClient", "--", "get", "an", "innkeeper", "client", "and", "cache", "it", "in", "the", "object" ]
[ "func", "(", "s", "*", "SkuM1Small", ")", "GetInnkeeperClient", "(", ")", "(", "innkeeperclient", ".", "InnkeeperClient", ",", "error", ")", "{", "var", "err", "error", "\n", "if", "s", ".", "Client", "==", "nil", "{", "if", "clnt", ",", "err", ":=", ...
21,552
all-21553
[ "Run", "-", "this", "begins", "the", "running", "of", "an", "agent", "s", "async", "process" ]
[ "func", "(", "s", "*", "Agent", ")", "Run", "(", "process", "func", "(", "*", "Agent", ")", "error", ")", "{", "s", ".", "task", ".", "Update", "(", "func", "(", "t", "*", "Task", ")", "interface", "{", "}", "{", "t", ".", "taskManager", "=", ...
21,553
all-21554
[ "/", "*", "Compaction", "period", "1", "-", "hour", ":", "1", ".", "compute", "compaction", "period", "which", "is", "1", "-", "hour", "2", ".", "record", "revisions", "for", "every", "1", "/", "10", "of", "1", "-", "hour", "(", "6", "-", "minute",...
[ "func", "(", "pc", "*", "Periodic", ")", "Run", "(", ")", "{", "compactInterval", ":=", "pc", ".", "getCompactInterval", "(", ")", "\n", "retryInterval", ":=", "pc", ".", "getRetryInterval", "(", ")", "\n", "retentions", ":=", "pc", ".", "getRetentions", ...
21,554
all-21555
[ "UnmarshalEasyJSON", "satisfies", "easyjson", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "GestureType", ")", "UnmarshalEasyJSON", "(", "in", "*", "jlexer", ".", "Lexer", ")", "{", "switch", "GestureType", "(", "in", ".", "String", "(", ")", ")", "{", "<mask>", "GestureDefault", ":", "*", "t", "=", "GestureDefault", "...
21,555
all-21556
[ "New", "generator", "for", "adding", "travis", "or", "gitlab" ]
[ "func", "New", "(", "opts", "*", "Options", ")", "(", "*", "genny", ".", "Generator", ",", "error", ")", "{", "g", ":=", "genny", ".", "New", "(", ")", "\n\n", "if", "err", ":=", "opts", ".", "Validate", "(", ")", ";", "err", "!=", "nil", "{", ...
21,556
all-21557
[ "Duration", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockBackoff", ")", "Duration", "(", ")", "time", ".", "Duration", "{", "<mask>", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ")", "\n", "ret0", ",", "_", ":=", "ret", "[", "0", "]", ".", "(", "time"...
21,557
all-21558
[ "GetObjectByHash", "finds", "object", "in", "a", "database", "by", "hash", "then", "returns", "an", "object", "on", "raw", "JSON", "format", "." ]
[ "func", "(", "h", "*", "Handler", ")", "GetObjectByHash", "(", "tkn", ",", "objectType", ",", "hash", "string", ")", "(", "json", ".", "RawMessage", ",", "error", ")", "{", "logger", ":=", "h", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\"",...
21,558
all-21559
[ "RuntimeLiblxcVersionAtLeast", "checks", "if", "the", "system", "s", "liblxc", "matches", "the", "provided", "version", "requirement" ]
[ "func", "RuntimeLiblxcVersionAtLeast", "(", "major", "int", ",", "minor", "int", ",", "micro", "int", ")", "bool", "{", "version", ":=", "golxc", ".", "Version", "(", ")", "\n", "version", "=", "strings", ".", "Replace", "(", "version", ",", "\"", "\"", ...
21,559
all-21560
[ "Command", "creates", "an", "os", "command", "to", "be", "run" ]
[ "func", "(", "s", "*", "ServiceManager", ")", "Command", "(", ")", "*", "exec", ".", "Cmd", "{", "cmd", ":=", "<mask>", ".", "Command", "(", "s", ".", "Cmd", ",", "s", ".", "Args", "...", ")", "\n", "env", ":=", "os", ".", "Environ", "(", ")", ...
21,560
all-21561
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetCookieParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15", "(", "&", "w", ",", "v", ")", ...
21,561
all-21562
[ "Count", "returns", "the", "number", "of", "non", "-", "tombstone", "items", "in", "the", "relay", "." ]
[ "func", "(", "r", "*", "relayItems", ")", "Count", "(", ")", "int", "{", "r", ".", "RLock", "(", ")", "\n", "n", ":=", "len", "(", "r", ".", "<mask>", ")", "-", "int", "(", "r", ".", "tombs", ")", "\n", "r", ".", "RUnlock", "(", ")", "\n", ...
21,562
all-21563
[ "AppendOp", "is", "an", "utility", "method", "to", "create", "AND", "append", "a", "new", "op", "code", "to", "the", "current", "list", "of", "op", "codes" ]
[ "func", "(", "b", "*", "ByteCode", ")", "AppendOp", "(", "o", "OpType", ",", "args", "...", "<mask>", "{", "}", ")", "Op", "{", "x", ":=", "NewOp", "(", "o", ",", "args", "...", ")", "\n", "b", ".", "Append", "(", "x", ")", "\n", "return", "x...
21,563
all-21564
[ "Run", "the", "http", "server", ".", "Listening", "on", "os", ".", "GetEnv", "(", "PORT", ")", "or", "4000", "by", "default", "." ]
[ "func", "(", "m", "*", "Macaron", ")", "Run", "(", "args", "...", "interface", "{", "}", ")", "{", "host", ",", "port", ":=", "GetDefaultListenInfo", "(", ")", "\n", "if", "len", "(", "args", ")", "==", "1", "{", "switch", "arg", ":=", "args", "[...
21,564
all-21565
[ "Calculates", "the", "per", "-", "element", "sum", "of", "two", "arrays", "with", "a", "mask", ".", "dst", "=", "src1", "+", "src2" ]
[ "func", "AddWithMask", "(", "src1", ",", "src2", ",", "dst", ",", "<mask>", "*", "IplImage", ")", "{", "C", ".", "cvAdd", "(", "unsafe", ".", "Pointer", "(", "src1", ")", ",", "unsafe", ".", "Pointer", "(", "src2", ")", ",", "unsafe", ".", "Pointer...
21,565
all-21566
[ "toYAML", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "YAML", "string", "." ]
[ "func", "toYAML", "(", "m", "<mask>", "[", "string", "]", "interface", "{", "}", ")", "(", "string", ",", "error", ")", "{", "result", ",", "err", ":=", "yaml", ".", "Marshal", "(", "m", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", ...
21,566
all-21567
[ "SetVisibleChildName", "is", "a", "wrapper", "around", "gtk_stack_set_visible_child_name", "()", "." ]
[ "func", "(", "v", "*", "Stack", ")", "SetVisibleChildName", "(", "<mask>", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "name", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ...
21,567
all-21568
[ "HasAliasName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetMetadata", ")", "HasAliasName", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "AliasName", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
21,568
all-21569
[ "/", "*", "SetData", "assigns", "user", "data", "to", "the", "matrix", "header", "." ]
[ "func", "(", "mat", "*", "Mat", ")", "SetData", "(", "data", "unsafe", ".", "Pointer", ",", "step", "int", ")", "{", "C", ".", "cvSetData", "(", "unsafe", ".", "Pointer", "(", "mat", ")", ",", "<mask>", ",", "C", ".", "int", "(", "step", ")", "...
21,569
all-21570
[ "Chmod", "indicates", "an", "expected", "call", "of", "Chmod" ]
[ "func", "(", "mr", "*", "MockFileMockRecorder", ")", "Chmod", "(", "arg0", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",", "\"", "\"", "...
21,570
all-21571
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "Profile", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoProfiler17", "(", "&", "r", ","...
21,571
all-21572
[ "GetHomogeneous", "is", "a", "wrapper", "around", "gtk_tool_item_get_homogeneous", "()", "." ]
[ "func", "(", "v", "*", "ToolItem", ")", "GetHomogeneous", "(", ")", "bool", "{", "c", ":=", "C", ".", "gtk_tool_item_get_homogeneous", "(", "v", ".", "native", "(", ")", ")", "\n", "<mask>", "gobool", "(", "c", ")", "\n", "}" ]
21,572
all-21573
[ "KeyHandler", "implements", "the", "interface", ".", "This", "is", "called", "from", "queue", "context", "so", "be", "careful", "to", "not", "use", "blocking", "calls", "." ]
[ "func", "(", "e", "*", "Edit", ")", "KeyHandler", "(", "ev", "termbox", ".", "Event", ")", "bool", "{", "<mask>", "inString", "int", "\n\n", "switch", "ev", ".", "Key", "{", "case", "termbox", ".", "KeyCtrlA", ",", "termbox", ".", "KeyHome", ":", "e"...
21,573
all-21574
[ "ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "PeerAddressIp" ]
[ "func", "(", "u", "PeerAddressIp", ")", "ArmForSwitch", "(", "sw", "int32", ")", "(", "string", ",", "bool", ")", "{", "switch", "IpAddrType", "(", "sw", ")", "{", "<mask>", "IpAddrTypeIPv4", ":", "return", "\"", "\"", ",", "true", "\n", "case", "IpAdd...
21,574
all-21575
[ "AddRegistry", "switches", "the", "registry", "that", "an", "image", "is", "targeting", "unless", "registry", "is", "blank" ]
[ "func", "AddRegistry", "(", "registry", "string", ",", "imageName", "string", ")", "string", "{", "if", "registry", "==", "\"", "\"", "{", "return", "imageName", "\n", "}", "\n", "<mask>", ":=", "strings", ".", "Split", "(", "imageName", ",", "\"", "\"",...
21,575
all-21576
[ "GetRepositoryTags", "list", "all", "tags", "available", "in", "the", "repository", ".", "The", "tag", "provided", "inside", "the", "ImageReference", "will", "be", "ignored", "." ]
[ "func", "GetRepositoryTags", "(", "ctx", "context", ".", "<mask>", ",", "sys", "*", "types", ".", "SystemContext", ",", "ref", "types", ".", "ImageReference", ")", "(", "[", "]", "string", ",", "error", ")", "{", "dr", ",", "ok", ":=", "ref", ".", "(...
21,576
all-21577
[ "See", "bcd", ".", "TracerSig", ".", "SetSigset", "()", "." ]
[ "func", "(", "t", "*", "BTTracer", ")", "SetSigset", "(", "sigs", "...", "os", ".", "Signal", ")", "{", "t", ".", "ss", "=", "append", "(", "[", "]", "<mask>", ".", "Signal", "(", "nil", ")", ",", "sigs", "...", ")", "\n", "}" ]
21,577
all-21578
[ "reduceDelta", "lowers", "the", "buffered", "time", "delta", "dropping", "any", "samples", "that", "are", "out", "of", "the", "new", "delta", "range", "." ]
[ "func", "(", "r", "*", "sampleRing", ")", "reduceDelta", "(", "delta", "int64", ")", "bool", "{", "if", "delta", ">", "r", ".", "delta", "{", "return", "false", "\n", "}", "\n", "r", ".", "delta", "=", "delta", "\n\n", "if", "r", ".", "l", "==", ...
21,578
all-21579
[ "Delete", "removes", "a", "key", "from", "the", "bucket", ".", "If", "the", "key", "does", "not", "exist", "then", "nothing", "is", "done", "and", "a", "nil", "error", "is", "returned", ".", "Returns", "an", "error", "if", "the", "bucket", "was", "crea...
[ "func", "(", "b", "Bucket", ")", "Delete", "(", "k", "[", "]", "[", "]", "<mask>", ")", "error", "{", "return", "b", ".", "OpenBucket", "(", "k", "[", ":", "len", "(", "k", ")", "-", "1", "]", ",", "func", "(", "b", "Bucket", ")", "error", ...
21,579
all-21580
[ "Populates", "the", "node", "table", "." ]
[ "func", "(", "s", "*", "Server", ")", "Bootstrap", "(", ")", "(", "ts", "TraversalStats", ",", "err", "error", ")", "{", "initialAddrs", ",", "err", ":=", "s", ".", "traversalStartingNodes", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\...
21,580
all-21581
[ "GetCollaborators", "returns", "all", "github", "users", "who", "are", "members", "or", "outside", "collaborators", "of", "the", "repo", "." ]
[ "func", "(", "c", "*", "Client", ")", "GetCollaborators", "(", "org", ",", "repo", "string", ")", "(", "[", "]", "*", "github", ".", "User", ",", "error", ")", "{", "opts", ":=", "&", "github", ".", "ListCollaboratorsOptions", "{", "}", "\n", "collab...
21,581
all-21582
[ "NewClient", "creates", "a", "Client", "for", "interacting", "with", "the", "Twilio", "API", ".", "This", "is", "the", "main", "entrypoint", "for", "API", "interactions", ";", "view", "the", "methods", "on", "the", "subresources", "for", "more", "information",...
[ "func", "NewClient", "(", "accountSid", "string", ",", "authToken", "string", ",", "httpClient", "*", "http", ".", "Client", ")", "*", "Client", "{", "if", "httpClient", "==", "nil", "{", "httpClient", "=", "&", "<mask>", ".", "Client", "{", "Timeout", "...
21,582
all-21583
[ "FirstByClass", "finds", "the", "first", "element", "with", "a", "given", "CSS", "class", "." ]
[ "func", "(", "s", "*", "selectable", ")", "FindForAppium", "(", "selectorType", "string", ",", "text", "string", ")", "*", "Selection", "{", "return", "newSelection", "(", "s", ".", "<mask>", ",", "s", ".", "selectors", ".", "Append", "(", "target", ".",...
21,583
all-21584
[ "goType", "returns", "the", "Go", "type", "name", "for", "the", "given", "thrift", "type", "." ]
[ "func", "(", "s", "*", "State", ")", "goType", "(", "thriftType", "*", "parser", ".", "<mask>", ")", "string", "{", "return", "s", ".", "goTypePrefix", "(", "\"", "\"", ",", "thriftType", ")", "\n", "}" ]
21,584
all-21585
[ "GetPrivateImageFile", "is", "similar", "to", "GetImageFile", "but", "allows", "passing", "a", "secret", "download", "token" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetPrivateImageFile", "(", "fingerprint", "string", ",", "secret", "string", ",", "req", "ImageFileRequest", ")", "(", "*", "ImageFileResponse", ",", "error", ")", "{", "// Sanity checks", "if", "req", ".", "MetaFile...
21,585
all-21586
[ "AllFieldsEmpty", "checks", "to", "see", "if", "all", "fields", "in", "a", "given", "struct", "are", "zero", "values", ".", "It", "does", "not", "recurse", "so", "finer", "-", "grained", "checking", "should", "be", "done", "for", "deep", "accuracy", "when"...
[ "func", "AllFieldsEmpty", "(", "v", "interface", "{", "}", ")", "bool", "{", "if", "v", "==", "nil", "{", "return", "true", "\n", "}", "\n\n", "t", ":=", "reflect", ".", "TypeOf", "(", "v", ")", "\n", "if", "t", ".", "Kind", "(", ")", "!=", "re...
21,586
all-21587
[ "SetPreviewWidgetActive", "is", "a", "wrapper", "around", "gtk_file_chooser_set_preview_widget_active", "()", "." ]
[ "func", "(", "v", "*", "FileChooser", ")", "SetPreviewWidgetActive", "(", "<mask>", "bool", ")", "{", "C", ".", "gtk_file_chooser_set_preview_widget_active", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "active", ")", ")", "\n", "}" ]
21,587
all-21588
[ "NewMicrosoftClientFromEnv", "creates", "a", "Microsoft", "client", "based", "on", "environment", "variables", "." ]
[ "func", "NewMicrosoftClientFromEnv", "(", ")", "(", "Client", ",", "error", ")", "{", "container", ",", "ok", ":=", "os", ".", "LookupEnv", "(", "MicrosoftContainerEnvVar", ")", "\n", "if", "!", "ok", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(",...
21,588
all-21589
[ "RsyncSend", "sets", "up", "the", "sending", "half", "of", "an", "rsync", "to", "recursively", "send", "the", "directory", "pointed", "to", "by", "path", "over", "the", "websocket", "." ]
[ "func", "RsyncSend", "(", "name", "string", ",", "path", "string", ",", "conn", "*", "websocket", ".", "Conn", ",", "readWrapper", "func", "(", "io", ".", "ReadCloser", ")", "io", ".", "ReadCloser", ",", "features", "[", "]", "string", ",", "bwlimit", ...
21,589
all-21590
[ "GetPointer", "is", "a", "wrapper", "around", "g_value_get_pointer", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetPointer", "(", ")", "unsafe", ".", "Pointer", "{", "return", "unsafe", ".", "Pointer", "(", "C", ".", "g_value_get_pointer", "(", "v", ".", "native", "(", ")", ")", ")", "\n", "}" ]
21,590
all-21591
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventFrameRequestedNavigation", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage63", "(", "&", "w", ",", "...
21,591
all-21592
[ "NewSetDirCommand", "returns", "the", "CLI", "command", "for", "setDir", "." ]
[ "func", "NewSetDirCommand", "(", ")", "cli", ".", "Command", "{", "return", "cli", ".", "Command", "{", "Name", ":", "\"", "\"", ",", "Usage", ":", "\"", "\"", ",", "ArgsUsage", ":", "\"", "\"", ",", "Flags", ":", "[", "]", "cli", ".", "Flag", "{...
21,592
all-21593
[ "BearingTo", "returns", "the", "bearing", "from", "p1", "to", "p2" ]
[ "func", "BearingTo", "(", "p1", ",", "p2", "<mask>", ")", "float64", "{", "dLon", ":=", "toRadians", "(", "p2", ".", "Lon", "(", ")", "-", "p1", ".", "Lon", "(", ")", ")", "\n\n", "lat1", ":=", "toRadians", "(", "p1", ".", "Lat", "(", ")", ")",...
21,593
all-21594
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventFrameResized", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage62", "(", "&", "w", ",", "v", ")", ...
21,594
all-21595
[ "String", "returns", "the", "human", "-", "friendly", "version", "of", "this", "dependency", "." ]
[ "func", "(", "d", "*", "KVKeysQuery", ")", "String", "(", ")", "string", "{", "prefix", ":=", "d", ".", "prefix", "\n", "if", "d", ".", "dc", "!=", "\"", "\"", "{", "prefix", "=", "<mask>", "+", "\"", "\"", "+", "d", ".", "dc", "\n", "}", "\n...
21,595
all-21596
[ "Create", "implements", "Create", "method", "of", "PlatformService", "interface" ]
[ "func", "(", "s", "*", "platformService", ")", "Create", "(", "opts", "appTypes", ".", "PlatformOptions", ")", "error", "{", "p", ":=", "appTypes", ".", "Platform", "{", "Name", ":", "opts", ".", "Name", "}", "\n", "if", "err", ":=", "s", ".", "valid...
21,596
all-21597
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "RequestDatabaseReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoIndexeddb", "(", "&", "w", ",", "v", ...
21,597
all-21598
[ "GetClient", "looks", "up", "the", "client", "endpoints", "for", "a", "service", "and", "domain", "." ]
[ "func", "GetClient", "(", "service", ",", "domain", "string", ",", "serviceName", "string", ")", "(", "*", "SRVClients", ",", "error", ")", "{", "var", "urls", "[", "]", "*", "url", ".", "URL", "\n", "var", "srvs", "[", "]", "*", "net", ".", "SRV",...
21,598
all-21599
[ "fill", "all", "or", "part", "of", "buffer", "object", "s", "data", "store", "with", "a", "fixed", "value" ]
[ "func", "ClearNamedBufferSubData", "(", "buffer", "uint32", ",", "internalformat", "uint32", ",", "<mask>", "int", ",", "size", "int", ",", "format", "uint32", ",", "xtype", "uint32", ",", "data", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall9...
21,599
all-21600
[ "<source", "-", "name", ">", "::", "=", "<", "(", "positive", "length", ")", "number", ">", "<identifier", ">", "identifier", "::", "=", "<", "(", "unqualified", "source", "code", "identifier", ")", ">" ]
[ "func", "(", "st", "*", "state", ")", "sourceName", "(", ")", "AST", "{", "val", ":=", "st", ".", "number", "(", ")", "\n", "if", "val", "<=", "0", "{", "st", ".", "fail", "(", "\"", "\"", ")", "\n", "}", "\n", "if", "len", "(", "st", ".", ...