# opengrep/opengrep SLOC report

> As of 2026-11-06 (commit b030a16dd7b8), opengrep/opengrep contains 457,316 total lines: 346,327 code, 78,084 comments, 32,905 blank, across 1,524 files in 22 languages (top language: OCaml 69.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

opengrep/opengrep has 346,327 source lines of code out of 457,316 total lines across 1,524 files, counted with tokei from the main ref at commit b030a16dd7b8 on November 6, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving opengrep/opengrep to commit b030a16dd7b8, 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

opengrep/opengrep: 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 75.7% of all lines, comments represent 17.1%, and the repository averages 227 code lines per file. OCaml accounts for 69.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| OCaml | 1,293 | 325,906 | 241,523 | 62,288 | 22,095 |
| JSON | 4 | 27,505 | 27,505 | 0 | 0 |
| YAML | 29 | 26,893 | 26,636 | 159 | 98 |
| Menhir | 30 | 28,075 | 18,510 | 6,033 | 3,532 |
| 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.7%. Generated on November 6, 2026. Canonical report: https://octocounts.com/github/opengrep/opengrep

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/opengrep/opengrep/commit/b030a16dd7b87e0e98b616db70b40984c7ac05e1?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=70774a3725a28f8900940021a758c9b54045cb2e3048a1f213df4fbfaac5eaf4).

## Report FAQ

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

opengrep/opengrep has 346,327 lines of code, plus 78,084 comment lines and 32,905 blank lines, for 457,316 total lines at commit b030a16dd7b8 on November 6, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit b030a16dd7b8, 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 b030a16dd7b8 on November 6, 2026.

## Similar repository reports

- [ocaml/ocaml](https://octocounts.com/github/ocaml/ocaml) — OCaml, 359,527 code lines
- [oxcaml/oxcaml](https://octocounts.com/github/oxcaml/oxcaml) — OCaml, 2,049,500 code lines
- [iatheiya/alpha-reca](https://octocounts.com/github/iatheiya/alpha-reca) — OCaml, 26,174 code lines
- [ingres-si/ingressi](https://octocounts.com/github/ingres-si/ingressi) — JSON, 346,447 code lines
- [Radarr/Radarr](https://octocounts.com/github/Radarr/Radarr) — C#, 346,197 code lines
- [storytold/filmcraft](https://octocounts.com/github/storytold/filmcraft) — Rust, 346,806 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)
