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.
As of 2026-11-16 (commit 9b66f8de7685), apache/tomcat contains 604,737 total lines: 324,483 code, 208,038 comments, 72,216 blank, across 2,189 files in 16 languages (top language: Java 88.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
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.
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 | 1922 | 551861 | 287157 | 197393 | 67311 |
| XML | 83 | 26085 | 20782 | 3317 | 1986 |
| JavaScript | 18 | 5567 | 4444 | 686 | 437 |
| SVG | 7 | 4045 | 3848 | 116 | 81 |
| HTML | 86 | 5512 | 3696 | 1381 | 435 |
| CSS | 4 | 1884 | 1465 | 171 | 248 |
| Batch | 12 | 1319 | 1162 | 0 | 157 |
| Shell | 15 | 1779 | 1057 | 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 |
Top language: Java 88.5%. Generated on .
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.
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.
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.
This OctoCounts report was generated from main at commit 9b66f8de7685 on November 16, 2026.
Play the growth animation for apache/tomcat on this page — 324,483 code lines across 16 languages, counted by tokei.