Repository Analysis

sqlalchemy/sqlalchemy

The Database Toolkit for Python

16.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of sqlalchemy/sqlalchemy, a Python project with 12,119 GitHub stars. SynthScan v2.0 examined 637,334 lines of code across 685 source files, recording 11228 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 16.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

16.3
Adjusted Score
16.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
12.1K
Stars
Python
Language
637.3K
Lines of Code
685
Files
11.2K
Pattern Hits
2026-08-29
Scan Date
0.28
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 32HIGH 163MEDIUM 291LOW 10742

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 11228 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers8034 hits · 6340 pts
SeverityFileLineSnippetContext
LOWtools/generate_sql_functions.py22def _fns_in_deterministic_order():CODE
LOWtools/profiles.py51def _load_profiles_file_module() -> ModuleType:CODE
LOWtest/requirements.py107 def foreign_keys_reflect_as_index(self):CODE
LOWtest/requirements.py111 def unique_index_reflect_as_unique_constraints(self):CODE
LOWtest/requirements.py115 def unique_constraints_reflect_as_index(self):CODE
LOWtest/requirements.py119 def foreign_key_constraint_name_reflection(self):CODE
LOWtest/requirements.py186 def foreign_key_constraint_option_reflection_ondelete(self):CODE
LOWtest/requirements.py192 def fk_constraint_option_reflection_ondelete_restrict(self):CODE
LOWtest/requirements.py196 def fk_constraint_option_reflection_ondelete_noaction(self):CODE
LOWtest/requirements.py200 def foreign_key_constraint_option_reflection_onupdate(self):CODE
LOWtest/requirements.py204 def fk_constraint_option_reflection_onupdate_restrict(self):CODE
LOWtest/requirements.py208 def temp_table_comment_reflection(self):CODE
LOWtest/requirements.py216 def comment_reflection_full_unicode(self):CODE
LOWtest/requirements.py220 def constraint_comment_reflection(self):CODE
LOWtest/requirements.py224 def column_collation_reflection(self):CODE
LOWtest/requirements.py534 def sequences_as_server_defaults(self):CODE
LOWtest/requirements.py543 def sql_expressions_inserted_as_primary_key(self):CODE
LOWtest/requirements.py547 def computed_columns_on_update_returning(self):CODE
LOWtest/requirements.py693 def default_schema_name_switch(self):CODE
LOWtest/requirements.py697 def unique_constraint_reflection(self):CODE
LOWtest/requirements.py703 def unique_constraint_reflection_no_index_overlap(self):CODE
LOWtest/requirements.py712 def inline_check_constraint_reflection(self):CODE
LOWtest/requirements.py722 def check_constraint_reflection(self):CODE
LOWtest/requirements.py733 def indexes_check_column_order(self):CODE
LOWtest/requirements.py741 def reflect_indexes_with_expressions(self):CODE
LOWtest/requirements.py745 def reflect_indexes_with_ascdesc_as_expression(self):CODE
LOWtest/requirements.py1553 def precision_numerics_general(self):CODE
LOWtest/requirements.py1559 def precision_numerics_enotation_small(self):CODE
LOWtest/requirements.py1566 def precision_numerics_many_significant_digits(self):CODE
LOWtest/requirements.py1996 def _mysql_check_constraints_exist(self, config):CODE
LOWtest/requirements.py2003 def _mysql_check_constraints_dont_exist(self, config):CODE
LOWtest/requirements.py2008 def _mysql_expression_defaults(self, config):CODE
LOWtest/requirements.py2014 def mysql_expression_defaults(self):CODE
LOWtest/requirements.py2149 def sequences_in_other_clauses(self):CODE
LOWtest/requirements.py2154 def supports_lastrowid_for_expressions(self):CODE
LOWtest/requirements.py2159 def supports_sequence_for_autoincrement_column(self):CODE
LOWtest/requirements.py2164 def supports_autoincrement_w_composite_pk(self):CODE
LOWtest/requirements.py2174 def multiple_identity_columns(self):CODE
LOWtest/requirements.py2178 def identity_columns_standard(self):CODE
LOWtest/requirements.py2182 def index_reflects_included_columns(self):CODE
LOWtest/requirements.py2213 def fetch_offset_with_options(self):CODE
LOWtest/requirements.py2223 def autoincrement_without_sequence(self):CODE
LOWtest/requirements.py2227 def reflect_tables_no_columns(self):CODE
LOWtest/requirements.py32 def deferrable_or_no_constraints(self):CODE
LOWtest/requirements.py50 def enforces_check_constraints(self):CODE
LOWtest/requirements.py65 def implicitly_named_constraints(self):CODE
LOWtest/requirements.py77 def foreign_key_cycles_w_cascade(self):CODE
LOWtest/requirements.py81 def repeated_column_foreign_keys(self):CODE
LOWtest/requirements.py94 def repeated_remote_col_foreign_keys(self):CODE
LOWtest/requirements.py247 def non_native_boolean_unconstrained(self):CODE
LOWtest/requirements.py272 def expression_server_defaults(self):CODE
LOWtest/requirements.py320 def no_quoting_special_bind_names(self):CODE
LOWtest/requirements.py336 def temp_table_reflect_indexes(self):CODE
LOWtest/requirements.py340 def reflectable_autoincrement(self):CODE
LOWtest/requirements.py412 def cursor_works_post_rollback(self):CODE
LOWtest/requirements.py491 def updateable_autoincrement_pks(self):CODE
LOWtest/requirements.py613 def update_where_target_in_subquery(self):CODE
LOWtest/requirements.py674 def cross_schema_fk_reflection(self):CODE
LOWtest/requirements.py793 def unusual_column_name_characters(self):CODE
LOWtest/requirements.py873 def mod_operator_as_percent_sign(self):CODE
7974 more matches not shown…
Unused Imports1785 hits · 1246 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
1725 more matches not shown…
Self-Referential Comments269 hits · 805 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
209 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…
Hallucination Indicators32 hits · 425 pts
SeverityFileLineSnippetContext
CRITICALtest/orm/test_bundle.py514 .filter(b1.c.b2.c.d2.between("d4d2", "d6d2"))CODE
CRITICALtest/orm/test_bundle.py532 .filter(b1.c.b2.c.d2.between("d4d2", "d5d2"))CODE
CRITICALtest/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
CRITICALtest/dialect/postgresql/test_dialect.py993 assert testing.db.dialect.dbapi.__version__.startswith(CODE
CRITICALtest/dialect/postgresql/test_dialect.py1000 assert testing.db.dialect.dbapi.__version__.startswith(CODE
CRITICALtest/dialect/postgresql/test_types.py4123 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4131 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4136 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4150 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4160 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4170 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4180 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4185 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4196 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4203 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
CRITICALtest/sql/test_type_expressions.py454 self.tables.test_table.c.x.label("xbar"),CODE
CRITICALtest/sql/test_type_expressions.py455 self.tables.test_table.c.y.label("ybar"),CODE
CRITICALtest/sql/test_types.py3298 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICALtest/sql/test_types.py3307 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICALtest/sql/test_types.py3318 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICALtest/sql/test_types.py3324 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICALtest/sql/test_types.py3333 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICALtest/sql/test_types.py3339 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 Nesting530 hits · 382 pts
SeverityFileLineSnippetContext
LOWtools/format_docs_code.py149CODE
LOWtools/generate_proxy_methods.py178CODE
LOWtools/generate_proxy_methods.py295CODE
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.py900CODE
LOWtest/ext/asyncio/test_engine.py74CODE
LOWtest/ext/asyncio/test_session.py180CODE
LOWtest/aaa_profiling/test_threading.py265CODE
LOWtest/aaa_profiling/test_threading.py273CODE
LOWtest/aaa_profiling/test_memusage.py95CODE
LOWtest/aaa_profiling/test_memusage.py98CODE
LOWtest/aaa_profiling/test_memusage.py117CODE
LOWtest/aaa_profiling/test_memusage.py204CODE
LOWtest/aaa_profiling/test_memusage.py225CODE
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.py4074CODE
LOWtest/orm/test_froms.py4077CODE
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.py6484CODE
LOWtest/orm/test_joins.py239CODE
LOWtest/orm/test_events.py501CODE
LOWtest/orm/test_events.py1251CODE
470 more matches not shown…
Cross-Language Confusion46 hits · 234 pts
SeverityFileLineSnippetContext
HIGHtest/ext/test_hybrid.py584 "a.firstname || :firstname_1 || a.lastname AS name FROM a) "CODE
HIGHtest/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.py7099 "FROM a JOIN b ON a.b_ids LIKE (:id_1 || b.id || :param_1)) "CODE
HIGHtest/orm/test_relationships.py7118 "FROM a JOIN b ON a.b_ids LIKE (:id_1 || b.id || :param_1)) "CODE
HIGHtest/orm/test_relationships.py7148 "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.py3234 "x[%(x_1)s::TEXT] || %(param_1)s::VARCHAR || x[%(x_2)s::TEXT]",CODE
HIGHtest/dialect/postgresql/test_reflection.py455 "(not_nullable_domain_col nullable_domain not null,"CODE
HIGHtest/dialect/postgresql/test_reflection.py1819 "create index idx1 on party ((id || name), (other || id::text))"STRING
HIGHtest/dialect/postgresql/test_reflection.py1842 "(id::text || name::text)",STRING
HIGHtest/dialect/postgresql/test_reflection.py1843 "(other::text || id::text)",STRING
HIGHtest/dialect/postgresql/test_types.py2251 "SELECT x || ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER] AS"CODE
HIGHtest/dialect/postgresql/test_types.py2206 "SELECT x && ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER,"CODE
HIGHtest/dialect/postgresql/test_types.py2215 "SELECT x && ANY (ARRAY[%(param_1)s::INTEGER,"CODE
HIGHtest/dialect/postgresql/test_types.py2542 "bar": sa.text("""array['[{"x": 1}]'::json, null]"""),CODE
HIGHtest/dialect/postgresql/test_types.py4343 "test_table.hash || hstore(CAST(test_table.id AS TEXT), "CODE
HIGHtest/dialect/postgresql/test_types.py4424 "(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.py307 # the column. If it's sql.null, we don't need to renderCOMMENT
HIGHlib/sqlalchemy/orm/strategies.py311 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
HIGHlib/sqlalchemy/sql/compiler.py3388 # 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.py2072 {printsql}someint + :someint_1 || somestr{stop}CODE
HIGHlib/sqlalchemy/sql/sqltypes.py2680 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 Wrapping70 hits · 71 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.py950 except Exception as possibly_emulated_error:CODE
LOWtest/aaa_profiling/test_threading.py43 except Exception as e:CODE
LOWtest/aaa_profiling/test_memusage.py136 except Exception as err:CODE
LOWtest/aaa_profiling/test_memusage.py188 except Exception as err: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
LOWlib/sqlalchemy/util/langhelpers.py191 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py897 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py906 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py1852 except Exception:CODE
MEDIUMlib/sqlalchemy/util/langhelpers.py414def _inspect_func_args(fn):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.py266 except Exception as e:CODE
MEDIUMlib/sqlalchemy/testing/engines.py63def _safe(self, fn):CODE
MEDIUMlib/sqlalchemy/testing/engines.py263def _safe(self, fn):CODE
LOWlib/sqlalchemy/testing/plugin/pytestplugin.py504 except Exception as e:CODE
LOWlib/sqlalchemy/testing/suite/test_types.py1875 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
LOWlib/sqlalchemy/dialects/postgresql/asyncpg.py910 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/postgresql/asyncpg.py919 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
10 more matches not shown…
Over-Commented Block80 hits · 64 pts
SeverityFileLineSnippetContext
LOWsetup.cfg1COMMENT
LOWnoxfile.py261COMMENT
LOWtest/profiles.txt1# SQLAlchemy call count profiles.COMMENT
LOWtest/ext/test_mutable.py801 eq_(f1.data, [1, 2])COMMENT
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/dialect/mssql/test_compiler.py361 "UPDATE [schema].sometable SET val="COMMENT
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
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/ext/__init__.py1# ext/__init__.pyCOMMENT
LOWlib/sqlalchemy/ext/asyncio/base.py181 await self.gen.athrow(value)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.py581 # 1. function level "autouse" fixtures under py3k (examples: TablesTestCOMMENT
LOWlib/sqlalchemy/testing/plugin/pytestplugin.py601COMMENT
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/sqlite/base.py2881 # Extract CHECK constraints by properly handling balanced parenthesesCOMMENT
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"{ex!r}. Please refer to Python dataclasses "COMMENT
LOWlib/sqlalchemy/orm/decl_base.py1241 # first, to see if it's been mapped on aCOMMENT
LOWlib/sqlalchemy/orm/decl_base.py1301 continueCOMMENT
LOWlib/sqlalchemy/orm/decl_base.py1721 column_ordering[col] = sort_orderCOMMENT
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 q = orig_query._clone().correlate(None)COMMENT
LOWlib/sqlalchemy/orm/strategies.py2721COMMENT
LOWlib/sqlalchemy/orm/strategies.py2741 # if not, then this is not our targetCOMMENT
LOWlib/sqlalchemy/orm/strategies.py3281 ):COMMENT
LOWlib/sqlalchemy/orm/strategies.py3301 effective_entityCOMMENT
LOWlib/sqlalchemy/orm/strategies.py3321 # hashing-wise to the corresponding AliasedInsp that's in theCOMMENT
LOWlib/sqlalchemy/orm/strategy_options.py2041 orig_query = context.compile_state.select_statementCOMMENT
LOWlib/sqlalchemy/orm/util.py2321 # stacks we dont want to rewrite, which are generally MappedColumnCOMMENT
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.py2241 events_todo = self.dispatch.do_orm_executeCOMMENT
LOWlib/sqlalchemy/orm/context.py2221 # join(RightEntity, LeftEntity.right)COMMENT
LOWlib/sqlalchemy/orm/context.py2421COMMENT
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
20 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.py506CODE
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.py1204CODE
LOWlib/sqlalchemy/ext/asyncio/engine.py416CODE
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.py2768CODE
LOWlib/sqlalchemy/dialects/mssql/base.py3194CODE
LOWlib/sqlalchemy/orm/loading.py496CODE
LOWlib/sqlalchemy/orm/loading.py535CODE
LOWlib/sqlalchemy/orm/query.py1723CODE
LOWlib/sqlalchemy/orm/properties.py148CODE
LOWlib/sqlalchemy/orm/util.py594CODE
LOWlib/sqlalchemy/orm/util.py700CODE
LOWlib/sqlalchemy/orm/util.py1055CODE
LOWlib/sqlalchemy/orm/mapper.py195CODE
LOWlib/sqlalchemy/orm/session.py1518CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py99CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py461CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py635CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py660CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py684CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py707CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py1059CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py1973CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2227CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2523CODE
LOWlib/sqlalchemy/orm/descriptor_props.py218CODE
LOWlib/sqlalchemy/orm/decl_api.py568CODE
LOWlib/sqlalchemy/orm/decl_api.py1042CODE
LOWlib/sqlalchemy/orm/decl_api.py2122CODE
LOWlib/sqlalchemy/orm/decl_api.py2212CODE
LOWlib/sqlalchemy/orm/decl_api.py2227CODE
LOWlib/sqlalchemy/orm/decl_api.py625CODE
LOWlib/sqlalchemy/orm/decl_api.py1676CODE
LOWlib/sqlalchemy/orm/decl_api.py1691CODE
LOWlib/sqlalchemy/orm/relationships.py404CODE
LOWlib/sqlalchemy/orm/relationships.py2376CODE
LOWlib/sqlalchemy/engine/create.py50CODE
24 more matches not shown…
Modern Structural Boilerplate74 hits · 63 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.py1306 def _set_memoized_attribute(self, key: str, value: Any) -> None:CODE
LOWlib/sqlalchemy/util/langhelpers.py1832def 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.py394 def _setup_inheritance(self, mapper_kw: _MapperKwArgs) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1043 def _setup_declared_events(self) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1753 def _setup_table(self, table: Optional[FromClause] = None) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1834 def _setup_inheriting_mapper(self) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1867 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.py98__all__ = ["scoped_session"]CODE
LOWlib/sqlalchemy/orm/session.py141__all__ = [CODE
LOWlib/sqlalchemy/orm/session.py645 def update_execution_options(self, **opts: Any) -> None:CODE
LOWlib/sqlalchemy/orm/collections.py148__all__ = [CODE
LOWlib/sqlalchemy/orm/descriptor_props.py565 def _setup_arguments_on_columns(self) -> None:CODE
LOWlib/sqlalchemy/orm/descriptor_props.py584 def _setup_event_handlers(self) -> None:CODE
LOWlib/sqlalchemy/orm/descriptor_props.py1130 def set_parent(self, parent: Mapper[Any], init: bool) -> None:CODE
LOWlib/sqlalchemy/orm/decl_api.py534def _setup_declarative_base(cls: Type[Any]) -> None:CODE
LOWlib/sqlalchemy/orm/decl_api.py1402 def _set_depends_on(self, registry: RegistryType) -> None:CODE
LOWlib/sqlalchemy/orm/relationships.py3159 def _setup_pairs(self) -> None:CODE
LOWlib/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.py2991 def update_execution_options(self, **opt: Any) -> None:CODE
LOWlib/sqlalchemy/engine/base.py3327 def update_execution_options(self, **opt: Any) -> None:STRING
LOWlib/sqlalchemy/engine/base.py3353 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
LOWlib/sqlalchemy/sql/base.py1253 def _set_syntax_extensions(self, **extensions: SyntaxExtension) -> None:CODE
LOWlib/sqlalchemy/sql/base.py1683 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4660 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4665 def _set_table(self, column: Column[Any], table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4668 def _set_metadata(self, metadata: MetaData) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py2715 def _setup_on_memoized_fks(self, fn: Callable[..., Any]) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3833 def _set_target_column(self, column: Column[Any]) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3843 def set_type(fk: ForeignKey) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3907 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3918 def _set_remote_table(self, table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3933 def _set_table(self, column: Column[Any], table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4025 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
14 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.py5504 # so lets just use them as suchCOMMENT
LOWtest/dialect/postgresql/test_types.py6053 # 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.py638 # TODO: the test/sql package lacks a comprehensive picklingCOMMENT
MEDIUMtest/sql/test_functions.py655 # 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.py3325 # 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.py1005 # 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.py771 # get() clause. then we can just use mapper.get()COMMENT
LOWlib/sqlalchemy/orm/strategies.py2311 # just return itCOMMENT
LOWlib/sqlalchemy/orm/util.py787 # "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.py4363 # 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.py2441 # 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.py984 eu = EmailUser(name="user1", email_address="foo@bar.com")CODE
LOWtest/orm/test_pickled.py995 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.py584 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
LOWtest/sql/test_resultset.py214 ("john", "foo@bar.com", 1),CODE
LOWtest/sql/test_resultset.py219 eq_(rows[0].address, "foo@bar.com")CODE
LOWtest/sql/test_resultset.py224 ("john", "foo@bar.com"),CODE
LOWtest/sql/test_resultset.py228 eq_(rows[0].address, "foo@bar.com")CODE
LOWtest/sql/test_resultset.py233 ("john", 1, 1, "foo@bar.com", 1),CODE
LOWtest/sql/test_resultset.py672 dict(address_id=1, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py678 [{"address_id": 1, "user_id": 2, "address": "foo@bar.com"}],CODE
LOWtest/sql/test_resultset.py177 dict(address_id=1, user_id=1, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py178 dict(address_id=2, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py196 dict(address_id=1, user_id=1, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py656 dict(address_id=1, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py661 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.py2654 .filter(Address.email_address == "foo@bar.com")CODE
LOWlib/sqlalchemy/orm/_orm_constructors.py2663 .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.py537 # Check if user explicitly set it.STRING
LOWlib/sqlalchemy/sql/base.py2678 # 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.py1875 def test_function(self):CODE
LOWtest/dialect/mssql/test_compiler.py998 def test_function(self):CODE
LOWlib/sqlalchemy/ext/asyncio/base.py255 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