Repository Analysis

Thysrael/Horizon

📡 Your own AI-powered news radar. Generates daily briefings in English & Chinese. | 用 AI 构建你专属的新闻雷达

28.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Thysrael/Horizon, a Python project with 8,166 GitHub stars. SynthScan v2.0 examined 21,843 lines of code across 109 source files, recording 516 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 28.3 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).

28.3
Adjusted Score
28.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.2K
Stars
Python
Language
21.8K
Lines of Code
109
Files
516
Pattern Hits
2026-07-14
Scan Date
0.07
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 8MEDIUM 21LOW 487

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 516 distinct pattern matches across 17 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 Identifiers318 hits · 321 pts
SeverityFileLineSnippetContext
LOWtests/test_extractors_trafilatura.py38def test_returns_extracted_text():CODE
LOWtests/test_extractors_trafilatura.py46def test_returns_none_when_trafilatura_returns_empty():CODE
LOWtests/test_extractors_trafilatura.py53def test_returns_none_on_http_error():CODE
LOWtests/test_extractors_trafilatura.py60def test_returns_none_when_trafilatura_raises():CODE
LOWtests/test_extractors_trafilatura.py69def test_returns_none_when_not_installed():CODE
LOWtests/test_telegram.py16def test_parse_message_ignores_reply_preview_text() -> None:CODE
LOWtests/test_telegram.py54def test_parse_channel_html_keeps_supported_messages() -> None:STRING
LOWtests/test_telegram.py73def test_fetch_channel_uses_alternate_domain_after_dns_failure() -> None:STRING
LOWtests/test_telegram.py102def test_fetch_raises_when_all_telegram_endpoints_fail() -> None:STRING
LOWtests/test_mcp_adapter.py19def test_resolve_horizon_path_accepts_explicit_repo() -> None:CODE
LOWtests/test_mcp_adapter.py25def test_resolve_config_path_defaults_to_repo_data_config(tmp_path: Path) -> None:CODE
LOWtests/test_mcp_adapter.py34def test_load_mcp_secrets_loads_generic_env_keys(tmp_path: Path, monkeypatch) -> None:CODE
LOWtests/test_mcp_adapter.py61def test_load_config_expands_env_vars(tmp_path: Path, monkeypatch) -> None:CODE
LOWtests/test_mcp_adapter.py86def test_apply_source_filter_handles_twitter_and_openbb() -> None:CODE
LOWtests/test_mcp_adapter.py114def test_mcp_source_registry_covers_model_source_types() -> None:CODE
LOWtests/test_mcp_adapter.py118def test_mcp_filter_and_reporting_support_every_registered_source() -> None:CODE
LOWtests/test_analyzer.py22def test_analyze_batch_does_not_sleep_by_default(monkeypatch):CODE
LOWtests/test_analyzer.py42def test_analyze_batch_sleeps_between_items_when_throttle_configured(monkeypatch):CODE
LOWtests/test_analyzer.py62def test_analyze_batch_concurrent_processing(monkeypatch):CODE
LOWtests/test_analyzer.py85def test_analyze_batch_concurrent_preserves_order(monkeypatch):CODE
LOWtests/test_analyzer.py101def test_analyze_item_accepts_valid_result():CODE
LOWtests/test_analyzer.py134def test_analyze_item_malformed_json_result_uses_fallback(result):CODE
LOWtests/test_webhook.py118 def test_short_value_not_truncated(self):CODE
LOWtests/test_webhook.py123 def test_truncate_by_segments(self):CODE
LOWtests/test_webhook.py130 def test_single_segment_exceeds_limit_still_kept(self):CODE
LOWtests/test_webhook.py137 def test_no_split_delimiter_in_value(self):CODE
LOWtests/test_webhook.py163 def test_plain_key_without_params(self):CODE
LOWtests/test_webhook.py169 def test_key_with_limit_and_split(self):CODE
LOWtests/test_webhook.py177 def test_key_with_limit_no_truncation_needed(self):CODE
LOWtests/test_webhook.py184 def test_missing_variable_with_params(self):CODE
LOWtests/test_webhook.py1251 def test_unsafe_url_raises_value_error(self, url):CODE
LOWtests/test_webhook.py1260 def test_no_hostname_raises_value_error(self):CODE
LOWtests/test_webhook.py1268 def test_wrong_scheme_raises_value_error(self):CODE
LOWtests/test_webhook.py1279 def test_invalid_port_raises_value_error(self):CODE
LOWtests/test_webhook.py1287 def test_empty_env_var_value_raises_value_error(self):CODE
LOWtests/test_webhook.py1295 def test_env_var_not_set_sets_url_none(self):CODE
LOWtests/test_webhook.py1302 def test_url_env_null_sets_url_none(self):CODE
LOWtests/test_webhook.py1308 def test_whitespace_url_stripped_and_validated(self):CODE
LOWtests/test_webhook.py1316 def test_shell_escape_artifacts_stripped(self):CODE
LOWtests/test_webhook.py1634 def test_invalid_delivery_raises_validation_error(self):CODE
LOWtests/test_webhook.py1638 def test_invalid_platform_raises_validation_error(self):CODE
LOWtests/test_webhook.py1642 def test_invalid_layout_raises_validation_error(self):CODE
LOWtests/test_webhook.py1646 def test_invalid_fallback_layout_raises_validation_error(self):CODE
LOWtests/test_webhook.py1650 def test_invalid_overview_position_raises_validation_error(self):CODE
LOWtests/test_webhook.py1654 def test_all_valid_values_pass(self):CODE
LOWtests/test_webhook.py57 def test_summary_with_multiline_content(self):CODE
LOWtests/test_webhook.py92 def test_non_string_values_preserved(self):CODE
LOWtests/test_webhook.py106 def test_summary_with_quotes_safely_replaced(self):CODE
LOWtests/test_webhook.py148 def test_exact_limit_with_join(self):CODE
LOWtests/test_webhook.py198 def test_mix_of_plain_and_parameterized(self):CODE
LOWtests/test_webhook.py207 def test_details_references_are_flattened_for_webhook(self):CODE
LOWtests/test_webhook.py432 def test_disabled_webhook_skips_notification(self):CODE
LOWtests/test_webhook.py443 def test_empty_url_env_skips_notification(self):CODE
LOWtests/test_webhook.py454 def test_get_request_when_no_body(self):CODE
LOWtests/test_webhook.py479 def test_post_request_with_json_body(self):CODE
LOWtests/test_webhook.py511 def test_post_request_with_json_str_body_containing_summary(self):CODE
LOWtests/test_webhook.py550 def test_post_request_with_json_str_body_summary_with_quotes_breaks_json(self):CODE
LOWtests/test_webhook.py590 def test_post_request_with_form_body(self):CODE
LOWtests/test_webhook.py647 def test_post_request_with_dict_body(self):CODE
LOWtests/test_webhook.py690 def test_post_request_with_dict_body_and_special_chars(self):CODE
258 more matches not shown…
Excessive Try-Catch Wrapping60 hits · 61 pts
SeverityFileLineSnippetContext
LOWsrc/orchestrator.py298 except Exception as e:CODE
LOWsrc/orchestrator.py335 except Exception as e:CODE
LOWsrc/orchestrator.py456 except Exception as exc:CODE
LOWsrc/orchestrator.py598 except Exception as e:CODE
LOWsrc/orchestrator.py836 except Exception as exc:CODE
LOWsrc/main.py71 except Exception as e:CODE
LOWsrc/main.py82 except Exception as e:CODE
LOWsrc/setup/ai_recommend.py49 except Exception:CODE
LOWsrc/mcp/service.py683 except Exception:CODE
LOWsrc/mcp/server.py101 except Exception as exc:CODE
LOWsrc/mcp/server.py117 except Exception as exc:CODE
LOWsrc/mcp/server.py301 except Exception as exc:CODE
LOWsrc/mcp/server.py323 except Exception as exc:CODE
LOWsrc/mcp/server.py345 except Exception as exc:CODE
LOWsrc/mcp/server.py367 except Exception as exc:CODE
LOWsrc/mcp/server.py389 except Exception as exc:CODE
LOWsrc/mcp/horizon_adapter.py127 except Exception as exc: # pragma: no cover - import failure edge caseCODE
LOWsrc/mcp/horizon_adapter.py156 except Exception as exc:CODE
LOWsrc/mcp/horizon_adapter.py258 except Exception as exc:CODE
LOWsrc/ai/client.py273 except Exception as exc:CODE
LOWsrc/ai/client.py417 except Exception as exc:CODE
LOWsrc/ai/client.py599 except Exception as exc:CODE
LOWsrc/ai/analyzer.py63 except Exception as e:CODE
MEDIUMsrc/ai/analyzer.py64 print(f"Error analyzing item {item.id}: {e}")CODE
LOWsrc/ai/enricher.py52 except Exception as e:CODE
MEDIUMsrc/ai/enricher.py53 print(f"Error enriching item {item.id}: {e}, falling back to translation")CODE
LOWsrc/ai/enricher.py86 except Exception:CODE
LOWsrc/ai/enricher.py129 except Exception:CODE
LOWsrc/ai/enricher.py258 except Exception:CODE
LOWsrc/scrapers/rss.py133 except Exception as e:CODE
LOWsrc/scrapers/rss.py159 except Exception:CODE
LOWsrc/scrapers/twitter_playwright.py133 except Exception as exc:CODE
LOWsrc/scrapers/twitter_playwright.py247 except Exception as exc:CODE
LOWsrc/scrapers/twitter_playwright.py278 except Exception as exc:CODE
LOWsrc/scrapers/twitter_playwright.py309 except Exception:CODE
LOWsrc/scrapers/twitter_playwright.py344 except Exception as exc:CODE
LOWsrc/scrapers/twitter_playwright.py388 except Exception as exc:CODE
LOWsrc/scrapers/twitter.py86 except Exception as exc:CODE
LOWsrc/scrapers/twitter.py103 except Exception as exc:CODE
LOWsrc/scrapers/twitter.py116 except Exception as exc:CODE
LOWsrc/scrapers/twitter.py152 except Exception as exc:CODE
LOWsrc/scrapers/twitter.py312 except Exception as exc:CODE
LOWsrc/scrapers/gdelt.py100 except Exception as exc:CODE
LOWsrc/scrapers/gdelt.py121 except Exception as exc:CODE
LOWsrc/scrapers/gdelt.py165 except Exception as exc:CODE
LOWsrc/scrapers/reddit.py63 except Exception as e:CODE
LOWsrc/scrapers/reddit.py70 except Exception as e:CODE
LOWsrc/scrapers/reddit.py368 except Exception:CODE
LOWsrc/scrapers/google_news.py109 except Exception as exc:CODE
LOWsrc/scrapers/google_news.py170 except Exception as exc:CODE
LOWsrc/scrapers/google_news.py200 except Exception:CODE
LOWsrc/scrapers/google_news.py215 except Exception:CODE
LOWsrc/scrapers/openbb.py100 except Exception as exc:CODE
LOWsrc/extractors/trafilatura.py39 except Exception as e:CODE
LOWsrc/services/webhook.py650 except Exception as e:CODE
LOWsrc/services/email.py151 except Exception as e:CODE
LOWsrc/services/email.py216 except Exception as e:STRING
LOWsrc/services/email.py219 except Exception as e:STRING
LOWsrc/services/email.py238 except Exception as e:CODE
LOWsrc/services/webhook_cli.py209 except Exception as e:CODE
Decorative Section Separators16 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_category_wiring.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py101# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py103# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py71# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_category_wiring.py265# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_category_wiring.py267# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_category_wiring.py302# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_category_wiring.py304# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_twitter.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_twitter.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_twitter.py290# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_twitter.py292# ---------------------------------------------------------------------------COMMENT
Unused Imports44 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/test_extractors_trafilatura.py1CODE
LOWtests/test_mcp_adapter.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_chained_client.py4CODE
LOWtests/test_chained_client.py4CODE
LOWtests/test_gdelt.py1CODE
LOWtests/test_url_security.py1CODE
LOWtests/test_rss.py1CODE
LOWtests/test_mcp_run_store.py1CODE
LOWtests/test_azure_client.py3CODE
LOWtests/test_storage.py3CODE
LOWtests/test_fetch_reporting.py1CODE
LOWtests/test_minimax_client.py3CODE
LOWtests/test_minimax_client.py6CODE
LOWtests/test_setup_wizard.py1CODE
LOWtests/test_google_news.py1CODE
LOWtests/test_category_wiring.py6CODE
LOWtests/test_category_wiring.py181CODE
LOWtests/test_extractors_registry.py1CODE
LOWtests/test_mcp_service_smoke.py1CODE
LOWtests/test_openbb_scraper.py14CODE
LOWscripts/check_mcp.py4CODE
LOWsrc/url_security.py3CODE
LOWsrc/setup/wizard.py3CODE
LOWsrc/setup/wizard.py6CODE
LOWsrc/setup/ai_recommend.py4CODE
LOWsrc/mcp/service.py3CODE
LOWsrc/mcp/server.py3CODE
LOWsrc/mcp/errors.py3CODE
LOWsrc/mcp/run_store.py3CODE
LOWsrc/mcp/horizon_adapter.py3CODE
LOWsrc/ai/analyzer.py4CODE
LOWsrc/ai/analyzer.py5CODE
LOWsrc/ai/tokens.py7CODE
LOWsrc/ai/enricher.py9CODE
LOWsrc/ai/enricher.py10CODE
LOWsrc/ai/summarizer.py5CODE
LOWsrc/scrapers/telegram.py6CODE
LOWsrc/scrapers/gdelt.py22CODE
LOWsrc/scrapers/google_news.py27CODE
LOWsrc/scrapers/openbb.py27CODE
LOWsrc/extractors/__init__.py1CODE
LOWsrc/extractors/__init__.py2CODE
LOWsrc/extractors/__init__.py3CODE
Deep Nesting25 hits · 25 pts
SeverityFileLineSnippetContext
LOWsrc/orchestrator.py185CODE
LOWsrc/orchestrator.py505CODE
LOWsrc/orchestrator.py554CODE
LOWsrc/orchestrator.py686CODE
LOWsrc/setup/presets.py137CODE
LOWsrc/setup/presets.py281CODE
LOWsrc/setup/wizard.py129CODE
LOWsrc/setup/wizard.py191CODE
LOWsrc/mcp/service.py38CODE
LOWsrc/mcp/service.py687CODE
LOWsrc/mcp/horizon_adapter.py177CODE
LOWsrc/ai/client.py533CODE
LOWsrc/ai/markdown_utils.py62CODE
LOWsrc/ai/markdown_utils.py65CODE
LOWsrc/ai/utils.py8CODE
LOWsrc/scrapers/rss.py61CODE
LOWsrc/scrapers/rss.py138CODE
LOWsrc/scrapers/twitter_playwright.py200CODE
LOWsrc/scrapers/twitter_playwright.py205CODE
LOWsrc/scrapers/github.py115CODE
LOWsrc/scrapers/reddit.py355CODE
LOWsrc/scrapers/google_news.py189CODE
LOWsrc/services/webhook.py324CODE
LOWsrc/services/email.py54CODE
LOWsrc/services/email.py154CODE
Verbosity Indicators9 hits · 19 pts
SeverityFileLineSnippetContext
LOWsrc/setup/wizard.py363 # Step 1: AI configurationCOMMENT
LOWsrc/setup/wizard.py369 # Step 2: Interest descriptionCOMMENT
LOWsrc/setup/wizard.py372 # Step 3: Preset library matchingCOMMENT
LOWsrc/setup/wizard.py394 # Step 4: AI recommendations (optional)COMMENT
LOWsrc/setup/wizard.py413 # Step 5: Interactive source selectionCOMMENT
LOWsrc/setup/wizard.py419 # Step 6: Build configCOMMENT
LOWsrc/ai/enricher.py158 # Step 1: AI identifies concepts to explainCOMMENT
LOWsrc/ai/enricher.py161 # Step 2: Search web for each conceptCOMMENT
LOWsrc/ai/enricher.py175 # Step 3: AI generates background grounded in search resultsCOMMENT
Structural Annotation Overuse9 hits · 19 pts
SeverityFileLineSnippetContext
LOWsrc/setup/wizard.py363 # Step 1: AI configurationCOMMENT
LOWsrc/setup/wizard.py369 # Step 2: Interest descriptionCOMMENT
LOWsrc/setup/wizard.py372 # Step 3: Preset library matchingCOMMENT
LOWsrc/setup/wizard.py394 # Step 4: AI recommendations (optional)COMMENT
LOWsrc/setup/wizard.py413 # Step 5: Interactive source selectionCOMMENT
LOWsrc/setup/wizard.py419 # Step 6: Build configCOMMENT
LOWsrc/ai/enricher.py158 # Step 1: AI identifies concepts to explainCOMMENT
LOWsrc/ai/enricher.py161 # Step 2: Search web for each conceptCOMMENT
LOWsrc/ai/enricher.py175 # Step 3: AI generates background grounded in search resultsCOMMENT
Modern Structural Boilerplate15 hits · 15 pts
SeverityFileLineSnippetContext
LOWsrc/mcp/__init__.py3__all__ = ["__version__"]CODE
LOWsrc/scrapers/hackernews.py13logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/rss.py18logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/telegram.py15logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/twitter_playwright.py17logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/twitter.py16logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/gdelt.py33logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/github.py12logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/reddit.py24logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/google_news.py43logger = logging.getLogger(__name__)CODE
LOWsrc/scrapers/openbb.py39logger = logging.getLogger(__name__)CODE
LOWsrc/extractors/__init__.py5__all__ = ["BaseExtractor", "ExtractorRegistry", "TrafilaturaExtractor"]CODE
LOWsrc/extractors/trafilatura.py12logger = logging.getLogger(__name__)CODE
LOWsrc/services/webhook.py19logger = logging.getLogger(__name__)CODE
LOWsrc/services/email.py22logger = logging.getLogger(__name__)CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/ai/analyzer.py0try multiple strategies to extract a json object from an ai response. returns the parsed dict, or none if all strategiesSTRING
HIGHsrc/ai/enricher.py0try multiple strategies to extract a json object from an ai response. returns the parsed dict, or none if all strategiesSTRING
HIGHsrc/ai/utils.py0try multiple strategies to extract a json object from an ai response. returns the parsed dict, or none if all strategiesSTRING
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/main.py126 "max_items": null,CODE
HIGHsrc/scrapers/twitter_playwright.py82 "Playwright not installed. Run: uv sync --extra twitter && uv run playwright install chromium"CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/setup/presets.py105Load presets from API (preferred) or local file (fallback). Args: presets_path: Path to the local presets JSTRING
HIGHsrc/ai/client.py669Factory function to create appropriate AI client. Args: config: AI configuration Returns: AIClSTRING
Fake / Example Data6 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/test_email.py59 manager.send_daily_summary("# Hello", "Daily", ["user@example.com"])CODE
LOWtests/test_email.py66 assert smtp.messages[0]["To"] == "user@example.com"CODE
LOWtests/test_email.py77 manager.send_daily_summary("# Hello", "Daily", ["user@example.com"])CODE
LOWtests/test_email.py90 "# Hello\n\n<img src=x onerror=alert(1)>", "Daily", ["user@example.com"]CODE
LOWtests/test_email.py119 manager.send_daily_summary(summary, "Daily", ["user@example.com"])STRING
LOWtests/test_email.py154 manager.send_daily_summary(summary, "Daily", ["user@example.com"])STRING
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/ai/analyzer.py158 # Parse JSON response with robust fallbackCOMMENT
MEDIUMsrc/ai/enricher.py193 # Parse JSON response with robust fallbackCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/ai/client.py52 f"Set {expected_env}=your_api_key in .env or your shell, then set "CODE
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_mcp_adapter.py26 # Create a temporary config.json so resolve_config_path doesn't raiseCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/mcp/service.py553CODE
LOWsrc/mcp/server.py262CODE
Redundant / Tautological Comments1 hit · 0 pts
SeverityFileLineSnippetContext
LOWsrc/setup/wizard.py81 # Check if the key is actually setSTRING