As of 2026-08-25 (commit f6217f891ac0), apple-oss-distributions/xnu contains 2,149,233 total lines: 1,411,712 code, 469,834 comments, 267,687 blank, across 3,907 files in 27 languages (top: C 67.8%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving apple-oss-distributions/xnu to commit f6217f891ac0, 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 65.7% of all lines, comments represent 21.9%, and the repository averages 361 code lines per file. C accounts for 67.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1199 | 1387186 | 957248 | 252702 | 177236 |
| C Header | 1928 | 500853 | 255095 | 190654 | 55104 |
| C++ | 122 | 140005 | 104999 | 14434 | 20572 |
| Python | 87 | 46713 | 38267 | 1735 | 6711 |
| HTML | 256 | 19688 | 19469 | 0 | 219 |
| GNU Style Assembly | 75 | 23781 | 13372 | 7550 | 2859 |
| Makefile | 160 | 8753 | 6235 | 557 | 1961 |
| XML | 1 | 6153 | 4966 | 2 | 1185 |
| Happy | 3 | 2488 | 2161 | 0 | 327 |
| Shell | 20 | 2649 | 2106 | 329 | 214 |
| D | 21 | 2468 | 1867 | 421 | 180 |
| Module-Definition | 1 | 1513 | 1260 | 0 | 253 |
Top language (C 67.8%). Generated at 2026-08-25T08:03:17.879144439+00:00.
apple-oss-distributions/xnu has 2,149,233 total lines, including 1,411,712 code lines, 469,834 comment lines, and 267,687 blank lines.
OctoCounts resolved the public GitHub repository to commit f6217f891ac0, 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 f6217f891ac0 on 2026-08-25T08:03:17.879144439+00:00.