Repository Analysis

SFML/SFML

Simple and Fast Multimedia Library

13.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of SFML/SFML, a C++ project with 11,978 GitHub stars. SynthScan v2.0 examined 179,802 lines of code across 629 source files, recording 2500 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 13.1 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).

13.1
Adjusted Score
13.1
Raw Score
100%
Time Factor
2026-08-07
Last Push
12.0K
Stars
C++
Language
179.8K
Lines of Code
629
Files
2.5K
Pattern Hits
2026-08-09
Scan Date
0.00
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 0MEDIUM 1LOW 2499

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 2500 distinct pattern matches across 4 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 Block2432 hits · 2252 pts
SeverityFileLineSnippetContext
LOWtest/Network/Dns.test.cpp1#include <SFML/Network/Dns.hpp>COMMENT
LOWtest/Network/SocketSelector.test.cpp1#include <SFML/Network/SocketSelector.hpp>COMMENT
LOWtest/Network/SocketSelector.test.cpp41 << SFML_NETWORK_TESTS_MAX_FDS << std::endl;COMMENT
LOWtest/Network/Packet.test.cpp1#include <SFML/Network/Packet.hpp>COMMENT
LOWtest/Network/IpAddress.test.cpp1#include <SFML/Network/IpAddress.hpp>COMMENT
LOWtest/Network/IpAddress.test.cpp61 // Strings that fail parsing as an IP address will be treated as hostnamesCOMMENT
LOWtest/Network/TcpLoopback.test.cpp1#include <SFML/Network/SocketSelector.hpp>COMMENT
LOWtest/TestUtilities/SystemUtil.cpp1#include <SFML/System/Angle.hpp>COMMENT
LOWtest/System/String.test.cpp1#include <SFML/System/String.hpp>COMMENT
LOWtest/System/Utf.test.cpp1// Some versions of GCC produce a false positive maybe-uninitialized warning when building this file in releaseCOMMENT
LOWtest/Audio/Music.test.cpp1#include <SFML/Audio/Music.hpp>COMMENT
LOWtest/Audio/SoundFileFactory.test.cpp1#include <SFML/Audio/SoundFileFactory.hpp>COMMENT
LOWtest/Window/Context.test.cpp1#include <SFML/Window/Context.hpp>COMMENT
LOWtest/Window/Keyboard.test.cpp1#include <SFML/Window/Keyboard.hpp>COMMENT
LOWtest/Window/WindowBase.test.cpp1#include <SFML/Window/WindowBase.hpp>COMMENT
LOWtest/Graphics/Text.test.cpp1#include <SFML/Graphics/Text.hpp>COMMENT
LOWtest/Graphics/WindowHandleWin32.test.cpp1#include <SFML/Window/WindowHandle.hpp>COMMENT
LOWinclude/SFML/GpuPreference.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/GpuPreference.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/GpuPreference.hpp41COMMENT
LOWinclude/SFML/Main.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Main.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Graphics.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Graphics.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Graphics.hpp41#include <SFML/Graphics/RectangleShape.hpp>COMMENT
LOWinclude/SFML/Graphics.hpp61COMMENT
LOWinclude/SFML/OpenGL.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/OpenGL.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/OpenGL.hpp41#ifdef _MSC_VERCOMMENT
LOWinclude/SFML/OpenGL.hpp61COMMENT
LOWinclude/SFML/Config.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Config.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Config.hpp41#if defined(_WIN32)COMMENT
LOWinclude/SFML/Config.hpp61// macOSCOMMENT
LOWinclude/SFML/Config.hpp81// LinuxCOMMENT
LOWinclude/SFML/Config.hpp101// Unsupported UNIX systemCOMMENT
LOWinclude/SFML/Config.hpp121COMMENT
LOWinclude/SFML/Config.hpp141#define SFML_API_IMPORT __declspec(dllimport)COMMENT
LOWinclude/SFML/Config.hpp161#define SFML_API_EXPORTCOMMENT
LOWinclude/SFML/System.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/System.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/System.hpp41#include <SFML/System/String.hpp>COMMENT
LOWinclude/SFML/Window.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Window.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Window.hpp41#include <SFML/Window/VideoMode.hpp>COMMENT
LOWinclude/SFML/Audio.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Audio.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Audio.hpp41#include <SFML/Audio/SoundFileWriter.hpp>COMMENT
LOWinclude/SFML/Network.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Network.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Network.hpp41#include <SFML/Network/TcpSocket.hpp>COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp1////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp21// 3. This notice may not be removed or altered from any source distribution.COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp41namespace sfCOMMENT
LOWinclude/SFML/Network/UdpSocket.hpp61 ////////////////////////////////////////////////////////////COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp81 /// able to receive data on that port.COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp101COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp121 /// fail and no data will be sent.COMMENT
LOWinclude/SFML/Network/UdpSocket.hpp141 /// the data that you intend to receive, if it is too smallCOMMENT
LOWinclude/SFML/Network/UdpSocket.hpp161COMMENT
2372 more matches not shown…
Example Usage Blocks55 hits · 82 pts
SeverityFileLineSnippetContext
LOWinclude/SFML/Network/UdpSocket.hpp252/// Usage example:COMMENT
LOWinclude/SFML/Network/Dns.hpp188/// Usage example:COMMENT
LOWinclude/SFML/Network/SocketSelector.hpp303/// Usage example:COMMENT
LOWinclude/SFML/Network/Sftp.hpp902/// Usage example:COMMENT
LOWinclude/SFML/Network/Http.hpp462/// Usage example:COMMENT
LOWinclude/SFML/Network/IpAddress.hpp417/// Usage example:COMMENT
LOWinclude/SFML/Network/TcpListener.hpp144/// Usage example:COMMENT
LOWinclude/SFML/Network/Packet.hpp176 /// Usage example:COMMENT
LOWinclude/SFML/Network/Packet.hpp453/// Usage example:COMMENT
LOWinclude/SFML/Network/Ftp.hpp592/// Usage example:COMMENT
LOWinclude/SFML/Network/TcpSocket.hpp656/// Usage example:COMMENT
LOWinclude/SFML/System/Angle.hpp496/// Usage example:COMMENT
LOWinclude/SFML/System/Time.hpp474/// Usage example:COMMENT
LOWinclude/SFML/System/MemoryInputStream.hpp129/// Usage example:COMMENT
LOWinclude/SFML/System/InputStream.hpp113/// Usage example:COMMENT
LOWinclude/SFML/System/TimeoutWithPredicate.hpp168/// Usage example:COMMENT
LOWinclude/SFML/System/FileInputStream.hpp201/// Usage example:COMMENT
LOWinclude/SFML/System/Clock.hpp179/// Usage example:COMMENT
LOWinclude/SFML/System/Vector3.hpp341/// Usage example:COMMENT
LOWinclude/SFML/System/Vector2.hpp421/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundFileReader.hpp128/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundBuffer.hpp416/// Usage example:COMMENT
LOWinclude/SFML/Audio/Music.hpp360/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundFileWriter.hpp99/// Usage example:COMMENT
LOWinclude/SFML/Audio/Sound.hpp275/// Usage example:COMMENT
LOWinclude/SFML/Audio/Listener.hpp222/// Usage example:COMMENT
LOWinclude/SFML/Audio/InputSoundFile.hpp300/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundBufferRecorder.hpp123/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundRecorder.hpp310/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundStream.hpp339/// Usage example:COMMENT
LOWinclude/SFML/Audio/SoundFileFactory.hpp189/// Usage example:COMMENT
LOWinclude/SFML/Audio/OutputSoundFile.hpp130/// Usage example:COMMENT
LOWinclude/SFML/Window/Cursor.hpp291/// Usage example:COMMENT
LOWinclude/SFML/Window/Keyboard.hpp453/// Usage example:COMMENT
LOWinclude/SFML/Window/Joystick.hpp193/// Usage example:COMMENT
LOWinclude/SFML/Window/Clipboard.hpp88/// Usage example:COMMENT
LOWinclude/SFML/Window/Touch.hpp130/// Usage example:COMMENT
LOWinclude/SFML/Window/Sensor.hpp125/// Usage example:COMMENT
LOWinclude/SFML/Window/Window.hpp393/// Usage example:COMMENT
LOWinclude/SFML/Window/Context.hpp210/// Usage example:COMMENT
LOWinclude/SFML/Window/Mouse.hpp167/// Usage example:COMMENT
LOWinclude/SFML/Window/VideoMode.hpp207/// Usage example:COMMENT
LOWinclude/SFML/Window/WindowBase.hpp633/// Usage example:COMMENT
LOWinclude/SFML/Graphics/RectangleShape.hpp130/// Usage example:COMMENT
LOWinclude/SFML/Graphics/CircleShape.hpp143/// Usage example:COMMENT
LOWinclude/SFML/Graphics/Rect.hpp183/// Usage example:COMMENT
LOWinclude/SFML/Graphics/StencilMode.hpp214/// Usage example:COMMENT
LOWinclude/SFML/Graphics/RenderTexture.hpp297/// Usage example:COMMENT
LOWinclude/SFML/Graphics/Sprite.hpp261/// Usage example:COMMENT
LOWinclude/SFML/Graphics/Font.hpp610/// Usage example:COMMENT
LOWinclude/SFML/Graphics/Texture.hpp822/// Usage example:COMMENT
LOWinclude/SFML/Graphics/View.hpp327/// Usage example:COMMENT
LOWinclude/SFML/Graphics/ConvexShape.hpp139/// Usage example:COMMENT
LOWinclude/SFML/Graphics/Text.hpp856/// Usage example:COMMENT
LOWinclude/SFML/Graphics/Image.hpp393/// Usage example:COMMENT
Slop Phrases12 hits · 18 pts
SeverityFileLineSnippetContext
LOWinclude/SFML/Audio/SoundBufferRecorder.hpp119/// As usual, don't forget to call the `isAvailable()` functionCOMMENT
LOWinclude/SFML/Graphics/RenderTexture.hpp212 /// (like a RenderWindow) don't forget to activate it again.COMMENT
LOWinclude/SFML/Graphics/RenderTexture.hpp338/// 3D rendering, don't forget to request it when calling `RenderTexture::create`.COMMENT
LOWinclude/SFML/Graphics/RenderTarget.hpp374 /// don't forget to activate it again. Activating a renderCOMMENT
LOWinclude/SFML/Graphics/VertexBuffer.hpp132 /// as `vertexCount`. Don't forget to recreate with a non-zeroCOMMENT
MEDIUMexamples/event_handling/EventHandling.cpp121 // This example is for demonstration purposes onlyCOMMENT
LOWexamples/win32/Win32.cpp166 // Don't forget to unregister the window classCOMMENT
LOW.github/ISSUE_TEMPLATE/feature_request.yml26 placeholder: "Tell us what you see! And don't forget to add error message in full"CODE
LOW.github/ISSUE_TEMPLATE/bug_report.yml26 placeholder: "Tell us what you see! And don't forget to add error message in full"CODE
LOWsrc/SFML/Audio/InputSoundFile.cpp192 // Don't forget to reset the stream to its beginning before re-opening itCOMMENT
LOWsrc/SFML/Window/macOS/SFOpenGLView+mouse.mm402 // Don't forget to change to SFML coord system.COMMENT
LOWsrc/SFML/Window/iOS/WindowImplUIKit.mm140 // if these sizes are required one day, don't forget to scale them!COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/SFML/Window/macOS/HIDInputManager.mm751 // The purpose of this function is to initialize m_keys so we can getCOMMENT