# apache/kafka SLOC report

> As of 2026-09-17 (commit da0783634446), apache/kafka contains 760,212 total lines: 482,069 code, 193,641 comments, 84,502 blank, across 4,471 files in 14 languages (top: Java 90.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

apache/kafka has 482,069 source lines of code out of 760,212 total lines across 4,471 files, counted from the da078363444635eebe52cefc5a2c1baf11b8fbce ref at commit da0783634446 by the OctoCounts tokei engine on 2026-09-17. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving apache/kafka to commit da0783634446, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 63.4% of all lines, comments represent 25.5%, and the repository averages 108 code lines per file. Java accounts for 90.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 3,901 | 697,504 | 435,774 | 182,673 | 79,057 |
| Scala | 76 | 30,127 | 20,746 | 6,341 | 3,040 |
| JSON | 294 | 16,961 | 16,643 | 0 | 318 |
| Python | 24 | 3,692 | 2,604 | 488 | 600 |
| XML | 27 | 3,690 | 2,592 | 720 | 378 |
| Shell | 59 | 2,620 | 1,206 | 1,138 | 276 |
| YAML | 16 | 1,321 | 1,012 | 259 | 50 |
| Batch | 37 | 901 | 821 | 0 | 80 |
| BASH | 10 | 610 | 328 | 196 | 86 |
| Dockerfile | 3 | 288 | 174 | 60 | 54 |
| XSL | 1 | 206 | 153 | 27 | 26 |
| HTML | 3 | 72 | 16 | 54 | 2 |

Top language (Java 90.4%). Generated at 2026-09-17T06:20:41.871742964+00:00. Canonical report: https://octocounts.com/github/apache/kafka

## Reproduce this report

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

## Report FAQ

### How many lines of code does apache/kafka have?

apache/kafka has 760,212 total lines, including 482,069 code lines, 193,641 comment lines, and 84,502 blank lines.

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

OctoCounts resolved the public GitHub repository to commit da0783634446, 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 da078363444635eebe52cefc5a2c1baf11b8fbce at commit da0783634446 on 2026-09-17T06:20:41.871742964+00:00.

## Similar repository reports

- [spring-projects/spring-framework](https://octocounts.com/github/spring-projects/spring-framework) — Java, 443,819 code lines
- [blitzy-public-samples/dhis2-core](https://octocounts.com/github/blitzy-public-samples/dhis2-core) — Java, 431,615 code lines
- [apache/cassandra](https://octocounts.com/github/apache/cassandra) — Java, 535,394 code lines
- [libgdx/libgdx](https://octocounts.com/github/libgdx/libgdx) — Java, 542,150 code lines
- [apache/calcite](https://octocounts.com/github/apache/calcite) — Java, 554,520 code lines
- [dhis2/dhis2-core](https://octocounts.com/github/dhis2/dhis2-core) — Java, 406,053 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)
- [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)
