apache/kafka
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.
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 · counted commit 3b4e1bfc15ec
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.
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 | 3941 | 713305 | 444896 | 188046 | 80363 |
| Scala | 75 | 29729 | 20376 | 6373 | 2980 |
| JSON | 298 | 17184 | 16862 | 0 | 322 |
| Python | 25 | 4096 | 2891 | 535 | 670 |
| XML | 28 | 3768 | 2640 | 742 | 386 |
| Shell | 60 | 2639 | 1209 | 1153 | 277 |
| YAML | 16 | 1321 | 1012 | 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 | 2134 | 0 | 1600 | 534 |
| Plain Text | 3 | 56 | 0 | 54 | 2 |
Top language: Java 90.5%. Generated on .
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.
Reproduce this report
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.
Play the growth animation for apache/kafka on this page — 491,380 code lines across 14 languages, counted by tokei.