Repository Analysis

zhenxun-org/zhenxun_bot

基于 Nonebot2 开发,实现多平台适配和多Bot管理的,非常可爱的绪山真寻Bot

16.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of zhenxun-org/zhenxun_bot, a Python project with 3,825 GitHub stars. SynthScan v2.0 examined 111,937 lines of code across 545 source files, recording 1805 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 16.4 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).

16.4
Adjusted Score
16.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.8K
Stars
Python
Language
111.9K
Lines of Code
545
Files
1.8K
Pattern Hits
2026-07-14
Scan Date
0.02
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 11MEDIUM 30LOW 1764

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 1805 distinct pattern matches across 12 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 Wrapping543 hits · 552 pts
SeverityFileLineSnippetContext
LOWzhenxun/cli.py274 except Exception as e:CODE
LOWzhenxun/cli.py292 except Exception as e:CODE
LOWzhenxun/cli.py342 except Exception:CODE
MEDIUMzhenxun/cli.py148def _print_version() -> None:CODE
LOWzhenxun/builtin_plugins/withdraw.py69 except Exception:STRING
LOWzhenxun/builtin_plugins/withdraw.py75 except Exception:STRING
LOWzhenxun/builtin_plugins/__init__.py54 except Exception as e:CODE
LOWzhenxun/builtin_plugins/__init__.py116 except Exception:STRING
LOWzhenxun/builtin_plugins/__init__.py125 except Exception:STRING
LOWzhenxun/builtin_plugins/__init__.py145 except Exception as e:STRING
LOWzhenxun/builtin_plugins/__init__.py161 except Exception as e:CODE
MEDIUMzhenxun/builtin_plugins/__init__.py90def _():CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py570 except Exception as e:CODE
LOWzhenxun/builtin_plugins/plugin_store/__init__.py97 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py117 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py130 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py143 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py165 except Exception as e:STRING
LOWzhenxun/builtin_plugins/plugin_store/__init__.py179 except Exception as e:STRING
LOWzhenxun/builtin_plugins/init/init_task.py137 except Exception as e:CODE
LOWzhenxun/builtin_plugins/init/init_config.py105 except Exception as e:CODE
LOWzhenxun/builtin_plugins/sign_in/__init__.py187 except Exception as e:STRING
MEDIUMzhenxun/builtin_plugins/sign_in/__init__.py183def _():CODE
LOWzhenxun/builtin_plugins/chat_history/chat_message.py96 except Exception as e:CODE
LOW…uiltin_plugins/platform/qq/group_handle/data_source.py211 except Exception as e:CODE
LOWzhenxun/builtin_plugins/admin/group_update.py49 except Exception:STRING
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py377 except Exception as e:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py446 except Exception as e:CODE
LOW…ltin_plugins/admin/group_member_update/_data_source.py122 except Exception as e:CODE
LOW…ltin_plugins/admin/group_member_update/_data_source.py165 except Exception as e:CODE
LOW…/builtin_plugins/admin/group_member_update/__init__.py127 except Exception as e:STRING
LOW…/builtin_plugins/admin/group_member_update/__init__.py135 except Exception as e:STRING
LOW…/builtin_plugins/admin/group_member_update/__init__.py225 except Exception as e:STRING
LOW…/builtin_plugins/admin/group_member_update/__init__.py231 except Exception as e:STRING
LOW…n/builtin_plugins/admin/welcome_message/data_source.py50 except Exception as e:CODE
LOWzhenxun/builtin_plugins/scheduler/auto_backup.py54 except Exception as e:CODE
LOWzhenxun/builtin_plugins/scheduler/chat_check.py66 except Exception:CODE
LOWzhenxun/builtin_plugins/scheduler/auto_update_group.py25 except Exception as e:CODE
LOWzhenxun/builtin_plugins/scheduler/auto_update_group.py45 except Exception as e:CODE
LOWzhenxun/builtin_plugins/superuser/ui_manager.py125 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/ui_manager.py144 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/exec_sql.py100 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/exec_sql.py122 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/clear_data.py76 except Exception as e:STRING
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py487 except Exception as e:CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py558 except Exception as e:CODE
LOWzhenxun/builtin_plugins/superuser/request_manage.py165 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/update_fg_info.py69 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/update_fg_info.py95 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/group_manage.py208 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/fg_manage.py73 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/fg_manage.py91 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/broadcast/__init__.py202 except Exception as e:STRING
LOWzhenxun/builtin_plugins/superuser/broadcast/__init__.py238 except Exception as e:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py40 except Exception:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py299 except Exception as e_extract:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py364 except Exception as e:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py449 except Exception as e:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py546 except Exception as e:CODE
LOWzhenxun/builtin_plugins/superuser/broadcast/utils.py145 except Exception as e:CODE
483 more matches not shown…
Unused Imports546 hits · 516 pts
SeverityFileLineSnippetContext
LOWscripts/auth_stage3_perf_summary.py1CODE
LOWzhenxun/cli.py9CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py22CODE
LOWzhenxun/ui/__init__.py36CODE
LOWzhenxun/ui/models/__init__.py1CODE
LOWzhenxun/ui/models/__init__.py1CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py5CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py12CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/__init__.py39CODE
LOWzhenxun/ui/models/core/containers.py10CODE
LOWzhenxun/ui/models/core/__init__.py1CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py2CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
LOWzhenxun/ui/models/core/__init__.py12CODE
486 more matches not shown…
Hyper-Verbose Identifiers292 hits · 290 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py26def pytest_collection_modifyitems(items: list[pytest.Item]):CODE
LOW…sts/builtin_plugins/plugin_store/test_remove_plugin.py66async def test_plugin_not_exist_remove(CODE
LOW…sts/builtin_plugins/plugin_store/test_remove_plugin.py99async def test_remove_plugin_not_install(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py17async def test_update_plugin_basic_need_update(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py68async def test_update_plugin_basic_is_new(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py118async def test_plugin_not_exist_update(CODE
LOW…sts/builtin_plugins/plugin_store/test_update_plugin.py157async def test_update_plugin_not_install(CODE
LOW…sts/builtin_plugins/plugin_store/test_search_plugin.py58async def test_search_plugin_author(CODE
LOW…sts/builtin_plugins/plugin_store/test_search_plugin.py100async def test_plugin_not_exist_search(CODE
LOW…builtin_plugins/plugin_store/test_update_all_plugin.py17async def test_update_all_plugin_basic_need_update(CODE
LOW…builtin_plugins/plugin_store/test_update_all_plugin.py68async def test_update_all_plugin_basic_is_new(CODE
LOWtests/builtin_plugins/plugin_store/test_add_plugin.py66async def test_add_plugin_basic_commit_version(CODE
LOWtests/builtin_plugins/plugin_store/test_add_plugin.py113async def test_add_plugin_basic_is_not_dir(CODE
LOWtests/builtin_plugins/plugin_store/test_add_plugin.py207async def test_plugin_not_exist_add(CODE
LOWtests/builtin_plugins/auto_update/test_check_update.py77def add_files_and_folders_to_zip(CODE
LOWtests/builtin_plugins/auto_update/test_check_update.py110def add_files_and_folders_to_tar(CODE
LOWtests/builtin_plugins/auto_update/test_check_update.py229async def test_check_update_release(CODE
LOWscripts/bot_check.py31def _collect_loaded_plugin_names() -> set[str]:CODE
LOWzhenxun/cli.py249def _get_worker_creationflags() -> int:CODE
LOWzhenxun/builtin_plugins/withdraw.py53def _resolve_delete_message_id(bot: Bot, reply_id: str | int):STRING
LOWzhenxun/builtin_plugins/statistics/statistics_hook.py111async def _flush_statistics_on_shutdown():CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py56 def _resolve_local_plugin_path(CODE
LOWzhenxun/builtin_plugins/sign_in/utils.py68def _is_sign_card_cache_stale(card_file: Path) -> bool:CODE
LOWzhenxun/builtin_plugins/sign_in/utils.py141def get_level_and_next_impression(impression: float) -> tuple[int, int | float, int]:CODE
LOWzhenxun/builtin_plugins/chat_history/chat_message.py54async def _write_chat_history_batch(batch: list[ChatHistory], reason: str) -> None:CODE
LOW…uiltin_plugins/platform/qq/group_handle/data_source.py50async def _safe_get_group_member_info(bot: Bot, group_id: str, user_id: str) -> dict:CODE
LOW…uiltin_plugins/platform/qq/group_handle/data_source.py76async def _refresh_member_info_async(CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py26 async def _calculate_affected_groups(CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py294 async def batch_set_group_active_status(CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/ui.py221async def render_group_active_status(bot: Bot) -> bytes:CODE
LOWzhenxun/builtin_plugins/superuser/reload_setting.py61def _get_auto_reload_interval() -> int:STRING
LOWzhenxun/builtin_plugins/superuser/reload_setting.py80def _reschedule_auto_reload_job() -> None:STRING
LOWzhenxun/builtin_plugins/superuser/reload_setting.py99async def _reload_plugin_limit_config() -> None:STRING
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py70 def get_last_broadcast_msg_ids(cls) -> dict[str, int]:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py75 def clear_last_broadcast_msg_ids(cls) -> None:CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py232 async def _extract_message_id_from_result(CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py314 async def _check_group_availability(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py168async def _create_custom_node_from_data(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py190async def _extract_broadcast_content(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py446async def _extract_content_from_message(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py527async def get_broadcast_target_groups(CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py623async def send_broadcast_and_notify(CODE
LOWzhenxun/builtin_plugins/llm_manager/data_source.py217 async def add_mcp_servers_from_json(json_str: str) -> tuple[bool, str]:CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py29 async def format_model_list_as_image(CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py67 async def format_model_details_as_markdown_image(details: dict[str, Any]) -> bytes:CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py111 async def format_key_status_as_image(CODE
LOWzhenxun/builtin_plugins/mahiro_bank/data_source.py140 async def complete_projected_revenue(cls, user_id: str) -> int:CODE
LOWzhenxun/builtin_plugins/hooks/limiter_hook.py8async def _concurrency_release_hook(matcher: Matcher):CODE
LOWzhenxun/builtin_plugins/hooks/auth_hook.py50async def _start_auth_runtime_tasks():CODE
LOWzhenxun/builtin_plugins/hooks/auth_hook.py70async def _drop_message_before_cache_ready(event: Event):CODE
LOWzhenxun/builtin_plugins/hooks/auth_legacy_fallback.py13async def legacy_pure_auth_fallback(CODE
LOWzhenxun/builtin_plugins/hooks/auth_patch_guard.py39def validate_handle_event_patch() -> AuthPatchGuardResult:CODE
LOWzhenxun/builtin_plugins/hooks/auth_profile.py54def build_plugin_auth_profile(plugin, *, has_limit: bool = False) -> PluginAuthProfile:CODE
LOWzhenxun/builtin_plugins/hooks/auth_side_effect.py91 def limit_should_auto_unblock(self) -> bool:CODE
LOWzhenxun/builtin_plugins/hooks/auth_runtime_config.py105def _default_passive_db_limit() -> int:CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py46def _matcher_deadline_for_lane(lane: str) -> float:CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py62async def _run_matcher_with_deadline(CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py107def _ensure_nonempty_qq_message(message: Any) -> None:CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py116def _normalize_qq_self_at_message(bot: Bot, event: Event) -> None:CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py315def install_handle_event_selector(deps: HandleEventSelectorDependencies) -> None:CODE
232 more matches not shown…
Deep Nesting280 hits · 272 pts
SeverityFileLineSnippetContext
LOWzhenxun/cli.py169CODE
LOWzhenxun/cli.py264CODE
LOWzhenxun/cli.py307CODE
LOWzhenxun/cli.py394CODE
LOWzhenxun/ui/models/charts.py133CODE
LOWzhenxun/ui/models/core/base.py15CODE
LOWzhenxun/builtin_plugins/withdraw.py62CODE
LOWzhenxun/builtin_plugins/__init__.py90CODE
LOWzhenxun/builtin_plugins/catchphrase.py19CODE
LOWzhenxun/builtin_plugins/plugin_store/data_source.py597CODE
LOWzhenxun/builtin_plugins/init/init_config.py59CODE
LOWzhenxun/builtin_plugins/init/manager.py74CODE
LOWzhenxun/builtin_plugins/init/manager.py204CODE
LOWzhenxun/builtin_plugins/init/manager.py215CODE
LOWzhenxun/builtin_plugins/init/manager.py226CODE
LOWzhenxun/builtin_plugins/init/manager.py315CODE
LOW…un/builtin_plugins/chat_history/chat_message_handle.py96CODE
LOWzhenxun/builtin_plugins/shop/_data_source.py248CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py59CODE
LOW…xun/builtin_plugins/admin/plugin_switch/data_source.py188CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/ui.py122CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/ui.py283CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py143CODE
LOWzhenxun/builtin_plugins/admin/ban/_data_source.py24CODE
LOW…ltin_plugins/admin/group_member_update/_data_source.py22CODE
LOW…/builtin_plugins/admin/group_member_update/__init__.py194CODE
LOW…n/builtin_plugins/admin/welcome_message/data_source.py96CODE
LOWzhenxun/builtin_plugins/scheduler/auto_backup.py34CODE
LOWzhenxun/builtin_plugins/scheduler/chat_check.py30CODE
LOWzhenxun/builtin_plugins/superuser/exec_sql.py73CODE
LOWzhenxun/builtin_plugins/superuser/clear_data.py59CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py198CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py382CODE
LOW…xun/builtin_plugins/superuser/plugin_config_manager.py522CODE
LOWzhenxun/builtin_plugins/superuser/request_manage.py188CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py232CODE
LOW…iltin_plugins/superuser/broadcast/broadcast_manager.py486CODE
LOWzhenxun/builtin_plugins/superuser/broadcast/utils.py11CODE
LOWzhenxun/builtin_plugins/superuser/broadcast/utils.py112CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py36CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py190CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py357CODE
LOW…iltin_plugins/superuser/broadcast/message_processor.py446CODE
LOWzhenxun/builtin_plugins/llm_manager/data_source.py173CODE
LOWzhenxun/builtin_plugins/llm_manager/presenters.py111CODE
LOWzhenxun/builtin_plugins/hooks/auth_hook.py141CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py149CODE
LOWzhenxun/builtin_plugins/hooks/call_hook.py14CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py533CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py674CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py904CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py1046CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py1153CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py299CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py329CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py354CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py866CODE
LOWzhenxun/builtin_plugins/hooks/auth_checker.py1002CODE
LOWzhenxun/builtin_plugins/hooks/auth_snapshot.py208CODE
LOWzhenxun/builtin_plugins/hooks/auth/auth_admin.py17CODE
220 more matches not shown…
Modern Structural Boilerplate110 hits · 112 pts
SeverityFileLineSnippetContext
LOWzhenxun/ui/__init__.py425__all__ = [CODE
LOWzhenxun/ui/models/__init__.py48__all__ = [CODE
LOWzhenxun/ui/models/core/containers.py12__all__ = [CODE
LOWzhenxun/ui/models/core/__init__.py40__all__ = [CODE
LOWzhenxun/ui/models/core/content.py16__all__ = [CODE
LOWzhenxun/ui/models/core/base.py12__all__ = ["ContainerComponent", "RenderableComponent"]CODE
LOWzhenxun/ui/models/components/feedback.py8__all__ = ["Alert", "Badge", "ProgressBar"]CODE
LOWzhenxun/ui/models/components/__init__.py5__all__ = [CODE
LOWzhenxun/ui/models/components/display.py7__all__ = ["Avatar", "AvatarGroup", "Divider", "Rectangle", "UserInfoBlock"]CODE
LOWzhenxun/ui/models/components/data.py7__all__ = ["KpiCard", "Timeline", "TimelineItem"]CODE
LOWzhenxun/ui/models/presets/plugin_menu.py5__all__ = [CODE
LOWzhenxun/ui/models/presets/plugin_help_page.py5__all__ = [CODE
LOWzhenxun/ui/models/presets/__init__.py9__all__ = [CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py50 async def set_default_status(self, entity: Any, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py62 async def set_all_default_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py67 async def set_all_global_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py113 async def set_default_status(self, entity: PluginInfo, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py124 async def set_all_default_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py130 async def set_all_global_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py164 async def set_default_status(self, entity: TaskInfo, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py174 async def set_all_default_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/strategy.py179 async def set_all_global_status(self, status: bool) -> None:CODE
LOWzhenxun/builtin_plugins/hooks/auth_policy.py262__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_legacy_fallback.py54__all__ = ["legacy_pure_auth_fallback"]CODE
LOWzhenxun/builtin_plugins/hooks/auth_profile.py122__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_event_selector.py361__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_types.py57__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_activation.py1554__all__ = [CODE
LOWzhenxun/builtin_plugins/hooks/auth_trace.py37__all__ = ["HookTraceRecorder"]CODE
LOWzhenxun/builtin_plugins/hooks/auth_snapshot.py395__all__ = ["AuthSnapshot", "build_auth_snapshot", "get_or_build_auth_snapshot"]CODE
LOWzhenxun/builtin_plugins/hooks/auth/data_provider.py143__all__ = [CODE
LOWzhenxun/builtin_plugins/scheduler_admin/__init__.py8__all__ = ["commands", "handlers"]CODE
LOWzhenxun/utils/pydantic_compat.py63__all__ = [CODE
LOWzhenxun/utils/repo_utils/__init__.py34__all__ = [CODE
LOWzhenxun/utils/github_utils/__init__.py7__all__ = [CODE
LOWzhenxun/models/bot_console.py159 async def set_bot_status(cls, status: bool, bot_id: str | None = None) -> None:CODE
LOWzhenxun/configs/config.py8__all__ = ["BotConfig", "Config"]CODE
LOWzhenxun/configs/utils/models.py10__all__ = [CODE
LOWzhenxun/configs/utils/__init__.py526__all__ = [CODE
LOWzhenxun/services/__init__.py35__all__ = [CODE
LOWzhenxun/services/data_access.py58 def set_null_result_ttl(cls, seconds: int) -> None:CODE
LOWzhenxun/services/runtime_bootstrap.py122 async def _setup_runtime_concurrency() -> None:CODE
LOWzhenxun/services/renderer/theme.py401 def _set_asset_resolution_cache(self, key: tuple[str, str], value: str) -> None:CODE
LOWzhenxun/services/renderer/theme.py409 def _set_global_template_cache(self, key: str, value: str) -> None:CODE
LOWzhenxun/services/renderer/__init__.py22__all__ = ["RenderResult", "Renderable", "renderer_service"]CODE
LOWzhenxun/services/renderer/engine.py492 def _update_rss_baseline_nolock(self, current_rss: int) -> None:STRING
LOWzhenxun/services/llm/__init__.py363__all__ = [CODE
LOWzhenxun/services/db_context/__init__.py42__all__ = [CODE
LOWzhenxun/services/cache/__init__.py75__all__ = [CODE
LOWzhenxun/services/cache/runtime_cache.py926 def set_plugin(cls, plugin) -> None:CODE
LOWzhenxun/services/cache/runtime_cache.py1110 async def update_status(cls, bot_id: str | None, status: bool) -> None:CODE
LOWzhenxun/services/scheduler/__init__.py13__all__ = ["ExecutionPolicy", "ScheduleContext", "Trigger", "scheduler_manager"]CODE
LOWzhenxun/services/scheduler/targeting.py17__all__ = [CODE
LOWzhenxun/services/tags/__init__.py11__all__ = ["tag_manager"]CODE
LOWzhenxun/services/ai/__init__.py7__all__ = [CODE
LOWzhenxun/services/ai/tools/models.py368__all__ = [CODE
LOWzhenxun/services/ai/tools/__init__.py23__all__ = [CODE
LOWzhenxun/services/ai/tools/core/__init__.py13__all__ = [CODE
LOWzhenxun/services/ai/tools/core/decorators.py414__all__ = [CODE
LOWzhenxun/services/ai/tools/providers/mcp/provider.py216 def _setup_toolkit(self, name: str, conf: MCPServerConfig) -> None:CODE
50 more matches not shown…
Cross-Language Confusion5 hits · 32 pts
SeverityFileLineSnippetContext
HIGHzhenxun/models/chat_history.py152 "alter table chat_history alter group_id drop not null;",CODE
HIGHzhenxun/models/chat_history.py154 "alter table chat_history alter text drop not null;",CODE
HIGHzhenxun/models/chat_history.py156 "alter table chat_history alter plain_text drop not null;",CODE
HIGHzhenxun/services/renderer/engine.py792 document.fonts && document.fonts.size > 0CODE
HIGHzhenxun/services/ai/sandbox/runtimes.py278 await self.session.run_process("pkill -9 -f jupyter-server || true")CODE
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWzhenxun/ui/models/core/content.py86CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py143CODE
LOWzhenxun/builtin_plugins/admin/plugin_switch/__init__.py286CODE
LOWzhenxun/builtin_plugins/scheduler_admin/handlers.py61CODE
LOWzhenxun/utils/decorator/retry.py123CODE
LOWzhenxun/utils/decorator/shop.py186CODE
LOWzhenxun/services/llm/__init__.py335CODE
LOWzhenxun/services/scheduler/targeting.py35CODE
LOWzhenxun/services/scheduler/targeting.py46CODE
LOWzhenxun/services/scheduler/manager.py393CODE
LOWzhenxun/services/ai/tools/providers/mcp/toolkit.py263CODE
LOWzhenxun/services/ai/context/memory/capabilities.py32CODE
LOWzhenxun/services/ai/context/knowledge/vector.py61CODE
LOWzhenxun/services/ai/sandbox/runtimes.py557CODE
LOWzhenxun/services/ai/flow/agent/agent.py334CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHzhenxun/services/ai/config/manager.py21 "api_key": "YOUR_API_KEY",CODE
HIGHzhenxun/services/ai/config/manager.py57 "api_key": "YOUR_API_KEY",CODE
HIGHzhenxun/services/ai/config/manager.py93 "api_key": "YOUR_API_KEY",CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHzhenxun/builtin_plugins/plugin_store/data_source.py0被动技能文本风格 参数: column: 表头 text: 文本内容 返回: rowstyle: rowstyleSTRING
HIGHzhenxun/builtin_plugins/superuser/bot_manage/task.py0被动技能文本风格 参数: column: 表头 text: 文本内容 返回: rowstyle: rowstyleSTRING
HIGHzhenxun/builtin_plugins/superuser/bot_manage/plugin.py0被动技能文本风格 参数: column: 表头 text: 文本内容 返回: rowstyle: rowstyleSTRING
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql.yml61 uses: github/codeql-action/init@v3COMMENT
LOWzhenxun/builtin_plugins/init/init_plugin.py141 # for limit in limit_list:COMMENT
LOWzhenxun/builtin_plugins/superuser/fg_manage.py41)COMMENT
LOWzhenxun/builtin_plugins/mahiro_bank/__init__.py221COMMENT
LOWzhenxun/builtin_plugins/mahiro_bank/__init__.py241# )COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/codeql.yml53 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMzhenxun/models/level_user.py112CODE