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.
As of 2026-10-22 (commit f3d841e60dfd), QuantConnect/Lean contains 1,029,482 total lines: 642,340 code, 294,289 comments, 92,853 blank, across 5,239 files in 16 languages (top: C# 72.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
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 |
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.543709581+00:00.
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 12 languages, counted by tokei.