# yugabyte/yugabyte-db SLOC report

> yugabyte/yugabyte-db: 4,911,413 code lines at commit 9a99c69c01b0, counted with tokei-15.0.0 on 2026-11-16. Saved result 3d1574c0303f345d44c3c2a99ad2e0bddf90c1415805382e7a0ccc1fd20e97cc.

yugabyte/yugabyte-db has 4,911,413 source lines of code out of 6,873,300 total lines across 18,436 files, counted with tokei from the master ref at commit 9a99c69c01b0 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving yugabyte/yugabyte-db to commit 9a99c69c01b0, 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

yugabyte/yugabyte-db: 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 71.5% of all lines, comments represent 17.1%, and the repository averages 266 code lines per file. C accounts for 25.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,767 | 1,921,066 | 1,255,286 | 434,358 | 231,422 |
| C++ | 1,943 | 1,098,602 | 823,594 | 124,292 | 150,716 |
| Rust | 442 | 419,837 | 400,952 | 7,963 | 10,922 |
| SQL | 1,958 | 473,900 | 398,183 | 32,345 | 43,372 |
| Java | 2,361 | 478,951 | 378,018 | 54,034 | 46,899 |
| C Header | 2,964 | 518,641 | 292,525 | 148,972 | 77,144 |
| PO File | 366 | 669,500 | 292,368 | 249,391 | 127,741 |
| JSON | 88 | 224,558 | 224,552 | 0 | 6 |
| TSX | 1,100 | 205,420 | 185,454 | 6,394 | 13,572 |
| Go | 1,251 | 166,207 | 134,542 | 12,363 | 19,302 |
| TypeScript | 560 | 87,768 | 73,973 | 8,093 | 5,702 |
| Python | 283 | 95,880 | 73,914 | 8,626 | 13,340 |
| YAML | 597 | 60,326 | 58,518 | 681 | 1,127 |
| XML | 63 | 57,504 | 56,958 | 362 | 184 |
| JSX | 254 | 48,766 | 44,547 | 1,257 | 2,962 |
| Happy | 12 | 39,975 | 35,673 | 0 | 4,302 |
| Shell | 268 | 45,485 | 33,782 | 6,387 | 5,316 |
| Perl | 194 | 41,465 | 30,720 | 5,344 | 5,401 |
| JavaScript | 142 | 21,052 | 19,228 | 537 | 1,287 |
| Sass | 211 | 18,970 | 16,063 | 201 | 2,706 |
| Autoconf | 18 | 16,159 | 13,425 | 686 | 2,048 |
| Protocol Buffers | 72 | 19,525 | 10,305 | 5,614 | 3,606 |
| Makefile | 288 | 12,986 | 8,097 | 2,536 | 2,353 |
| SVG | 445 | 7,806 | 7,764 | 19 | 23 |
| C++ Header | 49 | 11,261 | 7,605 | 2,005 | 1,651 |
| Lex | 15 | 12,479 | 7,558 | 3,339 | 1,582 |
| CMake | 108 | 11,550 | 7,454 | 2,810 | 1,286 |
| Jinja2 | 62 | 6,406 | 4,809 | 1,028 | 569 |
| Mustache | 22 | 2,921 | 2,669 | 72 | 180 |
| M4 | 13 | 2,902 | 1,800 | 845 | 257 |
| Snakemake | 3 | 1,667 | 1,659 | 6 | 2 |
| Jupyter Notebooks | 20 | 2,473 | 1,614 | 498 | 361 |
| TOML | 54 | 2,282 | 1,443 | 514 | 325 |
| BASH | 39 | 1,805 | 955 | 572 | 278 |
| AsciiDoc | 1 | 947 | 792 | 0 | 155 |
| RPM Specfile | 17 | 1,102 | 770 | 138 | 194 |
| Scala | 16 | 886 | 660 | 102 | 124 |
| Visual Studio Project | 2 | 619 | 618 | 1 | 0 |
| Dockerfile | 17 | 821 | 522 | 150 | 149 |
| Batch | 11 | 582 | 457 | 30 | 95 |
| Kotlin | 6 | 441 | 339 | 50 | 52 |
| CSS | 15 | 452 | 333 | 66 | 53 |
| PHP | 3 | 208 | 154 | 17 | 37 |
| INI | 4 | 229 | 144 | 74 | 11 |
| HTML | 4 | 155 | 109 | 43 | 3 |
| GNU Style Assembly | 4 | 124 | 107 | 0 | 17 |
| Meson | 2 | 95 | 80 | 7 | 8 |
| Visual Studio Solution | 2 | 75 | 73 | 0 | 2 |
| D | 1 | 94 | 66 | 14 | 14 |
| HCL | 1 | 79 | 61 | 0 | 18 |
| Module-Definition | 2 | 55 | 49 | 1 | 5 |
| Apache Velocity | 1 | 38 | 33 | 0 | 5 |
| Pan | 2 | 40 | 32 | 1 | 7 |
| Monkey C | 1 | 5 | 5 | 0 | 0 |
| Bitbake | 1 | 4 | 2 | 0 | 2 |
| Markdown | 227 | 28,667 | 0 | 20,552 | 8,115 |
| Plain Text | 64 | 31,487 | 0 | 30,629 | 858 |

Top language: C 25.6%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/yugabyte/yugabyte-db/commit/9a99c69c01b078638e3327026c8e627815382d28?reportId=3d1574c0303f345d44c3c2a99ad2e0bddf90c1415805382e7a0ccc1fd20e97cc&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/yugabyte/yugabyte-db/commit/9a99c69c01b078638e3327026c8e627815382d28?reportId=3d1574c0303f345d44c3c2a99ad2e0bddf90c1415805382e7a0ccc1fd20e97cc&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 yugabyte/yugabyte-db have?

yugabyte/yugabyte-db has 4,911,413 lines of code, plus 1,174,019 comment lines and 787,868 blank lines, for 6,873,300 total lines at commit 9a99c69c01b0 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the yugabyte/yugabyte-db line count measured?

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

### What commit was counted for yugabyte/yugabyte-db?

This OctoCounts report was generated from master at commit 9a99c69c01b0 on November 16, 2026.

## Similar repository reports

- [wine-mirror/wine](https://octocounts.com/github/wine-mirror/wine) — C, 5,483,314 code lines
- [vcvkk/Telegram-iOS](https://octocounts.com/github/vcvkk/Telegram-iOS) — C, 5,661,625 code lines
- [wireshark/wireshark](https://octocounts.com/github/wireshark/wireshark) — C, 5,790,683 code lines
- [semgrep/semgrep](https://octocounts.com/github/semgrep/semgrep) — C, 3,871,891 code lines
- [zephyrproject-rtos/zephyr](https://octocounts.com/github/zephyrproject-rtos/zephyr) — C, 3,807,176 code lines
- [TelegramMessenger/Telegram-iOS](https://octocounts.com/github/TelegramMessenger/Telegram-iOS) — C, 6,741,519 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)
- [CockroachDB vs YugabyteDB](https://octocounts.com/compare/cockroachdb-vs-yugabyte)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
