Repository Analysis

ranaroussi/yfinance

Download market data from Yahoo! Finance's API

35.9 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ranaroussi/yfinance, a Python project with 24,696 GitHub stars. SynthScan v2.0 examined 19,006 lines of code across 92 source files, recording 407 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 35.9 places this repository in the Strong 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).

35.9
Adjusted Score
35.9
Raw Score
100%
Time Factor
2026-07-11
Last Push
24.7K
Stars
Python
Language
19.0K
Lines of Code
92
Files
407
Pattern Hits
2026-07-14
Scan Date
0.53
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 49MEDIUM 29LOW 329

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 407 distinct pattern matches across 14 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.

Cross-Language Confusion49 hits · 259 pts
SeverityFileLineSnippetContext
HIGHtests/test_prices.py190 self.assertTrue(df_daily_divs.index.equals(df_intraday_divs.index))CODE
HIGHtests/test_prices.py217 self.assertTrue(df_daily_divs.index.equals(df_intraday_divs.index))CODE
HIGHtests/test_prices.py259 self.assertTrue(df1.index.equals(df2.index))CODE
HIGHtests/test_prices.py274 self.assertTrue(df1.index.equals(df2.index))CODE
HIGHtests/test_prices.py302 self.assertTrue(df1.index.equals(df2.index))CODE
HIGHtests/test_prices.py317 self.assertTrue(df1.index.equals(df2.index))CODE
HIGHtests/test_prices.py335 self.assertTrue(df1.index.equals(df2.index))CODE
HIGHtests/test_prices.py350 self.assertTrue(df1.index.equals(df2.index))CODE
HIGHtests/test_prices.py479 # Regression for #2670: when Yahoo returns {"chart": null},COMMENT
HIGHtests/test_ticker.py935 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py937 self.assertTrue(i1.equals(i3))CODE
HIGHtests/test_ticker.py941 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py943 self.assertTrue(i1.equals(i3))CODE
HIGHtests/test_ticker.py947 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py949 self.assertTrue(i1.equals(i3))CODE
HIGHtests/test_ticker.py953 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py955 self.assertTrue(i1.equals(i3))CODE
HIGHtests/test_ticker.py959 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py961 self.assertTrue(i1.equals(i3))CODE
HIGHtests/test_ticker.py965 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py967 self.assertTrue(i1.equals(i3))CODE
HIGHtests/test_ticker.py972 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py976 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py980 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py984 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py989 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py993 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py997 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py1001 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py1005 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py1009 self.assertTrue(i1.equals(i2))CODE
HIGHtests/test_ticker.py1223 '{"timeseries": {"error": null, "result": [{"trailingPegRatio": []}]}}',CODE
HIGHtests/test_ticker.py1225 '{"timeseries": {"error": null, "result": [{"trailingPegRatio": [{}]}]}}',CODE
HIGHtests/test_ticker.py1227 '{"timeseries": {"error": null, "result": [{"trailingPegRatio": [{"reportedValue": {}}]}]}}',CODE
HIGHtests/test_ticker.py1229 '{"timeseries": {"error": null, "result": [{}]}}',CODE
HIGHtests/test_ticker.py1263 '{"timeseries": {"error": null, "result": []}}',CODE
HIGHtests/test_ticker.py1265 '{"timeseries": {"error": null}}',CODE
HIGHtests/test_ticker.py1267 '{"timeseries": {"error": null, "result": null}}',CODE
HIGHtests/test_ticker.py594 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py623 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py651 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py803 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py832 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py861 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py890 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py918 self.assertTrue(data.equals(data2), "property not defaulting to 'pretty=True'")CODE
HIGHtests/test_ticker.py1070 self.assertTrue(data.equals(data_summary))CODE
HIGHtests/test_ticker.py1242 payload = '{"timeseries": {"error": null, "result": [{"trailingPegRatio": [{"reportedValue": {"raw": 1.23}}]}]}}CODE
HIGHtests/test_ticker.py1282 payload = '{"timeseries": {"error": null, "result": [{"trailingPegRatio": [{"reportedValue": {"raw": 1.23}}]}]}}CODE
Hyper-Verbose Identifiers152 hits · 154 pts
SeverityFileLineSnippetContext
LOWyfinance/_http.py83def _supported_session_classes() -> tuple:CODE
LOWyfinance/utils.py326def retrieve_financial_details(data):CODE
LOWyfinance/utils.py356def format_annual_financial_statement(level_detail, annual_dicts, annual_order, ttm_dicts=None, ttm_order=None):CODE
LOWyfinance/utils.py386def format_quarterly_financial_statement(_statement, level_detail, order):CODE
LOWyfinance/utils.py1030def _generate_table_configurations(title = None) -> str:CODE
LOWyfinance/utils.py1080def generate_list_table_from_dict_universal(data: dict, bullets: bool=True, title: str=None, concat_keys=[]) -> str:CODE
LOWyfinance/utils.py1045def generate_list_table_from_dict(data: dict, bullets: bool=True, title: str=None) -> str:STRING
LOWyfinance/utils.py1063# def generate_list_table_from_dict_of_dict(data: dict, bullets: bool=True, title: str=None) -> str:STRING
LOWyfinance/base.py220 def get_recommendations_summary(self, as_dict=False):CODE
LOWyfinance/base.py246 def get_institutional_holders(self, as_dict=False):CODE
LOWyfinance/base.py274 def get_insider_roster_holders(self, as_dict=False):CODE
LOWyfinance/base.py317 def get_analyst_price_targets(self) -> dict:CODE
LOWyfinance/base.py645 def _get_earnings_dates_using_scrape(self, limit = 12, offset = 0) -> Optional[pd.DataFrame]:CODE
LOWyfinance/base.py740 def _get_earnings_dates_using_screener(self, limit=12) -> Optional[pd.DataFrame]:CODE
LOWyfinance/data.py290 def _get_cookie_and_crumb_basic(self, timeout):CODE
LOWyfinance/calendars.py295 def _get_most_active_operands(CODE
LOWyfinance/calendars.py334 def _get_startdatetime_operators(self, start=None, end=None) -> CalendarQuery:CODE
LOWyfinance/calendars.py472 def get_economic_events_calendar(CODE
LOWyfinance/scrapers/holders.py110 def _parse_institution_ownership(self, data):CODE
LOWyfinance/scrapers/holders.py134 def _parse_major_direct_holders(self, data):CODE
LOWyfinance/scrapers/holders.py146 def _parse_major_holders_breakdown(self, data):CODE
LOWyfinance/scrapers/holders.py155 def _parse_insider_transactions(self, data):CODE
LOWyfinance/scrapers/holders.py209 def _parse_net_share_purchase_activity(self, data):CODE
LOWyfinance/scrapers/fundamentals.py57 def get_balance_sheet_time_series(self, freq="yearly") -> pd.DataFrame:CODE
LOWyfinance/scrapers/fundamentals.py63 def get_cash_flow_time_series(self, freq="yearly") -> pd.DataFrame:CODE
LOWyfinance/scrapers/fundamentals.py116 def _get_financials_time_series(self, timescale, keys: list) -> pd.DataFrame:CODE
LOWyfinance/scrapers/fundamentals.py187 def _fetch_fundamentals_chunked(self, ts_url_base: str, timescale: str, keys: list, period_qs: str) -> list:CODE
LOWyfinance/scrapers/fundamentals.py195 def _fetch_fundamentals_payload(self, url: str) -> list:CODE
LOWyfinance/scrapers/quote.py306 def regular_market_previous_close(self):CODE
LOWyfinance/scrapers/quote.py430 def three_month_average_volume(self):CODE
LOWyfinance/scrapers/quote.py737 def _fetch_valuation_measures(self, freq="quarterly"):CODE
LOWyfinance/scrapers/history.py672 def _reconstruct_intervals_batch(self, df, interval, prepost, tag=-1):CODE
LOWyfinance/scrapers/history.py2704 def _fix_prices_sudden_change(self, df, interval, tz_exchange, change, unit_switch=False, correct_volume=False, corrCODE
LOWyfinance/scrapers/history.py2978 def _calc_volume_zscore_weighted(volume, dt, block):CODE
LOWyfinance/domain/industry.py88 def _parse_top_performing_companies(self, top_performing_companies: Dict) -> Optional[_pd.DataFrame]:CODE
LOWyfinance/domain/industry.py110 def _parse_top_growth_companies(self, top_growth_companies: Dict) -> Optional[_pd.DataFrame]:CODE
LOWtests/test_download_concurrency.py22 def test_concurrent_downloads_keep_results_separate(self):CODE
LOWtests/test_download_concurrency.py37 def test_concurrent_downloads_do_not_raise(self):CODE
LOWtests/test_download_concurrency.py43 def test_download_does_not_use_module_globals(self):CODE
LOWtests/test_ticker_locale.py16 def test_default_locale_is_en_us(self):CODE
LOWtests/test_ticker_locale.py20 def test_default_returns_english(self):CODE
LOWtests/test_ticker_locale.py45 def test_locale_us_listing_not_translated(self):CODE
LOWtests/test_utils.py25 def test_mixed_timezones_to_datetime_fails(self):CODE
LOWtests/test_utils.py31 def test_mixed_timezones_to_datetime(self):CODE
LOWtests/test_utils.py45 def test_is_valid_period_format_valid(self):CODE
LOWtests/test_utils.py51 def test_is_valid_period_format_invalid(self):CODE
LOWtests/test_utils.py58 def test_is_valid_period_format_edge_cases(self):CODE
LOWtests/test_utils.py107 def test_same_month_different_year(self):CODE
LOWtests/test_utils.py131 def test_nonstandard_quarters(self):CODE
LOWtests/test_screener.py16 def test_set_large_size_in_body(self, mock_post):CODE
LOWtests/test_screener.py38 def test_no_screener_field_is_two_fields_concatenated(self):CODE
LOWtests/test_sector_region.py7 def test_default_region_is_us(self):CODE
LOWtests/test_sector_region.py11 def test_region_is_normalized(self):CODE
LOWtests/test_sector_region.py16 def test_us_and_gb_top_companies_differ(self):CODE
LOWtests/test_sector_region.py25 def test_industry_region_propagates(self):CODE
LOWtests/test_auth.py61 def test_not_logged_in_on_transient_error(self):CODE
LOWtests/test_auth.py66 def test_probe_is_a_single_subscriptions_get(self):CODE
LOWtests/test_auth.py73 def test_check_login_is_live_not_cached(self):CODE
LOWtests/test_auth.py83 def test_free_when_logged_in_no_subscription(self):CODE
LOWtests/test_auth.py95 def test_premium_for_unmarketed_tier(self):CODE
92 more matches not shown…
Excessive Try-Catch Wrapping58 hits · 70 pts
SeverityFileLineSnippetContext
LOWyfinance/multi.py212 except Exception:CODE
LOWyfinance/multi.py293 except Exception as e:CODE
LOWyfinance/cache.py67 except Exception:CODE
LOWyfinance/cache.py262 except Exception:CODE
LOWyfinance/cache.py472 except Exception:CODE
MEDIUMyfinance/utils.py352 print(f"An error occurred while processing the key: {e}")CODE
LOWyfinance/live.py30 except Exception as e:CODE
LOWyfinance/live.py66 except Exception as e:CODE
LOWyfinance/live.py86 except Exception as e:CODE
MEDIUMyfinance/live.py91 print(f"Error in heartbeat subscription: {e}")CODE
LOWyfinance/live.py171 except Exception as handler_exception:CODE
MEDIUMyfinance/live.py176 print("Error in message handler:", handler_exception)CODE
LOWyfinance/live.py187 except Exception as e:CODE
MEDIUMyfinance/live.py192 print("Error while listening to messages: %s", e)CODE
LOWyfinance/live.py242 except Exception as e:CODE
LOWyfinance/live.py314 except Exception as handler_exception:CODE
MEDIUMyfinance/live.py319 print("Error in message handler:", handler_exception)CODE
LOWyfinance/live.py329 except Exception as e:CODE
MEDIUMyfinance/live.py334 print("Error while listening to messages: %s", e)CODE
MEDIUMyfinance/live.py59def _connect(self):CODE
MEDIUMyfinance/live.py235def _connect(self):CODE
LOWyfinance/base.py187 except Exception as e:CODE
LOWyfinance/base.py200 except Exception as err:CODE
LOWyfinance/base.py545 except Exception as e:CODE
LOWyfinance/data.py183 except Exception:CODE
LOWyfinance/data.py479 except Exception as e:CODE
LOWyfinance/data.py528 except Exception:CODE
LOWyfinance/data.py668 except Exception as e:CODE
LOWyfinance/scrapers/fundamentals.py106 except Exception:CODE
LOWyfinance/scrapers/fundamentals.py138 except Exception as e:CODE
LOWyfinance/scrapers/fundamentals.py146 except Exception:CODE
LOWyfinance/scrapers/quote.py157 except Exception:CODE
LOWyfinance/scrapers/quote.py484 except Exception as e:CODE
LOWyfinance/scrapers/quote.py764 except Exception as e:CODE
LOWyfinance/scrapers/quote.py823 except Exception as e:CODE
LOWyfinance/scrapers/funds.py196 except Exception as e:CODE
LOWyfinance/scrapers/history.py231 except Exception:CODE
LOWyfinance/scrapers/history.py244 except Exception:CODE
LOWyfinance/scrapers/history.py504 except Exception as e:CODE
LOWyfinance/scrapers/history.py1089 except Exception:CODE
LOWyfinance/domain/market.py91 except Exception as e:CODE
LOWyfinance/domain/market.py112 except Exception as e:CODE
LOWyfinance/domain/market.py125 except Exception as e:CODE
MEDIUMyfinance/domain/market.py29def __init__(self, market, session=None, timeout=30):CODE
LOWyfinance/domain/industry.py148 except Exception as e:CODE
LOWyfinance/domain/sector.py147 except Exception as e:CODE
LOWtests/test_ticker.py1159 except Exception as e:CODE
LOWtests/test_ticker.py1307 except Exception:CODE
LOWtests/test_ticker.py1438 except Exception as e:CODE
LOWtests/test_price_repair.py337 except Exception:CODE
LOWtests/test_price_repair.py377 except Exception:CODE
LOWtests/test_price_repair.py421 except Exception:CODE
LOWtests/test_price_repair.py491 except Exception:CODE
LOWtests/test_price_repair.py652 except Exception:CODE
LOWtests/test_price_repair.py691 except Exception:CODE
LOWtests/test_price_repair.py706 except Exception:CODE
LOWtests/test_multi.py41 except Exception as e:CODE
MEDIUMtests/test_multi.py36def do_download(tickers, key):CODE
Decorative Section Separators18 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMyfinance/cache.py15# --------------COMMENT
MEDIUMyfinance/cache.py17# --------------COMMENT
MEDIUMyfinance/cache.py210# --------------COMMENT
MEDIUMyfinance/cache.py212# --------------COMMENT
MEDIUMyfinance/cache.py420# --------------COMMENT
MEDIUMyfinance/cache.py422# --------------COMMENT
MEDIUMyfinance/cache.py621# --------------COMMENT
MEDIUMyfinance/cache.py623# --------------COMMENT
MEDIUMyfinance/ticker.py107 # ------------------------COMMENT
MEDIUMyfinance/base.py131 # ------------------------COMMENT
MEDIUMdoc/source/reference/examples/live_async.py9 # =======================COMMENT
MEDIUMdoc/source/reference/examples/live_async.py11 # =======================COMMENT
MEDIUMdoc/source/reference/examples/live_async.py16 # =======================COMMENT
MEDIUMdoc/source/reference/examples/live_async.py18 # =======================COMMENT
MEDIUMdoc/source/reference/examples/live_sync.py7# =======================COMMENT
MEDIUMdoc/source/reference/examples/live_sync.py9# =======================COMMENT
MEDIUMdoc/source/reference/examples/live_sync.py14# =======================COMMENT
MEDIUMdoc/source/reference/examples/live_sync.py16# =======================COMMENT
Unused Imports36 hits · 35 pts
SeverityFileLineSnippetContext
LOWyfinance/tickers.py22CODE
LOWyfinance/multi.py22CODE
LOWyfinance/__init__.py23CODE
LOWyfinance/__init__.py24CODE
LOWyfinance/__init__.py25CODE
LOWyfinance/__init__.py26CODE
LOWyfinance/__init__.py27CODE
LOWyfinance/__init__.py28CODE
LOWyfinance/__init__.py29CODE
LOWyfinance/__init__.py29CODE
LOWyfinance/__init__.py30CODE
LOWyfinance/__init__.py31CODE
LOWyfinance/__init__.py32CODE
LOWyfinance/__init__.py33CODE
LOWyfinance/__init__.py34CODE
LOWyfinance/__init__.py34CODE
LOWyfinance/__init__.py36CODE
LOWyfinance/__init__.py38CODE
LOWyfinance/__init__.py38CODE
LOWyfinance/__init__.py38CODE
LOWyfinance/__init__.py39CODE
LOWyfinance/__init__.py39CODE
LOWyfinance/utils.py22CODE
LOWyfinance/utils.py50CODE
LOWyfinance/ticker.py22CODE
LOWyfinance/base.py22CODE
LOWyfinance/calendars.py1CODE
LOWyfinance/screener/__init__.py1CODE
LOWyfinance/screener/__init__.py1CODE
LOWyfinance/screener/__init__.py1CODE
LOWyfinance/screener/__init__.py2CODE
LOWyfinance/screener/__init__.py2CODE
LOWyfinance/domain/__init__.py2CODE
LOWyfinance/domain/__init__.py3CODE
LOWyfinance/domain/industry.py1CODE
LOWyfinance/domain/sector.py1CODE
Deep Nesting37 hits · 34 pts
SeverityFileLineSnippetContext
LOWyfinance/multi.py120CODE
LOWyfinance/multi.py226CODE
LOWyfinance/utils.py326CODE
LOWyfinance/utils.py474CODE
LOWyfinance/utils.py650CODE
LOWyfinance/utils.py671CODE
LOWyfinance/utils.py759CODE
LOWyfinance/utils.py907CODE
LOWyfinance/utils.py1080CODE
LOWyfinance/live.py75CODE
LOWyfinance/live.py140CODE
LOWyfinance/live.py291CODE
LOWyfinance/base.py138CODE
LOWyfinance/base.py172CODE
LOWyfinance/const.py383CODE
LOWyfinance/screener/query.py16CODE
LOWyfinance/screener/screener.py64CODE
LOWyfinance/scrapers/analysis.py141CODE
LOWyfinance/scrapers/quote.py530CODE
LOWyfinance/scrapers/quote.py546CODE
LOWyfinance/scrapers/quote.py562CODE
LOWyfinance/scrapers/quote.py677CODE
LOWyfinance/scrapers/quote.py737CODE
LOWyfinance/scrapers/quote.py722CODE
LOWyfinance/scrapers/history.py38CODE
LOWyfinance/scrapers/history.py616CODE
LOWyfinance/scrapers/history.py672CODE
LOWyfinance/scrapers/history.py1117CODE
LOWyfinance/scrapers/history.py1165CODE
LOWyfinance/scrapers/history.py1582CODE
LOWyfinance/scrapers/history.py2704CODE
LOWtests/test_ticker.py153CODE
LOWtests/test_ticker.py311CODE
LOWtests/test_price_repair.py25CODE
LOWtests/test_price_repair.py301CODE
LOWtests/test_price_repair.py386CODE
LOWtests/test_price_repair.py468CODE
Over-Commented Block25 hits · 22 pts
SeverityFileLineSnippetContext
LOWsetup.cfg1[bdist_wheel]COMMENT
LOWyfinance/tickers.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/multi.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/lookup.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/shared.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/utils.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/utils.py1061 return tableCOMMENT
LOWyfinance/search.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/ticker.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/base.py1#!/usr/bin/env pythonCOMMENT
LOWyfinance/scrapers/quote.py841 # Simplified the original scrape code for key-statistics. Very expensive for fetchingCOMMENT
LOWyfinance/scrapers/quote.py921 filings = result["quoteSummary"]["result"][0]["secFilings"]["filings"]COMMENT
LOWyfinance/scrapers/history.py1321 # Sometimes Yahoo returns few prices in cents/pence instead of $/£COMMENT
LOWyfinance/scrapers/history.py2641COMMENT
LOWyfinance/scrapers/history.py2941 # # There's a stock split near the volume spike, so COMMENT
LOWtests/test_ticker.py201 f"End date {df.index[-1]} out of range for period={period}")COMMENT
LOWtests/test_ticker.py361 # def test_no_expensive_calls_introduced(self):COMMENT
LOWtests/test_ticker.py1321 # fast_info_keys = sorted(list(fast_info_keys))COMMENT
LOWtests/test_ticker.py1341 # key_rename_map["last_volume"] = ["volume", "regularMarketVolume"]COMMENT
LOWtests/test_ticker.py1361 # custom_tolerances["ten_day_average_volume"] = 1e-1COMMENT
LOWtests/test_ticker.py1381 # if not m in ticker.info:COMMENT
LOWtests/test_ticker.py1401 # if correct is None:COMMENT
LOWtests/context.py41# class CachedLimiterSession(CacheMixin, LimiterMixin, Session):COMMENT
LOW.github/FUNDING.yml1# # These are supported funding model platformsCOMMENT
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWyfinance/tickers.py50CODE
LOWyfinance/tickers.py63CODE
LOWyfinance/multi.py55CODE
LOWyfinance/multi.py120CODE
LOWyfinance/multi.py255CODE
LOWyfinance/multi.py267CODE
LOWyfinance/search.py32CODE
LOWyfinance/base.py283CODE
LOWyfinance/base.py322CODE
LOWyfinance/data.py591CODE
LOWyfinance/screener/screener.py64CODE
LOWyfinance/scrapers/holders.py69CODE
LOWyfinance/scrapers/funds.py176CODE
LOWyfinance/scrapers/history.py38CODE
LOWyfinance/domain/domain.py127CODE
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWyfinance/utils.py316 if 'children' in node: # Check if the node has childrenCODE
LOWyfinance/utils.py320 for key in data['template']: # Loop through the dataCODE
LOWyfinance/utils.py651 # Check if second date dt2 in interval starting at dt1COMMENT
LOWyfinance/scrapers/history.py1698 # Check if dividend is 100x market movement.COMMENT
LOWyfinance/scrapers/history.py1895 # Check if the present div-adjustment is too big/small, or missingCOMMENT
LOWyfinance/scrapers/history.py1913 # Check if adjustment too smallCOMMENT
LOWyfinance/scrapers/history.py2058 # Check if the present div-adjustment contradicts price actionCOMMENT
LOWyfinance/scrapers/history.py2320 # Check if div_too_big AND adj-too-small-for-pricesCOMMENT
LOWyfinance/scrapers/history.py2875 # Set threshold to halfway between split ratio and largest expected normal price changeCOMMENT
LOWtests/test_search.py25 # Check if the fuzzy search retrieves relevant results despite the typoCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWyfinance/__init__.py47__all__ = ['download', 'Market', 'MarketRegion', 'Search', 'Lookup', 'Ticker', 'Tickers', 'enable_debug_mode', 'set_tz_cCODE
LOWyfinance/screener/__init__.py4__all__ = ['EquityQuery', 'FundQuery', 'ETFQuery', 'screen', 'PREDEFINED_SCREENER_QUERIES']CODE
LOWyfinance/domain/__init__.py5__all__ = ['Sector', 'Industry']CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMyfinance/base.py685 # Define the URLCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWyfinance/scrapers/fundamentals.py154 # Step 1: get columns and index:COMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWyfinance/scrapers/fundamentals.py154 # Step 1: get columns and index:COMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWyfinance/data.py147 # Can't simply use a non-caching session to fetch cookie & crumb,COMMENT