As of 2026-09-06 (commit c93057d4835c), huggingface/transformers contains 1,315,929 total lines: 1,033,660 code, 103,315 comments, 178,954 blank, across 3,307 files in 11 languages (top: Python 99.6%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving huggingface/transformers to commit c93057d4835c, 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.
This is a very large codebase by counted code lines. Code represents 78.5% of all lines, comments represent 7.9%, and the repository averages 313 code lines per file. Python accounts for 99.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 3194 | 1298898 | 1029434 | 94082 | 175382 |
| JSON | 1 | 2375 | 2375 | 0 | 0 |
| TOML | 2 | 1323 | 1021 | 173 | 129 |
| Dockerfile | 19 | 1059 | 586 | 265 | 208 |
| YAML | 4 | 116 | 101 | 8 | 7 |
| Makefile | 1 | 108 | 67 | 16 | 25 |
| Shell | 6 | 113 | 44 | 57 | 12 |
| Jsonnet | 1 | 38 | 32 | 0 | 6 |
| Markdown | 53 | 10975 | 0 | 7791 | 3184 |
| Plain Text | 25 | 924 | 0 | 923 | 1 |
| SQL | 1 | 0 | 0 | 0 | 0 |
Top language (Python 99.6%). Generated at 2026-09-06T17:05:53.646919108+00:00.
huggingface/transformers has 1,315,929 total lines, including 1,033,660 code lines, 103,315 comment lines, and 178,954 blank lines.
OctoCounts resolved the public GitHub repository to commit c93057d4835c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from c93057d4835cd31752bb56f59989dd27696eb45b at commit c93057d4835c on 2026-09-06T17:05:53.646919108+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: