# opensearch-project/OpenSearch SLOC report

> As of 2026-09-15 (commit f4918fa96dff), opensearch-project/OpenSearch contains 1,946,225 total lines: 1,187,173 code, 527,833 comments, 231,219 blank, across 10,538 files in 18 languages (top: Java 91.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

opensearch-project/OpenSearch has 1,187,173 source lines of code out of 1,946,225 total lines across 10,538 files, counted from the f4918fa96dff07545000bba3dc2b0f2c7639910e ref at commit f4918fa96dff by the OctoCounts tokei engine on 2026-09-15. 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 f4918fa96dff, 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.0% of all lines, comments represent 27.1%, and the repository averages 113 code lines per file. Java accounts for 91.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 8,989 | 1,673,222 | 1,089,250 | 392,665 | 191,307 |
| Rust | 217 | 92,570 | 76,496 | 7,361 | 8,713 |
| JSON | 178 | 11,220 | 11,218 | 0 | 2 |
| YAML | 17 | 7,767 | 5,370 | 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.8%). Generated at 2026-09-15T09:21:08.647219310+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/f4918fa96dff07545000bba3dc2b0f2c7639910e?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,946,225 total lines, including 1,187,173 code lines, 527,833 comment lines, and 231,219 blank lines.

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

OctoCounts resolved the public GitHub repository to commit f4918fa96dff, 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 f4918fa96dff07545000bba3dc2b0f2c7639910e at commit f4918fa96dff on 2026-09-15T09:21:08.647219310+00:00.

## Similar repository reports

- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,047,731 code lines
- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 944,399 code lines
- [apache/druid](https://octocounts.com/github/apache/druid) — Java, 851,543 code lines
- [apache/Druid](https://octocounts.com/github/apache/Druid) — Java, 851,530 code lines
- [mlflow/mlflow](https://octocounts.com/github/mlflow/mlflow) — Java, 841,842 code lines
- [apache/Pulsar](https://octocounts.com/github/apache/Pulsar) — Java, 778,641 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)
