# apache/hive SLOC report

> As of 2026-11-18 (commit b828b70e67f4), apache/hive contains 1,442,024 total lines: 947,111 code, 331,176 comments, 163,737 blank, across 7,092 files in 26 languages (top language: Java 86.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

apache/hive has 947,111 source lines of code out of 1,442,024 total lines across 7,092 files, counted with tokei from the master ref at commit b828b70e67f4 on November 18, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/hive to commit b828b70e67f4, 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/hive: 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 65.7% of all lines, comments represent 23.0%, and the repository averages 134 code lines per file. Java accounts for 86.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 6,219 | 1,222,059 | 816,348 | 267,342 | 138,369 |
| SQL | 203 | 98,983 | 70,635 | 10,457 | 17,891 |
| XML | 138 | 33,093 | 29,140 | 3,168 | 785 |
| Python | 45 | 8,817 | 6,297 | 1,143 | 1,377 |
| Shell | 87 | 7,524 | 4,591 | 1,967 | 966 |
| PHP | 15 | 5,569 | 4,067 | 926 | 576 |
| Thrift | 5 | 5,164 | 3,463 | 920 | 781 |
| Protocol Buffers | 5 | 4,023 | 3,335 | 21 | 667 |
| YAML | 29 | 3,252 | 2,656 | 473 | 123 |
| JavaScript | 11 | 3,394 | 2,236 | 478 | 680 |
| C++ | 2 | 1,384 | 1,163 | 62 | 159 |
| C | 1 | 1,178 | 856 | 99 | 223 |

Top language: Java 86.2%. Generated on November 18, 2026. Canonical report: https://octocounts.com/github/apache/hive

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/hive/commit/b828b70e67f47d23aa67a7c9cdb873e98ae1bc16?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&reportId=a277b6a3725b4673e880d9bbe4971fe80a2672ea8c597718f7be65b0635cbc3a).

## Report FAQ

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

apache/hive has 947,111 lines of code, plus 331,176 comment lines and 163,737 blank lines, for 1,442,024 total lines at commit b828b70e67f4 on November 18, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

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

This OctoCounts report was generated from master at commit b828b70e67f4 on November 18, 2026.

## Similar repository reports

- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 970,383 code lines
- [apache/druid](https://octocounts.com/github/apache/druid) — Java, 876,050 code lines
- [neo4j/neo4j](https://octocounts.com/github/neo4j/neo4j) — Java, 873,317 code lines
- [questdb/questdb](https://octocounts.com/github/questdb/questdb) — Java, 1,043,927 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,091,124 code lines
- [hibernate/hibernate-orm](https://octocounts.com/github/hibernate/hibernate-orm) — Java, 821,017 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)
- [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)
