# swiftlang/swift SLOC report

> 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.

## Repository size insights

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++ | 1,286 | 1,201,110 | 872,095 | 169,186 | 159,829 |
| JSON | 21 | 520,925 | 520,924 | 0 | 1 |
| Swift | 10,192 | 630,033 | 397,046 | 166,503 | 66,484 |
| C Header | 1,469 | 516,773 | 326,454 | 115,297 | 75,022 |
| Python | 230 | 48,876 | 37,076 | 4,752 | 7,048 |
| Module-Definition | 148 | 41,277 | 36,977 | 0 | 4,300 |
| CMake | 538 | 35,572 | 26,531 | 4,454 | 4,587 |
| PowerShell | 3 | 6,430 | 6,048 | 230 | 152 |
| YAML | 14 | 5,032 | 5,032 | 0 | 0 |
| Objective-C++ | 14 | 5,252 | 3,566 | 886 | 800 |
| BASH | 10 | 3,945 | 3,008 | 476 | 461 |
| INI | 1 | 3,513 | 2,306 | 461 | 746 |

Top language (C++ 38.9%). Generated at 2026-08-26T18:42:56.889824099+00:00. Canonical report: https://octocounts.com/github/swiftlang/swift

## Report FAQ

### How many lines of code does swiftlang/swift have?

swiftlang/swift has 3,254,025 total lines, including 2,244,738 code lines, 677,704 comment lines, and 331,583 blank lines.

### How was the swiftlang/swift line count measured?

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.

### What commit was counted for swiftlang/swift?

This OctoCounts report was generated from main at commit e29d9d5660ed on 2026-08-26T18:42:56.889824099+00:00.

## Similar repository reports

- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,308,757 code lines
- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,123,951 code lines
- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,408,506 code lines
- [LadybirdBrowser/ladybird](https://octocounts.com/github/LadybirdBrowser/ladybird) — C++, 1,459,798 code lines
- [wxwidgets/wxwidgets](https://octocounts.com/github/wxwidgets/wxwidgets) — C++, 1,207,487 code lines
- [AyuGram/AyuGramDesktop](https://octocounts.com/github/AyuGram/AyuGramDesktop) — C++, 1,199,501 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
