# apache/ant SLOC report

> As of 2026-09-17 (commit b8c7565b611f), apache/ant contains 416,715 total lines: 250,419 code, 126,612 comments, 39,684 blank, across 2,187 files in 15 languages (top: Java 59.1%). Default configuration. Counted with tokei via OctoCounts.

apache/ant has 250,419 source lines of code out of 416,715 total lines across 2,187 files, counted from the master ref at commit b8c7565b611f by the OctoCounts tokei engine on 2026-09-17. 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/ant to commit b8c7565b611f, 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 115 code lines per file. Java accounts for 59.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 1,338 | 289,240 | 147,988 | 111,041 | 30,211 |
| HTML | 232 | 56,510 | 49,529 | 3,731 | 3,250 |
| XML | 519 | 56,594 | 42,205 | 9,441 | 4,948 |
| 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-09-17T06:14:38.344880809+00:00. Canonical report: https://octocounts.com/github/apache/ant

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/ant/commit/b8c7565b611f9f8831f671b0fe3987c5a1989c5b?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Atrue%2C%22includeTests%22%3Atrue%2C%22includeGenerated%22%3Atrue%7D).

## Report FAQ

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

apache/ant has 416,715 total lines, including 250,419 code lines, 126,612 comment lines, and 39,684 blank lines.

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

OctoCounts resolved the public GitHub repository to commit b8c7565b611f, 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 b8c7565b611f on 2026-09-17T06:14:38.344880809+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, 245,337 code lines
- [micronaut-projects/micronaut-core](https://octocounts.com/github/micronaut-projects/micronaut-core) — Java, 242,510 code lines
- [apache/ActiveMQ](https://octocounts.com/github/apache/ActiveMQ) — Java, 261,780 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)
- [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)
