# MariaDB/server SLOC report

> MariaDB/server: 1,957,480 code lines at commit 54d860e94e9b, counted with tokei-15.0.0 on 2026-11-11. Saved result 97ac89376bd29c6e7ec57533489ff1c5d4873f4abe0d5c26c51d59a43d0ab6e1.

MariaDB/server has 1,957,480 source lines of code out of 2,914,723 total lines across 5,707 files, counted with tokei from the main ref at commit 54d860e94e9b on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving MariaDB/server to commit 54d860e94e9b, 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

MariaDB/server: 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 67.2% of all lines, comments represent 23.7%, and the repository averages 343 code lines per file. C++ accounts for 46.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 861 | 1,281,740 | 912,200 | 223,527 | 146,013 |
| C | 667 | 610,355 | 512,030 | 63,186 | 35,139 |
| C Header | 1,130 | 381,391 | 230,868 | 110,797 | 39,726 |
| Bitbake | 1,677 | 165,257 | 123,322 | 23,549 | 18,386 |
| Perl | 158 | 51,913 | 34,741 | 8,358 | 8,814 |
| Shell | 154 | 43,048 | 32,556 | 5,530 | 4,962 |
| JSON | 9 | 30,007 | 30,007 | 0 | 0 |
| Forge Config | 26 | 25,615 | 13,457 | 12,133 | 25 |
| CMake | 206 | 18,824 | 13,445 | 3,506 | 1,873 |
| C++ Header | 100 | 20,556 | 13,117 | 5,154 | 2,285 |
| SQL | 202 | 19,373 | 12,752 | 5,414 | 1,207 |
| Puppet | 11 | 6,589 | 6,585 | 4 | 0 |
| XML | 41 | 6,500 | 5,776 | 80 | 644 |
| Autoconf | 46 | 5,509 | 3,378 | 1,264 | 867 |
| Java | 13 | 3,067 | 2,264 | 126 | 677 |
| Python | 7 | 2,294 | 1,733 | 249 | 312 |
| PO File | 24 | 2,624 | 1,460 | 924 | 240 |
| Module-Definition | 62 | 1,449 | 1,388 | 20 | 41 |
| R | 1 | 1,109 | 1,059 | 0 | 50 |
| YAML | 3 | 1,158 | 907 | 178 | 73 |
| Happy | 2 | 901 | 768 | 0 | 133 |
| Automake | 23 | 831 | 716 | 1 | 114 |
| D | 10 | 563 | 489 | 14 | 60 |
| Lex | 3 | 757 | 458 | 125 | 174 |
| VB6/VBA | 94 | 439 | 425 | 0 | 14 |
| Ruby | 3 | 464 | 395 | 25 | 44 |
| HTML | 2 | 298 | 288 | 0 | 10 |
| SWIG | 1 | 498 | 242 | 175 | 81 |
| JavaScript | 1 | 265 | 151 | 81 | 33 |
| BASH | 4 | 206 | 92 | 81 | 33 |
| M4 | 1 | 109 | 73 | 33 | 3 |
| Batch | 9 | 73 | 67 | 5 | 1 |
| ReScript | 2 | 67 | 60 | 0 | 7 |
| Org | 1 | 81 | 57 | 7 | 17 |
| PowerShell | 1 | 58 | 51 | 4 | 3 |
| INI | 6 | 70 | 40 | 30 | 0 |
| PHP | 1 | 37 | 24 | 2 | 11 |
| AWK | 1 | 25 | 20 | 2 | 3 |
| LD Script | 1 | 31 | 10 | 20 | 1 |
| Monkey C | 1 | 15 | 7 | 7 | 1 |
| Madlang | 2 | 2 | 2 | 0 | 0 |
| Markdown | 14 | 3,465 | 0 | 2,247 | 1,218 |
| Plain Text | 126 | 227,090 | 0 | 225,195 | 1,895 |

Top language: C++ 46.6%. Generated on November 11, 2026. Canonical report: https://octocounts.com/github/MariaDB/server/commit/54d860e94e9bef188df8de6eab50119217654304?reportId=97ac89376bd29c6e7ec57533489ff1c5d4873f4abe0d5c26c51d59a43d0ab6e1&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/MariaDB/server/commit/54d860e94e9bef188df8de6eab50119217654304?reportId=97ac89376bd29c6e7ec57533489ff1c5d4873f4abe0d5c26c51d59a43d0ab6e1&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 MariaDB/server have?

MariaDB/server has 1,957,480 lines of code, plus 692,053 comment lines and 265,190 blank lines, for 2,914,723 total lines at commit 54d860e94e9b on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the MariaDB/server line count measured?

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

### What commit was counted for MariaDB/server?

This OctoCounts report was generated from main at commit 54d860e94e9b on November 11, 2026.

## Similar repository reports

- [brave/brave-core](https://octocounts.com/github/brave/brave-core) — C++, 1,953,128 code lines
- [TwilitRealm/dusklight](https://octocounts.com/github/TwilitRealm/dusklight) — C++, 1,944,296 code lines
- [ceph/ceph](https://octocounts.com/github/ceph/ceph) — C++, 2,010,166 code lines
- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,087,180 code lines
- [OSGeo/gdal](https://octocounts.com/github/OSGeo/gdal) — C++, 2,174,175 code lines
- [ryzom/ryzomcore](https://octocounts.com/github/ryzom/ryzomcore) — C++, 2,175,541 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)
- [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)
