Repository Analysis

1technophile/OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.

4.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of 1technophile/OpenMQTTGateway, a C++ project with 4,073 GitHub stars. SynthScan v2.0 examined 48,409 lines of code across 209 source files, recording 185 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 4.4 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).

4.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-08-09
Last Push
4.1K
Stars
C++
Language
48.4K
Lines of Code
209
Files
185
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 6LOW 179

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 185 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.

Over-Commented Block155 hits · 148 pts
SeverityFileLineSnippetContext
LOWexamples/LoraWaterCounter/src/main.cpp1#include <LoRa.h>COMMENT
LOWexamples/LoraTemperature/src/main.cpp1#include <LoRa.h>COMMENT
LOWlib/LEDManager/LEDManager.h21*/COMMENT
LOWmain/config_BME280.h41extern void MeasureTempHumAndPressure();COMMENT
LOWmain/config_BME280.h61#endifCOMMENT
LOWmain/config_BME280.h81# define BME280PressureOversample 1COMMENT
LOWmain/gatewayIR.cpp41IRrecv irrecv(IR_RECEIVER_GPIO);COMMENT
LOWmain/gatewayIR.cpp61# ifndef DISH_BITSCOMMENT
LOWmain/config_2G.h41COMMENT
LOWmain/config_GFSunInverter.h41// #define GFSUNINVERTER_DEVEL 1COMMENT
LOWmain/config_AHTx0.h41extern void setupZsensorAHTx0();COMMENT
LOWmain/actuatorFASTLED.cpp161 }COMMENT
LOWmain/actuatorFASTLED.cpp181//COMMENT
LOWmain/config_BT.h41/*-----------BT TOPICS & COMPILATION PARAMETERS-----------*/COMMENT
LOWmain/config_BT.h61#endifCOMMENT
LOWmain/config_BT.h81# define BLEScanWindow 30 // How long to scan during the interval; in milliseconds.COMMENT
LOWmain/config_BT.h101COMMENT
LOWmain/config_BT.h121# define HassPresence false //true if we publish into Home Assistant presence topicCOMMENT
LOWmain/config_BT.h141COMMENT
LOWmain/config_SHTC3.h41/*-------------------PIN DEFINITIONS----------------------*/COMMENT
LOWmain/config_M5.h21 GNU General Public License for more details.COMMENT
LOWmain/config_M5.h41COMMENT
LOWmain/config_M5.h61#endifCOMMENT
LOWmain/config_DHT.h41# define DHT_SENSOR_TYPE DHT22 //uncomment for DHT22 Sensor (default for backwards compatibility)COMMENT
LOWmain/config_PWM.h41#ifndef PWM_CHANNEL_NAMESCOMMENT
LOWmain/config_ONOFF.h41#define ONKey "setON"COMMENT
LOWmain/config_ONOFF.h61//# define MAX_CURRENT_ACTUATOR 15.0 // Current that will trigger the relay to go OFFCOMMENT
LOWmain/config_GPIOKeyCode.h41# ifndef GPIOKeyCode_LATCH_GPIOCOMMENT
LOWmain/config_SSD1306.h41COMMENT
LOWmain/config_SSD1306.h61# define DISPLAY_PAGE_INTERVAL 3 // Number of seconds between json message displaysCOMMENT
LOWmain/config_SSD1306.h81COMMENT
LOWmain/config_SSD1306.h101#define subjectMQTTtoSSD1306set "/commands/MQTTtoSSD1306/config"COMMENT
LOWmain/gatewaySERIAL.cpp41const TickType_t semaphoreTimeout = pdMS_TO_TICKS(1000); // 1 second timeoutCOMMENT
LOWmain/config_DS1820.h41#endifCOMMENT
LOWmain/config_FASTLED.h41// How many leds in your strip?COMMENT
LOWmain/config_FASTLED.h61//#define FASTLED_TYPE SM16716, RGB>(leds, NUM_LEDS);COMMENT
LOWmain/config_FASTLED.h81#ifdef ESP8266COMMENT
LOWmain/config_WebUI.h41#ifndef DISPLAY_METRICCOMMENT
LOWmain/config_WebUI.h181#endifCOMMENT
LOWmain/gatewayBT.cpp41# include <NimBLEUtils.h>COMMENT
LOWmain/config_ADC.h41# define ThresholdReadingADC 50 // following the comparison between the previous value and the current one +- the thresCOMMENT
LOWmain/TheengsCommon.h1#pragma onceCOMMENT
LOWmain/config_WebContent.h41#endifCOMMENT
LOWmain/config_HCSR501.h41#ifndef TimeBeforeStartHCSR501COMMENT
LOWmain/commonRF.cpp21 You should have received a copy of the GNU General Public LicenseCOMMENT
LOWmain/config_C37_YL83_HMRD.h41/*-------------------PIN DEFINITIONS----------------------*/COMMENT
LOWmain/User_config.h61#endifCOMMENT
LOWmain/User_config.h81# define NET_DNS "192.168.1.1"COMMENT
LOWmain/User_config.h101# ifndef ETH_PHY_MDIOCOMMENT
LOWmain/User_config.h121#endifCOMMENT
LOWmain/User_config.h141// environments where an unexpected reboot is undesirable (e.g. a smart plug that would lose its relay state).COMMENT
LOWmain/User_config.h161# if defined(ESP32)COMMENT
LOWmain/User_config.h181#ifndef MQTT_PASSCOMMENT
LOWmain/User_config.h201// Uncomment to use a device running TheengsGateway to decode BLE data. (https://github.com/theengs/gateway)COMMENT
LOWmain/User_config.h221# define AWS_IOT falseCOMMENT
LOWmain/User_config.h241//# define MQTT_HTTPS_FW_UPDATE //uncomment to enable updating via MQTT message.COMMENT
LOWmain/User_config.h261# define RELEASE_LINK "https://ota.openmqttgateway.com/binaries/"COMMENT
LOWmain/User_config.h321# endifCOMMENT
LOWmain/User_config.h341#endifCOMMENT
LOWmain/User_config.h361//#define ZsensorADC "ADC" //ESP8266, Arduino, ESP32COMMENT
95 more matches not shown…
Decorative Section Separators4 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMscripts/ci_00_config.sh15# ============================================================================COMMENT
MEDIUMscripts/ci_00_config.sh17# ============================================================================COMMENT
MEDIUMscripts/ci_00_config.sh24# ============================================================================COMMENT
MEDIUMscripts/ci_00_config.sh26# ============================================================================COMMENT
Verbosity Indicators7 hits · 14 pts
SeverityFileLineSnippetContext
LOWscripts/ci_build.sh292 # Step 1: Verify build toolsCOMMENT
LOWscripts/ci_build.sh302 # Step 2: Set versionCOMMENT
LOWscripts/ci_build.sh305 # Step 3: Build firmwareCOMMENT
LOWscripts/ci_build.sh316 # Step 4: Prepare artifactsCOMMENT
LOWscripts/ci.sh171 # Step 1: Quality AssuranceCOMMENT
LOWscripts/ci.sh180 # Step 2: Build FirmwareCOMMENT
LOWscripts/ci.sh239 # Step 3: Build SiteCOMMENT
Structural Annotation Overuse7 hits · 14 pts
SeverityFileLineSnippetContext
LOWscripts/ci_build.sh292 # Step 1: Verify build toolsCOMMENT
LOWscripts/ci_build.sh302 # Step 2: Set versionCOMMENT
LOWscripts/ci_build.sh305 # Step 3: Build firmwareCOMMENT
LOWscripts/ci_build.sh316 # Step 4: Prepare artifactsCOMMENT
LOWscripts/ci.sh171 # Step 1: Quality AssuranceCOMMENT
LOWscripts/ci.sh180 # Step 2: Build FirmwareCOMMENT
LOWscripts/ci.sh239 # Step 3: Build SiteCOMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/ci_build_firmware.sh37 # Check if environment exists in platformio.ini or environments.iniCOMMENT
LOWscripts/ci_prepare_artifacts.sh261 # Check if build directory existsCOMMENT
LOWscripts/ci_qa.sh98 # Check if file needs formatting and capture diffCOMMENT
LOWscripts/ci_qa.sh210 # Check if shellcheck is installedCOMMENT
LOWscripts/ci_build.sh190 # Check if next argument is a version tag or another optionCOMMENT
LOWscripts/ci_build.sh327 # Check if site folder exists and copy built files to avoid rebuilding the siteCOMMENT
LOWscripts/ci.sh275 # Check if no arguments providedCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/ci_site.sh123 ## Create a meta.json file on config folderCOMMENT
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/replace_lib.py25 except Exception as e:CODE
MEDIUMscripts/replace_lib.py26 print(f"Error occurred: {e}")CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmain/User_config.h46 * If you do so, please don't forget to set these variables before compilingCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocsgen/boards-info.js160function collectBoardsInformations(sections, { includeTests = false } = {}) {CODE