# apache/thrift SLOC report

> apache/thrift: 258,977 code lines at commit 925120084185, counted with tokei-15.0.0 on 2026-11-20. Saved result f48aff99423065010105b357e74c365fdea83d8d4b31d3bde3eb2212e0caa9d2.

apache/thrift has 258,977 source lines of code out of 380,826 total lines across 1,685 files, counted with tokei from the 925120084185f6fc7073f1377a47cdba2359505f ref at commit 925120084185 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/thrift to commit 925120084185, 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/thrift: 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 68.0% of all lines, comments represent 19.3%, and the repository averages 154 code lines per file. C++ accounts for 28.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 120 | 94,863 | 73,043 | 10,750 | 11,070 |
| Ruby | 94 | 23,128 | 17,379 | 2,545 | 3,204 |
| Java | 194 | 28,583 | 17,230 | 7,921 | 3,432 |
| Go | 108 | 23,180 | 17,148 | 3,831 | 2,201 |
| C Header | 194 | 26,821 | 14,388 | 8,293 | 4,140 |
| C# | 133 | 18,890 | 13,055 | 3,310 | 2,525 |
| D | 54 | 21,596 | 12,992 | 5,942 | 2,662 |
| JSON | 13 | 12,774 | 12,770 | 0 | 4 |
| C | 48 | 16,743 | 12,547 | 1,910 | 2,286 |
| Pascal | 21 | 14,596 | 10,545 | 1,446 | 2,605 |
| Rust | 27 | 10,413 | 7,819 | 943 | 1,651 |
| JavaScript | 47 | 11,394 | 7,415 | 2,785 | 1,194 |
| Python | 49 | 8,510 | 5,881 | 1,261 | 1,368 |
| PHP | 60 | 8,761 | 5,304 | 2,188 | 1,269 |
| Haxe | 68 | 8,418 | 4,960 | 2,083 | 1,375 |
| Erlang | 31 | 6,349 | 4,599 | 1,150 | 600 |
| Dart | 40 | 4,641 | 3,091 | 820 | 730 |
| M4 | 23 | 4,185 | 2,718 | 1,025 | 442 |
| Perl | 26 | 4,397 | 2,672 | 974 | 751 |
| Lua | 12 | 3,106 | 2,418 | 321 | 367 |
| Automake | 55 | 4,166 | 2,383 | 1,120 | 663 |
| Thrift | 52 | 3,167 | 1,168 | 1,583 | 416 |
| Visual Studio Project | 5 | 1,148 | 1,148 | 0 | 0 |
| Shell | 26 | 1,440 | 909 | 315 | 216 |
| OCaml | 11 | 1,135 | 830 | 204 | 101 |
| MSBuild | 17 | 1,150 | 771 | 311 | 68 |
| CMake | 11 | 1,027 | 633 | 272 | 122 |
| PowerShell | 2 | 654 | 437 | 121 | 96 |
| LLVM | 1 | 389 | 376 | 0 | 13 |
| XML | 8 | 513 | 319 | 147 | 47 |
| Dockerfile | 4 | 312 | 260 | 0 | 52 |
| Kotlin | 4 | 332 | 223 | 74 | 35 |
| TypeScript | 1 | 716 | 183 | 435 | 98 |
| RPM Specfile | 1 | 252 | 182 | 18 | 52 |
| Visual Studio Solution | 4 | 157 | 154 | 0 | 3 |
| Common Lisp | 8 | 278 | 144 | 91 | 43 |
| Batch | 5 | 149 | 131 | 0 | 18 |
| YAML | 7 | 286 | 111 | 146 | 29 |
| HTML | 3 | 171 | 108 | 54 | 9 |
| Rakefile | 1 | 149 | 107 | 22 | 20 |
| Emacs Lisp | 1 | 140 | 98 | 28 | 14 |
| Makefile | 7 | 206 | 96 | 74 | 36 |
| Vim Script | 1 | 91 | 69 | 17 | 5 |
| TOML | 4 | 62 | 55 | 0 | 7 |
| Autoconf | 6 | 150 | 50 | 90 | 10 |
| Bitbake | 1 | 50 | 36 | 0 | 14 |
| CSS | 1 | 33 | 13 | 18 | 2 |
| Forge Config | 2 | 8 | 8 | 0 | 0 |
| INI | 1 | 1 | 1 | 0 | 0 |
| Markdown | 71 | 11,066 | 0 | 8,900 | 2,166 |
| Plain Text | 2 | 80 | 0 | 58 | 22 |

Top language: C++ 28.2%. Generated on November 20, 2026. Canonical report: https://octocounts.com/github/apache/thrift/commit/925120084185f6fc7073f1377a47cdba2359505f?reportId=f48aff99423065010105b357e74c365fdea83d8d4b31d3bde3eb2212e0caa9d2&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/thrift/commit/925120084185f6fc7073f1377a47cdba2359505f?reportId=f48aff99423065010105b357e74c365fdea83d8d4b31d3bde3eb2212e0caa9d2&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/thrift have?

apache/thrift has 258,977 lines of code, plus 73,596 comment lines and 48,253 blank lines, for 380,826 total lines at commit 925120084185 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 925120084185, 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/thrift?

This OctoCounts report was generated from 925120084185f6fc7073f1377a47cdba2359505f at commit 925120084185 on November 20, 2026.

## Similar repository reports

- [zeas2/Kirikiroid2](https://octocounts.com/github/zeas2/Kirikiroid2) — C++, 262,282 code lines
- [Mrsuss60/bloodborne_pc_windows_port](https://octocounts.com/github/Mrsuss60/bloodborne_pc_windows_port) — C++, 253,891 code lines
- [fltk/fltk](https://octocounts.com/github/fltk/fltk) — C++, 265,110 code lines
- [ip7z/7zip](https://octocounts.com/github/ip7z/7zip) — C++, 266,788 code lines
- [gscept/nebula](https://octocounts.com/github/gscept/nebula) — C++, 267,433 code lines
- [microsoft/terminal](https://octocounts.com/github/microsoft/terminal) — C++, 267,436 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)
