wikimedia/mediawiki has 1,950,558 source lines of code out of 2,358,232 total lines across 9,889 files, counted with tokei from the master ref at commit e0a4c1f11c7b on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-07 (commit e0a4c1f11c7b), wikimedia/mediawiki contains 2,358,232 total lines: 1,950,558 code, 303,499 comments, 104,175 blank, across 9,889 files in 18 languages (top programming language: PHP 24.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving wikimedia/mediawiki to commit e0a4c1f11c7b, 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.
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 | 3429 | 1271122 | 1270952 | 0 | 170 |
| PHP | 3892 | 797661 | 483152 | 236588 | 77921 |
| JavaScript | 695 | 238532 | 165303 | 53275 | 19954 |
| LESS | 190 | 14937 | 10841 | 2161 | 1935 |
| CSS | 171 | 10718 | 9709 | 553 | 456 |
| SVG | 1302 | 4430 | 4427 | 0 | 3 |
| SQL | 114 | 5588 | 4112 | 421 | 1055 |
| XML | 4 | 616 | 516 | 60 | 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 |
Top programming language: PHP 24.8%. Generated on .
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.
wikimedia/mediawiki has 1,950,558 lines of code, plus 303,499 comment lines and 104,175 blank lines, for 2,358,232 total lines at commit e0a4c1f11c7b on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit e0a4c1f11c7b, 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 e0a4c1f11c7b on November 7, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for wikimedia/mediawiki on this page — 1,950,558 code lines across 18 languages, counted by tokei.