# apache/druid SLOC report

> apache/druid: 876,127 code lines at commit 088172524d52, counted with tokei-15.0.0 on 2026-11-23. Saved result c77e8d59e54f9aaedebbc04078c0ad8719d8533ed5eae6a8b11adcb8f9360a86.

Source: [apache/druid on GitHub](https://github.com/apache/druid) · counted commit [088172524d52](https://github.com/apache/druid/tree/088172524d52c8729efd331f1bcda252b271ac75)

apache/druid has 876,127 source lines of code out of 1,233,092 total lines across 7,256 files, counted with tokei from the master ref at commit 088172524d52 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/druid to commit 088172524d52, 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,111 | 989,068 | 673,225 | 210,709 | 105,134 |
| JSON | 46 | 63,579 | 63,530 | 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,664 | 21,096 | 2,730 | 838 |
| YAML | 3 | 7,849 | 6,919 | 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 |
| Shell | 33 | 2,272 | 1,248 | 716 | 308 |
| JavaScript | 13 | 1,667 | 1,243 | 287 | 137 |
| 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 | 326 | 163 | 109 | 54 |
| Jupyter Notebooks | 1 | 201 | 135 | 50 | 16 |
| CSS | 3 | 191 | 118 | 55 | 18 |
| 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,519 | 0 | 3,513 | 1,006 |
| Plain Text | 5 | 582 | 0 | 546 | 36 |

Top language: Java 76.8%. Generated on November 23, 2026. Canonical report: https://octocounts.com/github/apache/druid/commit/088172524d52c8729efd331f1bcda252b271ac75?reportId=c77e8d59e54f9aaedebbc04078c0ad8719d8533ed5eae6a8b11adcb8f9360a86&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/088172524d52c8729efd331f1bcda252b271ac75?reportId=c77e8d59e54f9aaedebbc04078c0ad8719d8533ed5eae6a8b11adcb8f9360a86&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 876,127 lines of code, plus 236,089 comment lines and 120,876 blank lines, for 1,233,092 total lines at commit 088172524d52 on November 23, 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 088172524d52, 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 088172524d52 on November 23, 2026.

## Similar repository reports

- [neo4j/neo4j](https://octocounts.com/github/neo4j/neo4j) — Java, 873,317 code lines
- [appdevforall/CodeOnTheGo](https://octocounts.com/github/appdevforall/CodeOnTheGo) — Java, 908,071 code lines
- [floci-io/floci](https://octocounts.com/github/floci-io/floci) — Java, 826,419 code lines
- [hibernate/hibernate-orm](https://octocounts.com/github/hibernate/hibernate-orm) — Java, 823,504 code lines
- [Evolveum/midpoint](https://octocounts.com/github/Evolveum/midpoint) — Java, 820,665 code lines
- [apache/hive](https://octocounts.com/github/apache/hive) — Java, 947,349 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
