# swiftlang/swift SLOC report

> swiftlang/swift: 2,277,258 code lines at commit 9ee233505592, counted with tokei-14.0.0 on 2026-10-21. Saved result a81bb74b3f468456b61475342f8a5209fa224b396d4eedb0954cc438f986aee6.

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.

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.

## Repository size insights

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++ | 1,299 | 1,225,099 | 888,847 | 173,540 | 162,712 |
| JSON | 21 | 520,995 | 520,994 | 0 | 1 |
| Swift | 10,319 | 649,255 | 408,852 | 171,866 | 68,537 |
| C Header | 1,484 | 521,359 | 328,554 | 117,052 | 75,753 |
| Module-Definition | 148 | 42,096 | 37,702 | 0 | 4,394 |
| Python | 228 | 48,823 | 37,094 | 4,696 | 7,033 |
| CMake | 545 | 36,472 | 27,211 | 4,583 | 4,678 |
| PowerShell | 5 | 6,875 | 6,435 | 272 | 168 |
| YAML | 14 | 5,032 | 5,032 | 0 | 0 |
| Objective-C++ | 14 | 5,252 | 3,566 | 886 | 800 |
| BASH | 10 | 3,934 | 2,992 | 481 | 461 |
| INI | 1 | 3,433 | 2,256 | 446 | 731 |
| C | 22 | 2,330 | 1,627 | 397 | 306 |
| Bitbake | 5 | 1,227 | 1,092 | 55 | 80 |
| Objective-C | 18 | 1,336 | 1,073 | 109 | 154 |
| Emacs Lisp | 4 | 1,404 | 1,013 | 236 | 155 |
| Autoconf | 24 | 1,139 | 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 | 19,017 | 0 | 13,472 | 5,545 |
| Plain Text | 46 | 206,096 | 0 | 200,651 | 5,445 |

Top language (C++ 39.0%). Generated at 2026-10-21T02:33:37.503628867Z. Canonical report: https://octocounts.com/github/swiftlang/swift/commit/9ee233505592ca67c607d3800a06e0874390d670?reportId=a81bb74b3f468456b61475342f8a5209fa224b396d4eedb0954cc438f986aee6&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

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

## Report FAQ

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

swiftlang/swift has 3,304,102 total lines, including 2,277,258 code lines, 689,385 comment lines, and 337,459 blank lines.

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

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.

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

This OctoCounts report was generated from main at commit 9ee233505592 on 2026-10-21T02:33:37.503628867Z.

## Similar repository reports

- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,086,221 code lines
- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,502,446 code lines
- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,532,335 code lines
- [ceph/ceph](https://octocounts.com/github/ceph/ceph) — C++, 1,942,925 code lines
- [Snowy-Fluffy/freshGram](https://octocounts.com/github/Snowy-Fluffy/freshGram) — C++, 1,703,149 code lines
- [RosettaCommons/rosetta](https://octocounts.com/github/RosettaCommons/rosetta) — C++, 3,115,217 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)
