# emacs-mirror/emacs SLOC report

> emacs-mirror/emacs: 2,051,551 code lines at commit 3354d07e5f8d, counted with tokei-14.0.0 on 2026-10-22. Saved result 17d0e9ebabb60a8c14d464abe0420ff66a585e1b40033c146b86805e587eed9e.

emacs-mirror/emacs has 2,051,551 source lines of code out of 2,929,489 total lines across 2,707 files, counted from the master ref at commit 3354d07e5f8d 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 emacs-mirror/emacs to commit 3354d07e5f8d, 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 70.0% of all lines, comments represent 20.1%, and the repository averages 758 code lines per file. Emacs Lisp accounts for 64.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Emacs Lisp | 1,639 | 1,729,479 | 1,319,663 | 231,595 | 178,221 |
| C | 341 | 595,461 | 413,050 | 106,710 | 75,701 |
| Lex | 1 | 175,844 | 175,844 | 0 | 0 |
| C Header | 253 | 84,004 | 53,295 | 20,057 | 10,652 |
| Objective-C | 8 | 26,350 | 19,173 | 3,122 | 4,055 |
| M4 | 151 | 19,664 | 13,208 | 5,274 | 1,182 |
| Autoconf | 32 | 16,936 | 11,368 | 3,055 | 2,513 |
| TeX | 24 | 14,031 | 9,152 | 2,090 | 2,789 |
| Java | 40 | 15,157 | 8,875 | 3,480 | 2,802 |
| C++ | 5 | 8,264 | 6,379 | 487 | 1,398 |
| Shell | 22 | 4,616 | 3,055 | 964 | 597 |
| The WenYan Programming Language | 5 | 3,212 | 2,677 | 0 | 535 |
| XML | 23 | 2,197 | 1,717 | 358 | 122 |
| SVG | 46 | 1,860 | 1,710 | 131 | 19 |
| GNU Style Assembly | 6 | 1,774 | 1,619 | 132 | 23 |
| HTML | 5 | 1,588 | 1,564 | 1 | 23 |
| SRecode Template | 17 | 2,125 | 1,324 | 326 | 475 |
| Makefile | 19 | 1,987 | 1,115 | 512 | 360 |
| AWK | 13 | 1,446 | 991 | 285 | 170 |
| Forth | 1 | 1,232 | 940 | 0 | 292 |
| Perl | 1 | 1,231 | 931 | 0 | 300 |
| BASH | 11 | 3,459 | 927 | 2,060 | 472 |
| SystemVerilog | 1 | 1,180 | 885 | 0 | 295 |
| C# | 1 | 1,174 | 880 | 0 | 294 |
| Python | 3 | 925 | 624 | 148 | 153 |
| Batch | 3 | 431 | 409 | 0 | 22 |
| GDB Script | 1 | 288 | 172 | 75 | 41 |
| ReScript | 1 | 4 | 4 | 0 | 0 |
| Markdown | 3 | 50 | 0 | 38 | 12 |
| Plain Text | 31 | 213,520 | 0 | 206,616 | 6,904 |

Top language (Emacs Lisp 64.3%). Generated at 2026-10-22T05:54:18.513534392Z. Canonical report: https://octocounts.com/github/emacs-mirror/emacs/commit/3354d07e5f8dafbf357a9df1edaabd3a30bbab67?reportId=17d0e9ebabb60a8c14d464abe0420ff66a585e1b40033c146b86805e587eed9e&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/emacs-mirror/emacs/commit/3354d07e5f8dafbf357a9df1edaabd3a30bbab67?reportId=17d0e9ebabb60a8c14d464abe0420ff66a585e1b40033c146b86805e587eed9e&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 emacs-mirror/emacs have?

emacs-mirror/emacs has 2,929,489 total lines, including 2,051,551 code lines, 587,516 comment lines, and 290,422 blank lines.

### How was the emacs-mirror/emacs line count measured?

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

### What commit was counted for emacs-mirror/emacs?

This OctoCounts report was generated from master at commit 3354d07e5f8d on 2026-10-22T05:54:18.513534392Z.

## Similar repository reports

- [idempiere/idempiere](https://octocounts.com/github/idempiere/idempiere) — SQL, 2,049,838 code lines
- [wszgrcy/vscode](https://octocounts.com/github/wszgrcy/vscode) — TypeScript, 2,047,718 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,063,553 code lines
- [crbnos/carbon](https://octocounts.com/github/crbnos/carbon) — TypeScript, 2,064,283 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)
- [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)
