# apache/karaf SLOC report

> As of 2026-11-16 (commit 0f69706d3214), apache/karaf contains 232,620 total lines: 154,762 code, 49,925 comments, 27,933 blank, across 1,906 files in 19 languages (top language: Java 70.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

apache/karaf has 154,762 source lines of code out of 232,620 total lines across 1,906 files, counted with tokei from the main ref at commit 0f69706d3214 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving apache/karaf to commit 0f69706d3214, 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

apache/karaf: 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 66.5% of all lines, comments represent 21.5%, and the repository averages 81 code lines per file. Java accounts for 70.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 1,310 | 164,121 | 108,314 | 36,654 | 19,153 |
| XML | 410 | 40,781 | 30,063 | 7,615 | 3,103 |
| AsciiDoc | 47 | 15,418 | 11,019 | 615 | 3,784 |
| Shell | 16 | 2,067 | 1,350 | 487 | 230 |
| Batch | 13 | 1,624 | 1,308 | 86 | 230 |
| JavaScript | 6 | 1,098 | 882 | 113 | 103 |
| Sass | 3 | 873 | 640 | 103 | 130 |
| Forge Config | 41 | 1,888 | 404 | 1,331 | 153 |
| XSL | 3 | 416 | 336 | 58 | 22 |
| CSS | 2 | 297 | 193 | 74 | 30 |
| YAML | 3 | 213 | 141 | 57 | 15 |
| GraphQL | 1 | 41 | 36 | 0 | 5 |

Top language: Java 70.0%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/apache/karaf

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/apache/karaf/commit/0f69706d32147afe7488444536e5bd279f3e0091?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=1135c255e8ce08d0cd50f9487b6726fe727fb8c88f45e527d286a3d67569fa30).

## Report FAQ

### How many lines of code does apache/karaf have?

apache/karaf has 154,762 lines of code, plus 49,925 comment lines and 27,933 blank lines, for 232,620 total lines at commit 0f69706d3214 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the apache/karaf line count measured?

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

### What commit was counted for apache/karaf?

This OctoCounts report was generated from main at commit 0f69706d3214 on November 16, 2026.

## Similar repository reports

- [Dwinovo/minecraft-numen](https://octocounts.com/github/Dwinovo/minecraft-numen) — Java, 152,699 code lines
- [TimefoldAI/timefold-solver](https://octocounts.com/github/TimefoldAI/timefold-solver) — Java, 157,602 code lines
- [JonnyUtah12/thaumcraft-classic-modern](https://octocounts.com/github/JonnyUtah12/thaumcraft-classic-modern) — Java, 150,513 code lines
- [apache/pig](https://octocounts.com/github/apache/pig) — Java, 161,211 code lines
- [crdroidandroid/android_packages_apps_crDroidHome3](https://octocounts.com/github/crdroidandroid/android_packages_apps_crDroidHome3) — Java, 162,198 code lines
- [Anuken/Mindustry](https://octocounts.com/github/Anuken/Mindustry) — Java, 146,934 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)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
