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.

LanguageFilesLinesCodeCommentsBlanks
C++5583385052761502602136334
C#2241931081621181697914011
C Header6332209921525254230826159
C14399959760001242611533
Objective-C85717445751561368093
Java1646727347226132166831
Python99454433678429315728
Bazel218342922913621592997
Protocol Buffers299351992322166805298
Bitbake1716674147964851393
PHP136235641160695662392
Rust8511450873011981522
Ruby3547413367796578
CMake2535103012218280
JSON52565256500
Shell3122671629348290
XML26135712851656
Lua290170377121
C++ Header61028687123218
Swift36455115975
Go43723083034
Rakefile33202473835
Autoconf63422455146
Kotlin1242720513488
MSBuild91891471032
TOML122021433029
Makefile212093126
Dart211490717
Emacs Lisp1198866646
Vim Script1847491
Visual Studio Solution1545400
Batch37153216
YAML25237510
AWK25034610
Objective-C++13814195
PowerShell120965
M4111803
NuGet Config18710
LD Script16600
Markdown44371702767950
Plain Text59415603979177

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

Reproduce this exact report and configuration.

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.