Python ProxyPool for web spider
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).
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.
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unit/test_fetcher_sources.py | 75 | def test_all_fetchers_have_name_url_enabled(self): | CODE |
| LOW⚡ | tests/unit/test_fetcher_sources.py | 83 | def test_all_fetchers_subclass_base(self): | CODE |
| LOW⚡ | tests/unit/test_fetcher_sources.py | 89 | def test_all_fetchers_have_fetch_method(self): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 256 | def test_fetch_old_returns_empty(self, mock_dt, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 272 | def test_fetch_old_cross_day_returns_empty(self, mock_dt, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 312 | def test_fetch_empty_table_returns_empty(self, mock_requests): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 340 | def test_fetch_filters_non_cn(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 352 | def test_fetch_filters_non_http(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 381 | def test_fetch_empty_data_returns_empty(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 405 | def test_fetch_empty_data_returns_empty(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 412 | def test_fetch_exception_returns_empty(self, mock_wr): | CODE |
| LOW | tests/unit/test_web_request.py | 124 | def test_empty_content_returns_none(self): | CODE |
| LOW | tests/unit/test_web_request.py | 130 | def test_valid_html_returns_element(self): | CODE |
| LOW⚡ | tests/unit/test_web_request.py | 143 | def test_returns_response_text(self): | CODE |
| LOW⚡ | tests/unit/test_web_request.py | 153 | def test_valid_json_returns_dict(self): | CODE |
| LOW⚡ | tests/unit/test_web_request.py | 159 | def test_invalid_json_returns_empty_dict(self): | CODE |
| LOW | tests/unit/test_web_request.py | 171 | def test_user_agent_returns_string(self): | CODE |
| LOW | tests/unit/test_web_request.py | 177 | def test_header_contains_user_agent(self): | CODE |
| LOW⚡ | tests/unit/test_db_client.py | 38 | def test_redis_uri_no_password(self): | CODE |
| LOW⚡ | tests/unit/test_db_client.py | 46 | def test_ssdb_uri_no_password(self): | CODE |
| LOW⚡ | tests/unit/test_db_client.py | 52 | def test_unknown_db_type_raises(self): | CODE |
| LOW | tests/unit/test_scheduler.py | 41 | def test_fetcher_yields_go_to_queue(self, mock_fetcher_cls, mock_checker): | CODE |
| LOW | tests/unit/test_scheduler.py | 61 | def test_triggers_fetch_when_pool_low(self, mock_ph_cls, mock_checker, mock_fetch): | CODE |
| LOW | tests/unit/test_scheduler.py | 76 | def test_skips_fetch_when_pool_sufficient(self, mock_ph_cls, mock_checker, mock_fetch): | CODE |
| LOW | tests/unit/test_fetch.py | 28 | def test_returns_correct_path(self): | CODE |
| LOW | tests/unit/test_fetch.py | 67 | def test_import_exception_returns_none(self, mock_importlib, mock_mtime): | CODE |
| LOW⚡ | tests/unit/test_fetch.py | 86 | def test_filters_enabled_only(self): | CODE |
| LOW⚡ | tests/unit/test_fetch.py | 93 | def test_filters_exclude_list(self): | CODE |
| LOW⚡ | tests/unit/test_fetch.py | 103 | def test_returns_sorted_by_name(self): | CODE |
| LOW | tests/unit/test_fetch.py | 132 | def test_merges_duplicate_sources(self): | CODE |
| LOW | tests/unit/test_check.py | 28 | def test_validator_http_pass_https_pass(self, mock_pv_cls, mock_conf_cls): | CODE |
| LOW | tests/unit/test_check.py | 54 | def test_validator_http_pass_https_fail(self, mock_pv_cls, mock_conf_cls): | CODE |
| LOW | tests/unit/test_check.py | 90 | def test_validator_fail_count_decrement(self, mock_pv_cls, mock_conf_cls): | CODE |
| LOW | tests/unit/test_check.py | 109 | def test_validator_raw_sets_region(self, mock_pv_cls, mock_conf_cls, mock_region): | CODE |
| LOW | tests/unit/test_check.py | 128 | def test_validator_use_skips_region(self, mock_pv_cls, mock_conf_cls, mock_region): | CODE |
| LOW | tests/unit/test_check.py | 148 | def test_success_returns_country_code(self, mock_wr_cls): | CODE |
| LOW | tests/unit/test_check.py | 159 | def test_exception_returns_error(self, mock_wr_cls): | CODE |
| LOW | tests/unit/test_check.py | 198 | def test_ifraw_new_proxy_gets_put(self): | CODE |
| LOW | tests/unit/test_check.py | 210 | def test_ifraw_existing_proxy_skipped(self): | CODE |
| LOW | tests/unit/test_check.py | 222 | def test_ifraw_failed_proxy_not_put(self): | CODE |
| LOW | tests/unit/test_check.py | 248 | def test_ifuse_fail_exceeds_max_deleted(self): | CODE |
| LOW | tests/unit/test_check.py | 263 | def test_ifuse_fail_below_max_kept(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 53 | def test_get_returns_none_when_empty(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 90 | def test_pop_returns_none_when_empty(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 116 | def test_delete_delegates_to_db(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 156 | def test_exists_delegates_to_db(self): | CODE |
| LOW⚡ | tests/unit/test_config.py | 63 | def test_verify_timeout_default(self, conf): | CODE |
| LOW⚡ | tests/unit/test_config.py | 66 | def test_max_fail_count_default(self, conf): | CODE |
| LOW⚡ | tests/unit/test_config.py | 69 | def test_pool_size_min_default(self, conf): | CODE |
| LOW⚡ | tests/unit/test_config.py | 75 | def test_fetcher_exclude_is_list(self, conf): | CODE |
| LOW | tests/unit/test_config.py | 91 | def test_verify_timeout_override(self): | CODE |
| LOW | tests/unit/test_config.py | 96 | def test_max_fail_count_override(self): | CODE |
| LOW | tests/unit/test_validator.py | 49 | def test_invalid_proxy_format(self, proxy): | CODE |
| LOW | tests/unit/test_validator.py | 68 | def test_invalid_returns_false(self, proxy): | CODE |
| LOW | tests/unit/test_validator.py | 88 | def test_returns_false_on_exception(self, mock_head): | CODE |
| LOW | tests/unit/test_validator.py | 113 | def test_returns_false_on_exception(self, mock_head): | CODE |
| LOW | tests/unit/test_base_fetcher.py | 36 | def test_ip_port_in_html_text(self): | CODE |
| LOW | tests/unit/test_base_fetcher.py | 100 | def test_fetch_raises_not_implemented(self): | CODE |
| LOW | tests/unit/test_proxy.py | 81 | def test_to_json_is_valid_json(self): | CODE |
| LOW | tests/unit/test_proxy.py | 87 | def test_create_from_json_roundtrip(self): | CODE |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/six.py | 28 | CODE | |
| LOW | util/six.py | 30 | CODE | |
| LOW | util/six.py | 41 | CODE | |
| LOW | util/six.py | 41 | CODE | |
| LOW | util/six.py | 43 | CODE | |
| LOW | util/six.py | 43 | CODE | |
| LOW | tests/unit/test_web_request.py | 15 | CODE | |
| LOW | tests/unit/test_web_request.py | 16 | CODE | |
| LOW | tests/unit/test_scheduler.py | 16 | CODE | |
| LOW | tests/unit/test_fetch.py | 23 | CODE | |
| LOW | tests/unit/test_check.py | 15 | CODE | |
| LOW | tests/unit/test_check.py | 16 | CODE | |
| LOW | tests/unit/test_check.py | 17 | CODE | |
| LOW | tests/unit/test_proxy_handler.py | 15 | CODE | |
| LOW | tests/unit/test_validator.py | 15 | CODE | |
| LOW | tests/unit/test_proxy.py | 16 | CODE | |
| LOW | tests/unit/test_log_handler.py | 16 | CODE | |
| LOW | tests/unit/test_log_handler.py | 17 | CODE | |
| LOW | tests/unit/test_launcher.py | 15 | CODE | |
| LOW | tests/integration/test_redis_client.py | 17 | CODE | |
| LOW | tests/integration/test_redis_client.py | 18 | CODE | |
| LOW | tests/api/test_proxy_api.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | handler/__init__.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| HIGH | api/__init__.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| HIGH | util/lazyProperty.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| HIGH | util/singleton.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 155 | except Exception: | CODE |
| LOW | util/webRequest.py | 79 | except Exception as e: | CODE |
| LOW | util/webRequest.py | 106 | except Exception as e: | CODE |
| LOW | util/webRequest.py | 131 | except Exception as e: | CODE |
| MEDIUM | util/webRequest.py | 128 | def json(self): | CODE |
| LOW | fetcher/sources/proxifly.py | 36 | except Exception as e: | CODE |
| LOW | fetcher/sources/scdn.py | 61 | except Exception as e: | CODE |
| LOW | fetcher/sources/daili66.py | 35 | except Exception as e: | CODE |
| LOW | fetcher/sources/geonode.py | 43 | except Exception as e: | CODE |
| LOW | fetcher/sources/roundproxies.py | 36 | except Exception as e: | CODE |
| LOW | fetcher/sources/docip.py | 33 | except Exception as e: | CODE |
| LOW | docs/api.md | 48 | except Exception: | CODE |
| LOW | docs/extending/validator.md | 49 | except Exception as e: | CODE |
| LOW | docs/extending/validator.md | 63 | except Exception as e: | CODE |
| LOW | helper/fetch.py | 52 | except Exception as e: | CODE |
| LOW | helper/fetch.py | 114 | except Exception as e: | CODE |
| LOW | helper/validator.py | 67 | except Exception as e: | CODE |
| LOW | helper/validator.py | 79 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | db/ssdbClient.py | 72 | CODE | |
| LOW | db/redisClient.py | 72 | CODE | |
| LOW | helper/proxy.py | 20 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fetcher/sources/scdn.py | 32 | CODE | |
| LOW | fetcher/sources/freevpnnode.py | 27 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setting.py | 61 | MAX_FAIL_COUNT = 0 | COMMENT |