Repository Analysis

AdnanHodzic/auto-cpufreq

Automatic CPU speed & power optimizer for Linux

13.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of AdnanHodzic/auto-cpufreq, a Python project with 7,739 GitHub stars. SynthScan v2.0 examined 7,844 lines of code across 30 source files, recording 91 pattern matches distributed across 8 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-29
Last Push
7.7K
Stars
Python
Language
7.8K
Lines of Code
30
Files
91
Pattern Hits
2026-08-29
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 11LOW 80

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

Excessive Try-Catch Wrapping29 hits · 39 pts
SeverityFileLineSnippetContext
LOWauto_cpufreq/power_helper.py171 except Exception:CODE
LOWauto_cpufreq/power_helper.py214 except Exception:CODE
MEDIUMauto_cpufreq/core.py139 print("Error fetching recent release!")CODE
MEDIUMauto_cpufreq/core.py146 print("Error Connecting to server!")CODE
MEDIUMauto_cpufreq/core.py157 print("Error Retrieving Current Version!")CODE
MEDIUMauto_cpufreq/core.py180def get_literal_version(package_name):CODE
LOWauto_cpufreq/core.py125 except Exception as e: print(repr(e))CODE
LOWauto_cpufreq/core.py1277 except Exception as e: print(repr(e))CODE
LOWauto_cpufreq/bin/auto_cpufreq.py130 except Exception:CODE
LOWauto_cpufreq/gui/app.py897 except Exception as error:CODE
LOWauto_cpufreq/gui/app.py922 except Exception as error:CODE
MEDIUMauto_cpufreq/gui/app.py793def _run_update(self):CODE
LOWauto_cpufreq/gui/objects.py37 except Exception as e:CODE
LOWauto_cpufreq/gui/objects.py61 except Exception:CODE
LOWauto_cpufreq/gui/objects.py424 except Exception:CODE
LOWauto_cpufreq/gui/objects.py482 except Exception:CODE
LOWauto_cpufreq/gui/objects.py579 except Exception:CODE
LOWauto_cpufreq/gui/objects.py695 except Exception as e:CODE
LOWauto_cpufreq/gui/objects.py929 except Exception as error:CODE
LOWauto_cpufreq/gui/objects.py1105 except Exception as e:CODE
MEDIUMauto_cpufreq/gui/objects.py65def worker():CODE
MEDIUMauto_cpufreq/gui/objects.py456def refresh(self):CODE
MEDIUMauto_cpufreq/gui/objects.py530def refresh(self):CODE
MEDIUMauto_cpufreq/gui/objects.py912def _refresh(self):CODE
LOWauto_cpufreq/battery_scripts/battery.py47 except Exception as e:CODE
LOWauto_cpufreq/battery_scripts/shared.py168 except Exception as e:CODE
LOWauto_cpufreq/battery_scripts/shared.py177 except Exception as e:CODE
LOWauto_cpufreq/modules/system_monitor.py116 except Exception as exc:CODE
MEDIUMauto_cpufreq/modules/system_monitor.py99def _collect_report(self):CODE
Hyper-Verbose Identifiers23 hits · 23 pts
SeverityFileLineSnippetContext
LOWauto_cpufreq/power_helper.py75def gnome_power_detect_install():CODE
LOWauto_cpufreq/power_helper.py163def set_bluetooth_auto_enable(value: bool) -> bool:CODE
LOWauto_cpufreq/power_helper.py258def gnome_power_rm_reminder_snap():CODE
LOWauto_cpufreq/power_helper.py271def disable_power_profiles_daemon():CODE
LOWauto_cpufreq/core.py249def get_power_supply_ignore_list():CODE
LOWauto_cpufreq/core.py335def deploy_daemon_performance():CODE
LOWauto_cpufreq/core.py488def get_frequency_request_state(freq_type, target):CODE
LOWauto_cpufreq/core.py521def format_frequency_effective(values):CODE
LOWauto_cpufreq/core.py670 def is_platform_profile_enforced():CODE
LOWauto_cpufreq/core.py744def set_energy_perf_preference(epp):CODE
LOWauto_cpufreq/core.py783def get_configured_hwp_dynamic_boost(conf, profile):CODE
LOWauto_cpufreq/core.py798def get_hwp_dynamic_boost_target(conf, profile):CODE
LOWauto_cpufreq/gui/app.py109def _configuration_label_text():CODE
LOWauto_cpufreq/gui/app.py633 def _release_power_state_apply(self, key):CODE
LOWauto_cpufreq/gui/app.py653 def _add_refresh_interval_menu(self):CODE
LOWauto_cpufreq/gui/app.py695 def _on_refresh_interval_selected(CODE
LOWauto_cpufreq/gui/objects.py41def get_bluetooth_boot_status():CODE
LOWauto_cpufreq/gui/objects.py83def _privileged_command_error(result, error):CODE
LOWauto_cpufreq/battery_scripts/ideapad_laptop.py14 def _find_conservation_mode_path(self) -> str | None:CODE
LOWauto_cpufreq/battery_scripts/ideapad_laptop.py66 def _parse_ideapad_conservation_mode(self, param: None | str) -> None | bool:CODE
LOWauto_cpufreq/battery_scripts/ideapad_laptop.py77 def apply_threshold_settings_to_bat(self, bat: str, config: dict[str, Any]):CODE
LOWauto_cpufreq/battery_scripts/shared.py131 def _parse_ideapad_conservation_mode(self, param: None | str) -> None | bool:CODE
LOWauto_cpufreq/battery_scripts/shared.py209 def apply_threshold_settings_to_bat(self, bat: str, config: dict[str, Any]):CODE
Deep Nesting19 hits · 18 pts
SeverityFileLineSnippetContext
LOWauto_cpufreq/power_helper.py163CODE
LOWauto_cpufreq/power_helper.py294CODE
LOWauto_cpufreq/power_helper.py344CODE
LOWauto_cpufreq/core.py202CODE
LOWauto_cpufreq/core.py534CODE
LOWauto_cpufreq/core.py856CODE
LOWauto_cpufreq/core.py960CODE
LOWauto_cpufreq/core.py1077CODE
LOWauto_cpufreq/core.py1192CODE
LOWauto_cpufreq/bin/auto_cpufreq.py39CODE
LOWauto_cpufreq/gui/app.py813CODE
LOWauto_cpufreq/gui/objects.py41CODE
LOWauto_cpufreq/battery_scripts/battery.py13CODE
LOWauto_cpufreq/battery_scripts/battery.py56CODE
LOWauto_cpufreq/battery_scripts/ideapad_laptop.py14CODE
LOWauto_cpufreq/modules/system_monitor.py426CODE
LOWauto_cpufreq/modules/system_info.py219CODE
LOWauto_cpufreq/modules/system_info.py530CODE
LOWauto_cpufreq/modules/system_info.py576CODE
Unused Imports9 hits · 9 pts
SeverityFileLineSnippetContext
LOWauto_cpufreq/power_helper.py10CODE
LOWauto_cpufreq/core.py17CODE
LOWauto_cpufreq/core.py20CODE
LOWauto_cpufreq/bin/auto_cpufreq.py12CODE
LOWauto_cpufreq/bin/auto_cpufreq.py14CODE
LOWauto_cpufreq/bin/auto_cpufreq.py19CODE
LOWauto_cpufreq/gui/objects.py5CODE
LOWauto_cpufreq/gui/objects.py15CODE
LOWauto_cpufreq/gui/objects.py15CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWREADME.md361Configured to run in full performance mode when connected to a power source (charger) and never drop below 2 GHz. When rCOMMENT
LOWREADME.md381# available EPB options include a numeric value between 0-15COMMENT
LOWREADME.md401# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000COMMENT
LOWREADME.md421# EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_prefeCOMMENT
LOWREADME.md441# https://www.kernel.org/doc/html/latest/userspace-api/sysfs-platform_profile.htmlCOMMENT
LOWscripts/snapdaemon.sh1#!/usr/bin/env bashCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWauto_cpufreq/config/config.py33 # Check if the config file path points to a valid fileCOMMENT
LOWauto_cpufreq/modules/system_info.py578 # Check if user has specified a custom battery device in configCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMauto_cpufreq/modules/system_monitor.py40 # Create a columns widget with a vertical line (using box drawing character)COMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWauto_cpufreq/config/config.py52 def set_path(self, path: str) -> None:CODE
LOWauto_cpufreq/config/config.py62 def update_config(self) -> None:CODE