As of 2026-08-27 (commit 8bed9c3744bf), sagemath/sage contains 2,907,138 total lines: 2,624,400 code, 117,143 comments, 165,595 blank, across 4,444 files in 29 languages (top: Python 72.7%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving sagemath/sage to commit 8bed9c3744bf, 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 90.3% of all lines, comments represent 4.0%, and the repository averages 591 code lines per file. Python accounts for 72.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 2503 | 2080390 | 1908880 | 65644 | 105866 |
| Cython | 1317 | 722353 | 647419 | 28534 | 46400 |
| C++ | 64 | 44374 | 29602 | 9764 | 5008 |
| C Header | 258 | 13668 | 8284 | 3191 | 2193 |
| Meson | 116 | 7873 | 7231 | 194 | 448 |
| YAML | 17 | 6728 | 6666 | 47 | 15 |
| M4 | 46 | 6913 | 4461 | 1970 | 482 |
| C | 8 | 2574 | 1922 | 325 | 327 |
| C++ Header | 4 | 2424 | 1732 | 292 | 400 |
| JSON | 3 | 1633 | 1632 | 0 | 1 |
| INI | 9 | 1999 | 1275 | 550 | 174 |
| BASH | 6 | 1515 | 1116 | 219 | 180 |
Top language (Python 72.7%). Generated at 2026-08-27T20:19:22.065470656+00:00.
sagemath/sage has 2,907,138 total lines, including 2,624,400 code lines, 117,143 comment lines, and 165,595 blank lines.
OctoCounts resolved the public GitHub repository to commit 8bed9c3744bf, 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 develop at commit 8bed9c3744bf on 2026-08-27T20:19:22.065470656+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: