# RobotLocomotion/drake SLOC report

> RobotLocomotion/drake: 504,901 code lines at commit 9977d90894fe, counted with tokei-15.0.0 on 2026-11-13. Saved result 47021d4f64c38c723d8546ff057a135bb3217825dcd09b19748e49f2abcdf15f.

RobotLocomotion/drake has 504,901 source lines of code out of 769,123 total lines across 3,340 files, counted with tokei from the master ref at commit 9977d90894fe on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving RobotLocomotion/drake to commit 9977d90894fe, 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

RobotLocomotion/drake: 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 65.6% of all lines, comments represent 25.0%, and the repository averages 151 code lines per file. C++ accounts for 42.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 1,204 | 286,155 | 216,628 | 38,655 | 30,872 |
| C Header | 1,281 | 370,901 | 200,817 | 140,551 | 29,533 |
| Bazel | 494 | 62,383 | 54,251 | 2,933 | 5,199 |
| Python | 163 | 27,814 | 21,821 | 2,543 | 3,450 |
| SVG | 9 | 5,202 | 5,190 | 6 | 6 |
| Jupyter Notebooks | 28 | 6,394 | 3,159 | 2,048 | 1,187 |
| CMake | 7 | 1,227 | 1,068 | 76 | 83 |
| Autoconf | 30 | 633 | 437 | 98 | 98 |
| Shell | 19 | 751 | 431 | 179 | 141 |
| BASH | 8 | 613 | 371 | 152 | 90 |
| JSON | 2 | 237 | 216 | 0 | 21 |
| ReStructuredText | 1 | 178 | 135 | 0 | 43 |
| YAML | 2 | 150 | 118 | 24 | 8 |
| C | 1 | 89 | 78 | 4 | 7 |
| Dockerfile | 2 | 108 | 71 | 16 | 21 |
| TOML | 1 | 44 | 27 | 13 | 4 |
| XML | 2 | 28 | 27 | 0 | 1 |
| Forge Config | 4 | 65 | 20 | 33 | 12 |
| HTML | 1 | 26 | 20 | 1 | 5 |
| Pan | 1 | 24 | 16 | 2 | 6 |
| Markdown | 63 | 4,143 | 0 | 3,206 | 937 |
| Plain Text | 17 | 1,958 | 0 | 1,763 | 195 |

Top language: C++ 42.9%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/RobotLocomotion/drake/commit/9977d90894fe487195e9ac95a93ca4330a6ae81b?reportId=47021d4f64c38c723d8546ff057a135bb3217825dcd09b19748e49f2abcdf15f&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/RobotLocomotion/drake/commit/9977d90894fe487195e9ac95a93ca4330a6ae81b?reportId=47021d4f64c38c723d8546ff057a135bb3217825dcd09b19748e49f2abcdf15f&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 RobotLocomotion/drake have?

RobotLocomotion/drake has 504,901 lines of code, plus 192,303 comment lines and 71,919 blank lines, for 769,123 total lines at commit 9977d90894fe on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the RobotLocomotion/drake line count measured?

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

### What commit was counted for RobotLocomotion/drake?

This OctoCounts report was generated from master at commit 9977d90894fe on November 13, 2026.

## Similar repository reports

- [cloudflare/workerd](https://octocounts.com/github/cloudflare/workerd) — C++, 505,843 code lines
- [HaxxorCialtion/SimpleText2Motion](https://octocounts.com/github/HaxxorCialtion/SimpleText2Motion) — C++, 503,246 code lines
- [Gerate-Technik/zkgram](https://octocounts.com/github/Gerate-Technik/zkgram) — C++, 495,342 code lines
- [PointCloudLibrary/pcl](https://octocounts.com/github/PointCloudLibrary/pcl) — C++, 516,006 code lines
- [chromium/openscreen](https://octocounts.com/github/chromium/openscreen) — C++, 532,820 code lines
- [hsutter/cppfront](https://octocounts.com/github/hsutter/cppfront) — C++, 476,996 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)
