🚂 12306 购票助手,支持集群,多账号,多任务购票以及 Web 页面管理
This report presents the forensic synthetic code analysis of pjialin/py12306, a Python project with 14,895 GitHub stars. SynthScan v2.0 examined 8,427 lines of code across 60 source files, recording 112 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 16.5 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 112 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 | main.py | 4 | CODE | |
| LOW | py12306/config.py | 2 | CODE | |
| LOW | py12306/config.py | 7 | CODE | |
| LOW | py12306/app.py | 5 | CODE | |
| LOW | py12306/order/order.py | 8 | CODE | |
| LOW | py12306/order/order.py | 9 | CODE | |
| LOW | py12306/cluster/redis.py | 1 | CODE | |
| LOW | py12306/cluster/redis.py | 4 | CODE | |
| LOW | py12306/cluster/redis.py | 7 | CODE | |
| LOW | py12306/cluster/cluster.py | 4 | CODE | |
| LOW | py12306/cluster/cluster.py | 7 | CODE | |
| LOW | py12306/cluster/cluster.py | 12 | CODE | |
| LOW | py12306/web/web.py | 2 | CODE | |
| LOW | py12306/web/web.py | 6 | CODE | |
| LOW | py12306/web/web.py | 11 | CODE | |
| LOW | py12306/web/handler/user.py | 6 | CODE | |
| LOW | py12306/web/handler/query.py | 1 | CODE | |
| LOW | py12306/web/handler/query.py | 5 | CODE | |
| LOW | py12306/web/handler/log.py | 1 | CODE | |
| LOW | py12306/web/handler/log.py | 10 | CODE | |
| LOW | py12306/web/handler/log.py | 11 | CODE | |
| LOW | py12306/web/handler/stat.py | 1 | CODE | |
| LOW | py12306/web/handler/app.py | 4 | CODE | |
| LOW | py12306/web/handler/app.py | 4 | CODE | |
| LOW | py12306/web/handler/app.py | 9 | CODE | |
| LOW | py12306/web/handler/app.py | 10 | CODE | |
| LOW | py12306/user/user.py | 1 | CODE | |
| LOW | py12306/user/user.py | 4 | CODE | |
| LOW | py12306/user/job.py | 7 | CODE | |
| LOW | py12306/user/job.py | 8 | CODE | |
| LOW | py12306/user/job.py | 11 | CODE | |
| LOW | py12306/log/query_log.py | 4 | CODE | |
| LOW | py12306/log/query_log.py | 10 | CODE | |
| LOW | py12306/log/cluster_log.py | 2 | CODE | |
| LOW | py12306/log/user_log.py | 2 | CODE | |
| LOW | py12306/log/common_log.py | 2 | CODE | |
| LOW | py12306/log/common_log.py | 3 | CODE | |
| LOW | py12306/log/order_log.py | 2 | CODE | |
| LOW | py12306/log/redis_log.py | 2 | CODE | |
| LOW | py12306/log/base.py | 1 | CODE | |
| LOW | py12306/log/base.py | 7 | CODE | |
| LOW | py12306/query/query.py | 5 | CODE | |
| LOW | py12306/query/job.py | 11 | CODE | |
| LOW | py12306/helpers/auth_code.py | 8 | CODE | |
| LOW | py12306/helpers/auth_code.py | 9 | CODE | |
| LOW | py12306/helpers/auth_code.py | 10 | CODE | |
| LOW | py12306/helpers/event.py | 1 | CODE | |
| LOW | py12306/helpers/notification.py | 4 | CODE | |
| LOW | py12306/helpers/request.py | 2 | CODE | |
| LOW | py12306/helpers/request.py | 4 | CODE | |
| LOW | py12306/helpers/type.py | 1 | CODE | |
| LOW | py12306/helpers/station.py | 4 | CODE | |
| LOW | py12306/helpers/cdn.py | 3 | CODE | |
| LOW | py12306/helpers/cdn.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | py12306/order/order.py | 78 | 'async () => {let i = 3 * 10; while (!csessionid && i >= 0) await new Promise(resolve => setTimeout(resolve, | CODE |
| HIGH⚡ | py12306/order/order.py | 135 | 'async () => {let i = 3 * 10; while (!csessionid && i >= 0) await new Promise(resolve => setTimeout(resolve, | CODE |
| HIGH⚡ | py12306/helpers/func.py | 177 | if value: return true | CODE |
| HIGH⚡ | py12306/helpers/func.py | 178 | return false | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/config.py | 186 | def update_configs_from_remote(self, envs, first=False): | CODE |
| LOW | py12306/app.py | 92 | def check_user_account_is_empty(cls): | CODE |
| LOW | py12306/order/order.py | 577 | def make_passenger_ticket_str(self): | CODE |
| LOW | py12306/user/user.py | 82 | def get_passenger_for_members(cls, members, key): | CODE |
| LOW | py12306/user/job.py | 551 | def get_passengers_by_members(self, members): | CODE |
| LOW | py12306/log/query_log.py | 118 | def print_ticket_num_less_than_specified(cls, rest_num, job): | CODE |
| LOW | py12306/log/query_log.py | 128 | def print_ticket_seat_available(cls, left_date, train_number, seat_type, rest_num): | CODE |
| LOW | py12306/log/user_log.py | 71 | def print_user_passenger_init_success(cls, passengers): | CODE |
| LOW | py12306/log/order_log.py | 45 | def print_passenger_did_deleted(cls, passengers): | CODE |
| LOW | py12306/log/order_log.py | 60 | def get_order_success_notification_info(cls, query): | CODE |
| LOW⚡ | py12306/query/job.py | 363 | def get_info_of_arrive_station(self): | CODE |
| LOW⚡ | py12306/query/job.py | 372 | def get_info_of_train_left_time(self): | CODE |
| LOW⚡ | py12306/query/job.py | 375 | def get_info_of_train_arrive_time(self): | CODE |
| LOW | py12306/helpers/notification.py | 61 | def send_voice_code_of_yiyuan(self, phone, name='', content=''): | CODE |
| LOW | py12306/helpers/notification.py | 93 | def send_voice_code_of_dingxin(self, phone, name='', info={}): | CODE |
| LOW | py12306/helpers/notification.py | 142 | def send_email_by_smtp_with_qrcode(self, to, title, qrcode_path): | CODE |
| LOW | py12306/helpers/OCR.py | 32 | def get_img_position_by_ruokuai(self, img): | CODE |
| LOW | py12306/helpers/OCR.py | 43 | def get_image_position_by_offset(self, offsets): | CODE |
| LOW | py12306/helpers/func.py | 156 | def objects_find_object_by_key_value(objects, key, value, default=None): | CODE |
| LOW⚡ | py12306/helpers/func.py | 171 | def array_dict_find_by_key_value(data, key, value, default=None): | CODE |
| LOW⚡ | py12306/helpers/func.py | 181 | def sleep_forever_when_in_test(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | py12306/order/order.py | 139 | except Exception as e: | CODE |
| LOW⚡ | py12306/order/order.py | 143 | except Exception: | CODE |
| LOW⚡ | py12306/order/order.py | 147 | except Exception: | CODE |
| LOW | py12306/order/order.py | 214 | except Exception: | CODE |
| LOW | py12306/user/job.py | 177 | except Exception: | CODE |
| LOW | py12306/user/job.py | 192 | except Exception as e: | CODE |
| LOW | py12306/user/job.py | 200 | except Exception as e: | CODE |
| LOW | py12306/user/job.py | 275 | except Exception as e: | CODE |
| LOW | py12306/user/job.py | 355 | except Exception: | CODE |
| LOW | py12306/user/job.py | 381 | except Exception: | CODE |
| LOW | py12306/user/job.py | 622 | except Exception: | CODE |
| MEDIUM | py12306/user/job.py | 251 | def download_code(self): | CODE |
| LOW | py12306/query/query.py | 150 | except Exception: | CODE |
| LOW | py12306/query/query.py | 176 | except Exception: | CODE |
| LOW | py12306/query/query.py | 216 | except Exception: | CODE |
| LOW | py12306/helpers/notification.py | 139 | except Exception as e: | CODE |
| LOW | py12306/helpers/notification.py | 179 | except Exception as e: | STRING |
| LOW | py12306/helpers/notification.py | 226 | except Exception as e: | STRING |
| LOW | py12306/helpers/notification.py | 236 | except Exception as e: | STRING |
| LOW | py12306/helpers/request.py | 52 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/config.py | 186 | CODE | |
| LOW | py12306/order/order.py | 494 | CODE | |
| LOW | py12306/cluster/cluster.py | 202 | CODE | |
| LOW | py12306/user/job.py | 162 | CODE | |
| LOW | py12306/user/job.py | 360 | CODE | |
| LOW | py12306/user/job.py | 551 | CODE | |
| LOW | py12306/query/query.py | 155 | CODE | |
| LOW | py12306/query/job.py | 113 | CODE | |
| LOW | py12306/query/job.py | 201 | CODE | |
| LOW | py12306/helpers/request.py | 81 | CODE | |
| LOW | py12306/helpers/qrcode.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/web/static/js/vendor.aebd1de04bf90e88d9c7.js | 12 | var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/query/query.py | 221 | self.request_device_id(True) | COMMENT |