Repository Analysis

MonoGame/MonoGame

One framework for creating powerful cross-platform games.

3.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of MonoGame/MonoGame, a C# project with 14,146 GitHub stars. SynthScan v2.0 examined 267,474 lines of code across 1429 source files, recording 930 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 3.8 places this repository in the Likely human-written 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).

3.8
Adjusted Score
3.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
14.1K
Stars
C#
Language
267.5K
Lines of Code
1.4K
Files
930
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 8HIGH 3MEDIUM 1LOW 918

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 930 distinct pattern matches across 8 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.

Over-Commented Block912 hits · 900 pts
SeverityFileLineSnippetContext
LOWMonoGame.Framework/BoundingSphere.cs561COMMENT
LOWMonoGame.Framework/BoundingSphere.cs601 /// Deconstruction method for <see cref="BoundingSphere"/>.COMMENT
LOWMonoGame.Framework/Game.cs361COMMENT
LOWMonoGame.Framework/Game.cs501 private Stopwatch _gameTimer;COMMENT
LOWMonoGame.Framework/Game.cs661 /// <summary>COMMENT
LOWMonoGame.Framework/GameServiceContainer.cs21 public GameServiceContainer()COMMENT
LOWMonoGame.Framework/GameServiceContainer.cs81 }COMMENT
LOWMonoGame.Framework/GamePlatform.cs121 #endregion EventsCOMMENT
LOWMonoGame.Framework/GamePlatform.cs141 /// <returns></returns>COMMENT
LOWMonoGame.Framework/GamePlatform.cs161 /// </summary>COMMENT
LOWMonoGame.Framework/GamePlatform.cs181COMMENT
LOWMonoGame.Framework/GamePlatform.cs201 {COMMENT
LOWMonoGame.Framework/GamePlatform.cs221 /// The new width of the game's client window.COMMENT
LOWMonoGame.Framework/DrawableGameComponent.cs1// MonoGame - Copyright (C) MonoGame Foundation, IncCOMMENT
LOWMonoGame.Framework/DrawableGameComponent.cs21 private bool _disposed;COMMENT
LOWMonoGame.Framework/Quaternion.cs21COMMENT
LOWMonoGame.Framework/Quaternion.cs41 [DataMember]COMMENT
LOWMonoGame.Framework/Quaternion.cs261 /// <summary>COMMENT
LOWMonoGame.Framework/Quaternion.cs541COMMENT
LOWMonoGame.Framework/Quaternion.cs581COMMENT
LOWMonoGame.Framework/Quaternion.cs881COMMENT
LOWMonoGame.Framework/Quaternion.cs921COMMENT
LOWMonoGame.Framework/Quaternion.cs1041 #region OperatorsCOMMENT
LOWMonoGame.Framework/Vector2.cs121 #endregionCOMMENT
LOWMonoGame.Framework/Vector2.cs241 /// Compares whether two <see cref="Vector2"/> instances are equal.COMMENT
LOWMonoGame.Framework/Vector2.cs281 /// <paramref name="value2"/>, storing the result of theCOMMENT
LOWMonoGame.Framework/Vector2.cs341 /// Creates a new <see cref="Vector2"/> that contains CatmullRom interpolation of the specified vectors.COMMENT
LOWMonoGame.Framework/Vector2.cs401 /// <summary>COMMENT
LOWMonoGame.Framework/Vector2.cs461COMMENT
LOWMonoGame.Framework/Vector2.cs501 /// <summary>COMMENT
LOWMonoGame.Framework/Vector2.cs521 {COMMENT
LOWMonoGame.Framework/Vector2.cs601 return (X.GetHashCode() * 397) ^ Y.GetHashCode();COMMENT
LOWMonoGame.Framework/Vector2.cs621 /// </summary>COMMENT
LOWMonoGame.Framework/Vector2.cs641 }COMMENT
LOWMonoGame.Framework/Vector2.cs681 /// Uses <see cref="MathHelper.LerpPrecise"/> on MathHelper for the interpolation.COMMENT
LOWMonoGame.Framework/Vector2.cs701 /// </summary>COMMENT
LOWMonoGame.Framework/Vector2.cs721 value1.Y > value2.Y ? value1.Y : value2.Y);COMMENT
LOWMonoGame.Framework/Vector2.cs761 /// Creates a new <see cref="Vector2"/> that contains a multiplication of two vectors.COMMENT
LOWMonoGame.Framework/Vector2.cs941COMMENT
LOWMonoGame.Framework/Vector2.cs1021 result.Y = y;COMMENT
LOWMonoGame.Framework/Vector2.cs1181 /// <param name="matrix">The transformation <see cref="Matrix"/>.</param>COMMENT
LOWMonoGame.Framework/Vector2.cs1261 /// <param name="radians">The amount to rotate the vector.</param>COMMENT
LOWMonoGame.Framework/Vector2.cs1301 /// <param name="radians">The amount to rotate by in radians</param>COMMENT
LOWMonoGame.Framework/Ray.cs21 /// The direction of this <see cref="Ray"/>.COMMENT
LOWMonoGame.Framework/Ray.cs41 /// <param name="direction">The direction of the <see cref="Ray"/>.</param>COMMENT
LOWMonoGame.Framework/Ray.cs81 /// </summary>COMMENT
LOWMonoGame.Framework/Ray.cs221 /// Check if this <see cref="Ray"/> intersects the specified <see cref="Plane"/>.COMMENT
LOWMonoGame.Framework/Vector3.cs241 /// </summary>COMMENT
LOWMonoGame.Framework/Vector3.cs261 /// <param name="value3">The third vector of 3d-triangle.</param>COMMENT
LOWMonoGame.Framework/Vector3.cs341 /// Clamps the specified value within a range.COMMENT
LOWMonoGame.Framework/Vector3.cs421COMMENT
LOWMonoGame.Framework/Vector3.cs501 result.Z = value1.Z / value2.Z;COMMENT
LOWMonoGame.Framework/Vector3.cs601 }COMMENT
LOWMonoGame.Framework/Vector3.cs621 /// </summary>COMMENT
LOWMonoGame.Framework/Vector3.cs641 return MathF.Sqrt((X * X) + (Y * Y) + (Z * Z));COMMENT
LOWMonoGame.Framework/Vector3.cs681COMMENT
LOWMonoGame.Framework/Vector3.cs701 /// Creates a new <see cref="Vector3"/> that contains linear interpolation of the specified vectors.COMMENT
LOWMonoGame.Framework/Vector3.cs961 /// <summary>COMMENT
LOWMonoGame.Framework/Vector3.cs1421COMMENT
LOWMonoGame.Framework/GameRunBehavior.cs1// MonoGame - Copyright (C) MonoGame Foundation, IncCOMMENT
852 more matches not shown…
Hallucination Indicators8 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALMonoGame.Framework/Platform/TitleContainer.Android.cs16 return Android.App.Application.Context.Assets.Open(safeName);CODE
CRITICAL….Framework/Platform/Android/MonoGameAndroidGameView.cs1102 Microsoft.Xna.Framework.Content.ContentManager.ReloadGraphicsContent();CODE
CRITICAL…ame.Framework/Platform/Windows/WinFormsGamePlatform.cs133 Microsoft.Xna.Framework.Media.MediaManagerState.CheckShutdown();CODE
CRITICALMonoGame.Framework/Graphics/IGraphicsDeviceService.cs32 /// <seealso cref="Microsoft.Xna.Framework.Graphics.GraphicsDevice.Reset()"/>COMMENT
CRITICALMonoGame.Framework/Media/Album.cs30 /// <see cref="P:Microsoft.Xna.Framework.Media.AlbumCollection.Item(System.Int32)"/>COMMENT
CRITICAL…lder.Editor/Common/PipelineController.IncludeAction.cs82 citem.ProcessorParams = new Microsoft.Xna.Framework.Content.Pipeline.OpaqueDataDictionary();CODE
CRITICAL…er/MouseGetStateAndIsMouseVisibleTester/TextManager.cs40 spriteBatch.DrawString(sfStandard, "MouseX = " + cG.Window.Window.MouseLocationOutsideOfEventStream.X.ToStrCODE
CRITICAL…er/MouseGetStateAndIsMouseVisibleTester/TextManager.cs41 spriteBatch.DrawString(sfStandard, "MouseY = " + cG.Window.Window.MouseLocationOutsideOfEventStream.Y.ToStrCODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHTools/MonoGame.Generator.CTypes/PInvokeWritter.cs0// monogame - copyright (c) monogame foundation, inc // this file is subject to the terms and conditions defined in // fSTRING
HIGHTools/MonoGame.Generator.CTypes/EnumWritter.cs0// monogame - copyright (c) monogame foundation, inc // this file is subject to the terms and conditions defined in // fSTRING
HIGHTools/MonoGame.Generator.CTypes/StructWritter.cs0// monogame - copyright (c) monogame foundation, inc // this file is subject to the terms and conditions defined in // fSTRING
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWMonoGame.Framework/Platform/SDL/SDLGamePlatform.cs176 // we're reading the first UTF8 byte, we need to check if it's multibyteCOMMENT
LOWMonoGame.Framework/Platform/Android/ScreenReceiver.cs23 // will not be broadcast. We need to check if the lock is currently activeCOMMENT
LOWnative/monogame/sdl/MGP_sdl.cpp575 // we're reading the first UTF8 byte, we need to check if it's multibyteCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…Framework.Content.Pipeline/Graphics/FontDescription.cs12 /// Provides information to the FontDescriptionProcessor describing which font to rasterize, which font size to utilizeCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWMonoGame.Framework/BoundingBox.cs106 /// NOTE: This method may return false positives (indicating an intersection or containment when there is noneCOMMENT
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOWMonoGame.Framework/Input/KeyboardInput.cs52 /// KeyboardInput.Cancel("John Doe");COMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWnative/monogame/directx12/D3D12MemAlloc.h2329If you allocated a new object to be used as the custom pointer, don't forget to delete that object before freeing the alCODE