As of 2026-08-26 (commit e29d9d5660ed), swiftlang/swift contains 3,254,025 total lines: 2,244,738 code, 677,704 comments, 331,583 blank, across 14,391 files in 33 languages (top: C++ 38.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving swiftlang/swift to commit e29d9d5660ed, 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 69.0% of all lines, comments represent 20.8%, and the repository averages 156 code lines per file. C++ accounts for 38.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 1286 | 1201110 | 872095 | 169186 | 159829 |
| JSON | 21 | 520925 | 520924 | 0 | 1 |
| Swift | 10192 | 630033 | 397046 | 166503 | 66484 |
| C Header | 1469 | 516773 | 326454 | 115297 | 75022 |
| Python | 230 | 48876 | 37076 | 4752 | 7048 |
| Module-Definition | 148 | 41277 | 36977 | 0 | 4300 |
| CMake | 538 | 35572 | 26531 | 4454 | 4587 |
| PowerShell | 3 | 6430 | 6048 | 230 | 152 |
| YAML | 14 | 5032 | 5032 | 0 | 0 |
| Objective-C++ | 14 | 5252 | 3566 | 886 | 800 |
| BASH | 10 | 3945 | 3008 | 476 | 461 |
| INI | 1 | 3513 | 2306 | 461 | 746 |
Top language (C++ 38.9%). Generated at 2026-08-26T18:42:56.889824099+00:00.
swiftlang/swift has 3,254,025 total lines, including 2,244,738 code lines, 677,704 comment lines, and 331,583 blank lines.
OctoCounts resolved the public GitHub repository to commit e29d9d5660ed, 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 e29d9d5660ed on 2026-08-26T18:42:56.889824099+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: