Repository Analysis

ValveSoftware/GameNetworkingSockets

Reliable & unreliable messages over UDP. Robust message fragmentation & reassembly. P2P networking / NAT traversal. Encryption.

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ValveSoftware/GameNetworkingSockets, a C++ project with 9,825 GitHub stars. SynthScan v2.0 examined 94,740 lines of code across 241 source files, recording 552 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 5.9 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).

5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-08-06
Last Push
9.8K
Stars
C++
Language
94.7K
Lines of Code
241
Files
552
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 22LOW 530

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 552 distinct pattern matches across 11 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 Block506 hits · 468 pts
SeverityFileLineSnippetContext
LOWinclude/steam/isteamnetworkingutils.h1//====== Copyright Valve Corporation, All rights reserved. ====================COMMENT
LOWinclude/steam/isteamnetworkingutils.h21{COMMENT
LOWinclude/steam/isteamnetworkingutils.h41 virtual SteamNetworkingMessage_t *AllocateMessage( int cbAllocateBuffer ) = 0;COMMENT
LOWinclude/steam/isteamnetworkingutils.h61 /// relay network is anticipated.COMMENT
LOWinclude/steam/isteamnetworkingutils.h81 virtual ESteamNetworkingAvailability GetRelayNetworkStatus( SteamRelayNetworkStatus_t *pDetails ) = 0;COMMENT
LOWinclude/steam/isteamnetworkingutils.h101 /// Return location info for the current host. Returns the approximateCOMMENT
LOWinclude/steam/isteamnetworkingutils.h121 ///COMMENT
LOWinclude/steam/isteamnetworkingutils.h141 /// GetLocalPingLocation with EstimatePingTimeBetweenTwoLocations. That's becauseCOMMENT
LOWinclude/steam/isteamnetworkingutils.h161 /// user input to refresh this information.) Don't call it "just in case",COMMENT
LOWinclude/steam/isteamnetworkingutils.h201 ///COMMENT
LOWinclude/steam/isteamnetworkingutils.h221 /// problems with tech savvy end users. If you have a console or other log that customersCOMMENT
LOWinclude/steam/isteamnetworkingutils.h241 /// Steamworks calls from within the handler.COMMENT
LOWinclude/steam/isteamnetworkingutils.h261 ///COMMENT
LOWinclude/steam/isteamnetworkingutils.h281 bool SetConnectionConfigValueString( HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, const char *val );COMMENT
LOWinclude/steam/isteamnetworkingutils.h301 /// - pArg: Value to set it to. You can pass NULL to remove a non-global setting at this scope,COMMENT
LOWinclude/steam/isteamnetworkingutils.h321 /// - cbResult: IN: the size of your buffer. OUT: the number of bytes filled in or required.COMMENT
LOWinclude/steam/isteamnetworkingutils.h381COMMENT
LOWinclude/steam/isteamnetworkingutils.h401 int m_bPingMeasurementInProgress;COMMENT
LOWinclude/steam/steam_api_common.h21#ifdef API_GENCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h1//====== Copyright Valve Corporation, All rights reserved. ====================COMMENT
LOWinclude/steam/isteamnetworkingsockets.h21/// the peer is identified by their address with each send/recv call, seeCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h41/// easier to use, especially when porting existing UDP code.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h61 /// setting the options "immediately" after creation.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h81 /// casual eavesdropping. But note that without certificates (or a shared secretCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h101 ///COMMENT
LOWinclude/steam/isteamnetworkingsockets.h121 /// SteamNetworkingConfigValue_t for more about why this is preferable toCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h141 /// delay taking action, from the client's perspective it is the same as the networkCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h161 /// notification being posted to the queue and when it is received by the application.)COMMENT
LOWinclude/steam/isteamnetworkingsockets.h181 /// pszDebug is an optional human-readable diagnostic string that will be receivedCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h201 /// (Which is a member of SteamNetConnectionStatusChangedCallback_t -- but see WARNINGS below!!!!)COMMENT
LOWinclude/steam/isteamnetworkingsockets.h221 /// Fetch connection user data. Returns -1 if handle is invalidCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h241 /// the sizes of the chunks that are returned by the reads onCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h261 /// (See k_cbMaxSteamNetworkingSocketsMessageSizeSend)COMMENT
LOWinclude/steam/isteamnetworkingsockets.h281 /// until the callback is executed. And also note that your callback can beCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h301 ///COMMENT
LOWinclude/steam/isteamnetworkingsockets.h321 /// to earlier failure on the same connection will be released immediately.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h341 /// If the connection handle is invalid, -1 is returned.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h361 ///COMMENT
LOWinclude/steam/isteamnetworkingsockets.h381 /// 0 OK, your buffer was filled in and '\0'-terminatedCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h401 /// By default, internal buffers are used, completely bypassing the network, the chopping up ofCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h421 /// are always sent in the order they are queued, but messages from differentCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h441 /// other two lanes. Its weight value is irrelevant, since there are no otherCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h461 /// irrelevant in that case.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h481 /// - k_EResultInvalidParam - Invalid number of lanes, bad weights, or you tried to reduce the number of lanesCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h501 /// certificates. (This includes a certificate for us, as well as any CA certificatesCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h521 /// Returns the current value that would be returned from GetAuthenticationStatus.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h541 /// You should destroy the poll group when you are done using DestroyPollGroupCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h561 /// group at the time that the messages were received.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h581 /// other connections.)COMMENT
LOWinclude/steam/isteamnetworkingsockets.h601 /// Typically this is useful just to confirm that you have a ticket, before youCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h621 virtual HSteamNetConnection ConnectToHostedDedicatedServer( const SteamNetworkingIdentity &identityTarget, int nRemoteVCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h641 /// and opaque routing information that can be used by the relays to send trafficCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h661 /// - A non-localized diagnostic debug message will be placed in m_data that describesCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h681 virtual HSteamListenSocket CreateHostedDedicatedServerListenSocket( int nLocalVirtualPort, int nOptions, const SteamNetCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h701 /// - k_EResultNotLoggedOn: you are not logged in (yet)COMMENT
LOWinclude/steam/isteamnetworkingsockets.h721 //COMMENT
LOWinclude/steam/isteamnetworkingsockets.h741 /// ISteamNetworkingSignalingRecvContext::OnConnectRequest),COMMENT
LOWinclude/steam/isteamnetworkingsockets.h761 /// and then pass the payload to this function.COMMENT
LOWinclude/steam/isteamnetworkingsockets.h781 /// unusual or suspicious happening. Returns false if there was some problemCOMMENT
LOWinclude/steam/isteamnetworkingsockets.h801COMMENT
446 more matches not shown…
Decorative Section Separators12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMtests/stun_server.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py136# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py185# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py233# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py235# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py396# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py398# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py413# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/stun_server.py415# ---------------------------------------------------------------------------COMMENT
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMinclude/steam/isteamnetworkingsockets.h612 /// here. The reason is to make reconnection to a gameserver robust, even if the client computer losesCOMMENT
MEDIUMinclude/steam/steamnetworkingtypes.h448 /// read it back. Typically this is not a problem, as application protocols that utilizeCOMMENT
MEDIUMexamples/example_chat.cpp335 // Check for known commands. None of this example code is secure or robust.COMMENT
MEDIUMsrc/common/crypto_sha1_wpa.cpp34// Absolutely nothing, but the places where we need to use the referenceCOMMENT
MEDIUMsrc/public/minbase/minbase_annotations.h21// Essentially the 'Hint' is that the condition specified is assumed to be true atCOMMENT
MEDIUM…eamnetworkingsockets/steamnetworkingsockets_internal.h379/// mechanism for dealing with compatibility (e.g. using protobuf's robust mechanisms).COMMENT
MEDIUM…ckets/clientlib/steamnetworkingsockets_connections.cpp2780 // robust code, at very little cost.COMMENT
MEDIUM…kets/clientlib/steamnetworkingsockets_socketthread.cpp2386 // to reset the network stack, etc) we could make the code more robust by detecting this.COMMENT
Deep Nesting9 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/stun_server.py375CODE
LOWtests/stun_server.py417CODE
LOWtests/test_p2p.py274CODE
LOWtests/test_p2p.py296CODE
LOWtests/test_p2p.py356CODE
LOWtests/test_p2p.py387CODE
LOWtests/test_p2p.py721CODE
LOWtests/test_p2p.py101CODE
LOWexamples/trivial_signaling_server.py97CODE
Excessive Try-Catch Wrapping7 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/stun_server.py462 except Exception as e:CODE
MEDIUMtests/stun_server.py463 print("Error: %s" % e, file=sys.stderr, flush=True)CODE
LOWtests/test_p2p.py135 except Exception as ex:CODE
LOWtests/test_p2p.py187 except Exception:CODE
LOWexamples/trivial_signaling_server.py122 except Exception:CODE
LOWexamples/trivial_signaling_server.py145 except Exception:CODE
LOWexamples/trivial_signaling_server.py169 except Exception as ex:CODE
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/stun_server.py308def _handle_create_permission_request(sock, data, addr):CODE
LOWtests/make_test_certs.py24def run_cert_tool_with_ca_key( ca_key, args ):CODE
LOWexamples/trivial_signaling_server.py80class SignalingRequestHandler(socketserver.StreamRequestHandler):CODE
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_p2p.py15CODE
LOWtests/test_p2p.py16CODE
LOW.github/run-single-config.py4CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/build.sh3# CI build orchestration. This script may run multiple configurations, but eachCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinclude/steam/isteamnetworkingsockets.h811 /// NOTE: This function is not actually supported on Steam! It is includedCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_p2p.py120 # Check if this is the ready message, then set requested eventCOMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_p2p.py721CODE