cockroachdb/cockroach

cockroachdb/cockroach has 3,085,053 source lines of code out of 4,182,809 total lines across 12,785 files, counted with tokei from the 8812064a015d2faf99d3fc7e15880f94042954b0 ref at commit 8812064a015d on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

cockroachdb/cockroach: 3,085,053 code lines at commit 8812064a015d, counted with tokei-15.0.0 on 2026-11-09. Saved result 57da8c5fb01ea50f6302d5380b140494143b61c2b375d0e9287771b1d2c539d2.

OctoCounts produced this report by resolving cockroachdb/cockroach to commit 8812064a015d, 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 very large codebase by counted code lines. Code represents 73.8% of all lines, comments represent 16.7%, and the repository averages 241 code lines per file. Go accounts for 84.1% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Go890734716662593330544487333849
JSON201123345123334011
YAML10810885510261531143126
Bazel135181836782386422956
TSX518732786275142306297
TypeScript436393023073745074058
Happy4238882247101417
Protocol Buffers1753863415558182384838
Sass194145401145610522032
SQL9097449039558147
XML167810780109
Shell11510340704917421549
TCL75796957647831422
Python1629272036456435
BASH2223951905221269
C325861898482206
SVG871681167542
HCL61871153751283
C++31672142255195
JavaScript221462962335165
TOML3600580911
PlantUML17805780202
Java44934113052
C#14343931031
C Header4118629281480
Vim Script4292263821
Templ4234212814
Dockerfile83182057340
FlatBuffers Schema4594184310100
AWK42481437629
Makefile6171895725
HTML1595900
PHP1353014
Go HTML1151500
MSBuild19900
Ruby18602
GNU Style Assembly110442
FORTRAN Legacy12200
Markdown90146710106424029
Plain Text296136849010567131178

Top language: Go 84.1%. Generated on .

Counting rules and retention

cockroachdb/cockroach: 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 cockroachdb/cockroach have?

cockroachdb/cockroach has 3,085,053 lines of code, plus 698,670 comment lines and 399,086 blank lines, for 4,182,809 total lines at commit 8812064a015d on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the cockroachdb/cockroach line count measured?

OctoCounts resolved the public GitHub repository to commit 8812064a015d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for cockroachdb/cockroach?

This OctoCounts report was generated from 8812064a015d2faf99d3fc7e15880f94042954b0 at commit 8812064a015d on November 9, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for cockroachdb/cockroach on this page — 3,085,053 code lines across 40 languages, counted by tokei.