# protocolbuffers/protobuf SLOC report

> protocolbuffers/protobuf: 893,906 code lines at commit e4a2a180edb6, counted with tokei-14.0.0 on 2026-10-23. Saved result 23a76db7753601344046b03c7e1c614865a99e7d0b9d8df76613ff677ed885a2.

protocolbuffers/protobuf has 893,906 source lines of code out of 1,157,890 total lines across 2,945 files, counted from the main ref at commit e4a2a180edb6 by the OctoCounts tokei engine on 2026-10-23. 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 protocolbuffers/protobuf to commit e4a2a180edb6, 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 77.2% of all lines, comments represent 12.2%, and the repository averages 304 code lines per file. C++ accounts for 29.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 551 | 324,377 | 264,890 | 24,514 | 34,973 |
| C# | 224 | 192,834 | 161,916 | 16,947 | 13,971 |
| C Header | 627 | 217,117 | 150,235 | 41,118 | 25,764 |
| C | 143 | 94,818 | 74,717 | 8,789 | 11,312 |
| Objective-C | 85 | 71,519 | 57,339 | 6,113 | 8,067 |
| Java | 161 | 66,754 | 46,900 | 13,082 | 6,772 |
| Python | 100 | 44,840 | 36,246 | 2,899 | 5,695 |
| Bazel | 218 | 33,308 | 28,740 | 1,674 | 2,894 |
| Protocol Buffers | 300 | 34,234 | 22,732 | 6,297 | 5,205 |
| Bitbake | 17 | 16,639 | 14,671 | 561 | 1,407 |
| PHP | 136 | 23,528 | 11,583 | 9,553 | 2,392 |
| Rust | 85 | 10,907 | 8,440 | 1,018 | 1,449 |
| Ruby | 35 | 4,708 | 3,343 | 788 | 577 |
| CMake | 25 | 3,504 | 3,006 | 218 | 280 |
| JSON | 5 | 2,565 | 2,565 | 0 | 0 |
| Shell | 29 | 2,108 | 1,548 | 288 | 272 |
| XML | 26 | 1,357 | 1,285 | 16 | 56 |
| Lua | 2 | 901 | 703 | 77 | 121 |
| C++ Header | 6 | 1,017 | 678 | 123 | 216 |
| Swift | 3 | 645 | 511 | 59 | 75 |
| Go | 4 | 372 | 308 | 30 | 34 |
| Rakefile | 3 | 320 | 247 | 38 | 35 |
| Autoconf | 6 | 342 | 245 | 51 | 46 |
| Kotlin | 12 | 420 | 205 | 128 | 87 |
| MSBuild | 9 | 189 | 147 | 10 | 32 |
| TOML | 12 | 200 | 141 | 30 | 29 |
| Makefile | 2 | 120 | 93 | 1 | 26 |
| Dart | 2 | 114 | 90 | 7 | 17 |
| Emacs Lisp | 1 | 198 | 86 | 66 | 46 |
| Vim Script | 1 | 84 | 74 | 9 | 1 |
| Visual Studio Solution | 1 | 54 | 54 | 0 | 0 |
| Batch | 3 | 71 | 53 | 2 | 16 |
| YAML | 2 | 52 | 37 | 5 | 10 |
| AWK | 2 | 50 | 34 | 6 | 10 |
| Objective-C++ | 1 | 38 | 14 | 19 | 5 |
| PowerShell | 1 | 20 | 9 | 6 | 5 |
| M4 | 1 | 11 | 8 | 0 | 3 |
| NuGet Config | 1 | 8 | 7 | 1 | 0 |
| LD Script | 1 | 6 | 6 | 0 | 0 |
| Markdown | 43 | 3,557 | 0 | 2,639 | 918 |
| Plain Text | 59 | 3,984 | 0 | 3,809 | 175 |

Top language (C++ 29.6%). Generated at 2026-10-23T08:59:54.022580436Z. Canonical report: https://octocounts.com/github/protocolbuffers/protobuf/commit/e4a2a180edb626726e0cd9af68e55f2e7063d5a7?reportId=23a76db7753601344046b03c7e1c614865a99e7d0b9d8df76613ff677ed885a2&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/protocolbuffers/protobuf/commit/e4a2a180edb626726e0cd9af68e55f2e7063d5a7?reportId=23a76db7753601344046b03c7e1c614865a99e7d0b9d8df76613ff677ed885a2&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 protocolbuffers/protobuf have?

protocolbuffers/protobuf has 1,157,890 total lines, including 893,906 code lines, 140,991 comment lines, and 122,993 blank lines.

### How was the protocolbuffers/protobuf line count measured?

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

### What commit was counted for protocolbuffers/protobuf?

This OctoCounts report was generated from main at commit e4a2a180edb6 on 2026-10-23T08:59:54.022580436Z.

## Similar repository reports

- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 890,159 code lines
- [OpenRCT2/OpenRCT2](https://octocounts.com/github/OpenRCT2/OpenRCT2) — C++, 851,181 code lines
- [organicmaps/organicmaps](https://octocounts.com/github/organicmaps/organicmaps) — C++, 939,720 code lines
- [d99kris/nchat](https://octocounts.com/github/d99kris/nchat) — C++, 850,012 code lines
- [The-OpenROAD-Project/OpenROAD](https://octocounts.com/github/The-OpenROAD-Project/OpenROAD) — C++, 816,455 code lines
- [NVIDIA-Omniverse/PhysX](https://octocounts.com/github/NVIDIA-Omniverse/PhysX) — C++, 1,001,386 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)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
