apple-oss-distributions/xnu has 1,411,712 source lines of code out of 2,149,233 total lines across 3,907 files, counted with tokei from the main ref at commit f6217f891ac0 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-14 (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 language: C 67.8%). Canonical public options (tests, docs and generated files excluded). 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 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.
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 on .
apple-oss-distributions/xnu: 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.
apple-oss-distributions/xnu has 1,411,712 lines of code, plus 469,834 comment lines and 267,687 blank lines, for 2,149,233 total lines at commit f6217f891ac0 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
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 November 14, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for apple-oss-distributions/xnu on this page — 1,411,712 code lines across 27 languages, counted by tokei.