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.
freebsd/freebsd-src: 22,335,858 code lines at commit 775e421dc38f, counted with tokei-15.0.0 on 2026-11-01. Saved result cc2772aca1428b21655220a2f9910d9da42fc895ffe6143b51f61ce307e3517b.
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 |
| M4 | 510 | 148177 | 104734 | 31696 | 11747 |
| Happy | 62 | 58329 | 52145 | 0 | 6184 |
| Module-Definition | 217 | 52265 | 47147 | 77 | 5041 |
| HTML | 234 | 49640 | 46914 | 521 | 2205 |
| Python | 137 | 40580 | 31736 | 3902 | 4942 |
| INI | 33 | 32900 | 29471 | 155 | 3274 |
| C++ Header | 269 | 37079 | 19988 | 12020 | 5071 |
| Objective-C | 148 | 19985 | 14953 | 2932 | 2100 |
| PO File | 4 | 27497 | 12996 | 8749 | 5752 |
| ASP.NET | 7 | 12952 | 12907 | 0 | 45 |
| AWK | 105 | 16733 | 11782 | 3109 | 1842 |
| JavaScript | 67 | 13889 | 11779 | 1090 | 1020 |
| Automake | 202 | 14836 | 11709 | 915 | 2212 |
| Assembly | 12 | 11686 | 10688 | 489 | 509 |
| CMake | 74 | 17059 | 10180 | 4930 | 1949 |
| HEX | 9 | 9012 | 9012 | 0 | 0 |
| Lua | 51 | 11801 | 8411 | 2095 | 1295 |
| Lex | 41 | 11940 | 7720 | 2771 | 1449 |
| TCL | 16 | 10673 | 6302 | 3807 | 564 |
| Alex | 47 | 6684 | 5901 | 0 | 783 |
| SWIG | 133 | 6470 | 5892 | 5 | 573 |
| XML | 35 | 5091 | 4861 | 135 | 95 |
| Forth | 39 | 7749 | 4749 | 1872 | 1128 |
| CSS | 14 | 4948 | 3942 | 219 | 787 |
| Templ | 5 | 4710 | 3818 | 779 | 113 |
| D | 31 | 4858 | 3616 | 924 | 318 |
| Visual Studio Project | 12 | 3610 | 3608 | 0 | 2 |
| C# | 33 | 5686 | 3603 | 1596 | 487 |
| ASN.1 | 30 | 3949 | 2902 | 331 | 716 |
| Monkey C | 37 | 1720 | 1538 | 0 | 182 |
| BASH | 5 | 1747 | 1293 | 252 | 202 |
| SQL | 11 | 2675 | 1272 | 966 | 437 |
| Ruby | 14 | 1697 | 1270 | 201 | 226 |
| TeX | 1 | 2077 | 1243 | 425 | 409 |
| RPM Specfile | 5 | 1462 | 1138 | 57 | 267 |
| Meson | 14 | 1140 | 974 | 65 | 101 |
| Julia | 2 | 1546 | 930 | 473 | 143 |
| MSBuild | 37 | 1097 | 894 | 36 | 167 |
| Batch | 13 | 925 | 829 | 11 | 85 |
| Emacs Lisp | 5 | 1142 | 785 | 244 | 113 |
| Prolog | 8 | 787 | 784 | 0 | 3 |
| ReStructuredText | 8 | 1040 | 747 | 0 | 293 |
| Pan | 7 | 774 | 696 | 50 | 28 |
| Korn shell | 1 | 801 | 682 | 73 | 46 |
| Vim Script | 2 | 525 | 479 | 32 | 14 |
| Bazel | 12 | 641 | 439 | 149 | 53 |
| Visual Studio Solution | 10 | 408 | 398 | 0 | 10 |
| PowerShell | 4 | 477 | 376 | 51 | 50 |
| OCaml | 1 | 340 | 339 | 0 | 1 |
| SVG | 8 | 326 | 322 | 2 | 2 |
| Apache Velocity | 1 | 317 | 296 | 0 | 21 |
| Snakemake | 4 | 504 | 248 | 143 | 113 |
| AsciiDoc | 2 | 245 | 171 | 0 | 74 |
| GDB Script | 1 | 162 | 142 | 5 | 15 |
| Protocol Buffers | 2 | 389 | 130 | 191 | 68 |
| Forge Config | 11 | 409 | 62 | 303 | 44 |
| HICAD | 1 | 26 | 26 | 0 | 0 |
| C Shell | 3 | 35 | 22 | 10 | 3 |
| GLSL | 1 | 16 | 14 | 0 | 2 |
| Stata | 1 | 14 | 14 | 0 | 0 |
| F# | 1 | 16 | 13 | 0 | 3 |
| Dockerfile | 1 | 16 | 11 | 4 | 1 |
| VBScript | 1 | 12 | 11 | 0 | 1 |
| FORTRAN Legacy | 2 | 4 | 4 | 0 | 0 |
| Q | 2 | 2 | 2 | 0 | 0 |
| Nextflow | 1 | 1 | 1 | 0 | 0 |
| Phix | 1 | 1 | 1 | 0 | 0 |
| Puppet | 1 | 1 | 1 | 0 | 0 |
| Djot | 1 | 127 | 0 | 98 | 29 |
| Markdown | 181 | 81118 | 0 | 57456 | 23662 |
| Plain Text | 3265 | 605957 | 0 | 560746 | 45211 |
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.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for freebsd/freebsd-src on this page — 22,335,858 code lines across 83 languages, counted by tokei.