Repository Analysis

django/django

The Web framework for perfectionists with deadlines.

20.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of django/django, a Python project with 88,198 GitHub stars. SynthScan v2.0 examined 679,409 lines of code across 3835 source files, recording 11379 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 20.7 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).

20.7
Adjusted Score
20.7
Raw Score
100%
Time Factor
2026-07-13
Last Push
88.2K
Stars
Python
Language
679.4K
Lines of Code
3.8K
Files
11.4K
Pattern Hits
2026-07-14
Scan Date
0.10
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 196HIGH 176MEDIUM 414LOW 10593

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 11379 distinct pattern matches across 21 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 Identifiers8933 hits · 8126 pts
SeverityFileLineSnippetContext
LOWtests/runtests.py156def get_filtered_test_modules(start_at, start_after, gis_enabled, test_labels=None):CODE
LOWtests/generic_views/test_list.py66 def test_paginated_queryset_shortdata(self):CODE
LOWtests/generic_views/test_list.py77 def test_paginated_get_page_by_query_string(self):CODE
LOWtests/generic_views/test_list.py87 def test_paginated_get_last_page_by_query_string(self):CODE
LOWtests/generic_views/test_list.py96 def test_paginated_get_page_by_urlvar(self):CODE
LOWtests/generic_views/test_list.py106 def test_paginated_page_out_of_range(self):CODE
LOWtests/generic_views/test_list.py111 def test_paginated_invalid_page(self):CODE
LOWtests/generic_views/test_list.py116 def test_paginated_custom_paginator_class(self):CODE
LOWtests/generic_views/test_list.py124 def test_paginated_custom_page_kwarg(self):CODE
LOWtests/generic_views/test_list.py136 def test_paginated_custom_paginator_constructor(self):CODE
LOWtests/generic_views/test_list.py143 def test_paginated_orphaned_queryset(self):CODE
LOWtests/generic_views/test_list.py157 def test_paginated_non_queryset(self):CODE
LOWtests/generic_views/test_list.py187 def test_template_name_suffix(self):CODE
LOWtests/generic_views/test_list.py202 def test_duplicate_context_object_name(self):CODE
LOWtests/generic_views/test_list.py218 def test_invalid_get_queryset(self):CODE
LOWtests/generic_views/test_list.py226 def test_paginated_list_view_does_not_load_entire_table(self):CODE
LOWtests/generic_views/test_list.py237 def test_explicitly_ordered_list_view(self):CODE
LOWtests/generic_views/test_list.py254 def test_paginated_list_view_returns_useful_message_on_invalid_page(self):CODE
LOWtests/generic_views/test_detail.py53 def test_detail_missing_object(self):CODE
LOWtests/generic_views/test_detail.py57 def test_detail_object_does_not_exist(self):CODE
LOWtests/generic_views/test_detail.py79 def test_detail_by_custom_slug(self):CODE
LOWtests/generic_views/test_detail.py90 def test_detail_by_pk_ignore_slug(self):CODE
LOWtests/generic_views/test_detail.py99 def test_detail_by_pk_ignore_slug_mismatch(self):CODE
LOWtests/generic_views/test_detail.py108 def test_detail_by_pk_and_slug(self):CODE
LOWtests/generic_views/test_detail.py137 def test_template_name_suffix(self):CODE
LOWtests/generic_views/test_detail.py163 def test_duplicated_context_object_name(self):CODE
LOWtests/generic_views/test_detail.py185 def test_deferred_queryset_template_name(self):CODE
LOWtests/generic_views/test_detail.py195 def test_deferred_queryset_context_object_name(self):CODE
LOWtests/generic_views/test_detail.py218 def test_non_model_object_with_meta(self):CODE
LOWtests/generic_views/test_dates.py75 def test_allow_empty_archive_view(self):CODE
LOWtests/generic_views/test_dates.py82 def test_archive_view_template(self):CODE
LOWtests/generic_views/test_dates.py92 def test_archive_view_template_suffix(self):CODE
LOWtests/generic_views/test_dates.py102 def test_archive_view_invalid(self):CODE
LOWtests/generic_views/test_dates.py110 def test_archive_view_by_month(self):CODE
LOWtests/generic_views/test_dates.py118 def test_paginated_archive_view(self):CODE
LOWtests/generic_views/test_dates.py892 def test_get_object_custom_queryset_numqueries(self):CODE
LOWtests/generic_views/test_dates.py896 def test_datetime_date_detail(self):CODE
LOWtests/generic_views/test_dates.py903 def test_aware_datetime_date_detail(self):CODE
LOWtests/generic_views/test_dates.py59 def test_archive_view_context_object_name(self):CODE
LOWtests/generic_views/test_dates.py134 def test_paginated_archive_view_does_not_load_entire_table(self):CODE
LOWtests/generic_views/test_dates.py150 def test_datetime_archive_view(self):CODE
LOWtests/generic_views/test_dates.py158 def test_aware_datetime_archive_view(self):CODE
LOWtests/generic_views/test_dates.py175 def test_archive_view_custom_sorting(self):CODE
LOWtests/generic_views/test_dates.py190 def test_archive_view_custom_sorting_dec(self):CODE
LOWtests/generic_views/test_dates.py205 def test_archive_view_without_date_field(self):CODE
LOWtests/generic_views/test_dates.py224 def test_year_view_make_object_list(self):CODE
LOWtests/generic_views/test_dates.py251 def test_year_view_allow_future(self):CODE
LOWtests/generic_views/test_dates.py281 def test_year_view_custom_sort_order(self):CODE
LOWtests/generic_views/test_dates.py303 def test_year_view_two_custom_sort_orders(self):CODE
LOWtests/generic_views/test_dates.py330 def test_year_view_invalid_pattern(self):CODE
LOWtests/generic_views/test_dates.py346 def test_aware_datetime_year_view(self):CODE
LOWtests/generic_views/test_dates.py362 def test_get_context_data_receives_extra_context(self, mock):CODE
LOWtests/generic_views/test_dates.py379 def test_get_dated_items_not_implemented(self):CODE
LOWtests/generic_views/test_dates.py402 def test_month_view_allow_empty(self):CODE
LOWtests/generic_views/test_dates.py425 def test_month_view_allow_future(self):CODE
LOWtests/generic_views/test_dates.py453 def test_month_view_paginated(self):CODE
LOWtests/generic_views/test_dates.py470 def test_month_view_invalid_pattern(self):CODE
LOWtests/generic_views/test_dates.py474 def test_previous_month_without_content(self):CODE
LOWtests/generic_views/test_dates.py503 def test_month_view_get_month_from_request(self):CODE
LOWtests/generic_views/test_dates.py514 def test_month_view_without_month_in_url(self):CODE
8873 more matches not shown…
Hallucination Indicators196 hits · 2270 pts
SeverityFileLineSnippetContext
CRITICALtests/expressions_case/tests.py7from django.core.exceptions import FieldErrorCODE
CRITICALtests/model_forms/test_modelchoicefield.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/model_forms/models.py7from django.core.exceptions import ValidationErrorCODE
CRITICALtests/model_forms/test_uuid.py2from django.core.exceptions import ValidationErrorCODE
CRITICALtests/aggregation/tests.py8from django.core.exceptions import FieldErrorCODE
CRITICALtests/composite_pk/test_update.py1from django.core.exceptions import FieldErrorCODE
CRITICALtests/composite_pk/test_models.py2from django.core.exceptions import ValidationErrorCODE
CRITICALtests/auth_tests/test_forms.py30from django.core.exceptions import ValidationErrorCODE
CRITICALtests/select_related/tests.py3from django.core.exceptions import FieldErrorCODE
CRITICALtests/dates/tests.py4from django.core.exceptions import FieldErrorCODE
CRITICALtests/foreign_object/tests.py6from django.core.exceptions import FieldError, ValidationErrorCODE
CRITICALtests/model_regress/tests.py5from django.core.exceptions import ValidationErrorCODE
CRITICALtests/cache/tests.py2171 django.core.cache.backends.base.BaseCache.__init__().STRING
CRITICALtests/custom_lookups/tests.py5from django.core.exceptions import FieldErrorCODE
CRITICALtests/update/tests.py3from django.core.exceptions import FieldErrorCODE
CRITICALtests/constraints/tests.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/model_inheritance/tests.py3from django.core.exceptions import FieldError, ValidationErrorCODE
CRITICALtests/generic_relations/tests.py3from django.core.exceptions import FieldError, FieldFetchBlockedCODE
CRITICALtests/forms_tests/field_tests/test_urlfield.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_charfield.py1from django.core.exceptions import ValidationErrorCODE
CRITICAL…sts/forms_tests/field_tests/test_splitdatetimefield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_typedchoicefield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_emailfield.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_uuidfield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_combofield.py1from django.core.exceptions import ValidationErrorCODE
CRITICAL…ts/forms_tests/field_tests/test_multiplechoicefield.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_filepathfield.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_floatfield.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_multivaluefield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_integerfield.py1from django.core.exceptions import ValidationErrorCODE
CRITICAL…rms_tests/field_tests/test_typedmultiplechoicefield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_filefield.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_datetimefield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_choicefield.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_datefield.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_booleanfield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_decimalfield.py3from django.core.exceptions import ValidationErrorCODE
CRITICAL…/forms_tests/field_tests/test_genericipaddressfield.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_regexfield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_timefield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_imagefield.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/field_tests/test_durationfield.py3from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/tests/test_utils.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/tests/test_input_formats.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/tests/test_validators.py7from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/tests/test_error_messages.py1from django.core.exceptions import ValidationErrorCODE
CRITICALtests/forms_tests/tests/test_formsets.py5from django.core.exceptions import ValidationErrorCODE
CRITICALtests/test_exceptions/test_validation_error.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/select_for_update/tests.py7from django.core.exceptions import FieldErrorCODE
CRITICALtests/queries/test_q.py3from django.core.exceptions import FieldErrorCODE
CRITICALtests/queries/test_query.py3from django.core.exceptions import FieldErrorCODE
CRITICALtests/model_options/test_default_related_name.py1from django.core.exceptions import FieldErrorCODE
CRITICALtests/lookup/tests.py7from django.core.exceptions import FieldErrorCODE
CRITICALtests/reverse_lookup/tests.py1from django.core.exceptions import FieldErrorCODE
CRITICALtests/admin_views/models.py9from django.core.exceptions import ValidationErrorCODE
CRITICALtests/admin_views/custom_has_permission_admin.py8from django.core.exceptions import ValidationErrorCODE
CRITICALtests/admin_views/forms.py4from django.core.exceptions import ValidationErrorCODE
CRITICALtests/admin_views/admin.py13from django.core.exceptions import ValidationErrorCODE
CRITICALtests/schema/tests.py8from django.core.exceptions import FieldErrorCODE
CRITICALtests/custom_managers/tests.py497 self.b1.fun_authors.through._default_manager.all(),CODE
136 more matches not shown…
Self-Referential Comments355 hits · 966 pts
SeverityFileLineSnippetContext
MEDIUMtests/runtests.py523 # Create a specific subdirectory for the duration of the test suite.COMMENT
MEDIUMtests/generic_views/test_dates.py252 # Create a new book in the futureCOMMENT
MEDIUMtests/mutually_referential/tests.py8 # Create a ParentCOMMENT
MEDIUMtests/model_forms/tests.py1640 # Create a ModelForm, instantiate it, and check that the output is asCOMMENT
MEDIUMtests/model_forms/tests.py1878 # Create a new article, with categories, via the form.COMMENT
MEDIUMtests/model_forms/tests.py1896 # Create a new article, with no categories, via the form.COMMENT
MEDIUMtests/model_forms/tests.py1904 # Create a new article, with categories, via the form, but useCOMMENT
MEDIUMtests/fixtures_regress/tests.py88 # Create a new animal. Without a sequence reset, this new objectCOMMENT
MEDIUMtests/fixtures_regress/tests.py474 # Create an instance of the concrete classCOMMENT
MEDIUMtests/auth_tests/urls_admin.py11# Create a silo'd admin site for just the user/group admins.COMMENT
MEDIUMtests/auth_tests/test_management.py524 # Creating a second user with the same email won't be caught byCOMMENT
MEDIUMtests/sessions_tests/tests.py697 # Create a sessionCOMMENT
MEDIUMtests/foreign_object/tests.py77 # Creating a valid membership because it has the same country has theCOMMENT
MEDIUMtests/foreign_object/tests.py85 # Creating an invalid membership because it has a different country hasCOMMENT
MEDIUMtests/foreign_object/tests.py99 # Creating a to valid membershipsCOMMENT
MEDIUMtests/foreign_object/tests.py111 # Creating an invalid membershipCOMMENT
MEDIUMtests/foreign_object/tests.py128 # Creating a to valid membershipsCOMMENT
MEDIUMtests/foreign_object/tests.py142 # Creating an invalid membershipCOMMENT
MEDIUMtests/foreign_object/tests.py168 # Creating an invalid membershipCOMMENT
MEDIUMtests/generic_inline_admin/tests.py425 # Create a formset with default argumentsCOMMENT
MEDIUMtests/generic_inline_admin/tests.py430 # Create a formset with custom keyword argumentsCOMMENT
MEDIUMtests/template_tests/test_response.py173 # Create a template response. The context isCOMMENT
MEDIUMtests/template_tests/test_response.py310 # Create a template response. The context isCOMMENT
MEDIUMtests/template_tests/test_context.py277 # Create an engine without any context processors.COMMENT
MEDIUMtests/generic_relations_regress/tests.py186 # Create a couple of extra HasLinkThing so that the autopk valueCOMMENT
MEDIUMtests/generic_relations/tests.py642 # Create a Vegetable and Mineral with the same id.COMMENT
MEDIUMtests/file_uploads/tests.py191 # This file contains Chinese symbols and an accented char in theCOMMENT
MEDIUMtests/file_uploads/tests.py892 # Create a file with the upload directory nameCOMMENT
MEDIUMtests/mail/test_backends.py77 # Create an instance of the backend_class for use in this test contextCOMMENT
MEDIUMtests/backends/tests.py242 # Create an object with a manually specified PKCOMMENT
MEDIUMtests/backends/tests.py631 # Create a Reporter.COMMENT
MEDIUMtests/backends/tests.py666 # Create an Article.COMMENT
MEDIUMtests/backends/tests.py703 # Create an Article.COMMENT
MEDIUMtests/backends/tests.py726 # Create an Article.COMMENT
MEDIUMtests/backends/tests.py748 # Create an Article.COMMENT
MEDIUMtests/backends/base/test_base.py81 # Create a new connection that will be closed during the test, and alsoCOMMENT
MEDIUMtests/file_storage/tests.py421 # Create a storage backend associated with the mixed case nameCOMMENT
MEDIUMtests/select_for_update/tests.py562 # This method is run in a separate thread. It uses its ownCOMMENT
MEDIUMtests/select_for_update/tests.py634 # This method is run in a separate thread. It uses its ownCOMMENT
MEDIUMtests/queries/tests.py3413 # Create a few Orders. Explicit pks needed for IntegerField pk.COMMENT
MEDIUMtests/basic/tests.py603 # Create an Article.COMMENT
MEDIUMtests/basic/tests.py700 # Create a very similar objectCOMMENT
MEDIUMtests/lookup/test_timefield.py9 # Create a few AlarmsCOMMENT
MEDIUMtests/lookup/tests.py54 # Create a few Authors.COMMENT
MEDIUMtests/lookup/tests.py57 # Create a few Articles.COMMENT
MEDIUMtests/lookup/tests.py100 # Create a few Tags.COMMENT
MEDIUMtests/many_to_one_null/tests.py9 # Create a Reporter.COMMENT
MEDIUMtests/many_to_one_null/tests.py12 # Create an Article.COMMENT
MEDIUMtests/many_to_one_null/tests.py15 # Create an Article via the Reporter object.COMMENT
MEDIUMtests/many_to_one_null/tests.py17 # Create an Article with no Reporter by passing "reporter=None".COMMENT
MEDIUMtests/contenttypes_tests/test_models.py285 # Create a stale ContentType that matches the name of an existingCOMMENT
MEDIUMtests/admin_views/tests.py6713 # Create a new user to ensure that no extra permissions have been set.COMMENT
MEDIUMtests/schema/tests.py4763 # Create the tableCOMMENT
MEDIUMtests/schema/tests.py4769 # Create a rowCOMMENT
MEDIUMtests/schema/tests.py4787 # Create the tableCOMMENT
MEDIUMtests/schema/tests.py4793 # Create a rowCOMMENT
MEDIUMtests/schema/tests.py4871 # Create the tableCOMMENT
MEDIUMtests/schema/tests.py4874 # Create a rowCOMMENT
MEDIUMtests/schema/tests.py4956 # Create the tableCOMMENT
MEDIUMtests/schema/tests.py4959 # Create a rowCOMMENT
295 more matches not shown…
Cross-Language Confusion124 hits · 729 pts
SeverityFileLineSnippetContext
HIGHtests/fixtures_regress/tests.py717 [{"fields": {"main": null, "name": "Amazon"},STRING
HIGHtests/fixtures_regress/tests.py719 {"fields": {"main": null, "name": "Borders"},STRING
HIGHtests/template_tests/test_context.py21 self.assertEqual(c.push(), {})CODE
HIGHtests/template_tests/test_context.py32 with c.push():CODE
HIGHtests/template_tests/test_context.py37 with c.push(a=3):CODE
HIGHtests/template_tests/test_context.py54 with c.push(Context({"a": 3})):CODE
HIGHtests/template_tests/test_context.py66 c.push(Context({"b": 2}))CODE
HIGHtests/template_tests/test_context.py67 c.push(Context({"c": 3, "d": {"z": "26"}}))CODE
HIGHtests/template_tests/test_context.py150 a.push(Context({"z": "8"}))CODE
HIGHtests/template_tests/test_context.py220 c.push({"a": 2})CODE
HIGHtests/template_tests/test_context.py231 c.push({"b": 2})CODE
HIGHtests/template_tests/test_context.py124 test_context.push()CODE
HIGHtests/template_tests/test_context.py147 Context.push() with a Context argument should work.STRING
HIGHtests/db_functions/text/test_left.py19 # If alias is null, set it to the first 2 lower characters of the name.COMMENT
HIGHtests/db_functions/text/test_right.py20 # If alias is null, set it to the first 2 lower characters of the name.COMMENT
HIGHtests/db_functions/text/test_substr.py20 # If alias is null, set to first 5 lower characters of the name.COMMENT
HIGHtests/inspectdb/tests.py596 CREATE TABLE inspectdb_partition_parent (name text not null)STRING
HIGHtests/queries/tests.py3114 self.assertSequenceEqual(Related.objects.filter(custom__isnull=True), [null])CODE
HIGHtests/nested_foreign_keys/tests.py15# with 2 relations. The first relation may be null, while the second isCOMMENT
HIGHtests/serializers/test_jsonl.py19 '{"pk": null,"model": "serializers.category","fields": {"name": "Reference"}}',CODE
HIGHtests/serializers/test_jsonl.py239 '{"pk": 1,"model": "serializers.m2mdata","fields": {"data": null}}'CODE
HIGHtests/serializers/test_json.py22 "pk": null,CODE
HIGHtests/serializers/test_json.py270 "fields": {"data": null}CODE
HIGHtests/many_to_one/tests.py150 # Funny case - because the ForeignKey cannot be null,COMMENT
HIGHtests/many_to_one/tests.py194 # Because the ForeignKey cannot be null, existing members of the setCOMMENT
HIGHtests/many_to_one/tests.py624 # Assigning None succeeds if field is null=True.COMMENT
HIGHtests/model_fields/test_field_flags.py221 self.assertFalse(AllFieldsModel._meta.get_field("m2m").null)CODE
HIGHtests/model_fields/test_field_flags.py222 self.assertTrue(AllFieldsModel._meta.get_field("reverse2").null)CODE
HIGHtests/model_fields/test_jsonfield.py190 '[{"fields": {"value": %s}, "model": "model_fields.jsonmodel", "pk": null}]'CODE
HIGHtests/model_fields/test_jsonfield.py194 ({"a": "b", "c": None}, '{"a": "b", "c": null}'),CODE
HIGHtests/model_fields/test_uuid.py239 '"model": "model_fields.uuidmodel", "pk": null}]'CODE
HIGHtests/model_fields/test_uuid.py242 '[{"fields": {"field": null}, 'CODE
HIGHtests/model_fields/test_uuid.py243 '"model": "model_fields.nullableuuidmodel", "pk": null}]'CODE
HIGHtests/model_fields/test_durationfield.py56 '"pk": null}]'CODE
HIGHtests/one_to_one/tests.py213 # Assigning None succeeds if field is null=True.COMMENT
HIGHtests/one_to_one/tests.py279 # Assigning None succeeds if field is null=True.COMMENT
HIGHtests/expressions/tests.py2851 (AutoField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2852 (DecimalField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2853 (FloatField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2854 (IntegerField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2855 (IntegerField, Combinable.SUB, null),STRING
HIGHtests/expressions/tests.py2856 (null, Combinable.ADD, IntegerField),STRING
HIGHtests/expressions/tests.py2858 (DateField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2859 (DateTimeField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2860 (DurationField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2861 (TimeField, Combinable.ADD, null),STRING
HIGHtests/expressions/tests.py2862 (TimeField, Combinable.SUB, null),STRING
HIGHtests/expressions/tests.py2863 (null, Combinable.ADD, DateTimeField),STRING
HIGHtests/expressions/tests.py2864 (DateField, Combinable.SUB, null),STRING
HIGHtests/field_defaults/tests.py72 self.assertEqual(obj1.null, 1.1)CODE
HIGHtests/field_defaults/tests.py76 self.assertIsNone(obj2.null)CODE
HIGHtests/field_defaults/tests.py110 self.assertEqual(obj1.null, 1.1)CODE
HIGHtests/postgres_tests/test_ranges.py575 '"bigints": null, "timestamps": 'CODE
HIGHtests/postgres_tests/test_ranges.py578 '"timestamps_inner": null, 'CODE
HIGHtests/postgres_tests/test_ranges.py582 '\\"bounds\\": \\"[)\\"}", "dates_inner": null }, 'CODE
HIGHtests/postgres_tests/test_ranges.py583 '"model": "postgres_tests.rangesmodel", "pk": null}]'CODE
HIGHtests/postgres_tests/test_array.py1031 '[{"fields": {"field": "[\\"1\\", \\"2\\", null]"}, 'CODE
HIGHtests/postgres_tests/test_array.py1032 '"model": "postgres_tests.integerarraymodel", "pk": null}]'CODE
HIGHtests/postgres_tests/test_hstore.py392 value = field.clean('{"a": null}')CODE
HIGHtests/gis_tests/gdal_tests/test_geom.py396 self.assertTrue(d1.geos.equals(d2.geos))CODE
64 more matches not shown…
Unused Imports606 hits · 514 pts
SeverityFileLineSnippetContext
LOWtests/model_forms/models.py167CODE
LOWtests/fixtures_regress/tests.py59CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/composite_pk/models/__init__.py1CODE
LOWtests/auth_tests/backend_alias.py2CODE
LOWtests/auth_tests/models/__init__.py1CODE
LOWtests/auth_tests/models/__init__.py2CODE
LOWtests/auth_tests/models/__init__.py2CODE
LOWtests/auth_tests/models/__init__.py2CODE
LOWtests/auth_tests/models/__init__.py2CODE
LOWtests/auth_tests/models/__init__.py8CODE
LOWtests/auth_tests/models/__init__.py9CODE
LOWtests/auth_tests/models/__init__.py10CODE
LOWtests/auth_tests/models/__init__.py11CODE
LOWtests/auth_tests/models/__init__.py12CODE
LOWtests/auth_tests/models/__init__.py13CODE
LOWtests/auth_tests/models/__init__.py13CODE
LOWtests/auth_tests/models/__init__.py14CODE
LOWtests/auth_tests/models/__init__.py15CODE
LOWtests/auth_tests/models/__init__.py16CODE
LOWtests/auth_tests/models/__init__.py16CODE
LOWtests/auth_tests/models/__init__.py17CODE
LOWtests/auth_tests/models/__init__.py18CODE
LOWtests/auth_tests/models/__init__.py19CODE
LOWtests/auth_tests/models/__init__.py19CODE
LOWtests/auth_tests/models/__init__.py19CODE
LOWtests/auth_tests/models/__init__.py20CODE
LOWtests/foreign_object/models/__init__.py1CODE
LOWtests/foreign_object/models/__init__.py1CODE
LOWtests/foreign_object/models/__init__.py1CODE
LOWtests/foreign_object/models/__init__.py1CODE
LOWtests/foreign_object/models/__init__.py1CODE
LOWtests/foreign_object/models/__init__.py2CODE
LOWtests/foreign_object/models/__init__.py2CODE
LOWtests/foreign_object/models/__init__.py2CODE
LOWtests/foreign_object/models/__init__.py2CODE
LOWtests/foreign_object/models/__init__.py3CODE
LOWtests/foreign_object/models/__init__.py4CODE
LOWtests/foreign_object/models/__init__.py4CODE
LOWtests/foreign_object/models/__init__.py4CODE
LOWtests/foreign_object/models/__init__.py4CODE
LOWtests/foreign_object/models/__init__.py4CODE
LOWtests/template_tests/broken_tag.py1CODE
LOWtests/urlpatterns_reverse/views.py26CODE
LOWtests/forms_tests/field_tests/test_filefield.py11CODE
LOWtests/invalid_models_tests/test_ordinary_fields.py843CODE
LOW…_backends/apps/importerror/templatetags/broken_tags.py1CODE
LOWtests/admin_scripts/broken_app/models.py1CODE
LOWtests/admin_scripts/simple_app/models.py1CODE
LOWtests/admin_scripts/complex_app/models/__init__.py1CODE
LOWtests/admin_scripts/complex_app/models/__init__.py2CODE
LOWtests/serializers/test_deserialization.py16CODE
LOWtests/serializers/models/__init__.py1CODE
LOWtests/serializers/models/__init__.py2CODE
LOWtests/serializers/models/__init__.py3CODE
546 more matches not shown…
Deep Nesting430 hits · 388 pts
SeverityFileLineSnippetContext
LOWtests/runtests.py108CODE
LOWtests/runtests.py444CODE
LOWtests/test_runner/tests.py772CODE
LOWtests/pagination/tests.py159CODE
LOWtests/pagination/tests.py594CODE
LOWtests/pagination/tests.py681CODE
LOWtests/auth_tests/test_forms.py1733CODE
LOWtests/auth_tests/test_hashers.py510CODE
LOWtests/auth_tests/test_hashers.py525CODE
LOWtests/auth_tests/test_auth_backends.py699CODE
LOWtests/transaction_hooks/tests.py191CODE
LOWtests/transaction_hooks/tests.py204CODE
LOWtests/transaction_hooks/tests.py217CODE
LOWtests/admin_filters/tests.py1385CODE
LOWtests/db_functions/datetime/test_extract_trunc.py1837CODE
LOWtests/cache/tests.py729CODE
LOWtests/update/tests.py235CODE
LOWtests/urlpatterns_reverse/tests.py687CODE
LOWtests/mail/test_deprecated.py227CODE
LOWtests/mail/test_deprecated.py449CODE
LOWtests/mail/test_backends.py196CODE
LOWtests/mail/tests.py992CODE
LOWtests/mail/tests.py1424CODE
LOWtests/mail/tests.py2469CODE
LOWtests/mail/tests.py2494CODE
LOWtests/forms_tests/widget_tests/test_selectdatewidget.py597CODE
LOWtests/backends/postgresql/tests.py37CODE
LOWtests/backends/postgresql/tests.py95CODE
LOWtests/backends/oracle/test_creation.py65CODE
LOWtests/backends/sqlite/test_introspection.py11CODE
LOWtests/backends/base/test_client.py20CODE
LOWtests/backends/base/test_base.py424CODE
LOWtests/file_storage/tests.py831CODE
LOWtests/async/test_async_queryset.py250CODE
LOWtests/select_for_update/tests.py395CODE
LOWtests/select_for_update/tests.py421CODE
LOWtests/queries/test_qs_combinators.py772CODE
LOWtests/queries/test_qs_combinators.py821CODE
LOWtests/queries/test_explain.py15CODE
LOWtests/queries/test_explain.py80CODE
LOWtests/introspection/tests.py362CODE
LOWtests/urlpatterns/tests.py261CODE
LOWtests/admin_views/test_skip_link_to_content.py131CODE
LOWtests/admin_views/tests.py338CODE
LOWtests/admin_views/tests.py369CODE
LOWtests/schema/tests.py146CODE
LOWtests/schema/tests.py269CODE
LOWtests/schema/tests.py5911CODE
LOWtests/admin_scripts/tests.py64CODE
LOWtests/transactions/tests.py116CODE
LOWtests/transactions/tests.py155CODE
LOWtests/transactions/tests.py196CODE
LOWtests/transactions/tests.py216CODE
LOWtests/transactions/tests.py280CODE
LOWtests/transactions/tests.py304CODE
LOWtests/transactions/tests.py453CODE
LOWtests/utils_tests/test_autoreload.py550CODE
LOWtests/utils_tests/test_autoreload.py570CODE
LOWtests/utils_tests/test_html.py40CODE
LOWtests/utils_tests/test_archive.py34CODE
370 more matches not shown…
Excessive Try-Catch Wrapping229 hits · 265 pts
SeverityFileLineSnippetContext
LOWtests/middleware/views.py88 except Exception:CODE
MEDIUMtests/middleware/views.py85def csp_500(request):CODE
MEDIUMtests/asgi/tests.py317def post_view(request):CODE
LOWtests/asgi/tests.py324 except Exception as e:CODE
MEDIUMtests/cache/tests.py692def _perform_cull_test(self, cull_cache_name, initial_count, final_count):CODE
LOWtests/cache/tests.py1736 except Exception:CODE
LOWtests/file_uploads/tests.py759 except Exception as err:CODE
LOWtests/file_uploads/tests.py779 except Exception as err:CODE
LOWtests/forms_tests/field_tests/test_datefield.py217 except Exception as e:CODE
LOWtests/backends/tests.py430 except Exception as e:CODE
LOWtests/backends/tests.py504 except Exception:CODE
LOWtests/backends/tests.py881 except Exception as e:CODE
LOWtests/file_storage/tests.py749 except Exception:CODE
MEDIUMtests/view_tests/views.py54def get(self, request):CODE
MEDIUMtests/view_tests/views.py212def async_sensitive_view_nested(request):CODE
MEDIUMtests/view_tests/views.py257def sensitive_args_function_caller(request):CODE
MEDIUMtests/view_tests/views.py279def sensitive_kwargs_function_caller(request):CODE
MEDIUMtests/view_tests/views.py397def async_method_nested(self, request):CODE
LOWtests/view_tests/views.py40 except Exception:CODE
LOWtests/view_tests/views.py49 except Exception:CODE
LOWtests/view_tests/views.py57 except Exception:CODE
LOWtests/view_tests/views.py157 except Exception:CODE
LOWtests/view_tests/views.py175 except Exception:CODE
LOWtests/view_tests/views.py193 except Exception:CODE
LOWtests/view_tests/views.py215 except Exception:CODE
LOWtests/view_tests/views.py233 except Exception:CODE
LOWtests/view_tests/views.py251 except Exception:CODE
LOWtests/view_tests/views.py264 except Exception:CODE
LOWtests/view_tests/views.py286 except Exception:CODE
LOWtests/view_tests/views.py326 except Exception:CODE
LOWtests/view_tests/views.py348 except Exception:CODE
LOWtests/view_tests/views.py365 except Exception:CODE
LOWtests/view_tests/views.py381 except Exception:CODE
LOWtests/view_tests/views.py400 except Exception:CODE
LOWtests/view_tests/views.py427 except Exception:CODE
LOWtests/view_tests/views.py99 except Exception:CODE
MEDIUMtests/view_tests/tests/test_debug.py625def test_sharing_traceback(self):CODE
MEDIUMtests/view_tests/tests/test_debug.py770def test_mid_stack_exception_without_traceback(self):CODE
MEDIUMtests/view_tests/tests/test_debug.py914def test_reporting_frames_without_source(self):CODE
MEDIUMtests/view_tests/tests/test_debug.py949def test_reporting_frames_source_not_match(self):CODE
MEDIUMtests/view_tests/tests/test_debug.py989def test_reporting_frames_for_cyclic_reference(self):CODE
LOWtests/view_tests/tests/test_debug.py701 except Exception as exc:CODE
LOWtests/view_tests/tests/test_debug.py705 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py742 except Exception as err:CODE
LOWtests/view_tests/tests/test_debug.py747 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py774 except Exception as exc:CODE
LOWtests/view_tests/tests/test_debug.py778 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py814 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py999 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1079 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1091 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1110 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py329 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py857 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py920 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py955 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1128 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1144 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1160 except Exception:CODE
LOWtests/view_tests/tests/test_debug.py1351 except Exception:CODE
169 more matches not shown…
Cross-File Repetition46 hits · 230 pts
SeverityFileLineSnippetContext
HIGH…emplate_tests/syntax_tests/i18n/test_blocktranslate.py0simple baseline behavior with one locale for all the supported i18n constructs.STRING
HIGH…sts/template_tests/syntax_tests/i18n/test_translate.py0simple baseline behavior with one locale for all the supported i18n constructs.STRING
HIGH…late_tests/syntax_tests/i18n/test_underscore_syntax.py0simple baseline behavior with one locale for all the supported i18n constructs.STRING
HIGHtests/db_functions/datetime/test_now.py0lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqSTRING
HIGHtests/db_functions/comparison/test_coalesce.py0lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqSTRING
HIGHtests/db_functions/text/test_concat.py0lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqSTRING
HIGHtests/forms_tests/widget_tests/test_dateinput.py0use 'format' to change the way a value is displayed.STRING
HIGHtests/forms_tests/widget_tests/test_timeinput.py0use 'format' to change the way a value is displayed.STRING
HIGHtests/forms_tests/widget_tests/test_datetimeinput.py0use 'format' to change the way a value is displayed.STRING
HIGHtests/forms_tests/widget_tests/test_select.py0if the value corresponds to a label (but not to an option value), none of the options are selected.STRING
HIGHtests/forms_tests/widget_tests/test_radioselect.py0if the value corresponds to a label (but not to an option value), none of the options are selected.STRING
HIGHtests/forms_tests/widget_tests/test_selectmultiple.py0if the value corresponds to a label (but not to an option value), none of the options are selected.STRING
HIGHtests/view_tests/tests/test_csrf.py0the templates are loaded directly, not via a template loader, and should be opened as utf-8 charset as is the default spSTRING
HIGHtests/view_tests/tests/test_static.py0the templates are loaded directly, not via a template loader, and should be opened as utf-8 charset as is the default spSTRING
HIGHtests/view_tests/tests/test_i18n.py0the templates are loaded directly, not via a template loader, and should be opened as utf-8 charset as is the default spSTRING
HIGHtests/view_tests/tests/test_debug.py0the templates are loaded directly, not via a template loader, and should be opened as utf-8 charset as is the default spSTRING
HIGHtests/schema/tests.py0select opcname, c.relname from pg_opclass as oc join pg_index as i on oc.oid = any(i.indclass) join pg_class as c on c.oSTRING
HIGHtests/postgres_tests/test_constraints.py0select opcname, c.relname from pg_opclass as oc join pg_index as i on oc.oid = any(i.indclass) join pg_class as c on c.oSTRING
HIGHtests/postgres_tests/test_indexes.py0select opcname, c.relname from pg_opclass as oc join pg_index as i on oc.oid = any(i.indclass) join pg_class as c on c.oSTRING
HIGHtests/gis_tests/gis_migrations/test_operations.py0select opcname, c.relname from pg_opclass as oc join pg_index as i on oc.oid = any(i.indclass) join pg_class as c on c.oSTRING
HIGHtests/indexes/tests.py0select opcname, c.relname from pg_opclass as oc join pg_index as i on oc.oid = any(i.indclass) join pg_class as c on c.oSTRING
HIGHdjango/contrib/gis/db/backends/oracle/models.py0return the name of the metadata column used to store the feature table name.STRING
HIGHdjango/contrib/gis/db/backends/postgis/models.py0return the name of the metadata column used to store the feature table name.STRING
HIGHdjango/contrib/gis/db/backends/spatialite/models.py0return the name of the metadata column used to store the feature table name.STRING
HIGHdjango/contrib/gis/db/backends/oracle/models.py0return the name of the metadata column used to store the feature geometry column.STRING
HIGHdjango/contrib/gis/db/backends/postgis/models.py0return the name of the metadata column used to store the feature geometry column.STRING
HIGHdjango/contrib/gis/db/backends/spatialite/models.py0return the name of the metadata column used to store the feature geometry column.STRING
HIGHdjango/db/backends/postgresql/introspection.py0return a list of table and view names in the current database.STRING
HIGHdjango/db/backends/oracle/introspection.py0return a list of table and view names in the current database.STRING
HIGHdjango/db/backends/sqlite3/introspection.py0return a list of table and view names in the current database.STRING
HIGHdjango/db/backends/mysql/introspection.py0return a list of table and view names in the current database.STRING
HIGHdjango/db/backends/postgresql/introspection.py0return a description of the table with the db-api cursor.description interface.STRING
HIGHdjango/db/backends/oracle/introspection.py0return a description of the table with the db-api cursor.description interface.STRING
HIGHdjango/db/backends/sqlite3/introspection.py0return a description of the table with the db-api cursor.description interface.STRING
HIGHdjango/db/backends/base/introspection.py0return a description of the table with the db-api cursor.description interface.STRING
HIGHdjango/db/backends/postgresql/introspection.py0return a dictionary of { field_name: (field_name_other_table, other_table, db_on_delete) } representing all foreign keysSTRING
HIGHdjango/db/backends/oracle/introspection.py0return a dictionary of { field_name: (field_name_other_table, other_table, db_on_delete) } representing all foreign keysSTRING
HIGHdjango/db/backends/mysql/introspection.py0return a dictionary of { field_name: (field_name_other_table, other_table, db_on_delete) } representing all foreign keysSTRING
HIGHdjango/db/backends/base/introspection.py0return a dictionary of { field_name: (field_name_other_table, other_table, db_on_delete) } representing all foreign keysSTRING
HIGHdjango/db/backends/oracle/introspection.py0retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns.STRING
HIGHdjango/db/backends/sqlite3/introspection.py0retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns.STRING
HIGHdjango/db/backends/mysql/introspection.py0retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns.STRING
HIGHdjango/views/csrf.py0return a path to a builtin template. avoid calling this function at the module level or in a class-definition because __STRING
HIGHdjango/views/debug.py0return a path to a builtin template. avoid calling this function at the module level or in a class-definition because __STRING
HIGHdjango/views/static.py0return a path to a builtin template. avoid calling this function at the module level or in a class-definition because __STRING
HIGHdjango/views/i18n.py0return a path to a builtin template. avoid calling this function at the module level or in a class-definition because __STRING
Fake / Example Data163 hits · 178 pts
SeverityFileLineSnippetContext
LOWtests/generic_views/test_edit.py155 {"name": "John Doe", "slug": "john-doe"},CODE
LOWtests/generic_views/test_edit.py158 pk = Author.objects.get(name="John Doe").pkCODE
LOWtests/generic_views/test_edit.py314 {"name": "John Doe", "slug": "john-doe"},CODE
LOWtests/generic_views/test_edit.py317 pk = Author.objects.get(name="John Doe").pkCODE
LOWtests/expressions_case/tests.py1509 name="Jane Doe",CODE
LOWtests/expressions_case/tests.py1533 [("Jane Doe", "0%"), ("James Smith", "5%"), ("Jack Black", "10%")],CODE
LOWtests/expressions_case/tests.py1548 [("Jane Doe", "5%"), ("James Smith", "0%"), ("Jack Black", "10%")],CODE
LOWtests/expressions_case/tests.py1564 [("Jane Doe", "G"), ("James Smith", "R"), ("Jack Black", "P")],CODE
LOWtests/model_forms/tests.py274 form = modelform_factory(Person, fields="__all__")({"name": "John Doe"})CODE
LOWtests/model_forms/tests.py2463 author = Author.objects.create(publication=publication, full_name="John Doe")CODE
LOWtests/model_forms/tests.py2464 form = AuthorForm({"publication": "", "full_name": "John Doe"}, instance=author)CODE
LOWtests/model_forms/tests.py2482 author = Author1.objects.create(publication=publication, full_name="John Doe")CODE
LOWtests/model_forms/tests.py2483 form = AuthorForm({"publication": "", "full_name": "John Doe"}, instance=author)CODE
LOWtests/model_forms/tests.py2082 "article": "lorem ipsum",CODE
LOWtests/model_forms/tests.py2113 "article": "lorem ipsum",CODE
LOWtests/auth_tests/test_forms.py1198 User.objects.create_user("mike123", "mike@example.org", "test123")CODE
LOWtests/auth_tests/test_forms.py1199 User.objects.create_user("mike456", "mıke@example.org", "test123")CODE
LOWtests/auth_tests/test_forms.py1200 data = {"email": "mıke@example.org"}CODE
LOWtests/auth_tests/test_forms.py1204 self.assertEmailMessageSent(to=["mıke@example.org"])CODE
LOWtests/auth_tests/test_forms.py1216 User.objects.create_user("mike123", "mike@example.org", "test123")CODE
LOWtests/auth_tests/test_forms.py1217 data = {"email": "mıke@example.org"}CODE
LOWtests/auth_tests/test_forms.py1236 data = {"email": "foo@bar.com"}CODE
LOWtests/auth_tests/test_management.py1253 "email": "test@test.com",CODE
LOWtests/auth_tests/test_views.py1755 username="uuid", email="foo@bar.com", password="test"CODE
LOWtests/auth_tests/test_remote_user.py456 self.email_header: "user@example.com",CODE
LOWtests/auth_tests/test_remote_user.py460 self.assertEqual(response.context["user"].email, "user@example.com")CODE
LOWtests/auth_tests/test_remote_user.py464 self.assertEqual(newuser.email, "user@example.com")CODE
LOWtests/auth_tests/test_remote_user.py482 self.email_header.removeprefix("HTTP_"): "user@example.com",CODE
LOWtests/auth_tests/test_remote_user.py486 self.assertEqual(response.context["user"].email, "user@example.com")CODE
LOWtests/auth_tests/test_remote_user.py490 self.assertEqual(newuser.email, "user@example.com")CODE
LOWtests/auth_tests/test_models.py162 email="test@test.com",CODE
LOWtests/auth_tests/test_models.py173 email="test@test.com",CODE
LOWtests/auth_tests/test_models.py182 email="test@test.com",CODE
LOWtests/auth_tests/test_models.py191 email="test@test.com",CODE
LOWtests/auth_tests/test_models.py522 user = User.objects.create(username="foo", email="foo@bar.com")CODE
LOWtests/auth_tests/test_models.py269 user = User(email="foo@bar.com")CODE
LOWtests/auth_tests/test_models.py293 self.assertEqual(user.email, "foo@bar.com")CODE
LOWtests/bulk_create/models.py127 email_field = models.EmailField(null=True, default="user@example.com")CODE
LOWtests/generic_inline_admin/tests.py266 "name": "John Doe",CODE
LOWtests/template_tests/syntax_tests/test_lorem.py12 self.assertEqual(output, "lorem ipsum dolor")CODE
LOWtests/db_functions/datetime/test_now.py12 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWtests/db_functions/datetime/test_now.py12 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWtests/db_functions/comparison/test_coalesce.py9 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWtests/db_functions/comparison/test_coalesce.py9 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWtests/db_functions/text/test_concat.py13 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWtests/db_functions/text/test_concat.py13 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWtests/model_inheritance/tests.py86 post = Post.objects.create(title="Lorem Ipsum")CODE
LOWtests/mail/test_sendtestemail.py8 ADMINS=["admin@example.com", "admin_and_manager@example.com"],CODE
LOWtests/mail/test_sendtestemail.py87 "admin@example.com",CODE
LOWtests/mail/test_sendtestemail.py111 "admin@example.com",CODE
LOWtests/mail/tests.py2550 @override_settings(ADMINS=["admin@example.com"], MANAGERS=["manager@example.com"])CODE
LOWtests/mail/tests.py2455 @override_settings(ADMINS=["admin@example.com"], MANAGERS=["manager@example.com"])CODE
LOWtests/mail/tests.py2603 @override_settings(ADMINS=["admin@example.com"], MANAGERS=["manager@example.com"])CODE
LOWtests/forms_tests/tests/test_forms.py1233 {"name": "John Doe"}, initial={"birthday": datetime.date(1974, 8, 16)}CODE
LOWtests/forms_tests/tests/test_forms.py1235 f2 = PersonFormFieldInitial({"name": "John Doe"})CODE
LOWtests/forms_tests/tests/test_forms.py1240 {"birthday": datetime.date(1974, 8, 16), "name": "John Doe"},CODE
LOWtests/forms_tests/tests/test_forms.py1244 data = {"name": "John Doe", "birthday": "1984-11-10"}CODE
LOWtests/forms_tests/tests/test_forms.py1251 {"birthday": datetime.date(1974, 8, 16), "name": "John Doe"},CODE
LOWtests/forms_tests/tests/test_forms.py2870 name = CharField(initial=lambda: "John Doe", disabled=True)CODE
LOWtests/forms_tests/tests/test_forms.py2874 self.assertEqual(form["name"].value(), "John Doe")CODE
103 more matches not shown…
Over-Commented Block87 hits · 85 pts
SeverityFileLineSnippetContext
LOWtests/test_sqlite.py1# This is an example test settings file for use with the Django test suite.COMMENT
LOWtests/asgi/tests.py401 scope = self.async_request_factory._base_scope(path="/")COMMENT
LOWtests/migrate_signals/models.py1# This module has to exist, otherwise pre/post_migrate aren't sent for theCOMMENT
LOWtests/requests_tests/tests.py981 # 3. main_stream.read(1) -- BoundaryIter.__init__ probe, file fieldCOMMENT
LOWtests/admin_changelist/tests.py1281COMMENT
LOWtests/queries/tests.py4681 # These are still both references to the same QuerySet, despiteCOMMENT
LOWtests/nested_foreign_keys/tests.py21# Model BCOMMENT
LOW…lates/project_template/additional_dir/requirements.txt1# some file for {{ project_name }} test projectCOMMENT
LOW…templates/project_template/additional_dir/localized.py1# Regression for #22699.COMMENT
LOWtests/i18n/test_compilation.py201 os_walk_results = [COMMENT
LOWtests/gis_tests/layermap/tests.py221 # has the effect of ignoring the spatial reference check (becauseCOMMENT
LOWtests/gis_tests/distapp/tests.py441 """COMMENT
LOWtests/gis_tests/distapp/tests.py501COMMENT
LOWtests/gis_tests/distapp/tests.py541 self.assertAlmostEqual(distance, city.distance.m, tol)COMMENT
LOWdocs/conf.py1# Django documentation build configuration file, created byCOMMENT
LOWdocs/conf.py21# RuntimeError: maximum recursion depth exceeded while pickling an objectCOMMENT
LOWdocs/conf.py161# There are two options for replacing |today|: either, you set today to someCOMMENT
LOWdocs/conf.py201suppress_warnings = ["app.add_directive", "epub.duplicated_toc_entry"]COMMENT
LOWdocs/conf.py221# A shorter title for the navigation bar. Default is the same as html_title.COMMENT
LOWdocs/conf.py241COMMENT
LOWdocs/conf.py261# If true, links to the reST sources are added to the pages.COMMENT
LOWdocs/conf.py401# or en if the language is not set.COMMENT
LOWdocs/conf.py421# The format is a list of tuples containing the path and title.COMMENT
LOWdocs/ref/class-based-views/generic-display.txt21 * :class:`django.views.generic.base.TemplateResponseMixin`COMMENT
LOWscripts/manage_translations.py1#!/usr/bin/env pythonCOMMENT
LOWdjango/middleware/csrf.py441 )COMMENT
LOWdjango/forms/fields.py121 # label -- A verbose name for this field, for use in displaying thisCOMMENT
LOWdjango/core/serializers/__init__.py201 # Also add a dependency for any simple M2M relation with a modelCOMMENT
LOWdjango/template/defaulttags.py641 <tr class="{{ rowcolors }}">{% include "subtemplate.html " %}</tr>COMMENT
LOWdjango/utils/encoding.py121 # reserved = gen-delims / sub-delimsCOMMENT
LOWdjango/contrib/admin/static/admin/js/calendar.js121 const todayDay = today.getDate();COMMENT
LOW…ntrib/admin/static/admin/js/admin/DateTimeShortcuts.js161 clock_link.setAttribute("aria-labelledby", clockIconId);COMMENT
LOW…ntrib/admin/static/admin/js/admin/DateTimeShortcuts.js361 // role="dialog" aria-label="Choose a Date">COMMENT
LOWdjango/contrib/sessions/backends/file.py141 if not must_create:COMMENT
LOWdjango/contrib/humanize/templatetags/humanize.py41 else:COMMENT
LOWdjango/contrib/humanize/templatetags/humanize.py221 # Translators: delta will contain a string like '2 months' orCOMMENT
LOWdjango/contrib/gis/measure.py1# Copyright (c) 2007, Robert Coup <robert.coup@onetrackmind.co.nz>COMMENT
LOWdjango/contrib/gis/db/backends/postgis/pgraster.py121COMMENT
LOWdjango/db/backends/oracle/base.py601 # Handle params as a dict with unified query parameters by theirCOMMENT
LOWdjango/db/backends/base/features.py341COMMENT
LOWdjango/db/backends/base/schema.py1061 if drop_foreign_keys:COMMENT
LOWdjango/db/backends/base/schema.py1261 # constraint will no longer be used in lieu of an index. The followingCOMMENT
LOWdjango/db/models/options.py341 # Insert the given field in the order in which it was created, usingCOMMENT
LOWdjango/db/models/query.py841 # insert into the childmost table.COMMENT
LOWdjango/db/models/query.py2981 # - cols_start, cols_end: usually the columns in the row areCOMMENT
LOWdjango/db/models/deletion.py121 self.origin = originCOMMENT
LOWdjango/db/models/base.py1221 filtered = base_qs.filter(pk=pk_val)COMMENT
LOWdjango/db/models/fields/files.py181 # the FieldFile API so that users can easily do things likeCOMMENT
LOWdjango/db/models/fields/related.py241 errors = []COMMENT
LOWdjango/db/models/fields/__init__.py101COMMENT
LOWdjango/db/models/fields/__init__.py901 connection.COMMENT
LOWdjango/db/models/sql/compiler.py101 Return a list of 2-tuples of form (sql, params).COMMENT
LOWdjango/db/models/sql/compiler.py121 # SomeModel.objects.values('name').annotate(Count('somecol')).values('pk')COMMENT
LOWdjango/db/models/sql/query.py541 # applied we must take the slice from the ordered query. OtherwiseCOMMENT
LOWdjango/db/models/sql/query.py721 # as T4 -> T6 while combining two querysets. To prevent this, change anCOMMENT
LOWdjango/db/models/sql/query.py2861 # there is a matching row in rel_b with col=2, then an INNER joinCOMMENT
LOWdjango/db/models/sql/query.py2881 # Finally, what happens in cases where we have:COMMENT
LOWdjango/views/templates/technical_500.html41 div.context ol li pre { display:inline; }COMMENT
LOWdjango/conf/global_settings.py21# on a live site.COMMENT
LOWdjango/conf/global_settings.py181# Email address that error messages come from.COMMENT
27 more matches not shown…
AI Slop Vocabulary36 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/model_forms/tests.py1928 # same fields as the Category model, we can just call the form's save()COMMENT
LOWtests/get_earliest_or_latest/tests.py188 # "get_latest_by" set -- just pass in the field name manually.COMMENT
LOWtests/view_tests/views.py148 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py166 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py184 # Do not just use plain strings for the variables' values in the code soCOMMENT
LOWtests/view_tests/views.py202 # Do not just use plain strings for the variables' values in the code soCOMMENT
LOWtests/view_tests/views.py224 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py242 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py272 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py294 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py316 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py356 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py372 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/views.py388 # Do not just use plain strings for the variables' values in the codeCOMMENT
LOWtests/view_tests/tests/test_debug.py815 # Custom exception handler, just pass it into ExceptionReporterCOMMENT
LOWtests/model_meta/tests.py281 # should just return an EMPTY_RELATION_TREE.COMMENT
MEDIUMtests/many_to_one/tests.py406 # Counting in the opposite direction works in conjunction withCOMMENT
LOWtests/queryset_pickle/tests.py61 # can't just use assertEqual(original, unpickled)COMMENT
MEDIUMtests/postgres_tests/test_indexes.py562 """SearchVector generates IMMUTABLE SQL in order to be indexable."""STRING
MEDIUMtests/gis_tests/geo3d/tests.py51# http://seamless.usgs.gov/products/9arc.phpCOMMENT
MEDIUMtests/gis_tests/geo3d/tests.py51# http://seamless.usgs.gov/products/9arc.phpCOMMENT
LOWdjango/middleware/cache.py91 # We don't need to update the cache, just return.COMMENT
LOWdjango/forms/models.py1560 # the property self.choices. In this case, just return self._choices.COMMENT
MEDIUMdjango/template/base.py570 # When deprecation ends elevate the warning to an error.COMMENT
LOWdjango/contrib/admin/options.py279 # For any other type of field, just call its formfield() method.COMMENT
LOWdjango/contrib/admin/options.py1226 # If the action is a callable, just use it.COMMENT
LOWdjango/http/multipartparser.py229 # This is a post field, we can just set it in the postCOMMENT
LOWdjango/http/multipartparser.py648 # There's nothing left, we should just return and mark as done.COMMENT
LOWdjango/db/backends/sqlite3/operations.py168 # For consistency with SQLiteCursorWrapper.execute(), just return sqlCOMMENT
LOWdjango/db/backends/base/creation.py232 # below, just return and skip it all.COMMENT
MEDIUMdjango/db/backends/base/base.py99 # Each entry is an (sids, func, robust) tuple, where sids is a set ofCOMMENT
MEDIUMdjango/db/backends/base/base.py100 # the active savepoint IDs when this function was registered and robustCOMMENT
LOWdjango/db/models/fields/related_descriptors.py360 # when accessing the attribute we just set.COMMENT
LOWdjango/db/models/fields/related_descriptors.py642 # query when accessing the attribute we just set.COMMENT
LOWdjango/db/models/fields/related.py944 # While 'limit_choices_to' might be a callable, simply passCOMMENT
MEDIUMdjango/db/models/sql/query.py465 # resolving purpose to facilitate their subsequent removal.COMMENT
Redundant / Tautological Comments41 hits · 66 pts
SeverityFileLineSnippetContext
LOWtests/model_forms/tests.py2612 # Check if the max_length attribute has been inherited from the model.COMMENT
LOWtests/auth_tests/test_remote_user.py218 # Set last_login to something so we can determine if it changes.COMMENT
LOWtests/auth_tests/test_remote_user.py237 # Set last_login to something so we can determine if it changes.COMMENT
LOWtests/cache/tests.py2367 # Set headers to an empty list.COMMENT
LOWtests/cache/tests.py2345 # Set headers to an empty list.COMMENT
LOWtests/cache/tests.py3353 # Set headers to an empty list.COMMENT
LOWtests/cache/tests.py3375 # Set headers to an empty list.COMMENT
LOWtests/requests_tests/tests.py1341 # Check if X_FORWARDED_HOST isn't provided.COMMENT
LOWtests/requests_tests/tests.py1350 # Check if HTTP_HOST isn't provided.COMMENT
LOWtests/requests_tests/tests.py1358 # Check if HTTP_HOST isn't provided, and we're on a nonstandard portCOMMENT
LOWtests/requests_tests/tests.py1411 # Check if X_FORWARDED_HOST isn't provided.COMMENT
LOWtests/requests_tests/tests.py1420 # Check if HTTP_HOST isn't provided.COMMENT
LOWtests/requests_tests/tests.py1428 # Check if HTTP_HOST isn't provided, and we're on a nonstandard portCOMMENT
LOWtests/requests_tests/tests.py1330 # Check if X_FORWARDED_HOST is provided.COMMENT
LOWtests/requests_tests/tests.py1400 # Check if X_FORWARDED_HOST is provided.COMMENT
LOWtests/admin_views/tests.py991 # Check if the correct column was selected. 2 is the index of theCOMMENT
LOWtests/model_fields/test_floatfield.py15 # Set value to valid and saveCOMMENT
LOWtests/model_fields/test_floatfield.py19 # Set field to object on saved instanceCOMMENT
LOWtests/gis_tests/gdal_tests/test_raster.py456 # Check if options used on creation are stored in metadata.COMMENT
LOWtests/indexes/models.py15 # Set unique to enable model cache.COMMENT
LOWscripts/verify_release.sh8# Set GPG_KEY to a key fingerprint to import it before verifying, e.g.:COMMENT
LOWdjango/middleware/common.py51 # Check if we also need to append a slash so we can do it allCOMMENT
LOWdjango/core/validators.py168 # Check if the scheme is valid.COMMENT
LOWdjango/core/serializers/xml_serializer.py350 # Check if there is a child node named 'None', returning None if so.COMMENT
LOWdjango/template/base.py1049 # Set this to True for nodes that must be first in the template (althoughCOMMENT
LOWdjango/utils/log.py308 # Check if the response has already been logged. Multiple requests to logCOMMENT
LOWdjango/contrib/auth/hashers.py462 # Set salt_len to the salt_len of the current parameters because saltCOMMENT
LOWdjango/contrib/admin/options.py1611 # Check if this is an optgroup (label is a sequenceCOMMENT
LOWdjango/contrib/gis/gdal/raster/source.py141 # Check if width and height where specifiedCOMMENT
LOWdjango/contrib/gis/gdal/raster/source.py147 # Check if srid was specifiedCOMMENT
LOWdjango/contrib/gis/db/backends/spatialite/base.py72 # Check if spatial metadata have been initialized in the databaseCOMMENT
LOWdjango/contrib/gis/db/models/fields.py198 # Check if input is a candidate for conversion to raster orCOMMENT
LOWdjango/contrib/gis/db/models/lookups.py29 # Check if a band index was passed in the query argument.COMMENT
LOWdjango/contrib/gis/db/models/lookups.py315 # Check if the second parameter is a band index.COMMENT
LOWdjango/db/backends/base/schema.py665 # Check if the constraint is still in deferred_sql. This happens whenCOMMENT
LOWdjango/db/models/base.py2425 # Check if auto-generated name for the field is too longCOMMENT
LOWdjango/db/models/base.py2448 # Check if auto-generated name for the M2M field is too longCOMMENT
LOWdjango/db/models/sql/query.py1852 # Check if we need any joins for concrete inheritance cases (theCOMMENT
LOWdjango/db/models/sql/where.py162 # Check if this node matches nothing or everything.COMMENT
LOWdjango/apps/config.py124 # Check if there's exactly one AppConfig candidate,COMMENT
LOWdjango/apps/config.py138 # Check if there's exactly one AppConfig subclass,COMMENT
Modern Structural Boilerplate64 hits · 64 pts
SeverityFileLineSnippetContext
LOWtests/composite_pk/models/__init__.py3__all__ = [CODE
LOWtests/test_runner/test_debug_sql.py14logger = logging.getLogger(__name__)CODE
LOWtests/auth_tests/backend_alias.py4__all__ = ["ImportedModelBackend"]CODE
LOWtests/foreign_object/models/__init__.py6__all__ = [CODE
LOWtests/admin_scripts/simple_app/models.py3__all__ = ["Bar"]CODE
LOWtests/admin_scripts/complex_app/models/__init__.py4__all__ = ["Foo", "Bar"]CODE
LOWtests/model_package/models/__init__.py5__all__ = ["Article", "Publication"]CODE
LOWdocs/_ext/djangodocs.py17logger = logging.getLogger(__name__)CODE
LOWscripts/pr_quality/check_pr.py63logger = logging.getLogger(__name__)CODE
LOWdjango/middleware/__init__.py5__all__ = ["MiddlewareMixin"]CODE
LOWdjango/tasks/__init__.py16__all__ = [CODE
LOWdjango/tasks/backends/immediate.py12logger = logging.getLogger(__name__)CODE
LOWdjango/core/cache/__init__.py26__all__ = [CODE
LOWdjango/core/mail/__init__.py42__all__ = [CODE
LOWdjango/core/checks/__init__.py32__all__ = [CODE
LOWdjango/core/files/__init__.py3__all__ = ["File"]CODE
LOWdjango/core/files/uploadhandler.py12__all__ = [CODE
LOWdjango/core/files/move.py13__all__ = ["file_move_safe"]CODE
LOWdjango/test/__init__.py21__all__ = [CODE
LOWdjango/utils/choices.py6__all__ = [CODE
LOWdjango/utils/timezone.py14__all__ = [CODE
LOWdjango/utils/translation/__init__.py12__all__ = [CODE
LOWdjango/contrib/admin/__init__.py27__all__ = [CODE
LOWdjango/contrib/postgres/indexes.py6__all__ = [CODE
LOWdjango/contrib/postgres/constraints.py15__all__ = ["ExclusionConstraint"]CODE
LOWdjango/contrib/postgres/forms/ranges.py11__all__ = [CODE
LOWdjango/contrib/postgres/forms/hstore.py7__all__ = ["HStoreField"]CODE
LOWdjango/contrib/postgres/aggregates/statistics.py3__all__ = [CODE
LOWdjango/contrib/postgres/aggregates/general.py13__all__ = [CODE
LOWdjango/contrib/postgres/fields/citext.py3__all__ = ["CICharField", "CIEmailField", "CITextField"]CODE
LOWdjango/contrib/postgres/fields/ranges.py18__all__ = [CODE
LOWdjango/contrib/postgres/fields/jsonb.py3__all__ = ["JSONField"]CODE
LOWdjango/contrib/postgres/fields/array.py18__all__ = ["ArrayField"]CODE
LOWdjango/contrib/postgres/fields/hstore.py11__all__ = ["HStoreField"]CODE
LOWdjango/contrib/gis/measure.py43__all__ = ["A", "Area", "D", "Distance"]CODE
LOWdjango/contrib/gis/geoip2.py24__all__ = ["HAS_GEOIP2"]CODE
LOWdjango/contrib/gis/geos/io.py15__all__ = ["WKBWriter", "WKTWriter", "WKBReader", "WKTReader"]CODE
LOWdjango/contrib/gis/geos/prototypes/misc.py12__all__ = ["geos_area", "geos_distance", "geos_length", "geos_isvalidreason"]CODE
LOWdjango/contrib/gis/admin/__init__.py16__all__ = [CODE
LOWdjango/contrib/gis/utils/__init__.py10__all__ = [CODE
LOWdjango/contrib/gis/sitemaps/__init__.py4__all__ = ["KMLSitemap", "KMZSitemap"]CODE
LOWdjango/contrib/gis/db/models/aggregates.py10__all__ = ["Collect", "Extent", "Extent3D", "MakeLine", "Union"]CODE
LOWdjango/contrib/gis/db/models/sql/__init__.py3__all__ = [CODE
LOWdjango/http/__init__.py28__all__ = [CODE
LOWdjango/urls/__init__.py27__all__ = [CODE
LOWdjango/db/__init__.py19__all__ = [CODE
LOWdjango/db/backends/postgresql/compiler.py9__all__ = [CODE
LOWdjango/db/backends/mysql/compiler.py8__all__ = [CODE
LOWdjango/db/models/enums.py7__all__ = ["Choices", "IntegerChoices", "TextChoices"]CODE
LOWdjango/db/models/indexes.py11__all__ = ["Index"]CODE
LOWdjango/db/models/aggregates.py23__all__ = [CODE
LOWdjango/db/models/constraints.py18__all__ = ["BaseConstraint", "CheckConstraint", "Deferrable", "UniqueConstraint"]CODE
LOWdjango/db/models/functions/window.py4__all__ = [CODE
LOWdjango/db/models/functions/__init__.py96__all__ = [CODE
LOWdjango/db/models/fields/generated.py8__all__ = ["GeneratedField"]CODE
LOWdjango/db/models/fields/__init__.py43__all__ = [CODE
LOWdjango/db/models/fields/json.py22__all__ = ["JSONField"]CODE
LOWdjango/db/models/sql/query.py52__all__ = ["Query", "RawQuery"]CODE
LOWdjango/db/models/sql/subqueries.py14__all__ = ["DeleteQuery", "UpdateQuery", "InsertQuery", "AggregateQuery"]CODE
LOWdjango/db/models/sql/__init__.py6__all__ = ["Query", "AND", "OR", "XOR"]CODE
4 more matches not shown…
AI Response Leakage6 hits · 45 pts
SeverityFileLineSnippetContext
HIGHtests/forms_tests/tests/test_forms.py447 # that are not required. In this example, the data dictionary doesn'tCOMMENT
HIGHtests/forms_tests/tests/test_forms.py544 # In this example, auto_id is False, but the "id" attribute for theCOMMENT
HIGHtests/forms_tests/tests/test_forms.py2530 # provided. In this example, we don't provide a value for 'username',COMMENT
HIGHtests/forms_tests/tests/test_forms.py2602 # provided. In this example, we don't provide a value for 'username',COMMENT
HIGHtests/forms_tests/tests/test_forms.py2724 # provided. In this example, we don't provide a value for 'username',COMMENT
HIGHtests/forms_tests/tests/test_forms.py3481 # In this example, the data doesn't have a prefix, but the formCOMMENT
AI Structural Patterns32 hits · 30 pts
SeverityFileLineSnippetContext
LOWtests/schema/fields.py20CODE
LOWscripts/pr_quality/tests/test_check_pr.py90CODE
LOWscripts/pr_quality/tests/test_check_pr.py142CODE
LOWdjango/forms/models.py141CODE
LOWdjango/forms/models.py589CODE
LOWdjango/forms/models.py1040CODE
LOWdjango/forms/models.py1307CODE
LOWdjango/forms/models.py348CODE
LOWdjango/forms/models.py1480CODE
LOWdjango/forms/fields.py98CODE
LOWdjango/forms/formsets.py534CODE
LOWdjango/forms/formsets.py81CODE
LOWdjango/forms/forms.py73CODE
LOWdjango/core/mail/message.py260CODE
LOWdjango/core/mail/message.py619CODE
LOWdjango/core/mail/backends/smtp.py23CODE
LOWdjango/test/runner.py708CODE
LOWdjango/template/engine.py20CODE
LOWdjango/utils/feedgenerator.py113CODE
LOWdjango/utils/feedgenerator.py165CODE
LOWdjango/contrib/auth/forms.py444CODE
LOWdjango/contrib/postgres/search.py323CODE
LOWdjango/contrib/contenttypes/forms.py77CODE
LOWdjango/contrib/gis/utils/ogrinspect.py130CODE
LOWdjango/http/response.py223CODE
LOWdjango/db/backends/postgresql/schema.py332CODE
LOWdjango/db/backends/base/schema.py1600CODE
LOWdjango/db/backends/base/schema.py2032CODE
LOWdjango/db/models/constraints.py270CODE
LOWdjango/db/models/fields/related.py1470CODE
LOWdjango/db/models/fields/__init__.py220CODE
LOWdjango/db/models/sql/query.py1488CODE
Decorative Section Separators6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMdjango/contrib/gis/db/models/lookups.py93# ------------------COMMENT
MEDIUMdjango/contrib/gis/db/models/lookups.py95# ------------------COMMENT
MEDIUMdjango/contrib/gis/db/models/lookups.py222# ------------------COMMENT
MEDIUMdjango/contrib/gis/db/models/lookups.py224# ------------------COMMENT
MEDIUMdjango/db/backends/base/schema.py1077 # -------------------------------------COMMENT
MEDIUMdjango/db/backends/base/schema.py1266 # -------------------------------------COMMENT
Structural Annotation Overuse7 hits · 15 pts
SeverityFileLineSnippetContext
LOWdjango/utils/cache.py184 # Step 1: Test the If-Match precondition.COMMENT
LOWdjango/utils/cache.py188 # Step 2: Test the If-Unmodified-Since precondition.COMMENT
LOWdjango/utils/cache.py196 # Step 3: Test the If-None-Match precondition.COMMENT
LOWdjango/utils/cache.py203 # Step 4: Test the If-Modified-Since precondition.COMMENT
LOWdjango/utils/cache.py212 # Step 5: Test the If-Range precondition (not supported).COMMENT
LOWdjango/utils/cache.py213 # Step 6: Return original response since there isn't a conditionalCOMMENT
LOWdjango/http/request.py63 # WARNING: The `WSGIRequest` subclass doesn't call `super`.COMMENT
Verbosity Indicators6 hits · 14 pts
SeverityFileLineSnippetContext
LOWdjango/utils/cache.py184 # Step 1: Test the If-Match precondition.COMMENT
LOWdjango/utils/cache.py188 # Step 2: Test the If-Unmodified-Since precondition.COMMENT
LOWdjango/utils/cache.py196 # Step 3: Test the If-None-Match precondition.COMMENT
LOWdjango/utils/cache.py203 # Step 4: Test the If-Modified-Since precondition.COMMENT
LOWdjango/utils/cache.py212 # Step 5: Test the If-Range precondition (not supported).COMMENT
LOWdjango/utils/cache.py213 # Step 6: Return original response since there isn't a conditionalCOMMENT
Overly Generic Function Names10 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/template_tests/test_callables.py69 def my_method(self):CODE
LOWtests/template_tests/test_callables.py92 def my_method(self):CODE
LOWtests/forms_tests/tests/test_forms.py5379 def my_function(method, post_data):CODE
LOWtests/basic/tests.py440 def do_something(self):CODE
LOWtests/admin_checks/tests.py750 def my_function(obj):CODE
LOWtests/sphinx/testdata/package/module.py16 def my_method(self):CODE
LOWtests/sphinx/testdata/package/module.py24def my_function(self):CODE
LOWtests/deprecation/test_warn_about_implementation.py20 def test_function(self):CODE
LOWdjango/views/decorators/debug.py21 def my_function(user):STRING
LOWdjango/views/decorators/debug.py30 def my_function()STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_runner/test_parallel.py86CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/forms_tests/tests/test_forms.py1833 # self.fields dictionary in __init__(). Don't forget to callCOMMENT