# QuantConnect/Lean SLOC report

> QuantConnect/Lean: 649,625 code lines at commit bbcbbe15e22b, counted with tokei-15.0.0 on 2026-11-16. Saved result dbccf0900c7f9483a949e421e45df881151937318c72f239c0a29842c0995a71.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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# | 4,571 | 788,122 | 469,423 | 233,471 | 85,228 |
| JSON | 17 | 134,658 | 134,497 | 0 | 161 |
| Python | 540 | 42,264 | 23,113 | 11,522 | 7,629 |
| XML | 7 | 19,199 | 19,009 | 186 | 4 |
| MSBuild | 23 | 2,285 | 2,284 | 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 | 2,412 | 0 | 1,658 | 754 |
| Plain Text | 67 | 48,523 | 0 | 48,523 | 0 |

Top language: C# 72.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/QuantConnect/Lean/commit/bbcbbe15e22b1cc137311581ce4b9bac464026cb?reportId=dbccf0900c7f9483a949e421e45df881151937318c72f239c0a29842c0995a71&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/QuantConnect/Lean/commit/bbcbbe15e22b1cc137311581ce4b9bac464026cb?reportId=dbccf0900c7f9483a949e421e45df881151937318c72f239c0a29842c0995a71&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does QuantConnect/Lean have?

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.

### How was the QuantConnect/Lean line count measured?

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.

### What commit was counted for QuantConnect/Lean?

This OctoCounts report was generated from master at commit bbcbbe15e22b on November 16, 2026.

## Similar repository reports

- [smartstore/SmartStoreNET](https://octocounts.com/github/smartstore/SmartStoreNET) — C#, 652,282 code lines
- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 637,226 code lines
- [dotnet/aspnetcore](https://octocounts.com/github/dotnet/aspnetcore) — C#, 681,171 code lines
- [Kareadita/Kavita](https://octocounts.com/github/Kareadita/Kavita) — C#, 785,235 code lines
- [iamcheyan/Zircon-Godot](https://octocounts.com/github/iamcheyan/Zircon-Godot) — C#, 526,793 code lines
- [Devolutions/UniGetUI](https://octocounts.com/github/Devolutions/UniGetUI) — C#, 524,989 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
