Repository Analysis

mindsdb/mindsdb

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

22.2 Moderate AI signal View on GitHub
22.2
Adjusted Score
22.2
Raw Score
100%
Time Factor
2026-05-28
Last Push
39,220
Stars
Python
Language
171,662
Lines of Code
847
Files
2659
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 28HIGH 186MEDIUM 110LOW 2335

Pattern Findings

2659 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1246 hits · 1123 pts
SeverityFileLineSnippet
LOWsetup.py23def expand_requirements_links(requirements: list) -> list:
LOWtests/conftest.py12def pytest_collection_modifyitems(config, items):
LOWtests/unit/test_passthrough.py90 def test_caller_cannot_override_authorization(self, mock_request):
LOWtests/unit/test_passthrough.py100 def test_proxy_headers_stripped(self, mock_request):
LOWtests/unit/test_passthrough.py107 def test_hop_by_hop_response_headers_stripped(self, mock_request):
LOWtests/unit/test_passthrough.py130 def test_wildcard_allows_any_host(self):
LOWtests/unit/test_passthrough.py140 def test_private_ip_rejected_by_default(self):
LOWtests/unit/test_passthrough.py145 def test_private_ip_allowed_when_explicitly_listed(self):
LOWtests/unit/test_passthrough.py172 def test_missing_bearer_raises(self):
LOWtests/unit/test_passthrough.py177 def test_missing_base_url_raises(self):
LOWtests/unit/test_passthrough.py185 def test_path_must_start_with_slash(self):
LOWtests/unit/test_passthrough.py45 def test_injects_bearer_and_uses_default_base_url(self, mock_request):
LOWtests/unit/test_passthrough.py59 def test_user_base_url_overrides_default(self, mock_request):
LOWtests/unit/test_passthrough.py66 def test_query_params_forwarded(self, mock_request):
LOWtests/unit/test_passthrough.py78 def test_default_headers_merged(self, mock_request):
LOWtests/unit/test_passthrough.py118 def test_rejects_host_outside_allowlist(self):
LOWtests/unit/test_passthrough.py159 def test_loopback_rejected_with_wildcard_when_asterisk_not_used(self):
LOWtests/unit/test_passthrough.py198 def test_token_scrubbed_from_json_body(self, mock_request):
LOWtests/unit/test_passthrough.py216 def test_token_scrubbed_from_headers(self, mock_request):
LOWtests/unit/test_passthrough.py227 def test_long_default_header_values_scrubbed(self, mock_request):
LOWtests/unit/test_passthrough.py241 def test_token_scrubbed_in_nested_json_without_corrupting_structure(self, mock_request):
LOWtests/unit/test_passthrough.py279 def test_returns_not_implemented_when_no_test_request(self):
LOWtests/unit/test_passthrough.py291 def test_rejects_method_not_in_allowed_methods(self, mock_request):
LOWtests/unit/test_passthrough.py308 def test_all_methods_allowed_when_config_absent(self, mock_request):
LOWtests/unit/test_passthrough.py319 def test_string_allowed_methods_raises_config_error(self, mock_request):
LOWtests/unit/test_passthrough.py328 def test_lowercase_allowed_methods_normalized(self, mock_request):
LOWtests/unit/test_passthrough.py345 def test_unknown_verb_in_allowed_methods_raises_config_error(self, mock_request):
LOWtests/unit/test_passthrough.py356 def test_custom_auth_header_name_and_format(self, mock_request):
LOWtests/unit/test_passthrough.py375 def test_non_mixin_class_satisfies_protocol(self):
LOWtests/unit/test_passthrough.py388 def test_class_missing_methods_fails_protocol(self):
LOWtests/unit/planner/test_integration_select.py32 def test_integration_select_plan(self):
LOWtests/unit/planner/test_integration_select.py75 def test_integration_name_is_case_insensitive(self):
LOWtests/unit/planner/test_integration_select.py111 def test_integration_select_limit_offset(self):
LOWtests/unit/planner/test_integration_select.py139 def test_integration_select_order_by(self):
LOWtests/unit/planner/test_integration_select.py169 def test_integration_select_plan_star(self):
LOWtests/unit/planner/test_integration_select.py182 def test_integration_select_plan_complex_path(self):
LOWtests/unit/planner/test_integration_select.py203 def test_integration_select_table_alias(self):
LOWtests/unit/planner/test_integration_select.py223 def test_integration_select_column_alias(self):
LOWtests/unit/planner/test_integration_select.py243 def test_integration_select_table_alias_full_query(self):
LOWtests/unit/planner/test_integration_select.py265 def test_integration_select_plan_group_by(self):
LOWtests/unit/planner/test_integration_select.py299 def test_no_integration_error(self):
LOWtests/unit/planner/test_integration_select.py306 def test_integration_select_subquery_in_target(self):
LOWtests/unit/planner/test_integration_select.py344 def test_integration_select_subquery_in_from(self):
LOWtests/unit/planner/test_integration_select.py372 def test_integration_select_subquery_in_where(self):
LOWtests/unit/planner/test_integration_select.py413 def test_integration_select_default_namespace(self):
LOWtests/unit/planner/test_integration_select.py457 def test_integration_select_default_namespace_subquery_in_from(self):
LOWtests/unit/planner/test_integration_select.py511 def test_native_query_no_sub_select(self):
LOWtests/unit/planner/test_integration_select.py564 def test_select_from_table_subselect(self):
LOWtests/unit/planner/test_integration_select.py596 def test_select_from_table_subselect_api_integration(self):
LOWtests/unit/planner/test_integration_select.py641 def test_select_from_table_subselect_sql_integration(self):
LOWtests/unit/planner/test_integration_select.py667 def test_select_from_single_integration(self):
LOWtests/unit/planner/test_integration_select.py714 def test_delete_from_table_subselect_api_integration(self):
LOWtests/unit/planner/test_integration_select.py747 def test_delete_from_table_subselect_sql_integration(self):
LOWtests/unit/planner/test_integration_select.py775 def test_delete_from_table_subselect_sql_different_integration(self):
LOWtests/unit/planner/test_integration_select.py837 def test_select_with_user_functions(self):
LOWtests/unit/planner/test_integration_select.py869 def test_select_with_mindsdb_functions(self):
LOWtests/unit/planner/test_join_tables.py87 def test_join_tables_where_plan(self):
LOWtests/unit/planner/test_join_tables.py204 def test_join_tables_plan_groupby(self):
LOWtests/unit/planner/test_join_tables.py263 def test_join_tables_plan_limit_offset(self):
LOWtests/unit/planner/test_join_tables.py321 def test_join_tables_plan_order_by(self):
1186 more matches not shown…
Excessive Try-Catch Wrapping467 hits · 458 pts
SeverityFileLineSnippet
LOWtests/unit/executor_test_base.py268 except Exception as e:
LOWtests/unit/executor_test_base.py463 except Exception:
LOWtests/unit/render/test_from_parser.py103 except Exception as e:
LOWtests/unit/dummy_llm_handler/__init__.py9except Exception as e:
LOWtests/unit/various/test_data_handlers_cache.py59 except Exception:
MEDIUMtests/unit/various/test_data_handlers_cache.py56def first_key():
LOWtests/unit/various/test_json_storage.py37 except Exception as e:
LOWtests/unit/executor/test_executor.py602 except Exception as e:
LOWtests/unit/executor/test_knowledge_base.py151 except Exception:
LOWtests/unit/executor/test_knowledge_base.py156 except Exception:
MEDIUMtests/unit/executor/test_knowledge_base.py148def _drop_storage_db(self, db_name):
LOWtests/unit/dummy_ml_handler/__init__.py9except Exception as e:
LOW…nit/handlers/community_handlers/test_access_handler.py481 except Exception as e:
LOWtests/integration/conftest.py132 except Exception:
LOWtests/integration/conftest.py156 except Exception:
LOWtests/integration/conftest.py163 except Exception:
LOWtests/integration/flows/test_mysql_api.py170 except Exception:
LOWtests/integration/flows/test_http.py240 except Exception:
MEDIUMtests/integration/flows/test_http.py241 print(f"Error in query: {query}")
LOWtests/integration/flows/test_mysql_api_extended.py272 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py642 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py649 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py72 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py80 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py128 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py556 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py616 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py628 except Exception:
LOWtests/integration/flows/test_mysql_api_extended.py596 except Exception:
LOWtests/integration/flows/test_knowledge_base.py160 except Exception:
LOWtests/integration/flows/test_knowledge_base.py167 except Exception:
LOWtests/integration/flows/test_knowledge_base.py173 except Exception:
LOWtests/integration/flows/test_knowledge_base.py177 except Exception:
LOWmindsdb/__main__.py51except Exception:
LOWmindsdb/__main__.py148 except Exception:
LOWmindsdb/__main__.py179 except Exception as e:
LOWmindsdb/__main__.py265 except Exception:
LOWmindsdb/__main__.py330 except Exception as e:
LOWmindsdb/__main__.py406 except Exception:
LOWmindsdb/__main__.py415 except Exception:
LOWmindsdb/__main__.py421 except Exception:
LOWmindsdb/__main__.py448 except Exception:
LOWmindsdb/metrics/metrics.py37 except Exception as e:
LOWmindsdb/integrations/libs/vectordatabase_handler.py260 except Exception:
LOWmindsdb/integrations/libs/vectordatabase_handler.py519 except Exception as e:
LOWmindsdb/integrations/libs/vectordatabase_handler.py655 except Exception:
LOWmindsdb/integrations/libs/api_handler.py709 except Exception as e:
LOWmindsdb/integrations/libs/api_handler.py776 except Exception:
LOWmindsdb/integrations/libs/api_handler.py809 except Exception:
LOWmindsdb/integrations/libs/api_handler.py843 except Exception:
LOWmindsdb/integrations/libs/api_handler.py879 except Exception:
LOWmindsdb/integrations/libs/api_handler.py914 except Exception:
LOWmindsdb/integrations/libs/process_cache.py170 except Exception as e:
LOWmindsdb/integrations/libs/response.py589 except Exception as e:
MEDIUMmindsdb/integrations/libs/response.py584def to_json(self):
LOWmindsdb/integrations/libs/ml_exec_base.py46except Exception:
LOWmindsdb/integrations/libs/ml_exec_base.py439 except Exception as e:
LOWmindsdb/integrations/libs/passthrough.py415 except Exception:
LOWmindsdb/integrations/libs/passthrough.py449 except Exception as e: # noqa: BLE001
LOWmindsdb/integrations/libs/passthrough.py456 except Exception:
407 more matches not shown…
Cross-File Repetition89 hits · 445 pts
SeverityFileLineSnippet
HIGHtests/unit/executor/test_project_structure.py0select m.* from dummy_data.tasks as t join proj.task_model as m
HIGHtests/unit/executor/test_project_structure.py0select m.* from dummy_data.tasks as t join proj.task_model as m
HIGHtests/unit/executor/test_handler_metrics.py0select m.* from dummy_data.tasks as t join proj.task_model as m
HIGHtests/unit/executor/test_base_queires.py0create model mindsdb.pred predict p using engine='dummy_ml', join_learn_process=true
HIGHtests/unit/executor/test_models.py0create model mindsdb.pred predict p using engine='dummy_ml', join_learn_process=true
HIGHtests/unit/executor/test_models.py0create model mindsdb.pred predict p using engine='dummy_ml', join_learn_process=true
HIGHtests/unit/executor/test_executor.py0select t.t as t0, p.* from pg.tasks t join mindsdb.task_model p where t.t > latest
HIGHtests/unit/executor/test_executor.py0select t.t as t0, p.* from pg.tasks t join mindsdb.task_model p where t.t > latest
HIGHtests/unit/executor/test_executor.py0select t.t as t0, p.* from pg.tasks t join mindsdb.task_model p where t.t > latest
HIGHtests/unit/executor/test_knowledge_base.py0insert into kb_part select id, english from pg.ral using batch_size=20, track_column=id
HIGHtests/unit/executor/test_knowledge_base.py0insert into kb_part select id, english from pg.ral using batch_size=20, track_column=id
HIGHtests/unit/executor/test_knowledge_base.py0insert into kb_part select id, english from pg.ral using batch_size=20, track_column=id
HIGHtests/unit/ml_handlers/test_openai.py0test if model describe returns the expected result.
HIGHtests/unit/ml_handlers/test_openai.py0test if model describe returns the expected result.
HIGHtests/unit/ml_handlers/test_openai.py0test if model describe returns the expected result.
HIGHtests/unit/handlers/test_snowflake.py0select column_name, data_type, ordinal_position, column_default, is_nullable, character_maximum_length, character_octet_
HIGHtests/unit/handlers/test_timescaledb.py0select column_name, data_type, ordinal_position, column_default, is_nullable, character_maximum_length, character_octet_
HIGHtests/unit/handlers/test_postgres.py0select column_name, data_type, ordinal_position, column_default, is_nullable, character_maximum_length, character_octet_
HIGHtests/unit/handlers/test_snowflake.py0tests that connect method raises valueerror when required connection parameters are missing
HIGHtests/unit/handlers/test_oracle.py0tests that connect method raises valueerror when required connection parameters are missing
HIGHtests/unit/handlers/test_mssql.py0tests that connect method raises valueerror when required connection parameters are missing
HIGHtests/unit/handlers/test_snowflake.py0tests the disconnect method to ensure it correctly closes connections
HIGHtests/unit/handlers/test_oracle.py0tests the disconnect method to ensure it correctly closes connections
HIGHtests/unit/handlers/test_mysql.py0tests the disconnect method to ensure it correctly closes connections
HIGHtests/unit/handlers/test_mssql.py0tests the disconnect method to ensure it correctly closes connections
HIGHtests/unit/handlers/test_postgres.py0tests the disconnect method to ensure it correctly closes connections
HIGHtests/unit/handlers/test_snowflake.py0tests the `native_query` method to ensure it properly handles and returns database errors
HIGHtests/unit/handlers/test_mysql.py0tests the `native_query` method to ensure it properly handles and returns database errors
HIGHtests/unit/handlers/test_mssql.py0tests the `native_query` method to ensure it properly handles and returns database errors
HIGHtests/unit/handlers/test_postgres.py0tests the `native_query` method to ensure it properly handles and returns database errors
HIGHtests/unit/handlers/test_snowflake.py0tests the query method to ensure it correctly converts astnode to sql and calls native_query
HIGHtests/unit/handlers/test_mysql.py0tests the query method to ensure it correctly converts astnode to sql and calls native_query
HIGHtests/unit/handlers/test_mssql.py0tests the query method to ensure it correctly converts astnode to sql and calls native_query
HIGHtests/unit/handlers/test_mysql.py0select table_schema as table_schema, table_name as table_name, table_type as table_type from information_schema.tables w
HIGHtests/unit/handlers/test_mariadb.py0select table_schema as table_schema, table_name as table_name, table_type as table_type from information_schema.tables w
HIGH…b/integrations/handlers/mysql_handler/mysql_handler.py0select table_schema as table_schema, table_name as table_name, table_type as table_type from information_schema.tables w
HIGHtests/unit/handlers/test_salesforce.py0test that the `check_connection` method returns a statusresponse object and accurately reflects the connection status on
HIGH…ts/unit/handlers/community_handlers/test_confluence.py0test that the `check_connection` method returns a statusresponse object and accurately reflects the connection status on
HIGHtests/unit/handlers/community_handlers/test_s3.py0test that the `check_connection` method returns a statusresponse object and accurately reflects the connection status on
HIGHtests/integration/flows/test_mysql_api_extended.py0create knowledge_base {kb_name} using embedding_model = {{"provider": "openai", "model_name": "{embedding_model}", "api_
HIGHtests/integration/flows/test_mysql_api_extended.py0create knowledge_base {kb_name} using embedding_model = {{"provider": "openai", "model_name": "{embedding_model}", "api_
HIGHtests/integration/flows/test_mysql_api_extended.py0create knowledge_base {kb_name} using embedding_model = {{"provider": "openai", "model_name": "{embedding_model}", "api_
HIGHmindsdb/integrations/libs/api_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…grations/handlers/netsuite_handler/netsuite_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…grations/handlers/bigquery_handler/bigquery_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…ions/handlers/databricks_handler/databricks_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…b/integrations/handlers/mssql_handler/mssql_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…b/integrations/handlers/mysql_handler/mysql_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…grations/handlers/postgres_handler/postgres_handler.py0retrieves column metadata for the specified tables (or all tables if no list is provided). args: table_names (list): a l
HIGH…integrations/handlers/oracle_handler/oracle_handler.py0handle query execution errors with appropriate logging and rollback. args: e: the exception that was raised query: the s
HIGH…b/integrations/handlers/mysql_handler/mysql_handler.py0handle query execution errors with appropriate logging and rollback. args: e: the exception that was raised query: the s
HIGH…grations/handlers/postgres_handler/postgres_handler.py0handle query execution errors with appropriate logging and rollback. args: e: the exception that was raised query: the s
HIGH…integrations/handlers/oracle_handler/oracle_handler.py0executes a sql query represented by an astnode and retrieves the data. args: query (astnode): an astnode representing th
HIGH…grations/handlers/bigquery_handler/bigquery_handler.py0executes a sql query represented by an astnode and retrieves the data. args: query (astnode): an astnode representing th
HIGH…b/integrations/handlers/mssql_handler/mssql_handler.py0executes a sql query represented by an astnode and retrieves the data. args: query (astnode): an astnode representing th
HIGH…grations/handlers/bigquery_handler/bigquery_handler.py0retrieves primary key information for the specified tables (or all tables if no list is provided). args: table_names (li
HIGH…b/integrations/handlers/mssql_handler/mssql_handler.py0retrieves primary key information for the specified tables (or all tables if no list is provided). args: table_names (li
HIGH…b/integrations/handlers/mysql_handler/mysql_handler.py0retrieves primary key information for the specified tables (or all tables if no list is provided). args: table_names (li
HIGH…grations/handlers/postgres_handler/postgres_handler.py0retrieves primary key information for the specified tables (or all tables if no list is provided). args: table_names (li
HIGH…grations/handlers/bigquery_handler/bigquery_handler.py0retrieves foreign key information for the specified tables (or all tables if no list is provided). args: table_names (li
29 more matches not shown…
Hallucination Indicators28 hits · 375 pts
SeverityFileLineSnippet
CRITICALtests/unit/api/mcp/test_resources.py136 SC.return_value.integration_controller.get_data_handler.return_value.get_columns.assert_called_once_with(
CRITICALtests/unit/handlers/test_hubspot.py715 mock_hubspot_client.crm.companies.search_api.do_search.assert_called_once_with(
CRITICALtests/unit/handlers/test_hubspot.py882 mock_hubspot_client.crm.companies.search_api.do_search.assert_called()
CRITICALtests/unit/handlers/test_hubspot.py914 mock_hubspot_client.crm.contacts.search_api.do_search.assert_called()
CRITICALtests/unit/handlers/test_hubspot.py949 mock_hubspot_client.crm.deals.search_api.do_search.assert_called()
CRITICALtests/unit/handlers/test_hubspot.py1025 mock_hubspot_client.crm.companies.search_api.do_search.assert_called()
CRITICALtests/unit/handlers/test_salesforce.py420 handler.connection.sobjects.Account.describe.assert_called_once()
CRITICAL…tegrations/handlers/hubspot_handler/hubspot_handler.py363 self.connection.crm.objects.basic_api.get_page(
CRITICAL…tegrations/handlers/hubspot_handler/hubspot_handler.py701 result = self.connection.crm.objects.search_api.do_search(
CRITICAL…tegrations/handlers/hubspot_handler/hubspot_handler.py735 page = self.connection.crm.objects.basic_api.get_page(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3250 created_tasks = hubspot.crm.objects.tasks.batch_api.create(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3266 updated = hubspot.crm.objects.tasks.batch_api.update(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3278 hubspot.crm.objects.tasks.batch_api.archive(batch_input_simple_public_object_id=batch_input)
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3507 created_calls = hubspot.crm.objects.calls.batch_api.create(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3523 updated = hubspot.crm.objects.calls.batch_api.update(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3535 hubspot.crm.objects.calls.batch_api.archive(batch_input_simple_public_object_id=batch_input)
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3764 created_emails = hubspot.crm.objects.emails.batch_api.create(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3780 updated = hubspot.crm.objects.emails.batch_api.update(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py3792 hubspot.crm.objects.emails.batch_api.archive(batch_input_simple_public_object_id=batch_input)
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4021 created_meetings = hubspot.crm.objects.meetings.batch_api.create(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4037 updated = hubspot.crm.objects.meetings.batch_api.update(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4049 hubspot.crm.objects.meetings.batch_api.archive(batch_input_simple_public_object_id=batch_input)
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4273 created_notes = hubspot.crm.objects.notes.batch_api.create(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4289 updated = hubspot.crm.objects.notes.batch_api.update(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4301 hubspot.crm.objects.notes.batch_api.archive(batch_input_simple_public_object_id=batch_input)
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4526 created_leads = hubspot.crm.objects.leads.batch_api.create(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4542 updated = hubspot.crm.objects.leads.batch_api.update(
CRITICAL…ntegrations/handlers/hubspot_handler/hubspot_tables.py4554 hubspot.crm.objects.leads.batch_api.archive(batch_input_simple_public_object_id=batch_input)
Docstring Block Structure61 hits · 305 pts
SeverityFileLineSnippet
HIGHmindsdb/integrations/libs/response.py136Safely concatenates multiple pandas DataFrames while checking available memory. If the estimated memory required for
HIGH…db/integrations/utilities/community_handler_fetcher.py101Fetch all files in a Git tree recursively, preserving directory structure. Uses the Git Trees API with ?recursive=1
HIGH…db/integrations/utilities/community_handler_fetcher.py161 Fetch a single community handler directory from GitHub into storage_dir. Downloads the full directory tree for
HIGH…integrations/handlers/oracle_handler/oracle_handler.py497 Retrieves column details for a specified table in the Oracle database. Args: table_name (s
HIGH…/integrations/handlers/web_handler/urlcrawl_helpers.py20 Convert a PDF document to Markdown text. Args: response: the response object containing the PDF data
HIGH…/integrations/handlers/web_handler/urlcrawl_helpers.py83 Fetch all website links from a list of URLs. Args: urls (list): a list of URLs to fetch links from
HIGH…tegrations/handlers/bedrock_handler/bedrock_handler.py42 Creates a model by validating the model configuration and saving it to the storage. Args:
HIGH…tegrations/handlers/bedrock_handler/bedrock_handler.py77 Makes predictions using a model by invoking the Amazon Bedrock API. Args: df (pd.DataFrame
HIGH…grations/handlers/bigquery_handler/bigquery_handler.py185 Retrieves column details for a specified table in the configured dataset of the BigQuery warehouse. Ar
HIGH…ations/handlers/snowflake_handler/snowflake_handler.py290Execute a SQL query and yield results in batches. Args: query (str): The SQL query to execute.
HIGH…ations/handlers/snowflake_handler/snowflake_handler.py403 Retrieves column details for a specified table in the Snowflake account. Args: table_name
HIGH…ions/handlers/databricks_handler/databricks_handler.py136Transform INTERVAL literals in the SQL query to be compatible with Databricks SQL syntax. Transformation examples:
HIGH…ions/handlers/databricks_handler/databricks_handler.py475 Retrieves column details for a specified table in the Databricks workspace. Args: table_na
HIGH…b/integrations/handlers/mssql_handler/mssql_handler.py460 Retrieves column details for a specified table in the Microsoft SQL Server database. Args:
HIGH…integrations/handlers/openai_handler/openai_handler.py78 Validate the OpenAI API credentials on engine creation. Args: connection_args (Dict): Para
HIGH…integrations/handlers/openai_handler/openai_handler.py107 Check the OpenAI engine client connection by retrieving a model. Args: client (openai.Open
HIGH…integrations/handlers/openai_handler/openai_handler.py130 Validate the OpenAI API credentials on model creation. Args: target (Text): Target column
HIGH…integrations/handlers/openai_handler/openai_handler.py217 Create a model by connecting to the OpenAI API. Args: target (Text): Target column name.
HIGH…integrations/handlers/openai_handler/openai_handler.py264 Make predictions using a model connected to the OpenAI API. Args: df (pd.DataFrame): Input
HIGH…integrations/handlers/openai_handler/openai_handler.py752 Submit a request to the image generation endpoint of the OpenAI API. This method consists of a
HIGH…integrations/handlers/openai_handler/openai_handler.py875 Fine-tune OpenAI GPT models via a MindsDB model connected to the OpenAI API. Steps are roughly:
HIGH…integrations/handlers/openai_handler/openai_handler.py1070 Submit a fine-tuning job via the OpenAI API. This method handles requests to both the legacy and new en
HIGH…integrations/handlers/openai_handler/openai_handler.py1095 Check the status of a fine-tuning job via the OpenAI API. Args: job_id (Text):
HIGH…sdb/integrations/handlers/groq_handler/groq_handler.py30 Check the Groq engine client connection by listing models. Args: client (OpenAI): OpenAI c
HIGH…sdb/integrations/handlers/groq_handler/groq_handler.py52 Validate the Groq API credentials on engine creation. Args: connection_args (dict): Connec
HIGH…sdb/integrations/handlers/groq_handler/groq_handler.py74 Validate the Groq API credentials on model creation. Args: target (str): Target column, no
HIGH…grations/handlers/postgres_handler/postgres_handler.py514 Retrieves column details for a specified table in the PostgreSQL database. Args: table_nam
HIGHmindsdb/utilities/functions.py92 Splits a model identifier into its database, model name, and version components. The identifier may contain on
HIGHmindsdb/utilities/config.py17Read an environment variable and return its value as a boolean. Args: env_name (str): name of the environme
HIGHmindsdb/utilities/security.py37 Splits the URL into scheme and netloc. Args: url (str): The URL to split. Returns: tuple[
HIGHmindsdb/utilities/security.py56 Checks if the provided URL(s) is/are from an allowed host. This function parses the URL(s) and checks the orig
HIGHmindsdb/api/executor/command_executor.py160Extract a single-part name from an Identifier object, optionally ensuring it is lowercase. Args: identifier
HIGHmindsdb/api/executor/command_executor.py187Extract a (database, name) tuple from an Identifier object that may have one or two parts. Args: identifier
HIGHmindsdb/api/executor/command_executor.py1172Handles the `CREATE ML_ENGINE` command, which creates a new ML integration (engine) in the system. Args:
HIGHmindsdb/api/executor/command_executor.py1237Handles the `DROP ML_ENGINE` command, which removes an ML integration (engine) from the system. Args:
HIGHmindsdb/api/executor/command_executor.py1287Drop a database (project or integration) by name. Args: statement (DropDatabase | DropDatasource):
HIGHmindsdb/api/executor/command_executor.py1390Drop one or more views from the specified database/project. Args: statement (DropView): The parsed
HIGHmindsdb/api/executor/command_executor.py1986Handles the DROP MODEL (or DROP PREDICTOR) command, which removes a model or a specific model version from a pro
HIGH…api/executor/datahub/datanodes/integration_datanode.py256Execute a query against the integration data source. This method processes SQL queries either as ASTNode object
HIGHmindsdb/api/executor/sql_query/result_set.py164Create ResultSet from dataframe and dictionary of columns Args: df (pd.DataFrame): dataframe
HIGH…db/api/executor/utilities/mysql_to_duckdb_functions.py60Replace MySQL's LOCATE (or INSTR) call to DuckDB's STRPOS call Example: LOCATE('bar', 'foobarbar') => STRPO
HIGH…db/api/executor/utilities/mysql_to_duckdb_functions.py86Check MySQL's UNHEX function call arguments to ensure they are strings, because DuckDB's UNHEX accepts only string a
HIGH…db/api/executor/utilities/mysql_to_duckdb_functions.py105Adapt MySQL's FORMAT function to DuckDB's FORMAT function Example: FORMAT(1234567.89, 0) => FORMAT('{:,.0f}
HIGH…db/api/executor/utilities/mysql_to_duckdb_functions.py143Adapt MySQL's SHA2 function to DuckDB's SHA256 function Example: SHA2('test', 256) => SHA256('test') A
HIGH…db/api/executor/utilities/mysql_to_duckdb_functions.py180Adapt MySQL's REGEXP_SUBSTR function to DuckDB's REGEXP_EXTRACT function Example: REGEXP_SUBSTR('foobarbar'
HIGH…db/api/executor/utilities/mysql_to_duckdb_functions.py207Adapt MySQL's SUBSTRING_INDEX function to DuckDB's SPLIT_PART function Example: SUBSTRING_INDEX('a.b.c.d',
HIGHmindsdb/api/executor/utilities/sql.py58Duckdb need to infer column types if column.dtype == object. By default it take 1000 rows, but that may be not suffi
HIGHmindsdb/interfaces/database/database.py22Delete a database (project or integration) by name. Args: name (str): The name of the database to d
HIGHmindsdb/interfaces/database/projects.py105Remove a view with the specified name from the current project. Args: name (str): The name of the v
HIGHmindsdb/interfaces/database/projects.py596Get a project by id or name. Args: id (int | None, optional): The id of the project to retrieve. Ca
HIGHmindsdb/interfaces/database/integrations.py162Delete an integration by name. Args: name (str): The name of the integration to delete.
HIGHmindsdb/interfaces/database/views.py42Update the SQL query of an existing view in the specified project. Args: name (str): The name of th
HIGHmindsdb/interfaces/database/views.py76Remove a view with the specified name from the given project. Args: name (str): The name of the vie
HIGHmindsdb/interfaces/agents/chart_agent.py229 Generate Chart.js configuration, execute data query, and populate datasets. Args: query: SQ
HIGHmindsdb/interfaces/agents/agents_controller.py196 Adds an agent to the database. Parameters: name (str): The name of the new agent
HIGHmindsdb/interfaces/agents/agents_controller.py265 Updates an agent in the database. Parameters: agent_name (str): The name of the new agent,
HIGHmindsdb/interfaces/agents/agents_controller.py381 Queries an agent to get a completion. Parameters: agent (db.Agents): Existing agent to get
HIGH…b/interfaces/agents/utils/pydantic_ai_model_factory.py201 Create and return a Pydantic AI model instance from MindsDB args. This method creates an actual model instance
HIGHmindsdb/interfaces/query_context/context_controller.py28Get the column name from a list of columns using case-insensitive search Args: columns: list of column name
HIGHmindsdb/interfaces/storage/model_fs.py30Get model record by id Args: model_id (int): model id check_exists (bool): true if need
1 more matches not shown…
Deep Nesting274 hits · 260 pts
SeverityFileLineSnippet
LOWsetup.py23
LOWsetup.py43
LOWtests/unit/executor_test_base.py170
LOWtests/unit/executor_test_base.py377
LOWtests/unit/executor_test_base.py419
LOWtests/unit/planner/test_prepared_statement.py129
LOWtests/unit/render/test_from_parser.py12
LOWtests/unit/render/test_from_parser.py123
LOWtests/unit/render/test_from_parser.py68
LOWtests/unit/api/a2a/streaming_test_client.py12
LOWtests/unit/api/a2a/streaming_test_client.py53
LOWtests/unit/executor/test_handler_metrics.py7
LOWtests/unit/executor/test_lowercase.py49
LOWtests/unit/handlers/test_file.py405
LOWtests/integration/flows/test_mysql_api.py48
LOWtests/integration/flows/test_mysql_api.py115
LOWtests/integration/flows/test_mysql_api.py209
LOWtests/integration/handlers/test_data_sources.py26
LOWtests/integration/handlers/test_data_sources.py73
LOWtests/integration/handlers/utils/helpers.py48
LOWtests/scripts/check_requirements.py25
LOWtests/scripts/check_requirements.py350
LOWtests/scripts/check_requirements.py368
LOWmindsdb/__main__.py133
LOWmindsdb/__main__.py160
LOWmindsdb/__main__.py581
LOWmindsdb/integrations/libs/vectordatabase_handler.py103
LOWmindsdb/integrations/libs/vectordatabase_handler.py148
LOWmindsdb/integrations/libs/vectordatabase_handler.py108
LOWmindsdb/integrations/libs/api_handler.py27
LOWmindsdb/integrations/libs/api_handler.py150
LOWmindsdb/integrations/libs/api_handler.py454
LOWmindsdb/integrations/libs/api_handler.py633
LOWmindsdb/integrations/libs/api_handler.py666
LOWmindsdb/integrations/libs/api_handler.py758
LOWmindsdb/integrations/libs/api_handler.py792
LOWmindsdb/integrations/libs/api_handler.py826
LOWmindsdb/integrations/libs/api_handler.py862
LOWmindsdb/integrations/libs/api_handler.py894
LOWmindsdb/integrations/libs/process_cache.py239
LOWmindsdb/integrations/libs/process_cache.py363
LOWmindsdb/integrations/libs/api_handler_generator.py250
LOWmindsdb/integrations/libs/api_handler_generator.py310
LOWmindsdb/integrations/libs/api_handler_generator.py494
LOWmindsdb/integrations/libs/base.py218
LOW…/integrations/libs/ml_handler_process/learn_process.py28
LOWmindsdb/integrations/utilities/pydantic_utils.py74
LOWmindsdb/integrations/utilities/pydantic_utils.py105
LOWmindsdb/integrations/utilities/pydantic_utils.py127
LOWmindsdb/integrations/utilities/pydantic_utils.py156
LOWmindsdb/integrations/utilities/query_traversal.py4
LOWmindsdb/integrations/utilities/sql_utils.py131
LOWmindsdb/integrations/utilities/sql_utils.py197
LOWmindsdb/integrations/utilities/sql_utils.py244
LOWmindsdb/integrations/utilities/sql_utils.py329
LOWmindsdb/integrations/utilities/sql_utils.py367
LOWmindsdb/integrations/utilities/sql_utils.py400
LOWmindsdb/integrations/utilities/sql_utils.py430
LOWmindsdb/integrations/utilities/sql_utils.py138
LOWmindsdb/integrations/utilities/sql_utils.py411
214 more matches not shown…
Self-Referential Comments76 hits · 254 pts
SeverityFileLineSnippet
MEDIUMdocker-compose.yml48 LANGFUSE_HOST: "http://langfuse:3000" # Define the host for langfuse
MEDIUMdocker-compose.yml49 LANGFUSE_PUBLIC_KEY: "pk-lf-1234567890" # Define the public key for langfuse
MEDIUMdocker-compose.yml50 LANGFUSE_SECRET_KEY: "sk-lf-1234567890" # Define the secret key for langfuse
MEDIUMdocker-compose.yml57 OTEL_EXPORTER_TYPE: "console" # or "console" # Define the exporter type (console/otlp)
MEDIUMdocker-compose.yml58 # OTEL_EXPORTER_PROTOCOL: "grpc" # or "http" # Define the protocol for the otlp exporter.
MEDIUMdocker-compose.yml59 # OTEL_OTLP_ENDPOINT: "http://otel-collector:4317" # Define the endpoint for the otlp exporter.
MEDIUMdocker-compose.yml63 OTEL_SERVICE_NAME: "mindsdb" # Define the service name
MEDIUMdocker-compose.yml64 OTEL_SERVICE_INSTANCE_ID: "mindsdb-instance" # Define the service instance id
MEDIUMdocker-compose.yml65 OTEL_SERVICE_ENVIRONMENT: "local" # Define the service environment
MEDIUMdocker-compose.yml66 OTEL_SERVICE_RELEASE: "local" # Define the service release
MEDIUMdocker-compose.yml67 OTEL_TRACE_SAMPLE_RATE: "1.0" # Define the trace sample rate
MEDIUMdocker-compose.yml68 OTEL_EXTRA_ATTRIBUTES: "" # Define the extra attributes
MEDIUMtests/unit/various/test_json_chunker.py60 # Create a nested JSON object
MEDIUMtests/unit/various/test_json_chunker.py144 # Create a JSON object
MEDIUMtests/unit/various/test_json_chunker.py295 # Create a nested JSON object
MEDIUMtests/unit/various/test_json_chunker.py324 # Create a nested JSON object
MEDIUMtests/unit/various/test_json_chunker.py436 # Create a document
MEDIUMtests/unit/various/test_json_chunker.py446 # Create the JSON chunker with the config
MEDIUMtests/unit/various/test_json_chunker.py468 # Create a document
MEDIUMtests/unit/various/test_json_chunker.py478 # Create the JSON chunker with the config
MEDIUMtests/unit/various/test_json_chunker.py506 # Create a document
MEDIUMtests/unit/various/test_json_chunker.py516 # Create the JSON chunker with the config
MEDIUMtests/unit/various/test_json_chunker.py17 # Create a simple JSON object
MEDIUMtests/unit/various/test_json_chunker.py103 # Create a JSON object
MEDIUMtests/unit/various/test_json_chunker.py181 # Create a utility bill JSON object based on the provided schema
MEDIUMtests/unit/various/test_json_chunker.py279 # Create an invalid JSON document
MEDIUMtests/unit/various/test_json_chunker.py360 # Create a simple JSON object
MEDIUMtests/unit/various/test_json_chunker.py397 # Create a document with the CV data
MEDIUMtests/unit/various/test_json_chunker.py415 # Create the JSON chunker with the config
MEDIUMtests/unit/various/test_document_preprocessor.py558 # Create a pre-defined chunk with the correct metadata
MEDIUMtests/unit/various/test_document_preprocessor.py608 # Create a mock async LLM
MEDIUMtests/unit/various/test_document_preprocessor.py613 # Create a mock with async support
MEDIUMtests/unit/various/test_document_preprocessor.py631 # Create a mock with async support
MEDIUMtests/unit/api/http/files_test.py158 # Create a zip file in memory
MEDIUMtests/unit/api/http/files_test.py181 # Create a zip file in memory with a symlink
MEDIUMtests/unit/executor/test_agent.py188 # Create an agent with only provider specified - should use default LLM params
MEDIUMtests/unit/executor/test_agent.py227 # Create an agent with minimal syntax - should use all default LLM params
MEDIUMtests/unit/ml_handlers/test_openai.py23 # Define a return value for the `get_connection_args` method of the mock engine storage
MEDIUMtests/unit/ml_handlers/test_openai.py163 # Create a dummy DataFrame
MEDIUMtests/unit/ml_handlers/test_openai.py179 # Create a dummy DataFrame
MEDIUMtests/unit/ml_handlers/test_openai.py195 # Create a dummy DataFrame
MEDIUMtests/unit/ml_handlers/test_openai.py209 # Create a dummy DataFrame
MEDIUMtests/unit/ml_handlers/test_openai.py227 # Create a dummy DataFrame
MEDIUMtests/unit/ml_handlers/test_openai.py615 # Create a mock base model storage and assign it to the handler
MEDIUMtests/unit/handlers/test_snowflake.py97 # Create a temporary file
MEDIUMtests/unit/handlers/test_salesforce.py185 # Create a mock for the Contact object that will be accessed via getattr
MEDIUMtests/unit/handlers/test_salesforce.py189 # Create the main sobjects mock
MEDIUMtests/unit/handlers/test_salesforce.py196 # Create the client mock
MEDIUMtests/unit/handlers/test_file.py28# Define a table to use as content for all of the file types
MEDIUMtests/unit/handlers/test_file.py183 # Create a temporary file to save the csv file to.
MEDIUMtests/unit/handlers/test_postgres.py600 # Create a fresh handler with different schema
MEDIUM…sts/unused/unit/handler_tests/test_pgvector_handler.py37 # Create the test database
MEDIUM…unused/unit/interfaces/agents/test_api_key_handling.py76 # Create an instance of AgentsController
MEDIUM…unused/unit/interfaces/agents/test_api_key_handling.py82 # Create a mock agent with proper params
MEDIUMmindsdb/integrations/libs/api_handler.py681 # Create a SELECT query to sample data
MEDIUM…db/integrations/utilities/community_handler_fetcher.py238 # Creating the directory, maybe can be done on init?
MEDIUM…/integrations/utilities/rag/rerankers/base_reranker.py379 # Create a map of 'class_1' -> probability, using token combinations
MEDIUM…grations/handlers/chromadb_handler/chromadb_handler.py375 df = df.copy() # Create a copy to avoid modifying the original
MEDIUM…sdb/integrations/handlers/file_handler/file_handler.py127 # Create a temp file to save the table
MEDIUM…sdb/integrations/handlers/file_handler/file_handler.py130 # Create an empty file using with the columns in the query
16 more matches not shown…
Unused Imports211 hits · 210 pts
SeverityFileLineSnippet
LOWtests/unit/dummy_llm_handler/__init__.py3
LOWtests/unit/dummy_llm_handler/__init__.py3
LOWtests/unit/executor/test_api_handler.py15
LOWtests/unit/executor/test_api_handler.py22
LOWtests/unit/dummy_ml_handler/__init__.py3
LOWtests/unit/dummy_ml_handler/__init__.py3
LOWtests/unit/dummy_ml_handler/__init__.py4
LOWtests/unit/dummy_ml_handler/__init__.py5
LOWmindsdb/__init__.py1
LOWmindsdb/__main__.py45
LOWmindsdb/integrations/libs/process_cache.py28
LOWmindsdb/integrations/libs/__init__.py1
LOWmindsdb/integrations/libs/const.py34
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py1
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py2
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py3
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py4
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py5
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py6
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py7
LOW…ndsdb/integrations/libs/ml_handler_process/__init__.py8
LOWmindsdb/integrations/utilities/time_series_utils.py7
LOW…/integrations/utilities/rag/rerankers/base_reranker.py1
LOW…utilities/handlers/api_utilities/microsoft/__init__.py1
LOW…rations/utilities/handlers/query_utilities/__init__.py1
LOW…rations/utilities/handlers/query_utilities/__init__.py1
LOW…rations/utilities/handlers/query_utilities/__init__.py2
LOW…rations/utilities/handlers/query_utilities/__init__.py3
LOW…rations/utilities/handlers/query_utilities/__init__.py3
LOW…rations/utilities/handlers/query_utilities/__init__.py4
LOW…rations/utilities/handlers/query_utilities/__init__.py4
LOW…ns/utilities/handlers/validation_utilities/__init__.py1
LOW…s/utilities/handlers/auth_utilities/google/__init__.py1
LOW…s/utilities/handlers/auth_utilities/google/__init__.py2
LOW…tilities/handlers/auth_utilities/microsoft/__init__.py1
LOW…tilities/handlers/auth_utilities/microsoft/__init__.py1
LOW…tilities/handlers/auth_utilities/snowflake/__init__.py1
LOW…ndsdb/integrations/handlers/cohere_handler/__init__.py1
LOW…ndsdb/integrations/handlers/cohere_handler/__init__.py1
LOW…ndsdb/integrations/handlers/oracle_handler/__init__.py3
LOW…ndsdb/integrations/handlers/oracle_handler/__init__.py3
LOW…ndsdb/integrations/handlers/oracle_handler/__init__.py4
LOW…ndsdb/integrations/handlers/oracle_handler/__init__.py4
LOW…sdb/integrations/handlers/chromadb_handler/__init__.py3
LOW…sdb/integrations/handlers/chromadb_handler/__init__.py4
LOW…sdb/integrations/handlers/chromadb_handler/__init__.py5
LOW…sdb/integrations/handlers/chromadb_handler/__init__.py5
LOW…/integrations/handlers/huggingface_handler/__init__.py3
LOW…/integrations/handlers/huggingface_handler/__init__.py3
LOWmindsdb/integrations/handlers/email_handler/__init__.py3
LOWmindsdb/integrations/handlers/email_handler/__init__.py3
LOW…ndsdb/integrations/handlers/duckdb_handler/__init__.py3
LOW…ndsdb/integrations/handlers/duckdb_handler/__init__.py3
LOW…ndsdb/integrations/handlers/duckdb_handler/__init__.py4
LOW…ndsdb/integrations/handlers/duckdb_handler/__init__.py4
LOW…sdb/integrations/handlers/redshift_handler/__init__.py3
LOW…sdb/integrations/handlers/redshift_handler/__init__.py3
LOW…sdb/integrations/handlers/redshift_handler/__init__.py4
LOW…sdb/integrations/handlers/redshift_handler/__init__.py4
LOWmindsdb/integrations/handlers/file_handler/__init__.py3
151 more matches not shown…
Cross-Language Confusion31 hits · 149 pts
SeverityFileLineSnippet
HIGHtests/unit/planner/test_insert_from_select.py169 assert step.from_table.equals(expected_step.from_table)
HIGHtests/unit/executor/test_mongodb_handler.py39 {"e": {"$ne": null}}]}},
HIGHtests/unit/executor/test_mongodb_handler.py93 {"$group": {"_id": {"a": "$a"}, "total": {"$sum": "$b"}, "cnt": {"$sum": {"$cond": [{"$ne": ["$c", null]
HIGHtests/unit/executor/test_knowledge_base.py684 or (content is null)
HIGHtests/unit/executor/test_knowledge_base.py715 or (chunk_content is null)
HIGHtests/unit/handlers/test_snowflake.py1605 self.assertTrue(response.data_frame.equals(expected_result_df))
HIGHtests/unit/handlers/test_snowflake.py1669 self.assertTrue(response.data_frame.equals(expected_result_df))
HIGHtests/unit/handlers/test_file.py402 assert response.data_frame.equals(expected_df)
HIGHtests/unit/handlers/test_postgres.py941 '{1,null,3}',
HIGHtests/unit/handlers/test_postgres.py942 '{{1,2,3},{4,null,6}}',
HIGHtests/unit/handlers/test_postgres.py943 '{"test1", null, "test3"}',
HIGH…/integrations/libs/ml_handler_process/learn_process.py95 modelStorage.fileStorage.push() # FIXME
HIGH…ntegrations/handlers/shopify_handler/shopify_tables.py228 productsCount(limit:null) {
HIGH…ntegrations/handlers/shopify_handler/shopify_tables.py303 productVariantsCount(limit:null) {
HIGH…ntegrations/handlers/shopify_handler/shopify_tables.py378 customersCount(limit:null) {
HIGH…ntegrations/handlers/shopify_handler/shopify_tables.py464 ordersCount(limit:null) {
HIGH…ntegrations/handlers/shopify_handler/shopify_tables.py721 giftCardsCount(limit:null) {
HIGH…tegrations/handlers/shopify_handler/models/products.py122 "COLUMN_DESCRIPTION": "The role of the product in a combined listing. If null, then the product isn't part of an
HIGH…tegrations/handlers/shopify_handler/models/products.py290 "COLUMN_DESCRIPTION": "The product's URL on the online store. If null, then the product isn't published to the o
HIGH…/integrations/handlers/salesforce_handler/constants.py63- NULL values: Use lowercase null, NOT NULL
HIGHmindsdb/api/executor/command_executor.py642 if query.fetched_data.length() > 0:
HIGHmindsdb/api/executor/sql_query/result_set.py118 return f"{self.__class__.__name__}({self.length()} rows, cols: {col_names})"
HIGH…b/api/executor/sql_query/steps/apply_predictor_step.py70 if rs.length() == 1:
HIGH…b/api/executor/sql_query/steps/apply_predictor_step.py124 values = range(row_id, row_id + data.length())
HIGH…b/api/executor/sql_query/steps/apply_predictor_step.py126 self.context["row_id"] += data.length()
HIGHmindsdb/interfaces/tabs/tabs_controller.py243 file_storage.push()
HIGHmindsdb/interfaces/tabs/tabs_controller.py276 file_storage.push()
HIGHmindsdb/interfaces/database/integrations.py125 store.push()
HIGHmindsdb/interfaces/agents/chart_agent.py144 # Get sample values (non-null)
HIGHmindsdb/interfaces/storage/fs.py452 self.push(compression_level=compression_level)
HIGHmindsdb/interfaces/model/functions.py3from sqlalchemy import null, func
Redundant / Tautological Comments56 hits · 78 pts
SeverityFileLineSnippet
LOWtests/unit/various/test_document_preprocessor.py622 summarize=True, # Set summarize to True to only return context
LOWtests/unit/various/test_document_preprocessor.py648 summarize=True, # Set summarize to True to only return context
LOWtests/scripts/check_requirements.py419 # Check if the imported handler has a requirements.txt file.
LOWmindsdb/integrations/libs/api_handler.py46 # Check if it looks like a timestamp (ISO format with T and timezone)
LOWmindsdb/integrations/libs/api_handler.py49 # Check if it looks like a date/datetime
LOWmindsdb/integrations/libs/api_handler.py310 # Check if query has aggregation functions (like COUNT, SUM, etc.)
LOWmindsdb/integrations/libs/api_handler.py640 # Check if query has aggregations - if so, don't modify targets
LOWmindsdb/integrations/utilities/date_utils.py34 # Check if the parsed date is earlier than the maximum window allowed
LOWmindsdb/integrations/utilities/sql_utils.py139 # Check if this node is a child of an already-captured node
LOWmindsdb/integrations/utilities/sql_utils.py377 # Check if one side is CURRENT_DATE (function or identifier)
LOWmindsdb/integrations/utilities/sql_utils.py384 # Check if other side is INTERVAL
LOWmindsdb/integrations/utilities/sql_utils.py415 # Check if arg2 is a date expression using the same logic
LOWmindsdb/integrations/utilities/sql_utils.py445 # Check if arg2 is a date string (ISO format) and arg1 might be a date column
LOWmindsdb/integrations/utilities/sql_utils.py450 # Check if the column exists and might be a date column
LOWmindsdb/integrations/utilities/sql_utils.py484 # Check if arg2 is a date expression
LOW…/integrations/utilities/rag/rerankers/base_reranker.py158 # Check if we should stop early
LOW…/integrations/utilities/rag/rerankers/base_reranker.py388 # Assign weights to classes
LOW…/integrations/utilities/rag/rerankers/base_reranker.py418 # Check if first line has content after the fence (e.g., ```json)
LOW…tegrations/utilities/rag/splitters/custom_splitters.py226 # Check if this line matches any header pattern
LOW…integrations/utilities/rag/loaders/document_loaders.py84 # Read file as bytes first
LOW…integrations/utilities/rag/loaders/document_loaders.py216 # Read file as bytes first
LOW…uth_utilities/microsoft/ms_graph_api_auth_utilities.py127 # Check if a valid access token is already in the cache for the signed-in user.
LOW…uth_utilities/microsoft/ms_graph_api_auth_utilities.py197 # Check if a valid access token is already in the cache.
LOW…ns/handlers/huggingface_handler/huggingface_handler.py109 # Check if pipeline has already been downloaded
LOW…ons/handlers/email_handler/tests/test_email_handler.py14 # Check if env variables exist, if not fail the test
LOW…sdb/integrations/handlers/file_handler/file_handler.py71 # Check if it's a multi-part name (e.g., `file_name.sheet_name`)
LOW…sdb/integrations/handlers/file_handler/file_handler.py105 # Check if the table already exists or if the table name contains more than one namespace
LOW…/integrations/handlers/web_handler/urlcrawl_helpers.py54 # Check if there's a large vertical gap between this block and the previous one
LOW…dsdb/integrations/handlers/bedrock_handler/settings.py218 # Check if the model ID is valid and accessible.
LOW…dsdb/integrations/handlers/bedrock_handler/settings.py223 # Check if the model is suitable for the mode provided.
LOW…grations/handlers/bigquery_handler/bigquery_handler.py108 # Check if the dataset exists
LOW…ntegrations/handlers/hubspot_handler/hubspot_tables.py849 # Check if this is an IN/NOT IN operator with AST Tuple
LOW…b/integrations/handlers/mssql_handler/mssql_handler.py283 # Check if it's a driver not found error
LOW…grations/handlers/pgvector_handler/pgvector_handler.py447 # Check if old table exists
LOW…grations/handlers/pgvector_handler/pgvector_handler.py456 # Check if new table already exists
LOW…grations/handlers/pgvector_handler/pgvector_handler.py649 # Check if the index type is supported
LOW…ions/handlers/salesforce_handler/salesforce_handler.py147 # Check if the result contains any of the other Salesforce resources.
LOWmindsdb/utilities/langfuse.py89 # Check if Langfuse is disabled.
LOWmindsdb/utilities/sentry.py35 # Set traces_sample_rate to 1.0 to capture 100%
LOWmindsdb/utilities/sentry.py38 # Set profiles_sample_rate to 1.0 to profile 100%
LOWmindsdb/api/a2a/task_manager.py112 # Check if we have structured data
LOWmindsdb/api/a2a/task_manager.py331 # Check if the request has the required parameters
LOWmindsdb/api/a2a/task_manager.py338 # Check if the request has a message
LOWmindsdb/api/a2a/task_manager.py345 # Check if the message has metadata
LOWmindsdb/api/a2a/task_manager.py352 # Check if the agent name is provided in the metadata
LOWmindsdb/api/executor/sql_query/steps/subselect_step.py71 # Check if query has aggregations and result is already aggregated (single row)
LOWmindsdb/interfaces/agents/pydantic_ai_agent.py130 # Check if DataFrame has 'role' and 'content' columns (API format)
LOWmindsdb/interfaces/agents/pydantic_ai_agent.py234 # Check if DataFrame has 'role' and 'content' columns (API format)
LOWmindsdb/interfaces/agents/chart_agent.py326 # Check if we should retry
LOW…b/interfaces/agents/utils/pydantic_ai_model_factory.py82 # Check if LLM provider is vLLM
LOWmindsdb/interfaces/agents/utils/data_catalog_builder.py62 # Check if result is array-like (would cause ambiguity error in if statement)
LOWmindsdb/interfaces/agents/utils/sql_toolkit.py156 # Check if input table matches to tables in collection
LOWmindsdb/interfaces/knowledge_base/controller.py426 # Check if we have a rerank_model configured in KB params
LOWmindsdb/interfaces/knowledge_base/controller.py728 # Check if we should skip existing items (before calculating embeddings)
LOWmindsdb/interfaces/knowledge_base/controller.py1031 # Check if vector_size is provided when using sparse vectors
LOW…/knowledge_base/preprocessing/document_preprocessor.py170 # Check if LLM supports async
Over-Commented Block56 hits · 56 pts
SeverityFileLineSnippet
LOWdocker-compose.yml141 - POSTGRES_PASSWORD=postgres
LOWtests/unit/planner/test_join_tables.py461 # ),
LOWtests/unit/planner/test_join_predictor.py141 # LIMIT 5;
LOWtests/unit/api/http/agents_test.py201# At the moment creation via PUT is not allowed
LOWtests/unit/api/http/agents_test.py221# 'name': 'test_put_agent_create',
LOWtests/unit/api/http/agents_test.py341
LOWtests/unit/executor/test_knowledge_base.py561 # switched off for faiss
LOWtests/integration/flows/test_knowledge_base.py41 # TODO: block for enabling bedrock llm provider (after defining AWS_ACCESS_KEY and AWS_SECRET_KEY)
LOWtests/scripts/check_requirements.py61
LOWscripts/run_integration_tests.sh1#!/usr/bin/env bash
LOWscripts/run_unit_tests.sh1#!/usr/bin/env bash
LOWmindsdb/integrations/libs/passthrough.py101
LOW…grations/handlers/shopify_handler/models/gift_cards.py101 },
LOW…tegrations/handlers/shopify_handler/models/products.py161 "TABLE_NAME": "products",
LOW…tegrations/handlers/shopify_handler/models/products.py261 "DATA_TYPE": "JSON",
LOW…tegrations/handlers/shopify_handler/models/products.py341 },
LOW…tegrations/handlers/shopify_handler/models/products.py361 # "IS_NULLABLE": False
LOW…tegrations/handlers/shopify_handler/models/products.py381 # "COLUMN_DESCRIPTION": "The list of resources that are published to a publication.",
LOW…tegrations/handlers/shopify_handler/models/products.py401 # "DATA_TYPE": "JSON",
LOW…tegrations/handlers/shopify_handler/models/products.py461 {
LOW…integrations/handlers/shopify_handler/models/orders.py361 # "IS_NULLABLE": False
LOW…integrations/handlers/shopify_handler/models/orders.py441 # "TABLE_NAME": "orders",
LOW…integrations/handlers/shopify_handler/models/orders.py581 # "TABLE_NAME": "orders",
LOW…integrations/handlers/shopify_handler/models/orders.py641 "IS_NULLABLE": False,
LOW…integrations/handlers/shopify_handler/models/orders.py701 # "COLUMN_NAME": "events",
LOW…integrations/handlers/shopify_handler/models/orders.py761 # },
LOW…integrations/handlers/shopify_handler/models/orders.py801 # "COLUMN_DESCRIPTION": "The application acting as the Merchant of Record for the order. The Merchant of Record
LOW…integrations/handlers/shopify_handler/models/orders.py921 "IS_NULLABLE": False,
LOW…integrations/handlers/shopify_handler/models/orders.py981 "COLUMN_NAME": "restockable",
LOW…integrations/handlers/shopify_handler/models/orders.py1021 # {
LOW…ons/handlers/shopify_handler/models/inventory_items.py81 },
LOW…ons/handlers/shopify_handler/models/inventory_items.py101 "IS_NULLABLE": False,
LOW…tions/handlers/shopify_handler/models/staff_members.py121 # "DATA_TYPE": "JSON",
LOW…egrations/handlers/shopify_handler/models/customers.py121 # "COLUMN_NAME": "defaultEmailAddress",
LOW…egrations/handlers/shopify_handler/models/customers.py181 # "COLUMN_DESCRIPTION": "The image associated with the customer.",
LOW…egrations/handlers/shopify_handler/models/customers.py221 # "COLUMN_NAME": "mergeable",
LOW…egrations/handlers/shopify_handler/models/customers.py261 # {
LOW…egrations/handlers/shopify_handler/models/customers.py281 },
LOW…ns/handlers/shopify_handler/models/product_variants.py21 # deliveryProfile = "deliveryProfile"
LOW…ns/handlers/shopify_handler/models/product_variants.py81 # },
LOW…ns/handlers/shopify_handler/models/product_variants.py121 "COLUMN_DESCRIPTION": "A globally-unique ID.",
LOW…ns/handlers/shopify_handler/models/product_variants.py141 "DATA_TYPE": "INT",
LOW…ns/handlers/shopify_handler/models/product_variants.py161 # "COLUMN_NAME": "metafield",
LOW…ns/handlers/shopify_handler/models/product_variants.py201 },
LOW…ns/handlers/shopify_handler/models/product_variants.py221 "IS_NULLABLE": False,
LOW…ns/handlers/shopify_handler/models/product_variants.py281 # "COLUMN_NAME": "translations",
LOW…s/handlers/openai_handler/tests/test_openai_handler.py421 # TODO: Fix this test for fine-tuning
LOW…s/handlers/openai_handler/tests/test_openai_handler.py441 # ...
LOW…s/handlers/openai_handler/tests/test_openai_handler.py461 # PREDICT rental_price;
LOW…s/handlers/openai_handler/tests/test_openai_handler.py481 # prompt_template = 'Return a valid SQL string for the following question about MindsDB in-database mach
LOW…mysql_proxy/data_types/mysql_packets/command_packet.py121 # num_params = len(prepared_stmt['statement'].parameters)
LOWmindsdb/api/executor/planner/query_planner.py361 return node2
LOWmindsdb/api/executor/planner/query_planner.py481 return self.plan_sub_select(query, prev_step, skip_for_aggregation=True)
LOWmindsdb/api/executor/planner/query_planner.py641 row_dict=row_dict,
LOWmindsdb/api/executor/planner/query_planner.py661 # query.having is not None
LOWmindsdb/api/executor/utilities/functions.py1import urllib
Fake / Example Data36 hits · 34 pts
SeverityFileLineSnippet
LOWtests/unit/various/test_json_chunker.py63 "name": "John Doe",
LOWtests/unit/various/test_json_chunker.py66 "address": {"street": "123 Main St", "city": "Anytown", "zip": "12345"},
LOWtests/unit/various/test_json_chunker.py138 assert chunk.metadata.get("field_name") == "John Doe"
LOWtests/unit/various/test_json_chunker.py147 "name": "John Doe",
LOWtests/unit/various/test_json_chunker.py298 "name": "John Doe",
LOWtests/unit/various/test_json_chunker.py316 assert chunks[0].metadata["field_name"] == "John Doe"
LOWtests/unit/various/test_json_chunker.py327 "name": "John Doe",
LOWtests/unit/various/test_json_chunker.py426 assert chunk.metadata.get("field_contact_information.name") == "John Doe"
LOWtests/unit/various/test_json_chunker.py434 data = {"name": "John Doe", "age": 30, "is_active": True, "nested": {"key1": "value1", "key2": 42}}
LOWtests/unit/various/test_json_chunker.py457 assert chunk.metadata.get("field_name") == "John Doe"
LOWtests/unit/various/test_json_chunker.py466 data = {"name": "John Doe", "age": 30, "is_active": True, "nested": {"key1": "value1", "key2": 42}}
LOWtests/unit/various/test_json_chunker.py489 assert chunk.metadata.get("field_name") == "John Doe"
LOWtests/unit/various/test_json_chunker.py501 "contact_information": {"name": "John Doe", "email": "john@example.com", "phone": "123-456-7890"},
LOWtests/unit/various/test_json_chunker.py21 "name": "John Doe",
LOWtests/unit/various/test_json_chunker.py47 assert "John Doe" in chunks[0].content
LOWtests/unit/various/test_json_chunker.py106 "name": "John Doe",
LOWtests/unit/various/test_json_chunker.py348 assert chunks[0].metadata["field_name"] == "John Doe"
LOWtests/unit/various/test_json_chunker.py361 json_data = {"id": 1, "name": "John Doe"}
LOWtests/unit/various/test_json_chunker.py394 "contact_information": {"name": "John Doe", "email": "john@example.com"},
LOWtests/unit/various/test_json_chunker.py527 assert chunk.metadata.get("field_contact_information.name") == "John Doe"
LOWtests/unit/handlers/test_netsuite.py93 FilterCondition("email", FilterOperator.EQUAL, "user@example.com"),
LOWtests/unit/handlers/test_netsuite.py101 where_sql=" WHERE email = 'user@example.com' AND foo IS NULL",
LOW…nit/handlers/community_handlers/test_access_handler.py194 rows = [(1, "John Doe", "john@example.com"), (2, "Jane Smith", "jane@example.com")]
LOW…/unit/handlers/community_handlers/test_jira_handler.py61 "creator": {"displayName": "John Doe"},
LOW…/unit/handlers/community_handlers/test_jira_handler.py73 "creator": {"displayName": "John Doe"},
LOW…/unit/handlers/community_handlers/test_jira_handler.py83 "creator": {"displayName": "John Doe"},
LOWtests/unit/handlers/community_handlers/test_jira.py159 "creator": {"displayName": "John Doe"},
LOWtests/unit/handlers/community_handlers/test_jira.py171 "creator": {"displayName": "John Doe"},
LOWtests/unit/handlers/community_handlers/test_jira.py181 "creator": {"displayName": "John Doe"},
LOWmindsdb/integrations/utilities/pydantic_utils.py51- Dummy text strings are represented as "lorem ipsum."
LOWmindsdb/integrations/utilities/pydantic_utils.py61 "string": "lorem ipsum",
LOWmindsdb/integrations/utilities/pydantic_utils.py65 "object": {"lorem ipsum": "lorem_ipsum"},
LOWmindsdb/integrations/handlers/hubspot_handler/README.md157VALUES ('Acme Corp', 'acme.com', 'COMPUTER_SOFTWARE', 'New York', 'NY');
LOWmindsdb/integrations/handlers/hubspot_handler/README.md170WHERE name = 'Acme Corp';
LOW…/integrations/handlers/salesforce_handler/constants.py70 CORRECT: WHERE Name = 'Acme Corp'
LOW…/integrations/handlers/salesforce_handler/constants.py168 CORRECT: WHERE Phone = '555-1234'
Decorative Section Separators11 hits · 33 pts
SeverityFileLineSnippet
MEDIUMtests/unit/api/mcp/test_completions.py13# ---------------------------------------------------------------------------
MEDIUMtests/unit/api/mcp/test_completions.py15# ---------------------------------------------------------------------------
MEDIUMtests/unit/api/mcp/test_completions.py21# ---------------------------------------------------------------------------
MEDIUMtests/unit/api/mcp/test_completions.py23# ---------------------------------------------------------------------------
MEDIUMtests/unit/executor/test_project_structure.py183 # ----------------
MEDIUMtests/unit/executor/test_project_structure.py223 # ----------------------------------------------------
MEDIUMtests/unit/executor/test_project_structure.py233 # ----------------------------------------------------
MEDIUMmindsdb/integrations/libs/api_handler.py195 # -----------------------------
MEDIUMmindsdb/integrations/libs/passthrough.py276 # ------------------------------------------------------------------
MEDIUMmindsdb/integrations/libs/passthrough.py278 # ------------------------------------------------------------------
MEDIUM…db/api/executor/utilities/mysql_to_duckdb_functions.py27# ------------------------------
AI Slop Vocabulary8 hits · 15 pts
SeverityFileLineSnippet
MEDIUMtests/unit/handlers/test_hubspot.py193 # Check for comprehensive column metadata
MEDIUMtests/unit/handlers/test_hubspot.py584 """Test comprehensive error handling in various scenarios."""
MEDIUMtests/unit/handlers/test_hubspot.py600 """Test comprehensive column statistics calculation."""
MEDIUM…tegrations/handlers/hubspot_handler/hubspot_handler.py747 """Calculate comprehensive statistics for a column."""
LOWmindsdb/api/a2a/common/server/server.py98 # Don't await the async generator, just pass it to _create_response
MEDIUMmindsdb/api/a2a/common/server/server.py148 # Add robust SSE headers for compatibility
MEDIUMmindsdb/api/mysql/mysql_proxy/mysql_proxy.py298 # for big responses leverage pandas map function to convert data to packages
LOWmindsdb/api/executor/sql_query/steps/subselect_step.py85 # The result is already aggregated, so just return it as-is
Magic Placeholder Names4 hits · 15 pts
SeverityFileLineSnippet
HIGHmindsdb/integrations/utilities/handler_utils.py117 f" Example: CREATE AGENT my_agent USING model='gpt-4', provider='{api_name}', {api_key_arg}='your-api-key'
HIGHmindsdb/integrations/utilities/handler_utils.py118 f" Or: CREATE AGENT my_agent USING model='gpt-4', provider='{api_name}', api_key='your-api-key';\n"
HIGH…/huggingface_api_handler/tests/test_huggingface_api.py32 api_key = '<YOUR_API_KEY>',
HIGH…/huggingface_api_handler/tests/test_huggingface_api.py32 api_key = '<YOUR_API_KEY>',
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/run_integration_tests.sh6# Usage:
LOWscripts/run_unit_tests.sh6# Usage:
Synthetic Comment Markers1 hit · 2 pts
SeverityFileLineSnippet
HIGHtests/unit/handlers/test_web.py187 # with limit: as requested
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWmindsdb/api/a2a/common/server/server.py133 # Step 2: Yield actual serialized event as JSON, with timing logs
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWmindsdb/interfaces/jobs/scheduler.py83 def execute_task(self, record_id, exec_method):