As of 2026-08-26 (commit 20d81283e880), apache/kafka contains 757,461 total lines: 480,371 code, 192,712 comments, 84,378 blank, across 4,465 files in 14 languages (top: Java 90.5%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving apache/kafka to commit 20d81283e880, 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.
This is a large codebase by counted code lines. Code represents 63.4% of all lines, comments represent 25.4%, and the repository averages 108 code lines per file. Java accounts for 90.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 3894 | 695312 | 434683 | 181712 | 78917 |
| Scala | 77 | 30263 | 20832 | 6376 | 3055 |
| JSON | 294 | 16266 | 15948 | 0 | 318 |
| Python | 24 | 3695 | 2607 | 488 | 600 |
| XML | 27 | 3689 | 2591 | 720 | 378 |
| Shell | 59 | 2620 | 1206 | 1138 | 276 |
| YAML | 16 | 1321 | 1012 | 259 | 50 |
| Batch | 37 | 901 | 821 | 0 | 80 |
| BASH | 10 | 610 | 328 | 196 | 86 |
| Dockerfile | 3 | 286 | 174 | 58 | 54 |
| XSL | 1 | 206 | 153 | 27 | 26 |
| HTML | 3 | 72 | 16 | 54 | 2 |
Top language (Java 90.5%). Generated at .
apache/kafka has 757,461 total lines, including 480,371 code lines, 192,712 comment lines, and 84,378 blank lines.
OctoCounts resolved the public GitHub repository to commit 20d81283e880, 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 trunk at commit 20d81283e880 on 2026-08-26T18:20:24.225170519+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: