# plan9foundation/plan9 SLOC report

> As of 2026-08-25 (commit ed1a9c21e329), plan9foundation/plan9 contains 2,112,792 total lines: 1,659,936 code, 238,248 comments, 214,608 blank, across 6,725 files in 42 languages (top: C 85.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

plan9foundation/plan9 has 1,659,936 source lines of code out of 2,112,792 total lines across 6,725 files, counted from the main ref at commit ed1a9c21e329 by the OctoCounts tokei engine on 2026-08-25. 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 plan9foundation/plan9 to commit ed1a9c21e329, 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 78.6% of all lines, comments represent 11.3%, and the repository averages 247 code lines per file. C accounts for 85.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 4,757 | 1,755,932 | 1,410,478 | 167,281 | 178,173 |
| C Header | 1,336 | 221,247 | 150,771 | 47,158 | 23,318 |
| SWIG | 4 | 24,226 | 23,922 | 300 | 4 |
| GNU Style Assembly | 264 | 28,632 | 20,477 | 4,365 | 3,790 |
| Happy | 26 | 14,522 | 13,560 | 0 | 962 |
| Makefile | 92 | 21,486 | 12,070 | 5,124 | 4,292 |
| TeX | 1 | 4,466 | 4,465 | 1 | 0 |
| Shell | 43 | 5,036 | 3,612 | 733 | 691 |
| HTML | 20 | 2,993 | 2,936 | 18 | 39 |
| R | 1 | 2,542 | 2,519 | 1 | 22 |
| C++ | 3 | 3,130 | 2,435 | 339 | 356 |
| Prolog | 4 | 3,352 | 2,239 | 14 | 1,099 |

Top language (C 85.0%). Generated at 2026-08-25T18:48:04.116147571+00:00. Canonical report: https://octocounts.com/github/plan9foundation/plan9

## Reproduce this report

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

plan9foundation/plan9 has 2,112,792 total lines, including 1,659,936 code lines, 238,248 comment lines, and 214,608 blank lines.

### How was the plan9foundation/plan9 line count measured?

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

### What commit was counted for plan9foundation/plan9?

This OctoCounts report was generated from main at commit ed1a9c21e329 on 2026-08-25T18:48:04.116147571+00:00.

## Similar repository reports

- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,630,624 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,628,496 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,627,455 code lines
- [php/php-src](https://octocounts.com/github/php/php-src) — C, 1,793,289 code lines
- [apple-oss-distributions/xnu](https://octocounts.com/github/apple-oss-distributions/xnu) — C, 1,390,343 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,041,434 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)
