protocolbuffers/protobuf has 906,385 source lines of code out of 1,180,100 total lines across 2,965 files, counted with tokei from the main ref at commit cf1e10c24b0f on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit cf1e10c24b0f), protocolbuffers/protobuf contains 1,180,100 total lines: 906,385 code, 148,713 comments, 125,002 blank, across 2,965 files in 41 languages (top language: C++ 30.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving protocolbuffers/protobuf to commit cf1e10c24b0f, 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.
This is a large codebase by counted code lines. Code represents 76.8% of all lines, comments represent 12.6%, and the repository averages 306 code lines per file. C++ accounts for 30.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 558 | 335233 | 273277 | 25889 | 36067 |
| C# | 224 | 192675 | 161738 | 16959 | 13978 |
| C Header | 633 | 220671 | 152286 | 42255 | 26130 |
| C | 143 | 99033 | 75198 | 12375 | 11460 |
| Objective-C | 85 | 71606 | 57418 | 6120 | 8068 |
| Java | 164 | 67142 | 47125 | 13193 | 6824 |
| Python | 100 | 45299 | 36623 | 2937 | 5739 |
| Bazel | 218 | 34280 | 29129 | 2154 | 2997 |
| Protocol Buffers | 301 | 35050 | 23040 | 6713 | 5297 |
| Bitbake | 17 | 16695 | 14727 | 563 | 1405 |
| PHP | 136 | 23562 | 11604 | 9566 | 2392 |
| Rust | 85 | 11342 | 8646 | 1196 | 1500 |
Top language: C++ 30.2%. Generated on .
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.
protocolbuffers/protobuf has 906,385 lines of code, plus 148,713 comment lines and 125,002 blank lines, for 1,180,100 total lines at commit cf1e10c24b0f on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit cf1e10c24b0f, 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 main at commit cf1e10c24b0f on November 16, 2026.
Play the growth animation for protocolbuffers/protobuf on this page — 906,385 code lines across 41 languages, counted by tokei.