bazelbuild/bazel has 195,746 source lines of code out of 345,287 total lines across 1,875 files, counted with tokei from the master ref at commit a4ed2782a4dd on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit a4ed2782a4dd), bazelbuild/bazel contains 345,287 total lines: 195,746 code, 103,002 comments, 46,539 blank, across 1,875 files in 29 languages (top language: Java 65.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving bazelbuild/bazel to commit a4ed2782a4dd, 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 56.7% of all lines, comments represent 29.8%, and the repository averages 104 code lines per file. Java accounts for 65.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 1094 | 220964 | 128312 | 60565 | 32087 |
| C++ | 161 | 39565 | 29327 | 5869 | 4369 |
| Bazel | 268 | 20381 | 16253 | 1996 | 2132 |
| C Header | 84 | 9252 | 4701 | 3061 | 1490 |
| Shell | 62 | 7468 | 4507 | 1988 | 973 |
| Python | 38 | 4402 | 3259 | 547 | 596 |
| JSON | 1 | 3033 | 3033 | 0 | 0 |
| Protocol Buffers | 36 | 7046 | 2967 | 3045 | 1034 |
| Prolog | 12 | 1194 | 727 | 180 | 287 |
| XML | 20 | 971 | 661 | 132 | 178 |
| BASH | 2 | 855 | 506 | 288 | 61 |
| PowerShell | 7 | 498 | 374 | 65 | 59 |
Top language: Java 65.6%. Generated on .
bazelbuild/bazel: 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.
bazelbuild/bazel has 195,746 lines of code, plus 103,002 comment lines and 46,539 blank lines, for 345,287 total lines at commit a4ed2782a4dd on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit a4ed2782a4dd, 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 master at commit a4ed2782a4dd on November 16, 2026.
Play the growth animation for bazelbuild/bazel on this page — 195,746 code lines across 29 languages, counted by tokei.