# apache/druid SLOC report

> apache/druid: 869,488 code lines at commit 516fa088f4de, counted with tokei-14.0.0 on 2026-10-23. Saved result 1906d74eee2afc90a6c00ef251cda0de1a484c2d6ebd6e0f29d897fa0864299d.

apache/druid has 869,488 source lines of code out of 1,222,757 total lines across 7,219 files, counted from the master ref at commit 516fa088f4de by the OctoCounts tokei engine on 2026-10-23. 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/druid to commit 516fa088f4de, 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 71.1% of all lines, comments represent 19.1%, and the repository averages 120 code lines per file. Java accounts for 76.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 6,090 | 982,479 | 669,011 | 208,892 | 104,576 |
| JSON | 45 | 63,461 | 63,412 | 0 | 49 |
| TSX | 378 | 65,436 | 53,172 | 7,019 | 5,245 |
| TypeScript | 241 | 42,855 | 33,953 | 5,269 | 3,633 |
| XML | 108 | 24,374 | 20,882 | 2,662 | 830 |
| YAML | 3 | 7,870 | 6,945 | 53 | 872 |
| Sass | 172 | 11,291 | 6,769 | 3,014 | 1,508 |
| VB6/VBA | 4 | 6,107 | 5,585 | 0 | 522 |
| Python | 20 | 3,927 | 2,851 | 490 | 586 |
| TeX | 3 | 2,563 | 2,129 | 131 | 303 |
| JavaScript | 14 | 1,697 | 1,254 | 304 | 139 |
| Shell | 32 | 2,110 | 1,128 | 693 | 289 |
| FreeMarker | 4 | 637 | 617 | 0 | 20 |
| R | 4 | 660 | 540 | 62 | 58 |
| BASH | 29 | 1,132 | 446 | 534 | 152 |
| Batch | 1 | 189 | 165 | 0 | 24 |
| Dockerfile | 3 | 320 | 160 | 107 | 53 |
| Jupyter Notebooks | 1 | 201 | 135 | 50 | 16 |
| CSS | 3 | 185 | 115 | 53 | 17 |
| Protocol Buffers | 3 | 214 | 102 | 83 | 29 |
| Makefile | 3 | 47 | 34 | 0 | 13 |
| Go | 1 | 32 | 26 | 0 | 6 |
| HTML | 1 | 44 | 26 | 18 | 0 |
| Open Policy Agent | 1 | 54 | 20 | 25 | 9 |
| Forge Config | 1 | 16 | 7 | 6 | 3 |
| TOML | 2 | 42 | 4 | 36 | 2 |
| MDX | 2 | 51 | 0 | 45 | 6 |
| Markdown | 45 | 4,181 | 0 | 3,237 | 944 |
| Plain Text | 5 | 582 | 0 | 546 | 36 |

Top language (Java 76.9%). Generated at 2026-10-23T07:34:44.854802599Z. Canonical report: https://octocounts.com/github/apache/druid/commit/516fa088f4de1528fe4ef9826988bbc338bd2fbe?reportId=1906d74eee2afc90a6c00ef251cda0de1a484c2d6ebd6e0f29d897fa0864299d&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/druid/commit/516fa088f4de1528fe4ef9826988bbc338bd2fbe?reportId=1906d74eee2afc90a6c00ef251cda0de1a484c2d6ebd6e0f29d897fa0864299d&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

apache/druid has 1,222,757 total lines, including 869,488 code lines, 233,329 comment lines, and 119,940 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 516fa088f4de, 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/druid?

This OctoCounts report was generated from master at commit 516fa088f4de on 2026-10-23T07:34:44.854802599Z.

## Similar repository reports

- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 964,335 code lines
- [questdb/questdb](https://octocounts.com/github/questdb/questdb) — Java, 996,228 code lines
- [dbeaver/dbeaver](https://octocounts.com/github/dbeaver/dbeaver) — Java, 735,573 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,069,750 code lines
- [opensearch-project/OpenSearch](https://octocounts.com/github/opensearch-project/OpenSearch) — Java, 1,200,112 code lines
- [keycloak/keycloak](https://octocounts.com/github/keycloak/keycloak) — Java, 591,771 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)
