# AvaloniaUI/Avalonia SLOC report

> As of 2026-11-16 (commit 16d8678a4416), AvaloniaUI/Avalonia contains 574,849 total lines: 419,519 code, 82,782 comments, 72,548 blank, across 4,351 files in 25 languages (top language: C# 80.2%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

AvaloniaUI/Avalonia has 419,519 source lines of code out of 574,849 total lines across 4,351 files, counted with tokei from the main ref at commit 16d8678a4416 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving AvaloniaUI/Avalonia to commit 16d8678a4416, 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

AvaloniaUI/Avalonia: 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 73.0% of all lines, comments represent 14.4%, and the repository averages 96 code lines per file. C# accounts for 80.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 3,462 | 476,531 | 336,400 | 75,665 | 64,466 |
| XAML | 412 | 49,756 | 45,182 | 1,292 | 3,282 |
| AXAML | 166 | 20,561 | 18,809 | 432 | 1,320 |
| Objective-C++ | 34 | 9,479 | 7,511 | 430 | 1,538 |
| XML | 56 | 7,308 | 4,004 | 2,966 | 338 |
| MSBuild | 95 | 3,438 | 2,947 | 146 | 345 |
| TypeScript | 38 | 3,262 | 2,483 | 358 | 421 |
| C Header | 28 | 1,442 | 1,025 | 104 | 313 |
| JSON | 15 | 427 | 425 | 0 | 2 |
| TSX | 2 | 147 | 120 | 3 | 24 |
| .NET Resource | 2 | 237 | 119 | 118 | 0 |
| CSS | 2 | 96 | 80 | 3 | 13 |

Top language: C# 80.2%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/AvaloniaUI/Avalonia

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/AvaloniaUI/Avalonia/commit/16d8678a44162a40fee756c0173871a6c1c72997?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=939ed14cda5d05f13d176d15e5ddcd48433feae16f185de3badf0fa8b3d046d8).

## Report FAQ

### How many lines of code does AvaloniaUI/Avalonia have?

AvaloniaUI/Avalonia has 419,519 lines of code, plus 82,782 comment lines and 72,548 blank lines, for 574,849 total lines at commit 16d8678a4416 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the AvaloniaUI/Avalonia line count measured?

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

### What commit was counted for AvaloniaUI/Avalonia?

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

## Similar repository reports

- [microsoft/semantic-kernel](https://octocounts.com/github/microsoft/semantic-kernel) — C#, 420,992 code lines
- [blitzy-public-samples/StockSharp](https://octocounts.com/github/blitzy-public-samples/StockSharp) — C#, 433,986 code lines
- [Sonarr/Sonarr](https://octocounts.com/github/Sonarr/Sonarr) — C#, 379,407 code lines
- [ppy/osu](https://octocounts.com/github/ppy/osu) — C#, 468,609 code lines
- [thoenissen/Reihitsu](https://octocounts.com/github/thoenissen/Reihitsu) — C#, 471,972 code lines
- [openutau/OpenUtau](https://octocounts.com/github/openutau/OpenUtau) — C#, 355,157 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)
- [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)
