# drupal/drupal SLOC report

> As of 2026-09-15 (commit b9b3d5914c6f), drupal/drupal contains 868,886 total lines: 460,880 code, 319,344 comments, 88,662 blank, across 8,678 files in 12 languages (top: PHP 63.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

drupal/drupal has 460,880 source lines of code out of 868,886 total lines across 8,678 files, counted from the b9b3d5914c6f570138853f2f9cb1d214c4de9cb7 ref at commit b9b3d5914c6f by the OctoCounts tokei engine on 2026-09-15. 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 drupal/drupal to commit b9b3d5914c6f, 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 large codebase by counted code lines. Code represents 53.0% of all lines, comments represent 36.8%, and the repository averages 53 code lines per file. PHP accounts for 63.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| PHP | 4,941 | 628,277 | 293,668 | 266,470 | 68,139 |
| CSS | 886 | 89,348 | 66,360 | 11,559 | 11,429 |
| YAML | 1,046 | 49,677 | 46,765 | 1,353 | 1,559 |
| JavaScript | 244 | 41,684 | 23,820 | 14,424 | 3,440 |
| Twig | 744 | 28,980 | 15,009 | 13,352 | 619 |
| Bitbake | 21 | 8,921 | 8,434 | 0 | 487 |
| JSON | 42 | 3,052 | 3,050 | 0 | 2 |
| SVG | 573 | 1,725 | 1,724 | 0 | 1 |
| Shell | 5 | 1,965 | 1,639 | 112 | 214 |
| HTML | 36 | 426 | 411 | 1 | 14 |
| Markdown | 13 | 1,118 | 0 | 887 | 231 |
| Plain Text | 127 | 13,713 | 0 | 11,186 | 2,527 |

Top language (PHP 63.7%). Generated at 2026-09-15T01:20:54.733060040+00:00. Canonical report: https://octocounts.com/github/drupal/drupal

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/drupal/drupal/commit/b9b3d5914c6f570138853f2f9cb1d214c4de9cb7?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).

## Report FAQ

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

drupal/drupal has 868,886 total lines, including 460,880 code lines, 319,344 comment lines, and 88,662 blank lines.

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

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

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

This OctoCounts report was generated from b9b3d5914c6f570138853f2f9cb1d214c4de9cb7 at commit b9b3d5914c6f on 2026-09-15T01:20:54.733060040+00:00.

## Similar repository reports

- [OpenMage/magento-lts](https://octocounts.com/github/OpenMage/magento-lts) — PHP, 477,486 code lines
- [aureuserp/aureuserp](https://octocounts.com/github/aureuserp/aureuserp) — PHP, 371,662 code lines
- [joomla/joomla-cms](https://octocounts.com/github/joomla/joomla-cms) — PHP, 333,841 code lines
- [phpbb/phpbb](https://octocounts.com/github/phpbb/phpbb) — PHP, 322,801 code lines
- [Mes-Open/OpenMes](https://octocounts.com/github/Mes-Open/OpenMes) — PHP, 288,369 code lines
- [humhub/humhub](https://octocounts.com/github/humhub/humhub) — PHP, 246,359 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)
