# bazelbuild/bazel SLOC report

> bazelbuild/bazel: 195,746 code lines at commit a4ed2782a4dd, counted with tokei-15.0.0 on 2026-11-16. Saved result 7e5e619659f0eb25634b609b0e0fd27109729dd629134f1d2cd0fcaa07f27e04.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,094 | 220,964 | 128,312 | 60,565 | 32,087 |
| C++ | 161 | 39,565 | 29,327 | 5,869 | 4,369 |
| Bazel | 268 | 20,381 | 16,253 | 1,996 | 2,132 |
| C Header | 84 | 9,252 | 4,701 | 3,061 | 1,490 |
| Shell | 62 | 7,468 | 4,507 | 1,988 | 973 |
| Python | 38 | 4,402 | 3,259 | 547 | 596 |
| JSON | 1 | 3,033 | 3,033 | 0 | 0 |
| Protocol Buffers | 36 | 7,046 | 2,967 | 3,045 | 1,034 |
| Prolog | 12 | 1,194 | 727 | 180 | 287 |
| XML | 20 | 971 | 661 | 132 | 178 |
| BASH | 2 | 855 | 506 | 288 | 61 |
| PowerShell | 7 | 498 | 374 | 65 | 59 |
| C++ Header | 1 | 404 | 362 | 22 | 20 |
| Objective-C | 1 | 305 | 225 | 55 | 25 |
| Bitbake | 2 | 217 | 165 | 24 | 28 |
| HTML | 25 | 138 | 138 | 0 | 0 |
| Makefile | 2 | 98 | 56 | 11 | 31 |
| jq | 1 | 88 | 42 | 43 | 3 |
| RPM Specfile | 1 | 45 | 35 | 0 | 10 |
| Go | 1 | 39 | 31 | 1 | 7 |
| Batch | 4 | 59 | 17 | 32 | 10 |
| Templ | 2 | 24 | 16 | 0 | 8 |
| TOML | 1 | 16 | 15 | 1 | 0 |
| Forge Config | 1 | 8 | 8 | 0 | 0 |
| C | 2 | 48 | 4 | 40 | 4 |
| Module-Definition | 1 | 6 | 4 | 2 | 0 |
| Objective-C++ | 1 | 25 | 1 | 22 | 2 |
| Markdown | 23 | 26,582 | 0 | 23,695 | 2,887 |
| Plain Text | 21 | 1,556 | 0 | 1,318 | 238 |

Top language: Java 65.6%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/bazelbuild/bazel/commit/a4ed2782a4ddcf8987c9171d8b392351b41d1279?reportId=7e5e619659f0eb25634b609b0e0fd27109729dd629134f1d2cd0fcaa07f27e04&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/bazelbuild/bazel/commit/a4ed2782a4ddcf8987c9171d8b392351b41d1279?reportId=7e5e619659f0eb25634b609b0e0fd27109729dd629134f1d2cd0fcaa07f27e04&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does bazelbuild/bazel have?

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.

### How was the bazelbuild/bazel line count measured?

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.

### What commit was counted for bazelbuild/bazel?

This OctoCounts report was generated from master at commit a4ed2782a4dd on November 16, 2026.

## Similar repository reports

- [jenkinsci/jenkins](https://octocounts.com/github/jenkinsci/jenkins) — Java, 195,924 code lines
- [apache/dolphinscheduler](https://octocounts.com/github/apache/dolphinscheduler) — Java, 197,044 code lines
- [frankframework/frankframework](https://octocounts.com/github/frankframework/frankframework) — Java, 198,214 code lines
- [Ray-T-r/Minecraft-Forbric-mod-loader](https://octocounts.com/github/Ray-T-r/Minecraft-Forbric-mod-loader) — Java, 188,844 code lines
- [wala/WALA](https://octocounts.com/github/wala/WALA) — Java, 187,930 code lines
- [broadinstitute/gatk](https://octocounts.com/github/broadinstitute/gatk) — Java, 204,473 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
