As of 2026-08-26 (commit 0ffca96a3ce5), rails/rails contains 303,718 total lines: 137,418 code, 114,919 comments, 51,381 blank, across 1,862 files in 12 languages (top: Ruby 86.9%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving rails/rails to commit 0ffca96a3ce5, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
This is a large codebase by counted code lines. Code represents 45.2% of all lines, comments represent 37.8%, and the repository averages 74 code lines per file. Ruby accounts for 86.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Ruby | 1566 | 210256 | 119351 | 64128 | 26777 |
| JavaScript | 42 | 12532 | 11690 | 338 | 504 |
| Rakefile | 31 | 2357 | 1854 | 100 | 403 |
| Sass | 6 | 2047 | 1617 | 119 | 311 |
| Ruby HTML | 66 | 1564 | 1367 | 2 | 195 |
| YAML | 9 | 753 | 610 | 123 | 20 |
| CSS | 4 | 501 | 422 | 23 | 56 |
| HTML | 5 | 369 | 329 | 3 | 37 |
| JSON | 4 | 138 | 138 | 0 | 0 |
| SVG | 24 | 47 | 40 | 7 | 0 |
| Markdown | 103 | 73150 | 0 | 50072 | 23078 |
| Plain Text | 2 | 4 | 0 | 4 | 0 |
Top language (Ruby 86.9%). Generated at .
rails/rails has 303,718 total lines, including 137,418 code lines, 114,919 comment lines, and 51,381 blank lines.
OctoCounts resolved the public GitHub repository to commit 0ffca96a3ce5, 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 0ffca96a3ce5 on 2026-08-26T18:13:59.624780235+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: