# numpy/numpy SLOC report

> As of 2026-09-16 (commit f2e0ef9e47a2), numpy/numpy contains 592,451 total lines: 436,444 code, 103,433 comments, 52,574 blank, across 961 files in 22 languages (top: Python 44.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

numpy/numpy has 436,444 source lines of code out of 592,451 total lines across 961 files, counted from the f2e0ef9e47a22ba39be5136ac6a94a4f39b25cbe ref at commit f2e0ef9e47a2 by the OctoCounts tokei engine on 2026-09-16. 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 numpy/numpy to commit f2e0ef9e47a2, 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 73.7% of all lines, comments represent 17.5%, and the repository averages 454 code lines per file. Python accounts for 44.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 400 | 212,348 | 192,783 | 6,428 | 13,137 |
| C | 180 | 281,947 | 169,157 | 83,377 | 29,413 |
| C Header | 221 | 43,647 | 31,427 | 7,820 | 4,400 |
| C++ | 30 | 22,802 | 18,028 | 2,003 | 2,771 |
| Cython | 16 | 14,971 | 13,488 | 511 | 972 |
| C++ Header | 21 | 5,386 | 3,945 | 768 | 673 |
| Meson | 15 | 3,119 | 2,552 | 381 | 186 |
| SWIG | 2 | 3,083 | 2,317 | 518 | 248 |
| Autoconf | 7 | 1,132 | 785 | 246 | 101 |
| Bitbake | 4 | 853 | 774 | 30 | 49 |
| ReStructuredText | 5 | 578 | 420 | 0 | 158 |
| TOML | 7 | 564 | 404 | 77 | 83 |

Top language (Python 44.2%). Generated at 2026-09-16T05:30:09.049512639+00:00. Canonical report: https://octocounts.com/github/numpy/numpy

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/numpy/numpy/commit/f2e0ef9e47a22ba39be5136ac6a94a4f39b25cbe?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).

## Report FAQ

### How many lines of code does numpy/numpy have?

numpy/numpy has 592,451 total lines, including 436,444 code lines, 103,433 comment lines, and 52,574 blank lines.

### How was the numpy/numpy line count measured?

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

### What commit was counted for numpy/numpy?

This OctoCounts report was generated from f2e0ef9e47a22ba39be5136ac6a94a4f39b25cbe at commit f2e0ef9e47a2 on 2026-09-16T05:30:09.049512639+00:00.

## Similar repository reports

- [HKUDS/DeepTutor](https://octocounts.com/github/HKUDS/DeepTutor) — Python, 438,547 code lines
- [repowise-dev/repowise](https://octocounts.com/github/repowise-dev/repowise) — Python, 429,609 code lines
- [marin-community/marin](https://octocounts.com/github/marin-community/marin) — Python, 446,834 code lines
- [raullenchai/Rapid-MLX](https://octocounts.com/github/raullenchai/Rapid-MLX) — Python, 449,160 code lines
- [OpenBB-finance/OpenBB](https://octocounts.com/github/OpenBB-finance/OpenBB) — Python, 450,806 code lines
- [sefcom/oxidizer](https://octocounts.com/github/sefcom/oxidizer) — Python, 457,905 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)
- [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)
