# systemd/systemd SLOC report

> As of 2026-09-22 (commit 0827be05dd2d), systemd/systemd contains 1,672,407 total lines: 981,683 code, 384,212 comments, 306,512 blank, across 4,170 files in 19 languages (top: C 70.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

systemd/systemd has 981,683 source lines of code out of 1,672,407 total lines across 4,170 files, counted from the main ref at commit 0827be05dd2d by the OctoCounts tokei engine on 2026-09-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 systemd/systemd to commit 0827be05dd2d, 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 58.7% of all lines, comments represent 23.0%, and the repository averages 235 code lines per file. C accounts for 70.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,606 | 930,621 | 691,933 | 48,316 | 190,372 |
| XML | 487 | 164,271 | 142,643 | 1,068 | 20,560 |
| C Header | 1,421 | 119,526 | 72,501 | 28,590 | 18,435 |
| PO File | 54 | 75,973 | 41,938 | 18,475 | 15,560 |
| Meson | 154 | 14,355 | 12,685 | 485 | 1,185 |
| Autoconf | 214 | 15,675 | 10,522 | 2,503 | 2,650 |
| Python | 44 | 8,501 | 6,349 | 737 | 1,415 |
| Shell | 41 | 1,864 | 1,187 | 376 | 301 |
| JSON | 51 | 973 | 973 | 0 | 0 |
| Snakemake | 39 | 866 | 453 | 199 | 214 |
| XSL | 2 | 378 | 282 | 56 | 40 |
| AWK | 10 | 142 | 122 | 10 | 10 |

Top language (C 70.5%). Generated at 2026-09-22T15:03:25.362137288+00:00. Canonical report: https://octocounts.com/github/systemd/systemd

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/systemd/systemd/commit/0827be05dd2d47ce9fcf324ce1aa223b87ffad53?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 systemd/systemd have?

systemd/systemd has 1,672,407 total lines, including 981,683 code lines, 384,212 comment lines, and 306,512 blank lines.

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

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

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

This OctoCounts report was generated from main at commit 0827be05dd2d on 2026-09-22T15:03:25.362137288+00:00.

## Similar repository reports

- [riscvarchive/riscv-qemu](https://octocounts.com/github/riscvarchive/riscv-qemu) — C, 910,920 code lines
- [ChefKissInc/Inferno](https://octocounts.com/github/ChefKissInc/Inferno) — C, 1,055,014 code lines
- [JFeng-Z/MiaoUI](https://octocounts.com/github/JFeng-Z/MiaoUI) — C, 882,699 code lines
- [apple/darwin-xnu](https://octocounts.com/github/apple/darwin-xnu) — C, 1,106,636 code lines
- [uroni/urbackup_backend](https://octocounts.com/github/uroni/urbackup_backend) — C, 843,548 code lines
- [neovim/neovim](https://octocounts.com/github/neovim/neovim) — C, 726,630 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
