protocolbuffers/protobuf
protocolbuffers/protobuf has 911,426 source lines of code out of 1,185,768 total lines across 2,962 files, counted with tokei from the main ref at commit 72c4274dd144 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
protocolbuffers/protobuf: 911,426 code lines at commit 72c4274dd144, counted with tokei-15.0.0 on 2026-11-24. Saved result 61bdcd413ba37a4edabe6b578648321f288bbf1e314accfb1005676de4993f58.
Source: protocolbuffers/protobuf on GitHub · counted commit 72c4274dd144
OctoCounts produced this report by resolving protocolbuffers/protobuf to commit 72c4274dd144, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
Repository size insights
This is a large codebase by counted code lines. Code represents 76.9% of all lines, comments represent 12.6%, and the repository averages 308 code lines per file. C++ accounts for 30.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 558 | 338505 | 276150 | 26021 | 36334 |
| C# | 224 | 193108 | 162118 | 16979 | 14011 |
| C Header | 633 | 220992 | 152525 | 42308 | 26159 |
| C | 143 | 99959 | 76000 | 12426 | 11533 |
| Objective-C | 85 | 71744 | 57515 | 6136 | 8093 |
| Java | 164 | 67273 | 47226 | 13216 | 6831 |
| Python | 99 | 45443 | 36784 | 2931 | 5728 |
| Bazel | 218 | 34292 | 29136 | 2159 | 2997 |
| Protocol Buffers | 299 | 35199 | 23221 | 6680 | 5298 |
| Bitbake | 17 | 16674 | 14796 | 485 | 1393 |
| PHP | 136 | 23564 | 11606 | 9566 | 2392 |
| Rust | 85 | 11450 | 8730 | 1198 | 1522 |
| Ruby | 35 | 4741 | 3367 | 796 | 578 |
| CMake | 25 | 3510 | 3012 | 218 | 280 |
| JSON | 5 | 2565 | 2565 | 0 | 0 |
| Shell | 31 | 2267 | 1629 | 348 | 290 |
| XML | 26 | 1357 | 1285 | 16 | 56 |
| Lua | 2 | 901 | 703 | 77 | 121 |
| C++ Header | 6 | 1028 | 687 | 123 | 218 |
| 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 | 427 | 205 | 134 | 88 |
| MSBuild | 9 | 189 | 147 | 10 | 32 |
| TOML | 12 | 202 | 143 | 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 | 44 | 3717 | 0 | 2767 | 950 |
| Plain Text | 59 | 4156 | 0 | 3979 | 177 |
Top language: C++ 30.3%. Generated on .
Counting rules and retention
protocolbuffers/protobuf: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
Reproduce this report
Report FAQ
How many lines of code does protocolbuffers/protobuf have?
protocolbuffers/protobuf has 911,426 lines of code, plus 148,903 comment lines and 125,439 blank lines, for 1,185,768 total lines at commit 72c4274dd144 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the protocolbuffers/protobuf line count measured?
OctoCounts resolved the public GitHub repository to commit 72c4274dd144, 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 72c4274dd144 on November 24, 2026.
Play the growth animation for protocolbuffers/protobuf on this page — 911,426 code lines across 41 languages, counted by tokei.