# QuantConnect/Lean SLOC report

> QuantConnect/Lean: 642,340 code lines at commit f3d841e60dfd, counted with tokei-14.0.0 on 2026-10-22. Saved result 7014f6c1afdcdd3c88fc3ce0d28b1eb023a6aabb70f7a541cfaf01f660ccb53b.

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.

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.

## Repository size insights

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# | 4,547 | 778,893 | 462,493 | 232,239 | 84,161 |
| JSON | 17 | 134,637 | 134,479 | 0 | 158 |
| Python | 535 | 41,746 | 22,779 | 11,414 | 7,553 |
| XML | 7 | 19,199 | 19,009 | 186 | 4 |
| MSBuild | 23 | 2,282 | 2,281 | 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.0%). Generated at 2026-10-22T06:57:40.543709581Z. Canonical report: https://octocounts.com/github/QuantConnect/Lean/commit/f3d841e60dfd010ee5fc293ea893e56952484108?reportId=7014f6c1afdcdd3c88fc3ce0d28b1eb023a6aabb70f7a541cfaf01f660ccb53b&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/f3d841e60dfd010ee5fc293ea893e56952484108?reportId=7014f6c1afdcdd3c88fc3ce0d28b1eb023a6aabb70f7a541cfaf01f660ccb53b&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 1,029,482 total lines, including 642,340 code lines, 294,289 comment lines, and 92,853 blank lines.

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

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.

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

This OctoCounts report was generated from master at commit f3d841e60dfd on 2026-10-22T06:57:40.543709581Z.

## Similar repository reports

- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 648,664 code lines
- [dotnet/aspnetcore](https://octocounts.com/github/dotnet/aspnetcore) — C#, 674,817 code lines
- [stride3d/stride](https://octocounts.com/github/stride3d/stride) — C#, 775,413 code lines
- [iamcheyan/Zircon-Godot](https://octocounts.com/github/iamcheyan/Zircon-Godot) — C#, 526,597 code lines
- [abpframework/abp](https://octocounts.com/github/abpframework/abp) — C#, 832,458 code lines
- [ppy/osu](https://octocounts.com/github/ppy/osu) — C#, 463,496 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)
- [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)
