# swiftlang/swift SLOC report

> As of 2026-09-13 (commit 0a93b4f984f4), swiftlang/swift contains 3,073,988 total lines: 2,131,342 code, 631,977 comments, 310,669 blank, across 12,504 files in 32 languages (top: C++ 39.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

swiftlang/swift has 2,131,342 source lines of code out of 3,073,988 total lines across 12,504 files, counted from the 0a93b4f984f4602abb4404e4333b481190b9d61e ref at commit 0a93b4f984f4 by the OctoCounts tokei engine on 2026-09-13. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving swiftlang/swift to commit 0a93b4f984f4, 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.3% of all lines, comments represent 20.6%, and the repository averages 170 code lines per file. C++ accounts for 39.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 1,270 | 1,149,650 | 835,066 | 160,599 | 153,985 |
| JSON | 20 | 520,591 | 520,591 | 0 | 0 |
| Swift | 8,679 | 551,111 | 347,339 | 145,263 | 58,509 |
| C Header | 1,422 | 495,325 | 314,213 | 109,015 | 72,097 |
| Module-Definition | 146 | 38,822 | 34,825 | 0 | 3,997 |
| Python | 196 | 40,978 | 30,840 | 3,956 | 6,182 |
| CMake | 454 | 31,595 | 23,609 | 3,945 | 4,041 |
| YAML | 14 | 5,032 | 5,032 | 0 | 0 |
| PowerShell | 1 | 4,211 | 3,743 | 235 | 233 |
| Objective-C++ | 14 | 5,164 | 3,500 | 878 | 786 |
| BASH | 10 | 3,839 | 2,933 | 455 | 451 |
| INI | 1 | 3,443 | 2,259 | 456 | 728 |

Top language (C++ 39.2%). Generated at 2026-09-13T22:26:20.516469688+00:00. Canonical report: https://octocounts.com/github/swiftlang/swift

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/swiftlang/swift/commit/0a93b4f984f4602abb4404e4333b481190b9d61e?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

swiftlang/swift has 3,073,988 total lines, including 2,131,342 code lines, 631,977 comment lines, and 310,669 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 0a93b4f984f4, 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 0a93b4f984f4602abb4404e4333b481190b9d61e at commit 0a93b4f984f4 on 2026-09-13T22:26:20.516469688+00:00.

## Similar repository reports

- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,027,728 code lines
- [ceph/ceph](https://octocounts.com/github/ceph/ceph) — C++, 1,911,970 code lines
- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,377,034 code lines
- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,408,506 code lines
- [v8/v8](https://octocounts.com/github/v8/v8) — C++, 1,569,920 code lines
- [LadybirdBrowser/ladybird](https://octocounts.com/github/LadybirdBrowser/ladybird) — C++, 1,565,247 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)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
