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.
As of 2026-11-13 (commit 9977d90894fe), RobotLocomotion/drake contains 769,123 total lines: 504,901 code, 192,303 comments, 71,919 blank, across 3,340 files in 22 languages (top language: C++ 42.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
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.
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++ | 1204 | 286155 | 216628 | 38655 | 30872 |
| C Header | 1281 | 370901 | 200817 | 140551 | 29533 |
| Bazel | 494 | 62383 | 54251 | 2933 | 5199 |
| Python | 163 | 27814 | 21821 | 2543 | 3450 |
| SVG | 9 | 5202 | 5190 | 6 | 6 |
| Jupyter Notebooks | 28 | 6394 | 3159 | 2048 | 1187 |
| CMake | 7 | 1227 | 1068 | 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 |
Top language: C++ 42.9%. Generated on .
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.
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.
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.
This OctoCounts report was generated from master at commit 9977d90894fe on November 13, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for RobotLocomotion/drake on this page — 504,901 code lines across 22 languages, counted by tokei.