dotnet/runtime has 5,049,679 source lines of code out of 7,043,106 total lines across 24,255 files, counted with tokei from the main ref at commit 27e4619ce003 on November 19, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
dotnet/runtime: 5,049,679 code lines at commit 27e4619ce003, counted with tokei-15.0.0 on 2026-11-19. Saved result 87f1f33a5d8efbfc82c5cd30362004a374b604a8cc3090411efc1eaf5fe5e99c.
OctoCounts produced this report by resolving dotnet/runtime to commit 27e4619ce003, 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 71.7% of all lines, comments represent 15.5%, and the repository averages 208 code lines per file. C# accounts for 49.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C# | 16029 | 3538997 | 2495924 | 593945 | 449128 |
| C++ | 1088 | 1384329 | 965016 | 226741 | 192572 |
| C | 1310 | 651807 | 482542 | 85294 | 83971 |
| C Header | 2112 | 681714 | 459885 | 110586 | 111243 |
| Monkey C | 1 | 262144 | 262144 | 0 | 0 |
| C++ Header | 167 | 77167 | 54476 | 11298 | 11393 |
| MSBuild | 1041 | 54793 | 47107 | 2995 | 4691 |
| .NET Resource | 181 | 48677 | 42170 | 6505 | 2 |
| Visual Basic | 72 | 49904 | 35799 | 5019 | 9086 |
| TypeScript | 188 | 38771 | 29427 | 5196 | 4148 |
| GNU Style Assembly | 189 | 34474 | 22122 | 7001 | 5351 |
| CMake | 221 | 26721 | 21196 | 2067 | 3458 |
| XML | 210 | 22893 | 21133 | 1383 | 377 |
| YAML | 278 | 23273 | 19275 | 2059 | 1939 |
| Python | 46 | 22003 | 16420 | 1914 | 3669 |
| JSON | 132 | 12403 | 12403 | 0 | 0 |
| Assembly | 69 | 16763 | 9584 | 4019 | 3160 |
| Shell | 88 | 12057 | 9303 | 1168 | 1586 |
| Autoconf | 87 | 12197 | 9026 | 1650 | 1521 |
| Bitbake | 37 | 7654 | 5858 | 650 | 1146 |
| PowerShell | 49 | 5820 | 4580 | 637 | 603 |
| Module-Definition | 28 | 4649 | 4160 | 18 | 471 |
| JavaScript | 39 | 3873 | 3147 | 314 | 412 |
| Objective-C | 20 | 4088 | 3115 | 456 | 517 |
| Prolog | 6 | 2547 | 2296 | 0 | 251 |
| Happy | 1 | 2077 | 1861 | 0 | 216 |
| XSL | 2 | 1844 | 1523 | 53 | 268 |
| Batch | 33 | 2066 | 1512 | 191 | 363 |
| Makefile | 29 | 2041 | 1406 | 193 | 442 |
| Automake | 2 | 1406 | 1171 | 123 | 112 |
| HTML | 48 | 1044 | 961 | 30 | 53 |
| Swift | 2 | 843 | 693 | 20 | 130 |
| Visual Studio Project | 3 | 680 | 680 | 0 | 0 |
| Perl | 3 | 748 | 613 | 54 | 81 |
| Razor | 26 | 450 | 389 | 3 | 58 |
| Java | 5 | 519 | 377 | 54 | 88 |
| Bazel | 3 | 225 | 182 | 12 | 31 |
| NuGet Config | 3 | 65 | 56 | 9 | 0 |
| Dockerfile | 2 | 86 | 49 | 15 | 22 |
| D | 1 | 63 | 36 | 11 | 16 |
| Visual Studio Solution | 1 | 25 | 25 | 0 | 0 |
| BASH | 1 | 28 | 12 | 11 | 5 |
| VBScript | 1 | 15 | 12 | 0 | 3 |
| Forge Config | 2 | 15 | 9 | 4 | 2 |
| CSS | 1 | 3 | 3 | 0 | 0 |
| ReScript | 1 | 1 | 1 | 0 | 0 |
| Markdown | 347 | 20667 | 0 | 14809 | 5858 |
| Plain Text | 50 | 8477 | 0 | 7403 | 1074 |
Top language: C# 49.4%. Generated on .
dotnet/runtime: 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.
dotnet/runtime has 5,049,679 lines of code, plus 1,093,910 comment lines and 899,517 blank lines, for 7,043,106 total lines at commit 27e4619ce003 on November 19, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 27e4619ce003, 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 main at commit 27e4619ce003 on November 19, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for dotnet/runtime on this page — 5,049,679 code lines across 48 languages, counted by tokei.