# grpc/grpc SLOC report

> As of 2026-11-24 (commit 715322c2e2fc), grpc/grpc contains 1,176,899 total lines: 911,430 code, 155,915 comments, 109,554 blank, across 7,751 files in 46 languages (top language: C Header 33.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

Source: [grpc/grpc on GitHub](https://github.com/grpc/grpc) · counted commit [715322c2e2fc](https://github.com/grpc/grpc/tree/715322c2e2fcdee9e2bb40fc3b3f8f1d1a4449dc)

grpc/grpc has 911,430 source lines of code out of 1,176,899 total lines across 7,751 files, counted with tokei from the master ref at commit 715322c2e2fc on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving grpc/grpc to commit 715322c2e2fc, 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

grpc/grpc: 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 77.4% of all lines, comments represent 13.2%, and the repository averages 118 code lines per file. C Header accounts for 33.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 1,974 | 401,308 | 302,304 | 60,352 | 38,652 |
| C++ | 908 | 259,072 | 202,881 | 33,008 | 23,183 |
| Python | 2,636 | 151,326 | 117,498 | 16,164 | 17,664 |
| C | 481 | 104,961 | 88,831 | 7,077 | 9,053 |
| CMake | 46 | 61,606 | 57,591 | 1,076 | 2,939 |
| YAML | 18 | 40,874 | 40,577 | 285 | 12 |
| Bazel | 181 | 40,127 | 34,921 | 2,496 | 2,710 |
| Ruby | 159 | 17,786 | 11,870 | 3,889 | 2,027 |
| Shell | 274 | 14,666 | 6,640 | 5,968 | 2,058 |
| Cython | 66 | 9,166 | 6,196 | 1,330 | 1,640 |
| JSON | 52 | 5,129 | 5,127 | 0 | 2 |
| XML | 5 | 4,058 | 4,044 | 0 | 14 |

Top language: C Header 33.2%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/grpc/grpc

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/grpc/grpc/commit/715322c2e2fcdee9e2bb40fc3b3f8f1d1a4449dc?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&reportId=79072e3e0f821c5f08f48eb2c1ff26860c98507f8c7fcef7bba65b636536a60a).

## Report FAQ

### How many lines of code does grpc/grpc have?

grpc/grpc has 911,430 lines of code, plus 155,915 comment lines and 109,554 blank lines, for 1,176,899 total lines at commit 715322c2e2fc on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the grpc/grpc line count measured?

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

### What commit was counted for grpc/grpc?

This OctoCounts report was generated from master at commit 715322c2e2fc on November 24, 2026.

## 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
