Repository Analysis

ricequant/rqalpha

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities

12.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ricequant/rqalpha, a Python project with 6,637 GitHub stars. SynthScan v2.0 examined 58,733 lines of code across 238 source files, recording 674 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 12.2 places this repository in the Low 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).

12.2
Adjusted Score
12.2
Raw Score
100%
Time Factor
2026-07-23
Last Push
6.6K
Stars
Python
Language
58.7K
Lines of Code
238
Files
674
Pattern Hits
2026-08-02
Scan Date
0.03
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 2HIGH 4MEDIUM 8LOW 660

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 674 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.

Unused Imports210 hits · 210 pts
SeverityFileLineSnippetContext
LOWsetup.py14CODE
LOWtests/unittest/test_models/test_instruments.py13CODE
LOWtests/integration_tests/test_api/test_api_base.py22CODE
LOWtests/integration_tests/test_api/test_position_queue.py22CODE
LOWtests/integration_tests/test_api/test_config.py22CODE
LOWtests/integration_tests/test_api/test_config.py25CODE
LOWtests/integration_tests/test_api/test_api_stock.py21CODE
LOW…_tests/test_api/mod/sys_accounts/test_margin_stocks.py17CODE
LOW…_tests/test_api/mod/sys_accounts/test_margin_stocks.py47CODE
LOW…ests/test_api/mod/sys_accounts/test_position_models.py18CODE
LOW…mod/sys_accounts/test_futures_settlement_price_type.py17CODE
LOW…_tests/test_api/mod/sys_accounts/test_account_model.py22CODE
LOW…s/test_api/mod/sys_analyser/test_negative_benchmark.py19CODE
LOW…ion_tests/test_api/mod/sys_scheduler/test_scheduler.py20CODE
LOW…tests/test_api/mod/sys_scheduler/test_physical_time.py20CODE
LOW…ests/test_api/mod/sys_simulation/test_signal_broker.py20CODE
LOW…/test_api/mod/sys_simulation/test_simulation_broker.py20CODE
LOW…simulation/test_simulation_event_source_integration.py19CODE
LOW…sts/test_api/mod/sys_simulation/test_management_fee.py20CODE
LOW…mod/sys_transaction_cost/test_commission_multiplier.py17CODE
LOW…ts/integration_tests/test_backtest_results/conftest.py3CODE
LOW…n_tests/test_backtest_results/test_f_mean_reverting.py2CODE
LOW…tion_tests/test_backtest_results/test_f_macd_signal.py5CODE
LOW…integration_tests/test_backtest_results/test_f_macd.py3CODE
LOW…integration_tests/test_backtest_results/test_f_macd.py8CODE
LOWdocs/source/conf.py75CODE
LOWrqalpha/interface.py20CODE
LOWrqalpha/interface.py24CODE
LOWrqalpha/interface.py27CODE
LOWrqalpha/interface.py30CODE
LOWrqalpha/interface.py33CODE
LOWrqalpha/__init__.py21CODE
LOWrqalpha/__init__.py23CODE
LOWrqalpha/__init__.py23CODE
LOWrqalpha/__init__.py24CODE
LOWrqalpha/__init__.py25CODE
LOWrqalpha/__init__.py26CODE
LOWrqalpha/__init__.py27CODE
LOWrqalpha/__init__.py28CODE
LOWrqalpha/__init__.py29CODE
LOWrqalpha/environment.py19CODE
LOWrqalpha/environment.py25CODE
LOWrqalpha/environment.py33CODE
LOWrqalpha/environment.py35CODE
LOWrqalpha/environment.py36CODE
LOWrqalpha/environment.py37CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py38CODE
LOWrqalpha/environment.py40CODE
LOWrqalpha/environment.py41CODE
LOWrqalpha/apis/api_base.py17CODE
LOWrqalpha/apis/api_base.py20CODE
LOWrqalpha/apis/api_base.py21CODE
LOWrqalpha/apis/api_base.py24CODE
150 more matches not shown…
Hyper-Verbose Identifiers188 hits · 193 pts
SeverityFileLineSnippetContext
LOWtests/unittest/test_models/test_instruments.py71 def test_stock_specific_properties(self):CODE
LOWtests/unittest/test_models/test_instruments.py95 def test_future_specific_properties(self):CODE
LOWtests/unittest/test_models/test_instruments.py105 def test_round_lot_special_cases(self):CODE
LOWtests/unittest/test_models/test_instruments.py116 def test_listing_status_methods(self):CODE
LOWtests/unittest/test_models/test_instruments.py160 def test_call_auction_periods(self):CODE
LOWtests/unittest/test_models/test_instruments.py222 def test_future_continuous_contract_detection(self):CODE
LOWtests/unittest/test_models/test_instruments.py255 def test_contract_multiplier_validation(self):CODE
LOWtests/unittest/test_models/test_instruments.py317 def test_calc_cash_occupation(self, mock_env):CODE
LOWtests/unittest/test_utils/test_price_limits.py26def test_reaches_limit_up_uses_last_tick_band():CODE
LOWtests/unittest/test_utils/test_price_limits.py31def test_reaches_limit_down_uses_last_tick_band():CODE
LOWtests/unittest/test_utils/test_price_limits.py36def test_reaches_limit_dispatches_by_side():CODE
LOWtests/unittest/test_utils/test_price_limits.py43def test_vectorized_limit_helpers_match_scalar_behavior():CODE
LOW…st_auto_update_bundle/test_auto_update_bundle_mixin.py43 def _mock_get_open_auction_info(self, order_book_id, *args, **kwargs):CODE
LOW…st_auto_update_bundle/test_auto_update_bundle_mixin.py52 def _mock_get_open_auction_volume(self, instrument, dt):CODE
LOWtests/unittest/test_mod/test_sys_risk/test_mod.py31def test_warns_when_partial_fill_is_enabled_without_cash_validation(monkeypatch):CODE
LOWtests/unittest/test_mod/test_sys_risk/test_mod.py54def test_does_not_warn_for_other_cash_validation_configurations(CODE
LOW…nittest/test_mod/test_sys_accounts/test_trade_utils.py9def test_get_amount_from_value_uses_ask_exchange_rate_for_buying_power():CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py99def test_order_target_portfolio_smart_base(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py120def test_order_target_portfolio_smart_empty_weights(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py126def test_order_target_portfolio_smart_single_stock(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py141def test_order_target_portfolio_smart_small_weights(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py162def test_order_target_portfolio_smart_negative_weights_error(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py171def test_order_target_portfolio_smart_limit_order(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py199def test_order_target_portfolio_smart_partial_limit_prices_error(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py213def test_order_target_portfolio_smart_nan_limit_price_rejected(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py231def test_order_target_portfolio_smart_custom_valuation_prices(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py252def test_order_target_portfolio_smart_missing_valuation_price_error(environment, on_handle_bar, assert_submitted_orders)CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py267def test_order_target_portfolio_smart_adjust_existing_positions(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py302def test_order_target_portfolio_smart_limit_and_valuation_prices(environment, on_handle_bar, assert_submitted_orders):CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py367def test_order_target_portfolio_smart_allows_limit_down_buy_after_rescale(CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py389def test_order_target_portfolio_smart_keeps_zero_target_out_of_distribution(CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py414def test_order_target_portfolio_smart_does_not_deny_unchanged_limit_up_position(CODE
LOW…_api/test_order_target_portfolio_smart_api_unittest.py434def test_order_target_portfolio_smart_rejects_prices_in_last_tick_band(CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py196def test_bar_matcher_fills_market_order_by_volume_limit_and_cancels_remainder(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py217def test_bar_matcher_leaves_non_crossed_limit_order_active(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py228def test_matcher_reduces_cash_limited_fill_by_order_step_for_transaction_cost(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py252def test_matcher_keeps_affordable_fill_without_cash_clipping(fake_env, monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py279def test_matcher_uses_cash_occupation_to_estimate_cash_limited_fill(fake_env, monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py303def test_matcher_rechecks_only_unfilled_quantity_after_partial_fill(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py328def test_bar_matcher_returns_early_on_invalid_price(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py339def test_tick_matcher_fills_with_best_counterparty_price(monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py360def test_tick_matcher_rejects_invalid_price(monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py372def test_tick_matcher_rejects_market_order_without_liquidity(monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py387def test_counterparty_offer_rejects_order_at_price_limit(monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py420def test_counterparty_offer_leaves_non_crossed_limit_order_active(monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py445def test_counterparty_offer_returns_early_without_quote(monkeypatch):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py469def test_signal_matcher_fills_market_order_immediately(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py482def test_signal_matcher_rejects_invalid_price(fake_env):CODE
LOW…/unittest/test_mod/test_sys_simulation/test_matcher.py493def test_signal_matcher_rejects_order_at_price_limit(fake_env):CODE
LOWtests/test_bundle/test_daybar.py96 def get_previous_trading_date(self, trading_date):CODE
LOWtests/test_bundle/test_daybar.py109def test_generate_daybar_task_writes_transformed_datasets(monkeypatch, tmp_path):CODE
LOWtests/test_bundle/test_daybar.py169def test_update_daybar_task_recreates_file_when_existing_fields_do_not_match(monkeypatch, tmp_path):CODE
LOWtests/test_bundle/test_daybar.py205def test_update_daybar_task_appends_incremental_rows(monkeypatch, tmp_path):CODE
LOWtests/test_bundle/test_daybar.py237def test_update_daybar_task_skips_delisted_instrument_when_already_complete(monkeypatch, tmp_path):CODE
LOWtests/test_bundle/test_daybar.py258def test_get_de_listed_date_prefers_active_reused_instrument(monkeypatch, tmp_path):CODE
LOWtests/test_bundle/test_daybar_checker.py86def test_check_daybar_reports_missing_bundle_directory(tmp_path, capsys):CODE
LOWtests/test_bundle/test_daybar_checker.py94def test_check_daybar_reports_missing_base_files(tmp_path, capsys):CODE
LOWtests/test_bundle/test_daybar_checker.py104def test_check_daybar_reports_missing_daybar_files(tmp_path, capsys):CODE
LOWtests/test_bundle/test_daybar_checker.py118def test_check_daybar_reports_good_bundle(tmp_path, capsys):CODE
LOWtests/test_bundle/test_daybar_checker.py127def test_check_daybar_reports_missing_dates_and_unknown_order_book_ids(tmp_path, capsys):CODE
128 more matches not shown…
Over-Commented Block154 hits · 154 pts
SeverityFileLineSnippetContext
LOWsetup.py1# -*- coding: utf-8 -*-COMMENT
LOWbabel.cfg1# For RQAlphaCOMMENT
LOWtests/unittest/test_data/test_trading_dates_mixin.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/unittest/test_data/test_instrument_mixin.py1# -*- coding: utf-8 -*-COMMENT
LOW…st_auto_update_bundle/test_auto_update_bundle_mixin.py1# -*- coding: utf-8 -*-COMMENT
LOW…od/test_sys_simulation/test_simulation_event_source.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/integration_tests/test_api/test_api_base.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/integration_tests/test_api/test_position_queue.py1# -*- coding: utf-8 -*-COMMENT
LOW…ests/test_api/test_order_target_portfolio_smart_api.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/integration_tests/test_api/test_api_future.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/integration_tests/test_api/test_config.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/integration_tests/test_api/test_api_stock.py1# -*- coding: utf-8 -*-COMMENT
LOW…_tests/test_api/mod/sys_accounts/test_margin_stocks.py1# -*- coding: utf-8 -*-COMMENT
LOW…ests/test_api/mod/sys_accounts/test_position_models.py1# -*- coding: utf-8 -*-COMMENT
LOW…mod/sys_accounts/test_futures_settlement_price_type.py1# -*- coding: utf-8 -*-COMMENT
LOW…_tests/test_api/mod/sys_accounts/test_account_model.py1# -*- coding: utf-8 -*-COMMENT
LOW…s/test_api/mod/sys_analyser/test_negative_benchmark.py1# -*- coding: utf-8 -*-COMMENT
LOW…ion_tests/test_api/mod/sys_scheduler/test_scheduler.py1# -*- coding: utf-8 -*-COMMENT
LOW…tests/test_api/mod/sys_scheduler/test_physical_time.py1# -*- coding: utf-8 -*-COMMENT
LOW…ests/test_api/mod/sys_simulation/test_signal_broker.py1# -*- coding: utf-8 -*-COMMENT
LOW…/test_api/mod/sys_simulation/test_simulation_broker.py1# -*- coding: utf-8 -*-COMMENT
LOW…simulation/test_simulation_event_source_integration.py1# -*- coding: utf-8 -*-COMMENT
LOW…sts/test_api/mod/sys_simulation/test_management_fee.py1# -*- coding: utf-8 -*-COMMENT
LOW…mod/sys_transaction_cost/test_commission_multiplier.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/source/conf.py1#!/usr/bin/env python3COMMENT
LOWdocs/source/conf.py101#COMMENT
LOWdocs/source/conf.py121#COMMENT
LOWdocs/source/conf.py181# html_title = 'rqalpha v1.0'COMMENT
LOWdocs/source/conf.py201html_static_path = ['_static']COMMENT
LOWdocs/source/conf.py221#COMMENT
LOWdocs/source/conf.py241# If true, links to the reST sources are added to the pages.COMMENT
LOWdocs/source/conf.py261COMMENT
LOWrqalpha/interface.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/user_module.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/api.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/environment.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/main.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/__main__.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/const.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/apis/api_base.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/apis/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/apis/names.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/apis/api_rqdatac.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/apis/api_rqdatac.py161COMMENT
LOWrqalpha/apis/api_rqdatac.py501 #Dimensions: 8 (items) x 5 (major_axis) x 3 (minor_axis)COMMENT
LOWrqalpha/apis/api_rqdatac.py641 logger.info(get_turnover_rate('000001.XSHE', count=5))COMMENT
LOWrqalpha/apis/api_abstract.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/strategy_universe.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/events.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/events.py61COMMENT
LOWrqalpha/core/events.py101COMMENT
LOWrqalpha/core/events.py121 # settlement()COMMENT
LOWrqalpha/core/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/strategy.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/global_var.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/strategy_context.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/strategy_loader.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/execution_context.py1# -*- coding: utf-8 -*-COMMENT
LOWrqalpha/core/executor.py1# -*- coding: utf-8 -*-COMMENT
94 more matches not shown…
Deep Nesting69 hits · 69 pts
SeverityFileLineSnippetContext
LOWtests/test_bundle/test_daybar_checker.py40CODE
LOWtests/integration_tests/test_api/test_api_base.py398CODE
LOWtests/integration_tests/test_api/test_api_base.py527CODE
LOWtests/integration_tests/test_api/test_api_base.py411CODE
LOWtests/integration_tests/test_api/test_api_base.py543CODE
LOWtests/integration_tests/test_api/test_position_queue.py48CODE
LOWtests/integration_tests/test_api/test_position_queue.py112CODE
LOWtests/integration_tests/test_api/test_position_queue.py338CODE
LOWtests/integration_tests/test_api/test_position_queue.py56CODE
LOWtests/integration_tests/test_api/test_position_queue.py138CODE
LOWtests/integration_tests/test_api/test_position_queue.py359CODE
LOWtests/integration_tests/test_api/test_portfolio.py83CODE
LOWtests/integration_tests/test_api/test_portfolio.py124CODE
LOWtests/integration_tests/test_api/test_portfolio.py94CODE
LOWtests/integration_tests/test_api/test_portfolio.py133CODE
LOW…_tests/test_api/mod/sys_accounts/test_margin_stocks.py44CODE
LOW…_tests/test_api/mod/sys_accounts/test_margin_stocks.py57CODE
LOW…ests/test_api/mod/sys_accounts/test_position_models.py187CODE
LOW…ests/test_api/mod/sys_accounts/test_position_models.py212CODE
LOW…_tests/test_api/mod/sys_accounts/test_account_model.py81CODE
LOW…_tests/test_api/mod/sys_accounts/test_account_model.py96CODE
LOW…on_tests/test_backtest_results/test_s_turtle_signal.py8CODE
LOW…on_tests/test_backtest_results/test_s_turtle_signal.py46CODE
LOW…tegration_tests/test_backtest_results/test_s_turtle.py8CODE
LOW…tegration_tests/test_backtest_results/test_s_turtle.py45CODE
LOWrqalpha/api.py49CODE
LOWrqalpha/main.py133CODE
LOWrqalpha/main.py263CODE
LOWrqalpha/apis/api_base.py266CODE
LOWrqalpha/apis/api_base.py307CODE
LOWrqalpha/apis/api_base.py570CODE
LOWrqalpha/apis/api_rqdatac.py1039CODE
LOWrqalpha/apis/api_rqdatac.py1183CODE
LOWrqalpha/core/executor.py37CODE
LOWrqalpha/cmds/bundle.py162CODE
LOWrqalpha/cmds/bundle.py186CODE
LOWrqalpha/utils/concurrent.py13CODE
LOWrqalpha/utils/config.py140CODE
LOWrqalpha/utils/config.py228CODE
LOWrqalpha/utils/logger.py76CODE
LOWrqalpha/utils/strategy_loader_help.py22CODE
LOWrqalpha/utils/arg_checker.py83CODE
LOWrqalpha/utils/testing/integration.py82CODE
LOWrqalpha/examples/turtle.py44CODE
LOWrqalpha/model/instrument.py465CODE
LOWrqalpha/portfolio/__init__.py313CODE
LOWrqalpha/portfolio/position.py313CODE
LOWrqalpha/portfolio/account.py538CODE
LOWrqalpha/data/base_data_source/data_source.py188CODE
LOWrqalpha/data/base_data_source/storages.py128CODE
LOWrqalpha/data/bundle/daybar_checker.py27CODE
LOWrqalpha/data/bundle/__init__.py54CODE
LOWrqalpha/data/bundle/__init__.py249CODE
LOWrqalpha/data/bundle/__init__.py261CODE
LOWrqalpha/data/bundle/daybar.py46CODE
LOWrqalpha/data/bundle/daybar.py108CODE
LOWrqalpha/data/bundle/automatic_update.py54CODE
LOWrqalpha/mod/rqalpha_mod_sys_scheduler/scheduler.py264CODE
LOWrqalpha/mod/rqalpha_mod_sys_scheduler/scheduler.py274CODE
LOW…/rqalpha_mod_sys_simulation/simulation_event_source.py90CODE
9 more matches not shown…
Excessive Try-Catch Wrapping28 hits · 34 pts
SeverityFileLineSnippetContext
LOWdocs/source/conf.py87except Exception:CODE
LOWrqalpha/api.py58 except Exception as e:CODE
MEDIUMrqalpha/api.py53def deco(*args, **kwargs):CODE
LOWrqalpha/main.py128 except Exception as e:CODE
LOWrqalpha/main.py234 except Exception as e:CODE
LOWrqalpha/core/global_var.py25 except Exception:CODE
LOWrqalpha/core/global_var.py35 except Exception:CODE
LOWrqalpha/core/strategy_context.py159 except Exception as e:CODE
LOWrqalpha/core/strategy_context.py169 except Exception as e:CODE
LOWrqalpha/cmds/bundle.py198 except Exception:CODE
LOWrqalpha/utils/exception.py53 except Exception:CODE
MEDIUMrqalpha/utils/exception.py47def _repr(v):CODE
LOWrqalpha/utils/config.py106 except Exception as e:CODE
MEDIUMrqalpha/utils/config.py91def code_config(config, source_code=None):CODE
LOWrqalpha/utils/package_helper.py25 except Exception as e:CODE
LOWrqalpha/utils/strategy_loader_help.py27 except Exception as e:CODE
LOWrqalpha/utils/strategy_loader_help.py32 except Exception as e1:CODE
MEDIUMrqalpha/utils/strategy_loader_help.py22def compile_strategy(source_code, strategy, scope):CODE
LOWrqalpha/utils/i18n.py53 except Exception as e:CODE
LOWrqalpha/utils/arg_checker.py515 except Exception as e:CODE
MEDIUMrqalpha/utils/arg_checker.py164def _is_number(self, func_name, value):CODE
LOWrqalpha/utils/persisit_helper.py46 except Exception as e:CODE
LOWrqalpha/utils/persisit_helper.py77 except Exception:CODE
LOWrqalpha/model/bar.py370 except Exception as e:CODE
LOWrqalpha/data/bundle/__init__.py409 except Exception as e:CODE
MEDIUMrqalpha/data/bundle/__init__.py406def __call__(self):CODE
LOWrqalpha/mod/__init__.py85 except Exception as e:CODE
LOWrqalpha/mod/utils.py58 except Exception as e:CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALrqalpha/mod/rqalpha_mod_sys_analyser/mod.py505 "starting_cash": ",".join(f"{t}:{c}" for t, c in self._env.config.base.accounts.items())CODE
CRITICALrqalpha/mod/rqalpha_mod_sys_analyser/mod.py507 for account_type, starting_cash in self._env.config.base.accounts.items():CODE
Cross-Language Confusion4 hits · 15 pts
SeverityFileLineSnippetContext
HIGHrqalpha/apis/api_base.py657 Instrument(order_book_id=000001.XSHE, symbol=平安银行, abbrev_symbol=PAYH, listed_date=19910403, de_listed_date=STRING
HIGHrqalpha/apis/api_base.py666 [Instrument(order_book_id=000001.XSHE, symbol=平安银行, abbrev_symbol=PAYH, listed_date=19910403, de_listed_dateSTRING
HIGHrqalpha/core/execution_context.py43 self.push(obj)CODE
HIGHrqalpha/core/execution_context.py66 self.stack.push(self)CODE
Modern Structural Boilerplate10 hits · 10 pts
SeverityFileLineSnippetContext
LOWrqalpha/interface.py52 def set_state(self, state: Any) -> None:CODE
LOWrqalpha/__init__.py31__all__ = [CODE
LOWrqalpha/api.py29__all__ = []CODE
LOWrqalpha/utils/logger.py25__all__ = [CODE
LOWrqalpha/utils/testing/__init__.py31__all__ = [CODE
LOWrqalpha/utils/testing/integration.py13__all__ = ['StructuredTextFormat', 'assert_result']CODE
LOWrqalpha/portfolio/account.py518 def set_management_fee_rate(self, rate: float) -> None:CODE
LOWrqalpha/data/bundle/utils.py23def set_sval(value: Synchronized) -> None:CODE
LOWrqalpha/mod/rqalpha_mod_sys_risk/validators/__init__.py23__all__ = [CODE
LOWrqalpha/mod/rqalpha_mod_sys_accounts/api/api_future.py40__all__ = []CODE
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWrqalpha/apis/api_rqdatac.py1376CODE
LOWrqalpha/apis/api_rqdatac.py1357CODE
LOWrqalpha/utils/persisit_helper.py68CODE
LOWrqalpha/examples/data_source/read_csv_as_df.py21CODE
LOWrqalpha/examples/data_source/get_csv_module.py21CODE
LOW…pha/examples/extend_api/rqalpha_mod_extend_api_demo.py54CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/source/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMrqalpha/data/instruments_mixin.py127 # ================================================================COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrqalpha/utils/config.py120 # Check if capital_gain_tax_rate is explicitly set;if not,throw a warning.COMMENT