apple/darwin-xnu has 1,106,636 source lines of code out of 1,670,222 total lines across 3,134 files, counted with tokei from the a449c6a3b8014d9406c2ddbdc81795da24aa7443 ref at commit a449c6a3b801 on November 2, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
apple/darwin-xnu: 1,106,636 code lines at commit a449c6a3b801, counted with tokei-15.0.0 on 2026-11-02. Saved result 738968deaa37b7a9023033079fa3d09fdfc567c218844e213ab0ec84379cbbab.
OctoCounts produced this report by resolving apple/darwin-xnu to commit a449c6a3b801, 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 66.3% of all lines, comments represent 21.3%, and the repository averages 353 code lines per file. C accounts for 64.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 981 | 1063340 | 716470 | 205534 | 141336 |
| C Header | 1466 | 412907 | 244060 | 127952 | 40895 |
| C++ | 97 | 99874 | 71996 | 11538 | 16340 |
| Python | 62 | 29455 | 25002 | 1008 | 3445 |
| HTML | 256 | 19690 | 19471 | 0 | 219 |
| GNU Style Assembly | 78 | 25142 | 14979 | 7316 | 2847 |
| Makefile | 131 | 6503 | 4840 | 218 | 1445 |
| Shell | 17 | 2405 | 1922 | 293 | 190 |
| Happy | 3 | 2218 | 1898 | 0 | 320 |
| D | 15 | 2131 | 1630 | 338 | 163 |
| Objective-C | 7 | 1197 | 853 | 179 | 165 |
| ASP.NET | 1 | 844 | 828 | 0 | 16 |
| Module-Definition | 1 | 884 | 737 | 0 | 147 |
| Lua | 3 | 771 | 668 | 10 | 93 |
| Perl | 3 | 797 | 533 | 175 | 89 |
| Batch | 1 | 334 | 302 | 0 | 32 |
| C Shell | 1 | 286 | 195 | 84 | 7 |
| Lex | 1 | 168 | 111 | 38 | 19 |
| BASH | 1 | 92 | 65 | 7 | 20 |
| Xcode Config | 1 | 42 | 41 | 0 | 1 |
| AWK | 2 | 59 | 35 | 17 | 7 |
| Markdown | 3 | 944 | 0 | 654 | 290 |
| Plain Text | 3 | 139 | 0 | 126 | 13 |
Top language: C 64.7%. Generated on .
apple/darwin-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/darwin-xnu has 1,106,636 lines of code, plus 355,487 comment lines and 208,099 blank lines, for 1,670,222 total lines at commit a449c6a3b801 on November 2, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit a449c6a3b801, 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 a449c6a3b8014d9406c2ddbdc81795da24aa7443 at commit a449c6a3b801 on November 2, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for apple/darwin-xnu on this page — 1,106,636 code lines across 23 languages, counted by tokei.