# apache/spark SLOC report

> As of 2026-09-16 (commit a512bc310d51), apache/spark contains 1,557,817 total lines: 1,003,344 code, 395,944 comments, 158,529 blank, across 6,004 files in 25 languages (top: Scala 57.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

apache/spark has 1,003,344 source lines of code out of 1,557,817 total lines across 6,004 files, counted from the a512bc310d511442e20260edb05d01caf825e8a5 ref at commit a512bc310d51 by the OctoCounts tokei engine on 2026-09-16. 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/spark to commit a512bc310d51, 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 64.4% of all lines, comments represent 25.4%, and the repository averages 167 code lines per file. Scala accounts for 57.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Scala | 3,539 | 934,997 | 576,468 | 260,302 | 98,227 |
| Python | 584 | 321,082 | 272,661 | 17,668 | 30,753 |
| Java | 1,009 | 138,700 | 78,366 | 44,690 | 15,644 |
| JSON | 22 | 33,755 | 33,752 | 0 | 3 |
| XML | 57 | 14,354 | 12,271 | 1,626 | 457 |
| R | 67 | 26,824 | 10,421 | 14,053 | 2,350 |
| JavaScript | 32 | 12,777 | 7,266 | 4,947 | 564 |
| Protocol Buffers | 18 | 7,576 | 3,852 | 2,500 | 1,224 |
| Shell | 49 | 5,675 | 3,656 | 1,347 | 672 |
| CSS | 12 | 1,634 | 1,231 | 149 | 254 |
| BASH | 39 | 2,318 | 1,094 | 880 | 344 |
| Dockerfile | 16 | 1,082 | 587 | 347 | 148 |

Top language (Scala 57.5%). Generated at 2026-09-16T20:02:16.364232161+00:00. Canonical report: https://octocounts.com/github/apache/spark

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/spark/commit/a512bc310d511442e20260edb05d01caf825e8a5?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).

## Report FAQ

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

apache/spark has 1,557,817 total lines, including 1,003,344 code lines, 395,944 comment lines, and 158,529 blank lines.

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

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

This OctoCounts report was generated from a512bc310d511442e20260edb05d01caf825e8a5 at commit a512bc310d51 on 2026-09-16T20:02:16.364232161+00:00.

## Similar repository reports

- [skyprolk/Clash-Of-SL](https://octocounts.com/github/skyprolk/Clash-Of-SL) — Scala, 243,228 code lines
- [andreoss/kots-cache](https://octocounts.com/github/andreoss/kots-cache) — Scala, 810 code lines
- [remotion-dev/remotion](https://octocounts.com/github/remotion-dev/remotion) — TypeScript, 1,001,323 code lines
- [frappe/frappe](https://octocounts.com/github/frappe/frappe) — PO File, 1,000,270 code lines
- [telegramdesktop/tdesktop](https://octocounts.com/github/telegramdesktop/tdesktop) — C++, 1,012,048 code lines
- [dolphin-emu/dolphin](https://octocounts.com/github/dolphin-emu/dolphin) — C++, 1,016,488 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)
