elastic/elasticsearch has 3,254,671 source lines of code out of 4,529,410 total lines across 22,672 files, counted from the main ref at commit 5a62eae42c20 by the OctoCounts tokei engine on 2026-10-24. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
elastic/elasticsearch: 3,254,671 code lines at commit 5a62eae42c20, counted with tokei-14.0.0 on 2026-10-24. Saved result c7553d09019243146f74ff5b1e8557c197980feadfaa3dcafe21a7aa492c740a.
OctoCounts produced this report by resolving elastic/elasticsearch to commit 5a62eae42c20, 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 very large codebase by counted code lines. Code represents 71.9% of all lines, comments represent 17.1%, and the repository averages 144 code lines per file. Java accounts for 91.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 20190 | 4030002 | 2972788 | 604895 | 452319 |
| C Header | 8 | 188567 | 127826 | 45972 | 14769 |
| JSON | 999 | 66567 | 66556 | 0 | 11 |
| C++ | 34 | 74512 | 51682 | 16119 | 6711 |
| YAML | 236 | 13455 | 10565 | 2092 | 798 |
| Groovy | 62 | 12785 | 10057 | 1160 | 1568 |
| XML | 12 | 6998 | 6837 | 106 | 55 |
| TOML | 11 | 5205 | 3673 | 1006 | 526 |
| AsciiDoc | 17 | 1734 | 1280 | 21 | 433 |
| Shell | 13 | 1876 | 1151 | 505 | 220 |
| Batch | 24 | 656 | 516 | 2 | 138 |
| Dockerfile | 5 | 711 | 487 | 130 | 94 |
| SQL | 13 | 867 | 300 | 561 | 6 |
| Makefile | 2 | 461 | 273 | 110 | 78 |
| BASH | 27 | 505 | 266 | 139 | 100 |
| Python | 2 | 380 | 265 | 49 | 66 |
| Forge Config | 3 | 75 | 66 | 0 | 9 |
| Protocol Buffers | 2 | 91 | 37 | 40 | 14 |
| JavaScript | 2 | 38 | 31 | 1 | 6 |
| FreeMarker | 3 | 7 | 7 | 0 | 0 |
| Mustache | 1 | 5 | 5 | 0 | 0 |
| SVG | 1 | 4 | 3 | 1 | 0 |
| Markdown | 67 | 6774 | 0 | 5039 | 1735 |
| Plain Text | 938 | 117135 | 0 | 96203 | 20932 |
Top language (Java 91.3%). Generated at .
elastic/elasticsearch has 4,529,410 total lines, including 3,254,671 code lines, 774,151 comment lines, and 500,588 blank lines.
OctoCounts resolved the public GitHub repository to commit 5a62eae42c20, 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 main at commit 5a62eae42c20 on 2026-10-24T11:54:43.057913247Z.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for elastic/elasticsearch on this page — 3,254,671 code lines across 24 languages, counted by tokei.