ossec/ossec-hids has 174,692 source lines of code out of 261,068 total lines across 1,156 files, counted with tokei from the main ref at commit 7508eef5a8b9 on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-12 (commit 7508eef5a8b9), ossec/ossec-hids contains 261,068 total lines: 174,692 code, 53,163 comments, 33,213 blank, across 1,156 files in 32 languages (top language: C 59.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ossec/ossec-hids to commit 7508eef5a8b9, 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.
This is a large codebase by counted code lines. Code represents 66.9% of all lines, comments represent 20.4%, and the repository averages 151 code lines per file. C accounts for 59.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 381 | 143792 | 104628 | 19279 | 19885 |
| C Header | 188 | 32094 | 20532 | 7532 | 4030 |
| Visual Studio Project | 36 | 17428 | 17428 | 0 | 0 |
| XML | 105 | 15201 | 11440 | 1938 | 1823 |
| Shell | 53 | 9030 | 6541 | 1128 | 1361 |
| Perl | 14 | 2527 | 1872 | 422 | 233 |
| Makefile | 15 | 2494 | 1695 | 227 | 572 |
| Ada | 10 | 2840 | 1681 | 560 | 599 |
| RPM Specfile | 4 | 2195 | 1616 | 199 | 380 |
| Pascal | 4 | 1443 | 1016 | 216 | 211 |
| Module-Definition | 8 | 1096 | 946 | 58 | 92 |
| C# | 9 | 1615 | 879 | 506 | 230 |
Top language: C 59.9%. Generated on .
ossec/ossec-hids: 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.
ossec/ossec-hids has 174,692 lines of code, plus 53,163 comment lines and 33,213 blank lines, for 261,068 total lines at commit 7508eef5a8b9 on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 7508eef5a8b9, 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 7508eef5a8b9 on November 12, 2026.
Play the growth animation for ossec/ossec-hids on this page — 174,692 code lines across 32 languages, counted by tokei.