# ocaml/ocaml SLOC report

> As of 2026-11-23 (commit 98eff3454ca1), ocaml/ocaml contains 511,494 total lines: 364,763 code, 94,006 comments, 52,725 blank, across 1,573 files in 21 languages (top language: OCaml 74.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

ocaml/ocaml has 364,763 source lines of code out of 511,494 total lines across 1,573 files, counted with tokei from the trunk ref at commit 98eff3454ca1 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving ocaml/ocaml to commit 98eff3454ca1, 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

ocaml/ocaml: 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 71.3% of all lines, comments represent 18.4%, and the repository averages 232 code lines per file. OCaml accounts for 74.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| OCaml | 1,111 | 376,800 | 270,913 | 69,210 | 36,677 |
| C | 244 | 65,679 | 46,884 | 10,834 | 7,961 |
| Shell | 13 | 13,231 | 9,383 | 2,468 | 1,380 |
| M4 | 11 | 11,096 | 8,031 | 2,093 | 972 |
| Menhir | 18 | 9,951 | 7,996 | 1,160 | 795 |
| C Header | 80 | 11,289 | 5,941 | 3,552 | 1,796 |
| GNU Style Assembly | 11 | 7,111 | 5,070 | 1,552 | 489 |
| Makefile | 13 | 4,557 | 3,103 | 654 | 800 |
| AsciiDoc | 13 | 3,092 | 2,445 | 7 | 640 |
| JSON | 3 | 1,673 | 1,673 | 0 | 0 |
| Autoconf | 19 | 1,867 | 1,085 | 323 | 459 |
| Python | 4 | 1,401 | 959 | 223 | 219 |

Top language: OCaml 74.3%. Generated on November 23, 2026. Canonical report: https://octocounts.com/github/ocaml/ocaml

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ocaml/ocaml/commit/98eff3454ca13fdec56adebb7051468667dc36ae?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=04ce9ac04628ca2640c4cc4d55a3b8e9f005ea6f87bf4c5ac063195149615b3d).

## Report FAQ

### How many lines of code does ocaml/ocaml have?

ocaml/ocaml has 364,763 lines of code, plus 94,006 comment lines and 52,725 blank lines, for 511,494 total lines at commit 98eff3454ca1 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the ocaml/ocaml line count measured?

OctoCounts resolved the public GitHub repository to commit 98eff3454ca1, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for ocaml/ocaml?

This OctoCounts report was generated from trunk at commit 98eff3454ca1 on November 23, 2026.

## 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)
- [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)
