# ossec/ossec-hids SLOC report

> ossec/ossec-hids: 174,692 code lines at commit 7508eef5a8b9, counted with tokei-15.0.0 on 2026-11-12. Saved result e6f0ab23fd5038c4cdfa32adf2c2c68e9bd90aa2911586aa05098928662456ef.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 143,792 | 104,628 | 19,279 | 19,885 |
| C Header | 188 | 32,094 | 20,532 | 7,532 | 4,030 |
| Visual Studio Project | 36 | 17,428 | 17,428 | 0 | 0 |
| XML | 105 | 15,201 | 11,440 | 1,938 | 1,823 |
| Shell | 53 | 9,030 | 6,541 | 1,128 | 1,361 |
| Perl | 14 | 2,527 | 1,872 | 422 | 233 |
| Makefile | 15 | 2,494 | 1,695 | 227 | 572 |
| Ada | 10 | 2,840 | 1,681 | 560 | 599 |
| RPM Specfile | 4 | 2,195 | 1,616 | 199 | 380 |
| Pascal | 4 | 1,443 | 1,016 | 216 | 211 |
| Module-Definition | 8 | 1,096 | 946 | 58 | 92 |
| C# | 9 | 1,615 | 879 | 506 | 230 |
| Visual Studio Solution | 8 | 856 | 849 | 0 | 7 |
| C++ | 5 | 907 | 599 | 136 | 172 |
| HTML | 2 | 558 | 556 | 1 | 1 |
| Bitbake | 1 | 527 | 527 | 0 | 0 |
| Autoconf | 4 | 978 | 410 | 434 | 134 |
| GNU Style Assembly | 1 | 574 | 246 | 216 | 112 |
| SQL | 5 | 257 | 197 | 30 | 30 |
| Python | 3 | 204 | 183 | 10 | 11 |
| MSBuild | 2 | 184 | 172 | 8 | 4 |
| CMake | 1 | 218 | 160 | 31 | 27 |
| Batch | 5 | 208 | 141 | 16 | 51 |
| BASH | 3 | 143 | 101 | 18 | 24 |
| PHP | 1 | 124 | 100 | 6 | 18 |
| YAML | 1 | 114 | 96 | 4 | 14 |
| Korn shell | 1 | 53 | 41 | 6 | 6 |
| Automake | 1 | 45 | 34 | 0 | 11 |
| C++ Header | 1 | 9 | 5 | 3 | 1 |
| Poke | 1 | 1 | 1 | 0 | 0 |
| Markdown | 6 | 1,608 | 0 | 1,164 | 444 |
| Plain Text | 277 | 21,745 | 0 | 19,015 | 2,730 |

Top language: C 59.9%. Generated on November 12, 2026. Canonical report: https://octocounts.com/github/ossec/ossec-hids/commit/7508eef5a8b9d6bc99061f8fe8ed8658341229fe?reportId=e6f0ab23fd5038c4cdfa32adf2c2c68e9bd90aa2911586aa05098928662456ef&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ossec/ossec-hids/commit/7508eef5a8b9d6bc99061f8fe8ed8658341229fe?reportId=e6f0ab23fd5038c4cdfa32adf2c2c68e9bd90aa2911586aa05098928662456ef&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does ossec/ossec-hids have?

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.

### How was the ossec/ossec-hids line count measured?

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.

### What commit was counted for ossec/ossec-hids?

This OctoCounts report was generated from main at commit 7508eef5a8b9 on November 12, 2026.

## Similar repository reports

- [oosexgang/hakios-xnu-kernel](https://octocounts.com/github/oosexgang/hakios-xnu-kernel) — C, 173,557 code lines
- [Zero3K/XSupplicant](https://octocounts.com/github/Zero3K/XSupplicant) — C, 172,830 code lines
- [openssh/openssh-portable](https://octocounts.com/github/openssh/openssh-portable) — C, 171,138 code lines
- [kaansenol5/VibeOS](https://octocounts.com/github/kaansenol5/VibeOS) — C, 181,281 code lines
- [FUjr/QModem](https://octocounts.com/github/FUjr/QModem) — C, 168,208 code lines
- [curl/curl](https://octocounts.com/github/curl/curl) — C, 181,859 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
