# meta/buck2 SLOC report

> As of 2026-11-24 (commit d3af1f732da7), meta/buck2 contains 1,244,889 total lines: 1,021,932 code, 107,112 comments, 115,845 blank, across 5,446 files in 41 languages (top language: Rust 62.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

Source: [meta/buck2 on GitHub](https://github.com/meta/buck2) · counted commit [d3af1f732da7](https://github.com/meta/buck2/tree/d3af1f732da731cffecfca33e19085b7d7c76858)

meta/buck2 has 1,021,932 source lines of code out of 1,244,889 total lines across 5,446 files, counted with tokei from the main ref at commit d3af1f732da7 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving meta/buck2 to commit d3af1f732da7, 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

meta/buck2: 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 very large codebase by counted code lines. Code represents 82.1% of all lines, comments represent 8.6%, and the repository averages 188 code lines per file. Rust accounts for 62.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 2,883 | 764,485 | 641,697 | 49,205 | 73,583 |
| Bazel | 758 | 136,240 | 107,547 | 15,989 | 12,704 |
| JavaScript | 9 | 67,607 | 63,325 | 475 | 3,807 |
| Java | 544 | 78,006 | 54,921 | 13,984 | 9,101 |
| JSON | 40 | 48,805 | 48,805 | 0 | 0 |
| Python | 231 | 40,006 | 30,948 | 3,808 | 5,250 |
| Kotlin | 238 | 33,753 | 23,743 | 6,880 | 3,130 |
| TSX | 67 | 12,126 | 9,829 | 1,381 | 916 |
| Erlang | 53 | 11,217 | 9,364 | 786 | 1,067 |
| Protocol Buffers | 32 | 13,699 | 7,678 | 4,089 | 1,932 |
| TypeScript | 48 | 10,511 | 7,451 | 2,164 | 896 |
| TOML | 306 | 9,370 | 7,182 | 1,299 | 889 |

Top language: Rust 62.8%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/meta/buck2

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/meta/buck2/commit/d3af1f732da731cffecfca33e19085b7d7c76858?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=19b7b30261f2c3a732e195c2a441d87f1fdca2cfc87746831d3a3c5035ca74f0).

## Report FAQ

### How many lines of code does meta/buck2 have?

meta/buck2 has 1,021,932 lines of code, plus 107,112 comment lines and 115,845 blank lines, for 1,244,889 total lines at commit d3af1f732da7 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the meta/buck2 line count measured?

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

### What commit was counted for meta/buck2?

This OctoCounts report was generated from main at commit d3af1f732da7 on November 24, 2026.

## Similar repository reports

- [zephium-browser/Zephium](https://octocounts.com/github/zephium-browser/Zephium) — Rust, 1,027,592 code lines
- [l0ng-ai/openidea](https://octocounts.com/github/l0ng-ai/openidea) — Rust, 1,034,916 code lines
- [ZhangHanDong/grok-build](https://octocounts.com/github/ZhangHanDong/grok-build) — Rust, 994,586 code lines
- [mondaylabsltd/vela-wallet](https://octocounts.com/github/mondaylabsltd/vela-wallet) — Rust, 993,302 code lines
- [alplabai/signex](https://octocounts.com/github/alplabai/signex) — Rust, 993,256 code lines
- [tonhowtf/omniget](https://octocounts.com/github/tonhowtf/omniget) — Rust, 993,146 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [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)
