# apache/spark SLOC report

> As of 2026-08-26 (commit af71469706e7), apache/spark contains 1,539,375 total lines: 992,855 code, 389,196 comments, 157,324 blank, across 5,970 files in 25 languages (top: Scala 57.3%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving apache/spark to commit af71469706e7, 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 large codebase by counted code lines. Code represents 64.5% of all lines, comments represent 25.3%, and the repository averages 166 code lines per file. Scala accounts for 57.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Scala | 3,515 | 921,190 | 569,311 | 254,518 | 97,361 |
| Python | 583 | 318,769 | 270,662 | 17,480 | 30,627 |
| Java | 1,008 | 137,563 | 77,575 | 44,429 | 15,559 |
| JSON | 22 | 33,582 | 33,579 | 0 | 3 |
| XML | 56 | 14,090 | 12,082 | 1,568 | 440 |
| R | 67 | 26,824 | 10,421 | 14,053 | 2,350 |
| JavaScript | 32 | 12,774 | 7,264 | 4,946 | 564 |
| Protocol Buffers | 18 | 7,572 | 3,851 | 2,498 | 1,223 |
| Shell | 48 | 5,392 | 3,480 | 1,271 | 641 |
| CSS | 12 | 1,632 | 1,230 | 148 | 254 |
| BASH | 39 | 2,318 | 1,094 | 880 | 344 |
| Dockerfile | 16 | 1,082 | 587 | 347 | 148 |

Top language (Scala 57.3%). Generated at 2026-08-26T13:10:09.563430851+00:00. Canonical report: https://octocounts.com/github/apache/spark

## Report FAQ

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

apache/spark has 1,539,375 total lines, including 992,855 code lines, 389,196 comment lines, and 157,324 blank lines.

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

OctoCounts resolved the public GitHub repository to commit af71469706e7, 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 master at commit af71469706e7 on 2026-08-26T13:10:09.563430851+00:00.

## Similar repository reports

- [openssl/openssl](https://octocounts.com/github/openssl/openssl) — C, 990,494 code lines
- [vlang/v](https://octocounts.com/github/vlang/v) — Coq, 984,104 code lines
- [systemd/systemd](https://octocounts.com/github/systemd/systemd) — C, 980,635 code lines
- [telegramdesktop/tdesktop](https://octocounts.com/github/telegramdesktop/tdesktop) — C++, 1,012,048 code lines
- [apache/lucene](https://octocounts.com/github/apache/lucene) — Java, 972,892 code lines
- [Wei-Shaw/sub2api](https://octocounts.com/github/Wei-Shaw/sub2api) — Go, 972,658 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
