owasp-modsecurity/ModSecurity
owasp-modsecurity/ModSecurity has 52,127 source lines of code out of 74,091 total lines across 515 files, counted with tokei from the 475aece84b0823a4318cf31c558a9584d660dc47 ref at commit 475aece84b08 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
owasp-modsecurity/ModSecurity: 52,127 code lines at commit 475aece84b08, counted with tokei-15.0.0 on 2026-11-24. Saved result 839f231a50d0881863c6095e2d640a7825923a5c775e83d966850fa714b450d0.
Source: owasp-modsecurity/ModSecurity on GitHub · counted commit 475aece84b08
OctoCounts produced this report by resolving owasp-modsecurity/ModSecurity to commit 475aece84b08, 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.
Repository size insights
This is a medium-sized codebase by counted code lines. Code represents 70.4% of all lines, comments represent 15.4%, and the repository averages 101 code lines per file. C++ accounts for 60.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 194 | 42760 | 31445 | 5536 | 5779 |
| C Header | 293 | 18932 | 9902 | 4973 | 4057 |
| C++ Header | 4 | 9272 | 8373 | 572 | 327 |
| LLVM | 1 | 1401 | 1357 | 0 | 44 |
| Automake | 13 | 908 | 748 | 7 | 153 |
| C | 2 | 229 | 157 | 28 | 44 |
| Python | 1 | 86 | 76 | 1 | 9 |
| Shell | 3 | 49 | 37 | 4 | 8 |
| Batch | 1 | 28 | 22 | 0 | 6 |
| Autoconf | 1 | 11 | 10 | 0 | 1 |
| Markdown | 2 | 415 | 0 | 275 | 140 |
Top language: C++ 60.3%. Generated on .
Counting rules and retention
owasp-modsecurity/ModSecurity: 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.
Reproduce this report
Report FAQ
How many lines of code does owasp-modsecurity/ModSecurity have?
owasp-modsecurity/ModSecurity has 52,127 lines of code, plus 11,396 comment lines and 10,568 blank lines, for 74,091 total lines at commit 475aece84b08 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the owasp-modsecurity/ModSecurity line count measured?
OctoCounts resolved the public GitHub repository to commit 475aece84b08, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for owasp-modsecurity/ModSecurity?
This OctoCounts report was generated from 475aece84b0823a4318cf31c558a9584d660dc47 at commit 475aece84b08 on November 24, 2026.
Similar repository reports
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
- duckdb/ducklake — C++, 52,043 code lines
- AmmarkoV/SAM3DBody-cpp — C++, 52,389 code lines
- mlc-ai/xgrammar — C++, 51,698 code lines
- mawww/kakoune — C++, 51,233 code lines
- apinprastya/sultan — C++, 50,995 code lines
- erincatto/box2d-lite — C++, 53,428 code lines
Play the growth animation for owasp-modsecurity/ModSecurity on this page — 52,127 code lines across 11 languages, counted by tokei.