Repository Analysis

Flowseal/tg-ws-proxy

Local MTProto proxy server for partial bypassing of Telegram loading

24.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Flowseal/tg-ws-proxy, a Python project with 8,957 GitHub stars. SynthScan v2.0 examined 8,681 lines of code across 52 source files, recording 186 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 24.2 places this repository in the Moderate 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).

24.2
Adjusted Score
24.2
Raw Score
100%
Time Factor
2026-07-31
Last Push
9.0K
Stars
Python
Language
8.7K
Lines of Code
52
Files
186
Pattern Hits
2026-08-02
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 164

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 186 distinct pattern matches across 6 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 Wrapping107 hits · 127 pts
SeverityFileLineSnippetContext
LOWmacos.py29 except Exception:CODE
LOWmacos.py207 except Exception as exc:CODE
LOWmacos.py259 except Exception:CODE
LOWmacos.py264 except Exception:CODE
LOWmacos.py275 except Exception as exc:CODE
LOWmacos.py288 except Exception as exc:CODE
LOWmacos.py357 except Exception as exc:CODE
LOWmacos.py537 except Exception:CODE
LOWmacos.py545 except Exception:CODE
LOWmacos.py629 except Exception:CODE
LOWwindows.py83 except Exception:CODE
LOWwindows.py94 except Exception:CODE
LOWwindows.py257 except Exception as exc:CODE
LOWwindows.py271 except Exception as exc:CODE
LOWwindows.py281 except Exception as exc:CODE
LOWwindows.py314 except Exception as exc:CODE
LOWwindows.py346 except Exception as exc:CODE
LOWwindows.py399 except Exception:CODE
LOWwindows.py411 except Exception as exc:CODE
LOWwindows.py424 except Exception as exc:CODE
LOWwindows.py444 except Exception as exc:CODE
MEDIUMwindows.py365def is_autostart_enabled() -> bool:CODE
LOWlinux.py50 except Exception:CODE
LOWlinux.py85 except Exception as exc:CODE
LOWlinux.py95 except Exception as exc:CODE
LOWui/ctk_theme.py93 except Exception:CODE
MEDIUMui/ctk_theme.py90def _safe_destroy():CODE
LOWui/ctk_tooltip.py37 except Exception:CODE
LOWui/ctk_tooltip.py48 except Exception:CODE
LOWui/ctk_tooltip.py55 except Exception:CODE
LOWui/ctk_tooltip.py82 except Exception:CODE
MEDIUMui/ctk_tray_ui.py541def _worker():CODE
MEDIUMui/ctk_tray_ui.py558def _worker_auto():CODE
MEDIUMui/ctk_tray_ui.py663def _worker():CODE
LOWui/ctk_tray_ui.py172 except Exception:CODE
LOWui/ctk_tray_ui.py217 except Exception:CODE
LOWui/ctk_tray_ui.py316 except Exception:CODE
LOWui/ctk_tray_ui.py551 except Exception as exc:CODE
LOWui/ctk_tray_ui.py571 except Exception as exc:CODE
LOWui/ctk_tray_ui.py672 except Exception as exc:CODE
LOWui/i18n/__init__.py78 except Exception:CODE
LOWproxy/raw_websocket.py179 except Exception:CODE
LOWproxy/raw_websocket.py188 except Exception:CODE
LOWproxy/raw_websocket.py208 except Exception:CODE
LOWproxy/raw_websocket.py213 except Exception:CODE
LOWproxy/raw_websocket.py232 except Exception:CODE
LOWproxy/config.py116 except Exception as exc:CODE
MEDIUMproxy/config.py105def _fetch_cfproxy_domain_list() -> List[str]:CODE
LOWproxy/fake_tls.py215 except Exception as exc:CODE
LOWproxy/fake_tls.py243 except Exception:CODE
LOWproxy/fake_tls.py250 except Exception:CODE
LOWproxy/fake_tls.py255 except Exception:CODE
LOWproxy/bridge.py205 except Exception as exc:CODE
LOWproxy/bridge.py239 except Exception as exc:CODE
LOWproxy/bridge.py261 except Exception as exc:CODE
LOWproxy/bridge.py322 except Exception as e:CODE
LOWproxy/bridge.py349 except Exception as e:CODE
LOWproxy/bridge.py406 except Exception as e:CODE
MEDIUMproxy/bridge.py387def forward(src, dst_w, is_up):CODE
LOWproxy/tg_ws_proxy.py273 except Exception:CODE
47 more matches not shown…
Unused Imports31 hits · 30 pts
SeverityFileLineSnippetContext
LOWmacos.py1CODE
LOWmacos.py3CODE
LOWmacos.py9CODE
LOWmacos.py67CODE
LOWmacos.py67CODE
LOWwindows.py1CODE
LOWlinux.py1CODE
LOWui/ctk_theme.py1CODE
LOWui/ctk_tooltip.py1CODE
LOWui/ctk_tray_ui.py1CODE
LOWui/i18n/__init__.py1CODE
LOWproxy/fake_tls.py1CODE
LOWproxy/bridge.py8CODE
LOWproxy/__init__.py1CODE
LOWproxy/__init__.py1CODE
LOWproxy/__init__.py1CODE
LOWproxy/__init__.py2CODE
LOWproxy/__init__.py2CODE
LOWproxy/tg_ws_proxy.py1CODE
LOWproxy/tg_ws_proxy.py23CODE
LOWproxy/_aes.py11CODE
LOWproxy/_aes.py14CODE
LOWutils/tray_common.py1CODE
LOWutils/win32_theme.py1CODE
LOWutils/update_check.py7CODE
LOWutils/diagnostics.py1CODE
LOWutils/__init__.py3CODE
LOWutils/__init__.py3CODE
LOWutils/__init__.py3CODE
LOWutils/default_config.py5CODE
LOWutils/logging_setup.py12CODE
Deep Nesting20 hits · 19 pts
SeverityFileLineSnippetContext
LOWmacos.py252CODE
LOWmacos.py366CODE
LOWwindows.py226CODE
LOWwindows.py374CODE
LOWui/ctk_tray_ui.py43CODE
LOWui/ctk_tray_ui.py115CODE
LOWui/ctk_tray_ui.py360CODE
LOWui/i18n/__init__.py61CODE
LOWproxy/config.py81CODE
LOWproxy/fake_tls.py210CODE
LOWproxy/bridge.py131CODE
LOWproxy/bridge.py273CODE
LOWproxy/bridge.py291CODE
LOWproxy/bridge.py326CODE
LOWproxy/tg_ws_proxy.py250CODE
LOWproxy/tg_ws_proxy.py466CODE
LOWproxy/pool.py74CODE
LOWproxy/pool.py119CODE
LOWutils/tray_common.py68CODE
LOWutils/update_check.py267CODE
Hyper-Verbose Identifiers16 hits · 16 pts
SeverityFileLineSnippetContext
LOWmacos.py316def _check_updates_menu_title() -> str:CODE
LOWmacos.py337def _maybe_notify_update_async() -> None:CODE
LOWui/ctk_theme.py11def install_tkinter_variable_del_guard() -> None:CODE
LOWui/ctk_tooltip.py107def attach_tooltip_to_widgets(widgets: List[Any], text: str, **kwargs: Any) -> None:CODE
LOWui/ctk_tray_ui.py90def _run_cfproxy_connectivity_test(domain: str) -> dict:CODE
LOWui/ctk_tray_ui.py98def _run_cfworker_connectivity_test(domain: str) -> dict:CODE
LOWui/ctk_tray_ui.py131def _show_connectivity_results(title_base: str, results: dict,CODE
LOWui/ctk_tray_ui.py178def _show_multi_connectivity_results(title_base: str, per_domain: dict,CODE
LOWui/ctk_tray_ui.py299def tray_settings_scroll_and_footer(CODE
LOWui/ctk_tray_ui.py648 def _sync_cfworker_test_button(*_):CODE
LOWui/ctk_tray_ui.py886def install_tray_config_buttons(CODE
LOWui/ctk_tray_ui.py921def populate_first_run_window(CODE
LOWui/i18n/__init__.py141def language_label_for_config(value: LocaleInput) -> str:CODE
LOWui/i18n/__init__.py150def refresh_language_option_maps() -> None:CODE
LOWproxy/config.py105def _fetch_cfproxy_domain_list() -> List[str]:CODE
LOWproxy/config.py184def start_cfproxy_domain_refresh() -> None:CODE
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMproxy/pool.py314CODE
MEDIUMproxy/pool.py317CODE
MEDIUMproxy/pool.py318CODE
MEDIUMproxy/pool.py320CODE
MEDIUMproxy/pool.py321CODE
MEDIUMproxy/pool.py322CODE
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWmacos.py610 def update_menu_title(self) -> None:CODE
LOWwindows.py174 def _set_status(msg: str) -> None:CODE
LOWwindows.py374def set_autostart_enabled(enabled: bool) -> None:CODE
LOWproxy/__init__.py6__all__ = ["__version__", "get_link_host", "proxy_config", "parse_dc_ip_list", "build_github_opener", "coerce_domain_lisCODE
LOWproxy/balancer.py12 def update_domains_list(self, domains_list: List[str]) -> None:CODE
LOWutils/__init__.py5__all__ = ["RELEASES_PAGE_URL", "get_status", "run_check"]CODE