# google/or-tools SLOC report

> As of 2026-11-20 (commit 4782dbd0aa85), google/or-tools contains 1,324,396 total lines: 896,025 code, 290,847 comments, 137,524 blank, across 3,923 files in 27 languages (top language: C++ 64.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

google/or-tools has 896,025 source lines of code out of 1,324,396 total lines across 3,923 files, counted with tokei from the main ref at commit 4782dbd0aa85 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving google/or-tools to commit 4782dbd0aa85, 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

google/or-tools: 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 67.7% of all lines, comments represent 22.0%, and the repository averages 228 code lines per file. C++ accounts for 64.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 1,289 | 730,221 | 579,950 | 79,728 | 70,543 |
| C Header | 698 | 199,266 | 107,654 | 62,041 | 29,571 |
| Python | 417 | 94,512 | 68,716 | 13,596 | 12,200 |
| Bazel | 142 | 37,514 | 32,897 | 1,947 | 2,670 |
| Java | 263 | 46,139 | 29,310 | 10,939 | 5,890 |
| Julia | 73 | 24,636 | 22,065 | 342 | 2,229 |
| C# | 237 | 37,090 | 21,239 | 11,311 | 4,540 |
| CMake | 135 | 12,582 | 8,956 | 2,547 | 1,079 |
| Makefile | 16 | 6,282 | 4,629 | 960 | 693 |
| Go | 29 | 5,832 | 4,290 | 843 | 699 |
| Autoconf | 37 | 13,535 | 3,587 | 7,305 | 2,643 |
| Protocol Buffers | 60 | 13,335 | 3,578 | 7,926 | 1,831 |

Top language: C++ 64.7%. Generated on November 20, 2026. Canonical report: https://octocounts.com/github/google/or-tools

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/google/or-tools/commit/4782dbd0aa85621c8115cf33de1574a2e6757004?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=d4e39ae7998f533aea34cff17902b71593c386a65ae29368404afac3d8df05e7).

## Report FAQ

### How many lines of code does google/or-tools have?

google/or-tools has 896,025 lines of code, plus 290,847 comment lines and 137,524 blank lines, for 1,324,396 total lines at commit 4782dbd0aa85 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the google/or-tools line count measured?

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

### What commit was counted for google/or-tools?

This OctoCounts report was generated from main at commit 4782dbd0aa85 on November 20, 2026.

## Similar repository reports

- [ggml-org/llama.cpp](https://octocounts.com/github/ggml-org/llama.cpp) — C++, 900,912 code lines
- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 906,310 code lines
- [protocolbuffers/protobuf](https://octocounts.com/github/protocolbuffers/protobuf) — C++, 910,681 code lines
- [d99kris/nchat](https://octocounts.com/github/d99kris/nchat) — C++, 856,100 code lines
- [OpenRCT2/OpenRCT2](https://octocounts.com/github/OpenRCT2/OpenRCT2) — C++, 851,780 code lines
- [Kitware/ParaView](https://octocounts.com/github/Kitware/ParaView) — C++, 952,970 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)
