QuantConnect/Lean has 649,625 source lines of code out of 1,039,253 total lines across 5,268 files, counted with tokei from the master ref at commit bbcbbe15e22b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
QuantConnect/Lean: 649,625 code lines at commit bbcbbe15e22b, counted with tokei-15.0.0 on 2026-11-16. Saved result dbccf0900c7f9483a949e421e45df881151937318c72f239c0a29842c0995a71.
OctoCounts produced this report by resolving QuantConnect/Lean to commit bbcbbe15e22b, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a large codebase by counted code lines. Code represents 62.5% of all lines, comments represent 28.4%, and the repository averages 123 code lines per file. C# accounts for 72.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C# | 4571 | 788122 | 469423 | 233471 | 85228 |
| JSON | 17 | 134658 | 134497 | 0 | 161 |
| Python | 540 | 42264 | 23113 | 11522 | 7629 |
| XML | 7 | 19199 | 19009 | 186 | 4 |
| MSBuild | 23 | 2285 | 2284 | 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.3%. Generated on .
QuantConnect/Lean: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
QuantConnect/Lean has 649,625 lines of code, plus 295,629 comment lines and 93,999 blank lines, for 1,039,253 total lines at commit bbcbbe15e22b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit bbcbbe15e22b, 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 bbcbbe15e22b on November 16, 2026.
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 — 649,625 code lines across 16 languages, counted by tokei.