# VirtualBox/virtualbox SLOC report

> As of 2026-10-02 (commit 7be7704a6e23), VirtualBox/virtualbox contains 21,996,833 total lines: 16,045,668 code, 3,773,796 comments, 2,177,369 blank, across 42,014 files in 80 languages (top: C 28.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

VirtualBox/virtualbox has 16,045,668 source lines of code out of 21,996,833 total lines across 42,014 files, counted from the 7be7704a6e2325e7df374aa7192354fc8d037615 ref at commit 7be7704a6e23 by the OctoCounts tokei engine on 2026-10-02. 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 VirtualBox/virtualbox to commit 7be7704a6e23, 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 very large codebase by counted code lines. Code represents 72.9% of all lines, comments represent 17.2%, and the repository averages 382 code lines per file. C accounts for 28.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 12,170 | 6,591,026 | 4,538,002 | 1,265,971 | 787,053 |
| C Header | 19,183 | 6,064,315 | 4,068,267 | 1,402,730 | 593,318 |
| C++ | 4,253 | 3,822,783 | 2,665,762 | 712,283 | 444,738 |
| TypeScript | 85 | 1,348,582 | 1,348,063 | 0 | 519 |
| XML | 244 | 940,160 | 928,287 | 4,778 | 7,095 |
| GNU Style Assembly | 480 | 612,066 | 534,468 | 10,771 | 66,827 |
| Perl | 709 | 542,691 | 432,644 | 51,483 | 58,564 |
| JSON | 56 | 304,113 | 304,080 | 0 | 33 |
| C++ Header | 175 | 360,877 | 301,046 | 12,968 | 46,863 |
| Python | 776 | 407,692 | 300,128 | 48,607 | 58,957 |
| Assembly | 753 | 238,188 | 167,189 | 49,475 | 21,524 |
| Shell | 275 | 85,774 | 59,244 | 17,595 | 8,935 |

Top language (C 28.3%). Generated at 2026-10-02T13:03:01.356391418+00:00. Canonical report: https://octocounts.com/github/VirtualBox/virtualbox

## Reproduce this report

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

## Report FAQ

### How many lines of code does VirtualBox/virtualbox have?

VirtualBox/virtualbox has 21,996,833 total lines, including 16,045,668 code lines, 3,773,796 comment lines, and 2,177,369 blank lines.

### How was the VirtualBox/virtualbox line count measured?

OctoCounts resolved the public GitHub repository to commit 7be7704a6e23, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for VirtualBox/virtualbox?

This OctoCounts report was generated from 7be7704a6e2325e7df374aa7192354fc8d037615 at commit 7be7704a6e23 on 2026-10-02T13:03:01.356391418+00:00.

## Similar repository reports

- [DeusData/codebase-memory-mcp](https://octocounts.com/github/DeusData/codebase-memory-mcp) — C, 13,623,057 code lines
- [Maccraft123/linux-duet](https://octocounts.com/github/Maccraft123/linux-duet) — C, 21,512,207 code lines
- [gcc-mirror/gcc](https://octocounts.com/github/gcc-mirror/gcc) — C, 11,326,916 code lines
- [torvalds/linux](https://octocounts.com/github/torvalds/linux) — C, 32,353,909 code lines
- [reactos/reactos](https://octocounts.com/github/reactos/reactos) — C, 7,769,873 code lines
- [gnutools/binutils-gdb](https://octocounts.com/github/gnutools/binutils-gdb) — C, 7,014,784 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
