# apache/kafka SLOC report

> apache/kafka: 491,380 code lines at commit 3b4e1bfc15ec, counted with tokei-15.0.0 on 2026-11-24. Saved result 95b67c949ae5aa3fe9defb40c8a582f6127246f24172c2ab294fb8fab60f901a.

Source: [apache/kafka on GitHub](https://github.com/apache/kafka) · counted commit [3b4e1bfc15ec](https://github.com/apache/kafka/tree/3b4e1bfc15ec0fdcc372ee56a1483b7bcb3c971e)

apache/kafka has 491,380 source lines of code out of 776,312 total lines across 4,517 files, counted with tokei from the trunk ref at commit 3b4e1bfc15ec on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/kafka to commit 3b4e1bfc15ec, 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

apache/kafka: 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 63.3% of all lines, comments represent 25.6%, and the repository averages 109 code lines per file. Java accounts for 90.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 3,941 | 713,305 | 444,896 | 188,046 | 80,363 |
| Scala | 75 | 29,729 | 20,376 | 6,373 | 2,980 |
| JSON | 298 | 17,184 | 16,862 | 0 | 322 |
| Python | 25 | 4,096 | 2,891 | 535 | 670 |
| XML | 28 | 3,768 | 2,640 | 742 | 386 |
| Shell | 60 | 2,639 | 1,209 | 1,153 | 277 |
| YAML | 16 | 1,321 | 1,012 | 259 | 50 |
| Batch | 37 | 901 | 821 | 0 | 80 |
| BASH | 10 | 610 | 328 | 196 | 86 |
| Dockerfile | 3 | 291 | 176 | 60 | 55 |
| XSL | 1 | 206 | 153 | 27 | 26 |
| HTML | 3 | 72 | 16 | 54 | 2 |
| Markdown | 17 | 2,134 | 0 | 1,600 | 534 |
| Plain Text | 3 | 56 | 0 | 54 | 2 |

Top language: Java 90.5%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/apache/kafka/commit/3b4e1bfc15ec0fdcc372ee56a1483b7bcb3c971e?reportId=95b67c949ae5aa3fe9defb40c8a582f6127246f24172c2ab294fb8fab60f901a&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/apache/kafka/commit/3b4e1bfc15ec0fdcc372ee56a1483b7bcb3c971e?reportId=95b67c949ae5aa3fe9defb40c8a582f6127246f24172c2ab294fb8fab60f901a&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 apache/kafka have?

apache/kafka has 491,380 lines of code, plus 199,099 comment lines and 85,833 blank lines, for 776,312 total lines at commit 3b4e1bfc15ec on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the apache/kafka line count measured?

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

### What commit was counted for apache/kafka?

This OctoCounts report was generated from trunk at commit 3b4e1bfc15ec on November 24, 2026.

## Similar repository reports

- [YunaiV/ruoyi-vue-pro](https://octocounts.com/github/YunaiV/ruoyi-vue-pro) — Java, 496,660 code lines
- [apache/james-project](https://octocounts.com/github/apache/james-project) — Java, 477,202 code lines
- [SonarSource/sonarqube](https://octocounts.com/github/SonarSource/sonarqube) — Java, 475,843 code lines
- [apache/phoenix](https://octocounts.com/github/apache/phoenix) — Java, 474,411 code lines
- [alibaba/nacos](https://octocounts.com/github/alibaba/nacos) — Java, 509,736 code lines
- [apache/seatunnel](https://octocounts.com/github/apache/seatunnel) — Java, 473,122 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Kafka vs RabbitMQ](https://octocounts.com/compare/kafka-vs-rabbitmq)
- [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)
