# ossec/ossec-hids SLOC report

> As of 2026-10-23 (commit 156383f6abd7), ossec/ossec-hids contains 253,708 total lines: 169,565 code, 51,708 comments, 32,435 blank, across 1,131 files in 32 languages (top: C 58.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

ossec/ossec-hids has 169,565 source lines of code out of 253,708 total lines across 1,131 files, counted from the main ref at commit 156383f6abd7 by the OctoCounts tokei engine on 2026-10-23. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving ossec/ossec-hids to commit 156383f6abd7, 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.

## Repository size insights

This is a large codebase by counted code lines. Code represents 66.8% of all lines, comments represent 20.4%, and the repository averages 150 code lines per file. C accounts for 58.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 363 | 137,328 | 99,901 | 18,216 | 19,211 |
| C Header | 182 | 31,564 | 20,330 | 7,286 | 3,948 |
| Visual Studio Project | 36 | 17,428 | 17,428 | 0 | 0 |
| XML | 105 | 15,192 | 11,431 | 1,938 | 1,823 |
| Shell | 53 | 8,792 | 6,389 | 1,060 | 1,343 |
| Perl | 14 | 2,527 | 1,872 | 422 | 233 |
| Makefile | 15 | 2,487 | 1,690 | 225 | 572 |
| Ada | 10 | 2,840 | 1,681 | 560 | 599 |
| RPM Specfile | 4 | 2,189 | 1,611 | 198 | 380 |
| Pascal | 4 | 1,443 | 1,016 | 216 | 211 |
| Module-Definition | 8 | 1,096 | 946 | 58 | 92 |
| C# | 9 | 1,615 | 879 | 506 | 230 |

Top language (C 58.9%). Generated at 2026-10-23T03:23:20.057182597+00:00. Canonical report: https://octocounts.com/github/ossec/ossec-hids

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ossec/ossec-hids/commit/156383f6abd7d3a4d5bd58946252b47f964a51ff?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=b99d47135f7587832b2558c18183aa47498ae45ea12f91fd87d255b665d2fd0e).

## Report FAQ

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

ossec/ossec-hids has 253,708 total lines, including 169,565 code lines, 51,708 comment lines, and 32,435 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 156383f6abd7, 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 156383f6abd7 on 2026-10-23T03:23:20.057182597+00:00.

## Similar repository reports

- [openssh/openssh-portable](https://octocounts.com/github/openssh/openssh-portable) — C, 170,242 code lines
- [mackron/miniaudio](https://octocounts.com/github/mackron/miniaudio) — C, 167,086 code lines
- [Zero3K/XSupplicant](https://octocounts.com/github/Zero3K/XSupplicant) — C, 172,830 code lines
- [Stredohori/Winlator-CMOD](https://octocounts.com/github/Stredohori/Winlator-CMOD) — C, 166,300 code lines
- [FUjr/QModem](https://octocounts.com/github/FUjr/QModem) — C, 165,942 code lines
- [kaansenol5/VibeOS](https://octocounts.com/github/kaansenol5/VibeOS) — C, 181,281 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)
- [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)
