# pybind/pybind11 SLOC report

> pybind/pybind11: 23,005 code lines at commit fdec8c350aa0, counted with tokei-14.0.0 on 2026-10-20. Saved result f4a0bf8155b3ea4a45952bb1a99be24f7bcd9539b4b989f52565eecc266dde11.

pybind/pybind11 has 23,005 source lines of code out of 32,369 total lines across 104 files, counted from the master ref at commit fdec8c350aa0 by the OctoCounts tokei engine on 2026-10-20. 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 pybind/pybind11 to commit fdec8c350aa0, 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 71.1% of all lines, comments represent 16.1%, and the repository averages 221 code lines per file. C Header accounts for 84.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 65 | 27,571 | 19,493 | 4,660 | 3,418 |
| CMake | 10 | 2,335 | 1,704 | 351 | 280 |
| Python | 11 | 1,381 | 1,069 | 79 | 233 |
| Autoconf | 3 | 294 | 208 | 14 | 72 |
| TOML | 1 | 221 | 188 | 4 | 29 |
| ReStructuredText | 1 | 215 | 175 | 0 | 40 |
| JSON | 1 | 93 | 93 | 0 | 0 |
| C++ | 8 | 96 | 49 | 30 | 17 |
| Shell | 1 | 44 | 26 | 13 | 5 |
| Markdown | 2 | 104 | 0 | 63 | 41 |
| Plain Text | 1 | 15 | 0 | 9 | 6 |

Top language (C Header 84.7%). Generated at 2026-10-20T00:39:25.154727208Z. Canonical report: https://octocounts.com/github/pybind/pybind11/commit/fdec8c350aa0c7fbb552ec70d8176f8a13eb0561?reportId=f4a0bf8155b3ea4a45952bb1a99be24f7bcd9539b4b989f52565eecc266dde11&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/pybind/pybind11/commit/fdec8c350aa0c7fbb552ec70d8176f8a13eb0561?reportId=f4a0bf8155b3ea4a45952bb1a99be24f7bcd9539b4b989f52565eecc266dde11&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 pybind/pybind11 have?

pybind/pybind11 has 32,369 total lines, including 23,005 code lines, 5,223 comment lines, and 4,141 blank lines.

### How was the pybind/pybind11 line count measured?

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

### What commit was counted for pybind/pybind11?

This OctoCounts report was generated from master at commit fdec8c350aa0 on 2026-10-20T00:39:25.154727208Z.

## Similar repository reports

- [gabime/spdlog](https://octocounts.com/github/gabime/spdlog) — C Header, 22,755 code lines
- [rbock/sqlpp11](https://octocounts.com/github/rbock/sqlpp11) — C Header, 21,532 code lines
- [charles-lunarg/vk-bootstrap](https://octocounts.com/github/charles-lunarg/vk-bootstrap) — C Header, 24,692 code lines
- [Tencent/rapidjson](https://octocounts.com/github/Tencent/rapidjson) — C Header, 21,118 code lines
- [davmac314/dinit](https://octocounts.com/github/davmac314/dinit) — C Header, 26,446 code lines
- [google/googletest](https://octocounts.com/github/google/googletest) — C Header, 26,863 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)
