# wikimedia/mediawiki SLOC report

> As of 2026-10-22 (commit d8048e157e6c), wikimedia/mediawiki contains 2,359,894 total lines: 1,950,977 code, 304,243 comments, 104,674 blank, across 9,885 files in 18 languages (top: JSON 65.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

wikimedia/mediawiki has 1,950,977 source lines of code out of 2,359,894 total lines across 9,885 files, counted from the master ref at commit d8048e157e6c by the OctoCounts tokei engine on 2026-10-22. 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 wikimedia/mediawiki to commit d8048e157e6c, 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 82.7% of all lines, comments represent 12.9%, and the repository averages 197 code lines per file. JSON accounts for 65.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 3,424 | 1,270,527 | 1,270,357 | 0 | 170 |
| PHP | 3,889 | 798,275 | 483,556 | 236,671 | 78,048 |
| JavaScript | 701 | 239,805 | 165,980 | 53,616 | 20,209 |
| LESS | 190 | 14,924 | 10,830 | 2,161 | 1,933 |
| CSS | 171 | 10,718 | 9,709 | 553 | 456 |
| SVG | 1,302 | 4,430 | 4,427 | 0 | 3 |
| SQL | 111 | 5,490 | 4,031 | 421 | 1,038 |
| XML | 4 | 616 | 516 | 60 | 40 |
| Vue | 20 | 483 | 438 | 6 | 39 |
| YAML | 1 | 532 | 382 | 122 | 28 |
| Python | 1 | 452 | 359 | 26 | 67 |
| Mustache | 14 | 359 | 326 | 17 | 16 |

Top language (JSON 65.1%). Generated at 2026-10-22T11:48:18.259188846+00:00. Canonical report: https://octocounts.com/github/wikimedia/mediawiki

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/wikimedia/mediawiki/commit/d8048e157e6c98254f1327650bc41626e02a3f2e?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&reportId=47529867ab56856f2130a92860b452eab2a0df08f69e57eaa43e9136b0bbfb3d).

## Report FAQ

### How many lines of code does wikimedia/mediawiki have?

wikimedia/mediawiki has 2,359,894 total lines, including 1,950,977 code lines, 304,243 comment lines, and 104,674 blank lines.

### How was the wikimedia/mediawiki line count measured?

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

### What commit was counted for wikimedia/mediawiki?

This OctoCounts report was generated from master at commit d8048e157e6c on 2026-10-22T11:48:18.259188846+00:00.

## Similar repository reports

- [baserow/baserow](https://octocounts.com/github/baserow/baserow) — JSON, 1,979,000 code lines
- [appliedblockchain/giano](https://octocounts.com/github/appliedblockchain/giano) — JSON, 1,900,486 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 code lines
- [cheaper-inference/OmniRoute](https://octocounts.com/github/cheaper-inference/OmniRoute) — JSON, 2,137,083 code lines
- [BAITC-Hacks/hack-96839d9e-hustlers](https://octocounts.com/github/BAITC-Hacks/hack-96839d9e-hustlers) — JSON, 2,167,611 code lines
- [pytorch/executorch](https://octocounts.com/github/pytorch/executorch) — JSON, 2,176,536 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)
- [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)
