Windows Calculator: A simple yet powerful calculator that ships with Windows
This report summarizes scanner evidence for microsoft/calculator, a C# project with 31,084 GitHub stars. SynthScan examined 65,649 lines of code across 321 source files, recording 143 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 140 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 143 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 143 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/GraphControl/pch.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/GraphControl/pch.h | 21 | #include <functional> | COMMENT |
| LOW | src/GraphControl/Control/Grapher.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/Calculator/DesignData/DesignAppViewModel.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | …c/Calculator/DesignData/DesignUnitConverterViewModel.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | ….Interop/CalcManager.Interop.CategorySelectionResult.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager.Interop/pch.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager.Interop/pch.h | 21 | #include "CalculatorResource.h" | COMMENT |
| LOW | src/CalcManager.Interop/UnitConverterWrapper.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager.Interop/UnitConverterInterop.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager.Interop/CalculatorManagerWrapper.h | 1 | #pragma once | COMMENT |
| LOW | …Interop/CalcManager.Interop.ExpressionCommandWrapper.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager.Interop/pch.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | …nager.Interop/CalcManager.Interop.HistoryItemWrapper.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager.Interop/CalcManagerInterop.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/TraceLogging/pch.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/TraceLogging/pch.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/GraphingImpl/pch.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager/UnitConverter.cpp | 161 | COMMENT | |
| LOW | src/CalcManager/sal_cross_platform.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager/pch.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/pch.h | 21 | #include <vector> | COMMENT |
| LOW | src/CalcManager/winerror_cross_platform.h | 1 | #pragma once | COMMENT |
| LOW | src/CalcManager/winerror_cross_platform.h | 21 | #define SUCCEEDED(hr) (((ResultCode)(hr)) >= 0) | COMMENT |
| LOW | src/CalcManager/pch.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/CEngine/calc.cpp | 41 | ////////////////////////////////////////////////// | COMMENT |
| LOW | src/CalcManager/CEngine/sciset.cpp | 121 | // find the largest digit | COMMENT |
| LOW | src/CalcManager/Header Files/History.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/Header Files/CalcEngine.h | 21 | #include "../ExpressionCommand.h" | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 21 | #define IDM_DEC 314 | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 41 | #define IDC_DEGREES IDM_DEGREES | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 61 | COMMENT | |
| LOW | src/CalcManager/Header Files/CCommand.h | 81 | #define IDC_ROL 99 | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 101 | #define IDC_CUBEROOT 116 // x ^ 1/3 | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 121 | #define IDC_0 130 // The controls for 0 through F must be consecutive and in order | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 141 | #define IDC_UNARYEXTENDEDFIRST IDC_STRING_MAPPED_VALUES | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 161 | #define IDC_ROLC 416 // Rotate Left Circular | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 181 | #define IDC_BINPOS1 701 | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 201 | #define IDC_BINPOS21 721 | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 221 | #define IDC_BINPOS41 741 | COMMENT |
| LOW | src/CalcManager/Header Files/CCommand.h | 241 | #define IDC_BINPOS61 761 | COMMENT |
| LOW | src/CalcManager/Ratpack/num.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/Ratpack/num.cpp | 21 | #include <cstring> // for memmove | COMMENT |
| LOW | src/CalcManager/Ratpack/num.cpp | 161 | // Remove leading zeros, remember digits are in order of | COMMENT |
| LOW | src/CalcManager/Ratpack/num.cpp | 281 | { | COMMENT |
| LOW | src/CalcManager/Ratpack/num.cpp | 341 | COMMENT | |
| LOW | src/CalcManager/Ratpack/num.cpp | 541 | } | COMMENT |
| LOW | src/CalcManager/Ratpack/num.cpp | 581 | if (diff) | COMMENT |
| LOW | src/CalcManager/Ratpack/logic.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/Ratpack/exp.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/Ratpack/exp.cpp | 21 | // FUNCTION: exprat | COMMENT |
| LOW | src/CalcManager/Ratpack/exp.cpp | 101 | // | COMMENT |
| LOW | src/CalcManager/Ratpack/exp.cpp | 261 | return bRet; | COMMENT |
| LOW | src/CalcManager/Ratpack/exp.cpp | 401 | // | COMMENT |
| LOW | src/CalcManager/Ratpack/itrans.cpp | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/Ratpack/itrans.cpp | 41 | // ARGUMENTS: x PRAT representation of number to take the inverse | COMMENT |
| LOW | src/CalcManager/Ratpack/itrans.cpp | 141 | //----------------------------------------------------------------------------- | COMMENT |
| LOW | src/CalcManager/Ratpack/itrans.cpp | 221 | //----------------------------------------------------------------------------- | COMMENT |
| LOW | src/CalcManager/Ratpack/CalcErr.h | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. | COMMENT |
| LOW | src/CalcManager/Ratpack/CalcErr.h | 21 | // where | COMMENT |
| 73 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …c/Calculator.ViewModels/Common/LocalizationSettings.cs | 217 | var flowDirection = Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView() | CODE |
| CRITICAL | …or/Views/GraphingCalculator/GraphingCalculator.xaml.cs | 703 | var compositor = Windows.UI.Xaml.Hosting.ElementCompositionPreview.GetElementVisual(CursorPath).Compositor; | CODE |
| CRITICAL | …or/Views/GraphingCalculator/GraphingCalculator.xaml.cs | 713 | Windows.UI.Xaml.Hosting.ElementCompositionPreview.SetElementChildVisual(CursorShadow, shadowSpriteVisual); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/NewFeatureProcess.md | 24 | ## Step 1: Feature pitch | COMMENT |
| LOW | docs/NewFeatureProcess.md | 34 | ## Step 2: Planning | COMMENT |
| LOW | docs/NewFeatureProcess.md | 51 | ## Step 3: Implementation | COMMENT |
| LOW | docs/NewFeatureProcess.md | 111 | ## Step 4: Final product review and merge to master | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/Scripts/clang-format/clang-format-all.sh | 11 | # Some distros just call it clang-format. Others (e.g. Ubuntu) are insistent | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/Scripts/clang-format/clang-format-all.sh | 22 | # Check if we found a working clang-format | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/GraphControl/DirectX/DeviceResources.cpp | 152 | // Don't forget to declare your application's minimum required feature level in its | COMMENT |