# apple/darwin-xnu SLOC report

> apple/darwin-xnu: 1,106,636 code lines at commit a449c6a3b801, counted with tokei-15.0.0 on 2026-11-02. Saved result 738968deaa37b7a9023033079fa3d09fdfc567c218844e213ab0ec84379cbbab.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,063,340 | 716,470 | 205,534 | 141,336 |
| C Header | 1,466 | 412,907 | 244,060 | 127,952 | 40,895 |
| C++ | 97 | 99,874 | 71,996 | 11,538 | 16,340 |
| Python | 62 | 29,455 | 25,002 | 1,008 | 3,445 |
| HTML | 256 | 19,690 | 19,471 | 0 | 219 |
| GNU Style Assembly | 78 | 25,142 | 14,979 | 7,316 | 2,847 |
| Makefile | 131 | 6,503 | 4,840 | 218 | 1,445 |
| Shell | 17 | 2,405 | 1,922 | 293 | 190 |
| Happy | 3 | 2,218 | 1,898 | 0 | 320 |
| D | 15 | 2,131 | 1,630 | 338 | 163 |
| Objective-C | 7 | 1,197 | 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 November 2, 2026. Canonical report: https://octocounts.com/github/apple/darwin-xnu/commit/a449c6a3b8014d9406c2ddbdc81795da24aa7443?reportId=738968deaa37b7a9023033079fa3d09fdfc567c218844e213ab0ec84379cbbab&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apple/darwin-xnu/commit/a449c6a3b8014d9406c2ddbdc81795da24aa7443?reportId=738968deaa37b7a9023033079fa3d09fdfc567c218844e213ab0ec84379cbbab&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does apple/darwin-xnu have?

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.

### How was the apple/darwin-xnu line count measured?

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.

### What commit was counted for apple/darwin-xnu?

This OctoCounts report was generated from a449c6a3b8014d9406c2ddbdc81795da24aa7443 at commit a449c6a3b801 on November 2, 2026.

## Similar repository reports

- [ChefKissInc/Inferno](https://octocounts.com/github/ChefKissInc/Inferno) — C, 1,055,094 code lines
- [systemd/systemd](https://octocounts.com/github/systemd/systemd) — C, 1,043,930 code lines
- [PKRoma/ProcessHacker](https://octocounts.com/github/PKRoma/ProcessHacker) — C, 979,949 code lines
- [DeaDBeeF-Player/deadbeef](https://octocounts.com/github/DeaDBeeF-Player/deadbeef) — C, 976,454 code lines
- [Kitware/CMake](https://octocounts.com/github/Kitware/CMake) — C, 1,291,830 code lines
- [riscvarchive/riscv-qemu](https://octocounts.com/github/riscvarchive/riscv-qemu) — C, 910,920 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
