AI Slop Code RIsk Monitor

pjialin/py12306

🚂 12306 购票助手,支持集群,多账号,多任务购票以及 Web 页面管理

18.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pjialin/py12306, a Python project with 14,964 GitHub stars. SynthScan examined 8,427 lines of code across 60 source files, recording 116 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 18.9 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

18.9
Adjusted Signal
18.9
Raw Pattern Score
100%
Time Factor
2026-10-01
Last Push
15.0K
Stars
Python
Language
8.4K
Lines of Code
60
Files
116
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 19.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 33 finding(s).

Hallucinated Dependency & Supply Chain Risk 38.7/100 · MEDIUM

Are imports declared and package/API names verified? 59 finding(s).

Agent Over-Engineering Ratio 31.8/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 45 finding(s).

PR Review Velocity Impact 60.8/100 · HIGH

Which changes need focused human review? 116 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 8MEDIUM 1LOW 107

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 116 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Unused Imports54 hits · 54 pts
SeverityFileLineSnippetContext
LOWmain.py4CODE
LOWpy12306/config.py2CODE
LOWpy12306/config.py7CODE
LOWpy12306/app.py5CODE
LOWpy12306/order/order.py8CODE
LOWpy12306/order/order.py9CODE
LOWpy12306/cluster/redis.py1CODE
LOWpy12306/cluster/redis.py4CODE
LOWpy12306/cluster/redis.py7CODE
LOWpy12306/cluster/cluster.py4CODE
LOWpy12306/cluster/cluster.py7CODE
LOWpy12306/cluster/cluster.py12CODE
LOWpy12306/web/web.py2CODE
LOWpy12306/web/web.py6CODE
LOWpy12306/web/web.py11CODE
LOWpy12306/web/handler/user.py6CODE
LOWpy12306/web/handler/query.py1CODE
LOWpy12306/web/handler/query.py5CODE
LOWpy12306/web/handler/log.py1CODE
LOWpy12306/web/handler/log.py10CODE
LOWpy12306/web/handler/log.py11CODE
LOWpy12306/web/handler/stat.py1CODE
LOWpy12306/web/handler/app.py4CODE
LOWpy12306/web/handler/app.py4CODE
LOWpy12306/web/handler/app.py9CODE
LOWpy12306/web/handler/app.py10CODE
LOWpy12306/user/user.py1CODE
LOWpy12306/user/user.py4CODE
LOWpy12306/user/job.py7CODE
LOWpy12306/user/job.py8CODE
LOWpy12306/user/job.py11CODE
LOWpy12306/log/query_log.py4CODE
LOWpy12306/log/query_log.py10CODE
LOWpy12306/log/cluster_log.py2CODE
LOWpy12306/log/user_log.py2CODE
LOWpy12306/log/common_log.py2CODE
LOWpy12306/log/common_log.py3CODE
LOWpy12306/log/order_log.py2CODE
LOWpy12306/log/redis_log.py2CODE
LOWpy12306/log/base.py1CODE
LOWpy12306/log/base.py7CODE
LOWpy12306/query/query.py5CODE
LOWpy12306/query/job.py11CODE
LOWpy12306/helpers/auth_code.py8CODE
LOWpy12306/helpers/auth_code.py9CODE
LOWpy12306/helpers/auth_code.py10CODE
LOWpy12306/helpers/event.py1CODE
LOWpy12306/helpers/notification.py4CODE
LOWpy12306/helpers/request.py2CODE
LOWpy12306/helpers/request.py4CODE
LOWpy12306/helpers/type.py1CODE
LOWpy12306/helpers/station.py4CODE
LOWpy12306/helpers/cdn.py3CODE
LOWpy12306/helpers/cdn.py10CODE
Cross-Language Confusion4 hits · 28 pts
SeverityFileLineSnippetContext
HIGHpy12306/order/order.py78 'async () => {let i = 3 * 10; while (!csessionid && i >= 0) await new Promise(resolve => setTimeout(resolve,CODE
HIGH⚡py12306/order/order.py135 'async () => {let i = 3 * 10; while (!csessionid && i >= 0) await new Promise(resolve => setTimeout(resolve,CODE
HIGH⚡py12306/helpers/func.py177 if value: return trueCODE
HIGH⚡py12306/helpers/func.py178 return falseCODE
Hyper-Verbose Identifiers21 hits · 24 pts
SeverityFileLineSnippetContext
LOWpy12306/config.py186 def update_configs_from_remote(self, envs, first=False):CODE
LOWpy12306/app.py92 def check_user_account_is_empty(cls):CODE
LOWpy12306/order/order.py577 def make_passenger_ticket_str(self):CODE
LOWpy12306/user/user.py82 def get_passenger_for_members(cls, members, key):CODE
LOWpy12306/user/job.py551 def get_passengers_by_members(self, members):CODE
LOWpy12306/log/query_log.py118 def print_ticket_num_less_than_specified(cls, rest_num, job):CODE
LOWpy12306/log/query_log.py128 def print_ticket_seat_available(cls, left_date, train_number, seat_type, rest_num):CODE
LOWpy12306/log/user_log.py71 def print_user_passenger_init_success(cls, passengers):CODE
LOWpy12306/log/order_log.py45 def print_passenger_did_deleted(cls, passengers):CODE
LOWpy12306/log/order_log.py60 def get_order_success_notification_info(cls, query):CODE
LOW⚡py12306/query/job.py363 def get_info_of_arrive_station(self):CODE
LOW⚡py12306/query/job.py372 def get_info_of_train_left_time(self):CODE
LOW⚡py12306/query/job.py375 def get_info_of_train_arrive_time(self):CODE
LOWpy12306/helpers/notification.py61 def send_voice_code_of_yiyuan(self, phone, name='', content=''):CODE
LOWpy12306/helpers/notification.py93 def send_voice_code_of_dingxin(self, phone, name='', info={}):CODE
LOWpy12306/helpers/notification.py142 def send_email_by_smtp_with_qrcode(self, to, title, qrcode_path):CODE
LOWpy12306/helpers/OCR.py32 def get_img_position_by_ruokuai(self, img):CODE
LOWpy12306/helpers/OCR.py43 def get_image_position_by_offset(self, offsets):CODE
LOWpy12306/helpers/func.py156def objects_find_object_by_key_value(objects, key, value, default=None):CODE
LOW⚡py12306/helpers/func.py171def array_dict_find_by_key_value(data, key, value, default=None):CODE
LOW⚡py12306/helpers/func.py181def sleep_forever_when_in_test():CODE
Excessive Try-Catch Wrapping20 hits · 21 pts
SeverityFileLineSnippetContext
LOW⚡py12306/order/order.py139 except Exception as e:CODE
LOW⚡py12306/order/order.py143 except Exception:CODE
LOW⚡py12306/order/order.py147 except Exception:CODE
LOWpy12306/order/order.py214 except Exception:CODE
LOWpy12306/user/job.py177 except Exception:CODE
LOWpy12306/user/job.py192 except Exception as e:CODE
LOWpy12306/user/job.py200 except Exception as e:CODE
LOWpy12306/user/job.py275 except Exception as e:CODE
LOWpy12306/user/job.py355 except Exception:CODE
LOWpy12306/user/job.py381 except Exception:CODE
LOWpy12306/user/job.py622 except Exception:CODE
MEDIUMpy12306/user/job.py251def download_code(self):CODE
LOWpy12306/query/query.py150 except Exception:CODE
LOWpy12306/query/query.py176 except Exception:CODE
LOWpy12306/query/query.py216 except Exception:CODE
LOWpy12306/helpers/notification.py139 except Exception as e:CODE
LOWpy12306/helpers/notification.py179 except Exception as e:STRING
LOWpy12306/helpers/notification.py226 except Exception as e:STRING
LOWpy12306/helpers/notification.py236 except Exception as e:STRING
LOWpy12306/helpers/request.py52 except Exception:CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHpy12306/order/order.py143except Exception:CODE
HIGHpy12306/order/order.py147except Exception:CODE
HIGHpy12306/user/job.py260except FileExistsError:CODE
HIGHpy12306/query/query.py216except Exception:CODE
Deep Nesting11 hits · 11 pts
SeverityFileLineSnippetContext
LOWpy12306/config.py186CODE
LOWpy12306/order/order.py494CODE
LOWpy12306/cluster/cluster.py202CODE
LOWpy12306/user/job.py162CODE
LOWpy12306/user/job.py360CODE
LOWpy12306/user/job.py551CODE
LOWpy12306/query/query.py155CODE
LOWpy12306/query/job.py113CODE
LOWpy12306/query/job.py201CODE
LOWpy12306/helpers/request.py81CODE
LOWpy12306/helpers/qrcode.py6CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpy12306/web/static/js/vendor.aebd1de04bf90e88d9c7.js12var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(eCODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpy12306/query/query.py221 self.request_device_id(True)COMMENT