# apache/ant SLOC report

> As of 2026-08-02 (commit 40a2f0248e3c), apache/ant contains 416,497 total lines: 250,278 code, 126,547 comments, 39,672 blank, across 2,186 files in 15 languages (top: Java 59.1%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving apache/ant to commit 40a2f0248e3c, 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 60.1% of all lines, comments represent 30.4%, and the repository averages 114 code lines per file. Java accounts for 59.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 1,338 | 289,078 | 147,884 | 110,992 | 30,202 |
| HTML | 232 | 56,494 | 49,513 | 3,731 | 3,250 |
| XML | 518 | 56,554 | 42,184 | 9,425 | 4,945 |
| XSL | 39 | 11,801 | 9,216 | 1,676 | 909 |
| Batch | 9 | 869 | 629 | 82 | 158 |
| Shell | 10 | 542 | 289 | 196 | 57 |
| CSS | 1 | 263 | 196 | 22 | 45 |
| Perl | 3 | 307 | 135 | 137 | 35 |
| Python | 1 | 106 | 66 | 24 | 16 |
| JavaScript | 1 | 85 | 65 | 17 | 3 |
| Bitbake | 3 | 59 | 51 | 0 | 8 |
| YAML | 1 | 65 | 47 | 14 | 4 |

Top language (Java 59.1%). Generated at 2026-08-02T06:12:28.788120362+00:00. Canonical report: https://octocounts.com/github/apache/ant

## Report FAQ

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

apache/ant has 416,497 total lines, including 250,278 code lines, 126,547 comment lines, and 39,672 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 40a2f0248e3c, 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/ant?

This OctoCounts report was generated from master at commit 40a2f0248e3c on 2026-08-02T06:12:28.788120362+00:00.

## Similar repository reports

- [apache/activemq](https://octocounts.com/github/apache/activemq) — Java, 249,430 code lines
- [spring-projects/spring-boot](https://octocounts.com/github/spring-projects/spring-boot) — Java, 244,527 code lines
- [apache/ActiveMQ](https://octocounts.com/github/apache/ActiveMQ) — Java, 261,780 code lines
- [google/ExoPlayer](https://octocounts.com/github/google/ExoPlayer) — Java, 236,475 code lines
- [DataLinkDC/dinky](https://octocounts.com/github/DataLinkDC/dinky) — Java, 233,157 code lines
- [datalinkdc/dinky](https://octocounts.com/github/datalinkdc/dinky) — Java, 233,157 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)
