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.
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 | 167583 | 119298 | 20289 | 27996 |
| C | 62 | 86138 | 46710 | 22528 | 16900 |
| C Header | 324 | 45739 | 31072 | 7033 | 7634 |
| C# | 76 | 4937 | 3889 | 256 | 792 |
| XML | 25 | 3825 | 2559 | 1266 | 0 |
| CMake | 48 | 2675 | 2134 | 167 | 374 |
| Python | 11 | 2021 | 1518 | 71 | 432 |
| Autoconf | 14 | 1554 | 1355 | 32 | 167 |
| PowerShell | 18 | 1769 | 1279 | 220 | 270 |
| XAML | 26 | 1274 | 1181 | 32 | 61 |
| C++ Header | 17 | 1726 | 1109 | 222 | 395 |
| JSON | 3 | 520 | 520 | 0 | 0 |
Top language (C++ 55.8%). Generated at .
microsoft/WSL has 328,348 total lines, including 213,723 code lines, 57,680 comment lines, and 56,945 blank lines.
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.
This OctoCounts report was generated from master at commit e7197ca7774a on 2026-08-01T22:40:18.567435588+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: