k2-fsa/sherpa-onnx has 361,921 source lines of code out of 496,803 total lines across 4,904 files, counted with tokei from the master ref at commit cc4fc200e390 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit cc4fc200e390), k2-fsa/sherpa-onnx contains 496,803 total lines: 361,921 code, 53,076 comments, 81,806 blank, across 4,904 files in 37 languages (top language: C++ 26.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving k2-fsa/sherpa-onnx to commit cc4fc200e390, 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 72.9% of all lines, comments represent 10.7%, and the repository averages 74 code lines per file. C++ accounts for 26.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 628 | 123169 | 94911 | 6527 | 21731 |
| Python | 404 | 76635 | 62127 | 2629 | 11879 |
| C Header | 542 | 52300 | 31449 | 11341 | 9510 |
| Dart | 266 | 34111 | 26913 | 2366 | 4832 |
| Shell | 646 | 27914 | 19824 | 2809 | 5281 |
| JavaScript | 228 | 26906 | 19208 | 3621 | 4077 |
| Rust | 112 | 19116 | 15740 | 907 | 2469 |
| Kotlin | 231 | 18842 | 14946 | 1613 | 2283 |
| Java | 201 | 14602 | 10396 | 1440 | 2766 |
| CMake | 136 | 13235 | 9655 | 1610 | 1970 |
| Pascal | 69 | 12045 | 8065 | 1899 | 2081 |
| C# | 148 | 10796 | 7958 | 978 | 1860 |
Top language: C++ 26.2%. Generated on .
k2-fsa/sherpa-onnx: 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.
k2-fsa/sherpa-onnx has 361,921 lines of code, plus 53,076 comment lines and 81,806 blank lines, for 496,803 total lines at commit cc4fc200e390 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit cc4fc200e390, 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 cc4fc200e390 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for k2-fsa/sherpa-onnx on this page — 361,921 code lines across 37 languages, counted by tokei.