# oceanbase/oceanbase SLOC report

> As of 2026-09-08 (commit 9e4e0baed6a6), oceanbase/oceanbase contains 9,728,038 total lines: 8,265,001 code, 910,697 comments, 552,340 blank, across 14,705 files in 29 languages (top: C++ 76.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

oceanbase/oceanbase has 8,265,001 source lines of code out of 9,728,038 total lines across 14,705 files, counted from the 9e4e0baed6a66b19a650ce5a44a025cf1366b1b4 ref at commit 9e4e0baed6a6 by the OctoCounts tokei engine on 2026-09-08. 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 oceanbase/oceanbase to commit 9e4e0baed6a6, 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 85.0% of all lines, comments represent 9.4%, and the repository averages 562 code lines per file. C++ accounts for 76.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 7,061 | 6,981,105 | 6,347,927 | 265,663 | 367,515 |
| C Header | 6,730 | 1,854,132 | 1,538,369 | 169,116 | 146,647 |
| C | 211 | 169,742 | 121,127 | 26,872 | 21,743 |
| Python | 115 | 125,881 | 109,136 | 10,920 | 5,825 |
| C++ Header | 74 | 56,449 | 51,414 | 1,993 | 3,042 |
| Happy | 4 | 33,770 | 31,994 | 0 | 1,776 |
| SQL | 171 | 26,325 | 23,807 | 142 | 2,376 |
| JSON | 5 | 12,496 | 12,492 | 0 | 4 |
| CMake | 179 | 12,361 | 10,884 | 655 | 822 |
| Module-Definition | 4 | 5,828 | 5,346 | 0 | 482 |
| Shell | 46 | 3,751 | 3,118 | 252 | 381 |
| Thrift | 2 | 3,464 | 2,585 | 375 | 504 |

Top language (C++ 76.8%). Generated at 2026-09-08T04:05:07.919379713+00:00. Canonical report: https://octocounts.com/github/oceanbase/oceanbase

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/oceanbase/oceanbase/commit/9e4e0baed6a66b19a650ce5a44a025cf1366b1b4?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 oceanbase/oceanbase have?

oceanbase/oceanbase has 9,728,038 total lines, including 8,265,001 code lines, 910,697 comment lines, and 552,340 blank lines.

### How was the oceanbase/oceanbase line count measured?

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

### What commit was counted for oceanbase/oceanbase?

This OctoCounts report was generated from 9e4e0baed6a66b19a650ce5a44a025cf1366b1b4 at commit 9e4e0baed6a6 on 2026-09-08T04:05:07.919379713+00:00.

## Similar repository reports

- [llvm/llvm-project](https://octocounts.com/github/llvm/llvm-project) — C++, 8,232,907 code lines
- [LibreOffice/core](https://octocounts.com/github/LibreOffice/core) — C++, 6,334,759 code lines
- [mongodb/mongo](https://octocounts.com/github/mongodb/mongo) — C++, 5,888,453 code lines
- [tensorflow/tensorflow](https://octocounts.com/github/tensorflow/tensorflow) — C++, 5,100,331 code lines
- [facebook/hhvm](https://octocounts.com/github/facebook/hhvm) — C++, 4,641,684 code lines
- [godotengine/godot](https://octocounts.com/github/godotengine/godot) — C++, 4,110,867 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
