# carbon-language/carbon-lang SLOC report

> carbon-language/carbon-lang: 169,095 code lines at commit 7a3608bab265, counted with tokei-15.0.0 on 2026-11-14. Saved result 0d0a7b0a61cc305194cb80a53cfbf8320a07ad0f9c302d28aad59614ab5150f5.

carbon-language/carbon-lang has 169,095 source lines of code out of 304,457 total lines across 1,181 files, counted with tokei from the trunk ref at commit 7a3608bab265 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving carbon-language/carbon-lang to commit 7a3608bab265, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

carbon-language/carbon-lang: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 55.5% of all lines, comments represent 30.6%, and the repository averages 143 code lines per file. C++ accounts for 63.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 432 | 144,700 | 107,945 | 20,831 | 15,924 |
| C Header | 318 | 56,727 | 29,601 | 18,341 | 8,785 |
| Bazel | 91 | 11,949 | 9,826 | 1,081 | 1,042 |
| Python | 57 | 10,587 | 8,420 | 798 | 1,369 |
| JSON | 7 | 6,684 | 6,684 | 0 | 0 |
| Module-Definition | 10 | 4,028 | 3,656 | 0 | 372 |
| 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 | 219 | 65,967 | 0 | 51,594 | 14,373 |
| Plain Text | 2 | 142 | 0 | 141 | 1 |

Top language: C++ 63.8%. Generated on November 14, 2026. Canonical report: https://octocounts.com/github/carbon-language/carbon-lang/commit/7a3608bab265e5716f174487ef7b18c134d728d2?reportId=0d0a7b0a61cc305194cb80a53cfbf8320a07ad0f9c302d28aad59614ab5150f5&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/7a3608bab265e5716f174487ef7b18c134d728d2?reportId=0d0a7b0a61cc305194cb80a53cfbf8320a07ad0f9c302d28aad59614ab5150f5&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 169,095 lines of code, plus 93,235 comment lines and 42,127 blank lines, for 304,457 total lines at commit 7a3608bab265 on November 14, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 7a3608bab265, 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 7a3608bab265 on November 14, 2026.

## Similar repository reports

- [devosoft/avida](https://octocounts.com/github/devosoft/avida) — C++, 172,073 code lines
- [moonlovelj/Nyx](https://octocounts.com/github/moonlovelj/Nyx) — C++, 173,662 code lines
- [eclipse-score/communication](https://octocounts.com/github/eclipse-score/communication) — C++, 173,670 code lines
- [tesseract-ocr/tesseract](https://octocounts.com/github/tesseract-ocr/tesseract) — C++, 164,483 code lines
- [psi-im/psi](https://octocounts.com/github/psi-im/psi) — C++, 174,285 code lines
- [SpeedBreakerProject/speedbreaker](https://octocounts.com/github/SpeedBreakerProject/speedbreaker) — C++, 163,259 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
