# topjohnwu/Magisk SLOC report

> As of 2026-11-16 (commit 70d233cae2f0), topjohnwu/Magisk contains 68,044 total lines: 56,122 code, 4,536 comments, 7,386 blank, across 376 files in 17 languages (top language: Kotlin 32.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

topjohnwu/Magisk has 56,122 source lines of code out of 68,044 total lines across 376 files, counted with tokei from the master ref at commit 70d233cae2f0 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving topjohnwu/Magisk to commit 70d233cae2f0, 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

topjohnwu/Magisk: 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 medium-sized codebase by counted code lines. Code represents 82.5% of all lines, comments represent 6.7%, and the repository averages 149 code lines per file. Kotlin accounts for 32.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Kotlin | 129 | 20,703 | 18,138 | 699 | 1,866 |
| Rust | 73 | 18,959 | 15,907 | 1,095 | 1,957 |
| XML | 88 | 11,272 | 9,429 | 558 | 1,285 |
| C++ | 21 | 7,012 | 5,699 | 469 | 844 |
| Shell | 16 | 3,172 | 2,194 | 542 | 436 |
| C++ Header | 14 | 2,582 | 1,760 | 455 | 367 |
| Python | 3 | 1,839 | 1,467 | 75 | 297 |
| Java | 4 | 563 | 462 | 19 | 82 |
| Makefile | 5 | 378 | 303 | 16 | 59 |
| TOML | 12 | 354 | 301 | 6 | 47 |
| Protocol Buffers | 3 | 838 | 260 | 508 | 70 |
| C Header | 1 | 142 | 89 | 33 | 20 |

Top language: Kotlin 32.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/topjohnwu/Magisk

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/topjohnwu/Magisk/commit/70d233cae2f0aeef75275f4d30bccb1b368d1ae3?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=ec6717b7b86ad061e33a103fc0d2d324f0b4364221809339424f60ed5bf5068f).

## Report FAQ

### How many lines of code does topjohnwu/Magisk have?

topjohnwu/Magisk has 56,122 lines of code, plus 4,536 comment lines and 7,386 blank lines, for 68,044 total lines at commit 70d233cae2f0 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the topjohnwu/Magisk line count measured?

OctoCounts resolved the public GitHub repository to commit 70d233cae2f0, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for topjohnwu/Magisk?

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

## Similar repository reports

- [z-huang/InnerTune](https://octocounts.com/github/z-huang/InnerTune) — Kotlin, 55,952 code lines
- [aodianjun/com.aodianjun.hyperglow.cnplus](https://octocounts.com/github/aodianjun/com.aodianjun.hyperglow.cnplus) — Kotlin, 58,424 code lines
- [jing332/tts-server-android](https://octocounts.com/github/jing332/tts-server-android) — Kotlin, 53,180 code lines
- [iSoron/uhabits](https://octocounts.com/github/iSoron/uhabits) — Kotlin, 52,645 code lines
- [marlboro-advance/mpvEx](https://octocounts.com/github/marlboro-advance/mpvEx) — Kotlin, 59,929 code lines
- [NextPlayerCloud/NeoPlayer](https://octocounts.com/github/NextPlayerCloud/NeoPlayer) — Kotlin, 60,581 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)
- [React Native vs Flutter](https://octocounts.com/compare/react-native-vs-flutter)
- [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)
