Automatic CPU speed & power optimizer for Linux
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | auto_cpufreq/power_helper.py | 171 | except Exception: | CODE |
| LOW | auto_cpufreq/power_helper.py | 214 | except Exception: | CODE |
| MEDIUM | auto_cpufreq/core.py | 139 | print("Error fetching recent release!") | CODE |
| MEDIUM | auto_cpufreq/core.py | 146 | print("Error Connecting to server!") | CODE |
| MEDIUM | auto_cpufreq/core.py | 157 | print("Error Retrieving Current Version!") | CODE |
| MEDIUM | auto_cpufreq/core.py | 180 | def get_literal_version(package_name): | CODE |
| LOW | auto_cpufreq/core.py | 125 | except Exception as e: print(repr(e)) | CODE |
| LOW | auto_cpufreq/core.py | 1277 | except Exception as e: print(repr(e)) | CODE |
| LOW | auto_cpufreq/bin/auto_cpufreq.py | 130 | except Exception: | CODE |
| LOW | auto_cpufreq/gui/app.py | 897 | except Exception as error: | CODE |
| LOW | auto_cpufreq/gui/app.py | 922 | except Exception as error: | CODE |
| MEDIUM | auto_cpufreq/gui/app.py | 793 | def _run_update(self): | CODE |
| LOW | auto_cpufreq/gui/objects.py | 37 | except Exception as e: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 61 | except Exception: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 424 | except Exception: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 482 | except Exception: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 579 | except Exception: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 695 | except Exception as e: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 929 | except Exception as error: | CODE |
| LOW | auto_cpufreq/gui/objects.py | 1105 | except Exception as e: | CODE |
| MEDIUM | auto_cpufreq/gui/objects.py | 65 | def worker(): | CODE |
| MEDIUM | auto_cpufreq/gui/objects.py | 456 | def refresh(self): | CODE |
| MEDIUM | auto_cpufreq/gui/objects.py | 530 | def refresh(self): | CODE |
| MEDIUM | auto_cpufreq/gui/objects.py | 912 | def _refresh(self): | CODE |
| LOW | auto_cpufreq/battery_scripts/battery.py | 47 | except Exception as e: | CODE |
| LOW | auto_cpufreq/battery_scripts/shared.py | 168 | except Exception as e: | CODE |
| LOW | auto_cpufreq/battery_scripts/shared.py | 177 | except Exception as e: | CODE |
| LOW | auto_cpufreq/modules/system_monitor.py | 116 | except Exception as exc: | CODE |
| MEDIUM | auto_cpufreq/modules/system_monitor.py | 99 | def _collect_report(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | auto_cpufreq/power_helper.py | 75 | def gnome_power_detect_install(): | CODE |
| LOW | auto_cpufreq/power_helper.py | 163 | def set_bluetooth_auto_enable(value: bool) -> bool: | CODE |
| LOW | auto_cpufreq/power_helper.py | 258 | def gnome_power_rm_reminder_snap(): | CODE |
| LOW | auto_cpufreq/power_helper.py | 271 | def disable_power_profiles_daemon(): | CODE |
| LOW | auto_cpufreq/core.py | 249 | def get_power_supply_ignore_list(): | CODE |
| LOW | auto_cpufreq/core.py | 335 | def deploy_daemon_performance(): | CODE |
| LOW | auto_cpufreq/core.py | 488 | def get_frequency_request_state(freq_type, target): | CODE |
| LOW | auto_cpufreq/core.py | 521 | def format_frequency_effective(values): | CODE |
| LOW | auto_cpufreq/core.py | 670 | def is_platform_profile_enforced(): | CODE |
| LOW | auto_cpufreq/core.py | 744 | def set_energy_perf_preference(epp): | CODE |
| LOW | auto_cpufreq/core.py | 783 | def get_configured_hwp_dynamic_boost(conf, profile): | CODE |
| LOW | auto_cpufreq/core.py | 798 | def get_hwp_dynamic_boost_target(conf, profile): | CODE |
| LOW | auto_cpufreq/gui/app.py | 109 | def _configuration_label_text(): | CODE |
| LOW | auto_cpufreq/gui/app.py | 633 | def _release_power_state_apply(self, key): | CODE |
| LOW | auto_cpufreq/gui/app.py | 653 | def _add_refresh_interval_menu(self): | CODE |
| LOW | auto_cpufreq/gui/app.py | 695 | def _on_refresh_interval_selected( | CODE |
| LOW | auto_cpufreq/gui/objects.py | 41 | def get_bluetooth_boot_status(): | CODE |
| LOW | auto_cpufreq/gui/objects.py | 83 | def _privileged_command_error(result, error): | CODE |
| LOW | auto_cpufreq/battery_scripts/ideapad_laptop.py | 14 | def _find_conservation_mode_path(self) -> str | None: | CODE |
| LOW | auto_cpufreq/battery_scripts/ideapad_laptop.py | 66 | def _parse_ideapad_conservation_mode(self, param: None | str) -> None | bool: | CODE |
| LOW | auto_cpufreq/battery_scripts/ideapad_laptop.py | 77 | def apply_threshold_settings_to_bat(self, bat: str, config: dict[str, Any]): | CODE |
| LOW | auto_cpufreq/battery_scripts/shared.py | 131 | def _parse_ideapad_conservation_mode(self, param: None | str) -> None | bool: | CODE |
| LOW | auto_cpufreq/battery_scripts/shared.py | 209 | def apply_threshold_settings_to_bat(self, bat: str, config: dict[str, Any]): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | auto_cpufreq/power_helper.py | 163 | CODE | |
| LOW | auto_cpufreq/power_helper.py | 294 | CODE | |
| LOW | auto_cpufreq/power_helper.py | 344 | CODE | |
| LOW | auto_cpufreq/core.py | 202 | CODE | |
| LOW | auto_cpufreq/core.py | 534 | CODE | |
| LOW | auto_cpufreq/core.py | 856 | CODE | |
| LOW | auto_cpufreq/core.py | 960 | CODE | |
| LOW | auto_cpufreq/core.py | 1077 | CODE | |
| LOW | auto_cpufreq/core.py | 1192 | CODE | |
| LOW | auto_cpufreq/bin/auto_cpufreq.py | 39 | CODE | |
| LOW | auto_cpufreq/gui/app.py | 813 | CODE | |
| LOW | auto_cpufreq/gui/objects.py | 41 | CODE | |
| LOW | auto_cpufreq/battery_scripts/battery.py | 13 | CODE | |
| LOW | auto_cpufreq/battery_scripts/battery.py | 56 | CODE | |
| LOW | auto_cpufreq/battery_scripts/ideapad_laptop.py | 14 | CODE | |
| LOW | auto_cpufreq/modules/system_monitor.py | 426 | CODE | |
| LOW | auto_cpufreq/modules/system_info.py | 219 | CODE | |
| LOW | auto_cpufreq/modules/system_info.py | 530 | CODE | |
| LOW | auto_cpufreq/modules/system_info.py | 576 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | auto_cpufreq/power_helper.py | 10 | CODE | |
| LOW | auto_cpufreq/core.py | 17 | CODE | |
| LOW | auto_cpufreq/core.py | 20 | CODE | |
| LOW | auto_cpufreq/bin/auto_cpufreq.py | 12 | CODE | |
| LOW | auto_cpufreq/bin/auto_cpufreq.py | 14 | CODE | |
| LOW | auto_cpufreq/bin/auto_cpufreq.py | 19 | CODE | |
| LOW | auto_cpufreq/gui/objects.py | 5 | CODE | |
| LOW | auto_cpufreq/gui/objects.py | 15 | CODE | |
| LOW | auto_cpufreq/gui/objects.py | 15 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 361 | Configured to run in full performance mode when connected to a power source (charger) and never drop below 2 GHz. When r | COMMENT |
| LOW | README.md | 381 | # available EPB options include a numeric value between 0-15 | COMMENT |
| LOW | README.md | 401 | # example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000 | COMMENT |
| LOW | README.md | 421 | # EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_prefe | COMMENT |
| LOW | README.md | 441 | # https://www.kernel.org/doc/html/latest/userspace-api/sysfs-platform_profile.html | COMMENT |
| LOW | scripts/snapdaemon.sh | 1 | #!/usr/bin/env bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | auto_cpufreq/config/config.py | 33 | # Check if the config file path points to a valid file | COMMENT |
| LOW | auto_cpufreq/modules/system_info.py | 578 | # Check if user has specified a custom battery device in config | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | auto_cpufreq/modules/system_monitor.py | 40 | # Create a columns widget with a vertical line (using box drawing character) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | auto_cpufreq/config/config.py | 52 | def set_path(self, path: str) -> None: | CODE |
| LOW | auto_cpufreq/config/config.py | 62 | def update_config(self) -> None: | CODE |