# opensearch-project/OpenSearch SLOC report

> As of 2026-10-08 (commit e4bdfa3b4c4e), opensearch-project/OpenSearch contains 1,959,555 total lines: 1,196,311 code, 531,014 comments, 232,230 blank, across 10,569 files in 18 languages (top: Java 91.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

opensearch-project/OpenSearch has 1,196,311 source lines of code out of 1,959,555 total lines across 10,569 files, counted from the main ref at commit e4bdfa3b4c4e by the OctoCounts tokei engine on 2026-10-08. 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 opensearch-project/OpenSearch to commit e4bdfa3b4c4e, 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 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.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 9,014 | 1,683,986 | 1,096,406 | 395,485 | 192,095 |
| Rust | 220 | 94,855 | 78,457 | 7,513 | 8,885 |
| JSON | 178 | 11,223 | 11,221 | 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 | 722 | 570 | 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 |

Top language (Java 91.6%). Generated at 2026-10-08T22:51:23.151369214+00:00. Canonical report: https://octocounts.com/github/opensearch-project/OpenSearch

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/opensearch-project/OpenSearch/commit/e4bdfa3b4c4e38585aa8ad254eb5aa002601a447?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).

## Report FAQ

### How many lines of code does opensearch-project/OpenSearch have?

opensearch-project/OpenSearch has 1,959,555 total lines, including 1,196,311 code lines, 531,014 comment lines, and 232,230 blank lines.

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

OctoCounts resolved the public GitHub repository to commit e4bdfa3b4c4e, 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 e4bdfa3b4c4e on 2026-10-08T22:51:23.151369214+00:00.

## Similar repository reports

- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,058,873 code lines
- [mlflow/mlflow](https://octocounts.com/github/mlflow/mlflow) — Java, 1,424,301 code lines
- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 960,487 code lines
- [questdb/questdb](https://octocounts.com/github/questdb/questdb) — Java, 958,890 code lines
- [apache/druid](https://octocounts.com/github/apache/druid) — Java, 860,250 code lines
- [dbeaver/dbeaver](https://octocounts.com/github/dbeaver/dbeaver) — Java, 704,749 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)
- [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)
- [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)
