mongodb/mongo

mongodb/mongo has 7,617,918 source lines of code out of 10,578,964 total lines across 39,522 files, counted with tokei from the master ref at commit d48ca0a141ad on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

mongodb/mongo: 7,617,918 code lines at commit d48ca0a141ad, counted with tokei-15.0.0 on 2026-11-05. Saved result 5bf553a68fb1285edd5962cc5cbb38a693b141349f3d1dea5d811b483a0b0f8f.

OctoCounts produced this report by resolving mongodb/mongo to commit d48ca0a141ad, 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.

Repository size insights

This is a very large codebase by counted code lines. Code represents 72.0% of all lines, comments represent 16.0%, and the repository averages 193 code lines per file. C++ accounts for 33.9% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++792134085692586101339964482504
C++ Header983021834441623210293947266287
C Header701218735381165447482451225640
JavaScript834914111701061649200121149400
C87178932058593713534368040
Python8362228901741541611932617
Autoconf2414089713696227131222
Bazel123011583510177342009862
YAML1652844496967799994773
Bitbake16372473710414129
Shell389247191737536883656
JSON185166051660401
Visual Studio Project86042604200
GNU Style Assembly8210146491340991134
TOML554364785132519
Perl1248863758642486
RPM Specfile113225249844683
Makefile2337332456547730
HTML42649239726226
SWIG223381718301319
CMake4022621546442274
Batch191693149521177
Templ7157114540117
Assembly1825721442825305
BASH618031257319227
TypeScript3436409102263467
Protocol Buffers1422986201400278
PowerShell872449713889
ReStructuredText75974640133
Snakemake663345076107
CSS257744730100
Jupyter Notebooks35424034396
Dockerfile1765435821680
Forge Config154103381161
D23062612223
TCL73652615648
Java12681924630
Pan11721312318
Rust71871282930
Scheme1155121826
LD Script6858500
Visual Studio Solution2808000
Lua28669314
GDB Script26751124
Prolog26951018
Monkey C15841125
Module-Definition3403802
jq4443806
CUDA172362115
Swift1362772
SVG1262600
XML2171511
R13812188
INI66600
ReScript24400
Objective-C2142120
Objective-C++2142120
Markdown3289584908397711872
Plain Text47711379201091354657

Top language: C++ 33.9%. Generated on .

Counting rules and retention

mongodb/mongo: 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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does mongodb/mongo have?

mongodb/mongo has 7,617,918 lines of code, plus 1,693,528 comment lines and 1,267,518 blank lines, for 10,578,964 total lines at commit d48ca0a141ad on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the mongodb/mongo line count measured?

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

What commit was counted for mongodb/mongo?

This OctoCounts report was generated from master at commit d48ca0a141ad on November 5, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for mongodb/mongo on this page — 7,617,918 code lines across 59 languages, counted by tokei.