# pytorch/executorch SLOC report

> As of 2026-11-10 (commit 455aa9c18425), pytorch/executorch contains 2,537,779 total lines: 2,244,495 code, 141,274 comments, 152,010 blank, across 6,818 files in 43 languages (top programming language: Python 20.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

pytorch/executorch has 2,244,495 source lines of code out of 2,537,779 total lines across 6,818 files, counted with tokei from the main ref at commit 455aa9c18425 on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving pytorch/executorch to commit 455aa9c18425, 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

pytorch/executorch: 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 very large codebase by counted code lines. Code represents 88.4% of all lines, comments represent 5.6%, and the repository averages 329 code lines per file. Python is the largest programming language at 20.7% of counted code; data and prose formats such as JSON or YAML hold a larger share.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 99 | 1,243,050 | 1,243,050 | 0 | 0 |
| Python | 2,816 | 581,122 | 464,971 | 38,284 | 77,867 |
| C++ | 1,150 | 295,875 | 238,267 | 27,378 | 30,230 |
| C Header | 1,061 | 150,468 | 100,995 | 32,667 | 16,806 |
| C | 69 | 57,147 | 55,127 | 1,288 | 732 |
| CMake | 192 | 26,996 | 19,673 | 4,677 | 2,646 |
| Objective-C++ | 79 | 23,944 | 19,621 | 1,448 | 2,875 |
| Bazel | 190 | 20,806 | 18,445 | 919 | 1,442 |
| YAML | 231 | 16,773 | 14,481 | 1,037 | 1,255 |
| GLSL | 179 | 22,282 | 14,180 | 3,949 | 4,153 |
| JavaScript | 70 | 13,332 | 11,981 | 549 | 802 |
| Shell | 130 | 14,980 | 10,961 | 2,103 | 1,916 |

Top programming language: Python 20.7%. Generated on November 10, 2026. Canonical report: https://octocounts.com/github/pytorch/executorch

## Reproduce this report

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

## Report FAQ

### How many lines of code does pytorch/executorch have?

pytorch/executorch has 2,244,495 lines of code, plus 141,274 comment lines and 152,010 blank lines, for 2,537,779 total lines at commit 455aa9c18425 on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 455aa9c18425, 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 455aa9c18425 on November 10, 2026.

## Similar repository reports

- [metabase/metabase](https://octocounts.com/github/metabase/metabase) — JSON, 2,217,327 code lines
- [apify/crawlee](https://octocounts.com/github/apify/crawlee) — JSON, 2,282,647 code lines
- [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,349,827 code lines
- [daha1216/dsh-adult-tension](https://octocounts.com/github/daha1216/dsh-adult-tension) — JSON, 2,442,840 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
