freebsd/freebsd-src has 22,335,858 source lines of code out of 30,875,031 total lines across 74,934 files, counted with tokei from the 775e421dc38f18fa6b7fdc7b214a013cca44b58b ref at commit 775e421dc38f on November 1, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-01 (commit 775e421dc38f), freebsd/freebsd-src contains 30,875,031 total lines: 22,335,858 code, 5,054,061 comments, 3,485,112 blank, across 74,934 files in 83 languages (top language: C 44.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving freebsd/freebsd-src to commit 775e421dc38f, 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.
This is a very large codebase by counted code lines. Code represents 72.3% of all lines, comments represent 16.4%, and the repository averages 298 code lines per file. C accounts for 44.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 20105 | 13490175 | 9978987 | 1972916 | 1538272 |
| C Header | 21408 | 6418639 | 4304396 | 1454175 | 660068 |
| C++ | 6171 | 4691993 | 3484303 | 633060 | 574630 |
| Device Tree | 6546 | 2160586 | 1775080 | 95505 | 290001 |
| GNU Style Assembly | 922 | 700627 | 599260 | 29889 | 71478 |
| YAML | 5786 | 635451 | 514341 | 24145 | 96965 |
| JSON | 587 | 271441 | 271438 | 0 | 3 |
| Perl | 390 | 287298 | 228833 | 27337 | 31128 |
| Autoconf | 774 | 278162 | 227731 | 23762 | 26669 |
| Shell | 1259 | 286563 | 200194 | 54437 | 31932 |
| Makefile | 4051 | 170630 | 118715 | 27393 | 24522 |
| Bitbake | 669 | 119959 | 110517 | 4280 | 5162 |
Top language: C 44.7%. Generated on .
freebsd/freebsd-src: 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.
freebsd/freebsd-src has 22,335,858 lines of code, plus 5,054,061 comment lines and 3,485,112 blank lines, for 30,875,031 total lines at commit 775e421dc38f on November 1, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 775e421dc38f, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from 775e421dc38f18fa6b7fdc7b214a013cca44b58b at commit 775e421dc38f on November 1, 2026.
Play the growth animation for freebsd/freebsd-src on this page — 22,335,858 code lines across 83 languages, counted by tokei.