# apache/solr SLOC report

> As of 2026-08-02 (commit b47aacaec82b), apache/solr contains 1,831,345 total lines: 930,806 code, 742,890 comments, 157,649 blank, across 7,231 files in 23 languages (top: Java 76.9%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving apache/solr to commit b47aacaec82b, 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 large codebase by counted code lines. Code represents 50.8% of all lines, comments represent 40.6%, and the repository averages 129 code lines per file. Java accounts for 76.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 4,389 | 990,376 | 715,703 | 164,725 | 109,948 |
| AsciiDoc | 244 | 89,966 | 67,245 | 4,054 | 18,667 |
| XML | 592 | 76,312 | 53,476 | 16,756 | 6,080 |
| JSON | 85 | 31,647 | 31,633 | 0 | 14 |
| JavaScript | 61 | 20,950 | 16,810 | 1,938 | 2,202 |
| CSS | 52 | 12,167 | 9,598 | 781 | 1,788 |
| Kotlin | 183 | 13,998 | 8,108 | 4,435 | 1,455 |
| Python | 25 | 10,604 | 7,995 | 1,028 | 1,581 |
| YAML | 773 | 8,302 | 7,891 | 313 | 98 |
| HTML | 64 | 7,013 | 4,999 | 1,126 | 888 |
| Shell | 37 | 3,998 | 2,198 | 1,277 | 523 |
| BASH | 13 | 2,116 | 1,466 | 421 | 229 |

Top language (Java 76.9%). Generated at 2026-08-02T05:56:40.578536601+00:00. Canonical report: https://octocounts.com/github/apache/solr

## Report FAQ

### How many lines of code does apache/solr have?

apache/solr has 1,831,345 total lines, including 930,806 code lines, 742,890 comment lines, and 157,649 blank lines.

### How was the apache/solr line count measured?

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

### What commit was counted for apache/solr?

This OctoCounts report was generated from main at commit b47aacaec82b on 2026-08-02T05:56:40.578536601+00:00.

## Similar repository reports

- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 939,141 code lines
- [apache/lucene](https://octocounts.com/github/apache/lucene) — Java, 972,892 code lines
- [apache/Druid](https://octocounts.com/github/apache/Druid) — Java, 849,505 code lines
- [apache/druid](https://octocounts.com/github/apache/druid) — Java, 849,185 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,047,731 code lines
- [apache/Pulsar](https://octocounts.com/github/apache/Pulsar) — Java, 733,213 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
