QuantConnect/Lean has 642,340 source lines of code out of 1,029,482 total lines across 5,239 files, counted from the master ref at commit f3d841e60dfd by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
QuantConnect/Lean: 642,340 code lines at commit f3d841e60dfd, counted with tokei-14.0.0 on 2026-10-22. Saved result 7014f6c1afdcdd3c88fc3ce0d28b1eb023a6aabb70f7a541cfaf01f660ccb53b.
OctoCounts produced this report by resolving QuantConnect/Lean to commit f3d841e60dfd, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a large codebase by counted code lines. Code represents 62.4% of all lines, comments represent 28.6%, and the repository averages 123 code lines per file. C# accounts for 72.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C# | 4547 | 778893 | 462493 | 232239 | 84161 |
| JSON | 17 | 134637 | 134479 | 0 | 158 |
| Python | 535 | 41746 | 22779 | 11414 | 7553 |
| XML | 7 | 19199 | 19009 | 186 | 4 |
| MSBuild | 23 | 2282 | 2281 | 0 | 1 |
| CSS | 2 | 562 | 447 | 21 | 94 |
| HTML | 2 | 358 | 332 | 24 | 2 |
| Jupyter Notebooks | 8 | 507 | 227 | 198 | 82 |
| Visual Studio Solution | 1 | 162 | 161 | 0 | 1 |
| Shell | 3 | 154 | 108 | 14 | 32 |
| Dockerfile | 1 | 27 | 12 | 8 | 7 |
| Batch | 1 | 9 | 4 | 3 | 2 |
| Forge Config | 1 | 4 | 4 | 0 | 0 |
| INI | 1 | 7 | 4 | 1 | 2 |
| Markdown | 23 | 2412 | 0 | 1658 | 754 |
| Plain Text | 67 | 48523 | 0 | 48523 | 0 |
Top language (C# 72.0%). Generated at .
QuantConnect/Lean has 1,029,482 total lines, including 642,340 code lines, 294,289 comment lines, and 92,853 blank lines.
OctoCounts resolved the public GitHub repository to commit f3d841e60dfd, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit f3d841e60dfd on 2026-10-22T06:57:40.543709581Z.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for QuantConnect/Lean on this page — 642,340 code lines across 16 languages, counted by tokei.