# carbon-language/carbon-lang SLOC report

> carbon-language/carbon-lang: 163,350 code lines at commit ebc155734546, counted with tokei-14.0.0 on 2026-10-22. Saved result 7c1820f383054aa8f427735e2ae602bf0e7ce0c83a1b55ca54dcc24591ec2c39.

carbon-language/carbon-lang has 163,350 source lines of code out of 296,579 total lines across 1,168 files, counted from the trunk ref at commit ebc155734546 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 carbon-language/carbon-lang to commit ebc155734546, 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 55.1% of all lines, comments represent 31.0%, and the repository averages 140 code lines per file. C++ accounts for 63.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 427 | 140,060 | 104,419 | 20,060 | 15,581 |
| C Header | 314 | 55,180 | 28,683 | 17,886 | 8,611 |
| Bazel | 91 | 11,861 | 9,746 | 1,081 | 1,034 |
| Python | 54 | 9,269 | 7,298 | 727 | 1,244 |
| JSON | 7 | 6,617 | 6,617 | 0 | 0 |
| Module-Definition | 10 | 3,991 | 3,624 | 0 | 367 |
| JavaScript | 4 | 1,332 | 1,203 | 97 | 32 |
| SVG | 10 | 543 | 530 | 13 | 0 |
| TypeScript | 1 | 345 | 273 | 38 | 34 |
| Shell | 7 | 362 | 197 | 97 | 68 |
| Scheme | 1 | 181 | 159 | 11 | 11 |
| C | 1 | 180 | 128 | 38 | 14 |
| Vim Script | 3 | 137 | 127 | 6 | 4 |
| HTML | 3 | 131 | 86 | 26 | 19 |
| Templ | 3 | 89 | 38 | 35 | 16 |
| Happy | 1 | 47 | 34 | 0 | 13 |
| Sass | 2 | 61 | 31 | 19 | 11 |
| TOML | 1 | 39 | 28 | 3 | 8 |
| Lua | 1 | 38 | 27 | 7 | 4 |
| BASH | 1 | 41 | 23 | 13 | 5 |
| YAML | 1 | 35 | 20 | 7 | 8 |
| Fish | 1 | 37 | 19 | 16 | 2 |
| Zsh | 1 | 33 | 17 | 11 | 5 |
| Lex | 1 | 25 | 16 | 5 | 4 |
| Makefile | 1 | 11 | 6 | 3 | 2 |
| Autoconf | 1 | 6 | 1 | 4 | 1 |
| Markdown | 218 | 65,786 | 0 | 51,459 | 14,327 |
| Plain Text | 2 | 142 | 0 | 141 | 1 |

Top language (C++ 63.9%). Generated at 2026-10-22T04:43:52.605889557Z. Canonical report: https://octocounts.com/github/carbon-language/carbon-lang/commit/ebc1557345468cf3a37e0c2e616550c79ad5ae8c?reportId=7c1820f383054aa8f427735e2ae602bf0e7ce0c83a1b55ca54dcc24591ec2c39&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/carbon-language/carbon-lang/commit/ebc1557345468cf3a37e0c2e616550c79ad5ae8c?reportId=7c1820f383054aa8f427735e2ae602bf0e7ce0c83a1b55ca54dcc24591ec2c39&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 carbon-language/carbon-lang have?

carbon-language/carbon-lang has 296,579 total lines, including 163,350 code lines, 91,803 comment lines, and 41,426 blank lines.

### How was the carbon-language/carbon-lang line count measured?

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

### What commit was counted for carbon-language/carbon-lang?

This OctoCounts report was generated from trunk at commit ebc155734546 on 2026-10-22T04:43:52.605889557Z.

## Similar repository reports

- [thepowersgang/mrustc](https://octocounts.com/github/thepowersgang/mrustc) — C++, 163,107 code lines
- [facebookresearch/faiss](https://octocounts.com/github/facebookresearch/faiss) — C++, 168,233 code lines
- [Edge0-AI/Edge0](https://octocounts.com/github/Edge0-AI/Edge0) — C++, 157,996 code lines
- [ml-explore/mlx](https://octocounts.com/github/ml-explore/mlx) — C++, 157,765 code lines
- [eclipse-score/communication](https://octocounts.com/github/eclipse-score/communication) — C++, 169,249 code lines
- [Edge0-AI/edge0](https://octocounts.com/github/Edge0-AI/edge0) — C++, 156,747 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
