repo
stringclasses
39 values
buggy_commit
stringlengths
40
40
bug_issue
int64
846
144k
solve_pr
int64
1.05k
144k
call_graph
dict
graph_spec
stringlengths
177
4.65k
django/django
06909fe084f87a65459a83bd69d7cdbe4fce9a7c
30,839
11,880
{ "nodes": [ { "id": "django/forms/fields.py::Field::__deepcopy__" } ], "edges": [] }
Field.__deepcopy__ provides deep-copy support for Django form field instances, returning a copied field through Python’s copying protocol. Form fields define validation responsibilities and presentation settings for individual inputs in a form.
django/django
84633905273fc916e3d17883810d9969c03f73c2
30,931
11,999
{ "nodes": [ { "id": "django/db/models/fields/__init__.py::Field::contribute_to_class" } ], "edges": [] }
Django model fields describe aspects of a model’s data and its database representation. Field.contribute_to_class() registers a field with its owning model class, associating the field declaration with the model and its field name.
django/django
58c1acb1d6054dfec29d0f30b1033bae6ef62aec
30,961
12,039
{ "nodes": [ { "id": "django/db/backends/ddl_references.py::Columns::__str__" }, { "id": "django/db/backends/ddl_references.py::IndexColumns::__str__" } ], "edges": [] }
Columns.__str__ and IndexColumns.__str__ provide SQL text representations of table-column references and index-column references, respectively, for deferred database schema statements used during migrations. In this context, columns identify table fields, while index columns identify the fields involved in a database i...
django/django
b93a0e34d9b9b99d41103782b7e7aeabf47517e3
30,971
12,050
{ "nodes": [ { "id": "django/db/models/query_utils.py::FilteredRelation::as_sql" }, { "id": "django/db/models/sql/query.py::Query::build_filter" }, { "id": "django/db/models/sql/query.py::Query::build_filtered_relation_q" }, { "id": "django/db/models/sql/query.py::Q...
These functions support translating Django ORM filtering conditions into SQL, where lookups express database predicates and Q objects represent combined conditions. Query.build_filter constructs an individual filter clause, Query.resolve_lookup_value resolves lookup values in the query context, and Query.build_filtered...
django/django
5573a54d409bb98b5c5acdb308310bed02d392c2
31,031
12,143
{ "nodes": [ { "id": "django/contrib/admin/options.py::ModelAdmin::_get_edited_object_pks" }, { "id": "django/contrib/admin/options.py::ModelAdmin::_get_list_editable_queryset" }, { "id": "django/contrib/admin/options.py::ModelAdmin::changelist_view" } ], "edges": [ {...
For a changelist save that uses `list_editable`, the admin must derive the edited object identifiers only from POST field names matching that formset’s exact prefix, numeric form index, and the model primary-key field, then build the formset from the request-scoped editable queryset restricted to those identifiers. Eac...
django/django
5a68f024987e6d16c2626a31bf653a2edddea579
31,071
12,209
{ "nodes": [ { "id": "django/core/management/commands/loaddata.py::Command::handle" }, { "id": "django/core/management/commands/loaddata.py::Command::loaddata" }, { "id": "django/core/serializers/base.py::DeserializedObject::save" }, { "id": "django/core/serializers...
Fixture loading must run as one atomic operation on the selected database: after confirming fixtures exist, save each permitted object while constraint checks are suspended, defer unresolved forward foreign-key and many-to-many relations until all base objects have been processed, then resolve and persist those relatio...
django/django
69331bb851c34f05bc77e9fc24020fe6908b9cd5
31,128
12,262
{ "nodes": [ { "id": "django/contrib/admin/templatetags/base.py::InclusionAdminNode::__init__" }, { "id": "django/template/library.py::dec::compile_func" }, { "id": "django/template/library.py::parse_bits" } ], "edges": [ { "source": "django/contrib/admin/templa...
Template-tag compilation must turn the token arguments (excluding the tag name) into deferred filter expressions and keyword bindings that match the decorated callable’s Python signature. With `takes_context=True`, the callable must declare `context` as its first parameter, which is supplied implicitly rather than from...
django/django
4c1b401e8250f9f520b3c7dc369554477ce8b15a
31,154
12,304
{ "nodes": [ { "id": "django/db/models/enums.py::ChoicesMeta::__new__" } ], "edges": [] }
ChoicesMeta must construct choice enums with standard Enum semantics while separating each declared member’s concrete value arguments from an optional final human-readable label (a string or lazy translation); the remaining arguments must form the member value, supporting both scalar and multi-argument concrete types. ...
django/django
18759b2209ff556aed7f20d83cbf23e3d234e41c
31,416
12,754
{ "nodes": [ { "id": "django/core/management/commands/makemigrations.py::Command::handle" }, { "id": "django/core/management/commands/migrate.py::Command::handle" }, { "id": "django/db/migrations/autodetector.py::MigrationAutodetector::_detect_changes" }, { "id": "d...
This scope is Django's model-state migration autodetection pipeline: the `makemigrations` and `migrate` command `handle` methods both drive `MigrationAutodetector.changes(graph, trim_to_apps, convert_apps, migration_name)`, so `changes` must return a mapping of app label to an ordered list of `Migration` objects that t...
django/django
fa5e7e46d875d4143510944f19d79df7b1739bab
31,420
12,663
{ "nodes": [ { "id": "django/db/models/sql/query.py::Query::output_field" } ], "edges": [] }
Query.output_field exposes the model field representing a SQL query’s output type within Django’s expression API. This field supplies type information for interpreting database results and for using queries as expressions, including subqueries.
django/django
5b884d45ac5b76234eca614d90c83b347294c332
31,462
12,713
{ "nodes": [ { "id": "django/contrib/admin/options.py::BaseModelAdmin::formfield_for_dbfield" }, { "id": "django/contrib/admin/options.py::BaseModelAdmin::formfield_for_manytomany" } ], "edges": [ { "source": "django/contrib/admin/options.py::BaseModelAdmin::formfield_for_dbf...
These admin hooks connect database model fields to form fields used for editing model data: formfield_for_dbfield provides the general customization point, while formfield_for_manytomany provides the corresponding form field for a ManyToManyField. A many-to-many relationship allows multiple records on each side to rela...
django/django
67f9d076cfc1858b94f9ed6d1a5ce2327dcc8d0d
31,500
12,774
{ "nodes": [ { "id": "django/db/models/query.py::QuerySet::in_bulk" } ], "edges": [] }
QuerySet.in_bulk() retrieves model instances from a database query as a dictionary keyed by unique field values. It supports bulk lookup of ORM objects, connecting database record identifiers with their corresponding model instances.
django/django
d17b380653da5f95885ce53468fe7aac60672841
31,538
12,858
{ "nodes": [ { "id": "django/core/checks/model_checks.py::check_all_models" }, { "id": "django/db/models/base.py::Model::_check_ordering" }, { "id": "django/db/models/base.py::Model::check" } ], "edges": [ { "source": "django/core/checks/model_checks.py::check_a...
The model checks entry point must enumerate every installed model (or only models from the supplied app configurations), preserve the supplied check kwargs when invoking each valid class-level `check()`, aggregate all resulting messages, and also report an invalid override of that class method while continuing global m...
django/django
fbe82f82555bc25dccb476c749ca062f0b522be3
31,596
13,109
{ "nodes": [ { "id": "django/db/models/fields/related.py::ForeignKey::validate" } ], "edges": [] }
ForeignKey.validate provides field-level validation of a foreign-key value in the context of a model instance. A foreign key represents a many-to-one relationship between models, so this method supplies relationship-field validation within Django’s model validation framework.
django/django
437196da9a386bd4cc62b0ce3f2de4aba468613d
31,624
12,965
{ "nodes": [ { "id": "django/db/models/sql/compiler.py::SQLDeleteCompiler::single_alias" } ], "edges": [] }
SQLDeleteCompiler.single_alias characterizes the table-alias scope of a deletion query as part of SQL compilation. Table aliases distinguish table references in SQL, so this property concerns the query’s table references within the deletion compiler.
django/django
a59de6e89e8dc1f3e71c9a5a5bbceb373ea5247e
31,657
13,033
{ "nodes": [ { "id": "django/contrib/admin/templatetags/admin_list.py::date_hierarchy" }, { "id": "django/db/models/query.py::QuerySet::aggregate" }, { "id": "django/db/models/query.py::QuerySet::count" }, { "id": "django/db/models/sql/compiler.py::SQLCompiler::as_s...
Date-hierarchy navigation must derive its initial drill-down level from the current queryset’s minimum and maximum date/datetime values, localizing aware datetimes before comparison, while aggregation and counting validate aggregate inputs, avoid mutating the caller’s query, return named aggregate values, and report ze...
django/django
78ad4b4b0201003792bfdbf1a7781cbc9ee03539
31,664
13,028
{ "nodes": [ { "id": "django/db/models/sql/query.py::Query::build_filter" }, { "id": "django/db/models/sql/query.py::Query::check_filterable" } ], "edges": [ { "source": "django/db/models/sql/query.py::Query::build_filter", "target": "django/db/models/sql/query.py::Quer...
Query.build_filter must turn one valid filter clause into a WHERE node while enforcing filterability whenever that validation is enabled: it must reject a referenced lookup expression and the resolved lookup value if either is unsuitable for WHERE use, before constructing the lookup condition. Query.check_filterable mu...
django/django
27c09043da52ca1f02605bf28600bfd5ace95ae4
31,728
13,089
{ "nodes": [ { "id": "django/core/cache/backends/db.py::DatabaseCache::_base_set" }, { "id": "django/core/cache/backends/db.py::DatabaseCache::_cull" }, { "id": "django/core/cache/backends/db.py::DatabaseCache::add" }, { "id": "django/core/cache/backends/db.py::Data...
DatabaseCache.add(), set(), and touch() must normalize and validate the versioned key, then delegate to a shared write path that uses the configured backend timeout and the write-routed cache table. The shared operation must preserve mode semantics atomically: add creates an entry only when no unexpired entry already o...
django/django
09914ccf688974e068941f55412b930729bafa06
31,742
13,112
{ "nodes": [ { "id": "django/db/models/fields/related.py::ForeignObject::deconstruct" } ], "edges": [] }
ForeignObject.deconstruct() must return the standard field reconstruction 4-tuple from its base field, preserving that tuple’s name, portable import path, positional arguments, and non-default base-field options. It must additionally serialize relationship metadata without evaluating or otherwise transforming it: inclu...
django/django
453967477e3ddae704cd739eac2449c0e13d464c
31,750
13,401
{ "nodes": [ { "id": "django/db/models/fields/__init__.py::Field::__eq__" }, { "id": "django/db/models/fields/__init__.py::Field::__hash__" }, { "id": "django/db/models/fields/__init__.py::Field::__lt__" } ], "edges": [] }
Django’s Field objects describe model fields and their database representation. Field.__eq__ and Field.__lt__ provide equality and ordering comparisons between field objects, while Field.__hash__ supplies a hash value for their use in hash-based collections.
django/django
2d67222472f80f251607ae1b720527afceba06ad
31,755
13,128
{ "nodes": [ { "id": "django/db/models/expressions.py::CombinedExpression::resolve_expression" } ], "edges": [ { "source": "django/db/models/expressions.py::CombinedExpression::resolve_expression", "target": "django/db/models/expressions.py::CombinedExpression::resolve_expression" ...
CombinedExpression.resolve_expression() prepares a combined query expression for inclusion in a database query, using the query context to support preprocessing and validation and returning a resolved copy. Query expressions represent database values or computations; resolving a combined expression also encompasses its...
django/django
7af8f4127397279d19ef7c7899e93018274e2f9b
31,767
13,158
{ "nodes": [ { "id": "django/contrib/admin/options.py::InlineModelAdmin::get_queryset" }, { "id": "django/contrib/admin/options.py::ModelAdmin::_create_formsets" }, { "id": "django/db/models/fields/related_descriptors.py::RelatedManager::_apply_rel_filters" }, { "id...
This scope must preserve QuerySet isolation and semantics: derived queries must retain the applicable filters, database routing/hints, and relationship metadata without mutating the source query; relation managers must return cached prefetched results when available, otherwise constrain results to their bound instance ...
django/django
d08e6f55e3a986a8d4b3a58431d9615c7bc81eaa
31,790
13,195
{ "nodes": [ { "id": "django/contrib/messages/storage/cookie.py::CookieStorage::_store" }, { "id": "django/contrib/messages/storage/cookie.py::CookieStorage::_update_cookie" }, { "id": "django/contrib/sessions/middleware.py::SessionMiddleware::process_response" }, { ...
These functions manage response cookies that support temporary notifications and per-visitor session data across requests. CookieStorage._store persists messages and reports those not stored, while _update_cookie manages the message cookie; SessionMiddleware.process_response coordinates session persistence and session-...
django/django
6e9c5ee88fc948e05b4a7d9f82a8861ed2b0343d
31,864
13,279
{ "nodes": [ { "id": "django/contrib/sessions/backends/base.py::SessionBase::encode" }, { "id": "django/contrib/sessions/backends/db.py::SessionStore::create_model_instance" }, { "id": "django/contrib/sessions/backends/db.py::SessionStore::save" }, { "id": "django/c...
Session persistence must serialize each session dictionary with the configured serializer and a backend-specific signed, optionally compressed representation, so stored data is authenticated and remains decodable by the same store and by concurrently deployed compatible readers sharing the data when SHA-1 is configured...
django/django
e39e727ded673e74016b5d3658d23cbe20234d11
31,928
13,344
{ "nodes": [ { "id": "django/middleware/cache.py::CacheMiddleware::__init__" }, { "id": "django/middleware/cache.py::FetchFromCacheMiddleware::__init__" }, { "id": "django/middleware/cache.py::UpdateCacheMiddleware::__init__" }, { "id": "django/middleware/security.p...
The cache middleware constructors must initialize a coherent cache configuration from the middleware settings—key prefix, cache alias and resolved cache backend, default timeout, and page timeout—so the combined middleware and the paired fetch/update middleware use the same settings-derived identity and backend. The co...
django/django
a6291394256aa758d74eec9ce0cfae8aea6475f2
31,941
13,343
{ "nodes": [ { "id": "django/db/models/fields/files.py::FileField::__init__" }, { "id": "django/db/models/fields/files.py::FileField::deconstruct" } ], "edges": [] }
FileField.__init__ initializes a model field for file uploads using field metadata, upload destination settings, and storage configuration. FileField.deconstruct returns the information needed to recreate that field, supporting its serialization for Django model migrations.
django/django
580a4341cb0b4cbfc215a70afc004875a7e815f4
31,989
13,410
{ "nodes": [ { "id": "django/contrib/staticfiles/storage.py::ManifestFilesMixin::post_process" }, { "id": "django/contrib/staticfiles/storage.py::ManifestFilesMixin::save_manifest" }, { "id": "django/core/cache/backends/filebased.py::FileBasedCache::set" }, { "id": ...
Manifest static-file processing must start from a fresh hash-path mapping, yield the underlying hash/copy and reference-rewrite results (including repeated passes for adjustable files until substitutions stabilize or the configured limit is reported), then—except in dry-run mode—persist exactly the resulting mapping wi...
django/django
71ae1ab0123582cc5bfe0f7d5f4cc19a9412f396
31,990
13,417
{ "nodes": [ { "id": "django/db/models/query.py::QuerySet::ordered" } ], "edges": [] }
QuerySet.ordered is a public introspection property that reports whether a queryset has a defined result ordering. It exposes a boolean status for the ordering associated with a database query, a concept encompassing query-level ordering and model-level default ordering.
django/django
b79088306513d5ed76d31ac40ab3c15f858946ea
32,080
13,512
{ "nodes": [ { "id": "django/contrib/admin/helpers.py::AdminReadonlyField::contents" }, { "id": "django/contrib/admin/utils.py::display_for_field" }, { "id": "django/forms/fields.py::JSONField::prepare_value" } ], "edges": [ { "source": "django/contrib/admin/hel...
AdminReadonlyField.contents supplies display content for non-editable fields in Django’s admin interface, with display_for_field providing field-aware presentation of values. JSONField.prepare_value prepares form values for presentation as JSON, the text-based structured-data format supported by the form field.
django/django
ede9fac75807fe5810df66280a60e7068cc97e4a
32,121
13,568
{ "nodes": [ { "id": "django/contrib/auth/apps.py::AuthConfig::ready" }, { "id": "django/contrib/auth/checks.py::check_user_model" } ], "edges": [ { "source": "django/contrib/auth/apps.py::AuthConfig::ready", "target": "django/contrib/auth/checks.py::check_user_model" ...
AuthConfig.ready is the authentication application’s initialization hook, connecting its startup responsibilities with Django’s system check framework. Within that scope, check_user_model validates the configured user model—the model representing user accounts—against authentication interface requirements and returns d...
django/django
89fc144dedc737a79929231438f035b1d4a993c9
32,158
13,807
{ "nodes": [ { "id": "django/db/backends/sqlite3/base.py::DatabaseWrapper::check_constraints" } ], "edges": [] }
`DatabaseWrapper.check_constraints()` must validate foreign-key integrity for either every database table when `table_names` is omitted or only the supplied tables otherwise. Where SQLite supports `foreign_key_check`, it must interpret each reported violation against that table’s foreign-key definition and identify the...
django/django
0773837e15bb632afffb6848a58c59a791008fa1
32,177
13,658
{ "nodes": [ { "id": "django/core/management/__init__.py::ManagementUtility::execute" }, { "id": "django/core/management/__init__.py::execute_from_command_line" } ], "edges": [ { "source": "django/core/management/__init__.py::execute_from_command_line", "target": "djang...
`execute_from_command_line(argv)` must create a `ManagementUtility` with the supplied argument vector (or its normal default) and invoke `execute()` exactly once. `ManagementUtility.execute()` must treat the first command argument as the subcommand, defaulting to help when absent; process global `--settings` and `--pyt...
django/django
fe886eee36be8022f34cfe59aa61ff1c21fe01d9
32,208
13,794
{ "nodes": [ { "id": "django/utils/functional.py::lazy" }, { "id": "django/utils/translation/__init__.py::lazy_number" } ], "edges": [ { "source": "django/utils/translation/__init__.py::lazy_number", "target": "django/utils/functional.py::lazy" } ] }
`lazy()` must return a promise-like proxy that preserves the call arguments, defers invoking the wrapped callable until the value is consumed through text/bytes conversion, representation, comparison, hashing, arithmetic, or result-type methods, and re-evaluates the callable on each such access rather than caching it; ...
django/django
d746f28949c009251a8741ba03d156964050717f
32,235
13,741
{ "nodes": [ { "id": "django/contrib/auth/forms.py::ReadOnlyPasswordHashField::__init__" } ], "edges": [] }
ReadOnlyPasswordHashField.__init__ initializes a form field for read-only display of password hash information in user-management forms, accepting standard form-field configuration. It supports Django’s authentication model, in which stored password hashes represent credentials without exposing the raw password.
django/django
98ad327864aed8df245fd19ea9d2743279e11643
32,302
13,820
{ "nodes": [ { "id": "django/db/migrations/loader.py::MigrationLoader::__init__" }, { "id": "django/db/migrations/loader.py::MigrationLoader::build_graph" }, { "id": "django/db/migrations/loader.py::MigrationLoader::load_disk" } ], "edges": [ { "source": "django...
Django migrations represent versioned changes to a database schema, with dependencies expressing relationships between migrations. MigrationLoader.__init__ initializes the loader with a database connection and loading options; load_disk loads migration definitions for installed applications, and build_graph combines mi...
django/django
415f50298f97fb17f841a9df38d995ccf347dfcc
32,314
13,837
{ "nodes": [ { "id": "django/core/management/commands/runserver.py::Command::handle" }, { "id": "django/core/management/commands/runserver.py::Command::run" }, { "id": "django/utils/autoreload.py::get_child_arguments" }, { "id": "django/utils/autoreload.py::restart_...
`runserver` must reject unsafe or invalid startup configuration, resolve the requested address/port and IPv6 state (including bracketed IPv6 display semantics), then either run the server directly when reloading is disabled or delegate the same invocation options to the autoreloader. The autoreloader must distinguish i...
django/django
f39634ff229887bf7790c069d0c411b38494ca38
32,332
13,964
{ "nodes": [ { "id": "django/db/models/base.py::Model::_prepare_related_fields_for_save" }, { "id": "django/db/models/base.py::Model::save" }, { "id": "django/db/models/query.py::QuerySet::_prepare_for_bulk_create" }, { "id": "django/db/models/query.py::QuerySet::bu...
Django models represent database records, with relationship fields expressing links between records. Model.save persists an individual instance, while QuerySet.bulk_create inserts a collection of instances; _prepare_for_bulk_create prepares objects for bulk insertion, and _prepare_related_fields_for_save provides relat...
django/django
0c42cdf0d2422f4c080e93594d5d15381d6e955e
32,367
13,925
{ "nodes": [ { "id": "django/core/checks/model_checks.py::check_all_models" }, { "id": "django/db/models/base.py::Model::_check_default_pk" }, { "id": "django/db/models/base.py::Model::check" } ], "edges": [ { "source": "django/core/checks/model_checks.py::check...
These functions support Django’s system check framework for statically validating model definitions and reporting diagnostic messages: check_all_models coordinates model checks across the application scope, while Model.check provides model-level validation. Model._check_default_pk addresses configuration of automatical...
django/django
619f26d2895d121854b1bed1b535d42b722e2eba
32,442
14,007
{ "nodes": [ { "id": "django/db/models/sql/compiler.py::SQLInsertCompiler::execute_sql" } ], "edges": [] }
SQLInsertCompiler.execute_sql performs database insertion for Django’s object-relational mapping layer, where model data corresponds to records in database tables. Its role is to execute an insert query and provide returned model-field values to the caller as part of persisting new records.
django/django
466920f6d726eee90d5566e0a9948e92b33a122e
32,455
14,017
{ "nodes": [ { "id": "django/db/models/query_utils.py::Q::__and__" }, { "id": "django/db/models/query_utils.py::Q::__or__" }, { "id": "django/db/models/query_utils.py::Q::_combine" } ], "edges": [ { "source": "django/db/models/query_utils.py::Q::__and__", ...
Q objects represent reusable SQL conditions for database queries. Q.__and__ and Q.__or__ compose these conditions through logical AND and OR, producing combined Q objects; Q._combine provides the shared composition role within this scope.
django/django
bc04941bf811d1ea2c79fb7fc20457ed2c7e3410
32,546
14,122
{ "nodes": [ { "id": "django/db/models/sql/compiler.py::SQLCompiler::as_sql" }, { "id": "django/db/models/sql/compiler.py::SQLCompiler::get_combinator_sql" }, { "id": "django/db/models/sql/compiler.py::SQLCompiler::get_group_by" }, { "id": "django/db/models/sql/comp...
SQL compilation must first establish a consistent select list, ordering, WHERE/HAVING split, any DISTINCT-required ordering selects, and a GROUP BY derived from the query’s minimum grouping plus relevant select, ordering, and HAVING expressions; grouping SQL must be formatted and deduplicated with its parameters preser...
django/django
45814af6197cfd8f4dc72ee43b90ecde305a1d5a
32,548
14,140
{ "nodes": [ { "id": "django/db/models/query_utils.py::Q::__and__" }, { "id": "django/db/models/query_utils.py::Q::__or__" }, { "id": "django/db/models/query_utils.py::Q::_combine" }, { "id": "django/db/models/query_utils.py::Q::deconstruct" } ], "edges": [ ...
Q objects represent reusable SQL conditions for database operations. Within this scope, __and__ and __or__ provide logical conjunction and disjunction, supported by _combine to compose conditions into Q objects; deconstruct provides reconstruction information for Django’s object serialization.
django/django
6efc35b4fe3009666e56a60af0675d7d532bf4ff
32,573
14,170
{ "nodes": [ { "id": "django/db/backends/base/operations.py::BaseDatabaseOperations::year_lookup_bounds_for_date_field" }, { "id": "django/db/backends/base/operations.py::BaseDatabaseOperations::year_lookup_bounds_for_datetime_field" }, { "id": "django/db/models/lookups.py::YearL...
These functions support Django ORM year-based filtering of date and datetime fields, covering calendar years and ISO 8601 week-numbering years. The two BaseDatabaseOperations methods provide temporal bounds for their respective field categories, while YearLookup.year_lookup_bounds supplies bounds within the lookup cont...
django/django
5a8e8f80bb82a867eab7e4d9d099f21d0a976d22
32,669
14,311
{ "nodes": [ { "id": "django/core/management/commands/runserver.py::Command::handle" }, { "id": "django/core/management/commands/runserver.py::Command::run" }, { "id": "django/utils/autoreload.py::get_child_arguments" }, { "id": "django/utils/autoreload.py::restart_...
The development-server command must reject unsafe or invalid startup configuration, normalize the requested host, port, and IPv6 mode (including appropriate defaults), and then either run directly when reloading is disabled or delegate the same server-start callback and options to the reloader. Reloading must separate ...
django/django
187118203197801c6cb72dc8b06b714b23b6dd3d
32,687
14,315
{ "nodes": [ { "id": "django/core/management/commands/dbshell.py::Command::handle" }, { "id": "django/db/backends/base/client.py::BaseDatabaseClient::runshell" }, { "id": "django/db/backends/postgresql/client.py::DatabaseClient::settings_to_cmd_args_env" } ], "edges": [ ...
The dbshell command must select the requested database connection and delegate all trailing parameters unchanged to its client shell. The client must translate PostgreSQL settings into a `psql` invocation, placing configured user, host, port, and database arguments before user-supplied parameters; when neither a databa...
django/django
06fd4df41afb5aa1d681b853c3c08d8c688ca3a5
32,690
14,351
{ "nodes": [ { "id": "django/db/models/lookups.py::In::get_group_by_cols" } ], "edges": [] }
In.get_group_by_cols() identifies the column references contributed by a membership lookup expression for SQL GROUP BY construction. It participates in Django’s expression interface for grouping, which organizes query rows into groups for aggregation.
django/django
a708f39ce67af174df90c5b5e50ad1976cec7cb8
32,713
14,349
{ "nodes": [ { "id": "django/core/validators.py::URLValidator::__call__" } ], "edges": [ { "source": "django/core/validators.py::URLValidator::__call__", "target": "django/core/validators.py::URLValidator::__call__" } ] }
URLValidator.__call__ accepts only string URLs with no tab, carriage-return, or newline characters and with a scheme permitted by the validator, treating scheme matching case-insensitively. It must reject malformed URLs with the configured ValidationError message, code, and original value, while accepting syntactically...
django/django
7272e1963ffdf39c1d4fe225d5425a45dd095d11
32,716
14,493
{ "nodes": [ { "id": "django/contrib/staticfiles/management/commands/collectstatic.py::Command::collect" }, { "id": "django/contrib/staticfiles/management/commands/collectstatic.py::Command::handle" }, { "id": "django/contrib/staticfiles/storage.py::HashedFilesMixin::post_process...
The command must initialize its requested collection mode, warn and require affirmative confirmation before a potentially overwriting or clearing run when interaction is enabled, and then collect each discovered static path exactly once, preserving finder precedence by retaining the first source for duplicate destinati...
django/django
de32fe83a2e4a20887972c69a0693b94eb25a88b
32,754
14,404
{ "nodes": [ { "id": "django/contrib/admin/sites.py::AdminSite::catch_all_view" } ], "edges": [] }
AdminSite.catch_all_view is the terminal handler for otherwise-unmatched admin paths: it must raise Http404 by default. Only when APPEND_SLASH is enabled and the captured URL lacks a trailing slash may it resolve the request path with one slash appended, using the request-specific URLconf when present. If that resolves...
django/django
5e04e84d67da8163f365e9f5fcd169e2630e2873
32,777
14,434
{ "nodes": [ { "id": "django/contrib/gis/db/backends/spatialite/schema.py::SpatialiteSchemaEditor::remove_field" }, { "id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::_create_unique_sql" }, { "id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::a...
Schema changes in this scope must leave the database representing the target model definition while preserving applicable data, relationships, indexes, and constraints. Table creation must emit usable column definitions and model constraints, defer dependent unique, foreign-key, and index SQL until its referenced table...
django/django
36fa071d6ebd18a61c4d7f1b5c9d17106134bd44
32,893
14,580
{ "nodes": [ { "id": "django/db/migrations/serializer.py::TypeSerializer::serialize" } ], "edges": [] }
TypeSerializer.serialize represents Python type and class references as Python source text for Django migration files, together with any required imports. This supports migrations’ role in preserving historical model definitions in executable Python form.
django/django
84400d2e9db7c51fee4e9bb04c028f665b8e7624
32,920
14,631
{ "nodes": [ { "id": "django/forms/forms.py::BaseForm::_clean_fields" }, { "id": "django/forms/forms.py::BaseForm::errors" }, { "id": "django/forms/forms.py::BaseForm::full_clean" } ], "edges": [ { "source": "django/forms/forms.py::BaseForm::errors", "targ...
Accessing errors must lazily run validation once when no error state exists, then return the cached ErrorDict. Full cleaning must reset errors, leave an unbound form without field cleaning, and initialize cleaned_data for bound forms; an unchanged form permitted to be empty must bypass validation. Otherwise, fields are...
django/django
d89f976bddb49fb168334960acc8979c3de991fa
32,992
14,792
{ "nodes": [ { "id": "django/db/models/functions/datetime.py::Extract::as_sql" }, { "id": "django/db/models/functions/datetime.py::TimezoneMixin::get_tzname" }, { "id": "django/db/models/functions/datetime.py::TruncBase::as_sql" }, { "id": "django/db/models/function...
The scoped SQL methods compile temporal expressions into SQL fragments and query parameters for extracting numeric components, truncating temporal precision for filtering or aggregation, and casting datetime expressions to dates or times. The scoped timezone helpers supply textual timezone identifiers, including names ...
django/django
4884a87e022056eda10534c13d74e49b8cdda632
33,027
14,771
{ "nodes": [ { "id": "django/core/management/commands/runserver.py::Command::handle" }, { "id": "django/core/management/commands/runserver.py::Command::run" }, { "id": "django/utils/autoreload.py::get_child_arguments" }, { "id": "django/utils/autoreload.py::restart_...
These functions coordinate Django’s lightweight development web server: Command.handle provides the command entry point, and Command.run manages server execution with automatic reloading support. Automatic reloading lets code changes take effect during development; run_with_reloader coordinates execution of a supplied ...
django/django
004b4620f6f4ad87261e149898940f2dcd5757ef
33,043
14,787
{ "nodes": [ { "id": "django/utils/decorators.py::_multi_decorate::_wrapper" } ], "edges": [] }
The scoped wrapper supports applying function decorators to instance methods in Django, including methods of class-based views. It serves as the callable adapter for a decorated method, accepting method-call arguments and returning the decorated call’s result; this bridges the distinction between standalone functions a...
django/django
dab48b7482295956973879d15bfd4d3bb0718772
33,187
15,037
{ "nodes": [ { "id": "django/core/management/commands/inspectdb.py::Command::handle" }, { "id": "django/core/management/commands/inspectdb.py::Command::handle_inspection" } ], "edges": [ { "source": "django/core/management/commands/inspectdb.py::Command::handle", "targe...
These functions support the inspectdb management command, which examines an existing database schema and produces a Django model module to help integrate that database with Django. Django models represent database tables and their fields in Python; handle provides the command entry point and output responsibility, whil...
django/django
a754b82dac511475b6276039471ccd17cc64aeb8
33,201
14,999
{ "nodes": [ { "id": "django/db/migrations/operations/models.py::RenameModel::database_backwards" }, { "id": "django/db/migrations/operations/models.py::RenameModel::database_forwards" } ], "edges": [ { "source": "django/db/migrations/operations/models.py::RenameModel::databa...
A model rename must run database schema changes only when the destination model is allowed on the active database alias, and it must be a no-op when the old and new models use the same physical table. Otherwise it must rename the model table, retarget every relation that pointed at the old model using the corresponding...
django/django
a7e7043c8746933dafce652507d3b821801cdc7d
33,305
15,104
{ "nodes": [ { "id": "django/core/management/commands/makemigrations.py::Command::handle" }, { "id": "django/core/management/commands/migrate.py::Command::handle" }, { "id": "django/db/migrations/autodetector.py::MigrationAutodetector::_detect_changes" }, { "id": "d...
The scoped flow must compare the migration loader’s project state with the installed-app model state and produce dependency-ordered, graph-compatible migration plans; `makemigrations` must use that result for the requested apps (including conversion to initial migrations when requested), report no changes when empty, a...
django/django
cb383753c0e0eb52306e1024d32a782549c27e61
33,319
15,128
{ "nodes": [ { "id": "django/db/models/query.py::QuerySet::__or__" }, { "id": "django/db/models/sql/query.py::Query::bump_prefix" }, { "id": "django/db/models/sql/query.py::Query::combine" } ], "edges": [ { "source": "django/db/models/query.py::QuerySet::__or__"...
`QuerySet.__or__` must produce a compatible, independent queryset whose result set is the logical union of the operands: reject already-combined querysets and incompatible projected value selections, preserve either operand unchanged when the other is empty, retain known related-object state from both, and express slic...
django/django
30613d6a748fce18919ff8b0da166d9fda2ed9bc
33,406
15,277
{ "nodes": [ { "id": "django/db/models/fields/__init__.py::CharField::__init__" } ], "edges": [] }
CharField.__init__ initializes a Django model field for string data using field configuration options. In Django’s model API, a CharField describes a text-valued database attribute, with configuration covering character length and database collation.
django/django
03a648811615cb623affc2d79dccd4b05919319e
33,408
15,278
{ "nodes": [ { "id": "django/db/backends/sqlite3/schema.py::DatabaseSchemaEditor::add_field" } ], "edges": [ { "source": "django/db/backends/sqlite3/schema.py::DatabaseSchemaEditor::add_field", "target": "django/db/backends/sqlite3/schema.py::DatabaseSchemaEditor::add_field" } ...
DatabaseSchemaEditor.add_field provides SQLite’s schema-editing operation for adding a field to a Django model’s database representation, using the model and field definitions. Within Django’s migration infrastructure, it translates model-level field additions into database schema changes encompassing columns, relation...
django/django
694cf458f16b8d340a3195244196980b2dec34fd
33,413
15,629
{ "nodes": [ { "id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::_alter_field" }, { "id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::alter_field" }, { "id": "django/db/backends/sqlite3/schema.py::DatabaseSchemaEditor::_alter_field" }, ...
These functions support database schema changes for Django model fields: the forward and backward methods of AlterField and RenameField apply and reverse field-definition and naming changes using migration model states. The base schema editor’s alter_field and the base and SQLite _alter_field methods translate field ch...
django/django
652c68ffeebd510a6f59e1b56b3e007d07683ad8
33,441
15,315
{ "nodes": [ { "id": "django/db/models/fields/__init__.py::Field::__hash__" } ], "edges": [] }
Field.__hash__ provides Python’s hashing interface for Django model field objects, returning an integer hash for use in hash-based collections. These objects represent database table columns within Django’s model API.
django/django
e972620ada4f9ed7bc57f28e133e85c85b0a7b20
33,463
15,368
{ "nodes": [ { "id": "django/db/models/query.py::QuerySet::bulk_update" } ], "edges": [] }
`QuerySet.bulk_update()` must efficiently persist the named field values from a supplied iterable of already-identified model instances, returning the total number of database rows affected. It must reject an empty field list, negative batch sizes, objects without primary keys, and fields that are non-concrete, many-to...
django/django
67db54a5a7e0f1c2aa395e1db51214d09ae41f3f
33,468
15,375
{ "nodes": [ { "id": "django/db/models/aggregates.py::Aggregate::resolve_expression" } ], "edges": [] }
Aggregate.resolve_expression() prepares an aggregate expression for inclusion in a Django database query, within the expression API’s preprocessing and validation contract. Aggregates represent summary computations over collections of objects; this method accepts query context and returns a resolved copy of the express...
django/django
6991880109e35c879b71b7d9d9c154baeec12b89
33,471
15,561
{ "nodes": [ { "id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::_field_should_be_altered" }, { "id": "django/db/backends/base/schema.py::BaseDatabaseSchemaEditor::alter_field" }, { "id": "django/db/backends/sqlite3/schema.py::DatabaseSchemaEditor::alter_field" ...
These functions support applying and reversing Django migrations that alter field definitions or rename fields and models, connecting model-state changes to database-schema changes. The base and SQLite schema editors accept model and old/new field definitions to perform field alterations, while the field-comparison met...
django/django
770d3e6a4ce8e0a91a9e27156036c1985e74d4a3
33,482
15,382
{ "nodes": [ { "id": "django/db/models/expressions.py::Exists::as_sql" } ], "edges": [] }
Exists.as_sql compiles an ORM Exists expression into SQL and associated query parameters for inclusion in a database query. It uses the query compiler and database connection context to represent a subquery existence check.
django/django
fbacaa58ffc5a62456ee68b90efa13957f761ce4
33,582
15,525
{ "nodes": [ { "id": "django/core/serializers/base.py::build_instance" }, { "id": "django/core/serializers/python.py::Deserializer" }, { "id": "django/core/serializers/xml_serializer.py::Deserializer::__next__" }, { "id": "django/core/serializers/xml_serializer.py::...
The Python and XML deserializers must produce one `DeserializedObject` per valid serialized object, converting its declared primary key and ordinary fields to model-native values, retaining resolved many-to-many values separately, and retaining unresolved forward natural relations for deferred handling. XML iteration m...
django/django
59ab3fd0e9e606d7f0f7ca26609c06ee679ece97
33,598
15,554
{ "nodes": [ { "id": "django/contrib/admin/filters.py::AllValuesFieldListFilter::__init__" }, { "id": "django/db/models/expressions.py::F::resolve_expression" }, { "id": "django/db/models/query.py::QuerySet::__or__" }, { "id": "django/db/models/query.py::QuerySet::_...
This scope must preserve coherent ORM query construction from field references through SQL generation: `values()`/`values_list()` must produce cloned querysets with the requested projection and iterable shape, reject incompatible `flat`/`named` usage, and keep projections, annotations, extras, and grouping references c...
django/django
9ffd4eae2ce7a7100c98f681e2b6ab818df384a4
33,618
15,563
{ "nodes": [ { "id": "django/db/models/sql/compiler.py::SQLUpdateCompiler::pre_sql_setup" }, { "id": "django/db/models/sql/subqueries.py::UpdateQuery::get_related_updates" } ], "edges": [] }
SQLUpdateCompiler.pre_sql_setup prepares an update query for portable SQL execution, while UpdateQuery.get_related_updates provides query objects for updates to ancestor models. These responsibilities support Django’s multi-table inheritance, where models in an inheritance hierarchy have separate database tables and an...
django/django
0b31e024873681e187b574fe1c4afe5e48aeeecf
33,628
15,572
{ "nodes": [ { "id": "django/template/autoreload.py::get_template_directories" }, { "id": "django/template/autoreload.py::template_changed" }, { "id": "django/template/autoreload.py::watch_for_template_changes" } ], "edges": [ { "source": "django/template/autore...
These functions connect Django’s template system to development autoreloading: get_template_directories identifies template source directories, watch_for_template_changes registers template monitoring, and template_changed serves as the handler for file-change notifications. Template directories provide the locations w...
django/django
647480166bfe7532e8c471fef0146e3a17e6c0c9
33,710
15,695
{ "nodes": [ { "id": "django/db/migrations/operations/models.py::RenameIndex::database_forwards" } ], "edges": [] }
RenameIndex.database_forwards applies the forward database-schema change for a migration that renames an index on a model’s database table. It receives application context, a schema editor, and the model states before and after the migration; its responsibility is to apply the index name change to the live database.
django/django
93cedc82f29076c824d476354527af1150888e4f
33,733
15,731
{ "nodes": [ { "id": "django/db/models/manager.py::BaseManager._get_queryset_methods.<locals>.create_method" }, { "id": "django/db/models/manager.py::BaseManager::_get_queryset_methods" }, { "id": "django/db/models/manager.py::BaseManager::from_queryset" }, { "id": ...
The scope defines how queryset methods become manager methods. `_get_queryset_methods(queryset_class)` must return a name-to-callable mapping built from the queryset class's function members, and normal usage via `from_queryset` must leave the receiving manager class itself unmutated, returning instead a new subclass t...
django/django
8c0886b068ba4e224dd78104b93c9638b860b398
33,748
15,741
{ "nodes": [ { "id": "django/contrib/humanize/templatetags/humanize.py::naturalday" }, { "id": "django/forms/widgets.py::DateTimeBaseInput::format_value" }, { "id": "django/template/defaultfilters.py::date" }, { "id": "django/template/defaultfilters.py::time" },...
Date and time presentation must consistently resolve an explicitly requested format or the appropriate named default through the active localization policy: localized format modules take precedence when enabled, settings provide the fallback, cached results remain distinguished by format type and language, and localize...
django/django
5eb6a2b33d70b9889e1cafa12594ad6f80773d3a
33,816
15,814
{ "nodes": [ { "id": "django/db/models/sql/compiler.py::SQLCompiler::as_sql" }, { "id": "django/db/models/sql/compiler.py::SQLCompiler::deferred_to_columns" }, { "id": "django/db/models/sql/compiler.py::SQLCompiler::get_combinator_sql" }, { "id": "django/db/models/s...
The compiler must derive a stable SELECT layout before SQL generation, ensuring a base alias exists and retaining enough model/column-position metadata to instantiate the base object and any selected related objects. Deferred or explicit field loading must be converted into per-concrete-model attname sets: unrestricted...
django/django
b4817d20b9e55df30be0b1b2ca8c8bb6d61aab07
33,854
15,851
{ "nodes": [ { "id": "django/db/backends/postgresql/client.py::DatabaseClient::settings_to_cmd_args_env" } ], "edges": [] }
DatabaseClient.settings_to_cmd_args_env prepares command-line arguments and environment settings for PostgreSQL’s psql client from Django database settings and client parameters. It supports Django’s database-shell integration, connecting application database configuration to the native PostgreSQL command-line interfac...
django/django
63884829acd207404f2a5c3cc1d6b4cd0a822b70
33,895
15,930
{ "nodes": [ { "id": "django/db/models/expressions.py::When::as_sql" } ], "edges": [] }
When.as_sql translates a condition-and-result component of a Django ORM conditional expression into an SQL fragment and associated query parameters, using the query compiler and database connection context. This supports expressing conditional logic within database queries.
django/django
e9fd2b572410b1236da0d3d0933014138d89f44e
33,949
15,987
{ "nodes": [ { "id": "django/core/management/commands/loaddata.py::Command::fixture_dirs" } ], "edges": [] }
`fixture_dirs` must lazily compute and cache an ordered search path: existing `fixtures` subdirectories for installed apps (limited to the selected app when `app_label` is set), followed by all configured `FIXTURE_DIRS`, then the current directory. It must reject duplicate configured entries and reject any configured e...
django/django
0c3981eb5094419fe200eb46c71b5376a2266166
33,975
16,032
{ "nodes": [ { "id": "django/db/models/fields/related_lookups.py::RelatedIn::get_prep_lookup" }, { "id": "django/db/models/query.py::QuerySet::_values" }, { "id": "django/db/models/query.py::QuerySet::values" }, { "id": "django/db/models/sql/compiler.py::SQLCompiler...
Projection state is explicit: `values()` must clone the queryset, retain any supplied expressions as annotations, select the requested fields, extras, and annotations with the values iterable, and mark the query as having an explicit select list. Setting that list must disable related/deferred loading, keep selection m...
django/django
93d4c9ea1de24eb391cb2b3561b6703fd46374df
34,068
16,145
{ "nodes": [ { "id": "django/core/management/commands/runserver.py::Command::handle" }, { "id": "django/core/management/commands/runserver.py::Command::inner_run" }, { "id": "django/core/management/commands/runserver.py::Command::run" } ], "edges": [ { "source":...
The development-server command must reject unsafe host configuration, unavailable or invalid IPv6 usage, and malformed address/port input before startup; otherwise it must derive a valid bind address and port, defaulting to 127.0.0.1:8000 (or ::1 when IPv6 is selected), treating bracketed IPv6 correctly and 0 as the al...
django/django
76e37513e22f4d9a01c7f15eee36fe44388e6670
34,139
16,256
{ "nodes": [ { "id": "django/contrib/contenttypes/fields.py::create_generic_related_manager" }, { "id": "django/db/models/fields/related_descriptors.py::create_forward_many_to_many_manager" }, { "id": "django/db/models/fields/related_descriptors.py::create_reverse_many_to_one_man...
These factories take a base manager class and relationship metadata and produce specialized Django manager classes for accessing and managing collections of related model objects. create_generic_related_manager supports reverse generic relationships, whose references can target different model classes; create_forward_m...
django/django
7d5329852f19c6ae78c6f6f3d3e41835377bf295
34,171
16,315
{ "nodes": [ { "id": "django/db/models/query.py::QuerySet::bulk_create" }, { "id": "django/db/models/sql/compiler.py::SQLInsertCompiler::as_sql" } ], "edges": [] }
`QuerySet.bulk_create()` must validate its inputs and backend-supported conflict policy, reject multi-table inheritance, prepare related objects, and perform the insertion atomically in backend-sized batches without invoking per-object save signals. It must preserve object grouping by whether a primary key is already p...
django/django
60a7bd89860e504c0c33b02c78edcac87f6d1b5a
34,187
16,333
{ "nodes": [ { "id": "django/contrib/auth/forms.py::UserCreationForm::save" }, { "id": "django/contrib/contenttypes/forms.py::BaseGenericInlineFormSet::save_new" }, { "id": "django/views/generic/edit.py::ModelFormMixin::form_valid" }, { "id": "django/views/generic/e...
Saving through this scope must preserve each form’s persistence contract: a user-creation form derives the stored credential from the validated password rather than retaining its raw value, saves the user and pending many-to-many relations only when `commit=True`, and still returns the populated unsaved user when defer...
django/django
39f83765e12b0e5d260b7939fc3fe281d879b279
34,272
16,485
{ "nodes": [ { "id": "django/template/defaultfilters.py::floatformat" } ], "edges": [] }
`floatformat` must convert a numeric input to a localized, safe display string using decimal half-up rounding. With a nonnegative precision it must show exactly that many fractional digits; with a negative precision (including the default −1) it must suppress the fractional part when the value is integral, while otherw...
django/django
bd366ca2aeffa869b7dbc0b0aa01caea75e6dc31
34,301
16,527
{ "nodes": [ { "id": "django/contrib/admin/templatetags/admin_modify.py::submit_row" } ], "edges": [] }
The `submit_row` function supports displaying the save and delete controls on Django admin forms, using the template context to provide presentation information. These controls support the admin’s model-record editing workflow, allowing users to save changes or access deletion.
django/django
f9fe062de5fc0896d6bbbf3f260b5c44473b3c77
34,366
16,595
{ "nodes": [ { "id": "django/db/migrations/operations/fields.py::AlterField::reduce" } ], "edges": [] }
AlterField.reduce participates in optimizing Django migrations, which represent changes to model and database schemas, for an operation that changes an existing field’s definition. Given another migration operation and application context, it provides replacement operations or a boolean optimization indication, support...
django/django
55bcbd8d172b689811fae17cde2f09218dd74e9c
34,377
16,612
{ "nodes": [ { "id": "django/contrib/admin/sites.py::AdminSite::catch_all_view" } ], "edges": [] }
AdminSite.catch_all_view serves as the admin site's fallback web view, accepting an HTTP request and URL to provide a response within the admin URL namespace. Its documented role supports the admin site's authentication boundary and helps protect the privacy of which models are exposed through the administration interf...
django/django
9b224579875e30203d079cc2fee83b116d98eb78
34,384
16,631
{ "nodes": [ { "id": "django/contrib/auth/__init__.py::get_user" }, { "id": "django/contrib/auth/middleware.py::AuthenticationMiddleware::process_request" }, { "id": "django/contrib/auth/middleware.py::get_user" }, { "id": "django/utils/decorators.py::_decorator::_w...
These functions connect session-based authentication to Django web requests: the authentication and middleware user accessors retrieve the user associated with a request’s session, while AuthenticationMiddleware.process_request exposes the current user on the request. The view wrapper supports applying middleware funct...
django/django
fbe850106b2e4b85f838219cb9e1df95fba6c164
34,405
16,642
{ "nodes": [ { "id": "django/http/response.py::FileResponse::_set_streaming_content" }, { "id": "django/http/response.py::FileResponse::set_headers" } ], "edges": [ { "source": "django/http/response.py::FileResponse::_set_streaming_content", "target": "django/http/respo...
FileResponse must treat readable file-like content as a managed, block-wise byte stream, retain it for file-serving, arrange for its close method to run with response cleanup, and configure headers before streaming begins; non-file iterables must retain normal streaming-response behavior without file metadata. Header g...
django/django
02c356f2f3945b8075735d485c3cf48cad991011
34,424
16,667
{ "nodes": [ { "id": "django/forms/widgets.py::SelectDateWidget::value_from_datadict" } ], "edges": [] }
SelectDateWidget.value_from_datadict extracts the widget’s date value from submitted form data for use in form processing. It connects a date input presented as separate month, day, and year selection controls to Django’s interface for retrieving a single widget value.
django/django
3b62d8c83e3e48d2ed61cfa32a61c56d9e030293
34,517
16,801
{ "nodes": [ { "id": "django/db/models/fields/files.py::ImageField::contribute_to_class" } ], "edges": [] }
ImageField.contribute_to_class registers an image field with its owning Django model class under the supplied field name. It serves as the model integration hook for a field representing image files and their associated width and height metadata.
django/django
7d96ce68ae2c1bab1f2ab64ddc2b2c6004278af0
34,620
16,938
{ "nodes": [ { "id": "django/core/serializers/python.py::Serializer::handle_m2m_field" }, { "id": "django/core/serializers/xml_serializer.py::Serializer::handle_m2m_field" } ], "edges": [] }
These functions handle serialization of Django model many-to-many fields, which represent associations between multiple model instances on both sides of a relationship. Given a model instance and field, the Python serializer contributes the relationship’s representation to basic Python output, while the XML serializer ...
django/django
f8c43aca467b7b0c4bb0a7fa41362f90b610b8df
34,717
17,084
{ "nodes": [ { "id": "django/contrib/admin/filters.py::BooleanFieldListFilter::choices" }, { "id": "django/contrib/admin/filters.py::ChoicesFieldListFilter::choices" }, { "id": "django/contrib/admin/filters.py::DateFieldListFilter::choices" }, { "id": "django/contri...
Each admin list-filter `choices()` node must yield a stable, ordered stream of choice mappings carrying `selected`, `query_string`, and a human-readable `display`; the set of choices is derived from the filter's own configured choices/links, and only when `changelist.add_facets` is truthy may display text be augmented ...
duckdb/duckdb
668f94740b280bf44c7c081df664ae1eb310c090
25,298
25,552
{ "nodes": [ { "id": "src/function/cast/string_cast.cpp::StringToNestedTypeCast" } ], "edges": [] }
`StringToNestedTypeCast` is the bound cast functor from VARCHAR into a nested target (LIST, ARRAY, STRUCT/TUPLE, MAP); it is templated on a target-shape helper whose `StringToNestedTypeCastLoop` does the per-row parsing and recursive child casting. It must require a VARCHAR source (asserted) and dispatch on the source ...
duckdb/duckdb
6d7abb1090e1079f252b15ba0366310bb87d8582
25,304
25,303
{ "nodes": [ { "id": "src/catalog/catalog_entry/duck_table_entry.cpp::DuckTableEntry::Rollback" }, { "id": "src/execution/operator/schema/physical_create_index.cpp::PhysicalCreateIndex::Sink" }, { "id": "src/execution/physical_plan/plan_create_index.cpp::PhysicalPlanGenerator::Cr...
`ALTER TABLE ... ADD` of an index-based (UNIQUE or PRIMARY KEY) constraint must behave as one atomic operation that both builds a physical index and adds the catalog constraint, staying consistent through binding, planning, execution, commit, WAL journaling/replay, and rollback. Binding must resolve the altered entry, ...
duckdb/duckdb
79469d161a61de178d8cae745c901cbc9ba3cc15
25,368
25,369
{ "nodes": [ { "id": "src/function/cast/union_casts.cpp::UnionMemberToMemberCast" }, { "id": "src/function/cast/union_casts.cpp::duckdb::ToUnionCast" }, { "id": "src/function/cast/union_casts.cpp::duckdb::UnionToVarcharCast" } ], "edges": [ { "source": "src/func...
This scope covers casting values into and out of DuckDB UNION types. `ToUnionCast` is the entry point for casts whose result type is a UNION: it must dispatch on `UnionMemberBoundCastData::is_member_to_member`, routing member-to-member mappings to `UnionMemberToMemberCast` and scalar-member promotion to `ToUnionMemberC...
duckdb/duckdb
10de9573794001c649621013bdd93553b54e00c9
25,373
25,673
{ "nodes": [ { "id": "src/optimizer/filter_pushdown.cpp::FilterPushdown::FinishPushdown" }, { "id": "src/optimizer/filter_pushdown.cpp::FilterPushdown::PushFiltersIntoDelimJoin" }, { "id": "src/optimizer/filter_pushdown.cpp::FilterPushdown::PushdownJoin" }, { "id": ...
FilterPushdown is a logical-plan rewrite that moves predicates as far down toward the scans as semantics allow; its three entry points (Optimizer::RunBuiltInOptimizers, FilterStatisticsOptimizer::Optimize when statistics propagation changed filter bindings, and PartitionedExecutionSplitPipeline after deep-copying a pla...
duckdb/duckdb
6d7abb1090e1079f252b15ba0366310bb87d8582
25,384
25,385
{ "nodes": [ { "id": "src/execution/index/unbound_index.cpp::UnboundIndex::Bind" }, { "id": "src/execution/index/unbound_index.cpp::UnboundIndex::ResetStorage" } ], "edges": [] }
Scope covers the two public entry points of UnboundIndex, an index reconstructed from serialized metadata before it is bound to a live implementation. UnboundIndex::ResetStorage must reclaim the index's persistent storage exactly once: it may only mark blocks from storage_info.allocator_infos as modified through the in...
duckdb/duckdb
c2f5210946d0826d2cca527079e59177006bd6a7
25,388
25,387
{ "nodes": [ { "id": "src/execution/operator/persistent/physical_batch_insert.cpp::PhysicalBatchInsert::Sink" }, { "id": "src/execution/operator/persistent/physical_insert.cpp::PhysicalInsert::Finalize" }, { "id": "src/execution/operator/persistent/physical_insert.cpp::PhysicalIn...
This scope governs how row-producing operators (PhysicalInsert, PhysicalBatchInsert, PhysicalUpdate) get rows safely appended to a DataTable, with emphasis on append-side constraint verification. Core obligations: (1) LocalAppend must treat an empty chunk as a no-op, refuse to append when the target table is no longer ...
duckdb/duckdb
e3946f2327a3cc622e1ec7fe71d51de49f93e61d
25,396
25,397
{ "nodes": [ { "id": "src/catalog/catalog_entry/duck_table_entry.cpp::DuckTableEntry::AlterEntry" }, { "id": "src/catalog/catalog_entry/duck_table_entry.cpp::DuckTableEntry::DropNotNull" } ], "edges": [ { "source": "src/catalog/catalog_entry/duck_table_entry.cpp::DuckTableEnt...
DuckTableEntry::AlterEntry, when handed an ALTER_TABLE alteration whose alter type is DROP_NOT_NULL, must dispatch to DuckTableEntry::DropNotNull (passing the client context and the DROP_NOT_NULL alteration info), and DropNotNull must perform the column-scoped removal of a NOT NULL constraint and return a new table cat...