apple-oss-distributions/xnu SLOC report

As of 2026-08-25 (commit f6217f891ac0), apple-oss-distributions/xnu contains 2,149,233 total lines: 1,411,712 code, 469,834 comments, 267,687 blank, across 3,907 files in 27 languages (top: C 67.8%). Counted with tokei via OctoCounts.

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

LanguageFilesLinesCodeCommentsBlanks
C11991387186957248252702177236
C Header192850085325509519065455104
C++1221400051049991443420572
Python87467133826717356711
HTML25619688194690219
GNU Style Assembly75237811337275502859
Makefile160875362355571961
XML16153496621185
Happy3248821610327
Shell2026492106329214
D2124681867421180
Module-Definition1151312600253

Top language (C 67.8%). Generated at 2026-08-25T08:03:17.879144439+00:00.

Report FAQ

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

apple-oss-distributions/xnu has 2,149,233 total lines, including 1,411,712 code lines, 469,834 comment lines, and 267,687 blank lines.

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 2026-08-25T08:03:17.879144439+00:00.