# apache/tomcat SLOC report

> apache/tomcat: 324,483 code lines at commit 9b66f8de7685, counted with tokei-15.0.0 on 2026-11-16. Saved result 890680c9303ab2f8d7ef63fc5f84dc580bae302ed38210eb6c6b5bcd105e3205.

apache/tomcat has 324,483 source lines of code out of 604,737 total lines across 2,189 files, counted with tokei from the main ref at commit 9b66f8de7685 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/tomcat to commit 9b66f8de7685, 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/tomcat: 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 large codebase by counted code lines. Code represents 53.7% of all lines, comments represent 34.4%, and the repository averages 148 code lines per file. Java accounts for 88.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 1,922 | 551,861 | 287,157 | 197,393 | 67,311 |
| XML | 83 | 26,085 | 20,782 | 3,317 | 1,986 |
| JavaScript | 18 | 5,567 | 4,444 | 686 | 437 |
| SVG | 7 | 4,045 | 3,848 | 116 | 81 |
| HTML | 86 | 5,512 | 3,696 | 1,381 | 435 |
| CSS | 4 | 1,884 | 1,465 | 171 | 248 |
| Batch | 12 | 1,319 | 1,162 | 0 | 157 |
| Shell | 15 | 1,779 | 1,057 | 530 | 192 |
| JSON | 15 | 372 | 369 | 0 | 3 |
| Perl | 1 | 482 | 324 | 107 | 51 |
| XSL | 1 | 140 | 109 | 17 | 14 |
| YAML | 1 | 51 | 36 | 14 | 1 |
| Dockerfile | 1 | 61 | 20 | 29 | 12 |
| C Header | 1 | 30 | 14 | 15 | 1 |
| Markdown | 12 | 3,581 | 0 | 2,831 | 750 |
| Plain Text | 10 | 1,968 | 0 | 1,431 | 537 |

Top language: Java 88.5%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/apache/tomcat/commit/9b66f8de76851941658527fcb0c71f9195709d1e?reportId=890680c9303ab2f8d7ef63fc5f84dc580bae302ed38210eb6c6b5bcd105e3205&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/tomcat/commit/9b66f8de76851941658527fcb0c71f9195709d1e?reportId=890680c9303ab2f8d7ef63fc5f84dc580bae302ed38210eb6c6b5bcd105e3205&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

apache/tomcat has 324,483 lines of code, plus 208,038 comment lines and 72,216 blank lines, for 604,737 total lines at commit 9b66f8de7685 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

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

This OctoCounts report was generated from main at commit 9b66f8de7685 on November 16, 2026.

## Similar repository reports

- [apache/groovy](https://octocounts.com/github/apache/groovy) — Java, 322,066 code lines
- [crdroidandroid/android_packages_apps_Launcher3](https://octocounts.com/github/crdroidandroid/android_packages_apps_Launcher3) — Java, 315,490 code lines
- [apache/calcite](https://octocounts.com/github/apache/calcite) — Java, 314,663 code lines
- [OtterMind/Chat2DB](https://octocounts.com/github/OtterMind/Chat2DB) — Java, 338,444 code lines
- [haifengl/smile](https://octocounts.com/github/haifengl/smile) — Java, 348,491 code lines
- [netty/netty](https://octocounts.com/github/netty/netty) — Java, 300,319 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)
