twitter/the-algorithm has 525,329 source lines of code out of 675,345 total lines across 7,509 files, counted with tokei from the main ref at commit c54bec0d4e02 on November 2, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
twitter/the-algorithm: 525,329 code lines at commit c54bec0d4e02, counted with tokei-15.0.0 on 2026-11-02. Saved result 999bd59bf3898527f99d269b4d73b8ec2c6647e2cd84a14eeb24ecdec6e37094.
OctoCounts produced this report by resolving twitter/the-algorithm to commit c54bec0d4e02, 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 77.8% of all lines, comments represent 10.5%, and the repository averages 70 code lines per file. Scala accounts for 65.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Scala | 4842 | 429648 | 344086 | 37717 | 47845 |
| Java | 1043 | 135517 | 97317 | 18256 | 19944 |
| Bazel | 954 | 30984 | 30247 | 87 | 650 |
| Python | 179 | 25301 | 20803 | 935 | 3563 |
| C++ | 51 | 10614 | 8711 | 469 | 1434 |
| Rust | 30 | 7411 | 6737 | 273 | 401 |
| Thrift | 113 | 14433 | 6674 | 5794 | 1965 |
| Protocol Buffers | 90 | 9456 | 3458 | 4514 | 1484 |
| YAML | 15 | 2557 | 2016 | 40 | 501 |
| C Header | 41 | 2868 | 2009 | 412 | 447 |
| XML | 16 | 2169 | 1492 | 388 | 289 |
| SQL | 23 | 1262 | 1082 | 82 | 98 |
| Shell | 14 | 361 | 242 | 34 | 85 |
| TOML | 4 | 132 | 123 | 0 | 9 |
| ReStructuredText | 1 | 132 | 96 | 0 | 36 |
| CMake | 2 | 115 | 87 | 7 | 21 |
| JSON | 1 | 55 | 55 | 0 | 0 |
| INI | 8 | 76 | 40 | 21 | 15 |
| Dockerfile | 1 | 34 | 25 | 6 | 3 |
| GraphQL | 1 | 15 | 15 | 0 | 0 |
| Forge Config | 3 | 18 | 14 | 0 | 4 |
| Markdown | 77 | 2187 | 0 | 1596 | 591 |
Top language: Scala 65.5%. Generated on .
twitter/the-algorithm: 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.
twitter/the-algorithm has 525,329 lines of code, plus 70,631 comment lines and 79,385 blank lines, for 675,345 total lines at commit c54bec0d4e02 on November 2, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit c54bec0d4e02, 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 main at commit c54bec0d4e02 on November 2, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for twitter/the-algorithm on this page — 525,329 code lines across 22 languages, counted by tokei.