Repository Analysis

virattt/ai-hedge-fund

An AI Hedge Fund Team

19.4 Moderate AI signal View on GitHub
19.4
Adjusted Score
19.4
Raw Score
100%
Time Factor
2026-05-28
Last Push
59,486
Stars
Python
Language
51,028
Lines of Code
272
Files
622
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 3MEDIUM 154LOW 465

Pattern Findings

622 matches across 12 categories. Click a row to expand file-level details.

Decorative Section Separators117 hits · 375 pts
SeverityFileLineSnippet
MEDIUMapp/backend/services/ollama_service.py30 # =============================================================================
MEDIUMapp/backend/services/ollama_service.py32 # =============================================================================
MEDIUMapp/backend/services/ollama_service.py174 # =============================================================================
MEDIUMapp/backend/services/ollama_service.py176 # =============================================================================
MEDIUMv2/models.py10# ---------------------------------------------------------------------------
MEDIUMv2/models.py12# ---------------------------------------------------------------------------
MEDIUMv2/models.py34# ---------------------------------------------------------------------------
MEDIUMv2/models.py36# ---------------------------------------------------------------------------
MEDIUMv2/models.py48# ---------------------------------------------------------------------------
MEDIUMv2/models.py50# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py20# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py22# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py102# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py104# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py125# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py127# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py175# ---------------------------------------------------------------------------
MEDIUMv2/event_study/test_event_study.py177# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py64# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py66# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py133# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py135# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py208# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py210# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py294# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py296# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py360# ---------------------------------------------------------------------------
MEDIUMv2/event_study/engine.py362# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py106 # ------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py108 # ------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py175 # ------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py177 # ------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py188 # ------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py190 # ------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py246# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/engine.py248# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py15# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py17# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py53# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py55# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py75# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py77# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py128# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py130# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py230# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py232# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py273# ---------------------------------------------------------------------------
MEDIUMv2/backtesting/test_backtest.py275# ---------------------------------------------------------------------------
MEDIUMv2/signals/base.py37 # ------------------------------------------------------------------
MEDIUMv2/signals/base.py39 # ------------------------------------------------------------------
MEDIUMv2/data/models.py15# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py17# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py32# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py34# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py104# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py106# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py129# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py131# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py145# ---------------------------------------------------------------------------
MEDIUMv2/data/models.py147# ---------------------------------------------------------------------------
57 more matches not shown…
Hyper-Verbose Identifiers149 hits · 158 pts
SeverityFileLineSnippet
LOW…/src/components/panels/bottom/tabs/backtest-output.tsx301function BacktestPerformanceMetrics({ agentData }: { agentData: Record<string, any> }) {
LOWapp/frontend/src/hooks/use-keyboard-shortcuts.ts68export function useLayoutKeyboardShortcuts(
LOWapp/backend/repositories/flow_run_repository.py108 def delete_flow_runs_by_flow_id(self, flow_id: int) -> int:
LOWapp/backend/routes/language_models.py41async def get_language_model_providers():
LOWapp/backend/routes/ollama.py165async def download_model_with_progress(request: ModelRequest):
LOWapp/backend/services/graph.py180def parse_hedge_fund_response(response):
LOWapp/backend/services/ollama_service.py93 async def download_model_with_progress(self, model_name: str) -> AsyncGenerator[str, None]:
LOWapp/backend/services/ollama_service.py156 def get_all_download_progress(self) -> Dict[str, Dict[str, any]]:
LOWapp/backend/services/ollama_service.py442 def _process_download_progress(self, progress, model_name: str) -> Optional[Dict[str, any]]:
LOWapp/backend/services/backtest_service.py207 def calculate_portfolio_value(self, current_prices: Dict[str, float]) -> float:
LOWapp/backend/services/backtest_service.py238 def _update_performance_metrics(self, performance_metrics: Dict[str, Any]):
LOWtests/test_api_rate_limiting.py12 def test_handles_single_rate_limit(self, mock_get, mock_sleep):
LOWtests/test_api_rate_limiting.py46 def test_handles_multiple_rate_limits(self, mock_get, mock_sleep):
LOWtests/test_api_rate_limiting.py83 def test_handles_post_rate_limiting(self, mock_post, mock_sleep):
LOWtests/test_api_rate_limiting.py118 def test_ignores_other_errors(self, mock_get, mock_sleep):
LOWtests/test_api_rate_limiting.py145 def test_normal_success_requests(self, mock_get, mock_sleep):
LOWtests/test_api_rate_limiting.py220 def test_max_retries_exceeded(self, mock_get, mock_sleep):
LOWtests/test_cli_ticker_alias.py29def test_shared_cli_accepts_documented_ticker_alias() -> None:
LOWtests/test_cli_ticker_alias.py40def test_backtesting_cli_accepts_documented_ticker_alias() -> None:
LOWtests/test_cache.py9 def test_new_cache_has_empty_stores(self):
LOWtests/test_cache.py21 def test_returns_cache_instance(self):
LOWtests/test_cache.py25 def test_returns_same_instance(self):
LOWtests/test_cache.py32 def test_returns_new_data_when_existing_is_none(self):
LOWtests/test_cache.py38 def test_returns_new_data_when_existing_is_empty(self):
LOWtests/test_cache.py43 def test_merges_without_duplicates(self):
LOWtests/test_cache.py53 def test_does_not_mutate_existing_list(self):
LOWtests/test_cache.py70 def test_get_returns_none_for_unknown_ticker(self):
LOWtests/test_cache.py74 def test_deduplicates_by_time(self):
LOWtests/test_cache.py83 def test_different_tickers_are_independent(self):
LOWtests/test_cache.py100 def test_deduplicates_by_report_period(self):
LOWtests/test_cache.py117 def test_deduplicates_by_report_period(self):
LOWtests/test_cache.py134 def test_deduplicates_by_filing_date(self):
LOWtests/test_cache.py152 def test_deduplicates_by_date(self):
LOWtests/backtesting/test_results.py4def test_results_builder_builds_rows_and_summary(monkeypatch, portfolio):
LOWtests/backtesting/test_results.py22 def fake_print_backtest_results(rows):
LOWtests/backtesting/test_valuation.py4def test_calculate_portfolio_value(portfolio, prices):
LOWtests/backtesting/test_valuation.py28def test_compute_exposures_with_no_shorts_ratio_inf(portfolio, prices):
LOWtests/backtesting/test_valuation.py35def test_compute_portfolio_summary(portfolio, prices):
LOWtests/backtesting/test_metrics.py24def test_metrics_insufficient_data_no_update():
LOWtests/backtesting/test_metrics.py33def test_metrics_basic_sharpe_sortino_and_drawdown():
LOWtests/backtesting/test_metrics.py45def test_metrics_zero_volatility_sharpe_zero():
LOWtests/backtesting/test_portfolio.py7def test_apply_long_buy_basic(portfolio: Portfolio) -> None:
LOWtests/backtesting/test_portfolio.py17def test_apply_long_buy_partial_fill_when_insufficient_cash() -> None:
LOWtests/backtesting/test_portfolio.py27def test_apply_long_sell_realized_gain_and_cost_basis_reset(portfolio: Portfolio) -> None:
LOWtests/backtesting/test_portfolio.py40def test_apply_long_sell_clamps_to_owned() -> None:
LOWtests/backtesting/test_portfolio.py49def test_apply_short_open_basic(portfolio: Portfolio) -> None:
LOWtests/backtesting/test_portfolio.py63def test_apply_short_open_partial_when_insufficient_margin_cash() -> None:
LOWtests/backtesting/test_portfolio.py77def test_apply_short_open_uses_available_cash_not_total_cash() -> None:
LOWtests/backtesting/test_portfolio.py95def test_apply_short_cover_realized_gain_and_margin_release(portfolio: Portfolio) -> None:
LOWtests/backtesting/test_portfolio.py113def test_apply_short_cover_clamps_to_existing_short() -> None:
LOWtests/backtesting/test_portfolio.py124def test_zero_or_negative_quantity_is_noop(portfolio: Portfolio, action: str) -> None:
LOWtests/backtesting/test_execution.py4def test_trade_executor_routes_actions(portfolio):
LOWtests/backtesting/test_execution.py21def test_trade_executor_guards_and_unknown_action(portfolio):
LOWtests/backtesting/test_controller.py13def test_agent_controller_normalizes_and_snapshots(portfolio):
LOWtests/backtesting/integration/conftest.py30def _load_price_df_from_fixture(ticker: str, start: str, end: str) -> pd.DataFrame:
LOWtests/backtesting/integration/conftest.py63def _load_financial_metrics_from_fixture(ticker: str, end: str, limit: int) -> list[dict]:
LOWtests/backtesting/integration/conftest.py92def _load_insider_from_fixture(ticker: str, start: str | None, end: str, limit: int) -> list[dict]:
LOWtests/backtesting/integration/conftest.py111 def _fake_get_financial_metrics(ticker: str, end_date: str, period: str = "ttm", limit: int = 10, api_key: str | Non
LOW…backtesting/integration/test_integration_long_short.py5def test_long_short_strategy_partial_exits():
LOW…backtesting/integration/test_integration_long_short.py83def test_long_short_strategy_full_liquidation_to_cash():
89 more matches not shown…
Unused Imports115 hits · 113 pts
SeverityFileLineSnippet
LOWapp/backend/main.py4
LOWapp/backend/database/__init__.py1
LOWapp/backend/database/__init__.py1
LOWapp/backend/database/__init__.py1
LOWapp/backend/database/__init__.py2
LOWapp/backend/database/connection.py4
LOWapp/backend/repositories/__init__.py1
LOWapp/backend/repositories/api_key_repository.py4
LOWapp/backend/routes/language_models.py2
LOWapp/backend/routes/language_models.py2
LOWapp/backend/routes/language_models.py2
LOWapp/backend/routes/flow_runs.py8
LOWapp/backend/routes/ollama.py4
LOWapp/backend/services/ollama_service.py3
LOWapp/backend/services/ollama_service.py7
LOWapp/backend/services/ollama_service.py9
LOWapp/backend/services/ollama_service.py10
LOWtests/test_cache.py1
LOWtests/backtesting/test_portfolio.py1
LOWv2/models.py3
LOWv2/event_study/plot.py14
LOWv2/event_study/models.py12
LOWv2/event_study/test_event_study.py3
LOWv2/event_study/__init__.py7
LOWv2/event_study/__init__.py8
LOWv2/event_study/__init__.py8
LOWv2/event_study/__init__.py8
LOWv2/event_study/__init__.py8
LOWv2/event_study/__init__.py8
LOWv2/event_study/__init__.py8
LOWv2/event_study/__init__.py16
LOWv2/event_study/__init__.py16
LOWv2/event_study/__init__.py16
LOWv2/event_study/engine.py26
LOWv2/event_study/stats.py8
LOWv2/event_study/__main__.py6
LOWv2/event_study/__main__.py12
LOWv2/backtesting/models.py3
LOWv2/backtesting/__init__.py3
LOWv2/backtesting/__init__.py4
LOWv2/backtesting/__init__.py4
LOWv2/backtesting/__init__.py4
LOWv2/backtesting/__init__.py4
LOWv2/backtesting/__init__.py10
LOWv2/backtesting/__init__.py10
LOWv2/backtesting/strategy.py13
LOWv2/backtesting/engine.py17
LOWv2/backtesting/test_backtest.py3
LOWv2/backtesting/__main__.py6
LOWv2/signals/__init__.py7
LOWv2/signals/base.py3
LOWv2/data/models.py7
LOWv2/data/protocol.py18
LOWv2/data/client.py3
LOWv2/data/__init__.py3
LOWv2/data/__init__.py4
LOWv2/data/__init__.py4
LOWv2/data/__init__.py4
LOWv2/data/__init__.py4
LOWv2/data/__init__.py4
55 more matches not shown…
Excessive Try-Catch Wrapping103 hits · 104 pts
SeverityFileLineSnippet
LOWapp/backend/main.py53 except Exception as e:
LOWapp/backend/routes/language_models.py31 except Exception as e:
LOWapp/backend/routes/language_models.py61 except Exception as e:
LOWapp/backend/routes/flow_runs.py50 except Exception as e:
LOWapp/backend/routes/flow_runs.py82 except Exception as e:
LOWapp/backend/routes/flow_runs.py109 except Exception as e:
LOWapp/backend/routes/flow_runs.py136 except Exception as e:
LOWapp/backend/routes/flow_runs.py166 except Exception as e:
LOWapp/backend/routes/flow_runs.py212 except Exception as e:
LOWapp/backend/routes/flow_runs.py246 except Exception as e:
LOWapp/backend/routes/flow_runs.py274 except Exception as e:
LOWapp/backend/routes/flow_runs.py302 except Exception as e:
LOWapp/backend/routes/hedge_fund.py59 except Exception:
LOWapp/backend/routes/hedge_fund.py159 except Exception as e:
LOWapp/backend/routes/hedge_fund.py216 except Exception:
LOWapp/backend/routes/hedge_fund.py335 except Exception as e:
LOWapp/backend/routes/hedge_fund.py350 except Exception as e:
LOWapp/backend/routes/storage.py43 except Exception as e:
LOWapp/backend/routes/flows.py41 except Exception as e:
LOWapp/backend/routes/flows.py58 except Exception as e:
LOWapp/backend/routes/flows.py80 except Exception as e:
LOWapp/backend/routes/flows.py112 except Exception as e:
LOWapp/backend/routes/flows.py134 except Exception as e:
LOWapp/backend/routes/flows.py156 except Exception as e:
LOWapp/backend/routes/flows.py173 except Exception as e:
LOWapp/backend/routes/api_keys.py38 except Exception as e:
LOWapp/backend/routes/api_keys.py55 except Exception as e:
LOWapp/backend/routes/api_keys.py77 except Exception as e:
LOWapp/backend/routes/api_keys.py104 except Exception as e:
LOWapp/backend/routes/api_keys.py126 except Exception as e:
LOWapp/backend/routes/api_keys.py151 except Exception as e:
LOWapp/backend/routes/api_keys.py178 except Exception as e:
LOWapp/backend/routes/api_keys.py200 except Exception as e:
LOWapp/backend/routes/ollama.py53 except Exception as e:
LOWapp/backend/routes/ollama.py85 except Exception as e:
LOWapp/backend/routes/ollama.py117 except Exception as e:
LOWapp/backend/routes/ollama.py154 except Exception as e:
LOWapp/backend/routes/ollama.py193 except Exception as e:
LOWapp/backend/routes/ollama.py215 except Exception as e:
LOWapp/backend/routes/ollama.py238 except Exception as e:
LOWapp/backend/routes/ollama.py275 except Exception as e:
LOWapp/backend/routes/ollama.py291 except Exception as e:
LOWapp/backend/routes/ollama.py317 except Exception as e:
LOWapp/backend/services/graph.py190 except Exception as e:
LOWapp/backend/services/ollama_service.py228 except Exception as e:
LOWapp/backend/services/ollama_service.py239 except Exception:
LOWapp/backend/services/ollama_service.py270 except Exception:
LOWapp/backend/services/ollama_service.py282 except Exception:
LOWapp/backend/services/ollama_service.py53 except Exception as e:
LOWapp/backend/services/ollama_service.py65 except Exception as e:
LOWapp/backend/services/ollama_service.py77 except Exception as e:
LOWapp/backend/services/ollama_service.py89 except Exception as e:
LOWapp/backend/services/ollama_service.py106 except Exception as e:
LOWapp/backend/services/ollama_service.py120 except Exception as e:
LOWapp/backend/services/ollama_service.py148 except Exception as e:
LOWapp/backend/services/ollama_service.py204 except Exception:
LOWapp/backend/services/ollama_service.py213 except Exception as e:
LOWapp/backend/services/ollama_service.py256 except Exception as e:
LOWapp/backend/services/ollama_service.py301 except Exception as e:
LOWapp/backend/services/ollama_service.py321 except Exception as e:
43 more matches not shown…
Self-Referential Comments22 hits · 66 pts
SeverityFileLineSnippet
MEDIUMapp/run.sh221 # Create a temporary directory for log files
MEDIUMapp/backend/routes/flow_runs.py41 # Create the flow run
MEDIUMapp/backend/routes/health.py18 # Create a JSON object for each ping
MEDIUMapp/backend/routes/hedge_fund.py33 # Create the portfolio
MEDIUMapp/backend/routes/hedge_fund.py183 # Create the portfolio (same as /run endpoint)
MEDIUM…/backtesting/integration/test_integration_long_only.py14 # Define the exact trading sequence we want to test
MEDIUM…/backtesting/integration/test_integration_long_only.py104 # Define the exact trading sequence we want to test
MEDIUM…/backtesting/integration/test_integration_long_only.py206 # Define the exact trading sequence we want to test
MEDIUMsrc/tools/api.py65 # Create a cache key that includes all parameters to ensure exact matches
MEDIUMsrc/tools/api.py107 # Create a cache key that includes all parameters to ensure exact matches
MEDIUMsrc/tools/api.py191 # Create a cache key that includes all parameters to ensure exact matches
MEDIUMsrc/tools/api.py257 # Create a cache key that includes all parameters to ensure exact matches
MEDIUMsrc/agents/warren_buffett.py141 # Create the message
MEDIUMsrc/agents/sentiment.py120 # Create the sentiment message
MEDIUMsrc/agents/fundamentals.py145 # Create the fundamental analysis message
MEDIUMsrc/agents/technicals.py140 # Create the technical analyst message
MEDIUMsrc/agents/news_sentiment.py138 # Create the sentiment analysis
MEDIUMsrc/agents/nassim_taleb.py156 # Create the message
MEDIUMsrc/utils/progress.py92 # Create the status text with appropriate styling
MEDIUMsrc/utils/progress.py115# Create a global instance
MEDIUMsrc/utils/ollama.py275 # Create a progress bar
MEDIUMsrc/data/cache.py16 # Create a set of existing keys for O(1) lookup
Deep Nesting52 hits · 52 pts
SeverityFileLineSnippet
LOWapp/backend/main.py33
LOWapp/backend/routes/hedge_fund.py26
LOWapp/backend/routes/hedge_fund.py170
LOWapp/backend/routes/hedge_fund.py63
LOWapp/backend/routes/hedge_fund.py220
LOWapp/backend/services/backtest_service.py60
LOWapp/backend/services/backtest_service.py285
LOWapp/backend/services/portfolio.py6
LOWsrc/llm/models.py142
LOWsrc/backtesting/engine.py96
LOWsrc/graph/state.py21
LOWsrc/graph/state.py24
LOWsrc/agents/peter_lynch.py161
LOWsrc/agents/peter_lynch.py289
LOWsrc/agents/peter_lynch.py396
LOWsrc/agents/rakesh_jhunjhunwala.py17
LOWsrc/agents/rakesh_jhunjhunwala.py162
LOWsrc/agents/rakesh_jhunjhunwala.py246
LOWsrc/agents/rakesh_jhunjhunwala.py437
LOWsrc/agents/rakesh_jhunjhunwala.py498
LOWsrc/agents/warren_buffett.py696
LOWsrc/agents/michael_burry.py173
LOWsrc/agents/stanley_druckenmiller.py166
LOWsrc/agents/stanley_druckenmiller.py273
LOWsrc/agents/stanley_druckenmiller.py351
LOWsrc/agents/technicals.py407
LOWsrc/agents/cathie_wood.py111
LOWsrc/agents/cathie_wood.py210
LOWsrc/agents/phil_fisher.py167
LOWsrc/agents/phil_fisher.py328
LOWsrc/agents/phil_fisher.py461
LOWsrc/agents/portfolio_manager.py25
LOWsrc/agents/news_sentiment.py25
LOWsrc/agents/valuation.py21
LOWsrc/agents/charlie_munger.py161
LOWsrc/agents/charlie_munger.py268
LOWsrc/agents/charlie_munger.py469
LOWsrc/agents/ben_graham.py207
LOWsrc/agents/nassim_taleb.py269
LOWsrc/agents/nassim_taleb.py355
LOWsrc/agents/nassim_taleb.py453
LOWsrc/agents/nassim_taleb.py559
LOWsrc/agents/nassim_taleb.py628
LOWsrc/agents/mohnish_pabrai.py196
LOWsrc/agents/mohnish_pabrai.py253
LOWsrc/agents/risk_manager.py11
LOWsrc/utils/llm.py10
LOWsrc/utils/llm.py87
LOWsrc/utils/llm.py109
LOWsrc/utils/display.py17
LOWsrc/utils/ollama.py114
LOWsrc/utils/ollama.py207
Redundant / Tautological Comments33 hits · 51 pts
SeverityFileLineSnippet
LOWdocker/run.sh123# Check if command is provided
LOWdocker/run.sh174 # Check if Ollama is running
LOWdocker/run.sh226 # Check if the model was successfully pulled
LOWdocker/run.sh244# Check if .env file exists, if not create from .env.example
LOWapp/run.sh135 # Check if .env exists in the root directory
LOWapp/run.sh164 # Check if database already exists
LOWapp/run.sh178 # Check if dependencies are actually installed and working
LOWapp/run.sh202 # Check if node_modules exists and has content
LOWapp/run.sh260 # Check if backend started successfully
LOWapp/run.sh289 # Check if frontend started successfully
LOWapp/run.sh318 # Check if processes are still running
LOWapp/backend/repositories/api_key_repository.py23 # Check if API key already exists for this provider
LOW…rsions/3f9a6b7c8d2e_add_hedgefundflowruncycle_table.py22 # Check if columns already exist before adding them
LOW…rsions/3f9a6b7c8d2e_add_hedgefundflowruncycle_table.py71 # Check if table exists before dropping
LOWapp/backend/routes/hedge_fund.py100 # Check if client disconnected
LOWapp/backend/routes/hedge_fund.py275 # Check if client disconnected
LOWapp/backend/services/graph.py97 # Check if this is a direct connection from analyst to portfolio manager
LOWapp/backend/services/ollama_service.py234 # Check if already running
LOWapp/backend/services/ollama_service.py279 # Check if already stopped
LOWapp/backend/services/ollama_service.py470 # Check if download is complete
LOWsrc/tools/api.py321 # Check if end_date is today
LOWsrc/llm/models.py179 # Check if OLLAMA_HOST is set (for Docker on macOS)
LOWsrc/agents/warren_buffett.py730 # Check if company has been able to maintain high margins consistently
LOWsrc/agents/cathie_wood.py136 # Check if growth is accelerating (first growth rate higher than last, since they're in reverse order)
LOWsrc/agents/phil_fisher.py278 # Check if margins are stable or improving (comparing oldest to newest)
LOWsrc/agents/phil_fisher.py388 # Check if FCF is positive in recent years
LOWsrc/agents/charlie_munger.py183 # Check if ROIC consistently above 15% (Munger's threshold)
LOWsrc/utils/docker.py88 # Check if the model has been downloaded
LOWsrc/utils/ollama.py136 # Check if it's now installed
LOWsrc/utils/ollama.py193 # Check if it's now installed
LOWsrc/utils/ollama.py321 # Check if Ollama is installed
LOWsrc/utils/ollama.py339 # Check if the model is already downloaded
LOWsrc/utils/ollama.py362 # Check if we're running in Docker
AI Slop Vocabulary10 hits · 28 pts
SeverityFileLineSnippet
MEDIUMapp/frontend/src/contexts/node-context.tsx123 // Add message to history if it's new - use more robust checking
MEDIUMsrc/tools/api.py94 # Cache the results using the comprehensive cache key
MEDIUMsrc/tools/api.py136 # Cache the results as dicts using the comprehensive cache key
MEDIUMsrc/tools/api.py244 # Cache the results using the comprehensive cache key
MEDIUMsrc/tools/api.py310 # Cache the results using the comprehensive cache key
MEDIUMsrc/agents/rakesh_jhunjhunwala.py115 # Create comprehensive analysis summary
MEDIUMsrc/agents/cathie_wood.py39 # Request multiple periods of data (annual or TTM) for a more robust view.
MEDIUMsrc/agents/bill_ackman.py37 # Request multiple periods of data (annual or TTM) for a more robust long-term view.
MEDIUMsrc/agents/mohnish_pabrai.py167 # Low leverage
MEDIUMsrc/agents/risk_manager.py223 """Calculate comprehensive volatility metrics from price data."""
Verbosity Indicators11 hits · 22 pts
SeverityFileLineSnippet
LOWv2/event_study/engine.py153 # Step 1: Get earnings filings for this ticker
LOWv2/event_study/engine.py158 # Step 2: Drop retrospective rows (e.g., Q4 data parsed from a Q1 8-K)
LOWv2/event_study/engine.py163 # Step 3: Fetch stock prices — one call covering all events.
LOWv2/event_study/engine.py176 # Step 4: Build aligned return series.
LOWv2/event_study/engine.py196 # Step 5: Process each earnings event
LOWsrc/utils/docker.py12 # Step 1: Check if Ollama service is available
LOWsrc/utils/docker.py16 # Step 2: Check if model is already available
LOWsrc/utils/docker.py22 # Step 3: Model not available - ask if user wants to download
LOWsrc/utils/docker.py29 # Step 4: Download the model
LOWsrc/utils/docker.py68 # Step 1: Initiate the download
LOWsrc/utils/docker.py80 # Step 2: Monitor the download progress
Cross-Language Confusion2 hits · 11 pts
SeverityFileLineSnippet
HIGHv2/data/models.py40 All ratio/metric fields are nullable (NaN/Inf sanitised to null).
HIGHv2/data/models.py208 # Period-over-period changes (omitted from response if null)
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippet
LOWapp/frontend/src/components/Flow.tsx181 // useEffect(() => {
LOWapp/frontend/src/lib/utils.ts21 return 'bg-gray-600/20 text-primary border-gray-600/40';
LOWapp/backend/alembic.ini1# A generic, single database configuration.
LOWapp/backend/alembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirements
LOWapp/backend/alembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.
LOWapp/backend/alembic.ini61
LOWtests/__init__.py1# Tests package
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHsrc/tools/api.py30 Make an API request with rate limiting handling and moderate backoff. Args: url: The URL to reques