# apache/lucene SLOC report

> As of 2026-08-02 (commit d5559e6e1af8), apache/lucene contains 1,486,158 total lines: 972,892 code, 361,361 comments, 151,905 blank, across 6,454 files in 21 languages (top: Java 97.4%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving apache/lucene to commit d5559e6e1af8, 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 65.5% of all lines, comments represent 24.3%, and the repository averages 151 code lines per file. Java accounts for 97.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 5,991 | 1,355,537 | 947,392 | 268,267 | 139,878 |
| Python | 28 | 12,200 | 10,342 | 641 | 1,217 |
| HTML | 49 | 6,889 | 5,796 | 968 | 125 |
| XML | 29 | 3,231 | 2,693 | 524 | 14 |
| YAML | 15 | 2,605 | 2,430 | 101 | 74 |
| Perl | 7 | 1,795 | 1,397 | 281 | 117 |
| SVG | 3 | 599 | 593 | 0 | 6 |
| Shell | 7 | 985 | 531 | 360 | 94 |
| JSON | 33 | 270 | 270 | 0 | 0 |
| AsciiDoc | 5 | 422 | 246 | 64 | 112 |
| TOML | 3 | 288 | 231 | 46 | 11 |
| Groovy | 3 | 250 | 229 | 4 | 17 |

Top language (Java 97.4%). Generated at 2026-08-02T00:14:33.934067254+00:00. Canonical report: https://octocounts.com/github/apache/lucene

## Report FAQ

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

apache/lucene has 1,486,158 total lines, including 972,892 code lines, 361,361 comment lines, and 151,905 blank lines.

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

OctoCounts resolved the public GitHub repository to commit d5559e6e1af8, 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/lucene?

This OctoCounts report was generated from main at commit d5559e6e1af8 on 2026-08-02T00:14:33.934067254+00:00.

## Similar repository reports

- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 939,141 code lines
- [apache/solr](https://octocounts.com/github/apache/solr) — Java, 930,806 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,047,731 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
- [apache/hbase](https://octocounts.com/github/apache/hbase) — Java, 1,134,239 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)
