# pytorch/executorch SLOC report

> pytorch/executorch: 2,133,333 code lines at commit f2575be5ac0e, counted with tokei-14.0.0 on 2026-10-10. Saved result 98708b91d0e9a2f7d5b4d79c94bde04dc56190fb6f9f52de60780c032bd73df6.

pytorch/executorch has 2,133,333 source lines of code out of 2,403,998 total lines across 6,289 files, counted from the main ref at commit f2575be5ac0e by the OctoCounts tokei engine on 2026-10-10. 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 pytorch/executorch to commit f2575be5ac0e, 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 very large codebase by counted code lines. Code represents 88.7% of all lines, comments represent 5.4%, and the repository averages 339 code lines per file. JSON accounts for 58.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 96 | 1,242,933 | 1,242,933 | 0 | 0 |
| Python | 2,589 | 523,344 | 415,883 | 35,403 | 72,058 |
| C++ | 1,087 | 263,058 | 209,047 | 25,494 | 28,517 |
| C Header | 986 | 140,865 | 94,370 | 30,735 | 15,760 |
| C | 67 | 57,006 | 55,019 | 1,267 | 720 |
| Bazel | 183 | 19,368 | 17,132 | 887 | 1,349 |
| CMake | 168 | 23,905 | 16,970 | 4,475 | 2,460 |
| Objective-C++ | 64 | 20,396 | 16,458 | 1,293 | 2,645 |
| YAML | 229 | 16,851 | 14,594 | 1,015 | 1,242 |
| GLSL | 179 | 21,663 | 13,543 | 3,939 | 4,181 |
| Shell | 127 | 14,225 | 10,336 | 1,992 | 1,897 |
| WebGPU Shader Language | 102 | 7,160 | 6,204 | 314 | 642 |
| Kotlin | 43 | 7,725 | 5,479 | 1,398 | 848 |
| FlatBuffers Schema | 17 | 5,438 | 3,553 | 1,073 | 812 |
| Swift | 7 | 2,233 | 1,327 | 717 | 189 |
| CSS | 1 | 1,316 | 1,130 | 32 | 154 |
| C++ Header | 16 | 2,188 | 1,057 | 774 | 357 |
| Makefile | 6 | 1,451 | 1,003 | 194 | 254 |
| HTML | 2 | 1,054 | 977 | 41 | 36 |
| TOML | 6 | 984 | 701 | 76 | 207 |
| CUDA | 3 | 861 | 670 | 93 | 98 |
| Jupyter Notebooks | 8 | 1,261 | 641 | 392 | 228 |
| Templ | 2 | 771 | 578 | 95 | 98 |
| PowerShell | 2 | 758 | 547 | 134 | 77 |
| Autoconf | 16 | 859 | 516 | 122 | 221 |
| TSX | 2 | 518 | 475 | 5 | 38 |
| LD Script | 3 | 664 | 441 | 134 | 89 |
| BASH | 1 | 414 | 328 | 31 | 55 |
| XML | 10 | 294 | 231 | 39 | 24 |
| Objective-C | 5 | 279 | 221 | 28 | 30 |
| Jinja2 | 2 | 230 | 195 | 0 | 35 |
| Pan | 1 | 205 | 168 | 10 | 27 |
| Batch | 3 | 212 | 163 | 0 | 49 |
| INI | 4 | 285 | 163 | 82 | 40 |
| Arduino C++ | 3 | 236 | 135 | 65 | 36 |
| Java | 2 | 102 | 71 | 13 | 18 |
| Prolog | 2 | 64 | 53 | 0 | 11 |
| TypeScript | 1 | 27 | 21 | 0 | 6 |
| Markdown | 201 | 22,129 | 0 | 16,520 | 5,609 |
| Plain Text | 43 | 666 | 0 | 608 | 58 |

Top language (JSON 58.3%). Generated at 2026-10-10T00:45:27.814316733Z. Canonical report: https://octocounts.com/github/pytorch/executorch/commit/f2575be5ac0e8f1c937a07931d2e08b79353e524?reportId=98708b91d0e9a2f7d5b4d79c94bde04dc56190fb6f9f52de60780c032bd73df6&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/pytorch/executorch/commit/f2575be5ac0e8f1c937a07931d2e08b79353e524?reportId=98708b91d0e9a2f7d5b4d79c94bde04dc56190fb6f9f52de60780c032bd73df6&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 pytorch/executorch have?

pytorch/executorch has 2,403,998 total lines, including 2,133,333 code lines, 129,490 comment lines, and 141,175 blank lines.

### How was the pytorch/executorch line count measured?

OctoCounts resolved the public GitHub repository to commit f2575be5ac0e, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for pytorch/executorch?

This OctoCounts report was generated from main at commit f2575be5ac0e on 2026-10-10T00:45:27.814316733Z.

## Similar repository reports

- [BAITC-Hacks/hack-96839d9e-hustlers](https://octocounts.com/github/BAITC-Hacks/hack-96839d9e-hustlers) — JSON, 2,167,611 code lines
- [cheaper-inference/OmniRoute](https://octocounts.com/github/cheaper-inference/OmniRoute) — JSON, 2,137,083 code lines
- [apify/crawlee](https://octocounts.com/github/apify/crawlee) — JSON, 2,283,279 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 code lines
- [baserow/baserow](https://octocounts.com/github/baserow/baserow) — JSON, 1,983,405 code lines
- [wikimedia/mediawiki](https://octocounts.com/github/wikimedia/mediawiki) — JSON, 1,950,977 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)
