# wikimedia/mediawiki SLOC report

> wikimedia/mediawiki: 1,951,723 code lines at commit 6e99520a63d0, counted with tokei-15.0.0 on 2026-11-16. Saved result 5e586642321785cc78300e0229cdf5ffb76f94fcf4c76ebe0a55dabb6b984279.

wikimedia/mediawiki has 1,951,723 source lines of code out of 2,359,634 total lines across 9,892 files, counted with tokei from the master ref at commit 6e99520a63d0 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving wikimedia/mediawiki to commit 6e99520a63d0, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

wikimedia/mediawiki: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## 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. PHP is the largest programming language at 24.8% of counted code; data and prose formats such as JSON or YAML hold a larger share.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 3,427 | 1,271,790 | 1,271,620 | 0 | 170 |
| PHP | 3,895 | 797,934 | 483,293 | 236,681 | 77,960 |
| JavaScript | 697 | 238,904 | 165,615 | 53,319 | 19,970 |
| LESS | 190 | 14,955 | 10,855 | 2,163 | 1,937 |
| CSS | 171 | 10,718 | 9,709 | 553 | 456 |
| SVG | 1,302 | 4,430 | 4,427 | 0 | 3 |
| SQL | 114 | 5,588 | 4,112 | 421 | 1,055 |
| XML | 4 | 644 | 546 | 58 | 40 |
| Vue | 21 | 504 | 454 | 6 | 44 |
| Python | 1 | 452 | 359 | 26 | 67 |
| YAML | 1 | 488 | 341 | 122 | 25 |
| Mustache | 14 | 359 | 326 | 17 | 16 |
| BASH | 3 | 50 | 30 | 8 | 12 |
| Shell | 1 | 32 | 27 | 4 | 1 |
| HTML | 1 | 7 | 7 | 0 | 0 |
| Makefile | 1 | 2 | 2 | 0 | 0 |
| Markdown | 41 | 12,536 | 0 | 10,069 | 2,467 |
| Plain Text | 8 | 241 | 0 | 225 | 16 |

Top programming language: PHP 24.8%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/wikimedia/mediawiki/commit/6e99520a63d08241b93ed21318879dd220bb86c5?reportId=5e586642321785cc78300e0229cdf5ffb76f94fcf4c76ebe0a55dabb6b984279&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/wikimedia/mediawiki/commit/6e99520a63d08241b93ed21318879dd220bb86c5?reportId=5e586642321785cc78300e0229cdf5ffb76f94fcf4c76ebe0a55dabb6b984279&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 wikimedia/mediawiki have?

wikimedia/mediawiki has 1,951,723 lines of code, plus 303,672 comment lines and 104,239 blank lines, for 2,359,634 total lines at commit 6e99520a63d0 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 6e99520a63d0, 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 6e99520a63d0 on November 16, 2026.

## Similar repository reports

- [lexifina/global-law](https://octocounts.com/github/lexifina/global-law) — JSON, 1,874,698 code lines
- [emmertex/chromaforge](https://octocounts.com/github/emmertex/chromaforge) — JSON, 2,033,585 code lines
- [baserow/baserow](https://octocounts.com/github/baserow/baserow) — JSON, 2,036,697 code lines
- [beenuar/AiSOC](https://octocounts.com/github/beenuar/AiSOC) — JSON, 2,047,327 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 code lines
- [BAITC-Hacks/hack-96839d9e-hustlers](https://octocounts.com/github/BAITC-Hacks/hack-96839d9e-hustlers) — JSON, 2,167,611 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)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
