opengrep/opengrep has 338,298 source lines of code out of 447,573 total lines across 1,501 files, counted from the main ref at commit 6f7c930cf898 by the OctoCounts tokei engine on 2026-10-15. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-15 (commit 6f7c930cf898), opengrep/opengrep contains 447,573 total lines: 338,298 code, 76,837 comments, 32,438 blank, across 1,501 files in 22 languages (top: OCaml 69.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving opengrep/opengrep to commit 6f7c930cf898, 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 75.6% of all lines, comments represent 17.2%, and the repository averages 225 code lines per file. OCaml accounts for 69.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| OCaml | 1271 | 316418 | 233652 | 61113 | 21653 |
| JSON | 4 | 27503 | 27503 | 0 | 0 |
| YAML | 29 | 26893 | 26636 | 159 | 98 |
| Menhir | 29 | 27831 | 18365 | 5959 | 3507 |
| Happy | 4 | 8264 | 7474 | 0 | 790 |
| JavaScript | 7 | 9995 | 7358 | 491 | 2146 |
| Java | 1 | 4458 | 4423 | 23 | 12 |
| Lex | 2 | 4148 | 3333 | 253 | 562 |
| Python | 21 | 3769 | 2993 | 277 | 499 |
| Go | 1 | 2712 | 2175 | 165 | 372 |
| Shell | 26 | 2707 | 1896 | 484 | 327 |
| Alex | 1 | 1056 | 936 | 0 | 120 |
Top language (OCaml 69.1%). Generated at .
opengrep/opengrep has 447,573 total lines, including 338,298 code lines, 76,837 comment lines, and 32,438 blank lines.
OctoCounts resolved the public GitHub repository to commit 6f7c930cf898, 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 6f7c930cf898 on 2026-10-15T14:16:35.466277106+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for opengrep/opengrep on this page — 338,298 code lines across 12 languages, counted by tokei.