# opensearch-project/OpenSearch SLOC report

> opensearch-project/OpenSearch: 1,210,057 code lines at commit f5d1f5a09666, counted with tokei-15.0.0 on 2026-11-24. Saved result 4352de5fa9805fb4d2cf5bd5d0a32d62665515e79245476c439fbd0fd9be407a.

Source: [opensearch-project/OpenSearch on GitHub](https://github.com/opensearch-project/OpenSearch) · counted commit [f5d1f5a09666](https://github.com/opensearch-project/OpenSearch/tree/f5d1f5a096668bb0b934553f89182d0a62746d18)

opensearch-project/OpenSearch has 1,210,057 source lines of code out of 1,980,389 total lines across 10,674 files, counted with tokei from the main ref at commit f5d1f5a09666 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving opensearch-project/OpenSearch to commit f5d1f5a09666, 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

opensearch-project/OpenSearch: 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 very large codebase by counted code lines. Code represents 61.1% of all lines, comments represent 27.1%, and the repository averages 113 code lines per file. Java accounts for 91.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 9,114 | 1,704,545 | 1,110,021 | 400,509 | 194,015 |
| Rust | 220 | 94,855 | 78,457 | 7,513 | 8,885 |
| JSON | 180 | 11,349 | 11,347 | 0 | 2 |
| YAML | 17 | 7,785 | 5,388 | 1,784 | 613 |
| Groovy | 21 | 2,833 | 1,777 | 771 | 285 |
| Batch | 11 | 714 | 589 | 4 | 121 |
| TOML | 13 | 725 | 572 | 72 | 81 |
| BASH | 14 | 838 | 531 | 170 | 137 |
| XML | 4 | 477 | 434 | 38 | 5 |
| Shell | 8 | 681 | 396 | 199 | 86 |
| Forge Config | 7 | 143 | 137 | 0 | 6 |
| Thrift | 1 | 196 | 119 | 52 | 25 |
| Dockerfile | 1 | 131 | 108 | 15 | 8 |
| Protocol Buffers | 5 | 115 | 99 | 0 | 16 |
| Python | 1 | 138 | 73 | 47 | 18 |
| FreeMarker | 3 | 9 | 9 | 0 | 0 |
| Markdown | 111 | 11,556 | 0 | 8,717 | 2,839 |
| Plain Text | 943 | 143,299 | 0 | 116,274 | 27,025 |

Top language: Java 91.7%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/opensearch-project/OpenSearch/commit/f5d1f5a096668bb0b934553f89182d0a62746d18?reportId=4352de5fa9805fb4d2cf5bd5d0a32d62665515e79245476c439fbd0fd9be407a&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/opensearch-project/OpenSearch/commit/f5d1f5a096668bb0b934553f89182d0a62746d18?reportId=4352de5fa9805fb4d2cf5bd5d0a32d62665515e79245476c439fbd0fd9be407a&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 opensearch-project/OpenSearch have?

opensearch-project/OpenSearch has 1,210,057 lines of code, plus 536,165 comment lines and 234,167 blank lines, for 1,980,389 total lines at commit f5d1f5a09666 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the opensearch-project/OpenSearch line count measured?

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

### What commit was counted for opensearch-project/OpenSearch?

This OctoCounts report was generated from main at commit f5d1f5a09666 on November 24, 2026.

## Similar repository reports

- [apache/flink](https://octocounts.com/github/apache/flink) — Java, 1,165,821 code lines
- [apache/beam](https://octocounts.com/github/apache/beam) — Java, 1,288,279 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,093,484 code lines
- [apache/geode](https://octocounts.com/github/apache/geode) — Java, 1,340,229 code lines
- [questdb/questdb](https://octocounts.com/github/questdb/questdb) — Java, 1,045,161 code lines
- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 977,152 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Elasticsearch vs OpenSearch](https://octocounts.com/compare/elasticsearch-vs-opensearch)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
