# ultralytics/ultralytics SLOC report

> 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.

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.

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.

## Repository size insights

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 | 84,187 | 72,932 | 2,777 | 8,478 |
| YAML | 125 | 12,055 | 9,852 | 1,290 | 913 |
| Rust | 7 | 1,970 | 1,578 | 148 | 244 |
| C++ | 12 | 1,059 | 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 2026-10-22T06:58:17.214320431+00:00. Canonical report: https://octocounts.com/github/ultralytics/ultralytics

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ultralytics/ultralytics/commit/2e241d0336ea7545c385eadd30a2f58eb4c0e2ad?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&reportId=80465efa993f7ab9844e701a2399736bb8052892750aeaa2c871aec42596d37d).

## Report FAQ

### How many lines of code does ultralytics/ultralytics have?

ultralytics/ultralytics has 103,879 total lines, including 86,601 code lines, 6,307 comment lines, and 10,971 blank lines.

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

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.

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

This OctoCounts report was generated from main at commit 2e241d0336ea on 2026-10-22T06:58:17.214320431+00:00.

## Similar repository reports

- [NVIDIA-NeMo/Guardrails](https://octocounts.com/github/NVIDIA-NeMo/Guardrails) — Python, 87,036 code lines
- [kurigram-org/kurigram](https://octocounts.com/github/kurigram-org/kurigram) — Python, 86,152 code lines
- [agentscope-ai/ReMe](https://octocounts.com/github/agentscope-ai/ReMe) — Python, 87,284 code lines
- [e2b-dev/E2B](https://octocounts.com/github/e2b-dev/E2B) — Python, 85,743 code lines
- [calesthio/OpenMontage](https://octocounts.com/github/calesthio/OpenMontage) — Python, 85,386 code lines
- [codex-radar/dradar](https://octocounts.com/github/codex-radar/dradar) — Python, 84,822 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)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
