# redis/redis SLOC report

> As of 2026-09-22 (commit c3215f019a4c), redis/redis contains 399,017 total lines: 279,678 code, 75,251 comments, 44,088 blank, across 1,200 files in 26 languages (top: C 68.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

redis/redis has 279,678 source lines of code out of 399,017 total lines across 1,200 files, counted from the unstable ref at commit c3215f019a4c by the OctoCounts tokei engine on 2026-09-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving redis/redis to commit c3215f019a4c, 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 large codebase by counted code lines. Code represents 70.1% of all lines, comments represent 18.9%, and the repository averages 233 code lines per file. C accounts for 68.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 292 | 274,137 | 190,655 | 52,335 | 31,147 |
| C Header | 283 | 53,834 | 32,785 | 14,748 | 6,301 |
| JSON | 465 | 29,674 | 29,665 | 0 | 9 |
| Module-Definition | 1 | 13,236 | 10,784 | 0 | 2,452 |
| Autoconf | 16 | 7,691 | 5,555 | 1,308 | 828 |
| Python | 13 | 2,726 | 2,154 | 152 | 420 |
| Shell | 46 | 3,275 | 2,100 | 857 | 318 |
| Makefile | 17 | 2,924 | 1,995 | 445 | 484 |
| Visual Studio Project | 4 | 1,412 | 1,412 | 0 | 0 |
| M4 | 1 | 951 | 659 | 74 | 218 |
| Ruby | 9 | 817 | 639 | 105 | 73 |
| C++ | 4 | 400 | 317 | 15 | 68 |

Top language (C 68.2%). Generated at 2026-09-22T05:37:10.115379490+00:00. Canonical report: https://octocounts.com/github/redis/redis

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/redis/redis/commit/c3215f019a4c11c35d438f241114e94730fe39e5?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

redis/redis has 399,017 total lines, including 279,678 code lines, 75,251 comment lines, and 44,088 blank lines.

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

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

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

This OctoCounts report was generated from unstable at commit c3215f019a4c on 2026-09-22T05:37:10.115379490+00:00.

## Similar repository reports

- [kraj/uClibc](https://octocounts.com/github/kraj/uClibc) — C, 289,199 code lines
- [JSB2010/seb-mac](https://octocounts.com/github/JSB2010/seb-mac) — C, 267,885 code lines
- [SafeExamBrowser/seb-mac](https://octocounts.com/github/SafeExamBrowser/seb-mac) — C, 267,861 code lines
- [throneproj/Throne](https://octocounts.com/github/throneproj/Throne) — C, 249,278 code lines
- [armory3d/armorpaint](https://octocounts.com/github/armory3d/armorpaint) — C, 317,873 code lines
- [peng-zhihui/Dummy-Robot](https://octocounts.com/github/peng-zhihui/Dummy-Robot) — C, 236,725 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
