As of 2026-08-22 (commit df012c2f8747), microsoft/onnxruntime contains 2,826,504 total lines: 2,408,506 code, 215,094 comments, 202,904 blank, across 7,233 files in 51 languages (top: C++ 68.4%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving microsoft/onnxruntime to commit df012c2f8747, 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.
This is a very large codebase by counted code lines. Code represents 85.2% of all lines, comments represent 7.6%, and the repository averages 333 code lines per file. C++ accounts for 68.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 2017 | 1787723 | 1646488 | 60974 | 80261 |
| C Header | 2365 | 475405 | 343804 | 74911 | 56690 |
| Python | 617 | 155476 | 121895 | 10601 | 22980 |
| CUDA | 667 | 75248 | 56498 | 8918 | 9832 |
| TypeScript | 253 | 52868 | 40035 | 7681 | 5152 |
| JSON | 77 | 37435 | 37426 | 0 | 9 |
| GNU Style Assembly | 86 | 42691 | 29446 | 8958 | 4287 |
| YAML | 239 | 27113 | 23228 | 1105 | 2780 |
| C# | 74 | 31128 | 21192 | 6794 | 3142 |
| Assembly | 59 | 25619 | 18327 | 4435 | 2857 |
| CMake | 108 | 20827 | 15940 | 2438 | 2449 |
| JavaScript | 46 | 15191 | 9435 | 4489 | 1267 |
Top language (C++ 68.4%). Generated at 2026-08-22T03:08:01.723424605+00:00.
microsoft/onnxruntime has 2,826,504 total lines, including 2,408,506 code lines, 215,094 comment lines, and 202,904 blank lines.
OctoCounts resolved the public GitHub repository to commit df012c2f8747, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit df012c2f8747 on 2026-08-22T03:08:01.723424605+00:00.