carbon-language/carbon-lang

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.

As of 2026-10-22 (commit ebc155734546), carbon-language/carbon-lang contains 296,579 total lines: 163,350 code, 91,803 comments, 41,426 blank, across 1,168 files in 28 languages (top: C++ 63.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-22 (commit ebc155734546), carbon-language/carbon-lang contains 296,579 total lines: 163,350 code, 91,803 comments, 41,426 blank, across 1,168 files in 28 languages (top: C++ 63.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

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.

LanguageFilesLinesCodeCommentsBlanks
C++4271400601044192006015581
C Header3145518028683178868611
Bazel9111861974610811034
Python54926972987271244
JSON76617661700
Module-Definition10399136240367
JavaScript4133212039732
SVG10543530130
TypeScript13452733834
Shell73621979768
Scheme11811591111
C11801283814

Top language (C++ 63.9%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

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.605889557+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for carbon-language/carbon-lang on this page — 163,350 code lines across 12 languages, counted by tokei.