id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
20,900
all-20901
[ "newWatcherBatch", "maps", "watchers", "to", "their", "matched", "events", ".", "It", "enables", "quick", "events", "look", "up", "by", "watcher", "." ]
[ "func", "newWatcherBatch", "(", "wg", "*", "watcherGroup", ",", "evs", "[", "]", "mvccpb", ".", "<mask>", ")", "watcherBatch", "{", "if", "len", "(", "wg", ".", "watchers", ")", "==", "0", "{", "return", "nil", "\n", "}", "\n\n", "wb", ":=", "make", ...
20,901
all-20902
[ "VolumeSnapshotLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "VolumeSnapshotLocator", "(", "href", "<mask>", ")", "*", "VolumeSnapshotLocator", "{", "return", "&", "VolumeSnapshotLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
20,902
all-20903
[ "ToOption", "converts", "this", "Options", "to", "a", "single", "Option", "." ]
[ "func", "(", "opts", "*", "Options", ")", "ToOption", "(", ")", "Option", "{", "return", "func", "(", "nopts", "*", "Options", ")", "error", "{", "*", "nopts", "=", "*", "opts", "\n", "if", "opts", ".", "Other", "!=", "nil", "{", "nopts", ".", "O...
20,903
all-20904
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "AddInspectedHeapObjectParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler23", "(", "&", "w", "...
20,904
all-20905
[ "KebabUpper", "returns", "a", "KEBAB", "-", "CASED", "string", "with", "all", "upper", "case", "letters", "." ]
[ "func", "(", "k", "*", "Kace", ")", "KebabUpper", "(", "s", "string", ")", "string", "{", "return", "delimitedCase", "(", "s", ",", "kebabDelim", ",", "<mask>", ")", "\n", "}" ]
20,905
all-20906
[ "Routes", "creates", "a", "REST", "router", "for", "the", "todos", "resource" ]
[ "func", "(", "rs", "todosResource", ")", "Routes", "(", ")", "chi", ".", "Router", "{", "r", ":=", "chi", ".", "NewRouter", "(", ")", "\n", "// r.Use() // some middleware..", "r", ".", "Get", "(", "\"", "\"", ",", "rs", ".", "List", ")", "// GET /todos...
20,906
all-20907
[ "GetVizOk", "returns", "a", "tuple", "with", "the", "Viz", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinition", ")", "GetVizOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "Viz", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "g",...
20,907
all-20908
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventReportHeapSnapshotProgress", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler1...
20,908
all-20909
[ "NextElement", "parses", "and", "returns", "the", "next", "string", "element" ]
[ "func", "(", "p", "*", "ColorParser", ")", "NextElement", "(", ")", "TextElement", "{", "if", "p", ".", "index", ">=", "len", "(", "p", ".", "text", ")", "{", "return", "TextElement", "{", "Type", ":", "ElemEndOfText", "}", "\n", "}", "\n\n", "if", ...
20,909
all-20910
[ "ListZone", ":", "Method", "returns", "the", "details", "of", "a", "specific", "zone", "from", "PowerDNS", "ref", ":", "https", ":", "//", "doc", ".", "powerdns", ".", "com", "/", "authoritative", "/", "http", "-", "api", "/", "zone", ".", "html#get", ...
[ "func", "(", "c", "*", "PDNSAPIClient", ")", "ListZone", "(", "zoneID", "string", ")", "(", "zone", "pgo", ".", "Zone", ",", "resp", "*", "http", ".", "Response", ",", "err", "error", ")", "{", "for", "i", ":=", "0", ";", "i", "<", "retryLimit", ...
20,910
all-20911
[ "Validate", "ensures", "that", "the", "configuration", "options", "are", "valid" ]
[ "func", "(", "o", "*", "Options", ")", "Validate", "(", ")", "error", "{", "if", "o", ".", "SrcRoot", "==", "\"", "\"", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n\n", "if", "o", ".", "Log", "==", "\"", "\"", "{"...
20,911
all-20912
[ "ListContainers", "returns", "a", "slice", "of", "container", "IDs", "." ]
[ "func", "(", "dg", "*", "dockerGoClient", ")", "ListContainers", "(", "ctx", "context", ".", "Context", ",", "all", "bool", ",", "timeout", "time", ".", "Duration", ")", "ListContainersResponse", "{", "ctx", ",", "cancel", ":=", "context", ".", "WithTimeout"...
20,912
all-20913
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SamplingHeapProfileNode", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler7", "("...
20,913
all-20914
[ "ResetPasswordForDatabaseServer", "requests", "a", "snapshot", "of", "an", "existing", "database", "server", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "ResetPasswordForDatabaseServer", "(", "identifier", "string", ")", "(", "*", "DatabaseServer", ",", "error", ")", "{", "dbs", ":=", "new", "(", "DatabaseServer", ")", "\n", "_", ",", "err", ":=", "c", ".", "MakeApiR...
20,914
all-20915
[ "generate", "a", "contiguous", "set", "of", "empty", "display", "lists" ]
[ "func", "GenLists", "(", "xrange", "int32", ")", "uint32", "{", "<mask>", ":=", "C", ".", "glowGenLists", "(", "gpGenLists", ",", "(", "C", ".", "GLsizei", ")", "(", "xrange", ")", ")", "\n", "return", "(", "uint32", ")", "(", "ret", ")", "\n", "}"...
20,915
all-20916
[ "Bytes", "encodes", "the", "builder", "s", "underlying", "envelope", "to", "XDR" ]
[ "func", "(", "b", "*", "TransactionEnvelopeBuilder", ")", "Bytes", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "b", ".", "Err", "!=", "nil", "{", "return", "nil", ",", "b", ".", "Err", "\n", "}", "\n\n", "var", "txBytes", "byte...
20,916
all-20917
[ "Manifest", "is", "like", "ImageSource", ".", "GetManifest", "but", "the", "result", "is", "cached", ";", "it", "is", "OK", "to", "call", "this", "however", "often", "you", "need", "." ]
[ "func", "(", "i", "*", "memoryImage", ")", "Manifest", "(", "ctx", "context", ".", "<mask>", ")", "(", "[", "]", "byte", ",", "string", ",", "error", ")", "{", "if", "i", ".", "serializedManifest", "==", "nil", "{", "m", ",", "err", ":=", "i", "....
20,917
all-20918
[ "Helper", "function", "to", "submit", "changes", ".", "Changes", "are", "submitted", "by", "change", "type", "." ]
[ "func", "(", "p", "*", "RcodeZeroProvider", ")", "submitChanges", "(", "changes", "[", "]", "*", "rc0", ".", "RRSetChange", ")", "error", "{", "if", "len", "(", "changes", ")", "==", "0", "{", "return", "nil", "\n", "}", "\n\n", "zones", ",", "err", ...
20,918
all-20919
[ "GetChange", "gets", "the", "old", "and", "new", "values", "for", "the", "value", "specified", "by", "key", "." ]
[ "func", "(", "r", "*", "Subresource", ")", "GetChange", "(", "key", "string", ")", "(", "interface", "{", "}", ",", "<mask>", "{", "}", ")", "{", "new", ":=", "r", ".", "data", "[", "key", "]", "\n", "// No old data means no change, so we use the new valu...
20,919
all-20920
[ "/", "*", "Application", "security", "is", "very", "important", "so", "Pusher", "provides", "a", "mechanism", "for", "authenticating", "a", "user’s", "access", "to", "a", "channel", "at", "the", "point", "of", "subscription", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "AuthenticatePrivateChannel", "(", "params", "[", "]", "byte", ")", "(", "response", "[", "]", "byte", ",", "err", "error", ")", "{", "return", "c", ".", "authenticateChannel", "(", "params", ",", "nil", ")", "\n",...
20,920
all-20921
[ "orgsInConfig", "gets", "all", "the", "org", "strings", "(", "not", "org", "/", "repo", ")", "in", "config", ".", "Plugins", "and", "config", ".", "ExternalPlugins", "." ]
[ "func", "orgsInConfig", "(", "config", "*", "plugins", ".", "<mask>", ")", "sets", ".", "String", "{", "orgs", ":=", "sets", ".", "NewString", "(", ")", "\n", "for", "repo", ":=", "range", "config", ".", "Plugins", "{", "if", "!", "strings", ".", "Co...
20,921
all-20922
[ "CreateCloudIP", "creates", "a", "new", "Cloud", "IP", ".", "It", "takes", "a", "CloudIPOptions", "struct", "for", "specifying", "name", "and", "other", "attributes", ".", "Not", "all", "attributes", "can", "be", "specified", "at", "create", "time", "(", "su...
[ "func", "(", "c", "*", "<mask>", ")", "CreateCloudIP", "(", "newCloudIP", "*", "CloudIPOptions", ")", "(", "*", "CloudIP", ",", "error", ")", "{", "cloudip", ":=", "new", "(", "CloudIP", ")", "\n", "_", ",", "err", ":=", "c", ".", "MakeApiRequest", "...
20,922
all-20923
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "<mask>", ")", "Locator", "(", "api", "*", "API", ")", "*", "TemplateLocator", "{", "return", "api", ".", "TemplateLocator", "(", "r", ".", "Href", ")", "\n", "}" ]
20,923
all-20924
[ "Print", "prints", "version", "and", "completes", "the", "program", "." ]
[ "func", "Print", "(", "run", "bool", ",", "commit", ",", "version", "string", ")", "{", "if", "run", "{", "fmt", ".", "Println", "(", "Message", "(", "commit", ",", "<mask>", ")", ")", "\n", "os", ".", "Exit", "(", "0", ")", "\n", "}", "\n", "}...
20,924
all-20925
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniformMatrix2x3fv", "(", "program", "uint32", ",", "<mask>", "int32", ",", "count", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpProgramUniformMatrix2x3fv", ",", "5", ",", "uint...
20,925
all-20926
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "RemoveDOMBreakpointParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7", "(...
20,926
all-20927
[ "KeyWrap", "encrypts", "provided", "key", "(", "CEK", ")", "with", "KEK", "key", "using", "AES", "Key", "Wrap", "(", "rfc", "3394", ")", "algorithm" ]
[ "func", "KeyWrap", "(", "cek", ",", "kek", "[", "]", "byte", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "// 1) Initialize variables", "a", ":=", "defaultIV", "// Set A = IV, an initial value", "\n", "r", ":=", "arrays", ".", "Slice", "(", "cek",...
20,927
all-20928
[ "initialize", "initializes", "ExtractedV1Compatibility", "and", "verifies", "invariants", "so", "that", "the", "rest", "of", "this", "code", "can", "assume", "a", "minimally", "healthy", "manifest", "." ]
[ "func", "(", "m", "*", "Schema1", ")", "initialize", "(", ")", "error", "{", "if", "len", "(", "m", ".", "FSLayers", ")", "!=", "len", "(", "m", ".", "History", ")", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", ...
20,928
all-20929
[ "Kill", "terminates", "a", "process", "in", "the", "guest", "operating", "system", ".", "Parameters", ":", "pid", ":", "The", "ID", "of", "the", "process", "to", "be", "killed", ".", "Remarks", ":", "*", "Depending", "on", "the", "behavior", "of", "the",...
[ "func", "(", "g", "*", "Guest", ")", "Kill", "(", "pid", "uint64", ")", "error", "{", "var", "jobHandle", "C", ".", "VixHandle", "=", "C", ".", "VIX_INVALID_HANDLE", "\n", "<mask>", "err", "C", ".", "VixError", "=", "C", ".", "VIX_OK", "\n\n", "jobHa...
20,929
all-20930
[ "WatchOne", "watches", "a", "given", "item", ".", "The", "first", "value", "returned", "from", "the", "watch", "will", "be", "the", "current", "value", "of", "the", "item", "." ]
[ "func", "(", "c", "*", "readonlyCollection", ")", "WatchOne", "(", "key", "string", ")", "(", "watch", ".", "Watcher", ",", "error", ")", "{", "return", "<mask>", ".", "NewWatcher", "(", "c", ".", "ctx", ",", "c", ".", "etcdClient", ",", "c", ".", ...
20,930
all-20931
[ "HasColor", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "f", "*", "FreeTextDefinition", ")", "HasColor", "(", ")", "bool", "{", "if", "f", "!=", "nil", "&&", "f", ".", "<mask>", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
20,931
all-20932
[ "CheckButtonNewWithLabel", "is", "a", "wrapper", "around", "gtk_check_button_new_with_label", "()", "." ]
[ "func", "CheckButtonNewWithLabel", "(", "label", "string", ")", "(", "*", "CheckButton", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "label", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ...
20,932
all-20933
[ "WaitForText", "is", "a", "wrapper", "around", "gtk_clipboard_wait_for_text" ]
[ "func", "(", "v", "*", "Clipboard", ")", "WaitForText", "(", ")", "(", "string", ",", "<mask>", ")", "{", "c", ":=", "C", ".", "gtk_clipboard_wait_for_text", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "\"",...
20,933
all-20934
[ "UnmarshalJSON", "implements", "the", "json", ".", "Unmarshaler", "interface", "." ]
[ "func", "(", "p", "*", "Policy", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "*", "p", "=", "Policy", "{", "}", "\n", "transports", ":=", "policyTransportsMap", "{", "}", "\n", "if", "err", ":=", "paranoidUnmarshalJSONObject",...
20,934
all-20935
[ "CloseWindow", "closes", "the", "active", "window", "." ]
[ "func", "(", "p", "*", "Page", ")", "CloseWindow", "(", ")", "error", "{", "if", "err", ":=", "p", ".", "<mask>", ".", "DeleteWindow", "(", ")", ";", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "\n...
20,935
all-20936
[ "ValueCopy", "returns", "a", "copy", "of", "the", "value", "of", "the", "item", "from", "the", "value", "log", "writing", "it", "to", "dst", "slice", ".", "If", "nil", "is", "passed", "or", "capacity", "of", "dst", "isn", "t", "sufficient", "a", "new",...
[ "func", "(", "item", "*", "Item", ")", "ValueCopy", "(", "dst", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "item", ".", "wg", ".", "Wait", "(", ")", "\n", "if", "item", ".", "status", "==", "prefetched", "{", "return"...
20,936
all-20937
[ "compressBlock", "compresses", "a", "block", "." ]
[ "func", "(", "z", "*", "Writer", ")", "compressBlock", "(", "data", "[", "]", "byte", ")", "error", "{", "if", "!", "z", ".", "NoChecksum", "{", "z", ".", "checksum", ".", "Write", "(", "data", ")", "\n", "}", "\n\n", "// The compressed block size cann...
20,937
all-20938
[ "GenerateSelfSignedCert", "generates", "a", "self", "-", "signed", "TLS", "cert", "for", "the", "domain", "name", "address", "with", "a", "private", "key", ".", "Other", "attributes", "of", "the", "subject", "can", "be", "set", "in", "name", "and", "ip", "...
[ "func", "GenerateSelfSignedCert", "(", "address", "string", ",", "<mask>", "*", "pkix", ".", "Name", ",", "ipAddresses", "...", "string", ")", "(", "*", "tls", ".", "Certificate", ",", "error", ")", "{", "// Generate Subject Distinguished Name", "if", "name", ...
20,938
all-20939
[ "GetRenotifyInterval", "returns", "the", "RenotifyInterval", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "o", "*", "<mask>", ")", "GetRenotifyInterval", "(", ")", "int", "{", "if", "o", "==", "nil", "||", "o", ".", "RenotifyInterval", "==", "nil", "{", "return", "0", "\n", "}", "\n", "return", "*", "o", ".", "RenotifyInterval", "\n", "}" ]
20,939
all-20940
[ "ReplaceN", "replaces", "a", "number", "of", "regular", "expressions", "mathed", "in", "r", "for", "the", "named", "file", "." ]
[ "func", "ReplaceN", "(", "<mask>", "string", ",", "r", "[", "]", "Replacer", ",", "n", "int", ")", "error", "{", "e", ",", "err", ":=", "NewEdit", "(", "filename", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "err...
20,940
all-20941
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "VisualViewport", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage1", "(", "&", "w", ",", "v", ")", "\n...
20,941
all-20942
[ "ExoscaleWithLogging", "injects", "logging", "when", "ApplyChanges", "is", "called" ]
[ "func", "ExoscaleWithLogging", "(", ")", "ExoscaleOption", "{", "return", "func", "(", "p", "*", "ExoscaleProvider", ")", "{", "p", ".", "OnApplyChanges", "=", "func", "(", "changes", "*", "<mask>", ".", "Changes", ")", "{", "for", "_", ",", "v", ":=", ...
20,942
all-20943
[ "FindFiles", "-" ]
[ "func", "FindFiles", "(", "configDir", ",", "pattern", "string", ")", "(", "[", "]", "string", ",", "error", ")", "{", "var", "foundFiles", "=", "make", "(", "[", "]", "string", ",", "0", ")", "\n", "err", ":=", "filepath", ".", "Walk", "(", "confi...
20,943
all-20944
[ "UseProject", "returns", "a", "client", "that", "will", "use", "a", "specific", "project", "." ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "UseProject", "(", "name", "string", ")", "ContainerServer", "{", "return", "&", "ProtocolLXD", "{", "server", ":", "r", ".", "server", ",", "http", ":", "r", ".", "http", ",", "httpCertificate", ":", "r", "."...
20,944
all-20945
[ "Set", "a", "counter", "to", "specific", "value" ]
[ "func", "(", "m", "*", "CirconusMetrics", ")", "<mask>", "(", "metric", "string", ",", "val", "uint64", ")", "{", "m", ".", "cm", ".", "Lock", "(", ")", "\n", "defer", "m", ".", "cm", ".", "Unlock", "(", ")", "\n", "m", ".", "counters", "[", "m...
20,945
all-20946
[ "GenScheme", "returns", "a", "func", "that", "generates", "a", "scheme", ":", "//", "style", "DSN", "from", "the", "passed", "URL", "." ]
[ "func", "GenScheme", "(", "scheme", "string", ")", "func", "(", "*", "URL", ")", "(", "string", ",", "error", ")", "{", "return", "func", "(", "u", "*", "URL", ")", "(", "string", ",", "error", ")", "{", "z", ":=", "&", "url", ".", "URL", "{", ...
20,946
all-20947
[ "Value", "returns", "the", "value", "of", "the", "node", "with", "the", "given", "id", ".", "It", "will", "return", "ErrNoValue", "if", "the", "node", "does", "not", "have", "a", "value", "." ]
[ "func", "(", "da", "*", "Cedar", ")", "Value", "(", "id", "int", ")", "(", "value", "int", ",", "err", "error", ")", "{", "value", "=", "da", ".", "<mask>", "[", "id", "]", ".", "Value", "\n", "if", "value", ">=", "0", "{", "return", "value", ...
20,947
all-20948
[ "WithCaseSensitive", "if", "true", "search", "is", "case", "sensitive", "." ]
[ "func", "(", "p", "SearchInResourceParams", ")", "WithCaseSensitive", "(", "caseSensitive", "bool", ")", "*", "SearchInResourceParams", "{", "p", ".", "CaseSensitive", "=", "caseSensitive", "\n", "<mask>", "&", "p", "\n", "}" ]
20,948
all-20949
[ "GetMessageOk", "returns", "a", "tuple", "with", "the", "Message", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsTest", ")", "GetMessageOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "Message", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "*"...
20,949
all-20950
[ "Update", "updates", "the", "uint16", "in", "the", "buffer" ]
[ "func", "(", "ref", "Uint16Ref", ")", "Update", "(", "n", "uint16", ")", "{", "if", "<mask>", "!=", "nil", "{", "binary", ".", "BigEndian", ".", "PutUint16", "(", "ref", ",", "n", ")", "\n", "}", "\n", "}" ]
20,950
all-20951
[ "returns", "the", "call", "price", "by", "country" ]
[ "func", "(", "cvps", "*", "CountryVoicePriceService", ")", "Get", "(", "ctx", "context", ".", "Context", ",", "isoCountry", "string", ")", "(", "*", "VoicePrice", ",", "error", ")", "{", "voicePrice", ":=", "new", "(", "VoicePrice", ")", "\n", "err", ":=...
20,951
all-20952
[ "GetEvaluationDuration", "returns", "the", "time", "in", "seconds", "it", "took", "to", "evaluate", "the", "recording", "rule", "." ]
[ "func", "(", "rule", "*", "RecordingRule", ")", "GetEvaluationDuration", "(", ")", "time", ".", "Duration", "{", "rule", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "rule", ".", "mtx", ".", "Unlock", "(", ")", "\n", "return", "<mask>", ".", "ev...
20,952
all-20953
[ "TODO", ":", "add", "checksum" ]
[ "func", "(", "c", "*", "WordCodec", ")", "BytesToWords", "(", "raw", "[", "]", "byte", ")", "(", "words", "[", "]", "string", ",", "err", "error", ")", "{", "// always add a checksum to the data", "data", ":=", "c", ".", "check", ".", "AddECC", "(", "r...
20,953
all-20954
[ "FileCopy", "copies", "a", "file", "overwriting", "the", "target", "if", "it", "exists", "." ]
[ "func", "FileCopy", "(", "source", "string", ",", "dest", "string", ")", "error", "{", "s", ",", "err", ":=", "os", ".", "Open", "(", "source", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "defer", "s", ".", "Close"...
20,954
all-20955
[ "title", ":", "service", "instance", "info", "path", ":", "/", "services", "/", "{", "service", "}", "/", "instances", "/", "{", "instance", "}", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "OK", "401...
[ "func", "serviceInstance", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "instanceName", ":=", "r", ".", "<mask>", ".", "Query", "(", ")", ".", "Get", "(", "\"", "...
20,955
all-20956
[ "ClearRect", "fills", "the", "specified", "rectangle", "with", "a", "default", "transparent", "color" ]
[ "func", "(", "gc", "*", "GraphicContext", ")", "ClearRect", "(", "x1", ",", "y1", ",", "x2", ",", "y2", "int", ")", "{", "mask", ":=", "gc", ".", "newMask", "(", "x1", ",", "y1", ",", "x2", "-", "x1", ",", "y2", "-", "y1", ")", "\n\n", "newGr...
20,956
all-20957
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ErrorMessage", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoServiceworker13", "(", "&", "w", ",", "v", ")...
20,957
all-20958
[ "specify", "the", "line", "stipple", "pattern" ]
[ "func", "LineStipple", "(", "factor", "int32", ",", "pattern", "uint16", ")", "{", "syscall", ".", "Syscall", "(", "gpLineStipple", ",", "2", ",", "uintptr", "(", "<mask>", ")", ",", "uintptr", "(", "pattern", ")", ",", "0", ")", "\n", "}" ]
20,958
all-20959
[ "render", "primitives", "using", "a", "count", "derived", "from", "a", "specifed", "stream", "of", "a", "transform", "feedback", "object" ]
[ "func", "DrawTransformFeedbackStream", "(", "mode", "uint32", ",", "id", "uint32", ",", "stream", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpDrawTransformFeedbackStream", ",", "3", ",", "uintptr", "(", "mode", ")", ",", "uintptr", "(", "id", ")",...
20,959
all-20960
[ "resolve", "sym", "links", "into", "the", "actual", "log", "directory", "for", "a", "particular", "test", "run" ]
[ "func", "(", "bucket", "gcsBucket", ")", "resolveSymLink", "(", "symLink", "string", ")", "(", "string", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "bucket", ".", "readObject", "(", "symLink", ")", "\n", "if", "err", "!=", "nil", "{", "return"...
20,960
all-20961
[ "TextFromUTF16", "returns", "v", "s", "string", "value", "interpreted", "as", "big", "-", "endian", "UTF", "-", "16", "and", "then", "converted", "to", "UTF", "-", "8", ".", "If", "v", ".", "Kind", "()", "!", "=", "String", "or", "if", "the", "data",...
[ "func", "(", "v", "<mask>", ")", "TextFromUTF16", "(", ")", "string", "{", "x", ",", "ok", ":=", "v", ".", "data", ".", "(", "string", ")", "\n", "if", "!", "ok", "{", "return", "\"", "\"", "\n", "}", "\n", "if", "len", "(", "x", ")", "%", ...
20,961
all-20962
[ "startDrainEventsTicker", "starts", "a", "ticker", "that", "periodically", "drains", "the", "events", "queue", "by", "submitting", "state", "change", "events", "to", "the", "ECS", "backend" ]
[ "func", "(", "handler", "*", "TaskHandler", ")", "startDrainEventsTicker", "(", ")", "{", "derivedCtx", ",", "cancel", ":=", "context", ".", "WithCancel", "(", "<mask>", ".", "ctx", ")", "\n", "defer", "cancel", "(", ")", "\n", "ticker", ":=", "utils", "...
20,962
all-20963
[ "Tagging", "parseTagAndLength", "parses", "an", "ASN", ".", "1", "tag", "and", "length", "pair", "from", "the", "given", "offset", "into", "a", "byte", "slice", ".", "It", "returns", "the", "parsed", "data", "and", "the", "new", "offset", ".", "SET", "an...
[ "func", "parseTagAndLength", "(", "bytes", "[", "]", "byte", ",", "initOffset", "int", ")", "(", "ret", "tagAndLength", ",", "offset", "int", ",", "err", "error", ")", "{", "offset", "=", "initOffset", "\n", "// parseTagAndLength should not be called without at le...
20,963
all-20964
[ "TCPDialCheck", "returns", "a", "Check", "that", "checks", "TCP", "connectivity", "to", "the", "provided", "endpoint", "." ]
[ "func", "TCPDialCheck", "(", "addr", "string", ",", "timeout", "time", ".", "Duration", ")", "Check", "{", "return", "func", "(", ")", "error", "{", "conn", ",", "err", ":=", "net", ".", "DialTimeout", "(", "\"", "\"", ",", "addr", ",", "timeout", ")...
20,964
all-20965
[ "problemsInFiles", "runs", "buildifier", "on", "the", "files", ".", "It", "returns", "a", "map", "from", "the", "file", "to", "a", "list", "of", "problems", "with", "that", "file", "." ]
[ "func", "problemsInFiles", "(", "r", "*", "git", ".", "Repo", ",", "files", "map", "[", "string", "]", "string", ")", "(", "map", "[", "string", "]", "[", "]", "string", ",", "error", ")", "{", "problems", ":=", "make", "(", "map", "[", "string", ...
20,965
all-20966
[ "/", "*", "Warningm", "uses", "msg", "as", "a", "format", "string", "with", "subsequent", "parameters", "as", "values", "and", "logs", "the", "resulting", "message", "to", "all", "added", "loggers", "at", "LogLevel", ".", "LevelWarning", ".", "It", "will", ...
[ "func", "(", "b", "*", "Base", ")", "Warningm", "(", "m", "*", "Attrs", ",", "msg", "string", ",", "a", "...", "<mask>", "{", "}", ")", "error", "{", "return", "b", ".", "Log", "(", "LevelWarning", ",", "m", ",", "msg", ",", "a", "...", ")", ...
20,966
all-20967
[ "GetInputPurpose", "is", "a", "wrapper", "around", "gtk_text_view_get_input_purpose", "()", "." ]
[ "func", "(", "v", "*", "TextView", ")", "GetInputPurpose", "(", ")", "InputPurpose", "{", "c", ":=", "C", ".", "gtk_text_view_get_input_purpose", "(", "v", ".", "native", "(", ")", ")", "\n", "<mask>", "InputPurpose", "(", "c", ")", "\n", "}" ]
20,967
all-20968
[ "Patch", "registers", "handlers", "with", "the", "given", "pattern", "for", "PATCH", "method" ]
[ "func", "(", "r", "*", "<mask>", ")", "Patch", "(", "pat", "string", ",", "f", "...", "HandlerFunc", ")", "{", "r", ".", "HandleMethod", "(", "pat", ",", "\"", "\"", ",", "f", "...", ")", "\n", "}" ]
20,968
all-20969
[ "/", "*", "ProcessEvent", "processes", "all", "events", "come", "from", "the", "control", "parent", ".", "If", "a", "control", "processes", "an", "event", "it", "should", "return", "true", ".", "If", "the", "method", "returns", "false", "it", "means", "tha...
[ "func", "(", "l", "*", "ListBox", ")", "ProcessEvent", "(", "event", "Event", ")", "bool", "{", "if", "!", "l", ".", "Active", "(", ")", "||", "!", "l", ".", "Enabled", "(", ")", "{", "return", "false", "\n", "}", "\n\n", "switch", "event", ".", ...
20,969
all-20970
[ "ConnectEntry", "is", "a", "wrapper", "around", "gtk_search_bar_connect_entry", "()", "." ]
[ "func", "(", "v", "*", "SearchBar", ")", "ConnectEntry", "(", "entry", "IEntry", ")", "{", "C", ".", "gtk_search_bar_connect_entry", "(", "v", ".", "native", "(", ")", ",", "<mask>", ".", "toEntry", "(", ")", ")", "\n", "}" ]
20,970
all-20971
[ "Fprintm", "writes", "formatted", "string", "to", "provided", "writer", ".", "This", "is", "same", "as", "fmt", ".", "Fprintf", "but", "uses", "gstring", "formatting", "." ]
[ "func", "Fprintm", "(", "w", "io", ".", "Writer", ",", "format", "string", ",", "args", "<mask>", "[", "string", "]", "interface", "{", "}", ")", "(", "n", "int", ",", "err", "error", ")", "{", "f", ",", "a", ":=", "gformat", "(", "format", ",", ...
20,971
all-20972
[ "Create", "a", "network", "raft", "transport", "that", "will", "handle", "connections", "using", "a", "rafthttp", ".", "Handler", "." ]
[ "func", "raftNetworkTransport", "(", "db", "*", "db", ".", "Node", ",", "<mask>", "string", ",", "logger", "*", "log", ".", "Logger", ",", "timeout", "time", ".", "Duration", ",", "dial", "rafthttp", ".", "Dial", ")", "(", "raft", ".", "Transport", ","...
20,972
all-20973
[ "GetDefaultInterfaces", "fetches", "the", "device", "name", "of", "default", "routable", "interface", "." ]
[ "func", "GetDefaultInterfaces", "(", ")", "(", "<mask>", "[", "string", "]", "uint8", ",", "error", ")", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "runtime", ".", "GOOS", ",", "runtime", ".", "GOARCH", ")", "\n", "}" ]
20,973
all-20974
[ "DumpMetrics", "returns", "the", "metrics", "prometheus", "would", "return", "when", "collected", "as", "a", "string", "for", "fun", "and", "testing" ]
[ "func", "DumpMetrics", "(", "ctx", "context", ".", "Context", ",", "<mask>", "string", ")", "(", "string", ",", "error", ")", "{", "gatherer", ":=", "prometheus", ".", "DefaultGatherer", "\n", "mfs", ",", "err", ":=", "gatherer", ".", "Gather", "(", ")",...
20,974
all-20975
[ "HasX", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasX", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "X", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
20,975
all-20976
[ "GetIconActivatable", "()", "is", "a", "wrapper", "around", "gtk_entry_get_icon_activatable", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetIconActivatable", "(", "iconPos", "EntryIconPosition", ")", "bool", "{", "c", ":=", "C", ".", "gtk_entry_get_icon_activatable", "(", "v", ".", "native", "(", ")", ",", "C", ".", "GtkEntryIconPosition", "(", "iconPos"...
20,976
all-20977
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniformMatrix3x4fv", "(", "program", "uint32", ",", "<mask>", "int32", ",", "count", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpProgramUniformMatrix3x4fv", ",", "5", ",", "uint...
20,977
all-20978
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetSkipAllPausesParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger4", "(", "&"...
20,978
all-20979
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "TypeProfileEntry", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoProfiler", "(", "&", "w", ",", "v", ")", ...
20,979
all-20980
[ "RemoveAllCDDVDDrives", "deletes", "all", "the", "CD", "/", "DVD", "drives", "from", "the", "VM", "s", "VMX", "file", "." ]
[ "func", "(", "v", "*", "VM", ")", "RemoveAllCDDVDDrives", "(", ")", "error", "{", "drives", ",", "err", ":=", "v", ".", "CDDVDs", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "&", "Error", "{", "Operation", ":", "\"", "\"", ",", "Code...
20,980
all-20981
[ "bind", "one", "or", "more", "named", "textures", "to", "a", "sequence", "of", "consecutive", "texture", "units" ]
[ "func", "BindTextures", "(", "<mask>", "uint32", ",", "count", "int32", ",", "textures", "*", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpBindTextures", ",", "3", ",", "uintptr", "(", "first", ")", ",", "uintptr", "(", "count", ")", ",", "ui...
20,981
all-20982
[ "GetSSHPort", "returns", "port", "for", "use", "with", "ssh" ]
[ "func", "(", "d", "*", "SerialDriver", ")", "GetSSHPort", "(", ")", "(", "int", ",", "error", ")", "{", "d", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "Unlock", "(", ")", "\n", "<mask>", "d", ".", "Driver", ".", "GetSSHPort", "(", ")", "\...
20,982
all-20983
[ "DrawRawText", "draws", "the", "part", "of", "text", "that", "is", "inside", "the", "current", "clipping", "rectangle", ".", "DrawRawText", "always", "paints", "string", "as", "is", "-", "no", "color", "changes", ".", "If", "you", "want", "to", "draw", "st...
[ "func", "DrawRawText", "(", "x", ",", "y", "int", ",", "text", "string", ")", "{", "cx", ",", "cy", ",", "cw", ",", "ch", ":=", "ClipRect", "(", ")", "\n", "if", "x", ">=", "cx", "+", "cw", "||", "y", "<", "cy", "||", "y", ">=", "cy", "+", ...
20,983
all-20984
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventAttachedToTarget", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19", "(", "&", "w", ",", "v", ...
20,984
all-20985
[ "Create", "creates", "a", "VirtualApp", "." ]
[ "func", "Create", "(", "rp", "*", "<mask>", ".", "ResourcePool", ",", "name", "string", ",", "resSpec", "*", "types", ".", "ResourceConfigSpec", ",", "vSpec", "*", "types", ".", "VAppConfigSpec", ",", "folder", "*", "object", ".", "Folder", ")", "(", "*"...
20,985
all-20986
[ "ServeTaskHTTPEndpoint", "serves", "task", "/", "container", "metadata", "task", "/", "container", "stats", "and", "IAM", "Role", "Credentials", "for", "tasks", "being", "managed", "by", "the", "agent", "." ]
[ "func", "ServeTaskHTTPEndpoint", "(", "credentialsManager", "credentials", ".", "<mask>", ",", "state", "dockerstate", ".", "TaskEngineState", ",", "ecsClient", "api", ".", "ECSClient", ",", "containerInstanceArn", "string", ",", "cfg", "*", "config", ".", "Config",...
20,986
all-20987
[ "sizeFromTag", "returns", "a", "size", "from", "tag", ".", "If", "size", "tag", "specified", "to", "struct", "field", "it", "will", "converted", "to", "uint64", "and", "returns", "it", ".", "If", "it", "doesn", "t", "specify", "it", "returns", "0", ".", ...
[ "func", "(", "<mask>", "*", "DB", ")", "sizeFromTag", "(", "field", "*", "reflect", ".", "StructField", ")", "(", "size", "uint64", ",", "err", "error", ")", "{", "if", "s", ":=", "field", ".", "Tag", ".", "Get", "(", "dbSizeTag", ")", ";", "s", ...
20,987
all-20988
[ "GetIconName", "is", "a", "wrapper", "around", "gtk_status_icon_get_icon_name", "()" ]
[ "func", "(", "v", "*", "StatusIcon", ")", "GetIconName", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_status_icon_get_icon_name", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n"...
20,988
all-20989
[ "String", "returns", "the", "canonical", "representation", "of", "a", "LintStatus", "as", "a", "string", "." ]
[ "func", "(", "e", "LintStatus", ")", "String", "(", ")", "string", "{", "switch", "e", "{", "case", "NA", ":", "return", "\"", "\"", "\n", "case", "NE", ":", "return", "\"", "\"", "\n", "case", "Pass", ":", "return", "\"", "\"", "\n", "<mask>", "...
20,989
all-20990
[ "Creates", "a", "snapshot", "on", "the", "given", "block", "volume", ".", "volumeId", ":", "The", "id", "of", "the", "volume", "notes", ":", "The", "notes", "or", "name", "to", "assign", "the", "snapshot" ]
[ "func", "(", "c", "*", "ClientManager", ")", "CreateSnapshot", "(", "volumeId", "int", ",", "notes", "string", ")", "(", "datatypes", ".", "Network_Storage", ",", "error", ")", "{", "for", "{", "networkStorage", ",", "err", ":=", "c", ".", "StorageService"...
20,990
all-20991
[ "New", "creates", "a", "new", "CA", "." ]
[ "func", "New", "(", "opts", "...", "Option", ")", "*", "Identity", "{", "c", ":=", "&", "configuration", "{", "}", "\n\n", "for", "_", ",", "opt", ":=", "range", "opts", "{", "<mask>", "(", "opt", ")", "(", "c", ")", "\n", "}", "\n\n", "return", ...
20,991
all-20992
[ "CleanupSubnetIfExists", "removes", "a", "subnet", "if", "there", "are", "no", "IP", "configurations", "(", "through", "NICs", ")", "are", "attached", "to", "it", ".", "Note", "that", "this", "method", "is", "not", "safe", "for", "multiple", "concurrent", "w...
[ "func", "(", "a", "AzureClient", ")", "CleanupSubnetIfExists", "(", "resourceGroup", ",", "virtualNetwork", ",", "name", "string", ")", "error", "{", "return", "a", ".", "cleanupResourceIfExists", "(", "&", "subnetCleanup", "{", "rg", ":", "resourceGroup", ",", ...
20,992
all-20993
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "LayoutTreeNode", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomsnapshot7", "(", "&", "w", ",", "v", ")"...
20,993
all-20994
[ "export", "FrameSet_InvertedFrameRange" ]
[ "func", "FrameSet_InvertedFrameRange", "(", "id", "FrameSetId", ",", "pad", "int", ")", "(", "ret", "*", "C", ".", "<mask>", ")", "{", "fs", ",", "ok", ":=", "sFrameSets", ".", "Get", "(", "id", ")", "\n", "if", "!", "ok", "{", "ret", "=", "C", "...
20,994
all-20995
[ "FSHandler", "returns", "request", "handler", "serving", "static", "files", "from", "the", "given", "root", "folder", ".", "stripSlashes", "indicates", "how", "many", "leading", "slashes", "must", "be", "stripped", "from", "requested", "path", "before", "searching...
[ "func", "FSHandler", "(", "root", "string", ",", "stripSlashes", "int", ")", "RequestHandler", "{", "fs", ":=", "&", "FS", "{", "Root", ":", "<mask>", ",", "IndexNames", ":", "[", "]", "string", "{", "\"", "\"", "}", ",", "GenerateIndexPages", ":", "tr...
20,995
all-20996
[ "RemoveText", "removes", "a", "text", "metric" ]
[ "func", "(", "m", "*", "CirconusMetrics", ")", "RemoveText", "(", "metric", "string", ")", "{", "m", ".", "tm", ".", "Lock", "(", ")", "\n", "defer", "m", ".", "tm", ".", "Unlock", "(", ")", "\n", "<mask>", "(", "m", ".", "text", ",", "metric", ...
20,996
all-20997
[ "Handle", "writes", "message", "from", "log", "record", "into", "file", "." ]
[ "func", "(", "handler", "*", "RotatingFileHandler", ")", "Handle", "(", "record", "*", "Record", ")", "error", "{", "handler", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "handler", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "msg", ":=", "h...
20,997
all-20998
[ "pipelineReplicate", "is", "used", "when", "we", "have", "synchronized", "our", "state", "with", "the", "follower", "and", "want", "to", "switch", "to", "a", "higher", "performance", "pipeline", "mode", "of", "replication", ".", "We", "only", "pipeline", "Appe...
[ "func", "(", "r", "*", "Raft", ")", "pipelineReplicate", "(", "s", "*", "followerReplication", ")", "error", "{", "// Create a new pipeline", "pipeline", ",", "err", ":=", "r", ".", "trans", ".", "AppendEntriesPipeline", "(", "s", ".", "peer", ".", "<mask>",...
20,998
all-20999
[ "From", "public", "API", "method", "to", "proposalc", "." ]
[ "func", "(", "s", "*", "etcdStore", ")", "proposeInternalRaftRequest", "(", "req", "etcdserverpb", ".", "InternalRaftRequest", ")", "(", "<-", "chan", "proto", ".", "Message", ",", "<-", "chan", "error", ",", "error", ")", "{", "data", ",", "err", ":=", ...
20,999
all-21000
[ "FlushCommitAll", "returns", "commits", "that", "have", "the", "specified", "commits", "as", "provenance", ".", "Note", "that", "it", "can", "block", "if", "jobs", "have", "not", "successfully", "completed", ".", "This", "in", "effect", "waits", "for", "all", ...
[ "func", "(", "c", "APIClient", ")", "FlushCommitAll", "(", "commits", "[", "]", "*", "pfs", ".", "Commit", ",", "toRepos", "[", "]", "*", "pfs", ".", "Repo", ")", "(", "[", "]", "*", "pfs", ".", "CommitInfo", ",", "error", ")", "{", "var", "resul...