AI Slop Code RIsk Monitor

sqlalchemy/sqlalchemy

The Database Toolkit for Python

17.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for sqlalchemy/sqlalchemy, a Python project with 12,227 GitHub stars. SynthScan examined 645,612 lines of code across 690 source files, recording 11467 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 17.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

17.0
Adjusted Signal
17.0
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
12.2K
Stars
Python
Language
645.6K
Lines of Code
690
Files
11.5K
Pattern Hits
2026-10-12
Scan Date
0.42
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 45.3/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 9186 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.0/100 · LOW

Are imports declared and package/API names verified? 1925 finding(s).

Agent Over-Engineering Ratio 44.8/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 8615 finding(s).

PR Review Velocity Impact 65.2/100 · HIGH

Which changes need focused human review? 11467 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 32HIGH 260MEDIUM 292LOW 10883

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 11467 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers8175 hits · 6414 pts
SeverityFileLineSnippetContext
LOWnoxfile.py277def _remove_generated_cython_files(session: nox.Session) -> None:CODE
LOWtools/generate_sql_functions.py22def _fns_in_deterministic_order():CODE
LOWtools/profiles.py51def _load_profiles_file_module() -> ModuleType:CODE
LOW⚡test/requirements.py108 def foreign_keys_reflect_as_index(self):CODE
LOW⚡test/requirements.py112 def unique_index_reflect_as_unique_constraints(self):CODE
LOW⚡test/requirements.py116 def unique_constraints_reflect_as_index(self):CODE
LOW⚡test/requirements.py120 def foreign_key_constraint_name_reflection(self):CODE
LOW⚡test/requirements.py128 def update_returning_dialect_not_supported(self):CODE
LOW⚡test/requirements.py203 def foreign_key_constraint_option_reflection_ondelete(self):CODE
LOW⚡test/requirements.py209 def fk_constraint_option_reflection_ondelete_restrict(self):CODE
LOW⚡test/requirements.py213 def fk_constraint_option_reflection_ondelete_noaction(self):CODE
LOW⚡test/requirements.py217 def foreign_key_constraint_option_reflection_onupdate(self):CODE
LOW⚡test/requirements.py221 def fk_constraint_option_reflection_onupdate_restrict(self):CODE
LOW⚡test/requirements.py225 def temp_table_comment_reflection(self):CODE
LOW⚡test/requirements.py233 def comment_reflection_full_unicode(self):CODE
LOW⚡test/requirements.py237 def constraint_comment_reflection(self):CODE
LOW⚡test/requirements.py241 def column_collation_reflection(self):CODE
LOW⚡test/requirements.py551 def sequences_as_server_defaults(self):CODE
LOW⚡test/requirements.py560 def sql_expressions_inserted_as_primary_key(self):CODE
LOW⚡test/requirements.py564 def computed_columns_on_update_returning(self):CODE
LOW⚡test/requirements.py710 def default_schema_name_switch(self):CODE
LOW⚡test/requirements.py714 def unique_constraint_reflection(self):CODE
LOW⚡test/requirements.py720 def unique_constraint_reflection_no_index_overlap(self):CODE
LOW⚡test/requirements.py729 def inline_check_constraint_reflection(self):CODE
LOW⚡test/requirements.py739 def check_constraint_reflection(self):CODE
LOW⚡test/requirements.py750 def indexes_check_column_order(self):CODE
LOW⚡test/requirements.py758 def reflect_indexes_with_expressions(self):CODE
LOW⚡test/requirements.py762 def reflect_indexes_with_ascdesc_as_expression(self):CODE
LOW⚡test/requirements.py2053 def _mysql_check_constraints_exist(self, config):CODE
LOW⚡test/requirements.py2060 def _mysql_check_constraints_dont_exist(self, config):CODE
LOW⚡test/requirements.py2065 def _mysql_expression_defaults(self, config):CODE
LOW⚡test/requirements.py2071 def mysql_expression_defaults(self):CODE
LOW⚡test/requirements.py2227 def sequences_in_other_clauses(self):CODE
LOW⚡test/requirements.py2232 def supports_lastrowid_for_expressions(self):CODE
LOW⚡test/requirements.py2237 def supports_sequence_for_autoincrement_column(self):CODE
LOW⚡test/requirements.py2242 def supports_autoincrement_w_composite_pk(self):CODE
LOW⚡test/requirements.py2252 def multiple_identity_columns(self):CODE
LOW⚡test/requirements.py2256 def identity_columns_standard(self):CODE
LOW⚡test/requirements.py2260 def index_reflects_included_columns(self):CODE
LOW⚡test/requirements.py2291 def fetch_offset_with_options(self):CODE
LOW⚡test/requirements.py2301 def autoincrement_without_sequence(self):CODE
LOW⚡test/requirements.py2305 def reflect_tables_no_columns(self):CODE
LOWtest/requirements.py33 def deferrable_or_no_constraints(self):CODE
LOWtest/requirements.py51 def enforces_check_constraints(self):CODE
LOWtest/requirements.py66 def implicitly_named_constraints(self):CODE
LOWtest/requirements.py78 def foreign_key_cycles_w_cascade(self):CODE
LOWtest/requirements.py82 def repeated_column_foreign_keys(self):CODE
LOWtest/requirements.py95 def repeated_remote_col_foreign_keys(self):CODE
LOWtest/requirements.py264 def non_native_boolean_unconstrained(self):CODE
LOWtest/requirements.py289 def expression_server_defaults(self):CODE
LOWtest/requirements.py337 def no_quoting_special_bind_names(self):CODE
LOWtest/requirements.py353 def temp_table_reflect_indexes(self):CODE
LOWtest/requirements.py357 def reflectable_autoincrement(self):CODE
LOWtest/requirements.py429 def cursor_works_post_rollback(self):CODE
LOWtest/requirements.py508 def updateable_autoincrement_pks(self):CODE
LOWtest/requirements.py630 def update_where_target_in_subquery(self):CODE
LOWtest/requirements.py691 def cross_schema_fk_reflection(self):CODE
LOWtest/requirements.py810 def unusual_column_name_characters(self):CODE
LOWtest/requirements.py890 def mod_operator_as_percent_sign(self):CODE
LOWtest/requirements.py949 def parens_in_union_contained_select_w_limit_offset(self):CODE
8115 more matches not shown…
Unused Imports1787 hits · 1244 pts
SeverityFileLineSnippetContext
LOWsetup.py1CODE
LOWsetup.py14CODE
LOWnoxfile.py3CODE
LOWtools/generate_proxy_methods.py46CODE
LOWtools/generate_tuple_map_overloads.py22CODE
LOWtools/generate_sql_functions.py5CODE
LOWtools/trace_orm_adapter.py30CODE
LOWtools/toxnox.py11CODE
LOWtools/sync_test_files.py6CODE
LOWtools/profiles.py29CODE
LOWtest/conftest.py59CODE
LOWtest/ext/test_associationproxy.py1CODE
LOWtest/ext/test_mutable.py1CODE
LOWtest/ext/test_hybrid.py1CODE
LOWtest/ext/declarative/test_reflection.py1CODE
LOWtest/ext/asyncio/test_session.py1CODE
LOWtest/typing/plain_files/ext/indexable.py1CODE
LOW…yping/plain_files/ext/orderinglist/orderinglist_one.py1CODE
LOW…n_files/ext/association_proxy/association_proxy_two.py1CODE
LOW…files/ext/association_proxy/association_proxy_three.py1CODE
LOW…t/typing/plain_files/ext/asyncio/async_sessionmaker.py6CODE
LOWtest/typing/plain_files/ext/hybrid/hybrid_four.py1CODE
LOWtest/typing/plain_files/ext/hybrid/hybrid_one.py1CODE
LOWtest/typing/plain_files/ext/hybrid/hybrid_two.py1CODE
LOWtest/typing/plain_files/ext/hybrid/hybrid_three.py1CODE
LOWtest/typing/plain_files/orm/dataclass_transforms_one.py1CODE
LOWtest/typing/plain_files/orm/orm_querying.py1CODE
LOWtest/typing/plain_files/orm/relationship.py3CODE
LOWtest/typing/plain_files/orm/write_only.py1CODE
LOWtest/typing/plain_files/orm/session.py1CODE
LOWtest/typing/plain_files/orm/dynamic_rel.py1CODE
LOWtest/typing/plain_files/orm/typed_froms_orm_interop.py1CODE
LOWtest/typing/plain_files/orm/typed_queries.py1CODE
LOWtest/typing/plain_files/sql/lambda_stmt.py1CODE
LOWtest/typing/plain_files/sql/common_sql_element.py9CODE
LOWtest/typing/plain_files/sql/typed_results.py1CODE
LOWtest/typing/plain_files/sql/operators.py2CODE
LOWtest/typing/plain_files/sql/operators.py10CODE
LOWtest/typing/plain_files/sql/dml.py1CODE
LOWtest/orm/test_transaction.py1CODE
LOWtest/orm/test_relationship_criteria.py1CODE
LOWtest/orm/test_session.py1CODE
LOWtest/orm/test_collection.py1CODE
LOWtest/orm/test_deferred.py1CODE
LOWtest/orm/test_syntax_extensions.py1CODE
LOWtest/orm/dml/test_bulk_statements.py1CODE
LOWtest/orm/dml/test_orm_upd_del_assorted.py1CODE
LOWtest/orm/dml/test_orm_upd_del_inheritance.py1CODE
LOWtest/orm/dml/test_orm_upd_del_basic.py1CODE
LOWtest/orm/inheritance/test_assorted_poly.py6CODE
LOWtest/orm/inheritance/test_single.py1CODE
LOWtest/orm/declarative/test_tm_future_annotations.py9CODE
LOWtest/orm/declarative/test_abs_import_only.py7CODE
LOWtest/orm/declarative/test_tm_future_annotations_sync.py8CODE
LOWtest/dialect/test_suite.py1CODE
LOWtest/perf/compiled_extensions/command.py10CODE
LOWtest/perf/compiled_extensions/command.py11CODE
LOWtest/perf/compiled_extensions/command.py12CODE
LOWtest/perf/compiled_extensions/command.py13CODE
LOWtest/perf/compiled_extensions/command.py14CODE
1727 more matches not shown…
Self-Referential Comments270 hits · 808 pts
SeverityFileLineSnippetContext
MEDIUMtools/normalize_file_headers.py21# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMtest/orm/test_events.py4506 # Create a simple mapped class to trigger configurationCOMMENT
MEDIUMtest/sql/test_operators.py4731 # Create a custom type with UNSPECIFIED operator_classesCOMMENT
MEDIUMtest/sql/test_quote.py467 # Create the same table with quotes set to True nowCOMMENT
MEDIUMtest/sql/test_quote.py491 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py515 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py542 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py569 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py607 # Create the same table with quotes set to False nowCOMMENT
MEDIUMlib/sqlalchemy/log.py6# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/events.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/__init__.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/types.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/inspection.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/exc.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/schema.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/connectors/asyncio.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/connectors/__init__.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/connectors/aioodbc.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/connectors/pyodbc.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/queue.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/topological.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/cython.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/_immutabledict_cy.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/_has_cython.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/compat.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/preloaded.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/concurrency.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/__init__.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/deprecations.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/_collections.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/_collections_cy.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/langhelpers.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/typing.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/util/tool_support.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/instrumentation.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/compiler.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/orderinglist.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/hybrid.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/__init__.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/indexable.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/serializer.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/baked.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/automap.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/horizontal_shard.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/mutable.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/associationproxy.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/declarative/__init__.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/declarative/extensions.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/scoping.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/session.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/__init__.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/result.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/engine.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/exc.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/ext/asyncio/base.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/testing/pickleable.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/testing/exclusions.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/testing/config.py5# This module is part of SQLAlchemy and is released underCOMMENT
MEDIUMlib/sqlalchemy/testing/engines.py5# This module is part of SQLAlchemy and is released underCOMMENT
210 more matches not shown…
Cross-File Repetition117 hits · 585 pts
SeverityFileLineSnippetContext
HIGHtest/orm/test_subquery_relations.py0tests that a regular mapper select on a single table can order by a relationship to a second tableSTRING
HIGHtest/orm/test_selectin_relations.py0tests that a regular mapper select on a single table can order by a relationship to a second tableSTRING
HIGHtest/orm/test_eager_relations.py0tests that a regular mapper select on a single table can order by a relationship to a second tableSTRING
HIGHtest/orm/test_lazy_relations.py0tests that a regular mapper select on a single table can order by a relationship to a second tableSTRING
HIGHtest/orm/test_subquery_relations.py0a circular eager relationship breaks the cycle with a lazy loaderSTRING
HIGHtest/orm/test_selectin_relations.py0a circular eager relationship breaks the cycle with a lazy loaderSTRING
HIGHtest/orm/test_eager_relations.py0a circular eager relationship breaks the cycle with a lazy loaderSTRING
HIGHtest/orm/test_subquery_relations.py0eager loading with two relationships simultaneously, from the same table, using aliases.STRING
HIGHtest/orm/test_selectin_relations.py0eager loading with two relationships simultaneously, from the same table, using aliases.STRING
HIGHtest/orm/test_eager_relations.py0eager loading with two relationships simultaneously, from the same table, using aliases.STRING
HIGHtest/orm/test_subquery_relations.py0test limit operations combined with lazy-load relationships.STRING
HIGHtest/orm/test_selectin_relations.py0test limit operations combined with lazy-load relationships.STRING
HIGHtest/orm/test_eager_relations.py0test limit operations combined with lazy-load relationships.STRING
HIGHtest/orm/test_lazy_relations.py0test limit operations combined with lazy-load relationships.STRING
HIGHtest/orm/test_subquery_relations.py0test that multiple rows received by a uselist=false raises a warning.STRING
HIGHtest/orm/test_selectin_relations.py0test that multiple rows received by a uselist=false raises a warning.STRING
HIGHtest/orm/test_lazy_relations.py0test that multiple rows received by a uselist=false raises a warning.STRING
HIGHtest/orm/test_eager_relations.py0test that multiple rows received by a uselist=false raises a warning.STRING
HIGHtest/orm/test_subquery_relations.py0test that loaders from a base query fully populate.STRING
HIGHtest/orm/test_selectin_relations.py0test that loaders from a base query fully populate.STRING
HIGHtest/orm/test_eager_relations.py0test that loaders from a base query fully populate.STRING
HIGHtest/orm/declarative/test_typed_mapping.py0test example in the relationship docs will derive uselist=false correctlySTRING
HIGH…orm/declarative/test_dc_transforms_future_anno_sync.py0test example in the relationship docs will derive uselist=false correctlySTRING
HIGHtest/orm/declarative/test_tm_future_annotations_sync.py0test example in the relationship docs will derive uselist=false correctlySTRING
HIGHtest/orm/declarative/test_dc_transforms.py0test example in the relationship docs will derive uselist=false correctlySTRING
HIGHexamples/sharding/separate_tables.py0shard chooser. this is primarily invoked at persistence time. looks at the given instance and returns a shard id note thSTRING
HIGHexamples/sharding/asyncio.py0shard chooser. this is primarily invoked at persistence time. looks at the given instance and returns a shard id note thSTRING
HIGHexamples/sharding/separate_databases.py0shard chooser. this is primarily invoked at persistence time. looks at the given instance and returns a shard id note thSTRING
HIGHexamples/sharding/separate_schema_translates.py0shard chooser. this is primarily invoked at persistence time. looks at the given instance and returns a shard id note thSTRING
HIGHexamples/sharding/separate_tables.py0identity chooser. given a primary key, returns a list of shards to search. here, we don't have any particular informatioSTRING
HIGHexamples/sharding/asyncio.py0identity chooser. given a primary key, returns a list of shards to search. here, we don't have any particular informatioSTRING
HIGHexamples/sharding/separate_databases.py0identity chooser. given a primary key, returns a list of shards to search. here, we don't have any particular informatioSTRING
HIGHexamples/sharding/separate_tables.py0statement execution chooser. this also returns a list of shard ids, which can just be all of them. but here we'll searchSTRING
HIGHexamples/sharding/asyncio.py0statement execution chooser. this also returns a list of shard ids, which can just be all of them. but here we'll searchSTRING
HIGHexamples/sharding/separate_databases.py0statement execution chooser. this also returns a list of shard ids, which can just be all of them. but here we'll searchSTRING
HIGHexamples/sharding/separate_tables.py0search a select or query object for binary expressions. returns expressions which match a column against one or more litSTRING
HIGHexamples/sharding/asyncio.py0search a select or query object for binary expressions. returns expressions which match a column against one or more litSTRING
HIGHexamples/sharding/separate_databases.py0search a select or query object for binary expressions. returns expressions which match a column against one or more litSTRING
HIGHexamples/generic_associations/table_per_related.py0base class which provides automated table name and surrogate primary key column.STRING
HIGHexamples/generic_associations/table_per_association.py0base class which provides automated table name and surrogate primary key column.STRING
HIGHexamples/generic_associations/generic_fk.py0base class which provides automated table name and surrogate primary key column.STRING
HIGH…s/generic_associations/discriminator_on_association.py0base class which provides automated table name and surrogate primary key column.STRING
HIGHexamples/generic_associations/table_per_association.py0the address class. this represents all address records in a single table.STRING
HIGHexamples/generic_associations/generic_fk.py0the address class. this represents all address records in a single table.STRING
HIGH…s/generic_associations/discriminator_on_association.py0the address class. this represents all address records in a single table.STRING
HIGHlib/sqlalchemy/util/_immutabledict_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/util/_collections_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/engine/_processors_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/engine/_util_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/engine/_result_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/engine/_row_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/sql/_util_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/sql/_cache_key_cy.py0utility function to indicate if this module is compiled or not.STRING
HIGHlib/sqlalchemy/ext/hybrid.py0return a callable that will process a bulk insert valueSTRING
HIGHlib/sqlalchemy/orm/interfaces.py0return a callable that will process a bulk insert valueSTRING
HIGHlib/sqlalchemy/orm/attributes.py0return a callable that will process a bulk insert valueSTRING
HIGHlib/sqlalchemy/ext/asyncio/scoping.py0return true if the instance is associated with this session. .. container:: class_bases proxied for the :class:`_orm.sesSTRING
HIGHlib/sqlalchemy/ext/asyncio/session.py0return true if the instance is associated with this session. .. container:: class_bases proxied for the :class:`_orm.sesSTRING
HIGHlib/sqlalchemy/orm/scoping.py0return true if the instance is associated with this session. .. container:: class_bases proxied for the :class:`_orm.sesSTRING
HIGHlib/sqlalchemy/ext/asyncio/scoping.py0iterate over all pending or persistent instances within this session. .. container:: class_bases proxied for the :class:STRING
57 more matches not shown…
Empty Error Handlers97 hits · 485 pts
SeverityFileLineSnippetContext
HIGHtest/orm/test_transaction.py2058except:CODE
HIGHtest/orm/test_transaction.py2114except:CODE
HIGHtest/orm/test_transaction.py2137except:CODE
HIGHtest/orm/test_transaction.py2161except:CODE
HIGHtest/orm/test_transaction.py2185except:CODE
HIGHtest/orm/test_transaction.py1270except:CODE
HIGHtest/orm/test_transaction.py1292except:CODE
HIGHtest/orm/test_dataclasses.py24except ImportError:CODE
HIGHtest/orm/test_query.py5418except StopIteration:CODE
HIGHtest/orm/test_query.py739except (NotImplementedError, AttributeError):CODE
HIGHtest/orm/test_unitofworkv2.py2295except AvoidReferencialError:CODE
HIGHtest/orm/declarative/test_abs_import_only.py19except NameError:CODE
HIGHtest/dialect/oracle/test_reflection.py1767except:CODE
HIGHtest/dialect/oracle/test_reflection.py1771except:CODE
HIGHtest/dialect/oracle/test_reflection.py1757except:CODE
HIGHtest/dialect/oracle/test_reflection.py1481except:CODE
HIGHtest/dialect/mssql/test_query.py489except:CODE
HIGHtest/engine/test_transaction.py721except:CODE
HIGHtest/engine/test_transaction.py734except:CODE
HIGHtest/engine/test_parseconnect.py1089except ModuleNotFoundError:CODE
HIGHtest/engine/test_pool.py1862except tsa.exc.DBAPIError:CODE
HIGHtest/engine/test_pool.py1201except tsa.exc.TimeoutError:CODE
HIGHtest/base/test_utils.py162except KeyError:CODE
HIGHtest/base/test_utils.py170except TypeError:CODE
HIGHtest/sql/test_types.py653except NotImplementedError:CODE
HIGHtest/sql/test_types.py151except Exception:CODE
HIGHexamples/dynamic_dict/dynamic_dict.py37except KeyError:CODE
HIGHexamples/performance/__init__.py336except ImportError:CODE
HIGHlib/sqlalchemy/connectors/pyodbc.py184except ValueError:CODE
HIGHlib/sqlalchemy/util/_collections.py626except KeyError:CODE
HIGHlib/sqlalchemy/util/_collections.py656except AttributeError:CODE
HIGHlib/sqlalchemy/util/_collections_cy.py305except KeyError:CODE
HIGHlib/sqlalchemy/util/langhelpers.py448except AttributeError:CODE
HIGHlib/sqlalchemy/util/langhelpers.py1167except AttributeError:CODE
HIGHlib/sqlalchemy/util/langhelpers.py1001except Exception:CODE
HIGHlib/sqlalchemy/util/langhelpers.py1010except Exception:CODE
HIGHlib/sqlalchemy/util/typing.py302except KeyError:CODE
HIGHlib/sqlalchemy/ext/orderinglist.py226except TypeError:CODE
HIGHlib/sqlalchemy/ext/associationproxy.py889except AttributeError:CODE
HIGHlib/sqlalchemy/ext/associationproxy.py1218except AttributeError:CODE
HIGHlib/sqlalchemy/ext/associationproxy.py1188except exc.NoInspectionAvailable:CODE
HIGHlib/sqlalchemy/ext/associationproxy.py1198except KeyError:CODE
HIGHlib/sqlalchemy/ext/asyncio/engine.py606except GeneratorExit:CODE
HIGHlib/sqlalchemy/ext/asyncio/base.py128except KeyError:CODE
HIGHlib/sqlalchemy/testing/cancellation.py302except exc.SQLAlchemyError:CODE
HIGHlib/sqlalchemy/testing/provision.py315except NotImplementedError:CODE
HIGHlib/sqlalchemy/testing/provision.py327except NotImplementedError:CODE
HIGHlib/sqlalchemy/testing/schema.py193except (AttributeError, ValueError):CODE
HIGHlib/sqlalchemy/testing/suite/test_reflection.py2627except NotImplementedError:CODE
HIGHlib/sqlalchemy/dialects/oracle/provision.py217except:CODE
HIGHlib/sqlalchemy/dialects/sqlite/aiosqlite.py214except ValueError:CODE
HIGHlib/sqlalchemy/dialects/sqlite/pysqlcipher.py116except ImportError:CODE
HIGHlib/sqlalchemy/dialects/mysql/mysqlconnector.py209except Exception:CODE
HIGHlib/sqlalchemy/dialects/mysql/provision.py67except Exception:CODE
HIGHlib/sqlalchemy/dialects/mysql/pyodbc.py115except exc.DBAPIError:CODE
HIGHlib/sqlalchemy/dialects/mssql/pyodbc.py633except ValueError:CODE
HIGHlib/sqlalchemy/dialects/mssql/base.py2009except Exception:CODE
HIGHlib/sqlalchemy/orm/interfaces.py1158except KeyError:CODE
HIGHlib/sqlalchemy/orm/interfaces.py1251except KeyError:CODE
HIGHlib/sqlalchemy/orm/loading.py146except:CODE
37 more matches not shown…
Hallucination Indicators32 hits · 425 pts
SeverityFileLineSnippetContext
CRITICAL⚡test/orm/test_bundle.py514 .filter(b1.c.b2.c.d2.between("d4d2", "d6d2"))CODE
CRITICAL⚡test/orm/test_bundle.py532 .filter(b1.c.b2.c.d2.between("d4d2", "d5d2"))CODE
CRITICAL⚡test/orm/test_bundle.py538 .filter(b1.c.b2.c.d2.between("d5d2", "d6d2"))CODE
CRITICALtest/orm/test_relationships.py2973 primaryjoin=self.tables.a.c.foo.op(CODE
CRITICALtest/orm/test_relationships.py3000 primaryjoin=self.tables.a.c.foo.bool_op("&*")(CODE
CRITICAL…orm/declarative/test_dc_transforms_future_anno_sync.py520 is_true(User.__table__.c.name_plain.default.arg.compare(func.foo()))CODE
CRITICAL…orm/declarative/test_dc_transforms_future_anno_sync.py521 is_true(User.__table__.c.name_no_init.default.arg.compare(func.foo()))CODE
CRITICALtest/orm/declarative/test_dc_transforms.py507 is_true(User.__table__.c.name_plain.default.arg.compare(func.foo()))CODE
CRITICALtest/orm/declarative/test_dc_transforms.py508 is_true(User.__table__.c.name_no_init.default.arg.compare(func.foo()))CODE
CRITICAL⚡test/dialect/postgresql/test_dialect.py993 assert testing.db.dialect.dbapi.__version__.startswith(CODE
CRITICAL⚡test/dialect/postgresql/test_dialect.py1000 assert testing.db.dialect.dbapi.__version__.startswith(CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4323 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4331 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4336 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4350 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4360 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4370 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4380 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICAL⚡test/dialect/postgresql/test_types.py4385 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4396 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4403 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/engine/test_execute.py4393 self.tables.users.c.user_name.in_(["x", "y", "z"])CODE
CRITICAL⚡test/sql/test_type_expressions.py454 self.tables.test_table.c.x.label("xbar"),CODE
CRITICAL⚡test/sql/test_type_expressions.py455 self.tables.test_table.c.y.label("ybar"),CODE
CRITICAL⚡test/sql/test_types.py3343 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICAL⚡test/sql/test_types.py3352 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICAL⚡test/sql/test_types.py3363 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICAL⚡test/sql/test_types.py3369 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICAL⚡test/sql/test_types.py3378 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICAL⚡test/sql/test_types.py3384 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICALlib/sqlalchemy/testing/suite/test_results.py100 self.tables.plain_pk.c.data.label("data"),CODE
CRITICALlib/sqlalchemy/testing/suite/test_select.py87 self.tables.some_table.c.data.collate(collation).asc()CODE
Deep Nesting536 hits · 383 pts
SeverityFileLineSnippetContext
LOWtools/format_docs_code.py149CODE
LOWtools/generate_proxy_methods.py260CODE
LOWtools/generate_proxy_methods.py377CODE
LOWtools/generate_tuple_map_overloads.py40CODE
LOWtools/generate_sql_functions.py31CODE
LOWtools/toxnox.py27CODE
LOWtools/toxnox.py93CODE
LOWtools/profiles.py215CODE
LOWtools/profiles.py335CODE
LOWtest/ext/test_horizontal_shard.py103CODE
LOWtest/ext/test_horizontal_shard.py273CODE
LOWtest/ext/test_horizontal_shard.py322CODE
LOWtest/ext/test_horizontal_shard.py710CODE
LOWtest/ext/test_horizontal_shard.py129CODE
LOWtest/ext/test_horizontal_shard.py728CODE
LOWtest/ext/test_horizontal_shard.py135CODE
LOWtest/ext/test_horizontal_shard.py732CODE
LOWtest/ext/test_associationproxy.py855CODE
LOWtest/ext/test_baked.py657CODE
LOWtest/ext/test_baked.py813CODE
LOWtest/ext/test_mutable.py161CODE
LOWtest/ext/declarative/test_reflection.py155CODE
LOWtest/ext/asyncio/test_engine.py66CODE
LOWtest/ext/asyncio/test_engine.py912CODE
LOWtest/ext/asyncio/test_engine.py74CODE
LOWtest/ext/asyncio/test_session.py173CODE
LOWtest/aaa_profiling/test_threading.py265CODE
LOWtest/aaa_profiling/test_threading.py273CODE
LOWtest/aaa_profiling/test_memusage.py1526CODE
LOWtest/aaa_profiling/test_memusage.py1545CODE
LOWtest/orm/test_transaction.py127CODE
LOWtest/orm/test_transaction.py1283CODE
LOWtest/orm/test_transaction.py2208CODE
LOWtest/orm/test_transaction.py2249CODE
LOWtest/orm/test_transaction.py2641CODE
LOWtest/orm/test_loading.py98CODE
LOWtest/orm/test_relationship_criteria.py2721CODE
LOWtest/orm/test_session.py258CODE
LOWtest/orm/test_session.py648CODE
LOWtest/orm/test_session.py806CODE
LOWtest/orm/test_session.py2865CODE
LOWtest/orm/test_scoping.py182CODE
LOWtest/orm/test_collection.py2865CODE
LOWtest/orm/test_collection.py2868CODE
LOWtest/orm/test_of_type.py1301CODE
LOWtest/orm/test_froms.py4249CODE
LOWtest/orm/test_froms.py4252CODE
LOWtest/orm/test_inspect.py454CODE
LOWtest/orm/test_inspect.py468CODE
LOWtest/orm/test_query.py5454CODE
LOWtest/orm/test_query.py5843CODE
LOWtest/orm/test_relationships.py2300CODE
LOWtest/orm/test_relationships.py2599CODE
LOWtest/orm/test_relationships.py6579CODE
LOWtest/orm/test_joins.py239CODE
LOWtest/orm/test_events.py501CODE
LOWtest/orm/test_events.py1251CODE
LOWtest/orm/test_events.py1897CODE
LOWtest/orm/test_events.py4326CODE
LOWtest/orm/test_events.py4365CODE
476 more matches not shown…
Cross-Language Confusion46 hits · 234 pts
SeverityFileLineSnippetContext
HIGH⚡test/ext/test_hybrid.py584 "a.firstname || :firstname_1 || a.lastname AS name FROM a) "CODE
HIGH⚡test/ext/test_hybrid.py598 ":firstname_1 || a.lastname AS name FROM a",CODE
HIGHtest/ext/test_hybrid.py516 "SELECT a.id, a.firstname || :firstname_1 || a.lastname AS name "CODE
HIGHtest/typing/plain_files/orm/mapped_column.py27 # these are fine - pk, column is not null, have the attribute beCOMMENT
HIGHtest/orm/test_collection.py1690 direct.push(e)CODE
HIGHtest/orm/test_collection.py1704 direct.push(e)CODE
HIGHtest/orm/test_collection.py1865 direct.push(e3)CODE
HIGHtest/orm/test_relationships.py7194 "FROM a JOIN b ON a.b_ids LIKE (:id_1 || b.id || :param_1)) "CODE
HIGHtest/orm/test_relationships.py7213 "FROM a JOIN b ON a.b_ids LIKE (:id_1 || b.id || :param_1)) "CODE
HIGHtest/orm/test_relationships.py7243 "LIKE (:id_1 || b.id || :param_1)) AS anon_1 "CODE
HIGHtest/orm/test_assorted_eager.py180 # if someoption is false or they haven't specified it yet (null)COMMENT
HIGHtest/orm/declarative/test_basic.py1965 "user_1.firstname || :firstname_1 || user_1.lastname",CODE
HIGHtest/dialect/postgresql/test_compiler.py3253 "x[%(x_1)s::TEXT] || %(param_1)s::VARCHAR || x[%(x_2)s::TEXT]",CODE
HIGHtest/dialect/postgresql/test_reflection.py627 "(not_nullable_domain_col nullable_domain not null,"CODE
HIGHtest/dialect/postgresql/test_reflection.py1991 "create index idx1 on party ((id || name), (other || id::text))"STRING
HIGHtest/dialect/postgresql/test_reflection.py2014 "(id::text || name::text)",STRING
HIGHtest/dialect/postgresql/test_reflection.py2015 "(other::text || id::text)",STRING
HIGH⚡test/dialect/postgresql/test_types.py2451 "SELECT x || ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER] AS"CODE
HIGHtest/dialect/postgresql/test_types.py2406 "SELECT x && ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER,"CODE
HIGHtest/dialect/postgresql/test_types.py2415 "SELECT x && ANY (ARRAY[%(param_1)s::INTEGER,"CODE
HIGHtest/dialect/postgresql/test_types.py2742 "bar": sa.text("""array['[{"x": 1}]'::json, null]"""),CODE
HIGHtest/dialect/postgresql/test_types.py4543 "test_table.hash || hstore(CAST(test_table.id AS TEXT), "CODE
HIGHtest/dialect/postgresql/test_types.py4624 "(test_table.hash || test_table.hash)[%(param_1)s::VARCHAR] AS"CODE
HIGHtest/dialect/oracle/test_reflection.py1032 (("group" || col), col || other desc)""")CODE
HIGHtest/sql/test_operators.py405 select(expr), "SELECT (d1 || d2) + i1 + i2 AS anon_1"CODE
HIGHtest/sql/test_operators.py411 select(expr), "SELECT i1 + i2 + (d1 || d2) AS anon_1"CODE
HIGHtest/sql/test_update.py629 "mytable.name = (:param_2 || mytable.name || :param_3)",CODE
HIGHtest/sql/test_update.py707 "mytable.name = (:param_2 || mytable.name || :param_3)",CODE
HIGHtest/sql/test_update.py737 "mytable.name = (:param_2 || mytable.name || :param_3)",CODE
HIGHtest/sql/test_update.py807 "mytable.name = (:param_2 || mytable.name || :param_3)",CODE
HIGHtest/sql/test_lambdas.py1519 expr, ":x_1 || users.name", checkparams={"x_1": "foo"}CODE
HIGHtest/sql/test_lambdas.py1525 expr, ":x_1 || users.name", checkparams={"x_1": "bar"}CODE
HIGHlib/sqlalchemy/testing/config.py396 cls.push(STRING
HIGHlib/sqlalchemy/testing/plugin/plugin_base.py791 config._current.push(config_obj, testing)CODE
HIGHlib/sqlalchemy/dialects/mssql/pyodbc.py453 If the value is null, return a pyodbc-specific BinaryNullCODE
HIGHlib/sqlalchemy/orm/strategies.py314 # the column. If it's sql.null, we don't need to renderCOMMENT
HIGHlib/sqlalchemy/orm/strategies.py318 not c.compare(null) for c in self.parent_property.columnsCODE
HIGHlib/sqlalchemy/sql/functions.py952 {printsql}my_string(:my_string_1) || :my_string_2 || my_string(:my_string_3)CODE
HIGH⚡lib/sqlalchemy/sql/compiler.py3453 # case is handled using the form "(col NOT IN (null) OR 1 = 1)".COMMENT
HIGHlib/sqlalchemy/sql/_typing.py453 a column can be null, for example due to an outer join::STRING
HIGHlib/sqlalchemy/sql/_typing.py491 a column cannot be null, for example due to a where condition on aSTRING
HIGHlib/sqlalchemy/sql/_elements_constructors.py2098 {printsql}someint + :someint_1 || somestr{stop}CODE
HIGHlib/sqlalchemy/sql/sqltypes.py2687 Python value ``None`` continues to refer to SQL null, and notCODE
HIGHlib/sqlalchemy/sql/operators.py882 In a column context, produces the clause ``a || b``,STRING
HIGHlib/sqlalchemy/sql/operators.py2036 produces the concatenation operator, ``a || b`` -CODE
HIGHlib/sqlalchemy/sql/dml.py783 RETURNING some_table.first_name || :first_name_1 || some_table.last_name AS fullnameCODE
Excessive Try-Catch Wrapping68 hits · 69 pts
SeverityFileLineSnippetContext
LOWtools/format_docs_code.py87 except Exception as e:CODE
LOWtest/ext/test_associationproxy.py885 except Exception:CODE
LOWtest/ext/test_associationproxy.py895 except Exception:CODE
LOWtest/ext/test_associationproxy.py923 except Exception:CODE
LOWtest/ext/test_associationproxy.py933 except Exception:CODE
LOWtest/ext/asyncio/test_engine.py310 except Exception as err:CODE
LOWtest/ext/asyncio/test_engine.py962 except Exception as possibly_emulated_error:CODE
LOWtest/aaa_profiling/test_threading.py43 except Exception as e:CODE
LOWtest/dialect/sqlite/test_dialect.py808 except Exception:CODE
LOWtest/perf/many_table_reflection.py574 except Exception:CODE
LOWtest/perf/invalidate_stresstest.py34 except Exception:CODE
LOWtest/perf/compiled_extensions/command.py53 except Exception:CODE
MEDIUMtest/perf/compiled_extensions/command.py47def find_git_sha():CODE
LOWtest/perf/compiled_extensions/base.py51 except Exception as e:CODE
MEDIUMtest/perf/compiled_extensions/base.py52 print(f"Error loading {fn}: {e!r}")CODE
LOWtest/perf/compiled_extensions/base.py112 except Exception as e:CODE
MEDIUMtest/perf/compiled_extensions/base.py48def _load(cls, fn):CODE
LOWtest/engine/test_transaction.py95 except Exception as e:CODE
LOWtest/sql/test_types.py151 except Exception:CODE
LOWlib/sqlalchemy/exc.py773 except Exception as e:CODE
LOWlib/sqlalchemy/connectors/asyncio.py186 except Exception as error:CODE
LOWlib/sqlalchemy/connectors/asyncio.py257 except Exception as error:CODE
LOWlib/sqlalchemy/connectors/asyncio.py269 except Exception as error:CODE
LOWlib/sqlalchemy/connectors/asyncio.py377 except Exception as error:CODE
LOWlib/sqlalchemy/connectors/asyncio.py417 except Exception as error:CODE
LOWlib/sqlalchemy/connectors/asyncio.py423 except Exception as error:CODE
MEDIUMlib/sqlalchemy/connectors/asyncio.py414def rollback(self) -> None:CODE
MEDIUMlib/sqlalchemy/connectors/asyncio.py420def commit(self) -> None:CODE
MEDIUMlib/sqlalchemy/util/langhelpers.py518def _inspect_func_args(fn):CODE
LOWlib/sqlalchemy/util/langhelpers.py193 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py1001 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py1010 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py1966 except Exception:CODE
LOWlib/sqlalchemy/util/typing.py268 except Exception as err:CODE
LOWlib/sqlalchemy/ext/associationproxy.py665 except Exception as err:STRING
LOWlib/sqlalchemy/testing/exclusions.py130 except Exception as ex:CODE
LOWlib/sqlalchemy/testing/exclusions.py163 except Exception as ex:CODE
LOWlib/sqlalchemy/testing/engines.py66 except Exception as e:CODE
LOWlib/sqlalchemy/testing/engines.py280 except Exception as e:CODE
MEDIUMlib/sqlalchemy/testing/engines.py63def _safe(self, fn):CODE
MEDIUMlib/sqlalchemy/testing/engines.py277def _safe(self, fn):CODE
LOWlib/sqlalchemy/testing/plugin/pytestplugin.py505 except Exception as e:CODE
LOWlib/sqlalchemy/testing/suite/test_types.py2075 except Exception:CODE
LOWlib/sqlalchemy/dialects/postgresql/asyncpg.py617 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/postgresql/asyncpg.py652 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/postgresql/asyncpg.py863 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/postgresql/asyncpg.py895 except Exception as error:STRING
LOW⚡lib/sqlalchemy/dialects/postgresql/asyncpg.py914 except Exception as error:STRING
LOW⚡lib/sqlalchemy/dialects/postgresql/asyncpg.py923 except Exception as error:STRING
MEDIUMlib/sqlalchemy/dialects/postgresql/asyncpg.py860def ping(self):CODE
LOWlib/sqlalchemy/dialects/sqlite/aiosqlite.py194 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/sqlite/aiosqlite.py200 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/sqlite/aiosqlite.py224 except Exception as error:STRING
MEDIUMlib/sqlalchemy/dialects/sqlite/aiosqlite.py211def close(self) -> None:CODE
LOWlib/sqlalchemy/dialects/mysql/mysqlconnector.py209 except Exception:CODE
LOWlib/sqlalchemy/dialects/mysql/asyncmy.py109 except Exception as error:STRING
MEDIUMlib/sqlalchemy/dialects/mysql/asyncmy.py102def _do_ping(self) -> None:CODE
LOWlib/sqlalchemy/dialects/mysql/provision.py67 except Exception:CODE
LOWlib/sqlalchemy/dialects/mssql/base.py2009 except Exception:CODE
LOWlib/sqlalchemy/orm/loading.py135 except Exception:CODE
8 more matches not shown…
AI Structural Patterns84 hits · 64 pts
SeverityFileLineSnippetContext
LOWtest/orm/test_relationship_criteria.py2057CODE
LOWtest/orm/test_relationship_criteria.py2122CODE
LOWtest/orm/test_relationship_criteria.py2181CODE
LOWtest/orm/test_relationship_criteria.py2254CODE
LOWtest/orm/test_relationship_criteria.py2316CODE
LOWtest/orm/test_relationship_criteria.py2443CODE
LOWtest/orm/test_relationship_criteria.py2517CODE
LOWtest/base/test_typing_utils.py25CODE
LOWtest/base/test_typing_utils.py38CODE
LOWtest/sql/test_resultset.py511CODE
LOWlib/sqlalchemy/util/compat.py186CODE
LOWlib/sqlalchemy/ext/automap.py1116CODE
LOWlib/sqlalchemy/ext/associationproxy.py86CODE
LOWlib/sqlalchemy/ext/associationproxy.py375CODE
LOWlib/sqlalchemy/ext/asyncio/scoping.py1269CODE
LOWlib/sqlalchemy/ext/asyncio/engine.py418CODE
LOWlib/sqlalchemy/testing/assertions.py510CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py975CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1006CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1042CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1138CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1190CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1282CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1408CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1543CODE
LOWlib/sqlalchemy/dialects/oracle/base.py2169CODE
LOWlib/sqlalchemy/dialects/mysql/mysqlconnector.py116CODE
LOWlib/sqlalchemy/dialects/mssql/base.py2775CODE
LOWlib/sqlalchemy/dialects/mssql/base.py3201CODE
LOWlib/sqlalchemy/orm/loading.py496CODE
LOWlib/sqlalchemy/orm/loading.py535CODE
LOWlib/sqlalchemy/orm/query.py1723CODE
LOWlib/sqlalchemy/orm/properties.py148CODE
LOWlib/sqlalchemy/orm/util.py595CODE
LOWlib/sqlalchemy/orm/util.py736CODE
LOWlib/sqlalchemy/orm/util.py1121CODE
LOWlib/sqlalchemy/orm/mapper.py195CODE
LOWlib/sqlalchemy/orm/session.py1537CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py99CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py461CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py635CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py661CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py686CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py710CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py1076CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py1990CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2244CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2540CODE
LOWlib/sqlalchemy/orm/descriptor_props.py219CODE
LOWlib/sqlalchemy/orm/decl_api.py572CODE
LOWlib/sqlalchemy/orm/decl_api.py1046CODE
LOWlib/sqlalchemy/orm/decl_api.py2174CODE
LOWlib/sqlalchemy/orm/decl_api.py2264CODE
LOWlib/sqlalchemy/orm/decl_api.py2279CODE
LOWlib/sqlalchemy/orm/decl_api.py629CODE
LOWlib/sqlalchemy/orm/decl_api.py1714CODE
LOWlib/sqlalchemy/orm/decl_api.py1729CODE
LOWlib/sqlalchemy/orm/relationships.py404CODE
LOWlib/sqlalchemy/orm/relationships.py2376CODE
LOWlib/sqlalchemy/engine/create.py50CODE
24 more matches not shown…
Modern Structural Boilerplate73 hits · 61 pts
SeverityFileLineSnippetContext
LOWlib/sqlalchemy/util/queue.py38__all__ = ["Empty", "Full", "Queue"]CODE
LOWlib/sqlalchemy/util/topological.py27__all__ = ["sort", "sort_as_subsets", "find_cycles"]CODE
LOWlib/sqlalchemy/util/langhelpers.py1420 def _set_memoized_attribute(self, key: str, value: Any) -> None:CODE
LOWlib/sqlalchemy/util/langhelpers.py1946def set_creation_order(instance: Any) -> None:CODE
LOWlib/sqlalchemy/ext/orderinglist.py152__all__ = ["ordering_list"]CODE
LOWlib/sqlalchemy/ext/orderinglist.py328 def _set_order_value(self, entity: _T, value: Any) -> None:CODE
LOWlib/sqlalchemy/ext/hybrid.py1033 def _set_start(self, value: Point) -> None:CODE
LOWlib/sqlalchemy/ext/hybrid.py1042 def _set_end(self, value: Point) -> None:CODE
LOWlib/sqlalchemy/ext/indexable.py246__all__ = ["index_property"]CODE
LOWlib/sqlalchemy/ext/serializer.py85__all__ = ["Serializer", "Deserializer", "dumps", "loads"]CODE
LOWlib/sqlalchemy/ext/horizontal_shard.py74__all__ = ["ShardedSession", "ShardedQuery"]CODE
LOWlib/sqlalchemy/ext/mutable.py767def _setup_composite_listener() -> None:CODE
LOWlib/sqlalchemy/ext/declarative/__init__.py54__all__ = [CODE
LOWlib/sqlalchemy/ext/asyncio/engine.py1195 def update_execution_options(self, **opt: Any) -> None:STRING
LOWlib/sqlalchemy/testing/schema.py21__all__ = ["Table", "Column"]CODE
LOWlib/sqlalchemy/dialects/sqlite/pysqlite.py729 def set_regexp(dbapi_connection: DBAPIConnection) -> None:STRING
LOWlib/sqlalchemy/dialects/mysql/_mariadb_shim.py120 def _set_mariadb(self) -> None:CODE
LOWlib/sqlalchemy/orm/interfaces.py628 def set_parent(self, parent: Mapper[Any], init: bool) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py393 def _setup_inheritance(self, mapper_kw: _MapperKwArgs) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1743 def _setup_table(self, table: Optional[FromClause] = None) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1824 def _setup_inheriting_mapper(self) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1857 def _setup_inheriting_columns(self) -> None:CODE
LOWlib/sqlalchemy/orm/query.py157__all__ = ["Query", "QueryContext"]CODE
LOWlib/sqlalchemy/orm/attributes.py2747def set_committed_value(instance: object, key: str, value: Any) -> None:CODE
LOWlib/sqlalchemy/orm/properties.py92__all__ = [CODE
LOWlib/sqlalchemy/orm/mapper.py1482 def _set_dispose_flags(self) -> None:CODE
LOWlib/sqlalchemy/orm/scoping.py102__all__ = ["scoped_session"]CODE
LOWlib/sqlalchemy/orm/session.py142__all__ = [CODE
LOWlib/sqlalchemy/orm/session.py646 def update_execution_options(self, **opts: Any) -> None:CODE
LOWlib/sqlalchemy/orm/collections.py148__all__ = [CODE
LOW⚡lib/sqlalchemy/orm/descriptor_props.py587 def _setup_arguments_on_columns(self) -> None:CODE
LOWlib/sqlalchemy/orm/descriptor_props.py606 def _setup_event_handlers(self) -> None:CODE
LOWlib/sqlalchemy/orm/descriptor_props.py1152 def set_parent(self, parent: Mapper[Any], init: bool) -> None:CODE
LOWlib/sqlalchemy/orm/decl_api.py538def _setup_declarative_base(cls: Type[Any]) -> None:CODE
LOWlib/sqlalchemy/orm/decl_api.py1421 def _set_depends_on(self, registry: RegistryType) -> None:CODE
LOWlib/sqlalchemy/orm/relationships.py3176 def _setup_pairs(self) -> None:CODE
LOW⚡lib/sqlalchemy/orm/relationships.py1735 def _setup_registry_dependencies(self) -> None:STRING
LOWlib/sqlalchemy/orm/relationships.py1936 def _setup_entity(self, __argument: Any = None, /) -> None:STRING
LOWlib/sqlalchemy/orm/relationships.py1983 def _setup_join_conditions(self) -> None:STRING
LOWlib/sqlalchemy/orm/relationships.py2048 def _set_cascade(self, cascade_arg: Union[str, CascadeOptions]) -> None:STRING
LOWlib/sqlalchemy/engine/base.py2994 def update_execution_options(self, **opt: Any) -> None:CODE
LOWlib/sqlalchemy/engine/base.py3330 def update_execution_options(self, **opt: Any) -> None:STRING
LOWlib/sqlalchemy/engine/base.py3356 def update_execution_options(self, **opt: Any) -> None:STRING
LOWlib/sqlalchemy/event/attr.py211 def update_subclass(self, target: Type[_ET]) -> None:CODE
LOWlib/sqlalchemy/event/attr.py432 def _set_asyncio(self) -> None:CODE
LOWlib/sqlalchemy/sql/visitors.py48__all__ = [CODE
LOWlib/sqlalchemy/sql/selectable.py943 def _setup_collections(self) -> None:STRING
LOW⚡lib/sqlalchemy/sql/base.py1403 def _set_syntax_extensions(self, **extensions: SyntaxExtension) -> None:CODE
LOWlib/sqlalchemy/sql/base.py1833 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOW⚡lib/sqlalchemy/sql/schema.py4665 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOW⚡lib/sqlalchemy/sql/schema.py4670 def _set_table(self, column: Column[Any], table: Table) -> None:CODE
LOW⚡lib/sqlalchemy/sql/schema.py4673 def _set_metadata(self, metadata: MetaData) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py2719 def _setup_on_memoized_fks(self, fn: Callable[..., Any]) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3837 def _set_target_column(self, column: Column[Any]) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3847 def set_type(fk: ForeignKey) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3911 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3922 def _set_remote_table(self, table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3937 def _set_table(self, column: Column[Any], table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4029 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4194 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
13 more matches not shown…
Over-Commented Block75 hits · 60 pts
SeverityFileLineSnippetContext
LOWsetup.cfg1COMMENT
LOWtest/profiles.txt1# SQLAlchemy call count profiles.COMMENT
LOWtest/ext/test_mutable.py841 # MutableList to implement a __reduce_ex__ method. Which means weCOMMENT
LOWtest/orm/test_collection.py361 # currently a no-op, issue #4990COMMENT
LOWtest/orm/test_text.py521 def test_order_by_w_eager_one(self):COMMENT
LOWtest/orm/test_joins.py2441 Node = self.classes.NodeCOMMENT
LOWtest/orm/test_load_on_fks.py341 # auto-expire of 'parent' when c1.parent_idCOMMENT
LOWtest/orm/test_unitofworkv2.py2261 # so, having switched target's primary key,COMMENT
LOWtest/orm/inheritance/test_polymorphic_rel.py1921 .join(Company.employees)COMMENT
LOWtest/orm/declarative/test_mixin.py2681COMMENT
LOWtest/engine/test_transaction.py281 with connection.begin_nested() as sp:COMMENT
LOWtest/sql/test_compiler.py921 # 4. The disambiguating label generated in #2 also has to be deduped.COMMENT
LOWtest/sql/test_compiler.py7621 self.assert_compile(COMMENT
LOWexamples/versioned_history/history_meta.py281COMMENT
LOWlib/sqlalchemy/util/_collections.py681# def has_dupes(sequence, target):COMMENT
LOWlib/sqlalchemy/util/_collections_cy.py61 # In case passing an hashfunc is required in the future two version wereCOMMENT
LOWlib/sqlalchemy/util/langhelpers.py1341 _memoized_property.reset(obj, self.__name__)COMMENT
LOWlib/sqlalchemy/ext/__init__.py1# ext/__init__.pyCOMMENT
LOWlib/sqlalchemy/ext/asyncio/base.py221 return FalseCOMMENT
LOWlib/sqlalchemy/testing/cancellation.py281 try:COMMENT
LOWlib/sqlalchemy/testing/profiles_file.py61# This file is written out on a per-environment basis.COMMENT
LOWlib/sqlalchemy/testing/plugin/__init__.py1# testing/plugin/__init__.pyCOMMENT
LOWlib/sqlalchemy/testing/plugin/pytestplugin.py621COMMENT
LOWlib/sqlalchemy/testing/suite/test_results.py541COMMENT
LOWlib/sqlalchemy/dialects/oracle/provision.py201 # this was meant to work around this issue:COMMENT
LOWlib/sqlalchemy/dialects/oracle/cx_oracle.py1341 # sources:COMMENT
LOWlib/sqlalchemy/dialects/oracle/cx_oracle.py1401 def detect_autocommit_setting(self, dbapi_conn) -> bool:COMMENT
LOWlib/sqlalchemy/dialects/mysql/reserved_words.py1# dialects/mysql/reserved_words.pyCOMMENT
LOWlib/sqlalchemy/orm/interfaces.py321 # it's Mapped[], but there's no "element", which means declarativeCOMMENT
LOWlib/sqlalchemy/orm/decl_base.py661 f"dataclass for {self.cls.__name__!r}: "COMMENT
LOWlib/sqlalchemy/orm/decl_base.py1661 )COMMENT
LOWlib/sqlalchemy/orm/loading.py621 for key in refresh_state_prokeys.difference(only_load_props)COMMENT
LOWlib/sqlalchemy/orm/loading.py641 "proceeding with a refresh"COMMENT
LOWlib/sqlalchemy/orm/loading.py841 compile_state = context.compile_stateCOMMENT
LOWlib/sqlalchemy/orm/loading.py921 # note there is still an issue where this codepathCOMMENT
LOWlib/sqlalchemy/orm/loading.py1361 state.expired_attributes.add(key)COMMENT
LOWlib/sqlalchemy/orm/path_registry.py641 ):COMMENT
LOWlib/sqlalchemy/orm/path_registry.py661 # # as in test_relationship->JoinedloadWPolyOfTypeContinuedCOMMENT
LOWlib/sqlalchemy/orm/path_registry.py761 ):COMMENT
LOWlib/sqlalchemy/orm/path_registry.py781 #COMMENT
LOWlib/sqlalchemy/orm/query.py521 # .statement can return the direct future.Select() construct here, asCOMMENT
LOWlib/sqlalchemy/orm/query.py1961 # selectable in the _from_obj collection, they also set upCOMMENT
LOWlib/sqlalchemy/orm/strategies.py1561 leftmost_mapper,COMMENT
LOWlib/sqlalchemy/orm/strategies.py1601 # are the 'local_cols' of the property). This will remove otherCOMMENT
LOWlib/sqlalchemy/orm/strategies.py2741 # entity_inside_join_structure=join_obj._left_memoCOMMENT
LOWlib/sqlalchemy/orm/strategies.py2761 # a test condition where this test is true looks like:COMMENT
LOWlib/sqlalchemy/orm/strategies.py3321 orig_query = context.compile_state.select_statementCOMMENT
LOWlib/sqlalchemy/orm/strategy_options.py2041 orig_query = context.compile_state.select_statementCOMMENT
LOWlib/sqlalchemy/orm/util.py2381 # stacks we want to rewrite, that is, quote the last entry whichCOMMENT
LOWlib/sqlalchemy/orm/mapper.py1801 # polymorphic_on is a Column or SQL expression andCOMMENT
LOWlib/sqlalchemy/orm/mapper.py2641COMMENT
LOWlib/sqlalchemy/orm/mapper.py2661 # these tests actually adapt the polymorphic selectable (like, theCOMMENT
LOWlib/sqlalchemy/orm/session.py2261 if _add_event:COMMENT
LOWlib/sqlalchemy/orm/context.py2221 # join(RightEntity, LeftEntity.right)COMMENT
LOWlib/sqlalchemy/orm/context.py2421COMMENT
LOWlib/sqlalchemy/orm/decl_api.py1481 )COMMENT
LOWlib/sqlalchemy/orm/bulk_persistence.py601 # since we are splicing result sets together, make sure thereCOMMENT
LOWlib/sqlalchemy/orm/unitofwork.py181 self.mappers = util.defaultdict(set)COMMENT
LOWlib/sqlalchemy/orm/relationships.py1341 #COMMENT
LOWlib/sqlalchemy/orm/relationships.py3241 # we would like to detect if we are synchronizing any columnCOMMENT
15 more matches not shown…
AI Slop Vocabulary35 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUM…orm/declarative/test_dc_transforms_future_anno_sync.py998 """robust tests for the annotation replace/restore feature underSTRING
MEDIUMtest/orm/declarative/test_dc_transforms.py985 """robust tests for the annotation replace/restore feature underSTRING
LOWtest/dialect/postgresql/test_types.py5704 # so lets just use them as suchCOMMENT
LOWtest/dialect/postgresql/test_types.py6253 # so lets just use them as suchCOMMENT
MEDIUMtest/engine/test_execute.py1238 # more robust fixture for thisCOMMENT
MEDIUMtest/sql/test_selectable.py1173 # and we don't have a fully comprehensive approach for this to alwaysCOMMENT
MEDIUMtest/sql/test_compiler.py936 # robust behavior when dupes are present is still very useful.COMMENT
LOWtest/sql/test_compiler.py2256 # not supported by dialect, should just use updateCOMMENT
MEDIUMtest/sql/test_functions.py683 # TODO: the test/sql package lacks a comprehensive picklingCOMMENT
MEDIUMtest/sql/test_functions.py700 # TODO: the test/sql package lacks a comprehensive picklingCOMMENT
LOWexamples/sharding/separate_tables.py64# one easy way would be to just use a composite primary key, where one valueCOMMENT
LOWexamples/sharding/asyncio.py64# one easy way would be to just use a composite primary key, where one valueCOMMENT
LOWexamples/sharding/separate_databases.py50# one easy way would be to just use a composite primary key, where one valueCOMMENT
LOWlib/sqlalchemy/exc.py685 # Don't ever wrap these, just return them directly as ifCOMMENT
LOWlib/sqlalchemy/dialects/postgresql/psycopg.py621 # Normal cursor just call _close() in a non-sync way.COMMENT
MEDIUMlib/sqlalchemy/dialects/postgresql/base.py3362 # us to check against, so this is not a robust check, butCOMMENT
LOWlib/sqlalchemy/dialects/oracle/cx_oracle.py1419 # simplify the whole thing and just use the method that we wereSTRING
LOWlib/sqlalchemy/dialects/oracle/base.py2302 # so it seems easier to just use bind param in this caseCOMMENT
LOWlib/sqlalchemy/dialects/mysql/base.py1816 # No offset provided, so just use the limitCOMMENT
LOWlib/sqlalchemy/orm/decl_base.py1012 # and while it seems like we could just set these on Field as weCOMMENT
LOWlib/sqlalchemy/orm/loading.py652 # So here, we just add the PK cols if thatCOMMENT
MEDIUMlib/sqlalchemy/orm/path_registry.py786 # also make use of of_type() or other intricate polymorphicCOMMENT
LOWlib/sqlalchemy/orm/query.py1973 # just return self._from_obj[0] if present, because there is noSTRING
LOWlib/sqlalchemy/orm/strategies.py778 # get() clause. then we can just use mapper.get()COMMENT
LOWlib/sqlalchemy/orm/strategies.py2318 # just return itCOMMENT
LOWlib/sqlalchemy/orm/util.py852 # "self"; so just return a new method with the same function andSTRING
LOWlib/sqlalchemy/orm/context.py768 # if the col is from some other mapper, just return it, assume theCOMMENT
LOWlib/sqlalchemy/orm/context.py3190 # the resulting callable is entirely cacheable so just returnCOMMENT
LOWlib/sqlalchemy/orm/bulk_persistence.py613 # Since we have cols_to_return, just return what we askedCOMMENT
LOWlib/sqlalchemy/engine/create.py763 # since "on_connect" is virtually always present, just useCOMMENT
LOWlib/sqlalchemy/engine/cursor.py511 # no compiled objects to map, just create keymap by primary stringCOMMENT
LOWlib/sqlalchemy/engine/cursor.py892 # conflicting keyname - just add the column-linked objectsCOMMENT
LOWlib/sqlalchemy/sql/compiler.py4432 # or this is the same CTE. just return the name.COMMENT
MEDIUMlib/sqlalchemy/sql/type_api.py711 r"""Produce a copy of this type object that will utilize the givenCODE
LOWlib/sqlalchemy/sql/type_api.py2470 # couldn't adapt - so just return the type itselfCOMMENT
Fake / Example Data60 hits · 50 pts
SeverityFileLineSnippetContext
LOWtest/ext/test_extendedattr.py269 u.email_address = "foo@bar.com"CODE
LOWtest/ext/test_extendedattr.py272 eq_(u.email_address, "foo@bar.com")CODE
LOWtest/orm/test_pickled.py1109 eu = EmailUser(name="user1", email_address="foo@bar.com")CODE
LOWtest/orm/test_pickled.py1120 eq_(eu2.email_address, "foo@bar.com")CODE
LOWtest/orm/test_expire.py1318 u.addresses = [Address(id=10, email_address="foo@bar.com")]CODE
LOWtest/orm/test_expire.py1328 assert u.addresses[0].email_address == "foo@bar.com"CODE
LOWtest/orm/test_expire.py1376 u.addresses = [Address(id=10, email_address="foo@bar.com")]CODE
LOWtest/orm/test_expire.py1384 assert u.addresses[0].email_address == "foo@bar.com"CODE
LOWtest/orm/test_session.py1797 schema="placeholder",CODE
LOWtest/orm/test_session.py1815 "schema_translate_map": {"placeholder": config.test_schema},CODE
LOWtest/orm/test_session.py1835 schema_translate_map={"placeholder": config.test_schema}CODE
LOWtest/orm/test_session.py1853 schema_translate_map={"placeholder": config.test_schema}CODE
LOWtest/orm/test_core_compilation.py3283 .filter_by(email_address="foo@bar.com")CODE
LOWtest/orm/test_validators.py75 a1 = Address(id=15, email_address="foo@bar.com")CODE
LOWtest/orm/test_validators.py84 name="edward", addresses=[Address(email_address="foo@bar.com")]CODE
LOWtest/orm/test_merge.py480 a1 = Address(email_address="foo@bar.com")CODE
LOWtest/orm/test_merge.py494 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py505 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py521 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py612 u1.addresses["foo@bar.com"] = Address(email_address="foo@bar.com")CODE
LOWtest/orm/test_merge.py616 assert list(u1.addresses.keys()) == ["foo@bar.com"]CODE
LOWtest/orm/test_merge.py648 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py663 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py687 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py705 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py1028 a1.email_address = "foo@bar.com"CODE
LOWtest/orm/test_merge.py1070 address=Address(id=1, email_address="foo@bar.com"),CODE
LOWtest/orm/test_merge.py1187 a1.email_address = "foo@bar.com"CODE
LOWtest/orm/test_merge.py1268 a1.email_address = "foo@bar.com"CODE
LOWtest/orm/test_merge.py1323 a1.email_address = "foo@bar.com"CODE
LOWtest/orm/test_dynamic.py1192 u1.addresses.add(Address(email_address="foo@bar.com"))CODE
LOWtest/orm/test_dynamic.py1203 Address(email_address="foo@bar.com"),CODE
LOWtest/orm/test_dynamic.py1279 a = Address(email_address="foo@bar.com")CODE
LOWtest/orm/test_mapper.py587 User.addresses.any(Address.email_address == "foo@bar.com")CODE
LOWtest/orm/test_cascade.py638 a = Address(email_address="foo@bar.com")CODE
LOWtest/orm/test_attributes.py261 u.email_address = "foo@bar.com"CODE
LOWtest/orm/test_attributes.py265 and u.email_address == "foo@bar.com"CODE
LOWtest/orm/test_attributes.py577 a.email_address = "foo@bar.com"CODE
LOWtest/orm/test_attributes.py583 eq_(u.addresses[1].email_address, "foo@bar.com")CODE
LOWtest/orm/inheritance/test_manytomany.py116 email="foo@bar.com",CODE
LOW⚡test/sql/test_resultset.py219 ("john", "foo@bar.com", 1),CODE
LOW⚡test/sql/test_resultset.py224 eq_(rows[0].address, "foo@bar.com")CODE
LOW⚡test/sql/test_resultset.py229 ("john", "foo@bar.com"),CODE
LOW⚡test/sql/test_resultset.py233 eq_(rows[0].address, "foo@bar.com")CODE
LOW⚡test/sql/test_resultset.py238 ("john", 1, 1, "foo@bar.com", 1),CODE
LOW⚡test/sql/test_resultset.py677 dict(address_id=1, user_id=2, address="foo@bar.com"),CODE
LOW⚡test/sql/test_resultset.py683 [{"address_id": 1, "user_id": 2, "address": "foo@bar.com"}],CODE
LOWtest/sql/test_resultset.py182 dict(address_id=1, user_id=1, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py183 dict(address_id=2, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py201 dict(address_id=1, user_id=1, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py661 dict(address_id=1, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py666 eq_(r[1:], (2, "foo@bar.com"))CODE
LOWlib/sqlalchemy/ext/automap.py61 session.add(Address(email_address="foo@bar.com", user=User(name="foo")))CODE
LOWlib/sqlalchemy/ext/automap.py369 u1 = User(addresses=[Address(email="foo@bar.com")])CODE
LOWlib/sqlalchemy/orm/query.py2404 User.addresses.and_(Address.email_address != "foo@bar.com")CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2671 .filter(Address.email_address == "foo@bar.com")CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2680 .filter(Address.email_address == "foo@bar.com")CODE
LOWlib/sqlalchemy/engine/cursor.py2009 ("john", 1, 1, "foo@bar.com", 1),STRING
LOWlib/sqlalchemy/sql/_elements_constructors.py570 "placeholder" value in a SQL expression, the value of which isCODE
LOWlib/sqlalchemy/sql/_elements_constructors.py577 a "placeholder" for eventual population, but also as a means ofCODE
Redundant / Tautological Comments4 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/sqlalchemy/sql/functions.py110 # Check if a function with the same identifier is registered.COMMENT
LOWlib/sqlalchemy/sql/functions.py1633 # Set _register to True to register child classes by defaultSTRING
LOWlib/sqlalchemy/sql/base.py616 # Check if user explicitly set it.STRING
LOWlib/sqlalchemy/sql/base.py2828 # Check if the attribute existsCOMMENT
Overly Generic Function Names6 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/orm/test_events.py3236 def do_something(session, previous_transaction):CODE
LOWtest/orm/test_mapper.py1878 def test_function(self):CODE
LOWtest/dialect/mssql/test_compiler.py1023 def test_function(self):CODE
LOWlib/sqlalchemy/ext/asyncio/base.py286 def helper(*args: Any, **kwds: Any) -> GeneratorStartableContext[_T_co]:CODE
LOWlib/sqlalchemy/orm/events.py1916 def do_something(session, previous_transaction):CODE
LOWlib/sqlalchemy/orm/collections.py335 def do_stuff(self, thing, entity=None): ...STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtest/orm/test_query.py5563CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/sqlalchemy/dialects/oracle/provision.py68 # NOTE: make sure you've run "ALTER DATABASE default tablespace users" orCOMMENT