# twitter/the-algorithm SLOC report

> twitter/the-algorithm: 525,329 code lines at commit c54bec0d4e02, counted with tokei-15.0.0 on 2026-11-02. Saved result 999bd59bf3898527f99d269b4d73b8ec2c6647e2cd84a14eeb24ecdec6e37094.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 4,842 | 429,648 | 344,086 | 37,717 | 47,845 |
| Java | 1,043 | 135,517 | 97,317 | 18,256 | 19,944 |
| Bazel | 954 | 30,984 | 30,247 | 87 | 650 |
| Python | 179 | 25,301 | 20,803 | 935 | 3,563 |
| C++ | 51 | 10,614 | 8,711 | 469 | 1,434 |
| Rust | 30 | 7,411 | 6,737 | 273 | 401 |
| Thrift | 113 | 14,433 | 6,674 | 5,794 | 1,965 |
| Protocol Buffers | 90 | 9,456 | 3,458 | 4,514 | 1,484 |
| YAML | 15 | 2,557 | 2,016 | 40 | 501 |
| C Header | 41 | 2,868 | 2,009 | 412 | 447 |
| XML | 16 | 2,169 | 1,492 | 388 | 289 |
| SQL | 23 | 1,262 | 1,082 | 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 | 2,187 | 0 | 1,596 | 591 |

Top language: Scala 65.5%. Generated on November 2, 2026. Canonical report: https://octocounts.com/github/twitter/the-algorithm/commit/c54bec0d4e029fe34926ef3258a86ccacc0d0182?reportId=999bd59bf3898527f99d269b4d73b8ec2c6647e2cd84a14eeb24ecdec6e37094&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/twitter/the-algorithm/commit/c54bec0d4e029fe34926ef3258a86ccacc0d0182?reportId=999bd59bf3898527f99d269b4d73b8ec2c6647e2cd84a14eeb24ecdec6e37094&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 twitter/the-algorithm have?

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.

### How was the twitter/the-algorithm line count measured?

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.

### What commit was counted for twitter/the-algorithm?

This OctoCounts report was generated from main at commit c54bec0d4e02 on November 2, 2026.

## Similar repository reports

- [lichess-org/lila](https://octocounts.com/github/lichess-org/lila) — Scala, 292,034 code lines
- [apache/spark](https://octocounts.com/github/apache/spark) — Scala, 1,042,808 code lines
- [Netflix/atlas](https://octocounts.com/github/Netflix/atlas) — Scala, 37,684 code lines
- [ie3-institute/simona](https://octocounts.com/github/ie3-institute/simona) — Scala, 27,621 code lines
- [Vyxal/Vyxal](https://octocounts.com/github/Vyxal/Vyxal) — Scala, 19,524 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)
- [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)
