leejet/stable-diffusion.cpp has 257,394 source lines of code out of 304,498 total lines across 563 files, counted with tokei from the master ref at commit 532d2c15c430 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-15 (commit 532d2c15c430), leejet/stable-diffusion.cpp contains 304,498 total lines: 257,394 code, 16,807 comments, 30,297 blank, across 563 files in 18 languages (top language: C 32.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving leejet/stable-diffusion.cpp to commit 532d2c15c430, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a large codebase by counted code lines. Code represents 84.5% of all lines, comments represent 5.5%, and the repository averages 457 code lines per file. C accounts for 32.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 20 | 93561 | 83687 | 2442 | 7432 |
| C++ Header | 95 | 84037 | 68479 | 5731 | 9827 |
| C++ | 134 | 52672 | 47750 | 684 | 4238 |
| C Header | 119 | 52964 | 40672 | 5132 | 7160 |
| CUDA | 17 | 7179 | 6749 | 99 | 331 |
| JSON | 112 | 5268 | 5268 | 0 | 0 |
| GLSL | 16 | 2013 | 1869 | 15 | 129 |
| Python | 8 | 1551 | 1250 | 42 | 259 |
| CMake | 12 | 1015 | 881 | 35 | 99 |
| Objective-C++ | 1 | 298 | 274 | 1 | 23 |
| Metal Shading Language | 2 | 208 | 194 | 6 | 8 |
| Shell | 3 | 125 | 102 | 9 | 14 |
Top language: C 32.5%. Generated on .
leejet/stable-diffusion.cpp: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
leejet/stable-diffusion.cpp has 257,394 lines of code, plus 16,807 comment lines and 30,297 blank lines, for 304,498 total lines at commit 532d2c15c430 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 532d2c15c430, 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 master at commit 532d2c15c430 on November 15, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for leejet/stable-diffusion.cpp on this page — 257,394 code lines across 18 languages, counted by tokei.