# apache/flink SLOC report

> As of 2026-08-02 (commit 9f867dace15d), apache/flink contains 3,635,283 total lines: 2,495,277 code, 695,002 comments, 445,004 blank, across 19,095 files in 33 languages (top: Java 71.1%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving apache/flink to commit 9f867dace15d, 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 68.6% of all lines, comments represent 19.1%, and the repository averages 131 code lines per file. Java accounts for 71.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 14,874 | 2,647,595 | 1,774,021 | 519,260 | 354,314 |
| Scala | 1,018 | 277,027 | 211,184 | 36,095 | 29,748 |
| XML | 478 | 196,465 | 182,977 | 9,714 | 3,774 |
| JSON | 404 | 144,027 | 144,025 | 0 | 2 |
| Python | 324 | 84,482 | 65,514 | 6,950 | 12,018 |
| HTML | 266 | 29,578 | 27,579 | 1,671 | 328 |
| SVG | 80 | 24,263 | 22,797 | 1,361 | 105 |
| YAML | 32 | 12,535 | 11,375 | 810 | 350 |
| TypeScript | 162 | 14,045 | 9,835 | 2,982 | 1,228 |
| Shell | 139 | 15,139 | 8,815 | 3,945 | 2,379 |
| Q | 27 | 9,308 | 8,290 | 1 | 1,017 |
| ReStructuredText | 88 | 9,329 | 7,100 | 0 | 2,229 |

Top language (Java 71.1%). Generated at 2026-08-02T07:53:07.242158831+00:00. Canonical report: https://octocounts.com/github/apache/flink

## Report FAQ

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

apache/flink has 3,635,283 total lines, including 2,495,277 code lines, 695,002 comment lines, and 445,004 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 9f867dace15d, 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/flink?

This OctoCounts report was generated from master at commit 9f867dace15d on 2026-08-02T07:53:07.242158831+00:00.

## Similar repository reports

- [nationalsecurityagency/ghidra](https://octocounts.com/github/nationalsecurityagency/ghidra) — Java, 2,439,956 code lines
- [NationalSecurityAgency/ghidra](https://octocounts.com/github/NationalSecurityAgency/ghidra) — Java, 2,139,363 code lines
- [apache/Beam](https://octocounts.com/github/apache/Beam) — Java, 2,064,680 code lines
- [elastic/elasticsearch](https://octocounts.com/github/elastic/elasticsearch) — Java, 3,091,605 code lines
- [apache/Camel](https://octocounts.com/github/apache/Camel) — Java, 3,427,355 code lines
- [exteraSquad/exteraGram](https://octocounts.com/github/exteraSquad/exteraGram) — Java, 3,529,381 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)
- [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)
