# apache/ShardingSphere SLOC report

> As of 2026-09-16 (commit 0e9e7fbd1482), apache/ShardingSphere contains 554,886 total lines: 346,188 code, 153,823 comments, 54,875 blank, across 6,700 files in 11 languages (top: Java 64.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

apache/ShardingSphere has 346,188 source lines of code out of 554,886 total lines across 6,700 files, counted from the 0e9e7fbd14826bb78e972b01e738ef580593cd4a ref at commit 0e9e7fbd1482 by the OctoCounts tokei engine on 2026-09-16. 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 apache/ShardingSphere to commit 0e9e7fbd1482, 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 62.4% of all lines, comments represent 27.7%, and the repository averages 52 code lines per file. Java accounts for 64.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 5,213 | 399,274 | 222,375 | 126,175 | 50,724 |
| YAML | 885 | 100,273 | 84,464 | 14,888 | 921 |
| XML | 416 | 28,168 | 20,196 | 6,712 | 1,260 |
| JSON | 22 | 13,661 | 13,661 | 0 | 0 |
| FreeMarker | 99 | 5,670 | 4,258 | 976 | 436 |
| Shell | 6 | 985 | 720 | 151 | 114 |
| Batch | 3 | 380 | 323 | 0 | 57 |
| Protocol Buffers | 2 | 173 | 155 | 0 | 18 |
| Dockerfile | 3 | 96 | 36 | 46 | 14 |
| Markdown | 30 | 4,033 | 0 | 3,141 | 892 |
| Plain Text | 21 | 2,173 | 0 | 1,734 | 439 |

Top language (Java 64.2%). Generated at 2026-09-16T16:07:17.273112662+00:00. Canonical report: https://octocounts.com/github/apache/ShardingSphere

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/ShardingSphere/commit/0e9e7fbd14826bb78e972b01e738ef580593cd4a?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 apache/ShardingSphere have?

apache/ShardingSphere has 554,886 total lines, including 346,188 code lines, 153,823 comment lines, and 54,875 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 0e9e7fbd1482, 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/ShardingSphere?

This OctoCounts report was generated from 0e9e7fbd14826bb78e972b01e738ef580593cd4a at commit 0e9e7fbd1482 on 2026-09-16T16:07:17.273112662+00:00.

## Similar repository reports

- [kestra-io/kestra](https://octocounts.com/github/kestra-io/kestra) — Java, 322,106 code lines
- [apache/tomcat](https://octocounts.com/github/apache/tomcat) — Java, 295,587 code lines
- [yuliskov/SmartTube](https://octocounts.com/github/yuliskov/SmartTube) — Java, 289,599 code lines
- [google/guava](https://octocounts.com/github/google/guava) — Java, 274,029 code lines
- [apache/ActiveMQ](https://octocounts.com/github/apache/ActiveMQ) — Java, 261,780 code lines
- [apache/ant](https://octocounts.com/github/apache/ant) — Java, 250,419 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)
