apple/darwin-xnu has 1,170,923 source lines of code out of 1,773,145 total lines across 3,307 files, counted from the 2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32 ref at commit 2ff845c2e033 by the OctoCounts tokei engine on 2026-10-18. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
apple/darwin-xnu: 1,170,923 code lines at commit 2ff845c2e033, counted with tokei-14.0.0 on 2026-10-18. Saved result f20503d8d4d8196a2b6871f032f5f3424e7dcf316ca5c699258c000c7c8d96b5.
OctoCounts produced this report by resolving apple/darwin-xnu to commit 2ff845c2e033, 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 66.0% of all lines, comments represent 21.7%, and the repository averages 354 code lines per file. C accounts for 68.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1020 | 1166698 | 800090 | 219502 | 147106 |
| C Header | 1575 | 375735 | 194819 | 140723 | 40193 |
| C++ | 105 | 121998 | 90848 | 13147 | 18003 |
| Python | 63 | 33868 | 28603 | 1121 | 4144 |
| HTML | 256 | 19690 | 19471 | 0 | 219 |
| GNU Style Assembly | 82 | 27234 | 16063 | 7963 | 3208 |
| Makefile | 136 | 7234 | 5353 | 286 | 1595 |
| XML | 1 | 6153 | 4966 | 2 | 1185 |
| Happy | 3 | 2452 | 2132 | 0 | 320 |
| Shell | 18 | 2515 | 2026 | 289 | 200 |
| D | 18 | 2415 | 1819 | 420 | 176 |
| Module-Definition | 1 | 1075 | 903 | 0 | 172 |
| Objective-C | 7 | 1197 | 853 | 179 | 165 |
| ASP.NET | 1 | 865 | 849 | 0 | 16 |
| Lua | 4 | 814 | 704 | 10 | 100 |
| Perl | 3 | 824 | 556 | 177 | 91 |
| Batch | 1 | 424 | 378 | 0 | 46 |
| C Shell | 1 | 305 | 212 | 84 | 9 |
| Lex | 1 | 168 | 111 | 38 | 19 |
| Xcode Config | 1 | 74 | 67 | 0 | 7 |
| BASH | 1 | 92 | 65 | 7 | 20 |
| AWK | 2 | 59 | 35 | 17 | 7 |
| Markdown | 4 | 1117 | 0 | 782 | 335 |
| Plain Text | 3 | 139 | 0 | 126 | 13 |
Top language (C 68.3%). Generated at .
apple/darwin-xnu has 1,773,145 total lines, including 1,170,923 code lines, 384,873 comment lines, and 217,349 blank lines.
OctoCounts resolved the public GitHub repository to commit 2ff845c2e033, 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 2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32 at commit 2ff845c2e033 on 2026-10-18T03:15:24.297678566Z.
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,170,923 code lines across 24 languages, counted by tokei.