swiftlang/swift has 2,277,258 source lines of code out of 3,304,102 total lines across 14,555 files, counted from the main ref at commit 9ee233505592 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
swiftlang/swift: 2,277,258 code lines at commit 9ee233505592, counted with tokei-14.0.0 on 2026-10-21. Saved result a81bb74b3f468456b61475342f8a5209fa224b396d4eedb0954cc438f986aee6.
OctoCounts produced this report by resolving swiftlang/swift to commit 9ee233505592, 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.
This is a very large codebase by counted code lines. Code represents 68.9% of all lines, comments represent 20.9%, and the repository averages 156 code lines per file. C++ accounts for 39.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 1299 | 1225099 | 888847 | 173540 | 162712 |
| JSON | 21 | 520995 | 520994 | 0 | 1 |
| Swift | 10319 | 649255 | 408852 | 171866 | 68537 |
| C Header | 1484 | 521359 | 328554 | 117052 | 75753 |
| Module-Definition | 148 | 42096 | 37702 | 0 | 4394 |
| Python | 228 | 48823 | 37094 | 4696 | 7033 |
| CMake | 545 | 36472 | 27211 | 4583 | 4678 |
| PowerShell | 5 | 6875 | 6435 | 272 | 168 |
| YAML | 14 | 5032 | 5032 | 0 | 0 |
| Objective-C++ | 14 | 5252 | 3566 | 886 | 800 |
| BASH | 10 | 3934 | 2992 | 481 | 461 |
| INI | 1 | 3433 | 2256 | 446 | 731 |
| C | 22 | 2330 | 1627 | 397 | 306 |
| Bitbake | 5 | 1227 | 1092 | 55 | 80 |
| Objective-C | 18 | 1336 | 1073 | 109 | 154 |
| Emacs Lisp | 4 | 1404 | 1013 | 236 | 155 |
| Autoconf | 24 | 1139 | 861 | 117 | 161 |
| Vim Script | 8 | 689 | 602 | 45 | 42 |
| GNU Style Assembly | 2 | 519 | 321 | 114 | 84 |
| SIL | 53 | 463 | 272 | 145 | 46 |
| Shell | 7 | 359 | 254 | 59 | 46 |
| Batch | 3 | 165 | 102 | 31 | 32 |
| D | 3 | 133 | 102 | 12 | 19 |
| Assembly | 3 | 189 | 97 | 77 | 15 |
| Ruby | 1 | 96 | 86 | 3 | 7 |
| Makefile | 5 | 73 | 54 | 0 | 19 |
| LD Script | 4 | 53 | 49 | 0 | 4 |
| Zsh | 4 | 86 | 48 | 24 | 14 |
| ReStructuredText | 1 | 46 | 35 | 0 | 11 |
| Forge Config | 8 | 49 | 27 | 16 | 6 |
| SVG | 2 | 8 | 8 | 0 | 0 |
| Markdown | 244 | 19017 | 0 | 13472 | 5545 |
| Plain Text | 46 | 206096 | 0 | 200651 | 5445 |
Top language (C++ 39.0%). Generated at .
swiftlang/swift has 3,304,102 total lines, including 2,277,258 code lines, 689,385 comment lines, and 337,459 blank lines.
OctoCounts resolved the public GitHub repository to commit 9ee233505592, 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 9ee233505592 on 2026-10-21T02:33:37.503628867Z.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for swiftlang/swift on this page — 2,277,258 code lines across 33 languages, counted by tokei.