# carbon-language/carbon-lang SLOC report

> As of 2026-09-06 (commit 7938d9a8d055), carbon-language/carbon-lang contains 221,652 total lines: 113,470 code, 75,029 comments, 33,153 blank, across 981 files in 26 languages (top: C++ 61.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

carbon-language/carbon-lang has 113,470 source lines of code out of 221,652 total lines across 981 files, counted from the 7938d9a8d0556498754feb12695776702984c235 ref at commit 7938d9a8d055 by the OctoCounts tokei engine on 2026-09-06. 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 7938d9a8d055, 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 51.2% of all lines, comments represent 33.8%, and the repository averages 116 code lines per file. C++ accounts for 61.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 348 | 93,095 | 69,460 | 12,548 | 11,087 |
| C Header | 267 | 42,829 | 22,411 | 13,585 | 6,833 |
| Bazel | 82 | 9,027 | 7,360 | 910 | 757 |
| JSON | 5 | 4,610 | 4,610 | 0 | 0 |
| Python | 40 | 5,750 | 4,569 | 401 | 780 |
| Module-Definition | 9 | 3,533 | 3,203 | 0 | 330 |
| JavaScript | 4 | 1,138 | 935 | 94 | 109 |
| C | 1 | 181 | 127 | 40 | 14 |
| Vim Script | 3 | 123 | 113 | 6 | 4 |
| Scheme | 1 | 138 | 107 | 20 | 11 |
| Shell | 5 | 197 | 106 | 48 | 43 |
| SVG | 1 | 118 | 105 | 13 | 0 |

Top language (C++ 61.2%). Generated at 2026-09-06T08:57:54.985639543+00:00. Canonical report: https://octocounts.com/github/carbon-language/carbon-lang

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/carbon-language/carbon-lang/commit/7938d9a8d0556498754feb12695776702984c235?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 carbon-language/carbon-lang have?

carbon-language/carbon-lang has 221,652 total lines, including 113,470 code lines, 75,029 comment lines, and 33,153 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 7938d9a8d055, 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 7938d9a8d0556498754feb12695776702984c235 at commit 7938d9a8d055 on 2026-09-06T08:57:54.985639543+00:00.

## Similar repository reports

- [hyprwm/hyprland](https://octocounts.com/github/hyprwm/hyprland) — C++, 118,806 code lines
- [78/xiaozhi-esp32](https://octocounts.com/github/78/xiaozhi-esp32) — C++, 108,029 code lines
- [xxnuo/MTranServer](https://octocounts.com/github/xxnuo/MTranServer) — C++, 107,278 code lines
- [argotorg/solidity](https://octocounts.com/github/argotorg/solidity) — C++, 120,194 code lines
- [hyprwm/Hyprland](https://octocounts.com/github/hyprwm/Hyprland) — C++, 120,251 code lines
- [autohotkey/autohotkey](https://octocounts.com/github/autohotkey/autohotkey) — C++, 102,688 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)
