# NationalSecurityAgency/ghidra SLOC report

> NationalSecurityAgency/ghidra: 2,166,882 code lines at commit 42db038f3c88, counted with tokei-15.0.0 on 2026-11-10. Saved result 03e75b0aa7aecdfa2be8aa40a3f311a89ad4e9f4a12d9505c3912d6753198c1a.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 14,484 | 2,823,499 | 1,784,782 | 668,642 | 370,075 |
| C++ | 148 | 160,615 | 120,014 | 22,699 | 17,902 |
| HTML | 381 | 105,216 | 94,242 | 315 | 10,659 |
| Python | 138 | 47,307 | 36,799 | 3,989 | 6,519 |
| C | 98 | 49,211 | 34,783 | 8,313 | 6,115 |
| SVG | 91 | 25,921 | 25,851 | 35 | 35 |
| XML | 270 | 25,714 | 22,911 | 2,130 | 673 |
| C++ Header | 115 | 37,257 | 22,666 | 11,489 | 3,102 |
| C Header | 62 | 12,146 | 5,468 | 5,171 | 1,507 |
| Happy | 5 | 3,941 | 3,535 | 0 | 406 |
| JSON | 17 | 3,292 | 3,292 | 0 | 0 |
| GNU Style Assembly | 7 | 4,182 | 2,564 | 0 | 1,618 |
| Xtend | 17 | 2,908 | 2,217 | 361 | 330 |
| Shell | 36 | 3,125 | 1,507 | 1,275 | 343 |
| TeX | 1 | 1,304 | 1,151 | 12 | 141 |
| PowerShell | 25 | 1,940 | 950 | 800 | 190 |
| Batch | 30 | 1,748 | 668 | 838 | 242 |
| Lex | 1 | 672 | 599 | 21 | 52 |
| Rust | 1 | 709 | 549 | 17 | 143 |
| Protocol Buffers | 2 | 667 | 507 | 14 | 146 |
| BASH | 19 | 831 | 397 | 285 | 149 |
| Visual Studio Project | 2 | 384 | 384 | 0 | 0 |
| Makefile | 5 | 470 | 335 | 34 | 101 |
| TOML | 7 | 234 | 208 | 0 | 26 |
| CSS | 8 | 548 | 206 | 268 | 74 |
| SQL | 1 | 107 | 83 | 4 | 20 |
| XSL | 1 | 93 | 72 | 9 | 12 |
| Visual Studio Solution | 2 | 46 | 45 | 0 | 1 |
| Dockerfile | 2 | 62 | 36 | 15 | 11 |
| GDB Script | 5 | 97 | 29 | 64 | 4 |
| Haskell | 1 | 14 | 11 | 0 | 3 |
| LD Script | 1 | 10 | 9 | 0 | 1 |
| Autoconf | 6 | 7 | 7 | 0 | 0 |
| Lua | 1 | 6 | 4 | 1 | 1 |
| Forge Config | 1 | 1 | 1 | 0 | 0 |
| Markdown | 159 | 9,275 | 0 | 7,362 | 1,913 |
| Plain Text | 89 | 24,523 | 0 | 23,358 | 1,165 |

Top language: Java 82.4%. Generated on November 10, 2026. Canonical report: https://octocounts.com/github/NationalSecurityAgency/ghidra/commit/42db038f3c88c6bd7e9bedbb919138111f8b77fd?reportId=03e75b0aa7aecdfa2be8aa40a3f311a89ad4e9f4a12d9505c3912d6753198c1a&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/NationalSecurityAgency/ghidra/commit/42db038f3c88c6bd7e9bedbb919138111f8b77fd?reportId=03e75b0aa7aecdfa2be8aa40a3f311a89ad4e9f4a12d9505c3912d6753198c1a&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 NationalSecurityAgency/ghidra have?

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.

### How was the NationalSecurityAgency/ghidra line count measured?

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.

### What commit was counted for NationalSecurityAgency/ghidra?

This OctoCounts report was generated from master at commit 42db038f3c88 on November 10, 2026.

## Similar repository reports

- [DrKLO/Telegram](https://octocounts.com/github/DrKLO/Telegram) — Java, 2,556,436 code lines
- [arsLan4k1390/Cherrygram](https://octocounts.com/github/arsLan4k1390/Cherrygram) — Java, 2,588,815 code lines
- [apache/doris](https://octocounts.com/github/apache/doris) — Java, 1,794,764 code lines
- [Ettacent/NimarkoGram](https://octocounts.com/github/Ettacent/NimarkoGram) — Java, 2,876,176 code lines
- [elastic/elasticsearch](https://octocounts.com/github/elastic/elasticsearch) — Java, 3,316,772 code lines
- [metasfresh/metasfresh](https://octocounts.com/github/metasfresh/metasfresh) — Java, 3,502,087 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)
