ultralytics/ultralytics has 86,601 source lines of code out of 103,879 total lines across 448 files, counted from the main ref at commit 2e241d0336ea by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-22 (commit 2e241d0336ea), ultralytics/ultralytics contains 103,879 total lines: 86,601 code, 6,307 comments, 10,971 blank, across 448 files in 15 languages (top: Python 84.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ultralytics/ultralytics to commit 2e241d0336ea, 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 medium-sized codebase by counted code lines. Code represents 83.4% of all lines, comments represent 6.1%, and the repository averages 193 code lines per file. Python accounts for 84.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 241 | 84187 | 72932 | 2777 | 8478 |
| YAML | 125 | 12055 | 9852 | 1290 | 913 |
| Rust | 7 | 1970 | 1578 | 148 | 244 |
| C++ | 12 | 1059 | 844 | 43 | 172 |
| C++ Header | 8 | 849 | 658 | 87 | 104 |
| TOML | 3 | 299 | 247 | 25 | 27 |
| CMake | 6 | 276 | 173 | 42 | 61 |
| C Header | 5 | 260 | 159 | 35 | 66 |
| Shell | 4 | 149 | 87 | 45 | 17 |
| HTML | 1 | 54 | 47 | 4 | 3 |
| Dockerfile | 1 | 57 | 23 | 24 | 10 |
| Autoconf | 1 | 2 | 1 | 1 | 0 |
Top language (Python 84.2%). Generated at .
ultralytics/ultralytics has 103,879 total lines, including 86,601 code lines, 6,307 comment lines, and 10,971 blank lines.
OctoCounts resolved the public GitHub repository to commit 2e241d0336ea, 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 2e241d0336ea on 2026-10-22T06:58:17.214320431+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for ultralytics/ultralytics on this page — 86,601 code lines across 12 languages, counted by tokei.