# moodle/moodle SLOC report

> As of 2026-10-22 (commit 46c042e7da65), moodle/moodle contains 8,531,914 total lines: 4,116,520 code, 3,874,315 comments, 541,079 blank, across 59,314 files in 19 languages (top: PHP 78.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

moodle/moodle has 4,116,520 source lines of code out of 8,531,914 total lines across 59,314 files, counted from the main ref at commit 46c042e7da65 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 moodle/moodle to commit 46c042e7da65, 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 48.2% of all lines, comments represent 45.4%, and the repository averages 69 code lines per file. PHP accounts for 78.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| PHP | 52,527 | 7,116,698 | 3,232,783 | 3,458,655 | 425,260 |
| JavaScript | 2,761 | 981,013 | 608,879 | 293,807 | 78,327 |
| CSS | 403 | 131,527 | 115,153 | 5,538 | 10,836 |
| Sass | 215 | 55,728 | 46,686 | 3,713 | 5,329 |
| JSON | 234 | 38,461 | 38,455 | 0 | 6 |
| Mustache | 1,292 | 86,561 | 33,249 | 52,297 | 1,015 |
| XML | 138 | 20,097 | 20,068 | 3 | 26 |
| TypeScript | 117 | 15,179 | 13,096 | 1,718 | 365 |
| SVG | 768 | 3,785 | 3,709 | 36 | 40 |
| TSX | 12 | 2,421 | 1,485 | 718 | 218 |
| HTML | 68 | 1,241 | 1,166 | 0 | 75 |
| XSL | 8 | 1,175 | 930 | 58 | 187 |

Top language (PHP 78.5%). Generated at 2026-10-22T05:26:21.895594475+00:00. Canonical report: https://octocounts.com/github/moodle/moodle

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/moodle/moodle/commit/46c042e7da65f8cb2ec7dc19f46566ce61a393e1?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=1cfbb4dbc4a94c6f6087306bca48d8bd75e5d21b4d92e31e22129262695c1329).

## Report FAQ

### How many lines of code does moodle/moodle have?

moodle/moodle has 8,531,914 total lines, including 4,116,520 code lines, 3,874,315 comment lines, and 541,079 blank lines.

### How was the moodle/moodle line count measured?

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

### What commit was counted for moodle/moodle?

This OctoCounts report was generated from main at commit 46c042e7da65 on 2026-10-22T05:26:21.895594475+00:00.

## Similar repository reports

- [ccxt/ccxt](https://octocounts.com/github/ccxt/ccxt) — PHP, 4,287,937 code lines
- [magento/magento2](https://octocounts.com/github/magento/magento2) — PHP, 2,154,649 code lines
- [Dolibarr/dolibarr](https://octocounts.com/github/Dolibarr/dolibarr) — PHP, 1,511,037 code lines
- [symfony/symfony](https://octocounts.com/github/symfony/symfony) — PHP, 1,305,779 code lines
- [WordPress/WordPress](https://octocounts.com/github/WordPress/WordPress) — PHP, 795,468 code lines
- [SuiteCRM/SuiteCRM](https://octocounts.com/github/SuiteCRM/SuiteCRM) — PHP, 727,616 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)
- [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)
