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 11,992 GitHub stars. SynthScan v2.0 examined 629,141 lines of code across 684 source files, recording 11068 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-07-12
Last Push
12.0K
Stars
Python
Language
629.1K
Lines of Code
684
Files
11.1K
Pattern Hits
2026-07-14
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 158MEDIUM 289LOW 10589

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 11068 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 Identifiers7901 hits · 6259 pts
SeverityFileLineSnippetContext
LOWtools/generate_sql_functions.py22def _fns_in_deterministic_order():CODE
LOWtest/requirements.py77 def foreign_key_cycles_w_cascade(self):CODE
LOWtest/requirements.py81 def foreign_keys_reflect_as_index(self):CODE
LOWtest/requirements.py85 def unique_index_reflect_as_unique_constraints(self):CODE
LOWtest/requirements.py89 def unique_constraints_reflect_as_index(self):CODE
LOWtest/requirements.py93 def foreign_key_constraint_name_reflection(self):CODE
LOWtest/requirements.py160 def foreign_key_constraint_option_reflection_ondelete(self):CODE
LOWtest/requirements.py166 def fk_constraint_option_reflection_ondelete_restrict(self):CODE
LOWtest/requirements.py170 def fk_constraint_option_reflection_ondelete_noaction(self):CODE
LOWtest/requirements.py174 def foreign_key_constraint_option_reflection_onupdate(self):CODE
LOWtest/requirements.py178 def fk_constraint_option_reflection_onupdate_restrict(self):CODE
LOWtest/requirements.py182 def temp_table_comment_reflection(self):CODE
LOWtest/requirements.py190 def comment_reflection_full_unicode(self):CODE
LOWtest/requirements.py194 def constraint_comment_reflection(self):CODE
LOWtest/requirements.py198 def column_collation_reflection(self):CODE
LOWtest/requirements.py508 def sequences_as_server_defaults(self):CODE
LOWtest/requirements.py517 def sql_expressions_inserted_as_primary_key(self):CODE
LOWtest/requirements.py521 def computed_columns_on_update_returning(self):CODE
LOWtest/requirements.py667 def default_schema_name_switch(self):CODE
LOWtest/requirements.py671 def unique_constraint_reflection(self):CODE
LOWtest/requirements.py677 def unique_constraint_reflection_no_index_overlap(self):CODE
LOWtest/requirements.py686 def inline_check_constraint_reflection(self):CODE
LOWtest/requirements.py696 def check_constraint_reflection(self):CODE
LOWtest/requirements.py707 def indexes_check_column_order(self):CODE
LOWtest/requirements.py715 def reflect_indexes_with_expressions(self):CODE
LOWtest/requirements.py719 def reflect_indexes_with_ascdesc_as_expression(self):CODE
LOWtest/requirements.py1527 def precision_numerics_general(self):CODE
LOWtest/requirements.py1533 def precision_numerics_enotation_small(self):CODE
LOWtest/requirements.py1540 def precision_numerics_many_significant_digits(self):CODE
LOWtest/requirements.py1970 def _mysql_check_constraints_exist(self, config):CODE
LOWtest/requirements.py1977 def _mysql_check_constraints_dont_exist(self, config):CODE
LOWtest/requirements.py1982 def _mysql_expression_defaults(self, config):CODE
LOWtest/requirements.py1988 def mysql_expression_defaults(self):CODE
LOWtest/requirements.py2123 def sequences_in_other_clauses(self):CODE
LOWtest/requirements.py2128 def supports_lastrowid_for_expressions(self):CODE
LOWtest/requirements.py2133 def supports_sequence_for_autoincrement_column(self):CODE
LOWtest/requirements.py2138 def supports_autoincrement_w_composite_pk(self):CODE
LOWtest/requirements.py2148 def multiple_identity_columns(self):CODE
LOWtest/requirements.py2152 def identity_columns_standard(self):CODE
LOWtest/requirements.py2156 def index_reflects_included_columns(self):CODE
LOWtest/requirements.py2187 def fetch_offset_with_options(self):CODE
LOWtest/requirements.py2197 def autoincrement_without_sequence(self):CODE
LOWtest/requirements.py2201 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.py221 def non_native_boolean_unconstrained(self):CODE
LOWtest/requirements.py246 def expression_server_defaults(self):CODE
LOWtest/requirements.py294 def no_quoting_special_bind_names(self):CODE
LOWtest/requirements.py310 def temp_table_reflect_indexes(self):CODE
LOWtest/requirements.py314 def reflectable_autoincrement(self):CODE
LOWtest/requirements.py386 def cursor_works_post_rollback(self):CODE
LOWtest/requirements.py465 def updateable_autoincrement_pks(self):CODE
LOWtest/requirements.py587 def update_where_target_in_subquery(self):CODE
LOWtest/requirements.py648 def cross_schema_fk_reflection(self):CODE
LOWtest/requirements.py767 def unusual_column_name_characters(self):CODE
LOWtest/requirements.py847 def mod_operator_as_percent_sign(self):CODE
LOWtest/requirements.py906 def parens_in_union_contained_select_w_limit_offset(self):CODE
LOWtest/requirements.py918 def parens_in_union_contained_select_wo_limit_offset(self):CODE
LOWtest/requirements.py932 def sql_expression_limit_offset(self):CODE
7841 more matches not shown…
Unused Imports1775 hits · 1240 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
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
LOWtest/perf/compiled_extensions/result.py1CODE
1715 more matches not shown…
Self-Referential Comments267 hits · 798 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.py4721 # Create a custom type with UNSPECIFIED operator_classesCOMMENT
MEDIUMtest/sql/test_quote.py308 # Create the same table with quotes set to True nowCOMMENT
MEDIUMtest/sql/test_quote.py332 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py356 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py383 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py410 # Create the same table with quotes set to False nowCOMMENT
MEDIUMtest/sql/test_quote.py448 # 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
207 more matches not shown…
Cross-File Repetition112 hits · 560 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/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
HIGHlib/sqlalchemy/ext/asyncio/session.py0iterate over all pending or persistent instances within this session. .. container:: class_bases proxied for the :class:STRING
52 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.py518 is_true(User.__table__.c.name_plain.default.arg.compare(func.foo()))CODE
CRITICAL…orm/declarative/test_dc_transforms_future_anno_sync.py519 is_true(User.__table__.c.name_no_init.default.arg.compare(func.foo()))CODE
CRITICALtest/orm/declarative/test_dc_transforms.py505 is_true(User.__table__.c.name_plain.default.arg.compare(func.foo()))CODE
CRITICALtest/orm/declarative/test_dc_transforms.py506 is_true(User.__table__.c.name_no_init.default.arg.compare(func.foo()))CODE
CRITICALtest/dialect/postgresql/test_dialect.py973 assert testing.db.dialect.dbapi.__version__.startswith(CODE
CRITICALtest/dialect/postgresql/test_dialect.py980 assert testing.db.dialect.dbapi.__version__.startswith(CODE
CRITICALtest/dialect/postgresql/test_types.py4113 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4121 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4126 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4140 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_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4175 proc = self.test_table.c.hash.type._cached_bind_processor(dialect)CODE
CRITICALtest/dialect/postgresql/test_types.py4186 proc = self.test_table.c.hash.type._cached_result_processor(CODE
CRITICALtest/dialect/postgresql/test_types.py4193 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.py3159 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICALtest/sql/test_types.py3168 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICALtest/sql/test_types.py3179 proc = self.test_table.c.test_column.type._cached_bind_processor(CODE
CRITICALtest/sql/test_types.py3185 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICALtest/sql/test_types.py3194 proc = self.test_table.c.test_column.type._cached_result_processor(CODE
CRITICALtest/sql/test_types.py3200 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 Nesting526 hits · 380 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
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.py91CODE
LOWtest/orm/test_relationship_criteria.py2721CODE
LOWtest/orm/test_session.py258CODE
LOWtest/orm/test_session.py648CODE
LOWtest/orm/test_session.py772CODE
LOWtest/orm/test_session.py2831CODE
LOWtest/orm/test_scoping.py182CODE
LOWtest/orm/test_collection.py2865CODE
LOWtest/orm/test_collection.py2868CODE
LOWtest/orm/test_cache_key.py1142CODE
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.py5378CODE
LOWtest/orm/test_query.py5767CODE
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
LOWtest/orm/test_events.py1897CODE
466 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.py3078 "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.py1724 "create index idx1 on party ((id || name), (other || id::text))"STRING
HIGHtest/dialect/postgresql/test_reflection.py1747 "(id::text || name::text)",STRING
HIGHtest/dialect/postgresql/test_reflection.py1748 "(other::text || id::text)",STRING
HIGHtest/dialect/postgresql/test_types.py2241 "SELECT x || ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER] AS"CODE
HIGHtest/dialect/postgresql/test_types.py2196 "SELECT x && ARRAY[%(param_1)s::INTEGER, %(param_2)s::INTEGER,"CODE
HIGHtest/dialect/postgresql/test_types.py2205 "SELECT x && ANY (ARRAY[%(param_1)s::INTEGER,"CODE
HIGHtest/dialect/postgresql/test_types.py2532 "bar": sa.text("""array['[{"x": 1}]'::json, null]"""),CODE
HIGHtest/dialect/postgresql/test_types.py4333 "test_table.hash || hstore(CAST(test_table.id AS TEXT), "CODE
HIGHtest/dialect/postgresql/test_types.py4414 "(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.py395 select(expr), "SELECT (d1 || d2) + i1 + i2 AS anon_1"CODE
HIGHtest/sql/test_operators.py401 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.py3373 # case is handled using the form "(col NOT IN (null) OR 1 = 1)".COMMENT
HIGHlib/sqlalchemy/sql/_typing.py440 a column can be null, for example due to an outer join::STRING
HIGHlib/sqlalchemy/sql/_typing.py478 a column cannot be null, for example due to a where condition on aSTRING
HIGHlib/sqlalchemy/sql/_elements_constructors.py2046 {printsql}someint + :someint_1 || somestr{stop}CODE
HIGHlib/sqlalchemy/sql/sqltypes.py2640 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.py2024 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 Wrapping69 hits · 70 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.py719 except Exception:CODE
LOWtest/perf/many_table_reflection.py554 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.py47 except Exception as e:CODE
MEDIUMtest/perf/compiled_extensions/base.py48 print(f"Error loading {fn}: {e!r}")CODE
LOWtest/perf/compiled_extensions/base.py106 except Exception as e:CODE
MEDIUMtest/perf/compiled_extensions/base.py44def _load(cls, fn):CODE
LOWtest/engine/test_transaction.py95 except Exception as e:CODE
LOWlib/sqlalchemy/exc.py759 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.py190 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py886 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py895 except Exception:CODE
LOWlib/sqlalchemy/util/langhelpers.py1841 except Exception:CODE
MEDIUMlib/sqlalchemy/util/langhelpers.py403def _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.py182 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/sqlite/aiosqlite.py188 except Exception as error:STRING
LOWlib/sqlalchemy/dialects/sqlite/aiosqlite.py212 except Exception as error:STRING
MEDIUMlib/sqlalchemy/dialects/sqlite/aiosqlite.py199def close(self) -> None:CODE
LOWlib/sqlalchemy/dialects/mysql/mysqlconnector.py210 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
9 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.py509CODE
LOWlib/sqlalchemy/util/compat.py187CODE
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.py935CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py966CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1002CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1098CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1150CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1242CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1368CODE
LOWlib/sqlalchemy/testing/suite/test_reflection.py1503CODE
LOWlib/sqlalchemy/dialects/oracle/base.py2169CODE
LOWlib/sqlalchemy/dialects/mysql/mysqlconnector.py117CODE
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.py593CODE
LOWlib/sqlalchemy/orm/util.py699CODE
LOWlib/sqlalchemy/orm/util.py1052CODE
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.py2366CODE
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.py1295 def _set_memoized_attribute(self, key: str, value: Any) -> None:CODE
LOWlib/sqlalchemy/util/langhelpers.py1821def 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.py618 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.py1029 def _setup_declared_events(self) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1739 def _setup_table(self, table: Optional[FromClause] = None) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1820 def _setup_inheriting_mapper(self) -> None:CODE
LOWlib/sqlalchemy/orm/decl_base.py1853 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.py3149 def _setup_pairs(self) -> None:CODE
LOWlib/sqlalchemy/orm/relationships.py1735 def _setup_registry_dependencies(self) -> None:STRING
LOWlib/sqlalchemy/orm/relationships.py1926 def _setup_entity(self, __argument: Any = None, /) -> None:STRING
LOWlib/sqlalchemy/orm/relationships.py1973 def _setup_join_conditions(self) -> None:STRING
LOWlib/sqlalchemy/orm/relationships.py2038 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.py1249 def _set_syntax_extensions(self, **extensions: SyntaxExtension) -> None:CODE
LOWlib/sqlalchemy/sql/base.py1679 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4313 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4318 def _set_table(self, column: Column[Any], table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py4321 def _set_metadata(self, metadata: MetaData) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py2712 def _setup_on_memoized_fks(self, fn: Callable[..., Any]) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3477 def _set_target_column(self, column: Column[Any]) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3487 def set_type(fk: ForeignKey) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3557 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3568 def _set_remote_table(self, table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3583 def _set_table(self, column: Column[Any], table: Table) -> None:CODE
LOWlib/sqlalchemy/sql/schema.py3678 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:CODE
14 more matches not shown…
Over-Commented Block75 hits · 58 pts
SeverityFileLineSnippetContext
LOWsetup.cfg1COMMENT
LOWtest/profiles.txt1# /home/classic/dev/sqlalchemy/test/profiles.txtCOMMENT
LOWtest/ext/test_mutable.py801 eq_(f1.data, [1, 2])COMMENT
LOWtest/orm/test_utils.py1141COMMENT
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
LOWtest/sql/test_compiler.py7441 stmt,COMMENT
LOWexamples/versioned_history/history_meta.py281COMMENT
LOWlib/sqlalchemy/connectors/pyodbc.py201 cursor: interfaces.DBAPICursor,COMMENT
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.py1221COMMENT
LOWlib/sqlalchemy/ext/__init__.py1# ext/__init__.pyCOMMENT
LOWlib/sqlalchemy/ext/asyncio/base.py181 await self.gen.athrow(value)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.py1521 }:COMMENT
LOWlib/sqlalchemy/dialects/sqlite/base.py2821 def get_check_constraints(self, connection, table_name, schema=None, **kw):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.py1661 # MapperProperty / mapped_column(). Currently thisCOMMENT
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.py1621 # in the case of inheritance, particularly concrete and abstractCOMMENT
LOWlib/sqlalchemy/orm/path_registry.py561 and insp.with_polymorphic_mappersCOMMENT
LOWlib/sqlalchemy/orm/path_registry.py581 # vsCOMMENT
LOWlib/sqlalchemy/orm/path_registry.py701 # know we don't have to do it. This conditional can just as well beCOMMENT
LOWlib/sqlalchemy/orm/path_registry.py721 # (issue #13193): parent mapper inherits from entity.mapperCOMMENT
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/util.py2301 if inner is None:COMMENT
LOWlib/sqlalchemy/orm/mapper.py1801 # polymorphic_on is a Column or SQL expression andCOMMENT
LOWlib/sqlalchemy/orm/mapper.py2641 #COMMENT
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
LOWlib/sqlalchemy/orm/relationships.py1341 #COMMENT
LOWlib/sqlalchemy/engine/_processors_cy.py1# engine/_processors_cy.pyCOMMENT
LOWlib/sqlalchemy/engine/base.py3301 self._proxied = proxiedCOMMENT
LOWlib/sqlalchemy/engine/cursor.py441 # the key lookup map, such as Column objects, labels,COMMENT
15 more matches not shown…
AI Slop Vocabulary35 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUM…orm/declarative/test_dc_transforms_future_anno_sync.py996 """robust tests for the annotation replace/restore feature underSTRING
MEDIUMtest/orm/declarative/test_dc_transforms.py983 """robust tests for the annotation replace/restore feature underSTRING
LOWtest/dialect/postgresql/test_types.py5494 # so lets just use them as suchCOMMENT
LOWtest/dialect/postgresql/test_types.py6043 # 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.py2226 # 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.py671 # 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.py3179 # us to check against, so this is not a robust check, butCOMMENT
LOWlib/sqlalchemy/dialects/oracle/cx_oracle.py1306 # 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.py1815 # No offset provided, so just use the limitCOMMENT
LOWlib/sqlalchemy/orm/decl_base.py991 # 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.py708 # 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.py786 # "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.py4305 # 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.py2437 # 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.py740 eu = EmailUser(name="user1", email_address="foo@bar.com")CODE
LOWtest/orm/test_pickled.py751 eq_(eu2.email_address, "foo@bar.com")CODE
LOWtest/orm/test_expire.py1317 u.addresses = [Address(id=10, email_address="foo@bar.com")]CODE
LOWtest/orm/test_expire.py1327 assert u.addresses[0].email_address == "foo@bar.com"CODE
LOWtest/orm/test_expire.py1375 u.addresses = [Address(id=10, email_address="foo@bar.com")]CODE
LOWtest/orm/test_expire.py1383 assert u.addresses[0].email_address == "foo@bar.com"CODE
LOWtest/orm/test_session.py1763 schema="placeholder",CODE
LOWtest/orm/test_session.py1781 "schema_translate_map": {"placeholder": config.test_schema},CODE
LOWtest/orm/test_session.py1801 schema_translate_map={"placeholder": config.test_schema}CODE
LOWtest/orm/test_session.py1819 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.py217 ("john", "foo@bar.com", 1),CODE
LOWtest/sql/test_resultset.py222 eq_(rows[0].address, "foo@bar.com")CODE
LOWtest/sql/test_resultset.py227 ("john", "foo@bar.com"),CODE
LOWtest/sql/test_resultset.py231 eq_(rows[0].address, "foo@bar.com")CODE
LOWtest/sql/test_resultset.py236 ("john", 1, 1, "foo@bar.com", 1),CODE
LOWtest/sql/test_resultset.py688 dict(address_id=1, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py694 [{"address_id": 1, "user_id": 2, "address": "foo@bar.com"}],CODE
LOWtest/sql/test_resultset.py180 dict(address_id=1, user_id=1, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py181 dict(address_id=2, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py199 dict(address_id=1, user_id=1, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py672 dict(address_id=1, user_id=2, address="foo@bar.com"),CODE
LOWtest/sql/test_resultset.py677 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.py544 "placeholder" value in a SQL expression, the value of which isCODE
LOWlib/sqlalchemy/sql/_elements_constructors.py551 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.py2674 # 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.py5487CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/sqlalchemy/dialects/oracle/provision.py68 # NOTE: make sure you've run "ALTER DATABASE default tablespace users" orCOMMENT