# apple-oss-distributions/xnu SLOC report

> apple-oss-distributions/xnu: 1,411,712 code lines at commit f6217f891ac0, counted with tokei-15.0.0 on 2026-11-14. Saved result d0363f17756e5d5e10d040b2cd6ed2ac897e7e5857abe1729eef59c5389a9ca9.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,199 | 1,387,186 | 957,248 | 252,702 | 177,236 |
| C Header | 1,928 | 500,853 | 255,095 | 190,654 | 55,104 |
| C++ | 122 | 140,005 | 104,999 | 14,434 | 20,572 |
| Python | 87 | 46,713 | 38,267 | 1,735 | 6,711 |
| HTML | 256 | 19,688 | 19,469 | 0 | 219 |
| GNU Style Assembly | 75 | 23,781 | 13,372 | 7,550 | 2,859 |
| Makefile | 160 | 8,753 | 6,235 | 557 | 1,961 |
| XML | 1 | 6,153 | 4,966 | 2 | 1,185 |
| Happy | 3 | 2,488 | 2,161 | 0 | 327 |
| Shell | 20 | 2,649 | 2,106 | 329 | 214 |
| D | 21 | 2,468 | 1,867 | 421 | 180 |
| Module-Definition | 1 | 1,513 | 1,260 | 0 | 253 |
| Lua | 6 | 1,382 | 1,230 | 22 | 130 |
| ASP.NET | 1 | 878 | 861 | 0 | 17 |
| Objective-C | 7 | 1,194 | 850 | 179 | 165 |
| Perl | 3 | 836 | 564 | 180 | 92 |
| Batch | 1 | 572 | 509 | 0 | 63 |
| C Shell | 1 | 320 | 225 | 84 | 11 |
| Lex | 1 | 168 | 111 | 38 | 19 |
| Bitbake | 1 | 116 | 101 | 0 | 15 |
| Xcode Config | 1 | 76 | 69 | 0 | 7 |
| BASH | 1 | 92 | 65 | 7 | 20 |
| AWK | 2 | 81 | 55 | 19 | 7 |
| TOML | 1 | 30 | 16 | 8 | 6 |
| C++ Header | 1 | 30 | 11 | 13 | 6 |
| Markdown | 3 | 1,079 | 0 | 786 | 293 |
| Plain Text | 4 | 129 | 0 | 114 | 15 |

Top language: C 67.8%. Generated on November 14, 2026. Canonical report: https://octocounts.com/github/apple-oss-distributions/xnu/commit/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea?reportId=d0363f17756e5d5e10d040b2cd6ed2ac897e7e5857abe1729eef59c5389a9ca9&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-oss-distributions/xnu/commit/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea?reportId=d0363f17756e5d5e10d040b2cd6ed2ac897e7e5857abe1729eef59c5389a9ca9&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-oss-distributions/xnu have?

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.

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

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.

### What commit was counted for apple-oss-distributions/xnu?

This OctoCounts report was generated from main at commit f6217f891ac0 on November 14, 2026.

## Similar repository reports

- [qemu/qemu](https://octocounts.com/github/qemu/qemu) — C, 1,385,437 code lines
- [SanjeevBashyal/OpenFOAM](https://octocounts.com/github/SanjeevBashyal/OpenFOAM) — C, 1,371,094 code lines
- [ctrl-cheeb-del/pokeheartgold](https://octocounts.com/github/ctrl-cheeb-del/pokeheartgold) — C, 1,357,447 code lines
- [xeonliu/FFmpeg-AVSPlus](https://octocounts.com/github/xeonliu/FFmpeg-AVSPlus) — C, 1,504,588 code lines
- [Kitware/CMake](https://octocounts.com/github/Kitware/CMake) — C, 1,297,483 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,596,502 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)
