pytorch/examples SLOC report
As of 2026-06-20 (commit acc295dc7b90), pytorch/examples contains 109,412 total lines: 10,216 code, 73,503 comments, 25,693 blank, across 205 files in 8 languages (top: Python 82.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving pytorch/examples to commit acc295dc7b90, 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 medium-sized codebase by counted code lines. Code represents 9.3% of all lines, comments represent 67.2%, and the repository averages 50 code lines per file. Python accounts for 82.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Python | 92 | 11309 | 8467 | 916 | 1926 |
| C++ | 9 | 1592 | 1080 | 249 | 263 |
| Shell | 12 | 766 | 475 | 204 | 87 |
| CMake | 8 | 182 | 135 | 11 | 36 |
| C Header | 1 | 68 | 36 | 19 | 13 |
| YAML | 1 | 24 | 23 | 0 | 1 |
| Markdown | 45 | 1407 | 0 | 981 | 426 |
| Plain Text | 37 | 94064 | 0 | 71123 | 22941 |
Top language (Python 82.9%). Generated at 2026-06-20T10:27:00.413587899+00:00.
Report FAQ
How many lines of code does pytorch/examples have?
pytorch/examples has 109,412 total lines, including 10,216 code lines, 73,503 comment lines, and 25,693 blank lines.
How was the pytorch/examples line count measured?
OctoCounts resolved the public GitHub repository to commit acc295dc7b90, 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/examples?
This OctoCounts report was generated from main at commit acc295dc7b90 on 2026-06-20T10:27:00.413587899+00:00.