# apache/brpc SLOC report

> apache/brpc: 200,260 code lines at commit 86a9617273f6, counted with tokei-15.0.0 on 2026-11-09. Saved result d32a87c7fc236dee0f723cd98498caa63e99e07d7b5af87101cb48cad9ffb1dc.

Source: [apache/brpc on GitHub](https://github.com/apache/brpc) · counted commit [86a9617273f6](https://github.com/apache/brpc/tree/86a9617273f6b4773005f5ec5e1d0a99aa5843b1)

apache/brpc has 200,260 source lines of code out of 289,183 total lines across 1,258 files, counted with tokei from the master ref at commit 86a9617273f6 on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/brpc to commit 86a9617273f6, 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

apache/brpc: 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 69.3% of all lines, comments represent 19.3%, and the repository averages 159 code lines per file. C++ accounts for 64.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 444 | 161,829 | 128,372 | 18,869 | 14,588 |
| C Header | 576 | 105,136 | 60,296 | 29,558 | 15,282 |
| Bazel | 34 | 4,148 | 2,959 | 829 | 360 |
| CMake | 51 | 3,216 | 1,925 | 905 | 386 |
| Shell | 12 | 2,049 | 1,496 | 344 | 209 |
| Protocol Buffers | 49 | 2,326 | 1,092 | 903 | 331 |
| Makefile | 29 | 1,703 | 1,001 | 502 | 200 |
| Python | 4 | 904 | 718 | 84 | 102 |
| Objective-C++ | 5 | 989 | 692 | 140 | 157 |
| C++ Header | 2 | 679 | 505 | 79 | 95 |
| JSON | 4 | 290 | 273 | 0 | 17 |
| C | 2 | 353 | 215 | 77 | 61 |
| Lua | 1 | 325 | 187 | 81 | 57 |
| Ruby | 2 | 233 | 151 | 53 | 29 |
| BASH | 4 | 178 | 104 | 63 | 11 |
| RPM Specfile | 1 | 125 | 82 | 19 | 24 |
| Go | 1 | 80 | 55 | 16 | 9 |
| Autoconf | 3 | 90 | 37 | 43 | 10 |
| YAML | 2 | 36 | 36 | 0 | 0 |
| FlatBuffers Schema | 2 | 76 | 28 | 39 | 9 |
| Dockerfile | 1 | 42 | 21 | 17 | 4 |
| Thrift | 1 | 38 | 14 | 18 | 6 |
| SVG | 1 | 1 | 1 | 0 | 0 |
| Markdown | 25 | 4,092 | 0 | 3,013 | 1,079 |
| Plain Text | 2 | 245 | 0 | 166 | 79 |

Top language: C++ 64.1%. Generated on November 9, 2026. Canonical report: https://octocounts.com/github/apache/brpc/commit/86a9617273f6b4773005f5ec5e1d0a99aa5843b1?reportId=d32a87c7fc236dee0f723cd98498caa63e99e07d7b5af87101cb48cad9ffb1dc&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/apache/brpc/commit/86a9617273f6b4773005f5ec5e1d0a99aa5843b1?reportId=d32a87c7fc236dee0f723cd98498caa63e99e07d7b5af87101cb48cad9ffb1dc&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 apache/brpc have?

apache/brpc has 200,260 lines of code, plus 55,818 comment lines and 33,105 blank lines, for 289,183 total lines at commit 86a9617273f6 on November 9, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the apache/brpc line count measured?

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

### What commit was counted for apache/brpc?

This OctoCounts report was generated from master at commit 86a9617273f6 on November 9, 2026.

## Similar repository reports

- [BruceDevices/firmware](https://octocounts.com/github/BruceDevices/firmware) — C++, 203,850 code lines
- [rsta2/circle](https://octocounts.com/github/rsta2/circle) — C++, 207,098 code lines
- [VKCOM/kphp](https://octocounts.com/github/VKCOM/kphp) — C++, 207,117 code lines
- [FlightGear/simgear](https://octocounts.com/github/FlightGear/simgear) — C++, 201,050 code lines
- [WacKEDmaN/CPCSyntaxError](https://octocounts.com/github/WacKEDmaN/CPCSyntaxError) — C++, 199,783 code lines
- [clice-io/clice](https://octocounts.com/github/clice-io/clice) — C++, 209,878 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
