Repository Analysis

jhao104/proxy_pool

Python ProxyPool for web spider

23.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of jhao104/proxy_pool, a Python project with 23,484 GitHub stars. SynthScan v2.0 examined 7,462 lines of code across 87 source files, recording 145 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 23.9 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).

23.9
Adjusted Score
23.9
Raw Score
100%
Time Factor
2026-06-15
Last Push
23.5K
Stars
Python
Language
7.5K
Lines of Code
87
Files
145
Pattern Hits
2026-07-14
Scan Date
0.05
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 4MEDIUM 1LOW 140

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 145 distinct pattern matches across 7 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.

Hyper-Verbose Identifiers95 hits · 111 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_fetcher_sources.py75 def test_all_fetchers_have_name_url_enabled(self):CODE
LOWtests/unit/test_fetcher_sources.py83 def test_all_fetchers_subclass_base(self):CODE
LOWtests/unit/test_fetcher_sources.py89 def test_all_fetchers_have_fetch_method(self):CODE
LOWtests/unit/test_fetcher_sources.py256 def test_fetch_old_returns_empty(self, mock_dt, mock_wr):CODE
LOWtests/unit/test_fetcher_sources.py272 def test_fetch_old_cross_day_returns_empty(self, mock_dt, mock_wr):CODE
LOWtests/unit/test_fetcher_sources.py312 def test_fetch_empty_table_returns_empty(self, mock_requests):CODE
LOWtests/unit/test_fetcher_sources.py340 def test_fetch_filters_non_cn(self, mock_wr):CODE
LOWtests/unit/test_fetcher_sources.py352 def test_fetch_filters_non_http(self, mock_wr):CODE
LOWtests/unit/test_fetcher_sources.py381 def test_fetch_empty_data_returns_empty(self, mock_wr):CODE
LOWtests/unit/test_fetcher_sources.py405 def test_fetch_empty_data_returns_empty(self, mock_wr):CODE
LOWtests/unit/test_fetcher_sources.py412 def test_fetch_exception_returns_empty(self, mock_wr):CODE
LOWtests/unit/test_web_request.py124 def test_empty_content_returns_none(self):CODE
LOWtests/unit/test_web_request.py130 def test_valid_html_returns_element(self):CODE
LOWtests/unit/test_web_request.py143 def test_returns_response_text(self):CODE
LOWtests/unit/test_web_request.py153 def test_valid_json_returns_dict(self):CODE
LOWtests/unit/test_web_request.py159 def test_invalid_json_returns_empty_dict(self):CODE
LOWtests/unit/test_web_request.py171 def test_user_agent_returns_string(self):CODE
LOWtests/unit/test_web_request.py177 def test_header_contains_user_agent(self):CODE
LOWtests/unit/test_db_client.py38 def test_redis_uri_no_password(self):CODE
LOWtests/unit/test_db_client.py46 def test_ssdb_uri_no_password(self):CODE
LOWtests/unit/test_db_client.py52 def test_unknown_db_type_raises(self):CODE
LOWtests/unit/test_scheduler.py41 def test_fetcher_yields_go_to_queue(self, mock_fetcher_cls, mock_checker):CODE
LOWtests/unit/test_scheduler.py61 def test_triggers_fetch_when_pool_low(self, mock_ph_cls, mock_checker, mock_fetch):CODE
LOWtests/unit/test_scheduler.py76 def test_skips_fetch_when_pool_sufficient(self, mock_ph_cls, mock_checker, mock_fetch):CODE
LOWtests/unit/test_fetch.py28 def test_returns_correct_path(self):CODE
LOWtests/unit/test_fetch.py67 def test_import_exception_returns_none(self, mock_importlib, mock_mtime):CODE
LOWtests/unit/test_fetch.py86 def test_filters_enabled_only(self):CODE
LOWtests/unit/test_fetch.py93 def test_filters_exclude_list(self):CODE
LOWtests/unit/test_fetch.py103 def test_returns_sorted_by_name(self):CODE
LOWtests/unit/test_fetch.py132 def test_merges_duplicate_sources(self):CODE
LOWtests/unit/test_check.py28 def test_validator_http_pass_https_pass(self, mock_pv_cls, mock_conf_cls):CODE
LOWtests/unit/test_check.py54 def test_validator_http_pass_https_fail(self, mock_pv_cls, mock_conf_cls):CODE
LOWtests/unit/test_check.py90 def test_validator_fail_count_decrement(self, mock_pv_cls, mock_conf_cls):CODE
LOWtests/unit/test_check.py109 def test_validator_raw_sets_region(self, mock_pv_cls, mock_conf_cls, mock_region):CODE
LOWtests/unit/test_check.py128 def test_validator_use_skips_region(self, mock_pv_cls, mock_conf_cls, mock_region):CODE
LOWtests/unit/test_check.py148 def test_success_returns_country_code(self, mock_wr_cls):CODE
LOWtests/unit/test_check.py159 def test_exception_returns_error(self, mock_wr_cls):CODE
LOWtests/unit/test_check.py198 def test_ifraw_new_proxy_gets_put(self):CODE
LOWtests/unit/test_check.py210 def test_ifraw_existing_proxy_skipped(self):CODE
LOWtests/unit/test_check.py222 def test_ifraw_failed_proxy_not_put(self):CODE
LOWtests/unit/test_check.py248 def test_ifuse_fail_exceeds_max_deleted(self):CODE
LOWtests/unit/test_check.py263 def test_ifuse_fail_below_max_kept(self):CODE
LOWtests/unit/test_proxy_handler.py53 def test_get_returns_none_when_empty(self):CODE
LOWtests/unit/test_proxy_handler.py90 def test_pop_returns_none_when_empty(self):CODE
LOWtests/unit/test_proxy_handler.py116 def test_delete_delegates_to_db(self):CODE
LOWtests/unit/test_proxy_handler.py156 def test_exists_delegates_to_db(self):CODE
LOWtests/unit/test_config.py63 def test_verify_timeout_default(self, conf):CODE
LOWtests/unit/test_config.py66 def test_max_fail_count_default(self, conf):CODE
LOWtests/unit/test_config.py69 def test_pool_size_min_default(self, conf):CODE
LOWtests/unit/test_config.py75 def test_fetcher_exclude_is_list(self, conf):CODE
LOWtests/unit/test_config.py91 def test_verify_timeout_override(self):CODE
LOWtests/unit/test_config.py96 def test_max_fail_count_override(self):CODE
LOWtests/unit/test_validator.py49 def test_invalid_proxy_format(self, proxy):CODE
LOWtests/unit/test_validator.py68 def test_invalid_returns_false(self, proxy):CODE
LOWtests/unit/test_validator.py88 def test_returns_false_on_exception(self, mock_head):CODE
LOWtests/unit/test_validator.py113 def test_returns_false_on_exception(self, mock_head):CODE
LOWtests/unit/test_base_fetcher.py36 def test_ip_port_in_html_text(self):CODE
LOWtests/unit/test_base_fetcher.py100 def test_fetch_raises_not_implemented(self):CODE
LOWtests/unit/test_proxy.py81 def test_to_json_is_valid_json(self):CODE
LOWtests/unit/test_proxy.py87 def test_create_from_json_roundtrip(self):CODE
35 more matches not shown…
Unused Imports22 hits · 22 pts
SeverityFileLineSnippetContext
LOWutil/six.py28CODE
LOWutil/six.py30CODE
LOWutil/six.py41CODE
LOWutil/six.py41CODE
LOWutil/six.py43CODE
LOWutil/six.py43CODE
LOWtests/unit/test_web_request.py15CODE
LOWtests/unit/test_web_request.py16CODE
LOWtests/unit/test_scheduler.py16CODE
LOWtests/unit/test_fetch.py23CODE
LOWtests/unit/test_check.py15CODE
LOWtests/unit/test_check.py16CODE
LOWtests/unit/test_check.py17CODE
LOWtests/unit/test_proxy_handler.py15CODE
LOWtests/unit/test_validator.py15CODE
LOWtests/unit/test_proxy.py16CODE
LOWtests/unit/test_log_handler.py16CODE
LOWtests/unit/test_log_handler.py17CODE
LOWtests/unit/test_launcher.py15CODE
LOWtests/integration/test_redis_client.py17CODE
LOWtests/integration/test_redis_client.py18CODE
LOWtests/api/test_proxy_api.py16CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHhandler/__init__.py0------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 -----STRING
HIGHapi/__init__.py0------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 -----STRING
HIGHutil/lazyProperty.py0------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 -----STRING
HIGHutil/singleton.py0------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 -----STRING
Excessive Try-Catch Wrapping18 hits · 19 pts
SeverityFileLineSnippetContext
LOWREADME.md155 except Exception:CODE
LOWutil/webRequest.py79 except Exception as e:CODE
LOWutil/webRequest.py106 except Exception as e:CODE
LOWutil/webRequest.py131 except Exception as e:CODE
MEDIUMutil/webRequest.py128def json(self):CODE
LOWfetcher/sources/proxifly.py36 except Exception as e:CODE
LOWfetcher/sources/scdn.py61 except Exception as e:CODE
LOWfetcher/sources/daili66.py35 except Exception as e:CODE
LOWfetcher/sources/geonode.py43 except Exception as e:CODE
LOWfetcher/sources/roundproxies.py36 except Exception as e:CODE
LOWfetcher/sources/docip.py33 except Exception as e:CODE
LOWdocs/api.md48 except Exception:CODE
LOWdocs/extending/validator.md49 except Exception as e:CODE
LOWdocs/extending/validator.md63 except Exception as e:CODE
LOWhelper/fetch.py52 except Exception as e:CODE
LOWhelper/fetch.py114 except Exception as e:CODE
LOWhelper/validator.py67 except Exception as e:CODE
LOWhelper/validator.py79 except Exception as e:CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdb/ssdbClient.py72CODE
LOWdb/redisClient.py72CODE
LOWhelper/proxy.py20CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWfetcher/sources/scdn.py32CODE
LOWfetcher/sources/freevpnnode.py27CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsetting.py61MAX_FAIL_COUNT = 0COMMENT