protocolbuffers/protobuf

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.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C++5583352332732772588936067
C#2241926751617381695913978
C Header6332206711522864225526130
C14399033751981237511460
Objective-C85716065741861208068
Java1646714247125131936824
Python100452993662329375739
Bazel218342802912921542997
Protocol Buffers301350502304067135297
Bitbake1716695147275631405
PHP136235621160495662392
Rust8511342864611961500

Top language: C++ 30.2%. 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 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.

How was the protocolbuffers/protobuf line count measured?

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.

What commit was counted for protocolbuffers/protobuf?

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.