# opengrep/opengrep SLOC report

> As of 2026-10-24 (commit 398a063da1f2), opengrep/opengrep contains 451,488 total lines: 341,402 code, 77,449 comments, 32,637 blank, across 1,521 files in 22 languages (top: OCaml 69.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

opengrep/opengrep has 341,402 source lines of code out of 451,488 total lines across 1,521 files, counted from the main ref at commit 398a063da1f2 by the OctoCounts tokei engine on 2026-10-24. 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 opengrep/opengrep to commit 398a063da1f2, 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 75.6% of all lines, comments represent 17.2%, and the repository averages 224 code lines per file. OCaml accounts for 69.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| OCaml | 1,290 | 320,289 | 236,718 | 61,722 | 21,849 |
| JSON | 4 | 27,503 | 27,503 | 0 | 0 |
| YAML | 29 | 26,893 | 26,636 | 159 | 98 |
| Menhir | 30 | 27,866 | 18,392 | 5,964 | 3,510 |
| Happy | 4 | 8,264 | 7,474 | 0 | 790 |
| JavaScript | 7 | 9,995 | 7,358 | 491 | 2,146 |
| Java | 1 | 4,458 | 4,423 | 23 | 12 |
| Lex | 2 | 4,148 | 3,333 | 253 | 562 |
| Python | 21 | 3,769 | 2,993 | 277 | 499 |
| Go | 1 | 2,712 | 2,175 | 165 | 372 |
| Shell | 26 | 2,707 | 1,896 | 484 | 327 |
| Alex | 1 | 1,056 | 936 | 0 | 120 |

Top language (OCaml 69.3%). Generated at 2026-10-24T10:05:31.781931443+00:00. Canonical report: https://octocounts.com/github/opengrep/opengrep

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/opengrep/opengrep/commit/398a063da1f2e25be205bad53a79b451e387a2e0?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&reportId=44867c1bf3e2c8ad03f33a37d0889ee2ea8d7e613fdcd2577ec4fd1a68a91cf9).

## Report FAQ

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

opengrep/opengrep has 451,488 total lines, including 341,402 code lines, 77,449 comment lines, and 32,637 blank lines.

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

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

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

This OctoCounts report was generated from main at commit 398a063da1f2 on 2026-10-24T10:05:31.781931443+00:00.

## Similar repository reports

- [ocaml/ocaml](https://octocounts.com/github/ocaml/ocaml) — OCaml, 359,375 code lines
- [oxcaml/oxcaml](https://octocounts.com/github/oxcaml/oxcaml) — OCaml, 1,868,082 code lines
- [iatheiya/alpha-reca](https://octocounts.com/github/iatheiya/alpha-reca) — OCaml, 26,174 code lines
- [0xJacky/nginx-ui](https://octocounts.com/github/0xJacky/nginx-ui) — Go, 341,514 code lines
- [contour-terminal/contour](https://octocounts.com/github/contour-terminal/contour) — C++, 341,202 code lines
- [webpack/webpack](https://octocounts.com/github/webpack/webpack) — JavaScript, 341,079 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)
- [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)
