protocolbuffers/protobuf SLOC report
As of 2026-07-18 (commit baeb5723ee8e), protocolbuffers/protobuf contains 1,107,191 total lines: 856,465 code, 133,302 comments, 117,424 blank, across 2,805 files in 41 languages (top: C++ 28.8%). Counted with tokei via OctoCounts.
Repository size insights
This is a large codebase by counted code lines. Code represents 77.4% of all lines, comments represent 12.0%, and the repository averages 305 code lines per file. C++ accounts for 28.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| C++ | 510 | 301139 | 247031 | 22299 | 31809 |
| C# | 220 | 190235 | 160624 | 15763 | 13848 |
| C Header | 594 | 208036 | 144697 | 38250 | 25089 |
| C | 135 | 89290 | 70127 | 8325 | 10838 |
| Objective-C | 80 | 70042 | 56359 | 5775 | 7908 |
| Java | 160 | 65760 | 46061 | 13022 | 6677 |
| Python | 100 | 43318 | 34834 | 3026 | 5458 |
| Bazel | 212 | 31286 | 26890 | 1646 | 2750 |
| Protocol Buffers | 290 | 34051 | 22424 | 6504 | 5123 |
| Bitbake | 17 | 16090 | 14066 | 651 | 1373 |
| PHP | 135 | 23346 | 11512 | 9454 | 2380 |
| Rust | 69 | 9879 | 7698 | 858 | 1323 |
Top language (C++ 28.8%). Generated at 2026-07-18T05:05:04.356579656+00:00.
Report FAQ
How many lines of code does protocolbuffers/protobuf have?
protocolbuffers/protobuf has 1,107,191 total lines, including 856,465 code lines, 133,302 comment lines, and 117,424 blank lines.
How was the protocolbuffers/protobuf line count measured?
OctoCounts resolved the public GitHub repository to commit baeb5723ee8e, 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 baeb5723ee8e on 2026-07-18T05:05:04.356579656+00:00.