# k2-fsa/sherpa-onnx SLOC report

> k2-fsa/sherpa-onnx: 361,921 code lines at commit cc4fc200e390, counted with tokei-15.0.0 on 2026-11-16. Saved result f4f48f0cec736f7fcfdebadb5eccab170e27f116d04870e496d6c2c40fd78b6f.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 123,169 | 94,911 | 6,527 | 21,731 |
| Python | 404 | 76,635 | 62,127 | 2,629 | 11,879 |
| C Header | 542 | 52,300 | 31,449 | 11,341 | 9,510 |
| Dart | 266 | 34,111 | 26,913 | 2,366 | 4,832 |
| Shell | 646 | 27,914 | 19,824 | 2,809 | 5,281 |
| JavaScript | 228 | 26,906 | 19,208 | 3,621 | 4,077 |
| Rust | 112 | 19,116 | 15,740 | 907 | 2,469 |
| Kotlin | 231 | 18,842 | 14,946 | 1,613 | 2,283 |
| Java | 201 | 14,602 | 10,396 | 1,440 | 2,766 |
| CMake | 136 | 13,235 | 9,655 | 1,610 | 1,970 |
| Pascal | 69 | 12,045 | 8,065 | 1,899 | 2,081 |
| C# | 148 | 10,796 | 7,958 | 978 | 1,860 |
| Swift | 149 | 10,337 | 7,831 | 927 | 1,579 |
| XML | 257 | 6,551 | 5,358 | 991 | 202 |
| Go | 51 | 6,989 | 5,048 | 562 | 1,379 |
| C | 66 | 7,246 | 4,669 | 1,341 | 1,236 |
| Ark TypeScript | 40 | 5,128 | 3,950 | 396 | 782 |
| JSON | 132 | 3,445 | 3,445 | 0 | 0 |
| Autoconf | 30 | 3,102 | 2,146 | 289 | 667 |
| HTML | 25 | 1,965 | 1,562 | 222 | 181 |
| Batch | 20 | 1,776 | 1,358 | 0 | 418 |
| CSS | 5 | 1,483 | 1,216 | 11 | 256 |
| YAML | 98 | 2,399 | 1,170 | 700 | 529 |
| MSBuild | 51 | 861 | 711 | 0 | 150 |
| Visual Studio Project | 3 | 657 | 657 | 0 | 0 |
| TOML | 13 | 470 | 380 | 25 | 65 |
| Visual Studio Solution | 2 | 349 | 344 | 0 | 5 |
| Prolog | 19 | 378 | 324 | 0 | 54 |
| Xcode Config | 78 | 382 | 272 | 80 | 30 |
| TypeScript | 14 | 176 | 150 | 0 | 26 |
| Makefile | 2 | 85 | 60 | 4 | 21 |
| SVG | 16 | 43 | 42 | 1 | 0 |
| Jinja2 | 1 | 21 | 18 | 0 | 3 |
| LD Script | 2 | 14 | 14 | 0 | 0 |
| Forge Config | 3 | 6 | 4 | 2 | 0 |
| Markdown | 207 | 13,107 | 0 | 9,644 | 3,463 |
| Plain Text | 9 | 162 | 0 | 141 | 21 |

Top language: C++ 26.2%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/k2-fsa/sherpa-onnx/commit/cc4fc200e390bfd24347cb656b54da848428dc41?reportId=f4f48f0cec736f7fcfdebadb5eccab170e27f116d04870e496d6c2c40fd78b6f&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/k2-fsa/sherpa-onnx/commit/cc4fc200e390bfd24347cb656b54da848428dc41?reportId=f4f48f0cec736f7fcfdebadb5eccab170e27f116d04870e496d6c2c40fd78b6f&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does k2-fsa/sherpa-onnx have?

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.

### How was the k2-fsa/sherpa-onnx line count measured?

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.

### What commit was counted for k2-fsa/sherpa-onnx?

This OctoCounts report was generated from master at commit cc4fc200e390 on November 16, 2026.

## Similar repository reports

- [YimMenu/YimMenuV2](https://octocounts.com/github/YimMenu/YimMenuV2) — C++, 359,818 code lines
- [wolfpld/tracy](https://octocounts.com/github/wolfpld/tracy) — C++, 377,123 code lines
- [RunanywhereAI/runanywhere-sdks](https://octocounts.com/github/RunanywhereAI/runanywhere-sdks) — C++, 378,478 code lines
- [Neroued/ninfer](https://octocounts.com/github/Neroued/ninfer) — C++, 378,574 code lines
- [cemu-project/Cemu](https://octocounts.com/github/cemu-project/Cemu) — C++, 380,939 code lines
- [figment/Irrlicht](https://octocounts.com/github/figment/Irrlicht) — C++, 381,353 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
