Repository Analysis

Ralim/IronOS

Open Source Soldering Iron firmware

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Ralim/IronOS, a C project with 8,281 GitHub stars. SynthScan v2.0 examined 505,915 lines of code across 1016 source files, recording 4534 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 6.5 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).

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-07-07
Last Push
8.3K
Stars
C
Language
505.9K
Lines of Code
1.0K
Files
4.5K
Pattern Hits
2026-07-14
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

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 0HIGH 0MEDIUM 20LOW 4514

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 4534 distinct pattern matches across 10 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 Block4425 hits · 3154 pts
SeverityFileLineSnippetContext
LOWsource/Core/Inc/main.hpp41#endifCOMMENT
LOWsource/Core/Inc/settingsGUI.hpp1/*COMMENT
LOWsource/Core/Inc/Types.h1#ifndef TYPES_H_COMMENT
LOWsource/Core/Inc/power.hpp1/*COMMENT
LOWsource/Core/Inc/Translation_multi.h1#ifndef TRANSLATION_MULTI_H_COMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h161#define MAC_ADDR0 2COMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h181#define PHY_CONFIG_DELAY ((uint32_t)0x00000FFF)COMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h221#ifdef HAL_GPIO_MODULE_ENABLEDCOMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h241#ifdef HAL_CORTEX_MODULE_ENABLEDCOMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h261#ifdef HAL_SRAM_MODULE_ENABLEDCOMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h281#ifdef HAL_PWR_MODULE_ENABLEDCOMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h301#ifdef HAL_NAND_MODULE_ENABLEDCOMMENT
LOWsource/Core/Inc/stm32f1xx_hal_conf.h321#ifdef HAL_IRDA_MODULE_ENABLEDCOMMENT
LOWsource/Core/Drivers/accelerometers_common.h1#ifndef CORE_DRIVERS_ACCELEROMTERS_COMMON_H_COMMENT
LOWsource/Core/Drivers/LIS2DH12_defines.hpp1/*COMMENT
LOWsource/Core/Drivers/LIS2DH12_defines.hpp21#define LIS_INT1_CFG 0xB0 | 0x80COMMENT
LOWsource/Core/Drivers/BMA223_defines.h1/*COMMENT
LOWsource/Core/Drivers/BMA223_defines.h21#define BMA223_INT_STATUS_1 0x0ACOMMENT
LOWsource/Core/Drivers/BMA223_defines.h41#define BMA223_INT_1 0x23COMMENT
LOWsource/Core/Drivers/BMA223_defines.h61#define BMA223_OFC_OFFSET_Y 0x39COMMENT
LOWsource/Core/Drivers/FS2711.cpp1#include "configuration.h"COMMENT
LOWsource/Core/Drivers/WS2812.h1/*COMMENT
LOWsource/Core/Drivers/FS2711_defines.h1#ifndef _FS2711_DEFINE_HPP_COMMENT
LOWsource/Core/Drivers/FS2711_defines.h21#define FS2711_PROTOCOL_QC2A 4COMMENT
LOWsource/Core/Drivers/FS2711_defines.h41#define FS2711_REG_MODE_SET 0xA0 // Mode setCOMMENT
LOWsource/Core/Drivers/FS2711_defines.h61#define FS2711_REG_PROTOCOL_EXISTS 0xF8COMMENT
LOWsource/Core/Drivers/MMA8652FC_defines.h21COMMENT
LOWsource/Core/Drivers/MMA8652FC_defines.h41#define TRANSIENT_CFG_REG 0x1D // TRANSIENT_CFG Transient Configuration RegisterCOMMENT
LOWsource/Core/Drivers/MMA8652FC_defines.h61#define CTRL_REG5 0x2E // CTRL_REG5 Interrupt Configuration RegisterCOMMENT
LOWsource/Core/Drivers/MMA8652FC_defines.h81#define Y_LSB_REG 0X04COMMENT
LOWsource/Core/Drivers/MMA8652FC_defines.h101#define FHZ400 0x1 // 400hzCOMMENT
LOWsource/Core/Drivers/MMA8652FC_defines.h121#define INT_EN_FF_MT 1 << 2 // Freefall/Motion Interrupt EnableCOMMENT
LOWsource/Core/Drivers/OLED.hpp21#endifCOMMENT
LOWsource/Core/Drivers/OLED.hpp41COMMENT
LOWsource/Core/Drivers/HUB238.hpp1#pragma onceCOMMENT
LOWsource/Core/Drivers/HUB238.hpp21#define HUB238_REG_GO_COMMAND 0x09COMMENT
LOWsource/Core/Drivers/Si7210_defines.h21#define SI7210_CTRL1 0xC6UCOMMENT
LOWsource/Core/Drivers/Si7210_defines.h41#define MEAS_MASK 0x80UCOMMENT
LOWsource/Core/Drivers/Si7210_defines.h61#define DSP_SIGM_DATA_FLAG 0x80UCOMMENT
LOWsource/Core/Drivers/Si7210_defines.h81#define DF_BURSTSIZE_2 0x1U << 5COMMENT
LOWsource/Core/Drivers/MSA301_defines.h1/*COMMENT
LOWsource/Core/Drivers/MSA301_defines.h21#define MSA301_REG_CLICKSTATUS 0x0B ///< Register address for click/doubleclick statusCOMMENT
LOWsource/Core/Drivers/Font.h501 COMMENT
LOWsource/Core/Drivers/Font.h581 #endifCOMMENT
LOWsource/Core/Drivers/USBPD.cpp1#include "USBPD.h"COMMENT
LOWsource/Core/Drivers/SC7A20_defines.h1/*COMMENT
LOWsource/Core/Drivers/SC7A20_defines.h21#define SC7A20_CTRL_REG5 0x24COMMENT
LOWsource/Core/Drivers/SC7A20_defines.h41#define SC7A20_INT2_DURATION 0x37COMMENT
LOWsource/Core/BSP/BSP_QC.h21// Set the DP pin to 3.3VCOMMENT
LOWsource/Core/BSP/BSP.h1#include "BSP_Flash.h"COMMENT
LOWsource/Core/BSP/BSP.h101// preStartChecks are run until they return 0COMMENT
LOWsource/Core/BSP/Pinecil/BSP.cpp1// BSP mapping functionsCOMMENT
LOWsource/Core/BSP/Pinecil/BSP.cpp21COMMENT
LOWsource/Core/BSP/Pinecil/Pins.h1/*COMMENT
LOWsource/Core/BSP/Pinecil/Pins.h21#define TIP_TEMP_ADC1_CHANNEL ADC_CHANNEL_1COMMENT
LOWsource/Core/BSP/Pinecil/Pins.h41#define QC_DP_LOW_Pin BIT(7)COMMENT
LOWsource/Core/BSP/Pinecil/configuration.h81#define POWER_PULSE_MAX 100 // x10 max wattsCOMMENT
LOWsource/Core/BSP/Pinecil/configuration.h101 * Detailed idle screen (off for first time users)COMMENT
LOWsource/Core/BSP/Pinecil/configuration.h121#define ADC_MAX_READING (4096 * 8) // Maximum reading of the adcCOMMENT
LOWsource/Core/BSP/Pinecil/configuration.h141#define MAX_TEMP_C 450 // Max soldering temp selectable °CCOMMENT
4365 more matches not shown…
Excessive Try-Catch Wrapping30 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMsource/dfuse-pack.py255 print("Error: IntelHex python module could not be found")CODE
LOWsource/Settings/test_config_parser.py61 except Exception as e:CODE
LOWsource/Settings/test_config_parser.py84 except Exception as e:CODE
MEDIUMsource/Settings/test_config_parser.py85 print(f"Error parsing {model}: {e}", file=sys.stderr)CODE
LOWsource/Settings/config_parser.py264 except Exception as e:CODE
MEDIUMsource/Settings/config_parser.py265 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMsource/Settings/test_generate_settings.py24 print(f"Error importing modules: {e}")CODE
LOWsource/Settings/generate_settings.py100 except Exception as e:CODE
MEDIUMsource/Settings/generate_settings.py101 print(f"Error loading settings definitions: {e}")CODE
LOWsource/Settings/generate_settings.py111 except Exception as nested_e:CODE
LOWsource/Settings/generate_settings.py122 except Exception as e:CODE
MEDIUMsource/Settings/generate_settings.py123 print(f"Error reading template file: {e}")CODE
LOWsource/Settings/generate_settings.py136 except Exception as e:CODE
MEDIUMsource/Settings/generate_settings.py137 print(f"Error writing output file: {e}")CODE
LOWsource/Settings/lib/settings_cli.py103 except Exception as e:CODE
MEDIUMsource/Settings/lib/settings_cli.py104 print(f"Error loading BSP configuration: {e}")CODE
MEDIUMsource/Settings/lib/settings_cli.py134 print(f"Error: Settings definition file '{args.definitions}' does not exist.")CODE
LOWsource/Settings/lib/settings_cli.py144 except Exception as e:CODE
MEDIUMsource/Settings/lib/settings_cli.py145 print(f"Error loading settings definitions: {e}")CODE
LOWsource/Settings/lib/settings_cli.py172 except Exception as e:CODE
LOWsource/Settings/lib/settings_parser.py107 except Exception as e:CODE
MEDIUMsource/Settings/lib/settings_util.py33 print(f"Error: Model code '{model_code}' is not recognized.")CODE
LOWsource/Settings/lib/settings_util.py88 except Exception as e:CODE
MEDIUMsource/Settings/lib/settings_util.py89 print(f"Error evaluating expression '{expression}' -> '{result_expr}': {e}")CODE
LOWsource/Settings/lib/settings_model.py165 except Exception as e:CODE
MEDIUMsource/Settings/lib/settings_model.py166 print(f"Error loading settings from file: {e}")CODE
LOWsource/Settings/lib/settings_model.py224 except Exception as e:CODE
MEDIUMsource/Settings/lib/settings_model.py225 print(f"Error saving settings to file: {e}")CODE
LOWscripts/ci/generate_memory_usage_report.py243 except Exception:CODE
LOWscripts/ci/generate_memory_usage_report.py330 except Exception as exc: # pragma: no cover - CI utility scriptCODE
Unused Imports24 hits · 24 pts
SeverityFileLineSnippetContext
LOWsource/Settings/config_parser.py6CODE
LOWsource/Settings/generate_settings.py13CODE
LOWsource/Settings/lib/__init__.py13CODE
LOWsource/Settings/lib/__init__.py13CODE
LOWsource/Settings/lib/__init__.py14CODE
LOWsource/Settings/lib/__init__.py14CODE
LOWsource/Settings/lib/__init__.py15CODE
LOWsource/Settings/lib/__init__.py15CODE
LOWsource/Settings/lib/__init__.py16CODE
LOWsource/Settings/lib/__init__.py17CODE
LOWsource/Settings/lib/__init__.py17CODE
LOWsource/Settings/lib/__init__.py17CODE
LOWsource/Settings/lib/settings_parser.py6CODE
LOWsource/Settings/lib/settings_parser.py7CODE
LOWsource/Settings/lib/settings_model.py6CODE
LOWsource/Settings/lib/settings_model.py9CODE
LOWsource/Settings/lib/settings_model.py10CODE
LOWsource/Settings/lib/settings_model.py11CODE
LOWsource/Settings/lib/settings_model.py11CODE
LOWsource/Settings/lib/settings_model.py11CODE
LOWsource/Settings/lib/settings_model.py11CODE
LOWsource/Settings/lib/settings_model.py15CODE
LOWscripts/ci/generate_memory_usage_report.py12CODE
LOWTranslations/migrate.py4CODE
Hyper-Verbose Identifiers22 hits · 22 pts
SeverityFileLineSnippetContext
LOWsource/Settings/config_parser.py159 def _get_model_specific_blocks(self, content: str) -> List[tuple]:CODE
LOWsource/Settings/test_edit_settings.py120 def test_load_from_nonexistent_binary(self):CODE
LOWsource/Settings/test_edit_settings.py154 def test_save_to_binary_error_handling(self):CODE
LOWsource/Settings/test_generate_settings.py62 def test_load_yaml_and_convert(self):CODE
LOWsource/Settings/lib/settings_cli.py128def run_editing_settings_file_cli():CODE
LOWscripts/ci/generate_memory_usage_report.py233def load_language_local_names(translations_dir: pathlib.Path) -> Dict[str, str]:CODE
LOWTranslations/brieflz.py48def _fn_blz_workmem_size_level():CODE
LOWTranslations/make_translation_test.py8 def test_get_bytes_from_font_index(self):CODE
LOWTranslations/make_translation_test.py35 def test_no_language_id_collisions(self):CODE
LOWTranslations/make_translation.py92def validate_langcode_matches_content(filename: str, content: dict) -> None:CODE
LOWTranslations/make_translation.py228def description_uses_small_font(msg: str) -> bool:CODE
LOWTranslations/make_translation.py367def convert_letter_counts_to_ranked_symbols_with_forced(CODE
LOWTranslations/make_translation.py543def get_bytes_from_font_index(index: int) -> bytes:CODE
LOWTranslations/make_translation.py726def build_symbol_conversion_map(sym_list: List[str]) -> Dict[str, bytes]:CODE
LOWTranslations/make_translation.py758def make_font_table_named_cpp(CODE
LOWTranslations/make_translation.py1173def get_translation_common_text(CODE
LOWTranslations/make_translation.py1239def get_translation_strings_and_indices_text(CODE
LOWTranslations/make_translation.py1479def get_translation_sanity_checks_text(defs: dict) -> str:CODE
LOWTranslations/font_tables.py106def get_font_map_latin_extended() -> Dict[str, bytes]:CODE
LOWTranslations/font_tables.py498def get_small_font_map_ascii_basic() -> Dict[str, bytes]:CODE
LOWTranslations/font_tables.py600def get_small_font_map_latin_extended() -> Dict[str, bytes]:CODE
LOWTranslations/font_tables.py881def get_small_font_map_cyrillic() -> Dict[str, bytes]:CODE
Redundant / Tautological Comments10 hits · 16 pts
SeverityFileLineSnippetContext
LOWsource/Settings/test_generate_settings.py105 # Check if the script executed successfullyCOMMENT
LOWsource/Settings/generate_settings.py53 # Check if settings definitions file existsCOMMENT
LOWsource/Settings/lib/settings_cli.py132 # Check if settings definitions file existsCOMMENT
LOWsource/Settings/lib/settings_cli.py186 # Check if output is hex and we need intelhex moduleCOMMENT
LOWsource/Settings/lib/settings_parser.py113 # Check if any values are still unresolvedCOMMENT
LOWsource/Settings/lib/settings_model.py92 # Read the fileCOMMENT
LOWsource/Settings/lib/settings_model.py115 # Check if file size is correctCOMMENT
LOWsource/Settings/lib/settings_model.py263 # Check if value is in rangeCOMMENT
LOWsource/Settings/lib/settings_model.py291 # Check if value respects the increment stepCOMMENT
LOWsource/Settings/lib/settings_model.py293 # Check if value is min_int + n*inc_intCOMMENT
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMsource/Settings/test_edit_settings.py39 # Create a temporary YAML file for testingCOMMENT
MEDIUMsource/Settings/test_edit_settings.py65 # Create a temporary binary file for testingCOMMENT
MEDIUMsource/Settings/test_generate_settings.py41 # Create a simple test YAML fileCOMMENT
MEDIUMsource/Settings/lib/settings_parser.py25 # Create a dictionary of values to use for resolving expressionsCOMMENT
MEDIUMsource/Settings/lib/settings_model.py209 # Create a new Intel HEX objectCOMMENT
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWsource/metadata.py50CODE
LOWsource/Settings/test_config_parser.py9CODE
LOWsource/Settings/config_parser.py132CODE
LOWsource/Settings/config_parser.py181CODE
LOWsource/Settings/lib/settings_parser.py15CODE
LOWsource/Settings/lib/settings_model.py69CODE
LOWsource/Settings/lib/settings_model.py228CODE
LOWTranslations/make_translation.py419CODE
LOWTranslations/make_translation.py492CODE
LOWTranslations/make_translation.py1490CODE
LOWTranslations/make_translation.py1547CODE
LOWTranslations/font_tables.py1007CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…omponents/ble/ble_stack/common/tinycrypt/source/hmac.c58 const uint8_t dummy_key[TC_SHA256_BLOCK_SIZE];CODE
LOW…omponents/ble/ble_stack/common/tinycrypt/source/hmac.c70 (void)tc_sha256_update(&dummy_state.hash_state, dummy_key, key_size);CODE
LOWTranslations/brieflz_test.py7 b"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "CODE
LOWTranslations/brieflz_test.py7 b"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsource/Core/brieflz/brieflz_leparse.h46// Essentially, this improves the worst case for the parsing at a small costCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsource/Settings/lib/__init__.py23__all__ = [CODE