# apple-oss-distributions/xnu SLOC report

> As of 2026-09-11 (commit e3723e1f1766), apple-oss-distributions/xnu contains 2,117,894 total lines: 1,390,343 code, 464,050 comments, 263,501 blank, across 3,865 files in 27 languages (top: C 67.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

apple-oss-distributions/xnu has 1,390,343 source lines of code out of 2,117,894 total lines across 3,865 files, counted from the e3723e1f17661b24996789d8afc084c0c3303b26 ref at commit e3723e1f1766 by the OctoCounts tokei engine on 2026-09-11. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving apple-oss-distributions/xnu to commit e3723e1f1766, 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.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 65.6% of all lines, comments represent 21.9%, and the repository averages 360 code lines per file. C accounts for 67.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,189 | 1,369,806 | 944,140 | 250,805 | 174,861 |
| C Header | 1,898 | 489,805 | 249,135 | 186,945 | 53,725 |
| C++ | 120 | 138,243 | 103,618 | 14,288 | 20,337 |
| Python | 87 | 45,819 | 37,525 | 1,730 | 6,564 |
| HTML | 256 | 19,690 | 19,471 | 0 | 219 |
| GNU Style Assembly | 75 | 23,714 | 13,355 | 7,518 | 2,841 |
| Makefile | 159 | 8,714 | 6,190 | 568 | 1,956 |
| XML | 1 | 6,153 | 4,966 | 2 | 1,185 |
| Happy | 3 | 2,488 | 2,161 | 0 | 327 |
| Shell | 20 | 2,591 | 2,065 | 322 | 204 |
| D | 21 | 2,466 | 1,865 | 421 | 180 |
| Module-Definition | 1 | 1,468 | 1,226 | 0 | 242 |

Top language (C 67.9%). Generated at 2026-09-11T05:25:59.485916626+00:00. Canonical report: https://octocounts.com/github/apple-oss-distributions/xnu

## Reproduce this report

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

## Report FAQ

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

apple-oss-distributions/xnu has 2,117,894 total lines, including 1,390,343 code lines, 464,050 comment lines, and 263,501 blank lines.

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

OctoCounts resolved the public GitHub repository to commit e3723e1f1766, 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 e3723e1f17661b24996789d8afc084c0c3303b26 at commit e3723e1f1766 on 2026-09-11T05:25:59.485916626+00:00.

## Similar repository reports

- [Kitware/CMake](https://octocounts.com/github/Kitware/CMake) — C, 1,254,658 code lines
- [kitware/cmake](https://octocounts.com/github/kitware/cmake) — C, 1,253,537 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,627,455 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,628,496 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,630,624 code lines
- [plan9foundation/plan9](https://octocounts.com/github/plan9foundation/plan9) — C, 1,659,936 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)
- [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)
