# apache/hadoop SLOC report

> apache/hadoop: 3,466,718 code lines at commit d03eda317a27, counted with tokei-15.0.0 on 2026-11-16. Saved result c52582643c5286118c5a1b8820da65e2e1a06191198c60cd5b310481bd7459ab.

apache/hadoop has 3,466,718 source lines of code out of 4,403,243 total lines across 10,931 files, counted with tokei from the trunk ref at commit d03eda317a27 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/hadoop to commit d03eda317a27, 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/hadoop: 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 very large codebase by counted code lines. Code represents 78.7% of all lines, comments represent 14.8%, and the repository averages 317 code lines per file. Java is the largest programming language at 30.3% of counted code; data and prose formats such as JSON or YAML hold a larger share.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| XML | 412 | 2,220,942 | 2,164,594 | 24,882 | 31,466 |
| Java | 8,178 | 1,680,093 | 1,048,994 | 449,104 | 181,995 |
| C | 140 | 57,380 | 41,942 | 8,762 | 6,676 |
| JavaScript | 345 | 51,733 | 37,400 | 9,063 | 5,270 |
| JSON | 25 | 31,066 | 31,064 | 0 | 2 |
| C Header | 223 | 47,781 | 26,198 | 15,636 | 5,947 |
| C++ | 141 | 35,652 | 24,566 | 6,367 | 4,719 |
| TSX | 139 | 27,094 | 20,945 | 2,964 | 3,185 |
| TypeScript | 141 | 23,188 | 16,741 | 3,438 | 3,009 |
| CSS | 51 | 14,209 | 12,618 | 1,006 | 585 |
| Protocol Buffers | 73 | 12,150 | 9,593 | 887 | 1,670 |
| Shell | 87 | 11,056 | 5,991 | 3,673 | 1,392 |
| Apache Velocity | 14 | 5,327 | 4,574 | 0 | 753 |
| Handlebars | 91 | 5,667 | 3,760 | 1,658 | 249 |
| C++ Header | 9 | 4,989 | 3,529 | 890 | 570 |
| HTML | 50 | 4,319 | 3,113 | 795 | 411 |
| Batch | 24 | 2,589 | 2,169 | 0 | 420 |
| BASH | 17 | 2,805 | 1,971 | 495 | 339 |
| CMake | 62 | 3,445 | 1,782 | 1,291 | 372 |
| SQL | 19 | 2,326 | 1,513 | 382 | 431 |
| Sass | 8 | 1,138 | 799 | 164 | 175 |
| YAML | 2 | 786 | 745 | 31 | 10 |
| Visual Studio Project | 3 | 573 | 515 | 52 | 6 |
| Python | 4 | 593 | 403 | 98 | 92 |
| XSL | 9 | 520 | 350 | 147 | 23 |
| TeX | 1 | 370 | 303 | 15 | 52 |
| SVG | 2 | 296 | 296 | 0 | 0 |
| Visual Studio Solution | 2 | 103 | 97 | 0 | 6 |
| PowerShell | 2 | 98 | 49 | 35 | 14 |
| Monkey C | 1 | 64 | 33 | 16 | 15 |
| MSBuild | 1 | 47 | 28 | 16 | 3 |
| Dockerfile | 2 | 63 | 24 | 29 | 10 |
| Makefile | 1 | 20 | 14 | 0 | 6 |
| Forge Config | 1 | 34 | 5 | 25 | 4 |
| Markdown | 540 | 149,850 | 0 | 115,018 | 34,832 |
| Plain Text | 111 | 4,877 | 0 | 3,957 | 920 |

Top programming language: Java 30.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/apache/hadoop/commit/d03eda317a278b5943fea2f4797f11dce4eaf60a?reportId=c52582643c5286118c5a1b8820da65e2e1a06191198c60cd5b310481bd7459ab&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/hadoop/commit/d03eda317a278b5943fea2f4797f11dce4eaf60a?reportId=c52582643c5286118c5a1b8820da65e2e1a06191198c60cd5b310481bd7459ab&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/hadoop have?

apache/hadoop has 3,466,718 lines of code, plus 650,896 comment lines and 285,629 blank lines, for 4,403,243 total lines at commit d03eda317a27 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

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

This OctoCounts report was generated from trunk at commit d03eda317a27 on November 16, 2026.

## Similar repository reports

- [openbravo/openbravo-erp](https://octocounts.com/github/openbravo/openbravo-erp) — XML, 4,239,822 code lines
- [verilog-to-routing/vtr-verilog-to-routing](https://octocounts.com/github/verilog-to-routing/vtr-verilog-to-routing) — XML, 4,355,167 code lines
- [adempiere/adempiere](https://octocounts.com/github/adempiere/adempiere) — XML, 5,701,615 code lines
- [Open-Tibia-Tools/remeres-map-editor-redux](https://octocounts.com/github/Open-Tibia-Tools/remeres-map-editor-redux) — XML, 2,016,436 code lines
- [AkaChou/AionEmu](https://octocounts.com/github/AkaChou/AionEmu) — XML, 6,315,348 code lines
- [iptv-org/epg](https://octocounts.com/github/iptv-org/epg) — XML, 1,138,534 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)
