sagemath/sage SLOC report

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.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
Python25032080390190888065644105866
Cython13177223536474192853446400
C++64443742960297645008
C Header25813668828431912193
Meson11678737231194448
YAML17672866664715
M446691344611970482
C825741922325327
C++ Header424241732292400
JSON31633163201
INI919991275550174
BASH615151116219180

Top language (Python 72.7%). Generated at 2026-08-27T20:19:22.065470656+00:00.

Report FAQ

How many lines of code does sagemath/sage have?

sagemath/sage has 2,907,138 total lines, including 2,624,400 code lines, 117,143 comment lines, and 165,595 blank lines.

How was the sagemath/sage line count measured?

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.

What commit was counted for sagemath/sage?

This OctoCounts report was generated from develop at commit 8bed9c3744bf on 2026-08-27T20:19:22.065470656+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: