NationalSecurityAgency/ghidra has 2,166,882 source lines of code out of 3,348,082 total lines across 16,239 files, counted with tokei from the master ref at commit 42db038f3c88 on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-10 (commit 42db038f3c88), NationalSecurityAgency/ghidra contains 3,348,082 total lines: 2,166,882 code, 757,521 comments, 423,679 blank, across 16,239 files in 37 languages (top language: Java 82.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving NationalSecurityAgency/ghidra to commit 42db038f3c88, 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 very large codebase by counted code lines. Code represents 64.7% of all lines, comments represent 22.6%, and the repository averages 133 code lines per file. Java accounts for 82.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 14484 | 2823499 | 1784782 | 668642 | 370075 |
| C++ | 148 | 160615 | 120014 | 22699 | 17902 |
| HTML | 381 | 105216 | 94242 | 315 | 10659 |
| Python | 138 | 47307 | 36799 | 3989 | 6519 |
| C | 98 | 49211 | 34783 | 8313 | 6115 |
| SVG | 91 | 25921 | 25851 | 35 | 35 |
| XML | 270 | 25714 | 22911 | 2130 | 673 |
| C++ Header | 115 | 37257 | 22666 | 11489 | 3102 |
| C Header | 62 | 12146 | 5468 | 5171 | 1507 |
| Happy | 5 | 3941 | 3535 | 0 | 406 |
| JSON | 17 | 3292 | 3292 | 0 | 0 |
| GNU Style Assembly | 7 | 4182 | 2564 | 0 | 1618 |
Top language: Java 82.4%. Generated on .
NationalSecurityAgency/ghidra: 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.
NationalSecurityAgency/ghidra has 2,166,882 lines of code, plus 757,521 comment lines and 423,679 blank lines, for 3,348,082 total lines at commit 42db038f3c88 on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 42db038f3c88, 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 master at commit 42db038f3c88 on November 10, 2026.
Play the growth animation for NationalSecurityAgency/ghidra on this page — 2,166,882 code lines across 37 languages, counted by tokei.