# apache/flink SLOC report

> As of 2026-11-20 (commit ddc060f0fbf0), apache/flink contains 1,818,175 total lines: 1,165,821 code, 431,245 comments, 221,109 blank, across 11,364 files in 26 languages (top language: Java 81.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

apache/flink has 1,165,821 source lines of code out of 1,818,175 total lines across 11,364 files, counted with tokei from the master ref at commit ddc060f0fbf0 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/flink to commit ddc060f0fbf0, 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/flink: 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 64.1% of all lines, comments represent 23.7%, and the repository averages 103 code lines per file. Java accounts for 81.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 9,615 | 1,521,828 | 947,330 | 383,323 | 191,175 |
| Scala | 516 | 103,140 | 71,322 | 21,720 | 10,098 |
| Python | 248 | 75,375 | 60,356 | 5,443 | 9,576 |
| XML | 206 | 33,148 | 25,077 | 5,288 | 2,783 |
| TypeScript | 236 | 22,525 | 15,550 | 4,444 | 2,531 |
| JSON | 8 | 14,449 | 14,449 | 0 | 0 |
| Shell | 133 | 15,002 | 8,773 | 3,857 | 2,372 |
| HTML | 80 | 7,094 | 5,613 | 1,359 | 122 |
| SQL | 130 | 5,408 | 5,038 | 248 | 122 |
| FreeMarker | 2 | 4,015 | 3,775 | 50 | 190 |
| Cython | 14 | 3,552 | 2,693 | 341 | 518 |
| LESS | 83 | 3,989 | 2,117 | 1,419 | 453 |

Top language: Java 81.3%. Generated on November 20, 2026. Canonical report: https://octocounts.com/github/apache/flink

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/flink/commit/ddc060f0fbf0f5b7d94a83f77e72fd2550d2f9c3?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&reportId=f682c32bbef6d9e9ed94cf05301dbac5a24b87ae78c876f09a7c105372869ebf).

## Report FAQ

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

apache/flink has 1,165,821 lines of code, plus 431,245 comment lines and 221,109 blank lines, for 1,818,175 total lines at commit ddc060f0fbf0 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit ddc060f0fbf0, 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 ddc060f0fbf0 on November 20, 2026.

## Similar repository reports

- [opensearch-project/OpenSearch](https://octocounts.com/github/opensearch-project/OpenSearch) — Java, 1,209,824 code lines
- [mycodedoesnotcompile2/jdownloader_mirror](https://octocounts.com/github/mycodedoesnotcompile2/jdownloader_mirror) — Java, 1,093,336 code lines
- [apache/beam](https://octocounts.com/github/apache/beam) — Java, 1,286,949 code lines
- [questdb/questdb](https://octocounts.com/github/questdb/questdb) — Java, 1,045,026 code lines
- [apache/geode](https://octocounts.com/github/apache/geode) — Java, 1,340,229 code lines
- [quarkusio/quarkus](https://octocounts.com/github/quarkusio/quarkus) — Java, 976,645 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)
