As of 2026-09-11 (commit e3723e1f1766), apple-oss-distributions/xnu contains 2,117,894 total lines: 1,390,343 code, 464,050 comments, 263,501 blank, across 3,865 files in 27 languages (top: C 67.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving apple-oss-distributions/xnu to commit e3723e1f1766, 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.6% of all lines, comments represent 21.9%, and the repository averages 360 code lines per file. C accounts for 67.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1189 | 1369806 | 944140 | 250805 | 174861 |
| C Header | 1898 | 489805 | 249135 | 186945 | 53725 |
| C++ | 120 | 138243 | 103618 | 14288 | 20337 |
| Python | 87 | 45819 | 37525 | 1730 | 6564 |
| HTML | 256 | 19690 | 19471 | 0 | 219 |
| GNU Style Assembly | 75 | 23714 | 13355 | 7518 | 2841 |
| Makefile | 159 | 8714 | 6190 | 568 | 1956 |
| XML | 1 | 6153 | 4966 | 2 | 1185 |
| Happy | 3 | 2488 | 2161 | 0 | 327 |
| Shell | 20 | 2591 | 2065 | 322 | 204 |
| D | 21 | 2466 | 1865 | 421 | 180 |
| Module-Definition | 1 | 1468 | 1226 | 0 | 242 |
Top language (C 67.9%). Generated at 2026-09-11T05:25:59.485916626+00:00.
apple-oss-distributions/xnu has 2,117,894 total lines, including 1,390,343 code lines, 464,050 comment lines, and 263,501 blank lines.
OctoCounts resolved the public GitHub repository to commit e3723e1f1766, 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 e3723e1f17661b24996789d8afc084c0c3303b26 at commit e3723e1f1766 on 2026-09-11T05:25:59.485916626+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: