As of 2026-08-26 (commit a36db2d1ade0), ClickHouse/ClickHouse contains 2,991,216 total lines: 2,308,757 code, 259,575 comments, 422,884 blank, across 10,924 files in 31 languages (top: C++ 63.5%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ClickHouse/ClickHouse to commit a36db2d1ade0, 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 77.2% of all lines, comments represent 8.7%, and the repository averages 211 code lines per file. C++ accounts for 63.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 4871 | 1807826 | 1465878 | 110893 | 231055 |
| C Header | 4768 | 626465 | 395873 | 109201 | 121391 |
| GNU Style Assembly | 97 | 318094 | 271603 | 1749 | 44742 |
| Python | 227 | 84499 | 68278 | 7334 | 8887 |
| C | 108 | 59253 | 44692 | 8412 | 6149 |
| CMake | 409 | 36919 | 30162 | 3474 | 3283 |
| Shell | 78 | 11260 | 7532 | 2448 | 1280 |
| Autoconf | 26 | 6771 | 4204 | 1169 | 1398 |
| JavaScript | 44 | 5499 | 4138 | 755 | 606 |
| Protocol Buffers | 5 | 3426 | 2846 | 202 | 378 |
| C++ Header | 7 | 3734 | 2610 | 544 | 580 |
| Java | 5 | 2300 | 2151 | 28 | 121 |
Top language (C++ 63.5%). Generated at .
ClickHouse/ClickHouse has 2,991,216 total lines, including 2,308,757 code lines, 259,575 comment lines, and 422,884 blank lines.
OctoCounts resolved the public GitHub repository to commit a36db2d1ade0, 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 master at commit a36db2d1ade0 on 2026-08-26T18:20:54.267267208+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: