apple/darwin-xnu

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.

As of 2026-10-18 (commit 2ff845c2e033), apple/darwin-xnu contains 1,773,145 total lines: 1,170,923 code, 384,873 comments, 217,349 blank, across 3,307 files in 24 languages (top: C 68.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-18 (commit 2ff845c2e033), apple/darwin-xnu contains 1,773,145 total lines: 1,170,923 code, 384,873 comments, 217,349 blank, across 3,307 files in 24 languages (top: C 68.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C10201166698800090219502147106
C Header157537573519481914072340193
C++105121998908481314718003
Python63338682860311214144
HTML25619690194710219
GNU Style Assembly82272341606379633208
Makefile136723453532861595
XML16153496621185
Happy3245221320320
Shell1825152026289200
D1824151819420176
Module-Definition110759030172

Top language (C 68.3%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

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

apple/darwin-xnu has 1,773,145 total lines, including 1,170,923 code lines, 384,873 comment lines, and 217,349 blank lines.

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

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.

What commit was counted for apple/darwin-xnu?

This OctoCounts report was generated from 2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32 at commit 2ff845c2e033 on 2026-10-18T03:15:24.297678566+00:00.

Similar repository reports

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 12 languages, counted by tokei.