# ruby/ruby SLOC report

> As of 2026-08-02 (commit af233106ce64), ruby/ruby contains 2,250,298 total lines: 1,745,367 code, 223,015 comments, 281,916 blank, across 10,804 files in 36 languages (top: Ruby 66.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving ruby/ruby to commit af233106ce64, 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.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 77.6% of all lines, comments represent 9.9%, and the repository averages 162 code lines per file. Ruby accounts for 66.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Ruby | 7,309 | 1,413,527 | 1,160,391 | 61,970 | 191,166 |
| C | 504 | 489,961 | 347,389 | 87,680 | 54,892 |
| Rust | 154 | 119,372 | 99,328 | 7,433 | 12,611 |
| C Header | 460 | 131,951 | 91,920 | 31,737 | 8,294 |
| Happy | 2 | 16,232 | 14,619 | 0 | 1,613 |
| YAML | 239 | 9,549 | 8,770 | 127 | 652 |
| Ruby HTML | 44 | 5,732 | 5,182 | 0 | 550 |
| Templ | 19 | 4,876 | 4,299 | 189 | 388 |
| Makefile | 13 | 3,622 | 2,772 | 235 | 615 |
| Module-Definition | 8 | 2,227 | 2,007 | 0 | 220 |
| Python | 20 | 2,144 | 1,725 | 76 | 343 |
| Autoconf | 11 | 1,229 | 1,021 | 38 | 170 |

Top language (Ruby 66.5%). Generated at 2026-08-02T15:08:15.144521319+00:00. Canonical report: https://octocounts.com/github/ruby/ruby

## Report FAQ

### How many lines of code does ruby/ruby have?

ruby/ruby has 2,250,298 total lines, including 1,745,367 code lines, 223,015 comment lines, and 281,916 blank lines.

### How was the ruby/ruby line count measured?

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

### What commit was counted for ruby/ruby?

This OctoCounts report was generated from master at commit af233106ce64 on 2026-08-02T15:08:15.144521319+00:00.

## Similar repository reports

- [discourse/discourse](https://octocounts.com/github/discourse/discourse) — Ruby, 1,338,243 code lines
- [OpenC3/cosmos](https://octocounts.com/github/OpenC3/cosmos) — Ruby, 281,389 code lines
- [openc3/cosmos](https://octocounts.com/github/openc3/cosmos) — Ruby, 227,540 code lines
- [rails/rails](https://octocounts.com/github/rails/rails) — Ruby, 137,418 code lines
- [docusealco/docuseal](https://octocounts.com/github/docusealco/docuseal) — Ruby, 57,116 code lines
- [rubygems/bundler](https://octocounts.com/github/rubygems/bundler) — Ruby, 48,821 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)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
