As of 2026-08-26 (commit a773b7affa14), ollama/ollama contains 759,946 total lines: 500,593 code, 184,281 comments, 75,072 blank, across 1,076 files in 23 languages (top: Go 54.1%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ollama/ollama to commit a773b7affa14, 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 large codebase by counted code lines. Code represents 65.9% of all lines, comments represent 24.2%, and the repository averages 465 code lines per file. Go accounts for 54.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 814 | 318456 | 270765 | 13812 | 33879 |
| JSON | 44 | 144752 | 144748 | 0 | 4 |
| C Header | 43 | 73167 | 55697 | 2017 | 15453 |
| TSX | 49 | 11678 | 10594 | 253 | 831 |
| TypeScript | 47 | 5290 | 4512 | 223 | 555 |
| C | 4 | 3251 | 3215 | 2 | 34 |
| C++ | 4 | 4088 | 2869 | 690 | 529 |
| Objective-C | 4 | 2561 | 2198 | 89 | 274 |
| CMake | 9 | 2133 | 1737 | 221 | 175 |
| PowerShell | 2 | 1655 | 1394 | 112 | 149 |
| Shell | 9 | 1644 | 1295 | 139 | 210 |
| SVG | 18 | 512 | 510 | 2 | 0 |
Top language (Go 54.1%). Generated at 2026-08-26T18:19:41.876993729+00:00.
ollama/ollama has 759,946 total lines, including 500,593 code lines, 184,281 comment lines, and 75,072 blank lines.
OctoCounts resolved the public GitHub repository to commit a773b7affa14, 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 a773b7affa14 on 2026-08-26T18:19:41.876993729+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: