# microsoft/WSL SLOC report

> As of 2026-08-01 (commit e7197ca7774a), microsoft/WSL contains 328,348 total lines: 213,723 code, 57,680 comments, 56,945 blank, across 1,252 files in 25 languages (top: C++ 55.8%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving microsoft/WSL to commit e7197ca7774a, 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 large codebase by counted code lines. Code represents 65.1% of all lines, comments represent 17.6%, and the repository averages 171 code lines per file. C++ accounts for 55.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 357 | 167,583 | 119,298 | 20,289 | 27,996 |
| C | 62 | 86,138 | 46,710 | 22,528 | 16,900 |
| C Header | 324 | 45,739 | 31,072 | 7,033 | 7,634 |
| C# | 76 | 4,937 | 3,889 | 256 | 792 |
| XML | 25 | 3,825 | 2,559 | 1,266 | 0 |
| CMake | 48 | 2,675 | 2,134 | 167 | 374 |
| Python | 11 | 2,021 | 1,518 | 71 | 432 |
| Autoconf | 14 | 1,554 | 1,355 | 32 | 167 |
| PowerShell | 18 | 1,769 | 1,279 | 220 | 270 |
| XAML | 26 | 1,274 | 1,181 | 32 | 61 |
| C++ Header | 17 | 1,726 | 1,109 | 222 | 395 |
| JSON | 3 | 520 | 520 | 0 | 0 |

Top language (C++ 55.8%). Generated at 2026-08-01T22:40:18.567435588+00:00. Canonical report: https://octocounts.com/github/microsoft/WSL

## Report FAQ

### How many lines of code does microsoft/WSL have?

microsoft/WSL has 328,348 total lines, including 213,723 code lines, 57,680 comment lines, and 56,945 blank lines.

### How was the microsoft/WSL line count measured?

OctoCounts resolved the public GitHub repository to commit e7197ca7774a, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for microsoft/WSL?

This OctoCounts report was generated from master at commit e7197ca7774a on 2026-08-01T22:40:18.567435588+00:00.

## Similar repository reports

- [abseil/abseil-cpp](https://octocounts.com/github/abseil/abseil-cpp) — C++, 215,325 code lines
- [yumlevi/renodx-dlss-installer](https://octocounts.com/github/yumlevi/renodx-dlss-installer) — C++, 220,151 code lines
- [rsta2/circle](https://octocounts.com/github/rsta2/circle) — C++, 201,265 code lines
- [thiagoralves/OpenPLC_v3](https://octocounts.com/github/thiagoralves/OpenPLC_v3) — C++, 228,799 code lines
- [electron/electron](https://octocounts.com/github/electron/electron) — C++, 198,375 code lines
- [alibaba/zvec](https://octocounts.com/github/alibaba/zvec) — C++, 229,353 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)
