# apache/druid SLOC report

> apache/druid: 875,253 code lines at commit 3a71b1f60869, counted with tokei-15.0.0 on 2026-11-16. Saved result 1f05579d5265fc8ffaec5d36cd8c18e7397ec076ff2cc1a9da381f0a837bcb22.

apache/druid has 875,253 source lines of code out of 1,231,773 total lines across 7,253 files, counted with tokei from the master ref at commit 3a71b1f60869 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/druid to commit 3a71b1f60869, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

apache/druid: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## 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 121 code lines per file. Java accounts for 76.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 6,109 | 987,962 | 672,506 | 210,381 | 105,075 |
| JSON | 46 | 63,578 | 63,529 | 0 | 49 |
| TSX | 379 | 65,643 | 53,332 | 7,054 | 5,257 |
| TypeScript | 249 | 44,673 | 35,170 | 5,748 | 3,755 |
| XML | 109 | 24,632 | 21,069 | 2,725 | 838 |
| YAML | 3 | 7,848 | 6,918 | 53 | 877 |
| Sass | 172 | 11,291 | 6,769 | 3,014 | 1,508 |
| VB6/VBA | 4 | 6,107 | 5,585 | 0 | 522 |
| Python | 23 | 4,749 | 3,449 | 565 | 735 |
| TeX | 3 | 2,563 | 2,129 | 131 | 303 |
| JavaScript | 13 | 1,667 | 1,243 | 287 | 137 |
| Shell | 32 | 2,110 | 1,128 | 693 | 289 |
| FreeMarker | 4 | 667 | 646 | 0 | 21 |
| 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 | 47 | 4,514 | 0 | 3,510 | 1,004 |
| Plain Text | 5 | 582 | 0 | 546 | 36 |

Top language: Java 76.8%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/apache/druid/commit/3a71b1f608695fc8d3d063c5e47a969081009a63?reportId=1f05579d5265fc8ffaec5d36cd8c18e7397ec076ff2cc1a9da381f0a837bcb22&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/3a71b1f608695fc8d3d063c5e47a969081009a63?reportId=1f05579d5265fc8ffaec5d36cd8c18e7397ec076ff2cc1a9da381f0a837bcb22&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 875,253 lines of code, plus 235,726 comment lines and 120,794 blank lines, for 1,231,773 total lines at commit 3a71b1f60869 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 3a71b1f60869, 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 3a71b1f60869 on November 16, 2026.

## Similar repository reports

- [neo4j/neo4j](https://octocounts.com/github/neo4j/neo4j) — Java, 873,317 code lines
- [Evolveum/midpoint](https://octocounts.com/github/Evolveum/midpoint) — Java, 815,034 code lines
- [apache/ignite](https://octocounts.com/github/apache/ignite) — Java, 810,540 code lines
- [bcgit/bc-java](https://octocounts.com/github/bcgit/bc-java) — Java, 794,950 code lines
- [TestPQC-SonarQube/bc-java](https://octocounts.com/github/TestPQC-SonarQube/bc-java) — Java, 792,758 code lines
- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 969,178 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)
- [ClickHouse vs Druid](https://octocounts.com/compare/clickhouse-vs-druid)
- [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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
