Use OCR in Windows quickly and easily with Text Grab. With optional background process and notifications.
This report presents the forensic synthetic code analysis of TheJoeFin/Text-Grab, a C# project with 4,979 GitHub stars. SynthScan v2.0 examined 87,996 lines of code across 278 source files, recording 168 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 5.0 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 168 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | Text-Grab/TextGrabNotificationActivator.cs | 14 | System.Windows.Application.Current.Dispatcher.Invoke(delegate | CODE |
| CRITICAL⚡ | Text-Grab/Utilities/NotifyIconUtilities.cs | 105 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL⚡ | Text-Grab/Utilities/NotifyIconUtilities.cs | 111 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL⚡ | Text-Grab/Utilities/NotifyIconUtilities.cs | 118 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL⚡ | Text-Grab/Utilities/NotifyIconUtilities.cs | 125 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL⚡ | Text-Grab/Utilities/NotifyIconUtilities.cs | 133 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL⚡ | Text-Grab/Utilities/NotifyIconUtilities.cs | 139 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL | Text-Grab/Utilities/NotifyIconUtilities.cs | 155 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL | Text-Grab/Utilities/NotifyIconUtilities.cs | 161 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => | CODE |
| CRITICAL | Text-Grab/Views/EditTextWindow.xaml.cs | 2726 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => { AddCopiedTextToTextBox(text); }) | CODE |
| CRITICAL | Text-Grab/Views/EditTextWindow.xaml.cs | 4044 | await System.Windows.Application.Current.Dispatcher.BeginInvoke(() => | CODE |
| CRITICAL | Text-Grab/Views/EditTextWindow.xaml.cs | 4489 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => { AddCopiedTextToTextBox(textFromC | CODE |
| CRITICAL | Text-Grab/Views/EditTextWindow.xaml.cs | 4505 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => { AddCopiedTextToTextBox(text); }) | CODE |
| CRITICAL | Text-Grab/Views/EditTextWindow.xaml.cs | 4529 | System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => { AddCopiedTextToTextBox(text) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tests/PatternExecutorTests.cs | 15 | // ── PatternItem catalog ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/PatternExecutorTests.cs | 54 | // ── PatternExecutor – recognizer-backed ─────────────────────────────────── | COMMENT |
| MEDIUM | Tests/PatternExecutorTests.cs | 79 | // ── PatternExecutor – saved-regex-backed ────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 8 | // ── ApplyOutputTemplate – basic substitution ────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 47 | // ── Modifiers ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 81 | // ── Escape sequences ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 116 | // ── ValidateOutputTemplate ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 148 | // ── Pattern placeholder – ApplyPatternPlaceholders ──────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 340 | // ── ExtractMatchesByMode ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 372 | // ── Hybrid template (regions + patterns) ────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 400 | // ── GrabTemplate model ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 462 | // ── ApplyTextOnlyTemplate ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/GrabTemplateExecutorTests.cs | 512 | // ── ValidateOutputTemplate with patterns ────────────────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 21 | // ── BuiltInRecognizer catalog ───────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 38 | // ── GetMatches / HasMatch ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 75 | // ── ApplyRecognizer – modes ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 115 | // ── ApplyRecognizer – output kind ───────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 133 | // ── GrabTemplateExecutor – recognizer placeholders ──────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 165 | // ── GrabTemplateExecutor – parsing ──────────────────────────────────────── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 192 | // ── FormatResolvedValue – resolution shapes (guards library coupling) ───── | COMMENT |
| MEDIUM | Tests/RecognizerExecutorTests.cs | 279 | // ── ApplyTextOnlyTemplate – recognizer-only ─────────────────────────────── | COMMENT |
| MEDIUM | Tests/ProtocolUtilitiesTests.cs | 120 | // ── TryGetSafeProtocolFilePath ──────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateManager.cs | 46 | // ── File path ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateManager.cs | 132 | // ── Read ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateManager.cs | 169 | // ── Write ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateManager.cs | 236 | // ── ButtonInfo bridge ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/RecognizerExecutor.cs | 46 | // ── Low-level matching (shared with search features) ──────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/RecognizerExecutor.cs | 83 | // ── Application (Edit Text Window / templates) ────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/RecognizerExecutor.cs | 109 | // ── Resolution formatting ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateExecutor.cs | 57 | // ── Public API ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateExecutor.cs | 302 | // ── Pattern placeholder processing ────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateExecutor.cs | 477 | // ── Recognizer placeholder processing ─────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Utilities/GrabTemplateExecutor.cs | 550 | // ── Private helpers ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 52 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 54 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 83 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 85 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 114 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 116 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 127 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 129 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 162 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 164 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 186 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | Text-Grab/Services/CalculationService.UnitMath.cs | 188 | // ══════════════════════════════════════════════════════════════ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Text-Grab/App.xaml.cs | 161 | COMMENT | |
| LOW | Text-Grab/App.xaml.cs | 181 | //}; | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 221 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 241 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 261 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 281 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 301 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 321 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 341 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 361 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 381 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 401 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 421 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 441 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 461 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 481 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 501 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 521 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 541 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 561 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 581 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 601 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 621 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 641 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 661 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 681 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 701 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 721 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 741 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 761 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 781 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 801 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 821 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 841 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 861 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 881 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 901 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 921 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 941 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 961 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 981 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 1001 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 1021 | /// <summary> | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 1041 | EXSEL = 0xF8, | COMMENT |
| LOW | Text-Grab/OSInterop.cs | 1261 | /// <summary> | COMMENT |
| LOW | Text-Grab/Models/TemplateRecognizerMatch.cs | 1 | using Text_Grab.Utilities; | COMMENT |
| LOW | Text-Grab/Models/TemplateRecognizerMatch.cs | 21 | { | COMMENT |
| LOW | Text-Grab/Models/StoredRegex.cs | 21 | /// The actual regex pattern | COMMENT |
| LOW | Text-Grab/Models/GrabTemplate.cs | 1 | using System; | COMMENT |
| LOW | Text-Grab/Models/GrabTemplate.cs | 21 | /// {p:Name:2} — 2nd match (1-based) | COMMENT |
| LOW | Text-Grab/Models/GrabTemplate.cs | 41 | /// <summary>Date this template was created.</summary> | COMMENT |
| LOW | Text-Grab/Models/GrabTemplate.cs | 61 | public double ReferenceImageHeight { get; set; } = 600; | COMMENT |
| LOW | Text-Grab/Models/PostGrabContext.cs | 1 | using System.Windows; | COMMENT |
| LOW | Text-Grab/Models/PatternItem.cs | 21 | /// from text. This type wraps either kind so the UI surfaces (template picker, Edit Text | COMMENT |
| LOW | Text-Grab/Models/TemplatePatternMatch.cs | 1 | using System; | COMMENT |
| LOW | Text-Grab/Models/TemplatePatternMatch.cs | 21 | /// Used for durable resolution even if the pattern is renamed. | COMMENT |
| LOW | Text-Grab/Models/TemplateRegion.cs | 1 | using System.Windows; | COMMENT |
| LOW | Text-Grab/Models/ExtractedPattern.cs | 21 | private readonly Dictionary<int, string> _patternsByLevel = []; | COMMENT |
| LOW | Text-Grab/Models/HistoryInfo.cs | 121 | public string RectAsString { get; set; } = string.Empty; | COMMENT |
| LOW | Text-Grab/Utilities/ProtocolUtilities.cs | 1 | using Microsoft.Win32; | COMMENT |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | Tests/SettingsImportExportTests.cs | 62 | // Step 1: Export current settings to get baseline | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 65 | // Step 2: Extract and read the original JSON | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 71 | // Step 3: Deserialize to dictionary to get all key-value pairs | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 76 | // Step 4: Modify one value in the JSON to simulate a change | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 98 | // Step 5: Serialize modified settings and save to a new zip | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 108 | // Step 6: Import the modified settings | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 111 | // Step 7: Export again to get the imported settings | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 114 | // Step 8: Extract and compare | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 123 | // Step 9: Compare element by element - the modified value should match what we set | COMMENT |
| LOW | Tests/SettingsImportExportTests.cs | 142 | // Step 10: Restore original settings | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | Tests/SettingsImportExportTests.cs | 62 | // Step 1: Export current settings to get baseline | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 65 | // Step 2: Extract and read the original JSON | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 71 | // Step 3: Deserialize to dictionary to get all key-value pairs | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 76 | // Step 4: Modify one value in the JSON to simulate a change | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 98 | // Step 5: Serialize modified settings and save to a new zip | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 108 | // Step 6: Import the modified settings | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 111 | // Step 7: Export again to get the imported settings | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 114 | // Step 8: Extract and compare | COMMENT |
| LOW⚡ | Tests/SettingsImportExportTests.cs | 123 | // Step 9: Compare element by element - the modified value should match what we set | COMMENT |
| LOW | Tests/SettingsImportExportTests.cs | 142 | // Step 10: Restore original settings | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Text-Grab/Utilities/WindowsAiUtilities.cs | 653 | /// Cleans the AI-generated regex result by removing markdown formatting, code blocks, and explanations. | COMMENT |
| HIGH | Text-Grab/Properties/Settings.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Text-Grab/Utilities/ClipboardUtilities.cs | 123 | // Maybe revist and make more robust. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tests/GrabTemplateExecutorTests.cs | 378 | Dictionary<int, string> regions = new() { [1] = "John Doe" }; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tests/StringMethodTests.cs | 309 | string inputString = @"Don't Forget to do | CODE |