# opensearch-project/OpenSearch SLOC report

> opensearch-project/OpenSearch: 1,208,832 code lines at commit 8b20d26bdb5b, counted with tokei-15.0.0 on 2026-11-16. Saved result c88ac7993ef90a4089bce777e0244c4a365a42bbd4ac0b5f877a524c3d92c417.

opensearch-project/OpenSearch has 1,208,832 source lines of code out of 1,978,488 total lines across 10,662 files, counted with tokei from the main ref at commit 8b20d26bdb5b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving opensearch-project/OpenSearch to commit 8b20d26bdb5b, 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,104 | 1,702,687 | 1,108,804 | 400,051 | 193,832 |
| Rust | 220 | 94,855 | 78,457 | 7,513 | 8,885 |
| JSON | 180 | 11,345 | 11,343 | 0 | 2 |
| YAML | 17 | 7,785 | 5,388 | 1,784 | 613 |
| Groovy | 21 | 2,833 | 1,777 | 771 | 285 |
| Batch | 11 | 711 | 587 | 4 | 120 |
| TOML | 13 | 723 | 571 | 71 | 81 |
| BASH | 14 | 835 | 530 | 169 | 136 |
| 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 | 109 | 11,525 | 0 | 8,695 | 2,830 |
| Plain Text | 943 | 143,299 | 0 | 116,274 | 27,025 |

Top language: Java 91.7%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/opensearch-project/OpenSearch/commit/8b20d26bdb5b2842688488200f4305050083cda1?reportId=c88ac7993ef90a4089bce777e0244c4a365a42bbd4ac0b5f877a524c3d92c417&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/8b20d26bdb5b2842688488200f4305050083cda1?reportId=c88ac7993ef90a4089bce777e0244c4a365a42bbd4ac0b5f877a524c3d92c417&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,208,832 lines of code, plus 535,683 comment lines and 233,973 blank lines, for 1,978,488 total lines at commit 8b20d26bdb5b on November 16, 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 8b20d26bdb5b, 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 8b20d26bdb5b on November 16, 2026.

## Similar repository reports

- [apache/beam](https://octocounts.com/github/apache/beam) — Java, 1,282,150 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,088,592 code lines
- [questdb/questdb](https://octocounts.com/github/questdb/questdb) — Java, 1,037,564 code lines
- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 969,178 code lines
- [apache/druid](https://octocounts.com/github/apache/druid) — Java, 875,253 code lines
- [neo4j/neo4j](https://octocounts.com/github/neo4j/neo4j) — Java, 873,317 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)
- [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)
