# microsoft/calculator SLOC report

> As of 2026-11-07 (commit 79e1ac53bba6), microsoft/calculator contains 82,028 total lines: 66,712 code, 6,081 comments, 9,235 blank, across 354 files in 14 languages (top language: C# 44.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

microsoft/calculator has 66,712 source lines of code out of 82,028 total lines across 354 files, counted with tokei from the main ref at commit 79e1ac53bba6 on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving microsoft/calculator to commit 79e1ac53bba6, 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

microsoft/calculator: 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 81.3% of all lines, comments represent 7.4%, and the repository averages 188 code lines per file. C# accounts for 44.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 150 | 36,361 | 29,846 | 1,807 | 4,708 |
| XAML | 30 | 15,185 | 14,336 | 153 | 696 |
| C++ | 64 | 18,562 | 13,066 | 2,920 | 2,576 |
| C Header | 84 | 8,449 | 6,424 | 849 | 1,176 |
| Visual Studio Project | 6 | 1,505 | 1,503 | 2 | 0 |
| MSBuild | 7 | 1,317 | 1,302 | 15 | 0 |
| JSON | 1 | 134 | 134 | 0 | 0 |
| Shell | 1 | 53 | 37 | 9 | 7 |
| PowerShell | 1 | 91 | 36 | 48 | 7 |
| XML | 3 | 85 | 15 | 63 | 7 |
| NuGet Config | 1 | 10 | 10 | 0 | 0 |
| Module-Definition | 1 | 3 | 3 | 0 | 0 |

Top language: C# 44.7%. Generated on November 7, 2026. Canonical report: https://octocounts.com/github/microsoft/calculator

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/microsoft/calculator/commit/79e1ac53bba690cdf930e5dcd6ed9dbc4cbfb128?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=14c20ec9684b6b63f59fd3a9574ca9bccaa32ad61a14e2c20e7772606f7fdd9a).

## Report FAQ

### How many lines of code does microsoft/calculator have?

microsoft/calculator has 66,712 lines of code, plus 6,081 comment lines and 9,235 blank lines, for 82,028 total lines at commit 79e1ac53bba6 on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the microsoft/calculator line count measured?

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

### What commit was counted for microsoft/calculator?

This OctoCounts report was generated from main at commit 79e1ac53bba6 on November 7, 2026.

## Similar repository reports

- [ANYNC/TaskbarLyrics](https://octocounts.com/github/ANYNC/TaskbarLyrics) — C#, 68,422 code lines
- [JiaFeiMiao-K-Cat/DiscImageStudio](https://octocounts.com/github/JiaFeiMiao-K-Cat/DiscImageStudio) — C#, 68,429 code lines
- [digimezzo/dopamine-windows](https://octocounts.com/github/digimezzo/dopamine-windows) — C#, 64,441 code lines
- [jayfunc/BetterLyrics](https://octocounts.com/github/jayfunc/BetterLyrics) — C#, 70,013 code lines
- [AlLHHH/ALH-Pro](https://octocounts.com/github/AlLHHH/ALH-Pro) — C#, 63,199 code lines
- [lhzlhz419/ThinkBookToolkit](https://octocounts.com/github/lhzlhz419/ThinkBookToolkit) — C#, 72,671 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)
