# apache/hadoop SLOC report

> apache/hadoop: 3,464,154 code lines at commit 35bbaa10e886, counted with tokei-14.0.0 on 2026-10-22. Saved result ac1feb78ec75ff6d903cea25a3973b07abea1f899f1f23cc27df2058d3967926.

apache/hadoop has 3,464,154 source lines of code out of 4,399,552 total lines across 10,922 files, counted from the trunk ref at commit 35bbaa10e886 by the OctoCounts tokei engine on 2026-10-22. 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/hadoop to commit 35bbaa10e886, 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 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. XML accounts for 62.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| XML | 412 | 2,220,945 | 2,164,596 | 24,882 | 31,467 |
| Java | 8,169 | 1,676,664 | 1,046,661 | 448,241 | 181,762 |
| C | 140 | 57,380 | 41,942 | 8,762 | 6,676 |
| JavaScript | 345 | 51,733 | 37,400 | 9,063 | 5,270 |
| JSON | 25 | 30,839 | 30,837 | 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,431 | 1,776 | 1,284 | 371 |
| 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,854 | 0 | 115,022 | 34,832 |
| Plain Text | 111 | 4,849 | 0 | 3,933 | 916 |

Top language (XML 62.5%). Generated at 2026-10-22T05:57:26.254590946Z. Canonical report: https://octocounts.com/github/apache/hadoop/commit/35bbaa10e886f10947f35f1ae32e86e6c4c52ef1?reportId=ac1feb78ec75ff6d903cea25a3973b07abea1f899f1f23cc27df2058d3967926&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/35bbaa10e886f10947f35f1ae32e86e6c4c52ef1?reportId=ac1feb78ec75ff6d903cea25a3973b07abea1f899f1f23cc27df2058d3967926&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 4,399,552 total lines, including 3,464,154 code lines, 650,006 comment lines, and 285,392 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 35bbaa10e886, 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 35bbaa10e886 on 2026-10-22T05:57:26.254590946Z.

## 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,353,016 code lines
- [Open-Tibia-Tools/remeres-map-editor-redux](https://octocounts.com/github/Open-Tibia-Tools/remeres-map-editor-redux) — XML, 2,008,913 code lines
- [iptv-org/epg](https://octocounts.com/github/iptv-org/epg) — XML, 1,136,815 code lines
- [maplestoryDwang/dwang-maplestory-053](https://octocounts.com/github/maplestoryDwang/dwang-maplestory-053) — XML, 11,414,212 code lines
- [apache/ofbiz-framework](https://octocounts.com/github/apache/ofbiz-framework) — XML, 880,237 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)
- [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)
